@hawkeyexl/manni 4.13.0 → 4.15.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 (293) hide show
  1. package/README.md +1 -1
  2. package/dist/batch-OMDKRGUE.js +48 -0
  3. package/dist/build-YCY5MUHA.js +37 -0
  4. package/dist/calibrate-RN2NJ4FS.js +43 -0
  5. package/dist/capture-2WYROZKA.js +39 -0
  6. package/dist/check-KRVWHF7E.js +33 -0
  7. package/dist/{check-NBN2YK2J.js → check-LVUTWAGR.js} +33 -32
  8. package/dist/{check-NBN2YK2J.js.map → check-LVUTWAGR.js.map} +1 -1
  9. package/dist/check-MR7IG7IP.js +36 -0
  10. package/dist/{check-LU5YC3L4.js → check-OIRJ6OBW.js} +15 -14
  11. package/dist/{chunk-J5NOWIJ3.js → chunk-3CSEHHKB.js} +14 -8
  12. package/dist/{chunk-J5NOWIJ3.js.map → chunk-3CSEHHKB.js.map} +1 -1
  13. package/dist/{chunk-7RNONVHI.js → chunk-3EJVJDMX.js} +9 -9
  14. package/dist/{chunk-LSFXNAHU.js → chunk-3WQMMLIO.js} +129 -59
  15. package/dist/chunk-3WQMMLIO.js.map +1 -0
  16. package/dist/{chunk-OREHJQNN.js → chunk-46OWIAAX.js} +5 -4
  17. package/dist/{chunk-OREHJQNN.js.map → chunk-46OWIAAX.js.map} +1 -1
  18. package/dist/{chunk-LNGSE7V2.js → chunk-476DMDJ5.js} +132 -27
  19. package/dist/chunk-476DMDJ5.js.map +1 -0
  20. package/dist/{chunk-EQ7E6HMG.js → chunk-4MYW2D2U.js} +14 -16
  21. package/dist/chunk-4MYW2D2U.js.map +1 -0
  22. package/dist/{chunk-NTEYYYKL.js → chunk-525KMBZS.js} +16 -22
  23. package/dist/chunk-525KMBZS.js.map +1 -0
  24. package/dist/{chunk-HIEGOW7X.js → chunk-57DHX65T.js} +5 -79
  25. package/dist/chunk-57DHX65T.js.map +1 -0
  26. package/dist/{chunk-PCE7QHXJ.js → chunk-5D24C6WM.js} +6 -1
  27. package/dist/chunk-5D24C6WM.js.map +1 -0
  28. package/dist/{chunk-DQOM3DEU.js → chunk-6DYFWAZA.js} +563 -359
  29. package/dist/chunk-6DYFWAZA.js.map +1 -0
  30. package/dist/{chunk-CU57HT2E.js → chunk-6WJUZQQX.js} +2 -2
  31. package/dist/chunk-7EKXSSEO.js +81 -0
  32. package/dist/chunk-7EKXSSEO.js.map +1 -0
  33. package/dist/{chunk-ULDV2LUI.js → chunk-7SVFBJBE.js} +10 -4
  34. package/dist/chunk-7SVFBJBE.js.map +1 -0
  35. package/dist/{chunk-QKT67PFE.js → chunk-7XHW5DZA.js} +9 -9
  36. package/dist/{chunk-TDCOKKMI.js → chunk-AL4HRKSZ.js} +3 -3
  37. package/dist/{chunk-OTJOBZJ5.js → chunk-B2242FYO.js} +2 -1
  38. package/dist/chunk-B2242FYO.js.map +1 -0
  39. package/dist/chunk-BREAC43H.js +85 -0
  40. package/dist/chunk-BREAC43H.js.map +1 -0
  41. package/dist/{chunk-HKTGHLBA.js → chunk-C37OVJ35.js} +2 -2
  42. package/dist/{chunk-HKTGHLBA.js.map → chunk-C37OVJ35.js.map} +1 -1
  43. package/dist/{chunk-YQV75FIL.js → chunk-CFMI74TP.js} +3 -3
  44. package/dist/{chunk-BMBAAPGN.js → chunk-CWGBRWP7.js} +33 -18
  45. package/dist/chunk-CWGBRWP7.js.map +1 -0
  46. package/dist/chunk-DN4LCWSA.js +83 -0
  47. package/dist/chunk-DN4LCWSA.js.map +1 -0
  48. package/dist/{chunk-JEUFYSFQ.js → chunk-DW22KCLN.js} +118 -75
  49. package/dist/chunk-DW22KCLN.js.map +1 -0
  50. package/dist/{chunk-PCGBXHSE.js → chunk-FEEO7ET6.js} +5 -5
  51. package/dist/{chunk-CODWRUAD.js → chunk-FYWQS35G.js} +7 -5
  52. package/dist/chunk-FYWQS35G.js.map +1 -0
  53. package/dist/{chunk-3O6U4ICM.js → chunk-GLQCSDFS.js} +3 -3
  54. package/dist/{chunk-BQXY76JB.js → chunk-GUTAKJIF.js} +148 -92
  55. package/dist/chunk-GUTAKJIF.js.map +1 -0
  56. package/dist/{chunk-WVXCN5DS.js → chunk-GZHBMMDC.js} +78 -14
  57. package/dist/chunk-GZHBMMDC.js.map +1 -0
  58. package/dist/{chunk-52WO7ESI.js → chunk-IE5PXI6M.js} +6 -5
  59. package/dist/chunk-IE5PXI6M.js.map +1 -0
  60. package/dist/{chunk-ZXRAE55H.js → chunk-IGRXQC3H.js} +2 -2
  61. package/dist/{chunk-U6IHLEWT.js → chunk-JCTHXG33.js} +2 -2
  62. package/dist/{chunk-NSAW7U42.js → chunk-JHE3CYWS.js} +58 -10
  63. package/dist/chunk-JHE3CYWS.js.map +1 -0
  64. package/dist/{chunk-6ZFJWUUH.js → chunk-JNMY7KZG.js} +2 -2
  65. package/dist/chunk-JQPZKWIP.js +76 -0
  66. package/dist/chunk-JQPZKWIP.js.map +1 -0
  67. package/dist/{chunk-OBXCJZ6R.js → chunk-JTATFPWB.js} +28 -17
  68. package/dist/chunk-JTATFPWB.js.map +1 -0
  69. package/dist/{chunk-3HUCB4Z3.js → chunk-JULE3EU3.js} +10 -7
  70. package/dist/chunk-JULE3EU3.js.map +1 -0
  71. package/dist/{chunk-TQ3W6RKG.js → chunk-KCXQXKOL.js} +3 -3
  72. package/dist/{chunk-VYBYUQIP.js → chunk-KN37BXVY.js} +88 -7
  73. package/dist/chunk-KN37BXVY.js.map +1 -0
  74. package/dist/{chunk-OUAH7XF2.js → chunk-MAOX3524.js} +2 -2
  75. package/dist/chunk-MC7U5IH4.js +126 -0
  76. package/dist/chunk-MC7U5IH4.js.map +1 -0
  77. package/dist/{chunk-OYIWF3B2.js → chunk-NIQ2JSZO.js} +29 -20
  78. package/dist/chunk-NIQ2JSZO.js.map +1 -0
  79. package/dist/{chunk-HY6ROJTH.js → chunk-OFOIBV5J.js} +86 -10
  80. package/dist/chunk-OFOIBV5J.js.map +1 -0
  81. package/dist/{chunk-TZOYZK2E.js → chunk-OZUPJB4J.js} +2 -2
  82. package/dist/{chunk-N6A6DJUO.js → chunk-Q2VOXKAQ.js} +6 -7
  83. package/dist/chunk-Q2VOXKAQ.js.map +1 -0
  84. package/dist/{chunk-GWI6JPTT.js → chunk-Q62Q7CDI.js} +88 -8
  85. package/dist/chunk-Q62Q7CDI.js.map +1 -0
  86. package/dist/{chunk-PA7CMQGD.js → chunk-QDO5JFFV.js} +11 -5
  87. package/dist/chunk-QDO5JFFV.js.map +1 -0
  88. package/dist/{chunk-VNYXK7TM.js → chunk-QEJ4GH25.js} +8 -8
  89. package/dist/chunk-QEJ4GH25.js.map +1 -0
  90. package/dist/chunk-QK6VYJHV.js +26 -0
  91. package/dist/chunk-QK6VYJHV.js.map +1 -0
  92. package/dist/chunk-QS2Z3SWL.js +21 -0
  93. package/dist/chunk-QS2Z3SWL.js.map +1 -0
  94. package/dist/{chunk-NWUXRV6N.js → chunk-QS3K57OJ.js} +10 -8
  95. package/dist/chunk-QS3K57OJ.js.map +1 -0
  96. package/dist/{chunk-OKMTUAWO.js → chunk-QSPH4F56.js} +5 -5
  97. package/dist/{chunk-3XGTNN3M.js → chunk-RGRNAQG5.js} +12 -124
  98. package/dist/chunk-RGRNAQG5.js.map +1 -0
  99. package/dist/{chunk-E6BVUDGY.js → chunk-SLGCRXHM.js} +4 -4
  100. package/dist/{chunk-KE2F7QES.js → chunk-SVF3WCC7.js} +6 -6
  101. package/dist/{chunk-IGQMBHFY.js → chunk-T62SFCQY.js} +88 -12
  102. package/dist/chunk-T62SFCQY.js.map +1 -0
  103. package/dist/{chunk-SCLXVTFZ.js → chunk-TKINOTVS.js} +1 -1
  104. package/dist/chunk-TKINOTVS.js.map +1 -0
  105. package/dist/{chunk-VOXOBUTX.js → chunk-TXZJESES.js} +5 -5
  106. package/dist/chunk-UPUJJOKB.js +236 -0
  107. package/dist/chunk-UPUJJOKB.js.map +1 -0
  108. package/dist/{chunk-7JPL3CUC.js → chunk-URGALOZY.js} +2 -2
  109. package/dist/{chunk-X4MPUD4B.js → chunk-UVLQRP6O.js} +53 -13
  110. package/dist/chunk-UVLQRP6O.js.map +1 -0
  111. package/dist/{chunk-CWXZ2MRT.js → chunk-VHJ72YCD.js} +4 -3
  112. package/dist/chunk-VHJ72YCD.js.map +1 -0
  113. package/dist/{chunk-PAU352SV.js → chunk-W4GTMOJW.js} +2 -2
  114. package/dist/{chunk-SE4JN5XN.js → chunk-WDENIUC7.js} +3 -1
  115. package/dist/chunk-WDENIUC7.js.map +1 -0
  116. package/dist/{chunk-3BVDFQ6Y.js → chunk-Y3GWQBJP.js} +5 -5
  117. package/dist/{chunk-YZ4TJLZQ.js → chunk-YT5HKJWV.js} +497 -18
  118. package/dist/chunk-YT5HKJWV.js.map +1 -0
  119. package/dist/{chunk-UQMLCIRX.js → chunk-Z6PZKXSP.js} +6 -6
  120. package/dist/{chunk-JUL2PRQN.js → chunk-ZC2MZZR5.js} +207 -79
  121. package/dist/chunk-ZC2MZZR5.js.map +1 -0
  122. package/dist/{chunk-UKZNLVJW.js → chunk-ZINZTHWO.js} +4 -2
  123. package/dist/chunk-ZINZTHWO.js.map +1 -0
  124. package/dist/{cli-4JHQCPHU.js → cli-33E3B2FK.js} +3 -3
  125. package/dist/{cli-G66X7YMP.js → cli-7JV4RM66.js} +23 -22
  126. package/dist/{cli-G66X7YMP.js.map → cli-7JV4RM66.js.map} +1 -1
  127. package/dist/{cli-L5B2RVV2.js → cli-B4DTJ2KC.js} +31 -29
  128. package/dist/{cli-L5B2RVV2.js.map → cli-B4DTJ2KC.js.map} +1 -1
  129. package/dist/{cli-ECVT4YXR.js → cli-D4WXCDTS.js} +20 -19
  130. package/dist/{cli-ECVT4YXR.js.map → cli-D4WXCDTS.js.map} +1 -1
  131. package/dist/{cli-7DETHSNW.js → cli-DDLLZHZW.js} +90 -84
  132. package/dist/cli-DDLLZHZW.js.map +1 -0
  133. package/dist/{cli-KYTCJYXK.js → cli-EVACAD7K.js} +317 -28
  134. package/dist/cli-EVACAD7K.js.map +1 -0
  135. package/dist/{cli-H5LVGOVT.js → cli-LIKI7WPR.js} +384 -248
  136. package/dist/cli-LIKI7WPR.js.map +1 -0
  137. package/dist/{cli-AZKWTCFV.js → cli-MWUFAS2X.js} +11 -11
  138. package/dist/{cli-DGFLJ2DD.js → cli-OKPRTVG6.js} +69 -26
  139. package/dist/cli-OKPRTVG6.js.map +1 -0
  140. package/dist/{cli-RP5E7XHC.js → cli-QEPVGLQ3.js} +20 -18
  141. package/dist/{cli-RP5E7XHC.js.map → cli-QEPVGLQ3.js.map} +1 -1
  142. package/dist/{cli-BW5VOFOZ.js → cli-VP6JTPFS.js} +11 -10
  143. package/dist/{cli-BW5VOFOZ.js.map → cli-VP6JTPFS.js.map} +1 -1
  144. package/dist/cli.js +14 -14
  145. package/dist/{config-JJW75SBX.js → config-7I5CHHRZ.js} +6 -6
  146. package/dist/docmeta.js +10 -10
  147. package/dist/github-DV57TW5L.js +32 -0
  148. package/dist/github-SGX2EARO.js +36 -0
  149. package/dist/graph/runtime.js.map +1 -1
  150. package/dist/index.d.ts +222 -45
  151. package/dist/index.js +138 -132
  152. package/dist/index.js.map +1 -1
  153. package/dist/{json-7WV7KL6H.js → json-5EQCGVCV.js} +4 -2
  154. package/dist/{json-LCVPMEAM.js → json-SHPUCD64.js} +15 -13
  155. package/dist/{labels-OQXBVM4A.js → labels-3GCGYYV3.js} +14 -12
  156. package/dist/{labels-OQXBVM4A.js.map → labels-3GCGYYV3.js.map} +1 -1
  157. package/dist/lint-RE4DMI6E.js +35 -0
  158. package/dist/list-F56MEJXR.js +36 -0
  159. package/dist/list-ZR3KY556.js +34 -0
  160. package/dist/{page-XPX5XJZE.js → page-G7XSO4FD.js} +13 -12
  161. package/dist/{picker-3XF36MJF.js → picker-FPUC5UGM.js} +3 -3
  162. package/dist/{prepare-VMBIQYAM.js → prepare-WHMWP7BG.js} +21 -20
  163. package/dist/{prepare-VMBIQYAM.js.map → prepare-WHMWP7BG.js.map} +1 -1
  164. package/dist/{pretty-KSTZMBUF.js → pretty-VTJVXWRK.js} +15 -13
  165. package/dist/{pretty-KG6TMOEI.js → pretty-YVRRWBWN.js} +23 -16
  166. package/dist/{provider-LBX4IXGX.js → provider-JY2I3VLF.js} +3 -3
  167. package/dist/{release-VV3UTKE5.js → release-Z3ASYZ3S.js} +3 -3
  168. package/dist/{reporters-26H3N2KW.js → reporters-FSXJ42EB.js} +6 -5
  169. package/dist/{reporters-AQU4W3KY.js → reporters-G5R4SURQ.js} +6 -6
  170. package/dist/{reporters-FBYLPKD4.js → reporters-MHPY4HRA.js} +15 -14
  171. package/dist/run-FSYOYEPR.js +39 -0
  172. package/dist/sarif-HBQIDY7T.js +31 -0
  173. package/dist/sarif-RRUFJZUL.js +37 -0
  174. package/dist/{term-SI3VM6EM.js → term-ABHGACYE.js} +58 -109
  175. package/dist/term-ABHGACYE.js.map +1 -0
  176. package/dist/types-VMOT7RAL.js +12 -0
  177. package/dist/types-VMOT7RAL.js.map +1 -0
  178. package/dist/{validate-NQO7TFSN.js → validate-DXYUUGUD.js} +6 -6
  179. package/dist/validate-DXYUUGUD.js.map +1 -0
  180. package/package.json +1 -1
  181. package/plugin/manni/.claude-plugin/plugin.json +1 -1
  182. package/plugin/manni/skills/check/SKILL.md +2 -2
  183. package/plugin/manni/skills/evals/SKILL.md +1 -1
  184. package/plugin/manni/skills/fix/SKILL.md +95 -16
  185. package/plugin/manni/skills/setup/SKILL.md +1 -1
  186. package/shapes/graph/shapes-1.1.1.ttl +953 -0
  187. package/dist/batch-OB2FXT47.js +0 -46
  188. package/dist/build-4BL24BG3.js +0 -36
  189. package/dist/calibrate-AEDJ7N7G.js +0 -41
  190. package/dist/capture-TP3P4YNL.js +0 -38
  191. package/dist/check-5IYH42KS.js +0 -34
  192. package/dist/check-S55MH66H.js +0 -30
  193. package/dist/chunk-3HUCB4Z3.js.map +0 -1
  194. package/dist/chunk-3XGTNN3M.js.map +0 -1
  195. package/dist/chunk-52WO7ESI.js.map +0 -1
  196. package/dist/chunk-BMBAAPGN.js.map +0 -1
  197. package/dist/chunk-BQXY76JB.js.map +0 -1
  198. package/dist/chunk-CODWRUAD.js.map +0 -1
  199. package/dist/chunk-CWXZ2MRT.js.map +0 -1
  200. package/dist/chunk-DQOM3DEU.js.map +0 -1
  201. package/dist/chunk-EQ7E6HMG.js.map +0 -1
  202. package/dist/chunk-GWI6JPTT.js.map +0 -1
  203. package/dist/chunk-HIEGOW7X.js.map +0 -1
  204. package/dist/chunk-HY6ROJTH.js.map +0 -1
  205. package/dist/chunk-IGQMBHFY.js.map +0 -1
  206. package/dist/chunk-JEUFYSFQ.js.map +0 -1
  207. package/dist/chunk-JUL2PRQN.js.map +0 -1
  208. package/dist/chunk-LNGSE7V2.js.map +0 -1
  209. package/dist/chunk-LSFXNAHU.js.map +0 -1
  210. package/dist/chunk-MNH7QO4Z.js +0 -15
  211. package/dist/chunk-MNH7QO4Z.js.map +0 -1
  212. package/dist/chunk-N6A6DJUO.js.map +0 -1
  213. package/dist/chunk-NSAW7U42.js.map +0 -1
  214. package/dist/chunk-NTEYYYKL.js.map +0 -1
  215. package/dist/chunk-NWUXRV6N.js.map +0 -1
  216. package/dist/chunk-OBXCJZ6R.js.map +0 -1
  217. package/dist/chunk-OTJOBZJ5.js.map +0 -1
  218. package/dist/chunk-OYIWF3B2.js.map +0 -1
  219. package/dist/chunk-PA7CMQGD.js.map +0 -1
  220. package/dist/chunk-PCE7QHXJ.js.map +0 -1
  221. package/dist/chunk-SCLXVTFZ.js.map +0 -1
  222. package/dist/chunk-SE4JN5XN.js.map +0 -1
  223. package/dist/chunk-UKZNLVJW.js.map +0 -1
  224. package/dist/chunk-ULDV2LUI.js.map +0 -1
  225. package/dist/chunk-VNYXK7TM.js.map +0 -1
  226. package/dist/chunk-VYBYUQIP.js.map +0 -1
  227. package/dist/chunk-WVXCN5DS.js.map +0 -1
  228. package/dist/chunk-X4MPUD4B.js.map +0 -1
  229. package/dist/chunk-Y6M4JFKG.js +0 -117
  230. package/dist/chunk-Y6M4JFKG.js.map +0 -1
  231. package/dist/chunk-YZ4TJLZQ.js.map +0 -1
  232. package/dist/cli-7DETHSNW.js.map +0 -1
  233. package/dist/cli-DGFLJ2DD.js.map +0 -1
  234. package/dist/cli-H5LVGOVT.js.map +0 -1
  235. package/dist/cli-KYTCJYXK.js.map +0 -1
  236. package/dist/github-DJQ4MWNZ.js +0 -35
  237. package/dist/github-UWTDM2J2.js +0 -30
  238. package/dist/lint-O7XRHKFP.js +0 -34
  239. package/dist/list-OOOCLOAL.js +0 -35
  240. package/dist/list-OYQ5XPN2.js +0 -32
  241. package/dist/run-KUGTU3TT.js +0 -37
  242. package/dist/term-SI3VM6EM.js.map +0 -1
  243. package/dist/types-Y6TXHM7M.js +0 -10
  244. /package/dist/{batch-OB2FXT47.js.map → batch-OMDKRGUE.js.map} +0 -0
  245. /package/dist/{build-4BL24BG3.js.map → build-YCY5MUHA.js.map} +0 -0
  246. /package/dist/{calibrate-AEDJ7N7G.js.map → calibrate-RN2NJ4FS.js.map} +0 -0
  247. /package/dist/{capture-TP3P4YNL.js.map → capture-2WYROZKA.js.map} +0 -0
  248. /package/dist/{check-5IYH42KS.js.map → check-KRVWHF7E.js.map} +0 -0
  249. /package/dist/{check-LU5YC3L4.js.map → check-MR7IG7IP.js.map} +0 -0
  250. /package/dist/{check-S55MH66H.js.map → check-OIRJ6OBW.js.map} +0 -0
  251. /package/dist/{chunk-7RNONVHI.js.map → chunk-3EJVJDMX.js.map} +0 -0
  252. /package/dist/{chunk-CU57HT2E.js.map → chunk-6WJUZQQX.js.map} +0 -0
  253. /package/dist/{chunk-QKT67PFE.js.map → chunk-7XHW5DZA.js.map} +0 -0
  254. /package/dist/{chunk-TDCOKKMI.js.map → chunk-AL4HRKSZ.js.map} +0 -0
  255. /package/dist/{chunk-YQV75FIL.js.map → chunk-CFMI74TP.js.map} +0 -0
  256. /package/dist/{chunk-PCGBXHSE.js.map → chunk-FEEO7ET6.js.map} +0 -0
  257. /package/dist/{chunk-3O6U4ICM.js.map → chunk-GLQCSDFS.js.map} +0 -0
  258. /package/dist/{chunk-ZXRAE55H.js.map → chunk-IGRXQC3H.js.map} +0 -0
  259. /package/dist/{chunk-U6IHLEWT.js.map → chunk-JCTHXG33.js.map} +0 -0
  260. /package/dist/{chunk-6ZFJWUUH.js.map → chunk-JNMY7KZG.js.map} +0 -0
  261. /package/dist/{chunk-TQ3W6RKG.js.map → chunk-KCXQXKOL.js.map} +0 -0
  262. /package/dist/{chunk-OUAH7XF2.js.map → chunk-MAOX3524.js.map} +0 -0
  263. /package/dist/{chunk-TZOYZK2E.js.map → chunk-OZUPJB4J.js.map} +0 -0
  264. /package/dist/{chunk-OKMTUAWO.js.map → chunk-QSPH4F56.js.map} +0 -0
  265. /package/dist/{chunk-E6BVUDGY.js.map → chunk-SLGCRXHM.js.map} +0 -0
  266. /package/dist/{chunk-KE2F7QES.js.map → chunk-SVF3WCC7.js.map} +0 -0
  267. /package/dist/{chunk-VOXOBUTX.js.map → chunk-TXZJESES.js.map} +0 -0
  268. /package/dist/{chunk-7JPL3CUC.js.map → chunk-URGALOZY.js.map} +0 -0
  269. /package/dist/{chunk-PAU352SV.js.map → chunk-W4GTMOJW.js.map} +0 -0
  270. /package/dist/{chunk-3BVDFQ6Y.js.map → chunk-Y3GWQBJP.js.map} +0 -0
  271. /package/dist/{chunk-UQMLCIRX.js.map → chunk-Z6PZKXSP.js.map} +0 -0
  272. /package/dist/{cli-4JHQCPHU.js.map → cli-33E3B2FK.js.map} +0 -0
  273. /package/dist/{cli-AZKWTCFV.js.map → cli-MWUFAS2X.js.map} +0 -0
  274. /package/dist/{config-JJW75SBX.js.map → config-7I5CHHRZ.js.map} +0 -0
  275. /package/dist/{github-DJQ4MWNZ.js.map → github-DV57TW5L.js.map} +0 -0
  276. /package/dist/{github-UWTDM2J2.js.map → github-SGX2EARO.js.map} +0 -0
  277. /package/dist/{json-7WV7KL6H.js.map → json-5EQCGVCV.js.map} +0 -0
  278. /package/dist/{json-LCVPMEAM.js.map → json-SHPUCD64.js.map} +0 -0
  279. /package/dist/{lint-O7XRHKFP.js.map → lint-RE4DMI6E.js.map} +0 -0
  280. /package/dist/{list-OOOCLOAL.js.map → list-F56MEJXR.js.map} +0 -0
  281. /package/dist/{list-OYQ5XPN2.js.map → list-ZR3KY556.js.map} +0 -0
  282. /package/dist/{page-XPX5XJZE.js.map → page-G7XSO4FD.js.map} +0 -0
  283. /package/dist/{picker-3XF36MJF.js.map → picker-FPUC5UGM.js.map} +0 -0
  284. /package/dist/{pretty-KG6TMOEI.js.map → pretty-VTJVXWRK.js.map} +0 -0
  285. /package/dist/{pretty-KSTZMBUF.js.map → pretty-YVRRWBWN.js.map} +0 -0
  286. /package/dist/{provider-LBX4IXGX.js.map → provider-JY2I3VLF.js.map} +0 -0
  287. /package/dist/{release-VV3UTKE5.js.map → release-Z3ASYZ3S.js.map} +0 -0
  288. /package/dist/{reporters-26H3N2KW.js.map → reporters-FSXJ42EB.js.map} +0 -0
  289. /package/dist/{reporters-AQU4W3KY.js.map → reporters-G5R4SURQ.js.map} +0 -0
  290. /package/dist/{reporters-FBYLPKD4.js.map → reporters-MHPY4HRA.js.map} +0 -0
  291. /package/dist/{run-KUGTU3TT.js.map → run-FSYOYEPR.js.map} +0 -0
  292. /package/dist/{types-Y6TXHM7M.js.map → sarif-HBQIDY7T.js.map} +0 -0
  293. /package/dist/{validate-NQO7TFSN.js.map → sarif-RRUFJZUL.js.map} +0 -0
@@ -1,36 +1,37 @@
1
1
  #!/usr/bin/env node
2
2
  import {
3
3
  idHash
4
- } from "./chunk-TQ3W6RKG.js";
5
- import "./chunk-PCGBXHSE.js";
6
- import "./chunk-CWXZ2MRT.js";
4
+ } from "./chunk-KCXQXKOL.js";
5
+ import "./chunk-FEEO7ET6.js";
6
+ import "./chunk-VHJ72YCD.js";
7
7
  import {
8
8
  readStdin
9
- } from "./chunk-TZOYZK2E.js";
10
- import "./chunk-E6BVUDGY.js";
9
+ } from "./chunk-OZUPJB4J.js";
10
+ import "./chunk-SLGCRXHM.js";
11
11
  import {
12
12
  DEFAULT_CAPTURE_DIR
13
- } from "./chunk-CU57HT2E.js";
13
+ } from "./chunk-6WJUZQQX.js";
14
14
  import "./chunk-4TSWU2SU.js";
15
- import "./chunk-UKZNLVJW.js";
15
+ import "./chunk-ZINZTHWO.js";
16
16
  import "./chunk-YUTVAMWW.js";
17
- import "./chunk-HIEGOW7X.js";
18
- import "./chunk-IGQMBHFY.js";
19
- import "./chunk-OUAH7XF2.js";
20
- import "./chunk-BMBAAPGN.js";
21
- import "./chunk-52WO7ESI.js";
17
+ import "./chunk-DN4LCWSA.js";
18
+ import "./chunk-57DHX65T.js";
19
+ import "./chunk-T62SFCQY.js";
20
+ import "./chunk-MAOX3524.js";
21
+ import "./chunk-CWGBRWP7.js";
22
+ import "./chunk-IE5PXI6M.js";
22
23
  import {
23
24
  memberOf,
24
25
  retainMembers
25
- } from "./chunk-LNGSE7V2.js";
26
+ } from "./chunk-476DMDJ5.js";
26
27
  import "./chunk-DSWKBZWW.js";
27
28
  import {
28
29
  extractorForExtension,
29
30
  resolveTargetSet,
30
31
  supportedExtensions,
31
32
  withSharedWalks
32
- } from "./chunk-HY6ROJTH.js";
33
- import "./chunk-MNH7QO4Z.js";
33
+ } from "./chunk-OFOIBV5J.js";
34
+ import "./chunk-QK6VYJHV.js";
34
35
  import {
35
36
  shouldColor
36
37
  } from "./chunk-RNVYGWIC.js";
@@ -40,7 +41,7 @@ import {
40
41
  import {
41
42
  findFamilyConfigFile,
42
43
  readFamilyConfigFile
43
- } from "./chunk-OTJOBZJ5.js";
44
+ } from "./chunk-B2242FYO.js";
44
45
  import {
45
46
  notice,
46
47
  warn
@@ -48,7 +49,7 @@ import {
48
49
  import "./chunk-VM7VAFJW.js";
49
50
  import {
50
51
  package_default
51
- } from "./chunk-HKTGHLBA.js";
52
+ } from "./chunk-C37OVJ35.js";
52
53
  import {
53
54
  programName
54
55
  } from "./chunk-OWBRDNRZ.js";
@@ -125,13 +126,13 @@ var FamilyError = class extends ToolError {
125
126
  };
126
127
  function noConfigError(cwd) {
127
128
  return new FamilyError(
128
- `No manni.config.yaml found from ${cwd} up to the repository root. manni check runs the checks it sets up.`,
129
+ `No manni.config.yaml found from ${cwd} up to the repository root. Create one there with a collections: entry for your docs.`,
129
130
  true
130
131
  );
131
132
  }
132
133
  function nothingSetUpError() {
133
134
  return new FamilyError(
134
- "Nothing is set up to check in manni.config.yaml. manni status says what each domain needs.",
135
+ "Nothing is set up to check in manni.config.yaml. Run manni status to see what each domain needs.",
135
136
  true
136
137
  );
137
138
  }
@@ -152,12 +153,26 @@ var NOT_SET_UP = {
152
153
  term: "no terms in any collection",
153
154
  graph: "no graph: section"
154
155
  };
156
+ var NEXT = {
157
+ meta: "Add a meta: section that names your schemas. manni meta schemas lists the built-in ones.",
158
+ cite: "Pin a sentence to its source with manni cite add.",
159
+ lint: "Add a lint: section. manni lint templates lists the templates it can apply.",
160
+ docevals: "Add a docevals: section, or declare evals in a page's frontmatter.",
161
+ term: "Add a page with type: term to a collection.",
162
+ graph: "Run manni graph init to add a starter graph: section."
163
+ };
164
+ var NO_COLLECTIONS = "no collections: in manni.config.yaml";
165
+ var NO_COLLECTIONS_NEXT = "Add a collections: entry that names your docs.";
155
166
  var META_DEFAULTS_ONLY = "only the built-in default schemas cover these files";
156
167
  var NOT_CHECKED = [
157
- ["a11y", "run manni site preview, then manni a11y check"],
168
+ ["a11y", "needs a running site and a browser", "Run manni site preview, then manni a11y check."],
158
169
  // Doc Detective runs the shell steps pages carry, so a hook never starts it.
159
- ["test", "run manni test run with Doc Detective installed"],
160
- ["tracevals", "run manni tracevals run over sessions"]
170
+ ["test", "runs the shell steps the pages carry", "Run manni test run with Doc Detective installed."],
171
+ [
172
+ "tracevals",
173
+ "judges recorded sessions with a model",
174
+ "Run manni tracevals run over sessions, or add tracevals.runtime to judge each turn."
175
+ ]
161
176
  ];
162
177
  function plural(n, one, many = `${one}s`) {
163
178
  return `${String(n)} ${n === 1 ? one : many}`;
@@ -197,7 +212,7 @@ async function listMembers(family, cwd) {
197
212
  }
198
213
 
199
214
  // src/family/commands/check.ts
200
- import { basename, extname, resolve as resolve3 } from "node:path";
215
+ import { basename, extname as extname2, resolve as resolve4 } from "node:path";
201
216
 
202
217
  // src/family/core/changed.ts
203
218
  import { execFile } from "node:child_process";
@@ -259,16 +274,215 @@ function sayOnce(projectDir, sessionId, key) {
259
274
  }
260
275
  }
261
276
 
277
+ // src/family/commands/status.ts
278
+ import { appendFileSync, existsSync, readFileSync } from "node:fs";
279
+ import { extname, resolve as resolve3 } from "node:path";
280
+ var STATUS_FORMATS = ["pretty", "json"];
281
+ async function tracevalsRow(cwd, opts) {
282
+ try {
283
+ const [
284
+ { discoverConfig },
285
+ { assertProviderSelection, resolveSelectionIdentity, selectHookProvider, selectProvider },
286
+ { hostStatus }
287
+ ] = await Promise.all([
288
+ import("./config-7I5CHHRZ.js"),
289
+ import("./provider-JY2I3VLF.js"),
290
+ import("./host-YSTYO5DX.js")
291
+ ]);
292
+ const { config } = await discoverConfig(cwd, opts.configPath === void 0 ? {} : { configPath: opts.configPath });
293
+ const hook = await resolveSelectionIdentity(config, selectHookProvider(config));
294
+ const selection = selectProvider(config);
295
+ assertProviderSelection(selection);
296
+ const extraction = await resolveSelectionIdentity(config, selection);
297
+ const host = await (opts.hostStatus ?? hostStatus)().catch(() => null);
298
+ return {
299
+ name: "tracevals",
300
+ status: "in-play",
301
+ reason: `hook: ${hook.provider} ${hook.model} \xB7 extraction: ${extraction.provider} ${extraction.model}`,
302
+ models: {
303
+ hook: { provider: hook.provider, model: hook.model },
304
+ extraction: { provider: extraction.provider, model: extraction.model }
305
+ },
306
+ ...host === null || host.models.length === 0 ? {} : { host: host.models }
307
+ };
308
+ } catch (err) {
309
+ const message = errorMessage(err).split("\n", 1)[0] ?? "";
310
+ return {
311
+ name: "tracevals",
312
+ status: "unknown",
313
+ reason: `manni tracevals check could not run: ${message}`,
314
+ next: "Fix what the reason names, then run manni status again."
315
+ };
316
+ }
317
+ }
318
+ function pages(n, one, many) {
319
+ return n === 1 ? `1 page ${one}` : `${String(n)} pages ${many}`;
320
+ }
321
+ function ownSchemaCount(cwd, members) {
322
+ let n = 0;
323
+ for (const label of members) {
324
+ const extractor = extractorForExtension(extname(label));
325
+ if (extractor === void 0) continue;
326
+ try {
327
+ const { data } = extractor.extract(readFileSync(resolve3(cwd, label), "utf8"), label);
328
+ if (data.$schema !== void 0) n++;
329
+ } catch {
330
+ }
331
+ }
332
+ return n;
333
+ }
334
+ async function citedPages(cwd, configPath) {
335
+ const { prepareRun, readTarget } = await import("./check-OIRJ6OBW.js");
336
+ const { readPage } = await import("./page-G7XSO4FD.js");
337
+ const prepared = await prepareRun({ inputs: [], configPath, cwd, checkSources: false }, "checked", "check");
338
+ let n = 0;
339
+ for (const file of prepared.files) {
340
+ const content = await readTarget(prepared.run, file);
341
+ const { citations } = (await prepared.setupFor(file, content)).options;
342
+ const read = readPage(file, content, { markers: false, ...citations === void 0 ? {} : { citations } });
343
+ if (read.citations.length > 0) n++;
344
+ }
345
+ return n;
346
+ }
347
+ async function row(domain, family, cwd, members) {
348
+ const configPath = family.configPath;
349
+ const inPlay = (reason) => ({ name: domain, status: "in-play", reason });
350
+ const notSetUp = { name: domain, status: "not-set-up", reason: NOT_SET_UP[domain], next: NEXT[domain] };
351
+ const section = family.sections.has(domain);
352
+ switch (domain) {
353
+ case "meta": {
354
+ if (section) return inPlay("meta: section");
355
+ const n = ownSchemaCount(cwd, members);
356
+ return n > 0 ? inPlay(pages(n, "names its own $schema", "name their own $schema")) : notSetUp;
357
+ }
358
+ case "cite": {
359
+ const n = await citedPages(cwd, configPath);
360
+ return n > 0 ? inPlay(pages(n, "carries citations", "carry citations")) : notSetUp;
361
+ }
362
+ case "docevals": {
363
+ const { runList: listEvals } = await import("./list-F56MEJXR.js");
364
+ const { plans } = await listEvals([], { config: configPath, cwd });
365
+ const n = plans.filter((p) => !p.skip && p.evals.length > 0).length;
366
+ if (n === 0) return notSetUp;
367
+ return inPlay(section ? "docevals: section" : pages(n, "declares evals", "declare evals"));
368
+ }
369
+ case "term": {
370
+ const { runList: listTerms } = await import("./list-ZR3KY556.js");
371
+ const { terms } = await listTerms({ inputs: [], configPath, cwd, allowEmpty: true });
372
+ return terms.length > 0 ? inPlay(plural(terms.length, "term")) : notSetUp;
373
+ }
374
+ case "lint":
375
+ case "graph":
376
+ return section ? inPlay(`${domain}: section`) : notSetUp;
377
+ }
378
+ }
379
+ function runStatus(opts = {}) {
380
+ return withSharedWalks(() => statusUnshared(opts));
381
+ }
382
+ async function statusUnshared(opts) {
383
+ const cwd = resolve3(opts.cwd ?? process.cwd());
384
+ const family = await loadFamily(cwd, opts.configPath);
385
+ const members = family.collections.length === 0 ? [] : await listMembers(family, cwd);
386
+ const domains = [];
387
+ for (const domain of DOMAINS) {
388
+ if (family.collections.length === 0) {
389
+ domains.push({ name: domain, status: "not-set-up", reason: NO_COLLECTIONS, next: NO_COLLECTIONS_NEXT });
390
+ continue;
391
+ }
392
+ try {
393
+ domains.push(await row(domain, family, cwd, members));
394
+ } catch (err) {
395
+ const message = errorMessage(err).split("\n", 1)[0] ?? "";
396
+ domains.push({
397
+ name: domain,
398
+ status: "unknown",
399
+ reason: `manni ${COMMANDS[domain]} could not run: ${message}`,
400
+ next: `Run manni ${COMMANDS[domain]} to see the whole error.`
401
+ });
402
+ }
403
+ }
404
+ for (const [name, reason, next] of NOT_CHECKED) {
405
+ domains.push(
406
+ name === "tracevals" && family.runtime ? await tracevalsRow(cwd, opts) : { name, status: "not-checked", reason, next }
407
+ );
408
+ }
409
+ return {
410
+ version: package_default.version,
411
+ config: family.file.source,
412
+ collections: family.collections.map((c) => ({
413
+ name: c.name,
414
+ files: members.filter((label) => collectionsOf(family, cwd, label).includes(c.name)).length
415
+ })),
416
+ domains
417
+ };
418
+ }
419
+ var STATE_LABEL = {
420
+ "in-play": "in play",
421
+ "not-set-up": "not set up",
422
+ "not-checked": "not checked",
423
+ unknown: "unknown"
424
+ };
425
+ function renderStatus(report, format, opts = {}) {
426
+ if (format === "json") return JSON.stringify(report, null, 2);
427
+ const head = [
428
+ `manni ${report.version}`,
429
+ `config ${report.config}`,
430
+ ...report.collections.map((c) => `collection ${c.name} (${plural(c.files, "file")})`)
431
+ ].join(" ");
432
+ const label = (d) => d.models !== void 0 ? "judges each turn" : STATE_LABEL[d.status];
433
+ const width = Math.max(14, ...report.domains.map((d) => label(d).length + 3));
434
+ const indent = "".padEnd(11 + width);
435
+ const rows = report.domains.flatMap((d, i) => [
436
+ `${d.name.padEnd(11)}${label(d).padEnd(width)}${d.reason}`,
437
+ ...(d.host ?? []).map(
438
+ (m) => `${"".padEnd(11)}${"model host".padEnd(width)}${m.model} loaded, ${plural(m.sessions, "session")}, idle ${String(Math.floor(m.idleMs / 6e4))}m`
439
+ ),
440
+ // A next step a run of rows shares is said once, under the last of them.
441
+ ...opts.next !== false && d.next !== void 0 && report.domains[i + 1]?.next !== d.next ? [`${indent}${d.next}`] : []
442
+ ]);
443
+ return [head, "", ...rows].join("\n");
444
+ }
445
+ var FIX_SKILL = "manni:fix";
446
+ var FIX_SENTENCE = `The ${FIX_SKILL} skill says how to repair each finding.`;
447
+ var PAGE_WIDE = [["term", "the glossary"]];
448
+ function prose(items, conjunction) {
449
+ return items.length <= 1 ? items[0] ?? "" : `${items.slice(0, -1).join(", ")} ${conjunction} ${items.at(-1) ?? ""}`;
450
+ }
451
+ function agentLines(report) {
452
+ const names = prose(report.collections.map((c) => c.name), "or");
453
+ const inPlay = new Set(report.domains.filter((d) => d.status === "in-play").map((d) => d.name));
454
+ const plus = inPlay.has("cite") ? ", plus every citation" : "";
455
+ const pageWide = PAGE_WIDE.filter(([domain]) => inPlay.has(domain)).map(([, what]) => what);
456
+ const also = pageWide.length === 0 ? "" : ` It checks ${prose(pageWide, "and")} too when you changed a page.`;
457
+ return [
458
+ `After you edit a file in ${names}, manni check runs on it, and errors come back to you at once.`,
459
+ `Before you finish, manni check runs on every file you changed${plus}.${also} You get one repair pass.`,
460
+ FIX_SENTENCE
461
+ ].join("\n");
462
+ }
463
+ var MODEL_ID = /^[A-Za-z0-9._:/@-]+$/;
464
+ function exportGeneratedBy(envelope, env = process.env) {
465
+ const file = env.CLAUDE_ENV_FILE;
466
+ const model = envelope.model?.replace(/\[[^\]]*\]$/, "");
467
+ if (model === void 0 || !MODEL_ID.test(model)) return false;
468
+ if (file === void 0 || file === "" || env.MANNI_GENERATED_BY !== void 0) return false;
469
+ const existing = existsSync(file) ? readFileSync(file, "utf8") : "";
470
+ const lead = existing === "" || existing.endsWith("\n") ? "" : "\n";
471
+ appendFileSync(file, `${lead}export MANNI_GENERATED_BY=${model}
472
+ `, "utf8");
473
+ return true;
474
+ }
475
+
262
476
  // src/family/commands/check.ts
263
- var CHECK_FORMATS = ["pretty", "json", "github"];
477
+ var CHECK_FORMATS = ["pretty", "json", "github", "sarif"];
264
478
  async function runDomain(domain, ctx) {
265
479
  const { family, cwd, inputs, onNotice } = ctx;
266
480
  const configPath = family.configPath;
267
481
  switch (domain) {
268
482
  case "meta": {
269
483
  const [{ runValidate }, { render: renderMeta }] = await Promise.all([
270
- import("./validate-NQO7TFSN.js"),
271
- import("./reporters-AQU4W3KY.js")
484
+ import("./validate-DXYUUGUD.js"),
485
+ import("./reporters-G5R4SURQ.js")
272
486
  ]);
273
487
  const run2 = await runValidate({ inputs, configPath, cwd, skipDefaultOnly: true, onNotice });
274
488
  if (run2.results.length === 0) {
@@ -280,11 +494,18 @@ async function runDomain(domain, ctx) {
280
494
  };
281
495
  }
282
496
  case "cite": {
283
- const [{ runCheck: runCite }, { renderCheckPretty: citePretty }, { renderCheckJson: citeJson }, { renderCheckGithub: citeGithub }] = await Promise.all([
284
- import("./check-LU5YC3L4.js"),
285
- import("./pretty-KG6TMOEI.js"),
286
- import("./json-7WV7KL6H.js"),
287
- import("./github-DJQ4MWNZ.js")
497
+ const [
498
+ { runCheck: runCite },
499
+ { renderCheckPretty: citePretty },
500
+ { renderCheckJson: citeJson },
501
+ { renderCheckGithub: citeGithub },
502
+ { renderCheckSarif: citeSarif }
503
+ ] = await Promise.all([
504
+ import("./check-OIRJ6OBW.js"),
505
+ import("./pretty-YVRRWBWN.js"),
506
+ import("./json-5EQCGVCV.js"),
507
+ import("./github-SGX2EARO.js"),
508
+ import("./sarif-RRUFJZUL.js")
288
509
  ]);
289
510
  const run2 = await runCite({ inputs, configPath, cwd, onNotice });
290
511
  if (!run2.pages.some((p) => p.citations.length > 0 || p.findings.length > 0)) {
@@ -292,26 +513,39 @@ async function runDomain(domain, ctx) {
292
513
  }
293
514
  return {
294
515
  failed: run2.summary.failed > 0,
295
- render: (format, color) => format === "json" ? citeJson(run2) : format === "github" ? citeGithub(run2) : citePretty(run2, { color, quiet: true })
516
+ render: (format, color) => {
517
+ switch (format) {
518
+ case "pretty":
519
+ return citePretty(run2, { color, quiet: true });
520
+ case "json":
521
+ return citeJson(run2);
522
+ case "github":
523
+ return citeGithub(run2);
524
+ case "sarif":
525
+ return citeSarif(run2, { onNotice });
526
+ }
527
+ }
296
528
  };
297
529
  }
298
530
  case "lint": {
299
531
  if (!family.sections.has("lint")) return { skipped: NOT_SET_UP.lint };
300
532
  const [{ runLint }, { render: renderLint }] = await Promise.all([
301
- import("./lint-O7XRHKFP.js"),
302
- import("./reporters-FBYLPKD4.js")
533
+ import("./lint-RE4DMI6E.js"),
534
+ import("./reporters-MHPY4HRA.js")
303
535
  ]);
304
536
  const run2 = await runLint({ inputs, configPath, cwd, onNotice });
305
537
  return {
306
538
  failed: run2.summary.failed > 0,
307
- render: (format, color) => renderLint(run2, format, { color })
539
+ // SARIF locations resolve from `root`, which is where the run's labels
540
+ // start: the config's directory for a bare run, else the working one.
541
+ render: (format, color) => renderLint(run2, format, { color, root: inputs.length === 0 ? resolve4(cwd, family.file.dir) : cwd })
308
542
  };
309
543
  }
310
544
  case "docevals": {
311
545
  const [{ runRun: runDocevals }, { render: renderDocevals }, { DocevalsError }] = await Promise.all([
312
- import("./run-KUGTU3TT.js"),
313
- import("./reporters-26H3N2KW.js"),
314
- import("./types-Y6TXHM7M.js")
546
+ import("./run-FSYOYEPR.js"),
547
+ import("./reporters-FSXJ42EB.js"),
548
+ import("./types-VMOT7RAL.js")
315
549
  ]);
316
550
  let report;
317
551
  try {
@@ -335,24 +569,42 @@ async function runDomain(domain, ctx) {
335
569
  };
336
570
  }
337
571
  case "term": {
338
- const [{ runCheck: runTerm }, { renderFindingsPretty: termPretty }, { renderFindingsJson: termJson }, { renderFindingsGithub: termGithub }] = await Promise.all([
339
- import("./check-S55MH66H.js"),
340
- import("./pretty-KSTZMBUF.js"),
341
- import("./json-LCVPMEAM.js"),
342
- import("./github-UWTDM2J2.js")
572
+ const [
573
+ { runCheck: runTerm },
574
+ { renderFindingsPretty: termPretty },
575
+ { renderFindingsJson: termJson },
576
+ { renderFindingsGithub: termGithub },
577
+ { renderFindingsSarif: termSarif }
578
+ ] = await Promise.all([
579
+ import("./check-KRVWHF7E.js"),
580
+ import("./pretty-VTJVXWRK.js"),
581
+ import("./json-SHPUCD64.js"),
582
+ import("./github-DV57TW5L.js"),
583
+ import("./sarif-HBQIDY7T.js")
343
584
  ]);
344
585
  const report = await runTerm({ inputs, configPath, cwd, allowEmpty: true, onNotice });
345
586
  if (report.terms === 0) return { skipped: NOT_SET_UP.term };
346
587
  return {
347
588
  failed: report.summary.failed > 0,
348
- render: (format, color) => format === "json" ? termJson(report) : format === "github" ? termGithub(report) : termPretty(report, { color, references: true })
589
+ render: (format, color) => {
590
+ switch (format) {
591
+ case "pretty":
592
+ return termPretty(report, { color, references: true });
593
+ case "json":
594
+ return termJson(report);
595
+ case "github":
596
+ return termGithub(report);
597
+ case "sarif":
598
+ return termSarif(report, { onNotice });
599
+ }
600
+ }
349
601
  };
350
602
  }
351
603
  case "graph": {
352
604
  if (!family.sections.has("graph")) return { skipped: NOT_SET_UP.graph };
353
605
  const [{ buildGraph }, { runCheck: runGraph, renderCheck: renderGraph }] = await Promise.all([
354
- import("./build-4BL24BG3.js"),
355
- import("./check-5IYH42KS.js")
606
+ import("./build-YCY5MUHA.js"),
607
+ import("./check-MR7IG7IP.js")
356
608
  ]);
357
609
  const built = await buildGraph({ config: configPath, cwd });
358
610
  for (const warning of built.warnings) onNotice(warning);
@@ -375,13 +627,13 @@ async function outcome(domain, ctx) {
375
627
  }
376
628
  }
377
629
  function isDocument(label) {
378
- return supportedExtensions().includes(extname(label).toLowerCase());
630
+ return supportedExtensions().includes(extname2(label).toLowerCase());
379
631
  }
380
632
  function runFamilyCheck(opts) {
381
633
  return withSharedWalks(() => checkUnshared(opts));
382
634
  }
383
635
  async function checkUnshared(opts) {
384
- const cwd = resolve3(opts.cwd ?? process.cwd());
636
+ const cwd = resolve4(opts.cwd ?? process.cwd());
385
637
  const onNotice = opts.onNotice ?? (() => void 0);
386
638
  const family = await loadFamily(cwd, opts.configPath);
387
639
  if (family.collections.length === 0) throw nothingSetUpError();
@@ -445,6 +697,10 @@ function isRan(check) {
445
697
  function firstLine(message) {
446
698
  return message.split("\n", 1)[0] ?? "";
447
699
  }
700
+ function couldNotCheck(command, files, message) {
701
+ return `manni ${command} could not check ${files}. The cause is in manni's setup, not in the file. Tell the user what it says, and leave manni.config.yaml as it is.
702
+ ${message}`;
703
+ }
448
704
  function renderFailures(run2) {
449
705
  return run2.checks.filter((c) => c.status === "fail").map((c) => `${c.command}
450
706
  ${c.render("pretty", false)}`).join("\n\n");
@@ -491,8 +747,70 @@ function renderJson(run2) {
491
747
  function renderGithub(run2) {
492
748
  return run2.checks.filter(isRan).map((c) => c.render("github", false)).filter((text) => text.length > 0).join("\n");
493
749
  }
750
+ function renderSarif(run2) {
751
+ const runs = [];
752
+ const notifications = [];
753
+ const say = (level, text) => {
754
+ notifications.push({ level, message: { text } });
755
+ };
756
+ for (const c of run2.checks) {
757
+ if (!isRan(c)) {
758
+ if (c.status === "skipped") say("note", `${c.command} skipped: ${c.message}.`);
759
+ else say("error", `${c.command} could not run: ${c.message}`);
760
+ continue;
761
+ }
762
+ const domain = c.command.split(" ", 1)[0] ?? c.command;
763
+ let own;
764
+ try {
765
+ const runs2 = JSON.parse(c.render("sarif", false)).runs;
766
+ if (!Array.isArray(runs2) || runs2.length === 0) throw new TypeError("no runs");
767
+ own = runs2;
768
+ } catch {
769
+ say("error", `${c.command} -f sarif printed output that is not SARIF.`);
770
+ continue;
771
+ }
772
+ for (const r of own) {
773
+ runs.push({
774
+ ...r,
775
+ automationDetails: { id: `manni/${domain}/` },
776
+ invocations: r.invocations ?? [{ executionSuccessful: true }]
777
+ });
778
+ }
779
+ }
780
+ runs.push({
781
+ tool: {
782
+ driver: {
783
+ name: "manni-check",
784
+ version: package_default.version,
785
+ informationUri: "https://hawkeyexl.github.io/manni/family/reference/cli/"
786
+ }
787
+ },
788
+ automationDetails: { id: "manni/check/" },
789
+ invocations: [
790
+ {
791
+ executionSuccessful: !notifications.some((n) => n.level === "error"),
792
+ ...notifications.length > 0 ? { toolExecutionNotifications: notifications } : {}
793
+ }
794
+ ],
795
+ results: []
796
+ });
797
+ return JSON.stringify(
798
+ { $schema: "https://json.schemastore.org/sarif-2.1.0.json", version: "2.1.0", runs },
799
+ null,
800
+ 2
801
+ );
802
+ }
494
803
  function render(run2, format, color) {
495
- return format === "json" ? renderJson(run2) : format === "github" ? renderGithub(run2) : renderPretty(run2, color);
804
+ switch (format) {
805
+ case "pretty":
806
+ return renderPretty(run2, color);
807
+ case "json":
808
+ return renderJson(run2);
809
+ case "github":
810
+ return renderGithub(run2);
811
+ case "sarif":
812
+ return renderSarif(run2);
813
+ }
496
814
  }
497
815
  var EDIT_TOOLS = ["Edit", "Write", "MultiEdit", "NotebookEdit"];
498
816
  function hookReply(run2, envelope) {
@@ -502,7 +820,7 @@ function hookReply(run2, envelope) {
502
820
  if (failed) {
503
821
  return {
504
822
  exitCode: 2,
505
- stderr: `manni found errors in ${files}. Fix them before you continue.
823
+ stderr: `manni found errors in ${files}. Fix them before you continue. ${FIX_SENTENCE}
506
824
 
507
825
  ${renderFailures(run2)}
508
826
  `
@@ -510,7 +828,7 @@ ${renderFailures(run2)}
510
828
  }
511
829
  const errors = run2.checks.filter((c) => c.status === "error");
512
830
  if (errors.length === 0) return { exitCode: 0 };
513
- const additionalContext = errors.map((c) => `manni ${c.command} could not check ${files}: ${firstLine(c.message)}`).join("\n");
831
+ const additionalContext = errors.map((c) => couldNotCheck(c.command, files, c.message)).join("\n");
514
832
  return {
515
833
  exitCode: 0,
516
834
  stdout: `${JSON.stringify({ hookSpecificOutput: { hookEventName: "PostToolUse", additionalContext } })}
@@ -527,9 +845,11 @@ function turnReply(run2, turn, envelope) {
527
845
  if (envelope.stopHookActive) {
528
846
  messages.push("manni still reports errors after one repair pass. Run manni check to see them.");
529
847
  } else {
530
- reasons.push(`manni found errors in the files you changed. Fix them, then finish.
848
+ reasons.push(
849
+ `manni found errors in the files you changed. Fix them, then finish. ${FIX_SENTENCE}
531
850
 
532
- ${renderFailures(run2)}`);
851
+ ${renderFailures(run2)}`
852
+ );
533
853
  }
534
854
  }
535
855
  if (turn?.broken !== void 0) {
@@ -559,18 +879,18 @@ async function runTurnCheck(envelope, cwd, seams = {}) {
559
879
  const subagent = envelope.event === "SubagentStop";
560
880
  const judged = subagent ? envelope.agentTranscriptPath : envelope.transcriptPath;
561
881
  if (judged === void 0) return void 0;
562
- const trace = resolve3(cwd, judged);
882
+ const trace = resolve4(cwd, judged);
563
883
  const sessionId = envelope.sessionId ?? basename(trace, ".jsonl");
564
884
  let result;
565
885
  let renderTurn;
566
886
  try {
567
887
  const [{ checkTurn }, reporters] = await Promise.all([
568
- import("./check-NBN2YK2J.js"),
888
+ import("./check-LVUTWAGR.js"),
569
889
  import("./runtime-7QE3DW6S.js")
570
890
  ]);
571
891
  renderTurn = reporters.renderCheck;
572
892
  result = await checkTurn({
573
- transcriptPath: resolve3(cwd, envelope.transcriptPath ?? judged),
893
+ transcriptPath: resolve4(cwd, envelope.transcriptPath ?? judged),
574
894
  ...subagent ? { agentTranscriptPath: trace } : {},
575
895
  ...subagent && envelope.agentId !== void 0 ? { agentId: envelope.agentId } : {},
576
896
  ...subagent && envelope.agentType !== void 0 ? { agentType: envelope.agentType } : {},
@@ -599,7 +919,7 @@ async function runTurnCheck(envelope, cwd, seams = {}) {
599
919
  }
600
920
  function hookFailure(message, envelope, file) {
601
921
  if (envelope.event !== "PostToolUse" || file === void 0) return { exitCode: 0 };
602
- const additionalContext = `manni check could not check ${file}: ${firstLine(message)}`;
922
+ const additionalContext = couldNotCheck("check", file, message);
603
923
  return {
604
924
  exitCode: 0,
605
925
  stdout: `${JSON.stringify({ hookSpecificOutput: { hookEventName: "PostToolUse", additionalContext } })}
@@ -607,191 +927,6 @@ function hookFailure(message, envelope, file) {
607
927
  };
608
928
  }
609
929
 
610
- // src/family/commands/status.ts
611
- import { appendFileSync, existsSync, readFileSync } from "node:fs";
612
- import { extname as extname2, resolve as resolve4 } from "node:path";
613
- var STATUS_FORMATS = ["pretty", "json"];
614
- async function tracevalsRow(cwd, opts) {
615
- try {
616
- const [
617
- { discoverConfig },
618
- { assertProviderSelection, resolveSelectionIdentity, selectHookProvider, selectProvider },
619
- { hostStatus }
620
- ] = await Promise.all([
621
- import("./config-JJW75SBX.js"),
622
- import("./provider-LBX4IXGX.js"),
623
- import("./host-YSTYO5DX.js")
624
- ]);
625
- const { config } = await discoverConfig(cwd, opts.configPath === void 0 ? {} : { configPath: opts.configPath });
626
- const hook = await resolveSelectionIdentity(config, selectHookProvider(config));
627
- const selection = selectProvider(config);
628
- assertProviderSelection(selection);
629
- const extraction = await resolveSelectionIdentity(config, selection);
630
- const host = await (opts.hostStatus ?? hostStatus)().catch(() => null);
631
- return {
632
- name: "tracevals",
633
- status: "in-play",
634
- reason: `hook: ${hook.provider} ${hook.model} \xB7 extraction: ${extraction.provider} ${extraction.model}`,
635
- models: {
636
- hook: { provider: hook.provider, model: hook.model },
637
- extraction: { provider: extraction.provider, model: extraction.model }
638
- },
639
- ...host === null || host.models.length === 0 ? {} : { host: host.models }
640
- };
641
- } catch (err) {
642
- const message = errorMessage(err).split("\n", 1)[0] ?? "";
643
- return { name: "tracevals", status: "unknown", reason: `manni tracevals check could not run: ${message}` };
644
- }
645
- }
646
- function pages(n, one, many) {
647
- return n === 1 ? `1 page ${one}` : `${String(n)} pages ${many}`;
648
- }
649
- function ownSchemaCount(cwd, members) {
650
- let n = 0;
651
- for (const label of members) {
652
- const extractor = extractorForExtension(extname2(label));
653
- if (extractor === void 0) continue;
654
- try {
655
- const { data } = extractor.extract(readFileSync(resolve4(cwd, label), "utf8"), label);
656
- if (data.$schema !== void 0) n++;
657
- } catch {
658
- }
659
- }
660
- return n;
661
- }
662
- async function citedPages(cwd, configPath) {
663
- const { prepareRun, readTarget } = await import("./check-LU5YC3L4.js");
664
- const { readPage } = await import("./page-XPX5XJZE.js");
665
- const prepared = await prepareRun({ inputs: [], configPath, cwd, checkSources: false }, "checked", "check");
666
- let n = 0;
667
- for (const file of prepared.files) {
668
- const content = await readTarget(prepared.run, file);
669
- const { citations } = (await prepared.setupFor(file, content)).options;
670
- const read = readPage(file, content, { markers: false, ...citations === void 0 ? {} : { citations } });
671
- if (read.citations.length > 0) n++;
672
- }
673
- return n;
674
- }
675
- async function row(domain, family, cwd, members) {
676
- const configPath = family.configPath;
677
- const inPlay = (reason) => ({ name: domain, status: "in-play", reason });
678
- const notSetUp = { name: domain, status: "not-set-up", reason: NOT_SET_UP[domain] };
679
- const section = family.sections.has(domain);
680
- switch (domain) {
681
- case "meta": {
682
- if (section) return inPlay("meta: section");
683
- const n = ownSchemaCount(cwd, members);
684
- return n > 0 ? inPlay(pages(n, "names its own $schema", "name their own $schema")) : notSetUp;
685
- }
686
- case "cite": {
687
- const n = await citedPages(cwd, configPath);
688
- return n > 0 ? inPlay(pages(n, "carries citations", "carry citations")) : notSetUp;
689
- }
690
- case "docevals": {
691
- const { runList: listEvals } = await import("./list-OOOCLOAL.js");
692
- const { plans } = await listEvals([], { config: configPath, cwd });
693
- const n = plans.filter((p) => !p.skip && p.evals.length > 0).length;
694
- if (n === 0) return notSetUp;
695
- return inPlay(section ? "docevals: section" : pages(n, "declares evals", "declare evals"));
696
- }
697
- case "term": {
698
- const { runList: listTerms } = await import("./list-OYQ5XPN2.js");
699
- const { terms } = await listTerms({ inputs: [], configPath, cwd, allowEmpty: true });
700
- return terms.length > 0 ? inPlay(plural(terms.length, "term")) : notSetUp;
701
- }
702
- case "lint":
703
- case "graph":
704
- return section ? inPlay(`${domain}: section`) : notSetUp;
705
- }
706
- }
707
- function runStatus(opts = {}) {
708
- return withSharedWalks(() => statusUnshared(opts));
709
- }
710
- async function statusUnshared(opts) {
711
- const cwd = resolve4(opts.cwd ?? process.cwd());
712
- const family = await loadFamily(cwd, opts.configPath);
713
- const members = family.collections.length === 0 ? [] : await listMembers(family, cwd);
714
- const domains = [];
715
- for (const domain of DOMAINS) {
716
- if (family.collections.length === 0) {
717
- domains.push({ name: domain, status: "not-set-up", reason: "no collections: in manni.config.yaml" });
718
- continue;
719
- }
720
- try {
721
- domains.push(await row(domain, family, cwd, members));
722
- } catch (err) {
723
- const message = errorMessage(err).split("\n", 1)[0] ?? "";
724
- domains.push({ name: domain, status: "unknown", reason: `manni ${COMMANDS[domain]} could not run: ${message}` });
725
- }
726
- }
727
- for (const [name, reason] of NOT_CHECKED) {
728
- domains.push(
729
- name === "tracevals" && family.runtime ? await tracevalsRow(cwd, opts) : { name, status: "not-checked", reason }
730
- );
731
- }
732
- return {
733
- version: package_default.version,
734
- config: family.file.source,
735
- collections: family.collections.map((c) => ({
736
- name: c.name,
737
- files: members.filter((label) => collectionsOf(family, cwd, label).includes(c.name)).length
738
- })),
739
- domains
740
- };
741
- }
742
- var STATE_LABEL = {
743
- "in-play": "in play",
744
- "not-set-up": "not set up",
745
- "not-checked": "not checked",
746
- unknown: "unknown"
747
- };
748
- function renderStatus(report, format) {
749
- if (format === "json") return JSON.stringify(report, null, 2);
750
- const head = [
751
- `manni ${report.version}`,
752
- `config ${report.config}`,
753
- ...report.collections.map((c) => `collection ${c.name} (${plural(c.files, "file")})`)
754
- ].join(" ");
755
- const label = (d) => d.models !== void 0 ? "judges each turn" : STATE_LABEL[d.status];
756
- const width = Math.max(14, ...report.domains.map((d) => label(d).length + 3));
757
- const rows = report.domains.flatMap((d) => [
758
- `${d.name.padEnd(11)}${label(d).padEnd(width)}${d.reason}`,
759
- ...(d.host ?? []).map(
760
- (m) => `${"".padEnd(11)}${"model host".padEnd(width)}${m.model} loaded, ${plural(m.sessions, "session")}, idle ${String(Math.floor(m.idleMs / 6e4))}m`
761
- )
762
- ]);
763
- return [head, "", ...rows].join("\n");
764
- }
765
- var FIX_SKILL = "manni:fix";
766
- var PAGE_WIDE = [["term", "the glossary"]];
767
- function prose(items, conjunction) {
768
- return items.length <= 1 ? items[0] ?? "" : `${items.slice(0, -1).join(", ")} ${conjunction} ${items.at(-1) ?? ""}`;
769
- }
770
- function agentLines(report) {
771
- const names = prose(report.collections.map((c) => c.name), "or");
772
- const inPlay = new Set(report.domains.filter((d) => d.status === "in-play").map((d) => d.name));
773
- const plus = inPlay.has("cite") ? ", plus every citation" : "";
774
- const pageWide = PAGE_WIDE.filter(([domain]) => inPlay.has(domain)).map(([, what]) => what);
775
- const also = pageWide.length === 0 ? "" : ` It checks ${prose(pageWide, "and")} too when you changed a page.`;
776
- return [
777
- `After you edit a file in ${names}, manni check runs on it, and errors come back to you at once.`,
778
- `Before you finish, manni check runs on every file you changed${plus}.${also} You get one repair pass.`,
779
- `The ${FIX_SKILL} skill says how to repair each finding.`
780
- ].join("\n");
781
- }
782
- var MODEL_ID = /^[A-Za-z0-9._:/@-]+$/;
783
- function exportGeneratedBy(envelope, env = process.env) {
784
- const file = env.CLAUDE_ENV_FILE;
785
- const model = envelope.model?.replace(/\[[^\]]*\]$/, "");
786
- if (model === void 0 || !MODEL_ID.test(model)) return false;
787
- if (file === void 0 || file === "" || env.MANNI_GENERATED_BY !== void 0) return false;
788
- const existing = existsSync(file) ? readFileSync(file, "utf8") : "";
789
- const lead = existing === "" || existing.endsWith("\n") ? "" : "\n";
790
- appendFileSync(file, `${lead}export MANNI_GENERATED_BY=${model}
791
- `, "utf8");
792
- return true;
793
- }
794
-
795
930
  // src/family/cli.ts
796
931
  function send(reply) {
797
932
  if (reply.stdout !== void 0) process.stdout.write(reply.stdout);
@@ -844,10 +979,11 @@ function buildCheck() {
844
979
  [
845
980
  "",
846
981
  "Examples:",
847
- " manni check # every in-play check, the CI gate",
848
- " manni check docs/limits.md # per-file checks on one page",
849
- " manni check -f github # in a GitHub workflow",
850
- " manni check docs/ -f json # scripting form"
982
+ " manni check # every in-play check, the CI gate",
983
+ " manni check docs/limits.md # per-file checks on one page",
984
+ " manni check -f github # in a GitHub workflow",
985
+ " manni check -f sarif > manni.sarif # one SARIF log for code scanning",
986
+ " manni check docs/ -f json # scripting form"
851
987
  ].join("\n")
852
988
  ).action(async (paths, options) => {
853
989
  const envelope = await readEnvelope();
@@ -889,7 +1025,7 @@ function buildStatus() {
889
1025
  const lines = report.domains.some((d) => d.status === "in-play") ? `
890
1026
 
891
1027
  ${agentLines(report)}` : "";
892
- process.stdout.write(`${renderStatus(report, "pretty")}${lines}
1028
+ process.stdout.write(`${renderStatus(report, "pretty", { next: false })}${lines}
893
1029
  `);
894
1030
  exportGeneratedBy(envelope);
895
1031
  } catch {
@@ -910,4 +1046,4 @@ export {
910
1046
  buildStatus,
911
1047
  hookScope
912
1048
  };
913
- //# sourceMappingURL=cli-H5LVGOVT.js.map
1049
+ //# sourceMappingURL=cli-LIKI7WPR.js.map