@hawkeyexl/manni 4.20.0 → 4.21.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 (259) hide show
  1. package/README.md +1 -1
  2. package/dist/{batch-TBQBH6XQ.js → batch-C534YIAU.js} +14 -14
  3. package/dist/{build-S3JQMDFX.js → build-SVKT7QFU.js} +16 -15
  4. package/dist/{calibrate-KLN22IGS.js → calibrate-AL3MH7TY.js} +15 -15
  5. package/dist/{capture-JS3ICXE7.js → capture-2F7B4DAD.js} +14 -14
  6. package/dist/check-BI7OGIVE.js +48 -0
  7. package/dist/{check-WS2USSUD.js → check-JZINDP3F.js} +13 -13
  8. package/dist/{check-2EAR4ZW3.js → check-LKPQPQWJ.js} +15 -15
  9. package/dist/check-OPUMZEVK.js +35 -0
  10. package/dist/{check-PDXYA6XH.js → check-OW7UD73D.js} +12 -12
  11. package/dist/{chunk-JKH2LV5D.js → chunk-22WGKOQ7.js} +5 -5
  12. package/dist/{chunk-IGAZWY2W.js → chunk-2HOWRAWK.js} +2 -2
  13. package/dist/{chunk-KZ7534CD.js → chunk-2NGFDLIM.js} +3 -3
  14. package/dist/{chunk-SOW6SVAM.js → chunk-2YKUSTHS.js} +4 -4
  15. package/dist/{chunk-DQO44Y5G.js → chunk-3SFAB75L.js} +5 -5
  16. package/dist/{chunk-BEQZI3V5.js → chunk-5LE4NH3Z.js} +24 -7
  17. package/dist/chunk-5LE4NH3Z.js.map +1 -0
  18. package/dist/{chunk-U2CE55YV.js → chunk-5UJKXOAD.js} +5 -5
  19. package/dist/chunk-6XK3NTL5.js +706 -0
  20. package/dist/chunk-6XK3NTL5.js.map +1 -0
  21. package/dist/{chunk-6D7FCU4E.js → chunk-762MM6NA.js} +3 -3
  22. package/dist/{chunk-ZEKQRBXO.js → chunk-A4QNKEX4.js} +2 -2
  23. package/dist/{chunk-2G4XYGTN.js → chunk-AE6KBAAU.js} +7 -7
  24. package/dist/chunk-AE6KBAAU.js.map +1 -0
  25. package/dist/{chunk-SX626JUF.js → chunk-APAF4VWW.js} +3 -3
  26. package/dist/{chunk-BV7FJ4V2.js → chunk-ARNI3SJT.js} +8 -8
  27. package/dist/chunk-ARNI3SJT.js.map +1 -0
  28. package/dist/{chunk-DTSWP5FC.js → chunk-BHGFLRXM.js} +5 -5
  29. package/dist/{chunk-PGDUVYTF.js → chunk-BJUEOC4G.js} +2 -2
  30. package/dist/{chunk-5MJE5KMY.js → chunk-BKY6GAFA.js} +8 -8
  31. package/dist/{chunk-ITA7V5Y2.js → chunk-BLXRIAV2.js} +4 -4
  32. package/dist/{chunk-SFSALDIR.js → chunk-BXCVOHEX.js} +7 -7
  33. package/dist/{chunk-PHOWMWFJ.js → chunk-BXE4L52Q.js} +2 -11
  34. package/dist/chunk-BXE4L52Q.js.map +1 -0
  35. package/dist/{chunk-VCU7OMXV.js → chunk-CLPC3LKX.js} +13 -9
  36. package/dist/chunk-CLPC3LKX.js.map +1 -0
  37. package/dist/{chunk-PTXHJLAS.js → chunk-CREFJCWZ.js} +7 -7
  38. package/dist/chunk-CREFJCWZ.js.map +1 -0
  39. package/dist/{chunk-FRM62BEN.js → chunk-CZIO37J5.js} +3 -3
  40. package/dist/{chunk-SFTWEGUD.js → chunk-D4QHRVDJ.js} +2 -2
  41. package/dist/{chunk-6VGWLCYT.js → chunk-D5GBYKDU.js} +2 -2
  42. package/dist/{chunk-RXCDT55X.js → chunk-DENZLZ3Z.js} +34 -32
  43. package/dist/chunk-DENZLZ3Z.js.map +1 -0
  44. package/dist/{chunk-GVOI7SCF.js → chunk-DMVBIIP3.js} +3 -3
  45. package/dist/{chunk-5HB4YKZW.js → chunk-DPDG3FHL.js} +17 -3
  46. package/dist/chunk-DPDG3FHL.js.map +1 -0
  47. package/dist/{chunk-O26NQ7KT.js → chunk-E23KWEPL.js} +2 -2
  48. package/dist/{chunk-NDQA4VYK.js → chunk-E7OG5F6S.js} +3 -3
  49. package/dist/{chunk-HIZNNOVW.js → chunk-FHJIH6XP.js} +16 -106
  50. package/dist/chunk-FHJIH6XP.js.map +1 -0
  51. package/dist/{chunk-JNMY7KZG.js → chunk-G5I2JTDK.js} +2 -2
  52. package/dist/{chunk-O4O6JOGD.js → chunk-GMLOAKOA.js} +16 -4
  53. package/dist/chunk-GMLOAKOA.js.map +1 -0
  54. package/dist/{chunk-4KM23E53.js → chunk-H5YWCCBO.js} +16 -11
  55. package/dist/chunk-H5YWCCBO.js.map +1 -0
  56. package/dist/{chunk-HSC5G3FW.js → chunk-HHJ2HFPP.js} +8 -8
  57. package/dist/{chunk-HZWLHSZG.js → chunk-IN5T22FP.js} +2 -2
  58. package/dist/{chunk-FERFWKZM.js → chunk-IOJD2RFG.js} +2 -2
  59. package/dist/{chunk-ZODSGFAP.js → chunk-JQA6RF4R.js} +22 -22
  60. package/dist/{chunk-ZODSGFAP.js.map → chunk-JQA6RF4R.js.map} +1 -1
  61. package/dist/{chunk-GCF7STEA.js → chunk-JUUCCML3.js} +4 -4
  62. package/dist/{chunk-3OXBZSDN.js → chunk-KBSTXL6L.js} +3 -3
  63. package/dist/{chunk-SRTBHEUM.js → chunk-KCWNJMSS.js} +3 -3
  64. package/dist/{chunk-2XRSQXGZ.js → chunk-KQDRO6N6.js} +2 -2
  65. package/dist/{chunk-ZVEDBFTM.js → chunk-LWBNHK72.js} +45 -41
  66. package/dist/chunk-LWBNHK72.js.map +1 -0
  67. package/dist/{chunk-QSY5YPM4.js → chunk-MTCOBRCX.js} +4 -4
  68. package/dist/{chunk-Q5EKERQS.js → chunk-NLJ3XIKT.js} +7 -5
  69. package/dist/{chunk-Q5EKERQS.js.map → chunk-NLJ3XIKT.js.map} +1 -1
  70. package/dist/{chunk-RGZBROMW.js → chunk-OWJLB2AF.js} +2 -2
  71. package/dist/{chunk-QA7AXRGH.js → chunk-P7HAXMFN.js} +2 -2
  72. package/dist/{chunk-GXDVERLV.js → chunk-PACZEDOH.js} +5 -5
  73. package/dist/{chunk-QSPH4F56.js → chunk-PTGXEZQD.js} +2 -2
  74. package/dist/chunk-PTGXEZQD.js.map +1 -0
  75. package/dist/{chunk-UKSXQHSE.js → chunk-Q76T6Y6X.js} +6 -6
  76. package/dist/{chunk-SGI3WPYK.js → chunk-R2CR62JV.js} +4 -4
  77. package/dist/{chunk-MLY65CQE.js → chunk-RKACUTY5.js} +7 -7
  78. package/dist/{chunk-MNK732BZ.js → chunk-RQPEKHZH.js} +14 -11
  79. package/dist/chunk-RQPEKHZH.js.map +1 -0
  80. package/dist/{chunk-EBYLQE7P.js → chunk-RWXR3GJI.js} +2 -2
  81. package/dist/{chunk-JOZVVIVD.js → chunk-S5G6T4VC.js} +3 -3
  82. package/dist/chunk-SHXPE4D4.js +100 -0
  83. package/dist/chunk-SHXPE4D4.js.map +1 -0
  84. package/dist/{chunk-GL2HXZVX.js → chunk-TFVNEPMF.js} +3 -3
  85. package/dist/{chunk-TKINOTVS.js → chunk-TI4DA6DF.js} +1 -1
  86. package/dist/{chunk-TKINOTVS.js.map → chunk-TI4DA6DF.js.map} +1 -1
  87. package/dist/{chunk-I62V2ZAJ.js → chunk-U4OJ7U45.js} +8 -8
  88. package/dist/{chunk-QWCP7UMG.js → chunk-V2XJJEEF.js} +6 -6
  89. package/dist/{chunk-5UJQLZXY.js → chunk-VLRIP4BQ.js} +60 -63
  90. package/dist/chunk-VLRIP4BQ.js.map +1 -0
  91. package/dist/{chunk-ZRMA5U53.js → chunk-WHVFHBL3.js} +3 -3
  92. package/dist/{chunk-IYRGV2BC.js → chunk-XBJKYXOR.js} +6 -6
  93. package/dist/{chunk-ZBE735BH.js → chunk-XI3BNZG4.js} +5 -5
  94. package/dist/{chunk-Z6FATXBE.js → chunk-YSZNJ2ID.js} +2 -2
  95. package/dist/{cli-4HH6IY2L.js → cli-3PBRPPMQ.js} +14 -14
  96. package/dist/{cli-GVHXRQAD.js → cli-6NKE6RMT.js} +18 -18
  97. package/dist/{cli-T4NY2EGM.js → cli-77A46SB2.js} +17 -17
  98. package/dist/{cli-EQG4KETY.js → cli-AVHLY2AI.js} +61 -45
  99. package/dist/cli-AVHLY2AI.js.map +1 -0
  100. package/dist/{cli-UIY57JPM.js → cli-FDXU7CGZ.js} +16 -15
  101. package/dist/{cli-UIY57JPM.js.map → cli-FDXU7CGZ.js.map} +1 -1
  102. package/dist/{cli-5BFVL3DH.js → cli-FSDJY5OC.js} +2 -2
  103. package/dist/{cli-L7H4C442.js → cli-JNYL6LB7.js} +16 -16
  104. package/dist/{cli-HTAR3PWY.js → cli-K47XWDLJ.js} +21 -21
  105. package/dist/{cli-ZPW5VIRA.js → cli-LP5OE3BL.js} +9 -9
  106. package/dist/{cli-AR43H5BW.js → cli-MOKRUHZT.js} +9 -9
  107. package/dist/{cli-4IE6CRAT.js → cli-MQXOK64K.js} +27 -26
  108. package/dist/{cli-4IE6CRAT.js.map → cli-MQXOK64K.js.map} +1 -1
  109. package/dist/cli.js +15 -15
  110. package/dist/{config-7I5CHHRZ.js → config-BMWDC66C.js} +2 -2
  111. package/dist/docmeta.d.ts +1 -1
  112. package/dist/docmeta.js +8 -8
  113. package/dist/github-6GYTPSGV.js +35 -0
  114. package/dist/{github-RIU47U73.js → github-DJOLVNDD.js} +12 -12
  115. package/dist/{github-CMWG4QMI.js → github-ZF2TQ3RP.js} +14 -14
  116. package/dist/graph/embed.d.ts +2 -1
  117. package/dist/graph/runtime.d.ts +2 -1
  118. package/dist/index.d.ts +29 -15
  119. package/dist/index.js +51 -49
  120. package/dist/index.js.map +1 -1
  121. package/dist/json-Y7625EFE.js +42 -0
  122. package/dist/{json-KSBVGZUX.js → json-YIK72XAL.js} +12 -12
  123. package/dist/{labels-VNKACCAG.js → labels-X633ZPK7.js} +11 -11
  124. package/dist/{lint-75BD6L5T.js → lint-RF3B55W7.js} +14 -14
  125. package/dist/{list-MH54XU7E.js → list-5DW4QZ7P.js} +12 -12
  126. package/dist/list-7CHWJ633.js +39 -0
  127. package/dist/{list-PHNZAYIM.js → list-UNWG6NPD.js} +12 -12
  128. package/dist/{page-5AJS7AEM.js → page-OMPEACUN.js} +11 -11
  129. package/dist/{prepare-R63RJI6O.js → prepare-B4JVDVOV.js} +13 -13
  130. package/dist/{pretty-DE4WXJFA.js → pretty-PPNHHOEN.js} +13 -13
  131. package/dist/{pretty-E3DS32NZ.js → pretty-U7ATCFBN.js} +12 -12
  132. package/dist/pretty-XGYQ25PH.js +43 -0
  133. package/dist/{reporters-V2PSDBVW.js → reporters-FAIEOTC4.js} +13 -13
  134. package/dist/{reporters-DLMLFLKS.js → reporters-KE7AZR6C.js} +4 -4
  135. package/dist/{run-QT2LVHRU.js → run-MHJ3AYKG.js} +12 -12
  136. package/dist/{sarif-GKMUHCZB.js → sarif-DOGRSGTB.js} +10 -10
  137. package/dist/{sarif-HUIRTPSL.js → sarif-MIEMQOIK.js} +11 -11
  138. package/dist/{sarif-2ZKPRT42.js → sarif-RGRG7VFX.js} +15 -15
  139. package/dist/{strategy-TBFM7NZU.js → strategy-EK5VY5DG.js} +24 -23
  140. package/dist/{strategy-TBFM7NZU.js.map → strategy-EK5VY5DG.js.map} +1 -1
  141. package/dist/{term-ZZWAVUW5.js → term-MDN3NJDW.js} +17 -17
  142. package/dist/{validate-ZEUFF3BG.js → validate-QDYQ642J.js} +5 -5
  143. package/package.json +21 -21
  144. package/plugin/manni/.claude-plugin/plugin.json +11 -3
  145. package/plugin/manni/hooks/hooks.json +4 -4
  146. package/plugin/manni/hooks/manni.mjs +47 -7
  147. package/plugin/manni/hooks/tracevals.mjs +7 -0
  148. package/plugin/manni/skills/fix/SKILL.md +5 -1
  149. package/dist/check-6D2JCIMD.js +0 -47
  150. package/dist/check-RNAB7X74.js +0 -33
  151. package/dist/chunk-2G4XYGTN.js.map +0 -1
  152. package/dist/chunk-4KM23E53.js.map +0 -1
  153. package/dist/chunk-5HB4YKZW.js.map +0 -1
  154. package/dist/chunk-5UJQLZXY.js.map +0 -1
  155. package/dist/chunk-BEQZI3V5.js.map +0 -1
  156. package/dist/chunk-BV7FJ4V2.js.map +0 -1
  157. package/dist/chunk-HIZNNOVW.js.map +0 -1
  158. package/dist/chunk-MNK732BZ.js.map +0 -1
  159. package/dist/chunk-NEO2HN2N.js +0 -326
  160. package/dist/chunk-NEO2HN2N.js.map +0 -1
  161. package/dist/chunk-O4O6JOGD.js.map +0 -1
  162. package/dist/chunk-PHOWMWFJ.js.map +0 -1
  163. package/dist/chunk-PTXHJLAS.js.map +0 -1
  164. package/dist/chunk-QSPH4F56.js.map +0 -1
  165. package/dist/chunk-RXCDT55X.js.map +0 -1
  166. package/dist/chunk-SIREOHLW.js +0 -233
  167. package/dist/chunk-SIREOHLW.js.map +0 -1
  168. package/dist/chunk-VCU7OMXV.js.map +0 -1
  169. package/dist/chunk-ZVEDBFTM.js.map +0 -1
  170. package/dist/cli-EQG4KETY.js.map +0 -1
  171. package/dist/github-NIRLMJ65.js +0 -27
  172. package/dist/json-EJTB7XYG.js +0 -34
  173. package/dist/list-6XVIW3RW.js +0 -33
  174. package/dist/pretty-SUKMF6AB.js +0 -35
  175. /package/dist/{batch-TBQBH6XQ.js.map → batch-C534YIAU.js.map} +0 -0
  176. /package/dist/{build-S3JQMDFX.js.map → build-SVKT7QFU.js.map} +0 -0
  177. /package/dist/{calibrate-KLN22IGS.js.map → calibrate-AL3MH7TY.js.map} +0 -0
  178. /package/dist/{capture-JS3ICXE7.js.map → capture-2F7B4DAD.js.map} +0 -0
  179. /package/dist/{check-6D2JCIMD.js.map → check-BI7OGIVE.js.map} +0 -0
  180. /package/dist/{check-PDXYA6XH.js.map → check-JZINDP3F.js.map} +0 -0
  181. /package/dist/{check-2EAR4ZW3.js.map → check-LKPQPQWJ.js.map} +0 -0
  182. /package/dist/{check-RNAB7X74.js.map → check-OPUMZEVK.js.map} +0 -0
  183. /package/dist/{check-WS2USSUD.js.map → check-OW7UD73D.js.map} +0 -0
  184. /package/dist/{chunk-JKH2LV5D.js.map → chunk-22WGKOQ7.js.map} +0 -0
  185. /package/dist/{chunk-IGAZWY2W.js.map → chunk-2HOWRAWK.js.map} +0 -0
  186. /package/dist/{chunk-KZ7534CD.js.map → chunk-2NGFDLIM.js.map} +0 -0
  187. /package/dist/{chunk-SOW6SVAM.js.map → chunk-2YKUSTHS.js.map} +0 -0
  188. /package/dist/{chunk-DQO44Y5G.js.map → chunk-3SFAB75L.js.map} +0 -0
  189. /package/dist/{chunk-U2CE55YV.js.map → chunk-5UJKXOAD.js.map} +0 -0
  190. /package/dist/{chunk-6D7FCU4E.js.map → chunk-762MM6NA.js.map} +0 -0
  191. /package/dist/{chunk-ZEKQRBXO.js.map → chunk-A4QNKEX4.js.map} +0 -0
  192. /package/dist/{chunk-SX626JUF.js.map → chunk-APAF4VWW.js.map} +0 -0
  193. /package/dist/{chunk-DTSWP5FC.js.map → chunk-BHGFLRXM.js.map} +0 -0
  194. /package/dist/{chunk-PGDUVYTF.js.map → chunk-BJUEOC4G.js.map} +0 -0
  195. /package/dist/{chunk-5MJE5KMY.js.map → chunk-BKY6GAFA.js.map} +0 -0
  196. /package/dist/{chunk-ITA7V5Y2.js.map → chunk-BLXRIAV2.js.map} +0 -0
  197. /package/dist/{chunk-SFSALDIR.js.map → chunk-BXCVOHEX.js.map} +0 -0
  198. /package/dist/{chunk-FRM62BEN.js.map → chunk-CZIO37J5.js.map} +0 -0
  199. /package/dist/{chunk-SFTWEGUD.js.map → chunk-D4QHRVDJ.js.map} +0 -0
  200. /package/dist/{chunk-6VGWLCYT.js.map → chunk-D5GBYKDU.js.map} +0 -0
  201. /package/dist/{chunk-GVOI7SCF.js.map → chunk-DMVBIIP3.js.map} +0 -0
  202. /package/dist/{chunk-O26NQ7KT.js.map → chunk-E23KWEPL.js.map} +0 -0
  203. /package/dist/{chunk-NDQA4VYK.js.map → chunk-E7OG5F6S.js.map} +0 -0
  204. /package/dist/{chunk-JNMY7KZG.js.map → chunk-G5I2JTDK.js.map} +0 -0
  205. /package/dist/{chunk-HSC5G3FW.js.map → chunk-HHJ2HFPP.js.map} +0 -0
  206. /package/dist/{chunk-HZWLHSZG.js.map → chunk-IN5T22FP.js.map} +0 -0
  207. /package/dist/{chunk-FERFWKZM.js.map → chunk-IOJD2RFG.js.map} +0 -0
  208. /package/dist/{chunk-GCF7STEA.js.map → chunk-JUUCCML3.js.map} +0 -0
  209. /package/dist/{chunk-3OXBZSDN.js.map → chunk-KBSTXL6L.js.map} +0 -0
  210. /package/dist/{chunk-SRTBHEUM.js.map → chunk-KCWNJMSS.js.map} +0 -0
  211. /package/dist/{chunk-2XRSQXGZ.js.map → chunk-KQDRO6N6.js.map} +0 -0
  212. /package/dist/{chunk-QSY5YPM4.js.map → chunk-MTCOBRCX.js.map} +0 -0
  213. /package/dist/{chunk-RGZBROMW.js.map → chunk-OWJLB2AF.js.map} +0 -0
  214. /package/dist/{chunk-QA7AXRGH.js.map → chunk-P7HAXMFN.js.map} +0 -0
  215. /package/dist/{chunk-GXDVERLV.js.map → chunk-PACZEDOH.js.map} +0 -0
  216. /package/dist/{chunk-UKSXQHSE.js.map → chunk-Q76T6Y6X.js.map} +0 -0
  217. /package/dist/{chunk-SGI3WPYK.js.map → chunk-R2CR62JV.js.map} +0 -0
  218. /package/dist/{chunk-MLY65CQE.js.map → chunk-RKACUTY5.js.map} +0 -0
  219. /package/dist/{chunk-EBYLQE7P.js.map → chunk-RWXR3GJI.js.map} +0 -0
  220. /package/dist/{chunk-JOZVVIVD.js.map → chunk-S5G6T4VC.js.map} +0 -0
  221. /package/dist/{chunk-GL2HXZVX.js.map → chunk-TFVNEPMF.js.map} +0 -0
  222. /package/dist/{chunk-I62V2ZAJ.js.map → chunk-U4OJ7U45.js.map} +0 -0
  223. /package/dist/{chunk-QWCP7UMG.js.map → chunk-V2XJJEEF.js.map} +0 -0
  224. /package/dist/{chunk-ZRMA5U53.js.map → chunk-WHVFHBL3.js.map} +0 -0
  225. /package/dist/{chunk-IYRGV2BC.js.map → chunk-XBJKYXOR.js.map} +0 -0
  226. /package/dist/{chunk-ZBE735BH.js.map → chunk-XI3BNZG4.js.map} +0 -0
  227. /package/dist/{chunk-Z6FATXBE.js.map → chunk-YSZNJ2ID.js.map} +0 -0
  228. /package/dist/{cli-4HH6IY2L.js.map → cli-3PBRPPMQ.js.map} +0 -0
  229. /package/dist/{cli-GVHXRQAD.js.map → cli-6NKE6RMT.js.map} +0 -0
  230. /package/dist/{cli-T4NY2EGM.js.map → cli-77A46SB2.js.map} +0 -0
  231. /package/dist/{cli-5BFVL3DH.js.map → cli-FSDJY5OC.js.map} +0 -0
  232. /package/dist/{cli-L7H4C442.js.map → cli-JNYL6LB7.js.map} +0 -0
  233. /package/dist/{cli-HTAR3PWY.js.map → cli-K47XWDLJ.js.map} +0 -0
  234. /package/dist/{cli-ZPW5VIRA.js.map → cli-LP5OE3BL.js.map} +0 -0
  235. /package/dist/{cli-AR43H5BW.js.map → cli-MOKRUHZT.js.map} +0 -0
  236. /package/dist/{config-7I5CHHRZ.js.map → config-BMWDC66C.js.map} +0 -0
  237. /package/dist/{github-CMWG4QMI.js.map → github-6GYTPSGV.js.map} +0 -0
  238. /package/dist/{github-NIRLMJ65.js.map → github-DJOLVNDD.js.map} +0 -0
  239. /package/dist/{github-RIU47U73.js.map → github-ZF2TQ3RP.js.map} +0 -0
  240. /package/dist/{json-EJTB7XYG.js.map → json-Y7625EFE.js.map} +0 -0
  241. /package/dist/{json-KSBVGZUX.js.map → json-YIK72XAL.js.map} +0 -0
  242. /package/dist/{labels-VNKACCAG.js.map → labels-X633ZPK7.js.map} +0 -0
  243. /package/dist/{lint-75BD6L5T.js.map → lint-RF3B55W7.js.map} +0 -0
  244. /package/dist/{list-6XVIW3RW.js.map → list-5DW4QZ7P.js.map} +0 -0
  245. /package/dist/{list-MH54XU7E.js.map → list-7CHWJ633.js.map} +0 -0
  246. /package/dist/{list-PHNZAYIM.js.map → list-UNWG6NPD.js.map} +0 -0
  247. /package/dist/{page-5AJS7AEM.js.map → page-OMPEACUN.js.map} +0 -0
  248. /package/dist/{prepare-R63RJI6O.js.map → prepare-B4JVDVOV.js.map} +0 -0
  249. /package/dist/{pretty-DE4WXJFA.js.map → pretty-PPNHHOEN.js.map} +0 -0
  250. /package/dist/{pretty-E3DS32NZ.js.map → pretty-U7ATCFBN.js.map} +0 -0
  251. /package/dist/{pretty-SUKMF6AB.js.map → pretty-XGYQ25PH.js.map} +0 -0
  252. /package/dist/{reporters-DLMLFLKS.js.map → reporters-FAIEOTC4.js.map} +0 -0
  253. /package/dist/{reporters-V2PSDBVW.js.map → reporters-KE7AZR6C.js.map} +0 -0
  254. /package/dist/{run-QT2LVHRU.js.map → run-MHJ3AYKG.js.map} +0 -0
  255. /package/dist/{sarif-2ZKPRT42.js.map → sarif-DOGRSGTB.js.map} +0 -0
  256. /package/dist/{sarif-GKMUHCZB.js.map → sarif-MIEMQOIK.js.map} +0 -0
  257. /package/dist/{sarif-HUIRTPSL.js.map → sarif-RGRG7VFX.js.map} +0 -0
  258. /package/dist/{term-ZZWAVUW5.js.map → term-MDN3NJDW.js.map} +0 -0
  259. /package/dist/{validate-ZEUFF3BG.js.map → validate-QDYQ642J.js.map} +0 -0
@@ -1,233 +0,0 @@
1
- #!/usr/bin/env node
2
- import {
3
- PAGE_FIELDS,
4
- PARENTS,
5
- guidanceFor,
6
- resolveSeverity,
7
- ruleId
8
- } from "./chunk-O4O6JOGD.js";
9
- import {
10
- closestName
11
- } from "./chunk-XTKJNRJ6.js";
12
-
13
- // src/strategy/core/check.ts
14
- var fold = (value) => value.toLowerCase();
15
- var FIELD_TYPES = {
16
- audiences: "audience",
17
- personas: "persona",
18
- journeys: "journey",
19
- audience: "audience"
20
- };
21
- var parentTypeOf = (type) => FIELD_TYPES[PARENTS[type]];
22
- function indexSet(set) {
23
- const byType = /* @__PURE__ */ new Map();
24
- const byId = /* @__PURE__ */ new Map();
25
- for (const record of set.records) {
26
- const ids = byType.get(record.type) ?? /* @__PURE__ */ new Map();
27
- if (!ids.has(fold(record.id))) ids.set(fold(record.id), record);
28
- byType.set(record.type, ids);
29
- if (!byId.has(fold(record.id))) byId.set(fold(record.id), record);
30
- }
31
- const resolveIn = (type, value) => byType.get(type)?.get(fold(value));
32
- const parentsOf = (record) => {
33
- if (record.type === "audience") return [];
34
- const type = parentTypeOf(record.type);
35
- const found = record.parents.map((p) => resolveIn(type, p.value)).filter((r) => r !== void 0);
36
- return [...new Set(found)];
37
- };
38
- const children = /* @__PURE__ */ new Map();
39
- for (const record of set.records) {
40
- for (const parent of parentsOf(record)) children.set(parent, [...children.get(parent) ?? [], record]);
41
- }
42
- const pages = /* @__PURE__ */ new Map();
43
- for (const reference of set.references) {
44
- if (reference.record) continue;
45
- const target = resolveIn(FIELD_TYPES[reference.field], reference.value);
46
- if (target === void 0) continue;
47
- const named = pages.get(target) ?? /* @__PURE__ */ new Set();
48
- named.add(reference.page);
49
- pages.set(target, named);
50
- }
51
- return {
52
- has: (type) => (byType.get(type)?.size ?? 0) > 0,
53
- resolve: resolveIn,
54
- anyWithId: (value) => byId.get(fold(value)),
55
- parentsOf,
56
- childrenOf: (record) => children.get(record) ?? [],
57
- pagesNaming: (record) => [...pages.get(record) ?? []].sort()
58
- };
59
- }
60
- function article(type) {
61
- return `${type === "audience" ? "an" : "a"} ${type}`;
62
- }
63
- function onRecord(record) {
64
- return record.idAt ?? { file: record.file, line: record.line };
65
- }
66
- function located(at) {
67
- return { file: at.file, ...at.line === void 0 ? {} : { line: at.line } };
68
- }
69
- function ancestorOf(index, record, type) {
70
- let current = index.parentsOf(record)[0];
71
- while (current !== void 0 && current.type !== type) current = index.parentsOf(current)[0];
72
- return current;
73
- }
74
- function checkStrategySet(set, opts = {}) {
75
- const levels = resolveSeverity(opts.severity);
76
- const index = indexSet(set);
77
- const drafts = [];
78
- const unresolved = (field, value, onRecordField) => {
79
- const type = FIELD_TYPES[field];
80
- const other = index.anyWithId(value);
81
- if (other !== void 0) {
82
- const ancestor = ancestorOf(index, other, type);
83
- const fix2 = ancestor !== void 0 ? `Did you mean its ${type}, "${ancestor.id}"?` : onRecordField ? "Correct the value." : `Move it to ${PAGE_FIELDS[other.type]}:.`;
84
- return { message: `${field}: "${value}" is ${article(other.type)}, not ${article(type)}.`, fix: fix2 };
85
- }
86
- const ids = set.records.filter((r) => r.type === type).map((r) => r.id);
87
- const nearest = closestName(fold(value), ids.map(fold));
88
- const suggestion = nearest === void 0 ? void 0 : ids.find((id) => fold(id) === nearest);
89
- const add = `Correct the value, or add a record with type: ${type} and id: ${value}.`;
90
- const fix = suggestion === void 0 ? add : onRecordField ? `Did you mean "${suggestion}"?` : `Did you mean "${suggestion}"? ${add}`;
91
- return { message: `${field}: "${value}" names no ${type}.`, fix };
92
- };
93
- for (const reference of set.references) {
94
- const type = FIELD_TYPES[reference.field];
95
- if (!index.has(type) || index.resolve(type, reference.value) !== void 0) continue;
96
- drafts.push({
97
- rule: "undefined-reference",
98
- ...unresolved(reference.field, reference.value, false),
99
- ...located(reference),
100
- field: reference.field
101
- });
102
- }
103
- for (const record of set.records) {
104
- if (record.type === "audience") continue;
105
- const field = PARENTS[record.type];
106
- const type = parentTypeOf(record.type);
107
- if (!index.has(type)) continue;
108
- for (const parent of record.parents) {
109
- if (index.resolve(type, parent.value) !== void 0) continue;
110
- drafts.push({
111
- rule: "undefined-reference",
112
- ...unresolved(field, parent.value, true),
113
- ...located(parent),
114
- id: record.id,
115
- field
116
- });
117
- }
118
- }
119
- const sharing = /* @__PURE__ */ new Map();
120
- for (const record of set.records) sharing.set(fold(record.id), [...sharing.get(fold(record.id)) ?? [], record]);
121
- for (const group of sharing.values()) {
122
- if (group.length < 2) continue;
123
- for (const record of group) {
124
- const others = group.filter((other) => other !== record).map((other) => {
125
- const at = onRecord(other);
126
- return at.line === void 0 ? at.file : `${at.file}:${String(at.line)}`;
127
- });
128
- drafts.push({
129
- rule: "duplicate-id",
130
- message: `id: "${record.id}" is also the id of ${others.join(", ")}.`,
131
- fix: "Give each record its own id.",
132
- ...located(onRecord(record)),
133
- id: record.id
134
- });
135
- }
136
- }
137
- const byPage = /* @__PURE__ */ new Map();
138
- for (const reference of set.references) {
139
- if (reference.record) continue;
140
- byPage.set(reference.page, [...byPage.get(reference.page) ?? [], reference]);
141
- }
142
- for (const references of byPage.values()) {
143
- const named = (field) => new Set(references.filter((r) => r.field === field).map((r) => fold(r.value)));
144
- const reported = /* @__PURE__ */ new Set();
145
- for (const childType of ["journey", "persona"]) {
146
- const parentType = parentTypeOf(childType);
147
- const parentField = PAGE_FIELDS[parentType];
148
- const has = named(parentField);
149
- for (const reference of references) {
150
- if (reference.field !== PAGE_FIELDS[childType]) continue;
151
- const child = index.resolve(childType, reference.value);
152
- if (child === void 0) continue;
153
- const parents = index.parentsOf(child);
154
- const ids = parents.map((p) => `"${p.id}"`).join(", ");
155
- const key = `${parentType} ${ids}`;
156
- if (parents.length === 0 || parents.some((p) => has.has(fold(p.id))) || reported.has(key)) continue;
157
- reported.add(key);
158
- const one = parents.length === 1;
159
- drafts.push({
160
- rule: "missing-parent",
161
- message: one ? `${parentField}: does not name ${ids}, the ${parentType} of ${childType} "${child.id}".` : `${parentField}: names none of ${ids}, the ${parentField} of ${childType} "${child.id}".`,
162
- fix: `Add ${one ? "it" : "one"}, or drop "${child.id}" from ${PAGE_FIELDS[childType]}:.`,
163
- ...located(reference),
164
- field: parentField
165
- });
166
- }
167
- }
168
- }
169
- for (const record of set.records) {
170
- const at = located(onRecord(record));
171
- if (record.type !== "audience" && record.parents.length === 0 && index.has(parentTypeOf(record.type))) {
172
- const field = PARENTS[record.type];
173
- drafts.push({
174
- rule: "orphan-record",
175
- message: `${field}: missing, so this ${record.type} belongs to no ${parentTypeOf(record.type)}.`,
176
- fix: `Name one with ${field}:.`,
177
- ...at,
178
- id: record.id,
179
- field
180
- });
181
- }
182
- if (index.resolve(record.type, record.id) !== record) continue;
183
- const pages = index.pagesNaming(record);
184
- const live = record.lifecycle !== "draft" && record.lifecycle !== "archived";
185
- if (record.type === "journey" && live && pages.length === 0) {
186
- drafts.push({
187
- rule: "unserved-journey",
188
- message: "no page names this journey in journeys:.",
189
- fix: "Name it on the pages that serve it.",
190
- ...at,
191
- id: record.id
192
- });
193
- }
194
- if (record.type !== "journey" && pages.length === 0 && index.childrenOf(record).length === 0) {
195
- drafts.push({
196
- rule: "unused-record",
197
- message: `no page and no record names this ${record.type}.`,
198
- ...at,
199
- id: record.id
200
- });
201
- }
202
- }
203
- const findings = [];
204
- for (const draft of drafts) {
205
- const level = levels[draft.rule];
206
- if (level === "off") continue;
207
- findings.push({
208
- rule: draft.rule,
209
- ruleId: ruleId(draft.rule),
210
- severity: level,
211
- message: draft.fix === void 0 ? draft.message : `${draft.message} ${draft.fix}`,
212
- ...draft.fix === void 0 ? {} : { key: draft.message },
213
- guidance: guidanceFor(draft.rule),
214
- file: draft.file,
215
- ...draft.line === void 0 ? {} : { line: draft.line },
216
- ...draft.id === void 0 ? {} : { id: draft.id },
217
- ...draft.field === void 0 ? {} : { field: draft.field }
218
- });
219
- }
220
- return findings.sort(compareFindings);
221
- }
222
- function compareText(a, b) {
223
- return a < b ? -1 : a > b ? 1 : 0;
224
- }
225
- function compareFindings(a, b) {
226
- return compareText(a.file, b.file) || (a.line ?? 0) - (b.line ?? 0) || compareText(a.ruleId, b.ruleId) || compareText(a.message, b.message);
227
- }
228
-
229
- export {
230
- indexSet,
231
- checkStrategySet
232
- };
233
- //# sourceMappingURL=chunk-SIREOHLW.js.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../src/strategy/core/check.ts"],"sourcesContent":["/**\n * `strategy check`'s rules (proposal 0102). Pure: it reads records and\n * references and returns findings, so the command core owns every file and\n * the rules are tested on sets built inline.\n *\n * Ids compare case-folded. A reference field is checked only when the set\n * holds a record of that field's type, so a repo that keeps no audience\n * records keeps free-form `audiences:`. `missing-parent` and the use counts\n * read pages that are not records: a record's own `journeys:` serves nobody.\n */\nimport { closestName } from \"../../shared/closest-name.js\";\nimport {\n PAGE_FIELDS,\n PARENTS,\n type At,\n type ChildType,\n type RecordType,\n type ReferenceField,\n type StrategyFinding,\n type StrategyRecord,\n type StrategyRule,\n type StrategySet,\n type StrategySeverity,\n} from \"../types.js\";\nimport { guidanceFor, resolveSeverity, ruleId } from \"./severity.js\";\n\nconst fold = (value: string): string => value.toLowerCase();\n\n/** The type each page field names. */\nconst FIELD_TYPES: Readonly<Record<ReferenceField, RecordType>> = {\n audiences: \"audience\",\n personas: \"persona\",\n journeys: \"journey\",\n audience: \"audience\",\n};\n\n/** The type of a child's parents: an audience for a persona, a persona for a journey. */\nconst parentTypeOf = (type: ChildType): RecordType => FIELD_TYPES[PARENTS[type]];\n\n/** What a set's records and pages say about each other, resolved once for `check`, `list` and `get`. */\nexport interface StrategyIndex {\n /** Whether the set holds a record of this type. */\n has(type: RecordType): boolean;\n /** The record of `type` a value names, case-folded. The first one read wins. */\n resolve(type: RecordType, value: string): StrategyRecord | undefined;\n /** The first record of any type with this id, case-folded. */\n anyWithId(value: string): StrategyRecord | undefined;\n /** The records of the parent type the record's parent field names, each once, in the field's order. */\n parentsOf(record: StrategyRecord): StrategyRecord[];\n /** The records whose parent field names this record, in set order. */\n childrenOf(record: StrategyRecord): StrategyRecord[];\n /** The pages that name this record directly, sorted. Records do not count. */\n pagesNaming(record: StrategyRecord): string[];\n}\n\nexport function indexSet(set: StrategySet): StrategyIndex {\n const byType = new Map<RecordType, Map<string, StrategyRecord>>();\n const byId = new Map<string, StrategyRecord>();\n for (const record of set.records) {\n const ids = byType.get(record.type) ?? new Map<string, StrategyRecord>();\n if (!ids.has(fold(record.id))) ids.set(fold(record.id), record);\n byType.set(record.type, ids);\n if (!byId.has(fold(record.id))) byId.set(fold(record.id), record);\n }\n const resolveIn = (type: RecordType, value: string): StrategyRecord | undefined => byType.get(type)?.get(fold(value));\n const parentsOf = (record: StrategyRecord): StrategyRecord[] => {\n if (record.type === \"audience\") return [];\n const type = parentTypeOf(record.type);\n const found = record.parents.map((p) => resolveIn(type, p.value)).filter((r) => r !== undefined);\n return [...new Set(found)];\n };\n\n const children = new Map<StrategyRecord, StrategyRecord[]>();\n for (const record of set.records) {\n for (const parent of parentsOf(record)) children.set(parent, [...(children.get(parent) ?? []), record]);\n }\n const pages = new Map<StrategyRecord, Set<string>>();\n for (const reference of set.references) {\n if (reference.record) continue;\n const target = resolveIn(FIELD_TYPES[reference.field], reference.value);\n if (target === undefined) continue;\n const named = pages.get(target) ?? new Set<string>();\n named.add(reference.page);\n pages.set(target, named);\n }\n\n return {\n has: (type) => (byType.get(type)?.size ?? 0) > 0,\n resolve: resolveIn,\n anyWithId: (value) => byId.get(fold(value)),\n parentsOf,\n childrenOf: (record) => children.get(record) ?? [],\n pagesNaming: (record) => [...(pages.get(record) ?? [])].sort(),\n };\n}\n\n/** A finding before its level is known: `message` is its identity, `fix` the advice after it. */\ninterface Draft {\n rule: StrategyRule;\n message: string;\n fix?: string;\n file: string;\n line?: number;\n id?: string;\n field?: ReferenceField;\n}\n\n/** `a journey`, `an audience`. */\nfunction article(type: RecordType): string {\n return `${type === \"audience\" ? \"an\" : \"a\"} ${type}`;\n}\n\n/** Where a finding about a whole record sits: its `id:` line, else its first line. */\nfunction onRecord(record: StrategyRecord): At {\n return record.idAt ?? { file: record.file, line: record.line };\n}\n\nfunction located(at: At): At {\n return { file: at.file, ...(at.line === undefined ? {} : { line: at.line }) };\n}\n\n/** The ancestor of `record` of type `type`, walking up each record's first parent. */\nfunction ancestorOf(index: StrategyIndex, record: StrategyRecord, type: RecordType): StrategyRecord | undefined {\n let current = index.parentsOf(record)[0];\n while (current !== undefined && current.type !== type) current = index.parentsOf(current)[0];\n return current;\n}\n\nexport interface CheckStrategySetOptions {\n severity?: Partial<Record<StrategyRule, StrategySeverity>>;\n}\n\nexport function checkStrategySet(set: StrategySet, opts: CheckStrategySetOptions = {}): StrategyFinding[] {\n const levels = resolveSeverity(opts.severity);\n const index = indexSet(set);\n const drafts: Draft[] = [];\n\n /** The finding for a value that names no record of `type`, or the wrong type of record. */\n const unresolved = (field: ReferenceField, value: string, onRecordField: boolean): Pick<Draft, \"message\" | \"fix\"> => {\n const type = FIELD_TYPES[field];\n const other = index.anyWithId(value);\n if (other !== undefined) {\n const ancestor = ancestorOf(index, other, type);\n const fix =\n ancestor !== undefined\n ? `Did you mean its ${type}, \"${ancestor.id}\"?`\n : onRecordField\n ? \"Correct the value.\"\n : `Move it to ${PAGE_FIELDS[other.type]}:.`;\n return { message: `${field}: \"${value}\" is ${article(other.type)}, not ${article(type)}.`, fix };\n }\n const ids = set.records.filter((r) => r.type === type).map((r) => r.id);\n const nearest = closestName(fold(value), ids.map(fold));\n const suggestion = nearest === undefined ? undefined : ids.find((id) => fold(id) === nearest);\n const add = `Correct the value, or add a record with type: ${type} and id: ${value}.`;\n const fix =\n suggestion === undefined ? add : onRecordField ? `Did you mean \"${suggestion}\"?` : `Did you mean \"${suggestion}\"? ${add}`;\n return { message: `${field}: \"${value}\" names no ${type}.`, fix };\n };\n\n // undefined-reference, on every page's fields, records included.\n for (const reference of set.references) {\n const type = FIELD_TYPES[reference.field];\n if (!index.has(type) || index.resolve(type, reference.value) !== undefined) continue;\n drafts.push({\n rule: \"undefined-reference\",\n ...unresolved(reference.field, reference.value, false),\n ...located(reference),\n field: reference.field,\n });\n }\n // ...and on each value of a record's parent field.\n for (const record of set.records) {\n if (record.type === \"audience\") continue;\n const field = PARENTS[record.type];\n const type = parentTypeOf(record.type);\n if (!index.has(type)) continue;\n for (const parent of record.parents) {\n if (index.resolve(type, parent.value) !== undefined) continue;\n drafts.push({\n rule: \"undefined-reference\",\n ...unresolved(field, parent.value, true),\n ...located(parent),\n id: record.id,\n field,\n });\n }\n }\n\n // duplicate-id: on every record sharing the id, each naming the others.\n const sharing = new Map<string, StrategyRecord[]>();\n for (const record of set.records) sharing.set(fold(record.id), [...(sharing.get(fold(record.id)) ?? []), record]);\n for (const group of sharing.values()) {\n if (group.length < 2) continue;\n for (const record of group) {\n const others = group\n .filter((other) => other !== record)\n .map((other) => {\n const at = onRecord(other);\n return at.line === undefined ? at.file : `${at.file}:${String(at.line)}`;\n });\n drafts.push({\n rule: \"duplicate-id\",\n message: `id: \"${record.id}\" is also the id of ${others.join(\", \")}.`,\n fix: \"Give each record its own id.\",\n ...located(onRecord(record)),\n id: record.id,\n });\n }\n }\n\n // missing-parent: per page, one finding per set of parents the page names none of.\n const byPage = new Map<string, typeof set.references>();\n for (const reference of set.references) {\n if (reference.record) continue;\n byPage.set(reference.page, [...(byPage.get(reference.page) ?? []), reference]);\n }\n for (const references of byPage.values()) {\n const named = (field: ReferenceField): Set<string> =>\n new Set(references.filter((r) => r.field === field).map((r) => fold(r.value)));\n const reported = new Set<string>();\n for (const childType of [\"journey\", \"persona\"] as const satisfies readonly ChildType[]) {\n const parentType = parentTypeOf(childType);\n const parentField = PAGE_FIELDS[parentType];\n const has = named(parentField);\n for (const reference of references) {\n if (reference.field !== PAGE_FIELDS[childType]) continue;\n const child = index.resolve(childType, reference.value);\n if (child === undefined) continue;\n const parents = index.parentsOf(child);\n const ids = parents.map((p) => `\"${p.id}\"`).join(\", \");\n const key = `${parentType} ${ids}`;\n if (parents.length === 0 || parents.some((p) => has.has(fold(p.id))) || reported.has(key)) continue;\n reported.add(key);\n const one = parents.length === 1;\n drafts.push({\n rule: \"missing-parent\",\n message: one\n ? `${parentField}: does not name ${ids}, the ${parentType} of ${childType} \"${child.id}\".`\n : `${parentField}: names none of ${ids}, the ${parentField} of ${childType} \"${child.id}\".`,\n fix: `Add ${one ? \"it\" : \"one\"}, or drop \"${child.id}\" from ${PAGE_FIELDS[childType]}:.`,\n ...located(reference),\n field: parentField,\n });\n }\n }\n }\n\n // orphan-record, unserved-journey and unused-record: about whole records.\n for (const record of set.records) {\n const at = located(onRecord(record));\n if (record.type !== \"audience\" && record.parents.length === 0 && index.has(parentTypeOf(record.type))) {\n const field = PARENTS[record.type];\n drafts.push({\n rule: \"orphan-record\",\n message: `${field}: missing, so this ${record.type} belongs to no ${parentTypeOf(record.type)}.`,\n fix: `Name one with ${field}:.`,\n ...at,\n id: record.id,\n field,\n });\n }\n // Only the first record with an id is the one references resolve to.\n if (index.resolve(record.type, record.id) !== record) continue;\n const pages = index.pagesNaming(record);\n // A draft journey is not live yet, and an archived one no longer is, so neither owes a page.\n const live = record.lifecycle !== \"draft\" && record.lifecycle !== \"archived\";\n if (record.type === \"journey\" && live && pages.length === 0) {\n drafts.push({\n rule: \"unserved-journey\",\n message: \"no page names this journey in journeys:.\",\n fix: \"Name it on the pages that serve it.\",\n ...at,\n id: record.id,\n });\n }\n if (record.type !== \"journey\" && pages.length === 0 && index.childrenOf(record).length === 0) {\n drafts.push({\n rule: \"unused-record\",\n message: `no page and no record names this ${record.type}.`,\n ...at,\n id: record.id,\n });\n }\n }\n\n const findings: StrategyFinding[] = [];\n for (const draft of drafts) {\n const level = levels[draft.rule];\n if (level === \"off\") continue;\n findings.push({\n rule: draft.rule,\n ruleId: ruleId(draft.rule),\n severity: level,\n message: draft.fix === undefined ? draft.message : `${draft.message} ${draft.fix}`,\n ...(draft.fix === undefined ? {} : { key: draft.message }),\n guidance: guidanceFor(draft.rule),\n file: draft.file,\n ...(draft.line === undefined ? {} : { line: draft.line }),\n ...(draft.id === undefined ? {} : { id: draft.id }),\n ...(draft.field === undefined ? {} : { field: draft.field }),\n });\n }\n return findings.sort(compareFindings);\n}\n\nfunction compareText(a: string, b: string): number {\n return a < b ? -1 : a > b ? 1 : 0;\n}\n\nexport function compareFindings(a: StrategyFinding, b: StrategyFinding): number {\n return (\n compareText(a.file, b.file) ||\n (a.line ?? 0) - (b.line ?? 0) ||\n compareText(a.ruleId, b.ruleId) ||\n compareText(a.message, b.message)\n );\n}\n"],"mappings":";;;;;;;;;;;;;AA0BA,IAAM,OAAO,CAAC,UAA0B,MAAM,YAAY;AAG1D,IAAM,cAA4D;AAAA,EAChE,WAAW;AAAA,EACX,UAAU;AAAA,EACV,UAAU;AAAA,EACV,UAAU;AACZ;AAGA,IAAM,eAAe,CAAC,SAAgC,YAAY,QAAQ,IAAI,CAAC;AAkBxE,SAAS,SAAS,KAAiC;AACxD,QAAM,SAA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ChF,GAAI,MAAM,QAAQ,SAAY,CAAC,IAAI,EAAE,KAAK,MAAM,QAAQ;AAAA,MACxD,UAAU,YAAY,MAAM,IAAI;AAAA,MAChC,MAAM,MAAM;AAAA,MACZ,GAAI,MAAM,SAAS,SAAY,CAAC,IAAI,EAAE,MAAM,MAAM,KAAK;AAAA,MACvD,GAAI,MAAM,OAAO,SAAY,CAAC,IAAI,EAAE,IAAI,MAAM,GAAG;AAAA,MACjD,GAAI,MAAM,UAAU,SAAY,CAAC,IAAI,EAAE,OAAO,MAAM,MAAM;AAAA,IAC5D,CAAC;AAAA,EACH;AACA,SAAO,SAAS,KAAK,eAAe;AACtC;AAEA,SAAS,YAAY,GAAW,GAAmB;AACjD,SAAO,IAAI,IAAI,KAAK,IAAI,IAAI,IAAI;AAClC;AAEO,SAAS,gBAAgB,GAAoB,GAA4B;AAC9E,SACE,YAAY,EAAE,MAAM,EAAE,IAAI,MACzB,EAAE,QAAQ,MAAM,EAAE,QAAQ,MAC3B,YAAY,EAAE,QAAQ,EAAE,MAAM,KAC9B,YAAY,EAAE,SAAS,EAAE,OAAO;AAEpC;","names":["fix"]}
@@ -1 +0,0 @@
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 { 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 } = await loadStrategy(opts);\n const config = run.config;\n const findings = checkStrategySet(set, config?.severity === undefined ? {} : { severity: config.severity });\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 ...(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 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":";;;;;;;;;;;;;;;;;;;AAQA,SAAS,kBAAkB;;;ACcpB,IAAM,kBAAkB,CAAC,UAAU,QAAQ,UAAU,SAAS,OAAO;AAIrE,IAAM,kBAAkB;AAwB/B,IAAM,iBAAiB;AAEvB,SAAS,aAAa,SAAsC;AAC1D,QAAM,OAAO,QAAQ,OAAO,QAAQ;AACpC,QAAM,UAAU,CAAC,QAAQ,MAAM,IAAI,QAAQ,SAAS,IAAI,KAAK,QAAQ,gBAAgB,EAAE,CAAC,EAAE,KAAK,IAAQ;AACvG,QAAM,QAAoB;AAAA,IACxB,QAAQ;AAAA,IACR,cAAc,QAAQ,UAAU,SAAY,KAAK,IAAI,QAAQ,KAAK;AAAA,IAClE,SAAS,QAAQ;AAAA,IACjB,SAAS,QAAQ;AAAA,IACjB;AAAA,IACA,U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