@hawkeyexl/manni 4.21.0 → 4.22.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (303) hide show
  1. package/README.md +1 -1
  2. package/dist/{batch-C534YIAU.js → batch-C3NN2YXB.js} +20 -21
  3. package/dist/build-CEVEAHN7.js +36 -0
  4. package/dist/calibrate-CSKPY5AK.js +42 -0
  5. package/dist/capture-3HDBIHH6.js +37 -0
  6. package/dist/check-555TCJGF.js +45 -0
  7. package/dist/check-KGJBV42O.js +30 -0
  8. package/dist/{check-JZINDP3F.js → check-KXWHSCCR.js} +13 -16
  9. package/dist/check-MZSXCS2M.js +33 -0
  10. package/dist/{check-LKPQPQWJ.js → check-QNHLTYPN.js} +23 -23
  11. package/dist/{chunk-AE6KBAAU.js → chunk-2VLZDU4E.js} +5 -5
  12. package/dist/{chunk-ARNI3SJT.js → chunk-37Q7WEJJ.js} +9 -9
  13. package/dist/{chunk-PTGXEZQD.js → chunk-3ZVRGBK6.js} +4 -4
  14. package/dist/{chunk-DMVBIIP3.js → chunk-46MMIJWR.js} +3 -3
  15. package/dist/{chunk-CREFJCWZ.js → chunk-4LYVTR2T.js} +4 -4
  16. package/dist/{chunk-BXE4L52Q.js → chunk-562QZKAB.js} +6599 -3508
  17. package/dist/chunk-562QZKAB.js.map +1 -0
  18. package/dist/{chunk-BLXRIAV2.js → chunk-57LZPG4V.js} +29 -4
  19. package/dist/chunk-57LZPG4V.js.map +1 -0
  20. package/dist/{chunk-SHXPE4D4.js → chunk-5LQX57BW.js} +2 -2
  21. package/dist/{chunk-SHXPE4D4.js.map → chunk-5LQX57BW.js.map} +1 -1
  22. package/dist/{chunk-BKY6GAFA.js → chunk-63EQKVNT.js} +45 -910
  23. package/dist/chunk-63EQKVNT.js.map +1 -0
  24. package/dist/{chunk-TFVNEPMF.js → chunk-64DULZIG.js} +4 -4
  25. package/dist/{chunk-2HOWRAWK.js → chunk-6SVHI2U6.js} +2 -2
  26. package/dist/{chunk-D4QHRVDJ.js → chunk-6UHEMPEY.js} +3 -157
  27. package/dist/chunk-6UHEMPEY.js.map +1 -0
  28. package/dist/{chunk-DENZLZ3Z.js → chunk-A5YUK3SG.js} +26 -17
  29. package/dist/chunk-A5YUK3SG.js.map +1 -0
  30. package/dist/{chunk-XI3BNZG4.js → chunk-A67EJ3J6.js} +6 -6
  31. package/dist/{chunk-HHJ2HFPP.js → chunk-BLDL23RY.js} +8 -8
  32. package/dist/{chunk-RQPEKHZH.js → chunk-BY3635RR.js} +80 -16
  33. package/dist/chunk-BY3635RR.js.map +1 -0
  34. package/dist/{chunk-CFMI74TP.js → chunk-BZ74YUYE.js} +2 -2
  35. package/dist/{chunk-5UJKXOAD.js → chunk-CHTSA3YR.js} +6 -6
  36. package/dist/{chunk-FHJIH6XP.js → chunk-CPYQ4BJK.js} +16 -7
  37. package/dist/chunk-CPYQ4BJK.js.map +1 -0
  38. package/dist/{chunk-IN5T22FP.js → chunk-CQTESLC5.js} +2 -2
  39. package/dist/{chunk-245W2Q7C.js → chunk-D4BGNAN5.js} +2 -2
  40. package/dist/{chunk-762MM6NA.js → chunk-E3HYSNS6.js} +4 -4
  41. package/dist/{chunk-DPDG3FHL.js → chunk-EL2KNRC3.js} +3 -3
  42. package/dist/{chunk-LWBNHK72.js → chunk-FTSNG6DZ.js} +42 -24
  43. package/dist/chunk-FTSNG6DZ.js.map +1 -0
  44. package/dist/{chunk-KCWNJMSS.js → chunk-FXE5K56B.js} +3 -3
  45. package/dist/{chunk-CLPC3LKX.js → chunk-HYEKQ22B.js} +4 -4
  46. package/dist/{chunk-VLRIP4BQ.js → chunk-IC3FJWIF.js} +2 -2
  47. package/dist/{chunk-CZIO37J5.js → chunk-IDDRHB7E.js} +3 -3
  48. package/dist/chunk-INOVEO32.js +28 -0
  49. package/dist/chunk-INOVEO32.js.map +1 -0
  50. package/dist/chunk-IXFFVI5S.js +409 -0
  51. package/dist/chunk-IXFFVI5S.js.map +1 -0
  52. package/dist/{chunk-BHGFLRXM.js → chunk-JA7DWOVV.js} +5 -5
  53. package/dist/{chunk-B2242FYO.js → chunk-JF4BC7ZD.js} +38 -3
  54. package/dist/chunk-JF4BC7ZD.js.map +1 -0
  55. package/dist/{chunk-RKACUTY5.js → chunk-JL5FHNQK.js} +9 -11
  56. package/dist/{chunk-RKACUTY5.js.map → chunk-JL5FHNQK.js.map} +1 -1
  57. package/dist/{chunk-MTCOBRCX.js → chunk-JVE5YQN4.js} +4 -4
  58. package/dist/{chunk-6XK3NTL5.js → chunk-K5LBIAOM.js} +32 -38
  59. package/dist/chunk-K5LBIAOM.js.map +1 -0
  60. package/dist/{chunk-E7OG5F6S.js → chunk-KIUFBUUZ.js} +13 -11
  61. package/dist/{chunk-E7OG5F6S.js.map → chunk-KIUFBUUZ.js.map} +1 -1
  62. package/dist/{chunk-Q76T6Y6X.js → chunk-LCMBG4LY.js} +3635 -3409
  63. package/dist/chunk-LCMBG4LY.js.map +1 -0
  64. package/dist/{chunk-BXCVOHEX.js → chunk-LMS2RWDS.js} +15 -13
  65. package/dist/{chunk-BXCVOHEX.js.map → chunk-LMS2RWDS.js.map} +1 -1
  66. package/dist/{chunk-IOJD2RFG.js → chunk-MR5JWMC2.js} +2 -2
  67. package/dist/{chunk-JCTHXG33.js → chunk-NHOGTAPK.js} +2 -2
  68. package/dist/{chunk-VM7VAFJW.js → chunk-NVYDWVXN.js} +2 -1
  69. package/dist/{chunk-NLJ3XIKT.js → chunk-O6IDYZVW.js} +3 -3
  70. package/dist/{chunk-E23KWEPL.js → chunk-OHMLEITS.js} +2 -2
  71. package/dist/{chunk-NUQF5F5J.js → chunk-PNDEKFF3.js} +2 -2
  72. package/dist/{chunk-3SFAB75L.js → chunk-PX7OTUNU.js} +6 -6
  73. package/dist/{chunk-PACZEDOH.js → chunk-Q7FFJMFO.js} +19 -15
  74. package/dist/chunk-Q7FFJMFO.js.map +1 -0
  75. package/dist/{chunk-P7HAXMFN.js → chunk-QJJPTS6L.js} +5 -3
  76. package/dist/{chunk-P7HAXMFN.js.map → chunk-QJJPTS6L.js.map} +1 -1
  77. package/dist/chunk-RAN3CF33.js +1875 -0
  78. package/dist/chunk-RAN3CF33.js.map +1 -0
  79. package/dist/{chunk-H5YWCCBO.js → chunk-S7V4F7HC.js} +3 -3
  80. package/dist/{chunk-R2CR62JV.js → chunk-SCKVDD4E.js} +4 -4
  81. package/dist/{chunk-JUUCCML3.js → chunk-TJYJ4BNK.js} +4 -4
  82. package/dist/{chunk-JQA6RF4R.js → chunk-TR5TNPWT.js} +2 -2
  83. package/dist/{chunk-JQA6RF4R.js.map → chunk-TR5TNPWT.js.map} +1 -1
  84. package/dist/chunk-TT5UDTDM.js +888 -0
  85. package/dist/chunk-TT5UDTDM.js.map +1 -0
  86. package/dist/{chunk-22WGKOQ7.js → chunk-TWYJ2TVS.js} +7 -7
  87. package/dist/{chunk-U4OJ7U45.js → chunk-UQI463L3.js} +9 -9
  88. package/dist/{chunk-A4QNKEX4.js → chunk-V27DOGAO.js} +2 -2
  89. package/dist/{chunk-GMLOAKOA.js → chunk-VSDXZAQU.js} +4 -22
  90. package/dist/chunk-VSDXZAQU.js.map +1 -0
  91. package/dist/{chunk-YSZNJ2ID.js → chunk-VSHMXMBZ.js} +2 -2
  92. package/dist/{chunk-2NGFDLIM.js → chunk-VZSATUI7.js} +4 -4
  93. package/dist/{chunk-KQDRO6N6.js → chunk-W5OZMYMX.js} +2 -2
  94. package/dist/{chunk-XBJKYXOR.js → chunk-WW4JATBJ.js} +6 -6
  95. package/dist/{chunk-SSQZB5SQ.js → chunk-XG6PVB5S.js} +11 -1
  96. package/dist/chunk-XG6PVB5S.js.map +1 -0
  97. package/dist/{chunk-KBSTXL6L.js → chunk-XQKRD5A3.js} +4 -4
  98. package/dist/{chunk-2YKUSTHS.js → chunk-XSP3TUFN.js} +5 -5
  99. package/dist/{chunk-APAF4VWW.js → chunk-XTMONCQE.js} +6 -405
  100. package/dist/chunk-XTMONCQE.js.map +1 -0
  101. package/dist/{chunk-BJUEOC4G.js → chunk-YB3KD5RI.js} +3 -3
  102. package/dist/chunk-ZAOJYN2D.js +159 -0
  103. package/dist/chunk-ZAOJYN2D.js.map +1 -0
  104. package/dist/{chunk-OWJLB2AF.js → chunk-ZKIXGFID.js} +2 -2
  105. package/dist/{chunk-WHVFHBL3.js → chunk-ZT3ERG4B.js} +3 -3
  106. package/dist/chunk-ZTRC37NH.js +38 -0
  107. package/dist/chunk-ZTRC37NH.js.map +1 -0
  108. package/dist/{chunk-V2XJJEEF.js → chunk-ZW4YASUB.js} +4 -4
  109. package/dist/{chunk-5LE4NH3Z.js → chunk-ZX4TOTZS.js} +6 -4
  110. package/dist/{chunk-5LE4NH3Z.js.map → chunk-ZX4TOTZS.js.map} +1 -1
  111. package/dist/{cli-MOKRUHZT.js → cli-4QAH3DBX.js} +9 -11
  112. package/dist/{cli-3PBRPPMQ.js → cli-6476FRBK.js} +16 -19
  113. package/dist/{cli-3PBRPPMQ.js.map → cli-6476FRBK.js.map} +1 -1
  114. package/dist/{cli-FDXU7CGZ.js → cli-7XT7O5YM.js} +16 -19
  115. package/dist/{cli-FDXU7CGZ.js.map → cli-7XT7O5YM.js.map} +1 -1
  116. package/dist/{cli-AVHLY2AI.js → cli-FGCHGJYZ.js} +51 -50
  117. package/dist/cli-FGCHGJYZ.js.map +1 -0
  118. package/dist/{cli-FSDJY5OC.js → cli-JE4LG35H.js} +4 -4
  119. package/dist/{cli-JNYL6LB7.js → cli-U3622DIB.js} +14 -17
  120. package/dist/{cli-JNYL6LB7.js.map → cli-U3622DIB.js.map} +1 -1
  121. package/dist/{cli-MQXOK64K.js → cli-ULHJTJHH.js} +74 -42
  122. package/dist/cli-ULHJTJHH.js.map +1 -0
  123. package/dist/{cli-6NKE6RMT.js → cli-W7B2PNZO.js} +18 -21
  124. package/dist/{cli-6NKE6RMT.js.map → cli-W7B2PNZO.js.map} +1 -1
  125. package/dist/{cli-77A46SB2.js → cli-YGMXZ46V.js} +17 -20
  126. package/dist/{cli-77A46SB2.js.map → cli-YGMXZ46V.js.map} +1 -1
  127. package/dist/{cli-K47XWDLJ.js → cli-YINQL2NI.js} +28 -29
  128. package/dist/{cli-K47XWDLJ.js.map → cli-YINQL2NI.js.map} +1 -1
  129. package/dist/cli-Z3ART5DN.js +152 -0
  130. package/dist/cli-Z3ART5DN.js.map +1 -0
  131. package/dist/cli.js +15 -15
  132. package/dist/cli.js.map +1 -1
  133. package/dist/{config-BMWDC66C.js → config-2YJPJ36T.js} +5 -5
  134. package/dist/docmeta.js +8 -10
  135. package/dist/docmeta.js.map +1 -1
  136. package/dist/github-64ZVAUIT.js +28 -0
  137. package/dist/github-ARGPMQD2.js +32 -0
  138. package/dist/github-YHJABBUI.js +33 -0
  139. package/dist/graph/runtime.js.map +1 -1
  140. package/dist/{host-YSTYO5DX.js → host-JT27OWTC.js} +3 -3
  141. package/dist/index.d.ts +332 -23
  142. package/dist/index.js +218 -205
  143. package/dist/index.js.map +1 -1
  144. package/dist/{json-YIK72XAL.js → json-CVOVXB7O.js} +12 -15
  145. package/dist/json-QNGJFUY2.js +40 -0
  146. package/dist/{labels-X633ZPK7.js → labels-5WOKC3VR.js} +11 -14
  147. package/dist/{labels-X633ZPK7.js.map → labels-5WOKC3VR.js.map} +1 -1
  148. package/dist/lint-OQGB4DWJ.js +32 -0
  149. package/dist/list-EDAB7X5Y.js +30 -0
  150. package/dist/list-OQ3IYV2W.js +37 -0
  151. package/dist/list-PN6JKYNX.js +33 -0
  152. package/dist/{page-OMPEACUN.js → page-TPNMHL27.js} +11 -14
  153. package/dist/{prepare-B4JVDVOV.js → prepare-3V2QYBKL.js} +20 -22
  154. package/dist/{prepare-B4JVDVOV.js.map → prepare-3V2QYBKL.js.map} +1 -1
  155. package/dist/{pretty-PPNHHOEN.js → pretty-EZ2NFU3C.js} +13 -16
  156. package/dist/pretty-HO2LYG5N.js +41 -0
  157. package/dist/{pretty-U7ATCFBN.js → pretty-K3M4AW2D.js} +12 -15
  158. package/dist/{provider-JY2I3VLF.js → provider-YWNTTQPA.js} +3 -3
  159. package/dist/{release-VHHASAG7.js → release-EFLQT3FW.js} +3 -3
  160. package/dist/{reporters-KE7AZR6C.js → reporters-4R2E7PRJ.js} +6 -6
  161. package/dist/{reporters-FAIEOTC4.js → reporters-YVLLFBO5.js} +11 -14
  162. package/dist/run-H4BOR2FR.js +36 -0
  163. package/dist/{sarif-DOGRSGTB.js → sarif-GWHWJJFP.js} +10 -13
  164. package/dist/sarif-SJFVSOBV.js +33 -0
  165. package/dist/sarif-YBFD5OUL.js +28 -0
  166. package/dist/{strategy-EK5VY5DG.js → strategy-T56PH2VK.js} +29 -47
  167. package/dist/strategy-T56PH2VK.js.map +1 -0
  168. package/dist/{term-MDN3NJDW.js → term-33YSMISR.js} +18 -22
  169. package/dist/{term-MDN3NJDW.js.map → term-33YSMISR.js.map} +1 -1
  170. package/dist/{validate-QDYQ642J.js → validate-6R5UBDGU.js} +6 -7
  171. package/package.json +1 -1
  172. package/plugin/manni/.claude-plugin/plugin.json +1 -1
  173. package/plugin/manni/hooks/graph-server.mjs +3 -3
  174. package/plugin/manni/hooks/page-metadata.mjs +81 -7
  175. package/plugin/manni/skills/fix/SKILL.md +3 -3
  176. package/shapes/graph/shapes-1.3.0.ttl +1250 -0
  177. package/dist/build-SVKT7QFU.js +0 -39
  178. package/dist/calibrate-AL3MH7TY.js +0 -43
  179. package/dist/capture-2F7B4DAD.js +0 -39
  180. package/dist/check-BI7OGIVE.js +0 -48
  181. package/dist/check-OPUMZEVK.js +0 -35
  182. package/dist/check-OW7UD73D.js +0 -33
  183. package/dist/chunk-6XK3NTL5.js.map +0 -1
  184. package/dist/chunk-APAF4VWW.js.map +0 -1
  185. package/dist/chunk-B2242FYO.js.map +0 -1
  186. package/dist/chunk-BKY6GAFA.js.map +0 -1
  187. package/dist/chunk-BLXRIAV2.js.map +0 -1
  188. package/dist/chunk-BXE4L52Q.js.map +0 -1
  189. package/dist/chunk-D4QHRVDJ.js.map +0 -1
  190. package/dist/chunk-D5GBYKDU.js +0 -164
  191. package/dist/chunk-D5GBYKDU.js.map +0 -1
  192. package/dist/chunk-DENZLZ3Z.js.map +0 -1
  193. package/dist/chunk-FHJIH6XP.js.map +0 -1
  194. package/dist/chunk-GMLOAKOA.js.map +0 -1
  195. package/dist/chunk-LWBNHK72.js.map +0 -1
  196. package/dist/chunk-PACZEDOH.js.map +0 -1
  197. package/dist/chunk-Q76T6Y6X.js.map +0 -1
  198. package/dist/chunk-RQPEKHZH.js.map +0 -1
  199. package/dist/chunk-RWXR3GJI.js +0 -441
  200. package/dist/chunk-RWXR3GJI.js.map +0 -1
  201. package/dist/chunk-S5G6T4VC.js +0 -3200
  202. package/dist/chunk-S5G6T4VC.js.map +0 -1
  203. package/dist/chunk-SSQZB5SQ.js.map +0 -1
  204. package/dist/chunk-UP6NBQ62.js +0 -2
  205. package/dist/chunk-ZPLVANY2.js +0 -15
  206. package/dist/chunk-ZPLVANY2.js.map +0 -1
  207. package/dist/cli-AVHLY2AI.js.map +0 -1
  208. package/dist/cli-LP5OE3BL.js +0 -84
  209. package/dist/cli-LP5OE3BL.js.map +0 -1
  210. package/dist/cli-MQXOK64K.js.map +0 -1
  211. package/dist/github-6GYTPSGV.js +0 -35
  212. package/dist/github-DJOLVNDD.js +0 -31
  213. package/dist/github-ZF2TQ3RP.js +0 -35
  214. package/dist/json-Y7625EFE.js +0 -42
  215. package/dist/lint-RF3B55W7.js +0 -35
  216. package/dist/list-5DW4QZ7P.js +0 -36
  217. package/dist/list-7CHWJ633.js +0 -39
  218. package/dist/list-UNWG6NPD.js +0 -33
  219. package/dist/pretty-XGYQ25PH.js +0 -43
  220. package/dist/run-MHJ3AYKG.js +0 -39
  221. package/dist/sarif-MIEMQOIK.js +0 -30
  222. package/dist/sarif-RGRG7VFX.js +0 -36
  223. package/dist/strategy-EK5VY5DG.js.map +0 -1
  224. package/dist/validate-QDYQ642J.js.map +0 -1
  225. /package/dist/{batch-C534YIAU.js.map → batch-C3NN2YXB.js.map} +0 -0
  226. /package/dist/{build-SVKT7QFU.js.map → build-CEVEAHN7.js.map} +0 -0
  227. /package/dist/{calibrate-AL3MH7TY.js.map → calibrate-CSKPY5AK.js.map} +0 -0
  228. /package/dist/{capture-2F7B4DAD.js.map → capture-3HDBIHH6.js.map} +0 -0
  229. /package/dist/{check-BI7OGIVE.js.map → check-555TCJGF.js.map} +0 -0
  230. /package/dist/{check-JZINDP3F.js.map → check-KGJBV42O.js.map} +0 -0
  231. /package/dist/{check-OPUMZEVK.js.map → check-KXWHSCCR.js.map} +0 -0
  232. /package/dist/{check-OW7UD73D.js.map → check-MZSXCS2M.js.map} +0 -0
  233. /package/dist/{check-LKPQPQWJ.js.map → check-QNHLTYPN.js.map} +0 -0
  234. /package/dist/{chunk-AE6KBAAU.js.map → chunk-2VLZDU4E.js.map} +0 -0
  235. /package/dist/{chunk-ARNI3SJT.js.map → chunk-37Q7WEJJ.js.map} +0 -0
  236. /package/dist/{chunk-PTGXEZQD.js.map → chunk-3ZVRGBK6.js.map} +0 -0
  237. /package/dist/{chunk-DMVBIIP3.js.map → chunk-46MMIJWR.js.map} +0 -0
  238. /package/dist/{chunk-CREFJCWZ.js.map → chunk-4LYVTR2T.js.map} +0 -0
  239. /package/dist/{chunk-TFVNEPMF.js.map → chunk-64DULZIG.js.map} +0 -0
  240. /package/dist/{chunk-2HOWRAWK.js.map → chunk-6SVHI2U6.js.map} +0 -0
  241. /package/dist/{chunk-XI3BNZG4.js.map → chunk-A67EJ3J6.js.map} +0 -0
  242. /package/dist/{chunk-HHJ2HFPP.js.map → chunk-BLDL23RY.js.map} +0 -0
  243. /package/dist/{chunk-CFMI74TP.js.map → chunk-BZ74YUYE.js.map} +0 -0
  244. /package/dist/{chunk-5UJKXOAD.js.map → chunk-CHTSA3YR.js.map} +0 -0
  245. /package/dist/{chunk-IN5T22FP.js.map → chunk-CQTESLC5.js.map} +0 -0
  246. /package/dist/{chunk-245W2Q7C.js.map → chunk-D4BGNAN5.js.map} +0 -0
  247. /package/dist/{chunk-762MM6NA.js.map → chunk-E3HYSNS6.js.map} +0 -0
  248. /package/dist/{chunk-DPDG3FHL.js.map → chunk-EL2KNRC3.js.map} +0 -0
  249. /package/dist/{chunk-KCWNJMSS.js.map → chunk-FXE5K56B.js.map} +0 -0
  250. /package/dist/{chunk-CLPC3LKX.js.map → chunk-HYEKQ22B.js.map} +0 -0
  251. /package/dist/{chunk-VLRIP4BQ.js.map → chunk-IC3FJWIF.js.map} +0 -0
  252. /package/dist/{chunk-CZIO37J5.js.map → chunk-IDDRHB7E.js.map} +0 -0
  253. /package/dist/{chunk-BHGFLRXM.js.map → chunk-JA7DWOVV.js.map} +0 -0
  254. /package/dist/{chunk-MTCOBRCX.js.map → chunk-JVE5YQN4.js.map} +0 -0
  255. /package/dist/{chunk-IOJD2RFG.js.map → chunk-MR5JWMC2.js.map} +0 -0
  256. /package/dist/{chunk-JCTHXG33.js.map → chunk-NHOGTAPK.js.map} +0 -0
  257. /package/dist/{chunk-VM7VAFJW.js.map → chunk-NVYDWVXN.js.map} +0 -0
  258. /package/dist/{chunk-NLJ3XIKT.js.map → chunk-O6IDYZVW.js.map} +0 -0
  259. /package/dist/{chunk-E23KWEPL.js.map → chunk-OHMLEITS.js.map} +0 -0
  260. /package/dist/{chunk-NUQF5F5J.js.map → chunk-PNDEKFF3.js.map} +0 -0
  261. /package/dist/{chunk-3SFAB75L.js.map → chunk-PX7OTUNU.js.map} +0 -0
  262. /package/dist/{chunk-H5YWCCBO.js.map → chunk-S7V4F7HC.js.map} +0 -0
  263. /package/dist/{chunk-R2CR62JV.js.map → chunk-SCKVDD4E.js.map} +0 -0
  264. /package/dist/{chunk-JUUCCML3.js.map → chunk-TJYJ4BNK.js.map} +0 -0
  265. /package/dist/{chunk-22WGKOQ7.js.map → chunk-TWYJ2TVS.js.map} +0 -0
  266. /package/dist/{chunk-U4OJ7U45.js.map → chunk-UQI463L3.js.map} +0 -0
  267. /package/dist/{chunk-A4QNKEX4.js.map → chunk-V27DOGAO.js.map} +0 -0
  268. /package/dist/{chunk-YSZNJ2ID.js.map → chunk-VSHMXMBZ.js.map} +0 -0
  269. /package/dist/{chunk-2NGFDLIM.js.map → chunk-VZSATUI7.js.map} +0 -0
  270. /package/dist/{chunk-KQDRO6N6.js.map → chunk-W5OZMYMX.js.map} +0 -0
  271. /package/dist/{chunk-XBJKYXOR.js.map → chunk-WW4JATBJ.js.map} +0 -0
  272. /package/dist/{chunk-KBSTXL6L.js.map → chunk-XQKRD5A3.js.map} +0 -0
  273. /package/dist/{chunk-2YKUSTHS.js.map → chunk-XSP3TUFN.js.map} +0 -0
  274. /package/dist/{chunk-BJUEOC4G.js.map → chunk-YB3KD5RI.js.map} +0 -0
  275. /package/dist/{chunk-OWJLB2AF.js.map → chunk-ZKIXGFID.js.map} +0 -0
  276. /package/dist/{chunk-WHVFHBL3.js.map → chunk-ZT3ERG4B.js.map} +0 -0
  277. /package/dist/{chunk-V2XJJEEF.js.map → chunk-ZW4YASUB.js.map} +0 -0
  278. /package/dist/{chunk-UP6NBQ62.js.map → cli-4QAH3DBX.js.map} +0 -0
  279. /package/dist/{cli-FSDJY5OC.js.map → cli-JE4LG35H.js.map} +0 -0
  280. /package/dist/{cli-MOKRUHZT.js.map → config-2YJPJ36T.js.map} +0 -0
  281. /package/dist/{config-BMWDC66C.js.map → github-64ZVAUIT.js.map} +0 -0
  282. /package/dist/{github-6GYTPSGV.js.map → github-ARGPMQD2.js.map} +0 -0
  283. /package/dist/{github-DJOLVNDD.js.map → github-YHJABBUI.js.map} +0 -0
  284. /package/dist/{github-ZF2TQ3RP.js.map → host-JT27OWTC.js.map} +0 -0
  285. /package/dist/{host-YSTYO5DX.js.map → json-CVOVXB7O.js.map} +0 -0
  286. /package/dist/{json-Y7625EFE.js.map → json-QNGJFUY2.js.map} +0 -0
  287. /package/dist/{json-YIK72XAL.js.map → lint-OQGB4DWJ.js.map} +0 -0
  288. /package/dist/{lint-RF3B55W7.js.map → list-EDAB7X5Y.js.map} +0 -0
  289. /package/dist/{list-5DW4QZ7P.js.map → list-OQ3IYV2W.js.map} +0 -0
  290. /package/dist/{list-7CHWJ633.js.map → list-PN6JKYNX.js.map} +0 -0
  291. /package/dist/{list-UNWG6NPD.js.map → page-TPNMHL27.js.map} +0 -0
  292. /package/dist/{page-OMPEACUN.js.map → pretty-EZ2NFU3C.js.map} +0 -0
  293. /package/dist/{pretty-PPNHHOEN.js.map → pretty-HO2LYG5N.js.map} +0 -0
  294. /package/dist/{pretty-U7ATCFBN.js.map → pretty-K3M4AW2D.js.map} +0 -0
  295. /package/dist/{pretty-XGYQ25PH.js.map → provider-YWNTTQPA.js.map} +0 -0
  296. /package/dist/{release-VHHASAG7.js.map → release-EFLQT3FW.js.map} +0 -0
  297. /package/dist/{provider-JY2I3VLF.js.map → reporters-4R2E7PRJ.js.map} +0 -0
  298. /package/dist/{reporters-FAIEOTC4.js.map → reporters-YVLLFBO5.js.map} +0 -0
  299. /package/dist/{reporters-KE7AZR6C.js.map → run-H4BOR2FR.js.map} +0 -0
  300. /package/dist/{run-MHJ3AYKG.js.map → sarif-GWHWJJFP.js.map} +0 -0
  301. /package/dist/{sarif-DOGRSGTB.js.map → sarif-SJFVSOBV.js.map} +0 -0
  302. /package/dist/{sarif-MIEMQOIK.js.map → sarif-YBFD5OUL.js.map} +0 -0
  303. /package/dist/{sarif-RGRG7VFX.js.map → validate-6R5UBDGU.js.map} +0 -0
@@ -1,17 +1,13 @@
1
1
  #!/usr/bin/env node
2
- import {
3
- MANIFEST_VERSION
4
- } from "./chunk-6WJUZQQX.js";
5
2
  import {
6
3
  configDir
7
4
  } from "./chunk-4TSWU2SU.js";
8
5
  import {
9
- metaProvenanceEntries
10
- } from "./chunk-D5GBYKDU.js";
6
+ offeredNames
7
+ } from "./chunk-IXFFVI5S.js";
11
8
  import {
12
- __default3 as __default,
13
- extractFrontmatter
14
- } from "./chunk-BJUEOC4G.js";
9
+ MANIFEST_VERSION
10
+ } from "./chunk-6WJUZQQX.js";
15
11
 
16
12
  // src/tracevals/capture/manifest.ts
17
13
  import { createHash } from "node:crypto";
@@ -168,204 +164,6 @@ function checkContent(manifest, actual) {
168
164
  };
169
165
  }
170
166
 
171
- // src/tracevals/trace/availability.ts
172
- function newAvailability() {
173
- return { recorded: false, skills: [], agents: [], tools: [], mcpServers: [] };
174
- }
175
- function availableAt(entries, index) {
176
- return entries.filter(
177
- (e) => e.offeredAt <= index && (e.withdrawnAt === void 0 || index < e.withdrawnAt)
178
- );
179
- }
180
- function offeredNames(entries) {
181
- return new Set(entries.map((e) => e.name));
182
- }
183
- function joinDescriptions(content, names) {
184
- const byName = new Map(
185
- names.map((name) => [name, void 0])
186
- );
187
- let current;
188
- for (const raw of content.split("\n")) {
189
- const line = raw.trimEnd();
190
- if (line.startsWith("- ")) {
191
- const body = line.slice(2);
192
- let best;
193
- for (const name of names) {
194
- if (body !== name && !body.startsWith(`${name}:`)) continue;
195
- if (best === void 0 || name.length > best.length) best = name;
196
- }
197
- current = best;
198
- if (best === void 0) continue;
199
- const rest = body.slice(best.length).replace(/^:\s*/, "").trim();
200
- byName.set(best, rest.length > 0 ? rest : void 0);
201
- continue;
202
- }
203
- if (current === void 0) continue;
204
- const continued = line.trim();
205
- if (continued.length === 0) continue;
206
- const previous = byName.get(current);
207
- byName.set(current, previous ? `${previous}
208
- ${continued}` : continued);
209
- }
210
- return byName;
211
- }
212
- function describedLines(names, lines) {
213
- const byName = /* @__PURE__ */ new Map();
214
- names.forEach((name, i) => {
215
- const line = lines[i];
216
- if (typeof line !== "string") {
217
- byName.set(name, void 0);
218
- return;
219
- }
220
- const body = line.startsWith("- ") ? line.slice(2) : line;
221
- const rest = body.startsWith(`${name}:`) ? body.slice(name.length + 1).trim() : body === name ? "" : body.trim();
222
- byName.set(name, rest.length > 0 ? rest : void 0);
223
- });
224
- return byName;
225
- }
226
- var asStrings = (value) => Array.isArray(value) ? value.filter((v) => typeof v === "string") : [];
227
- function newReplay() {
228
- return {
229
- roster: newAvailability(),
230
- open: /* @__PURE__ */ new Map([
231
- ["skill", /* @__PURE__ */ new Map()],
232
- ["agent", /* @__PURE__ */ new Map()],
233
- ["tool", /* @__PURE__ */ new Map()],
234
- ["mcp-server", /* @__PURE__ */ new Map()]
235
- ])
236
- };
237
- }
238
- function listFor(roster, kind) {
239
- if (kind === "skill") return roster.skills;
240
- if (kind === "agent") return roster.agents;
241
- if (kind === "tool") return roster.tools;
242
- return roster.mcpServers;
243
- }
244
- function offer(replay, kind, name, index, description, status) {
245
- const open = replay.open.get(kind);
246
- const existing = open.get(name);
247
- if (existing !== void 0) {
248
- if (existing.description === void 0 && description !== void 0) {
249
- existing.description = description;
250
- }
251
- if (status !== void 0) existing.status = status;
252
- return;
253
- }
254
- const entry = { kind, name, offeredAt: index };
255
- if (description !== void 0) entry.description = description;
256
- if (status !== void 0) entry.status = status;
257
- open.set(name, entry);
258
- listFor(replay.roster, kind).push(entry);
259
- }
260
- function withdraw(replay, kind, name, index) {
261
- const open = replay.open.get(kind);
262
- const entry = open.get(name);
263
- if (entry === void 0) return;
264
- entry.withdrawnAt = index;
265
- open.delete(name);
266
- }
267
- function openNames(replay, kind) {
268
- return [...replay.open.get(kind).keys()];
269
- }
270
- function applyAvailabilityRecord(replay, attachment, index) {
271
- if (typeof attachment !== "object" || attachment === null) return false;
272
- const record = attachment;
273
- const type = record.type;
274
- if (type === "skill_listing") {
275
- const names = asStrings(record.names);
276
- const content = typeof record.content === "string" ? record.content : "";
277
- if (record.isInitial === true) {
278
- for (const name of openNames(replay, "skill")) {
279
- if (!names.includes(name)) withdraw(replay, "skill", name, index);
280
- }
281
- }
282
- const described = joinDescriptions(content, names);
283
- for (const name of names) {
284
- offer(replay, "skill", name, index, described.get(name));
285
- }
286
- return true;
287
- }
288
- if (type === "agent_listing_delta") {
289
- const added = asStrings(record.addedTypes);
290
- const lines = asStrings(record.addedLines);
291
- if (record.isInitial === true) {
292
- for (const name of openNames(replay, "agent")) {
293
- if (!added.includes(name)) withdraw(replay, "agent", name, index);
294
- }
295
- }
296
- const described = describedLines(added, lines);
297
- for (const name of added) {
298
- offer(replay, "agent", name, index, described.get(name));
299
- }
300
- for (const name of asStrings(record.removedTypes)) {
301
- withdraw(replay, "agent", name, index);
302
- }
303
- return true;
304
- }
305
- if (type === "deferred_tools_delta") {
306
- for (const name of asStrings(record.removedNames)) {
307
- withdraw(replay, "tool", name, index);
308
- }
309
- for (const name of [
310
- ...asStrings(record.addedNames),
311
- ...asStrings(record.readdedNames)
312
- ]) {
313
- offer(replay, "tool", name, index);
314
- }
315
- const servers = [
316
- ...asStrings(record.pendingMcpServers).map(
317
- (n) => [n, "pending"]
318
- ),
319
- ...asStrings(record.needsAuthMcpServers).map(
320
- (n) => [n, "needs-auth"]
321
- ),
322
- ...asStrings(record.failedMcpServers).map(
323
- (n) => [n, "failed"]
324
- )
325
- ];
326
- for (const [name, status] of servers) {
327
- offer(replay, "mcp-server", name, index, void 0, status);
328
- }
329
- return true;
330
- }
331
- return false;
332
- }
333
- function remapAvailability(roster, at) {
334
- const shift = (entries) => entries.map((entry) => ({
335
- ...entry,
336
- offeredAt: at(entry.offeredAt),
337
- ...entry.withdrawnAt !== void 0 ? { withdrawnAt: at(entry.withdrawnAt) } : {}
338
- }));
339
- return {
340
- recorded: roster.recorded,
341
- skills: shift(roster.skills),
342
- agents: shift(roster.agents),
343
- tools: shift(roster.tools),
344
- mcpServers: shift(roster.mcpServers)
345
- };
346
- }
347
- function foldBranchAvailability(roster, branch, branchId, spawnIndex) {
348
- if (!branch.recorded) return;
349
- roster.recorded = true;
350
- const merge = (into, from) => {
351
- const known = offeredNames(into);
352
- for (const entry of from) {
353
- if (known.has(entry.name)) continue;
354
- known.add(entry.name);
355
- into.push({
356
- ...entry,
357
- offeredAt: spawnIndex,
358
- branchId,
359
- ...entry.withdrawnAt !== void 0 ? { withdrawnAt: void 0 } : {}
360
- });
361
- }
362
- };
363
- merge(roster.skills, branch.skills);
364
- merge(roster.agents, branch.agents);
365
- merge(roster.tools, branch.tools);
366
- merge(roster.mcpServers, branch.mcpServers);
367
- }
368
-
369
167
  // src/tracevals/artifacts/availability.ts
370
168
  var empty = () => ({ offered: 0, used: 0, unused: 0 });
371
169
  var UNROSTERED = /* @__PURE__ */ new Set([
@@ -949,202 +747,7 @@ async function resolveProjectRules(projectDir, projectRoot) {
949
747
  return { artifacts, tried };
950
748
  }
951
749
 
952
- // src/tracevals/evals/schema.ts
953
- import { Ajv2020 } from "ajv/dist/2020.js";
954
- var artifactEvalsSchema = __default;
955
- var ARTIFACT_EVALS_SCHEMA_ID = __default.$id;
956
- var ajv = new Ajv2020({ allErrors: true, allowUnionTypes: true });
957
- ajv.addKeyword({ keyword: "x-manni-location" });
958
- var validateArtifact = ajv.compile(artifactEvalsSchema);
959
- function subjectOf(e) {
960
- switch (e.keyword) {
961
- case "required":
962
- return e.params.missingProperty;
963
- case "additionalProperties":
964
- return e.params.additionalProperty;
965
- case "format":
966
- return e.params.format;
967
- case "type":
968
- return e.params.type;
969
- default:
970
- return void 0;
971
- }
972
- }
973
- function artifactEvalsErrors(data, lineFor) {
974
- if (validateArtifact(data)) return [];
975
- const errors = [];
976
- for (const raw of validateArtifact.errors ?? []) {
977
- errors.push(toFieldError(raw, lineFor));
978
- }
979
- return errors;
980
- }
981
- function toFieldError(e, lineFor) {
982
- const subject = subjectOf(e);
983
- const message = subject !== void 0 && (e.keyword === "required" || e.keyword === "additionalProperties") ? `${e.message ?? "is invalid"} ("${subject}")` : e.message ?? "is invalid";
984
- const line = lineFor(e.instancePath);
985
- return {
986
- schema: ARTIFACT_EVALS_SCHEMA_ID,
987
- instancePath: e.instancePath,
988
- message,
989
- keyword: e.keyword,
990
- ...subject !== void 0 ? { subject } : {},
991
- ...line !== void 0 ? { line } : {}
992
- };
993
- }
994
-
995
- // src/tracevals/evals/extract.ts
996
- var CLAIMED_KEYS = ["evals", "eval-skip", "meta-provenance"];
997
- var PREFIX_EXCEPTION = "eval-skip";
998
- function isPlainObject(value) {
999
- return typeof value === "object" && value !== null && !Array.isArray(value);
1000
- }
1001
- function extractEvals(artifact, supplied) {
1002
- const extracted = supplied ?? extractFrontmatter(artifact.content, "markdown");
1003
- const metadata = extracted.data.metadata;
1004
- const bag = isPlainObject(metadata) ? metadata : void 0;
1005
- const declared = bag !== void 0 && bag.evals !== void 0;
1006
- if (!extracted.present && metadata === void 0) {
1007
- return { evals: [], errors: [], declared: false, skip: false, proposedBy: /* @__PURE__ */ new Map() };
1008
- }
1009
- const typoErrors = reservedPrefixErrors(bag, extracted.lineFor);
1010
- if (typoErrors.length > 0) {
1011
- return { evals: [], errors: typoErrors, declared, skip: false, proposedBy: /* @__PURE__ */ new Map() };
1012
- }
1013
- const wellFormed = metadata === void 0 || bag !== void 0;
1014
- const claimsNothing = bag === void 0 || !CLAIMED_KEYS.some((key) => bag[key] !== void 0);
1015
- if (wellFormed && claimsNothing) {
1016
- return {
1017
- evals: [],
1018
- errors: [],
1019
- declared: false,
1020
- skip: false,
1021
- proposedBy: /* @__PURE__ */ new Map()
1022
- };
1023
- }
1024
- const errors = artifactEvalsErrors(extracted.data, extracted.lineFor);
1025
- if (errors.length > 0) {
1026
- return { evals: [], errors, declared, skip: false, proposedBy: /* @__PURE__ */ new Map() };
1027
- }
1028
- const valid = bag ?? {};
1029
- const skip = valid["eval-skip"] === true;
1030
- return {
1031
- evals: normalizeBlock(valid.evals),
1032
- errors: [],
1033
- declared,
1034
- skip,
1035
- proposedBy: readProvenance(valid["meta-provenance"])
1036
- };
1037
- }
1038
- function readProvenance(raw) {
1039
- const out = /* @__PURE__ */ new Map();
1040
- for (const entry of metaProvenanceEntries(raw)) {
1041
- const by = entry["generated-by"];
1042
- for (const id of entry.evals) {
1043
- const list = out.get(id) ?? [];
1044
- if (!list.includes(by)) list.push(by);
1045
- out.set(id, list);
1046
- }
1047
- }
1048
- return out;
1049
- }
1050
- function reservedPrefixErrors(bag, lineFor) {
1051
- if (bag === void 0) return [];
1052
- const errors = [];
1053
- for (const key of Object.keys(bag)) {
1054
- if (!/^eval-/i.test(key) || key === PREFIX_EXCEPTION) continue;
1055
- const line = lineFor(`/metadata/${key}`);
1056
- errors.push({
1057
- schema: ARTIFACT_EVALS_SCHEMA_ID,
1058
- instancePath: `/metadata/${key}`,
1059
- message: `unrecognized "eval-" key; the only one this vocabulary claims under that prefix is ${PREFIX_EXCEPTION} (its other members are ${CLAIMED_KEYS.filter((k) => k !== PREFIX_EXCEPTION).join(" and ")})`,
1060
- keyword: "additionalProperties",
1061
- subject: key,
1062
- ...line !== void 0 ? { line } : {}
1063
- });
1064
- }
1065
- return errors;
1066
- }
1067
- function normalizeBlock(raw) {
1068
- if (typeof raw === "string") return [normalizeEntry(raw, 0)];
1069
- if (!Array.isArray(raw)) return [];
1070
- return raw.map((entry, index) => normalizeEntry(entry, index));
1071
- }
1072
- function normalizeEntry(raw, index) {
1073
- if (typeof raw === "string") {
1074
- return {
1075
- id: `eval-${index + 1}`,
1076
- assertion: raw,
1077
- type: "regression",
1078
- grader: "ai",
1079
- severity: "error"
1080
- };
1081
- }
1082
- const obj = raw;
1083
- const entry = {
1084
- id: obj.id,
1085
- // Optional since artifact-evals proposal.2: a `tool-usage` criterion says
1086
- // everything in `options`, and demanding a sentence no grader reads was
1087
- // the one place this vocabulary disagreed with the page side. The schema
1088
- // still requires it for `ai`, `human`, and a bare entry (which defaults to
1089
- // `ai`), so anything that actually needs an assertion still has one.
1090
- ...typeof obj.assertion === "string" ? { assertion: obj.assertion } : {},
1091
- type: obj.type ?? "regression",
1092
- grader: typeof obj.grader === "string" ? obj.grader : "ai",
1093
- severity: obj.severity ?? "error"
1094
- };
1095
- if (typeof obj.provider === "string") entry.provider = obj.provider;
1096
- if (typeof obj.model === "string") entry.model = obj.model;
1097
- if (typeof obj.runs === "number") entry.runs = obj.runs;
1098
- if (typeof obj.weight === "number") entry.weight = obj.weight;
1099
- if (typeof obj.target === "string" || obj.target && typeof obj.target === "object") {
1100
- entry.target = obj.target;
1101
- }
1102
- if (obj.options && typeof obj.options === "object") {
1103
- entry.options = obj.options;
1104
- }
1105
- if (typeof obj.evidence === "string") entry.evidence = obj.evidence;
1106
- if (obj.examples && typeof obj.examples === "object") {
1107
- entry.examples = normalizeExamples(obj.examples);
1108
- }
1109
- if (obj.skip === true) entry.skip = true;
1110
- if (obj["severity-map"] && typeof obj["severity-map"] === "object") {
1111
- entry.severityMap = obj["severity-map"];
1112
- }
1113
- if (Array.isArray(obj.command)) entry.command = obj.command;
1114
- if (Array.isArray(obj["success-exit-codes"])) {
1115
- entry.successExitCodes = obj["success-exit-codes"];
1116
- }
1117
- if (typeof obj["timeout-ms"] === "number") {
1118
- entry.timeoutMs = obj["timeout-ms"];
1119
- }
1120
- if (typeof obj["generated-assertion-hash"] === "string") {
1121
- entry.generatedAssertionHash = obj["generated-assertion-hash"];
1122
- }
1123
- return entry;
1124
- }
1125
- function normalizeExamples(raw) {
1126
- const out = {};
1127
- const pass = anchorList(raw.pass);
1128
- const fail = anchorList(raw.fail);
1129
- if (pass) out.pass = pass;
1130
- if (fail) out.fail = fail;
1131
- return out;
1132
- }
1133
- function anchorList(raw) {
1134
- if (typeof raw === "string") return [raw];
1135
- if (Array.isArray(raw)) return raw.filter((e) => typeof e === "string");
1136
- return void 0;
1137
- }
1138
-
1139
750
  export {
1140
- newAvailability,
1141
- availableAt,
1142
- offeredNames,
1143
- joinDescriptions,
1144
- newReplay,
1145
- applyAvailabilityRecord,
1146
- remapAvailability,
1147
- foldBranchAvailability,
1148
751
  coverAvailability,
1149
752
  segments,
1150
753
  PRUNED_DIRS,
@@ -1164,8 +767,6 @@ export {
1164
767
  findManifest,
1165
768
  checkContent,
1166
769
  PROJECT_RULES_FILENAMES,
1167
- resolveArtifacts,
1168
- ARTIFACT_EVALS_SCHEMA_ID,
1169
- extractEvals
770
+ resolveArtifacts
1170
771
  };
1171
- //# sourceMappingURL=chunk-APAF4VWW.js.map
772
+ //# sourceMappingURL=chunk-XTMONCQE.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/tracevals/capture/manifest.ts","../src/tracevals/artifacts/availability.ts","../src/tracevals/artifacts/fs.ts","../src/tracevals/artifacts/resolve.ts"],"sourcesContent":["/**\n * Reading, locating, and comparing session manifests (ADR 01024).\n *\n * The consuming half. Deliberately free of any dependency on\n * `artifacts/discover.ts`: `artifacts/resolve.ts` imports this module, and\n * discovery imports resolution, so producing and consuming a manifest have to\n * live in separate files or the two would form a cycle. Building one is\n * `capture/build.ts`.\n */\nimport { createHash } from \"node:crypto\";\nimport { mkdir, readFile, writeFile } from \"node:fs/promises\";\nimport {\n dirname,\n extname,\n isAbsolute,\n join,\n relative,\n resolve,\n sep,\n} from \"node:path\";\nimport {\n MANIFEST_VERSION,\n type ContentCheck,\n type SessionManifest,\n} from \"./types.js\";\n\nexport function sha256Hex(data: Buffer | string): string {\n return createHash(\"sha256\").update(data).digest(\"hex\");\n}\n\n/** sha256 of a file's bytes, or null when it cannot be read. */\nexport async function hashFile(path: string): Promise<string | null> {\n try {\n // The bytes, not the decoded string: the digest has to mean \"this file\",\n // and a decode-then-re-encode would quietly normalize a BOM.\n return sha256Hex(await readFile(path));\n } catch {\n return null;\n }\n}\n\n/** `path` relative to `root`, POSIX-separated, or null when it escapes. */\nexport function relPosix(root: string, path: string): string | null {\n const rel = relative(resolve(root), resolve(path));\n if (rel === \"\" || rel.startsWith(\"..\") || isAbsolute(rel)) return null;\n return rel.split(sep).join(\"/\");\n}\n\n/**\n * A session id is a filename here, so it may not carry path syntax. Claude Code\n * writes UUIDs; a hand-passed `--session-id` is the case this guards, and a\n * `../` in one would write the manifest outside the directory it was aimed at.\n */\nexport function safeSessionId(sessionId: string): string {\n const cleaned = sessionId.replace(/[^A-Za-z0-9._-]/g, \"-\").replace(/^\\.+/, \"\");\n return cleaned.length > 0 ? cleaned.slice(0, 128) : \"session\";\n}\n\nexport function manifestPathFor(dir: string, sessionId: string): string {\n return join(dir, `${safeSessionId(sessionId)}.json`);\n}\n\n/** The `<trace>.manifest.json` sibling — a manifest placed beside its trace. */\nexport function siblingManifestPath(tracePath: string): string {\n const ext = extname(tracePath);\n const stem = ext === \"\" ? tracePath : tracePath.slice(0, -ext.length);\n return `${stem}.manifest.json`;\n}\n\n// ── Persisting ───────────────────────────────────────────────────\n\nexport async function writeManifest(\n path: string,\n manifest: SessionManifest,\n): Promise<void> {\n await mkdir(dirname(resolve(path)), { recursive: true });\n await writeFile(path, `${JSON.stringify(manifest, null, 2)}\\n`, \"utf-8\");\n}\n\n/**\n * Every member `run` actually consumes, checked one by one.\n *\n * A partial read is the dangerous failure here, not a loud one. An artifact\n * entry with no `path` puts `undefined` in the comparison map's key, and one\n * whose `sha256` is not a string puts a value no real digest can equal — so a\n * half-read manifest reports **`mismatch`**, \"this artifact changed since the\n * session\", which is the most alarming thing this feature can say and would be\n * said off nothing but the file's own corruption. A manifest is optional\n * evidence, so anything malformed has to read as *no* evidence.\n */\nfunction isManifestArtifact(value: unknown): boolean {\n if (value === null || typeof value !== \"object\" || Array.isArray(value)) {\n return false;\n }\n const entry = value as Record<string, unknown>;\n return (\n typeof entry.path === \"string\" &&\n entry.path.length > 0 &&\n typeof entry.sha256 === \"string\" &&\n entry.sha256.length > 0 &&\n typeof entry.name === \"string\" &&\n typeof entry.type === \"string\" &&\n typeof entry.bytes === \"number\"\n );\n}\n\n/**\n * Read one manifest, or null. Absent, unreadable, unparseable, the wrong shape,\n * or written by a newer format version all produce null: consuming a manifest\n * is optional evidence-gathering, so every failure has to degrade to \"no\n * evidence\" rather than to a crash or, worse, to a partial read (ADR 01003).\n */\nexport async function readManifest(\n path: string,\n): Promise<SessionManifest | null> {\n let raw: string;\n try {\n raw = await readFile(path, \"utf-8\");\n } catch {\n return null;\n }\n let parsed: unknown;\n try {\n parsed = JSON.parse(raw);\n } catch {\n return null;\n }\n if (parsed === null || typeof parsed !== \"object\" || Array.isArray(parsed)) {\n return null;\n }\n const record = parsed as Record<string, unknown>;\n if (typeof record.version !== \"number\" || record.version > MANIFEST_VERSION) {\n return null;\n }\n if (typeof record.sessionId !== \"string\") return null;\n // `capturedAt` is printed in the report and `root` is a base the join is\n // keyed on; both are consumed, so neither may be half-there.\n if (typeof record.capturedAt !== \"string\") return null;\n if (typeof record.root !== \"string\") return null;\n if (!Array.isArray(record.artifacts)) return null;\n if (!record.artifacts.every(isManifestArtifact)) return null;\n return parsed as SessionManifest;\n}\n\nexport interface FindManifestOptions {\n tracePath: string;\n /** The trace's own session id, when it recorded one. */\n sessionId?: string;\n /** Project root; the canonical manifest lives under it. */\n projectDir: string;\n /** Directory manifests are written to, relative to the project root. */\n captureDir: string;\n /** An explicitly named manifest, which is used without searching. */\n explicit?: string;\n /**\n * Called for each candidate that was readable but refused, with why. A\n * refusal that leaves no trace is indistinguishable from never having\n * captured anything, which is the wrong thing for a reader to conclude.\n */\n onRefused?: (path: string, reason: string) => void;\n}\n\nexport interface FoundManifest {\n path: string;\n manifest: SessionManifest;\n}\n\n/**\n * Find the manifest for a trace, most-specific location first.\n *\n * 1. `<trace>.manifest.json` — someone put it there deliberately, which is a\n * stronger statement of intent than any convention.\n * 2. `<trace dir>/<captureDir>/<session-id>.json` — a trace copied out of the\n * session store together with the state directory.\n * 3. `<projectDir>/<captureDir>/<session-id>.json` — where `capture` writes.\n *\n * **A manifest that cannot be shown to belong to this trace is refused**, not\n * used. It is evidence about some other session, and letting it stand in here\n * would be the one way a manifest could produce a confidently wrong answer.\n *\n * Two ways that can happen, and the trace's own id decides which:\n *\n * - The ids **disagree** — refused outright, however the manifest was reached.\n * - The trace records **no id at all**. A Claude Code session file whose\n * records predate `sessionId`, or a `claude -p` stream-json transcript\n * captured without its `system`/`init` record, both parse fine and both\n * arrive here with nothing to check against. A manifest found *by\n * convention* beside such a trace is refused, because convention is not\n * provenance and the file could describe any session on the machine.\n *\n * An **explicitly named** `--manifest` is the exception to that second case,\n * and only that one. Naming a file is the caller's own assertion that it\n * belongs to this trace — the assertion the ADR already treats as\n * load-bearing when it makes an unusable named manifest an error rather than a\n * shrug — and it is the only assertion available for a trace format that\n * records no id. Refusing it would leave `--manifest` structurally unusable\n * there while buying no safety a discovered manifest does not already get.\n */\nexport async function findManifest(\n options: FindManifestOptions,\n): Promise<FoundManifest | null> {\n const explicit = options.explicit !== undefined;\n const candidates: string[] = [];\n if (options.explicit !== undefined) {\n candidates.push(options.explicit);\n } else {\n candidates.push(siblingManifestPath(options.tracePath));\n if (options.sessionId !== undefined) {\n candidates.push(\n manifestPathFor(\n resolve(dirname(options.tracePath), options.captureDir),\n options.sessionId,\n ),\n manifestPathFor(\n resolve(options.projectDir, options.captureDir),\n options.sessionId,\n ),\n );\n }\n }\n\n for (const path of candidates) {\n const manifest = await readManifest(path);\n if (manifest === null) continue;\n const refusal = refuse(manifest, options.sessionId, explicit);\n if (refusal !== null) {\n options.onRefused?.(path, refusal);\n continue;\n }\n return { path, manifest };\n }\n return null;\n}\n\n/** Why this manifest cannot be trusted for this trace, or null if it can. */\nfunction refuse(\n manifest: SessionManifest,\n sessionId: string | undefined,\n explicit: boolean,\n): string | null {\n if (sessionId === undefined) {\n if (explicit) return null;\n return (\n `the trace records no session id, so a manifest found by convention ` +\n `cannot be verified as belonging to it (it records \"${manifest.sessionId}\"). ` +\n `Pass --manifest to use it anyway.`\n );\n }\n if (manifest.sessionId !== sessionId) {\n return `it was recorded for a different session (\"${manifest.sessionId}\", not \"${sessionId}\")`;\n }\n return null;\n}\n\n// ── Comparing ────────────────────────────────────────────────────\n\n/**\n * Compare the files one coverage row covers against what the manifest recorded.\n *\n * `actual` maps each covered file's project-relative POSIX path to its current\n * sha256. A row usually covers one file; project rules aggregate several, which\n * is why the outcome is decided over a set:\n *\n * - **any** recorded file whose digest differs → `mismatch`. One changed file\n * makes the row's instructions different, whatever the others say.\n * - **every** covered file recorded and equal → `match`.\n * - otherwise → `skipped`, naming what the manifest could not speak to. A\n * partial answer is not a clean one.\n */\nexport function checkContent(\n manifest: SessionManifest,\n actual: ReadonlyMap<string, string>,\n): ContentCheck {\n const recorded = new Map(manifest.artifacts.map((a) => [a.path, a.sha256]));\n const missing: string[] = [];\n let matched = 0;\n /**\n * The first agreeing pair, captured where both halves are in hand. `expected`\n * means \"what the manifest claimed\" in every branch, so it has to be read off\n * the manifest in every branch — going back to `actual` afterwards would\n * report the file twice, and on a match the two are equal, so nothing would\n * ever catch it.\n */\n let agreed: { expected: string; actual: string } | undefined;\n\n for (const [path, digest] of actual) {\n const expected = recorded.get(path);\n if (expected === undefined) {\n missing.push(path);\n continue;\n }\n if (expected !== digest) {\n return { status: \"mismatch\", expected, actual: digest };\n }\n agreed ??= { expected, actual: digest };\n matched += 1;\n }\n\n if (matched === 0) {\n return {\n status: \"skipped\",\n reason:\n actual.size === 0\n ? \"no file to compare\"\n : \"not recorded in the session manifest\",\n };\n }\n if (missing.length > 0) {\n return {\n status: \"skipped\",\n reason: `not recorded in the session manifest: ${missing.join(\", \")}`,\n };\n }\n // Digests only for a row covering one file: an aggregated project-rules row\n // has no single pair to report, and picking one of several would be a claim\n // about the row that is not true of it.\n return {\n status: \"match\",\n ...(actual.size === 1 && agreed !== undefined ? agreed : {}),\n };\n}\n\nexport * from \"./types.js\";\n","/**\n * Offered versus used (ADR 01016).\n *\n * Artifact resolution starts from what the trace *used*, so a skill that should\n * have been invoked and was not resolves to nothing and is reported nowhere.\n * The availability roster closes that blind spot without a filesystem scan:\n * the evidence travels inside the trace, so it works on any machine and on\n * every session already recorded.\n *\n * Three states, never collapsed:\n *\n * - **offered and used** — the ordinary case.\n * - **offered and not used** — a judgement call for a person to make. Counted\n * by default and listed only on request, because a real roster runs to\n * hundreds of skills and would drown the report.\n * - **not offered** — the session referenced it but it was never on the menu.\n * That is a *configuration* bug, not an adherence failure, and it is the\n * state that is invisible today.\n *\n * This is an observation. It never becomes an eval outcome and never moves the\n * exit code.\n *\n * `discoverArtifacts` is deliberately not used here: it scans the project tree\n * for authoring, and the roster makes a scan unnecessary anyway.\n */\nimport { offeredNames } from \"../trace/availability.js\";\nimport type { Trace } from \"../trace/types.js\";\nimport type {\n AvailabilityCounts,\n AvailabilityReport,\n CoverageEntry,\n} from \"./types.js\";\n\nexport interface AvailabilityOptions {\n /** Include a coverage row per offered-but-unused artifact, not just a count. */\n listUnused?: boolean;\n}\n\nexport interface AvailabilityCoverage {\n report: AvailabilityReport;\n /** The rows handed in, annotated, plus the unused ones when listed. */\n coverage: CoverageEntry[];\n}\n\n/**\n * A fresh zero row per call. One shared object assigned to both `skills` and\n * `agents` would make a mutation of either silently move the other; every\n * caller is read-only today, which is exactly why it would go unnoticed.\n */\nconst empty = (): AvailabilityCounts => ({ offered: 0, used: 0, unused: 0 });\n\n/**\n * Kinds the roster says nothing about, so no row of theirs may carry a state.\n *\n * Project rules are never *offered* — they are in force from the first turn.\n * Slash commands have no listing record of any kind, so `not-offered` would be\n * a confident accusation drawn from evidence that was never collected — which\n * is precisely what a built-in command looked like before it had its own type\n * (ADR 01016's recorded limitation, closed by ADR 01023).\n */\nconst UNROSTERED = new Set<CoverageEntry[\"kind\"]>([\n \"project-rules\",\n \"slash-command\",\n]);\n\nexport function coverAvailability(\n trace: Trace,\n coverage: CoverageEntry[],\n options: AvailabilityOptions = {},\n): AvailabilityCoverage {\n const roster = trace.availability;\n if (!roster.recorded) {\n // No listing records: unknown, not zero. Every row says so rather than\n // implying the session was offered nothing.\n return {\n report: { recorded: false, skills: empty(), agents: empty(), listed: false },\n coverage: coverage.map((entry) =>\n UNROSTERED.has(entry.kind)\n ? entry\n : { ...entry, availability: \"unknown\" as const },\n ),\n };\n }\n\n const offeredSkills = offeredNames(roster.skills);\n const offeredAgents = offeredNames(roster.agents);\n const offeredFor = (kind: CoverageEntry[\"kind\"]): Set<string> =>\n kind === \"skill\" ? offeredSkills : offeredAgents;\n\n const usedSkills = new Set<string>();\n const usedAgents = new Set<string>();\n\n const annotated = coverage.map((entry) => {\n if (UNROSTERED.has(entry.kind)) return entry;\n const offered = offeredFor(entry.kind).has(entry.ref);\n if (offered) {\n (entry.kind === \"skill\" ? usedSkills : usedAgents).add(entry.ref);\n }\n return {\n ...entry,\n availability: offered ? (\"offered-and-used\" as const) : (\"not-offered\" as const),\n };\n });\n\n const listUnused = options.listUnused === true;\n const unusedRows: CoverageEntry[] = [];\n const collect = (kind: \"skill\" | \"agent\", used: Set<string>): number => {\n let unused = 0;\n // Ordered by first offer, and deduplicated: a name withdrawn and\n // re-offered is two intervals but one artifact.\n const seen = new Set<string>();\n for (const entry of kind === \"skill\" ? roster.skills : roster.agents) {\n if (seen.has(entry.name)) continue;\n seen.add(entry.name);\n if (used.has(entry.name)) continue;\n unused += 1;\n if (!listUnused) continue;\n unusedRows.push({\n ref: entry.name,\n kind,\n resolved: false,\n tried: [],\n note:\n entry.description === undefined\n ? \"offered, never used\"\n : `offered, never used — ${firstLine(entry.description)}`,\n availability: \"offered-not-used\",\n });\n }\n return unused;\n };\n\n const skillsUnused = collect(\"skill\", usedSkills);\n const agentsUnused = collect(\"agent\", usedAgents);\n\n return {\n report: {\n recorded: true,\n skills: {\n offered: offeredSkills.size,\n used: usedSkills.size,\n unused: skillsUnused,\n },\n agents: {\n offered: offeredAgents.size,\n used: usedAgents.size,\n unused: agentsUnused,\n },\n listed: listUnused,\n },\n coverage: [...annotated, ...unusedRows],\n };\n}\n\n/** Descriptions wrap over several lines; a table cell wants the first one. */\nfunction firstLine(description: string): string {\n const line = description.split(\"\\n\")[0] ?? \"\";\n return line.length > 160 ? `${line.slice(0, 157)}...` : line;\n}\n","/**\n * Filesystem helpers shared by trace-driven artifact resolution and static\n * artifact discovery. Every function degrades to null/empty rather than\n * throwing: a missing or unreadable path is a coverage note, never a crash.\n */\nimport { access, readdir, readFile, stat } from \"node:fs/promises\";\nimport { dirname, join, resolve, sep } from \"node:path\";\n\n/**\n * Directory names never worth walking. `.git` alone can hold more entries than\n * the rest of a repo combined, and `node_modules` hides vendored skills that\n * are not the project's to edit.\n */\n/**\n * Path split into segments with separators normalised, so convention\n * matching (\"is this under `.claude/commands/`?\") agrees between\n * trace-driven resolution and static discovery. Both had their own\n * byte-identical copy; a drift between them would classify one file two\n * ways in `run` and `fill`.\n */\nexport function segments(path: string): string[] {\n return path.split(sep).join(\"/\").split(\"/\");\n}\n\nexport const PRUNED_DIRS = new Set([\n \"node_modules\",\n \".git\",\n \"dist\",\n \"build\",\n \"coverage\",\n \".manni\",\n \".tmp\",\n \".next\",\n \".venv\",\n]);\n\n/** Nearest ancestor containing `.git` (a directory *or* a worktree file). */\nexport async function findGitRoot(start: string): Promise<string | null> {\n let current = resolve(start);\n for (let depth = 0; depth < 64; depth += 1) {\n try {\n await access(join(current, \".git\"));\n return current;\n } catch {\n // keep walking\n }\n const parent = dirname(current);\n if (parent === current) return null;\n current = parent;\n }\n return null;\n}\n\nexport async function safeRead(path: string): Promise<string | null> {\n try {\n return await readFile(path, \"utf-8\");\n } catch {\n return null;\n }\n}\n\n/**\n * Last-modified time of `path` as an ISO-8601 string, or null when it cannot\n * be read. Used for the staleness heuristic (ADR 01021); like everything else\n * here it degrades rather than throwing — an artifact whose mtime is\n * unreadable is simply one the report says nothing about.\n */\nexport async function safeMtime(path: string): Promise<string | null> {\n try {\n const info = await stat(path);\n return info.mtime.toISOString();\n } catch {\n return null;\n }\n}\n\n/** First file under `root` matching `match`, or null. */\nexport async function findInTree(\n root: string,\n match: (path: string) => boolean,\n): Promise<string | null> {\n let entries;\n try {\n entries = await readdir(root, { withFileTypes: true, recursive: true });\n } catch {\n return null;\n }\n for (const entry of entries) {\n if (!entry.isFile()) continue;\n const full = join(entry.parentPath, entry.name);\n if (match(full)) return full;\n }\n return null;\n}\n\nexport interface ListOptions {\n /** Directory names to skip; defaults to PRUNED_DIRS. */\n prune?: Set<string>;\n maxDepth?: number;\n}\n\n/**\n * Every file under `root` matching `match`, sorted for stable output.\n *\n * Hand-rolled rather than `readdir({recursive:true})` because pruning has to\n * happen *during* the walk — a recursive readdir would enumerate all of\n * `node_modules` before we could filter it. Symlinked directories report\n * `isDirectory() === false`, so loops are not followed.\n */\nexport async function listInTree(\n root: string,\n match: (path: string) => boolean,\n options: ListOptions = {},\n): Promise<string[]> {\n const prune = options.prune ?? PRUNED_DIRS;\n const maxDepth = options.maxDepth ?? 24;\n const found: string[] = [];\n\n async function walk(dir: string, depth: number): Promise<void> {\n if (depth > maxDepth) return;\n let entries;\n try {\n entries = await readdir(dir, { withFileTypes: true });\n } catch {\n return; // unreadable directory is a skip, not a failure\n }\n for (const entry of entries) {\n const full = join(dir, entry.name);\n if (entry.isDirectory()) {\n if (prune.has(entry.name)) continue;\n await walk(full, depth + 1);\n } else if (entry.isFile() && match(full)) {\n found.push(full);\n }\n }\n }\n\n await walk(resolve(root), 0);\n return found.sort();\n}\n","/**\n * Deterministic artifact resolution: map every skill/agent/project-rule\n * reference in a trace to a file on disk. Trace content + filesystem lookup\n * only — no LLM guessing. Unresolved refs degrade to coverage entries and\n * warnings, never a crash (ADR 01003).\n */\nimport { basename, dirname, join, resolve } from \"node:path\";\nimport { configDir } from \"../trace/discover.js\";\nimport { coverAvailability } from \"./availability.js\";\nimport { findGitRoot, findInTree, safeMtime, safeRead, segments } from \"./fs.js\";\nimport { checkContent, hashFile, relPosix } from \"../capture/manifest.js\";\nimport type { SessionManifest } from \"../capture/types.js\";\nimport type { Trace } from \"../trace/types.js\";\nimport type {\n CoverageEntry,\n ResolvedArtifact,\n ResolvedArtifacts,\n} from \"./types.js\";\n\nexport interface ResolveOptions {\n /** Overrides the trace's recorded cwd (for deleted workspaces). */\n projectDir?: string;\n /** Ceiling for the parent-directory walk; defaults to the git root. */\n projectRoot?: string;\n env?: Record<string, string | undefined>;\n /**\n * List every offered-but-unused artifact in the coverage table rather than\n * only counting them (ADR 01016). Off by default: a real roster runs to\n * hundreds of skills.\n */\n reportUnusedArtifacts?: boolean;\n /**\n * The session manifest for this trace, when one was found (ADR 01024). It\n * makes staleness exact for the artifacts it recorded and changes nothing\n * else — no eval outcome, no exit code, no resolution decision.\n */\n manifest?: SessionManifest;\n}\n\n/**\n * Project-rules filenames, in the order they are checked. Different agent\n * tools use different names for the same artifact; all are read the same way.\n */\nexport const PROJECT_RULES_FILENAMES = [\n \"CLAUDE.md\",\n \"AGENTS.md\",\n \"GEMINI.md\",\n] as const;\n\n/** Agents that ship with Claude Code and have no definition file on disk. */\nconst BUILTIN_AGENTS = new Set([\n \"general-purpose\",\n \"claude\",\n \"Explore\",\n \"Plan\",\n \"statusline-setup\",\n \"fork\",\n]);\n\nexport async function resolveArtifacts(\n trace: Trace,\n options: ResolveOptions = {},\n): Promise<ResolvedArtifacts> {\n const projectDir = resolve(options.projectDir ?? trace.cwd);\n const userDir = configDir(options.env);\n const projectRoot = resolve(\n options.projectRoot ?? (await findGitRoot(projectDir)) ?? projectDir,\n );\n\n const artifacts: ResolvedArtifact[] = [];\n const coverage: CoverageEntry[] = [];\n const warnings: string[] = [];\n const seenPaths = new Set<string>();\n const seenRefs = new Set<string>();\n\n const add = (artifact: ResolvedArtifact): void => {\n if (seenPaths.has(artifact.path)) return;\n seenPaths.add(artifact.path);\n artifacts.push(artifact);\n };\n\n /** Record a resolved skill once, however many refs reached it. */\n const addSkill = (\n name: string,\n artifact: ResolvedArtifact,\n tried: string[],\n ): void => {\n const refKey = `skill:${name}`;\n if (seenRefs.has(refKey)) return;\n seenRefs.add(refKey);\n add(artifact);\n coverage.push({\n ref: name,\n kind: \"skill\",\n resolved: true,\n path: artifact.path,\n tried,\n });\n };\n\n for (const invocation of trace.skillInvocations) {\n // A `<command-name>` injection is the slash-command mechanism, and a slash\n // command is one of three things: a `.claude/commands/*.md` file, a skill\n // surfaced under its slash form, or a built-in with no file anywhere. Only\n // the filesystem can say which, so the shape of the reference decides\n // nothing on its own (ADR 01023).\n if (invocation.via === \"command-injection\") {\n const refKey = `command:${invocation.name}`;\n if (seenRefs.has(refKey)) continue;\n seenRefs.add(refKey);\n\n const command = await resolveSlashCommand(\n invocation.name,\n projectDir,\n userDir,\n );\n if (command.artifact) {\n add(command.artifact);\n coverage.push({\n ref: invocation.name,\n kind: \"slash-command\",\n resolved: true,\n path: command.artifact.path,\n tried: command.tried,\n });\n continue;\n }\n\n const skill = await resolveSkill(invocation.name, projectDir, userDir);\n if (skill.artifact) {\n addSkill(invocation.name, skill.artifact, skill.tried);\n // Resolved as a skill, so the slash-command lookup below must not\n // also record it — one reference yields one coverage row.\n continue;\n }\n\n // No definition file in any place a command or a skill could live. Claude\n // Code's own commands (`/model`, `/compact`) have no file by design, so\n // this is reported rather than warned about — and reported as what it is\n // rather than as a skill that went missing, which is the defect ADR 01016\n // recorded. A hard-coded list of built-in names was rejected: it would go\n // stale with every Claude Code release.\n coverage.push({\n ref: invocation.name,\n kind: \"slash-command\",\n resolved: false,\n tried: [...command.tried, ...skill.tried],\n note: \"built-in slash command, or not installed here (no definition file)\",\n });\n continue;\n }\n\n // A `Skill` tool call is unambiguous: it names a skill.\n const refKey = `skill:${invocation.name}`;\n if (seenRefs.has(refKey)) continue;\n const { artifact, tried } = await resolveSkill(\n invocation.name,\n projectDir,\n userDir,\n );\n if (artifact) {\n addSkill(invocation.name, artifact, tried);\n } else {\n seenRefs.add(refKey);\n coverage.push({ ref: invocation.name, kind: \"skill\", resolved: false, tried });\n warnings.push(\n `skill \"${invocation.name}\" was invoked but no SKILL.md was found (${tried.length} location(s) tried)`,\n );\n }\n }\n\n for (const spawn of trace.agentSpawns) {\n const refKey = `agent:${spawn.subagentType}`;\n if (seenRefs.has(refKey)) continue;\n seenRefs.add(refKey);\n if (BUILTIN_AGENTS.has(spawn.subagentType)) {\n coverage.push({\n ref: spawn.subagentType,\n kind: \"agent\",\n resolved: false,\n tried: [],\n note: \"built-in agent (no definition file)\",\n });\n continue;\n }\n const { artifact, tried } = await resolveAgent(\n spawn.subagentType,\n projectDir,\n userDir,\n );\n if (artifact) {\n add(artifact);\n coverage.push({\n ref: spawn.subagentType,\n kind: \"agent\",\n resolved: true,\n path: artifact.path,\n tried,\n });\n } else {\n coverage.push({\n ref: spawn.subagentType,\n kind: \"agent\",\n resolved: false,\n tried,\n });\n warnings.push(\n `agent \"${spawn.subagentType}\" was spawned but no definition file was found (${tried.length} location(s) tried)`,\n );\n }\n }\n\n const rules = await resolveProjectRules(projectDir, projectRoot);\n for (const rule of rules.artifacts) add(rule);\n const rulesEntry: CoverageEntry = {\n ref: \"project rules\",\n kind: \"project-rules\",\n resolved: rules.artifacts.length > 0,\n tried: rules.tried,\n ...(rules.artifacts.length === 0\n ? { note: \"no CLAUDE.md or AGENTS.md found\" }\n : {}),\n };\n coverage.push(rulesEntry);\n\n // One aggregated entry covers several files, so it has no single `path` to\n // stat; name them explicitly. Every other entry stats the file it resolved to.\n //\n // Before the roster pass, not after: staleness only has something to say\n // about rows that resolved to a file, and the roster's own offered-but-unused\n // rows never do. Annotating first also keeps these flags on the entries the\n // roster copies forward.\n await annotateStaleness(\n trace,\n coverage,\n new Map([[rulesEntry, rules.artifacts.map((a) => a.path)]]),\n warnings,\n projectRoot,\n projectDir,\n options.manifest,\n );\n\n // What the session was *offered* is the other half of coverage: resolution\n // only ever sees what it used (ADR 01016).\n const availability = coverAvailability(trace, coverage, {\n ...(options.reportUnusedArtifacts !== undefined\n ? { listUnused: options.reportUnusedArtifacts }\n : {}),\n });\n\n return {\n artifacts,\n coverage: availability.coverage,\n availability: availability.report,\n warnings,\n };\n}\n\n// ── Staleness ────────────────────────────────────────────────────\n\n/**\n * Say, for every resolved artifact, whether it is still the one the session\n * followed. Evals are read from the artifact *as it is now* while the session\n * followed it *as it was then*, so editing a SKILL.md after a session grades\n * that session against instructions it never saw.\n *\n * Two sources of evidence, and the better one wins **only on its own question**:\n *\n * - **A session manifest** (ADR 01024) recorded a sha256 per artifact when the\n * session started. A digest that differs is an exact \"this changed\"; a digest\n * that matches is an exact \"this did not\". Either one settles the row.\n * - **mtime** (ADR 01021) is the fallback, and a soft one: it is not content\n * identity, a fresh clone rewrites every mtime, and an unreadable mtime says\n * nothing.\n *\n * A manifest may therefore quiet the mtime warning for an artifact it covers —\n * that is the entire point, since a checkout otherwise flags everything in CI —\n * and it may do nothing else. It never reaches an eval outcome, never moves the\n * exit code, and it cannot silence a row it has no entry for. The observation\n * itself (`modifiedAt`) is reported either way, so nothing is hidden; only the\n * conclusion drawn from it changes.\n */\nasync function annotateStaleness(\n trace: Trace,\n coverage: CoverageEntry[],\n extraPaths: Map<CoverageEntry, string[]>,\n warnings: string[],\n projectRoot: string,\n projectDir: string,\n manifest?: SessionManifest,\n): Promise<void> {\n // No session end means no ground for the *heuristic* to stand on, and\n // guessing one would manufacture a warning out of no evidence. A manifest\n // supplies its own ground, so it still has something to say here.\n const endedAt =\n trace.endedAt !== undefined ? Date.parse(trace.endedAt) : Number.NaN;\n const haveEnd = Number.isFinite(endedAt);\n if (!haveEnd && manifest === undefined) return;\n\n const base =\n manifest === undefined\n ? projectRoot\n : joinBase(manifest, coverage, extraPaths, [\n projectDir,\n projectRoot,\n manifest.root,\n ]);\n\n /** Refs still resting on the mtime guess. */\n const guessed: string[] = [];\n /** Refs the manifest proved changed. */\n const changed: string[] = [];\n /** Whether the manifest spoke to any row at all. */\n let joined = false;\n\n for (const entry of coverage) {\n if (!entry.resolved) continue;\n const paths = extraPaths.get(entry) ?? (entry.path ? [entry.path] : []);\n if (paths.length === 0) continue;\n\n let newest: string | undefined;\n let outside = false;\n const digests = new Map<string, string>();\n for (const path of paths) {\n const mtime = await safeMtime(path);\n if (mtime !== null && (newest === undefined || mtime > newest)) {\n newest = mtime;\n }\n if (manifest === undefined) continue;\n // Keyed on the path relative to the base **both sides agree on**, so the\n // manifest still joins after the repository has been checked out\n // somewhere else. An artifact outside that base — a user-level or plugin\n // skill — has no relative path, and `capture` is project-scoped, so it\n // was never recordable in the first place. That is a different sentence\n // from \"it changed\" and gets one.\n const rel = relPosix(base, path);\n if (rel === null) {\n outside = true;\n continue;\n }\n const digest = await hashFile(path);\n if (digest !== null) digests.set(rel, digest);\n }\n if (newest !== undefined) entry.modifiedAt = newest;\n\n const check =\n manifest === undefined\n ? ({\n status: \"skipped\",\n reason: \"no session manifest for this trace\",\n } as const)\n : outside && digests.size === 0\n ? ({\n status: \"skipped\",\n reason:\n \"outside the project root, so no session manifest could record it\",\n } as const)\n : checkContent(manifest, digests);\n entry.contentCheck = check;\n if (check.status !== \"skipped\") joined = true;\n\n if (check.status === \"mismatch\") {\n entry.stale = true;\n changed.push(entry.ref);\n continue;\n }\n if (check.status === \"match\") {\n // Exact, and it answers mtime's own question — so the guess does not run.\n entry.stale = false;\n continue;\n }\n if (!haveEnd || newest === undefined) continue;\n entry.stale = Date.parse(newest) > endedAt;\n if (entry.stale) guessed.push(entry.ref);\n }\n\n if (changed.length > 0) {\n warnings.push(\n `${changed.length} artifact(s) changed since the session started ` +\n `(${changed.join(\", \")}) — the session manifest recorded a different ` +\n `sha256, so their evals are not the instructions this session followed.`,\n );\n }\n if (guessed.length > 0) {\n // One warning, not one per artifact: a fresh checkout flags everything, and\n // a wall of identical lines is how a real signal gets tuned out.\n warnings.push(\n `${guessed.length} artifact(s) were modified after the session ended ` +\n `(${guessed.join(\", \")}) — their evals may not be the instructions ` +\n `this session followed. mtime is a heuristic, not content identity.`,\n );\n }\n // A manifest that speaks to nothing is a different problem from a manifest\n // with a gap in it, and it degrades row by row into the same sentence — the\n // one an absent manifest produces. Say it once, at the top.\n //\n // Only when it recorded something: a manifest with no artifacts in it — a\n // project whose instruction files all live outside the capture scope — has\n // nothing to match, which is not a join failure.\n if (manifest !== undefined && manifest.artifacts.length > 0 && !joined) {\n warnings.push(\n `the session manifest matched no artifact in this run — it recorded ` +\n `${manifest.artifacts.length} artifact(s) relative to \"${manifest.root}\", ` +\n `and nothing resolved here lines up with them, so every hash check ` +\n `fell back to the mtime heuristic. Check that --project names the ` +\n `directory the session ran in.`,\n );\n }\n}\n\n/**\n * Pick the base to key the manifest join on.\n *\n * `capture` writes each path relative to *its* project root — the session's\n * cwd — while resolution keys on the git root when `--project` is absent. In a\n * monorepo those are different directories, so one file gets two different\n * relative paths and every hash check silently degraded to `skipped`: exactly\n * the guesswork a manifest exists to remove, and quietly, row by row.\n *\n * Rather than pick a side, ask the data. Each candidate base is scored by how\n * many resolved artifacts it turns into a path the manifest actually recorded,\n * and the best score wins — with candidate order as the tiebreak, so a tie\n * keeps today's behaviour. `manifest.root` joins the candidates because it is\n * the capturing machine's own answer; it may have been redacted, or the\n * repository may have moved since, in which case it simply scores zero.\n */\nfunction joinBase(\n manifest: SessionManifest,\n coverage: CoverageEntry[],\n extraPaths: Map<CoverageEntry, string[]>,\n candidates: string[],\n): string {\n const recorded = new Set(manifest.artifacts.map((a) => a.path));\n const paths = coverage\n .filter((entry) => entry.resolved)\n .flatMap((entry) => extraPaths.get(entry) ?? (entry.path ? [entry.path] : []));\n\n let best = candidates[0] as string;\n let bestScore = -1;\n for (const candidate of candidates) {\n if (typeof candidate !== \"string\" || candidate.length === 0) continue;\n let score = 0;\n for (const path of paths) {\n let rel: string | null;\n try {\n rel = relPosix(candidate, path);\n } catch {\n // A redacted `root` can be anything, including something `resolve`\n // refuses. A candidate that cannot be used simply does not win.\n continue;\n }\n if (rel !== null && recorded.has(rel)) score += 1;\n }\n if (score > bestScore) {\n best = candidate;\n bestScore = score;\n }\n }\n return best;\n}\n\n// ── Skills ───────────────────────────────────────────────────────\n\nasync function resolveSkill(\n name: string,\n projectDir: string,\n userDir: string,\n): Promise<{ artifact: ResolvedArtifact | null; tried: string[] }> {\n const tried: string[] = [];\n // `plugin:skill` refs look up the skill by its short name inside the\n // user plugin store; plain refs check project dirs then the user store.\n const [pluginName, shortName] = splitPluginRef(name);\n\n const candidates: Array<{ path: string; origin: ResolvedArtifact[\"origin\"] }> =\n [];\n if (pluginName === null) {\n for (const dir of [\"skills\", join(\"src\", \"skills\"), join(\".claude\", \"skills\")]) {\n candidates.push({\n path: join(projectDir, dir, shortName, \"SKILL.md\"),\n origin: \"project\",\n });\n }\n candidates.push({\n path: join(userDir, \"skills\", shortName, \"SKILL.md\"),\n origin: \"user\",\n });\n }\n\n for (const candidate of candidates) {\n tried.push(candidate.path);\n const content = await safeRead(candidate.path);\n if (content !== null) {\n return {\n artifact: {\n name,\n type: \"skill\",\n path: candidate.path,\n content,\n origin: candidate.origin,\n },\n tried,\n };\n }\n }\n\n // Plugin store: ~/.claude/plugins/**/skills/<shortName>/SKILL.md. The store\n // layout varies (marketplace caches nest deeper), so search recursively.\n const pluginRoot = join(userDir, \"plugins\");\n tried.push(join(pluginRoot, \"**\", \"skills\", shortName, \"SKILL.md\"));\n const found = await findInTree(\n pluginRoot,\n (path) =>\n basename(path) === \"SKILL.md\" &&\n basename(dirname(path)) === shortName &&\n (pluginName === null || hasPathSegment(path, pluginName)),\n );\n if (found) {\n const content = await safeRead(found);\n if (content !== null) {\n return {\n artifact: { name, type: \"skill\", path: found, content, origin: \"plugin\" },\n tried,\n };\n }\n }\n\n return { artifact: null, tried };\n}\n\n// ── Slash commands ───────────────────────────────────────────────\n\n/**\n * `.claude/commands/<name>.md`, in the three places Claude Code reads them:\n * the project, the user's config directory, and the plugin store.\n *\n * Two shapes matter and neither is guessed at. Subdirectories under\n * `commands/` **organize** rather than namespace — `commands/release/tag.md`\n * is still invoked as `/tag` — so a plain name falls back to a recursive\n * search after the direct hit misses. A `plugin:command` name is plugin\n * namespacing and is looked up in the store by its short name, exactly as\n * `resolveSkill` does for `plugin:skill`; project and user directories are not\n * checked, because a namespace is not something a local file can claim.\n */\nasync function resolveSlashCommand(\n name: string,\n projectDir: string,\n userDir: string,\n): Promise<{ artifact: ResolvedArtifact | null; tried: string[] }> {\n const tried: string[] = [];\n const [pluginName, shortName] = splitPluginRef(name);\n\n const made = (\n path: string,\n content: string,\n origin: ResolvedArtifact[\"origin\"],\n ): { artifact: ResolvedArtifact; tried: string[] } => ({\n artifact: { name, type: \"slash-command\", path, content, origin },\n tried,\n });\n\n if (pluginName === null) {\n const dirs: Array<{ dir: string; origin: ResolvedArtifact[\"origin\"] }> = [\n { dir: join(projectDir, \".claude\", \"commands\"), origin: \"project\" },\n { dir: join(userDir, \"commands\"), origin: \"user\" },\n ];\n for (const { dir, origin } of dirs) {\n const path = join(dir, `${shortName}.md`);\n tried.push(path);\n const content = await safeRead(path);\n if (content !== null) return made(path, content, origin);\n }\n for (const { dir, origin } of dirs) {\n tried.push(join(dir, \"**\", `${shortName}.md`));\n const found = await findInTree(\n dir,\n (path) => basename(path) === `${shortName}.md`,\n );\n if (found === null) continue;\n const content = await safeRead(found);\n if (content !== null) return made(found, content, origin);\n }\n return { artifact: null, tried };\n }\n\n const pluginRoot = join(userDir, \"plugins\");\n tried.push(join(pluginRoot, \"**\", \"commands\", `${shortName}.md`));\n const found = await findInTree(\n pluginRoot,\n (path) =>\n basename(path) === `${shortName}.md` &&\n segments(path).includes(\"commands\") &&\n hasPathSegment(path, pluginName),\n );\n if (found !== null) {\n const content = await safeRead(found);\n if (content !== null) return made(found, content, \"plugin\");\n }\n return { artifact: null, tried };\n}\n\n/** Path segments, separator-normalized, for convention matching. */\n/**\n * Split `plugin:name` into its two halves.\n *\n * On the **first** colon, keeping the remainder: `split(\":\", 2)` throws away\n * everything past the second field, so `myplugin:release:tag` resolved as a\n * lookup for `release` — a different artifact, reported as if it were the one\n * asked for. The namespace is the part before the first colon; everything\n * after it is the name, whatever it contains.\n */\nfunction splitPluginRef(name: string): [string | null, string] {\n const at = name.indexOf(\":\");\n if (at === -1) return [null, name];\n return [name.slice(0, at), name.slice(at + 1)];\n}\n\n/**\n * True when `pluginName` is a *segment* of `path`.\n *\n * `path.includes(pluginName)` was unanchored over the whole absolute path, so\n * a plugin named `docs` matched `~/.claude/plugins/other-plugin/commands/\n * docs-helper/x.md` — and, on Windows, matched every path under a home\n * directory of `C:\\Users\\docs\\`. A plugin is a directory, so the test is\n * whether the path passes through a directory of that name.\n */\nfunction hasPathSegment(path: string, pluginName: string): boolean {\n return segments(path).includes(pluginName);\n}\n\n// ── Agents ───────────────────────────────────────────────────────\n\nasync function resolveAgent(\n subagentType: string,\n projectDir: string,\n userDir: string,\n): Promise<{ artifact: ResolvedArtifact | null; tried: string[] }> {\n const tried: string[] = [];\n // Plugin agents are referenced as `plugin:agent`; the file is the short name.\n const shortName = splitPluginRef(subagentType)[1];\n\n const candidates: Array<{ path: string; origin: ResolvedArtifact[\"origin\"] }> = [\n { path: join(projectDir, \".claude\", \"agents\", `${shortName}.md`), origin: \"project\" },\n { path: join(projectDir, \"agents\", `${shortName}.md`), origin: \"project\" },\n { path: join(userDir, \"agents\", `${shortName}.md`), origin: \"user\" },\n ];\n\n for (const candidate of candidates) {\n tried.push(candidate.path);\n const content = await safeRead(candidate.path);\n if (content !== null) {\n return {\n artifact: {\n name: subagentType,\n type: \"agent\",\n path: candidate.path,\n content,\n origin: candidate.origin,\n },\n tried,\n };\n }\n }\n return { artifact: null, tried };\n}\n\n// ── Project rules ────────────────────────────────────────────────\n\nasync function resolveProjectRules(\n projectDir: string,\n projectRoot: string,\n): Promise<{ artifacts: ResolvedArtifact[]; tried: string[] }> {\n const artifacts: ResolvedArtifact[] = [];\n const tried: string[] = [];\n\n // Walk from the cwd up to the project root (inclusive), then check .claude/.\n const dirs: string[] = [];\n let current = projectDir;\n for (let depth = 0; depth < 32; depth += 1) {\n dirs.push(current);\n if (current === projectRoot) break;\n const parent = dirname(current);\n if (parent === current) break;\n current = parent;\n }\n dirs.push(join(projectRoot, \".claude\"));\n\n for (const dir of dirs) {\n for (const filename of PROJECT_RULES_FILENAMES) {\n const path = join(dir, filename);\n tried.push(path);\n const content = await safeRead(path);\n if (content !== null) {\n artifacts.push({\n name: filename,\n type: \"project-rules\",\n path,\n content,\n origin: \"project\",\n });\n }\n }\n }\n return { artifacts, tried };\n}\n\n// Filesystem helpers live in ./fs.js, shared with static discovery.\n"],"mappings":";;;;;;;;;;;;AASA,SAAS,kBAAkB;AAC3B,SAAS,OAAO,UAAU,iBAAiB;AAC3C;AAAA,EACE;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,OACK;AAOA,SAAS,UAAU,MAA+B;AACvD,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AC9C,YAAM,OAAOA,MAAK,KAAK,QAAQ;AAC/B,YAAM,KAAK,IAAI;AACf,YAAM,UAAU,MAAM,SAAS,IAAI;AACnC,UAAI,YAAY,MAAM;AACpB,kBAAU,KAAK;AAAA,UACb,MAAM;AAAA,UACN,MAAM;AAAA,UACN;AAAA,UACA;AAAA,UACA,QAAQ;AAAA,QACV,CAAC;AAAA,MACH;AAAA,IACF;AAAA,EACF;AACA,SAAO,EAAE,WAAW,MAAM;AAC5B;","names":["readFile","dirname","join","resolve","sep","dirname","join","resolve","resolve","refKey","join","dirname","found"]}
@@ -5,13 +5,13 @@ import {
5
5
  matchesFileGlob,
6
6
  readConfigFile,
7
7
  selectCollections
8
- } from "./chunk-B2242FYO.js";
8
+ } from "./chunk-JF4BC7ZD.js";
9
9
  import {
10
10
  warn
11
11
  } from "./chunk-HX44GB4Z.js";
12
12
  import {
13
13
  package_default
14
- } from "./chunk-JQA6RF4R.js";
14
+ } from "./chunk-TR5TNPWT.js";
15
15
  import {
16
16
  programName
17
17
  } from "./chunk-OWBRDNRZ.js";
@@ -14141,4 +14141,4 @@ export {
14141
14141
  loadMetaSection,
14142
14142
  resolveRunConfig
14143
14143
  };
14144
- //# sourceMappingURL=chunk-BJUEOC4G.js.map
14144
+ //# sourceMappingURL=chunk-YB3KD5RI.js.map