@hawkeyexl/manni 4.23.0 → 4.25.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 (263) hide show
  1. package/README.md +1 -1
  2. package/dist/{batch-DPYBMRVD.js → batch-VP7VAFFA.js} +12 -12
  3. package/dist/{build-LEKUMGEC.js → build-44OHCP5P.js} +13 -13
  4. package/dist/{calibrate-TYONPNG4.js → calibrate-5X3V3IFG.js} +13 -13
  5. package/dist/{capture-2EPHIAZT.js → capture-QUDOYQOS.js} +12 -12
  6. package/dist/{check-J2KQI7IW.js → check-IF6WXUEI.js} +14 -14
  7. package/dist/check-LNCNERTV.js +57 -0
  8. package/dist/check-MZWAI5CR.js +57 -0
  9. package/dist/{check-SQVQE4E4.js → check-QSW4PTDL.js} +13 -13
  10. package/dist/{check-HWEDHABD.js → check-ZNGJ3QPU.js} +10 -10
  11. package/dist/{chunk-KX6HRTLH.js → chunk-2LF3NIWH.js} +17 -2
  12. package/dist/chunk-2LF3NIWH.js.map +1 -0
  13. package/dist/{chunk-EPN67ZNX.js → chunk-3J6O3ID5.js} +9 -9
  14. package/dist/{chunk-VTJAY3WN.js → chunk-3ZKW6ILQ.js} +12 -8
  15. package/dist/chunk-3ZKW6ILQ.js.map +1 -0
  16. package/dist/{chunk-XVL7DYWM.js → chunk-3ZWKN3JF.js} +130 -8
  17. package/dist/chunk-3ZWKN3JF.js.map +1 -0
  18. package/dist/{chunk-7NSFGAAQ.js → chunk-44ETYRW3.js} +5 -5
  19. package/dist/{chunk-RZ6OONZU.js → chunk-4UHRMUV3.js} +4 -4
  20. package/dist/{chunk-Y4O737F7.js → chunk-5XVS7OLH.js} +13 -10
  21. package/dist/chunk-5XVS7OLH.js.map +1 -0
  22. package/dist/{chunk-CLUUSZDY.js → chunk-6NN7VGDU.js} +10 -10
  23. package/dist/{chunk-LHP56Q45.js → chunk-6RFNXPVZ.js} +5 -5
  24. package/dist/{chunk-I4KDAO6P.js → chunk-6T4AJ2L6.js} +3 -3
  25. package/dist/{chunk-SZMJ24FR.js → chunk-6Z3XOK52.js} +8 -8
  26. package/dist/{chunk-WHECOVH2.js → chunk-7QIUCIOS.js} +7 -5
  27. package/dist/chunk-7QIUCIOS.js.map +1 -0
  28. package/dist/{chunk-BA7BQBWV.js → chunk-A7Z74ZVA.js} +13 -13
  29. package/dist/{chunk-LT3STF5K.js → chunk-ADZH6SFC.js} +4 -4
  30. package/dist/{chunk-AJCUKL43.js → chunk-AFTHVJYK.js} +13 -7
  31. package/dist/{chunk-AJCUKL43.js.map → chunk-AFTHVJYK.js.map} +1 -1
  32. package/dist/{chunk-EAF4K7IK.js → chunk-BNCI4B5B.js} +65 -17
  33. package/dist/chunk-BNCI4B5B.js.map +1 -0
  34. package/dist/{chunk-VSDXZAQU.js → chunk-BXQLKOOR.js} +2 -2
  35. package/dist/{chunk-K4YR4PY2.js → chunk-CI655H5P.js} +6 -6
  36. package/dist/{chunk-MDZXRHIJ.js → chunk-CLH4ZYNG.js} +1 -1
  37. package/dist/chunk-CLH4ZYNG.js.map +1 -0
  38. package/dist/{chunk-2QK25SLZ.js → chunk-CSZIHCPC.js} +3 -3
  39. package/dist/{chunk-OL3Z7KPQ.js → chunk-CU2RHHDC.js} +131 -23
  40. package/dist/chunk-CU2RHHDC.js.map +1 -0
  41. package/dist/{chunk-WPHPLVS3.js → chunk-DM37LCWS.js} +8 -8
  42. package/dist/{chunk-TVLIJ6ZM.js → chunk-DP2YVP7S.js} +4 -4
  43. package/dist/{chunk-P6LRDWMJ.js → chunk-E4A2OW24.js} +7 -7
  44. package/dist/{chunk-2UJOQ6CB.js → chunk-FKM3GGP4.js} +9 -9
  45. package/dist/{chunk-BOCJTOKA.js → chunk-G7DHWDSI.js} +2 -2
  46. package/dist/{chunk-2GPF4OEF.js → chunk-GQQGKKXK.js} +2 -2
  47. package/dist/{chunk-AOLCEULZ.js → chunk-GVG6LI5Q.js} +4 -4
  48. package/dist/{chunk-N25KDXOV.js → chunk-H7UPMVBK.js} +2 -2
  49. package/dist/{chunk-GIHIONJH.js → chunk-IM7C3H4W.js} +10 -2
  50. package/dist/chunk-IM7C3H4W.js.map +1 -0
  51. package/dist/{chunk-QWVIGKBM.js → chunk-IQ4YRTPO.js} +404 -136
  52. package/dist/chunk-IQ4YRTPO.js.map +1 -0
  53. package/dist/{chunk-B4POKRCS.js → chunk-ITEGS3X3.js} +5 -5
  54. package/dist/{chunk-MPRVAMO3.js → chunk-J3LMV74L.js} +4 -4
  55. package/dist/{chunk-INOVEO32.js → chunk-JBOXCSTN.js} +1 -1
  56. package/dist/chunk-JBOXCSTN.js.map +1 -0
  57. package/dist/{chunk-JZWQQOUN.js → chunk-JNG6N5YH.js} +6 -6
  58. package/dist/{chunk-6QNA7UX2.js → chunk-JPIWDKSR.js} +2 -2
  59. package/dist/{chunk-EBBJFXMX.js → chunk-KG7ZP7Z6.js} +3 -3
  60. package/dist/{chunk-2MOXVM6H.js → chunk-LTCAXNJS.js} +2 -2
  61. package/dist/{chunk-76Y3JATE.js → chunk-M4OGE7AL.js} +2 -2
  62. package/dist/{chunk-3CBGLUJX.js → chunk-MUPA2MUK.js} +7 -7
  63. package/dist/chunk-MUPA2MUK.js.map +1 -0
  64. package/dist/{chunk-GCHEVTCJ.js → chunk-MXRFHC7I.js} +2 -2
  65. package/dist/{chunk-CWPRB7SA.js → chunk-NQFSXLYK.js} +258 -145
  66. package/dist/chunk-NQFSXLYK.js.map +1 -0
  67. package/dist/{chunk-QJL57GPX.js → chunk-OG6OJC64.js} +3 -3
  68. package/dist/{chunk-72UN462G.js → chunk-OIGFV4BG.js} +26 -7
  69. package/dist/chunk-OIGFV4BG.js.map +1 -0
  70. package/dist/{chunk-N2T6RLSE.js → chunk-PMRBTUCZ.js} +2 -2
  71. package/dist/{chunk-N2T6RLSE.js.map → chunk-PMRBTUCZ.js.map} +1 -1
  72. package/dist/{chunk-UQYDLEBS.js → chunk-PYCKKLN2.js} +7 -7
  73. package/dist/{chunk-6RENCXLC.js → chunk-PZLJQE2S.js} +3 -3
  74. package/dist/{chunk-E75CMOR3.js → chunk-Q44S7QYO.js} +3 -3
  75. package/dist/{chunk-QJGPOFNB.js → chunk-R3EJQKGM.js} +3 -3
  76. package/dist/{chunk-C2QE4FSZ.js → chunk-RIKCEIS7.js} +3 -3
  77. package/dist/{chunk-5JXA75XB.js → chunk-S6TCOSAY.js} +24 -11
  78. package/dist/chunk-S6TCOSAY.js.map +1 -0
  79. package/dist/{chunk-YJHH2DHV.js → chunk-SBPIX4DE.js} +2 -2
  80. package/dist/{chunk-B4ECIBLF.js → chunk-SHDMHEY6.js} +3 -3
  81. package/dist/{chunk-TLY44PCL.js → chunk-SNNT4A3J.js} +2 -2
  82. package/dist/{chunk-DWUK6YNX.js → chunk-SPGRVFWW.js} +6 -6
  83. package/dist/{chunk-3USSSKLA.js → chunk-TX6WDFGT.js} +2 -2
  84. package/dist/{chunk-FJYIPHWK.js → chunk-V3CE2MQV.js} +9 -7
  85. package/dist/chunk-V3CE2MQV.js.map +1 -0
  86. package/dist/{chunk-QR55QXJ7.js → chunk-W4W3NHK4.js} +4 -4
  87. package/dist/{chunk-YBPXVBSY.js → chunk-WCMO7DTA.js} +3 -3
  88. package/dist/{chunk-TOVSR2YO.js → chunk-WFSZVCTZ.js} +2 -2
  89. package/dist/{chunk-AZKNB2T3.js → chunk-WMJ2FXYV.js} +11 -28
  90. package/dist/chunk-WMJ2FXYV.js.map +1 -0
  91. package/dist/{chunk-MGQNGW6I.js → chunk-X64BY7TV.js} +2 -2
  92. package/dist/{chunk-YUCH6WJY.js → chunk-XWPKJD45.js} +2 -2
  93. package/dist/{chunk-NPZWOPOH.js → chunk-XX7GNK4F.js} +5 -4
  94. package/dist/chunk-XX7GNK4F.js.map +1 -0
  95. package/dist/{chunk-L3DOX3UL.js → chunk-Y2GYB3SB.js} +4 -4
  96. package/dist/{chunk-7M3MBFG7.js → chunk-YBWDATJO.js} +5 -5
  97. package/dist/chunk-YBWDATJO.js.map +1 -0
  98. package/dist/{chunk-FBIBR4CH.js → chunk-ZPKPL52R.js} +33 -16
  99. package/dist/chunk-ZPKPL52R.js.map +1 -0
  100. package/dist/{cli-TBAOKTMV.js → cli-4WOYZQQF.js} +13 -13
  101. package/dist/{cli-NDYBQ755.js → cli-5HRQSZJG.js} +18 -18
  102. package/dist/{cli-BF6KB3EJ.js → cli-AISVPF4O.js} +30 -30
  103. package/dist/{cli-DXOHHWZK.js → cli-DFUPK6NY.js} +32 -18
  104. package/dist/{cli-DXOHHWZK.js.map → cli-DFUPK6NY.js.map} +1 -1
  105. package/dist/{cli-SJA66MIP.js → cli-H2RUHLCF.js} +19 -19
  106. package/dist/{cli-4R5HIGG4.js → cli-HXFFCF5U.js} +34 -30
  107. package/dist/cli-HXFFCF5U.js.map +1 -0
  108. package/dist/{cli-XXN75A42.js → cli-JH67BLTC.js} +7 -7
  109. package/dist/{cli-V2BJYNMF.js → cli-KLOTJTBA.js} +2 -2
  110. package/dist/{cli-MPMECIQH.js → cli-MCFDABF3.js} +57 -57
  111. package/dist/{cli-XGCK2LUV.js → cli-MVWF3ZJL.js} +12 -12
  112. package/dist/{cli-TWGGMUXX.js → cli-UUJQ2MA5.js} +36 -36
  113. package/dist/cli.js +15 -15
  114. package/dist/docmeta.js +6 -6
  115. package/dist/github-JHXSVOLR.js +48 -0
  116. package/dist/{github-WBIEYSM7.js → github-X3JHTWYZ.js} +10 -10
  117. package/dist/{github-NQQTH5JK.js → github-ZARIFMCP.js} +14 -14
  118. package/dist/index.d.ts +69 -13
  119. package/dist/index.js +55 -55
  120. package/dist/{json-J4TONMKY.js → json-CG2WAD5V.js} +2 -2
  121. package/dist/{json-QQAK73QQ.js → json-MOKARROA.js} +10 -10
  122. package/dist/{json-IVHRVOGQ.js → json-O6KJT3C3.js} +15 -15
  123. package/dist/{labels-VI2I5YFD.js → labels-6IEBGB7P.js} +9 -9
  124. package/dist/{lint-VB5A3ENL.js → lint-W6KQ7QGB.js} +10 -10
  125. package/dist/{list-LMYCD5G5.js → list-EOWL6REV.js} +14 -14
  126. package/dist/list-LIP6QOWF.js +48 -0
  127. package/dist/{list-LOS7FTFD.js → list-UXJ2NK7K.js} +10 -10
  128. package/dist/{page-3Y4EGYUO.js → page-U4D4RT4T.js} +12 -9
  129. package/dist/{prepare-JK6XKBZB.js → prepare-EP7RFG3W.js} +11 -11
  130. package/dist/{pretty-G2J5UEXC.js → pretty-U5HUKTPN.js} +14 -14
  131. package/dist/{pretty-DR4GHOJG.js → pretty-YFAKTBDO.js} +10 -10
  132. package/dist/{pretty-GCEIQ3FP.js → pretty-YXK7QWYR.js} +24 -24
  133. package/dist/{reporters-6TEJDXXO.js → reporters-6CNOPRDA.js} +4 -4
  134. package/dist/{reporters-OWYFZD4S.js → reporters-GGPH44QS.js} +4 -4
  135. package/dist/{reporters-43LBUWEE.js → reporters-SJW725TW.js} +9 -9
  136. package/dist/run-WAIHWCOH.js +51 -0
  137. package/dist/{sarif-CN7RSIKH.js → sarif-IY6OTG4M.js} +8 -8
  138. package/dist/{sarif-GWTNYCZJ.js → sarif-QYID4Z4M.js} +10 -10
  139. package/dist/sarif-SJ27UD3T.js +49 -0
  140. package/dist/strategy-3B6KJNFA.js +63 -0
  141. package/dist/{term-5WITRS3M.js → term-M63KLMUK.js} +15 -15
  142. package/dist/{types-7N7ETP3W.js → types-VWL35P4F.js} +2 -2
  143. package/dist/{validate-TDIEFXRQ.js → validate-XW5WSXKU.js} +4 -4
  144. package/package.json +1 -1
  145. package/plugin/manni/.claude-plugin/plugin.json +1 -1
  146. package/dist/check-ADCSXGBK.js +0 -57
  147. package/dist/check-L5AUSTE6.js +0 -57
  148. package/dist/chunk-3CBGLUJX.js.map +0 -1
  149. package/dist/chunk-5JXA75XB.js.map +0 -1
  150. package/dist/chunk-72UN462G.js.map +0 -1
  151. package/dist/chunk-7M3MBFG7.js.map +0 -1
  152. package/dist/chunk-AZKNB2T3.js.map +0 -1
  153. package/dist/chunk-CWPRB7SA.js.map +0 -1
  154. package/dist/chunk-EAF4K7IK.js.map +0 -1
  155. package/dist/chunk-FBIBR4CH.js.map +0 -1
  156. package/dist/chunk-FJYIPHWK.js.map +0 -1
  157. package/dist/chunk-GIHIONJH.js.map +0 -1
  158. package/dist/chunk-INOVEO32.js.map +0 -1
  159. package/dist/chunk-KX6HRTLH.js.map +0 -1
  160. package/dist/chunk-MDZXRHIJ.js.map +0 -1
  161. package/dist/chunk-NPZWOPOH.js.map +0 -1
  162. package/dist/chunk-OL3Z7KPQ.js.map +0 -1
  163. package/dist/chunk-QWVIGKBM.js.map +0 -1
  164. package/dist/chunk-VTJAY3WN.js.map +0 -1
  165. package/dist/chunk-WHECOVH2.js.map +0 -1
  166. package/dist/chunk-XVL7DYWM.js.map +0 -1
  167. package/dist/chunk-Y4O737F7.js.map +0 -1
  168. package/dist/cli-4R5HIGG4.js.map +0 -1
  169. package/dist/github-NWL2XGE7.js +0 -48
  170. package/dist/list-3XRFX2Y3.js +0 -33
  171. package/dist/run-G6G55SWJ.js +0 -36
  172. package/dist/sarif-FR26WNVT.js +0 -49
  173. package/dist/strategy-3EZUOE2T.js +0 -59
  174. /package/dist/{batch-DPYBMRVD.js.map → batch-VP7VAFFA.js.map} +0 -0
  175. /package/dist/{build-LEKUMGEC.js.map → build-44OHCP5P.js.map} +0 -0
  176. /package/dist/{calibrate-TYONPNG4.js.map → calibrate-5X3V3IFG.js.map} +0 -0
  177. /package/dist/{capture-2EPHIAZT.js.map → capture-QUDOYQOS.js.map} +0 -0
  178. /package/dist/{check-ADCSXGBK.js.map → check-IF6WXUEI.js.map} +0 -0
  179. /package/dist/{check-HWEDHABD.js.map → check-LNCNERTV.js.map} +0 -0
  180. /package/dist/{check-J2KQI7IW.js.map → check-MZWAI5CR.js.map} +0 -0
  181. /package/dist/{check-SQVQE4E4.js.map → check-QSW4PTDL.js.map} +0 -0
  182. /package/dist/{check-L5AUSTE6.js.map → check-ZNGJ3QPU.js.map} +0 -0
  183. /package/dist/{chunk-EPN67ZNX.js.map → chunk-3J6O3ID5.js.map} +0 -0
  184. /package/dist/{chunk-7NSFGAAQ.js.map → chunk-44ETYRW3.js.map} +0 -0
  185. /package/dist/{chunk-RZ6OONZU.js.map → chunk-4UHRMUV3.js.map} +0 -0
  186. /package/dist/{chunk-CLUUSZDY.js.map → chunk-6NN7VGDU.js.map} +0 -0
  187. /package/dist/{chunk-LHP56Q45.js.map → chunk-6RFNXPVZ.js.map} +0 -0
  188. /package/dist/{chunk-I4KDAO6P.js.map → chunk-6T4AJ2L6.js.map} +0 -0
  189. /package/dist/{chunk-SZMJ24FR.js.map → chunk-6Z3XOK52.js.map} +0 -0
  190. /package/dist/{chunk-BA7BQBWV.js.map → chunk-A7Z74ZVA.js.map} +0 -0
  191. /package/dist/{chunk-LT3STF5K.js.map → chunk-ADZH6SFC.js.map} +0 -0
  192. /package/dist/{chunk-VSDXZAQU.js.map → chunk-BXQLKOOR.js.map} +0 -0
  193. /package/dist/{chunk-K4YR4PY2.js.map → chunk-CI655H5P.js.map} +0 -0
  194. /package/dist/{chunk-2QK25SLZ.js.map → chunk-CSZIHCPC.js.map} +0 -0
  195. /package/dist/{chunk-WPHPLVS3.js.map → chunk-DM37LCWS.js.map} +0 -0
  196. /package/dist/{chunk-TVLIJ6ZM.js.map → chunk-DP2YVP7S.js.map} +0 -0
  197. /package/dist/{chunk-P6LRDWMJ.js.map → chunk-E4A2OW24.js.map} +0 -0
  198. /package/dist/{chunk-2UJOQ6CB.js.map → chunk-FKM3GGP4.js.map} +0 -0
  199. /package/dist/{chunk-BOCJTOKA.js.map → chunk-G7DHWDSI.js.map} +0 -0
  200. /package/dist/{chunk-2GPF4OEF.js.map → chunk-GQQGKKXK.js.map} +0 -0
  201. /package/dist/{chunk-AOLCEULZ.js.map → chunk-GVG6LI5Q.js.map} +0 -0
  202. /package/dist/{chunk-N25KDXOV.js.map → chunk-H7UPMVBK.js.map} +0 -0
  203. /package/dist/{chunk-B4POKRCS.js.map → chunk-ITEGS3X3.js.map} +0 -0
  204. /package/dist/{chunk-MPRVAMO3.js.map → chunk-J3LMV74L.js.map} +0 -0
  205. /package/dist/{chunk-JZWQQOUN.js.map → chunk-JNG6N5YH.js.map} +0 -0
  206. /package/dist/{chunk-6QNA7UX2.js.map → chunk-JPIWDKSR.js.map} +0 -0
  207. /package/dist/{chunk-EBBJFXMX.js.map → chunk-KG7ZP7Z6.js.map} +0 -0
  208. /package/dist/{chunk-2MOXVM6H.js.map → chunk-LTCAXNJS.js.map} +0 -0
  209. /package/dist/{chunk-76Y3JATE.js.map → chunk-M4OGE7AL.js.map} +0 -0
  210. /package/dist/{chunk-GCHEVTCJ.js.map → chunk-MXRFHC7I.js.map} +0 -0
  211. /package/dist/{chunk-QJL57GPX.js.map → chunk-OG6OJC64.js.map} +0 -0
  212. /package/dist/{chunk-UQYDLEBS.js.map → chunk-PYCKKLN2.js.map} +0 -0
  213. /package/dist/{chunk-6RENCXLC.js.map → chunk-PZLJQE2S.js.map} +0 -0
  214. /package/dist/{chunk-E75CMOR3.js.map → chunk-Q44S7QYO.js.map} +0 -0
  215. /package/dist/{chunk-QJGPOFNB.js.map → chunk-R3EJQKGM.js.map} +0 -0
  216. /package/dist/{chunk-C2QE4FSZ.js.map → chunk-RIKCEIS7.js.map} +0 -0
  217. /package/dist/{chunk-YJHH2DHV.js.map → chunk-SBPIX4DE.js.map} +0 -0
  218. /package/dist/{chunk-B4ECIBLF.js.map → chunk-SHDMHEY6.js.map} +0 -0
  219. /package/dist/{chunk-TLY44PCL.js.map → chunk-SNNT4A3J.js.map} +0 -0
  220. /package/dist/{chunk-DWUK6YNX.js.map → chunk-SPGRVFWW.js.map} +0 -0
  221. /package/dist/{chunk-3USSSKLA.js.map → chunk-TX6WDFGT.js.map} +0 -0
  222. /package/dist/{chunk-QR55QXJ7.js.map → chunk-W4W3NHK4.js.map} +0 -0
  223. /package/dist/{chunk-YBPXVBSY.js.map → chunk-WCMO7DTA.js.map} +0 -0
  224. /package/dist/{chunk-TOVSR2YO.js.map → chunk-WFSZVCTZ.js.map} +0 -0
  225. /package/dist/{chunk-MGQNGW6I.js.map → chunk-X64BY7TV.js.map} +0 -0
  226. /package/dist/{chunk-YUCH6WJY.js.map → chunk-XWPKJD45.js.map} +0 -0
  227. /package/dist/{chunk-L3DOX3UL.js.map → chunk-Y2GYB3SB.js.map} +0 -0
  228. /package/dist/{cli-TBAOKTMV.js.map → cli-4WOYZQQF.js.map} +0 -0
  229. /package/dist/{cli-NDYBQ755.js.map → cli-5HRQSZJG.js.map} +0 -0
  230. /package/dist/{cli-BF6KB3EJ.js.map → cli-AISVPF4O.js.map} +0 -0
  231. /package/dist/{cli-SJA66MIP.js.map → cli-H2RUHLCF.js.map} +0 -0
  232. /package/dist/{cli-XXN75A42.js.map → cli-JH67BLTC.js.map} +0 -0
  233. /package/dist/{cli-V2BJYNMF.js.map → cli-KLOTJTBA.js.map} +0 -0
  234. /package/dist/{cli-MPMECIQH.js.map → cli-MCFDABF3.js.map} +0 -0
  235. /package/dist/{cli-XGCK2LUV.js.map → cli-MVWF3ZJL.js.map} +0 -0
  236. /package/dist/{cli-TWGGMUXX.js.map → cli-UUJQ2MA5.js.map} +0 -0
  237. /package/dist/{github-NQQTH5JK.js.map → github-JHXSVOLR.js.map} +0 -0
  238. /package/dist/{github-NWL2XGE7.js.map → github-X3JHTWYZ.js.map} +0 -0
  239. /package/dist/{github-WBIEYSM7.js.map → github-ZARIFMCP.js.map} +0 -0
  240. /package/dist/{json-IVHRVOGQ.js.map → json-CG2WAD5V.js.map} +0 -0
  241. /package/dist/{json-J4TONMKY.js.map → json-MOKARROA.js.map} +0 -0
  242. /package/dist/{json-QQAK73QQ.js.map → json-O6KJT3C3.js.map} +0 -0
  243. /package/dist/{labels-VI2I5YFD.js.map → labels-6IEBGB7P.js.map} +0 -0
  244. /package/dist/{lint-VB5A3ENL.js.map → lint-W6KQ7QGB.js.map} +0 -0
  245. /package/dist/{list-3XRFX2Y3.js.map → list-EOWL6REV.js.map} +0 -0
  246. /package/dist/{list-LMYCD5G5.js.map → list-LIP6QOWF.js.map} +0 -0
  247. /package/dist/{list-LOS7FTFD.js.map → list-UXJ2NK7K.js.map} +0 -0
  248. /package/dist/{page-3Y4EGYUO.js.map → page-U4D4RT4T.js.map} +0 -0
  249. /package/dist/{prepare-JK6XKBZB.js.map → prepare-EP7RFG3W.js.map} +0 -0
  250. /package/dist/{pretty-DR4GHOJG.js.map → pretty-U5HUKTPN.js.map} +0 -0
  251. /package/dist/{pretty-G2J5UEXC.js.map → pretty-YFAKTBDO.js.map} +0 -0
  252. /package/dist/{pretty-GCEIQ3FP.js.map → pretty-YXK7QWYR.js.map} +0 -0
  253. /package/dist/{reporters-43LBUWEE.js.map → reporters-6CNOPRDA.js.map} +0 -0
  254. /package/dist/{reporters-6TEJDXXO.js.map → reporters-GGPH44QS.js.map} +0 -0
  255. /package/dist/{reporters-OWYFZD4S.js.map → reporters-SJW725TW.js.map} +0 -0
  256. /package/dist/{run-G6G55SWJ.js.map → run-WAIHWCOH.js.map} +0 -0
  257. /package/dist/{sarif-CN7RSIKH.js.map → sarif-IY6OTG4M.js.map} +0 -0
  258. /package/dist/{sarif-FR26WNVT.js.map → sarif-QYID4Z4M.js.map} +0 -0
  259. /package/dist/{sarif-GWTNYCZJ.js.map → sarif-SJ27UD3T.js.map} +0 -0
  260. /package/dist/{strategy-3EZUOE2T.js.map → strategy-3B6KJNFA.js.map} +0 -0
  261. /package/dist/{term-5WITRS3M.js.map → term-M63KLMUK.js.map} +0 -0
  262. /package/dist/{types-7N7ETP3W.js.map → types-VWL35P4F.js.map} +0 -0
  263. /package/dist/{validate-TDIEFXRQ.js.map → validate-XW5WSXKU.js.map} +0 -0
@@ -1,7 +1,7 @@
1
1
  #!/usr/bin/env node
2
2
  import {
3
3
  byCodeUnit
4
- } from "./chunk-LHP56Q45.js";
4
+ } from "./chunk-6RFNXPVZ.js";
5
5
 
6
6
  // src/graph/core/localizations.ts
7
7
  var LOCALIZATIONS_FILENAME = "localizations.json";
@@ -97,4 +97,4 @@ export {
97
97
  parseLocalizations,
98
98
  isSafeRelativePath
99
99
  };
100
- //# sourceMappingURL=chunk-MGQNGW6I.js.map
100
+ //# sourceMappingURL=chunk-X64BY7TV.js.map
@@ -4,7 +4,7 @@ import {
4
4
  } from "./chunk-4TSWU2SU.js";
5
5
  import {
6
6
  offeredNames
7
- } from "./chunk-QJGPOFNB.js";
7
+ } from "./chunk-R3EJQKGM.js";
8
8
  import {
9
9
  MANIFEST_VERSION
10
10
  } from "./chunk-6WJUZQQX.js";
@@ -769,4 +769,4 @@ export {
769
769
  PROJECT_RULES_FILENAMES,
770
770
  resolveArtifacts
771
771
  };
772
- //# sourceMappingURL=chunk-YUCH6WJY.js.map
772
+ //# sourceMappingURL=chunk-XWPKJD45.js.map
@@ -6,10 +6,10 @@ import {
6
6
  import {
7
7
  REPORT_FORMATS,
8
8
  parseFormat
9
- } from "./chunk-N25KDXOV.js";
9
+ } from "./chunk-H7UPMVBK.js";
10
10
  import {
11
11
  FIX_GUIDE
12
- } from "./chunk-MDZXRHIJ.js";
12
+ } from "./chunk-CLH4ZYNG.js";
13
13
  import {
14
14
  escapeWorkflowCommandMessage,
15
15
  escapeWorkflowCommandProperty,
@@ -94,10 +94,11 @@ function renderPretty(report, opts = {}) {
94
94
  lines.push(pc.bold(file));
95
95
  for (const r of results) {
96
96
  const zone = r.consensus ? pc.dim(` [${r.consensus.zone}]`) : "";
97
+ const readAs = r.personas ? pc.dim(` (read as ${r.personas.join(", ")})`) : "";
97
98
  const via = r.via ? pc.dim(" (human-reviewed)") : "";
98
99
  const gen = r.generated ? pc.cyan(" (generated)") : "";
99
100
  const entry = pc.dim(locationLabel(declaringEntry(r)));
100
- lines.push(` ${outcomeTag(r, pc)} ${r.evalName}${zone}${via}${gen} ${entry}`);
101
+ lines.push(` ${outcomeTag(r, pc)} ${r.evalName}${zone}${readAs}${via}${gen} ${entry}`);
101
102
  if (r.skipReason && r.outcome !== "pass") {
102
103
  lines.push(pc.dim(` ${r.skipReason}`));
103
104
  }
@@ -723,4 +724,4 @@ function render(report, format, opts = {}) {
723
724
  export {
724
725
  render
725
726
  };
726
- //# sourceMappingURL=chunk-NPZWOPOH.js.map
727
+ //# sourceMappingURL=chunk-XX7GNK4F.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 // Who the judge read the page as (proposal 0111). No tag means it read none.\n const readAs = r.personas ? pc.dim(` (read as ${r.personas.join(\", \")})`) : \"\";\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}${readAs}${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 =\n p.level === \"error\" ? pc.red(\"error\") : p.level === \"warning\" ? pc.yellow(\"warn\") : pc.dim(\"notice\");\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.level === \"notice\" ? \"ℹ️\" : \"⚠️\"} \\`${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 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(`::${p.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)}.problems li.notice{color:var(--muted)}\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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AAA;AAAA;AAAA;AAAA;AAAA,mBAoCU,OAAO,OAAO,KAAK,CAAC,iBAAc;AAAA,IACjD,OAAO,YAAY;AAAA,EACrB,CAAC,sBAAmB,OAAO,OAAO,QAAQ,CAAC;AAAA,EAC3C,QAAQ;AAAA;AAAA;AAAA;AAAA,EAIR,UAAU,MAAM,CAAC;AAAA;AAAA,EAEjB,QAAQ;AAAA;AAAA,EAER,KAAK;AAAA;AAAA;AAGP;;;AChMO,SAAS,OACd,QACA,QACA,OAAqB,CAAC,GACd;AASR,cAAY,QAAQ,gBAAgB,QAAQ;AAC5C,UAAQ,QAAQ;AAAA,IACd,KAAK;AACH,aAAO,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"]}
@@ -15,10 +15,10 @@ import {
15
15
  import {
16
16
  REPORT_FORMAT_LIST,
17
17
  renderJunit
18
- } from "./chunk-2QK25SLZ.js";
18
+ } from "./chunk-CSZIHCPC.js";
19
19
  import {
20
20
  isErrorSeverity
21
- } from "./chunk-QWVIGKBM.js";
21
+ } from "./chunk-IQ4YRTPO.js";
22
22
  import {
23
23
  escapeWorkflowCommandMessage,
24
24
  escapeWorkflowCommandProperty,
@@ -29,7 +29,7 @@ import {
29
29
  } from "./chunk-RNVYGWIC.js";
30
30
  import {
31
31
  package_default
32
- } from "./chunk-N2T6RLSE.js";
32
+ } from "./chunk-PMRBTUCZ.js";
33
33
 
34
34
  // src/lint/core/rule-id.ts
35
35
  var RULE_ID_PREFIX = "manni:lint";
@@ -651,4 +651,4 @@ export {
651
651
  renderTemplates,
652
652
  renderTools
653
653
  };
654
- //# sourceMappingURL=chunk-L3DOX3UL.js.map
654
+ //# sourceMappingURL=chunk-Y2GYB3SB.js.map
@@ -1,13 +1,13 @@
1
1
  #!/usr/bin/env node
2
2
  import {
3
3
  entriesOf
4
- } from "./chunk-3CBGLUJX.js";
4
+ } from "./chunk-MUPA2MUK.js";
5
5
  import {
6
6
  StrategyError,
7
7
  indexSet,
8
8
  loadStrategy,
9
9
  plural
10
- } from "./chunk-FBIBR4CH.js";
10
+ } from "./chunk-ZPKPL52R.js";
11
11
  import {
12
12
  closestName
13
13
  } from "./chunk-XTKJNRJ6.js";
@@ -15,10 +15,10 @@ import {
15
15
  // src/strategy/commands/get.ts
16
16
  var GET_FORMATS = ["pretty", "json"];
17
17
  async function runGet(opts) {
18
- const { cwd, run, set, steps } = await loadStrategy(opts);
18
+ const { cwd, run, set, steps, owns } = await loadStrategy(opts);
19
19
  const index = indexSet(set);
20
20
  const found = index.anyWithId(opts.id);
21
- const entry = found === void 0 ? void 0 : entriesOf(set, cwd, run.base, index, steps).find((e) => e.record === found);
21
+ const entry = found === void 0 ? void 0 : entriesOf(set, cwd, run.base, index, steps, owns).find((e) => e.record === found);
22
22
  if (entry !== void 0) return entry;
23
23
  throw new StrategyError(unknownRecordMessage(opts.id, set.records));
24
24
  }
@@ -35,4 +35,4 @@ export {
35
35
  runGet,
36
36
  unknownRecordMessage
37
37
  };
38
- //# sourceMappingURL=chunk-7M3MBFG7.js.map
38
+ //# sourceMappingURL=chunk-YBWDATJO.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/strategy/commands/get.ts"],"sourcesContent":["/**\n * `manni strategy get <id>`: one record, matched by id without case. A miss\n * is a usage error that says how big the set is and, when an id is a few\n * edits away, which one.\n */\nimport { closestName } from \"../../shared/closest-name.js\";\nimport { indexSet } from \"../core/check.js\";\nimport { StrategyError } from \"../errors.js\";\nimport type { StrategyRecord } from \"../types.js\";\nimport { entriesOf, type RecordEntry } from \"./list.js\";\nimport { loadStrategy, plural, type StrategyCommandOptions } from \"./run.js\";\n\nexport const GET_FORMATS = [\"pretty\", \"json\"] as const;\nexport type GetFormat = (typeof GET_FORMATS)[number];\n\nexport interface GetOptions extends StrategyCommandOptions {\n /** The `<id>` argument, compared without case. */\n id: string;\n}\n\nexport async function runGet(opts: GetOptions): Promise<RecordEntry> {\n const { cwd, run, set, steps, owns } = await loadStrategy(opts);\n const index = indexSet(set);\n const found = index.anyWithId(opts.id);\n const entry = found === undefined ? undefined : entriesOf(set, cwd, run.base, index, steps, owns).find((e) => e.record === found);\n if (entry !== undefined) return entry;\n throw new StrategyError(unknownRecordMessage(opts.id, set.records));\n}\n\n/** `no record \"t9\". 82 records; did you mean \"t1\"?`: a miss, the set's size and the nearest id. */\nexport function unknownRecordMessage(id: string, records: readonly StrategyRecord[]): string {\n const ids = records.map((r) => r.id);\n const nearest = closestName(id.toLowerCase(), ids.map((i) => i.toLowerCase()));\n const suggestion = ids.find((i) => i.toLowerCase() === nearest);\n const hint = suggestion === undefined ? \".\" : `; did you mean \"${suggestion}\"?`;\n return `no record \"${id}\". ${plural(records.length, \"record\")}${hint}`;\n}\n"],"mappings":";;;;;;;;;;;;;;;AAYO,IAAM,cAAc,CAAC,UAAU,MAAM;AAQ5C,eAAsB,OAAO,MAAwC;AACnE,QAAM,EAAE,KAAK,KAAK,KAAK,OAAO,KAAK,IAAI,MAAM,aAAa,IAAI;AAC9D,QAAM,QAAQ,SAAS,GAAG;AAC1B,QAAM,QAAQ,MAAM,UAAU,KAAK,EAAE;AACrC,QAAM,QAAQ,UAAU,SAAY,SAAY,UAAU,KAAK,KAAK,IAAI,MAAM,OAAO,OAAO,IAAI,EAAE,KAAK,CAAC,MAAM,EAAE,WAAW,KAAK;AAChI,MAAI,UAAU,OAAW,QAAO;AAChC,QAAM,IAAI,cAAc,qBAAqB,KAAK,IAAI,IAAI,OAAO,CAAC;AACpE;AAGO,SAAS,qBAAqB,IAAY,SAA4C;AAC3F,QAAM,MAAM,QAAQ,IAAI,CAAC,MAAM,EAAE,EAAE;AACnC,QAAM,UAAU,YAAY,GAAG,YAAY,GAAG,IAAI,IAAI,CAAC,MAAM,EAAE,YAAY,CAAC,CAAC;AAC7E,QAAM,aAAa,IAAI,KAAK,CAAC,MAAM,EAAE,YAAY,MAAM,OAAO;AAC9D,QAAM,OAAO,eAAe,SAAY,MAAM,mBAAmB,UAAU;AAC3E,SAAO,cAAc,EAAE,MAAM,OAAO,QAAQ,QAAQ,QAAQ,CAAC,GAAG,IAAI;AACtE;","names":[]}
@@ -5,7 +5,7 @@ import {
5
5
  loadConfig,
6
6
  resolveRoute,
7
7
  routesFrom
8
- } from "./chunk-LHP56Q45.js";
8
+ } from "./chunk-6RFNXPVZ.js";
9
9
  import {
10
10
  closestName
11
11
  } from "./chunk-XTKJNRJ6.js";
@@ -14,23 +14,23 @@ import {
14
14
  isStrategyRule,
15
15
  resolveSeverity,
16
16
  ruleId
17
- } from "./chunk-VSDXZAQU.js";
17
+ } from "./chunk-BXQLKOOR.js";
18
18
  import {
19
19
  PAGE_FIELDS,
20
20
  PARENTS,
21
21
  STRATEGY_RULES
22
- } from "./chunk-INOVEO32.js";
22
+ } from "./chunk-JBOXCSTN.js";
23
23
  import {
24
24
  declaredAt,
25
25
  metaPageView
26
- } from "./chunk-EBBJFXMX.js";
26
+ } from "./chunk-KG7ZP7Z6.js";
27
27
  import {
28
28
  RECORD_FIELDS,
29
29
  readRecord
30
- } from "./chunk-AZKNB2T3.js";
30
+ } from "./chunk-WMJ2FXYV.js";
31
31
  import {
32
32
  STDIN_REQUIRES_AS
33
- } from "./chunk-KX6HRTLH.js";
33
+ } from "./chunk-2LF3NIWH.js";
34
34
  import {
35
35
  STDIN_LABEL,
36
36
  STDIN_TOKEN,
@@ -40,7 +40,7 @@ import {
40
40
  gitignoreOptions,
41
41
  resolveTargetSet,
42
42
  supportedExtensions
43
- } from "./chunk-QWVIGKBM.js";
43
+ } from "./chunk-IQ4YRTPO.js";
44
44
  import {
45
45
  SEVERITIES
46
46
  } from "./chunk-77AINBYM.js";
@@ -167,6 +167,7 @@ function stepDrafts(record, steps, naming, pagePath) {
167
167
  }
168
168
  function checkStrategySet(set, opts = {}) {
169
169
  const levels = resolveSeverity(opts.severity);
170
+ const owns = opts.owns ?? (() => true);
170
171
  const index = indexSet(set);
171
172
  const drafts = [];
172
173
  const steps = opts.steps ?? resolveSteps(set, {}, index);
@@ -221,14 +222,15 @@ function checkStrategySet(set, opts = {}) {
221
222
  for (const group of sharing.values()) {
222
223
  if (group.length < 2) continue;
223
224
  for (const record of group) {
224
- const others = group.filter((other) => other !== record).map((other) => {
225
+ const rest = group.filter((other) => other !== record);
226
+ const others = rest.map((other) => {
225
227
  const at = onRecord(other);
226
228
  return at.line === void 0 ? at.file : `${at.file}:${String(at.line)}`;
227
229
  });
228
230
  drafts.push({
229
231
  rule: "duplicate-id",
230
232
  message: `id: "${record.id}" is also the id of ${others.join(", ")}.`,
231
- fix: "Give each record its own id.",
233
+ fix: rest.every((other) => !owns(other.file)) ? "That record is borrowed from outside this repository. Remove this copy, or give it its own id." : "Give each record its own id.",
232
234
  ...located(onRecord(record)),
233
235
  id: record.id
234
236
  });
@@ -303,7 +305,7 @@ function checkStrategySet(set, opts = {}) {
303
305
  const findings = [];
304
306
  for (const draft of drafts) {
305
307
  const level = levels[draft.rule];
306
- if (level === "off") continue;
308
+ if (level === "off" || !owns(draft.file)) continue;
307
309
  findings.push({
308
310
  rule: draft.rule,
309
311
  ruleId: ruleId(draft.rule),
@@ -362,6 +364,10 @@ function resolveSteps(set, ctx = {}, index = indexSet(set)) {
362
364
  const out = /* @__PURE__ */ new Map();
363
365
  for (const record of set.records) {
364
366
  if (record.type !== "journey" || record.steps === void 0) continue;
367
+ if (ctx.owns?.(record.file) === false) {
368
+ out.set(record, record.steps.map((step) => ({ ...step, state: "unchecked" })));
369
+ continue;
370
+ }
365
371
  const naming = new Set(index.pagesNaming(record).map(posix));
366
372
  out.set(
367
373
  record,
@@ -482,9 +488,6 @@ async function resolveStrategyRun(opts) {
482
488
  };
483
489
  }
484
490
 
485
- // src/strategy/commands/run.ts
486
- import { isAbsolute, relative as relative2, resolve as resolve4 } from "node:path";
487
-
488
491
  // src/strategy/core/load-set.ts
489
492
  import { readFile } from "node:fs/promises";
490
493
  import { extname, resolve as resolve3 } from "node:path";
@@ -622,6 +625,7 @@ async function loadStrategySet(opts) {
622
625
  line: 1,
623
626
  ...declaredId === void 0 ? {} : { idAt: at("/id") },
624
627
  parents: declares.type === "audience" ? [] : valuesOf(data, PARENTS[declares.type]).map(({ value, pointer }) => ({ value, ...at(pointer) })),
628
+ data,
625
629
  ...steps.length === 0 ? {} : { steps }
626
630
  };
627
631
  set.records.push(record);
@@ -646,6 +650,16 @@ async function loadStrategySet(opts) {
646
650
  }
647
651
 
648
652
  // src/strategy/commands/run.ts
653
+ import { isAbsolute, relative as relative2, resolve as resolve4, sep } from "node:path";
654
+ function ownedIn(dirs, base) {
655
+ return (file) => {
656
+ if (file.startsWith("<")) return true;
657
+ return dirs.some((dir) => {
658
+ const rel = relative2(dir, resolve4(base, file));
659
+ return !isAbsolute(rel) && rel !== ".." && !rel.startsWith(`..${sep}`);
660
+ });
661
+ };
662
+ }
649
663
  async function loadStrategy(opts) {
650
664
  const cwd = resolve4(opts.cwd ?? process.cwd());
651
665
  const run = await resolveStrategyRun({
@@ -668,8 +682,10 @@ async function loadStrategy(opts) {
668
682
  ...opts.onNotice === void 0 ? {} : { onNotice: opts.onNotice }
669
683
  });
670
684
  const routes = stepsNeedRoutes(set) && run.configPath !== void 0 ? routesFrom(loadConfig(run.configPath, cwd), run.base) : [];
671
- const steps = resolveSteps(set, { routes, from: run.configDir ?? cwd, base: run.base });
672
- return { cwd, run, set, steps };
685
+ const dir = run.configDir ?? cwd;
686
+ const owns = ownedIn(run.fromCollections ? [dir] : [dir, cwd], run.base);
687
+ const steps = resolveSteps(set, { routes, from: dir, base: run.base, owns });
688
+ return { cwd, run, set, steps, owns };
673
689
  }
674
690
  function formatChoice(value, allowed) {
675
691
  const found = allowed.find((candidate) => candidate === value);
@@ -693,9 +709,10 @@ export {
693
709
  StrategyError,
694
710
  DEFAULT_STRATEGY_BASELINE_PATH,
695
711
  resolveStrategyRun,
712
+ loadStrategySet,
696
713
  loadStrategy,
697
714
  formatChoice,
698
715
  displayPath,
699
716
  plural
700
717
  };
701
- //# sourceMappingURL=chunk-FBIBR4CH.js.map
718
+ //# sourceMappingURL=chunk-ZPKPL52R.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/strategy/core/steps.ts","../src/strategy/core/check.ts","../src/strategy/errors.ts","../src/strategy/core/config.ts","../src/strategy/core/load-set.ts","../src/strategy/commands/run.ts"],"sourcesContent":["/**\n * A journey's `steps:` resolved to the run's pages (proposal 0106). Pure,\n * given the routes: the command core loads `graph.routes`, and only when a\n * step names a `/` route.\n *\n * A `doc` is a repo path, resolved from the config file's directory and named\n * exactly, or a `/` route, resolved by graph's own `resolveRoute`. A scheme\n * URL and a route no mapping covers are not checked. Anything after `#` or\n * `?` is dropped first.\n */\nimport { relative, resolve } from \"node:path\";\nimport { PathIndex, hasScheme, resolveRoute } from \"../../graph/core/analyze.js\";\nimport type { RouteMapping } from \"../../graph/core/config.js\";\nimport type { ResolvedStep, StepState, StrategyRecord, StrategySet, StrategyStep } from \"../types.js\";\nimport { indexSet, type StrategyIndex } from \"./check.js\";\n\nexport interface StepContext {\n /** `graph.routes`, rebased onto the run's base. None leaves every route unchecked. */\n routes?: RouteMapping[];\n /** The directory a repo-path `doc` resolves from: the config file's, else the working directory. */\n from?: string;\n /** The directory the run's labels are relative to. */\n base?: string;\n /** Whether the run owns a file. A borrowed journey's steps name its owner's pages, so each is `unchecked`. */\n owns?: (file: string) => boolean;\n}\n\n/** Each journey with steps to its steps, resolved, in order. */\nexport type StepMap = ReadonlyMap<StrategyRecord, ResolvedStep[]>;\n\nconst posix = (path: string): string => path.replaceAll(\"\\\\\", \"/\");\n\n/** `doc` without its anchor or query. */\nfunction target(doc: string): string {\n return doc.split(/[?#]/, 1)[0] ?? \"\";\n}\n\n/** Whether a step's doc is a site route, which needs `graph.routes`. */\nfunction isRoute(doc: string): boolean {\n return target(doc).startsWith(\"/\");\n}\n\nexport function stepsNeedRoutes(set: StrategySet): boolean {\n return set.records.some((r) => r.steps?.some((s) => s.doc !== undefined && isRoute(s.doc)) === true);\n}\n\n/** What a `doc` names: a page of the run, no page, or nothing this run can check. */\ntype Located = { page: string } | \"none\" | \"unchecked\";\n\nfunction locate(doc: string, pages: ReadonlySet<string>, index: PathIndex, ctx: StepContext): Located {\n if (hasScheme(doc)) return \"unchecked\";\n const path = target(doc);\n if (path.startsWith(\"/\")) {\n const found = resolveRoute(path, ctx.routes ?? [], index);\n if (found === null) return \"unchecked\";\n return found === \"broken\" ? \"none\" : { page: found };\n }\n const label = ctx.from === undefined || ctx.base === undefined ? path : relative(ctx.base, resolve(ctx.from, path));\n const wanted = posix(label);\n return pages.has(wanted) ? { page: wanted } : \"none\";\n}\n\n/** The state table of proposal 0106. `found` is undefined when the step has no `doc`. */\nfunction stateOf(step: StrategyStep, found: Located | undefined, served: boolean): StepState {\n if (found === undefined) return step.exists === true || step.exists === \"partial\" ? \"broken\" : \"unwritten\";\n if (found === \"unchecked\") return step.exists === false ? \"unwritten\" : \"unchecked\";\n if (found === \"none\") return step.exists === false ? \"unwritten\" : \"broken\";\n if (step.exists === \"partial\") return \"partial\";\n return served ? \"served\" : \"unclaimed\";\n}\n\nexport function resolveSteps(set: StrategySet, ctx: StepContext = {}, index: StrategyIndex = indexSet(set)): Map<StrategyRecord, ResolvedStep[]> {\n const pages = new Set((set.pages ?? []).map(posix));\n // `PathIndex` is graph's tiered lookup; a repo path must name its file exactly, so it uses `pages`.\n const routeIndex = new PathIndex(pages);\n const out = new Map<StrategyRecord, ResolvedStep[]>();\n for (const record of set.records) {\n if (record.type !== \"journey\" || record.steps === undefined) continue;\n if (ctx.owns?.(record.file) === false) {\n out.set(record, record.steps.map((step): ResolvedStep => ({ ...step, state: \"unchecked\" })));\n continue;\n }\n const naming = new Set(index.pagesNaming(record).map(posix));\n out.set(\n record,\n record.steps.map((step): ResolvedStep => {\n const found = step.doc === undefined ? undefined : locate(step.doc, pages, routeIndex, ctx);\n const page = typeof found === \"object\" ? found.page : undefined;\n const state = stateOf(step, found, page !== undefined && naming.has(page));\n return { ...step, state, ...(page === undefined ? {} : { page }) };\n }),\n );\n }\n return out;\n}\n\n/** Served steps over steps. */\nexport function coverageOf(steps: readonly ResolvedStep[]): { served: number; steps: number } {\n return { served: steps.filter((s) => s.state === \"served\").length, steps: steps.length };\n}\n","/**\n * `strategy check`'s rules (proposal 0102). Pure: it reads records and\n * references and returns findings, so the command core owns every file and\n * the rules are tested on sets built inline.\n *\n * Ids compare case-folded. A reference field is checked only when the set\n * holds a record of that field's type, so a repo that keeps no audience\n * records keeps free-form `audiences:`. `missing-parent` and the use counts\n * read pages that are not records: a record's own `journeys:` serves nobody.\n *\n * The four step rules (proposal 0106) read each live journey's resolved\n * `steps:`. A draft or archived journey's steps draw nothing.\n *\n * A file the run does not own is borrowed (proposal 0112). Its records and\n * pages resolve values like any other, and no finding is filed in it.\n */\nimport { closestName } from \"../../shared/closest-name.js\";\nimport { RECORD_FIELDS } from \"../../shared/reference-fields.js\";\nimport {\n PAGE_FIELDS,\n PARENTS,\n type At,\n type ChildType,\n type RecordType,\n type ReferenceField,\n type ResolvedStep,\n type StrategyFinding,\n type StrategyRecord,\n type StrategyRule,\n type StrategySet,\n type StrategySeverity,\n} from \"../types.js\";\nimport { guidanceFor, resolveSeverity, ruleId } from \"./severity.js\";\nimport { resolveSteps, type StepMap } from \"./steps.js\";\n\nconst fold = (value: string): string => value.toLowerCase();\n\n/** The type each page field names. */\nconst FIELD_TYPES: Readonly<Record<ReferenceField, RecordType>> = RECORD_FIELDS;\n\n/** The type of a child's parents: an audience for a persona, a persona for a journey. */\nconst parentTypeOf = (type: ChildType): RecordType => FIELD_TYPES[PARENTS[type]];\n\n/** What a set's records and pages say about each other, resolved once for `check`, `list` and `get`. */\nexport interface StrategyIndex {\n /** Whether the set holds a record of this type. */\n has(type: RecordType): boolean;\n /** The record of `type` a value names, case-folded. The first one read wins. */\n resolve(type: RecordType, value: string): StrategyRecord | undefined;\n /** The first record of any type with this id, case-folded. */\n anyWithId(value: string): StrategyRecord | undefined;\n /** The records of the parent type the record's parent field names, each once, in the field's order. */\n parentsOf(record: StrategyRecord): StrategyRecord[];\n /** The records whose parent field names this record, in set order. */\n childrenOf(record: StrategyRecord): StrategyRecord[];\n /** The pages that name this record directly, sorted. Records do not count. */\n pagesNaming(record: StrategyRecord): string[];\n}\n\nexport function indexSet(set: StrategySet): StrategyIndex {\n const byType = new Map<RecordType, Map<string, StrategyRecord>>();\n const byId = new Map<string, StrategyRecord>();\n for (const record of set.records) {\n const ids = byType.get(record.type) ?? new Map<string, StrategyRecord>();\n if (!ids.has(fold(record.id))) ids.set(fold(record.id), record);\n byType.set(record.type, ids);\n if (!byId.has(fold(record.id))) byId.set(fold(record.id), record);\n }\n const resolveIn = (type: RecordType, value: string): StrategyRecord | undefined => byType.get(type)?.get(fold(value));\n const parentsOf = (record: StrategyRecord): StrategyRecord[] => {\n if (record.type === \"audience\") return [];\n const type = parentTypeOf(record.type);\n const found = record.parents.map((p) => resolveIn(type, p.value)).filter((r) => r !== undefined);\n return [...new Set(found)];\n };\n\n const children = new Map<StrategyRecord, StrategyRecord[]>();\n for (const record of set.records) {\n for (const parent of parentsOf(record)) children.set(parent, [...(children.get(parent) ?? []), record]);\n }\n const pages = new Map<StrategyRecord, Set<string>>();\n for (const reference of set.references) {\n if (reference.record) continue;\n const target = resolveIn(FIELD_TYPES[reference.field], reference.value);\n if (target === undefined) continue;\n const named = pages.get(target) ?? new Set<string>();\n named.add(reference.page);\n pages.set(target, named);\n }\n\n return {\n has: (type) => (byType.get(type)?.size ?? 0) > 0,\n resolve: resolveIn,\n anyWithId: (value) => byId.get(fold(value)),\n parentsOf,\n childrenOf: (record) => children.get(record) ?? [],\n pagesNaming: (record) => [...(pages.get(record) ?? [])].sort(),\n };\n}\n\n/** A finding before its level is known: `message` is its identity, `fix` the advice after it. */\ninterface Draft {\n rule: StrategyRule;\n message: string;\n fix?: string;\n file: string;\n line?: number;\n id?: string;\n field?: ReferenceField | \"steps\";\n}\n\n/** `a journey`, `an audience`. */\nfunction article(type: RecordType): string {\n return `${type === \"audience\" ? \"an\" : \"a\"} ${type}`;\n}\n\n/** Where a finding about a whole record sits: its `id:` line, else its first line. */\nfunction onRecord(record: StrategyRecord): At {\n return record.idAt ?? { file: record.file, line: record.line };\n}\n\nfunction located(at: At): At {\n return { file: at.file, ...(at.line === undefined ? {} : { line: at.line }) };\n}\n\n/** The ancestor of `record` of type `type`, walking up each record's first parent. */\nfunction ancestorOf(index: StrategyIndex, record: StrategyRecord, type: RecordType): StrategyRecord | undefined {\n let current = index.parentsOf(record)[0];\n while (current !== undefined && current.type !== type) current = index.parentsOf(current)[0];\n return current;\n}\n\nexport interface CheckStrategySetOptions {\n severity?: Partial<Record<StrategyRule, StrategySeverity>>;\n /** The journeys' steps, resolved. Default: resolved with no routes, each repo path read as a label. */\n steps?: StepMap;\n /** A step's page as a message names it. Default: its label. */\n pagePath?: (page: string) => string;\n /** Whether the run owns a file. A finding in a file it does not own is dropped. Default: every file. */\n owns?: (file: string) => boolean;\n}\n\n/** The step rules' drafts for one live journey. `naming` holds the pages that name it, posix. */\nfunction stepDrafts(\n record: StrategyRecord,\n steps: readonly ResolvedStep[],\n naming: ReadonlySet<string>,\n pagePath: (page: string) => string,\n): Draft[] {\n const drafts: Draft[] = [];\n for (const step of steps) {\n const on = (at: At | undefined): At => located(at ?? { file: step.file, ...(step.line === undefined ? {} : { line: step.line }) });\n const about = { ...on(undefined), id: record.id, field: \"steps\" as const };\n const n = `step ${String(step.n)}`;\n if (step.state === \"broken\") {\n drafts.push(\n step.doc === undefined\n ? {\n rule: \"broken-step\",\n message: `${n}: exists: ${String(step.exists)}, but the step has no doc.`,\n fix: \"Name its page in doc:, or set exists: false.\",\n ...about,\n ...on(step.existsAt),\n }\n : {\n rule: \"broken-step\",\n message: `${n}: doc \"${step.doc}\" names no page.`,\n fix: \"Correct doc, or set exists: false if the page does not exist.\",\n ...about,\n ...on(step.docAt),\n },\n );\n }\n if (step.state === \"unwritten\") {\n drafts.push({\n rule: \"unwritten-step\",\n message: step.doc === undefined ? `${n}: no page carries this stage.` : `${n}: doc \"${step.doc}\" names a page that does not exist.`,\n ...about,\n });\n }\n if (step.page === undefined) continue;\n if (step.exists === false && step.doc !== undefined) {\n drafts.push({\n rule: \"stale-step\",\n message: `${n}: exists: false, but doc \"${step.doc}\" names a page.`,\n fix: \"Set exists: true or partial, or drop exists:.\",\n ...about,\n ...on(step.existsAt),\n });\n }\n if (!naming.has(step.page)) {\n drafts.push({\n rule: \"missing-journey\",\n message: `${n}: ${pagePath(step.page)} does not name \"${record.id}\" in journeys:.`,\n fix: \"Add it to that page's journeys:, or point the step at a page that does.\",\n ...about,\n ...on(step.docAt),\n });\n }\n }\n return drafts;\n}\n\nexport function checkStrategySet(set: StrategySet, opts: CheckStrategySetOptions = {}): StrategyFinding[] {\n const levels = resolveSeverity(opts.severity);\n const owns = opts.owns ?? (() => true);\n const index = indexSet(set);\n const drafts: Draft[] = [];\n\n // The step rules, on each live journey's steps.\n const steps = opts.steps ?? resolveSteps(set, {}, index);\n for (const [record, resolved] of steps) {\n if (record.lifecycle === \"draft\" || record.lifecycle === \"archived\") continue;\n const naming = new Set(index.pagesNaming(record).map((page) => page.replaceAll(\"\\\\\", \"/\")));\n drafts.push(...stepDrafts(record, resolved, naming, opts.pagePath ?? ((page) => page)));\n }\n\n /** The finding for a value that names no record of `type`, or the wrong type of record. */\n const unresolved = (field: ReferenceField, value: string, onRecordField: boolean): Pick<Draft, \"message\" | \"fix\"> => {\n const type = FIELD_TYPES[field];\n const other = index.anyWithId(value);\n if (other !== undefined) {\n const ancestor = ancestorOf(index, other, type);\n const fix =\n ancestor !== undefined\n ? `Did you mean its ${type}, \"${ancestor.id}\"?`\n : onRecordField\n ? \"Correct the value.\"\n : `Move it to ${PAGE_FIELDS[other.type]}:.`;\n return { message: `${field}: \"${value}\" is ${article(other.type)}, not ${article(type)}.`, fix };\n }\n const ids = set.records.filter((r) => r.type === type).map((r) => r.id);\n const nearest = closestName(fold(value), ids.map(fold));\n const suggestion = nearest === undefined ? undefined : ids.find((id) => fold(id) === nearest);\n const add = `Correct the value, or add a record with type: ${type} and id: ${value}.`;\n const fix =\n suggestion === undefined ? add : onRecordField ? `Did you mean \"${suggestion}\"?` : `Did you mean \"${suggestion}\"? ${add}`;\n return { message: `${field}: \"${value}\" names no ${type}.`, fix };\n };\n\n // undefined-reference, on every page's fields, records included.\n for (const reference of set.references) {\n const type = FIELD_TYPES[reference.field];\n if (!index.has(type) || index.resolve(type, reference.value) !== undefined) continue;\n drafts.push({\n rule: \"undefined-reference\",\n ...unresolved(reference.field, reference.value, false),\n ...located(reference),\n field: reference.field,\n });\n }\n // ...and on each value of a record's parent field.\n for (const record of set.records) {\n if (record.type === \"audience\") continue;\n const field = PARENTS[record.type];\n const type = parentTypeOf(record.type);\n if (!index.has(type)) continue;\n for (const parent of record.parents) {\n if (index.resolve(type, parent.value) !== undefined) continue;\n drafts.push({\n rule: \"undefined-reference\",\n ...unresolved(field, parent.value, true),\n ...located(parent),\n id: record.id,\n field,\n });\n }\n }\n\n // duplicate-id: on every record sharing the id, each naming the others.\n const sharing = new Map<string, StrategyRecord[]>();\n for (const record of set.records) sharing.set(fold(record.id), [...(sharing.get(fold(record.id)) ?? []), record]);\n for (const group of sharing.values()) {\n if (group.length < 2) continue;\n for (const record of group) {\n const rest = group.filter((other) => other !== record);\n const others = rest.map((other) => {\n const at = onRecord(other);\n return at.line === undefined ? at.file : `${at.file}:${String(at.line)}`;\n });\n drafts.push({\n rule: \"duplicate-id\",\n message: `id: \"${record.id}\" is also the id of ${others.join(\", \")}.`,\n fix: rest.every((other) => !owns(other.file))\n ? \"That record is borrowed from outside this repository. Remove this copy, or give it its own id.\"\n : \"Give each record its own id.\",\n ...located(onRecord(record)),\n id: record.id,\n });\n }\n }\n\n // missing-parent: per page, one finding per set of parents the page names none of.\n const byPage = new Map<string, typeof set.references>();\n for (const reference of set.references) {\n if (reference.record) continue;\n byPage.set(reference.page, [...(byPage.get(reference.page) ?? []), reference]);\n }\n for (const references of byPage.values()) {\n const named = (field: ReferenceField): Set<string> =>\n new Set(references.filter((r) => r.field === field).map((r) => fold(r.value)));\n const reported = new Set<string>();\n for (const childType of [\"journey\", \"persona\"] as const satisfies readonly ChildType[]) {\n const parentType = parentTypeOf(childType);\n const parentField = PAGE_FIELDS[parentType];\n const has = named(parentField);\n for (const reference of references) {\n if (reference.field !== PAGE_FIELDS[childType]) continue;\n const child = index.resolve(childType, reference.value);\n if (child === undefined) continue;\n const parents = index.parentsOf(child);\n const ids = parents.map((p) => `\"${p.id}\"`).join(\", \");\n const key = `${parentType} ${ids}`;\n if (parents.length === 0 || parents.some((p) => has.has(fold(p.id))) || reported.has(key)) continue;\n reported.add(key);\n const one = parents.length === 1;\n drafts.push({\n rule: \"missing-parent\",\n message: one\n ? `${parentField}: does not name ${ids}, the ${parentType} of ${childType} \"${child.id}\".`\n : `${parentField}: names none of ${ids}, the ${parentField} of ${childType} \"${child.id}\".`,\n fix: `Add ${one ? \"it\" : \"one\"}, or drop \"${child.id}\" from ${PAGE_FIELDS[childType]}:.`,\n ...located(reference),\n field: parentField,\n });\n }\n }\n }\n\n // orphan-record, unserved-journey and unused-record: about whole records.\n for (const record of set.records) {\n const at = located(onRecord(record));\n if (record.type !== \"audience\" && record.parents.length === 0 && index.has(parentTypeOf(record.type))) {\n const field = PARENTS[record.type];\n drafts.push({\n rule: \"orphan-record\",\n message: `${field}: missing, so this ${record.type} belongs to no ${parentTypeOf(record.type)}.`,\n fix: `Name one with ${field}:.`,\n ...at,\n id: record.id,\n field,\n });\n }\n // Only the first record with an id is the one references resolve to.\n if (index.resolve(record.type, record.id) !== record) continue;\n const pages = index.pagesNaming(record);\n // A draft journey is not live yet, and an archived one no longer is, so neither owes a page.\n const live = record.lifecycle !== \"draft\" && record.lifecycle !== \"archived\";\n if (record.type === \"journey\" && live && pages.length === 0) {\n drafts.push({\n rule: \"unserved-journey\",\n message: \"no page names this journey in journeys:.\",\n fix: \"Name it on the pages that serve it.\",\n ...at,\n id: record.id,\n });\n }\n if (record.type !== \"journey\" && pages.length === 0 && index.childrenOf(record).length === 0) {\n drafts.push({\n rule: \"unused-record\",\n message: `no page and no record names this ${record.type}.`,\n ...at,\n id: record.id,\n });\n }\n }\n\n const findings: StrategyFinding[] = [];\n for (const draft of drafts) {\n const level = levels[draft.rule];\n if (level === \"off\" || !owns(draft.file)) continue;\n findings.push({\n rule: draft.rule,\n ruleId: ruleId(draft.rule),\n severity: level,\n message: draft.fix === undefined ? draft.message : `${draft.message} ${draft.fix}`,\n ...(draft.fix === undefined ? {} : { key: draft.message }),\n guidance: guidanceFor(draft.rule),\n file: draft.file,\n ...(draft.line === undefined ? {} : { line: draft.line }),\n ...(draft.id === undefined ? {} : { id: draft.id }),\n ...(draft.field === undefined ? {} : { field: draft.field }),\n });\n }\n return findings.sort(compareFindings);\n}\n\nfunction compareText(a: string, b: string): number {\n return a < b ? -1 : a > b ? 1 : 0;\n}\n\nexport function compareFindings(a: StrategyFinding, b: StrategyFinding): number {\n return (\n compareText(a.file, b.file) ||\n (a.line ?? 0) - (b.line ?? 0) ||\n compareText(a.ruleId, b.ruleId) ||\n compareText(a.message, b.message)\n );\n}\n","import { ToolError } from \"../shared/errors.js\";\n\n/** An operational or usage error in the strategy tool: exit 2. */\nexport class StrategyError extends ToolError {\n constructor(message: string) {\n super(message);\n this.name = \"StrategyError\";\n }\n}\n","/**\n * The `strategy:` section of manni.config.yaml, and the run resolution every\n * command shares (proposal 0102). Its keys mirror `term:`'s, and so do its\n * refusals: unknown keys, rules or levels are errors that name what is\n * supported and never echo a value. The document set is the family\n * `collections:`, so `paths` and `exclude` are refused by name.\n */\nimport { resolve } from \"node:path\";\nimport { selectCollections } from \"../../shared/collections.js\";\nimport { findConfigFile, readConfigFile, type ConfigFile, type ConfigFileOptions } from \"../../shared/config-file.js\";\nimport { SEVERITIES } from \"../../shared/severity.js\";\nimport { StrategyError } from \"../errors.js\";\nimport {\n STRATEGY_RULES,\n type StrategyConfig,\n type StrategyRule,\n type StrategyRun,\n type StrategySeverity,\n} from \"../types.js\";\nimport { isStrategyRule } from \"./severity.js\";\n\nexport const STRATEGY_SECTION = \"strategy\";\n\nexport const DEFAULT_STRATEGY_BASELINE_PATH = \".manni-strategy-baseline.json\";\n\n/** The keys `strategy:` accepts, in the order the reference lists them. */\nconst CONFIG_KEYS: readonly (keyof StrategyConfig)[] = [\"severity\", \"baseline\", \"allowEmpty\", \"respectGitignore\"];\n\n/** Keys that belong to the family, refused by name with where they live. */\nconst COLLECTION_KEYS: readonly string[] = [\"paths\", \"exclude\"];\n\n/** The family scale, least severe first, then `off`. */\nconst SEVERITY_LEVELS: readonly StrategySeverity[] = [...SEVERITIES, \"off\"];\n\nconst CONFIG_FILE: ConfigFileOptions = {\n section: STRATEGY_SECTION,\n legacyNames: [],\n toError: (message) => new StrategyError(message),\n};\n\nfunction isMapping(value: unknown): value is Record<string, unknown> {\n return typeof value === \"object\" && value !== null && !Array.isArray(value);\n}\n\nfunction isLevel(value: unknown): value is StrategySeverity {\n return typeof value === \"string\" && (SEVERITY_LEVELS as readonly string[]).includes(value);\n}\n\nfunction rejectUnknownKeys(obj: Record<string, unknown>, allowed: readonly string[], where: string, source: string): void {\n for (const key of Object.keys(obj)) {\n if (!allowed.includes(key)) {\n throw new StrategyError(`Unknown key \"${key}\" under ${where}: in ${source}. Supported keys: ${allowed.join(\", \")}.`);\n }\n }\n}\n\n/** A type error names the key and the type it wanted, never the value, which could be a pasted secret. */\nfunction wrongType(key: string, expected: string, source: string): StrategyError {\n return new StrategyError(`strategy.${key} in ${source} must be ${expected}.`);\n}\n\nfunction asBoolean(value: unknown, key: string, source: string): boolean {\n if (typeof value !== \"boolean\") throw wrongType(key, \"a boolean\", source);\n return value;\n}\n\nfunction parseSeverity(value: unknown, source: string): Partial<Record<StrategyRule, StrategySeverity>> {\n if (!isMapping(value)) throw wrongType(\"severity\", \"a mapping\", source);\n rejectUnknownKeys(value, STRATEGY_RULES, \"strategy.severity\", source);\n const severity: Partial<Record<StrategyRule, StrategySeverity>> = {};\n for (const [rule, level] of Object.entries(value)) {\n if (!isStrategyRule(rule)) continue;\n if (!isLevel(level)) {\n // A level is not a secret, so a string one is quoted back.\n const quoted = typeof level === \"string\" ? ` \"${level}\"` : \"\";\n throw new StrategyError(\n `${source}: strategy.severity.${rule}${quoted} is not a level. Expected ${SEVERITY_LEVELS.join(\" | \")}.`,\n );\n }\n severity[rule] = level;\n }\n return severity;\n}\n\n/** Validate the `strategy:` slice of a family file. `null` is an empty section. */\nexport function parseStrategyConfig(raw: unknown, source: string): StrategyConfig {\n if (raw == null) return {};\n if (!isMapping(raw)) throw new StrategyError(`strategy: in ${source} must be a mapping.`);\n // Before the unknown-key check, which would call a family setting a typo.\n for (const key of COLLECTION_KEYS) {\n if (Object.hasOwn(raw, key)) {\n throw new StrategyError(`${source}: strategy does not carry \"${key}\". Name a collection under collections:.`);\n }\n }\n rejectUnknownKeys(raw, CONFIG_KEYS, \"strategy\", source);\n\n const config: StrategyConfig = {};\n if (raw.severity !== undefined) config.severity = parseSeverity(raw.severity, source);\n if (raw.baseline !== undefined) {\n if (typeof raw.baseline !== \"string\") throw wrongType(\"baseline\", \"a string\", source);\n config.baseline = raw.baseline;\n }\n if (raw.allowEmpty !== undefined) config.allowEmpty = asBoolean(raw.allowEmpty, \"allowEmpty\", source);\n if (raw.respectGitignore !== undefined) {\n config.respectGitignore = asBoolean(raw.respectGitignore, \"respectGitignore\", source);\n }\n return config;\n}\n\nexport interface StrategyRunOptions {\n cwd: string;\n /** `-c/--config`. */\n configPath?: string;\n /** Positional inputs; empty means fall back to the selected collections' `paths:`. */\n inputs: string[];\n /** `--collection <name>`, repeatable. Empty means every declared collection. */\n collection?: string[];\n}\n\nconst STDIN = \"-\";\n\n/** Which config governs the run, and what to resolve from where. */\nexport async function resolveStrategyRun(opts: StrategyRunOptions): Promise<StrategyRun> {\n const cwd = resolve(opts.cwd);\n const wanted = opts.collection ?? [];\n if (wanted.length > 0 && opts.inputs.some((input) => input !== STDIN)) {\n throw new StrategyError(\"--collection selects a configured collection; it cannot be combined with paths.\");\n }\n\n const file: ConfigFile | null = opts.configPath\n ? await readConfigFile(opts.configPath, cwd, CONFIG_FILE)\n : await findConfigFile(cwd, CONFIG_FILE);\n if (wanted.length > 0 && file === null) {\n throw new StrategyError(\"--collection needs a config file to select from.\");\n }\n const config = file === null ? null : parseStrategyConfig(file.value, file.source);\n\n const collections = file\n ? selectCollections(file.collections, wanted, file.source, (message) => new StrategyError(message))\n : [];\n const fromCollections = opts.inputs.length === 0;\n const inputs = fromCollections ? collections.flatMap((c) => c.paths) : opts.inputs;\n const base = fromCollections && inputs.length > 0 && file ? file.dir : cwd;\n\n return {\n config,\n inputs,\n base,\n collections,\n fromCollections,\n ...(file ? { configDir: file.dir, configPath: file.path, configSource: file.source, configFile: file } : {}),\n };\n}\n","/**\n * Load a strategy set: resolve the run's files, extract each one's metadata\n * with meta's extractor, merge in what its `{page}.meta.yaml` manifests\n * supply through `metaPageView`, and read the records and references out of\n * the merged view. Every value's file and line come from `declaredAt`, so a\n * value a sidecar holds is filed at the sidecar's line.\n *\n * A file that cannot be read or parsed is an error, not a skip: a set that\n * quietly lost a record would report the pages naming it as broken.\n */\nimport { readFile } from \"node:fs/promises\";\nimport { extname, resolve } from \"node:path\";\nimport {\n STDIN_LABEL,\n STDIN_TOKEN,\n assertNonEmpty,\n declaredAt,\n extractorByName,\n extractorForExtension,\n gitignoreOptions,\n metaPageView,\n resolveTargetSet,\n supportedExtensions,\n} from \"../../meta/internal.js\";\nimport type { ExtractedMetadata } from \"../../meta/index.js\";\nimport { STDIN_REQUIRES_AS } from \"../../shared/cli-options.js\";\nimport { errorMessage } from \"../../shared/errors.js\";\nimport { readRecord } from \"../../shared/reference-fields.js\";\nimport { StrategyError } from \"../errors.js\";\nimport {\n PAGE_FIELDS,\n PARENTS,\n type At,\n type StrategyRecord,\n type StrategyReference,\n type StrategyRun,\n type StrategySet,\n type StrategyStep,\n} from \"../types.js\";\n\nexport interface LoadStrategySetOptions {\n run: StrategyRun;\n /** Stdin's content, when `-` is among the run's inputs. */\n stdin?: string;\n /** `--as <format>`, which stdin needs. */\n as?: string;\n /** `--exclude <glob>`, repeatable. */\n exclude?: string[];\n /** `--ext <list>`: the extensions a directory or glob walk keeps. */\n exts?: string[];\n /** `--allow-empty`: wins over `strategy.allowEmpty`. */\n allowEmpty?: boolean;\n /** `--no-gitignore`. */\n noGitignore?: boolean;\n onNotice?: (message: string) => void;\n}\n\ninterface Extracted {\n label: string;\n extracted: ExtractedMetadata;\n}\n\nfunction text(value: unknown): string | undefined {\n return typeof value === \"string\" && value.trim() !== \"\" ? value : undefined;\n}\n\nfunction extract(content: string, label: string, path: string | undefined, format: string): Extracted {\n const extractor = extractorByName(format);\n if (extractor === undefined) throw new StrategyError(`${label}: no reader for format \"${format}\".`);\n try {\n return { label, extracted: extractor.extract(content, path ?? label) };\n } catch (error) {\n throw new StrategyError(`${label}: could not be read as ${format}: ${errorMessage(error)}`);\n }\n}\n\nasync function readInput(path: string, label: string): Promise<string> {\n try {\n return await readFile(path, \"utf8\");\n } catch (error) {\n throw new StrategyError(`${label}: could not be read: ${errorMessage(error)}`);\n }\n}\n\n/** The files the run names, extracted. Stdin comes last, as one more input. */\nasync function extractAll(opts: LoadStrategySetOptions, allowEmpty: boolean): Promise<Extracted[]> {\n const { run } = opts;\n const exclude = opts.exclude ?? [];\n const usingStdin = run.inputs.includes(STDIN_TOKEN);\n const inputs = run.inputs.filter((input) => input !== STDIN_TOKEN);\n if (usingStdin && (opts.as === undefined || opts.as === \"\")) throw new StrategyError(STDIN_REQUIRES_AS);\n if (inputs.length === 0 && !usingStdin) {\n throw new StrategyError(\n \"No files to read. Pass paths/globs, or declare a collection under `collections:` in manni.config.yaml.\",\n );\n }\n\n const out: Extracted[] = [];\n if (inputs.length > 0) {\n const { files, gitignoreSkipped } = await resolveTargetSet({\n inputs,\n cwd: run.base,\n exclude,\n exts: opts.exts ?? supportedExtensions(),\n allowEmpty,\n ...gitignoreOptions({\n ...(opts.noGitignore === true ? { flag: false } : {}),\n ...(run.config?.respectGitignore === undefined ? {} : { configured: run.config.respectGitignore }),\n ...(opts.onNotice ? { onNotice: opts.onNotice } : {}),\n }),\n });\n assertNonEmpty({\n files,\n inputs,\n usingStdin,\n allowEmpty,\n exclude,\n ...(opts.exts === undefined ? {} : { exts: opts.exts }),\n gitignoreSkipped,\n action: \"read\",\n });\n for (const file of files) {\n const extractor = extractorForExtension(extname(file));\n if (extractor === undefined) {\n throw new StrategyError(`${file}: no reader for its extension. Pass --as <format> through stdin to read it.`);\n }\n const path = resolve(run.base, file);\n out.push(extract(await readInput(path, file), file, path, extractor.name));\n }\n }\n if (usingStdin && opts.as !== undefined) out.push(extract(opts.stdin ?? \"\", STDIN_LABEL, undefined, opts.as));\n return out;\n}\n\n/** One value or a list of them, with the pointer each sits at. Anything else contributes nothing. */\nfunction valuesOf(data: Record<string, unknown>, field: string): { value: string; pointer: string }[] {\n const raw = data[field];\n if (typeof raw === \"string\") return raw.trim() === \"\" ? [] : [{ value: raw, pointer: `/${field}` }];\n if (!Array.isArray(raw)) return [];\n return raw.flatMap((item: unknown, i) =>\n typeof item === \"string\" && item.trim() !== \"\" ? [{ value: item, pointer: `/${field}/${String(i)}` }] : [],\n );\n}\n\n/**\n * A journey's `steps:`, each mapping item with the fields of their type and\n * the lines they sit on. A step is numbered by its position in the list.\n */\nfunction stepsOf(data: Record<string, unknown>, at: (pointer: string) => At): StrategyStep[] {\n const raw = data[\"steps\"];\n if (!Array.isArray(raw)) return [];\n return raw.flatMap((item: unknown, i): StrategyStep[] => {\n if (typeof item !== \"object\" || item === null || Array.isArray(item)) return [];\n const fields = item as Record<string, unknown>;\n const pointer = `/steps/${String(i)}`;\n const stage = text(fields[\"stage\"]);\n const doc = text(fields[\"doc\"]);\n const note = text(fields[\"note\"]);\n const exists = fields[\"exists\"];\n const known = exists === true || exists === false || exists === \"partial\" ? exists : undefined;\n return [\n {\n n: i + 1,\n ...(stage === undefined ? {} : { stage }),\n ...(doc === undefined ? {} : { doc }),\n ...(known === undefined ? {} : { exists: known }),\n ...(note === undefined ? {} : { note }),\n ...at(pointer),\n ...(doc === undefined ? {} : { docAt: at(`${pointer}/doc`) }),\n ...(known === undefined ? {} : { existsAt: at(`${pointer}/exists`) }),\n },\n ];\n });\n}\n\nexport async function loadStrategySet(opts: LoadStrategySetOptions): Promise<StrategySet> {\n const { run } = opts;\n const allowEmpty = opts.allowEmpty ?? run.config?.allowEmpty === true;\n const inputs = await extractAll(opts, allowEmpty);\n\n // Meta's view over the same config file, so a sidecar counts exactly as\n // `manni meta validate` merges it. Labels are relative to the run's base.\n const view = await metaPageView({\n cwd: run.base,\n ...(run.configPath === undefined ? { noConfig: true } : { configPath: run.configPath }),\n pages: inputs.filter((i) => i.label !== STDIN_LABEL).map((i) => resolve(run.base, i.label)),\n });\n\n const pages: string[] = [];\n const set: StrategySet = { records: [], references: [], pages };\n for (const { label, extracted } of inputs) {\n const merged = await view.merge(label, extracted);\n const data = merged.extracted.data;\n const at = (pointer: string): At => declaredAt(label, pointer, { extracted: merged.extracted, locate: merged.locate });\n const declares = readRecord(data, label);\n const type = declares?.type;\n const isRecord = declares !== undefined;\n\n if (declares !== undefined) {\n const declaredId = text(data[\"id\"]);\n const title = text(data[\"title\"]);\n const description = text(data[\"description\"]);\n const lifecycle = text(data[\"lifecycle\"]);\n const steps = type === \"journey\" ? stepsOf(data, at) : [];\n const record: StrategyRecord = {\n id: declares.id,\n type: declares.type,\n ...(title === undefined ? {} : { title }),\n ...(description === undefined ? {} : { description }),\n ...(lifecycle === undefined ? {} : { lifecycle }),\n file: label,\n line: 1,\n ...(declaredId === undefined ? {} : { idAt: at(\"/id\") }),\n parents:\n declares.type === \"audience\"\n ? []\n : valuesOf(data, PARENTS[declares.type]).map(({ value, pointer }) => ({ value, ...at(pointer) })),\n data,\n ...(steps.length === 0 ? {} : { steps }),\n };\n set.records.push(record);\n } else {\n pages.push(label);\n }\n\n // A journey's `personas:` is its parent field, read above, so it is not a reference too.\n const parentField = type !== undefined && type !== \"audience\" ? PARENTS[type] : undefined;\n for (const field of Object.values(PAGE_FIELDS)) {\n if (field === parentField) continue;\n for (const { value, pointer } of valuesOf(data, field)) {\n const reference: StrategyReference = { field, value, page: label, record: isRecord, ...at(pointer) };\n set.references.push(reference);\n }\n }\n }\n\n if (set.records.length === 0 && !allowEmpty) {\n throw new StrategyError(\n \"no strategy records found. A record is a page declaring type: audience, type: persona or type: journey.\",\n );\n }\n return set;\n}\n","/**\n * What every `manni strategy` command core shares: resolve the run and load\n * the set. Kept free of commander and of stdout, so a core is called directly\n * by its tests; the CLI reads stdin once and hands it in.\n */\nimport { isAbsolute, relative, resolve, sep } from \"node:path\";\nimport { loadConfig } from \"../../graph/core/config.js\";\nimport { routesFrom } from \"../../graph/core/discover.js\";\nimport { resolveStrategyRun } from \"../core/config.js\";\nimport { loadStrategySet } from \"../core/load-set.js\";\nimport { resolveSteps, stepsNeedRoutes, type StepMap } from \"../core/steps.js\";\nimport { StrategyError } from \"../errors.js\";\nimport type { StrategyRun, StrategySet } from \"../types.js\";\n\n/** The inputs and flags `list`, `get` and `check` share. */\nexport interface StrategyCommandOptions {\n /** Default `process.cwd()`. */\n cwd?: string;\n /** Positional `[paths...]`; `-` is stdin. Empty falls back to the collections. */\n inputs: string[];\n /** Stdin's content, read once by the CLI when `-` is among the inputs. */\n stdin?: string;\n /** `--as <format>`. */\n as?: string;\n /** `--exclude <glob>`, repeatable. */\n exclude?: string[];\n /** `--ext <list>`, already split. */\n exts?: string[];\n /** `--allow-empty`. */\n allowEmpty?: boolean;\n /** `--no-gitignore`. */\n noGitignore?: boolean;\n /** `--collection <name>`, repeatable. */\n collection?: string[];\n /** `-c, --config <path>`. */\n configPath?: string;\n onNotice?: (message: string) => void;\n}\n\nexport interface LoadedStrategy {\n cwd: string;\n run: StrategyRun;\n set: StrategySet;\n /** Each journey's steps, resolved against the run's pages. */\n steps: StepMap;\n /** Whether the run owns a file it read. One it does not own is borrowed. */\n owns: (file: string) => boolean;\n}\n\n/**\n * Whether a label sits inside one of `dirs`, the run's directory: the config\n * file's, else the working directory. A file outside, above it or on another\n * drive, is borrowed (proposal 0112), the boundary `isMember` draws.\n */\nexport function ownedIn(dirs: readonly string[], base: string): (file: string) => boolean {\n return (file) => {\n if (file.startsWith(\"<\")) return true;\n return dirs.some((dir) => {\n const rel = relative(dir, resolve(base, file));\n return !isAbsolute(rel) && rel !== \"..\" && !rel.startsWith(`..${sep}`);\n });\n };\n}\n\nexport async function loadStrategy(opts: StrategyCommandOptions): Promise<LoadedStrategy> {\n const cwd = resolve(opts.cwd ?? process.cwd());\n const run = await resolveStrategyRun({\n cwd,\n inputs: opts.inputs,\n ...(opts.configPath === undefined ? {} : { configPath: opts.configPath }),\n ...(opts.collection === undefined ? {} : { collection: opts.collection }),\n });\n // A collection's `exclude:` shapes the collection, so it applies when the\n // inputs came from the collections and never to a path the operator typed.\n const exclude = [\n ...new Set([...(opts.exclude ?? []), ...(run.fromCollections ? run.collections.flatMap((c) => c.exclude) : [])]),\n ];\n const set = await loadStrategySet({\n run,\n exclude,\n ...(opts.exts === undefined ? {} : { exts: opts.exts }),\n ...(opts.allowEmpty === true ? { allowEmpty: true } : {}),\n ...(opts.noGitignore === true ? { noGitignore: true } : {}),\n ...(opts.stdin === undefined ? {} : { stdin: opts.stdin }),\n ...(opts.as === undefined ? {} : { as: opts.as }),\n ...(opts.onNotice === undefined ? {} : { onNotice: opts.onNotice }),\n });\n // `graph:` is read only when a step names a `/` route, and through graph's own loader.\n const routes = stepsNeedRoutes(set) && run.configPath !== undefined ? routesFrom(loadConfig(run.configPath, cwd), run.base) : [];\n // A path the operator typed resolves from the working directory, so a typed\n // run owns that directory too, as it did when `-c` names a config elsewhere.\n const dir = run.configDir ?? cwd;\n const owns = ownedIn(run.fromCollections ? [dir] : [dir, cwd], run.base);\n const steps = resolveSteps(set, { routes, from: dir, base: run.base, owns });\n return { cwd, run, set, steps, owns };\n}\n\n/** `value` when it is one of `allowed`, else the family's unknown-format refusal. */\nexport function formatChoice<T extends string>(value: string, allowed: readonly T[]): T {\n const found = allowed.find((candidate) => candidate === value);\n if (found === undefined) throw new StrategyError(`unknown format \"${value}\". Expected ${allowed.join(\" | \")}.`);\n return found;\n}\n\n/**\n * A path as a person standing in `cwd` would type it: relative, posix. A\n * label is relative to the run's base, which is the config directory for a\n * collection run, so it is resolved from there first.\n */\nexport function displayPath(path: string, cwd: string, base = cwd): string {\n if (path.startsWith(\"<\")) return path;\n const rel = relative(cwd, isAbsolute(path) ? path : resolve(base, path));\n return (rel === \"\" ? \".\" : rel).replaceAll(\"\\\\\", \"/\");\n}\n\n/** `1 record`, `2 records`. */\nexport function plural(n: number, one: string, many = `${one}s`): string {\n return `${String(n)} ${n === 1 ? one : many}`;\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAUA,SAAS,UAAU,eAAe;;;ACyBlC,IAAM,OAAO,CAAC,UAA0B,MAAM,YAAY;AAG1D,IAAM,cAA4D;AAGlE,IAAM,eAAe,CAAC,SAAgC,YAAY,QAAQ,IAAI,CAAC;AAkBxE,SAAS,SAAS,KAAiC;AACxD,QAAM,SAAS,oBAAI,IAA6C;AAChE,QAAM,OAAO,oBAAI,IAA4B;AAC7C,aAAW,UAAU,IAAI,SAAS;AAChC,UAAM,MAAM,OAAO,IAAI,OAAO,IAAI,KAAK,oBAAI,IAA4B;AACvE,QAAI,CAAC,IAAI,IAAI,KAAK,OAAO,EAAE,CAAC,EAAG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