reeval 0.16.1 → 0.17.1

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 (362) hide show
  1. package/README.md +9 -2
  2. package/THIRD_PARTY_NOTICES.md +14 -14
  3. package/dist/{adapter-CRKYPkRt.js → adapter-BIlJWXff.js} +9 -13
  4. package/dist/adapter-BIlJWXff.js.map +1 -0
  5. package/dist/{agent-BgH4-kFc.js → agent-CE-qdvmh.js} +49 -25
  6. package/dist/agent-CE-qdvmh.js.map +1 -0
  7. package/dist/{analysis-C2-aEbr7.js → analysis-CTBb_C0Z.js} +2 -3
  8. package/dist/{analysis-C2-aEbr7.js.map → analysis-CTBb_C0Z.js.map} +1 -1
  9. package/dist/app-files-YMmDAHA8.js +10 -0
  10. package/dist/app-files-YMmDAHA8.js.map +1 -0
  11. package/dist/{assemble-BVbI6NW-.js → assemble-7RI7Nuhz.js} +38 -23
  12. package/dist/assemble-7RI7Nuhz.js.map +1 -0
  13. package/dist/assemble-CANqwtwD.js +1 -0
  14. package/dist/{attempt-CpbZ9arV.js → attempt-CtKGvaQR.js} +4 -5
  15. package/dist/{attempt-CpbZ9arV.js.map → attempt-CtKGvaQR.js.map} +1 -1
  16. package/dist/{attempt-host-CIxjs2Be.js → attempt-host-CJM_wEA4.js} +13 -13
  17. package/dist/attempt-host-CJM_wEA4.js.map +1 -0
  18. package/dist/{budget-DBUrH4jX.js → budget-BcxLYY5L.js} +2 -3
  19. package/dist/budget-BcxLYY5L.js.map +1 -0
  20. package/dist/{capture-iQ6kYJV0.js → capture-DF8cHsJh.js} +583 -125
  21. package/dist/capture-DF8cHsJh.js.map +1 -0
  22. package/dist/capture-DMBZE9cs.js +14 -0
  23. package/dist/capture-DMBZE9cs.js.map +1 -0
  24. package/dist/capture-DagM1npp.js +1 -0
  25. package/dist/{cli-1YQU-66F.js → cli-Bm9ntSxz.js} +342 -101
  26. package/dist/cli-Bm9ntSxz.js.map +1 -0
  27. package/dist/{cli-spec-CPWT1mAG.js → cli-spec-ChkleEVm.js} +2 -3
  28. package/dist/{cli-spec-CPWT1mAG.js.map → cli-spec-ChkleEVm.js.map} +1 -1
  29. package/dist/cli.js +3 -4
  30. package/dist/{client-DMmOkbRA.js → client-CF-DOjOU.js} +6 -8
  31. package/dist/{client-DMmOkbRA.js.map → client-CF-DOjOU.js.map} +1 -1
  32. package/dist/{colors-QV9dFVhN.js → colors-DcXBvAlU.js} +21 -4
  33. package/dist/colors-DcXBvAlU.js.map +1 -0
  34. package/dist/{command-Cr1zjRvl.js → command-B7MslY_w.js} +22 -24
  35. package/dist/command-B7MslY_w.js.map +1 -0
  36. package/dist/{command-C-HeGlap.js → command-DDkz6jsD.js} +25 -29
  37. package/dist/{command-C-HeGlap.js.map → command-DDkz6jsD.js.map} +1 -1
  38. package/dist/{command-BlYCAqu-.js → command-DPF8hnWS.js} +17 -21
  39. package/dist/command-DPF8hnWS.js.map +1 -0
  40. package/dist/{command-8_Cg5v6b.js → command-Dk6wggV-.js} +22 -27
  41. package/dist/command-Dk6wggV-.js.map +1 -0
  42. package/dist/{commands-BvTNZ2-b.js → commands-DHT-nhEJ.js} +60 -23
  43. package/dist/commands-DHT-nhEJ.js.map +1 -0
  44. package/dist/{commands-Bj9NbmsO.js → commands-DQBayPCV.js} +1 -1
  45. package/dist/{config-CneBZB84.js → config-BLL5JqeX.js} +118 -81
  46. package/dist/config-BLL5JqeX.js.map +1 -0
  47. package/dist/{context-Dgn48BqT.js → context-I6nq3uS7.js} +2 -3
  48. package/dist/{context-Dgn48BqT.js.map → context-I6nq3uS7.js.map} +1 -1
  49. package/dist/{contrasts-lhFsekco.js → contrasts-CjOU_pfD.js} +4 -5
  50. package/dist/{contrasts-lhFsekco.js.map → contrasts-CjOU_pfD.js.map} +1 -1
  51. package/dist/{core-tLN-z1Be.js → core-CxY40JAs.js} +2 -3
  52. package/dist/{core-tLN-z1Be.js.map → core-CxY40JAs.js.map} +1 -1
  53. package/dist/cost-CMzY9VXv.js +1 -0
  54. package/dist/{cost-ChPa8-Fp.js → cost-e4IppZpJ.js} +5 -6
  55. package/dist/{cost-ChPa8-Fp.js.map → cost-e4IppZpJ.js.map} +1 -1
  56. package/dist/cursor-catalog-BeBJTk6A.js +142 -0
  57. package/dist/cursor-catalog-BeBJTk6A.js.map +1 -0
  58. package/dist/{db-Cnh3jIv_.js → db-DPiWC7Br.js} +22 -24
  59. package/dist/db-DPiWC7Br.js.map +1 -0
  60. package/dist/db-DysoTexX.js +2 -0
  61. package/dist/{debug-CgG3T071.js → debug-B5jDImcW.js} +5 -6
  62. package/dist/{debug-CgG3T071.js.map → debug-B5jDImcW.js.map} +1 -1
  63. package/dist/debug-BnXV7JbX.js +1 -0
  64. package/dist/default-effort-B7c4V9Qd.js +1 -0
  65. package/dist/default-effort-ciIXMA7h.js +94 -0
  66. package/dist/default-effort-ciIXMA7h.js.map +1 -0
  67. package/dist/{dist-CYrBwyHA.js → dist-CGwueB0T.js} +3 -4
  68. package/dist/{dist-CYrBwyHA.js.map → dist-CGwueB0T.js.map} +1 -1
  69. package/dist/{docker-Cqq03H72.js → docker-BUZOxh62.js} +20 -11
  70. package/dist/docker-BUZOxh62.js.map +1 -0
  71. package/dist/{docker-BihzJwbV.js → docker-Bcrc39Z8.js} +5 -6
  72. package/dist/{docker-BihzJwbV.js.map → docker-Bcrc39Z8.js.map} +1 -1
  73. package/dist/{docker-DCAtFMo9.js → docker-D83s_ADn.js} +1 -1
  74. package/dist/{doctor-Dl4vMeqt.js → doctor-CIhEAzbw.js} +26 -27
  75. package/dist/{doctor-Dl4vMeqt.js.map → doctor-CIhEAzbw.js.map} +1 -1
  76. package/dist/{env-CARj5Axq.js → env-T86lAqUD.js} +3 -4
  77. package/dist/{env-CARj5Axq.js.map → env-T86lAqUD.js.map} +1 -1
  78. package/dist/{environment-Cf5HMjib.js → environment-Ccytlpgf.js} +10 -13
  79. package/dist/environment-Ccytlpgf.js.map +1 -0
  80. package/dist/{errors-CHebohjc.js → errors-BQV__TzH.js} +9 -5
  81. package/dist/errors-BQV__TzH.js.map +1 -0
  82. package/dist/{errors-B6BSMs03.js → errors-ttMTnIYX.js} +2 -3
  83. package/dist/{errors-B6BSMs03.js.map → errors-ttMTnIYX.js.map} +1 -1
  84. package/dist/{eval-source-CAE4y2Sr.js → eval-source-D4xqc0iO.js} +8 -9
  85. package/dist/{eval-source-CAE4y2Sr.js.map → eval-source-D4xqc0iO.js.map} +1 -1
  86. package/dist/{evaluate-D35T51AC.d.ts → evaluate-BEGAQQuo.d.ts} +2 -4
  87. package/dist/{evaluate-CUtgyr43.js → evaluate-DNzyRQFe.js} +118 -89
  88. package/dist/evaluate-DNzyRQFe.js.map +1 -0
  89. package/dist/{files-CNiJ_fZf.js → files-3ZqUBbwg.js} +6 -7
  90. package/dist/{files-CNiJ_fZf.js.map → files-3ZqUBbwg.js.map} +1 -1
  91. package/dist/{files-BSqA2sZE.js → files-B2U5RezT.js} +7 -8
  92. package/dist/{files-BSqA2sZE.js.map → files-B2U5RezT.js.map} +1 -1
  93. package/dist/{files-Bk1mC3AN.js → files-BGlHnC46.js} +3 -4
  94. package/dist/{files-Bk1mC3AN.js.map → files-BGlHnC46.js.map} +1 -1
  95. package/dist/files-Bw2NQecs.js +1 -0
  96. package/dist/files-COW5JBJM.js +1 -0
  97. package/dist/files-Cp1jp0Nq.js +1 -0
  98. package/dist/{files-BRViE7m-.js → files-D_CBK9Zo.js} +17 -18
  99. package/dist/files-D_CBK9Zo.js.map +1 -0
  100. package/dist/{files-D1y8Pg4Z.js → files-p-uTdOjA.js} +4 -5
  101. package/dist/{files-D1y8Pg4Z.js.map → files-p-uTdOjA.js.map} +1 -1
  102. package/dist/{gate-BC6SdQZs.js → gate-BoDKeuJu.js} +4 -6
  103. package/dist/{gate-BC6SdQZs.js.map → gate-BoDKeuJu.js.map} +1 -1
  104. package/dist/gateway.d.ts +1 -3
  105. package/dist/gateway.js +1 -2
  106. package/dist/{git-UNxT_3z0.js → git-s-qf-vww.js} +4 -5
  107. package/dist/{git-UNxT_3z0.js.map → git-s-qf-vww.js.map} +1 -1
  108. package/dist/{harness-3NVyTSGK.js → harness-Ch2P81sx.js} +49 -16
  109. package/dist/harness-Ch2P81sx.js.map +1 -0
  110. package/dist/harness.d.ts +1 -3
  111. package/dist/harness.js +1 -1
  112. package/dist/{ids-Bp6ut7ZD.js → ids-DuK6xl4w.js} +2 -3
  113. package/dist/{ids-Bp6ut7ZD.js.map → ids-DuK6xl4w.js.map} +1 -1
  114. package/dist/{images-8A_LzVfw.js → images-h1VBM7TP.js} +9 -10
  115. package/dist/{images-8A_LzVfw.js.map → images-h1VBM7TP.js.map} +1 -1
  116. package/dist/index.d.ts +11 -13
  117. package/dist/index.js +5 -5
  118. package/dist/init-DJ3WFUt8.js +1 -0
  119. package/dist/{init-sFBgODhu.js → init-Z1cRnE3E.js} +8 -9
  120. package/dist/{init-sFBgODhu.js.map → init-Z1cRnE3E.js.map} +1 -1
  121. package/dist/{invocations-C9ejlOYl.js → invocations-z6hUD15n.js} +6 -8
  122. package/dist/{invocations-C9ejlOYl.js.map → invocations-z6hUD15n.js.map} +1 -1
  123. package/dist/{judge-Bg4v4e_K.js → judge-ByEUlzOM.js} +10 -15
  124. package/dist/judge-ByEUlzOM.js.map +1 -0
  125. package/dist/judge.d.ts +1 -5
  126. package/dist/judge.js +2 -3
  127. package/dist/{live-DeMvnDD5.js → live-D22qY6S_.js} +4 -5
  128. package/dist/{live-DeMvnDD5.js.map → live-D22qY6S_.js.map} +1 -1
  129. package/dist/live-DUpitP_9.js +1 -0
  130. package/dist/live-DpfJfc33.js +120 -0
  131. package/dist/live-DpfJfc33.js.map +1 -0
  132. package/dist/{matchers-BKPuaXlj.js → matchers-B4ZtlJyP.js} +33 -5
  133. package/dist/matchers-B4ZtlJyP.js.map +1 -0
  134. package/dist/{model-2rBZrdZA.js → model-BL_10Neu.js} +8 -10
  135. package/dist/model-BL_10Neu.js.map +1 -0
  136. package/dist/{model-Bz7-j71_.js → model-Bn7ndUQZ.js} +11 -15
  137. package/dist/model-Bn7ndUQZ.js.map +1 -0
  138. package/dist/{model-3MJtpho8.js → model-CFSjV-HJ.js} +6 -7
  139. package/dist/{model-3MJtpho8.js.map → model-CFSjV-HJ.js.map} +1 -1
  140. package/dist/model-CR3-qY-z.js +1 -0
  141. package/dist/{model-DkPwypN4.js → model-D1TBKeZj.js} +1 -1
  142. package/dist/{node-fP-H2uxn.js → node-CwP1G178.js} +11 -13
  143. package/dist/node-CwP1G178.js.map +1 -0
  144. package/dist/{object-BkXGPKWY.js → object-CeQ8dgUC.js} +2 -3
  145. package/dist/{object-BkXGPKWY.js.map → object-CeQ8dgUC.js.map} +1 -1
  146. package/dist/{opencode-providers-Bz0l7OZI.js → opencode-providers-yNKyXD49.js} +80 -20
  147. package/dist/opencode-providers-yNKyXD49.js.map +1 -0
  148. package/dist/{openrouter-models-Bo8PZ4Ew.js → openrouter-models-C8nzPKG2.js} +3 -4
  149. package/dist/{openrouter-models-Bo8PZ4Ew.js.map → openrouter-models-C8nzPKG2.js.map} +1 -1
  150. package/dist/{patch-CquGAGX5.js → patch-C7yBztZj.js} +2 -3
  151. package/dist/{patch-CquGAGX5.js.map → patch-C7yBztZj.js.map} +1 -1
  152. package/dist/{patch-6T9XAipm.js → patch-LFunkZ-L.js} +5 -6
  153. package/dist/{patch-6T9XAipm.js.map → patch-LFunkZ-L.js.map} +1 -1
  154. package/dist/{paths-BmR-7tx3.js → paths-Dwmi7L4X.js} +2 -3
  155. package/dist/{paths-BmR-7tx3.js.map → paths-Dwmi7L4X.js.map} +1 -1
  156. package/dist/{plan-Dw2BjafJ.js → plan-BrfiMcHh.js} +66 -12
  157. package/dist/plan-BrfiMcHh.js.map +1 -0
  158. package/dist/{plugins-ngQEJBjJ.js → plugins-CW-sQMg3.js} +8 -10
  159. package/dist/plugins-CW-sQMg3.js.map +1 -0
  160. package/dist/{preflight-CDRpog9o.js → preflight-BnFpd3Kv.js} +4 -5
  161. package/dist/{preflight-CDRpog9o.js.map → preflight-BnFpd3Kv.js.map} +1 -1
  162. package/dist/{preflight-BYXkweNN.js → preflight-CH-7KyhS.js} +1 -1
  163. package/dist/{prepare-PkARUGoF.js → prepare-0cA77eFD.js} +10 -11
  164. package/dist/{prepare-PkARUGoF.js.map → prepare-0cA77eFD.js.map} +1 -1
  165. package/dist/{prepare-B3btUlT6.js → prepare-CRyEwb5q.js} +2 -2
  166. package/dist/{prices-QaS-kjSQ.js → prices-C4BRuSe8.js} +5 -6
  167. package/dist/{prices-QaS-kjSQ.js.map → prices-C4BRuSe8.js.map} +1 -1
  168. package/dist/{provenance-7Hzg88f4.js → provenance-CKIG_1LB.js} +6 -7
  169. package/dist/{provenance-7Hzg88f4.js.map → provenance-CKIG_1LB.js.map} +1 -1
  170. package/dist/provider-DCdTHQpk.js +1 -0
  171. package/dist/{provider-CmAYTQQs.js → provider-DZd8t_XW.js} +3 -4
  172. package/dist/{provider-CmAYTQQs.js.map → provider-DZd8t_XW.js.map} +1 -1
  173. package/dist/{providers-DDNMbv1T.js → providers-CCl8ElNW.js} +1 -1
  174. package/dist/{providers-PKoJtGK0.js → providers-Dt6BEN_1.js} +8 -9
  175. package/dist/{providers-PKoJtGK0.js.map → providers-Dt6BEN_1.js.map} +1 -1
  176. package/dist/{query-nBXrgEwl.js → query-BV-zcw2t.js} +5 -6
  177. package/dist/{query-nBXrgEwl.js.map → query-BV-zcw2t.js.map} +1 -1
  178. package/dist/query-DSSMxkmw.js +1 -0
  179. package/dist/{questions-CkAwePPR.js → questions-AyLUMHYX.js} +14 -13
  180. package/dist/{questions-CkAwePPR.js.map → questions-AyLUMHYX.js.map} +1 -1
  181. package/dist/{record-DZBCjuwm.js → record-J45gJise.js} +13 -6
  182. package/dist/record-J45gJise.js.map +1 -0
  183. package/dist/{redact-DVIaahLv.js → redact-BEEGc37e.js} +8 -7
  184. package/dist/{redact-DVIaahLv.js.map → redact-BEEGc37e.js.map} +1 -1
  185. package/dist/{remarks-eBcrIZRu.js → remarks-0EXMh6AD.js} +2 -3
  186. package/dist/{remarks-eBcrIZRu.js.map → remarks-0EXMh6AD.js.map} +1 -1
  187. package/dist/remarks-BL18Id09.js +1 -0
  188. package/dist/{remarks-IFFe_oty.js → remarks-CgO1nIoG.js} +4 -6
  189. package/dist/{remarks-IFFe_oty.js.map → remarks-CgO1nIoG.js.map} +1 -1
  190. package/dist/{remarks-Bt0zwiQB.js → remarks-UIZTSIhd.js} +16 -17
  191. package/dist/remarks-UIZTSIhd.js.map +1 -0
  192. package/dist/{remote-DfJYiP-R.js → remote-BA9-hhgB.js} +10 -13
  193. package/dist/remote-BA9-hhgB.js.map +1 -0
  194. package/dist/resolve-C56s8_EF.js +1 -0
  195. package/dist/{resolve-D_cLa4tW.js → resolve-FHjE-dN3.js} +11 -12
  196. package/dist/{resolve-D_cLa4tW.js.map → resolve-FHjE-dN3.js.map} +1 -1
  197. package/dist/{results-DrKJuIQF.js → results-CFE6Nwb0.js} +8 -9
  198. package/dist/{results-DrKJuIQF.js.map → results-CFE6Nwb0.js.map} +1 -1
  199. package/dist/{resume-BmIM52MJ.js → resume-iaTxWRew.js} +8 -10
  200. package/dist/resume-iaTxWRew.js.map +1 -0
  201. package/dist/{root-Dlff-zp8.js → root-Co0jhOT5.js} +2 -3
  202. package/dist/{root-Dlff-zp8.js.map → root-Co0jhOT5.js.map} +1 -1
  203. package/dist/{runtime-CZVpkr04.js → runtime-SEkGS1Rx.js} +8 -10
  204. package/dist/{runtime-CZVpkr04.js.map → runtime-SEkGS1Rx.js.map} +1 -1
  205. package/dist/{sandbox-Cmi6IQML.js → sandbox-CAsXlGro.js} +4 -5
  206. package/dist/{sandbox-Cmi6IQML.js.map → sandbox-CAsXlGro.js.map} +1 -1
  207. package/dist/sandbox.d.ts +1 -5
  208. package/dist/sandbox.js +1 -1
  209. package/dist/server-BYfqpMD0.js +1 -0
  210. package/dist/{server-DS8BGhGU.js → server-C9_kV1IP.js} +17 -126
  211. package/dist/server-C9_kV1IP.js.map +1 -0
  212. package/dist/{shared-B_lvGqWz.js → shared-ogqPJ0uo.js} +4 -6
  213. package/dist/shared-ogqPJ0uo.js.map +1 -0
  214. package/dist/{source-DcXv4de-.js → source-BszY6yAC.js} +3 -4
  215. package/dist/{source-DcXv4de-.js.map → source-BszY6yAC.js.map} +1 -1
  216. package/dist/source-C4Q5psjD.js +1 -0
  217. package/dist/{src-BO8AYqJ5.js → src-8fy4nSWU.js} +67 -13
  218. package/dist/src-8fy4nSWU.js.map +1 -0
  219. package/dist/{src-DSZyg0Uq.js → src-B-L8O1Ld.js} +38 -9
  220. package/dist/src-B-L8O1Ld.js.map +1 -0
  221. package/dist/src-BBmCEE-M.js +3 -0
  222. package/dist/{src-1lpTocbd.js → src-BWcgyARO.js} +32 -45
  223. package/dist/src-BWcgyARO.js.map +1 -0
  224. package/dist/src-BYpY_vXK.js +2 -0
  225. package/dist/{src-A8HLtO0a.js → src-B_igzM1O.js} +3 -5
  226. package/dist/src-B_igzM1O.js.map +1 -0
  227. package/dist/{src-gn7YlnRg.js → src-CWrKJO92.js} +4 -7
  228. package/dist/src-CWrKJO92.js.map +1 -0
  229. package/dist/src-CZANB4pb.js +1 -0
  230. package/dist/src-CnrLy_r_.js +2 -0
  231. package/dist/{src-8yTF251P.js → src-DMiwtprP.js} +65 -15
  232. package/dist/src-DMiwtprP.js.map +1 -0
  233. package/dist/src-DVGVWOAB.js +2 -0
  234. package/dist/{src-C0ySiej5.js → src-DaYQ1O9Y.js} +94 -68
  235. package/dist/src-DaYQ1O9Y.js.map +1 -0
  236. package/dist/src-DoxUxkU3.js +2 -0
  237. package/dist/src-DqIQQTu1.js +2 -0
  238. package/dist/{src-BkiComGh.js → src-Dt6BWDcJ.js} +2 -2
  239. package/dist/{src-BYLM3hEz.js → src-HTG2SoNz.js} +89 -38
  240. package/dist/src-HTG2SoNz.js.map +1 -0
  241. package/dist/{src-BYDOXw_Y.js → src-uluei5nU.js} +40 -17
  242. package/dist/src-uluei5nU.js.map +1 -0
  243. package/dist/{src-Cp-2Hdib.js → src-umdk2alV.js} +2 -2
  244. package/dist/{state-C_kdhp5v.js → state-DfcikRK3.js} +26 -35
  245. package/dist/state-DfcikRK3.js.map +1 -0
  246. package/dist/state-haxTOljN.js +1 -0
  247. package/dist/{stats-hfpuYsAM.js → stats-D-Gqwqt0.js} +2 -3
  248. package/dist/{stats-hfpuYsAM.js.map → stats-D-Gqwqt0.js.map} +1 -1
  249. package/dist/{suite-DieLXvCT.js → suite-BVcBo_ua.js} +12 -8
  250. package/dist/suite-BVcBo_ua.js.map +1 -0
  251. package/dist/suite-CmeXyn66.js +2 -0
  252. package/dist/{summary-CSzyBVsF.js → summary-BmooCwQv.js} +29 -15
  253. package/dist/{summary-CSzyBVsF.js.map → summary-BmooCwQv.js.map} +1 -1
  254. package/dist/{tarball-CHcahyNK.js → tarball-CESxtK4X.js} +2 -3
  255. package/dist/{tarball-CHcahyNK.js.map → tarball-CESxtK4X.js.map} +1 -1
  256. package/dist/testing.d.ts +49 -11
  257. package/dist/testing.js +5 -6
  258. package/dist/{text-DTigcA64.js → text-D--Q5KsA.js} +2 -3
  259. package/dist/{text-DTigcA64.js.map → text-D--Q5KsA.js.map} +1 -1
  260. package/dist/{tool-target-CKWkd6QI.js → tool-target-DS5d72eH.js} +3 -4
  261. package/dist/{tool-target-CKWkd6QI.js.map → tool-target-DS5d72eH.js.map} +1 -1
  262. package/dist/{transcript-BJrKfgRW.js → transcript-C_IpYMRk.js} +8 -8
  263. package/dist/transcript-C_IpYMRk.js.map +1 -0
  264. package/dist/{types-DVvW66ci.d.ts → types-BlM-aN9_.d.ts} +168 -33
  265. package/dist/{types-C5vI3g1C.js → types-C4OkYhZg.js} +2 -3
  266. package/dist/types-C4OkYhZg.js.map +1 -0
  267. package/dist/{usage-BNY1ABrU.js → usage-DJiDnh2D.js} +2 -3
  268. package/dist/{usage-BNY1ABrU.js.map → usage-DJiDnh2D.js.map} +1 -1
  269. package/dist/{vertex-DypYjx71.js → vertex-6uSpZ5L8.js} +8 -8
  270. package/dist/vertex-6uSpZ5L8.js.map +1 -0
  271. package/dist/vertex-BaAz44YN.js +1 -0
  272. package/dist/view/index.d.ts +21 -32
  273. package/dist/view/index.js +12 -11
  274. package/dist/views-CBAsDkCB.js +2 -0
  275. package/dist/{views-B9STsLB4.js → views-DPng-2-z.js} +7 -8
  276. package/dist/{views-B9STsLB4.js.map → views-DPng-2-z.js.map} +1 -1
  277. package/dist/{worker-entry-C5bLCv6s.js → worker-entry-lt5otEb5.js} +12 -17
  278. package/dist/worker-entry-lt5otEb5.js.map +1 -0
  279. package/dist/{workspace-CBuI9Uds.js → workspace-1O8x4oDc.js} +8 -9
  280. package/dist/{workspace-CBuI9Uds.js.map → workspace-1O8x4oDc.js.map} +1 -1
  281. package/dist/workspace-It7dvpbg.js +1 -0
  282. package/package.json +1 -1
  283. package/skills/eval-rubric/SKILL.md +1 -1
  284. package/dist/adapter-CRKYPkRt.js.map +0 -1
  285. package/dist/agent-BgH4-kFc.js.map +0 -1
  286. package/dist/app-files-BMVBr079.js +0 -11
  287. package/dist/app-files-BMVBr079.js.map +0 -1
  288. package/dist/assemble-BVbI6NW-.js.map +0 -1
  289. package/dist/assemble-SiHa4__F.js +0 -1
  290. package/dist/attempt-host-CIxjs2Be.js.map +0 -1
  291. package/dist/budget-DBUrH4jX.js.map +0 -1
  292. package/dist/capture-iQ6kYJV0.js.map +0 -1
  293. package/dist/capture-px7Ey95_.js +0 -1
  294. package/dist/cli-1YQU-66F.js.map +0 -1
  295. package/dist/colors-QV9dFVhN.js.map +0 -1
  296. package/dist/command-8_Cg5v6b.js.map +0 -1
  297. package/dist/command-BlYCAqu-.js.map +0 -1
  298. package/dist/command-Cr1zjRvl.js.map +0 -1
  299. package/dist/commands-BvTNZ2-b.js.map +0 -1
  300. package/dist/config-CneBZB84.js.map +0 -1
  301. package/dist/cost-C5RBTTJr.js +0 -1
  302. package/dist/db-BnXyamuj.js +0 -2
  303. package/dist/db-Cnh3jIv_.js.map +0 -1
  304. package/dist/debug-CAx3qcaP.js +0 -1
  305. package/dist/docker-Cqq03H72.js.map +0 -1
  306. package/dist/environment-Cf5HMjib.js.map +0 -1
  307. package/dist/errors-CHebohjc.js.map +0 -1
  308. package/dist/evaluate-CUtgyr43.js.map +0 -1
  309. package/dist/files-BEnUJW1e.js +0 -1
  310. package/dist/files-BRViE7m-.js.map +0 -1
  311. package/dist/files-C3tQtD26.js +0 -1
  312. package/dist/files-Dts7EY3H.js +0 -1
  313. package/dist/harness-3NVyTSGK.js.map +0 -1
  314. package/dist/init-okoALIah.js +0 -1
  315. package/dist/judge-Bg4v4e_K.js.map +0 -1
  316. package/dist/matchers-BKPuaXlj.js.map +0 -1
  317. package/dist/model-2rBZrdZA.js.map +0 -1
  318. package/dist/model-Bz7-j71_.js.map +0 -1
  319. package/dist/model-bREXVXwT.js +0 -1
  320. package/dist/node-fP-H2uxn.js.map +0 -1
  321. package/dist/opencode-providers-Bz0l7OZI.js.map +0 -1
  322. package/dist/plan-Dw2BjafJ.js.map +0 -1
  323. package/dist/plugins-ngQEJBjJ.js.map +0 -1
  324. package/dist/provider-DehR4CMN.js +0 -1
  325. package/dist/query-Bt6vLJ3m.js +0 -1
  326. package/dist/record-DZBCjuwm.js.map +0 -1
  327. package/dist/remarks-Bp6AwPgb.js +0 -1
  328. package/dist/remarks-Bt0zwiQB.js.map +0 -1
  329. package/dist/remote-DfJYiP-R.js.map +0 -1
  330. package/dist/resolve-CT4XZIfV.js +0 -1
  331. package/dist/resume-BmIM52MJ.js.map +0 -1
  332. package/dist/server-CKJOnIB0.js +0 -1
  333. package/dist/server-DS8BGhGU.js.map +0 -1
  334. package/dist/shared-B_lvGqWz.js.map +0 -1
  335. package/dist/source-CgUqpumI.js +0 -1
  336. package/dist/src-1lpTocbd.js.map +0 -1
  337. package/dist/src-8yTF251P.js.map +0 -1
  338. package/dist/src-A8HLtO0a.js.map +0 -1
  339. package/dist/src-BO8AYqJ5.js.map +0 -1
  340. package/dist/src-BTqJbvj6.js +0 -2
  341. package/dist/src-BYDOXw_Y.js.map +0 -1
  342. package/dist/src-BYLM3hEz.js.map +0 -1
  343. package/dist/src-BvgeZ4tS.js +0 -2
  344. package/dist/src-C0ySiej5.js.map +0 -1
  345. package/dist/src-CgJrz5p0.js +0 -3
  346. package/dist/src-DMo2eCOJ.js +0 -2
  347. package/dist/src-DSZyg0Uq.js.map +0 -1
  348. package/dist/src-Dk2Na0b-.js +0 -2
  349. package/dist/src-OESRtvOi.js +0 -2
  350. package/dist/src-gn7YlnRg.js.map +0 -1
  351. package/dist/src-h5uDlk3m.js +0 -1
  352. package/dist/state-C97udoh3.js +0 -1
  353. package/dist/state-C_kdhp5v.js.map +0 -1
  354. package/dist/suite-ByT1lsdD.js +0 -2
  355. package/dist/suite-DieLXvCT.js.map +0 -1
  356. package/dist/transcript-BJrKfgRW.js.map +0 -1
  357. package/dist/types-C5vI3g1C.js.map +0 -1
  358. package/dist/vertex-Bv7vhMgs.js +0 -1
  359. package/dist/vertex-DypYjx71.js.map +0 -1
  360. package/dist/views-Ca-rTixp.js +0 -2
  361. package/dist/worker-entry-C5bLCv6s.js.map +0 -1
  362. package/dist/workspace-8uHtBSve.js +0 -1
@@ -1,4 +1,4 @@
1
- import { u as ownFileURL } from "./root-Dlff-zp8.js";
1
+ import { u as ownFileURL } from "./root-Co0jhOT5.js";
2
2
  import { existsSync, lstatSync, readFileSync, readdirSync, readlinkSync, renameSync, writeFileSync } from "node:fs";
3
3
  import { tmpdir } from "node:os";
4
4
  import { basename, dirname, join, posix, relative, win32 } from "node:path";
@@ -16,7 +16,7 @@ import https from "node:https";
16
16
  import tls from "node:tls";
17
17
  import zlib from "node:zlib";
18
18
  import { lookup } from "node:dns/promises";
19
- //#region ../sandbox-docker/src/engine.ts
19
+ // ../sandbox-docker/src/engine.ts
20
20
  /**
21
21
  * Docker's default seccomp profile, copied unmodified from moby/profiles (Apache-2.0),
22
22
  * seccomp/default.json at 6fe7deb1b9fb7c0397a4593480d7d22b9ee8caef. Podman gets it on every
@@ -158,8 +158,7 @@ function engineEnv(engine = "docker") {
158
158
  }
159
159
  /** Docker's ids are `sha256:…`; Podman's are the bare hex. */
160
160
  const normalizeImageId = (id) => id.includes(":") ? id : `sha256:${id}`;
161
- //#endregion
162
- //#region ../sandbox-docker/src/build-failure.ts
161
+ // ../sandbox-docker/src/build-failure.ts
163
162
  var ImageBuildError = class extends Error {
164
163
  name = "ImageBuildError";
165
164
  failure;
@@ -253,8 +252,7 @@ function failureMessage(parts) {
253
252
  function outputTail(text, max = 8) {
254
253
  return stripAnsi(text).split(/\r?\n/).map((l) => l.trimEnd()).filter((l) => l.trim()).slice(-max);
255
254
  }
256
- //#endregion
257
- //#region ../sandbox-docker/src/process.ts
255
+ // ../sandbox-docker/src/process.ts
258
256
  const CMD_META = /([()\][%!^"`<>&|;, *?])/g;
259
257
  const cmdEscape = (arg, twice) => {
260
258
  const quoted = `"${arg.replace(/(\\*)"/g, "$1$1\\\"").replace(/(\\*)$/, "$1$1")}"`.replace(CMD_META, "^$1");
@@ -366,8 +364,7 @@ function run(cmd, args, options = {}) {
366
364
  child.stdin.end(options.input ?? "");
367
365
  });
368
366
  }
369
- //#endregion
370
- //#region ../sandbox-docker/src/trace.ts
367
+ // ../sandbox-docker/src/trace.ts
371
368
  /** Most of each stream a trace keeps; the rest is counted. */
372
369
  const MAX_STREAM = 4096;
373
370
  /** Most of each argument a trace keeps, e.g. the gateway's forwarder script. */
@@ -436,8 +433,7 @@ function traceDocker(args, startedAt, result, bin = "docker") {
436
433
  });
437
434
  } catch {}
438
435
  }
439
- //#endregion
440
- //#region ../sandbox-docker/src/docker-cli.ts
436
+ // ../sandbox-docker/src/docker-cli.ts
441
437
  /** How long to wait before each retry of a command that never reached Podman. */
442
438
  const CONNECTION_RETRY_MS = [
443
439
  100,
@@ -702,8 +698,7 @@ async function imageInfo(image, engine) {
702
698
  repoDigests
703
699
  };
704
700
  }
705
- //#endregion
706
- //#region ../sandbox-docker/src/dockerignore.ts
701
+ // ../sandbox-docker/src/dockerignore.ts
707
702
  const ignore = dockerignore.default;
708
703
  /**
709
704
  * A pattern `@balena/dockerignore` may match differently from BuildKit: escapes, character
@@ -794,8 +789,7 @@ function contextFiles(context, dockerfile) {
794
789
  walk("");
795
790
  return files.sort();
796
791
  }
797
- //#endregion
798
- //#region ../sandbox-docker/src/image.ts
792
+ // ../sandbox-docker/src/image.ts
799
793
  /**
800
794
  * The harness adapters an image can bake. Each pin must match the exact dependency (or
801
795
  * `workspace:<version>` for this repo's own adapters); a test enforces it. `patch` is the first 8
@@ -805,7 +799,7 @@ function contextFiles(context, dockerfile) {
805
799
  const HARNESS_PACKAGES = {
806
800
  cursor: {
807
801
  name: "@reeval/harness-cursor-sdk",
808
- version: "0.1.6"
802
+ version: "0.1.7"
809
803
  },
810
804
  "claude-code": {
811
805
  name: "@ai-sdk/harness-claude-code",
@@ -818,11 +812,11 @@ const HARNESS_PACKAGES = {
818
812
  },
819
813
  opencode: {
820
814
  name: "@reeval/harness-opencode",
821
- version: "0.2.10"
815
+ version: "0.2.11"
822
816
  },
823
817
  goose: {
824
818
  name: "@reeval/harness-goose",
825
- version: "0.1.6"
819
+ version: "0.1.8"
826
820
  },
827
821
  pi: {
828
822
  name: "@reeval/harness-pi",
@@ -885,8 +879,7 @@ const WORKSPACE_DIR = "workspace";
885
879
  */
886
880
  const SANDBOX_STATE = "/var/lib/reeval";
887
881
  const BRIDGE_PORT = 43210;
888
- //#endregion
889
- //#region ../sandbox-docker/src/egress/cert.ts
882
+ // ../sandbox-docker/src/egress/cert.ts
890
883
  const der = (tag, ...content) => {
891
884
  const body = Buffer.concat(content);
892
885
  const n = body.length;
@@ -1017,8 +1010,7 @@ function ipv6Bytes(address) {
1017
1010
  return [v >> 8, v & 255];
1018
1011
  });
1019
1012
  }
1020
- //#endregion
1021
- //#region ../sandbox-docker/src/egress/mux.ts
1013
+ // ../sandbox-docker/src/egress/mux.ts
1022
1014
  /**
1023
1015
  * Many TCP streams over one byte pipe (a `docker exec` stdio), with per-stream credit so a slow
1024
1016
  * reader only stalls its own stream. Frames are `type u8, id u32, length u32, payload`, and a
@@ -1271,8 +1263,7 @@ function forwarderMain(io, makeMux, linkStreams, proxyPort) {
1271
1263
  }
1272
1264
  /** The `node -e` script that runs {@link forwarderMain} in the container. */
1273
1265
  const forwarderScript = (proxyPort) => `(${forwarderMain.toString()})({ net: require('node:net'), Duplex: require('node:stream').Duplex, input: process.stdin, output: process.stdout, error: (m) => process.stderr.write(m + '\\n'), exit: (c) => process.exit(c) }, ${createMux.toString()}, ${link.toString()}, ${proxyPort})`;
1274
- //#endregion
1275
- //#region ../sandbox-docker/src/egress/effort.ts
1266
+ // ../sandbox-docker/src/egress/effort.ts
1276
1267
  /** The paths read, in order; `*` is any key of an object (a gateway's provider name). */
1277
1268
  const PATHS = [
1278
1269
  "generationConfig.thinkingConfig.thinkingLevel",
@@ -1321,8 +1312,7 @@ function requestedEffort(body) {
1321
1312
  for (const path of PATHS) walk(parsed, path.split("."), [], found);
1322
1313
  return found.length ? found.map((f) => `${f.path}=${f.value}`).join(" ") : void 0;
1323
1314
  }
1324
- //#endregion
1325
- //#region ../sandbox-docker/src/egress/policy.ts
1315
+ // ../sandbox-docker/src/egress/policy.ts
1326
1316
  /** The Docker sandbox enforces every policy through its egress gateway, and records what passes. */
1327
1317
  const DOCKER_EGRESS = {
1328
1318
  enforce: "allowlist",
@@ -1471,6 +1461,7 @@ function createPolicyCheck(policy, options = {}) {
1471
1461
  return {
1472
1462
  allowed: false,
1473
1463
  status: 502,
1464
+ unresolved: true,
1474
1465
  reason: `can't resolve ${host}: ${error.message}`
1475
1466
  };
1476
1467
  }
@@ -1478,6 +1469,7 @@ function createPolicyCheck(policy, options = {}) {
1478
1469
  if (!first) return {
1479
1470
  allowed: false,
1480
1471
  status: 502,
1472
+ unresolved: true,
1481
1473
  reason: `${host} has no addresses`
1482
1474
  };
1483
1475
  const reached = addresses.flatMap(reaches);
@@ -1524,8 +1516,7 @@ function createPolicyCheck(policy, options = {}) {
1524
1516
  };
1525
1517
  };
1526
1518
  }
1527
- //#endregion
1528
- //#region ../sandbox-docker/src/egress/rules.ts
1519
+ // ../sandbox-docker/src/egress/rules.ts
1529
1520
  const normalizeHost = (host) => host.toLowerCase().replace(/\.$/, "");
1530
1521
  function matchPart(matcher, value, ignoreCase = false) {
1531
1522
  const v = ignoreCase ? value.toLowerCase() : value;
@@ -1542,7 +1533,8 @@ function matches(rule, request) {
1542
1533
  const { match } = rule;
1543
1534
  if (normalizeHost(match.host) !== normalizeHost(request.host)) return false;
1544
1535
  const url = new URL(request.path, "https://placeholder.invalid");
1545
- if (match.path && !matchPart(match.path, url.pathname)) return false;
1536
+ const sent = request.path.split(/[?#]/, 1)[0];
1537
+ if (match.path && (sent !== url.pathname || !matchPart(match.path, url.pathname))) return false;
1546
1538
  if (match.method && !match.method.some((m) => m.toUpperCase() === request.method.toUpperCase())) return false;
1547
1539
  if (match.queryString && !matchPairs(match.queryString, [...url.searchParams], false)) return false;
1548
1540
  return !match.headers || matchPairs(match.headers, headerPairs(request.headers), true);
@@ -1612,8 +1604,7 @@ function applyTransformations(rules, request, endpoints) {
1612
1604
  refused: false
1613
1605
  };
1614
1606
  }
1615
- //#endregion
1616
- //#region ../sandbox-docker/src/egress/substitution.ts
1607
+ // ../sandbox-docker/src/egress/substitution.ts
1617
1608
  const BASE62 = "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz";
1618
1609
  /** A fresh `reeval_secret_<32 base62>`: URL-safe, so it survives any encoding a client applies. */
1619
1610
  function placeholder() {
@@ -1775,8 +1766,7 @@ const scrubbedInBodies = (subs) => subs.filter((s) => s.scrubBodies !== false);
1775
1766
  const scrubber = (subs) => new ReplaceStream(scrubbedInBodies(subs).map((s) => [s.value, s.placeholder]));
1776
1767
  /** A stream swapping placeholders for values, for request bodies of secrets that opt in. */
1777
1768
  const bodySubstituter = (subs) => new ReplaceStream(subs.filter((s) => s.in.includes("body")).map((s) => [s.placeholder, s.value]));
1778
- //#endregion
1779
- //#region ../sandbox-docker/src/egress/tokens.ts
1769
+ // ../sandbox-docker/src/egress/tokens.ts
1780
1770
  const JWT = /^[\w-]+\.[\w-]+\.[\w-]+$/;
1781
1771
  /**
1782
1772
  * A placeholder for a token. A JWT keeps its header and claims, so a client reading its `exp` sees
@@ -1819,8 +1809,7 @@ function tokenizeResponse(derived, body, known) {
1819
1809
  fields
1820
1810
  };
1821
1811
  }
1822
- //#endregion
1823
- //#region ../sandbox-docker/src/egress/websocket.ts
1812
+ // ../sandbox-docker/src/egress/websocket.ts
1824
1813
  /** The most a message may hold while its frames are gathered to be scrubbed. */
1825
1814
  const MAX_MESSAGE = 16777216;
1826
1815
  /** One unmasked frame, as a server sends it. */
@@ -1914,8 +1903,7 @@ function webSocketScrubber(subs) {
1914
1903
  done(null, out.length ? Buffer.concat(out) : void 0);
1915
1904
  } });
1916
1905
  }
1917
- //#endregion
1918
- //#region ../sandbox-docker/src/egress/proxy.ts
1906
+ // ../sandbox-docker/src/egress/proxy.ts
1919
1907
  /** A TLS record's first byte when it carries a handshake, as a ClientHello does. */
1920
1908
  const TLS_HANDSHAKE = 22;
1921
1909
  /** How long a decrypted CONNECT waits for its client's first byte: Node's TLS handshake timeout. */
@@ -1950,6 +1938,8 @@ const authorityOf = (host, port) => {
1950
1938
  return port === 443 ? name : `${name}:${port}`;
1951
1939
  };
1952
1940
  const pathOnly = (path) => path.split("?")[0];
1941
+ /** Refused brokered requests recorded per method and path before the rest share an entry. */
1942
+ const REFUSED_PATHS = 20;
1953
1943
  function reply(socket, status, reason) {
1954
1944
  const text = http.STATUS_CODES[status] ?? "";
1955
1945
  socket.end(`HTTP/1.1 ${status} ${text}\r\ncontent-type: text/plain\r\nconnection: close\r\n\r\n${reason}\n`);
@@ -1998,10 +1988,13 @@ function createEgressProxy(options) {
1998
1988
  type: "dns",
1999
1989
  host,
2000
1990
  allowed: false,
2001
- reason: verdict.reason
1991
+ reason: verdict.reason,
1992
+ ...verdict.status === 502 && { unresolved: true }
2002
1993
  });
2003
1994
  return verdict;
2004
1995
  };
1996
+ /** The refusal the sandbox gets: a policy block, or a name the gateway couldn't resolve. */
1997
+ const refusal = (verdict) => verdict.status === 502 ? `reeval egress gateway ${verdict.reason}` : `blocked by the reeval egress policy: ${verdict.reason}`;
2005
1998
  /** Bytes each sandbox connection carried, both ways, for its tunnel's event. */
2006
1999
  const carried = /* @__PURE__ */ new WeakMap();
2007
2000
  const leaves = /* @__PURE__ */ new Map();
@@ -2016,6 +2009,7 @@ function createEgressProxy(options) {
2016
2009
  };
2017
2010
  const contacted = /* @__PURE__ */ new Map();
2018
2011
  const blocked = /* @__PURE__ */ new Map();
2012
+ const unresolved = /* @__PURE__ */ new Map();
2019
2013
  /** The host each sandbox connection's bytes count towards: its latest allowed request's. */
2020
2014
  const counting = /* @__PURE__ */ new WeakMap();
2021
2015
  /** Bytes a connection sent before the policy decided whose they are: the request itself. */
@@ -2038,19 +2032,46 @@ function createEgressProxy(options) {
2038
2032
  unclaimed.delete(connection);
2039
2033
  counting.set(connection, entry);
2040
2034
  };
2041
- const block = (connection, host, port, reason) => {
2035
+ const block = (connection, host, port, verdict) => {
2042
2036
  const key = `${host}:${port}`;
2043
- const entry = blocked.get(key) ?? {
2037
+ const into = verdict.status === 502 ? unresolved : blocked;
2038
+ const entry = into.get(key) ?? {
2044
2039
  host,
2045
2040
  port,
2046
2041
  connections: 0,
2047
- reason
2042
+ reason: verdict.reason
2048
2043
  };
2049
2044
  entry.connections++;
2050
- blocked.set(key, entry);
2045
+ into.set(key, entry);
2051
2046
  counting.delete(connection);
2052
2047
  unclaimed.delete(connection);
2053
2048
  };
2049
+ /** Method and path pairs that have a refused request's entry of their own. */
2050
+ let refusedPaths = 0;
2051
+ /**
2052
+ * A request refused on a host the policy let through, one entry per method and path, counted
2053
+ * per request. Past the first `REFUSED_PATHS` pairs, the rest share one entry per host, so an
2054
+ * agent walking ids in a path can't grow the record without bound. Its connection stays open
2055
+ * for the requests after it, so its bytes still count.
2056
+ */
2057
+ const blockRequest = (target, method, path, reason) => {
2058
+ const host = `${target.host}:${target.port}`;
2059
+ let key = `${host} ${method} ${path}`;
2060
+ if (!blocked.has(key)) {
2061
+ if (refusedPaths >= REFUSED_PATHS) {
2062
+ key = `${host} more`;
2063
+ reason = `more requests that carry a brokered credential off the endpoints reeval brokers it for, on paths past the first ${REFUSED_PATHS}`;
2064
+ } else refusedPaths++;
2065
+ }
2066
+ const entry = blocked.get(key) ?? {
2067
+ host: target.host,
2068
+ port: target.port,
2069
+ connections: 0,
2070
+ reason
2071
+ };
2072
+ entry.connections++;
2073
+ blocked.set(key, entry);
2074
+ };
2054
2075
  /** Counts what the connection carries each way, without reading it or changing its flow. */
2055
2076
  const countBytes = (connection) => {
2056
2077
  const total = {
@@ -2101,9 +2122,10 @@ function createEgressProxy(options) {
2101
2122
  });
2102
2123
  });
2103
2124
  return {
2104
- refuse(reason) {
2125
+ refuse(reason, unresolved) {
2105
2126
  event.allowed = false;
2106
2127
  event.reason = reason;
2128
+ if (unresolved) event.unresolved = true;
2107
2129
  },
2108
2130
  set(fields) {
2109
2131
  Object.assign(event, fields);
@@ -2153,17 +2175,18 @@ function createEgressProxy(options) {
2153
2175
  check(host).then((verdict) => {
2154
2176
  if (!verdict.allowed) {
2155
2177
  log(`reeval:egress CONNECT ${host}:${port} denied (${verdict.reason})`);
2156
- block(socket, host, port, verdict.reason);
2178
+ block(socket, host, port, verdict);
2157
2179
  emit({
2158
2180
  ...tunnel,
2159
2181
  allowed: false,
2160
2182
  status: verdict.status,
2161
2183
  reason: verdict.reason,
2184
+ ...verdict.status === 502 && { unresolved: true },
2162
2185
  sent: 0,
2163
2186
  received: 0,
2164
2187
  ms: Date.now() - startedAt
2165
2188
  });
2166
- return reply(socket, verdict.status, `blocked by the reeval egress policy: ${verdict.reason}`);
2189
+ return reply(socket, verdict.status, refusal(verdict));
2167
2190
  }
2168
2191
  contact(socket, host, port);
2169
2192
  const target = {
@@ -2251,9 +2274,9 @@ function createEgressProxy(options) {
2251
2274
  check(host).then((verdict) => {
2252
2275
  if (!verdict.allowed) {
2253
2276
  log(`reeval:egress ${req.method} ${shown} denied (${verdict.reason})`);
2254
- block(req.socket, host, port, verdict.reason);
2255
- done.refuse(verdict.reason);
2256
- return res.writeHead(verdict.status).end(`blocked by the reeval egress policy: ${verdict.reason}\n`);
2277
+ block(req.socket, host, port, verdict);
2278
+ done.refuse(verdict.reason, verdict.status === 502);
2279
+ return res.writeHead(verdict.status).end(`${refusal(verdict)}\n`);
2257
2280
  }
2258
2281
  contact(req.socket, host, port);
2259
2282
  const target = {
@@ -2533,6 +2556,8 @@ function createEgressProxy(options) {
2533
2556
  const url = `https://${target.host}${pathOnly(path)}`;
2534
2557
  if (refused) {
2535
2558
  log(`reeval:egress ${method} ${url} HTTP/${version} refused (not a brokered endpoint)`);
2559
+ const pathname = pathOnly(path) ?? path;
2560
+ blockRequest(target, method, pathname, `${method} ${pathname} carries a brokered credential, and it isn't one of the endpoints reeval brokers it for`);
2536
2561
  options.onRefused?.({
2537
2562
  method,
2538
2563
  url
@@ -3026,7 +3051,8 @@ function createEgressProxy(options) {
3026
3051
  },
3027
3052
  traffic: () => ({
3028
3053
  contacted: byHost(contacted.values()),
3029
- blocked: byHost(blocked.values())
3054
+ blocked: byHost(blocked.values()),
3055
+ unresolved: byHost(unresolved.values())
3030
3056
  }),
3031
3057
  addTransformations(more) {
3032
3058
  rules = [...rules, ...more];
@@ -3048,8 +3074,7 @@ function createEgressProxy(options) {
3048
3074
  }
3049
3075
  };
3050
3076
  }
3051
- //#endregion
3052
- //#region ../sandbox-docker/src/egress/gateway.ts
3077
+ // ../sandbox-docker/src/egress/gateway.ts
3053
3078
  /** Where the forwarder listens inside the container; every exec gets it as its HTTP(S) proxy. */
3054
3079
  const PROXY_PORT = 43128;
3055
3080
  /** The gateway's CA certificate in the container. The private key never leaves the host. */
@@ -3228,8 +3253,7 @@ async function startGateway(containerId, options, signal, engine) {
3228
3253
  close
3229
3254
  };
3230
3255
  }
3231
- //#endregion
3232
- //#region ../sandbox-docker/src/session.ts
3256
+ // ../sandbox-docker/src/session.ts
3233
3257
  const DEFAULT_LIMITS = {
3234
3258
  memory: "4g",
3235
3259
  cpus: 2,
@@ -3814,8 +3838,7 @@ const dockerSandboxProvider = (options) => ({
3814
3838
  return session;
3815
3839
  }
3816
3840
  });
3817
- //#endregion
3818
- //#region ../sandbox-docker/src/build-image.ts
3841
+ // ../sandbox-docker/src/build-image.ts
3819
3842
  const PNPM_VERSION = "10.33.3";
3820
3843
  /** npm before 11.6 (node:22 ships 10.9) can crash on circular peer sets (npm/cli#8261). */
3821
3844
  const NPM_VERSION = "11.20.0";
@@ -3843,22 +3866,22 @@ const BOOTSTRAPS = {
3843
3866
  name: "Cursor",
3844
3867
  cli: "@cursor/sdk",
3845
3868
  version: `node -p "'@cursor/sdk ' + require(process.env.HOME + '/.ai-sdk-harness/.harness-bootstrap/cursor-sdk/node_modules/@cursor/sdk/package.json').version"`,
3846
- adapter: async () => (await import("./src-DMo2eCOJ.js")).createCursorSdk()
3869
+ adapter: async () => (await import("./src-DVGVWOAB.js")).createCursorSdk()
3847
3870
  },
3848
3871
  "claude-code": {
3849
3872
  name: "Claude Code",
3850
3873
  cli: "claude",
3851
- adapter: async () => (await import("./dist-CYrBwyHA.js")).createClaudeCode()
3874
+ adapter: async () => (await import("./dist-CGwueB0T.js")).createClaudeCode()
3852
3875
  },
3853
3876
  antigravity: {
3854
3877
  name: "Antigravity",
3855
3878
  cli: "agy",
3856
- adapter: async () => (await import("./src-OESRtvOi.js")).createAntigravity()
3879
+ adapter: async () => (await import("./src-BYpY_vXK.js")).createAntigravity()
3857
3880
  },
3858
3881
  opencode: {
3859
3882
  name: "OpenCode",
3860
3883
  cli: "opencode",
3861
- adapter: async () => (await import("./src-CgJrz5p0.js")).createOpenCode({
3884
+ adapter: async () => (await import("./src-BBmCEE-M.js")).createOpenCode({
3862
3885
  auth: { GOOGLE_GENERATIVE_AI_API_KEY: "unused" },
3863
3886
  model: "google/unused"
3864
3887
  })
@@ -3866,7 +3889,7 @@ const BOOTSTRAPS = {
3866
3889
  goose: {
3867
3890
  name: "Goose",
3868
3891
  cli: "goose",
3869
- adapter: async () => (await import("./src-BTqJbvj6.js")).createGoose({
3892
+ adapter: async () => (await import("./src-DqIQQTu1.js")).createGoose({
3870
3893
  auth: { GOOGLE_API_KEY: "unused" },
3871
3894
  model: "unused"
3872
3895
  })
@@ -3874,17 +3897,17 @@ const BOOTSTRAPS = {
3874
3897
  pi: {
3875
3898
  name: "pi",
3876
3899
  cli: "pi",
3877
- adapter: async () => (await import("./src-BkiComGh.js")).createPi({ auth: { GEMINI_API_KEY: "unused" } })
3900
+ adapter: async () => (await import("./src-Dt6BWDcJ.js")).createPi({ auth: { GEMINI_API_KEY: "unused" } })
3878
3901
  },
3879
3902
  codex: {
3880
3903
  name: "Codex",
3881
3904
  cli: "codex",
3882
- adapter: async () => (await import("./src-BvgeZ4tS.js")).createCodex({ auth: { OPENAI_API_KEY: "unused" } })
3905
+ adapter: async () => (await import("./src-CnrLy_r_.js")).createCodex({ auth: { OPENAI_API_KEY: "unused" } })
3883
3906
  },
3884
3907
  fx: {
3885
3908
  name: "fx",
3886
3909
  cli: "fx",
3887
- adapter: async () => (await import("./src-Dk2Na0b-.js")).createFx({
3910
+ adapter: async () => (await import("./src-DoxUxkU3.js")).createFx({
3888
3911
  auth: { AI_GATEWAY_API_KEY: "unused" },
3889
3912
  model: "unused/unused"
3890
3913
  })
@@ -3892,12 +3915,17 @@ const BOOTSTRAPS = {
3892
3915
  "grok-build": {
3893
3916
  name: "Grok Build",
3894
3917
  cli: "grok",
3895
- adapter: async () => (await import("./src-Cp-2Hdib.js")).createGrokBuild({
3918
+ adapter: async () => (await import("./src-umdk2alV.js")).createGrokBuild({
3896
3919
  auth: { XAI_API_KEY: "unused" },
3897
3920
  model: "unused"
3898
3921
  })
3899
3922
  }
3900
3923
  };
3924
+ /**
3925
+ * The adapter whose bootstrap `harness`'s image bakes. An attempt whose adapter asks for any other
3926
+ * bootstrap reinstalls the CLI at start, which a restricted egress policy can refuse.
3927
+ */
3928
+ const bakedAdapter = (harness) => BOOTSTRAPS[harness].adapter();
3901
3929
  /** Keeps the image's `PATH` in login shells, which Debian's `/etc/profile` resets. */
3902
3930
  const profilePathScript = () => readFileSync(join(DOCKER_CONTEXT, "reeval-path.sh")).toString("base64");
3903
3931
  /** `from` as it goes after `FROM`: one word, so it can't add a stage name or another instruction. */
@@ -4472,14 +4500,12 @@ async function buildDockerfile(dockerfile, options) {
4472
4500
  if (previous && previous !== now) await removeQuietly(previous, engine);
4473
4501
  return tag;
4474
4502
  }
4475
- //#endregion
4476
- //#region ../sandbox-docker/src/mcp-timer.ts
4503
+ // ../sandbox-docker/src/mcp-timer.ts
4477
4504
  /**
4478
4505
  * reeval's MCP start-up timer, shipped in the package: a Node script that runs a stdio MCP server
4479
4506
  * and logs when it answers `initialize` (see its header). It runs in any sandbox with `node`.
4480
4507
  */
4481
4508
  const MCP_TIMER = fileURLToPath(ownFileURL("bin/mcp-timer.cjs"));
4482
- //#endregion
4483
- export { contextFiles as $, applyTransformations as A, BRIDGE_PORT as B, PRIVILEGED_CAPABILITIES as C, engineSpec as Ct, CA_PATH as D, dockerSandboxProvider as E, PACKAGE_HOSTS as F, SANDBOX_ROOT as G, HARNESS_PACKAGES as H, defaultAllowedHosts as I, WORKSPACE_DIR as J, SANDBOX_STATE as K, hostAllowed as L, onEndpoint as M, DOCKER_EGRESS as N, PROXY_PORT as O, HARNESS_HOSTS as P, isBakedHarness as Q, BAKED_HARNESSES as R, EgressUnavailableError as S, dockerSeccompFile as St, createDockerSession as T, LABEL as U, DEFAULT_IMAGE as V, SANDBOX_HOME as W, harnessLabel as X, adapterVersion as Y, imageFor as Z, pruneImages as _, failureCause as _t, buildDockerfile as a, dockerState as at, usesReevalBase as b, retryTransient as bt, buildPluginLayer as c, isRegistryDigest as ct, harnessImageFor as d, onDockerCommand as dt, dockerignoreMatcher as et, installLayerTag as f, run as ft, pluginLayerTag as g, causeLine as gt, pluginBuildKey as h, RETRY_DELAYS as ht, REEVAL_BASE_ARG as i, dockerOk as it, matches as j, placeholder as k, contextHash as l, removeContainerDetached as lt, pluginBuildDir as m, ImageBuildError as mt, DOCKER_CONTEXT as n, dockerAvailable as nt, buildImage as o, imageInfo as ot, installScript as p, shellQuote as pt, SANDBOX_USER as q, PLUGIN_BUILDS_DIR as r, dockerCapacity as rt, buildInstallLayer as s, imageTags as st, MCP_TIMER as t, docker as tt, dockerfileTag as u, OPAQUE_OUTPUT as ut, resolveFrom as v, isTransient as vt, ROOT_CAPABILITIES as w, normalizeImageId as wt, DEFAULT_LIMITS as x, ENGINES as xt, sourceTreeHash as y, parseBuildOutput as yt, BASE_IMAGE as z };
4509
+ export { isBakedHarness as $, placeholder as A, BASE_IMAGE as B, EgressUnavailableError as C, dockerSeccompFile as Ct, dockerSandboxProvider as D, createDockerSession as E, HARNESS_HOSTS as F, SANDBOX_HOME as G, DEFAULT_IMAGE as H, PACKAGE_HOSTS as I, SANDBOX_USER as J, SANDBOX_ROOT as K, defaultAllowedHosts as L, matches as M, onEndpoint as N, CA_PATH as O, DOCKER_EGRESS as P, imageFor as Q, hostAllowed as R, DEFAULT_LIMITS as S, ENGINES as St, ROOT_CAPABILITIES as T, normalizeImageId as Tt, HARNESS_PACKAGES as U, BRIDGE_PORT as V, LABEL as W, adapterVersion as X, WORKSPACE_DIR as Y, harnessLabel as Z, pluginLayerTag as _, causeLine as _t, bakedAdapter as a, dockerOk as at, sourceTreeHash as b, parseBuildOutput as bt, buildInstallLayer as c, imageTags as ct, dockerfileTag as d, OPAQUE_OUTPUT as dt, contextFiles as et, harnessImageFor as f, onDockerCommand as ft, pluginBuildKey as g, RETRY_DELAYS as gt, pluginBuildDir as h, ImageBuildError as ht, REEVAL_BASE_ARG as i, dockerCapacity as it, applyTransformations as j, PROXY_PORT as k, buildPluginLayer as l, isRegistryDigest as lt, installScript as m, shellQuote as mt, DOCKER_CONTEXT as n, docker as nt, buildDockerfile as o, dockerState as ot, installLayerTag as p, run as pt, SANDBOX_STATE as q, PLUGIN_BUILDS_DIR as r, dockerAvailable as rt, buildImage as s, imageInfo as st, MCP_TIMER as t, dockerignoreMatcher as tt, contextHash as u, removeContainerDetached as ut, pruneImages as v, failureCause as vt, PRIVILEGED_CAPABILITIES as w, engineSpec as wt, usesReevalBase as x, retryTransient as xt, resolveFrom as y, isTransient as yt, BAKED_HARNESSES as z };
4484
4510
 
4485
- //# sourceMappingURL=src-C0ySiej5.js.map
4511
+ //# sourceMappingURL=src-DaYQ1O9Y.js.map