@hawkeyexl/manni 4.23.0 → 4.24.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 (258) hide show
  1. package/README.md +1 -1
  2. package/dist/{batch-DPYBMRVD.js → batch-KWVJWSOE.js} +12 -12
  3. package/dist/{build-LEKUMGEC.js → build-VPEIOEHC.js} +13 -13
  4. package/dist/{calibrate-TYONPNG4.js → calibrate-DRQLK53T.js} +13 -13
  5. package/dist/{capture-2EPHIAZT.js → capture-GNPDAZHH.js} +12 -12
  6. package/dist/{check-HWEDHABD.js → check-ACHNMW6J.js} +10 -10
  7. package/dist/{check-SQVQE4E4.js → check-BVH7A764.js} +13 -13
  8. package/dist/check-M27BITCI.js +57 -0
  9. package/dist/check-TCDNMHDB.js +57 -0
  10. package/dist/{check-J2KQI7IW.js → check-ZTCCQ2TA.js} +14 -14
  11. package/dist/{chunk-GCHEVTCJ.js → chunk-2AWYKLQR.js} +2 -2
  12. package/dist/{chunk-OL3Z7KPQ.js → chunk-2RFVMOPC.js} +131 -23
  13. package/dist/chunk-2RFVMOPC.js.map +1 -0
  14. package/dist/{chunk-B4ECIBLF.js → chunk-2UT6FSV5.js} +3 -3
  15. package/dist/{chunk-YUCH6WJY.js → chunk-3NPPEVIA.js} +2 -2
  16. package/dist/{chunk-XVL7DYWM.js → chunk-3OHMRGHD.js} +130 -8
  17. package/dist/chunk-3OHMRGHD.js.map +1 -0
  18. package/dist/{chunk-B4POKRCS.js → chunk-3TGXVNYA.js} +5 -5
  19. package/dist/{chunk-BOCJTOKA.js → chunk-45E6J2WY.js} +2 -2
  20. package/dist/{chunk-SZMJ24FR.js → chunk-4BWD6PHR.js} +8 -8
  21. package/dist/{chunk-LHP56Q45.js → chunk-5C5UNRZF.js} +5 -5
  22. package/dist/{chunk-YJHH2DHV.js → chunk-5JAWIM54.js} +2 -2
  23. package/dist/{chunk-C2QE4FSZ.js → chunk-5RRP5CQR.js} +3 -3
  24. package/dist/{chunk-2UJOQ6CB.js → chunk-632W5O3C.js} +9 -9
  25. package/dist/{chunk-QWVIGKBM.js → chunk-67OVXUT3.js} +404 -136
  26. package/dist/chunk-67OVXUT3.js.map +1 -0
  27. package/dist/{chunk-72UN462G.js → chunk-7O6TTSOO.js} +26 -7
  28. package/dist/chunk-7O6TTSOO.js.map +1 -0
  29. package/dist/{chunk-AZKNB2T3.js → chunk-A322P5GM.js} +6 -24
  30. package/dist/chunk-A322P5GM.js.map +1 -0
  31. package/dist/{chunk-FJYIPHWK.js → chunk-BJH5VPAO.js} +4 -4
  32. package/dist/{chunk-MGQNGW6I.js → chunk-BKJ6JPQF.js} +2 -2
  33. package/dist/{chunk-VSDXZAQU.js → chunk-BXQLKOOR.js} +2 -2
  34. package/dist/{chunk-6QNA7UX2.js → chunk-CKXZ3U4S.js} +2 -2
  35. package/dist/{chunk-MDZXRHIJ.js → chunk-CLH4ZYNG.js} +1 -1
  36. package/dist/chunk-CLH4ZYNG.js.map +1 -0
  37. package/dist/{chunk-6RENCXLC.js → chunk-CRCMXSQR.js} +3 -3
  38. package/dist/{chunk-AOLCEULZ.js → chunk-D4HY64LX.js} +4 -4
  39. package/dist/{chunk-K4YR4PY2.js → chunk-DCHYTN2R.js} +6 -6
  40. package/dist/{chunk-FBIBR4CH.js → chunk-DILBGKLL.js} +11 -11
  41. package/dist/chunk-DILBGKLL.js.map +1 -0
  42. package/dist/{chunk-3USSSKLA.js → chunk-EN4RGJDD.js} +2 -2
  43. package/dist/{chunk-UQYDLEBS.js → chunk-EWBVN4XX.js} +7 -7
  44. package/dist/{chunk-WHECOVH2.js → chunk-EZBMIWUP.js} +3 -3
  45. package/dist/{chunk-DWUK6YNX.js → chunk-FDMEBSDY.js} +6 -6
  46. package/dist/{chunk-N25KDXOV.js → chunk-H7UPMVBK.js} +2 -2
  47. package/dist/{chunk-QJL57GPX.js → chunk-I3QMDFDG.js} +3 -3
  48. package/dist/{chunk-WPHPLVS3.js → chunk-ICTXBS5U.js} +8 -8
  49. package/dist/{chunk-7M3MBFG7.js → chunk-IDZXRFBA.js} +3 -3
  50. package/dist/{chunk-GIHIONJH.js → chunk-IM7C3H4W.js} +10 -2
  51. package/dist/chunk-IM7C3H4W.js.map +1 -0
  52. package/dist/{chunk-YBPXVBSY.js → chunk-J5KMZDL6.js} +3 -3
  53. package/dist/{chunk-INOVEO32.js → chunk-JBOXCSTN.js} +1 -1
  54. package/dist/chunk-JBOXCSTN.js.map +1 -0
  55. package/dist/{chunk-TLY44PCL.js → chunk-JBY3ZYV4.js} +2 -2
  56. package/dist/{chunk-76Y3JATE.js → chunk-KKASKZUG.js} +2 -2
  57. package/dist/{chunk-N2T6RLSE.js → chunk-KVLOTBQR.js} +2 -2
  58. package/dist/{chunk-N2T6RLSE.js.map → chunk-KVLOTBQR.js.map} +1 -1
  59. package/dist/{chunk-JZWQQOUN.js → chunk-LK5TELK3.js} +6 -6
  60. package/dist/{chunk-AJCUKL43.js → chunk-MVZYZOYN.js} +13 -7
  61. package/dist/{chunk-AJCUKL43.js.map → chunk-MVZYZOYN.js.map} +1 -1
  62. package/dist/{chunk-Y4O737F7.js → chunk-NZRNW2XM.js} +4 -4
  63. package/dist/{chunk-7NSFGAAQ.js → chunk-OF3YEKYT.js} +5 -5
  64. package/dist/{chunk-L3DOX3UL.js → chunk-OQSY6VHV.js} +4 -4
  65. package/dist/{chunk-RZ6OONZU.js → chunk-OWDVSQAU.js} +4 -4
  66. package/dist/{chunk-KX6HRTLH.js → chunk-PDL6IO4Z.js} +17 -2
  67. package/dist/chunk-PDL6IO4Z.js.map +1 -0
  68. package/dist/{chunk-QR55QXJ7.js → chunk-QUO7DWIG.js} +4 -4
  69. package/dist/{chunk-EPN67ZNX.js → chunk-RCYH36B6.js} +9 -9
  70. package/dist/{chunk-5JXA75XB.js → chunk-RHMOEPNT.js} +24 -11
  71. package/dist/chunk-RHMOEPNT.js.map +1 -0
  72. package/dist/{chunk-CWPRB7SA.js → chunk-RHSQ3RRA.js} +258 -145
  73. package/dist/chunk-RHSQ3RRA.js.map +1 -0
  74. package/dist/{chunk-E75CMOR3.js → chunk-RPHOBLOQ.js} +3 -3
  75. package/dist/{chunk-LT3STF5K.js → chunk-S6RCOR2J.js} +4 -4
  76. package/dist/{chunk-QJGPOFNB.js → chunk-SOY53WQN.js} +3 -3
  77. package/dist/{chunk-VTJAY3WN.js → chunk-SRAFH7QS.js} +12 -8
  78. package/dist/chunk-SRAFH7QS.js.map +1 -0
  79. package/dist/{chunk-MPRVAMO3.js → chunk-TIJG2XL6.js} +4 -4
  80. package/dist/{chunk-EBBJFXMX.js → chunk-UMY3IKYT.js} +3 -3
  81. package/dist/{chunk-3CBGLUJX.js → chunk-UU7W7VJ7.js} +3 -3
  82. package/dist/{chunk-TVLIJ6ZM.js → chunk-VF46PE3Z.js} +4 -4
  83. package/dist/{chunk-EAF4K7IK.js → chunk-W4KJPTAN.js} +65 -17
  84. package/dist/chunk-W4KJPTAN.js.map +1 -0
  85. package/dist/{chunk-TOVSR2YO.js → chunk-W5TFTVPG.js} +2 -2
  86. package/dist/{chunk-2GPF4OEF.js → chunk-WCHP6QET.js} +2 -2
  87. package/dist/{chunk-BA7BQBWV.js → chunk-WCRZHFCI.js} +13 -13
  88. package/dist/{chunk-I4KDAO6P.js → chunk-X7EDAIOH.js} +3 -3
  89. package/dist/{chunk-NPZWOPOH.js → chunk-XX7GNK4F.js} +5 -4
  90. package/dist/chunk-XX7GNK4F.js.map +1 -0
  91. package/dist/{chunk-2QK25SLZ.js → chunk-XYNYBH3M.js} +3 -3
  92. package/dist/{chunk-CLUUSZDY.js → chunk-YLCP5KPU.js} +10 -10
  93. package/dist/{chunk-P6LRDWMJ.js → chunk-Z236YJ2V.js} +7 -7
  94. package/dist/{chunk-2MOXVM6H.js → chunk-ZOVUANFB.js} +2 -2
  95. package/dist/{cli-BF6KB3EJ.js → cli-3XDWEQRN.js} +30 -30
  96. package/dist/{cli-SJA66MIP.js → cli-5HOVEAYH.js} +19 -19
  97. package/dist/{cli-XXN75A42.js → cli-5ZJ2J4DD.js} +7 -7
  98. package/dist/{cli-NDYBQ755.js → cli-66SXH7LQ.js} +18 -18
  99. package/dist/{cli-4R5HIGG4.js → cli-7BSAEX34.js} +34 -30
  100. package/dist/cli-7BSAEX34.js.map +1 -0
  101. package/dist/{cli-V2BJYNMF.js → cli-ABUOJTMK.js} +2 -2
  102. package/dist/{cli-DXOHHWZK.js → cli-IZVNUGGL.js} +32 -18
  103. package/dist/{cli-DXOHHWZK.js.map → cli-IZVNUGGL.js.map} +1 -1
  104. package/dist/{cli-MPMECIQH.js → cli-KUEEANY6.js} +57 -57
  105. package/dist/{cli-XGCK2LUV.js → cli-N6GSDCIT.js} +12 -12
  106. package/dist/{cli-TBAOKTMV.js → cli-SZCB4QXF.js} +13 -13
  107. package/dist/{cli-TWGGMUXX.js → cli-YYJCE53Q.js} +36 -36
  108. package/dist/cli.js +15 -15
  109. package/dist/docmeta.js +6 -6
  110. package/dist/{github-WBIEYSM7.js → github-6ONVXQ3Y.js} +10 -10
  111. package/dist/{github-NQQTH5JK.js → github-6TXHICNH.js} +14 -14
  112. package/dist/github-ZBPHVATQ.js +48 -0
  113. package/dist/index.d.ts +69 -13
  114. package/dist/index.js +55 -55
  115. package/dist/{json-IVHRVOGQ.js → json-765JLUSV.js} +15 -15
  116. package/dist/{json-J4TONMKY.js → json-CG2WAD5V.js} +2 -2
  117. package/dist/{json-QQAK73QQ.js → json-E5MUPFJ5.js} +10 -10
  118. package/dist/{labels-VI2I5YFD.js → labels-HF7ZZCNK.js} +9 -9
  119. package/dist/{lint-VB5A3ENL.js → lint-5IYTCQ4J.js} +10 -10
  120. package/dist/list-HVSOCIFI.js +48 -0
  121. package/dist/{list-LOS7FTFD.js → list-NJIHE4AI.js} +10 -10
  122. package/dist/{list-LMYCD5G5.js → list-XVLMKWVP.js} +14 -14
  123. package/dist/{page-3Y4EGYUO.js → page-7RQSNZTA.js} +12 -9
  124. package/dist/{prepare-JK6XKBZB.js → prepare-3QURVQY5.js} +11 -11
  125. package/dist/{pretty-G2J5UEXC.js → pretty-EYZFYS4B.js} +14 -14
  126. package/dist/{pretty-GCEIQ3FP.js → pretty-JU56KUCB.js} +24 -24
  127. package/dist/{pretty-DR4GHOJG.js → pretty-LUKCTVAG.js} +10 -10
  128. package/dist/{reporters-6TEJDXXO.js → reporters-6CNOPRDA.js} +4 -4
  129. package/dist/{reporters-OWYFZD4S.js → reporters-L445ICCY.js} +4 -4
  130. package/dist/{reporters-43LBUWEE.js → reporters-QHT2M3PA.js} +9 -9
  131. package/dist/run-WEGK4L3H.js +51 -0
  132. package/dist/{sarif-GWTNYCZJ.js → sarif-NPIGVW6V.js} +10 -10
  133. package/dist/sarif-STTUROHD.js +49 -0
  134. package/dist/{sarif-CN7RSIKH.js → sarif-VRF3SEOJ.js} +8 -8
  135. package/dist/strategy-IKURQ4YU.js +63 -0
  136. package/dist/{term-5WITRS3M.js → term-ZIXHKJJD.js} +15 -15
  137. package/dist/{types-7N7ETP3W.js → types-VWL35P4F.js} +2 -2
  138. package/dist/{validate-TDIEFXRQ.js → validate-HBTYACVP.js} +4 -4
  139. package/package.json +1 -1
  140. package/plugin/manni/.claude-plugin/plugin.json +1 -1
  141. package/dist/check-ADCSXGBK.js +0 -57
  142. package/dist/check-L5AUSTE6.js +0 -57
  143. package/dist/chunk-5JXA75XB.js.map +0 -1
  144. package/dist/chunk-72UN462G.js.map +0 -1
  145. package/dist/chunk-AZKNB2T3.js.map +0 -1
  146. package/dist/chunk-CWPRB7SA.js.map +0 -1
  147. package/dist/chunk-EAF4K7IK.js.map +0 -1
  148. package/dist/chunk-FBIBR4CH.js.map +0 -1
  149. package/dist/chunk-GIHIONJH.js.map +0 -1
  150. package/dist/chunk-INOVEO32.js.map +0 -1
  151. package/dist/chunk-KX6HRTLH.js.map +0 -1
  152. package/dist/chunk-MDZXRHIJ.js.map +0 -1
  153. package/dist/chunk-NPZWOPOH.js.map +0 -1
  154. package/dist/chunk-OL3Z7KPQ.js.map +0 -1
  155. package/dist/chunk-QWVIGKBM.js.map +0 -1
  156. package/dist/chunk-VTJAY3WN.js.map +0 -1
  157. package/dist/chunk-XVL7DYWM.js.map +0 -1
  158. package/dist/cli-4R5HIGG4.js.map +0 -1
  159. package/dist/github-NWL2XGE7.js +0 -48
  160. package/dist/list-3XRFX2Y3.js +0 -33
  161. package/dist/run-G6G55SWJ.js +0 -36
  162. package/dist/sarif-FR26WNVT.js +0 -49
  163. package/dist/strategy-3EZUOE2T.js +0 -59
  164. /package/dist/{batch-DPYBMRVD.js.map → batch-KWVJWSOE.js.map} +0 -0
  165. /package/dist/{build-LEKUMGEC.js.map → build-VPEIOEHC.js.map} +0 -0
  166. /package/dist/{calibrate-TYONPNG4.js.map → calibrate-DRQLK53T.js.map} +0 -0
  167. /package/dist/{capture-2EPHIAZT.js.map → capture-GNPDAZHH.js.map} +0 -0
  168. /package/dist/{check-ADCSXGBK.js.map → check-ACHNMW6J.js.map} +0 -0
  169. /package/dist/{check-SQVQE4E4.js.map → check-BVH7A764.js.map} +0 -0
  170. /package/dist/{check-HWEDHABD.js.map → check-M27BITCI.js.map} +0 -0
  171. /package/dist/{check-J2KQI7IW.js.map → check-TCDNMHDB.js.map} +0 -0
  172. /package/dist/{check-L5AUSTE6.js.map → check-ZTCCQ2TA.js.map} +0 -0
  173. /package/dist/{chunk-GCHEVTCJ.js.map → chunk-2AWYKLQR.js.map} +0 -0
  174. /package/dist/{chunk-B4ECIBLF.js.map → chunk-2UT6FSV5.js.map} +0 -0
  175. /package/dist/{chunk-YUCH6WJY.js.map → chunk-3NPPEVIA.js.map} +0 -0
  176. /package/dist/{chunk-B4POKRCS.js.map → chunk-3TGXVNYA.js.map} +0 -0
  177. /package/dist/{chunk-BOCJTOKA.js.map → chunk-45E6J2WY.js.map} +0 -0
  178. /package/dist/{chunk-SZMJ24FR.js.map → chunk-4BWD6PHR.js.map} +0 -0
  179. /package/dist/{chunk-LHP56Q45.js.map → chunk-5C5UNRZF.js.map} +0 -0
  180. /package/dist/{chunk-YJHH2DHV.js.map → chunk-5JAWIM54.js.map} +0 -0
  181. /package/dist/{chunk-C2QE4FSZ.js.map → chunk-5RRP5CQR.js.map} +0 -0
  182. /package/dist/{chunk-2UJOQ6CB.js.map → chunk-632W5O3C.js.map} +0 -0
  183. /package/dist/{chunk-FJYIPHWK.js.map → chunk-BJH5VPAO.js.map} +0 -0
  184. /package/dist/{chunk-MGQNGW6I.js.map → chunk-BKJ6JPQF.js.map} +0 -0
  185. /package/dist/{chunk-VSDXZAQU.js.map → chunk-BXQLKOOR.js.map} +0 -0
  186. /package/dist/{chunk-6QNA7UX2.js.map → chunk-CKXZ3U4S.js.map} +0 -0
  187. /package/dist/{chunk-6RENCXLC.js.map → chunk-CRCMXSQR.js.map} +0 -0
  188. /package/dist/{chunk-AOLCEULZ.js.map → chunk-D4HY64LX.js.map} +0 -0
  189. /package/dist/{chunk-K4YR4PY2.js.map → chunk-DCHYTN2R.js.map} +0 -0
  190. /package/dist/{chunk-3USSSKLA.js.map → chunk-EN4RGJDD.js.map} +0 -0
  191. /package/dist/{chunk-UQYDLEBS.js.map → chunk-EWBVN4XX.js.map} +0 -0
  192. /package/dist/{chunk-WHECOVH2.js.map → chunk-EZBMIWUP.js.map} +0 -0
  193. /package/dist/{chunk-DWUK6YNX.js.map → chunk-FDMEBSDY.js.map} +0 -0
  194. /package/dist/{chunk-N25KDXOV.js.map → chunk-H7UPMVBK.js.map} +0 -0
  195. /package/dist/{chunk-QJL57GPX.js.map → chunk-I3QMDFDG.js.map} +0 -0
  196. /package/dist/{chunk-WPHPLVS3.js.map → chunk-ICTXBS5U.js.map} +0 -0
  197. /package/dist/{chunk-7M3MBFG7.js.map → chunk-IDZXRFBA.js.map} +0 -0
  198. /package/dist/{chunk-YBPXVBSY.js.map → chunk-J5KMZDL6.js.map} +0 -0
  199. /package/dist/{chunk-TLY44PCL.js.map → chunk-JBY3ZYV4.js.map} +0 -0
  200. /package/dist/{chunk-76Y3JATE.js.map → chunk-KKASKZUG.js.map} +0 -0
  201. /package/dist/{chunk-JZWQQOUN.js.map → chunk-LK5TELK3.js.map} +0 -0
  202. /package/dist/{chunk-Y4O737F7.js.map → chunk-NZRNW2XM.js.map} +0 -0
  203. /package/dist/{chunk-7NSFGAAQ.js.map → chunk-OF3YEKYT.js.map} +0 -0
  204. /package/dist/{chunk-L3DOX3UL.js.map → chunk-OQSY6VHV.js.map} +0 -0
  205. /package/dist/{chunk-RZ6OONZU.js.map → chunk-OWDVSQAU.js.map} +0 -0
  206. /package/dist/{chunk-QR55QXJ7.js.map → chunk-QUO7DWIG.js.map} +0 -0
  207. /package/dist/{chunk-EPN67ZNX.js.map → chunk-RCYH36B6.js.map} +0 -0
  208. /package/dist/{chunk-E75CMOR3.js.map → chunk-RPHOBLOQ.js.map} +0 -0
  209. /package/dist/{chunk-LT3STF5K.js.map → chunk-S6RCOR2J.js.map} +0 -0
  210. /package/dist/{chunk-QJGPOFNB.js.map → chunk-SOY53WQN.js.map} +0 -0
  211. /package/dist/{chunk-MPRVAMO3.js.map → chunk-TIJG2XL6.js.map} +0 -0
  212. /package/dist/{chunk-EBBJFXMX.js.map → chunk-UMY3IKYT.js.map} +0 -0
  213. /package/dist/{chunk-3CBGLUJX.js.map → chunk-UU7W7VJ7.js.map} +0 -0
  214. /package/dist/{chunk-TVLIJ6ZM.js.map → chunk-VF46PE3Z.js.map} +0 -0
  215. /package/dist/{chunk-TOVSR2YO.js.map → chunk-W5TFTVPG.js.map} +0 -0
  216. /package/dist/{chunk-2GPF4OEF.js.map → chunk-WCHP6QET.js.map} +0 -0
  217. /package/dist/{chunk-BA7BQBWV.js.map → chunk-WCRZHFCI.js.map} +0 -0
  218. /package/dist/{chunk-I4KDAO6P.js.map → chunk-X7EDAIOH.js.map} +0 -0
  219. /package/dist/{chunk-2QK25SLZ.js.map → chunk-XYNYBH3M.js.map} +0 -0
  220. /package/dist/{chunk-CLUUSZDY.js.map → chunk-YLCP5KPU.js.map} +0 -0
  221. /package/dist/{chunk-P6LRDWMJ.js.map → chunk-Z236YJ2V.js.map} +0 -0
  222. /package/dist/{chunk-2MOXVM6H.js.map → chunk-ZOVUANFB.js.map} +0 -0
  223. /package/dist/{cli-BF6KB3EJ.js.map → cli-3XDWEQRN.js.map} +0 -0
  224. /package/dist/{cli-SJA66MIP.js.map → cli-5HOVEAYH.js.map} +0 -0
  225. /package/dist/{cli-XXN75A42.js.map → cli-5ZJ2J4DD.js.map} +0 -0
  226. /package/dist/{cli-NDYBQ755.js.map → cli-66SXH7LQ.js.map} +0 -0
  227. /package/dist/{cli-V2BJYNMF.js.map → cli-ABUOJTMK.js.map} +0 -0
  228. /package/dist/{cli-MPMECIQH.js.map → cli-KUEEANY6.js.map} +0 -0
  229. /package/dist/{cli-XGCK2LUV.js.map → cli-N6GSDCIT.js.map} +0 -0
  230. /package/dist/{cli-TBAOKTMV.js.map → cli-SZCB4QXF.js.map} +0 -0
  231. /package/dist/{cli-TWGGMUXX.js.map → cli-YYJCE53Q.js.map} +0 -0
  232. /package/dist/{github-NQQTH5JK.js.map → github-6ONVXQ3Y.js.map} +0 -0
  233. /package/dist/{github-NWL2XGE7.js.map → github-6TXHICNH.js.map} +0 -0
  234. /package/dist/{github-WBIEYSM7.js.map → github-ZBPHVATQ.js.map} +0 -0
  235. /package/dist/{json-IVHRVOGQ.js.map → json-765JLUSV.js.map} +0 -0
  236. /package/dist/{json-J4TONMKY.js.map → json-CG2WAD5V.js.map} +0 -0
  237. /package/dist/{json-QQAK73QQ.js.map → json-E5MUPFJ5.js.map} +0 -0
  238. /package/dist/{labels-VI2I5YFD.js.map → labels-HF7ZZCNK.js.map} +0 -0
  239. /package/dist/{lint-VB5A3ENL.js.map → lint-5IYTCQ4J.js.map} +0 -0
  240. /package/dist/{list-3XRFX2Y3.js.map → list-HVSOCIFI.js.map} +0 -0
  241. /package/dist/{list-LMYCD5G5.js.map → list-NJIHE4AI.js.map} +0 -0
  242. /package/dist/{list-LOS7FTFD.js.map → list-XVLMKWVP.js.map} +0 -0
  243. /package/dist/{page-3Y4EGYUO.js.map → page-7RQSNZTA.js.map} +0 -0
  244. /package/dist/{prepare-JK6XKBZB.js.map → prepare-3QURVQY5.js.map} +0 -0
  245. /package/dist/{pretty-DR4GHOJG.js.map → pretty-EYZFYS4B.js.map} +0 -0
  246. /package/dist/{pretty-G2J5UEXC.js.map → pretty-JU56KUCB.js.map} +0 -0
  247. /package/dist/{pretty-GCEIQ3FP.js.map → pretty-LUKCTVAG.js.map} +0 -0
  248. /package/dist/{reporters-43LBUWEE.js.map → reporters-6CNOPRDA.js.map} +0 -0
  249. /package/dist/{reporters-6TEJDXXO.js.map → reporters-L445ICCY.js.map} +0 -0
  250. /package/dist/{reporters-OWYFZD4S.js.map → reporters-QHT2M3PA.js.map} +0 -0
  251. /package/dist/{run-G6G55SWJ.js.map → run-WEGK4L3H.js.map} +0 -0
  252. /package/dist/{sarif-CN7RSIKH.js.map → sarif-NPIGVW6V.js.map} +0 -0
  253. /package/dist/{sarif-FR26WNVT.js.map → sarif-STTUROHD.js.map} +0 -0
  254. /package/dist/{sarif-GWTNYCZJ.js.map → sarif-VRF3SEOJ.js.map} +0 -0
  255. /package/dist/{strategy-3EZUOE2T.js.map → strategy-IKURQ4YU.js.map} +0 -0
  256. /package/dist/{term-5WITRS3M.js.map → term-ZIXHKJJD.js.map} +0 -0
  257. /package/dist/{types-7N7ETP3W.js.map → types-VWL35P4F.js.map} +0 -0
  258. /package/dist/{validate-TDIEFXRQ.js.map → validate-HBTYACVP.js.map} +0 -0
@@ -2,13 +2,13 @@
2
2
  import {
3
3
  displayPath,
4
4
  plural
5
- } from "./chunk-FBIBR4CH.js";
5
+ } from "./chunk-DILBGKLL.js";
6
6
  import {
7
7
  PARENTS
8
- } from "./chunk-INOVEO32.js";
8
+ } from "./chunk-JBOXCSTN.js";
9
9
  import {
10
10
  RECORD_TYPES
11
- } from "./chunk-AZKNB2T3.js";
11
+ } from "./chunk-A322P5GM.js";
12
12
  import {
13
13
  guidanceLines
14
14
  } from "./chunk-QK6VYJHV.js";
@@ -153,4 +153,4 @@ export {
153
153
  renderGetPretty,
154
154
  renderFindingsPretty
155
155
  };
156
- //# sourceMappingURL=chunk-FJYIPHWK.js.map
156
+ //# sourceMappingURL=chunk-BJH5VPAO.js.map
@@ -1,7 +1,7 @@
1
1
  #!/usr/bin/env node
2
2
  import {
3
3
  byCodeUnit
4
- } from "./chunk-LHP56Q45.js";
4
+ } from "./chunk-5C5UNRZF.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-BKJ6JPQF.js.map
@@ -1,7 +1,7 @@
1
1
  #!/usr/bin/env node
2
2
  import {
3
3
  STRATEGY_RULES
4
- } from "./chunk-INOVEO32.js";
4
+ } from "./chunk-JBOXCSTN.js";
5
5
 
6
6
  // src/strategy/core/severity.ts
7
7
  var RULE_ID_PREFIX = "manni:strategy";
@@ -50,4 +50,4 @@ export {
50
50
  isStrategyRule,
51
51
  resolveSeverity
52
52
  };
53
- //# sourceMappingURL=chunk-VSDXZAQU.js.map
53
+ //# sourceMappingURL=chunk-BXQLKOOR.js.map
@@ -1,7 +1,7 @@
1
1
  #!/usr/bin/env node
2
2
  import {
3
3
  displayPath
4
- } from "./chunk-TVLIJ6ZM.js";
4
+ } from "./chunk-VF46PE3Z.js";
5
5
  import {
6
6
  TERM_FIELDS
7
7
  } from "./chunk-MC7U5IH4.js";
@@ -55,4 +55,4 @@ export {
55
55
  renderFindingsJson,
56
56
  renderFormatsJson
57
57
  };
58
- //# sourceMappingURL=chunk-6QNA7UX2.js.map
58
+ //# sourceMappingURL=chunk-CKXZ3U4S.js.map
@@ -18,4 +18,4 @@ export {
18
18
  FIX_GUIDE,
19
19
  DocevalsError
20
20
  };
21
- //# sourceMappingURL=chunk-MDZXRHIJ.js.map
21
+ //# sourceMappingURL=chunk-CLH4ZYNG.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/docevals/types.ts"],"sourcesContent":["/**\n * Shared result model for manni docevals.\n *\n * Vocabulary follows the \"Docs as Evals\" methodology (Docs as Tests with AI):\n * every check is an *eval*; what differs is its *grader* (code-based, LLM-as-\n * judge, or human). Verdicts are binary pass/fail — aggregate rates emerge from\n * binary judgments, they are never assigned per item.\n */\nimport { ToolError } from \"../shared/errors.js\";\nimport type { Severity } from \"../shared/severity.js\";\nimport type { Guidance } from \"../shared/guidance.js\";\n\n// The judge vocabulary is shared with the inference layer and is re-exported\n// here so manni docevals code and its consumers keep one import site. A second local\n// definition would be a second thing to keep in sync.\n//\n// Match — a single run's verdict; `partial` counts as fail\n// Zone — confidence-zone routing for AI-judged evals\n// JudgeVerdict — the structured verdict of one run (the book's shape)\n// JudgeRun — one run within an ensemble\n// ConsensusResult — the aggregated outcome for one (page, eval) pair\nimport type { ConsensusResult } from \"@hawkeyexl/inference\";\n\nexport type {\n ConsensusResult,\n JudgeRun,\n JudgeVerdict,\n Match,\n Zone,\n} from \"@hawkeyexl/inference\";\n\n/**\n * Regression evals guard behavior that must keep working (~100% target pass\n * rate). Capability evals probe what the docs/system can do (~70% target).\n */\nexport type EvalType = \"capability\" | \"regression\";\n\n/**\n * Finding severity for deterministically graded evals: the family scale,\n * `notice | warning | error`, from `src/shared/severity.ts`. Only `error`\n * affects exit codes.\n */\nexport type { Severity };\n\n/** The page every docevals finding links to. */\nexport const FIX_GUIDE = \"https://hawkeyexl.github.io/manni/docevals/fix/\";\n\n/** How an eval is graded. `tool:regex` is the built-in `tool:*` kind; `registerGrader` adds others. */\nexport type GraderKind = \"ai\" | \"command\" | \"human\" | `tool:${string}`;\n\n/** A normalized finding from a deterministically graded eval (command or tool). */\nexport interface Finding {\n /** Name of the eval that produced this finding. */\n evalName: string;\n /** Repo-relative path of the page the finding applies to. */\n file: string;\n /** Grader-specific rule id (e.g. \"regex/found\"), when available. */\n ruleId?: string;\n message: string;\n severity: Severity;\n /**\n * This finding is about the *grader*, not the page: the tool could not be\n * run, or its output could not be read. It fails the eval whatever severity\n * the eval is configured at, because an eval configured `severity: warning`\n * would otherwise pass while its check never executed (ADR 01022).\n *\n * A finding about the page carries the eval's severity as usual.\n */\n diagnostic?: boolean;\n line?: number;\n col?: number;\n}\n\n/** Result of one eval applied to one page. */\nexport interface EvalResult {\n evalName: string;\n /**\n * Suite this result reports under. Stamped centrally by the engine, which\n * already computes the mapping for the suite summaries — the alternative is\n * threading it through every one of the ~30 places a result is constructed.\n */\n suite?: string;\n type: EvalType;\n grader: GraderKind;\n file: string;\n /**\n * Where the page declares the eval: the item of its `evals` key that names\n * it, in the page or in the manifest that supplied the key (proposal 0037).\n * A suite eval the page never names points at its `eval-suite` key, or at\n * the page alone when the suite is the config's default. `file` is spelled\n * like `file`, and `line` is 1-based and absent when nothing records one.\n *\n * Stamped centrally by the engine, like `suite`, on every result it\n * reports.\n */\n location?: { file: string; line?: number };\n /**\n * The page content this result judged, as `sha256-<hex>`: the SHA-256 of\n * the whole file as the run read it, frontmatter included (proposal 0090).\n * Every result for one page carries the same value. Stamped centrally by\n * the engine, like `suite`.\n */\n integrity?: string;\n /**\n * What the eval asks for (proposal 0089): `id` is the file that declares\n * it, `rule` its name, `description` its assertion, and `guide` the fix\n * page. Stamped centrally by the engine on every result, passing ones too.\n */\n guidance?: Guidance | null;\n outcome: \"pass\" | \"fail\" | \"needs-review\" | \"skipped\" | \"error\";\n /**\n * The persona record ids the judge read the page as, in the page's order\n * (proposal 0111). Present only on a judged result of an eval with\n * `readers: personas` whose page names a persona record.\n */\n personas?: string[];\n /** Present for ai-graded evals. */\n consensus?: ConsensusResult;\n /** Present for command/tool-graded evals that produced findings. */\n findings?: Finding[];\n /** True when this run generated the eval's check script. */\n generated?: boolean;\n /** Set when a persisted human review resolved a needs-review outcome. */\n via?: \"human-review\";\n /**\n * Findings the baseline already recorded and this run therefore suppressed\n * (ADR 01017). Present only on a run with a baseline in effect, so its\n * absence means \"no baseline\", not \"nothing was forgiven\".\n */\n baselined?: number;\n skipReason?: string;\n /**\n * The eval's weight in its suite's pass rate. Stamped centrally by the\n * engine alongside `suite`, and for the same reason: threading it through\n * the ~30 sites that construct a result would be thirty chances to forget.\n */\n weight?: number;\n /**\n * Set when the model that judged this eval also produced what it graded.\n *\n * `content` — the machines attributed for what the eval's `target` reads\n * name this model (`provenance` for the body, the `fields` of\n * `meta-provenance` for the frontmatter, both for `raw`): the judge wrote\n * what it grades. `criterion` — a `meta-provenance` entry for this model\n * lists this eval under `evals`: the judge wrote the question. Both bias a\n * verdict without invalidating it, so this rides along with a real outcome\n * rather than replacing it, and reaches every reporter instead of stderr.\n */\n selfPreference?: { axis: \"content\" | \"criterion\"; model: string };\n durationMs: number;\n}\n\n/** Per-suite aggregate. Pass rates emerge from binary outcomes. */\nexport interface SuiteSummary {\n suite: string;\n total: number;\n passed: number;\n failed: number;\n needsReview: number;\n skipped: number;\n errored: number;\n /**\n * Weighted share of the graded set that passed, 1 when nothing ran.\n *\n * The graded set is pass + fail + error, as it has always been —\n * `needs-review` and `skipped` are in neither half, so a page awaiting review\n * neither helps nor hurts. Each eval contributes its `weight` (1 unless it\n * says otherwise), and an eval that belongs to a criterion contributes\n * nothing on its own: the criterion contributes once, for the group.\n */\n passRate: number;\n /** From config: ~1.0 for regression suites, ~0.7 for capability suites. */\n targetPassRate: number;\n meetsTarget: boolean;\n /**\n * Set when a selection filter (`--eval` / `--suite`) was active, meaning the\n * run measured part of this suite. `meetsTarget` is then always false and the\n * suite cannot fail the run either: it has numbers, but no verdict.\n */\n partial?: boolean;\n /**\n * Criteria scored in this suite. Present only when the suite declares any,\n * so its absence means \"none\", never \"none passed\".\n *\n * `suspended` counts criteria whose members were not all graded in this run.\n * They are out of the rate entirely rather than counted as failures — the\n * same reasoning as `partial` one level down (ADR 01018): a group measured\n * in part has numbers but no verdict.\n */\n criteria?: {\n total: number;\n passed: number;\n failed: number;\n suspended: number;\n };\n}\n\n/** Full run output consumed by reporters. */\nexport interface RunReport {\n pages: number;\n evalResults: EvalResult[];\n suites: SuiteSummary[];\n /**\n * Judge telemetry. Counts, not money: the dollar figure this block used to\n * carry was only as good as a price table this repo does not own, and was\n * absent entirely for `claude-cli` and self-hosted endpoints (ADR 01019).\n */\n usage: {\n totalTokens: number;\n cachedEvals: number;\n judgedEvals: number;\n };\n /** Script generations performed during this run (paths written). */\n generated: string[];\n exitCode: 0 | 1;\n}\n\n/** Operational/usage error → exit code 2. */\nexport class DocevalsError extends ToolError {\n constructor(\n message: string,\n /**\n * Set where a caller acts on the kind of error rather than reporting it.\n * `nothing-resolved`: no page this run would check resolves an eval.\n */\n readonly code?: \"nothing-resolved\",\n ) {\n super(message);\n this.name = \"DocevalsError\";\n }\n}\n"],"mappings":";;;;;;AA6CO,IAAM,YAAY;AA6KlB,IAAM,gBAAN,cAA4B,UAAU;AAAA,EAC3C,YACE,SAKS,MACT;AACA,UAAM,OAAO;AAFJ;AAGT,SAAK,OAAO;AAAA,EACd;AAAA,EAJW;AAKb;","names":[]}
@@ -2,10 +2,10 @@
2
2
  import {
3
3
  resultFor,
4
4
  splitBaselined
5
- } from "./chunk-72UN462G.js";
5
+ } from "./chunk-7O6TTSOO.js";
6
6
  import {
7
7
  errorSite
8
- } from "./chunk-XVL7DYWM.js";
8
+ } from "./chunk-3OHMRGHD.js";
9
9
  import {
10
10
  escapeWorkflowCommandMessage,
11
11
  escapeWorkflowCommandProperty,
@@ -56,4 +56,4 @@ export {
56
56
  findingMessage,
57
57
  renderCheckGithub
58
58
  };
59
- //# sourceMappingURL=chunk-6RENCXLC.js.map
59
+ //# sourceMappingURL=chunk-CRCMXSQR.js.map
@@ -8,7 +8,7 @@ import {
8
8
  loadTemplateFile,
9
9
  resolveLintRun,
10
10
  resolveStructureTool
11
- } from "./chunk-QR55QXJ7.js";
11
+ } from "./chunk-QUO7DWIG.js";
12
12
  import {
13
13
  BLOCK_KINDS,
14
14
  BLOCK_KIND_NODE,
@@ -19,13 +19,13 @@ import {
19
19
  parserByName,
20
20
  parserForExtension,
21
21
  unsupportedFormatMessage
22
- } from "./chunk-TOVSR2YO.js";
22
+ } from "./chunk-W5TFTVPG.js";
23
23
  import {
24
24
  LintError
25
25
  } from "./chunk-TI4DA6DF.js";
26
26
  import {
27
27
  writeTextAtomic
28
- } from "./chunk-KX6HRTLH.js";
28
+ } from "./chunk-PDL6IO4Z.js";
29
29
  import {
30
30
  palette
31
31
  } from "./chunk-RNVYGWIC.js";
@@ -525,4 +525,4 @@ export {
525
525
  occurrenceWords,
526
526
  renderTemplateShow
527
527
  };
528
- //# sourceMappingURL=chunk-AOLCEULZ.js.map
528
+ //# sourceMappingURL=chunk-D4HY64LX.js.map
@@ -6,10 +6,10 @@ import {
6
6
  loadGraderPlugins,
7
7
  parseNewerThan,
8
8
  urlManifestRefusal
9
- } from "./chunk-WPHPLVS3.js";
9
+ } from "./chunk-ICTXBS5U.js";
10
10
  import {
11
11
  discoverArtifacts
12
- } from "./chunk-I4KDAO6P.js";
12
+ } from "./chunk-X7EDAIOH.js";
13
13
  import {
14
14
  discoverTraces
15
15
  } from "./chunk-4TSWU2SU.js";
@@ -35,7 +35,7 @@ import {
35
35
  externalWriteWarnings,
36
36
  mergeMetaProvenance,
37
37
  offerExternalHomes
38
- } from "./chunk-AZKNB2T3.js";
38
+ } from "./chunk-A322P5GM.js";
39
39
  import {
40
40
  keyHome,
41
41
  marksValidator,
@@ -43,12 +43,12 @@ import {
43
43
  readManifestOrEmpty,
44
44
  readManifestValue,
45
45
  spliceManifestValue
46
- } from "./chunk-KX6HRTLH.js";
46
+ } from "./chunk-PDL6IO4Z.js";
47
47
  import {
48
48
  DocmetaError,
49
49
  extractFrontmatter,
50
50
  writeFileAtomic
51
- } from "./chunk-QWVIGKBM.js";
51
+ } from "./chunk-67OVXUT3.js";
52
52
  import {
53
53
  SEVERITIES
54
54
  } from "./chunk-77AINBYM.js";
@@ -1193,4 +1193,4 @@ export {
1193
1193
  runFill,
1194
1194
  renderFill
1195
1195
  };
1196
- //# sourceMappingURL=chunk-K4YR4PY2.js.map
1196
+ //# sourceMappingURL=chunk-DCHYTN2R.js.map
@@ -5,7 +5,7 @@ import {
5
5
  loadConfig,
6
6
  resolveRoute,
7
7
  routesFrom
8
- } from "./chunk-LHP56Q45.js";
8
+ } from "./chunk-5C5UNRZF.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-UMY3IKYT.js";
27
27
  import {
28
28
  RECORD_FIELDS,
29
29
  readRecord
30
- } from "./chunk-AZKNB2T3.js";
30
+ } from "./chunk-A322P5GM.js";
31
31
  import {
32
32
  STDIN_REQUIRES_AS
33
- } from "./chunk-KX6HRTLH.js";
33
+ } from "./chunk-PDL6IO4Z.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-67OVXUT3.js";
44
44
  import {
45
45
  SEVERITIES
46
46
  } from "./chunk-77AINBYM.js";
@@ -482,9 +482,6 @@ async function resolveStrategyRun(opts) {
482
482
  };
483
483
  }
484
484
 
485
- // src/strategy/commands/run.ts
486
- import { isAbsolute, relative as relative2, resolve as resolve4 } from "node:path";
487
-
488
485
  // src/strategy/core/load-set.ts
489
486
  import { readFile } from "node:fs/promises";
490
487
  import { extname, resolve as resolve3 } from "node:path";
@@ -622,6 +619,7 @@ async function loadStrategySet(opts) {
622
619
  line: 1,
623
620
  ...declaredId === void 0 ? {} : { idAt: at("/id") },
624
621
  parents: declares.type === "audience" ? [] : valuesOf(data, PARENTS[declares.type]).map(({ value, pointer }) => ({ value, ...at(pointer) })),
622
+ data,
625
623
  ...steps.length === 0 ? {} : { steps }
626
624
  };
627
625
  set.records.push(record);
@@ -646,6 +644,7 @@ async function loadStrategySet(opts) {
646
644
  }
647
645
 
648
646
  // src/strategy/commands/run.ts
647
+ import { isAbsolute, relative as relative2, resolve as resolve4 } from "node:path";
649
648
  async function loadStrategy(opts) {
650
649
  const cwd = resolve4(opts.cwd ?? process.cwd());
651
650
  const run = await resolveStrategyRun({
@@ -693,9 +692,10 @@ export {
693
692
  StrategyError,
694
693
  DEFAULT_STRATEGY_BASELINE_PATH,
695
694
  resolveStrategyRun,
695
+ loadStrategySet,
696
696
  loadStrategy,
697
697
  formatChoice,
698
698
  displayPath,
699
699
  plural
700
700
  };
701
- //# sourceMappingURL=chunk-FBIBR4CH.js.map
701
+ //# sourceMappingURL=chunk-DILBGKLL.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}\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,KAAK,OAAO,EAAE,GAAG,MAAM;AAAA,EAClE;AACA,QAAM,YAAY,CAAC,MAAkB,UAA8C,OAAO,IAAI,IAAI,GAAG,IAAI,KAAK,KAAK,CAAC;AACpH,QAAM,YAAY,CAAC,WAA6C;AAC9D,QAAI,OAAO,SAAS,WAAY,QAAO,CAAC;AACxC,UAAM,OAAO,aAAa,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,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"]}
@@ -9,7 +9,7 @@ import {
9
9
  } from "./chunk-MC7U5IH4.js";
10
10
  import {
11
11
  renderSarif
12
- } from "./chunk-2QK25SLZ.js";
12
+ } from "./chunk-XYNYBH3M.js";
13
13
  import {
14
14
  guidanceLines
15
15
  } from "./chunk-QK6VYJHV.js";
@@ -73,4 +73,4 @@ export {
73
73
  FIELD_LABEL,
74
74
  renderFindingsSarif
75
75
  };
76
- //# sourceMappingURL=chunk-3USSSKLA.js.map
76
+ //# sourceMappingURL=chunk-EN4RGJDD.js.map
@@ -5,10 +5,10 @@ import {
5
5
  suppressGraphOutput,
6
6
  userFacing,
7
7
  withExternalMetadata
8
- } from "./chunk-LT3STF5K.js";
8
+ } from "./chunk-S6RCOR2J.js";
9
9
  import {
10
10
  canonicalLanguageTag
11
- } from "./chunk-MGQNGW6I.js";
11
+ } from "./chunk-BKJ6JPQF.js";
12
12
  import {
13
13
  GRAPH_NOT_APPLICABLE_TO_VARIANT,
14
14
  GRAPH_NOT_SOFTWARE_SUBJECT,
@@ -53,21 +53,21 @@ import {
53
53
  resolveDocumentSet,
54
54
  resolveRelative,
55
55
  routesFrom
56
- } from "./chunk-LHP56Q45.js";
56
+ } from "./chunk-5C5UNRZF.js";
57
57
  import {
58
58
  readRecord,
59
59
  sameRecordId
60
- } from "./chunk-AZKNB2T3.js";
60
+ } from "./chunk-A322P5GM.js";
61
61
  import {
62
62
  spellLines,
63
63
  writeTextAtomic
64
- } from "./chunk-KX6HRTLH.js";
64
+ } from "./chunk-PDL6IO4Z.js";
65
65
  import {
66
66
  termLabelSource
67
67
  } from "./chunk-DSWKBZWW.js";
68
68
  import {
69
69
  package_default
70
- } from "./chunk-N2T6RLSE.js";
70
+ } from "./chunk-KVLOTBQR.js";
71
71
  import {
72
72
  errorMessage
73
73
  } from "./chunk-G3T47CFV.js";
@@ -1335,4 +1335,4 @@ export {
1335
1335
  runBuild,
1336
1336
  buildGraph
1337
1337
  };
1338
- //# sourceMappingURL=chunk-UQYDLEBS.js.map
1338
+ //# sourceMappingURL=chunk-EWBVN4XX.js.map
@@ -1,10 +1,10 @@
1
1
  #!/usr/bin/env node
2
2
  import {
3
3
  titleOf
4
- } from "./chunk-FJYIPHWK.js";
4
+ } from "./chunk-BJH5VPAO.js";
5
5
  import {
6
6
  displayPath
7
- } from "./chunk-FBIBR4CH.js";
7
+ } from "./chunk-DILBGKLL.js";
8
8
 
9
9
  // src/strategy/reporters/json.ts
10
10
  function recordJson(entry) {
@@ -75,4 +75,4 @@ export {
75
75
  renderGetJson,
76
76
  renderFindingsJson
77
77
  };
78
- //# sourceMappingURL=chunk-WHECOVH2.js.map
78
+ //# sourceMappingURL=chunk-EZBMIWUP.js.map
@@ -18,7 +18,7 @@ import {
18
18
  renderQuestionSummary,
19
19
  storeToQuads,
20
20
  validateGraph
21
- } from "./chunk-EPN67ZNX.js";
21
+ } from "./chunk-RCYH36B6.js";
22
22
  import {
23
23
  GraphIndex,
24
24
  IMPACT_DEPTH,
@@ -29,7 +29,7 @@ import {
29
29
  parseChunksManifest,
30
30
  retrieve,
31
31
  walkPassages
32
- } from "./chunk-C2QE4FSZ.js";
32
+ } from "./chunk-5RRP5CQR.js";
33
33
  import {
34
34
  URI_BASE_ID,
35
35
  artifactLocation,
@@ -41,10 +41,10 @@ import {
41
41
  PREFIXES,
42
42
  documentBase,
43
43
  loadRunConfig
44
- } from "./chunk-LHP56Q45.js";
44
+ } from "./chunk-5C5UNRZF.js";
45
45
  import {
46
46
  integrityOf
47
- } from "./chunk-QWVIGKBM.js";
47
+ } from "./chunk-67OVXUT3.js";
48
48
  import {
49
49
  escapeWorkflowCommandMessage,
50
50
  escapeWorkflowCommandProperty,
@@ -55,7 +55,7 @@ import {
55
55
  } from "./chunk-RNVYGWIC.js";
56
56
  import {
57
57
  package_default
58
- } from "./chunk-N2T6RLSE.js";
58
+ } from "./chunk-KVLOTBQR.js";
59
59
  import {
60
60
  errorMessage
61
61
  } from "./chunk-G3T47CFV.js";
@@ -542,4 +542,4 @@ export {
542
542
  runCheck,
543
543
  renderCheck
544
544
  };
545
- //# sourceMappingURL=chunk-DWUK6YNX.js.map
545
+ //# sourceMappingURL=chunk-FDMEBSDY.js.map
@@ -1,7 +1,7 @@
1
1
  #!/usr/bin/env node
2
2
  import {
3
3
  DocevalsError
4
- } from "./chunk-MDZXRHIJ.js";
4
+ } from "./chunk-CLH4ZYNG.js";
5
5
 
6
6
  // src/docevals/reporters/format.ts
7
7
  var REPORT_FORMATS = [
@@ -28,4 +28,4 @@ export {
28
28
  SUMMARY_FORMATS,
29
29
  parseFormat
30
30
  };
31
- //# sourceMappingURL=chunk-N25KDXOV.js.map
31
+ //# sourceMappingURL=chunk-H7UPMVBK.js.map
@@ -3,10 +3,10 @@ import {
3
3
  RULE_ID_PREFIX,
4
4
  guidanceFor,
5
5
  isStrategyRule
6
- } from "./chunk-VSDXZAQU.js";
6
+ } from "./chunk-BXQLKOOR.js";
7
7
  import {
8
8
  renderSarif
9
- } from "./chunk-2QK25SLZ.js";
9
+ } from "./chunk-XYNYBH3M.js";
10
10
  import {
11
11
  guidanceLines
12
12
  } from "./chunk-QK6VYJHV.js";
@@ -47,4 +47,4 @@ export {
47
47
  FIELD_LABEL,
48
48
  renderFindingsSarif
49
49
  };
50
- //# sourceMappingURL=chunk-QJL57GPX.js.map
50
+ //# sourceMappingURL=chunk-I3QMDFDG.js.map
@@ -5,7 +5,7 @@ import {
5
5
  import {
6
6
  findManifest,
7
7
  resolveArtifacts
8
- } from "./chunk-YUCH6WJY.js";
8
+ } from "./chunk-3NPPEVIA.js";
9
9
  import {
10
10
  discoverTraces
11
11
  } from "./chunk-4TSWU2SU.js";
@@ -20,14 +20,14 @@ import {
20
20
  } from "./chunk-TT5UDTDM.js";
21
21
  import {
22
22
  parseTraceFile
23
- } from "./chunk-2GPF4OEF.js";
23
+ } from "./chunk-WCHP6QET.js";
24
24
  import {
25
25
  REDO_OR_FIX,
26
26
  windowFor
27
27
  } from "./chunk-VHJ72YCD.js";
28
28
  import {
29
29
  extractEvals
30
- } from "./chunk-QJGPOFNB.js";
30
+ } from "./chunk-SOY53WQN.js";
31
31
  import {
32
32
  discoverConfig
33
33
  } from "./chunk-3ZVRGBK6.js";
@@ -64,10 +64,10 @@ import {
64
64
  } from "./chunk-GLP5PSXB.js";
65
65
  import {
66
66
  declaredAt
67
- } from "./chunk-EBBJFXMX.js";
67
+ } from "./chunk-UMY3IKYT.js";
68
68
  import {
69
69
  xmlEscape
70
- } from "./chunk-2QK25SLZ.js";
70
+ } from "./chunk-XYNYBH3M.js";
71
71
  import {
72
72
  PATH_JOIN,
73
73
  externalMetadataJoin,
@@ -75,12 +75,12 @@ import {
75
75
  loadExternalMetadata,
76
76
  memberOf,
77
77
  mergeWithMarks
78
- } from "./chunk-KX6HRTLH.js";
78
+ } from "./chunk-PDL6IO4Z.js";
79
79
  import {
80
80
  DocmetaError,
81
81
  classifyRef,
82
82
  extractFrontmatter
83
- } from "./chunk-QWVIGKBM.js";
83
+ } from "./chunk-67OVXUT3.js";
84
84
  import {
85
85
  escapeWorkflowCommandMessage,
86
86
  escapeWorkflowCommandProperty,
@@ -2339,4 +2339,4 @@ export {
2339
2339
  resolveBatchTraces,
2340
2340
  runBatch
2341
2341
  };
2342
- //# sourceMappingURL=chunk-WPHPLVS3.js.map
2342
+ //# sourceMappingURL=chunk-ICTXBS5U.js.map