@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
@@ -5,13 +5,13 @@ import {
5
5
  matchesFileGlob,
6
6
  readConfigFile,
7
7
  selectCollections
8
- } from "./chunk-JF4BC7ZD.js";
8
+ } from "./chunk-CDX4QK6O.js";
9
9
  import {
10
10
  warn
11
11
  } from "./chunk-HX44GB4Z.js";
12
12
  import {
13
13
  package_default
14
- } from "./chunk-NTQ73IQL.js";
14
+ } from "./chunk-D7V5MUXP.js";
15
15
  import {
16
16
  programName
17
17
  } from "./chunk-OWBRDNRZ.js";
@@ -844,18 +844,26 @@ var mdxExtractor = {
844
844
  apply: (content, patch, options) => applyFrontmatter(content, patch, options)
845
845
  };
846
846
 
847
- // src/meta/extractors/asciidoc.ts
847
+ // src/meta/extractors/scalar-value.ts
848
848
  import { parse as parseYamlScalar } from "yaml";
849
- var TITLE = /^=\s+(.+?)\s*$/;
850
- var UNSET = /^:(?:!([^:\s]+)|([^:\s]+)!):\s*$/;
851
- var SET = /^:([^:\s!][^:\s]*):(?:\s+(.*\S))?\s*$/;
852
849
  function typeValue(raw) {
850
+ if (raw === "") return "";
851
+ let value;
853
852
  try {
854
- return parseYamlScalar(raw);
853
+ value = parseYamlScalar(raw);
855
854
  } catch {
856
855
  return raw;
857
856
  }
857
+ if (typeof value === "object" && value !== null && !/^[[{]/.test(raw.trim())) {
858
+ return raw;
859
+ }
860
+ return value;
858
861
  }
862
+
863
+ // src/meta/extractors/asciidoc.ts
864
+ var TITLE = /^=\s+(.+?)\s*$/;
865
+ var UNSET = /^:(?:!([^:\s]+)|([^:\s]+)!):\s*$/;
866
+ var SET = /^:([^:\s!][^:\s]*):(?:\s+(.*\S))?\s*$/;
859
867
  function extractHeader(content, lineOffset = 0) {
860
868
  const body = content.charCodeAt(0) === 65279 ? content.slice(1) : content;
861
869
  const lines = body.split(/\r?\n/);
@@ -912,16 +920,8 @@ var asciidocExtractor = {
912
920
  };
913
921
 
914
922
  // src/meta/extractors/rst.ts
915
- import { parse as parseYamlScalar2 } from "yaml";
916
923
  var FIELD = /^:([^:]+):(?:\s+(.*\S))?\s*$/;
917
924
  var ADORN = /^([=\-~:.'"*+#_^<>])\1+$/;
918
- function typeValue2(raw) {
919
- try {
920
- return parseYamlScalar2(raw);
921
- } catch {
922
- return raw;
923
- }
924
- }
925
925
  function adornment(line) {
926
926
  const m = ADORN.exec(line);
927
927
  return m && m[1] != null ? { char: m[1], length: line.length } : null;
@@ -967,7 +967,7 @@ function extractDocinfo(content) {
967
967
  const field = FIELD.exec(line);
968
968
  if (!field || field[1] == null) break;
969
969
  const name = field[1].trim();
970
- const value = field[2] === void 0 ? true : typeValue2(field[2]);
970
+ const value = field[2] === void 0 ? true : typeValue(field[2]);
971
971
  if (blockStart === -1) blockStart = i + 1;
972
972
  data[name] = value;
973
973
  map.set(`/${escapePointerSegment(name)}`, i + 1);
@@ -998,7 +998,6 @@ var rstExtractor = {
998
998
 
999
999
  // src/meta/extractors/xml-read.ts
1000
1000
  import { DOMParser } from "@xmldom/xmldom";
1001
- import { parse as parseYamlScalar3 } from "yaml";
1002
1001
 
1003
1002
  // src/meta/extractors/element-key.ts
1004
1003
  function liftKey(parentName, elementName2) {
@@ -1290,14 +1289,6 @@ function otherMetaEntries(container) {
1290
1289
  }
1291
1290
 
1292
1291
  // src/meta/extractors/xml-read.ts
1293
- function typeValue3(raw) {
1294
- if (raw === "") return "";
1295
- try {
1296
- return parseYamlScalar3(raw);
1297
- } catch {
1298
- return raw;
1299
- }
1300
- }
1301
1292
  function isMetadataAttribute(name) {
1302
1293
  return name !== "xmlns" && !name.startsWith("xmlns:");
1303
1294
  }
@@ -1351,9 +1342,9 @@ function liftableChildren(root) {
1351
1342
  const group = out.get(key);
1352
1343
  if (group) {
1353
1344
  group.els.push(child);
1354
- group.values.push(typeValue3(text));
1345
+ group.values.push(typeValue(text));
1355
1346
  } else {
1356
- out.set(key, { els: [child], values: [typeValue3(text)] });
1347
+ out.set(key, { els: [child], values: [typeValue(text)] });
1357
1348
  }
1358
1349
  }
1359
1350
  return out;
@@ -1368,16 +1359,28 @@ function matchElementPath(root, segments) {
1368
1359
  }
1369
1360
  return current;
1370
1361
  }
1371
- function readXml(content, filePath, options) {
1372
- const body = content.charCodeAt(0) === 65279 ? content.slice(1) : content;
1373
- const errors = [];
1374
- const doc = new DOMParser({
1362
+ function parseXml(text, errors) {
1363
+ return new DOMParser({
1375
1364
  onError: (level, msg) => {
1376
1365
  if (level !== "error" && level !== "fatalError") return;
1377
1366
  if (/entity not found/i.test(msg)) return;
1378
1367
  errors.push(msg);
1379
1368
  }
1380
- }).parseFromString(body, "text/xml");
1369
+ }).parseFromString(text, "text/xml");
1370
+ }
1371
+ function xmlParseError(text) {
1372
+ const errors = [];
1373
+ try {
1374
+ parseXml(text, errors);
1375
+ } catch (error) {
1376
+ errors.push(error instanceof Error ? error.message : String(error));
1377
+ }
1378
+ return errors[0];
1379
+ }
1380
+ function readXml(content, filePath, options) {
1381
+ const body = content.charCodeAt(0) === 65279 ? content.slice(1) : content;
1382
+ const errors = [];
1383
+ const doc = parseXml(body, errors);
1381
1384
  if (errors.length > 0) {
1382
1385
  throw new Error(`Invalid XML: ${errors[0] ?? "parse error"}`);
1383
1386
  }
@@ -1407,7 +1410,7 @@ function readXml(content, filePath, options) {
1407
1410
  if (!attr) continue;
1408
1411
  const name = attr.name;
1409
1412
  if (!isMetadataAttribute(name)) continue;
1410
- data[name] = typeValue3(attr.value);
1413
+ data[name] = typeValue(attr.value);
1411
1414
  sources.set(name, { kind: "attr", name });
1412
1415
  const pointer = `/${escapePointerSegment(name)}`;
1413
1416
  lineMap.set(pointer, attr.lineNumber ?? rootLine);
@@ -1431,7 +1434,7 @@ function readXml(content, filePath, options) {
1431
1434
  const found = pairValues(
1432
1435
  els,
1433
1436
  (el) => spec.attr ? el.getAttribute(spec.attr) : elementText(el),
1434
- typeValue3
1437
+ typeValue
1435
1438
  );
1436
1439
  if (found.values.length === 0) continue;
1437
1440
  data[key] = spec.repeatable ? found.values : found.values[0];
@@ -1448,7 +1451,7 @@ function readXml(content, filePath, options) {
1448
1451
  const { container } = metadataContainers(root, dita);
1449
1452
  if (container) {
1450
1453
  for (const { key, value, el } of otherMetaEntries(container)) {
1451
- data[key] = typeValue3(value);
1454
+ data[key] = typeValue(value);
1452
1455
  sources.set(key, { kind: "othermeta", el });
1453
1456
  const pointer = `/${escapePointerSegment(key)}`;
1454
1457
  if (el.lineNumber != null) lineMap.set(pointer, el.lineNumber);
@@ -1463,7 +1466,7 @@ function readXml(content, filePath, options) {
1463
1466
  const found = pairValues(
1464
1467
  matched,
1465
1468
  (el) => spec.attr ? el.getAttribute(spec.attr) : elementText(el, true),
1466
- typeValue3
1469
+ typeValue
1467
1470
  );
1468
1471
  if (found.values.length === 0) continue;
1469
1472
  data[spec.key] = found.values;
@@ -1582,7 +1585,7 @@ function elementTextEdit(content, starts, el, key, emitted) {
1582
1585
  }
1583
1586
  return { start: open.end, end: close, text: escapeText(emitted) };
1584
1587
  }
1585
- function elementAttrEdit(content, starts, el, attrName, key, emitted, escape) {
1588
+ function elementAttrEdit(content, starts, el, attrName, key, emitted, escape2) {
1586
1589
  const attrs = el.attributes;
1587
1590
  for (let i = 0; i < attrs.length; i++) {
1588
1591
  const attr = attrs.item(i);
@@ -1596,7 +1599,7 @@ function elementAttrEdit(content, starts, el, attrName, key, emitted, escape) {
1596
1599
  return {
1597
1600
  start: span.start,
1598
1601
  end: span.end,
1599
- text: escape(emitted, span.quote)
1602
+ text: escape2(emitted, span.quote)
1600
1603
  };
1601
1604
  }
1602
1605
  throw new DocmetaError(
@@ -1611,7 +1614,7 @@ function elementOffset(starts, el, key) {
1611
1614
  }
1612
1615
  return offsetAt(starts, el.lineNumber, el.columnNumber);
1613
1616
  }
1614
- function elementEdits(content, starts, source, key, value, emit, escape) {
1617
+ function elementEdits(content, starts, source, key, value, emit, escape2) {
1615
1618
  if (source.kind === "othermeta") {
1616
1619
  return [
1617
1620
  elementAttrEdit(
@@ -1621,7 +1624,7 @@ function elementEdits(content, starts, source, key, value, emit, escape) {
1621
1624
  "content",
1622
1625
  key,
1623
1626
  emit(key, value),
1624
- escape
1627
+ escape2
1625
1628
  )
1626
1629
  ];
1627
1630
  }
@@ -1634,13 +1637,13 @@ function elementEdits(content, starts, source, key, value, emit, escape) {
1634
1637
  source.name,
1635
1638
  key,
1636
1639
  emit(key, values[i]),
1637
- escape
1640
+ escape2
1638
1641
  ) : elementTextEdit(content, starts, el, key, emit(key, values[i]))
1639
1642
  );
1640
1643
  }
1641
1644
 
1642
1645
  // src/meta/extractors/dita-write.ts
1643
- function ditaEdits(content, read, shape, patch, emit, escape) {
1646
+ function ditaEdits(content, read, shape, patch, emit, escape2) {
1644
1647
  const root = read.root;
1645
1648
  if (!root) {
1646
1649
  throw new DocmetaError("This DITA document has no root element.");
@@ -1653,14 +1656,14 @@ function ditaEdits(content, read, shape, patch, emit, escape) {
1653
1656
  const source = read.sources.get(key);
1654
1657
  if (source?.kind === "attr") {
1655
1658
  edits.push(
1656
- attributeEdit(content, starts, root, source.name, emit(key, raw), escape)
1659
+ attributeEdit(content, starts, root, source.name, emit(key, raw), escape2)
1657
1660
  );
1658
1661
  } else if (source?.kind === "othermeta") {
1659
1662
  edits.push(
1660
- otherMetaEdit(content, starts, source.el, key, emit(key, raw), escape)
1663
+ otherMetaEdit(content, starts, source.el, key, emit(key, raw), escape2)
1661
1664
  );
1662
1665
  } else if (source?.kind === "element-text" || source?.kind === "element-attr") {
1663
- edits.push(...elementEdits(content, starts, source, key, raw, emit, escape));
1666
+ edits.push(...elementEdits(content, starts, source, key, raw, emit, escape2));
1664
1667
  } else {
1665
1668
  const dot = key.indexOf(".");
1666
1669
  const container = dot === -1 ? "" : key.slice(0, dot);
@@ -1679,7 +1682,7 @@ function ditaEdits(content, read, shape, patch, emit, escape) {
1679
1682
  }
1680
1683
  }
1681
1684
  if (fresh.length > 0) {
1682
- edits.push(insertEdit(content, starts, root, shape, fresh, escape));
1685
+ edits.push(insertEdit(content, starts, root, shape, fresh, escape2));
1683
1686
  }
1684
1687
  if (freshElements.length > 0) {
1685
1688
  edits.push(
@@ -1690,7 +1693,7 @@ function ditaEdits(content, read, shape, patch, emit, escape) {
1690
1693
  shape,
1691
1694
  freshElements,
1692
1695
  emit,
1693
- escape
1696
+ escape2
1694
1697
  )
1695
1698
  );
1696
1699
  }
@@ -1703,7 +1706,7 @@ function ownLift(container, element) {
1703
1706
  const lifts = DITA_LIFTS[container];
1704
1707
  return lifts && Object.prototype.hasOwnProperty.call(lifts, element) ? lifts[element] : void 0;
1705
1708
  }
1706
- function newElementEdits(content, starts, root, shape, items, emit, escape) {
1709
+ function newElementEdits(content, starts, root, shape, items, emit, escape2) {
1707
1710
  const eol = content.includes(CRLF) ? CRLF : LF;
1708
1711
  const liftRootEl = liftRoot(root, shape);
1709
1712
  const tagsFor = (item) => {
@@ -1712,7 +1715,7 @@ function newElementEdits(content, starts, root, shape, items, emit, escape) {
1712
1715
  const emitted = emit(item.key, v);
1713
1716
  return {
1714
1717
  name: item.element,
1715
- text: item.spec.attr ? `<${item.element} ${item.spec.attr}="${escape(emitted, DQ)}"/>` : `<${item.element}>${escapeText(emitted)}</${item.element}>`
1718
+ text: item.spec.attr ? `<${item.element} ${item.spec.attr}="${escape2(emitted, DQ)}"/>` : `<${item.element}>${escapeText(emitted)}</${item.element}>`
1716
1719
  };
1717
1720
  });
1718
1721
  };
@@ -1821,7 +1824,7 @@ function modelIndex(container, name) {
1821
1824
  const at = model.indexOf(name);
1822
1825
  return at === -1 ? Number.MAX_SAFE_INTEGER : at;
1823
1826
  }
1824
- function attributeEdit(content, starts, root, name, emitted, escape) {
1827
+ function attributeEdit(content, starts, root, name, emitted, escape2) {
1825
1828
  const attrs = root.attributes;
1826
1829
  for (let i = 0; i < attrs.length; i++) {
1827
1830
  const attr = attrs.item(i);
@@ -1832,13 +1835,13 @@ function attributeEdit(content, starts, root, name, emitted, escape) {
1832
1835
  offsetAt(starts, attr.lineNumber, attr.columnNumber)
1833
1836
  );
1834
1837
  if (span === void 0) break;
1835
- return { start: span.start, end: span.end, text: escape(emitted, span.quote) };
1838
+ return { start: span.start, end: span.end, text: escape2(emitted, span.quote) };
1836
1839
  }
1837
1840
  throw new DocmetaError(
1838
1841
  `Refusing to write "${name}": its attribute value could not be located precisely.`
1839
1842
  );
1840
1843
  }
1841
- function otherMetaEdit(content, starts, el, key, emitted, escape) {
1844
+ function otherMetaEdit(content, starts, el, key, emitted, escape2) {
1842
1845
  const attrs = el.attributes;
1843
1846
  for (let i = 0; i < attrs.length; i++) {
1844
1847
  const attr = attrs.item(i);
@@ -1849,16 +1852,16 @@ function otherMetaEdit(content, starts, el, key, emitted, escape) {
1849
1852
  offsetAt(starts, attr.lineNumber, attr.columnNumber)
1850
1853
  );
1851
1854
  if (span === void 0) break;
1852
- return { start: span.start, end: span.end, text: escape(emitted, span.quote) };
1855
+ return { start: span.start, end: span.end, text: escape2(emitted, span.quote) };
1853
1856
  }
1854
1857
  throw new DocmetaError(
1855
1858
  `Refusing to write "${key}": its <othermeta> content attribute could not be located precisely.`
1856
1859
  );
1857
1860
  }
1858
- function insertEdit(content, starts, root, shape, fresh, escape) {
1861
+ function insertEdit(content, starts, root, shape, fresh, escape2) {
1859
1862
  const { prolog, container } = metadataContainers(root, shape);
1860
1863
  const eol = content.includes("\r\n") ? "\r\n" : "\n";
1861
- const tag = (f) => `<othermeta name="${escape(f.key, DQ)}" content="${escape(f.value, DQ)}"/>`;
1864
+ const tag = (f) => `<othermeta name="${escape2(f.key, DQ)}" content="${escape2(f.value, DQ)}"/>`;
1862
1865
  const build = (a, lines) => ({
1863
1866
  start: a.start,
1864
1867
  end: a.end,
@@ -2123,16 +2126,93 @@ var xmlExtractor = {
2123
2126
  };
2124
2127
 
2125
2128
  // src/meta/extractors/html-read.ts
2126
- import { parse, defaultTreeAdapter } from "parse5";
2127
- import { parse as parseYamlScalar4 } from "yaml";
2128
- function typeValue4(raw) {
2129
- if (raw === "") return "";
2130
- try {
2131
- return parseYamlScalar4(raw);
2132
- } catch {
2133
- return raw;
2129
+ import { parse as parse2, defaultTreeAdapter as defaultTreeAdapter2 } from "parse5";
2130
+
2131
+ // src/shared/xhtml.ts
2132
+ import { defaultTreeAdapter, html, parse } from "parse5";
2133
+ var XML_DECL = /^?\s*<\?xml[\s?]/;
2134
+ var HTML_XMLNS = /<html(?=[\s/>])(?:"[^"]*"|'[^']*'|[^'">])*?\sxmlns(?::[\w.-]+)?\s*=/i;
2135
+ var FLARE_NS = /http:\/\/www\.madcapsoftware\.com\/schemas\/madcap\.xsd/i;
2136
+ var SELF_CLOSED_RAW = /<!--[\s\S]*?-->|<!\[CDATA\[[\s\S]*?\]\]>|<(title|textarea|script|style|xmp|iframe|noembed|noframes|noscript)(?=[\s/])(?:"[^"]*"|'[^']*'|[^'">])*?\/>/gi;
2137
+ function isXhtml(text) {
2138
+ return XML_DECL.test(text) || HTML_XMLNS.test(text);
2139
+ }
2140
+ function isFlare(text) {
2141
+ return FLARE_NS.test(text);
2142
+ }
2143
+ function parseXhtml(text) {
2144
+ const insertions = [];
2145
+ let added = 0;
2146
+ const parsed2 = text.replace(SELF_CLOSED_RAW, (match, name, offset) => {
2147
+ if (name === void 0) return match;
2148
+ const end = `</${name}>`;
2149
+ insertions.push({ at: offset + match.length + added, len: end.length, lineEnd: -1 });
2150
+ added += end.length;
2151
+ return match + end;
2152
+ });
2153
+ for (const ins of insertions) {
2154
+ const nl = parsed2.slice(ins.at).search(/[\r\n]/);
2155
+ ins.lineEnd = nl === -1 ? parsed2.length : ins.at + nl;
2156
+ }
2157
+ const doc = parse(parsed2, { sourceCodeLocationInfo: true });
2158
+ if (insertions.length > 0) unshift(doc, insertions);
2159
+ hoist(doc, text);
2160
+ return doc;
2161
+ }
2162
+ function unshift(node, insertions) {
2163
+ const loc = "sourceCodeLocation" in node ? node.sourceCodeLocation : void 0;
2164
+ if (loc) {
2165
+ const endTag = loc.endTag;
2166
+ if (endTag && insertions.some((i) => i.at === endTag.startOffset)) delete loc.endTag;
2167
+ const all = [loc];
2168
+ if (loc.startTag) all.push(loc.startTag);
2169
+ if (loc.endTag) all.push(loc.endTag);
2170
+ if (loc.attrs) all.push(...Object.values(loc.attrs));
2171
+ for (const l of all) {
2172
+ const [startOffset, startShift] = back(l.startOffset, insertions);
2173
+ const [endOffset, endShift] = back(l.endOffset, insertions);
2174
+ l.startOffset = startOffset;
2175
+ l.startCol -= startShift;
2176
+ l.endOffset = endOffset;
2177
+ l.endCol -= endShift;
2178
+ }
2179
+ }
2180
+ if ("childNodes" in node) for (const c of node.childNodes) unshift(c, insertions);
2181
+ if ("content" in node) unshift(node.content, insertions);
2182
+ }
2183
+ function back(offset, insertions) {
2184
+ let shift = 0;
2185
+ let colShift = 0;
2186
+ for (const ins of insertions) {
2187
+ if (ins.at >= offset) break;
2188
+ const moved = Math.min(ins.len, offset - ins.at);
2189
+ shift += moved;
2190
+ if (offset <= ins.lineEnd) colShift += moved;
2191
+ }
2192
+ return [offset - shift, colShift];
2193
+ }
2194
+ function hoist(node, text) {
2195
+ if (!("childNodes" in node)) return;
2196
+ for (const c of [...node.childNodes]) hoist(c, text);
2197
+ if ("content" in node) hoist(node.content, text);
2198
+ if (!defaultTreeAdapter.isElementNode(node) || node.namespaceURI !== html.NS.HTML) return;
2199
+ const loc = node.sourceCodeLocation;
2200
+ if (!loc?.startTag || loc.endTag) return;
2201
+ if (!text.slice(loc.startTag.startOffset, loc.startTag.endOffset).endsWith("/>")) return;
2202
+ loc.endLine = loc.startTag.endLine;
2203
+ loc.endCol = loc.startTag.endCol;
2204
+ loc.endOffset = loc.startTag.endOffset;
2205
+ const parent = node.parentNode;
2206
+ if (!parent || node.childNodes.length === 0) return;
2207
+ const next = parent.childNodes[parent.childNodes.indexOf(node) + 1];
2208
+ for (const child of [...node.childNodes]) {
2209
+ defaultTreeAdapter.detachNode(child);
2210
+ if (next) defaultTreeAdapter.insertBefore(parent, child, next);
2211
+ else defaultTreeAdapter.appendChild(parent, child);
2134
2212
  }
2135
2213
  }
2214
+
2215
+ // src/meta/extractors/html-read.ts
2136
2216
  function attrValue(el, name) {
2137
2217
  return el.attrs.find((a) => a.name === name)?.value;
2138
2218
  }
@@ -2142,8 +2222,8 @@ var elementName = (el) => el ? el.tagName.toLowerCase() : "";
2142
2222
  function headText(el, allowEmpty = false) {
2143
2223
  let text = "";
2144
2224
  for (const node of el.childNodes) {
2145
- if (defaultTreeAdapter.isElementNode(node)) return void 0;
2146
- if (defaultTreeAdapter.isTextNode(node)) text += node.value;
2225
+ if (defaultTreeAdapter2.isElementNode(node)) return void 0;
2226
+ if (defaultTreeAdapter2.isTextNode(node)) text += node.value;
2147
2227
  }
2148
2228
  if (!allowEmpty && text.trim() === "") return void 0;
2149
2229
  return text.trim();
@@ -2151,7 +2231,7 @@ function headText(el, allowEmpty = false) {
2151
2231
  function liftableHeadChildren(head) {
2152
2232
  const out = /* @__PURE__ */ new Map();
2153
2233
  for (const node of head.childNodes) {
2154
- if (!defaultTreeAdapter.isElementNode(node)) continue;
2234
+ if (!defaultTreeAdapter2.isElementNode(node)) continue;
2155
2235
  const name = node.tagName.toLowerCase();
2156
2236
  if (HEAD_NOT_METADATA.has(name)) continue;
2157
2237
  const text = headText(node);
@@ -2167,11 +2247,57 @@ function liftableHeadChildren(head) {
2167
2247
  }
2168
2248
  return out;
2169
2249
  }
2250
+ function flatText(node) {
2251
+ let text = "";
2252
+ const walk = (n) => {
2253
+ if (defaultTreeAdapter2.isTextNode(n)) text += n.value;
2254
+ else if (defaultTreeAdapter2.isElementNode(n)) n.childNodes.forEach(walk);
2255
+ };
2256
+ node.childNodes.forEach(walk);
2257
+ return text.replace(/\s+/g, " ").trim();
2258
+ }
2259
+ function firstHeading(node) {
2260
+ for (const child of node.childNodes) {
2261
+ if (!defaultTreeAdapter2.isElementNode(child)) continue;
2262
+ if (/^h[1-6]$/.test(child.tagName)) return child;
2263
+ const found = firstHeading(child);
2264
+ if (found) return found;
2265
+ }
2266
+ return void 0;
2267
+ }
2268
+ function flareTitle(doc, filePath) {
2269
+ const heading = firstHeading(doc);
2270
+ const text = heading ? flatText(heading) : "";
2271
+ if (text !== "") return text;
2272
+ if (filePath === "-" || filePath === "<stdin>") return void 0;
2273
+ const stem = filePath?.replace(/^.*[\\/]/, "").replace(/\.[^.]*$/, "");
2274
+ return stem === "" ? void 0 : stem;
2275
+ }
2276
+ var KEYWORD_MARKERS = /* @__PURE__ */ new Set(["madcap:keyword", "madcap:concept"]);
2277
+ function markerKeywords(els) {
2278
+ const out = /* @__PURE__ */ new Set();
2279
+ for (const el of els) {
2280
+ for (const piece of (attrValue(el, "term") ?? "").split(";")) {
2281
+ const keyword = piece.trim().replace(/\\:/g, ":");
2282
+ if (keyword !== "") out.add(keyword);
2283
+ }
2284
+ }
2285
+ return [...out];
2286
+ }
2287
+ var GLOSSARY_MARKER = "madcap:glossaryterm";
2288
+ function markerConcepts(els) {
2289
+ const out = /* @__PURE__ */ new Set();
2290
+ for (const el of els) {
2291
+ const id = attrValue(el, "glossterm") ?? "";
2292
+ if (id !== "") out.add(id);
2293
+ }
2294
+ return [...out];
2295
+ }
2170
2296
  function matchHtmlPath(doc, segments) {
2171
2297
  const childrenNamed = (nodes, name) => {
2172
2298
  const out = [];
2173
2299
  for (const n of nodes) {
2174
- if (defaultTreeAdapter.isElementNode(n) && n.tagName.toLowerCase() === name) {
2300
+ if (defaultTreeAdapter2.isElementNode(n) && n.tagName.toLowerCase() === name) {
2175
2301
  out.push(n);
2176
2302
  }
2177
2303
  }
@@ -2187,12 +2313,15 @@ function matchHtmlPath(doc, segments) {
2187
2313
  }
2188
2314
  function readHtml(source, options) {
2189
2315
  const body = source.charCodeAt(0) === 65279 ? source.slice(1) : source;
2190
- const doc = parse(body, { sourceCodeLocationInfo: true });
2316
+ const xhtml = isXhtml(body);
2317
+ const doc = xhtml ? parseXhtml(body) : parse2(body, { sourceCodeLocationInfo: true });
2191
2318
  const data = {};
2192
2319
  const lineMap = /* @__PURE__ */ new Map();
2193
2320
  const colMap = /* @__PURE__ */ new Map();
2194
2321
  const sources = /* @__PURE__ */ new Map();
2195
2322
  let head;
2323
+ const keywordMarkers = [];
2324
+ const glossaryMarkers = [];
2196
2325
  lineMap.set("", 1);
2197
2326
  colMap.set("", 1);
2198
2327
  const setKey = (key, value, source2, line, col) => {
@@ -2203,7 +2332,7 @@ function readHtml(source, options) {
2203
2332
  if (col != null) colMap.set(pointer, col);
2204
2333
  };
2205
2334
  const visit = (node) => {
2206
- if (defaultTreeAdapter.isElementNode(node)) {
2335
+ if (defaultTreeAdapter2.isElementNode(node)) {
2207
2336
  const location = node.sourceCodeLocation;
2208
2337
  const line = location?.startLine;
2209
2338
  if (node.tagName === "head" && head === void 0) {
@@ -2211,7 +2340,7 @@ function readHtml(source, options) {
2211
2340
  } else if (node.tagName === "title") {
2212
2341
  if (data.title === void 0) {
2213
2342
  const first = node.childNodes[0];
2214
- const text = first && defaultTreeAdapter.isTextNode(first) ? first.value : "";
2343
+ const text = first && defaultTreeAdapter2.isTextNode(first) ? first.value : "";
2215
2344
  setKey("title", text, { kind: "title", el: node }, line, location?.startCol);
2216
2345
  }
2217
2346
  } else if (node.tagName === "meta") {
@@ -2220,16 +2349,37 @@ function readHtml(source, options) {
2220
2349
  if (key != null && value != null) {
2221
2350
  const attrLocation = location?.attrs?.["content"];
2222
2351
  const col = attrLocation != null && attrLocation.startLine === line ? attrLocation.startCol : location?.startCol;
2223
- setKey(key, typeValue4(value), { kind: "meta", el: node }, line, col);
2352
+ setKey(key, typeValue(value), { kind: "meta", el: node }, line, col);
2224
2353
  }
2354
+ } else if (KEYWORD_MARKERS.has(node.tagName)) {
2355
+ keywordMarkers.push(node);
2356
+ } else if (node.tagName === GLOSSARY_MARKER && (attrValue(node, "glossterm") ?? "") !== "") {
2357
+ glossaryMarkers.push(node);
2225
2358
  }
2226
2359
  for (const child of node.childNodes) visit(child);
2227
2360
  }
2228
2361
  };
2229
2362
  for (const child of doc.childNodes) visit(child);
2363
+ const titleSource = sources.get("title");
2364
+ const untitled = titleSource === void 0 || titleSource.kind === "title" && typeof data.title === "string" && data.title.trim() === "";
2365
+ const flare = isFlare(body);
2366
+ if (untitled && flare) {
2367
+ const title = flareTitle(doc, options?.filePath);
2368
+ if (title !== void 0) data.title = title;
2369
+ }
2370
+ const keywords = markerKeywords(keywordMarkers);
2371
+ if (data.keywords === void 0 && keywords.length > 0 && flare) {
2372
+ const first = keywordMarkers[0]?.sourceCodeLocation;
2373
+ setKey("keywords", keywords, { kind: "marker", els: keywordMarkers }, first?.startLine, first?.startCol);
2374
+ }
2375
+ const concepts = markerConcepts(glossaryMarkers);
2376
+ if (data.concepts === void 0 && concepts.length > 0 && flare) {
2377
+ const first = glossaryMarkers[0]?.sourceCodeLocation;
2378
+ setKey("concepts", concepts, { kind: "marker", els: glossaryMarkers }, first?.startLine, first?.startCol);
2379
+ }
2230
2380
  if (head) {
2231
2381
  for (const [key, { els, texts }] of liftableHeadChildren(head)) {
2232
- const values = texts.map(typeValue4);
2382
+ const values = texts.map(typeValue);
2233
2383
  const singleton = HEAD_SINGLETONS.has(elementName(els[0]));
2234
2384
  data[key] = singleton ? values[0] : values;
2235
2385
  sources.set(key, { kind: "element-text", els });
@@ -2246,7 +2396,7 @@ function readHtml(source, options) {
2246
2396
  const found = pairValues(
2247
2397
  matchHtmlPath(doc, spec.segments),
2248
2398
  (el) => spec.attr ? attrValue(el, spec.attr) : headText(el, true),
2249
- typeValue4
2399
+ typeValue
2250
2400
  );
2251
2401
  if (found.values.length === 0) continue;
2252
2402
  data[spec.key] = found.values;
@@ -2259,32 +2409,42 @@ function readHtml(source, options) {
2259
2409
  if (location?.startLine != null) lineMap.set(pointer, location.startLine);
2260
2410
  if (location?.startCol != null) colMap.set(pointer, location.startCol);
2261
2411
  }
2262
- return { data, body, lineMap, colMap, sources, head };
2412
+ return { data, body, lineMap, colMap, sources, head, xhtml };
2263
2413
  }
2264
2414
 
2265
2415
  // src/meta/extractors/html-write.ts
2416
+ import { defaultTreeAdapter as defaultTreeAdapter3 } from "parse5";
2266
2417
  import { stringify as stringifyYaml2 } from "yaml";
2267
2418
  function applyHtml(original, patch, options = {}) {
2268
- const before = readHtml(original, { elements: options.elements });
2419
+ const before = readHtml(original, {
2420
+ elements: options.elements,
2421
+ filePath: options.filePath
2422
+ });
2269
2423
  const content = before.body;
2270
2424
  const headStart = before.head?.sourceCodeLocation?.startTag;
2271
- if (before.head === void 0 || headStart == null) {
2425
+ const html2 = headStart == null && before.xhtml && !HEAD_TAG.test(content.replace(COMMENT, "")) ? htmlElement(before.head) : void 0;
2426
+ if (before.head === void 0 || headStart == null && html2 === void 0) {
2272
2427
  throw new DocmetaError(
2273
- "This HTML document has no <head> element; manni meta fill writes metadata into <head>. Add one, or set the field manually."
2428
+ options.filePath === void 0 ? "This HTML document has no <head> element; manni meta fill writes metadata into <head>. Add one, or set the field manually." : `${options.filePath} has no <head> element; manni meta fill writes metadata into <head>. Add one, or set the field manually.`
2274
2429
  );
2275
2430
  }
2276
2431
  const clean = dropUndefined(patch);
2277
2432
  if (Object.keys(clean).length === 0) return original;
2278
2433
  const edits = [];
2279
2434
  const inserts = [];
2435
+ const tagEnd = before.xhtml ? " />" : ">";
2280
2436
  const moved = /* @__PURE__ */ new Set();
2281
2437
  for (const [key, value] of Object.entries(clean)) {
2282
2438
  const source = before.sources.get(key);
2283
- if (source === void 0) {
2439
+ if (source === void 0 && key === "title" && flareTitleInsert(before)) {
2440
+ inserts.push("<title>" + escapeText(emitScalar2(key, value)) + "</title>");
2441
+ } else if (source === void 0) {
2284
2442
  const name = escapeAttr2(key, DQ3);
2285
2443
  inserts.push(
2286
- "<meta name=" + DQ3 + name + DQ3 + " content=" + DQ3 + escapeAttr2(emitScalar2(key, value), DQ3) + DQ3 + ">"
2444
+ "<meta name=" + DQ3 + name + DQ3 + " content=" + DQ3 + escapeAttr2(emitScalar2(key, value), DQ3) + DQ3 + tagEnd
2287
2445
  );
2446
+ } else if (source.kind === "marker") {
2447
+ throw new DocmetaError(markerRefusal(key, options.filePath ?? "the page"));
2288
2448
  } else if (source.kind === "meta") {
2289
2449
  edits.push(metaEdit(content, source.el, key, emitScalar2(key, value)));
2290
2450
  moved.add(source.el);
@@ -2303,12 +2463,37 @@ function applyHtml(original, patch, options = {}) {
2303
2463
  }
2304
2464
  }
2305
2465
  if (inserts.length > 0) {
2306
- edits.push(insertEdit2(content, before.head, headStart.endOffset, inserts));
2466
+ edits.push(
2467
+ headStart != null ? insertEdit2(content, before.head, headStart, inserts, before.xhtml) : createHeadEdit(content, html2, inserts)
2468
+ );
2307
2469
  }
2308
2470
  const next = spliceAll2(content, edits);
2471
+ if (before.xhtml && xmlParseError(content) === void 0) {
2472
+ const error = xmlParseError(next);
2473
+ if (error !== void 0) {
2474
+ throw new DocmetaError(
2475
+ `Refusing to write "${Object.keys(clean)[0] ?? ""}": the result would not be well-formed XML (${error}). ${options.filePath ?? "the page"} is unchanged.`
2476
+ );
2477
+ }
2478
+ }
2309
2479
  verify3(next, before, clean, moved, options);
2310
2480
  return content === original ? next : original.slice(0, 1) + next;
2311
2481
  }
2482
+ var MARKERS = {
2483
+ keywords: "MadCap:keyword and MadCap:concept",
2484
+ concepts: "MadCap:glossaryTerm"
2485
+ };
2486
+ function markerRefusal(key, file) {
2487
+ return `Refusing to write "${key}": ${file} reads them from its ${MARKERS[key] ?? "MadCap"} markers. Edit the markers in Flare.`;
2488
+ }
2489
+ var HEAD_TAG = /<head[\s>/]/i;
2490
+ var COMMENT = /<!--[\s\S]*?-->/g;
2491
+ function htmlElement(head) {
2492
+ const parent = head?.parentNode;
2493
+ if (!parent || !defaultTreeAdapter3.isElementNode(parent)) return void 0;
2494
+ const startTag = parent.sourceCodeLocation?.startTag;
2495
+ return parent.tagName === "html" && startTag != null ? { el: parent, startTag } : void 0;
2496
+ }
2312
2497
  var DQ3 = String.fromCharCode(34);
2313
2498
  var SQ = String.fromCharCode(39);
2314
2499
  function metaEdit(content, el, key, emitted) {
@@ -2354,13 +2539,40 @@ function elementTextEdit2(el, key, emitted) {
2354
2539
  text: escapeText(emitted)
2355
2540
  };
2356
2541
  }
2357
- function insertEdit2(content, head, at, tags) {
2542
+ function insertEdit2(content, head, headStart, tags, xhtml) {
2543
+ const at = headStart.endOffset;
2358
2544
  const { eol, indent } = headStyle(content, head, at);
2545
+ const startTag = content.slice(headStart.startOffset, at);
2546
+ if (xhtml && head.sourceCodeLocation?.endTag == null && startTag.endsWith("/>")) {
2547
+ const lineStart = content.lastIndexOf("\n", headStart.startOffset - 1) + 1;
2548
+ const lead = content.slice(lineStart, headStart.startOffset);
2549
+ const own2 = /^[ \t]*$/.test(lead) ? lead : "";
2550
+ return {
2551
+ start: headStart.startOffset,
2552
+ end: at,
2553
+ text: headAround(startTag.replace(/\s*\/>$/, ">"), tags, eol, own2)
2554
+ };
2555
+ }
2359
2556
  const text = tags.map((t) => `${eol}${indent}${t}`).join("");
2360
2557
  return { start: at, end: at, text };
2361
2558
  }
2362
- function headStyle(content, head, at) {
2363
- for (const child of head.childNodes) {
2559
+ function createHeadEdit(content, html2, tags) {
2560
+ if (html2 === void 0) {
2561
+ throw new DocmetaError("Internal error: no <html> start tag to insert a <head> after.");
2562
+ }
2563
+ const at = html2.startTag.endOffset;
2564
+ const { eol, indent } = headStyle(content, html2.el, at);
2565
+ return { start: at, end: at, text: eol + indent + headAround("<head>", tags, eol, indent) };
2566
+ }
2567
+ function flareTitleInsert(before) {
2568
+ return before.xhtml && isFlare(before.body);
2569
+ }
2570
+ function headAround(open, tags, eol, own2) {
2571
+ const inner = own2 + (own2 === "" ? " " : own2);
2572
+ return open + tags.map((t) => `${eol}${inner}${t}`).join("") + eol + own2 + "</head>";
2573
+ }
2574
+ function headStyle(content, parent, at) {
2575
+ for (const child of parent.childNodes) {
2364
2576
  const start = child.sourceCodeLocation?.startOffset;
2365
2577
  if (start == null || start < at) continue;
2366
2578
  const lineStart = content.lastIndexOf("\n", start - 1) + 1;
@@ -2421,13 +2633,22 @@ function spliceAll2(content, edits) {
2421
2633
  return out;
2422
2634
  }
2423
2635
  function verify3(next, before, patch, moved, options) {
2424
- const actual = readHtml(next, { elements: options.elements }).data;
2636
+ const actual = readHtml(next, {
2637
+ elements: options.elements,
2638
+ filePath: options.filePath
2639
+ }).data;
2425
2640
  const expected = { ...before.data, ...patch };
2426
2641
  for (const [key, source] of before.sources) {
2427
2642
  if (key in patch) continue;
2428
- const els = source.kind === "element-text" || source.kind === "element-attr" ? source.els : [source.el];
2643
+ const els = "els" in source ? source.els : [source.el];
2429
2644
  if (els.some((el) => moved.has(el))) expected[key] = actual[key];
2430
2645
  }
2646
+ const title = before.sources.get("title");
2647
+ const headTitle = liftKey("head", "title");
2648
+ const titleWritten = title === void 0 ? flareTitleInsert(before) && "title" in patch : title.kind === "title" && moved.has(title.el);
2649
+ if (titleWritten && headTitle in actual) {
2650
+ expected[headTitle] ??= actual[headTitle];
2651
+ }
2431
2652
  if (!deepEqual(actual, expected)) {
2432
2653
  throw new DocmetaError(
2433
2654
  "Refusing to write HTML metadata: the rewritten document did not read back as expected."
@@ -2438,9 +2659,10 @@ function verify3(next, before, patch, moved, options) {
2438
2659
  // src/meta/extractors/html.ts
2439
2660
  var htmlExtractor = {
2440
2661
  name: "html",
2441
- extensions: [".html", ".htm"],
2442
- extract(content, _filePath, options) {
2443
- const { data, lineMap, colMap } = readHtml(content, options);
2662
+ // A Flare snippet is an XHTML fragment of a topic (proposal 0125).
2663
+ extensions: [".html", ".htm", ".flsnp"],
2664
+ extract(content, filePath, options) {
2665
+ const { data, lineMap, colMap } = readHtml(content, { ...options, filePath });
2444
2666
  return {
2445
2667
  data,
2446
2668
  present: Object.keys(data).length > 0,
@@ -3360,6 +3582,53 @@ import { readFile as readFile2 } from "node:fs/promises";
3360
3582
  import { resolve as resolvePath } from "node:path";
3361
3583
  import { Buffer } from "node:buffer";
3362
3584
 
3585
+ // src/meta/core/flare-meta-schema.ts
3586
+ import { DOMParser as DOMParser2 } from "@xmldom/xmldom";
3587
+ function isFlareMetaRef(ref) {
3588
+ return /\.flmeta$/i.test(ref);
3589
+ }
3590
+ function escape(value) {
3591
+ return value.replace(/[.*+?^${}()|[\]\\]/g, "\\$&");
3592
+ }
3593
+ function flareMetaSchema(text, ref) {
3594
+ let root = null;
3595
+ try {
3596
+ root = new DOMParser2({ onError: () => void 0 }).parseFromString(text.replace(/^/, ""), "text/xml").documentElement;
3597
+ } catch {
3598
+ }
3599
+ if (root?.nodeName !== "CatapultMetaTagSet") {
3600
+ throw new DocmetaError(
3601
+ `${ref} is not a Flare meta tag set: its root element is ${root?.nodeName ?? "missing"}.`
3602
+ );
3603
+ }
3604
+ const properties = {};
3605
+ for (const tag of Array.from(root.children).filter((t) => t.nodeName === "meta")) {
3606
+ const name = tag.getAttribute("name");
3607
+ if (!name) continue;
3608
+ const property = { type: "string" };
3609
+ const desc = tag.getAttribute("desc");
3610
+ if (desc) property.description = desc;
3611
+ if (tag.getAttribute("type") === "Enum") {
3612
+ const values = (tag.getAttribute("enum") ?? "").split(",").map((v) => v.trim()).filter((v) => v !== "");
3613
+ if (values.length > 0) {
3614
+ const one = `(${values.map(escape).join("|")})`;
3615
+ property.pattern = `^(${one}(,${one})*)?$`;
3616
+ }
3617
+ }
3618
+ properties[name] = property;
3619
+ }
3620
+ const schema = {
3621
+ $schema: "https://json-schema.org/draft/2020-12/schema",
3622
+ type: "object"
3623
+ };
3624
+ const title = root.getAttribute("name");
3625
+ if (title) schema.title = title;
3626
+ const description = root.getAttribute("desc");
3627
+ if (description) schema.description = description;
3628
+ schema.properties = properties;
3629
+ return schema;
3630
+ }
3631
+
3363
3632
  // src/meta/schemas/okf/0.1.json
3364
3633
  var __default3 = {
3365
3634
  $schema: "https://json-schema.org/draft/2020-12/schema",
@@ -12758,6 +13027,7 @@ async function loadSchema(ref, options = {}) {
12758
13027
  assertIntegrity(ref, bytes, pin, pin.integrity);
12759
13028
  }
12760
13029
  const text = stripBom2(bytes.toString("utf8"));
13030
+ if (isFlareMetaRef(ref)) return flareMetaSchema(text, ref);
12761
13031
  try {
12762
13032
  return JSON.parse(text);
12763
13033
  } catch (err) {
@@ -14329,7 +14599,15 @@ export {
14329
14599
  keyString,
14330
14600
  applyFrontmatter,
14331
14601
  stripFrontmatter,
14602
+ liftRoot,
14603
+ readXml,
14604
+ lineStarts,
14605
+ offsetAt,
14332
14606
  startTagEnd,
14607
+ closeTagStart,
14608
+ isXhtml,
14609
+ isFlare,
14610
+ parseXhtml,
14333
14611
  extractorForExtension,
14334
14612
  extractorByName,
14335
14613
  supportedExtensions,
@@ -14342,6 +14620,8 @@ export {
14342
14620
  resolveTargetSet,
14343
14621
  notFoundMessage,
14344
14622
  assertNonEmpty,
14623
+ isFlareMetaRef,
14624
+ flareMetaSchema,
14345
14625
  ManifestCache,
14346
14626
  writeFileAtomic,
14347
14627
  SCHEMA_CACHE_DIR,
@@ -14409,4 +14689,4 @@ export {
14409
14689
  loadMetaSection,
14410
14690
  resolveRunConfig
14411
14691
  };
14412
- //# sourceMappingURL=chunk-GXC7SDLO.js.map
14692
+ //# sourceMappingURL=chunk-IHW7N3A6.js.map