@hawkeyexl/manni 4.24.0 → 4.25.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (226) hide show
  1. package/README.md +1 -1
  2. package/dist/{batch-KWVJWSOE.js → batch-VP7VAFFA.js} +12 -12
  3. package/dist/{build-VPEIOEHC.js → build-44OHCP5P.js} +13 -13
  4. package/dist/{calibrate-DRQLK53T.js → calibrate-5X3V3IFG.js} +13 -13
  5. package/dist/{capture-GNPDAZHH.js → capture-QUDOYQOS.js} +12 -12
  6. package/dist/{check-ZTCCQ2TA.js → check-IF6WXUEI.js} +12 -12
  7. package/dist/check-LNCNERTV.js +57 -0
  8. package/dist/{check-M27BITCI.js → check-MZWAI5CR.js} +22 -22
  9. package/dist/{check-BVH7A764.js → check-QSW4PTDL.js} +13 -13
  10. package/dist/{check-ACHNMW6J.js → check-ZNGJ3QPU.js} +10 -10
  11. package/dist/{chunk-PDL6IO4Z.js → chunk-2LF3NIWH.js} +2 -2
  12. package/dist/{chunk-RCYH36B6.js → chunk-3J6O3ID5.js} +9 -9
  13. package/dist/{chunk-SRAFH7QS.js → chunk-3ZKW6ILQ.js} +5 -5
  14. package/dist/{chunk-3OHMRGHD.js → chunk-3ZWKN3JF.js} +4 -4
  15. package/dist/{chunk-OF3YEKYT.js → chunk-44ETYRW3.js} +5 -5
  16. package/dist/{chunk-OWDVSQAU.js → chunk-4UHRMUV3.js} +4 -4
  17. package/dist/{chunk-NZRNW2XM.js → chunk-5XVS7OLH.js} +12 -9
  18. package/dist/chunk-5XVS7OLH.js.map +1 -0
  19. package/dist/{chunk-YLCP5KPU.js → chunk-6NN7VGDU.js} +10 -10
  20. package/dist/{chunk-5C5UNRZF.js → chunk-6RFNXPVZ.js} +5 -5
  21. package/dist/{chunk-X7EDAIOH.js → chunk-6T4AJ2L6.js} +3 -3
  22. package/dist/{chunk-4BWD6PHR.js → chunk-6Z3XOK52.js} +8 -8
  23. package/dist/{chunk-EZBMIWUP.js → chunk-7QIUCIOS.js} +7 -5
  24. package/dist/chunk-7QIUCIOS.js.map +1 -0
  25. package/dist/{chunk-WCRZHFCI.js → chunk-A7Z74ZVA.js} +13 -13
  26. package/dist/{chunk-S6RCOR2J.js → chunk-ADZH6SFC.js} +4 -4
  27. package/dist/{chunk-MVZYZOYN.js → chunk-AFTHVJYK.js} +5 -5
  28. package/dist/{chunk-W4KJPTAN.js → chunk-BNCI4B5B.js} +4 -4
  29. package/dist/{chunk-DCHYTN2R.js → chunk-CI655H5P.js} +6 -6
  30. package/dist/{chunk-XYNYBH3M.js → chunk-CSZIHCPC.js} +3 -3
  31. package/dist/{chunk-2RFVMOPC.js → chunk-CU2RHHDC.js} +7 -7
  32. package/dist/{chunk-ICTXBS5U.js → chunk-DM37LCWS.js} +8 -8
  33. package/dist/{chunk-VF46PE3Z.js → chunk-DP2YVP7S.js} +4 -4
  34. package/dist/{chunk-Z236YJ2V.js → chunk-E4A2OW24.js} +7 -7
  35. package/dist/{chunk-632W5O3C.js → chunk-FKM3GGP4.js} +8 -8
  36. package/dist/{chunk-45E6J2WY.js → chunk-G7DHWDSI.js} +2 -2
  37. package/dist/{chunk-WCHP6QET.js → chunk-GQQGKKXK.js} +2 -2
  38. package/dist/{chunk-D4HY64LX.js → chunk-GVG6LI5Q.js} +4 -4
  39. package/dist/{chunk-67OVXUT3.js → chunk-IQ4YRTPO.js} +2 -2
  40. package/dist/{chunk-3TGXVNYA.js → chunk-ITEGS3X3.js} +5 -5
  41. package/dist/{chunk-TIJG2XL6.js → chunk-J3LMV74L.js} +4 -4
  42. package/dist/{chunk-LK5TELK3.js → chunk-JNG6N5YH.js} +6 -6
  43. package/dist/{chunk-CKXZ3U4S.js → chunk-JPIWDKSR.js} +2 -2
  44. package/dist/{chunk-UMY3IKYT.js → chunk-KG7ZP7Z6.js} +3 -3
  45. package/dist/{chunk-ZOVUANFB.js → chunk-LTCAXNJS.js} +2 -2
  46. package/dist/{chunk-KKASKZUG.js → chunk-M4OGE7AL.js} +2 -2
  47. package/dist/{chunk-UU7W7VJ7.js → chunk-MUPA2MUK.js} +7 -7
  48. package/dist/chunk-MUPA2MUK.js.map +1 -0
  49. package/dist/{chunk-2AWYKLQR.js → chunk-MXRFHC7I.js} +2 -2
  50. package/dist/{chunk-RHSQ3RRA.js → chunk-NQFSXLYK.js} +6 -6
  51. package/dist/{chunk-I3QMDFDG.js → chunk-OG6OJC64.js} +2 -2
  52. package/dist/{chunk-7O6TTSOO.js → chunk-OIGFV4BG.js} +4 -4
  53. package/dist/{chunk-KVLOTBQR.js → chunk-PMRBTUCZ.js} +2 -2
  54. package/dist/{chunk-KVLOTBQR.js.map → chunk-PMRBTUCZ.js.map} +1 -1
  55. package/dist/{chunk-EWBVN4XX.js → chunk-PYCKKLN2.js} +7 -7
  56. package/dist/{chunk-CRCMXSQR.js → chunk-PZLJQE2S.js} +3 -3
  57. package/dist/{chunk-RPHOBLOQ.js → chunk-Q44S7QYO.js} +3 -3
  58. package/dist/{chunk-SOY53WQN.js → chunk-R3EJQKGM.js} +3 -3
  59. package/dist/{chunk-5RRP5CQR.js → chunk-RIKCEIS7.js} +3 -3
  60. package/dist/{chunk-RHMOEPNT.js → chunk-S6TCOSAY.js} +6 -6
  61. package/dist/{chunk-5JAWIM54.js → chunk-SBPIX4DE.js} +2 -2
  62. package/dist/{chunk-2UT6FSV5.js → chunk-SHDMHEY6.js} +3 -3
  63. package/dist/{chunk-JBY3ZYV4.js → chunk-SNNT4A3J.js} +2 -2
  64. package/dist/{chunk-FDMEBSDY.js → chunk-SPGRVFWW.js} +6 -6
  65. package/dist/{chunk-EN4RGJDD.js → chunk-TX6WDFGT.js} +2 -2
  66. package/dist/{chunk-BJH5VPAO.js → chunk-V3CE2MQV.js} +8 -6
  67. package/dist/chunk-V3CE2MQV.js.map +1 -0
  68. package/dist/{chunk-QUO7DWIG.js → chunk-W4W3NHK4.js} +4 -4
  69. package/dist/{chunk-J5KMZDL6.js → chunk-WCMO7DTA.js} +2 -2
  70. package/dist/{chunk-W5TFTVPG.js → chunk-WFSZVCTZ.js} +2 -2
  71. package/dist/{chunk-A322P5GM.js → chunk-WMJ2FXYV.js} +9 -8
  72. package/dist/chunk-WMJ2FXYV.js.map +1 -0
  73. package/dist/{chunk-BKJ6JPQF.js → chunk-X64BY7TV.js} +2 -2
  74. package/dist/{chunk-3NPPEVIA.js → chunk-XWPKJD45.js} +2 -2
  75. package/dist/{chunk-OQSY6VHV.js → chunk-Y2GYB3SB.js} +4 -4
  76. package/dist/{chunk-IDZXRFBA.js → chunk-YBWDATJO.js} +5 -5
  77. package/dist/chunk-YBWDATJO.js.map +1 -0
  78. package/dist/{chunk-DILBGKLL.js → chunk-ZPKPL52R.js} +29 -12
  79. package/dist/chunk-ZPKPL52R.js.map +1 -0
  80. package/dist/{cli-SZCB4QXF.js → cli-4WOYZQQF.js} +13 -13
  81. package/dist/{cli-66SXH7LQ.js → cli-5HRQSZJG.js} +16 -16
  82. package/dist/{cli-3XDWEQRN.js → cli-AISVPF4O.js} +27 -27
  83. package/dist/{cli-IZVNUGGL.js → cli-DFUPK6NY.js} +23 -23
  84. package/dist/{cli-5HOVEAYH.js → cli-H2RUHLCF.js} +19 -19
  85. package/dist/{cli-7BSAEX34.js → cli-HXFFCF5U.js} +26 -26
  86. package/dist/{cli-5ZJ2J4DD.js → cli-JH67BLTC.js} +7 -7
  87. package/dist/{cli-ABUOJTMK.js → cli-KLOTJTBA.js} +2 -2
  88. package/dist/{cli-KUEEANY6.js → cli-MCFDABF3.js} +52 -52
  89. package/dist/{cli-N6GSDCIT.js → cli-MVWF3ZJL.js} +12 -12
  90. package/dist/{cli-YYJCE53Q.js → cli-UUJQ2MA5.js} +33 -33
  91. package/dist/cli.js +15 -15
  92. package/dist/docmeta.js +6 -6
  93. package/dist/github-JHXSVOLR.js +48 -0
  94. package/dist/{github-6ONVXQ3Y.js → github-X3JHTWYZ.js} +10 -10
  95. package/dist/{github-6TXHICNH.js → github-ZARIFMCP.js} +12 -12
  96. package/dist/index.js +49 -49
  97. package/dist/{json-E5MUPFJ5.js → json-MOKARROA.js} +10 -10
  98. package/dist/{json-765JLUSV.js → json-O6KJT3C3.js} +13 -13
  99. package/dist/{labels-HF7ZZCNK.js → labels-6IEBGB7P.js} +9 -9
  100. package/dist/{lint-5IYTCQ4J.js → lint-W6KQ7QGB.js} +10 -10
  101. package/dist/{list-XVLMKWVP.js → list-EOWL6REV.js} +12 -12
  102. package/dist/{list-HVSOCIFI.js → list-LIP6QOWF.js} +21 -21
  103. package/dist/{list-NJIHE4AI.js → list-UXJ2NK7K.js} +10 -10
  104. package/dist/{page-7RQSNZTA.js → page-U4D4RT4T.js} +9 -9
  105. package/dist/{prepare-3QURVQY5.js → prepare-EP7RFG3W.js} +11 -11
  106. package/dist/{pretty-EYZFYS4B.js → pretty-U5HUKTPN.js} +12 -12
  107. package/dist/{pretty-LUKCTVAG.js → pretty-YFAKTBDO.js} +10 -10
  108. package/dist/{pretty-JU56KUCB.js → pretty-YXK7QWYR.js} +22 -22
  109. package/dist/{reporters-L445ICCY.js → reporters-GGPH44QS.js} +4 -4
  110. package/dist/{reporters-QHT2M3PA.js → reporters-SJW725TW.js} +9 -9
  111. package/dist/{run-WEGK4L3H.js → run-WAIHWCOH.js} +21 -21
  112. package/dist/{sarif-VRF3SEOJ.js → sarif-IY6OTG4M.js} +8 -8
  113. package/dist/{sarif-NPIGVW6V.js → sarif-QYID4Z4M.js} +8 -8
  114. package/dist/sarif-SJ27UD3T.js +49 -0
  115. package/dist/{strategy-IKURQ4YU.js → strategy-3B6KJNFA.js} +19 -19
  116. package/dist/{term-ZIXHKJJD.js → term-M63KLMUK.js} +15 -15
  117. package/dist/{validate-HBTYACVP.js → validate-XW5WSXKU.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-VP7VAFFA.js.map} +0 -0
  131. /package/dist/{build-VPEIOEHC.js.map → build-44OHCP5P.js.map} +0 -0
  132. /package/dist/{calibrate-DRQLK53T.js.map → calibrate-5X3V3IFG.js.map} +0 -0
  133. /package/dist/{capture-GNPDAZHH.js.map → capture-QUDOYQOS.js.map} +0 -0
  134. /package/dist/{check-ACHNMW6J.js.map → check-IF6WXUEI.js.map} +0 -0
  135. /package/dist/{check-M27BITCI.js.map → check-LNCNERTV.js.map} +0 -0
  136. /package/dist/{check-TCDNMHDB.js.map → check-MZWAI5CR.js.map} +0 -0
  137. /package/dist/{check-BVH7A764.js.map → check-QSW4PTDL.js.map} +0 -0
  138. /package/dist/{check-ZTCCQ2TA.js.map → check-ZNGJ3QPU.js.map} +0 -0
  139. /package/dist/{chunk-PDL6IO4Z.js.map → chunk-2LF3NIWH.js.map} +0 -0
  140. /package/dist/{chunk-RCYH36B6.js.map → chunk-3J6O3ID5.js.map} +0 -0
  141. /package/dist/{chunk-SRAFH7QS.js.map → chunk-3ZKW6ILQ.js.map} +0 -0
  142. /package/dist/{chunk-3OHMRGHD.js.map → chunk-3ZWKN3JF.js.map} +0 -0
  143. /package/dist/{chunk-OF3YEKYT.js.map → chunk-44ETYRW3.js.map} +0 -0
  144. /package/dist/{chunk-OWDVSQAU.js.map → chunk-4UHRMUV3.js.map} +0 -0
  145. /package/dist/{chunk-YLCP5KPU.js.map → chunk-6NN7VGDU.js.map} +0 -0
  146. /package/dist/{chunk-5C5UNRZF.js.map → chunk-6RFNXPVZ.js.map} +0 -0
  147. /package/dist/{chunk-X7EDAIOH.js.map → chunk-6T4AJ2L6.js.map} +0 -0
  148. /package/dist/{chunk-4BWD6PHR.js.map → chunk-6Z3XOK52.js.map} +0 -0
  149. /package/dist/{chunk-WCRZHFCI.js.map → chunk-A7Z74ZVA.js.map} +0 -0
  150. /package/dist/{chunk-S6RCOR2J.js.map → chunk-ADZH6SFC.js.map} +0 -0
  151. /package/dist/{chunk-MVZYZOYN.js.map → chunk-AFTHVJYK.js.map} +0 -0
  152. /package/dist/{chunk-W4KJPTAN.js.map → chunk-BNCI4B5B.js.map} +0 -0
  153. /package/dist/{chunk-DCHYTN2R.js.map → chunk-CI655H5P.js.map} +0 -0
  154. /package/dist/{chunk-XYNYBH3M.js.map → chunk-CSZIHCPC.js.map} +0 -0
  155. /package/dist/{chunk-2RFVMOPC.js.map → chunk-CU2RHHDC.js.map} +0 -0
  156. /package/dist/{chunk-ICTXBS5U.js.map → chunk-DM37LCWS.js.map} +0 -0
  157. /package/dist/{chunk-VF46PE3Z.js.map → chunk-DP2YVP7S.js.map} +0 -0
  158. /package/dist/{chunk-Z236YJ2V.js.map → chunk-E4A2OW24.js.map} +0 -0
  159. /package/dist/{chunk-632W5O3C.js.map → chunk-FKM3GGP4.js.map} +0 -0
  160. /package/dist/{chunk-45E6J2WY.js.map → chunk-G7DHWDSI.js.map} +0 -0
  161. /package/dist/{chunk-WCHP6QET.js.map → chunk-GQQGKKXK.js.map} +0 -0
  162. /package/dist/{chunk-D4HY64LX.js.map → chunk-GVG6LI5Q.js.map} +0 -0
  163. /package/dist/{chunk-67OVXUT3.js.map → chunk-IQ4YRTPO.js.map} +0 -0
  164. /package/dist/{chunk-3TGXVNYA.js.map → chunk-ITEGS3X3.js.map} +0 -0
  165. /package/dist/{chunk-TIJG2XL6.js.map → chunk-J3LMV74L.js.map} +0 -0
  166. /package/dist/{chunk-LK5TELK3.js.map → chunk-JNG6N5YH.js.map} +0 -0
  167. /package/dist/{chunk-CKXZ3U4S.js.map → chunk-JPIWDKSR.js.map} +0 -0
  168. /package/dist/{chunk-UMY3IKYT.js.map → chunk-KG7ZP7Z6.js.map} +0 -0
  169. /package/dist/{chunk-ZOVUANFB.js.map → chunk-LTCAXNJS.js.map} +0 -0
  170. /package/dist/{chunk-KKASKZUG.js.map → chunk-M4OGE7AL.js.map} +0 -0
  171. /package/dist/{chunk-2AWYKLQR.js.map → chunk-MXRFHC7I.js.map} +0 -0
  172. /package/dist/{chunk-RHSQ3RRA.js.map → chunk-NQFSXLYK.js.map} +0 -0
  173. /package/dist/{chunk-I3QMDFDG.js.map → chunk-OG6OJC64.js.map} +0 -0
  174. /package/dist/{chunk-7O6TTSOO.js.map → chunk-OIGFV4BG.js.map} +0 -0
  175. /package/dist/{chunk-EWBVN4XX.js.map → chunk-PYCKKLN2.js.map} +0 -0
  176. /package/dist/{chunk-CRCMXSQR.js.map → chunk-PZLJQE2S.js.map} +0 -0
  177. /package/dist/{chunk-RPHOBLOQ.js.map → chunk-Q44S7QYO.js.map} +0 -0
  178. /package/dist/{chunk-SOY53WQN.js.map → chunk-R3EJQKGM.js.map} +0 -0
  179. /package/dist/{chunk-5RRP5CQR.js.map → chunk-RIKCEIS7.js.map} +0 -0
  180. /package/dist/{chunk-RHMOEPNT.js.map → chunk-S6TCOSAY.js.map} +0 -0
  181. /package/dist/{chunk-5JAWIM54.js.map → chunk-SBPIX4DE.js.map} +0 -0
  182. /package/dist/{chunk-2UT6FSV5.js.map → chunk-SHDMHEY6.js.map} +0 -0
  183. /package/dist/{chunk-JBY3ZYV4.js.map → chunk-SNNT4A3J.js.map} +0 -0
  184. /package/dist/{chunk-FDMEBSDY.js.map → chunk-SPGRVFWW.js.map} +0 -0
  185. /package/dist/{chunk-EN4RGJDD.js.map → chunk-TX6WDFGT.js.map} +0 -0
  186. /package/dist/{chunk-QUO7DWIG.js.map → chunk-W4W3NHK4.js.map} +0 -0
  187. /package/dist/{chunk-J5KMZDL6.js.map → chunk-WCMO7DTA.js.map} +0 -0
  188. /package/dist/{chunk-W5TFTVPG.js.map → chunk-WFSZVCTZ.js.map} +0 -0
  189. /package/dist/{chunk-BKJ6JPQF.js.map → chunk-X64BY7TV.js.map} +0 -0
  190. /package/dist/{chunk-3NPPEVIA.js.map → chunk-XWPKJD45.js.map} +0 -0
  191. /package/dist/{chunk-OQSY6VHV.js.map → chunk-Y2GYB3SB.js.map} +0 -0
  192. /package/dist/{cli-SZCB4QXF.js.map → cli-4WOYZQQF.js.map} +0 -0
  193. /package/dist/{cli-66SXH7LQ.js.map → cli-5HRQSZJG.js.map} +0 -0
  194. /package/dist/{cli-3XDWEQRN.js.map → cli-AISVPF4O.js.map} +0 -0
  195. /package/dist/{cli-IZVNUGGL.js.map → cli-DFUPK6NY.js.map} +0 -0
  196. /package/dist/{cli-5HOVEAYH.js.map → cli-H2RUHLCF.js.map} +0 -0
  197. /package/dist/{cli-7BSAEX34.js.map → cli-HXFFCF5U.js.map} +0 -0
  198. /package/dist/{cli-5ZJ2J4DD.js.map → cli-JH67BLTC.js.map} +0 -0
  199. /package/dist/{cli-ABUOJTMK.js.map → cli-KLOTJTBA.js.map} +0 -0
  200. /package/dist/{cli-KUEEANY6.js.map → cli-MCFDABF3.js.map} +0 -0
  201. /package/dist/{cli-N6GSDCIT.js.map → cli-MVWF3ZJL.js.map} +0 -0
  202. /package/dist/{cli-YYJCE53Q.js.map → cli-UUJQ2MA5.js.map} +0 -0
  203. /package/dist/{github-6ONVXQ3Y.js.map → github-JHXSVOLR.js.map} +0 -0
  204. /package/dist/{github-6TXHICNH.js.map → github-X3JHTWYZ.js.map} +0 -0
  205. /package/dist/{github-ZBPHVATQ.js.map → github-ZARIFMCP.js.map} +0 -0
  206. /package/dist/{json-765JLUSV.js.map → json-MOKARROA.js.map} +0 -0
  207. /package/dist/{json-E5MUPFJ5.js.map → json-O6KJT3C3.js.map} +0 -0
  208. /package/dist/{labels-HF7ZZCNK.js.map → labels-6IEBGB7P.js.map} +0 -0
  209. /package/dist/{lint-5IYTCQ4J.js.map → lint-W6KQ7QGB.js.map} +0 -0
  210. /package/dist/{list-HVSOCIFI.js.map → list-EOWL6REV.js.map} +0 -0
  211. /package/dist/{list-NJIHE4AI.js.map → list-LIP6QOWF.js.map} +0 -0
  212. /package/dist/{list-XVLMKWVP.js.map → list-UXJ2NK7K.js.map} +0 -0
  213. /package/dist/{page-7RQSNZTA.js.map → page-U4D4RT4T.js.map} +0 -0
  214. /package/dist/{prepare-3QURVQY5.js.map → prepare-EP7RFG3W.js.map} +0 -0
  215. /package/dist/{pretty-EYZFYS4B.js.map → pretty-U5HUKTPN.js.map} +0 -0
  216. /package/dist/{pretty-JU56KUCB.js.map → pretty-YFAKTBDO.js.map} +0 -0
  217. /package/dist/{pretty-LUKCTVAG.js.map → pretty-YXK7QWYR.js.map} +0 -0
  218. /package/dist/{reporters-L445ICCY.js.map → reporters-GGPH44QS.js.map} +0 -0
  219. /package/dist/{reporters-QHT2M3PA.js.map → reporters-SJW725TW.js.map} +0 -0
  220. /package/dist/{run-WEGK4L3H.js.map → run-WAIHWCOH.js.map} +0 -0
  221. /package/dist/{sarif-NPIGVW6V.js.map → sarif-IY6OTG4M.js.map} +0 -0
  222. /package/dist/{sarif-STTUROHD.js.map → sarif-QYID4Z4M.js.map} +0 -0
  223. /package/dist/{sarif-VRF3SEOJ.js.map → sarif-SJ27UD3T.js.map} +0 -0
  224. /package/dist/{strategy-IKURQ4YU.js.map → strategy-3B6KJNFA.js.map} +0 -0
  225. /package/dist/{term-ZIXHKJJD.js.map → term-M63KLMUK.js.map} +0 -0
  226. /package/dist/{validate-HBTYACVP.js.map → validate-XW5WSXKU.js.map} +0 -0
@@ -1,7 +1,7 @@
1
1
  #!/usr/bin/env node
2
2
  import {
3
3
  byCodeUnit
4
- } from "./chunk-5C5UNRZF.js";
4
+ } from "./chunk-6RFNXPVZ.js";
5
5
 
6
6
  // src/graph/core/localizations.ts
7
7
  var LOCALIZATIONS_FILENAME = "localizations.json";
@@ -97,4 +97,4 @@ export {
97
97
  parseLocalizations,
98
98
  isSafeRelativePath
99
99
  };
100
- //# sourceMappingURL=chunk-BKJ6JPQF.js.map
100
+ //# sourceMappingURL=chunk-X64BY7TV.js.map
@@ -4,7 +4,7 @@ import {
4
4
  } from "./chunk-4TSWU2SU.js";
5
5
  import {
6
6
  offeredNames
7
- } from "./chunk-SOY53WQN.js";
7
+ } from "./chunk-R3EJQKGM.js";
8
8
  import {
9
9
  MANIFEST_VERSION
10
10
  } from "./chunk-6WJUZQQX.js";
@@ -769,4 +769,4 @@ export {
769
769
  PROJECT_RULES_FILENAMES,
770
770
  resolveArtifacts
771
771
  };
772
- //# sourceMappingURL=chunk-3NPPEVIA.js.map
772
+ //# sourceMappingURL=chunk-XWPKJD45.js.map
@@ -15,10 +15,10 @@ import {
15
15
  import {
16
16
  REPORT_FORMAT_LIST,
17
17
  renderJunit
18
- } from "./chunk-XYNYBH3M.js";
18
+ } from "./chunk-CSZIHCPC.js";
19
19
  import {
20
20
  isErrorSeverity
21
- } from "./chunk-67OVXUT3.js";
21
+ } from "./chunk-IQ4YRTPO.js";
22
22
  import {
23
23
  escapeWorkflowCommandMessage,
24
24
  escapeWorkflowCommandProperty,
@@ -29,7 +29,7 @@ import {
29
29
  } from "./chunk-RNVYGWIC.js";
30
30
  import {
31
31
  package_default
32
- } from "./chunk-KVLOTBQR.js";
32
+ } from "./chunk-PMRBTUCZ.js";
33
33
 
34
34
  // src/lint/core/rule-id.ts
35
35
  var RULE_ID_PREFIX = "manni:lint";
@@ -651,4 +651,4 @@ export {
651
651
  renderTemplates,
652
652
  renderTools
653
653
  };
654
- //# sourceMappingURL=chunk-OQSY6VHV.js.map
654
+ //# sourceMappingURL=chunk-Y2GYB3SB.js.map
@@ -1,13 +1,13 @@
1
1
  #!/usr/bin/env node
2
2
  import {
3
3
  entriesOf
4
- } from "./chunk-UU7W7VJ7.js";
4
+ } from "./chunk-MUPA2MUK.js";
5
5
  import {
6
6
  StrategyError,
7
7
  indexSet,
8
8
  loadStrategy,
9
9
  plural
10
- } from "./chunk-DILBGKLL.js";
10
+ } from "./chunk-ZPKPL52R.js";
11
11
  import {
12
12
  closestName
13
13
  } from "./chunk-XTKJNRJ6.js";
@@ -15,10 +15,10 @@ import {
15
15
  // src/strategy/commands/get.ts
16
16
  var GET_FORMATS = ["pretty", "json"];
17
17
  async function runGet(opts) {
18
- const { cwd, run, set, steps } = await loadStrategy(opts);
18
+ const { cwd, run, set, steps, owns } = await loadStrategy(opts);
19
19
  const index = indexSet(set);
20
20
  const found = index.anyWithId(opts.id);
21
- const entry = found === void 0 ? void 0 : entriesOf(set, cwd, run.base, index, steps).find((e) => e.record === found);
21
+ const entry = found === void 0 ? void 0 : entriesOf(set, cwd, run.base, index, steps, owns).find((e) => e.record === found);
22
22
  if (entry !== void 0) return entry;
23
23
  throw new StrategyError(unknownRecordMessage(opts.id, set.records));
24
24
  }
@@ -35,4 +35,4 @@ export {
35
35
  runGet,
36
36
  unknownRecordMessage
37
37
  };
38
- //# sourceMappingURL=chunk-IDZXRFBA.js.map
38
+ //# sourceMappingURL=chunk-YBWDATJO.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/strategy/commands/get.ts"],"sourcesContent":["/**\n * `manni strategy get <id>`: one record, matched by id without case. A miss\n * is a usage error that says how big the set is and, when an id is a few\n * edits away, which one.\n */\nimport { closestName } from \"../../shared/closest-name.js\";\nimport { indexSet } from \"../core/check.js\";\nimport { StrategyError } from \"../errors.js\";\nimport type { StrategyRecord } from \"../types.js\";\nimport { entriesOf, type RecordEntry } from \"./list.js\";\nimport { loadStrategy, plural, type StrategyCommandOptions } from \"./run.js\";\n\nexport const GET_FORMATS = [\"pretty\", \"json\"] as const;\nexport type GetFormat = (typeof GET_FORMATS)[number];\n\nexport interface GetOptions extends StrategyCommandOptions {\n /** The `<id>` argument, compared without case. */\n id: string;\n}\n\nexport async function runGet(opts: GetOptions): Promise<RecordEntry> {\n const { cwd, run, set, steps, owns } = await loadStrategy(opts);\n const index = indexSet(set);\n const found = index.anyWithId(opts.id);\n const entry = found === undefined ? undefined : entriesOf(set, cwd, run.base, index, steps, owns).find((e) => e.record === found);\n if (entry !== undefined) return entry;\n throw new StrategyError(unknownRecordMessage(opts.id, set.records));\n}\n\n/** `no record \"t9\". 82 records; did you mean \"t1\"?`: a miss, the set's size and the nearest id. */\nexport function unknownRecordMessage(id: string, records: readonly StrategyRecord[]): string {\n const ids = records.map((r) => r.id);\n const nearest = closestName(id.toLowerCase(), ids.map((i) => i.toLowerCase()));\n const suggestion = ids.find((i) => i.toLowerCase() === nearest);\n const hint = suggestion === undefined ? \".\" : `; did you mean \"${suggestion}\"?`;\n return `no record \"${id}\". ${plural(records.length, \"record\")}${hint}`;\n}\n"],"mappings":";;;;;;;;;;;;;;;AAYO,IAAM,cAAc,CAAC,UAAU,MAAM;AAQ5C,eAAsB,OAAO,MAAwC;AACnE,QAAM,EAAE,KAAK,KAAK,KAAK,OAAO,KAAK,IAAI,MAAM,aAAa,IAAI;AAC9D,QAAM,QAAQ,SAAS,GAAG;AAC1B,QAAM,QAAQ,MAAM,UAAU,KAAK,EAAE;AACrC,QAAM,QAAQ,UAAU,SAAY,SAAY,UAAU,KAAK,KAAK,IAAI,MAAM,OAAO,OAAO,IAAI,EAAE,KAAK,CAAC,MAAM,EAAE,WAAW,KAAK;AAChI,MAAI,UAAU,OAAW,QAAO;AAChC,QAAM,IAAI,cAAc,qBAAqB,KAAK,IAAI,IAAI,OAAO,CAAC;AACpE;AAGO,SAAS,qBAAqB,IAAY,SAA4C;AAC3F,QAAM,MAAM,QAAQ,IAAI,CAAC,MAAM,EAAE,EAAE;AACnC,QAAM,UAAU,YAAY,GAAG,YAAY,GAAG,IAAI,IAAI,CAAC,MAAM,EAAE,YAAY,CAAC,CAAC;AAC7E,QAAM,aAAa,IAAI,KAAK,CAAC,MAAM,EAAE,YAAY,MAAM,OAAO;AAC9D,QAAM,OAAO,eAAe,SAAY,MAAM,mBAAmB,UAAU;AAC3E,SAAO,cAAc,EAAE,MAAM,OAAO,QAAQ,QAAQ,QAAQ,CAAC,GAAG,IAAI;AACtE;","names":[]}
@@ -5,7 +5,7 @@ import {
5
5
  loadConfig,
6
6
  resolveRoute,
7
7
  routesFrom
8
- } from "./chunk-5C5UNRZF.js";
8
+ } from "./chunk-6RFNXPVZ.js";
9
9
  import {
10
10
  closestName
11
11
  } from "./chunk-XTKJNRJ6.js";
@@ -23,14 +23,14 @@ import {
23
23
  import {
24
24
  declaredAt,
25
25
  metaPageView
26
- } from "./chunk-UMY3IKYT.js";
26
+ } from "./chunk-KG7ZP7Z6.js";
27
27
  import {
28
28
  RECORD_FIELDS,
29
29
  readRecord
30
- } from "./chunk-A322P5GM.js";
30
+ } from "./chunk-WMJ2FXYV.js";
31
31
  import {
32
32
  STDIN_REQUIRES_AS
33
- } from "./chunk-PDL6IO4Z.js";
33
+ } from "./chunk-2LF3NIWH.js";
34
34
  import {
35
35
  STDIN_LABEL,
36
36
  STDIN_TOKEN,
@@ -40,7 +40,7 @@ import {
40
40
  gitignoreOptions,
41
41
  resolveTargetSet,
42
42
  supportedExtensions
43
- } from "./chunk-67OVXUT3.js";
43
+ } from "./chunk-IQ4YRTPO.js";
44
44
  import {
45
45
  SEVERITIES
46
46
  } from "./chunk-77AINBYM.js";
@@ -167,6 +167,7 @@ function stepDrafts(record, steps, naming, pagePath) {
167
167
  }
168
168
  function checkStrategySet(set, opts = {}) {
169
169
  const levels = resolveSeverity(opts.severity);
170
+ const owns = opts.owns ?? (() => true);
170
171
  const index = indexSet(set);
171
172
  const drafts = [];
172
173
  const steps = opts.steps ?? resolveSteps(set, {}, index);
@@ -221,14 +222,15 @@ function checkStrategySet(set, opts = {}) {
221
222
  for (const group of sharing.values()) {
222
223
  if (group.length < 2) continue;
223
224
  for (const record of group) {
224
- const others = group.filter((other) => other !== record).map((other) => {
225
+ const rest = group.filter((other) => other !== record);
226
+ const others = rest.map((other) => {
225
227
  const at = onRecord(other);
226
228
  return at.line === void 0 ? at.file : `${at.file}:${String(at.line)}`;
227
229
  });
228
230
  drafts.push({
229
231
  rule: "duplicate-id",
230
232
  message: `id: "${record.id}" is also the id of ${others.join(", ")}.`,
231
- fix: "Give each record its own id.",
233
+ fix: rest.every((other) => !owns(other.file)) ? "That record is borrowed from outside this repository. Remove this copy, or give it its own id." : "Give each record its own id.",
232
234
  ...located(onRecord(record)),
233
235
  id: record.id
234
236
  });
@@ -303,7 +305,7 @@ function checkStrategySet(set, opts = {}) {
303
305
  const findings = [];
304
306
  for (const draft of drafts) {
305
307
  const level = levels[draft.rule];
306
- if (level === "off") continue;
308
+ if (level === "off" || !owns(draft.file)) continue;
307
309
  findings.push({
308
310
  rule: draft.rule,
309
311
  ruleId: ruleId(draft.rule),
@@ -362,6 +364,10 @@ function resolveSteps(set, ctx = {}, index = indexSet(set)) {
362
364
  const out = /* @__PURE__ */ new Map();
363
365
  for (const record of set.records) {
364
366
  if (record.type !== "journey" || record.steps === void 0) continue;
367
+ if (ctx.owns?.(record.file) === false) {
368
+ out.set(record, record.steps.map((step) => ({ ...step, state: "unchecked" })));
369
+ continue;
370
+ }
365
371
  const naming = new Set(index.pagesNaming(record).map(posix));
366
372
  out.set(
367
373
  record,
@@ -644,7 +650,16 @@ async function loadStrategySet(opts) {
644
650
  }
645
651
 
646
652
  // src/strategy/commands/run.ts
647
- import { isAbsolute, relative as relative2, resolve as resolve4 } from "node:path";
653
+ import { isAbsolute, relative as relative2, resolve as resolve4, sep } from "node:path";
654
+ function ownedIn(dirs, base) {
655
+ return (file) => {
656
+ if (file.startsWith("<")) return true;
657
+ return dirs.some((dir) => {
658
+ const rel = relative2(dir, resolve4(base, file));
659
+ return !isAbsolute(rel) && rel !== ".." && !rel.startsWith(`..${sep}`);
660
+ });
661
+ };
662
+ }
648
663
  async function loadStrategy(opts) {
649
664
  const cwd = resolve4(opts.cwd ?? process.cwd());
650
665
  const run = await resolveStrategyRun({
@@ -667,8 +682,10 @@ async function loadStrategy(opts) {
667
682
  ...opts.onNotice === void 0 ? {} : { onNotice: opts.onNotice }
668
683
  });
669
684
  const routes = stepsNeedRoutes(set) && run.configPath !== void 0 ? routesFrom(loadConfig(run.configPath, cwd), run.base) : [];
670
- const steps = resolveSteps(set, { routes, from: run.configDir ?? cwd, base: run.base });
671
- return { cwd, run, set, steps };
685
+ const dir = run.configDir ?? cwd;
686
+ const owns = ownedIn(run.fromCollections ? [dir] : [dir, cwd], run.base);
687
+ const steps = resolveSteps(set, { routes, from: dir, base: run.base, owns });
688
+ return { cwd, run, set, steps, owns };
672
689
  }
673
690
  function formatChoice(value, allowed) {
674
691
  const found = allowed.find((candidate) => candidate === value);
@@ -698,4 +715,4 @@ export {
698
715
  displayPath,
699
716
  plural
700
717
  };
701
- //# sourceMappingURL=chunk-DILBGKLL.js.map
718
+ //# sourceMappingURL=chunk-ZPKPL52R.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/strategy/core/steps.ts","../src/strategy/core/check.ts","../src/strategy/errors.ts","../src/strategy/core/config.ts","../src/strategy/core/load-set.ts","../src/strategy/commands/run.ts"],"sourcesContent":["/**\n * A journey's `steps:` resolved to the run's pages (proposal 0106). Pure,\n * given the routes: the command core loads `graph.routes`, and only when a\n * step names a `/` route.\n *\n * A `doc` is a repo path, resolved from the config file's directory and named\n * exactly, or a `/` route, resolved by graph's own `resolveRoute`. A scheme\n * URL and a route no mapping covers are not checked. Anything after `#` or\n * `?` is dropped first.\n */\nimport { relative, resolve } from \"node:path\";\nimport { PathIndex, hasScheme, resolveRoute } from \"../../graph/core/analyze.js\";\nimport type { RouteMapping } from \"../../graph/core/config.js\";\nimport type { ResolvedStep, StepState, StrategyRecord, StrategySet, StrategyStep } from \"../types.js\";\nimport { indexSet, type StrategyIndex } from \"./check.js\";\n\nexport interface StepContext {\n /** `graph.routes`, rebased onto the run's base. None leaves every route unchecked. */\n routes?: RouteMapping[];\n /** The directory a repo-path `doc` resolves from: the config file's, else the working directory. */\n from?: string;\n /** The directory the run's labels are relative to. */\n base?: string;\n /** Whether the run owns a file. A borrowed journey's steps name its owner's pages, so each is `unchecked`. */\n owns?: (file: string) => boolean;\n}\n\n/** Each journey with steps to its steps, resolved, in order. */\nexport type StepMap = ReadonlyMap<StrategyRecord, ResolvedStep[]>;\n\nconst posix = (path: string): string => path.replaceAll(\"\\\\\", \"/\");\n\n/** `doc` without its anchor or query. */\nfunction target(doc: string): string {\n return doc.split(/[?#]/, 1)[0] ?? \"\";\n}\n\n/** Whether a step's doc is a site route, which needs `graph.routes`. */\nfunction isRoute(doc: string): boolean {\n return target(doc).startsWith(\"/\");\n}\n\nexport function stepsNeedRoutes(set: StrategySet): boolean {\n return set.records.some((r) => r.steps?.some((s) => s.doc !== undefined && isRoute(s.doc)) === true);\n}\n\n/** What a `doc` names: a page of the run, no page, or nothing this run can check. */\ntype Located = { page: string } | \"none\" | \"unchecked\";\n\nfunction locate(doc: string, pages: ReadonlySet<string>, index: PathIndex, ctx: StepContext): Located {\n if (hasScheme(doc)) return \"unchecked\";\n const path = target(doc);\n if (path.startsWith(\"/\")) {\n const found = resolveRoute(path, ctx.routes ?? [], index);\n if (found === null) return \"unchecked\";\n return found === \"broken\" ? \"none\" : { page: found };\n }\n const label = ctx.from === undefined || ctx.base === undefined ? path : relative(ctx.base, resolve(ctx.from, path));\n const wanted = posix(label);\n return pages.has(wanted) ? { page: wanted } : \"none\";\n}\n\n/** The state table of proposal 0106. `found` is undefined when the step has no `doc`. */\nfunction stateOf(step: StrategyStep, found: Located | undefined, served: boolean): StepState {\n if (found === undefined) return step.exists === true || step.exists === \"partial\" ? \"broken\" : \"unwritten\";\n if (found === \"unchecked\") return step.exists === false ? \"unwritten\" : \"unchecked\";\n if (found === \"none\") return step.exists === false ? \"unwritten\" : \"broken\";\n if (step.exists === \"partial\") return \"partial\";\n return served ? \"served\" : \"unclaimed\";\n}\n\nexport function resolveSteps(set: StrategySet, ctx: StepContext = {}, index: StrategyIndex = indexSet(set)): Map<StrategyRecord, ResolvedStep[]> {\n const pages = new Set((set.pages ?? []).map(posix));\n // `PathIndex` is graph's tiered lookup; a repo path must name its file exactly, so it uses `pages`.\n const routeIndex = new PathIndex(pages);\n const out = new Map<StrategyRecord, ResolvedStep[]>();\n for (const record of set.records) {\n if (record.type !== \"journey\" || record.steps === undefined) continue;\n if (ctx.owns?.(record.file) === false) {\n out.set(record, record.steps.map((step): ResolvedStep => ({ ...step, state: \"unchecked\" })));\n continue;\n }\n const naming = new Set(index.pagesNaming(record).map(posix));\n out.set(\n record,\n record.steps.map((step): ResolvedStep => {\n const found = step.doc === undefined ? undefined : locate(step.doc, pages, routeIndex, ctx);\n const page = typeof found === \"object\" ? found.page : undefined;\n const state = stateOf(step, found, page !== undefined && naming.has(page));\n return { ...step, state, ...(page === undefined ? {} : { page }) };\n }),\n );\n }\n return out;\n}\n\n/** Served steps over steps. */\nexport function coverageOf(steps: readonly ResolvedStep[]): { served: number; steps: number } {\n return { served: steps.filter((s) => s.state === \"served\").length, steps: steps.length };\n}\n","/**\n * `strategy check`'s rules (proposal 0102). Pure: it reads records and\n * references and returns findings, so the command core owns every file and\n * the rules are tested on sets built inline.\n *\n * Ids compare case-folded. A reference field is checked only when the set\n * holds a record of that field's type, so a repo that keeps no audience\n * records keeps free-form `audiences:`. `missing-parent` and the use counts\n * read pages that are not records: a record's own `journeys:` serves nobody.\n *\n * The four step rules (proposal 0106) read each live journey's resolved\n * `steps:`. A draft or archived journey's steps draw nothing.\n *\n * A file the run does not own is borrowed (proposal 0112). Its records and\n * pages resolve values like any other, and no finding is filed in it.\n */\nimport { closestName } from \"../../shared/closest-name.js\";\nimport { RECORD_FIELDS } from \"../../shared/reference-fields.js\";\nimport {\n PAGE_FIELDS,\n PARENTS,\n type At,\n type ChildType,\n type RecordType,\n type ReferenceField,\n type ResolvedStep,\n type StrategyFinding,\n type StrategyRecord,\n type StrategyRule,\n type StrategySet,\n type StrategySeverity,\n} from \"../types.js\";\nimport { guidanceFor, resolveSeverity, ruleId } from \"./severity.js\";\nimport { resolveSteps, type StepMap } from \"./steps.js\";\n\nconst fold = (value: string): string => value.toLowerCase();\n\n/** The type each page field names. */\nconst FIELD_TYPES: Readonly<Record<ReferenceField, RecordType>> = RECORD_FIELDS;\n\n/** The type of a child's parents: an audience for a persona, a persona for a journey. */\nconst parentTypeOf = (type: ChildType): RecordType => FIELD_TYPES[PARENTS[type]];\n\n/** What a set's records and pages say about each other, resolved once for `check`, `list` and `get`. */\nexport interface StrategyIndex {\n /** Whether the set holds a record of this type. */\n has(type: RecordType): boolean;\n /** The record of `type` a value names, case-folded. The first one read wins. */\n resolve(type: RecordType, value: string): StrategyRecord | undefined;\n /** The first record of any type with this id, case-folded. */\n anyWithId(value: string): StrategyRecord | undefined;\n /** The records of the parent type the record's parent field names, each once, in the field's order. */\n parentsOf(record: StrategyRecord): StrategyRecord[];\n /** The records whose parent field names this record, in set order. */\n childrenOf(record: StrategyRecord): StrategyRecord[];\n /** The pages that name this record directly, sorted. Records do not count. */\n pagesNaming(record: StrategyRecord): string[];\n}\n\nexport function indexSet(set: StrategySet): StrategyIndex {\n const byType = new Map<RecordType, Map<string, StrategyRecord>>();\n const byId = new Map<string, StrategyRecord>();\n for (const record of set.records) {\n const ids = byType.get(record.type) ?? new Map<string, StrategyRecord>();\n if (!ids.has(fold(record.id))) ids.set(fold(record.id), record);\n byType.set(record.type, ids);\n if (!byId.has(fold(record.id))) byId.set(fold(record.id), record);\n }\n const resolveIn = (type: RecordType, value: string): StrategyRecord | undefined => byType.get(type)?.get(fold(value));\n const parentsOf = (record: StrategyRecord): StrategyRecord[] => {\n if (record.type === \"audience\") return [];\n const type = parentTypeOf(record.type);\n const found = record.parents.map((p) => resolveIn(type, p.value)).filter((r) => r !== undefined);\n return [...new Set(found)];\n };\n\n const children = new Map<StrategyRecord, StrategyRecord[]>();\n for (const record of set.records) {\n for (const parent of parentsOf(record)) children.set(parent, [...(children.get(parent) ?? []), record]);\n }\n const pages = new Map<StrategyRecord, Set<string>>();\n for (const reference of set.references) {\n if (reference.record) continue;\n const target = resolveIn(FIELD_TYPES[reference.field], reference.value);\n if (target === undefined) continue;\n const named = pages.get(target) ?? new Set<string>();\n named.add(reference.page);\n pages.set(target, named);\n }\n\n return {\n has: (type) => (byType.get(type)?.size ?? 0) > 0,\n resolve: resolveIn,\n anyWithId: (value) => byId.get(fold(value)),\n parentsOf,\n childrenOf: (record) => children.get(record) ?? [],\n pagesNaming: (record) => [...(pages.get(record) ?? [])].sort(),\n };\n}\n\n/** A finding before its level is known: `message` is its identity, `fix` the advice after it. */\ninterface Draft {\n rule: StrategyRule;\n message: string;\n fix?: string;\n file: string;\n line?: number;\n id?: string;\n field?: ReferenceField | \"steps\";\n}\n\n/** `a journey`, `an audience`. */\nfunction article(type: RecordType): string {\n return `${type === \"audience\" ? \"an\" : \"a\"} ${type}`;\n}\n\n/** Where a finding about a whole record sits: its `id:` line, else its first line. */\nfunction onRecord(record: StrategyRecord): At {\n return record.idAt ?? { file: record.file, line: record.line };\n}\n\nfunction located(at: At): At {\n return { file: at.file, ...(at.line === undefined ? {} : { line: at.line }) };\n}\n\n/** The ancestor of `record` of type `type`, walking up each record's first parent. */\nfunction ancestorOf(index: StrategyIndex, record: StrategyRecord, type: RecordType): StrategyRecord | undefined {\n let current = index.parentsOf(record)[0];\n while (current !== undefined && current.type !== type) current = index.parentsOf(current)[0];\n return current;\n}\n\nexport interface CheckStrategySetOptions {\n severity?: Partial<Record<StrategyRule, StrategySeverity>>;\n /** The journeys' steps, resolved. Default: resolved with no routes, each repo path read as a label. */\n steps?: StepMap;\n /** A step's page as a message names it. Default: its label. */\n pagePath?: (page: string) => string;\n /** Whether the run owns a file. A finding in a file it does not own is dropped. Default: every file. */\n owns?: (file: string) => boolean;\n}\n\n/** The step rules' drafts for one live journey. `naming` holds the pages that name it, posix. */\nfunction stepDrafts(\n record: StrategyRecord,\n steps: readonly ResolvedStep[],\n naming: ReadonlySet<string>,\n pagePath: (page: string) => string,\n): Draft[] {\n const drafts: Draft[] = [];\n for (const step of steps) {\n const on = (at: At | undefined): At => located(at ?? { file: step.file, ...(step.line === undefined ? {} : { line: step.line }) });\n const about = { ...on(undefined), id: record.id, field: \"steps\" as const };\n const n = `step ${String(step.n)}`;\n if (step.state === \"broken\") {\n drafts.push(\n step.doc === undefined\n ? {\n rule: \"broken-step\",\n message: `${n}: exists: ${String(step.exists)}, but the step has no doc.`,\n fix: \"Name its page in doc:, or set exists: false.\",\n ...about,\n ...on(step.existsAt),\n }\n : {\n rule: \"broken-step\",\n message: `${n}: doc \"${step.doc}\" names no page.`,\n fix: \"Correct doc, or set exists: false if the page does not exist.\",\n ...about,\n ...on(step.docAt),\n },\n );\n }\n if (step.state === \"unwritten\") {\n drafts.push({\n rule: \"unwritten-step\",\n message: step.doc === undefined ? `${n}: no page carries this stage.` : `${n}: doc \"${step.doc}\" names a page that does not exist.`,\n ...about,\n });\n }\n if (step.page === undefined) continue;\n if (step.exists === false && step.doc !== undefined) {\n drafts.push({\n rule: \"stale-step\",\n message: `${n}: exists: false, but doc \"${step.doc}\" names a page.`,\n fix: \"Set exists: true or partial, or drop exists:.\",\n ...about,\n ...on(step.existsAt),\n });\n }\n if (!naming.has(step.page)) {\n drafts.push({\n rule: \"missing-journey\",\n message: `${n}: ${pagePath(step.page)} does not name \"${record.id}\" in journeys:.`,\n fix: \"Add it to that page's journeys:, or point the step at a page that does.\",\n ...about,\n ...on(step.docAt),\n });\n }\n }\n return drafts;\n}\n\nexport function checkStrategySet(set: StrategySet, opts: CheckStrategySetOptions = {}): StrategyFinding[] {\n const levels = resolveSeverity(opts.severity);\n const owns = opts.owns ?? (() => true);\n const index = indexSet(set);\n const drafts: Draft[] = [];\n\n // The step rules, on each live journey's steps.\n const steps = opts.steps ?? resolveSteps(set, {}, index);\n for (const [record, resolved] of steps) {\n if (record.lifecycle === \"draft\" || record.lifecycle === \"archived\") continue;\n const naming = new Set(index.pagesNaming(record).map((page) => page.replaceAll(\"\\\\\", \"/\")));\n drafts.push(...stepDrafts(record, resolved, naming, opts.pagePath ?? ((page) => page)));\n }\n\n /** The finding for a value that names no record of `type`, or the wrong type of record. */\n const unresolved = (field: ReferenceField, value: string, onRecordField: boolean): Pick<Draft, \"message\" | \"fix\"> => {\n const type = FIELD_TYPES[field];\n const other = index.anyWithId(value);\n if (other !== undefined) {\n const ancestor = ancestorOf(index, other, type);\n const fix =\n ancestor !== undefined\n ? `Did you mean its ${type}, \"${ancestor.id}\"?`\n : onRecordField\n ? \"Correct the value.\"\n : `Move it to ${PAGE_FIELDS[other.type]}:.`;\n return { message: `${field}: \"${value}\" is ${article(other.type)}, not ${article(type)}.`, fix };\n }\n const ids = set.records.filter((r) => r.type === type).map((r) => r.id);\n const nearest = closestName(fold(value), ids.map(fold));\n const suggestion = nearest === undefined ? undefined : ids.find((id) => fold(id) === nearest);\n const add = `Correct the value, or add a record with type: ${type} and id: ${value}.`;\n const fix =\n suggestion === undefined ? add : onRecordField ? `Did you mean \"${suggestion}\"?` : `Did you mean \"${suggestion}\"? ${add}`;\n return { message: `${field}: \"${value}\" names no ${type}.`, fix };\n };\n\n // undefined-reference, on every page's fields, records included.\n for (const reference of set.references) {\n const type = FIELD_TYPES[reference.field];\n if (!index.has(type) || index.resolve(type, reference.value) !== undefined) continue;\n drafts.push({\n rule: \"undefined-reference\",\n ...unresolved(reference.field, reference.value, false),\n ...located(reference),\n field: reference.field,\n });\n }\n // ...and on each value of a record's parent field.\n for (const record of set.records) {\n if (record.type === \"audience\") continue;\n const field = PARENTS[record.type];\n const type = parentTypeOf(record.type);\n if (!index.has(type)) continue;\n for (const parent of record.parents) {\n if (index.resolve(type, parent.value) !== undefined) continue;\n drafts.push({\n rule: \"undefined-reference\",\n ...unresolved(field, parent.value, true),\n ...located(parent),\n id: record.id,\n field,\n });\n }\n }\n\n // duplicate-id: on every record sharing the id, each naming the others.\n const sharing = new Map<string, StrategyRecord[]>();\n for (const record of set.records) sharing.set(fold(record.id), [...(sharing.get(fold(record.id)) ?? []), record]);\n for (const group of sharing.values()) {\n if (group.length < 2) continue;\n for (const record of group) {\n const rest = group.filter((other) => other !== record);\n const others = rest.map((other) => {\n const at = onRecord(other);\n return at.line === undefined ? at.file : `${at.file}:${String(at.line)}`;\n });\n drafts.push({\n rule: \"duplicate-id\",\n message: `id: \"${record.id}\" is also the id of ${others.join(\", \")}.`,\n fix: rest.every((other) => !owns(other.file))\n ? \"That record is borrowed from outside this repository. Remove this copy, or give it its own id.\"\n : \"Give each record its own id.\",\n ...located(onRecord(record)),\n id: record.id,\n });\n }\n }\n\n // missing-parent: per page, one finding per set of parents the page names none of.\n const byPage = new Map<string, typeof set.references>();\n for (const reference of set.references) {\n if (reference.record) continue;\n byPage.set(reference.page, [...(byPage.get(reference.page) ?? []), reference]);\n }\n for (const references of byPage.values()) {\n const named = (field: ReferenceField): Set<string> =>\n new Set(references.filter((r) => r.field === field).map((r) => fold(r.value)));\n const reported = new Set<string>();\n for (const childType of [\"journey\", \"persona\"] as const satisfies readonly ChildType[]) {\n const parentType = parentTypeOf(childType);\n const parentField = PAGE_FIELDS[parentType];\n const has = named(parentField);\n for (const reference of references) {\n if (reference.field !== PAGE_FIELDS[childType]) continue;\n const child = index.resolve(childType, reference.value);\n if (child === undefined) continue;\n const parents = index.parentsOf(child);\n const ids = parents.map((p) => `\"${p.id}\"`).join(\", \");\n const key = `${parentType} ${ids}`;\n if (parents.length === 0 || parents.some((p) => has.has(fold(p.id))) || reported.has(key)) continue;\n reported.add(key);\n const one = parents.length === 1;\n drafts.push({\n rule: \"missing-parent\",\n message: one\n ? `${parentField}: does not name ${ids}, the ${parentType} of ${childType} \"${child.id}\".`\n : `${parentField}: names none of ${ids}, the ${parentField} of ${childType} \"${child.id}\".`,\n fix: `Add ${one ? \"it\" : \"one\"}, or drop \"${child.id}\" from ${PAGE_FIELDS[childType]}:.`,\n ...located(reference),\n field: parentField,\n });\n }\n }\n }\n\n // orphan-record, unserved-journey and unused-record: about whole records.\n for (const record of set.records) {\n const at = located(onRecord(record));\n if (record.type !== \"audience\" && record.parents.length === 0 && index.has(parentTypeOf(record.type))) {\n const field = PARENTS[record.type];\n drafts.push({\n rule: \"orphan-record\",\n message: `${field}: missing, so this ${record.type} belongs to no ${parentTypeOf(record.type)}.`,\n fix: `Name one with ${field}:.`,\n ...at,\n id: record.id,\n field,\n });\n }\n // Only the first record with an id is the one references resolve to.\n if (index.resolve(record.type, record.id) !== record) continue;\n const pages = index.pagesNaming(record);\n // A draft journey is not live yet, and an archived one no longer is, so neither owes a page.\n const live = record.lifecycle !== \"draft\" && record.lifecycle !== \"archived\";\n if (record.type === \"journey\" && live && pages.length === 0) {\n drafts.push({\n rule: \"unserved-journey\",\n message: \"no page names this journey in journeys:.\",\n fix: \"Name it on the pages that serve it.\",\n ...at,\n id: record.id,\n });\n }\n if (record.type !== \"journey\" && pages.length === 0 && index.childrenOf(record).length === 0) {\n drafts.push({\n rule: \"unused-record\",\n message: `no page and no record names this ${record.type}.`,\n ...at,\n id: record.id,\n });\n }\n }\n\n const findings: StrategyFinding[] = [];\n for (const draft of drafts) {\n const level = levels[draft.rule];\n if (level === \"off\" || !owns(draft.file)) continue;\n findings.push({\n rule: draft.rule,\n ruleId: ruleId(draft.rule),\n severity: level,\n message: draft.fix === undefined ? draft.message : `${draft.message} ${draft.fix}`,\n ...(draft.fix === undefined ? {} : { key: draft.message }),\n guidance: guidanceFor(draft.rule),\n file: draft.file,\n ...(draft.line === undefined ? {} : { line: draft.line }),\n ...(draft.id === undefined ? {} : { id: draft.id }),\n ...(draft.field === undefined ? {} : { field: draft.field }),\n });\n }\n return findings.sort(compareFindings);\n}\n\nfunction compareText(a: string, b: string): number {\n return a < b ? -1 : a > b ? 1 : 0;\n}\n\nexport function compareFindings(a: StrategyFinding, b: StrategyFinding): number {\n return (\n compareText(a.file, b.file) ||\n (a.line ?? 0) - (b.line ?? 0) ||\n compareText(a.ruleId, b.ruleId) ||\n compareText(a.message, b.message)\n );\n}\n","import { ToolError } from \"../shared/errors.js\";\n\n/** An operational or usage error in the strategy tool: exit 2. */\nexport class StrategyError extends ToolError {\n constructor(message: string) {\n super(message);\n this.name = \"StrategyError\";\n }\n}\n","/**\n * The `strategy:` section of manni.config.yaml, and the run resolution every\n * command shares (proposal 0102). Its keys mirror `term:`'s, and so do its\n * refusals: unknown keys, rules or levels are errors that name what is\n * supported and never echo a value. The document set is the family\n * `collections:`, so `paths` and `exclude` are refused by name.\n */\nimport { resolve } from \"node:path\";\nimport { selectCollections } from \"../../shared/collections.js\";\nimport { findConfigFile, readConfigFile, type ConfigFile, type ConfigFileOptions } from \"../../shared/config-file.js\";\nimport { SEVERITIES } from \"../../shared/severity.js\";\nimport { StrategyError } from \"../errors.js\";\nimport {\n STRATEGY_RULES,\n type StrategyConfig,\n type StrategyRule,\n type StrategyRun,\n type StrategySeverity,\n} from \"../types.js\";\nimport { isStrategyRule } from \"./severity.js\";\n\nexport const STRATEGY_SECTION = \"strategy\";\n\nexport const DEFAULT_STRATEGY_BASELINE_PATH = \".manni-strategy-baseline.json\";\n\n/** The keys `strategy:` accepts, in the order the reference lists them. */\nconst CONFIG_KEYS: readonly (keyof StrategyConfig)[] = [\"severity\", \"baseline\", \"allowEmpty\", \"respectGitignore\"];\n\n/** Keys that belong to the family, refused by name with where they live. */\nconst COLLECTION_KEYS: readonly string[] = [\"paths\", \"exclude\"];\n\n/** The family scale, least severe first, then `off`. */\nconst SEVERITY_LEVELS: readonly StrategySeverity[] = [...SEVERITIES, \"off\"];\n\nconst CONFIG_FILE: ConfigFileOptions = {\n section: STRATEGY_SECTION,\n legacyNames: [],\n toError: (message) => new StrategyError(message),\n};\n\nfunction isMapping(value: unknown): value is Record<string, unknown> {\n return typeof value === \"object\" && value !== null && !Array.isArray(value);\n}\n\nfunction isLevel(value: unknown): value is StrategySeverity {\n return typeof value === \"string\" && (SEVERITY_LEVELS as readonly string[]).includes(value);\n}\n\nfunction rejectUnknownKeys(obj: Record<string, unknown>, allowed: readonly string[], where: string, source: string): void {\n for (const key of Object.keys(obj)) {\n if (!allowed.includes(key)) {\n throw new StrategyError(`Unknown key \"${key}\" under ${where}: in ${source}. Supported keys: ${allowed.join(\", \")}.`);\n }\n }\n}\n\n/** A type error names the key and the type it wanted, never the value, which could be a pasted secret. */\nfunction wrongType(key: string, expected: string, source: string): StrategyError {\n return new StrategyError(`strategy.${key} in ${source} must be ${expected}.`);\n}\n\nfunction asBoolean(value: unknown, key: string, source: string): boolean {\n if (typeof value !== \"boolean\") throw wrongType(key, \"a boolean\", source);\n return value;\n}\n\nfunction parseSeverity(value: unknown, source: string): Partial<Record<StrategyRule, StrategySeverity>> {\n if (!isMapping(value)) throw wrongType(\"severity\", \"a mapping\", source);\n rejectUnknownKeys(value, STRATEGY_RULES, \"strategy.severity\", source);\n const severity: Partial<Record<StrategyRule, StrategySeverity>> = {};\n for (const [rule, level] of Object.entries(value)) {\n if (!isStrategyRule(rule)) continue;\n if (!isLevel(level)) {\n // A level is not a secret, so a string one is quoted back.\n const quoted = typeof level === \"string\" ? ` \"${level}\"` : \"\";\n throw new StrategyError(\n `${source}: strategy.severity.${rule}${quoted} is not a level. Expected ${SEVERITY_LEVELS.join(\" | \")}.`,\n );\n }\n severity[rule] = level;\n }\n return severity;\n}\n\n/** Validate the `strategy:` slice of a family file. `null` is an empty section. */\nexport function parseStrategyConfig(raw: unknown, source: string): StrategyConfig {\n if (raw == null) return {};\n if (!isMapping(raw)) throw new StrategyError(`strategy: in ${source} must be a mapping.`);\n // Before the unknown-key check, which would call a family setting a typo.\n for (const key of COLLECTION_KEYS) {\n if (Object.hasOwn(raw, key)) {\n throw new StrategyError(`${source}: strategy does not carry \"${key}\". Name a collection under collections:.`);\n }\n }\n rejectUnknownKeys(raw, CONFIG_KEYS, \"strategy\", source);\n\n const config: StrategyConfig = {};\n if (raw.severity !== undefined) config.severity = parseSeverity(raw.severity, source);\n if (raw.baseline !== undefined) {\n if (typeof raw.baseline !== \"string\") throw wrongType(\"baseline\", \"a string\", source);\n config.baseline = raw.baseline;\n }\n if (raw.allowEmpty !== undefined) config.allowEmpty = asBoolean(raw.allowEmpty, \"allowEmpty\", source);\n if (raw.respectGitignore !== undefined) {\n config.respectGitignore = asBoolean(raw.respectGitignore, \"respectGitignore\", source);\n }\n return config;\n}\n\nexport interface StrategyRunOptions {\n cwd: string;\n /** `-c/--config`. */\n configPath?: string;\n /** Positional inputs; empty means fall back to the selected collections' `paths:`. */\n inputs: string[];\n /** `--collection <name>`, repeatable. Empty means every declared collection. */\n collection?: string[];\n}\n\nconst STDIN = \"-\";\n\n/** Which config governs the run, and what to resolve from where. */\nexport async function resolveStrategyRun(opts: StrategyRunOptions): Promise<StrategyRun> {\n const cwd = resolve(opts.cwd);\n const wanted = opts.collection ?? [];\n if (wanted.length > 0 && opts.inputs.some((input) => input !== STDIN)) {\n throw new StrategyError(\"--collection selects a configured collection; it cannot be combined with paths.\");\n }\n\n const file: ConfigFile | null = opts.configPath\n ? await readConfigFile(opts.configPath, cwd, CONFIG_FILE)\n : await findConfigFile(cwd, CONFIG_FILE);\n if (wanted.length > 0 && file === null) {\n throw new StrategyError(\"--collection needs a config file to select from.\");\n }\n const config = file === null ? null : parseStrategyConfig(file.value, file.source);\n\n const collections = file\n ? selectCollections(file.collections, wanted, file.source, (message) => new StrategyError(message))\n : [];\n const fromCollections = opts.inputs.length === 0;\n const inputs = fromCollections ? collections.flatMap((c) => c.paths) : opts.inputs;\n const base = fromCollections && inputs.length > 0 && file ? file.dir : cwd;\n\n return {\n config,\n inputs,\n base,\n collections,\n fromCollections,\n ...(file ? { configDir: file.dir, configPath: file.path, configSource: file.source, configFile: file } : {}),\n };\n}\n","/**\n * Load a strategy set: resolve the run's files, extract each one's metadata\n * with meta's extractor, merge in what its `{page}.meta.yaml` manifests\n * supply through `metaPageView`, and read the records and references out of\n * the merged view. Every value's file and line come from `declaredAt`, so a\n * value a sidecar holds is filed at the sidecar's line.\n *\n * A file that cannot be read or parsed is an error, not a skip: a set that\n * quietly lost a record would report the pages naming it as broken.\n */\nimport { readFile } from \"node:fs/promises\";\nimport { extname, resolve } from \"node:path\";\nimport {\n STDIN_LABEL,\n STDIN_TOKEN,\n assertNonEmpty,\n declaredAt,\n extractorByName,\n extractorForExtension,\n gitignoreOptions,\n metaPageView,\n resolveTargetSet,\n supportedExtensions,\n} from \"../../meta/internal.js\";\nimport type { ExtractedMetadata } from \"../../meta/index.js\";\nimport { STDIN_REQUIRES_AS } from \"../../shared/cli-options.js\";\nimport { errorMessage } from \"../../shared/errors.js\";\nimport { readRecord } from \"../../shared/reference-fields.js\";\nimport { StrategyError } from \"../errors.js\";\nimport {\n PAGE_FIELDS,\n PARENTS,\n type At,\n type StrategyRecord,\n type StrategyReference,\n type StrategyRun,\n type StrategySet,\n type StrategyStep,\n} from \"../types.js\";\n\nexport interface LoadStrategySetOptions {\n run: StrategyRun;\n /** Stdin's content, when `-` is among the run's inputs. */\n stdin?: string;\n /** `--as <format>`, which stdin needs. */\n as?: string;\n /** `--exclude <glob>`, repeatable. */\n exclude?: string[];\n /** `--ext <list>`: the extensions a directory or glob walk keeps. */\n exts?: string[];\n /** `--allow-empty`: wins over `strategy.allowEmpty`. */\n allowEmpty?: boolean;\n /** `--no-gitignore`. */\n noGitignore?: boolean;\n onNotice?: (message: string) => void;\n}\n\ninterface Extracted {\n label: string;\n extracted: ExtractedMetadata;\n}\n\nfunction text(value: unknown): string | undefined {\n return typeof value === \"string\" && value.trim() !== \"\" ? value : undefined;\n}\n\nfunction extract(content: string, label: string, path: string | undefined, format: string): Extracted {\n const extractor = extractorByName(format);\n if (extractor === undefined) throw new StrategyError(`${label}: no reader for format \"${format}\".`);\n try {\n return { label, extracted: extractor.extract(content, path ?? label) };\n } catch (error) {\n throw new StrategyError(`${label}: could not be read as ${format}: ${errorMessage(error)}`);\n }\n}\n\nasync function readInput(path: string, label: string): Promise<string> {\n try {\n return await readFile(path, \"utf8\");\n } catch (error) {\n throw new StrategyError(`${label}: could not be read: ${errorMessage(error)}`);\n }\n}\n\n/** The files the run names, extracted. Stdin comes last, as one more input. */\nasync function extractAll(opts: LoadStrategySetOptions, allowEmpty: boolean): Promise<Extracted[]> {\n const { run } = opts;\n const exclude = opts.exclude ?? [];\n const usingStdin = run.inputs.includes(STDIN_TOKEN);\n const inputs = run.inputs.filter((input) => input !== STDIN_TOKEN);\n if (usingStdin && (opts.as === undefined || opts.as === \"\")) throw new StrategyError(STDIN_REQUIRES_AS);\n if (inputs.length === 0 && !usingStdin) {\n throw new StrategyError(\n \"No files to read. Pass paths/globs, or declare a collection under `collections:` in manni.config.yaml.\",\n );\n }\n\n const out: Extracted[] = [];\n if (inputs.length > 0) {\n const { files, gitignoreSkipped } = await resolveTargetSet({\n inputs,\n cwd: run.base,\n exclude,\n exts: opts.exts ?? supportedExtensions(),\n allowEmpty,\n ...gitignoreOptions({\n ...(opts.noGitignore === true ? { flag: false } : {}),\n ...(run.config?.respectGitignore === undefined ? {} : { configured: run.config.respectGitignore }),\n ...(opts.onNotice ? { onNotice: opts.onNotice } : {}),\n }),\n });\n assertNonEmpty({\n files,\n inputs,\n usingStdin,\n allowEmpty,\n exclude,\n ...(opts.exts === undefined ? {} : { exts: opts.exts }),\n gitignoreSkipped,\n action: \"read\",\n });\n for (const file of files) {\n const extractor = extractorForExtension(extname(file));\n if (extractor === undefined) {\n throw new StrategyError(`${file}: no reader for its extension. Pass --as <format> through stdin to read it.`);\n }\n const path = resolve(run.base, file);\n out.push(extract(await readInput(path, file), file, path, extractor.name));\n }\n }\n if (usingStdin && opts.as !== undefined) out.push(extract(opts.stdin ?? \"\", STDIN_LABEL, undefined, opts.as));\n return out;\n}\n\n/** One value or a list of them, with the pointer each sits at. Anything else contributes nothing. */\nfunction valuesOf(data: Record<string, unknown>, field: string): { value: string; pointer: string }[] {\n const raw = data[field];\n if (typeof raw === \"string\") return raw.trim() === \"\" ? [] : [{ value: raw, pointer: `/${field}` }];\n if (!Array.isArray(raw)) return [];\n return raw.flatMap((item: unknown, i) =>\n typeof item === \"string\" && item.trim() !== \"\" ? [{ value: item, pointer: `/${field}/${String(i)}` }] : [],\n );\n}\n\n/**\n * A journey's `steps:`, each mapping item with the fields of their type and\n * the lines they sit on. A step is numbered by its position in the list.\n */\nfunction stepsOf(data: Record<string, unknown>, at: (pointer: string) => At): StrategyStep[] {\n const raw = data[\"steps\"];\n if (!Array.isArray(raw)) return [];\n return raw.flatMap((item: unknown, i): StrategyStep[] => {\n if (typeof item !== \"object\" || item === null || Array.isArray(item)) return [];\n const fields = item as Record<string, unknown>;\n const pointer = `/steps/${String(i)}`;\n const stage = text(fields[\"stage\"]);\n const doc = text(fields[\"doc\"]);\n const note = text(fields[\"note\"]);\n const exists = fields[\"exists\"];\n const known = exists === true || exists === false || exists === \"partial\" ? exists : undefined;\n return [\n {\n n: i + 1,\n ...(stage === undefined ? {} : { stage }),\n ...(doc === undefined ? {} : { doc }),\n ...(known === undefined ? {} : { exists: known }),\n ...(note === undefined ? {} : { note }),\n ...at(pointer),\n ...(doc === undefined ? {} : { docAt: at(`${pointer}/doc`) }),\n ...(known === undefined ? {} : { existsAt: at(`${pointer}/exists`) }),\n },\n ];\n });\n}\n\nexport async function loadStrategySet(opts: LoadStrategySetOptions): Promise<StrategySet> {\n const { run } = opts;\n const allowEmpty = opts.allowEmpty ?? run.config?.allowEmpty === true;\n const inputs = await extractAll(opts, allowEmpty);\n\n // Meta's view over the same config file, so a sidecar counts exactly as\n // `manni meta validate` merges it. Labels are relative to the run's base.\n const view = await metaPageView({\n cwd: run.base,\n ...(run.configPath === undefined ? { noConfig: true } : { configPath: run.configPath }),\n pages: inputs.filter((i) => i.label !== STDIN_LABEL).map((i) => resolve(run.base, i.label)),\n });\n\n const pages: string[] = [];\n const set: StrategySet = { records: [], references: [], pages };\n for (const { label, extracted } of inputs) {\n const merged = await view.merge(label, extracted);\n const data = merged.extracted.data;\n const at = (pointer: string): At => declaredAt(label, pointer, { extracted: merged.extracted, locate: merged.locate });\n const declares = readRecord(data, label);\n const type = declares?.type;\n const isRecord = declares !== undefined;\n\n if (declares !== undefined) {\n const declaredId = text(data[\"id\"]);\n const title = text(data[\"title\"]);\n const description = text(data[\"description\"]);\n const lifecycle = text(data[\"lifecycle\"]);\n const steps = type === \"journey\" ? stepsOf(data, at) : [];\n const record: StrategyRecord = {\n id: declares.id,\n type: declares.type,\n ...(title === undefined ? {} : { title }),\n ...(description === undefined ? {} : { description }),\n ...(lifecycle === undefined ? {} : { lifecycle }),\n file: label,\n line: 1,\n ...(declaredId === undefined ? {} : { idAt: at(\"/id\") }),\n parents:\n declares.type === \"audience\"\n ? []\n : valuesOf(data, PARENTS[declares.type]).map(({ value, pointer }) => ({ value, ...at(pointer) })),\n data,\n ...(steps.length === 0 ? {} : { steps }),\n };\n set.records.push(record);\n } else {\n pages.push(label);\n }\n\n // A journey's `personas:` is its parent field, read above, so it is not a reference too.\n const parentField = type !== undefined && type !== \"audience\" ? PARENTS[type] : undefined;\n for (const field of Object.values(PAGE_FIELDS)) {\n if (field === parentField) continue;\n for (const { value, pointer } of valuesOf(data, field)) {\n const reference: StrategyReference = { field, value, page: label, record: isRecord, ...at(pointer) };\n set.references.push(reference);\n }\n }\n }\n\n if (set.records.length === 0 && !allowEmpty) {\n throw new StrategyError(\n \"no strategy records found. A record is a page declaring type: audience, type: persona or type: journey.\",\n );\n }\n return set;\n}\n","/**\n * What every `manni strategy` command core shares: resolve the run and load\n * the set. Kept free of commander and of stdout, so a core is called directly\n * by its tests; the CLI reads stdin once and hands it in.\n */\nimport { isAbsolute, relative, resolve, sep } from \"node:path\";\nimport { loadConfig } from \"../../graph/core/config.js\";\nimport { routesFrom } from \"../../graph/core/discover.js\";\nimport { resolveStrategyRun } from \"../core/config.js\";\nimport { loadStrategySet } from \"../core/load-set.js\";\nimport { resolveSteps, stepsNeedRoutes, type StepMap } from \"../core/steps.js\";\nimport { StrategyError } from \"../errors.js\";\nimport type { StrategyRun, StrategySet } from \"../types.js\";\n\n/** The inputs and flags `list`, `get` and `check` share. */\nexport interface StrategyCommandOptions {\n /** Default `process.cwd()`. */\n cwd?: string;\n /** Positional `[paths...]`; `-` is stdin. Empty falls back to the collections. */\n inputs: string[];\n /** Stdin's content, read once by the CLI when `-` is among the inputs. */\n stdin?: string;\n /** `--as <format>`. */\n as?: string;\n /** `--exclude <glob>`, repeatable. */\n exclude?: string[];\n /** `--ext <list>`, already split. */\n exts?: string[];\n /** `--allow-empty`. */\n allowEmpty?: boolean;\n /** `--no-gitignore`. */\n noGitignore?: boolean;\n /** `--collection <name>`, repeatable. */\n collection?: string[];\n /** `-c, --config <path>`. */\n configPath?: string;\n onNotice?: (message: string) => void;\n}\n\nexport interface LoadedStrategy {\n cwd: string;\n run: StrategyRun;\n set: StrategySet;\n /** Each journey's steps, resolved against the run's pages. */\n steps: StepMap;\n /** Whether the run owns a file it read. One it does not own is borrowed. */\n owns: (file: string) => boolean;\n}\n\n/**\n * Whether a label sits inside one of `dirs`, the run's directory: the config\n * file's, else the working directory. A file outside, above it or on another\n * drive, is borrowed (proposal 0112), the boundary `isMember` draws.\n */\nexport function ownedIn(dirs: readonly string[], base: string): (file: string) => boolean {\n return (file) => {\n if (file.startsWith(\"<\")) return true;\n return dirs.some((dir) => {\n const rel = relative(dir, resolve(base, file));\n return !isAbsolute(rel) && rel !== \"..\" && !rel.startsWith(`..${sep}`);\n });\n };\n}\n\nexport async function loadStrategy(opts: StrategyCommandOptions): Promise<LoadedStrategy> {\n const cwd = resolve(opts.cwd ?? process.cwd());\n const run = await resolveStrategyRun({\n cwd,\n inputs: opts.inputs,\n ...(opts.configPath === undefined ? {} : { configPath: opts.configPath }),\n ...(opts.collection === undefined ? {} : { collection: opts.collection }),\n });\n // A collection's `exclude:` shapes the collection, so it applies when the\n // inputs came from the collections and never to a path the operator typed.\n const exclude = [\n ...new Set([...(opts.exclude ?? []), ...(run.fromCollections ? run.collections.flatMap((c) => c.exclude) : [])]),\n ];\n const set = await loadStrategySet({\n run,\n exclude,\n ...(opts.exts === undefined ? {} : { exts: opts.exts }),\n ...(opts.allowEmpty === true ? { allowEmpty: true } : {}),\n ...(opts.noGitignore === true ? { noGitignore: true } : {}),\n ...(opts.stdin === undefined ? {} : { stdin: opts.stdin }),\n ...(opts.as === undefined ? {} : { as: opts.as }),\n ...(opts.onNotice === undefined ? {} : { onNotice: opts.onNotice }),\n });\n // `graph:` is read only when a step names a `/` route, and through graph's own loader.\n const routes = stepsNeedRoutes(set) && run.configPath !== undefined ? routesFrom(loadConfig(run.configPath, cwd), run.base) : [];\n // A path the operator typed resolves from the working directory, so a typed\n // run owns that directory too, as it did when `-c` names a config elsewhere.\n const dir = run.configDir ?? cwd;\n const owns = ownedIn(run.fromCollections ? [dir] : [dir, cwd], run.base);\n const steps = resolveSteps(set, { routes, from: dir, base: run.base, owns });\n return { cwd, run, set, steps, owns };\n}\n\n/** `value` when it is one of `allowed`, else the family's unknown-format refusal. */\nexport function formatChoice<T extends string>(value: string, allowed: readonly T[]): T {\n const found = allowed.find((candidate) => candidate === value);\n if (found === undefined) throw new StrategyError(`unknown format \"${value}\". Expected ${allowed.join(\" | \")}.`);\n return found;\n}\n\n/**\n * A path as a person standing in `cwd` would type it: relative, posix. A\n * label is relative to the run's base, which is the config directory for a\n * collection run, so it is resolved from there first.\n */\nexport function displayPath(path: string, cwd: string, base = cwd): string {\n if (path.startsWith(\"<\")) return path;\n const rel = relative(cwd, isAbsolute(path) ? path : resolve(base, path));\n return (rel === \"\" ? \".\" : rel).replaceAll(\"\\\\\", \"/\");\n}\n\n/** `1 record`, `2 records`. */\nexport function plural(n: number, one: string, many = `${one}s`): string {\n return `${String(n)} ${n === 1 ? one : many}`;\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAUA,SAAS,UAAU,eAAe;;;ACyBlC,IAAM,OAAO,CAAC,UAA0B,MAAM,YAAY;AAG1D,IAAM,cAA4D;AAGlE,IAAM,eAAe,CAAC,SAAgC,YAAY,QAAQ,IAAI,CAAC;AAkBxE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,KAAK,KAAK,OAAO,KAAK;AACtC;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,MAAMD,UAAS,KAAK,WAAW,IAAI,IAAI,OAAOC,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","relative","resolve"]}
@@ -3,26 +3,26 @@ import {
3
3
  ANNOTATE_FORMATS,
4
4
  renderAnnotate,
5
5
  runAnnotate
6
- } from "./chunk-3TGXVNYA.js";
6
+ } from "./chunk-ITEGS3X3.js";
7
7
  import {
8
8
  SiteError,
9
9
  resolvePlan
10
10
  } from "./chunk-D4BGNAN5.js";
11
- import "./chunk-5RRP5CQR.js";
12
- import "./chunk-BKJ6JPQF.js";
11
+ import "./chunk-RIKCEIS7.js";
12
+ import "./chunk-X64BY7TV.js";
13
13
  import {
14
14
  launcherCommandLine
15
15
  } from "./chunk-ZMECS2IJ.js";
16
- import "./chunk-5C5UNRZF.js";
17
- import "./chunk-W5TFTVPG.js";
16
+ import "./chunk-6RFNXPVZ.js";
17
+ import "./chunk-WFSZVCTZ.js";
18
18
  import "./chunk-TI4DA6DF.js";
19
- import "./chunk-UMY3IKYT.js";
20
- import "./chunk-2UT6FSV5.js";
21
- import "./chunk-A322P5GM.js";
22
- import "./chunk-XYNYBH3M.js";
23
- import "./chunk-PDL6IO4Z.js";
19
+ import "./chunk-KG7ZP7Z6.js";
20
+ import "./chunk-SHDMHEY6.js";
21
+ import "./chunk-WMJ2FXYV.js";
22
+ import "./chunk-CSZIHCPC.js";
23
+ import "./chunk-2LF3NIWH.js";
24
24
  import "./chunk-DSWKBZWW.js";
25
- import "./chunk-67OVXUT3.js";
25
+ import "./chunk-IQ4YRTPO.js";
26
26
  import "./chunk-QK6VYJHV.js";
27
27
  import "./chunk-RNVYGWIC.js";
28
28
  import {
@@ -35,7 +35,7 @@ import {
35
35
  import "./chunk-NVYDWVXN.js";
36
36
  import {
37
37
  package_default
38
- } from "./chunk-KVLOTBQR.js";
38
+ } from "./chunk-PMRBTUCZ.js";
39
39
  import "./chunk-OWBRDNRZ.js";
40
40
  import {
41
41
  errorMessage
@@ -374,4 +374,4 @@ function buildProgram() {
374
374
  export {
375
375
  buildProgram
376
376
  };
377
- //# sourceMappingURL=cli-SZCB4QXF.js.map
377
+ //# sourceMappingURL=cli-4WOYZQQF.js.map
@@ -7,12 +7,12 @@ import {
7
7
  renderTasks,
8
8
  runProcedures,
9
9
  runTasks
10
- } from "./chunk-Z236YJ2V.js";
10
+ } from "./chunk-E4A2OW24.js";
11
11
  import "./chunk-TT5UDTDM.js";
12
- import "./chunk-WCHP6QET.js";
12
+ import "./chunk-GQQGKKXK.js";
13
13
  import "./chunk-FQGLRJGX.js";
14
14
  import "./chunk-VHJ72YCD.js";
15
- import "./chunk-SOY53WQN.js";
15
+ import "./chunk-R3EJQKGM.js";
16
16
  import "./chunk-3ZVRGBK6.js";
17
17
  import "./chunk-6WJUZQQX.js";
18
18
  import "./chunk-NHOGTAPK.js";
@@ -20,24 +20,24 @@ import "./chunk-ZINZTHWO.js";
20
20
  import "./chunk-XG6PVB5S.js";
21
21
  import "./chunk-YNHZHSSM.js";
22
22
  import "./chunk-QS2Z3SWL.js";
23
- import "./chunk-IDZXRFBA.js";
24
- import "./chunk-UU7W7VJ7.js";
25
- import "./chunk-DILBGKLL.js";
26
- import "./chunk-5C5UNRZF.js";
23
+ import "./chunk-YBWDATJO.js";
24
+ import "./chunk-MUPA2MUK.js";
25
+ import "./chunk-ZPKPL52R.js";
26
+ import "./chunk-6RFNXPVZ.js";
27
27
  import "./chunk-XTKJNRJ6.js";
28
- import "./chunk-W5TFTVPG.js";
28
+ import "./chunk-WFSZVCTZ.js";
29
29
  import "./chunk-TI4DA6DF.js";
30
30
  import "./chunk-BXQLKOOR.js";
31
31
  import "./chunk-JBOXCSTN.js";
32
- import "./chunk-UMY3IKYT.js";
33
- import "./chunk-2UT6FSV5.js";
34
- import "./chunk-A322P5GM.js";
35
- import "./chunk-XYNYBH3M.js";
32
+ import "./chunk-KG7ZP7Z6.js";
33
+ import "./chunk-SHDMHEY6.js";
34
+ import "./chunk-WMJ2FXYV.js";
35
+ import "./chunk-CSZIHCPC.js";
36
36
  import {
37
37
  collect
38
- } from "./chunk-PDL6IO4Z.js";
38
+ } from "./chunk-2LF3NIWH.js";
39
39
  import "./chunk-DSWKBZWW.js";
40
- import "./chunk-67OVXUT3.js";
40
+ import "./chunk-IQ4YRTPO.js";
41
41
  import "./chunk-77AINBYM.js";
42
42
  import "./chunk-QK6VYJHV.js";
43
43
  import {
@@ -51,7 +51,7 @@ import "./chunk-HX44GB4Z.js";
51
51
  import "./chunk-NVYDWVXN.js";
52
52
  import {
53
53
  package_default
54
- } from "./chunk-KVLOTBQR.js";
54
+ } from "./chunk-PMRBTUCZ.js";
55
55
  import "./chunk-OWBRDNRZ.js";
56
56
  import "./chunk-G3T47CFV.js";
57
57
  import "./chunk-2H7UOFLK.js";
@@ -149,4 +149,4 @@ function buildProgram() {
149
149
  export {
150
150
  buildProgram
151
151
  };
152
- //# sourceMappingURL=cli-66SXH7LQ.js.map
152
+ //# sourceMappingURL=cli-5HRQSZJG.js.map
@@ -3,45 +3,45 @@ import {
3
3
  KeyError,
4
4
  runKeyRotate,
5
5
  runKeySet
6
- } from "./chunk-4BWD6PHR.js";
7
- import "./chunk-632W5O3C.js";
8
- import "./chunk-2RFVMOPC.js";
6
+ } from "./chunk-6Z3XOK52.js";
7
+ import "./chunk-FKM3GGP4.js";
8
+ import "./chunk-CU2RHHDC.js";
9
9
  import {
10
10
  parseRepoFlags
11
- } from "./chunk-RHMOEPNT.js";
11
+ } from "./chunk-S6TCOSAY.js";
12
12
  import "./chunk-IM7C3H4W.js";
13
- import "./chunk-CRCMXSQR.js";
14
- import "./chunk-7O6TTSOO.js";
15
- import "./chunk-3OHMRGHD.js";
16
- import "./chunk-W4KJPTAN.js";
17
- import "./chunk-WCRZHFCI.js";
18
- import "./chunk-IDZXRFBA.js";
19
- import "./chunk-NZRNW2XM.js";
20
- import "./chunk-UU7W7VJ7.js";
21
- import "./chunk-KKASKZUG.js";
22
- import "./chunk-EZBMIWUP.js";
23
- import "./chunk-BJH5VPAO.js";
24
- import "./chunk-DILBGKLL.js";
25
- import "./chunk-5C5UNRZF.js";
13
+ import "./chunk-PZLJQE2S.js";
14
+ import "./chunk-OIGFV4BG.js";
15
+ import "./chunk-3ZWKN3JF.js";
16
+ import "./chunk-BNCI4B5B.js";
17
+ import "./chunk-A7Z74ZVA.js";
18
+ import "./chunk-YBWDATJO.js";
19
+ import "./chunk-5XVS7OLH.js";
20
+ import "./chunk-MUPA2MUK.js";
21
+ import "./chunk-M4OGE7AL.js";
22
+ import "./chunk-7QIUCIOS.js";
23
+ import "./chunk-V3CE2MQV.js";
24
+ import "./chunk-ZPKPL52R.js";
25
+ import "./chunk-6RFNXPVZ.js";
26
26
  import "./chunk-XTKJNRJ6.js";
27
- import "./chunk-W5TFTVPG.js";
27
+ import "./chunk-WFSZVCTZ.js";
28
28
  import "./chunk-TI4DA6DF.js";
29
- import "./chunk-I3QMDFDG.js";
29
+ import "./chunk-OG6OJC64.js";
30
30
  import "./chunk-BXQLKOOR.js";
31
31
  import "./chunk-JBOXCSTN.js";
32
- import "./chunk-UMY3IKYT.js";
33
- import "./chunk-2UT6FSV5.js";
34
- import "./chunk-A322P5GM.js";
32
+ import "./chunk-KG7ZP7Z6.js";
33
+ import "./chunk-SHDMHEY6.js";
34
+ import "./chunk-WMJ2FXYV.js";
35
35
  import {
36
36
  COMMON_FORMAT_LIST
37
- } from "./chunk-XYNYBH3M.js";
37
+ } from "./chunk-CSZIHCPC.js";
38
38
  import {
39
39
  collect,
40
40
  explicitFalse,
41
41
  splitList
42
- } from "./chunk-PDL6IO4Z.js";
42
+ } from "./chunk-2LF3NIWH.js";
43
43
  import "./chunk-DSWKBZWW.js";
44
- import "./chunk-67OVXUT3.js";
44
+ import "./chunk-IQ4YRTPO.js";
45
45
  import "./chunk-77AINBYM.js";
46
46
  import "./chunk-QK6VYJHV.js";
47
47
  import {
@@ -58,7 +58,7 @@ import {
58
58
  import "./chunk-NVYDWVXN.js";
59
59
  import {
60
60
  package_default
61
- } from "./chunk-KVLOTBQR.js";
61
+ } from "./chunk-PMRBTUCZ.js";
62
62
  import "./chunk-OWBRDNRZ.js";
63
63
  import "./chunk-G3T47CFV.js";
64
64
  import "./chunk-2H7UOFLK.js";
@@ -253,4 +253,4 @@ function buildProgram() {
253
253
  export {
254
254
  buildProgram
255
255
  };
256
- //# sourceMappingURL=cli-3XDWEQRN.js.map
256
+ //# sourceMappingURL=cli-AISVPF4O.js.map