@hawkeyexl/manni 4.24.0 → 4.26.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 (226) hide show
  1. package/README.md +1 -1
  2. package/dist/{batch-KWVJWSOE.js → batch-73GPXFCX.js} +12 -12
  3. package/dist/{build-VPEIOEHC.js → build-ZEYCJ55W.js} +13 -13
  4. package/dist/{calibrate-DRQLK53T.js → calibrate-S66OAAZ5.js} +13 -13
  5. package/dist/{capture-GNPDAZHH.js → capture-IH6BX3FO.js} +12 -12
  6. package/dist/{check-ACHNMW6J.js → check-4G4WFHDZ.js} +10 -10
  7. package/dist/check-4ZUGDB5Z.js +57 -0
  8. package/dist/{check-BVH7A764.js → check-MA6TH3GO.js} +13 -13
  9. package/dist/{check-M27BITCI.js → check-PKVUFN7I.js} +22 -22
  10. package/dist/{check-ZTCCQ2TA.js → check-Y7VDFZ3R.js} +12 -12
  11. package/dist/{chunk-RHSQ3RRA.js → chunk-2F47BMSN.js} +6 -6
  12. package/dist/{chunk-KKASKZUG.js → chunk-2ORLQ65P.js} +2 -2
  13. package/dist/{chunk-EN4RGJDD.js → chunk-3XJMAXFD.js} +2 -2
  14. package/dist/{chunk-XYNYBH3M.js → chunk-5JNBBFCJ.js} +3 -3
  15. package/dist/{chunk-2UT6FSV5.js → chunk-5Y36Q7L3.js} +3 -3
  16. package/dist/{chunk-2AWYKLQR.js → chunk-673DIB5M.js} +2 -2
  17. package/dist/{chunk-3TGXVNYA.js → chunk-7YOQ7CHX.js} +5 -5
  18. package/dist/{chunk-ICTXBS5U.js → chunk-AQ37Z5S7.js} +8 -8
  19. package/dist/{chunk-LK5TELK3.js → chunk-BH3Q4NIW.js} +6 -6
  20. package/dist/{chunk-RPHOBLOQ.js → chunk-BQZMVGMD.js} +3 -3
  21. package/dist/{chunk-FDMEBSDY.js → chunk-CFQFQMFQ.js} +6 -6
  22. package/dist/{chunk-JBY3ZYV4.js → chunk-D5HBGAJO.js} +2 -2
  23. package/dist/{chunk-DCHYTN2R.js → chunk-DN4Z75UV.js} +6 -6
  24. package/dist/{chunk-W5TFTVPG.js → chunk-DXSQNPDO.js} +2 -2
  25. package/dist/{chunk-KVLOTBQR.js → chunk-ENMUYW7L.js} +2 -2
  26. package/dist/{chunk-KVLOTBQR.js.map → chunk-ENMUYW7L.js.map} +1 -1
  27. package/dist/{chunk-OQSY6VHV.js → chunk-EVAQV2RS.js} +4 -4
  28. package/dist/{chunk-ZOVUANFB.js → chunk-FEIGSSQ7.js} +2 -2
  29. package/dist/{chunk-5C5UNRZF.js → chunk-FPPWHNZ5.js} +5 -5
  30. package/dist/{chunk-5RRP5CQR.js → chunk-FWATOGLB.js} +3 -3
  31. package/dist/{chunk-SRAFH7QS.js → chunk-GK5QK3IF.js} +5 -5
  32. package/dist/{chunk-7O6TTSOO.js → chunk-GM7EPWKF.js} +4 -4
  33. package/dist/{chunk-SOY53WQN.js → chunk-GVFYHQNU.js} +3 -3
  34. package/dist/{chunk-A322P5GM.js → chunk-H6AM45TQ.js} +9 -8
  35. package/dist/chunk-H6AM45TQ.js.map +1 -0
  36. package/dist/{chunk-EWBVN4XX.js → chunk-HACH3GJV.js} +7 -7
  37. package/dist/{chunk-Z236YJ2V.js → chunk-HNKLJEY3.js} +7 -7
  38. package/dist/{chunk-OWDVSQAU.js → chunk-HZVACS6Y.js} +4 -4
  39. package/dist/{chunk-PDL6IO4Z.js → chunk-I65R3UL2.js} +2 -2
  40. package/dist/{chunk-DILBGKLL.js → chunk-JCCAP2K5.js} +29 -12
  41. package/dist/chunk-JCCAP2K5.js.map +1 -0
  42. package/dist/{chunk-D4HY64LX.js → chunk-JIM64GRP.js} +4 -4
  43. package/dist/{chunk-WCRZHFCI.js → chunk-K6M457GI.js} +13 -13
  44. package/dist/{chunk-UU7W7VJ7.js → chunk-L2RXUSL4.js} +7 -7
  45. package/dist/chunk-L2RXUSL4.js.map +1 -0
  46. package/dist/{chunk-MVZYZOYN.js → chunk-M3R6EMDB.js} +5 -5
  47. package/dist/{chunk-OF3YEKYT.js → chunk-MWNXMKNA.js} +5 -5
  48. package/dist/{chunk-CRCMXSQR.js → chunk-NDECFYTO.js} +3 -3
  49. package/dist/{chunk-BKJ6JPQF.js → chunk-NFEMECPD.js} +2 -2
  50. package/dist/{chunk-EZBMIWUP.js → chunk-NQMMBRSO.js} +7 -5
  51. package/dist/chunk-NQMMBRSO.js.map +1 -0
  52. package/dist/{chunk-RCYH36B6.js → chunk-O3TWUYC7.js} +9 -9
  53. package/dist/{chunk-UMY3IKYT.js → chunk-OGJNZN7H.js} +3 -3
  54. package/dist/{chunk-VF46PE3Z.js → chunk-ORNPHUVC.js} +4 -4
  55. package/dist/{chunk-J5KMZDL6.js → chunk-PWBQZ366.js} +2 -2
  56. package/dist/{chunk-67OVXUT3.js → chunk-QKZR57AL.js} +2 -2
  57. package/dist/{chunk-TIJG2XL6.js → chunk-R5IDF5VI.js} +4 -4
  58. package/dist/{chunk-I3QMDFDG.js → chunk-RCIRH5OX.js} +2 -2
  59. package/dist/{chunk-632W5O3C.js → chunk-RFYVBBSZ.js} +8 -8
  60. package/dist/{chunk-BJH5VPAO.js → chunk-RMX5ABYU.js} +8 -6
  61. package/dist/chunk-RMX5ABYU.js.map +1 -0
  62. package/dist/{chunk-5JAWIM54.js → chunk-RYF7LVMV.js} +2 -2
  63. package/dist/{chunk-45E6J2WY.js → chunk-S7BPXDYK.js} +2 -2
  64. package/dist/{chunk-W4KJPTAN.js → chunk-SONRIIDT.js} +4 -4
  65. package/dist/{chunk-WCHP6QET.js → chunk-TVV7Y5K5.js} +2 -2
  66. package/dist/{chunk-CKXZ3U4S.js → chunk-TX4WHGAB.js} +2 -2
  67. package/dist/{chunk-YLCP5KPU.js → chunk-V2IRL66T.js} +10 -10
  68. package/dist/{chunk-3NPPEVIA.js → chunk-W3MVHHZC.js} +2 -2
  69. package/dist/{chunk-3OHMRGHD.js → chunk-WHOQBGEM.js} +4 -4
  70. package/dist/{chunk-4BWD6PHR.js → chunk-XDB32HB5.js} +8 -8
  71. package/dist/{chunk-NZRNW2XM.js → chunk-XKAOPSW4.js} +12 -9
  72. package/dist/chunk-XKAOPSW4.js.map +1 -0
  73. package/dist/{chunk-X7EDAIOH.js → chunk-XRE5VB6Z.js} +3 -3
  74. package/dist/{chunk-S6RCOR2J.js → chunk-YEDD57EM.js} +4 -4
  75. package/dist/{chunk-IDZXRFBA.js → chunk-Z2S2ITRR.js} +5 -5
  76. package/dist/chunk-Z2S2ITRR.js.map +1 -0
  77. package/dist/{chunk-2RFVMOPC.js → chunk-ZTNEUG6W.js} +7 -7
  78. package/dist/{chunk-RHMOEPNT.js → chunk-ZXEG2XWY.js} +6 -6
  79. package/dist/{chunk-QUO7DWIG.js → chunk-ZYKO35TB.js} +4 -4
  80. package/dist/{cli-IZVNUGGL.js → cli-2C6RTUIN.js} +23 -23
  81. package/dist/{cli-N6GSDCIT.js → cli-FRN4OGCE.js} +12 -12
  82. package/dist/{cli-SZCB4QXF.js → cli-GW3RKHTX.js} +13 -13
  83. package/dist/{cli-5HOVEAYH.js → cli-IZO5ZYZ3.js} +19 -19
  84. package/dist/{cli-7BSAEX34.js → cli-KUU4FMUP.js} +26 -26
  85. package/dist/{cli-KUEEANY6.js → cli-L5NRPLTT.js} +52 -52
  86. package/dist/{cli-YYJCE53Q.js → cli-PPKI5NLD.js} +33 -33
  87. package/dist/{cli-ABUOJTMK.js → cli-S5SN4YAL.js} +2 -2
  88. package/dist/{cli-5ZJ2J4DD.js → cli-SVIPKCW3.js} +7 -7
  89. package/dist/{cli-66SXH7LQ.js → cli-VRD7VSLJ.js} +16 -16
  90. package/dist/{cli-3XDWEQRN.js → cli-XXZ54ASO.js} +27 -27
  91. package/dist/cli.js +15 -15
  92. package/dist/docmeta.js +6 -6
  93. package/dist/{github-6ONVXQ3Y.js → github-AAHZG67W.js} +10 -10
  94. package/dist/github-GLBGKBQN.js +48 -0
  95. package/dist/{github-6TXHICNH.js → github-LCL4NBRO.js} +12 -12
  96. package/dist/index.js +49 -49
  97. package/dist/{json-E5MUPFJ5.js → json-6NWTSNR4.js} +10 -10
  98. package/dist/{json-765JLUSV.js → json-DULBEAUA.js} +13 -13
  99. package/dist/{labels-HF7ZZCNK.js → labels-C63LDU22.js} +9 -9
  100. package/dist/{lint-5IYTCQ4J.js → lint-TAFHMNKZ.js} +10 -10
  101. package/dist/{list-HVSOCIFI.js → list-5ZSE2AJ3.js} +21 -21
  102. package/dist/{list-NJIHE4AI.js → list-GLS47YFL.js} +10 -10
  103. package/dist/{list-XVLMKWVP.js → list-WA743VJJ.js} +12 -12
  104. package/dist/{page-7RQSNZTA.js → page-BEWHXO47.js} +9 -9
  105. package/dist/{prepare-3QURVQY5.js → prepare-46GQSYCE.js} +11 -11
  106. package/dist/{pretty-LUKCTVAG.js → pretty-JVZMEEIQ.js} +10 -10
  107. package/dist/{pretty-EYZFYS4B.js → pretty-RWPMGEMF.js} +12 -12
  108. package/dist/{pretty-JU56KUCB.js → pretty-SXKKDLGL.js} +22 -22
  109. package/dist/{reporters-L445ICCY.js → reporters-BS3BQUC6.js} +4 -4
  110. package/dist/{reporters-QHT2M3PA.js → reporters-EFX3JN4I.js} +9 -9
  111. package/dist/{run-WEGK4L3H.js → run-CQQDF4VU.js} +21 -21
  112. package/dist/{sarif-NPIGVW6V.js → sarif-7LF2XLSR.js} +8 -8
  113. package/dist/sarif-C2M5OB7L.js +49 -0
  114. package/dist/{sarif-VRF3SEOJ.js → sarif-LF2FPLZL.js} +8 -8
  115. package/dist/{strategy-IKURQ4YU.js → strategy-KZUUSUX4.js} +19 -19
  116. package/dist/{term-ZIXHKJJD.js → term-2JFUQ3ZS.js} +15 -15
  117. package/dist/{validate-HBTYACVP.js → validate-ADVPJYLQ.js} +4 -4
  118. package/package.json +1 -1
  119. package/plugin/manni/.claude-plugin/plugin.json +1 -1
  120. package/dist/check-TCDNMHDB.js +0 -57
  121. package/dist/chunk-A322P5GM.js.map +0 -1
  122. package/dist/chunk-BJH5VPAO.js.map +0 -1
  123. package/dist/chunk-DILBGKLL.js.map +0 -1
  124. package/dist/chunk-EZBMIWUP.js.map +0 -1
  125. package/dist/chunk-IDZXRFBA.js.map +0 -1
  126. package/dist/chunk-NZRNW2XM.js.map +0 -1
  127. package/dist/chunk-UU7W7VJ7.js.map +0 -1
  128. package/dist/github-ZBPHVATQ.js +0 -48
  129. package/dist/sarif-STTUROHD.js +0 -49
  130. /package/dist/{batch-KWVJWSOE.js.map → batch-73GPXFCX.js.map} +0 -0
  131. /package/dist/{build-VPEIOEHC.js.map → build-ZEYCJ55W.js.map} +0 -0
  132. /package/dist/{calibrate-DRQLK53T.js.map → calibrate-S66OAAZ5.js.map} +0 -0
  133. /package/dist/{capture-GNPDAZHH.js.map → capture-IH6BX3FO.js.map} +0 -0
  134. /package/dist/{check-ACHNMW6J.js.map → check-4G4WFHDZ.js.map} +0 -0
  135. /package/dist/{check-M27BITCI.js.map → check-4ZUGDB5Z.js.map} +0 -0
  136. /package/dist/{check-BVH7A764.js.map → check-MA6TH3GO.js.map} +0 -0
  137. /package/dist/{check-TCDNMHDB.js.map → check-PKVUFN7I.js.map} +0 -0
  138. /package/dist/{check-ZTCCQ2TA.js.map → check-Y7VDFZ3R.js.map} +0 -0
  139. /package/dist/{chunk-RHSQ3RRA.js.map → chunk-2F47BMSN.js.map} +0 -0
  140. /package/dist/{chunk-KKASKZUG.js.map → chunk-2ORLQ65P.js.map} +0 -0
  141. /package/dist/{chunk-EN4RGJDD.js.map → chunk-3XJMAXFD.js.map} +0 -0
  142. /package/dist/{chunk-XYNYBH3M.js.map → chunk-5JNBBFCJ.js.map} +0 -0
  143. /package/dist/{chunk-2UT6FSV5.js.map → chunk-5Y36Q7L3.js.map} +0 -0
  144. /package/dist/{chunk-2AWYKLQR.js.map → chunk-673DIB5M.js.map} +0 -0
  145. /package/dist/{chunk-3TGXVNYA.js.map → chunk-7YOQ7CHX.js.map} +0 -0
  146. /package/dist/{chunk-ICTXBS5U.js.map → chunk-AQ37Z5S7.js.map} +0 -0
  147. /package/dist/{chunk-LK5TELK3.js.map → chunk-BH3Q4NIW.js.map} +0 -0
  148. /package/dist/{chunk-RPHOBLOQ.js.map → chunk-BQZMVGMD.js.map} +0 -0
  149. /package/dist/{chunk-FDMEBSDY.js.map → chunk-CFQFQMFQ.js.map} +0 -0
  150. /package/dist/{chunk-JBY3ZYV4.js.map → chunk-D5HBGAJO.js.map} +0 -0
  151. /package/dist/{chunk-DCHYTN2R.js.map → chunk-DN4Z75UV.js.map} +0 -0
  152. /package/dist/{chunk-W5TFTVPG.js.map → chunk-DXSQNPDO.js.map} +0 -0
  153. /package/dist/{chunk-OQSY6VHV.js.map → chunk-EVAQV2RS.js.map} +0 -0
  154. /package/dist/{chunk-ZOVUANFB.js.map → chunk-FEIGSSQ7.js.map} +0 -0
  155. /package/dist/{chunk-5C5UNRZF.js.map → chunk-FPPWHNZ5.js.map} +0 -0
  156. /package/dist/{chunk-5RRP5CQR.js.map → chunk-FWATOGLB.js.map} +0 -0
  157. /package/dist/{chunk-SRAFH7QS.js.map → chunk-GK5QK3IF.js.map} +0 -0
  158. /package/dist/{chunk-7O6TTSOO.js.map → chunk-GM7EPWKF.js.map} +0 -0
  159. /package/dist/{chunk-SOY53WQN.js.map → chunk-GVFYHQNU.js.map} +0 -0
  160. /package/dist/{chunk-EWBVN4XX.js.map → chunk-HACH3GJV.js.map} +0 -0
  161. /package/dist/{chunk-Z236YJ2V.js.map → chunk-HNKLJEY3.js.map} +0 -0
  162. /package/dist/{chunk-OWDVSQAU.js.map → chunk-HZVACS6Y.js.map} +0 -0
  163. /package/dist/{chunk-PDL6IO4Z.js.map → chunk-I65R3UL2.js.map} +0 -0
  164. /package/dist/{chunk-D4HY64LX.js.map → chunk-JIM64GRP.js.map} +0 -0
  165. /package/dist/{chunk-WCRZHFCI.js.map → chunk-K6M457GI.js.map} +0 -0
  166. /package/dist/{chunk-MVZYZOYN.js.map → chunk-M3R6EMDB.js.map} +0 -0
  167. /package/dist/{chunk-OF3YEKYT.js.map → chunk-MWNXMKNA.js.map} +0 -0
  168. /package/dist/{chunk-CRCMXSQR.js.map → chunk-NDECFYTO.js.map} +0 -0
  169. /package/dist/{chunk-BKJ6JPQF.js.map → chunk-NFEMECPD.js.map} +0 -0
  170. /package/dist/{chunk-RCYH36B6.js.map → chunk-O3TWUYC7.js.map} +0 -0
  171. /package/dist/{chunk-UMY3IKYT.js.map → chunk-OGJNZN7H.js.map} +0 -0
  172. /package/dist/{chunk-VF46PE3Z.js.map → chunk-ORNPHUVC.js.map} +0 -0
  173. /package/dist/{chunk-J5KMZDL6.js.map → chunk-PWBQZ366.js.map} +0 -0
  174. /package/dist/{chunk-67OVXUT3.js.map → chunk-QKZR57AL.js.map} +0 -0
  175. /package/dist/{chunk-TIJG2XL6.js.map → chunk-R5IDF5VI.js.map} +0 -0
  176. /package/dist/{chunk-I3QMDFDG.js.map → chunk-RCIRH5OX.js.map} +0 -0
  177. /package/dist/{chunk-632W5O3C.js.map → chunk-RFYVBBSZ.js.map} +0 -0
  178. /package/dist/{chunk-5JAWIM54.js.map → chunk-RYF7LVMV.js.map} +0 -0
  179. /package/dist/{chunk-45E6J2WY.js.map → chunk-S7BPXDYK.js.map} +0 -0
  180. /package/dist/{chunk-W4KJPTAN.js.map → chunk-SONRIIDT.js.map} +0 -0
  181. /package/dist/{chunk-WCHP6QET.js.map → chunk-TVV7Y5K5.js.map} +0 -0
  182. /package/dist/{chunk-CKXZ3U4S.js.map → chunk-TX4WHGAB.js.map} +0 -0
  183. /package/dist/{chunk-YLCP5KPU.js.map → chunk-V2IRL66T.js.map} +0 -0
  184. /package/dist/{chunk-3NPPEVIA.js.map → chunk-W3MVHHZC.js.map} +0 -0
  185. /package/dist/{chunk-3OHMRGHD.js.map → chunk-WHOQBGEM.js.map} +0 -0
  186. /package/dist/{chunk-4BWD6PHR.js.map → chunk-XDB32HB5.js.map} +0 -0
  187. /package/dist/{chunk-X7EDAIOH.js.map → chunk-XRE5VB6Z.js.map} +0 -0
  188. /package/dist/{chunk-S6RCOR2J.js.map → chunk-YEDD57EM.js.map} +0 -0
  189. /package/dist/{chunk-2RFVMOPC.js.map → chunk-ZTNEUG6W.js.map} +0 -0
  190. /package/dist/{chunk-RHMOEPNT.js.map → chunk-ZXEG2XWY.js.map} +0 -0
  191. /package/dist/{chunk-QUO7DWIG.js.map → chunk-ZYKO35TB.js.map} +0 -0
  192. /package/dist/{cli-IZVNUGGL.js.map → cli-2C6RTUIN.js.map} +0 -0
  193. /package/dist/{cli-N6GSDCIT.js.map → cli-FRN4OGCE.js.map} +0 -0
  194. /package/dist/{cli-SZCB4QXF.js.map → cli-GW3RKHTX.js.map} +0 -0
  195. /package/dist/{cli-5HOVEAYH.js.map → cli-IZO5ZYZ3.js.map} +0 -0
  196. /package/dist/{cli-7BSAEX34.js.map → cli-KUU4FMUP.js.map} +0 -0
  197. /package/dist/{cli-KUEEANY6.js.map → cli-L5NRPLTT.js.map} +0 -0
  198. /package/dist/{cli-YYJCE53Q.js.map → cli-PPKI5NLD.js.map} +0 -0
  199. /package/dist/{cli-ABUOJTMK.js.map → cli-S5SN4YAL.js.map} +0 -0
  200. /package/dist/{cli-5ZJ2J4DD.js.map → cli-SVIPKCW3.js.map} +0 -0
  201. /package/dist/{cli-66SXH7LQ.js.map → cli-VRD7VSLJ.js.map} +0 -0
  202. /package/dist/{cli-3XDWEQRN.js.map → cli-XXZ54ASO.js.map} +0 -0
  203. /package/dist/{github-6ONVXQ3Y.js.map → github-AAHZG67W.js.map} +0 -0
  204. /package/dist/{github-6TXHICNH.js.map → github-GLBGKBQN.js.map} +0 -0
  205. /package/dist/{github-ZBPHVATQ.js.map → github-LCL4NBRO.js.map} +0 -0
  206. /package/dist/{json-765JLUSV.js.map → json-6NWTSNR4.js.map} +0 -0
  207. /package/dist/{json-E5MUPFJ5.js.map → json-DULBEAUA.js.map} +0 -0
  208. /package/dist/{labels-HF7ZZCNK.js.map → labels-C63LDU22.js.map} +0 -0
  209. /package/dist/{lint-5IYTCQ4J.js.map → lint-TAFHMNKZ.js.map} +0 -0
  210. /package/dist/{list-HVSOCIFI.js.map → list-5ZSE2AJ3.js.map} +0 -0
  211. /package/dist/{list-NJIHE4AI.js.map → list-GLS47YFL.js.map} +0 -0
  212. /package/dist/{list-XVLMKWVP.js.map → list-WA743VJJ.js.map} +0 -0
  213. /package/dist/{page-7RQSNZTA.js.map → page-BEWHXO47.js.map} +0 -0
  214. /package/dist/{prepare-3QURVQY5.js.map → prepare-46GQSYCE.js.map} +0 -0
  215. /package/dist/{pretty-EYZFYS4B.js.map → pretty-JVZMEEIQ.js.map} +0 -0
  216. /package/dist/{pretty-JU56KUCB.js.map → pretty-RWPMGEMF.js.map} +0 -0
  217. /package/dist/{pretty-LUKCTVAG.js.map → pretty-SXKKDLGL.js.map} +0 -0
  218. /package/dist/{reporters-L445ICCY.js.map → reporters-BS3BQUC6.js.map} +0 -0
  219. /package/dist/{reporters-QHT2M3PA.js.map → reporters-EFX3JN4I.js.map} +0 -0
  220. /package/dist/{run-WEGK4L3H.js.map → run-CQQDF4VU.js.map} +0 -0
  221. /package/dist/{sarif-NPIGVW6V.js.map → sarif-7LF2XLSR.js.map} +0 -0
  222. /package/dist/{sarif-STTUROHD.js.map → sarif-C2M5OB7L.js.map} +0 -0
  223. /package/dist/{sarif-VRF3SEOJ.js.map → sarif-LF2FPLZL.js.map} +0 -0
  224. /package/dist/{strategy-IKURQ4YU.js.map → strategy-KZUUSUX4.js.map} +0 -0
  225. /package/dist/{term-ZIXHKJJD.js.map → term-2JFUQ3ZS.js.map} +0 -0
  226. /package/dist/{validate-HBTYACVP.js.map → validate-ADVPJYLQ.js.map} +0 -0
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../src/strategy/reporters/pretty.ts"],"sourcesContent":["/**\n * Human output for every `manni strategy` command. `list` is a tree, `get` a\n * key column, and `check` term's layout: findings grouped under a bold\n * `file:line`, each message wrapped under its own column with the rule's\n * guidance dim beneath it.\n */\nimport { palette, type Colors } from \"../../shared/color.js\";\nimport { guidanceLines } from \"../../shared/guidance.js\";\nimport type { Severity } from \"../../shared/severity.js\";\nimport type { StrategyReport } from \"../commands/findings.js\";\nimport type { RecordEntry } from \"../commands/list.js\";\nimport { displayPath, plural } from \"../commands/run.js\";\nimport { PARENTS, RECORD_TYPES, type ResolvedStep, type StrategyFinding, type StrategyRecord } from \"../types.js\";\n\nconst WIDTH = 80;\n\n/** A record's title, or its id when it has none. */\nexport function titleOf(record: StrategyRecord): string {\n return record.title ?? record.id;\n}\n\n/** `4 audiences, 4 personas, 74 journeys`. */\nexport function countsLine(records: readonly StrategyRecord[]): string {\n return RECORD_TYPES.map((type) => plural(records.filter((r) => r.type === type).length, type)).join(\", \");\n}\n\n// ---------------------------------------------------------------------------\n// list\n\nexport function renderListPretty(entries: readonly RecordEntry[]): string {\n const cell = (e: RecordEntry): string => `${\" \".repeat(e.depth)}${e.record.id}`;\n const recordWidth = Math.max(\"record\".length, ...entries.map((e) => cell(e).length)) + 4;\n const pagesWidth = Math.max(\"pages\".length, ...entries.map((e) => String(e.pages.length).length));\n // The steps column shows only when some journey has steps, so a set without them prints as it always has.\n const covered = (e: RecordEntry): string =>\n e.coverage === undefined ? \"\" : `${String(e.coverage.served)}/${String(e.coverage.steps)}`;\n const stepsWidth = entries.some((e) => e.coverage !== undefined)\n ? Math.max(\"steps\".length, ...entries.map((e) => covered(e).length))\n : 0;\n const row = (record: string, pages: string, steps: string, title: string): string =>\n `${record.padEnd(recordWidth)}${pages.padStart(pagesWidth)} ${stepsWidth === 0 ? \"\" : `${steps.padStart(stepsWidth)} `}${title}`.trimEnd();\n return [\n row(\"record\", \"pages\", \"steps\", \"title\"),\n ...entries.map((e) => row(cell(e), String(e.pages.length), covered(e), titleOf(e.record))),\n // A record under several parents is counted once.\n countsLine([...new Set(entries.map((e) => e.record))]),\n ].join(\"\\n\");\n}\n\n// ---------------------------------------------------------------------------\n// get\n\nconst KEY_WIDTH = 14;\n\n/** Each record as `id title`, the ids padded so the titles line up. */\nfunction recordLines(records: readonly Pick<StrategyRecord, \"id\" | \"title\">[]): string[] {\n const width = Math.max(0, ...records.map((r) => r.id.length)) + 2;\n return records.map((r) => (r.title === undefined ? r.id : `${r.id.padEnd(width)}${r.title}`));\n}\n\n/**\n * Each step as its number, its state padded to nine and its stage. Under it,\n * dim: the page `doc` names, else `doc` as written, then the note.\n */\nfunction stepLines(steps: readonly ResolvedStep[], c: Colors): string[] {\n const numberWidth = Math.max(...steps.map((s) => String(s.n).length));\n const indent = \" \".repeat(numberWidth + 2 + 9 + 2);\n return steps.flatMap((step) => {\n const lines = [`${String(step.n).padEnd(numberWidth)} ${step.state.padEnd(9)} ${step.stage ?? \"\"}`.trimEnd()];\n const where = step.page ?? step.doc;\n if (where !== undefined) lines.push(`${indent}${c.dim(where)}`);\n if (step.note !== undefined) lines.push(`${indent}${c.dim(step.note)}`);\n return lines;\n });\n}\n\nexport function renderGetPretty(entry: RecordEntry, opts: { color: boolean }): string {\n const c = palette(opts.color);\n const { record } = entry;\n const rows: [string, string[]][] = [\n [\"type\", [record.type]],\n [\"id\", [record.id]],\n ];\n if (record.description !== undefined) rows.push([\"description\", [record.description]]);\n if (record.lifecycle !== undefined) rows.push([\"lifecycle\", [record.lifecycle]]);\n if (record.type !== \"audience\" && record.parents.length > 0) {\n // A value no record answers to shows as written.\n const shown = record.parents.map(\n (p) => entry.parents.find((r) => r.id.toLowerCase() === p.value.toLowerCase()) ?? { id: p.value },\n );\n rows.push([PARENTS[record.type], recordLines(shown)]);\n }\n if (entry.children.length > 0) rows.push([record.type === \"audience\" ? \"personas\" : \"journeys\", recordLines(entry.children)]);\n if (entry.steps !== undefined && entry.coverage !== undefined) {\n rows.push([\"steps\", [`${String(entry.coverage.served)} of ${String(entry.coverage.steps)} served`, ...stepLines(entry.steps, c)]]);\n }\n rows.push([\"pages\", entry.pages.length === 0 ? [\"none\"] : entry.pages]);\n\n const where = `${entry.file}:${String(record.line)}`;\n const lines = [`${c.bold(titleOf(record).padEnd(44))} ${c.dim(where)}`];\n for (const [key, values] of rows) {\n values.forEach((value, i) => lines.push(` ${(i === 0 ? key : \"\").padEnd(KEY_WIDTH)}${value}`));\n }\n return lines.join(\"\\n\");\n}\n\n// ---------------------------------------------------------------------------\n// check\n\nconst RULE_WIDTH = 36;\n\n/** Sentences packed into lines of at most `width`; a message that fits stays whole. */\nfunction wrapSentences(text: string, width: number): string[] {\n if (text.length <= width) return [text];\n const lines: string[] = [];\n let line = \"\";\n // A sentence ends at `.` or `?` before a space and a capital, which every\n // message sentence starts with, so `m1.0`, a URL or `e.g. x` never splits.\n for (const sentence of text.split(/(?<=[.?])\\s+(?=[A-Z])/)) {\n if (line === \"\") line = sentence;\n else if (line.length + 1 + sentence.length <= width) line = `${line} ${sentence}`;\n else {\n lines.push(line);\n line = sentence;\n }\n }\n if (line !== \"\") lines.push(line);\n return lines;\n}\n\nfunction severityText(c: Colors, severity: Severity): string {\n const padded = severity.padEnd(7);\n if (severity === \"error\") return c.red(padded);\n if (severity === \"warning\") return c.yellow(padded);\n return c.cyan(padded);\n}\n\nfunction counts(findings: readonly StrategyFinding[]): string {\n const n = (severity: Severity): number => findings.filter((f) => f.severity === severity).length;\n const parts: string[] = [];\n if (n(\"error\") > 0) parts.push(plural(n(\"error\"), \"error\"));\n if (n(\"warning\") > 0) parts.push(plural(n(\"warning\"), \"warning\"));\n if (n(\"notice\") > 0) parts.push(plural(n(\"notice\"), \"notice\"));\n return parts.join(\", \");\n}\n\nexport function renderFindingsPretty(report: StrategyReport, opts: { color: boolean }): string {\n const c = palette(opts.color);\n const { baseline } = report;\n if (baseline?.written === true) {\n return `${c.green(\"✓\")} ${plural(report.found, \"finding\")} recorded in ${baseline.path}`;\n }\n const baselined = baseline !== undefined && baseline.suppressed > 0 ? `, ${String(baseline.suppressed)} baselined` : \"\";\n const records = plural(report.records, \"record\");\n if (report.findings.length === 0) {\n const steps = report.steps > 0 ? `, ${plural(report.steps, \"step\")}` : \"\";\n return `${c.green(\"✓\")} ${records}, ${plural(report.references, \"reference\")}${steps}, no findings${baselined}`;\n }\n\n const ruleWidth = Math.max(RULE_WIDTH, ...report.findings.map((f) => f.ruleId.length + 2));\n const prefixWidth = 2 + 7 + 1 + ruleWidth;\n const indent = \" \".repeat(prefixWidth);\n const lines: string[] = [];\n let group: string | undefined;\n for (const finding of report.findings) {\n const file = displayPath(finding.file, report.cwd, report.base);\n const header = finding.line === undefined ? file : `${file}:${String(finding.line)}`;\n if (header !== group) {\n lines.push(c.bold(header));\n group = header;\n }\n wrapSentences(finding.message, WIDTH - prefixWidth).forEach((text, i) => {\n lines.push(\n i === 0 ? ` ${severityText(c, finding.severity)} ${finding.ruleId.padEnd(ruleWidth)}${text}` : `${indent}${text}`,\n );\n });\n for (const line of guidanceLines(finding.guidance)) lines.push(`${indent}${c.dim(line)}`);\n }\n lines.push(\"\", `${counts(report.findings)} in ${records}${baselined}`);\n return lines.join(\"\\n\");\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;AAcA,IAAM,QAAQ;AAGP,SAAS,QAAQ,QAAgC;AACtD,SAAO,OAAO,SAAS,OAAO;AAChC;AAGO,SAAS,WAAW,SAA4C;AACrE,SAAO,aAAa,IAAI,CAAC,SAAS,OAAO,QAAQ,OAAO,CAAC,MAAM,EAAE,SAAS,IAAI,EAAE,QAAQ,IAAI,CAAC,EAAE,KAAK,IAAI;AAC1G;AAKO,SAAS,iBAAiB,SAAyC;AACxE,QAAM,OAAO,CAAC,MAA2B,GAAG,KAAK,OAAO,EAAE,KAAK,CAAC,GAAG,EAAE,OAAO,EAAE;AAC9E,QAAM,cAAc,KAAK,IAAI,SAAS,QAAQ,GAAG,QAAQ,IAAI,CAAC,MAAM,KAAK,CAAC,EAAE,MAAM,CAAC,IAAI;AACvF,QAAM,aAAa,KAAK,IAAI,QAAQ,QAAQ,GAAG,QAAQ,IAAI,CAAC,MAAM,OAAO,EAAE,MAAM,MAAM,EAAE,MAAM,CAAC;AAEhG,QA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AAgB,SAAS;AAAA,EAC/G;AAEA,QAAM,YAAY,KAAK,IAAI,YAAY,GAAG,OAAO,SAAS,IAAI,CAAC,MAAM,EAAE,OAAO,SAAS,CAAC,CAAC;AACzF,QAAM,cAAc,IAAI,IAAI,IAAI;AAChC,QAAM,SAAS,IAAI,OAAO,WAAW;AACrC,QAAM,QAAkB,CAAC;AACzB,MAAI;AACJ,aAAW,WAAW,OAAO,UAAU;AACrC,UAAM,OAAO,YAAY,QAAQ,MAAM,OAAO,KAAK,OAAO,IAAI;AAC9D,UAAM,SAAS,QAAQ,SAAS,SAAY,OAAO,GAAG,IAAI,IAAI,OAAO,QAAQ,IAAI,CAAC;AAClF,QAAI,WAAW,OAAO;AACpB,YAAM,KAAK,EAAE,KAAK,MAAM,CAAC;AACzB,cAAQ;AAAA,IACV;AACA,kBAAc,QAAQ,SAAS,QAAQ,WAAW,EAAE,QAAQ,CAAC,MAAM,MAAM;AACvE,YAAM;AAAA,QACJ,MAAM,IAAI,KAAK,aAAa,GAAG,QAAQ,QAAQ,CAAC,IAAI,QAAQ,OAAO,OAAO,SAAS,CAAC,GAAG,IAAI,KAAK,GAAG,MAAM,GAAG,IAAI;AAAA,MAClH;AAAA,IACF,CAAC;AACD,eAAW,QAAQ,cAAc,QAAQ,QAAQ,EAAG,OAAM,KAAK,GAAG,MAAM,GAAG,EAAE,IAAI,IAAI,CAAC,EAAE;AAAA,EAC1F;AACA,QAAM,KAAK,IAAI,GAAG,OAAO,OAAO,QAAQ,CAAC,OAAO,OAAO,GAAG,SAAS,EAAE;AACrE,SAAO,MAAM,KAAK,IAAI;AACxB;","names":[]}
@@ -1 +0,0 @@
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}\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 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 */\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}\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 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 others = group\n .filter((other) => other !== record)\n .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: \"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\") 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 } 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}\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 const steps = resolveSteps(set, { routes, from: run.configDir ?? cwd, base: run.base });\n return { cwd, run, set, steps };\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;;;ACsBlC,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,KAAI,IAAI,KAAK,OAAO,EAAE,GAAG,MAAM;AAC9D,WAAO,IAAI,OAAO,MAAM,GAAG;AAC3B,QAAI,CAAC,KAAK,IAAI,KAAK,OAAO,EAAE,CAAC,EAAG,MAAK,IAAI,K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E,QAAQ,MAAM,IAAI,aAAa,KAAK,MAAM,IAAI,KAAK,CAAC;AACtF,SAAO,EAAE,KAAK,KAAK,KAAK,MAAM;AAChC;AAGO,SAAS,aAA+B,OAAe,SAA0B;AACtF,QAAM,QAAQ,QAAQ,KAAK,CAAC,cAAc,cAAc,KAAK;AAC7D,MAAI,UAAU,OAAW,OAAM,IAAI,cAAc,mBAAmB,KAAK,eAAe,QAAQ,KAAK,KAAK,CAAC,GAAG;AAC9G,SAAO;AACT;AAOO,SAAS,YAAY,MAAc,KAAa,OAAO,KAAa;AACzE,MAAI,KAAK,WAAW,GAAG,EAAG,QAAO;AACjC,QAAM,MAAMC,UAAS,KAAK,WAAW,IAAI,IAAI,OAAOD,SAAQ,MAAM,IAAI,CAAC;AACvE,UAAQ,QAAQ,KAAK,MAAM,KAAK,WAAW,MAAM,GAAG;AACtD;AAGO,SAAS,OAAO,GAAW,KAAa,OAAO,GAAG,GAAG,KAAa;AACvE,SAAO,GAAG,OAAO,CAAC,CAAC,IAAI,MAAM,IAAI,MAAM,IAAI;AAC7C;","names":["target","fix","resolve","resolve","resolve","resolve","relative","resolve","resolve","relative"]}
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../src/strategy/reporters/json.ts"],"sourcesContent":["/**\n * JSON output for every `manni strategy` command. A record is the same object\n * in `list` and `get`: its fields, where it was read, its parent, and what\n * names it. Paths are relative to the working directory.\n */\nimport type { StrategyReport } from \"../commands/findings.js\";\nimport type { RecordEntry } from \"../commands/list.js\";\nimport { displayPath } from \"../commands/run.js\";\nimport { titleOf } from \"./pretty.js\";\n\nexport function recordJson(entry: RecordEntry): Record<string, unknown> {\n const { record } = entry;\n // `title` is never absent: an untitled record shows its id, as `list` does.\n const out: Record<string, unknown> = { id: record.id, type: record.type, title: titleOf(record) };\n if (record.description !== undefined) out[\"description\"] = record.description;\n if (record.lifecycle !== undefined) out[\"lifecycle\"] = record.lifecycle;\n out[\"file\"] = entry.file;\n out[\"line\"] = record.line;\n // A journey's `personas` is always a list. A persona's `audience` is one value, as it is written.\n const parents = record.parents.map((p) => p.value);\n if (record.type === \"journey\") out[\"personas\"] = parents;\n if (record.type === \"persona\" && parents.length > 0) out[\"audience\"] = parents.length === 1 ? parents[0] : parents;\n if (entry.steps !== undefined && entry.coverage !== undefined) {\n out[\"steps\"] = entry.steps.map((step) => ({\n ...(step.stage === undefined ? {} : { stage: step.stage }),\n ...(step.doc === undefined ? {} : { doc: step.doc }),\n ...(step.exists === undefined ? {} : { exists: step.exists }),\n ...(step.note === undefined ? {} : { note: step.note }),\n ...(step.line === undefined ? {} : { line: step.line }),\n state: step.state,\n ...(step.page === undefined ? {} : { page: step.page }),\n }));\n out[\"coverage\"] = entry.coverage;\n }\n const children = entry.children.map((r) => r.id);\n out[\"namedBy\"] = {\n ...(record.type === \"audience\" ? { personas: children } : {}),\n ...(record.type === \"persona\" ? { journeys: children } : {}),\n pages: entry.pages,\n };\n return out;\n}\n\n/** Each record once, where the tree first reaches it. */\nexport function renderListJson(entries: readonly RecordEntry[]): string {\n const once = new Map(entries.map((entry) => [entry.record, entry]));\n return JSON.stringify({ records: [...once.values()].map(recordJson) }, null, 2);\n}\n\nexport function renderGetJson(entry: RecordEntry): string {\n return JSON.stringify(recordJson(entry), null, 2);\n}\n\nexport function renderFindingsJson(report: StrategyReport): string {\n const count = (severity: string): number => report.findings.filter((f) => f.severity === severity).length;\n return JSON.stringify(\n {\n // `key` is the baseline's identity for a finding, not something it says.\n findings: report.findings.map(({ key: _identity, ...finding }) => ({\n ...finding,\n file: displayPath(finding.file, report.cwd, report.base),\n })),\n summary: {\n records: report.records,\n references: report.references,\n // Only a set with steps carries the key, so a set without them prints as it always has.\n ...(report.steps > 0 ? { steps: report.steps } : {}),\n errors: count(\"error\"),\n warnings: count(\"warning\"),\n notices: count(\"notice\"),\n ...(report.baseline === undefined ? {} : { baseline: report.baseline }),\n },\n },\n null,\n 2,\n );\n}\n"],"mappings":";;;;;;;;;AAUO,SAAS,WAAW,OAA6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/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 } = 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).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,MAAM,IAAI,MAAM,aAAa,IAAI;AACxD,QAAM,QAAQ,SAAS,GAAG;AAC1B,QAAM,QAAQ,MAAM,UAAU,KAAK,EAAE;AACrC,QAAM,QAAQ,UAAU,SAAY,SAAY,UAAU,KAAK,KAAK,IAAI,MAAM,OAAO,KAAK,EAAE,KAAK,CAAC,MAAM,EAAE,WAAW,KAAK;AAC1H,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":[]}
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../src/strategy/commands/check.ts","../src/strategy/commands/findings.ts"],"sourcesContent":["/**\n * `manni strategy check`: the pages against the records, and the records\n * against each other, with the baseline ratchet term and cite use.\n *\n * `--baseline` records the findings when the file is not there yet, and after\n * that fails only on findings it does not hold. A configured\n * `strategy.baseline` compares without the flag.\n */\nimport { existsSync } from \"node:fs\";\nimport { resolveBaselineRequest, settleBaseline } from \"../../meta/internal.js\";\nimport { checkStrategySet } from \"../core/check.js\";\nimport { DEFAULT_STRATEGY_BASELINE_PATH } from \"../core/config.js\";\nimport { StrategyError } from \"../errors.js\";\nimport { reportedFindings, summarize, toResults, type StrategyReport } from \"./findings.js\";\nimport { displayPath, loadStrategy, type StrategyCommandOptions } from \"./run.js\";\n\nexport interface CheckOptions extends StrategyCommandOptions {\n /** `--baseline`. */\n baseline?: boolean;\n}\n\nexport async function runCheck(opts: CheckOptions): Promise<StrategyReport> {\n const { cwd, run, set, steps } = await loadStrategy(opts);\n const config = run.config;\n const findings = checkStrategySet(set, {\n ...(config?.severity === undefined ? {} : { severity: config.severity }),\n steps,\n pagePath: (page) => displayPath(page, cwd, run.base),\n });\n const { results, origin } = toResults(set, findings);\n\n // Fingerprints must not depend on where the command was run from.\n const frame = { cwd, base: run.configDir ?? cwd, runBase: run.base };\n let request = resolveBaselineRequest(\n opts.baseline === true ? { baseline: true } : {},\n config?.baseline,\n run.configDir,\n cwd,\n { current: DEFAULT_STRATEGY_BASELINE_PATH },\n );\n if (request !== null && !existsSync(request.absPath)) {\n if (opts.baseline !== true) {\n throw new StrategyError(`Baseline \"${request.label}\" not found. Record one with \\`manni strategy check --baseline\\`.`);\n }\n request = { ...request, write: true };\n }\n const { results: reported, baseline } = await settleBaseline(results, request, frame);\n\n const parents = set.records.reduce((n, r) => n + r.parents.length, 0);\n return {\n findings: reportedFindings(reported, origin, findings),\n results: reported,\n origin,\n summary: summarize(reported, baseline),\n frame,\n records: set.records.length,\n // Two kinds, both resolved: every audiences:, personas: and journeys:\n // value (pages and records alike), plus each value of a record's own\n // parent field, which load-set keeps out of the references.\n references: set.references.length + parents,\n steps: [...steps.values()].reduce((n, s) => n + s.length, 0),\n ...(baseline === undefined ? {} : { baseline }),\n found: findings.length,\n cwd,\n base: run.base,\n };\n}\n","/**\n * The report `check` returns, and the bridge from strategy findings to meta's\n * `ValidationResult`, so the SARIF and JUnit renderers and the baseline\n * ratchet work unchanged, as term's adapter does.\n *\n * FieldError: schema `manni:strategy`, keyword = the rule, instancePath\n * `/<field>` when the finding concerns one field and `\"\"` when it concerns a\n * whole record. The subject is the record, the field and what the finding\n * says before its advice, with any `file:line` taken out, so a moved line or\n * a reworded fix moves no baseline.\n */\nimport {\n isErrorSeverity,\n type BaselineSummary,\n type FieldError,\n type FingerprintContext,\n type RunSummary,\n type ValidationResult,\n} from \"../../meta/index.js\";\nimport { RULE_ID_PREFIX } from \"../core/severity.js\";\nimport type { StrategyFinding, StrategySet } from \"../types.js\";\n\nexport const FINDING_FORMATS = [\"pretty\", \"json\", \"github\", \"sarif\", \"junit\"] as const;\nexport type FindingFormat = (typeof FINDING_FORMATS)[number];\n\n/** JUnit `classname` for the strategy tool's findings. */\nexport const JUNIT_CLASSNAME = \"manni.strategy\";\n\nexport interface StrategyReport {\n /** The findings reported: a baselined one is not among them. */\n findings: StrategyFinding[];\n /** The same findings as meta's results, for SARIF and JUnit. One per file. */\n results: ValidationResult[];\n /** Each error in `results` to the finding it came from. */\n origin: ReadonlyMap<FieldError, StrategyFinding>;\n summary: RunSummary;\n frame: FingerprintContext;\n /** Records in the set. */\n records: number;\n /** Values of audiences:, personas:, journeys: and audience: the run read. */\n references: number;\n /** Steps on the set's journeys, each held to the page it names. */\n steps: number;\n baseline?: BaselineSummary;\n /** Findings before the baseline, for the line a recording run prints. */\n found: number;\n /** Where the run stood, for the paths the reporters print. */\n cwd: string;\n /** What finding files are relative to. */\n base: string;\n}\n\nconst LINE_REFERENCE = /:\\d+\\b/g;\n\nfunction toFieldError(finding: StrategyFinding): FieldError {\n const said = finding.key ?? finding.message;\n const subject = [finding.id ?? \"\", finding.field ?? \"\", said.replace(LINE_REFERENCE, \"\")].join(\"\\u0000\");\n const error: FieldError = {\n schema: RULE_ID_PREFIX,\n instancePath: finding.field === undefined ? \"\" : `/${finding.field}`,\n message: finding.message,\n keyword: finding.rule,\n subject,\n severity: finding.severity,\n };\n if (finding.line !== undefined) error.line = finding.line;\n return error;\n}\n\n/** One result per file: every record's file, every file a reference was read from, and every file a finding sits in. */\nexport function toResults(\n set: StrategySet,\n findings: readonly StrategyFinding[],\n): { results: ValidationResult[]; origin: Map<FieldError, StrategyFinding> } {\n const origin = new Map<FieldError, StrategyFinding>();\n const byFile = new Map<string, FieldError[]>();\n for (const { file } of [...set.records, ...set.references]) if (!byFile.has(file)) byFile.set(file, []);\n for (const finding of findings) {\n const error = toFieldError(finding);\n origin.set(error, finding);\n byFile.set(finding.file, [...(byFile.get(finding.file) ?? []), error]);\n }\n const results = [...byFile.keys()].sort().map((file): ValidationResult => {\n const errors = byFile.get(file) ?? [];\n return { file, format: \"strategy\", ok: !errors.some(isErrorSeverity), schemas: [RULE_ID_PREFIX], errors };\n });\n return { results, origin };\n}\n\n/** The run summary meta's renderers read, from results a baseline may have thinned. */\nexport function summarize(results: readonly ValidationResult[], baseline?: BaselineSummary): RunSummary {\n const failed = results.filter((r) => !r.ok).length;\n const count = (keep: (e: FieldError) => boolean): number => results.reduce((n, r) => n + r.errors.filter(keep).length, 0);\n const warnings = count((e) => e.severity === \"warning\");\n const notices = count((e) => e.severity === \"notice\");\n return {\n files: results.length,\n passed: results.length - failed,\n failed,\n errors: count(isErrorSeverity),\n ...(warnings > 0 ? { warnings } : {}),\n ...(notices > 0 ? { notices } : {}),\n ...(baseline ? { baseline } : {}),\n };\n}\n\n/** The findings still reported once a baseline has thinned the results, in report order. */\nexport function reportedFindings(\n results: readonly ValidationResult[],\n origin: ReadonlyMap<FieldError, StrategyFinding>,\n order: readonly StrategyFinding[],\n): StrategyFinding[] {\n const kept = new Set<StrategyFinding>();\n for (const result of results) {\n for (const error of result.errors) {\n const finding = origin.get(error);\n if (finding !== undefined) kept.add(finding);\n }\n }\n return order.filter((finding) => kept.has(finding));\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;AAQA,SAAS,kBAAkB;;;ACcpB,IAAM,kBAAkB,CAAC,UAAU,QAAQ,UAAU,SAAS,OAAO;AAIrE,IAAM,kBAAkB;AA0B/B,IAAM,iBAAiB;AAEvB,SAAS,aAAa,SAAsC;AAC1D,QAAM,OAAO,QAAQ,OAAO,QAAQ;AACpC,QAAM,UAAU,CAAC,QAAQ,MAAM,IAAI,QAAQ,SAAS,IAAI,KAAK,QAAQ,gBAAgB,EAAE,CAAC,EAAE,KAAK,IAAQ;AACvG,QAAM,QAAoB;AAAA,IACxB,QAAQ;AAAA,IACR,cAAc,QAAQ,UAAU,SAAY,KAAK,IAAI,QAAQ,KAAK;AAAA,IAClE,SAAS,QAAQ;AAAA,IACjB,SAAS,QAAQ;AAAA,IACjB;AAAA,IACA,UAAU,Q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mE;AAAA,IACvH;AACA,cAAU,EAAE,GAAG,SAAS,OAAO,KAAK;AAAA,EACtC;AACA,QAAM,EAAE,SAAS,UAAU,SAAS,IAAI,MAAM,eAAe,SAAS,SAAS,KAAK;AAEpF,QAAM,UAAU,IAAI,QAAQ,OAAO,CAAC,GAAG,MAAM,IAAI,EAAE,QAAQ,QAAQ,CAAC;AACpE,SAAO;AAAA,IACL,UAAU,iBAAiB,UAAU,QAAQ,QAAQ;AAAA,IACrD,SAAS;AAAA,IACT;AAAA,IACA,SAAS,UAAU,UAAU,QAAQ;AAAA,IACrC;AAAA,IACA,SAAS,IAAI,QAAQ;AAAA;AAAA;AAAA;AAAA,IAIrB,YAAY,IAAI,WAAW,SAAS;AAAA,IACpC,OAAO,CAAC,GAAG,MAAM,OAAO,CAAC,EAAE,OAAO,CAAC,GAAG,MAAM,IAAI,EAAE,QAAQ,CAAC;AAAA,IAC3D,GAAI,aAAa,SAAY,CAAC,IAAI,EAAE,SAAS;AAAA,IAC7C,OAAO,SAAS;AAAA,IAChB;AAAA,IACA,MAAM,IAAI;AAAA,EACZ;AACF;","names":[]}
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../src/strategy/commands/list.ts"],"sourcesContent":["/**\n * `manni strategy list`: the records as a tree, audience then persona then\n * journey. A record with several parents sits under each of them, and one\n * whose parents are not in the set sits at the top level.\n */\nimport { indexSet, type StrategyIndex } from \"../core/check.js\";\nimport { coverageOf, resolveSteps, type StepMap } from \"../core/steps.js\";\nimport { RECORD_TYPES, type ResolvedStep, type StrategyRecord, type StrategySet } from \"../types.js\";\nimport { displayPath, loadStrategy, type StrategyCommandOptions } from \"./run.js\";\n\nexport const LIST_FORMATS = [\"pretty\", \"json\"] as const;\nexport type ListFormat = (typeof LIST_FORMATS)[number];\n\n/** One record with what the set says about it. Paths are relative to the working directory. */\nexport interface RecordEntry {\n record: StrategyRecord;\n /** The records its parent field names that the set holds. */\n parents: StrategyRecord[];\n /** The records whose parent field names this one: personas of an audience, journeys of a persona. */\n children: StrategyRecord[];\n /** The pages that name the record directly. */\n pages: string[];\n /** The record's file, relative to the working directory. */\n file: string;\n /** Its depth in the tree. */\n depth: number;\n /** A journey's steps, each `page` relative to the working directory. Only when it has steps. */\n steps?: ResolvedStep[];\n /** Served steps over steps, beside `steps`. */\n coverage?: { served: number; steps: number };\n}\n\nexport interface ListReport {\n /** In tree order. */\n entries: RecordEntry[];\n set: StrategySet;\n}\n\nconst byId = new Intl.Collator(\"en\", { numeric: true });\n\nfunction sorted(records: readonly StrategyRecord[]): StrategyRecord[] {\n return [...records].sort((a, b) => byId.compare(a.id, b.id));\n}\n\n/** Every record, each with its parents, children and pages, parents before their children. */\nexport function entriesOf(\n set: StrategySet,\n cwd: string,\n base: string,\n index: StrategyIndex = indexSet(set),\n // `runList` always passes steps resolved with the run's routes. This default has none, so every route step is `unchecked`.\n stepMap: StepMap = resolveSteps(set, {}, index),\n): RecordEntry[] {\n const entries: RecordEntry[] = [];\n const visit = (record: StrategyRecord, depth: number): void => {\n const children = sorted(index.childrenOf(record));\n const resolved = stepMap.get(record) ?? [];\n const steps = resolved.map((step) =>\n step.page === undefined ? step : { ...step, page: displayPath(step.page, cwd, base) },\n );\n entries.push({\n record,\n parents: index.parentsOf(record),\n children,\n pages: index.pagesNaming(record).map((page) => displayPath(page, cwd, base)),\n file: displayPath(record.file, cwd, base),\n depth,\n ...(steps.length === 0 ? {} : { steps, coverage: coverageOf(steps) }),\n });\n for (const child of children) visit(child, depth + 1);\n };\n for (const type of RECORD_TYPES) {\n for (const record of sorted(set.records.filter((r) => r.type === type && index.parentsOf(r).length === 0))) {\n visit(record, 0);\n }\n }\n return entries;\n}\n\nexport async function runList(opts: StrategyCommandOptions): Promise<ListReport> {\n const { cwd, run, set, steps } = await loadStrategy(opts);\n return { entries: entriesOf(set, cwd, run.base, indexSet(set), steps), set };\n}\n"],"mappings":";;;;;;;;;;;;;AAUO,IAAM,eAAe,CAAC,UAAU,MAAM;AA4B7C,IAAM,OAA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/E,QAAM,EAAE,KAAK,KAAK,KAAK,MAAM,IAAI,MAAM,aAAa,IAAI;AACxD,SAAO,EAAE,SAAS,UAAU,KAAK,KAAK,IAAI,MAAM,SAAS,GAAG,GAAG,KAAK,GAAG,IAAI;AAC7E;","names":[]}
@@ -1,48 +0,0 @@
1
- #!/usr/bin/env node
2
- import {
3
- NAMES_ITS_SUBJECT,
4
- findingMessage,
5
- renderCheckGithub
6
- } from "./chunk-CRCMXSQR.js";
7
- import "./chunk-7O6TTSOO.js";
8
- import "./chunk-3OHMRGHD.js";
9
- import "./chunk-W4KJPTAN.js";
10
- import "./chunk-WCRZHFCI.js";
11
- import "./chunk-IDZXRFBA.js";
12
- import "./chunk-NZRNW2XM.js";
13
- import "./chunk-UU7W7VJ7.js";
14
- import "./chunk-KKASKZUG.js";
15
- import "./chunk-EZBMIWUP.js";
16
- import "./chunk-BJH5VPAO.js";
17
- import "./chunk-DILBGKLL.js";
18
- import "./chunk-5C5UNRZF.js";
19
- import "./chunk-XTKJNRJ6.js";
20
- import "./chunk-W5TFTVPG.js";
21
- import "./chunk-TI4DA6DF.js";
22
- import "./chunk-I3QMDFDG.js";
23
- import "./chunk-BXQLKOOR.js";
24
- import "./chunk-JBOXCSTN.js";
25
- import "./chunk-UMY3IKYT.js";
26
- import "./chunk-2UT6FSV5.js";
27
- import "./chunk-A322P5GM.js";
28
- import "./chunk-XYNYBH3M.js";
29
- import "./chunk-PDL6IO4Z.js";
30
- import "./chunk-DSWKBZWW.js";
31
- import "./chunk-67OVXUT3.js";
32
- import "./chunk-77AINBYM.js";
33
- import "./chunk-QK6VYJHV.js";
34
- import "./chunk-RNVYGWIC.js";
35
- import "./chunk-YEUYKR62.js";
36
- import "./chunk-JF4BC7ZD.js";
37
- import "./chunk-HX44GB4Z.js";
38
- import "./chunk-NVYDWVXN.js";
39
- import "./chunk-KVLOTBQR.js";
40
- import "./chunk-OWBRDNRZ.js";
41
- import "./chunk-G3T47CFV.js";
42
- import "./chunk-2H7UOFLK.js";
43
- export {
44
- NAMES_ITS_SUBJECT,
45
- findingMessage,
46
- renderCheckGithub
47
- };
48
- //# sourceMappingURL=github-ZBPHVATQ.js.map
@@ -1,49 +0,0 @@
1
- #!/usr/bin/env node
2
- import {
3
- ENTRY_LABEL,
4
- renderCheckSarif,
5
- withFindingMessages
6
- } from "./chunk-OF3YEKYT.js";
7
- import "./chunk-CRCMXSQR.js";
8
- import "./chunk-7O6TTSOO.js";
9
- import "./chunk-3OHMRGHD.js";
10
- import "./chunk-W4KJPTAN.js";
11
- import "./chunk-WCRZHFCI.js";
12
- import "./chunk-IDZXRFBA.js";
13
- import "./chunk-NZRNW2XM.js";
14
- import "./chunk-UU7W7VJ7.js";
15
- import "./chunk-KKASKZUG.js";
16
- import "./chunk-EZBMIWUP.js";
17
- import "./chunk-BJH5VPAO.js";
18
- import "./chunk-DILBGKLL.js";
19
- import "./chunk-5C5UNRZF.js";
20
- import "./chunk-XTKJNRJ6.js";
21
- import "./chunk-W5TFTVPG.js";
22
- import "./chunk-TI4DA6DF.js";
23
- import "./chunk-I3QMDFDG.js";
24
- import "./chunk-BXQLKOOR.js";
25
- import "./chunk-JBOXCSTN.js";
26
- import "./chunk-UMY3IKYT.js";
27
- import "./chunk-2UT6FSV5.js";
28
- import "./chunk-A322P5GM.js";
29
- import "./chunk-XYNYBH3M.js";
30
- import "./chunk-PDL6IO4Z.js";
31
- import "./chunk-DSWKBZWW.js";
32
- import "./chunk-67OVXUT3.js";
33
- import "./chunk-77AINBYM.js";
34
- import "./chunk-QK6VYJHV.js";
35
- import "./chunk-RNVYGWIC.js";
36
- import "./chunk-YEUYKR62.js";
37
- import "./chunk-JF4BC7ZD.js";
38
- import "./chunk-HX44GB4Z.js";
39
- import "./chunk-NVYDWVXN.js";
40
- import "./chunk-KVLOTBQR.js";
41
- import "./chunk-OWBRDNRZ.js";
42
- import "./chunk-G3T47CFV.js";
43
- import "./chunk-2H7UOFLK.js";
44
- export {
45
- ENTRY_LABEL,
46
- renderCheckSarif,
47
- withFindingMessages
48
- };
49
- //# sourceMappingURL=sarif-STTUROHD.js.map