@hawkeyexl/manni 4.26.2 → 4.27.1

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 (270) hide show
  1. package/README.md +1 -1
  2. package/dist/{batch-4I5S6DXG.js → batch-FXJMZSYY.js} +14 -14
  3. package/dist/build-5O753VOV.js +37 -0
  4. package/dist/{calibrate-U4TQAXXD.js → calibrate-RF7YSQMK.js} +15 -15
  5. package/dist/{capture-ODSHL2XI.js → capture-EKYFKMBB.js} +14 -14
  6. package/dist/check-4YQUHDAP.js +58 -0
  7. package/dist/check-CG4UOXP7.js +34 -0
  8. package/dist/{check-YFLWJUZC.js → check-KI3HYODN.js} +15 -15
  9. package/dist/check-PWFSARDW.js +31 -0
  10. package/dist/check-VXTYP4XW.js +58 -0
  11. package/dist/{chunk-QNXNA2BR.js → chunk-35J3BP37.js} +300 -58
  12. package/dist/chunk-35J3BP37.js.map +1 -0
  13. package/dist/{chunk-SIDHDT4X.js → chunk-3G3TETDC.js} +8 -8
  14. package/dist/{chunk-4X3EH5VC.js → chunk-3VFYCN5N.js} +65 -47
  15. package/dist/chunk-3VFYCN5N.js.map +1 -0
  16. package/dist/{chunk-BREAC43H.js → chunk-43VLZO4W.js} +2 -2
  17. package/dist/{chunk-HJHDYROD.js → chunk-47CLJY6H.js} +4 -4
  18. package/dist/{chunk-RVATMGUL.js → chunk-4CBACRVT.js} +4 -4
  19. package/dist/{chunk-UT3CPOGN.js → chunk-4YTYUB77.js} +8 -8
  20. package/dist/{chunk-QWGAM3T6.js → chunk-5GQ7FF22.js} +3 -3
  21. package/dist/{chunk-B6YZINES.js → chunk-5UCBYX53.js} +173 -83
  22. package/dist/chunk-5UCBYX53.js.map +1 -0
  23. package/dist/{chunk-KHBOMLPS.js → chunk-6RGLJTXE.js} +4 -4
  24. package/dist/{chunk-KLTGAGB6.js → chunk-74E5D3DP.js} +3 -3
  25. package/dist/{chunk-UUGTQUKK.js → chunk-7DFAXPO6.js} +64 -11
  26. package/dist/chunk-7DFAXPO6.js.map +1 -0
  27. package/dist/{chunk-5KWMVAZZ.js → chunk-7VCMV247.js} +2 -2
  28. package/dist/{chunk-MC7U5IH4.js → chunk-BCRMMIY5.js} +1 -1
  29. package/dist/chunk-BCRMMIY5.js.map +1 -0
  30. package/dist/{chunk-3ZVRGBK6.js → chunk-BTFXOKCP.js} +2 -2
  31. package/dist/{chunk-4DFLLMIM.js → chunk-C2XLJICN.js} +3 -3
  32. package/dist/{chunk-JF4BC7ZD.js → chunk-CDX4QK6O.js} +29 -2
  33. package/dist/chunk-CDX4QK6O.js.map +1 -0
  34. package/dist/{chunk-PEZP4ZFP.js → chunk-CIGRVU5V.js} +31 -13
  35. package/dist/chunk-CIGRVU5V.js.map +1 -0
  36. package/dist/{chunk-K7UVWJJW.js → chunk-CUOJGVVA.js} +15 -7
  37. package/dist/chunk-CUOJGVVA.js.map +1 -0
  38. package/dist/{chunk-NTQ73IQL.js → chunk-D7V5MUXP.js} +2 -2
  39. package/dist/{chunk-NTQ73IQL.js.map → chunk-D7V5MUXP.js.map} +1 -1
  40. package/dist/{chunk-PX4QZLA2.js → chunk-F4CL337L.js} +3 -3
  41. package/dist/{chunk-KSDAAJJX.js → chunk-G2SEJDO6.js} +2 -2
  42. package/dist/{chunk-J7E4XAFG.js → chunk-GEBXLJKQ.js} +32 -22
  43. package/dist/chunk-GEBXLJKQ.js.map +1 -0
  44. package/dist/chunk-HMJZHUCJ.js +337 -0
  45. package/dist/chunk-HMJZHUCJ.js.map +1 -0
  46. package/dist/{chunk-GXC7SDLO.js → chunk-IHW7N3A6.js} +369 -89
  47. package/dist/chunk-IHW7N3A6.js.map +1 -0
  48. package/dist/{chunk-UOZZTK7T.js → chunk-JVWJYB7V.js} +6 -6
  49. package/dist/{chunk-P6QJPKZ2.js → chunk-K7742NWM.js} +31 -26
  50. package/dist/chunk-K7742NWM.js.map +1 -0
  51. package/dist/{chunk-PJ5YJS6L.js → chunk-KPXZZD66.js} +2 -2
  52. package/dist/{chunk-KLRTOQN4.js → chunk-KQ66NYWY.js} +13 -7
  53. package/dist/chunk-KQ66NYWY.js.map +1 -0
  54. package/dist/{chunk-GM5LWEDF.js → chunk-L7QHAAZC.js} +56 -27
  55. package/dist/chunk-L7QHAAZC.js.map +1 -0
  56. package/dist/{chunk-BAJ23I2H.js → chunk-LEGD33WJ.js} +14 -7
  57. package/dist/chunk-LEGD33WJ.js.map +1 -0
  58. package/dist/{chunk-Z2JBWLRF.js → chunk-M2XDU7QB.js} +9 -9
  59. package/dist/{chunk-H4JXCWLM.js → chunk-MHVS4LTZ.js} +7 -7
  60. package/dist/{chunk-7ODOTGU4.js → chunk-MRQTMVJZ.js} +3 -3
  61. package/dist/{chunk-RV2BYDJK.js → chunk-MZMVTI6Y.js} +24 -14
  62. package/dist/chunk-MZMVTI6Y.js.map +1 -0
  63. package/dist/{chunk-MMVT3ZP3.js → chunk-NFQH77XJ.js} +5 -5
  64. package/dist/{chunk-SHYEKYV4.js → chunk-OBZY2ZLQ.js} +2 -2
  65. package/dist/{chunk-TI4DA6DF.js → chunk-OPF3NOKF.js} +1 -1
  66. package/dist/chunk-OPF3NOKF.js.map +1 -0
  67. package/dist/{chunk-QFEEUI2Z.js → chunk-OVIWWR5N.js} +4 -4
  68. package/dist/{chunk-THFV3YVO.js → chunk-P3OV32LW.js} +4 -4
  69. package/dist/{chunk-NZ7RO6ZD.js → chunk-P4HSBQHG.js} +3 -3
  70. package/dist/{chunk-VNR7BQBZ.js → chunk-P6JCXNMG.js} +52 -4
  71. package/dist/chunk-P6JCXNMG.js.map +1 -0
  72. package/dist/{chunk-JDQFU2U6.js → chunk-QXSPGFT3.js} +9 -9
  73. package/dist/{chunk-BPVO3OED.js → chunk-RCP5V6KE.js} +6 -6
  74. package/dist/{chunk-P7MGBTY3.js → chunk-RHR64UXW.js} +3 -3
  75. package/dist/{chunk-A43A335C.js → chunk-RWGHG66G.js} +3 -3
  76. package/dist/{chunk-HAZQCHO5.js → chunk-S4ADL7Y4.js} +3 -3
  77. package/dist/{chunk-DPQAF2VR.js → chunk-SDUVH4J2.js} +2 -2
  78. package/dist/{chunk-LSH6HPKB.js → chunk-SJS6Z7JV.js} +4 -4
  79. package/dist/{chunk-K4X6GJKG.js → chunk-SJUEUKJD.js} +3 -3
  80. package/dist/{chunk-YG4GZXSA.js → chunk-TO6N7QVO.js} +2 -2
  81. package/dist/{chunk-OKLRZM2N.js → chunk-TXIZMTCQ.js} +5 -5
  82. package/dist/{chunk-LHFO4HF7.js → chunk-UGQPOFLW.js} +7 -7
  83. package/dist/{chunk-SJI7C7FY.js → chunk-VCJ6ZJDW.js} +14 -14
  84. package/dist/{chunk-EXCYL3S7.js → chunk-VH3X7GHC.js} +2 -2
  85. package/dist/{chunk-VDEE7AUI.js → chunk-VKIIG6DZ.js} +2 -2
  86. package/dist/{chunk-LURF4MTH.js → chunk-VPNKSEQU.js} +3 -3
  87. package/dist/{chunk-PWLUQLFH.js → chunk-W4RCGOLJ.js} +7 -7
  88. package/dist/{chunk-GCJPYCOV.js → chunk-WOCG36UV.js} +4 -4
  89. package/dist/{chunk-ZR33AQFW.js → chunk-XK3T6MKU.js} +10 -8
  90. package/dist/chunk-XK3T6MKU.js.map +1 -0
  91. package/dist/{chunk-A6LHTTNO.js → chunk-XOKLYJJT.js} +21 -12
  92. package/dist/chunk-XOKLYJJT.js.map +1 -0
  93. package/dist/{chunk-M6RB342K.js → chunk-YTW7A62V.js} +2 -2
  94. package/dist/{chunk-4IM6A2WK.js → chunk-YWJ453BG.js} +6 -6
  95. package/dist/{chunk-RZ65VMRW.js → chunk-ZBN2HEC2.js} +10 -10
  96. package/dist/{chunk-DGN4VVFG.js → chunk-ZMEDAKMB.js} +3 -3
  97. package/dist/{chunk-NXP3DG4L.js → chunk-ZMGME5NG.js} +4 -4
  98. package/dist/{chunk-XD4Z26HJ.js → chunk-ZMWQZF3F.js} +3 -3
  99. package/dist/{chunk-G5I2JTDK.js → chunk-ZWVYT2G6.js} +2 -2
  100. package/dist/{chunk-D4BGNAN5.js → chunk-ZZGHTXZ2.js} +159 -23
  101. package/dist/chunk-ZZGHTXZ2.js.map +1 -0
  102. package/dist/{cli-XM4F6ZC7.js → cli-545YXHOS.js} +26 -25
  103. package/dist/{cli-XM4F6ZC7.js.map → cli-545YXHOS.js.map} +1 -1
  104. package/dist/{cli-DKRISKSR.js → cli-6EPISRJR.js} +21 -21
  105. package/dist/{cli-WWNQFDMK.js → cli-6LJS32R2.js} +3 -3
  106. package/dist/{cli-RO4TNFXJ.js → cli-6N2VRKCW.js} +16 -15
  107. package/dist/{cli-RO4TNFXJ.js.map → cli-6N2VRKCW.js.map} +1 -1
  108. package/dist/{cli-SDW7JOTO.js → cli-6SDS7T2Q.js} +56 -55
  109. package/dist/{cli-SDW7JOTO.js.map → cli-6SDS7T2Q.js.map} +1 -1
  110. package/dist/{cli-3VAVQYQT.js → cli-DCGA5IQ4.js} +24 -42
  111. package/dist/cli-DCGA5IQ4.js.map +1 -0
  112. package/dist/{cli-AR6TOW7M.js → cli-E6JIYSKY.js} +20 -19
  113. package/dist/{cli-AR6TOW7M.js.map → cli-E6JIYSKY.js.map} +1 -1
  114. package/dist/{cli-CFDGH5HD.js → cli-K4SDAECI.js} +30 -29
  115. package/dist/{cli-CFDGH5HD.js.map → cli-K4SDAECI.js.map} +1 -1
  116. package/dist/{cli-6DOYYCTT.js → cli-KINREG4W.js} +29 -28
  117. package/dist/{cli-6DOYYCTT.js.map → cli-KINREG4W.js.map} +1 -1
  118. package/dist/{cli-7IPP6ZTQ.js → cli-XUWY3QTT.js} +37 -36
  119. package/dist/{cli-7IPP6ZTQ.js.map → cli-XUWY3QTT.js.map} +1 -1
  120. package/dist/{cli-C2OATF3N.js → cli-ZTYRATHT.js} +8 -8
  121. package/dist/cli.js +15 -15
  122. package/dist/{config-2YJPJ36T.js → config-Z3FYLJ6X.js} +3 -3
  123. package/dist/docmeta.js +7 -7
  124. package/dist/github-GW6UZTRR.js +29 -0
  125. package/dist/{github-GU23WNCU.js → github-IT66VVCM.js} +15 -14
  126. package/dist/github-UJTQPG6S.js +49 -0
  127. package/dist/index.d.ts +165 -6
  128. package/dist/index.js +55 -54
  129. package/dist/index.js.map +1 -1
  130. package/dist/{json-P4EDSVIC.js → json-KKNQHTAA.js} +13 -12
  131. package/dist/{json-YIZON5LE.js → json-X4XGVPXV.js} +16 -15
  132. package/dist/{labels-6RROJOYQ.js → labels-7UD5VT2S.js} +12 -11
  133. package/dist/{labels-6RROJOYQ.js.map → labels-7UD5VT2S.js.map} +1 -1
  134. package/dist/lint-L7QTMCCV.js +33 -0
  135. package/dist/list-R34MHZWK.js +31 -0
  136. package/dist/list-S6LJENZ3.js +49 -0
  137. package/dist/{list-UARFGS7C.js → list-URXKGZ5I.js} +15 -14
  138. package/dist/{page-JADAILE3.js → page-2H44PTPE.js} +10 -10
  139. package/dist/{prepare-B24HTUCX.js → prepare-ND2INKAJ.js} +13 -13
  140. package/dist/{pretty-XAMSAKAR.js → pretty-54GDW63J.js} +15 -14
  141. package/dist/{pretty-NHNYY7CP.js → pretty-BW6SLRBO.js} +25 -24
  142. package/dist/{pretty-5V3PWJ6L.js → pretty-ZVAM3XV6.js} +13 -12
  143. package/dist/{reporters-HTJKW7NG.js → reporters-6P74QNVX.js} +5 -5
  144. package/dist/{reporters-ULSSBAAG.js → reporters-LON6K3EN.js} +12 -12
  145. package/dist/run-KLO35LDY.js +52 -0
  146. package/dist/{sarif-LBODGUNE.js → sarif-2HOXOFAZ.js} +9 -9
  147. package/dist/sarif-DM5XJGBX.js +50 -0
  148. package/dist/{sarif-SOA76ESJ.js → sarif-WXGSULXG.js} +11 -11
  149. package/dist/{strategy-XI7QTY7T.js → strategy-FOZDCVLS.js} +22 -21
  150. package/dist/{term-UIBQBGMR.js → term-CAPJSZ6V.js} +19 -18
  151. package/dist/{term-UIBQBGMR.js.map → term-CAPJSZ6V.js.map} +1 -1
  152. package/dist/{validate-X257AMWS.js → validate-LSB6TBY6.js} +5 -5
  153. package/package.json +1 -1
  154. package/plugin/manni/.claude-plugin/plugin.json +1 -1
  155. package/plugin/manni/hooks/page-metadata.mjs +1 -1
  156. package/dist/build-OPWHXPXE.js +0 -36
  157. package/dist/check-4VOOUC5E.js +0 -33
  158. package/dist/check-M3ORYGTW.js +0 -57
  159. package/dist/check-QJ35SM3K.js +0 -57
  160. package/dist/check-UXS5LVFJ.js +0 -30
  161. package/dist/chunk-4X3EH5VC.js.map +0 -1
  162. package/dist/chunk-A6LHTTNO.js.map +0 -1
  163. package/dist/chunk-B6YZINES.js.map +0 -1
  164. package/dist/chunk-BAJ23I2H.js.map +0 -1
  165. package/dist/chunk-D4BGNAN5.js.map +0 -1
  166. package/dist/chunk-GM5LWEDF.js.map +0 -1
  167. package/dist/chunk-GXC7SDLO.js.map +0 -1
  168. package/dist/chunk-J7E4XAFG.js.map +0 -1
  169. package/dist/chunk-JF4BC7ZD.js.map +0 -1
  170. package/dist/chunk-K7UVWJJW.js.map +0 -1
  171. package/dist/chunk-KLRTOQN4.js.map +0 -1
  172. package/dist/chunk-MC7U5IH4.js.map +0 -1
  173. package/dist/chunk-P6QJPKZ2.js.map +0 -1
  174. package/dist/chunk-PEZP4ZFP.js.map +0 -1
  175. package/dist/chunk-QNXNA2BR.js.map +0 -1
  176. package/dist/chunk-RV2BYDJK.js.map +0 -1
  177. package/dist/chunk-TI4DA6DF.js.map +0 -1
  178. package/dist/chunk-UUGTQUKK.js.map +0 -1
  179. package/dist/chunk-VNR7BQBZ.js.map +0 -1
  180. package/dist/chunk-ZR33AQFW.js.map +0 -1
  181. package/dist/cli-3VAVQYQT.js.map +0 -1
  182. package/dist/github-RPHQGICU.js +0 -48
  183. package/dist/github-VKUOQE77.js +0 -28
  184. package/dist/lint-VXM7UKPY.js +0 -32
  185. package/dist/list-2Y7AM5BW.js +0 -30
  186. package/dist/list-ILJJM7EL.js +0 -48
  187. package/dist/run-EVPJ7SDL.js +0 -51
  188. package/dist/sarif-3PHFVX7D.js +0 -49
  189. /package/dist/{batch-4I5S6DXG.js.map → batch-FXJMZSYY.js.map} +0 -0
  190. /package/dist/{build-OPWHXPXE.js.map → build-5O753VOV.js.map} +0 -0
  191. /package/dist/{calibrate-U4TQAXXD.js.map → calibrate-RF7YSQMK.js.map} +0 -0
  192. /package/dist/{capture-ODSHL2XI.js.map → capture-EKYFKMBB.js.map} +0 -0
  193. /package/dist/{check-4VOOUC5E.js.map → check-4YQUHDAP.js.map} +0 -0
  194. /package/dist/{check-M3ORYGTW.js.map → check-CG4UOXP7.js.map} +0 -0
  195. /package/dist/{check-YFLWJUZC.js.map → check-KI3HYODN.js.map} +0 -0
  196. /package/dist/{check-QJ35SM3K.js.map → check-PWFSARDW.js.map} +0 -0
  197. /package/dist/{check-UXS5LVFJ.js.map → check-VXTYP4XW.js.map} +0 -0
  198. /package/dist/{chunk-SIDHDT4X.js.map → chunk-3G3TETDC.js.map} +0 -0
  199. /package/dist/{chunk-BREAC43H.js.map → chunk-43VLZO4W.js.map} +0 -0
  200. /package/dist/{chunk-HJHDYROD.js.map → chunk-47CLJY6H.js.map} +0 -0
  201. /package/dist/{chunk-RVATMGUL.js.map → chunk-4CBACRVT.js.map} +0 -0
  202. /package/dist/{chunk-UT3CPOGN.js.map → chunk-4YTYUB77.js.map} +0 -0
  203. /package/dist/{chunk-QWGAM3T6.js.map → chunk-5GQ7FF22.js.map} +0 -0
  204. /package/dist/{chunk-KHBOMLPS.js.map → chunk-6RGLJTXE.js.map} +0 -0
  205. /package/dist/{chunk-KLTGAGB6.js.map → chunk-74E5D3DP.js.map} +0 -0
  206. /package/dist/{chunk-5KWMVAZZ.js.map → chunk-7VCMV247.js.map} +0 -0
  207. /package/dist/{chunk-3ZVRGBK6.js.map → chunk-BTFXOKCP.js.map} +0 -0
  208. /package/dist/{chunk-4DFLLMIM.js.map → chunk-C2XLJICN.js.map} +0 -0
  209. /package/dist/{chunk-PX4QZLA2.js.map → chunk-F4CL337L.js.map} +0 -0
  210. /package/dist/{chunk-KSDAAJJX.js.map → chunk-G2SEJDO6.js.map} +0 -0
  211. /package/dist/{chunk-UOZZTK7T.js.map → chunk-JVWJYB7V.js.map} +0 -0
  212. /package/dist/{chunk-PJ5YJS6L.js.map → chunk-KPXZZD66.js.map} +0 -0
  213. /package/dist/{chunk-Z2JBWLRF.js.map → chunk-M2XDU7QB.js.map} +0 -0
  214. /package/dist/{chunk-H4JXCWLM.js.map → chunk-MHVS4LTZ.js.map} +0 -0
  215. /package/dist/{chunk-7ODOTGU4.js.map → chunk-MRQTMVJZ.js.map} +0 -0
  216. /package/dist/{chunk-MMVT3ZP3.js.map → chunk-NFQH77XJ.js.map} +0 -0
  217. /package/dist/{chunk-SHYEKYV4.js.map → chunk-OBZY2ZLQ.js.map} +0 -0
  218. /package/dist/{chunk-QFEEUI2Z.js.map → chunk-OVIWWR5N.js.map} +0 -0
  219. /package/dist/{chunk-THFV3YVO.js.map → chunk-P3OV32LW.js.map} +0 -0
  220. /package/dist/{chunk-NZ7RO6ZD.js.map → chunk-P4HSBQHG.js.map} +0 -0
  221. /package/dist/{chunk-JDQFU2U6.js.map → chunk-QXSPGFT3.js.map} +0 -0
  222. /package/dist/{chunk-BPVO3OED.js.map → chunk-RCP5V6KE.js.map} +0 -0
  223. /package/dist/{chunk-P7MGBTY3.js.map → chunk-RHR64UXW.js.map} +0 -0
  224. /package/dist/{chunk-A43A335C.js.map → chunk-RWGHG66G.js.map} +0 -0
  225. /package/dist/{chunk-HAZQCHO5.js.map → chunk-S4ADL7Y4.js.map} +0 -0
  226. /package/dist/{chunk-DPQAF2VR.js.map → chunk-SDUVH4J2.js.map} +0 -0
  227. /package/dist/{chunk-LSH6HPKB.js.map → chunk-SJS6Z7JV.js.map} +0 -0
  228. /package/dist/{chunk-K4X6GJKG.js.map → chunk-SJUEUKJD.js.map} +0 -0
  229. /package/dist/{chunk-YG4GZXSA.js.map → chunk-TO6N7QVO.js.map} +0 -0
  230. /package/dist/{chunk-OKLRZM2N.js.map → chunk-TXIZMTCQ.js.map} +0 -0
  231. /package/dist/{chunk-LHFO4HF7.js.map → chunk-UGQPOFLW.js.map} +0 -0
  232. /package/dist/{chunk-SJI7C7FY.js.map → chunk-VCJ6ZJDW.js.map} +0 -0
  233. /package/dist/{chunk-EXCYL3S7.js.map → chunk-VH3X7GHC.js.map} +0 -0
  234. /package/dist/{chunk-VDEE7AUI.js.map → chunk-VKIIG6DZ.js.map} +0 -0
  235. /package/dist/{chunk-LURF4MTH.js.map → chunk-VPNKSEQU.js.map} +0 -0
  236. /package/dist/{chunk-PWLUQLFH.js.map → chunk-W4RCGOLJ.js.map} +0 -0
  237. /package/dist/{chunk-GCJPYCOV.js.map → chunk-WOCG36UV.js.map} +0 -0
  238. /package/dist/{chunk-M6RB342K.js.map → chunk-YTW7A62V.js.map} +0 -0
  239. /package/dist/{chunk-4IM6A2WK.js.map → chunk-YWJ453BG.js.map} +0 -0
  240. /package/dist/{chunk-RZ65VMRW.js.map → chunk-ZBN2HEC2.js.map} +0 -0
  241. /package/dist/{chunk-DGN4VVFG.js.map → chunk-ZMEDAKMB.js.map} +0 -0
  242. /package/dist/{chunk-NXP3DG4L.js.map → chunk-ZMGME5NG.js.map} +0 -0
  243. /package/dist/{chunk-XD4Z26HJ.js.map → chunk-ZMWQZF3F.js.map} +0 -0
  244. /package/dist/{chunk-G5I2JTDK.js.map → chunk-ZWVYT2G6.js.map} +0 -0
  245. /package/dist/{cli-DKRISKSR.js.map → cli-6EPISRJR.js.map} +0 -0
  246. /package/dist/{cli-WWNQFDMK.js.map → cli-6LJS32R2.js.map} +0 -0
  247. /package/dist/{cli-C2OATF3N.js.map → cli-ZTYRATHT.js.map} +0 -0
  248. /package/dist/{config-2YJPJ36T.js.map → config-Z3FYLJ6X.js.map} +0 -0
  249. /package/dist/{github-GU23WNCU.js.map → github-GW6UZTRR.js.map} +0 -0
  250. /package/dist/{github-RPHQGICU.js.map → github-IT66VVCM.js.map} +0 -0
  251. /package/dist/{github-VKUOQE77.js.map → github-UJTQPG6S.js.map} +0 -0
  252. /package/dist/{json-P4EDSVIC.js.map → json-KKNQHTAA.js.map} +0 -0
  253. /package/dist/{json-YIZON5LE.js.map → json-X4XGVPXV.js.map} +0 -0
  254. /package/dist/{lint-VXM7UKPY.js.map → lint-L7QTMCCV.js.map} +0 -0
  255. /package/dist/{list-2Y7AM5BW.js.map → list-R34MHZWK.js.map} +0 -0
  256. /package/dist/{list-ILJJM7EL.js.map → list-S6LJENZ3.js.map} +0 -0
  257. /package/dist/{list-UARFGS7C.js.map → list-URXKGZ5I.js.map} +0 -0
  258. /package/dist/{page-JADAILE3.js.map → page-2H44PTPE.js.map} +0 -0
  259. /package/dist/{prepare-B24HTUCX.js.map → prepare-ND2INKAJ.js.map} +0 -0
  260. /package/dist/{pretty-5V3PWJ6L.js.map → pretty-54GDW63J.js.map} +0 -0
  261. /package/dist/{pretty-NHNYY7CP.js.map → pretty-BW6SLRBO.js.map} +0 -0
  262. /package/dist/{pretty-XAMSAKAR.js.map → pretty-ZVAM3XV6.js.map} +0 -0
  263. /package/dist/{reporters-HTJKW7NG.js.map → reporters-6P74QNVX.js.map} +0 -0
  264. /package/dist/{reporters-ULSSBAAG.js.map → reporters-LON6K3EN.js.map} +0 -0
  265. /package/dist/{run-EVPJ7SDL.js.map → run-KLO35LDY.js.map} +0 -0
  266. /package/dist/{sarif-3PHFVX7D.js.map → sarif-2HOXOFAZ.js.map} +0 -0
  267. /package/dist/{sarif-LBODGUNE.js.map → sarif-DM5XJGBX.js.map} +0 -0
  268. /package/dist/{sarif-SOA76ESJ.js.map → sarif-WXGSULXG.js.map} +0 -0
  269. /package/dist/{strategy-XI7QTY7T.js.map → strategy-FOZDCVLS.js.map} +0 -0
  270. /package/dist/{validate-X257AMWS.js.map → validate-LSB6TBY6.js.map} +0 -0
@@ -1,12 +1,24 @@
1
1
  #!/usr/bin/env node
2
2
  import {
3
3
  LintError
4
- } from "./chunk-TI4DA6DF.js";
4
+ } from "./chunk-OPF3NOKF.js";
5
+ import {
6
+ VARIABLE_REFERENCE,
7
+ includes,
8
+ lookupVariable,
9
+ parseConditionExpression,
10
+ parseConditionTags,
11
+ resolveText,
12
+ resolveVariable
13
+ } from "./chunk-HMJZHUCJ.js";
5
14
  import {
6
15
  extractFrontmatter,
7
16
  extractorForExtension,
8
- locateFrontmatter
9
- } from "./chunk-GXC7SDLO.js";
17
+ isFlare,
18
+ isXhtml,
19
+ locateFrontmatter,
20
+ parseXhtml
21
+ } from "./chunk-IHW7N3A6.js";
10
22
  import {
11
23
  errorMessage
12
24
  } from "./chunk-G3T47CFV.js";
@@ -292,6 +304,9 @@ function sectionize(fragments, docEnd) {
292
304
  closeTo(0, docEnd);
293
305
  return roots;
294
306
  }
307
+ function plainText(nodes) {
308
+ return nodes.map((n) => n.text.replace(/\r\n/g, "\n").trim()).filter((t) => t !== "");
309
+ }
295
310
 
296
311
  // src/lint/parsers/metadata.ts
297
312
  function fencedPosition(content) {
@@ -387,7 +402,165 @@ var mdxParser = {
387
402
  };
388
403
 
389
404
  // src/lint/parsers/html.ts
390
- import { defaultTreeAdapter, parse } from "parse5";
405
+ import { defaultTreeAdapter as defaultTreeAdapter2, parse } from "parse5";
406
+
407
+ // src/lint/parsers/flare.ts
408
+ import { readFileSync } from "node:fs";
409
+ import { basename, dirname, relative, resolve } from "node:path";
410
+ import { defaultTreeAdapter } from "parse5";
411
+ var SNIPPETS = /* @__PURE__ */ new Set(["madcap:snippetblock", "madcap:snippettext"]);
412
+ var MARKERS = /* @__PURE__ */ new Set(["madcap:keyword", "madcap:concept"]);
413
+ var BLOCKS = /* @__PURE__ */ new Set(["p", "div", "h1", "h2", "h3", "h4", "h5", "h6"]);
414
+ function attrOf(el, name) {
415
+ return el.attrs.find((a) => a.name === name)?.value;
416
+ }
417
+ function childElement(parent, tag) {
418
+ for (const child of parent.childNodes) {
419
+ if (defaultTreeAdapter.isElementNode(child) && child.tagName === tag) return child;
420
+ }
421
+ return void 0;
422
+ }
423
+ function expressionOf(text) {
424
+ return text === void 0 || text.trim() === "" ? void 0 : parseConditionExpression(text);
425
+ }
426
+ function snippetVariables(attr) {
427
+ if (attr === void 0) return [];
428
+ return attr.split(",").flatMap((pair) => {
429
+ const colon = pair.indexOf(":");
430
+ const name = pair.slice(0, colon).trim();
431
+ return colon < 0 || name === "" ? [] : [[name, pair.slice(colon + 1)]];
432
+ });
433
+ }
434
+ function resolveFlare(content, label, absPath, run, title) {
435
+ const doc = parseXhtml(content);
436
+ const project = run.projectFor(absPath);
437
+ if (project === void 0) run.noProjectNotice(label);
438
+ const target = project?.target;
439
+ const flare = project === void 0 ? void 0 : {
440
+ project: project.flprj,
441
+ ...target === void 0 ? {} : { target: { name: target.name, from: project.targetFrom ?? "the only target" } }
442
+ };
443
+ const root = childElement(doc, "html");
444
+ const rootAttr = (name) => root === void 0 ? void 0 : attrOf(root, name);
445
+ if (flare !== void 0 && !includes(target?.expression, parseConditionTags(rootAttr("madcap:conditions")))) {
446
+ return { doc, flare: { ...flare, excluded: true } };
447
+ }
448
+ const snippetDefault = project === void 0 ? void 0 : expressionOf(rootAttr("madcap:conditiontagexpression"));
449
+ resolveIn(
450
+ doc,
451
+ {
452
+ file: absPath,
453
+ chain: [],
454
+ filters: [],
455
+ ...snippetDefault === void 0 ? {} : { snippetDefault },
456
+ overrides: new Map(target?.variables ?? [])
457
+ },
458
+ { label, absPath, run, project, title }
459
+ );
460
+ return { doc, ...flare === void 0 ? {} : { flare } };
461
+ }
462
+ function flareLinkTarget(href, project) {
463
+ if (!href.includes("[%=")) return href;
464
+ const resolved = project === void 0 ? href : resolveText(project.variables, href, project.target?.variables);
465
+ return resolved.includes("[%=") ? void 0 : resolved;
466
+ }
467
+ function kept(el, scope, project) {
468
+ const tags = parseConditionTags(attrOf(el, "madcap:conditions"));
469
+ if (tags.length === 0) return true;
470
+ return includes(project.target?.expression, tags) && scope.filters.every((f) => includes(f, tags));
471
+ }
472
+ function valueOf(name, scope, topic, project) {
473
+ if (name === "System.Title") return topic.title;
474
+ if (name === "System.SourceFile") return basename(topic.absPath);
475
+ const value = resolveVariable(project.variables, name, scope.overrides);
476
+ if (value !== void 0) return value;
477
+ if (!name.startsWith("System.") && lookupVariable(project.variables, name) === void 0) {
478
+ topic.run.warnUndefinedVariable(topic.label, name, project);
479
+ }
480
+ return void 0;
481
+ }
482
+ function resolveIn(parent, scope, topic) {
483
+ const { project } = topic;
484
+ for (const child of [...parent.childNodes]) {
485
+ if (defaultTreeAdapter.isTextNode(child)) {
486
+ if (project !== void 0 && child.value.includes("[%=")) {
487
+ child.value = child.value.replace(
488
+ VARIABLE_REFERENCE,
489
+ (reference, raw) => valueOf(raw.trim(), scope, topic, project) ?? reference
490
+ );
491
+ }
492
+ continue;
493
+ }
494
+ if (!defaultTreeAdapter.isElementNode(child)) continue;
495
+ const tag = child.tagName;
496
+ if (project !== void 0 && !kept(child, scope, project) || MARKERS.has(tag)) {
497
+ defaultTreeAdapter.detachNode(child);
498
+ continue;
499
+ }
500
+ if (tag === "madcap:variable" && project !== void 0) {
501
+ const name = (attrOf(child, "name") ?? "").trim();
502
+ const value = valueOf(name, scope, topic, project) ?? `[%=${name}%]`;
503
+ defaultTreeAdapter.insertTextBefore(parent, value, child);
504
+ defaultTreeAdapter.detachNode(child);
505
+ continue;
506
+ }
507
+ const src = SNIPPETS.has(tag) ? attrOf(child, "src") : void 0;
508
+ if (src !== void 0) {
509
+ expand(parent, child, src, scope, topic);
510
+ continue;
511
+ }
512
+ resolveIn(child, scope, topic);
513
+ }
514
+ }
515
+ function stamp(parent, location) {
516
+ for (const child of parent.childNodes) {
517
+ child.sourceCodeLocation = location;
518
+ if ("childNodes" in child) stamp(child, location);
519
+ }
520
+ }
521
+ function expand(parent, ref, src, scope, topic) {
522
+ const abs = resolve(dirname(scope.file), src);
523
+ if (scope.chain.includes(abs)) {
524
+ const base = topic.project?.root ?? dirname(topic.absPath);
525
+ const show = (file) => relative(base, file).replace(/\\/g, "/");
526
+ topic.run.warnSnippetCycle(topic.label, show(abs), [...scope.chain, abs].map(show));
527
+ return;
528
+ }
529
+ let text;
530
+ try {
531
+ text = readFileSync(abs, "utf8");
532
+ } catch {
533
+ return;
534
+ }
535
+ const html = childElement(parseXhtml(text), "html");
536
+ const body = html === void 0 ? void 0 : childElement(html, "body");
537
+ if (body === void 0) return;
538
+ stamp(body, ref.sourceCodeLocation);
539
+ const expression = topic.project === void 0 ? void 0 : expressionOf(attrOf(ref, "madcap:conditiontagexpression")) ?? scope.snippetDefault;
540
+ resolveIn(
541
+ body,
542
+ {
543
+ file: abs,
544
+ chain: [...scope.chain, abs],
545
+ filters: expression === void 0 ? scope.filters : [...scope.filters, expression],
546
+ overrides: new Map([...scope.overrides, ...snippetVariables(attrOf(ref, "madcap:snippetvariables"))]),
547
+ // The topic root's expression is every reference's fallback, nested
548
+ // ones included, so it travels with the scope.
549
+ ...scope.snippetDefault === void 0 ? {} : { snippetDefault: scope.snippetDefault }
550
+ },
551
+ topic
552
+ );
553
+ const nodes = ref.tagName === "madcap:snippettext" ? body.childNodes.flatMap(
554
+ (n) => defaultTreeAdapter.isElementNode(n) && BLOCKS.has(n.tagName) ? [...n.childNodes] : defaultTreeAdapter.isTextNode(n) && n.value.trim() === "" ? [] : [n]
555
+ ) : [...body.childNodes];
556
+ for (const node of nodes) {
557
+ defaultTreeAdapter.detachNode(node);
558
+ defaultTreeAdapter.insertBefore(parent, node, ref);
559
+ }
560
+ defaultTreeAdapter.detachNode(ref);
561
+ }
562
+
563
+ // src/lint/parsers/html.ts
391
564
  var HEADING_LEVELS = /* @__PURE__ */ new Map([
392
565
  ["h1", 1],
393
566
  ["h2", 2],
@@ -423,11 +596,11 @@ var ZERO2 = {
423
596
  function tagOf(el) {
424
597
  return el.tagName.toLowerCase();
425
598
  }
426
- function attrOf(el, name) {
599
+ function attrOf2(el, name) {
427
600
  return el.attrs.find((a) => a.name === name)?.value;
428
601
  }
429
602
  function isAdmonitionSource(el, tag) {
430
- return tag === "aside" || attrOf(el, "role") === "note";
603
+ return tag === "aside" || attrOf2(el, "role") === "note";
431
604
  }
432
605
  function roleOf(el, tag) {
433
606
  if (HEADING_LEVELS.has(tag)) return "heading";
@@ -445,11 +618,11 @@ function positionOf2(node) {
445
618
  };
446
619
  }
447
620
  function rawText(node, skipHref) {
448
- if (defaultTreeAdapter.isTextNode(node)) return node.value;
449
- if (!defaultTreeAdapter.isElementNode(node)) return "";
621
+ if (defaultTreeAdapter2.isTextNode(node)) return node.value;
622
+ if (!defaultTreeAdapter2.isElementNode(node)) return "";
450
623
  const tag = tagOf(node);
451
624
  if (NON_TEXT_TAGS.has(tag)) return "";
452
- if (skipHref !== void 0 && tag === "a" && attrOf(node, "href") === skipHref) return "";
625
+ if (skipHref !== void 0 && tag === "a" && attrOf2(node, "href") === skipHref) return "";
453
626
  let out = "";
454
627
  for (const child of node.childNodes) out += rawText(child, skipHref);
455
628
  return out;
@@ -458,7 +631,7 @@ function flatText(node, skipHref) {
458
631
  return rawText(node, skipHref).replace(/\s+/g, " ").trim();
459
632
  }
460
633
  function langOf(el) {
461
- const className = attrOf(el, "class");
634
+ const className = attrOf2(el, "class");
462
635
  if (!className) return void 0;
463
636
  for (const token of className.split(/\s+/)) {
464
637
  if (token.startsWith("language-") && token.length > "language-".length) {
@@ -468,31 +641,31 @@ function langOf(el) {
468
641
  return void 0;
469
642
  }
470
643
  function variantOf(el) {
471
- const className = attrOf(el, "class");
644
+ const className = attrOf2(el, "class");
472
645
  if (className) {
473
646
  for (const token of className.split(/\s+/)) {
474
647
  if (ADMONITION_VARIANTS.has(token)) return token;
475
648
  }
476
649
  }
477
- if (attrOf(el, "role") === "note") return "note";
650
+ if (attrOf2(el, "role") === "note") return "note";
478
651
  return void 0;
479
652
  }
480
653
  function firstElementChild(el, tag) {
481
654
  for (const child of el.childNodes) {
482
- if (defaultTreeAdapter.isElementNode(child) && tagOf(child) === tag) return child;
655
+ if (defaultTreeAdapter2.isElementNode(child) && tagOf(child) === tag) return child;
483
656
  }
484
657
  return void 0;
485
658
  }
486
659
  function elementChildren(el) {
487
660
  const out = [];
488
661
  for (const child of el.childNodes) {
489
- if (defaultTreeAdapter.isElementNode(child)) out.push(child);
662
+ if (defaultTreeAdapter2.isElementNode(child)) out.push(child);
490
663
  }
491
664
  return out;
492
665
  }
493
666
  function findImage(el) {
494
667
  for (const child of el.childNodes) {
495
- if (!defaultTreeAdapter.isElementNode(child)) continue;
668
+ if (!defaultTreeAdapter2.isElementNode(child)) continue;
496
669
  if (tagOf(child) === "img") return child;
497
670
  const nested = findImage(child);
498
671
  if (nested) return nested;
@@ -511,13 +684,13 @@ function codeNode(pre) {
511
684
  };
512
685
  }
513
686
  function imageNode(img, position, caption) {
514
- const title = attrOf(img, "title");
687
+ const title = attrOf2(img, "title");
515
688
  return {
516
689
  kind: "image",
517
690
  position,
518
691
  text: caption ?? "",
519
- url: attrOf(img, "src") ?? "",
520
- alt: attrOf(img, "alt") ?? "",
692
+ url: attrOf2(img, "src") ?? "",
693
+ alt: attrOf2(img, "alt") ?? "",
521
694
  ...title ? { title } : {}
522
695
  };
523
696
  }
@@ -631,7 +804,7 @@ function definitionListNode(dl) {
631
804
  function listItems(list) {
632
805
  const items = [];
633
806
  for (const child of list.childNodes) {
634
- if (!defaultTreeAdapter.isElementNode(child)) continue;
807
+ if (!defaultTreeAdapter2.isElementNode(child)) continue;
635
808
  if (tagOf(child) !== "li") continue;
636
809
  items.push({
637
810
  kind: "listItem",
@@ -659,12 +832,12 @@ function childContent2(parent) {
659
832
  out.push({ kind: "paragraph", position: at ?? positionOf2(parent), text: value });
660
833
  };
661
834
  for (const child of parent.childNodes) {
662
- if (defaultTreeAdapter.isTextNode(child)) {
835
+ if (defaultTreeAdapter2.isTextNode(child)) {
663
836
  text += child.value;
664
837
  if (child.value.trim().length > 0) extend(child);
665
838
  continue;
666
839
  }
667
- if (!defaultTreeAdapter.isElementNode(child)) continue;
840
+ if (!defaultTreeAdapter2.isElementNode(child)) continue;
668
841
  const tag = tagOf(child);
669
842
  const role = roleOf(child, tag);
670
843
  if (role === "heading" || role === "opaque") continue;
@@ -720,7 +893,7 @@ function toContentNode2(el, tag) {
720
893
  function contentIn(parent) {
721
894
  const out = [];
722
895
  for (const child of parent.childNodes) {
723
- if (!defaultTreeAdapter.isElementNode(child)) continue;
896
+ if (!defaultTreeAdapter2.isElementNode(child)) continue;
724
897
  const tag = tagOf(child);
725
898
  const role = roleOf(child, tag);
726
899
  if (role === "heading" || role === "opaque") continue;
@@ -735,7 +908,7 @@ function contentIn(parent) {
735
908
  }
736
909
  function walk(parent, out, ids) {
737
910
  for (const child of parent.childNodes) {
738
- if (!defaultTreeAdapter.isElementNode(child)) continue;
911
+ if (!defaultTreeAdapter2.isElementNode(child)) continue;
739
912
  const tag = tagOf(child);
740
913
  const role = roleOf(child, tag);
741
914
  if (role === "heading") {
@@ -771,7 +944,7 @@ var HeadingIds = class {
771
944
  open = [];
772
945
  byHeading = /* @__PURE__ */ new Map();
773
946
  enter(el) {
774
- this.open.push({ id: attrOf(el, "id"), spent: false });
947
+ this.open.push({ id: attrOf2(el, "id"), spent: false });
775
948
  }
776
949
  leave() {
777
950
  this.open.pop();
@@ -780,21 +953,30 @@ var HeadingIds = class {
780
953
  const nearest = this.open.at(-1);
781
954
  const inherited = nearest && !nearest.spent ? nearest.id : void 0;
782
955
  for (const carrier of this.open) carrier.spent = true;
783
- const id = attrOf(heading, "id") ?? inherited;
956
+ const id = attrOf2(heading, "id") ?? inherited;
784
957
  if (id !== void 0) this.byHeading.set(heading, id);
785
958
  return id;
786
959
  }
787
960
  };
788
- function collectLinks(parent, ids, heading, out) {
961
+ var LINK_ATTRS = /* @__PURE__ */ new Map([
962
+ ["a", "href"],
963
+ ["area", "href"],
964
+ ["madcap:xref", "href"],
965
+ ["madcap:snippetblock", "src"],
966
+ ["madcap:snippettext", "src"]
967
+ ]);
968
+ function collectLinks(parent, ids, heading, out, targetOf) {
789
969
  for (const child of parent.childNodes) {
790
- if (!defaultTreeAdapter.isElementNode(child)) continue;
970
+ if (!defaultTreeAdapter2.isElementNode(child)) continue;
791
971
  const tag = tagOf(child);
792
- if (tag === "a" || tag === "area") {
793
- const href = attrOf(child, "href");
794
- const permalink = heading !== void 0 && href === `#${heading}`;
795
- if (href !== void 0 && !permalink) out.push({ target: href, position: positionOf2(child) });
972
+ const attr = LINK_ATTRS.get(tag);
973
+ if (attr !== void 0) {
974
+ const href = attrOf2(child, attr);
975
+ const permalink = (tag === "a" || tag === "area") && heading !== void 0 && href === `#${heading}`;
976
+ const target = href === void 0 || permalink ? void 0 : targetOf(href);
977
+ if (target !== void 0) out.push({ target, position: positionOf2(child) });
796
978
  }
797
- collectLinks(child, ids, HEADING_LEVELS.has(tag) ? ids.get(child) : heading, out);
979
+ collectLinks(child, ids, HEADING_LEVELS.has(tag) ? ids.get(child) : heading, out, targetOf);
798
980
  }
799
981
  }
800
982
  function documentEnd2(content) {
@@ -823,29 +1005,54 @@ function origin() {
823
1005
  }
824
1006
  function findHead(doc) {
825
1007
  for (const child of doc.childNodes) {
826
- if (!defaultTreeAdapter.isElementNode(child)) continue;
1008
+ if (!defaultTreeAdapter2.isElementNode(child)) continue;
827
1009
  if (tagOf(child) === "html") return firstElementChild(child, "head");
828
1010
  }
829
1011
  return void 0;
830
1012
  }
831
- function parseHtml(content, filePath) {
832
- const doc = parse(content, { sourceCodeLocationInfo: true });
833
- const fragments = [];
1013
+ function derivedFlareTitle(doc) {
1014
+ const head = findHead(doc);
1015
+ const title = head ? firstElementChild(head, "title") : void 0;
1016
+ return title === void 0 || flatText(title) === "";
1017
+ }
1018
+ function parseHtml(content, filePath, context) {
1019
+ const doc = isXhtml(content) ? parseXhtml(content) : parse(content, { sourceCodeLocationInfo: true });
1020
+ let fragments = [];
834
1021
  const ids = new HeadingIds();
835
1022
  walk(doc, fragments, ids);
836
1023
  const links = [];
837
- collectLinks(doc, ids.byHeading, void 0, links);
1024
+ const flare = isFlare(content);
1025
+ const project = flare ? context?.flare?.projectFor(context.absPath) : void 0;
1026
+ collectLinks(
1027
+ doc,
1028
+ ids.byHeading,
1029
+ void 0,
1030
+ links,
1031
+ (href) => flare ? flareLinkTarget(href, project) : href
1032
+ );
838
1033
  const { frontmatter, position } = metadataOf(content, filePath, doc);
1034
+ const view = context?.flare !== void 0 && flare ? resolveFlare(
1035
+ content,
1036
+ filePath,
1037
+ context.absPath,
1038
+ context.flare,
1039
+ typeof frontmatter?.title === "string" ? frontmatter.title : void 0
1040
+ ) : void 0;
1041
+ if (view !== void 0) {
1042
+ fragments = [];
1043
+ walk(view.doc, fragments, new HeadingIds());
1044
+ }
839
1045
  return {
840
1046
  format: "html",
841
1047
  filePath,
842
1048
  frontmatter,
843
1049
  frontmatterPosition: position,
844
- sections: sectionize(
845
- withMetadataTitle(fragments, frontmatter, position),
1050
+ sections: view?.flare?.excluded ? [] : sectionize(
1051
+ withMetadataTitle(fragments, flare && derivedFlareTitle(doc) ? null : frontmatter, position),
846
1052
  documentEnd2(content)
847
1053
  ),
848
- links
1054
+ links,
1055
+ ...view?.flare === void 0 ? {} : { flare: view.flare }
849
1056
  };
850
1057
  }
851
1058
  var htmlParser = {
@@ -865,7 +1072,7 @@ var htmlParser = {
865
1072
  "definitionList",
866
1073
  "definitionItem"
867
1074
  ],
868
- extensions: [".html", ".htm"],
1075
+ extensions: [".html", ".htm", ".flsnp"],
869
1076
  parse: parseHtml
870
1077
  };
871
1078
 
@@ -1644,7 +1851,7 @@ function collectLinks2(src, from, code) {
1644
1851
  }
1645
1852
  }
1646
1853
  }
1647
- const resolve = (name) => {
1854
+ const resolve2 = (name) => {
1648
1855
  let uri = targets.get(refName(name));
1649
1856
  for (let hops = 0; uri?.endsWith("_") && hops < targets.size; hops++) {
1650
1857
  uri = targets.get(refName(uri.slice(0, -1)));
@@ -1671,10 +1878,10 @@ function collectLinks2(src, from, code) {
1671
1878
  take(ROLE, () => void 0);
1672
1879
  take(EMBEDDED, (m) => {
1673
1880
  const uri = (m[2] ?? "").replace(/\s+/g, "");
1674
- return uri.endsWith("_") ? resolve(uri.slice(0, -1)) : uri;
1881
+ return uri.endsWith("_") ? resolve2(uri.slice(0, -1)) : uri;
1675
1882
  });
1676
- take(PHRASE_REF, (m) => resolve(m[1] ?? ""));
1677
- take(SIMPLE_REF, (m) => resolve(m[1] ?? ""));
1883
+ take(PHRASE_REF, (m) => resolve2(m[1] ?? ""));
1884
+ take(SIMPLE_REF, (m) => resolve2(m[1] ?? ""));
1678
1885
  hits.sort((a, b) => a.column - b.column);
1679
1886
  for (const hit of hits) {
1680
1887
  links.push({
@@ -1977,10 +2184,36 @@ var DITAMAP = {
1977
2184
  links: [{ elements: MAP_ENTRIES, attribute: "href" }],
1978
2185
  ditaHrefs: true
1979
2186
  };
2187
+ var FLARE_TOC = {
2188
+ name: "flare-toc",
2189
+ label: "Flare TOC",
2190
+ namespaces: [],
2191
+ roots: ["CatapultToc"],
2192
+ sections: ["TocEntry"],
2193
+ titles: [],
2194
+ // Read through `getAttribute`, so the case is Flare's own.
2195
+ titleAttributes: ["Title"],
2196
+ untitledTitles: /^\s*\[%=\s*System\.LinkedTitle\s*%\]\s*$/i,
2197
+ allowNoSections: true,
2198
+ keep: (el, context) => {
2199
+ const target = context?.flare?.projectFor(context.absPath)?.target;
2200
+ return includes(target?.expression, parseConditionTags(el.getAttribute("conditions")));
2201
+ },
2202
+ titleWrappers: [],
2203
+ transparent: ["CatapultToc"],
2204
+ paragraphs: [],
2205
+ code: [],
2206
+ codeLangAttributes: [],
2207
+ unorderedLists: [],
2208
+ orderedLists: [],
2209
+ listItems: [],
2210
+ links: [{ elements: ["TocEntry"], attribute: "Link" }]
2211
+ };
1980
2212
  var XML_VOCABULARIES = [
1981
2213
  DITA,
1982
2214
  DOCBOOK,
1983
- DITAMAP
2215
+ DITAMAP,
2216
+ FLARE_TOC
1984
2217
  ];
1985
2218
  var lower = (names = []) => new Set(names.map((n) => n.toLowerCase()));
1986
2219
  function compile(vocab) {
@@ -2201,12 +2434,14 @@ function nextInDocumentOrder(el) {
2201
2434
  }
2202
2435
  }
2203
2436
  var Flattener = class {
2204
- constructor(c, map) {
2437
+ constructor(c, map, context) {
2205
2438
  this.c = c;
2206
2439
  this.map = map;
2440
+ this.context = context;
2207
2441
  }
2208
2442
  c;
2209
2443
  map;
2444
+ context;
2210
2445
  fragments = [];
2211
2446
  span(el) {
2212
2447
  const start = this.map.point(el) ?? { ...this.map.docEnd };
@@ -2249,7 +2484,9 @@ var Flattener = class {
2249
2484
  }
2250
2485
  for (const attr of this.c.vocab.titleAttributes ?? []) {
2251
2486
  const value = el.getAttribute(attr);
2252
- if (value) return { title: flatten(value), end: this.startTagEnd(el) };
2487
+ if (value && !this.c.vocab.untitledTitles?.test(value)) {
2488
+ return { title: flatten(value), end: this.startTagEnd(el) };
2489
+ }
2253
2490
  }
2254
2491
  if (this.c.vocab.untitledSections) {
2255
2492
  return { title: "", end: this.startTagEnd(el) };
@@ -2258,6 +2495,7 @@ var Flattener = class {
2258
2495
  }
2259
2496
  /** Walk one element: section, wrapper, content, or skipped subtree. */
2260
2497
  visit(el, level) {
2498
+ if (this.c.vocab.keep && !this.c.vocab.keep(el, this.context)) return;
2261
2499
  const name = localName(el);
2262
2500
  if (this.c.sections.has(name)) {
2263
2501
  const heading = this.headingOf(el);
@@ -2601,7 +2839,7 @@ function readMetadata2(content, filePath) {
2601
2839
  );
2602
2840
  }
2603
2841
  }
2604
- function parseXml(content, filePath, vocabularies = XML_VOCABULARIES) {
2842
+ function parseXml(content, filePath, vocabularies = XML_VOCABULARIES, context) {
2605
2843
  const map = new SourceMap(content);
2606
2844
  const root = parseDocument(map.text, filePath);
2607
2845
  const compiled = vocabularies.map(compile);
@@ -2612,13 +2850,13 @@ function parseXml(content, filePath, vocabularies = XML_VOCABULARIES) {
2612
2850
  const names = compiled.map((c) => c.vocab.label).join(", ");
2613
2851
  if (score <= 0) {
2614
2852
  throw new LintError(
2615
- `${filePath}: no known XML vocabulary matched <${localName(root)}>. manni lint understands ${names}; add an entry to XML_VOCABULARIES in src/parsers/xml.ts to describe another schema.`
2853
+ `${filePath}: no known XML vocabulary matched <${localName(root)}>. manni lint understands ${names}.`
2616
2854
  );
2617
2855
  }
2618
- const flattener = new Flattener(best, map);
2856
+ const flattener = new Flattener(best, map, context);
2619
2857
  flattener.visit(root, 0);
2620
2858
  const fragments = flattener.fragments;
2621
- if (!fragments.some((b) => b.type === "heading")) {
2859
+ if (!best.vocab.allowNoSections && !fragments.some((b) => b.type === "heading")) {
2622
2860
  throw new LintError(
2623
2861
  `${filePath}: read as ${best.vocab.label}, but no titled section was found. A ${best.vocab.label} section is one of <${best.vocab.sections.join(">, <")}> carrying a <${best.vocab.titles.join(">/<")}>; without one the document has no structure to check.`
2624
2862
  );
@@ -2665,17 +2903,20 @@ var xmlParser = {
2665
2903
  * the same thing a section tree is: `<topicref>` nesting is section nesting.
2666
2904
  * A docset of maps with no map template matches nothing and is skipped as
2667
2905
  * `no-template`, exactly as an untyped Markdown page is.
2906
+ *
2907
+ * `.fltoc` and `.flbrs` are a MadCap Flare TOC and browse sequence, the same
2908
+ * tree of navigation entries under another name (proposal 0125).
2668
2909
  */
2669
- extensions: [".xml", ".dita", ".ditamap"],
2910
+ extensions: [".xml", ".dita", ".ditamap", ".fltoc", ".flbrs"],
2670
2911
  /**
2671
- * A directory walk collects `.dita` and `.ditamap` but not `.xml`. Both of
2672
- * those are documentation by definition; `.xml` is a container a repository
2912
+ * A directory walk collects `.dita`, `.ditamap`, `.fltoc` and `.flbrs` but
2913
+ * not `.xml`. All four are documentation by definition; `.xml` is a container a repository
2673
2914
  * uses for build files, sitemaps, and project metadata, none of which match a
2674
2915
  * documentation vocabulary. Sweeping those in made one `pom.xml` fail an
2675
2916
  * otherwise clean tree. Naming an `.xml` file explicitly still parses it.
2676
2917
  */
2677
- walkExtensions: [".dita", ".ditamap"],
2678
- parse: (content, filePath) => parseXml(content, filePath)
2918
+ walkExtensions: [".dita", ".ditamap", ".fltoc", ".flbrs"],
2919
+ parse: (content, filePath, context) => parseXml(content, filePath, XML_VOCABULARIES, context)
2679
2920
  };
2680
2921
 
2681
2922
  // src/lint/parsers/asciidoc.ts
@@ -3238,10 +3479,11 @@ function listFormats() {
3238
3479
  }
3239
3480
 
3240
3481
  export {
3482
+ plainText,
3241
3483
  parserForExtension,
3242
3484
  parserByName,
3243
3485
  supportedExtensions,
3244
3486
  unsupportedFormatMessage,
3245
3487
  listFormats
3246
3488
  };
3247
- //# sourceMappingURL=chunk-QNXNA2BR.js.map
3489
+ //# sourceMappingURL=chunk-35J3BP37.js.map