@hawkeyexl/manni 4.20.1 → 4.22.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (314) hide show
  1. package/README.md +1 -1
  2. package/dist/{batch-J626LZ22.js → batch-C3NN2YXB.js} +20 -21
  3. package/dist/build-CEVEAHN7.js +36 -0
  4. package/dist/calibrate-CSKPY5AK.js +42 -0
  5. package/dist/capture-3HDBIHH6.js +37 -0
  6. package/dist/check-555TCJGF.js +45 -0
  7. package/dist/check-KGJBV42O.js +30 -0
  8. package/dist/{check-RCSQARQE.js → check-KXWHSCCR.js} +13 -16
  9. package/dist/check-MZSXCS2M.js +33 -0
  10. package/dist/{check-PQ7S5I3I.js → check-QNHLTYPN.js} +23 -23
  11. package/dist/{chunk-YIHIRMXN.js → chunk-2VLZDU4E.js} +5 -5
  12. package/dist/{chunk-D54BQM5P.js → chunk-37Q7WEJJ.js} +9 -9
  13. package/dist/{chunk-QSPH4F56.js → chunk-3ZVRGBK6.js} +5 -5
  14. package/dist/chunk-3ZVRGBK6.js.map +1 -0
  15. package/dist/{chunk-P5DWBG6T.js → chunk-46MMIJWR.js} +3 -3
  16. package/dist/{chunk-P6XZ44C2.js → chunk-4LYVTR2T.js} +4 -4
  17. package/dist/{chunk-ODSIHEIW.js → chunk-562QZKAB.js} +6599 -3508
  18. package/dist/chunk-562QZKAB.js.map +1 -0
  19. package/dist/{chunk-ACJUZFRT.js → chunk-57LZPG4V.js} +29 -4
  20. package/dist/chunk-57LZPG4V.js.map +1 -0
  21. package/dist/chunk-5LQX57BW.js +100 -0
  22. package/dist/chunk-5LQX57BW.js.map +1 -0
  23. package/dist/{chunk-MPXMQGJI.js → chunk-63EQKVNT.js} +45 -910
  24. package/dist/chunk-63EQKVNT.js.map +1 -0
  25. package/dist/{chunk-6FY573GB.js → chunk-64DULZIG.js} +4 -4
  26. package/dist/{chunk-TAJYMXMM.js → chunk-6SVHI2U6.js} +2 -2
  27. package/dist/{chunk-OVUQNM7Y.js → chunk-6UHEMPEY.js} +3 -157
  28. package/dist/chunk-6UHEMPEY.js.map +1 -0
  29. package/dist/{chunk-A633WB3N.js → chunk-A5YUK3SG.js} +37 -26
  30. package/dist/chunk-A5YUK3SG.js.map +1 -0
  31. package/dist/{chunk-C5BXSQDO.js → chunk-A67EJ3J6.js} +6 -6
  32. package/dist/{chunk-2GTR24SA.js → chunk-BLDL23RY.js} +8 -8
  33. package/dist/{chunk-JPXC62SD.js → chunk-BY3635RR.js} +82 -16
  34. package/dist/chunk-BY3635RR.js.map +1 -0
  35. package/dist/{chunk-CFMI74TP.js → chunk-BZ74YUYE.js} +2 -2
  36. package/dist/{chunk-NDPQ2GQ4.js → chunk-CHTSA3YR.js} +6 -6
  37. package/dist/{chunk-5CJ3P5O3.js → chunk-CPYQ4BJK.js} +19 -100
  38. package/dist/chunk-CPYQ4BJK.js.map +1 -0
  39. package/dist/{chunk-Z2T5U7HN.js → chunk-CQTESLC5.js} +2 -2
  40. package/dist/{chunk-245W2Q7C.js → chunk-D4BGNAN5.js} +2 -2
  41. package/dist/{chunk-XPO655IX.js → chunk-E3HYSNS6.js} +4 -4
  42. package/dist/{chunk-LPJ3IB26.js → chunk-EL2KNRC3.js} +17 -3
  43. package/dist/chunk-EL2KNRC3.js.map +1 -0
  44. package/dist/{chunk-ISDFYXLA.js → chunk-FTSNG6DZ.js} +48 -28
  45. package/dist/chunk-FTSNG6DZ.js.map +1 -0
  46. package/dist/{chunk-MJZK7G4B.js → chunk-FXE5K56B.js} +3 -3
  47. package/dist/{chunk-YM2W43DI.js → chunk-HYEKQ22B.js} +13 -9
  48. package/dist/chunk-HYEKQ22B.js.map +1 -0
  49. package/dist/{chunk-QGBNWEWS.js → chunk-IC3FJWIF.js} +2 -2
  50. package/dist/{chunk-OQR3VVAX.js → chunk-IDDRHB7E.js} +3 -3
  51. package/dist/chunk-INOVEO32.js +28 -0
  52. package/dist/chunk-INOVEO32.js.map +1 -0
  53. package/dist/chunk-IXFFVI5S.js +409 -0
  54. package/dist/chunk-IXFFVI5S.js.map +1 -0
  55. package/dist/{chunk-OXCWCEVV.js → chunk-JA7DWOVV.js} +5 -5
  56. package/dist/{chunk-B2242FYO.js → chunk-JF4BC7ZD.js} +38 -3
  57. package/dist/chunk-JF4BC7ZD.js.map +1 -0
  58. package/dist/{chunk-RN7IA742.js → chunk-JL5FHNQK.js} +9 -11
  59. package/dist/{chunk-RN7IA742.js.map → chunk-JL5FHNQK.js.map} +1 -1
  60. package/dist/{chunk-HGUCJ3K3.js → chunk-JVE5YQN4.js} +4 -4
  61. package/dist/chunk-K5LBIAOM.js +700 -0
  62. package/dist/chunk-K5LBIAOM.js.map +1 -0
  63. package/dist/{chunk-5E3ABFOQ.js → chunk-KIUFBUUZ.js} +13 -11
  64. package/dist/{chunk-5E3ABFOQ.js.map → chunk-KIUFBUUZ.js.map} +1 -1
  65. package/dist/{chunk-SUTY4VCZ.js → chunk-LCMBG4LY.js} +3635 -3409
  66. package/dist/chunk-LCMBG4LY.js.map +1 -0
  67. package/dist/{chunk-H3C3UXTA.js → chunk-LMS2RWDS.js} +15 -13
  68. package/dist/{chunk-H3C3UXTA.js.map → chunk-LMS2RWDS.js.map} +1 -1
  69. package/dist/{chunk-RA2BER5P.js → chunk-MR5JWMC2.js} +2 -2
  70. package/dist/{chunk-JCTHXG33.js → chunk-NHOGTAPK.js} +2 -2
  71. package/dist/{chunk-VM7VAFJW.js → chunk-NVYDWVXN.js} +2 -1
  72. package/dist/{chunk-N2VB6UUE.js → chunk-O6IDYZVW.js} +7 -5
  73. package/dist/{chunk-N2VB6UUE.js.map → chunk-O6IDYZVW.js.map} +1 -1
  74. package/dist/{chunk-MTMR65NM.js → chunk-OHMLEITS.js} +2 -2
  75. package/dist/{chunk-NUQF5F5J.js → chunk-PNDEKFF3.js} +2 -2
  76. package/dist/{chunk-S2HW3CBF.js → chunk-PX7OTUNU.js} +6 -6
  77. package/dist/{chunk-4F5WGZRP.js → chunk-Q7FFJMFO.js} +19 -15
  78. package/dist/chunk-Q7FFJMFO.js.map +1 -0
  79. package/dist/{chunk-D4XQX4W7.js → chunk-QJJPTS6L.js} +5 -3
  80. package/dist/{chunk-D4XQX4W7.js.map → chunk-QJJPTS6L.js.map} +1 -1
  81. package/dist/chunk-RAN3CF33.js +1875 -0
  82. package/dist/chunk-RAN3CF33.js.map +1 -0
  83. package/dist/{chunk-YYWZ2MSL.js → chunk-S7V4F7HC.js} +16 -11
  84. package/dist/chunk-S7V4F7HC.js.map +1 -0
  85. package/dist/{chunk-CXL6ES7O.js → chunk-SCKVDD4E.js} +4 -4
  86. package/dist/{chunk-ZB3OFSRB.js → chunk-TJYJ4BNK.js} +4 -4
  87. package/dist/{chunk-MJZ5HYYL.js → chunk-TR5TNPWT.js} +2 -2
  88. package/dist/{chunk-MJZ5HYYL.js.map → chunk-TR5TNPWT.js.map} +1 -1
  89. package/dist/chunk-TT5UDTDM.js +888 -0
  90. package/dist/chunk-TT5UDTDM.js.map +1 -0
  91. package/dist/{chunk-N3DYE6LJ.js → chunk-TWYJ2TVS.js} +7 -7
  92. package/dist/{chunk-BM43RJIS.js → chunk-UQI463L3.js} +9 -9
  93. package/dist/{chunk-FIR2MAGS.js → chunk-V27DOGAO.js} +2 -2
  94. package/dist/{chunk-O4O6JOGD.js → chunk-VSDXZAQU.js} +14 -20
  95. package/dist/chunk-VSDXZAQU.js.map +1 -0
  96. package/dist/{chunk-4DFBBU4A.js → chunk-VSHMXMBZ.js} +2 -2
  97. package/dist/{chunk-ROZDHPKA.js → chunk-VZSATUI7.js} +4 -4
  98. package/dist/{chunk-EOJEPEYY.js → chunk-W5OZMYMX.js} +2 -2
  99. package/dist/{chunk-KERICP5Y.js → chunk-WW4JATBJ.js} +6 -6
  100. package/dist/{chunk-SSQZB5SQ.js → chunk-XG6PVB5S.js} +11 -1
  101. package/dist/chunk-XG6PVB5S.js.map +1 -0
  102. package/dist/{chunk-TDG2S5UE.js → chunk-XQKRD5A3.js} +4 -4
  103. package/dist/{chunk-GGTCSMNX.js → chunk-XSP3TUFN.js} +5 -5
  104. package/dist/{chunk-UVC3BUKU.js → chunk-XTMONCQE.js} +6 -405
  105. package/dist/chunk-XTMONCQE.js.map +1 -0
  106. package/dist/{chunk-WRWW6SGG.js → chunk-YB3KD5RI.js} +3 -3
  107. package/dist/chunk-ZAOJYN2D.js +159 -0
  108. package/dist/chunk-ZAOJYN2D.js.map +1 -0
  109. package/dist/{chunk-FKELQCGN.js → chunk-ZKIXGFID.js} +2 -2
  110. package/dist/{chunk-BY4THWAQ.js → chunk-ZT3ERG4B.js} +3 -3
  111. package/dist/chunk-ZTRC37NH.js +38 -0
  112. package/dist/chunk-ZTRC37NH.js.map +1 -0
  113. package/dist/{chunk-LXJ4FZ7Y.js → chunk-ZW4YASUB.js} +4 -4
  114. package/dist/{chunk-E6JYRVR5.js → chunk-ZX4TOTZS.js} +27 -8
  115. package/dist/chunk-ZX4TOTZS.js.map +1 -0
  116. package/dist/{cli-4RTNEVVX.js → cli-4QAH3DBX.js} +9 -11
  117. package/dist/{cli-IIFCE6GY.js → cli-6476FRBK.js} +16 -19
  118. package/dist/{cli-IIFCE6GY.js.map → cli-6476FRBK.js.map} +1 -1
  119. package/dist/{cli-DQRFSU7U.js → cli-7XT7O5YM.js} +16 -18
  120. package/dist/{cli-DQRFSU7U.js.map → cli-7XT7O5YM.js.map} +1 -1
  121. package/dist/{cli-PCZ7XNCO.js → cli-FGCHGJYZ.js} +70 -53
  122. package/dist/cli-FGCHGJYZ.js.map +1 -0
  123. package/dist/{cli-6J4P5MLU.js → cli-JE4LG35H.js} +4 -4
  124. package/dist/{cli-K5635N25.js → cli-U3622DIB.js} +14 -17
  125. package/dist/{cli-K5635N25.js.map → cli-U3622DIB.js.map} +1 -1
  126. package/dist/{cli-K5QWXB7H.js → cli-ULHJTJHH.js} +74 -41
  127. package/dist/cli-ULHJTJHH.js.map +1 -0
  128. package/dist/{cli-ISKXSN3P.js → cli-W7B2PNZO.js} +18 -21
  129. package/dist/{cli-ISKXSN3P.js.map → cli-W7B2PNZO.js.map} +1 -1
  130. package/dist/{cli-FTSJQSB4.js → cli-YGMXZ46V.js} +17 -20
  131. package/dist/{cli-FTSJQSB4.js.map → cli-YGMXZ46V.js.map} +1 -1
  132. package/dist/{cli-TCHSYJLB.js → cli-YINQL2NI.js} +28 -29
  133. package/dist/{cli-TCHSYJLB.js.map → cli-YINQL2NI.js.map} +1 -1
  134. package/dist/cli-Z3ART5DN.js +152 -0
  135. package/dist/cli-Z3ART5DN.js.map +1 -0
  136. package/dist/cli.js +15 -15
  137. package/dist/cli.js.map +1 -1
  138. package/dist/{config-7I5CHHRZ.js → config-2YJPJ36T.js} +5 -5
  139. package/dist/docmeta.js +8 -10
  140. package/dist/docmeta.js.map +1 -1
  141. package/dist/github-64ZVAUIT.js +28 -0
  142. package/dist/github-ARGPMQD2.js +32 -0
  143. package/dist/github-YHJABBUI.js +33 -0
  144. package/dist/graph/runtime.js.map +1 -1
  145. package/dist/{host-YSTYO5DX.js → host-JT27OWTC.js} +3 -3
  146. package/dist/index.d.ts +334 -24
  147. package/dist/index.js +218 -203
  148. package/dist/index.js.map +1 -1
  149. package/dist/{json-7Z2IFGB3.js → json-CVOVXB7O.js} +12 -15
  150. package/dist/json-QNGJFUY2.js +40 -0
  151. package/dist/{labels-SE2WL7WD.js → labels-5WOKC3VR.js} +11 -14
  152. package/dist/{labels-SE2WL7WD.js.map → labels-5WOKC3VR.js.map} +1 -1
  153. package/dist/lint-OQGB4DWJ.js +32 -0
  154. package/dist/list-EDAB7X5Y.js +30 -0
  155. package/dist/list-OQ3IYV2W.js +37 -0
  156. package/dist/list-PN6JKYNX.js +33 -0
  157. package/dist/{page-A2Y4ZMV4.js → page-TPNMHL27.js} +11 -14
  158. package/dist/{prepare-M2COBP5O.js → prepare-3V2QYBKL.js} +20 -22
  159. package/dist/{prepare-M2COBP5O.js.map → prepare-3V2QYBKL.js.map} +1 -1
  160. package/dist/{pretty-SFFOMSG5.js → pretty-EZ2NFU3C.js} +13 -16
  161. package/dist/pretty-HO2LYG5N.js +41 -0
  162. package/dist/{pretty-D3DZFC5U.js → pretty-K3M4AW2D.js} +12 -15
  163. package/dist/{provider-JY2I3VLF.js → provider-YWNTTQPA.js} +3 -3
  164. package/dist/{release-VHHASAG7.js → release-EFLQT3FW.js} +3 -3
  165. package/dist/{reporters-TO7Q6JYF.js → reporters-4R2E7PRJ.js} +6 -6
  166. package/dist/{reporters-UTLJVSWX.js → reporters-YVLLFBO5.js} +11 -14
  167. package/dist/run-H4BOR2FR.js +36 -0
  168. package/dist/{sarif-IAGMXA6C.js → sarif-GWHWJJFP.js} +10 -13
  169. package/dist/sarif-SJFVSOBV.js +33 -0
  170. package/dist/sarif-YBFD5OUL.js +28 -0
  171. package/dist/{strategy-UKRA6WO4.js → strategy-T56PH2VK.js} +29 -46
  172. package/dist/strategy-T56PH2VK.js.map +1 -0
  173. package/dist/{term-AMORBEO7.js → term-33YSMISR.js} +18 -22
  174. package/dist/{term-AMORBEO7.js.map → term-33YSMISR.js.map} +1 -1
  175. package/dist/{validate-CDTKFZUV.js → validate-6R5UBDGU.js} +6 -7
  176. package/package.json +1 -1
  177. package/plugin/manni/.claude-plugin/plugin.json +11 -3
  178. package/plugin/manni/hooks/graph-server.mjs +3 -3
  179. package/plugin/manni/hooks/hooks.json +4 -4
  180. package/plugin/manni/hooks/manni.mjs +18 -5
  181. package/plugin/manni/hooks/page-metadata.mjs +81 -7
  182. package/plugin/manni/hooks/tracevals.mjs +7 -0
  183. package/plugin/manni/skills/fix/SKILL.md +8 -4
  184. package/shapes/graph/shapes-1.3.0.ttl +1250 -0
  185. package/dist/build-AYLD6V6Y.js +0 -38
  186. package/dist/calibrate-2HZFACIX.js +0 -43
  187. package/dist/capture-NMDIPC6S.js +0 -39
  188. package/dist/check-KNQV7GLU.js +0 -33
  189. package/dist/check-OH4KKXP3.js +0 -33
  190. package/dist/check-PRAMKQCI.js +0 -47
  191. package/dist/chunk-4F5WGZRP.js.map +0 -1
  192. package/dist/chunk-4H3IOF52.js +0 -3200
  193. package/dist/chunk-4H3IOF52.js.map +0 -1
  194. package/dist/chunk-5CJ3P5O3.js.map +0 -1
  195. package/dist/chunk-A633WB3N.js.map +0 -1
  196. package/dist/chunk-ACJUZFRT.js.map +0 -1
  197. package/dist/chunk-B2242FYO.js.map +0 -1
  198. package/dist/chunk-CT5WSUUZ.js +0 -441
  199. package/dist/chunk-CT5WSUUZ.js.map +0 -1
  200. package/dist/chunk-DNF42MK7.js +0 -326
  201. package/dist/chunk-DNF42MK7.js.map +0 -1
  202. package/dist/chunk-E6JYRVR5.js.map +0 -1
  203. package/dist/chunk-ISDFYXLA.js.map +0 -1
  204. package/dist/chunk-JPXC62SD.js.map +0 -1
  205. package/dist/chunk-LPJ3IB26.js.map +0 -1
  206. package/dist/chunk-MPXMQGJI.js.map +0 -1
  207. package/dist/chunk-O4O6JOGD.js.map +0 -1
  208. package/dist/chunk-ODSIHEIW.js.map +0 -1
  209. package/dist/chunk-OVUQNM7Y.js.map +0 -1
  210. package/dist/chunk-QSPH4F56.js.map +0 -1
  211. package/dist/chunk-SIREOHLW.js +0 -233
  212. package/dist/chunk-SIREOHLW.js.map +0 -1
  213. package/dist/chunk-SSQZB5SQ.js.map +0 -1
  214. package/dist/chunk-SUTY4VCZ.js.map +0 -1
  215. package/dist/chunk-UP6NBQ62.js +0 -2
  216. package/dist/chunk-UVC3BUKU.js.map +0 -1
  217. package/dist/chunk-WI3PPQQX.js +0 -164
  218. package/dist/chunk-WI3PPQQX.js.map +0 -1
  219. package/dist/chunk-YM2W43DI.js.map +0 -1
  220. package/dist/chunk-YYWZ2MSL.js.map +0 -1
  221. package/dist/chunk-ZPLVANY2.js +0 -15
  222. package/dist/chunk-ZPLVANY2.js.map +0 -1
  223. package/dist/cli-K5QWXB7H.js.map +0 -1
  224. package/dist/cli-PCZ7XNCO.js.map +0 -1
  225. package/dist/cli-TM2JCTQT.js +0 -84
  226. package/dist/cli-TM2JCTQT.js.map +0 -1
  227. package/dist/github-BUK5CVQW.js +0 -27
  228. package/dist/github-CMAZWS76.js +0 -31
  229. package/dist/github-NXR4QMMM.js +0 -35
  230. package/dist/json-NZSGRYOE.js +0 -34
  231. package/dist/lint-VUYM5PPM.js +0 -35
  232. package/dist/list-4JGOXLOZ.js +0 -33
  233. package/dist/list-LTF25DQE.js +0 -33
  234. package/dist/list-WD3TZS5R.js +0 -36
  235. package/dist/pretty-R67YU6TU.js +0 -35
  236. package/dist/run-BDGYRUXJ.js +0 -39
  237. package/dist/sarif-EHAMGCVR.js +0 -36
  238. package/dist/sarif-GJYLRXLS.js +0 -30
  239. package/dist/strategy-UKRA6WO4.js.map +0 -1
  240. package/dist/validate-CDTKFZUV.js.map +0 -1
  241. /package/dist/{batch-J626LZ22.js.map → batch-C3NN2YXB.js.map} +0 -0
  242. /package/dist/{build-AYLD6V6Y.js.map → build-CEVEAHN7.js.map} +0 -0
  243. /package/dist/{calibrate-2HZFACIX.js.map → calibrate-CSKPY5AK.js.map} +0 -0
  244. /package/dist/{capture-NMDIPC6S.js.map → capture-3HDBIHH6.js.map} +0 -0
  245. /package/dist/{check-KNQV7GLU.js.map → check-555TCJGF.js.map} +0 -0
  246. /package/dist/{check-OH4KKXP3.js.map → check-KGJBV42O.js.map} +0 -0
  247. /package/dist/{check-PRAMKQCI.js.map → check-KXWHSCCR.js.map} +0 -0
  248. /package/dist/{check-RCSQARQE.js.map → check-MZSXCS2M.js.map} +0 -0
  249. /package/dist/{check-PQ7S5I3I.js.map → check-QNHLTYPN.js.map} +0 -0
  250. /package/dist/{chunk-YIHIRMXN.js.map → chunk-2VLZDU4E.js.map} +0 -0
  251. /package/dist/{chunk-D54BQM5P.js.map → chunk-37Q7WEJJ.js.map} +0 -0
  252. /package/dist/{chunk-P5DWBG6T.js.map → chunk-46MMIJWR.js.map} +0 -0
  253. /package/dist/{chunk-P6XZ44C2.js.map → chunk-4LYVTR2T.js.map} +0 -0
  254. /package/dist/{chunk-6FY573GB.js.map → chunk-64DULZIG.js.map} +0 -0
  255. /package/dist/{chunk-TAJYMXMM.js.map → chunk-6SVHI2U6.js.map} +0 -0
  256. /package/dist/{chunk-C5BXSQDO.js.map → chunk-A67EJ3J6.js.map} +0 -0
  257. /package/dist/{chunk-2GTR24SA.js.map → chunk-BLDL23RY.js.map} +0 -0
  258. /package/dist/{chunk-CFMI74TP.js.map → chunk-BZ74YUYE.js.map} +0 -0
  259. /package/dist/{chunk-NDPQ2GQ4.js.map → chunk-CHTSA3YR.js.map} +0 -0
  260. /package/dist/{chunk-Z2T5U7HN.js.map → chunk-CQTESLC5.js.map} +0 -0
  261. /package/dist/{chunk-245W2Q7C.js.map → chunk-D4BGNAN5.js.map} +0 -0
  262. /package/dist/{chunk-XPO655IX.js.map → chunk-E3HYSNS6.js.map} +0 -0
  263. /package/dist/{chunk-MJZK7G4B.js.map → chunk-FXE5K56B.js.map} +0 -0
  264. /package/dist/{chunk-QGBNWEWS.js.map → chunk-IC3FJWIF.js.map} +0 -0
  265. /package/dist/{chunk-OQR3VVAX.js.map → chunk-IDDRHB7E.js.map} +0 -0
  266. /package/dist/{chunk-OXCWCEVV.js.map → chunk-JA7DWOVV.js.map} +0 -0
  267. /package/dist/{chunk-HGUCJ3K3.js.map → chunk-JVE5YQN4.js.map} +0 -0
  268. /package/dist/{chunk-RA2BER5P.js.map → chunk-MR5JWMC2.js.map} +0 -0
  269. /package/dist/{chunk-JCTHXG33.js.map → chunk-NHOGTAPK.js.map} +0 -0
  270. /package/dist/{chunk-VM7VAFJW.js.map → chunk-NVYDWVXN.js.map} +0 -0
  271. /package/dist/{chunk-MTMR65NM.js.map → chunk-OHMLEITS.js.map} +0 -0
  272. /package/dist/{chunk-NUQF5F5J.js.map → chunk-PNDEKFF3.js.map} +0 -0
  273. /package/dist/{chunk-S2HW3CBF.js.map → chunk-PX7OTUNU.js.map} +0 -0
  274. /package/dist/{chunk-CXL6ES7O.js.map → chunk-SCKVDD4E.js.map} +0 -0
  275. /package/dist/{chunk-ZB3OFSRB.js.map → chunk-TJYJ4BNK.js.map} +0 -0
  276. /package/dist/{chunk-N3DYE6LJ.js.map → chunk-TWYJ2TVS.js.map} +0 -0
  277. /package/dist/{chunk-BM43RJIS.js.map → chunk-UQI463L3.js.map} +0 -0
  278. /package/dist/{chunk-FIR2MAGS.js.map → chunk-V27DOGAO.js.map} +0 -0
  279. /package/dist/{chunk-4DFBBU4A.js.map → chunk-VSHMXMBZ.js.map} +0 -0
  280. /package/dist/{chunk-ROZDHPKA.js.map → chunk-VZSATUI7.js.map} +0 -0
  281. /package/dist/{chunk-EOJEPEYY.js.map → chunk-W5OZMYMX.js.map} +0 -0
  282. /package/dist/{chunk-KERICP5Y.js.map → chunk-WW4JATBJ.js.map} +0 -0
  283. /package/dist/{chunk-TDG2S5UE.js.map → chunk-XQKRD5A3.js.map} +0 -0
  284. /package/dist/{chunk-GGTCSMNX.js.map → chunk-XSP3TUFN.js.map} +0 -0
  285. /package/dist/{chunk-WRWW6SGG.js.map → chunk-YB3KD5RI.js.map} +0 -0
  286. /package/dist/{chunk-FKELQCGN.js.map → chunk-ZKIXGFID.js.map} +0 -0
  287. /package/dist/{chunk-BY4THWAQ.js.map → chunk-ZT3ERG4B.js.map} +0 -0
  288. /package/dist/{chunk-LXJ4FZ7Y.js.map → chunk-ZW4YASUB.js.map} +0 -0
  289. /package/dist/{chunk-UP6NBQ62.js.map → cli-4QAH3DBX.js.map} +0 -0
  290. /package/dist/{cli-6J4P5MLU.js.map → cli-JE4LG35H.js.map} +0 -0
  291. /package/dist/{cli-4RTNEVVX.js.map → config-2YJPJ36T.js.map} +0 -0
  292. /package/dist/{config-7I5CHHRZ.js.map → github-64ZVAUIT.js.map} +0 -0
  293. /package/dist/{github-BUK5CVQW.js.map → github-ARGPMQD2.js.map} +0 -0
  294. /package/dist/{github-CMAZWS76.js.map → github-YHJABBUI.js.map} +0 -0
  295. /package/dist/{github-NXR4QMMM.js.map → host-JT27OWTC.js.map} +0 -0
  296. /package/dist/{host-YSTYO5DX.js.map → json-CVOVXB7O.js.map} +0 -0
  297. /package/dist/{json-7Z2IFGB3.js.map → json-QNGJFUY2.js.map} +0 -0
  298. /package/dist/{json-NZSGRYOE.js.map → lint-OQGB4DWJ.js.map} +0 -0
  299. /package/dist/{lint-VUYM5PPM.js.map → list-EDAB7X5Y.js.map} +0 -0
  300. /package/dist/{list-4JGOXLOZ.js.map → list-OQ3IYV2W.js.map} +0 -0
  301. /package/dist/{list-LTF25DQE.js.map → list-PN6JKYNX.js.map} +0 -0
  302. /package/dist/{list-WD3TZS5R.js.map → page-TPNMHL27.js.map} +0 -0
  303. /package/dist/{page-A2Y4ZMV4.js.map → pretty-EZ2NFU3C.js.map} +0 -0
  304. /package/dist/{pretty-D3DZFC5U.js.map → pretty-HO2LYG5N.js.map} +0 -0
  305. /package/dist/{pretty-R67YU6TU.js.map → pretty-K3M4AW2D.js.map} +0 -0
  306. /package/dist/{pretty-SFFOMSG5.js.map → provider-YWNTTQPA.js.map} +0 -0
  307. /package/dist/{release-VHHASAG7.js.map → release-EFLQT3FW.js.map} +0 -0
  308. /package/dist/{provider-JY2I3VLF.js.map → reporters-4R2E7PRJ.js.map} +0 -0
  309. /package/dist/{reporters-TO7Q6JYF.js.map → reporters-YVLLFBO5.js.map} +0 -0
  310. /package/dist/{reporters-UTLJVSWX.js.map → run-H4BOR2FR.js.map} +0 -0
  311. /package/dist/{run-BDGYRUXJ.js.map → sarif-GWHWJJFP.js.map} +0 -0
  312. /package/dist/{sarif-EHAMGCVR.js.map → sarif-SJFVSOBV.js.map} +0 -0
  313. /package/dist/{sarif-GJYLRXLS.js.map → sarif-YBFD5OUL.js.map} +0 -0
  314. /package/dist/{sarif-IAGMXA6C.js.map → validate-6R5UBDGU.js.map} +0 -0
@@ -8,12 +8,12 @@ import {
8
8
  mergeWithMarks,
9
9
  pageMarks,
10
10
  pageSchemaSet
11
- } from "./chunk-ODSIHEIW.js";
11
+ } from "./chunk-562QZKAB.js";
12
12
  import {
13
13
  loadMetaSection,
14
14
  rebaseConfigSchemaRefs,
15
15
  schemaTrustRoot
16
- } from "./chunk-WRWW6SGG.js";
16
+ } from "./chunk-YB3KD5RI.js";
17
17
 
18
18
  // src/meta/core/page-view.ts
19
19
  async function metaPageView(opts) {
@@ -80,4 +80,4 @@ export {
80
80
  metaPageView,
81
81
  declaredAt
82
82
  };
83
- //# sourceMappingURL=chunk-MJZK7G4B.js.map
83
+ //# sourceMappingURL=chunk-FXE5K56B.js.map
@@ -1,20 +1,19 @@
1
1
  #!/usr/bin/env node
2
- import {
3
- checkStrategySet
4
- } from "./chunk-SIREOHLW.js";
5
2
  import {
6
3
  DEFAULT_STRATEGY_BASELINE_PATH,
7
4
  StrategyError,
5
+ checkStrategySet,
6
+ displayPath,
8
7
  loadStrategy
9
- } from "./chunk-DNF42MK7.js";
8
+ } from "./chunk-K5LBIAOM.js";
10
9
  import {
11
10
  RULE_ID_PREFIX
12
- } from "./chunk-O4O6JOGD.js";
11
+ } from "./chunk-VSDXZAQU.js";
13
12
  import {
14
13
  isErrorSeverity,
15
14
  resolveBaselineRequest,
16
15
  settleBaseline
17
- } from "./chunk-WRWW6SGG.js";
16
+ } from "./chunk-YB3KD5RI.js";
18
17
 
19
18
  // src/strategy/commands/check.ts
20
19
  import { existsSync } from "node:fs";
@@ -80,9 +79,13 @@ function reportedFindings(results, origin, order) {
80
79
 
81
80
  // src/strategy/commands/check.ts
82
81
  async function runCheck(opts) {
83
- const { cwd, run, set } = await loadStrategy(opts);
82
+ const { cwd, run, set, steps } = await loadStrategy(opts);
84
83
  const config = run.config;
85
- const findings = checkStrategySet(set, config?.severity === void 0 ? {} : { severity: config.severity });
84
+ const findings = checkStrategySet(set, {
85
+ ...config?.severity === void 0 ? {} : { severity: config.severity },
86
+ steps,
87
+ pagePath: (page) => displayPath(page, cwd, run.base)
88
+ });
86
89
  const { results, origin } = toResults(set, findings);
87
90
  const frame = { cwd, base: run.configDir ?? cwd, runBase: run.base };
88
91
  let request = resolveBaselineRequest(
@@ -111,6 +114,7 @@ async function runCheck(opts) {
111
114
  // value (pages and records alike), plus each value of a record's own
112
115
  // parent field, which load-set keeps out of the references.
113
116
  references: set.references.length + parents,
117
+ steps: [...steps.values()].reduce((n, s) => n + s.length, 0),
114
118
  ...baseline === void 0 ? {} : { baseline },
115
119
  found: findings.length,
116
120
  cwd,
@@ -123,4 +127,4 @@ export {
123
127
  JUNIT_CLASSNAME,
124
128
  runCheck
125
129
  };
126
- //# sourceMappingURL=chunk-YM2W43DI.js.map
130
+ //# sourceMappingURL=chunk-HYEKQ22B.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/strategy/commands/check.ts","../src/strategy/commands/findings.ts"],"sourcesContent":["/**\n * `manni strategy check`: the pages against the records, and the records\n * against each other, with the baseline ratchet term and cite use.\n *\n * `--baseline` records the findings when the file is not there yet, and after\n * that fails only on findings it does not hold. A configured\n * `strategy.baseline` compares without the flag.\n */\nimport { existsSync } from \"node:fs\";\nimport { resolveBaselineRequest, settleBaseline } from \"../../meta/internal.js\";\nimport { checkStrategySet } from \"../core/check.js\";\nimport { DEFAULT_STRATEGY_BASELINE_PATH } from \"../core/config.js\";\nimport { StrategyError } from \"../errors.js\";\nimport { reportedFindings, summarize, toResults, type StrategyReport } from \"./findings.js\";\nimport { displayPath, loadStrategy, type StrategyCommandOptions } from \"./run.js\";\n\nexport interface CheckOptions extends StrategyCommandOptions {\n /** `--baseline`. */\n baseline?: boolean;\n}\n\nexport async function runCheck(opts: CheckOptions): Promise<StrategyReport> {\n const { cwd, run, set, steps } = await loadStrategy(opts);\n const config = run.config;\n const findings = checkStrategySet(set, {\n ...(config?.severity === undefined ? {} : { severity: config.severity }),\n steps,\n pagePath: (page) => displayPath(page, cwd, run.base),\n });\n const { results, origin } = toResults(set, findings);\n\n // Fingerprints must not depend on where the command was run from.\n const frame = { cwd, base: run.configDir ?? cwd, runBase: run.base };\n let request = resolveBaselineRequest(\n opts.baseline === true ? { baseline: true } : {},\n config?.baseline,\n run.configDir,\n cwd,\n { current: DEFAULT_STRATEGY_BASELINE_PATH },\n );\n if (request !== null && !existsSync(request.absPath)) {\n if (opts.baseline !== true) {\n throw new StrategyError(`Baseline \"${request.label}\" not found. Record one with \\`manni strategy check --baseline\\`.`);\n }\n request = { ...request, write: true };\n }\n const { results: reported, baseline } = await settleBaseline(results, request, frame);\n\n const parents = set.records.reduce((n, r) => n + r.parents.length, 0);\n return {\n findings: reportedFindings(reported, origin, findings),\n results: reported,\n origin,\n summary: summarize(reported, baseline),\n frame,\n records: set.records.length,\n // Two kinds, both resolved: every audiences:, personas: and journeys:\n // value (pages and records alike), plus each value of a record's own\n // parent field, which load-set keeps out of the references.\n references: set.references.length + parents,\n steps: [...steps.values()].reduce((n, s) => n + s.length, 0),\n ...(baseline === undefined ? {} : { baseline }),\n found: findings.length,\n cwd,\n base: run.base,\n };\n}\n","/**\n * The report `check` returns, and the bridge from strategy findings to meta's\n * `ValidationResult`, so the SARIF and JUnit renderers and the baseline\n * ratchet work unchanged, as term's adapter does.\n *\n * FieldError: schema `manni:strategy`, keyword = the rule, instancePath\n * `/<field>` when the finding concerns one field and `\"\"` when it concerns a\n * whole record. The subject is the record, the field and what the finding\n * says before its advice, with any `file:line` taken out, so a moved line or\n * a reworded fix moves no baseline.\n */\nimport {\n isErrorSeverity,\n type BaselineSummary,\n type FieldError,\n type FingerprintContext,\n type RunSummary,\n type ValidationResult,\n} from \"../../meta/index.js\";\nimport { RULE_ID_PREFIX } from \"../core/severity.js\";\nimport type { StrategyFinding, StrategySet } from \"../types.js\";\n\nexport const FINDING_FORMATS = [\"pretty\", \"json\", \"github\", \"sarif\", \"junit\"] as const;\nexport type FindingFormat = (typeof FINDING_FORMATS)[number];\n\n/** JUnit `classname` for the strategy tool's findings. */\nexport const JUNIT_CLASSNAME = \"manni.strategy\";\n\nexport interface StrategyReport {\n /** The findings reported: a baselined one is not among them. */\n findings: StrategyFinding[];\n /** The same findings as meta's results, for SARIF and JUnit. One per file. */\n results: ValidationResult[];\n /** Each error in `results` to the finding it came from. */\n origin: ReadonlyMap<FieldError, StrategyFinding>;\n summary: RunSummary;\n frame: FingerprintContext;\n /** Records in the set. */\n records: number;\n /** Values of audiences:, personas:, journeys: and audience: the run read. */\n references: number;\n /** Steps on the set's journeys, each held to the page it names. */\n steps: number;\n baseline?: BaselineSummary;\n /** Findings before the baseline, for the line a recording run prints. */\n found: number;\n /** Where the run stood, for the paths the reporters print. */\n cwd: string;\n /** What finding files are relative to. */\n base: string;\n}\n\nconst LINE_REFERENCE = /:\\d+\\b/g;\n\nfunction toFieldError(finding: StrategyFinding): FieldError {\n const said = finding.key ?? finding.message;\n const subject = [finding.id ?? \"\", finding.field ?? \"\", said.replace(LINE_REFERENCE, \"\")].join(\"\\u0000\");\n const error: FieldError = {\n schema: RULE_ID_PREFIX,\n instancePath: finding.field === undefined ? \"\" : `/${finding.field}`,\n message: finding.message,\n keyword: finding.rule,\n subject,\n severity: finding.severity,\n };\n if (finding.line !== undefined) error.line = finding.line;\n return error;\n}\n\n/** One result per file: every record's file, every file a reference was read from, and every file a finding sits in. */\nexport function toResults(\n set: StrategySet,\n findings: readonly StrategyFinding[],\n): { results: ValidationResult[]; origin: Map<FieldError, StrategyFinding> } {\n const origin = new Map<FieldError, StrategyFinding>();\n const byFile = new Map<string, FieldError[]>();\n for (const { file } of [...set.records, ...set.references]) if (!byFile.has(file)) byFile.set(file, []);\n for (const finding of findings) {\n const error = toFieldError(finding);\n origin.set(error, finding);\n byFile.set(finding.file, [...(byFile.get(finding.file) ?? []), error]);\n }\n const results = [...byFile.keys()].sort().map((file): ValidationResult => {\n const errors = byFile.get(file) ?? [];\n return { file, format: \"strategy\", ok: !errors.some(isErrorSeverity), schemas: [RULE_ID_PREFIX], errors };\n });\n return { results, origin };\n}\n\n/** The run summary meta's renderers read, from results a baseline may have thinned. */\nexport function summarize(results: readonly ValidationResult[], baseline?: BaselineSummary): RunSummary {\n const failed = results.filter((r) => !r.ok).length;\n const count = (keep: (e: FieldError) => boolean): number => results.reduce((n, r) => n + r.errors.filter(keep).length, 0);\n const warnings = count((e) => e.severity === \"warning\");\n const notices = count((e) => e.severity === \"notice\");\n return {\n files: results.length,\n passed: results.length - failed,\n failed,\n errors: count(isErrorSeverity),\n ...(warnings > 0 ? { warnings } : {}),\n ...(notices > 0 ? { notices } : {}),\n ...(baseline ? { baseline } : {}),\n };\n}\n\n/** The findings still reported once a baseline has thinned the results, in report order. */\nexport function reportedFindings(\n results: readonly ValidationResult[],\n origin: ReadonlyMap<FieldError, StrategyFinding>,\n order: readonly StrategyFinding[],\n): StrategyFinding[] {\n const kept = new Set<StrategyFinding>();\n for (const result of results) {\n for (const error of result.errors) {\n const finding = origin.get(error);\n if (finding !== undefined) kept.add(finding);\n }\n }\n return order.filter((finding) => kept.has(finding));\n}\n"],"mappings":"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","names":[]}
@@ -6,7 +6,7 @@ import {
6
6
  extractFrontmatter,
7
7
  extractorForExtension,
8
8
  locateFrontmatter
9
- } from "./chunk-WRWW6SGG.js";
9
+ } from "./chunk-YB3KD5RI.js";
10
10
  import {
11
11
  errorMessage
12
12
  } from "./chunk-G3T47CFV.js";
@@ -3244,4 +3244,4 @@ export {
3244
3244
  unsupportedFormatMessage,
3245
3245
  listFormats
3246
3246
  };
3247
- //# sourceMappingURL=chunk-QGBNWEWS.js.map
3247
+ //# sourceMappingURL=chunk-IC3FJWIF.js.map
@@ -2,10 +2,10 @@
2
2
  import {
3
3
  resultFor,
4
4
  splitBaselined
5
- } from "./chunk-BY4THWAQ.js";
5
+ } from "./chunk-ZT3ERG4B.js";
6
6
  import {
7
7
  errorSite
8
- } from "./chunk-CXL6ES7O.js";
8
+ } from "./chunk-SCKVDD4E.js";
9
9
  import {
10
10
  escapeWorkflowCommandMessage,
11
11
  escapeWorkflowCommandProperty,
@@ -51,4 +51,4 @@ export {
51
51
  findingMessage,
52
52
  renderCheckGithub
53
53
  };
54
- //# sourceMappingURL=chunk-OQR3VVAX.js.map
54
+ //# sourceMappingURL=chunk-IDDRHB7E.js.map
@@ -0,0 +1,28 @@
1
+ #!/usr/bin/env node
2
+
3
+ // src/strategy/types.ts
4
+ var PAGE_FIELDS = {
5
+ audience: "audiences",
6
+ persona: "personas",
7
+ journey: "journeys"
8
+ };
9
+ var PARENTS = { persona: "audience", journey: "personas" };
10
+ var STRATEGY_RULES = [
11
+ "undefined-reference",
12
+ "duplicate-id",
13
+ "missing-parent",
14
+ "orphan-record",
15
+ "unserved-journey",
16
+ "unused-record",
17
+ "broken-step",
18
+ "stale-step",
19
+ "missing-journey",
20
+ "unwritten-step"
21
+ ];
22
+
23
+ export {
24
+ PAGE_FIELDS,
25
+ PARENTS,
26
+ STRATEGY_RULES
27
+ };
28
+ //# sourceMappingURL=chunk-INOVEO32.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/strategy/types.ts"],"sourcesContent":["/**\n * The strategy domain's records, references, findings and config (proposal\n * 0102). A record is a page declaring `type: audience`, `type: persona` or\n * `type: journey`. A reference is a value of a page's `audiences:`,\n * `personas:` or `journeys:`, read through meta's merged view so a value in a\n * `{page}.meta.yaml` counts. A journey's own `personas:` is its parent field,\n * not a reference.\n */\nimport type { Guidance } from \"../shared/guidance.js\";\nimport type { ConfigFile } from \"../shared/config-file.js\";\nimport type { CollectionConfig } from \"../shared/collections.js\";\nimport type { Severity } from \"../shared/severity.js\";\nimport { RECORD_TYPES, type RecordField, type RecordType } from \"../shared/reference-fields.js\";\n\n/** The three record types, parent first, from `src/shared/reference-fields.ts`. */\nexport { RECORD_TYPES, type RecordType };\n\n/** The page field that names records of each type. Each is a key of `RECORD_FIELDS`. */\nexport const PAGE_FIELDS = {\n audience: \"audiences\",\n persona: \"personas\",\n journey: \"journeys\",\n} as const satisfies Record<RecordType, RecordField>;\nexport type PageField = (typeof PAGE_FIELDS)[RecordType];\n\n/**\n * The field a record names its parents in: a persona's `audience:`, a\n * journey's `personas:`. Either holds one string or a list.\n */\nexport const PARENTS = { persona: \"audience\", journey: \"personas\" } as const satisfies Record<\n Exclude<RecordType, \"audience\">,\n RecordField\n>;\nexport type ChildType = keyof typeof PARENTS;\nexport type ParentField = (typeof PARENTS)[ChildType];\n\n/** Every field whose value names a record. */\nexport type ReferenceField = PageField | ParentField;\n\n/** Every rule `strategy check` reports, in the order the rules page lists them. */\nexport const STRATEGY_RULES = [\n \"undefined-reference\",\n \"duplicate-id\",\n \"missing-parent\",\n \"orphan-record\",\n \"unserved-journey\",\n \"unused-record\",\n \"broken-step\",\n \"stale-step\",\n \"missing-journey\",\n \"unwritten-step\",\n] as const;\nexport type StrategyRule = (typeof STRATEGY_RULES)[number];\n\n/** A rule's level: the family scale plus `off`, which drops the rule's findings. */\nexport type StrategySeverity = Severity | \"off\";\n\n/** A file, and the 1-based line in it when one is known. */\nexport interface At {\n file: string;\n line?: number;\n}\n\nexport interface StrategyRecord {\n /** `id:`, else the file stem. Compared case-folded. */\n id: string;\n type: RecordType;\n title?: string;\n description?: string;\n /** `lifecycle:`, from meta's `manni:lifecycle:1.0.0`. A `draft` or `archived` journey is exempt from `unserved-journey`. */\n lifecycle?: string;\n /** The page the record was read from, as the run labels it. */\n file: string;\n line: number;\n /** Where `id:` is declared, when the record declares one. */\n idAt?: At;\n /** The values of `audience:` on a persona or `personas:` on a journey, each where it is declared. Empty on an audience. */\n parents: (At & { value: string })[];\n /** A journey's `steps:`, when it carries at least one mapping. Never set on an audience or a persona. */\n steps?: StrategyStep[];\n}\n\n/**\n * One item of a journey's `steps:` (proposal 0106). A field that is not of\n * its type reads as absent; the shape is meta's to validate.\n */\nexport interface StrategyStep {\n /** The step's position in `steps:`, from 1. */\n n: number;\n stage?: string;\n doc?: string;\n exists?: boolean | \"partial\";\n note?: string;\n /** Where the step starts. */\n file: string;\n line?: number;\n docAt?: At;\n existsAt?: At;\n}\n\n/** What `strategy` makes of a step's `doc` and `exists`. */\nexport type StepState = \"served\" | \"unclaimed\" | \"partial\" | \"unwritten\" | \"broken\" | \"unchecked\";\n\nexport interface ResolvedStep extends StrategyStep {\n state: StepState;\n /** The page `doc` names, as a label of the run, when it names one. */\n page?: string;\n}\n\nexport interface StrategyReference {\n field: PageField;\n value: string;\n /** Where the value is declared: the page, or the manifest that supplied it. */\n file: string;\n line?: number;\n /** The page the value belongs to. */\n page: string;\n /** Whether that page is itself a record. A record's values are checked, never counted as a page naming. */\n record: boolean;\n}\n\nexport interface StrategySet {\n records: StrategyRecord[];\n references: StrategyReference[];\n /** The labels of the run's inputs that are not records: what a step's `doc` may name. Absent reads as none. */\n pages?: string[];\n}\n\nexport interface StrategyFinding {\n rule: StrategyRule;\n /** `manni:strategy/<rule>`. */\n ruleId: string;\n severity: Severity;\n /** What happened, then what to do about it. */\n message: string;\n /** The message before its advice: the baseline's identity. Never printed. */\n key?: string;\n guidance: Guidance;\n file: string;\n line?: number;\n /** The record the finding is about, when it is about one. */\n id?: string;\n /** The field that breaks the rule, when one does. */\n field?: ReferenceField | \"steps\";\n}\n\n/** The `strategy:` section. Every key is optional. */\nexport interface StrategyConfig {\n severity?: Partial<Record<StrategyRule, StrategySeverity>>;\n baseline?: string;\n allowEmpty?: boolean;\n respectGitignore?: boolean;\n}\n\n/** What every command core resolves before touching a file. */\nexport interface StrategyRun {\n config: StrategyConfig | null;\n /** The positional inputs, or the selected collections' `paths:`. */\n inputs: string[];\n /** Directory `inputs` resolve from: cwd for positional inputs, the config directory for collections. */\n base: string;\n collections: CollectionConfig[];\n fromCollections: boolean;\n configDir?: string;\n configPath?: string;\n configSource?: string;\n configFile?: ConfigFile;\n}\n"],"mappings":";;;AAkBO,IAAM,cAAc;AAAA,EACzB,UAAU;AAAA,EACV,SAAS;AAAA,EACT,SAAS;AACX;AAOO,IAAM,UAAU,EAAE,SAAS,YAAY,SAAS,WAAW;AAW3D,IAAM,iBAAiB;AAAA,EAC5B;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AACF;","names":[]}
@@ -0,0 +1,409 @@
1
+ #!/usr/bin/env node
2
+ import {
3
+ metaProvenanceEntries
4
+ } from "./chunk-LCMBG4LY.js";
5
+ import {
6
+ __default3 as __default,
7
+ extractFrontmatter
8
+ } from "./chunk-YB3KD5RI.js";
9
+
10
+ // src/tracevals/trace/availability.ts
11
+ function newAvailability() {
12
+ return { recorded: false, skills: [], agents: [], tools: [], mcpServers: [] };
13
+ }
14
+ function availableAt(entries, index) {
15
+ return entries.filter(
16
+ (e) => e.offeredAt <= index && (e.withdrawnAt === void 0 || index < e.withdrawnAt)
17
+ );
18
+ }
19
+ function offeredNames(entries) {
20
+ return new Set(entries.map((e) => e.name));
21
+ }
22
+ function joinDescriptions(content, names) {
23
+ const byName = new Map(
24
+ names.map((name) => [name, void 0])
25
+ );
26
+ let current;
27
+ for (const raw of content.split("\n")) {
28
+ const line = raw.trimEnd();
29
+ if (line.startsWith("- ")) {
30
+ const body = line.slice(2);
31
+ let best;
32
+ for (const name of names) {
33
+ if (body !== name && !body.startsWith(`${name}:`)) continue;
34
+ if (best === void 0 || name.length > best.length) best = name;
35
+ }
36
+ current = best;
37
+ if (best === void 0) continue;
38
+ const rest = body.slice(best.length).replace(/^:\s*/, "").trim();
39
+ byName.set(best, rest.length > 0 ? rest : void 0);
40
+ continue;
41
+ }
42
+ if (current === void 0) continue;
43
+ const continued = line.trim();
44
+ if (continued.length === 0) continue;
45
+ const previous = byName.get(current);
46
+ byName.set(current, previous ? `${previous}
47
+ ${continued}` : continued);
48
+ }
49
+ return byName;
50
+ }
51
+ function describedLines(names, lines) {
52
+ const byName = /* @__PURE__ */ new Map();
53
+ names.forEach((name, i) => {
54
+ const line = lines[i];
55
+ if (typeof line !== "string") {
56
+ byName.set(name, void 0);
57
+ return;
58
+ }
59
+ const body = line.startsWith("- ") ? line.slice(2) : line;
60
+ const rest = body.startsWith(`${name}:`) ? body.slice(name.length + 1).trim() : body === name ? "" : body.trim();
61
+ byName.set(name, rest.length > 0 ? rest : void 0);
62
+ });
63
+ return byName;
64
+ }
65
+ var asStrings = (value) => Array.isArray(value) ? value.filter((v) => typeof v === "string") : [];
66
+ function newReplay() {
67
+ return {
68
+ roster: newAvailability(),
69
+ open: /* @__PURE__ */ new Map([
70
+ ["skill", /* @__PURE__ */ new Map()],
71
+ ["agent", /* @__PURE__ */ new Map()],
72
+ ["tool", /* @__PURE__ */ new Map()],
73
+ ["mcp-server", /* @__PURE__ */ new Map()]
74
+ ])
75
+ };
76
+ }
77
+ function listFor(roster, kind) {
78
+ if (kind === "skill") return roster.skills;
79
+ if (kind === "agent") return roster.agents;
80
+ if (kind === "tool") return roster.tools;
81
+ return roster.mcpServers;
82
+ }
83
+ function offer(replay, kind, name, index, description, status) {
84
+ const open = replay.open.get(kind);
85
+ const existing = open.get(name);
86
+ if (existing !== void 0) {
87
+ if (existing.description === void 0 && description !== void 0) {
88
+ existing.description = description;
89
+ }
90
+ if (status !== void 0) existing.status = status;
91
+ return;
92
+ }
93
+ const entry = { kind, name, offeredAt: index };
94
+ if (description !== void 0) entry.description = description;
95
+ if (status !== void 0) entry.status = status;
96
+ open.set(name, entry);
97
+ listFor(replay.roster, kind).push(entry);
98
+ }
99
+ function withdraw(replay, kind, name, index) {
100
+ const open = replay.open.get(kind);
101
+ const entry = open.get(name);
102
+ if (entry === void 0) return;
103
+ entry.withdrawnAt = index;
104
+ open.delete(name);
105
+ }
106
+ function openNames(replay, kind) {
107
+ return [...replay.open.get(kind).keys()];
108
+ }
109
+ function applyAvailabilityRecord(replay, attachment, index) {
110
+ if (typeof attachment !== "object" || attachment === null) return false;
111
+ const record = attachment;
112
+ const type = record.type;
113
+ if (type === "skill_listing") {
114
+ const names = asStrings(record.names);
115
+ const content = typeof record.content === "string" ? record.content : "";
116
+ if (record.isInitial === true) {
117
+ for (const name of openNames(replay, "skill")) {
118
+ if (!names.includes(name)) withdraw(replay, "skill", name, index);
119
+ }
120
+ }
121
+ const described = joinDescriptions(content, names);
122
+ for (const name of names) {
123
+ offer(replay, "skill", name, index, described.get(name));
124
+ }
125
+ return true;
126
+ }
127
+ if (type === "agent_listing_delta") {
128
+ const added = asStrings(record.addedTypes);
129
+ const lines = asStrings(record.addedLines);
130
+ if (record.isInitial === true) {
131
+ for (const name of openNames(replay, "agent")) {
132
+ if (!added.includes(name)) withdraw(replay, "agent", name, index);
133
+ }
134
+ }
135
+ const described = describedLines(added, lines);
136
+ for (const name of added) {
137
+ offer(replay, "agent", name, index, described.get(name));
138
+ }
139
+ for (const name of asStrings(record.removedTypes)) {
140
+ withdraw(replay, "agent", name, index);
141
+ }
142
+ return true;
143
+ }
144
+ if (type === "deferred_tools_delta") {
145
+ for (const name of asStrings(record.removedNames)) {
146
+ withdraw(replay, "tool", name, index);
147
+ }
148
+ for (const name of [
149
+ ...asStrings(record.addedNames),
150
+ ...asStrings(record.readdedNames)
151
+ ]) {
152
+ offer(replay, "tool", name, index);
153
+ }
154
+ const servers = [
155
+ ...asStrings(record.pendingMcpServers).map(
156
+ (n) => [n, "pending"]
157
+ ),
158
+ ...asStrings(record.needsAuthMcpServers).map(
159
+ (n) => [n, "needs-auth"]
160
+ ),
161
+ ...asStrings(record.failedMcpServers).map(
162
+ (n) => [n, "failed"]
163
+ )
164
+ ];
165
+ for (const [name, status] of servers) {
166
+ offer(replay, "mcp-server", name, index, void 0, status);
167
+ }
168
+ return true;
169
+ }
170
+ return false;
171
+ }
172
+ function remapAvailability(roster, at) {
173
+ const shift = (entries) => entries.map((entry) => ({
174
+ ...entry,
175
+ offeredAt: at(entry.offeredAt),
176
+ ...entry.withdrawnAt !== void 0 ? { withdrawnAt: at(entry.withdrawnAt) } : {}
177
+ }));
178
+ return {
179
+ recorded: roster.recorded,
180
+ skills: shift(roster.skills),
181
+ agents: shift(roster.agents),
182
+ tools: shift(roster.tools),
183
+ mcpServers: shift(roster.mcpServers)
184
+ };
185
+ }
186
+ function foldBranchAvailability(roster, branch, branchId, spawnIndex) {
187
+ if (!branch.recorded) return;
188
+ roster.recorded = true;
189
+ const merge = (into, from) => {
190
+ const known = offeredNames(into);
191
+ for (const entry of from) {
192
+ if (known.has(entry.name)) continue;
193
+ known.add(entry.name);
194
+ into.push({
195
+ ...entry,
196
+ offeredAt: spawnIndex,
197
+ branchId,
198
+ ...entry.withdrawnAt !== void 0 ? { withdrawnAt: void 0 } : {}
199
+ });
200
+ }
201
+ };
202
+ merge(roster.skills, branch.skills);
203
+ merge(roster.agents, branch.agents);
204
+ merge(roster.tools, branch.tools);
205
+ merge(roster.mcpServers, branch.mcpServers);
206
+ }
207
+
208
+ // src/tracevals/evals/schema.ts
209
+ import { Ajv2020 } from "ajv/dist/2020.js";
210
+ var artifactEvalsSchema = __default;
211
+ var ARTIFACT_EVALS_SCHEMA_ID = __default.$id;
212
+ var ajv = new Ajv2020({ allErrors: true, allowUnionTypes: true });
213
+ ajv.addKeyword({ keyword: "x-manni-location" });
214
+ var validateArtifact = ajv.compile(artifactEvalsSchema);
215
+ function subjectOf(e) {
216
+ switch (e.keyword) {
217
+ case "required":
218
+ return e.params.missingProperty;
219
+ case "additionalProperties":
220
+ return e.params.additionalProperty;
221
+ case "format":
222
+ return e.params.format;
223
+ case "type":
224
+ return e.params.type;
225
+ default:
226
+ return void 0;
227
+ }
228
+ }
229
+ function artifactEvalsErrors(data, lineFor) {
230
+ if (validateArtifact(data)) return [];
231
+ const errors = [];
232
+ for (const raw of validateArtifact.errors ?? []) {
233
+ errors.push(toFieldError(raw, lineFor));
234
+ }
235
+ return errors;
236
+ }
237
+ function toFieldError(e, lineFor) {
238
+ const subject = subjectOf(e);
239
+ const message = subject !== void 0 && (e.keyword === "required" || e.keyword === "additionalProperties") ? `${e.message ?? "is invalid"} ("${subject}")` : e.message ?? "is invalid";
240
+ const line = lineFor(e.instancePath);
241
+ return {
242
+ schema: ARTIFACT_EVALS_SCHEMA_ID,
243
+ instancePath: e.instancePath,
244
+ message,
245
+ keyword: e.keyword,
246
+ ...subject !== void 0 ? { subject } : {},
247
+ ...line !== void 0 ? { line } : {}
248
+ };
249
+ }
250
+
251
+ // src/tracevals/evals/extract.ts
252
+ var CLAIMED_KEYS = ["evals", "eval-skip", "meta-provenance"];
253
+ var PREFIX_EXCEPTION = "eval-skip";
254
+ function isPlainObject(value) {
255
+ return typeof value === "object" && value !== null && !Array.isArray(value);
256
+ }
257
+ function extractEvals(artifact, supplied) {
258
+ const extracted = supplied ?? extractFrontmatter(artifact.content, "markdown");
259
+ const metadata = extracted.data.metadata;
260
+ const bag = isPlainObject(metadata) ? metadata : void 0;
261
+ const declared = bag !== void 0 && bag.evals !== void 0;
262
+ if (!extracted.present && metadata === void 0) {
263
+ return { evals: [], errors: [], declared: false, skip: false, proposedBy: /* @__PURE__ */ new Map() };
264
+ }
265
+ const typoErrors = reservedPrefixErrors(bag, extracted.lineFor);
266
+ if (typoErrors.length > 0) {
267
+ return { evals: [], errors: typoErrors, declared, skip: false, proposedBy: /* @__PURE__ */ new Map() };
268
+ }
269
+ const wellFormed = metadata === void 0 || bag !== void 0;
270
+ const claimsNothing = bag === void 0 || !CLAIMED_KEYS.some((key) => bag[key] !== void 0);
271
+ if (wellFormed && claimsNothing) {
272
+ return {
273
+ evals: [],
274
+ errors: [],
275
+ declared: false,
276
+ skip: false,
277
+ proposedBy: /* @__PURE__ */ new Map()
278
+ };
279
+ }
280
+ const errors = artifactEvalsErrors(extracted.data, extracted.lineFor);
281
+ if (errors.length > 0) {
282
+ return { evals: [], errors, declared, skip: false, proposedBy: /* @__PURE__ */ new Map() };
283
+ }
284
+ const valid = bag ?? {};
285
+ const skip = valid["eval-skip"] === true;
286
+ return {
287
+ evals: normalizeBlock(valid.evals),
288
+ errors: [],
289
+ declared,
290
+ skip,
291
+ proposedBy: readProvenance(valid["meta-provenance"])
292
+ };
293
+ }
294
+ function readProvenance(raw) {
295
+ const out = /* @__PURE__ */ new Map();
296
+ for (const entry of metaProvenanceEntries(raw)) {
297
+ const by = entry["generated-by"];
298
+ for (const id of entry.evals) {
299
+ const list = out.get(id) ?? [];
300
+ if (!list.includes(by)) list.push(by);
301
+ out.set(id, list);
302
+ }
303
+ }
304
+ return out;
305
+ }
306
+ function reservedPrefixErrors(bag, lineFor) {
307
+ if (bag === void 0) return [];
308
+ const errors = [];
309
+ for (const key of Object.keys(bag)) {
310
+ if (!/^eval-/i.test(key) || key === PREFIX_EXCEPTION) continue;
311
+ const line = lineFor(`/metadata/${key}`);
312
+ errors.push({
313
+ schema: ARTIFACT_EVALS_SCHEMA_ID,
314
+ instancePath: `/metadata/${key}`,
315
+ message: `unrecognized "eval-" key; the only one this vocabulary claims under that prefix is ${PREFIX_EXCEPTION} (its other members are ${CLAIMED_KEYS.filter((k) => k !== PREFIX_EXCEPTION).join(" and ")})`,
316
+ keyword: "additionalProperties",
317
+ subject: key,
318
+ ...line !== void 0 ? { line } : {}
319
+ });
320
+ }
321
+ return errors;
322
+ }
323
+ function normalizeBlock(raw) {
324
+ if (typeof raw === "string") return [normalizeEntry(raw, 0)];
325
+ if (!Array.isArray(raw)) return [];
326
+ return raw.map((entry, index) => normalizeEntry(entry, index));
327
+ }
328
+ function normalizeEntry(raw, index) {
329
+ if (typeof raw === "string") {
330
+ return {
331
+ id: `eval-${index + 1}`,
332
+ assertion: raw,
333
+ type: "regression",
334
+ grader: "ai",
335
+ severity: "error"
336
+ };
337
+ }
338
+ const obj = raw;
339
+ const entry = {
340
+ id: obj.id,
341
+ // Optional since artifact-evals proposal.2: a `tool-usage` criterion says
342
+ // everything in `options`, and demanding a sentence no grader reads was
343
+ // the one place this vocabulary disagreed with the page side. The schema
344
+ // still requires it for `ai`, `human`, and a bare entry (which defaults to
345
+ // `ai`), so anything that actually needs an assertion still has one.
346
+ ...typeof obj.assertion === "string" ? { assertion: obj.assertion } : {},
347
+ type: obj.type ?? "regression",
348
+ grader: typeof obj.grader === "string" ? obj.grader : "ai",
349
+ severity: obj.severity ?? "error"
350
+ };
351
+ if (typeof obj.provider === "string") entry.provider = obj.provider;
352
+ if (typeof obj.model === "string") entry.model = obj.model;
353
+ if (typeof obj.runs === "number") entry.runs = obj.runs;
354
+ if (typeof obj.weight === "number") entry.weight = obj.weight;
355
+ if (typeof obj.target === "string" || obj.target && typeof obj.target === "object") {
356
+ entry.target = obj.target;
357
+ }
358
+ if (obj.options && typeof obj.options === "object") {
359
+ entry.options = obj.options;
360
+ }
361
+ if (typeof obj.evidence === "string") entry.evidence = obj.evidence;
362
+ if (obj.examples && typeof obj.examples === "object") {
363
+ entry.examples = normalizeExamples(obj.examples);
364
+ }
365
+ if (obj.skip === true) entry.skip = true;
366
+ if (obj["severity-map"] && typeof obj["severity-map"] === "object") {
367
+ entry.severityMap = obj["severity-map"];
368
+ }
369
+ if (Array.isArray(obj.command)) entry.command = obj.command;
370
+ if (Array.isArray(obj["success-exit-codes"])) {
371
+ entry.successExitCodes = obj["success-exit-codes"];
372
+ }
373
+ if (typeof obj["timeout-ms"] === "number") {
374
+ entry.timeoutMs = obj["timeout-ms"];
375
+ }
376
+ if (typeof obj["generated-assertion-hash"] === "string") {
377
+ entry.generatedAssertionHash = obj["generated-assertion-hash"];
378
+ }
379
+ return entry;
380
+ }
381
+ function normalizeExamples(raw) {
382
+ const out = {};
383
+ const pass = anchorList(raw.pass);
384
+ const fail = anchorList(raw.fail);
385
+ if (pass) out.pass = pass;
386
+ if (fail) out.fail = fail;
387
+ return out;
388
+ }
389
+ function anchorList(raw) {
390
+ if (typeof raw === "string") return [raw];
391
+ if (Array.isArray(raw)) return raw.filter((e) => typeof e === "string");
392
+ return void 0;
393
+ }
394
+
395
+ export {
396
+ newAvailability,
397
+ availableAt,
398
+ offeredNames,
399
+ joinDescriptions,
400
+ newReplay,
401
+ applyAvailabilityRecord,
402
+ remapAvailability,
403
+ foldBranchAvailability,
404
+ ARTIFACT_EVALS_SCHEMA_ID,
405
+ artifactEvalsErrors,
406
+ extractEvals,
407
+ normalizeEntry
408
+ };
409
+ //# sourceMappingURL=chunk-IXFFVI5S.js.map