reeval 0.11.0 → 0.12.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 (283) hide show
  1. package/README.md +3 -1
  2. package/bin/mcp-timer.cjs +224 -0
  3. package/dist/{adapter-Bwy3QxAK.js → adapter-DigeVFWC.js} +3 -3
  4. package/dist/{adapter-Bwy3QxAK.js.map → adapter-DigeVFWC.js.map} +1 -1
  5. package/dist/{agent-DpE80WPz.js → agent-CatUEo5h.js} +21 -6
  6. package/dist/{agent-DpE80WPz.js.map → agent-CatUEo5h.js.map} +1 -1
  7. package/dist/{assemble-D9GWr-HS.js → assemble-CF063ms6.js} +19 -17
  8. package/dist/assemble-CF063ms6.js.map +1 -0
  9. package/dist/assemble-CJoD_Rzr.js +1 -0
  10. package/dist/bridge/index.mjs +2 -1
  11. package/dist/{capture-BQlGHiMC.js → capture-BiD7lVaM.js} +25 -17
  12. package/dist/{capture-BQlGHiMC.js.map → capture-BiD7lVaM.js.map} +1 -1
  13. package/dist/capture-Dp3q7K7Y.js +1 -0
  14. package/dist/{cli-ClpPT8kn.js → cli-B5zQCR2r.js} +161 -116
  15. package/dist/cli-B5zQCR2r.js.map +1 -0
  16. package/dist/{cli-spec-qmEnQ25_.js → cli-spec-BXIBUlaK.js} +34 -15
  17. package/dist/cli-spec-BXIBUlaK.js.map +1 -0
  18. package/dist/cli.js +2 -2
  19. package/dist/{command-TgbzPizb.js → command-BMHXHqMT.js} +15 -14
  20. package/dist/command-BMHXHqMT.js.map +1 -0
  21. package/dist/command-C94CQNh8.js +91 -0
  22. package/dist/command-C94CQNh8.js.map +1 -0
  23. package/dist/command-CVtgyqlM.js +335 -0
  24. package/dist/command-CVtgyqlM.js.map +1 -0
  25. package/dist/{command-DbAe1Rzb.js → command-CaZgCTIw.js} +14 -17
  26. package/dist/command-CaZgCTIw.js.map +1 -0
  27. package/dist/{command-BlM0y8jN.js → command-DTgBZR0k.js} +6 -6
  28. package/dist/{command-BlM0y8jN.js.map → command-DTgBZR0k.js.map} +1 -1
  29. package/dist/{commands-CthqwkAn.js → commands-BXzIDB3X.js} +1 -1
  30. package/dist/commands-CjpGBUWr.js +666 -0
  31. package/dist/commands-CjpGBUWr.js.map +1 -0
  32. package/dist/{config-DrVSEVN0.js → config-Dv5MG7Rp.js} +27 -48
  33. package/dist/config-Dv5MG7Rp.js.map +1 -0
  34. package/dist/{context-C1mxXh80.js → context-Dgn48BqT.js} +13 -2
  35. package/dist/context-Dgn48BqT.js.map +1 -0
  36. package/dist/{contrasts-5zsj32gk.js → contrasts-CcoMLC_y.js} +3 -3
  37. package/dist/{contrasts-5zsj32gk.js.map → contrasts-CcoMLC_y.js.map} +1 -1
  38. package/dist/db-BeqRiWLl.js +602 -0
  39. package/dist/db-BeqRiWLl.js.map +1 -0
  40. package/dist/db-CJDRVQal.js +2 -0
  41. package/dist/{dist-CuY4ehEk.js → dist-CMjp3qqF.js} +2 -2
  42. package/dist/{dist-CuY4ehEk.js.map → dist-CMjp3qqF.js.map} +1 -1
  43. package/dist/{docker-DOvjji9I.js → docker-BbTlMmYi.js} +2 -2
  44. package/dist/{docker-DOvjji9I.js.map → docker-BbTlMmYi.js.map} +1 -1
  45. package/dist/{docker-D1HZDS6q.js → docker-CCXdbREk.js} +20 -4
  46. package/dist/{docker-D1HZDS6q.js.map → docker-CCXdbREk.js.map} +1 -1
  47. package/dist/{docker-DNmMPOBb.js → docker-DC69dKxB.js} +1 -1
  48. package/dist/{doctor-D2MbNO8L.js → doctor-CqttrZcs.js} +57 -22
  49. package/dist/doctor-CqttrZcs.js.map +1 -0
  50. package/dist/{egress-2-qzPvGi.js → egress-BfK_O9ce.js} +435 -30
  51. package/dist/egress-BfK_O9ce.js.map +1 -0
  52. package/dist/env-BQqj93gu.js +21 -0
  53. package/dist/env-BQqj93gu.js.map +1 -0
  54. package/dist/{environment-Cca6a4wB.js → environment-BBz1Yes9.js} +224 -10
  55. package/dist/environment-BBz1Yes9.js.map +1 -0
  56. package/dist/{evaluate-DKIl54Hb.js → evaluate-CXQ1o-pd.js} +539 -559
  57. package/dist/evaluate-CXQ1o-pd.js.map +1 -0
  58. package/dist/{evaluate-DMyaGQEj.d.ts → evaluate-yjZKUexW.d.ts} +2 -2
  59. package/dist/facts-DtENlf9s.js +898 -0
  60. package/dist/facts-DtENlf9s.js.map +1 -0
  61. package/dist/{files-BpUYBwGu.js → files-B-eUpCZ1.js} +30 -7
  62. package/dist/files-B-eUpCZ1.js.map +1 -0
  63. package/dist/files-BsQbYz2i.js +65 -0
  64. package/dist/files-BsQbYz2i.js.map +1 -0
  65. package/dist/{files-BXHZFWmx.js → files-COHQLEHE.js} +6 -17
  66. package/dist/files-COHQLEHE.js.map +1 -0
  67. package/dist/files-DqCBW7i8.js +1 -0
  68. package/dist/files-Ha-jsQXf.js +1 -0
  69. package/dist/generate-Cs2TMH_k.js +1647 -0
  70. package/dist/generate-Cs2TMH_k.js.map +1 -0
  71. package/dist/{git-Crl3b87o.js → git-DhykwgKF.js} +2 -2
  72. package/dist/{git-Crl3b87o.js.map → git-DhykwgKF.js.map} +1 -1
  73. package/dist/{harness-CEuntrla.js → harness-BAjw1fcr.js} +2 -2
  74. package/dist/{harness-CEuntrla.js.map → harness-BAjw1fcr.js.map} +1 -1
  75. package/dist/harness.d.ts +1 -1
  76. package/dist/harness.js +1 -1
  77. package/dist/{header-DHQv_ZrF.js → header-kSmWatcO.js} +10 -3
  78. package/dist/{header-DHQv_ZrF.js.map → header-kSmWatcO.js.map} +1 -1
  79. package/dist/{images-Bi3aGxb9.js → images-BmJRuTpm.js} +61 -13
  80. package/dist/images-BmJRuTpm.js.map +1 -0
  81. package/dist/index.d.ts +3 -3
  82. package/dist/index.js +4 -4
  83. package/dist/init-Bwc9byQr.js +543 -0
  84. package/dist/init-Bwc9byQr.js.map +1 -0
  85. package/dist/init-D7Y1ny1z.js +1 -0
  86. package/dist/insights-B2Xmhz9o.js +64 -0
  87. package/dist/insights-B2Xmhz9o.js.map +1 -0
  88. package/dist/{invocations-BYDPe3fV.js → invocations-CQTbP092.js} +3 -3
  89. package/dist/{invocations-BYDPe3fV.js.map → invocations-CQTbP092.js.map} +1 -1
  90. package/dist/{judge-DW_GDOmB.js → judge-Dt6KW6_O.js} +5 -3
  91. package/dist/judge-Dt6KW6_O.js.map +1 -0
  92. package/dist/judge.d.ts +7 -6
  93. package/dist/judge.js +8 -7
  94. package/dist/judge.js.map +1 -1
  95. package/dist/{live-jlfszAbb.js → live-DYd2QEyR.js} +2 -2
  96. package/dist/{live-jlfszAbb.js.map → live-DYd2QEyR.js.map} +1 -1
  97. package/dist/{model-D0IcOQao.js → model-B-mel-Gv.js} +43 -18
  98. package/dist/model-B-mel-Gv.js.map +1 -0
  99. package/dist/model-BGKYVpoj.js +1 -0
  100. package/dist/{model-DaVCY3rb.js → model-C7tSwT7f.js} +2 -2
  101. package/dist/{model-DaVCY3rb.js.map → model-C7tSwT7f.js.map} +1 -1
  102. package/dist/{model-DaX4bNLZ.js → model-CWlAqmbU.js} +135 -40
  103. package/dist/model-CWlAqmbU.js.map +1 -0
  104. package/dist/model-DHY-dfoO.js +1 -0
  105. package/dist/{node-B3ydHo6t.js → node-D0mtjRAO.js} +3 -3
  106. package/dist/{node-B3ydHo6t.js.map → node-D0mtjRAO.js.map} +1 -1
  107. package/dist/{options-C0d0AzeR.js → options-CPUW97_7.js} +7 -9
  108. package/dist/options-CPUW97_7.js.map +1 -0
  109. package/dist/{pairs-CnInRu-G.js → pairs-DP6XOJby.js} +2 -2
  110. package/dist/{pairs-CnInRu-G.js.map → pairs-DP6XOJby.js.map} +1 -1
  111. package/dist/{patch-B1bnfhN-.js → patch-D4oluWzH.js} +2 -2
  112. package/dist/{patch-B1bnfhN-.js.map → patch-D4oluWzH.js.map} +1 -1
  113. package/dist/{plan-DgQxp9yy.js → plan-OkwUcJQ9.js} +21 -8
  114. package/dist/plan-OkwUcJQ9.js.map +1 -0
  115. package/dist/plugins-CUWMnSNb.js +654 -0
  116. package/dist/plugins-CUWMnSNb.js.map +1 -0
  117. package/dist/{preflight-DlQvbySb.js → preflight-B6pY89bF.js} +1 -1
  118. package/dist/{preflight-BRzD30L5.js → preflight-Bjm7_ylE.js} +14 -10
  119. package/dist/preflight-Bjm7_ylE.js.map +1 -0
  120. package/dist/{prepare-B_y-AFMv.js → prepare-CQmK3SBn.js} +70 -23
  121. package/dist/prepare-CQmK3SBn.js.map +1 -0
  122. package/dist/prepare-DbdgtZKe.js +2 -0
  123. package/dist/{provenance-DQ0AXn6c.js → provenance-B3Y17oCC.js} +3 -3
  124. package/dist/{provenance-DQ0AXn6c.js.map → provenance-B3Y17oCC.js.map} +1 -1
  125. package/dist/providers-CXN2RFz-.js +1 -0
  126. package/dist/{providers-DoTq1jHW.js → providers-eoniqK6w.js} +24 -10
  127. package/dist/providers-eoniqK6w.js.map +1 -0
  128. package/dist/{query-BO-ux7RB.js → query-CLRZmWBT.js} +3 -3
  129. package/dist/{query-BO-ux7RB.js.map → query-CLRZmWBT.js.map} +1 -1
  130. package/dist/query-CmBDYt0_.js +1 -0
  131. package/dist/{questions-C2dym2ce.js → questions-1XOulevV.js} +6 -6
  132. package/dist/{questions-C2dym2ce.js.map → questions-1XOulevV.js.map} +1 -1
  133. package/dist/{record-BKmMvZ6O.js → record-kk9M1hj-.js} +8 -4
  134. package/dist/record-kk9M1hj-.js.map +1 -0
  135. package/dist/remarks-1521zwfW.js +38 -0
  136. package/dist/remarks-1521zwfW.js.map +1 -0
  137. package/dist/remarks-BhAV1H4V.js +1 -0
  138. package/dist/remarks-DlJCqWRs.js +278 -0
  139. package/dist/remarks-DlJCqWRs.js.map +1 -0
  140. package/dist/{remote-CPPW86Q9.js → remote-cE2VWfkJ.js} +3 -3
  141. package/dist/{remote-CPPW86Q9.js.map → remote-cE2VWfkJ.js.map} +1 -1
  142. package/dist/resolve-C4zeccCH.js +724 -0
  143. package/dist/resolve-C4zeccCH.js.map +1 -0
  144. package/dist/resolve-D30yZYmB.js +1 -0
  145. package/dist/{results-BE2f-1XS.js → results-Drtt0uFl.js} +33 -8
  146. package/dist/results-Drtt0uFl.js.map +1 -0
  147. package/dist/{resume-Ca1c8vix.js → resume-BEFazUfy.js} +4 -4
  148. package/dist/{resume-Ca1c8vix.js.map → resume-BEFazUfy.js.map} +1 -1
  149. package/dist/rules-BFzQqPIm.js +317 -0
  150. package/dist/rules-BFzQqPIm.js.map +1 -0
  151. package/dist/run-BeMy92Us.js +88 -0
  152. package/dist/run-BeMy92Us.js.map +1 -0
  153. package/dist/{sandbox-DLrsvu7U.js → sandbox-CQaJj7n9.js} +2 -2
  154. package/dist/{sandbox-DLrsvu7U.js.map → sandbox-CQaJj7n9.js.map} +1 -1
  155. package/dist/sandbox.d.ts +1 -1
  156. package/dist/sandbox.js +1 -1
  157. package/dist/server-V4-2w0l8.js +1 -0
  158. package/dist/{server-TUY5xA_A.js → server-xK0les4f.js} +8 -8
  159. package/dist/{server-TUY5xA_A.js.map → server-xK0les4f.js.map} +1 -1
  160. package/dist/source-BDow_oW8.js +1 -0
  161. package/dist/{source-DJGS0a0u.js → source-Q1hEKbCs.js} +2 -2
  162. package/dist/{source-DJGS0a0u.js.map → source-Q1hEKbCs.js.map} +1 -1
  163. package/dist/src-B9L9yGKI.js +1 -0
  164. package/dist/{src-CLoOMVWI.js → src-Bcah6ZkT.js} +1 -1
  165. package/dist/{src-DvCg0NBs.js → src-BhmaorOU.js} +28 -6
  166. package/dist/{src-DvCg0NBs.js.map → src-BhmaorOU.js.map} +1 -1
  167. package/dist/{src-CF17Ug08.js → src-C0CeKiLU.js} +19 -4
  168. package/dist/{src-CF17Ug08.js.map → src-C0CeKiLU.js.map} +1 -1
  169. package/dist/src-C0xowZ3C.js +2 -0
  170. package/dist/src-CHIfIKUu.js +2 -0
  171. package/dist/src-DLtyz4w5.js +2 -0
  172. package/dist/src-DPIjmReZ.js +2 -0
  173. package/dist/{src-BxfCKA3_.js → src-DXNh5mTr.js} +1 -1
  174. package/dist/{src-FGXhkEkH.js → src-DiLMkIr9.js} +142 -13
  175. package/dist/src-DiLMkIr9.js.map +1 -0
  176. package/dist/{src-ftu5wPSt.js → src-LekQrr_S.js} +209 -29
  177. package/dist/src-LekQrr_S.js.map +1 -0
  178. package/dist/src-bCnsA6Vp.js +2 -0
  179. package/dist/{src-u8_ixn_F.js → src-cbCb-MPy.js} +20 -4
  180. package/dist/src-cbCb-MPy.js.map +1 -0
  181. package/dist/{src-DvK0EIZx.js → src-qGoFkuJF.js} +55 -6
  182. package/dist/{src-DvK0EIZx.js.map → src-qGoFkuJF.js.map} +1 -1
  183. package/dist/{src-DSYYPEOj.js → src-ynBVosfX.js} +1 -1
  184. package/dist/state-BQR_BCm4.js +1 -0
  185. package/dist/{state-DfpHox6b.js → state-BmZ8QVZ8.js} +12 -12
  186. package/dist/{state-DfpHox6b.js.map → state-BmZ8QVZ8.js.map} +1 -1
  187. package/dist/studio-app/assets/{index-CBkhNAv8.js → index-CnYJijyI.js} +9 -9
  188. package/dist/studio-app/index.html +1 -1
  189. package/dist/suite-BaHPmAGy.js +1 -0
  190. package/dist/{suite-Cw_7G2RM.js → suite-C8sw2pox.js} +80 -28
  191. package/dist/suite-C8sw2pox.js.map +1 -0
  192. package/dist/{summary-BUKfU-9l.js → summary-0oQNGskv.js} +273 -47
  193. package/dist/summary-0oQNGskv.js.map +1 -0
  194. package/dist/testing.d.ts +2 -2
  195. package/dist/testing.js +2 -2
  196. package/dist/{text-gEcKjAyp.js → text-CrVy5ioL.js} +18 -2
  197. package/dist/text-CrVy5ioL.js.map +1 -0
  198. package/dist/{transcript-BNNANU8A.js → transcript-BTxJpW4R.js} +2 -2
  199. package/dist/{transcript-BNNANU8A.js.map → transcript-BTxJpW4R.js.map} +1 -1
  200. package/dist/types-C5vI3g1C.js.map +1 -1
  201. package/dist/{types-BYdlwMwo.d.ts → types-GraZtfHN.d.ts} +848 -34
  202. package/dist/usage-BDo2q_yu.js +1 -0
  203. package/dist/{command-Bj39y-Wm.js → validate-BdoXUuL_.js} +15 -372
  204. package/dist/validate-BdoXUuL_.js.map +1 -0
  205. package/dist/view/index.d.ts +20 -257
  206. package/dist/view/index.js +7 -6
  207. package/dist/{views-B8w2J-gD.js → views-BoUoX4_A.js} +8 -98
  208. package/dist/views-BoUoX4_A.js.map +1 -0
  209. package/dist/views-noVQNCUP.js +2 -0
  210. package/dist/{worker-entry-DNnveLqx.js → worker-entry-D0-GErmU.js} +2 -2
  211. package/dist/{worker-entry-DNnveLqx.js.map → worker-entry-D0-GErmU.js.map} +1 -1
  212. package/dist/{workspace-C_X0tdv6.js → workspace-B90YDU_a.js} +1 -1
  213. package/dist/{workspace-C4RA3srV.js → workspace-tjZFkjxC.js} +4 -4
  214. package/dist/{workspace-C4RA3srV.js.map → workspace-tjZFkjxC.js.map} +1 -1
  215. package/package.json +3 -1
  216. package/skills/eval-rubric/SKILL.md +130 -0
  217. package/dist/agent-D483ru7D.js +0 -334
  218. package/dist/agent-D483ru7D.js.map +0 -1
  219. package/dist/assemble-D5KGrwnJ.js +0 -1
  220. package/dist/assemble-D9GWr-HS.js.map +0 -1
  221. package/dist/capture-CYGLpWxR.js +0 -1
  222. package/dist/cli-ClpPT8kn.js.map +0 -1
  223. package/dist/cli-spec-qmEnQ25_.js.map +0 -1
  224. package/dist/command-Bj39y-Wm.js.map +0 -1
  225. package/dist/command-C-cVjlny.js +0 -1
  226. package/dist/command-DbAe1Rzb.js.map +0 -1
  227. package/dist/command-TgbzPizb.js.map +0 -1
  228. package/dist/commands-YUwlyTbr.js +0 -228
  229. package/dist/commands-YUwlyTbr.js.map +0 -1
  230. package/dist/config-DrVSEVN0.js.map +0 -1
  231. package/dist/context-C1mxXh80.js.map +0 -1
  232. package/dist/db-CKg5NtiW.js +0 -2
  233. package/dist/db-DfhipHEF.js +0 -1416
  234. package/dist/db-DfhipHEF.js.map +0 -1
  235. package/dist/doctor-D2MbNO8L.js.map +0 -1
  236. package/dist/egress-2-qzPvGi.js.map +0 -1
  237. package/dist/environment-Cca6a4wB.js.map +0 -1
  238. package/dist/evaluate-DKIl54Hb.js.map +0 -1
  239. package/dist/files-BXHZFWmx.js.map +0 -1
  240. package/dist/files-BpUYBwGu.js.map +0 -1
  241. package/dist/files-Bw8lWEjg.js +0 -1
  242. package/dist/files-D6J0iSdx.js +0 -1
  243. package/dist/images-Bi3aGxb9.js.map +0 -1
  244. package/dist/init-Cl3f3NBT.js +0 -360
  245. package/dist/init-Cl3f3NBT.js.map +0 -1
  246. package/dist/init-fhOXED8F.js +0 -1
  247. package/dist/judge-DW_GDOmB.js.map +0 -1
  248. package/dist/model-CXhrziBe.js +0 -1
  249. package/dist/model-D0IcOQao.js.map +0 -1
  250. package/dist/model-DaX4bNLZ.js.map +0 -1
  251. package/dist/model-_bxNrk2h.js +0 -1
  252. package/dist/options-C0d0AzeR.js.map +0 -1
  253. package/dist/plan-DgQxp9yy.js.map +0 -1
  254. package/dist/preflight-BRzD30L5.js.map +0 -1
  255. package/dist/prepare-B_y-AFMv.js.map +0 -1
  256. package/dist/prepare-DCKTLHN3.js +0 -2
  257. package/dist/providers-B9yTdIqF.js +0 -1
  258. package/dist/providers-DoTq1jHW.js.map +0 -1
  259. package/dist/query-CRQfsw0e.js +0 -1
  260. package/dist/record-BKmMvZ6O.js.map +0 -1
  261. package/dist/results-BE2f-1XS.js.map +0 -1
  262. package/dist/server-Dp8eOeK5.js +0 -1
  263. package/dist/source-DdbLGR1M.js +0 -1
  264. package/dist/src-CcrQbpG8.js +0 -2
  265. package/dist/src-DCFtJRp0.js +0 -2
  266. package/dist/src-DYO3DdnQ.js +0 -1
  267. package/dist/src-FGXhkEkH.js.map +0 -1
  268. package/dist/src-WD-zgQYZ.js +0 -2
  269. package/dist/src-_oI9AePb.js +0 -2
  270. package/dist/src-ftu5wPSt.js.map +0 -1
  271. package/dist/src-qsKCqv7a.js +0 -2
  272. package/dist/src-u8_ixn_F.js.map +0 -1
  273. package/dist/state-DpAxYyED.js +0 -1
  274. package/dist/suite-Cw_7G2RM.js.map +0 -1
  275. package/dist/suite-DamAEnNF.js +0 -1
  276. package/dist/summary-BUKfU-9l.js.map +0 -1
  277. package/dist/summary-Baa4rTHS.js +0 -192
  278. package/dist/summary-Baa4rTHS.js.map +0 -1
  279. package/dist/text-gEcKjAyp.js.map +0 -1
  280. package/dist/tools-DLHgetpx.js +0 -249
  281. package/dist/tools-DLHgetpx.js.map +0 -1
  282. package/dist/views-B8w2J-gD.js.map +0 -1
  283. package/dist/views-DblnI3kA.js +0 -2
@@ -1,28 +1,30 @@
1
1
  import { n as isOneOf } from "./object-CLf2-tNq.js";
2
2
  import { n as UsageError } from "./errors-B6BSMs03.js";
3
3
  import { p as parseDuration } from "./shared-CA61BuPJ.js";
4
- import { f as sandboxId, s as harnessId } from "./options-C0d0AzeR.js";
5
- import { A as workspaceLabel, p as environmentSandbox } from "./environment-Cca6a4wB.js";
4
+ import { f as sandboxId, s as harnessId } from "./options-CPUW97_7.js";
5
+ import { A as workspaceLabel, p as environmentSandbox } from "./environment-BBz1Yes9.js";
6
6
  import { a as fromCwd, o as newRunId } from "./ids-Bp6ut7ZD.js";
7
- import { _ as selectProfile, a as configLabel, d as hostCapacity, f as loadConfig, g as resolveConcurrency, h as requireConfig, l as findConfig, m as missingCredentials, o as configPathFor, p as malformedCredentials, u as hasAnalysisModel, v as inCI, y as loadEnvFiles } from "./config-DrVSEVN0.js";
8
- import { o as redactSecrets, s as registerSecret } from "./redact-DJ9JCShu.js";
7
+ import { _ as selectProfile, a as configLabel, d as hostCapacity, f as loadConfig, g as resolveConcurrency, h as requireConfig, l as findConfig, m as missingCredentials, o as configPathFor, p as malformedCredentials, u as hasAnalysisModel } from "./config-Dv5MG7Rp.js";
8
+ import { n as loadEnvFiles, t as inCI } from "./env-BQqj93gu.js";
9
+ import { U as LABEL, it as imageInfo } from "./src-LekQrr_S.js";
9
10
  import { o as PACKAGE_VERSION } from "./root-DICDHCtp.js";
10
- import { I as LABEL, X as imageInfo } from "./src-ftu5wPSt.js";
11
+ import { o as redactSecrets, s as registerSecret } from "./redact-DJ9JCShu.js";
12
+ import { C as pluginBuildsLabel } from "./plugins-CUWMnSNb.js";
11
13
  import { s as debugTime } from "./debug-D24NOQH1.js";
12
- import { i as sandboxWarningLine, n as clip, r as formatDuration } from "./text-gEcKjAyp.js";
14
+ import { i as formatDuration, n as clip, o as sandboxWarningLine } from "./text-CrVy5ioL.js";
13
15
  import { t as PrepareError } from "./provider-CmAYTQQs.js";
14
- import { T as runOutcome, g as formatUsage } from "./model-DaX4bNLZ.js";
15
- import { s as suiteResult } from "./suite-Cw_7G2RM.js";
16
+ import { T as runOutcome, g as formatUsage } from "./model-CWlAqmbU.js";
17
+ import { l as suiteResult } from "./suite-C8sw2pox.js";
18
+ import { a as commandHelpText, n as FLAGS, r as GLOBAL, s as helpText, t as COMMANDS } from "./cli-spec-BXIBUlaK.js";
19
+ import { p as render } from "./summary-0oQNGskv.js";
16
20
  import { n as stripAnsi, t as colors } from "./colors-QV9dFVhN.js";
17
- import { a as render } from "./summary-BUKfU-9l.js";
18
- import { c as writeLiveProgress, i as prepareResume, o as resolveResume, r as loadPrevious, s as writeCurrent, t as completedKeysFor } from "./resume-Ca1c8vix.js";
19
- import { a as commandHelpText, n as FLAGS, r as GLOBAL, s as helpText, t as COMMANDS } from "./cli-spec-qmEnQ25_.js";
20
- import { i as runtimeInfo, n as gitInfo, r as runnerInfo, t as author } from "./provenance-DQ0AXn6c.js";
21
+ import { i as runtimeInfo, n as gitInfo, r as runnerInfo, t as author } from "./provenance-B3Y17oCC.js";
21
22
  import { t as budgetMarker } from "./budget-DBUrH4jX.js";
22
- import { n as prepareAll, o as writePrepared, r as prepareTargets, t as RunStopError } from "./preflight-BRzD30L5.js";
23
- import { n as imageHarness } from "./prepare-B_y-AFMv.js";
24
- import { r as createProviders, t as attemptImage } from "./providers-DoTq1jHW.js";
25
- import { a as redactArgv, r as commandOf, t as logInvocation } from "./invocations-BYDPe3fV.js";
23
+ import { c as writeLiveProgress, i as prepareResume, o as resolveResume, r as loadPrevious, s as writeCurrent, t as completedKeysFor } from "./resume-BEFazUfy.js";
24
+ import { n as prepareAll, o as writePrepared, r as prepareTargets, t as RunStopError } from "./preflight-Bjm7_ylE.js";
25
+ import { n as imageHarness } from "./prepare-CQmK3SBn.js";
26
+ import { i as createProviders, n as attemptImage } from "./providers-eoniqK6w.js";
27
+ import { a as redactArgv, r as commandOf, t as logInvocation } from "./invocations-CQTbP092.js";
26
28
  import { existsSync, mkdirSync, readdirSync, writeFileSync } from "node:fs";
27
29
  import { dirname, join } from "node:path";
28
30
  import { inspect } from "node:util";
@@ -161,12 +163,15 @@ function usageError(error, command) {
161
163
  }
162
164
  //#endregion
163
165
  //#region src/preflight.ts
164
- /** How the terminal names a sandbox to prepare: its cell id, `+ install`, and a harness other than Cursor. */
165
- function prepareLabel({ sandbox, harness }) {
166
+ /**
167
+ * How the terminal names a sandbox to prepare: its cell id, `+ install`, `+ plugin builds`, and a
168
+ * harness other than Cursor.
169
+ */
170
+ function prepareLabel({ sandbox, harness, plugins }) {
166
171
  if (sandbox.kind !== "docker") return sandboxId(sandbox);
167
172
  const baked = imageHarness(harness);
168
173
  const install = sandbox.install?.length ? " + install" : "";
169
- return `${sandboxId(sandbox)}${install}${baked === "cursor" ? "" : ` · ${baked}`}`;
174
+ return `${sandboxId(sandbox)}${install}${pluginBuildsLabel(plugins)}${baked === "cursor" ? "" : ` · ${baked}`}`;
170
175
  }
171
176
  /** A run that stopped in preflight on an infra failure: exit 3. */
172
177
  var PreflightInfraError = class extends Error {
@@ -384,12 +389,12 @@ function resultLines(c, e, verbose) {
384
389
  `results ${e.summaryPath}`
385
390
  ].filter(Boolean).join(" · "))
386
391
  ];
387
- return [...e.unhandledErrors.flatMap((error) => [c.red(`error: ${error}`), ""]), ...render(suiteResult(record), null, {
392
+ return render(suiteResult(record), e.insights ?? null, {
388
393
  color: c.enabled,
389
394
  verbose,
390
- notes,
395
+ notes: [...(e.insightLines ?? []).map((l) => c.yellow(l)), ...notes],
391
396
  hint: e.hint
392
- })];
397
+ });
393
398
  }
394
399
  //#endregion
395
400
  //#region src/ui/tags.ts
@@ -552,6 +557,8 @@ var PlainRenderer = class {
552
557
  #evals = /* @__PURE__ */ new Set();
553
558
  #tries = /* @__PURE__ */ new Set();
554
559
  #ended = /* @__PURE__ */ new Set();
560
+ /** Insights after the last attempt, once they've started: they take the status line. */
561
+ #insights = null;
555
562
  constructor(options) {
556
563
  this.#o = options;
557
564
  this.#c = options.colors;
@@ -568,11 +575,16 @@ var PlainRenderer = class {
568
575
  this.#o.out.write(this.#status ? `${CLEAR}${line}${this.#status}` : line);
569
576
  this.#lastWrite = this.#now();
570
577
  }
571
- /** `7 evals · 12/28 tries`: what's collected so far and how many tries ended. */
578
+ /** `7 evals · 12/28 tries`: what's collected so far and how many tries ended; then `insights 3/7…`. */
572
579
  #drawStatus() {
573
- if (!this.#live || !this.#tries.size) return;
574
- const evals = `${this.#evals.size} eval${this.#evals.size === 1 ? "" : "s"}`;
575
- const status = this.#c.dim(`${evals} · ${this.#ended.size}/${this.#tries.size} tries`);
580
+ if (!this.#live) return;
581
+ let status;
582
+ if (this.#insights) status = this.#c.dim(`insights ${this.#insights.done}/${this.#insights.total}…`);
583
+ else {
584
+ if (!this.#tries.size) return;
585
+ const evals = `${this.#evals.size} eval${this.#evals.size === 1 ? "" : "s"}`;
586
+ status = this.#c.dim(`${evals} · ${this.#ended.size}/${this.#tries.size} tries`);
587
+ }
576
588
  if (status === this.#status) return;
577
589
  this.#o.out.write(`${CLEAR}${status}`);
578
590
  this.#status = status;
@@ -700,6 +712,14 @@ var PlainRenderer = class {
700
712
  this.#write(`::error title=${title}::${ghEscape(failure.message)}`);
701
713
  }
702
714
  return;
715
+ case "insights-progress":
716
+ this.#insights = {
717
+ done: e.done,
718
+ total: e.total,
719
+ startedAt: this.#insights?.startedAt ?? e.at
720
+ };
721
+ this.#drawStatus();
722
+ return;
703
723
  case "notice": {
704
724
  const paint = {
705
725
  info: c.dim,
@@ -760,12 +780,19 @@ var PlainRenderer = class {
760
780
  this.#write(`::error file=${ghEscape(result.file, true)}${where},title=${title}::${message}`);
761
781
  }
762
782
  }
763
- /** Prints the heartbeat if nothing was written for `heartbeatMs` and evals are running. */
783
+ /** Prints the heartbeat if nothing was written for `heartbeatMs` and evals or insights are running. */
764
784
  tick(now = this.#now()) {
765
785
  const { heartbeatMs } = this.#o.output;
766
- if (this.#live || heartbeatMs <= 0 || this.#running.size === 0) return;
786
+ if (this.#live || heartbeatMs <= 0) return;
767
787
  if (now - this.#lastWrite < heartbeatMs) return;
768
788
  const c = this.#c;
789
+ const insights = this.#insights;
790
+ if (insights) {
791
+ const elapsed = formatDuration(now - insights.startedAt);
792
+ if (insights.done < insights.total) this.#write(c.dim(`… insights ${insights.done}/${insights.total} after ${elapsed}`));
793
+ return;
794
+ }
795
+ if (this.#running.size === 0) return;
769
796
  const running = [...this.#running.values()].map((a) => {
770
797
  const progress = a.last?.type === "eval-progress" ? a.last.progress : void 0;
771
798
  return `${this.#prefix(a)} ${phaseOf(progress)} ${c.dim(formatDuration(now - a.startedAt))}`;
@@ -899,6 +926,11 @@ const invocation = {
899
926
  let interrupted = false;
900
927
  /** The last signal that cancelled the run: 130 after SIGINT, 143 after SIGTERM. */
901
928
  let stopCode = EXIT.interrupted;
929
+ /**
930
+ * Set while insights run, after the attempts and the exit code: Ctrl-C or SIGTERM then stops the
931
+ * insights instead of cancelling the run, which has nothing left to cancel.
932
+ */
933
+ let onInsightsSignal = null;
902
934
  async function run(argv) {
903
935
  const { values, positionals } = parseCli(argv);
904
936
  invocation.flags = values;
@@ -916,7 +948,7 @@ async function run(argv) {
916
948
  return values.help ? EXIT.ok : EXIT.usage;
917
949
  }
918
950
  if (command === "init") {
919
- const { initCommand } = await import("./init-fhOXED8F.js");
951
+ const { initCommand } = await import("./init-D7Y1ny1z.js");
920
952
  return initCommand(values, filters, {
921
953
  out: (s) => console.log(s),
922
954
  input: process.stdin,
@@ -925,7 +957,7 @@ async function run(argv) {
925
957
  });
926
958
  }
927
959
  if (command === "doctor") {
928
- const { doctorCommand } = await import("./doctor-D2MbNO8L.js");
960
+ const { doctorCommand } = await import("./doctor-CqttrZcs.js");
929
961
  return doctorCommand(values, {
930
962
  out: (s) => console.log(s),
931
963
  color: !!process.stdout.isTTY && !process.env.NO_COLOR,
@@ -933,7 +965,7 @@ async function run(argv) {
933
965
  });
934
966
  }
935
967
  if (command === "report") {
936
- const { reportCommand } = await import("./command-DbAe1Rzb.js");
968
+ const { reportCommand } = await import("./command-CaZgCTIw.js");
937
969
  return reportCommand(values, filters, {
938
970
  out: (s) => console.log(s),
939
971
  err: (s) => console.error(dim(s)),
@@ -948,7 +980,7 @@ async function run(argv) {
948
980
  }
949
981
  if (command === "studio") {
950
982
  const config = await loadConfig(configPath, "studio");
951
- const { studioCommand } = await import("./command-BlM0y8jN.js");
983
+ const { studioCommand } = await import("./command-DTgBZR0k.js");
952
984
  return studioCommand({
953
985
  config,
954
986
  flags: values,
@@ -959,7 +991,7 @@ async function run(argv) {
959
991
  if (command === "mcp") {
960
992
  if (!values.http) console.log = console.info = console.debug = console.error;
961
993
  const config = await loadConfig(configPath, "mcp");
962
- const { mcpCommand } = await import("./command-TgbzPizb.js");
994
+ const { mcpCommand } = await import("./command-BMHXHqMT.js");
963
995
  return mcpCommand({
964
996
  config,
965
997
  flags: values,
@@ -968,7 +1000,7 @@ async function run(argv) {
968
1000
  }
969
1001
  if (command in HISTORY_COMMANDS) {
970
1002
  const config = await loadConfig(configPath, command);
971
- const commands = await import("./commands-CthqwkAn.js");
1003
+ const commands = await import("./commands-BXzIDB3X.js");
972
1004
  const ctx = {
973
1005
  config,
974
1006
  flags: values,
@@ -981,7 +1013,7 @@ async function run(argv) {
981
1013
  case "compare": return commands.compareCommand(ctx, filters);
982
1014
  case "checkout": return commands.checkoutCommand(ctx, filters);
983
1015
  case "query": {
984
- const { queryCommand } = await import("./query-CRQfsw0e.js");
1016
+ const { queryCommand } = await import("./query-CmBDYt0_.js");
985
1017
  return queryCommand({
986
1018
  ...ctx,
987
1019
  err: (s) => console.error(dim(s))
@@ -989,7 +1021,7 @@ async function run(argv) {
989
1021
  }
990
1022
  case "analyze": {
991
1023
  loadEnvFiles(configPath);
992
- const { analyzeCommand } = await import("./command-C-cVjlny.js");
1024
+ const { analyzeCommand } = await import("./command-CVtgyqlM.js");
993
1025
  return analyzeCommand({
994
1026
  ...ctx,
995
1027
  err: (s) => console.error(dim(s))
@@ -1028,8 +1060,8 @@ async function cleanCommand(flags, configPath) {
1028
1060
  const where = fromCwd(debugRoot(config.root)) || ".";
1029
1061
  console.log(runs.length ? `Removed debug data for ${runs.length} run${runs.length === 1 ? "" : "s"} (${formatBytes(bytes)}) from ${where}` : `No debug data to remove in ${where}`);
1030
1062
  if (flags.images) {
1031
- const { dockerAvailable, pruneImages } = await import("./src-DYO3DdnQ.js");
1032
- const { requireDocker } = await import("./providers-B9yTdIqF.js");
1063
+ const { dockerAvailable, pruneImages } = await import("./src-B9L9yGKI.js");
1064
+ const { requireDocker } = await import("./providers-CXN2RFz-.js");
1033
1065
  const engines = [];
1034
1066
  for (const engine of ["docker", "podman"]) if (await dockerAvailable(engine)) engines.push(engine);
1035
1067
  if (!engines.length) await requireDocker();
@@ -1050,7 +1082,7 @@ function verbosityOf(flags) {
1050
1082
  * does. Needs a config, as `reeval run` does: there is no default image.
1051
1083
  */
1052
1084
  async function imageBuildCommand(flags, configPath, filters) {
1053
- const { buildImages, imagePlanLines, imageTargets, plannedImageUses } = await import("./images-Bi3aGxb9.js");
1085
+ const { buildImages, imagePlanLines, imageTargets, plannedImageUses } = await import("./images-BmJRuTpm.js");
1054
1086
  const { runId, stagingDir, config, runs, tags, concurrency, profile } = await startRun(await prepareRun({
1055
1087
  ...flags,
1056
1088
  "dry-run": true
@@ -1110,7 +1142,7 @@ async function runCommand(flags, configPath, filters) {
1110
1142
  if (githubOut) await appendFile(githubOut, `run-id=${ctx.runId}\n`).catch(() => {});
1111
1143
  const stepStart = process.env.GITHUB_STEP_SUMMARY;
1112
1144
  if (stepStart) await appendFile(stepStart, `run ${ctx.runId}\n`).catch(() => {});
1113
- const { engineVersions } = await import("./node-B3ydHo6t.js");
1145
+ const { engineVersions } = await import("./node-D0mtjRAO.js");
1114
1146
  const renderer = createRenderer({
1115
1147
  out: setup.json ? setup.dryRun ? { write: () => true } : process.stderr : process.stdout,
1116
1148
  output: setup.output,
@@ -1128,27 +1160,13 @@ async function runCommand(flags, configPath, filters) {
1128
1160
  });
1129
1161
  throw error;
1130
1162
  }
1131
- const { engineRun, plan, sandboxVersions, budgetReached, live, notes, questions } = executed;
1163
+ const { engineRun, plan, sandboxVersions, budgetReached, live, questions } = executed;
1132
1164
  invocation.unhandledErrors = engineRun.unhandledErrors;
1133
1165
  const engines = [...new Set(plan?.sandboxes.flatMap((s) => s.kind === "docker" ? [s.engine ?? "docker"] : []))];
1134
1166
  if ((interrupted || engineRun.cancelled) && engines.length) {
1135
- const { removeRunContainers } = await import("./docker-DNmMPOBb.js");
1167
+ const { removeRunContainers } = await import("./docker-DC69dKxB.js");
1136
1168
  await removeRunContainers(ctx.runId, engines);
1137
1169
  }
1138
- if (notes) {
1139
- const cancelled = interrupted || engineRun.cancelled;
1140
- const written = await notes.finish(cancelled);
1141
- if (!cancelled && written.length) {
1142
- const { notesLine } = await import("./agent-D483ru7D.js");
1143
- const text = notesLine(ctx.config.root, ctx.runId, written);
1144
- renderer.onEvent({
1145
- type: "notice",
1146
- at: Date.now(),
1147
- level: "info",
1148
- text
1149
- });
1150
- }
1151
- }
1152
1170
  if (engineRun.stopped || !plan) {
1153
1171
  live?.remove();
1154
1172
  renderer.close();
@@ -1156,8 +1174,8 @@ async function runCommand(flags, configPath, filters) {
1156
1174
  }
1157
1175
  const stopped = interrupted || engineRun.cancelled;
1158
1176
  const answers = questions && !stopped ? await questions.settle() : void 0;
1159
- const { lockfiles } = await import("./state-DpAxYyED.js");
1160
- const { writeScratchRun } = await import("./results-BE2f-1XS.js");
1177
+ const { lockfiles } = await import("./state-BQR_BCm4.js");
1178
+ const { writeScratchRun } = await import("./results-Drtt0uFl.js");
1161
1179
  const run = await writeScratchRun({
1162
1180
  ctx,
1163
1181
  author: ctx.author,
@@ -1181,17 +1199,56 @@ async function runCommand(flags, configPath, filters) {
1181
1199
  ...answers?.size ? { answers } : {}
1182
1200
  }, () => live?.stop());
1183
1201
  const { record } = run;
1184
- if (notes && !stopped) {
1185
- const { summarizeRun } = await import("./agent-D483ru7D.js");
1186
- const { resolveAnalysisModel } = await import("./model-CXhrziBe.js");
1187
- const model = resolveAnalysisModel(ctx.config, "agent");
1188
- const { level, text } = await summarizeRun(ctx.config, record.runId, model);
1189
- renderer.onEvent({
1190
- type: "notice",
1191
- at: Date.now(),
1192
- level,
1193
- text
1194
- });
1202
+ const outcome = runOutcome(record);
1203
+ const code = stopped ? stopCode : outcome === "fail" ? EXIT.failed : outcome === "infra_error" ? EXIT.infra : EXIT.ok;
1204
+ let insights = run.insights;
1205
+ let insightLines = [];
1206
+ const { runInsights, wantsInsights } = await import("./run-BeMy92Us.js");
1207
+ const wanted = !stopped && wantsInsights(ctx.config, !flags["no-insights"]);
1208
+ if (wanted && interrupted) insightLines = [`insights skipped (${stopCode === EXIT.terminated ? "SIGTERM" : "Ctrl-C"}): reeval analyze ${record.runId} --insights to write them`];
1209
+ else if (wanted) {
1210
+ const { scratchDir } = await import("./files-DqCBW7i8.js");
1211
+ const stop = new AbortController();
1212
+ let stopSignal = "SIGINT";
1213
+ onInsightsSignal = (signal) => {
1214
+ if (stop.signal.aborted) {
1215
+ renderer.close();
1216
+ process.exit(code);
1217
+ }
1218
+ stopSignal = signal;
1219
+ stop.abort(/* @__PURE__ */ new Error(signal === "SIGTERM" ? "SIGTERM" : "Ctrl-C"));
1220
+ };
1221
+ try {
1222
+ const done = await runInsights({
1223
+ config: ctx.config,
1224
+ record,
1225
+ runDir: run.artifactDir ?? join(scratchDir(ctx.config.root), record.runId),
1226
+ remarks: run.insights,
1227
+ verbose: (ctx.verbosity ?? 0) > 0,
1228
+ signal: stop.signal,
1229
+ stopSignal: () => stopSignal,
1230
+ onStart: (text) => {
1231
+ renderer.onEvent({
1232
+ type: "notice",
1233
+ at: Date.now(),
1234
+ level: "info",
1235
+ text
1236
+ });
1237
+ },
1238
+ onProgress: (n, total) => {
1239
+ renderer.onEvent({
1240
+ type: "insights-progress",
1241
+ at: Date.now(),
1242
+ done: n,
1243
+ total
1244
+ });
1245
+ }
1246
+ });
1247
+ insights = done.insights ?? insights;
1248
+ insightLines = done.lines;
1249
+ } finally {
1250
+ onInsightsSignal = null;
1251
+ }
1195
1252
  }
1196
1253
  const { pruneDebug } = await import("./files-BAt0i00X.js");
1197
1254
  await pruneDebug(ctx.config.root, ctx.config.debug.keep).catch(() => {});
@@ -1202,8 +1259,9 @@ async function runCommand(flags, configPath, filters) {
1202
1259
  record,
1203
1260
  summaryPath: fromCwd(summary),
1204
1261
  results: engineRun.evals,
1205
- unhandledErrors: engineRun.unhandledErrors,
1206
- hint: !hasAnalysisModel(ctx.config)
1262
+ hint: !hasAnalysisModel(ctx.config),
1263
+ insights,
1264
+ insightLines
1207
1265
  });
1208
1266
  renderer.close();
1209
1267
  const stepSummary = process.env.GITHUB_STEP_SUMMARY;
@@ -1211,7 +1269,7 @@ async function runCommand(flags, configPath, filters) {
1211
1269
  const { config } = ctx;
1212
1270
  const mode = setup.record;
1213
1271
  if ((flags.record || mode === "always" || mode === "ci" && inCI()) && record.status !== "interrupted") {
1214
- const { record: recordCmd } = await import("./commands-CthqwkAn.js");
1272
+ const { record: recordCmd } = await import("./commands-BXzIDB3X.js");
1215
1273
  const allow = record.status === "budget" ? { "allow-incomplete": true } : {};
1216
1274
  const line = await recordCmd(config, record.runId, {
1217
1275
  ...flags,
@@ -1221,13 +1279,10 @@ async function runCommand(flags, configPath, filters) {
1221
1279
  else console.log(line);
1222
1280
  }
1223
1281
  if (setup.json) {
1224
- const { suiteResult } = await import("./suite-DamAEnNF.js");
1282
+ const { suiteResult } = await import("./suite-BaHPmAGy.js");
1225
1283
  process.stdout.write(`${JSON.stringify(suiteResult(record), null, 2)}\n`);
1226
1284
  }
1227
- if (interrupted || engineRun.cancelled) return stopCode;
1228
- if (engineRun.unhandledErrors.length > 0) return EXIT.failed;
1229
- const outcome = runOutcome(record);
1230
- return outcome === "fail" ? EXIT.failed : outcome === "infra_error" ? EXIT.infra : EXIT.ok;
1285
+ return code;
1231
1286
  }
1232
1287
  /** Everything that can fail before the evals are collected: output mode, config, profile, flags. */
1233
1288
  async function prepareRun(flags, configPath) {
@@ -1257,7 +1312,7 @@ async function prepareRun(flags, configPath) {
1257
1312
  const concurrency = await resolveConcurrency(config, flags.concurrency, async () => {
1258
1313
  const container = sandboxes.find((s) => s.kind === "docker");
1259
1314
  if (!container) return hostCapacity();
1260
- const { dockerCapacity } = await import("./src-DYO3DdnQ.js");
1315
+ const { dockerCapacity } = await import("./src-B9L9yGKI.js");
1261
1316
  return await dockerCapacity(container.engine) ?? hostCapacity();
1262
1317
  });
1263
1318
  return {
@@ -1272,6 +1327,8 @@ async function prepareRun(flags, configPath) {
1272
1327
  dryRun: !!flags["dry-run"],
1273
1328
  json: !!flags.json,
1274
1329
  force: !!flags.force,
1330
+ /** `--no-insights` turns them off for this run. */
1331
+ insights: !flags["no-insights"],
1275
1332
  verbosity: verbosityOf(flags),
1276
1333
  configFile: configLabel(path),
1277
1334
  /** Named in the plan line when the project root isn't the current directory. */
@@ -1284,11 +1341,11 @@ async function prepareRun(flags, configPath) {
1284
1341
  async function startRun({ config, profile, runs, tags, concurrency, verbosity, configFile, resume, dryRun }) {
1285
1342
  const startedAt = /* @__PURE__ */ new Date();
1286
1343
  const git = await gitInfo(config.root, [config.history.dir]);
1287
- const { worktreePatch } = await import("./state-DpAxYyED.js");
1344
+ const { worktreePatch } = await import("./state-BQR_BCm4.js");
1288
1345
  const patch = git?.dirty ? await worktreePatch(config.root, [config.history.dir]) : null;
1289
1346
  const who = await author(config.root);
1290
- const { stagingDir, sweepStaging } = await import("./results-BE2f-1XS.js");
1291
- const { scratchDir } = await import("./files-Bw8lWEjg.js");
1347
+ const { stagingDir, sweepStaging } = await import("./results-Drtt0uFl.js");
1348
+ const { scratchDir } = await import("./files-DqCBW7i8.js");
1292
1349
  const scratch = scratchDir(config.root);
1293
1350
  if (resume !== void 0) {
1294
1351
  const target = await resolveResume(config.root, resume || void 0);
@@ -1299,7 +1356,7 @@ async function startRun({ config, profile, runs, tags, concurrency, verbosity, c
1299
1356
  artifacts: target.previousArtifacts
1300
1357
  } : await loadPrevious(stagingDir(config.root, target.runId));
1301
1358
  if (!dryRun) try {
1302
- const { removeRunContainers } = await import("./docker-DNmMPOBb.js");
1359
+ const { removeRunContainers } = await import("./docker-DC69dKxB.js");
1303
1360
  await removeRunContainers(target.runId, ["docker", "podman"]);
1304
1361
  } catch {}
1305
1362
  return {
@@ -1370,8 +1427,8 @@ async function executeRun(ctx, setup, filters, renderer) {
1370
1427
  configFile,
1371
1428
  completed: []
1372
1429
  }));
1373
- const { runEngine } = await import("./node-B3ydHo6t.js");
1374
- const { buildPlan, checkAttemptBudget, planDocument, planLine, planTable } = await import("./plan-DgQxp9yy.js");
1430
+ const { runEngine } = await import("./node-D0mtjRAO.js");
1431
+ const { buildPlan, checkAttemptBudget, planDocument, planInsights, planLine, planTable } = await import("./plan-OkwUcJQ9.js");
1375
1432
  let plan;
1376
1433
  let sandboxVersions = { images: [] };
1377
1434
  let preflightStop;
@@ -1379,7 +1436,6 @@ async function executeRun(ctx, setup, filters, renderer) {
1379
1436
  let budgetTimer;
1380
1437
  let toRun = [];
1381
1438
  let live;
1382
- let notes;
1383
1439
  let questions;
1384
1440
  const onPlan = async ({ planned, excluded, matched, unmatched }) => {
1385
1441
  if (unmatched.length) throw unmatchedFilter(config, unmatched);
@@ -1398,7 +1454,7 @@ async function executeRun(ctx, setup, filters, renderer) {
1398
1454
  } : p);
1399
1455
  toRun = skipped;
1400
1456
  for (const p of skipped) for (const name of p.attempt.secretVars) registerSecret(process.env[name]);
1401
- const models = skipped.some((p) => !p.attempt.plan.skip && p.attempt.plan.questions?.length) ? await import("./model-CXhrziBe.js") : void 0;
1457
+ const models = skipped.some((p) => !p.attempt.plan.skip && p.attempt.plan.questions?.length) ? await import("./model-BGKYVpoj.js") : void 0;
1402
1458
  plan = await buildPlan({
1403
1459
  planned: skipped,
1404
1460
  profile,
@@ -1406,7 +1462,8 @@ async function executeRun(ctx, setup, filters, renderer) {
1406
1462
  concurrency,
1407
1463
  root: config.root,
1408
1464
  historyDir: config.history.dir,
1409
- questionModel: models?.questionModelLabel(config) ?? null
1465
+ questionModel: models?.questionModelLabel(config) ?? null,
1466
+ insights: await planInsights(config, setup.insights)
1410
1467
  });
1411
1468
  plan.runId = runId;
1412
1469
  if (completed.size) plan.resume = {
@@ -1414,11 +1471,12 @@ async function executeRun(ctx, setup, filters, renderer) {
1414
1471
  completed: completed.size
1415
1472
  };
1416
1473
  run.completed = [...completed];
1417
- const { imageStages, imageTargets } = await import("./images-Bi3aGxb9.js");
1474
+ const { imageStages, imageTargets } = await import("./images-BmJRuTpm.js");
1418
1475
  const targets = imageTargets(skipped.filter((p) => !p.attempt.plan.skip).map((p) => ({
1419
1476
  id: p.id,
1420
1477
  harness: p.attempt.harness,
1421
- sandbox: p.attempt.sandbox
1478
+ sandbox: p.attempt.sandbox,
1479
+ plugins: p.attempt.pluginBuilds ?? []
1422
1480
  })));
1423
1481
  if (setup.json && setup.dryRun) {
1424
1482
  const images = await Promise.all(targets.map(async (t) => ({
@@ -1435,8 +1493,8 @@ async function executeRun(ctx, setup, filters, renderer) {
1435
1493
  if (setup.dryRun) {
1436
1494
  const todos = excluded.filter((e) => e.mode === "todo").map((e) => e.id);
1437
1495
  lines.push(...planTable(plan, todos));
1438
- const { imageStatusLines } = await import("./images-Bi3aGxb9.js");
1439
- const { dockerAvailable, engineSpec } = await import("./src-DYO3DdnQ.js");
1496
+ const { imageStatusLines } = await import("./images-BmJRuTpm.js");
1497
+ const { dockerAvailable, engineSpec } = await import("./src-B9L9yGKI.js");
1440
1498
  const engines = [...new Set(targets.map((t) => t.sandbox.engine ?? "docker"))];
1441
1499
  const down = [];
1442
1500
  for (const engine of engines) if (!await dockerAvailable(engine)) down.push(engine);
@@ -1446,6 +1504,10 @@ async function executeRun(ctx, setup, filters, renderer) {
1446
1504
  lines.push(`images not checked: ${names} ${down.length === 1 ? "is" : "are"} not running`);
1447
1505
  }
1448
1506
  }
1507
+ if (setup.dryRun && plan.insights) {
1508
+ const { formatTokens } = await import("./usage-BDo2q_yu.js");
1509
+ lines.push(`insights ${plan.insights.model} · up to ${formatTokens(plan.insights.maxTokens)} tokens`);
1510
+ }
1449
1511
  lines.push(...plan.warnings.map((w) => `warning: ${w}`));
1450
1512
  lines.push(...plan.hints.map((h) => `hint: ${h}`));
1451
1513
  renderer.onEvent({
@@ -1456,8 +1518,6 @@ async function executeRun(ctx, setup, filters, renderer) {
1456
1518
  });
1457
1519
  if (setup.dryRun) return false;
1458
1520
  checkAttemptBudget(plan, setup.force, config.file);
1459
- const analysis = config.analysis.agent ? await import("./model-CXhrziBe.js") : null;
1460
- analysis?.analysisModelName(config, "agent");
1461
1521
  const questionModels = /* @__PURE__ */ new Set();
1462
1522
  const asked = [];
1463
1523
  for (const row of plan.rows) {
@@ -1487,24 +1547,8 @@ async function executeRun(ctx, setup, filters, renderer) {
1487
1547
  questionModels: [...questionModels]
1488
1548
  });
1489
1549
  if (malformed.length) throw new UsageError(`Credentials with whitespace or a line break in them: ${malformed.join(", ")}. A key copied from a wrapped terminal line picks these up; set it again as one line.`);
1490
- if (analysis) {
1491
- const { startNotes } = await import("./agent-D483ru7D.js");
1492
- notes = startNotes({
1493
- config,
1494
- model: analysis.resolveAnalysisModel(config, "agent"),
1495
- runId,
1496
- stagingDir,
1497
- planned: skipped,
1498
- warn: (text) => renderer.onEvent({
1499
- type: "notice",
1500
- at: Date.now(),
1501
- level: "warn",
1502
- text
1503
- })
1504
- });
1505
- }
1506
1550
  if (asked.length) {
1507
- const { questionRunner } = await import("./questions-C2dym2ce.js");
1551
+ const { questionRunner } = await import("./questions-1XOulevV.js");
1508
1552
  questions = questionRunner({
1509
1553
  evals: asked,
1510
1554
  stagingDir,
@@ -1521,7 +1565,7 @@ async function executeRun(ctx, setup, filters, renderer) {
1521
1565
  }
1522
1566
  });
1523
1567
  }
1524
- const { prepareWorkspaces, workspaceKey } = await import("./workspace-C_X0tdv6.js");
1568
+ const { prepareWorkspaces, workspaceKey } = await import("./workspace-B90YDU_a.js");
1525
1569
  const live = skipped.filter((p) => !p.attempt.plan.skip);
1526
1570
  const outcomes = await prepareWorkspaces(live.flatMap(({ attempt: a }) => a.workspace ? [{
1527
1571
  workspace: a.workspace,
@@ -1551,6 +1595,7 @@ async function executeRun(ctx, setup, filters, renderer) {
1551
1595
  label: `workspace ${o.label}`,
1552
1596
  sandbox: user.attempt.sandbox,
1553
1597
  harness: user.attempt.harness,
1598
+ plugins: [],
1554
1599
  setBy: o.setBy,
1555
1600
  runWide: false
1556
1601
  };
@@ -1570,6 +1615,7 @@ async function executeRun(ctx, setup, filters, renderer) {
1570
1615
  sandboxVersions = await preflight(skipped.filter((p) => !p.attempt.plan.skip).map((p) => ({
1571
1616
  harness: p.attempt.harness,
1572
1617
  sandbox: p.attempt.sandbox,
1618
+ plugins: p.attempt.pluginBuilds ?? [],
1573
1619
  setBy: p.attempt.setBy
1574
1620
  })), {
1575
1621
  root: config.root,
@@ -1635,7 +1681,6 @@ async function executeRun(ctx, setup, filters, renderer) {
1635
1681
  }
1636
1682
  if (e.type === "eval-end") {
1637
1683
  live?.end(e.result);
1638
- notes?.onResult(e.result);
1639
1684
  questions?.onEvalEnd(e.result);
1640
1685
  }
1641
1686
  if (interrupted && e.type === "eval-end" && e.result.state === "skipped") return;
@@ -1643,6 +1688,7 @@ async function executeRun(ctx, setup, filters, renderer) {
1643
1688
  },
1644
1689
  onCancellable: (cancel) => {
1645
1690
  const onSignal = (signal) => {
1691
+ if (onInsightsSignal) return onInsightsSignal(signal === "SIGTERM" ? "SIGTERM" : "SIGINT");
1646
1692
  stopCode = signal === "SIGTERM" ? EXIT.terminated : EXIT.interrupted;
1647
1693
  if (interrupted) {
1648
1694
  renderer.close();
@@ -1669,9 +1715,9 @@ async function executeRun(ctx, setup, filters, renderer) {
1669
1715
  throw error;
1670
1716
  } finally {
1671
1717
  clearTimeout(budgetTimer);
1672
- const { removePrepared } = await import("./preflight-DlQvbySb.js");
1718
+ const { removePrepared } = await import("./preflight-B6pY89bF.js");
1673
1719
  removePrepared(config.root, runId);
1674
- const { removePreparedWorkspaces } = await import("./workspace-C_X0tdv6.js");
1720
+ const { removePreparedWorkspaces } = await import("./workspace-B90YDU_a.js");
1675
1721
  removePreparedWorkspaces(config.root, runId);
1676
1722
  }
1677
1723
  if (preflightStop) throw preflightStop;
@@ -1684,7 +1730,6 @@ async function executeRun(ctx, setup, filters, renderer) {
1684
1730
  sandboxVersions,
1685
1731
  budgetReached: () => reached,
1686
1732
  live,
1687
- notes,
1688
1733
  questions
1689
1734
  };
1690
1735
  }
@@ -1754,4 +1799,4 @@ run(process.argv.slice(2)).finally(() => {
1754
1799
  //#endregion
1755
1800
  export {};
1756
1801
 
1757
- //# sourceMappingURL=cli-ClpPT8kn.js.map
1802
+ //# sourceMappingURL=cli-B5zQCR2r.js.map