reeval 0.27.2 → 0.28.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 (433) hide show
  1. package/CHANGELOG.md +23 -0
  2. package/README.md +15 -15
  3. package/dist/{adapter-BuisZmtg.js → adapter-mMrKaF9C.js} +4 -4
  4. package/dist/{adapter-BuisZmtg.js.map → adapter-mMrKaF9C.js.map} +1 -1
  5. package/dist/agent-BMHM86Qy.js +271 -0
  6. package/dist/agent-BMHM86Qy.js.map +1 -0
  7. package/dist/agents-BP6F1c6y.d.ts +3 -0
  8. package/dist/agents-DgfyOMRm.js +400 -0
  9. package/dist/agents-DgfyOMRm.js.map +1 -0
  10. package/dist/{api-C8ZbQG7s.js → api-DIzSkDXZ.js} +2 -2
  11. package/dist/{api-C8ZbQG7s.js.map → api-DIzSkDXZ.js.map} +1 -1
  12. package/dist/assemble-Dsl_C0gf.js +1 -0
  13. package/dist/{assemble-Co4noZvq.js → assemble-DxVRcaLC.js} +17 -17
  14. package/dist/{assemble-Co4noZvq.js.map → assemble-DxVRcaLC.js.map} +1 -1
  15. package/dist/{attach-DP3wc3A7.js → attach-CB-ESG7D.js} +5 -5
  16. package/dist/{attach-DP3wc3A7.js.map → attach-CB-ESG7D.js.map} +1 -1
  17. package/dist/{attempt-host-Bo8mbyuQ.js → attempt-host-B3zsORzT.js} +5 -5
  18. package/dist/{attempt-host-Bo8mbyuQ.js.map → attempt-host-B3zsORzT.js.map} +1 -1
  19. package/dist/{boat-BgdwW3_Q.js → boat-B2B3XO9B.js} +8 -8
  20. package/dist/{boat-BgdwW3_Q.js.map → boat-B2B3XO9B.js.map} +1 -1
  21. package/dist/{boat-obBLVWWQ.js → boat-CANaudKC.js} +1 -1
  22. package/dist/{boat-images-CetjuF_c.js → boat-images-sSz82GXk.js} +8 -8
  23. package/dist/{boat-images-CetjuF_c.js.map → boat-images-sSz82GXk.js.map} +1 -1
  24. package/dist/{bundle-dK2eveab.js → bundle-CJsMYTJw.js} +15 -13
  25. package/dist/bundle-CJsMYTJw.js.map +1 -0
  26. package/dist/capture-5WMKZZRx.js +1 -0
  27. package/dist/{capture-B8_Kx5R-.js → capture-DTHe_BcS.js} +13 -13
  28. package/dist/{capture-B8_Kx5R-.js.map → capture-DTHe_BcS.js.map} +1 -1
  29. package/dist/{cases-C6vnV-gn.js → cases-B_a7flE8.js} +3 -3
  30. package/dist/{cases-C6vnV-gn.js.map → cases-B_a7flE8.js.map} +1 -1
  31. package/dist/cases-D0-dA8q1.js +1 -0
  32. package/dist/{classify-BIJQ2Xqo.js → classify-gLl11KS8.js} +3 -3
  33. package/dist/{classify-BIJQ2Xqo.js.map → classify-gLl11KS8.js.map} +1 -1
  34. package/dist/{cli-eakKMZFR.js → cli-EopIiwBJ.js} +113 -112
  35. package/dist/cli-EopIiwBJ.js.map +1 -0
  36. package/dist/{cli-spec-DO-RQP-t.js → cli-spec-CYh8vLTE.js} +31 -9
  37. package/dist/cli-spec-CYh8vLTE.js.map +1 -0
  38. package/dist/cli.js +4 -2
  39. package/dist/cli.js.map +1 -1
  40. package/dist/{cloud-BQbD0pT8.js → cloud-CsofVdxN.js} +4 -4
  41. package/dist/{cloud-BQbD0pT8.js.map → cloud-CsofVdxN.js.map} +1 -1
  42. package/dist/{cloud-files-DFLNNUdK.js → cloud-files-BpWbKpxg.js} +9 -9
  43. package/dist/{cloud-files-DFLNNUdK.js.map → cloud-files-BpWbKpxg.js.map} +1 -1
  44. package/dist/{cloud-project-D-5mk4oh.js → cloud-project-CN1f7p5a.js} +2 -2
  45. package/dist/{cloud-project-D-5mk4oh.js.map → cloud-project-CN1f7p5a.js.map} +1 -1
  46. package/dist/{cloud-project-CV3-AVEe.js → cloud-project-DLn9l5X6.js} +1 -1
  47. package/dist/{cloud-push-bZL0TUQm.js → cloud-push-CLIcWVa6.js} +11 -11
  48. package/dist/{cloud-push-bZL0TUQm.js.map → cloud-push-CLIcWVa6.js.map} +1 -1
  49. package/dist/{cloud-push-CjBRaPak.js → cloud-push-CPLWxn8b.js} +1 -1
  50. package/dist/{cloud-run-CKcBID4J.js → cloud-run-ChdOr6zu.js} +18 -14
  51. package/dist/cloud-run-ChdOr6zu.js.map +1 -0
  52. package/dist/{cloud-run-BYvtsyiN.js → cloud-run-DIAXbsWd.js} +1 -1
  53. package/dist/{cloud-secrets-OuKaQUlX.js → cloud-secrets-DAuRwjTP.js} +75 -57
  54. package/dist/cloud-secrets-DAuRwjTP.js.map +1 -0
  55. package/dist/cloud-secrets-a1B2IsjU.js +1 -0
  56. package/dist/{command-C6nA8Fwo.js → command-6UkOgqge.js} +22 -22
  57. package/dist/{command-C6nA8Fwo.js.map → command-6UkOgqge.js.map} +1 -1
  58. package/dist/{command-BC_zVYDg.js → command-CQS2gjNM.js} +17 -17
  59. package/dist/{command-BC_zVYDg.js.map → command-CQS2gjNM.js.map} +1 -1
  60. package/dist/{command-CPJuVTme.js → command-CUBXsFfz.js} +7 -7
  61. package/dist/{command-CPJuVTme.js.map → command-CUBXsFfz.js.map} +1 -1
  62. package/dist/{command-CU-A_HL3.js → command-Dq-mFirh.js} +2 -2
  63. package/dist/{command-CU-A_HL3.js.map → command-Dq-mFirh.js.map} +1 -1
  64. package/dist/{command-CcWqLUbc.js → command-I8E1FgG5.js} +12 -12
  65. package/dist/{command-CcWqLUbc.js.map → command-I8E1FgG5.js.map} +1 -1
  66. package/dist/{commands-DzRyz-v9.js → commands-BeLE4oN4.js} +18 -18
  67. package/dist/{commands-DzRyz-v9.js.map → commands-BeLE4oN4.js.map} +1 -1
  68. package/dist/{commands-CBbpjvzR.js → commands-wkSzuPgF.js} +1 -1
  69. package/dist/{config-Ozz1O7Dl.js → config-CfZWILTy.js} +22 -25
  70. package/dist/config-CfZWILTy.js.map +1 -0
  71. package/dist/{provenance-Cylt_YxT.d.ts → core-C2d0URWs.d.ts} +2 -2
  72. package/dist/{core-B3Qg8zwG.js → core-tpzE5NhW.js} +8 -8
  73. package/dist/{core-B3Qg8zwG.js.map → core-tpzE5NhW.js.map} +1 -1
  74. package/dist/{cost-DQ0ayy6h.js → cost-CSfMv_sp.js} +5 -2
  75. package/dist/cost-CSfMv_sp.js.map +1 -0
  76. package/dist/{cost-a_rUSdsf.js → cost-_uinO5Yg.js} +1 -1
  77. package/dist/{cost-Dp-xFGJ1.js → cost-rRhvzqJo.js} +2 -2
  78. package/dist/{cost-Dp-xFGJ1.js.map → cost-rRhvzqJo.js.map} +1 -1
  79. package/dist/{cursor-catalog-pRZm3jCP.js → cursor-catalog-Cw3kv68u.js} +15 -5
  80. package/dist/cursor-catalog-Cw3kv68u.js.map +1 -0
  81. package/dist/{daytona-Bg62QEsJ.js → daytona-fLoFUu2I.js} +10 -10
  82. package/dist/{daytona-Bg62QEsJ.js.map → daytona-fLoFUu2I.js.map} +1 -1
  83. package/dist/{daytona-image-DFsZlHaL.js → daytona-image-BRBFQA9c.js} +4 -4
  84. package/dist/{daytona-image-DFsZlHaL.js.map → daytona-image-BRBFQA9c.js.map} +1 -1
  85. package/dist/daytona-image-DuZpq9Qw.js +1 -0
  86. package/dist/db-BPumcvp8.js +1 -0
  87. package/dist/{db-BQb7-_SX.js → db-t2g-ANto.js} +10 -10
  88. package/dist/{db-BQb7-_SX.js.map → db-t2g-ANto.js.map} +1 -1
  89. package/dist/{default-effort-DXPtXTsk.js → default-effort-ByvTDqX7.js} +3 -2
  90. package/dist/default-effort-ByvTDqX7.js.map +1 -0
  91. package/dist/{default-effort-C1Y0LOHo.js → default-effort-C9He6KVv.js} +1 -1
  92. package/dist/{docker-BNZw-uhT.js → docker-BKA4ELbB.js} +1 -1
  93. package/dist/{docker-DzSu1y_e.js → docker-h8mYtGWF.js} +2 -2
  94. package/dist/{docker-DzSu1y_e.js.map → docker-h8mYtGWF.js.map} +1 -1
  95. package/dist/{doctor-TkGfyasW.js → doctor-CPXSQ4s-.js} +27 -26
  96. package/dist/doctor-CPXSQ4s-.js.map +1 -0
  97. package/dist/{env-8x1O8I1M.js → env-ARmqWMQ5.js} +3 -1
  98. package/dist/env-ARmqWMQ5.js.map +1 -0
  99. package/dist/{environment-C2i5ggoS.js → environment-B_ht7Lbp.js} +4 -3
  100. package/dist/environment-B_ht7Lbp.js.map +1 -0
  101. package/dist/{errors-xUi3AkBi.js → errors-BQxdlRgT.js} +2 -2
  102. package/dist/{errors-xUi3AkBi.js.map → errors-BQxdlRgT.js.map} +1 -1
  103. package/dist/{eval-source-CVx2dMCC.js → eval-source-Byy9CDjg.js} +5 -5
  104. package/dist/{eval-source-CVx2dMCC.js.map → eval-source-Byy9CDjg.js.map} +1 -1
  105. package/dist/{evaluate-Nnh0iPuo.d.ts → evaluate-Bhdj1cv0.d.ts} +1 -1
  106. package/dist/{evaluate-D9hHc00J.js → evaluate-DoObbRZ2.js} +70 -55
  107. package/dist/evaluate-DoObbRZ2.js.map +1 -0
  108. package/dist/events-D7kBBdzl.js +1 -0
  109. package/dist/{events-CQJ9VK-x.js → events-Da6Pl5_b.js} +3 -3
  110. package/dist/{events-CQJ9VK-x.js.map → events-Da6Pl5_b.js.map} +1 -1
  111. package/dist/{files-DxMU7Qa3.js → files-CLNAE1rM.js} +6 -6
  112. package/dist/{files-DxMU7Qa3.js.map → files-CLNAE1rM.js.map} +1 -1
  113. package/dist/files-CjabTKaR.js +1 -0
  114. package/dist/{files-C0k5nNUu.js → files-CmLgOH3w.js} +3 -3
  115. package/dist/{files-C0k5nNUu.js.map → files-CmLgOH3w.js.map} +1 -1
  116. package/dist/{files-CGzUGcN2.js → files-CsJWxr6c.js} +2 -2
  117. package/dist/{files-CGzUGcN2.js.map → files-CsJWxr6c.js.map} +1 -1
  118. package/dist/{files-FLbqNavk.js → files-DV9Tfusu.js} +7 -7
  119. package/dist/{files-FLbqNavk.js.map → files-DV9Tfusu.js.map} +1 -1
  120. package/dist/{files--mW-Ym3B.js → files-Dc2xVqx1.js} +1 -1
  121. package/dist/{files-lwByH3UH.js → files-DgRaHy0k.js} +5 -5
  122. package/dist/{files-lwByH3UH.js.map → files-DgRaHy0k.js.map} +1 -1
  123. package/dist/files-DrXNXtQR.js +1 -0
  124. package/dist/files-Ds_hi5Bh.js +1 -0
  125. package/dist/{files-f7mRGOM3.js → files-uFFwVJZG.js} +4 -4
  126. package/dist/{files-f7mRGOM3.js.map → files-uFFwVJZG.js.map} +1 -1
  127. package/dist/gateway.d.ts +1 -1
  128. package/dist/harness-Dcd3ffkY.js.map +1 -1
  129. package/dist/{harness-install-CTAsIRk9.js → harness-install-CmD1eQsL.js} +7 -5
  130. package/dist/harness-install-CmD1eQsL.js.map +1 -0
  131. package/dist/harness.d.ts +1 -1
  132. package/dist/{ids-D9QbaaVk.js → ids-cqB_4aeP.js} +3 -3
  133. package/dist/{ids-D9QbaaVk.js.map → ids-cqB_4aeP.js.map} +1 -1
  134. package/dist/{images-D-MMgo1d.js → images-CWT6Ye03.js} +13 -13
  135. package/dist/{images-D-MMgo1d.js.map → images-CWT6Ye03.js.map} +1 -1
  136. package/dist/index.d.ts +4 -4
  137. package/dist/index.js +4 -4
  138. package/dist/{init-DJXSbI19.js → init-BESRsV7F.js} +5 -5
  139. package/dist/{init-DJXSbI19.js.map → init-BESRsV7F.js.map} +1 -1
  140. package/dist/init-CSfZF3uV.js +1 -0
  141. package/dist/{ink-list-BsPpwXuw.js → ink-list-Cu48wlm7.js} +2 -2
  142. package/dist/{ink-list-BsPpwXuw.js.map → ink-list-Cu48wlm7.js.map} +1 -1
  143. package/dist/{inputs-CTlr7diQ.js → inputs-BoQrNOoN.js} +6 -6
  144. package/dist/{inputs-CTlr7diQ.js.map → inputs-BoQrNOoN.js.map} +1 -1
  145. package/dist/internal/vm.d.ts +2 -2
  146. package/dist/{invocations-2vDCZ_7f.js → invocations-FUUh2r22.js} +3 -3
  147. package/dist/{invocations-2vDCZ_7f.js.map → invocations-FUUh2r22.js.map} +1 -1
  148. package/dist/{judge-3ABSMDa4.js → judge-CUjB8kYF.js} +71 -24
  149. package/dist/judge-CUjB8kYF.js.map +1 -0
  150. package/dist/judge.d.ts +3 -3
  151. package/dist/judge.js +1 -1
  152. package/dist/{judgments-CVCUWT-g.js → judgments-8zHsGW8o.js} +2 -2
  153. package/dist/{judgments-CVCUWT-g.js.map → judgments-8zHsGW8o.js.map} +1 -1
  154. package/dist/{kinds-DhH1c5u6.js → kinds-C6PeknHN.js} +7 -7
  155. package/dist/{kinds-DhH1c5u6.js.map → kinds-C6PeknHN.js.map} +1 -1
  156. package/dist/{labels-Dtyf5-pd.js → labels-CbwHtEHq.js} +2 -3
  157. package/dist/labels-CbwHtEHq.js.map +1 -0
  158. package/dist/{layout-ChWMCz4x.js → layout-zk3wcJ-D.js} +4 -4
  159. package/dist/{layout-ChWMCz4x.js.map → layout-zk3wcJ-D.js.map} +1 -1
  160. package/dist/{link-TH-DivdC.js → link-C74mznSy.js} +3 -3
  161. package/dist/{link-TH-DivdC.js.map → link-C74mznSy.js.map} +1 -1
  162. package/dist/{list-DSm2TZds.js → list-B_bnCkKF.js} +7 -7
  163. package/dist/{list-DSm2TZds.js.map → list-B_bnCkKF.js.map} +1 -1
  164. package/dist/{live-D3zHauJd.js → live-BXjhPeBS.js} +5 -5
  165. package/dist/{live-D3zHauJd.js.map → live-BXjhPeBS.js.map} +1 -1
  166. package/dist/{live-YXsT5z0d.js → live-CVlGZ5uP.js} +2 -2
  167. package/dist/{live-YXsT5z0d.js.map → live-CVlGZ5uP.js.map} +1 -1
  168. package/dist/{machine-service-DeE4-ueU.js → machine-service-CIPF3GOD.js} +1 -1
  169. package/dist/{machine-service-Bs-09eUN.js → machine-service-WRvLuPyf.js} +3 -3
  170. package/dist/{machine-service-Bs-09eUN.js.map → machine-service-WRvLuPyf.js.map} +1 -1
  171. package/dist/{machines-BxWMvCkU.js → machines-BIhbRJ4m.js} +23 -23
  172. package/dist/{machines-BxWMvCkU.js.map → machines-BIhbRJ4m.js.map} +1 -1
  173. package/dist/{markdown-COts-jxf.js → markdown-aVaKa5tB.js} +2 -2
  174. package/dist/{markdown-COts-jxf.js.map → markdown-aVaKa5tB.js.map} +1 -1
  175. package/dist/{model-BGc_y-K_.js → model-CnuJlONr.js} +1 -1
  176. package/dist/{model-B89uRS9X.js → model-D3sK3a5R.js} +13 -13
  177. package/dist/model-D3sK3a5R.js.map +1 -0
  178. package/dist/{model-WiM6J5cw.js → model-DmPDqMOT.js} +6 -5
  179. package/dist/model-DmPDqMOT.js.map +1 -0
  180. package/dist/{model-U9bZgClN.js → model-EhOuBsho.js} +24 -16
  181. package/dist/{model-U9bZgClN.js.map → model-EhOuBsho.js.map} +1 -1
  182. package/dist/model-Yu4XAseh.js +1 -0
  183. package/dist/{node-eEX-KpkO.js → node-ChfH6UTx.js} +4 -4
  184. package/dist/{node-eEX-KpkO.js.map → node-ChfH6UTx.js.map} +1 -1
  185. package/dist/{openrouter-models-B1sIOTD2.js → openrouter-models-D19R699I.js} +7 -8
  186. package/dist/openrouter-models-D19R699I.js.map +1 -0
  187. package/dist/options-DFSyG3S8.js +1 -0
  188. package/dist/{patch-CudvhNHJ.js → patch-DBQCuZAJ.js} +2 -2
  189. package/dist/{patch-CudvhNHJ.js.map → patch-DBQCuZAJ.js.map} +1 -1
  190. package/dist/pi-providers-C7r3J259.js +1 -0
  191. package/dist/{plan-CqBiH_vR.js → plan-Dj19aa3f.js} +10 -10
  192. package/dist/{plan-CqBiH_vR.js.map → plan-Dj19aa3f.js.map} +1 -1
  193. package/dist/{plugins-4DkJ-SSG.js → plugins-rlmJz7B3.js} +6 -15
  194. package/dist/plugins-rlmJz7B3.js.map +1 -0
  195. package/dist/{preflight-DshE4siP.js → preflight-C919d0x1.js} +9 -9
  196. package/dist/{preflight-DshE4siP.js.map → preflight-C919d0x1.js.map} +1 -1
  197. package/dist/{preflight-VrtpmE-m.js → preflight-CVGDRu2C.js} +1 -1
  198. package/dist/{preflight-DTUzpuHa.js → preflight-CvIY-sKu.js} +4 -4
  199. package/dist/{preflight-DTUzpuHa.js.map → preflight-CvIY-sKu.js.map} +1 -1
  200. package/dist/preflight-DzeTciWY.js +1 -0
  201. package/dist/{prepare-neo93PDB.js → prepare-BAkGolQG.js} +11 -8
  202. package/dist/prepare-BAkGolQG.js.map +1 -0
  203. package/dist/{prepare-B8mcpoSU.js → prepare-D91IAX_H.js} +2 -2
  204. package/dist/{prices-7Av-R8LY.js → prices-DZa1s6oE.js} +2 -2
  205. package/dist/{prices-7Av-R8LY.js.map → prices-DZa1s6oE.js.map} +1 -1
  206. package/dist/prices-DhqfDLI0.js +1 -0
  207. package/dist/{provenance-DH-yi6D5.js → provenance-BKmmc54i.js} +4 -4
  208. package/dist/{provenance-DH-yi6D5.js.map → provenance-BKmmc54i.js.map} +1 -1
  209. package/dist/{provider-Cn7lmECy.js → provider-BNQjWvVI.js} +2 -2
  210. package/dist/{provider-Cn7lmECy.js.map → provider-BNQjWvVI.js.map} +1 -1
  211. package/dist/provider-CVvAjoNS.js +1 -0
  212. package/dist/{providers-CkS7-mTp.js → providers-BJtQ3NwC.js} +1 -1
  213. package/dist/{providers-CjS_fnib.js → providers-zFYsqSGY.js} +26 -26
  214. package/dist/{providers-CjS_fnib.js.map → providers-zFYsqSGY.js.map} +1 -1
  215. package/dist/{query-B9eLoFkA.js → query-Bb9N_XYo.js} +2 -2
  216. package/dist/{query-B9eLoFkA.js.map → query-Bb9N_XYo.js.map} +1 -1
  217. package/dist/query-CIn4l3KN.js +1 -0
  218. package/dist/{questions-OKDjvm6B.js → questions-7ENfOXct.js} +6 -6
  219. package/dist/{questions-OKDjvm6B.js.map → questions-7ENfOXct.js.map} +1 -1
  220. package/dist/{recipe-CRoyNF64.js → recipe-BYfLWBQt.js} +3 -3
  221. package/dist/{recipe-CRoyNF64.js.map → recipe-BYfLWBQt.js.map} +1 -1
  222. package/dist/{record-BWy9s9CV.js → record-CB1A6v0V.js} +2 -2
  223. package/dist/{record-BWy9s9CV.js.map → record-CB1A6v0V.js.map} +1 -1
  224. package/dist/{remarks-UZpf9-8r.js → remarks-Cf6sylYA.js} +10 -10
  225. package/dist/{remarks-UZpf9-8r.js.map → remarks-Cf6sylYA.js.map} +1 -1
  226. package/dist/{remarks-BbMdB_8I.js → remarks-vofg7p1p.js} +3 -3
  227. package/dist/{remarks-BbMdB_8I.js.map → remarks-vofg7p1p.js.map} +1 -1
  228. package/dist/{remote-Dr1gXMTr.js → remote-3htNQd1k.js} +8 -7
  229. package/dist/remote-3htNQd1k.js.map +1 -0
  230. package/dist/renderer/ascii.d.ts +1 -1
  231. package/dist/renderer/markdown.d.ts +1 -1
  232. package/dist/renderer/markdown.js +1 -1
  233. package/dist/{report-B-kavICs.js → report-BQTwKMyw.js} +3 -3
  234. package/dist/{report-B-kavICs.js.map → report-BQTwKMyw.js.map} +1 -1
  235. package/dist/{report-inputs-UUAME7ww.js → report-inputs-CfN15NUr.js} +6 -6
  236. package/dist/{report-inputs-UUAME7ww.js.map → report-inputs-CfN15NUr.js.map} +1 -1
  237. package/dist/{resolve-ihtFbkZH.js → resolve-BithWafe.js} +27 -17
  238. package/dist/resolve-BithWafe.js.map +1 -0
  239. package/dist/{resolve-C_UGu3ls.js → resolve-Cb2dNF75.js} +2 -2
  240. package/dist/{resolve-C_UGu3ls.js.map → resolve-Cb2dNF75.js.map} +1 -1
  241. package/dist/resolve-D8NaRPmt.js +1 -0
  242. package/dist/{results-yZWhaeav.js → results-BSrEuS2x.js} +6 -6
  243. package/dist/{results-yZWhaeav.js.map → results-BSrEuS2x.js.map} +1 -1
  244. package/dist/{resume-Ds4K9mQc.js → resume-VlM095b2.js} +6 -6
  245. package/dist/{resume-Ds4K9mQc.js.map → resume-VlM095b2.js.map} +1 -1
  246. package/dist/{retry-Cjf40USW.js → retry-DI6qS8FY.js} +5 -5
  247. package/dist/{retry-Cjf40USW.js.map → retry-DI6qS8FY.js.map} +1 -1
  248. package/dist/routes-D1tgwWoe.js +629 -0
  249. package/dist/routes-D1tgwWoe.js.map +1 -0
  250. package/dist/{run-C_kA5Jzh.js → run-DwLQh41-.js} +3 -3
  251. package/dist/{run-C_kA5Jzh.js.map → run-DwLQh41-.js.map} +1 -1
  252. package/dist/{runtime-D1gU5fAJ.js → runtime-CXxeCKoX.js} +6 -6
  253. package/dist/{runtime-D1gU5fAJ.js.map → runtime-CXxeCKoX.js.map} +1 -1
  254. package/dist/sandbox/boat.d.ts +2 -2
  255. package/dist/sandbox/boat.js +1 -1
  256. package/dist/sandbox/daytona.d.ts +2 -2
  257. package/dist/sandbox/daytona.js +1 -1
  258. package/dist/{sandbox-Br9klmXq.js → sandbox-D1vDKYqU.js} +2 -2
  259. package/dist/{sandbox-Br9klmXq.js.map → sandbox-D1vDKYqU.js.map} +1 -1
  260. package/dist/sandbox.d.ts +3 -3
  261. package/dist/sandbox.js +1 -1
  262. package/dist/secrets-file-BFJSaPHI.js +169 -0
  263. package/dist/secrets-file-BFJSaPHI.js.map +1 -0
  264. package/dist/{server-2cICWjvT.js → server-BrBZ0_xA.js} +6 -6
  265. package/dist/{server-2cICWjvT.js.map → server-BrBZ0_xA.js.map} +1 -1
  266. package/dist/server-CzilMQ_m.js +1 -0
  267. package/dist/shared-7f8bQJP4.d.ts +2 -0
  268. package/dist/{skill-dirs-B7o83G5I.js → skill-dirs-DaHQ463p.js} +2 -2
  269. package/dist/skill-dirs-DaHQ463p.js.map +1 -0
  270. package/dist/{source-CFimUGjU.js → source-CfeQ4DL4.js} +2 -2
  271. package/dist/{source-CFimUGjU.js.map → source-CfeQ4DL4.js.map} +1 -1
  272. package/dist/source-DqFPDDZU.js +1 -0
  273. package/dist/{spans-BshoUrAD.js → spans-DUexyi3E.js} +2 -2
  274. package/dist/spans-DUexyi3E.js.map +1 -0
  275. package/dist/{src-CRZg669b.js → src-1TaLS8AT.js} +1 -1
  276. package/dist/{src-CEValY4l.js → src-B3sBDfG2.js} +157 -114
  277. package/dist/src-B3sBDfG2.js.map +1 -0
  278. package/dist/{src-ZaP7-0pi.js → src-BWb__auU.js} +1 -1
  279. package/dist/{src-kjTrRKQJ.js → src-CU4tXeik.js} +1 -1
  280. package/dist/src-CfDk0uu4.js +3068 -0
  281. package/dist/src-CfDk0uu4.js.map +1 -0
  282. package/dist/src-DR_j9K3o.js +2 -0
  283. package/dist/{src-B8t-GsRm.js → src-DV-o1jAX.js} +1 -1
  284. package/dist/{src-DP-gPQ5B.js → src-RygE9XhU.js} +1 -1
  285. package/dist/{src-7kshnPZC.js → src-V6cCl3Ak.js} +1 -1
  286. package/dist/src-hPuCF6xC.js +1 -0
  287. package/dist/{src-B5r1d23Y.js → src-o0VTS7Rt.js} +5 -2
  288. package/dist/{src-B5r1d23Y.js.map → src-o0VTS7Rt.js.map} +1 -1
  289. package/dist/src-og0zwqOf.js +4 -0
  290. package/dist/ssh-pool-BWXdYQl0.js +1 -0
  291. package/dist/{ssh-pool-CANmGvdx.js → ssh-pool-DqFdHcz0.js} +7 -7
  292. package/dist/{ssh-pool-CANmGvdx.js.map → ssh-pool-DqFdHcz0.js.map} +1 -1
  293. package/dist/{start-D-xFuv0f.js → start-BSBWBxQb.js} +13 -6
  294. package/dist/start-BSBWBxQb.js.map +1 -0
  295. package/dist/startup-YENEnSa_.js +16 -0
  296. package/dist/startup-YENEnSa_.js.map +1 -0
  297. package/dist/state-7TAiol30.js +1 -0
  298. package/dist/{state-DcuHVqLB.js → state-BhSANU74.js} +5 -5
  299. package/dist/{state-DcuHVqLB.js.map → state-BhSANU74.js.map} +1 -1
  300. package/dist/store/local.d.ts +1 -1
  301. package/dist/store/s3.d.ts +1 -1
  302. package/dist/{studio-share-qopKtSPe.js → studio-share-58-7lF42.js} +6 -6
  303. package/dist/{studio-share-qopKtSPe.js.map → studio-share-58-7lF42.js.map} +1 -1
  304. package/dist/suite-BvIl9-41.js +2 -0
  305. package/dist/{suite-DBbQs15H.js → suite-Bz0uCwd3.js} +4 -4
  306. package/dist/{suite-DBbQs15H.js.map → suite-Bz0uCwd3.js.map} +1 -1
  307. package/dist/{summary-CtTtjh3v.js → summary-Bx1qyFwL.js} +8 -8
  308. package/dist/{summary-CtTtjh3v.js.map → summary-Bx1qyFwL.js.map} +1 -1
  309. package/dist/{sync-DcFcjYLX.js → sync-BeiDYfR6.js} +6 -6
  310. package/dist/{sync-DcFcjYLX.js.map → sync-BeiDYfR6.js.map} +1 -1
  311. package/dist/{tart-CgW8e9RN.d.ts → tart-Brv7Huzv.d.ts} +2 -2
  312. package/dist/{tart-D4VLu2qF.js → tart-CcdnLmyl.js} +7 -7
  313. package/dist/{tart-D4VLu2qF.js.map → tart-CcdnLmyl.js.map} +1 -1
  314. package/dist/{tart-bake-BksL4gS9.js → tart-bake-BRfCI3R9.js} +1 -1
  315. package/dist/{tart-bake-BEzKMVWv.js → tart-bake-CRrij4Ct.js} +7 -7
  316. package/dist/{tart-bake-BEzKMVWv.js.map → tart-bake-CRrij4Ct.js.map} +1 -1
  317. package/dist/{tart-cli-C05FdPQV.js → tart-cli-B1qZ4EPU.js} +2 -2
  318. package/dist/{tart-cli-C05FdPQV.js.map → tart-cli-B1qZ4EPU.js.map} +1 -1
  319. package/dist/{tart-cli-DVI2SWz4.js → tart-cli-B7YKODI8.js} +1 -1
  320. package/dist/{tart-hosts-DESXVcNv.js → tart-hosts-CNUiaq7k.js} +1 -1
  321. package/dist/{tart-hosts-GDk-lRnT.js → tart-hosts-CifzR5Lp.js} +4 -4
  322. package/dist/{tart-hosts-GDk-lRnT.js.map → tart-hosts-CifzR5Lp.js.map} +1 -1
  323. package/dist/{tart-images-CLpWt7Mm.js → tart-images-DOboVDfH.js} +2 -2
  324. package/dist/{tart-images-CLpWt7Mm.js.map → tart-images-DOboVDfH.js.map} +1 -1
  325. package/dist/testing.d.ts +3 -3
  326. package/dist/testing.js +4 -4
  327. package/dist/{tool-class-CB-m4PiF.js → tool-class-DzpZJJWK.js} +2 -2
  328. package/dist/{tool-class-CB-m4PiF.js.map → tool-class-DzpZJJWK.js.map} +1 -1
  329. package/dist/{trace-CJQLlAbB.js → trace-BY_rkR5K.js} +2 -2
  330. package/dist/{trace-CJQLlAbB.js.map → trace-BY_rkR5K.js.map} +1 -1
  331. package/dist/{types-Buut5yGe.js → types-BRXqpxJ1.js} +3 -8
  332. package/dist/types-BRXqpxJ1.js.map +1 -0
  333. package/dist/{types-CYz4dqAd.d.ts → types-CseRWbr7.d.ts} +1 -1
  334. package/dist/{types-BZaItiui.d.ts → types-DtRJb-jv.d.ts} +203 -199
  335. package/dist/{ui-Df1vnh7L.js → ui-CNYSCEFR.js} +5 -5
  336. package/dist/{ui-Df1vnh7L.js.map → ui-CNYSCEFR.js.map} +1 -1
  337. package/dist/{usage-CwIRPPZ9.js → usage-Dg_IyU0o.js} +3 -5
  338. package/dist/usage-Dg_IyU0o.js.map +1 -0
  339. package/dist/vercel-models-DZxE5QJe.js +14 -0
  340. package/dist/vercel-models-DZxE5QJe.js.map +1 -0
  341. package/dist/{vertex-DQQGhUn7.js → vertex-BS-i5_z3.js} +20 -91
  342. package/dist/vertex-BS-i5_z3.js.map +1 -0
  343. package/dist/vertex-DWCgbhK1.js +2 -0
  344. package/dist/view/index.d.ts +3 -3
  345. package/dist/view/index.js +12 -12
  346. package/dist/view/report/index.d.ts +3 -3
  347. package/dist/view/report/index.js +3 -3
  348. package/dist/{views-BP8ck_JR.js → views-CLF_vJ6q.js} +6 -6
  349. package/dist/{views-BP8ck_JR.js.map → views-CLF_vJ6q.js.map} +1 -1
  350. package/dist/views-ZX-NomRg.js +2 -0
  351. package/dist/{vm-container-Bx3bIlDn.js → vm-container-BHRWzfKZ.js} +6 -6
  352. package/dist/{vm-container-Bx3bIlDn.js.map → vm-container-BHRWzfKZ.js.map} +1 -1
  353. package/dist/{vm-images-CimgmVk6.js → vm-images-CZitoP8K.js} +13 -13
  354. package/dist/{vm-images-CimgmVk6.js.map → vm-images-CZitoP8K.js.map} +1 -1
  355. package/dist/{worker-entry-CY_GX-KW.js → worker-entry-DTrgQNo6.js} +3 -3
  356. package/dist/{worker-entry-CY_GX-KW.js.map → worker-entry-DTrgQNo6.js.map} +1 -1
  357. package/dist/{workspace-2wz0BP-V.js → workspace-CgkcWyX1.js} +6 -6
  358. package/dist/{workspace-2wz0BP-V.js.map → workspace-CgkcWyX1.js.map} +1 -1
  359. package/dist/workspace-DbRCjXfa.js +1 -0
  360. package/package.json +1 -1
  361. package/dist/agent-ofh_n1XS.js +0 -987
  362. package/dist/agent-ofh_n1XS.js.map +0 -1
  363. package/dist/agents-D4H9bKHD.d.ts +0 -2
  364. package/dist/agents-DGr0kCFD.js +0 -1408
  365. package/dist/agents-DGr0kCFD.js.map +0 -1
  366. package/dist/assemble-HOUMVnjQ.js +0 -1
  367. package/dist/bundle-dK2eveab.js.map +0 -1
  368. package/dist/capture-BEGBn9e9.js +0 -1
  369. package/dist/cases-Bsp-G-ZL.js +0 -1
  370. package/dist/cli-eakKMZFR.js.map +0 -1
  371. package/dist/cli-spec-DO-RQP-t.js.map +0 -1
  372. package/dist/cloud-run-CKcBID4J.js.map +0 -1
  373. package/dist/cloud-secrets-D_IiyGgA.js +0 -1
  374. package/dist/cloud-secrets-OuKaQUlX.js.map +0 -1
  375. package/dist/config-Ozz1O7Dl.js.map +0 -1
  376. package/dist/cost-DQ0ayy6h.js.map +0 -1
  377. package/dist/cursor-catalog-pRZm3jCP.js.map +0 -1
  378. package/dist/daytona-image-D8TFfSxM.js +0 -1
  379. package/dist/db-Djz9zixD.js +0 -1
  380. package/dist/default-effort-DXPtXTsk.js.map +0 -1
  381. package/dist/doctor-TkGfyasW.js.map +0 -1
  382. package/dist/env-8x1O8I1M.js.map +0 -1
  383. package/dist/environment-C2i5ggoS.js.map +0 -1
  384. package/dist/evaluate-D9hHc00J.js.map +0 -1
  385. package/dist/events-CwWpBkkc.js +0 -1
  386. package/dist/files-1PVfWWXB.js +0 -1
  387. package/dist/files-CsPOd60N.js +0 -1
  388. package/dist/files-DOz7Qr5r.js +0 -1
  389. package/dist/harness-install-CTAsIRk9.js.map +0 -1
  390. package/dist/init-DkTAnHaf.js +0 -1
  391. package/dist/judge-3ABSMDa4.js.map +0 -1
  392. package/dist/labels-Dtyf5-pd.js.map +0 -1
  393. package/dist/model-B89uRS9X.js.map +0 -1
  394. package/dist/model-Doy9vFnq.js +0 -1
  395. package/dist/model-WiM6J5cw.js.map +0 -1
  396. package/dist/openrouter-models-B1sIOTD2.js.map +0 -1
  397. package/dist/options-BK7nMvou.js +0 -1
  398. package/dist/plugins-4DkJ-SSG.js.map +0 -1
  399. package/dist/preflight-CjR6YpXu.js +0 -1
  400. package/dist/prepare-neo93PDB.js.map +0 -1
  401. package/dist/prices-CZWSNosm.js +0 -1
  402. package/dist/provider-B24hZX95.js +0 -1
  403. package/dist/provider-stop-DjBMfZW5.js +0 -69
  404. package/dist/provider-stop-DjBMfZW5.js.map +0 -1
  405. package/dist/query-3PjR8hU2.js +0 -1
  406. package/dist/remote-Dr1gXMTr.js.map +0 -1
  407. package/dist/resolve-CKRG9k6Z.js +0 -1
  408. package/dist/resolve-ihtFbkZH.js.map +0 -1
  409. package/dist/routes-Cp4gAjBZ.js +0 -427
  410. package/dist/routes-Cp4gAjBZ.js.map +0 -1
  411. package/dist/secrets-file-B1Yj1WjD.js +0 -100
  412. package/dist/secrets-file-B1Yj1WjD.js.map +0 -1
  413. package/dist/server-CzTVzKWG.js +0 -1
  414. package/dist/shared-B3iLKAiu.d.ts +0 -1
  415. package/dist/skill-dirs-B7o83G5I.js.map +0 -1
  416. package/dist/source-CydZOoBv.js +0 -1
  417. package/dist/spans-BshoUrAD.js.map +0 -1
  418. package/dist/src-2MDgX3cP.js +0 -3
  419. package/dist/src-CEValY4l.js.map +0 -1
  420. package/dist/src-CH8ZNcTe.js +0 -1
  421. package/dist/src-Con14kZF.js +0 -2
  422. package/dist/ssh-pool-Du_BZWR1.js +0 -1
  423. package/dist/start-D-xFuv0f.js.map +0 -1
  424. package/dist/state-C007zNcM.js +0 -1
  425. package/dist/suite-BQNoCyRE.js +0 -2
  426. package/dist/types-Buut5yGe.js.map +0 -1
  427. package/dist/usage-CwIRPPZ9.js.map +0 -1
  428. package/dist/vercel-models-Ci33llXz.js +0 -21
  429. package/dist/vercel-models-Ci33llXz.js.map +0 -1
  430. package/dist/vertex-DQQGhUn7.js.map +0 -1
  431. package/dist/vertex-DtWe0Xf6.js +0 -1
  432. package/dist/views-_yc6K-9E.js +0 -2
  433. package/dist/workspace-CQxNEvkp.js +0 -1
@@ -5,13 +5,13 @@ import { hostname, tmpdir } from "node:os";
5
5
  import { basename, dirname, isAbsolute, join, posix, relative, resolve, sep } from "node:path";
6
6
  import net, { BlockList, isIP } from "node:net";
7
7
  import { createHash, generateKeyPairSync, randomBytes, randomInt, sign } from "node:crypto";
8
+ import { createHarnessSandboxTemplate } from "@ai-sdk/harness/agent";
8
9
  import { execFileSync, spawn } from "node:child_process";
10
+ import { lstat, mkdir, readFile, readdir, readlink, symlink, utimes, writeFile } from "node:fs/promises";
11
+ import { Duplex, Readable, Transform } from "node:stream";
9
12
  import { fileURLToPath } from "node:url";
10
- import { createHarnessSandboxTemplate } from "@ai-sdk/harness/agent";
11
13
  import dockerignore from "@balena/dockerignore";
12
- import { lstat, mkdir, readFile, readdir, readlink, symlink, utimes, writeFile } from "node:fs/promises";
13
14
  import { isUtf8 } from "node:buffer";
14
- import { Duplex, Readable, Transform } from "node:stream";
15
15
  import http from "node:http";
16
16
  import http2 from "node:http2";
17
17
  import https from "node:https";
@@ -1434,118 +1434,49 @@ async function imageInfo(image, engine) {
1434
1434
  }
1435
1435
  // ../sandbox-docker/src/image.ts
1436
1436
  /**
1437
- * The harness adapters an image can bake, and each one's bootstrap. Each pin must match the exact
1438
- * dependency (or `workspace:<version>` for this repo's own adapters); a test enforces it. `patch`
1439
- * is the first 8 hex of the sha256 of the adapter's pnpm patch (`patchedDependencies` in
1440
- * pnpm-workspace.yaml), whose bridge the image bakes; a test holds it to the patch file.
1437
+ * The harness adapters an image can bake. Each pin must match `@reeval/agents`' exact dependency
1438
+ * (or `workspace:<version>` for this repo's own adapters), whose bootstrap the image bakes; a test
1439
+ * enforces it. `patch` is the first 8 hex of the sha256 of the adapter's pnpm patch
1440
+ * (`patchedDependencies` in pnpm-workspace.yaml), whose bridge the image bakes; a test holds it to
1441
+ * the patch file.
1441
1442
  */
1442
1443
  const HARNESS_PACKAGES = {
1443
1444
  cursor: {
1444
1445
  name: "@reeval/harness-cursor-sdk",
1445
- version: "0.1.9",
1446
- bootstrap: {
1447
- name: "Cursor",
1448
- cli: "@cursor/sdk",
1449
- probe: `node -p "'@cursor/sdk ' + require(process.env.HOME + '/.ai-sdk-harness/.harness-bootstrap/cursor-sdk/node_modules/@cursor/sdk/package.json').version"`,
1450
- adapter: async () => (await import("./src-Con14kZF.js")).createCursorSdk()
1451
- }
1446
+ version: "0.1.9"
1452
1447
  },
1453
1448
  "claude-code": {
1454
1449
  name: "@ai-sdk/harness-claude-code",
1455
1450
  version: "1.0.176",
1456
- patch: "a9d56a8c",
1457
- bootstrap: {
1458
- name: "Claude Code",
1459
- cli: "claude",
1460
- adapter: async () => (await import("./dist-DCG7vZGQ.js")).createClaudeCode()
1461
- }
1451
+ patch: "a9d56a8c"
1462
1452
  },
1463
1453
  antigravity: {
1464
1454
  name: "@reeval/harness-antigravity",
1465
- version: "0.1.17",
1466
- bootstrap: {
1467
- name: "Antigravity",
1468
- cli: "agy",
1469
- adapter: async () => (await import("./src-kjTrRKQJ.js")).createAntigravity()
1470
- }
1455
+ version: "0.1.17"
1471
1456
  },
1472
1457
  opencode: {
1473
1458
  name: "@reeval/harness-opencode",
1474
- version: "0.2.16",
1475
- bootstrap: {
1476
- name: "OpenCode",
1477
- cli: "opencode",
1478
- adapter: async () => (await import("./src-2MDgX3cP.js")).createOpenCode({
1479
- auth: { GOOGLE_GENERATIVE_AI_API_KEY: "unused" },
1480
- model: "google/unused"
1481
- })
1482
- }
1459
+ version: "0.2.16"
1483
1460
  },
1484
1461
  goose: {
1485
1462
  name: "@reeval/harness-goose",
1486
- version: "0.1.17",
1487
- bootstrap: {
1488
- name: "Goose",
1489
- cli: "goose",
1490
- adapter: async () => {
1491
- const goose = await import("./src-B8t-GsRm.js");
1492
- return goose.createGoose({
1493
- auth: { GOOGLE_API_KEY: "unused" },
1494
- provider: goose.GEMINI_PROVIDER,
1495
- model: "unused"
1496
- });
1497
- }
1498
- }
1463
+ version: "0.1.17"
1499
1464
  },
1500
1465
  pi: {
1501
1466
  name: "@reeval/harness-pi",
1502
- version: "0.2.10",
1503
- bootstrap: {
1504
- name: "pi",
1505
- cli: "pi",
1506
- adapter: async () => {
1507
- const pi = await import("./src-CRZg669b.js");
1508
- const provider = pi.piProvider("google");
1509
- if ("refused" in provider) throw new Error(provider.refused);
1510
- return pi.createPi({
1511
- auth: { GEMINI_API_KEY: "unused" },
1512
- provider
1513
- });
1514
- }
1515
- }
1467
+ version: "0.2.10"
1516
1468
  },
1517
1469
  codex: {
1518
1470
  name: "@reeval/harness-codex",
1519
- version: "0.1.14",
1520
- bootstrap: {
1521
- name: "Codex",
1522
- cli: "codex",
1523
- adapter: async () => (await import("./src-ZaP7-0pi.js")).createCodex({ auth: { OPENAI_API_KEY: "unused" } })
1524
- }
1471
+ version: "0.1.14"
1525
1472
  },
1526
1473
  fx: {
1527
1474
  name: "@reeval/harness-fx",
1528
- version: "0.1.14",
1529
- bootstrap: {
1530
- name: "fx",
1531
- cli: "fx",
1532
- adapter: async () => (await import("./src-7kshnPZC.js")).createFx({
1533
- auth: { AI_GATEWAY_API_KEY: "unused" },
1534
- model: "unused/unused"
1535
- })
1536
- }
1475
+ version: "0.1.14"
1537
1476
  },
1538
1477
  "grok-build": {
1539
1478
  name: "@reeval/harness-grok-build",
1540
- version: "0.1.13",
1541
- bootstrap: {
1542
- name: "Grok Build",
1543
- cli: "grok",
1544
- adapter: async () => (await import("./src-DP-gPQ5B.js")).createGrokBuild({
1545
- auth: { XAI_API_KEY: "unused" },
1546
- model: "unused"
1547
- })
1548
- }
1479
+ version: "0.1.13"
1549
1480
  }
1550
1481
  };
1551
1482
  /** Every harness with an image, in {@link HARNESS_PACKAGES} order. */
@@ -2074,6 +2005,25 @@ function requestFacts(body) {
2074
2005
  tools: toolCount(parsed)
2075
2006
  };
2076
2007
  }
2008
+ // ../sandbox-docker/src/egress/fill.ts
2009
+ /** The header a filled request names its absolute target URL in. */
2010
+ const FILL_TARGET_HEADER = "reeval-fill-target";
2011
+ /** The header a filled request carries the filler's bearer token in. */
2012
+ const FILL_AUTHORIZATION_HEADER = "reeval-fill-authorization";
2013
+ /**
2014
+ * Why `url` can't be a filler's, or undefined when it can: an `https://` URL with no user, query
2015
+ * or fragment.
2016
+ */
2017
+ function fillerUrlProblem(url) {
2018
+ const parsed = URL.parse(url);
2019
+ if (parsed?.protocol !== "https:") return "is not an https:// URL";
2020
+ if (parsed.username || parsed.password || /[?#]/.test(url)) return "has a user, a query or a fragment, where a filler is an https:// origin and path only";
2021
+ }
2022
+ /** The headers that send a request for `target` to `filler`. */
2023
+ const fillHeaders = (filler, target) => ({
2024
+ [FILL_TARGET_HEADER]: target,
2025
+ [FILL_AUTHORIZATION_HEADER]: `Bearer ${filler.token}`
2026
+ });
2077
2027
  // ../sandbox-docker/src/egress/policy.ts
2078
2028
  /**
2079
2029
  * The Docker sandbox enforces every policy through its egress gateway, records what passes, and
@@ -2384,11 +2334,13 @@ const substitutes = (subs, host) => substitutionsFor(subs, host).length > 0;
2384
2334
  const replaceIn = (value, from, to) => value.includes(from) ? value.split(from).join(to) : value;
2385
2335
  /**
2386
2336
  * The request after its host's substitutions: placeholders replaced in header values, and in the
2387
- * query string (URL-encoded) for those opted in. Returns the names substituted, for logging without values.
2337
+ * query string (URL-encoded) for those opted in. Returns the substitutions applied, and their names
2338
+ * for logging without values.
2388
2339
  */
2389
2340
  function substituteRequest(subs, request) {
2390
2341
  const own = substitutionsFor(subs, request.host);
2391
2342
  const names = /* @__PURE__ */ new Set();
2343
+ const applied = /* @__PURE__ */ new Set();
2392
2344
  const headers = {};
2393
2345
  for (const [key, value] of Object.entries(request.headers)) {
2394
2346
  if (value === void 0) continue;
@@ -2398,6 +2350,7 @@ function substituteRequest(subs, request) {
2398
2350
  if (!s.in.includes("header") || !out.includes(s.placeholder)) continue;
2399
2351
  out = replaceIn(out, s.placeholder, s.value);
2400
2352
  names.add(s.name);
2353
+ applied.add(s);
2401
2354
  }
2402
2355
  return out;
2403
2356
  };
@@ -2411,13 +2364,15 @@ function substituteRequest(subs, request) {
2411
2364
  if (!s.in.includes("query") || !query.includes(s.placeholder)) continue;
2412
2365
  query = replaceIn(query, s.placeholder, encodeURIComponent(s.value));
2413
2366
  names.add(s.name);
2367
+ applied.add(s);
2414
2368
  }
2415
2369
  path = path.slice(0, q) + query;
2416
2370
  }
2417
2371
  return {
2418
2372
  headers,
2419
2373
  path,
2420
- names: [...names]
2374
+ names: [...names],
2375
+ applied: [...applied]
2421
2376
  };
2422
2377
  }
2423
2378
  /**
@@ -2934,6 +2889,38 @@ function createEgressProxy(options) {
2934
2889
  const tokenHosts = derived.flatMap((d) => [d.endpoint.host, ...d.hosts]);
2935
2890
  const locals = options.localResponses ?? [];
2936
2891
  const localHosts = locals.map((l) => l.match.host);
2892
+ const checkFiller = (filler) => {
2893
+ const problem = filler && fillerUrlProblem(filler.url);
2894
+ if (problem) throw new Error(`a filler's URL ${problem}`);
2895
+ };
2896
+ checkFiller(options.credentialFiller?.filler);
2897
+ /**
2898
+ * Where a request goes. To a filler only when every value swapped into it is a filled
2899
+ * reference with that one filler: a filled substitution swapped into its headers or query, one
2900
+ * in bodies when it has a body (which isn't read before it's sent), and the filled credential
2901
+ * in a header a rule set. `mixed` when it would also carry a value the gateway swaps in itself
2902
+ * (a substitution with no filler, a derived token, any other header a rule set) or another
2903
+ * filler's reference: the gateway refuses it, so a filler never sees a real value.
2904
+ * Neither sends it to its own host.
2905
+ */
2906
+ const fillRoute = (own, applied, headers, replaced, hasBody) => {
2907
+ const fillers = /* @__PURE__ */ new Set();
2908
+ let real = false;
2909
+ for (const s of applied) if (s.fill) fillers.add(s.fill);
2910
+ else real = true;
2911
+ if (hasBody) {
2912
+ for (const s of own) if (s.fill && s.in.includes("body")) fillers.add(s.fill);
2913
+ }
2914
+ const credential = options.credentialFiller;
2915
+ for (const name of replaced) if (credential && String(headers[name] ?? "").includes(credential.reference)) fillers.add(credential.filler);
2916
+ else real = true;
2917
+ if (!fillers.size) return {};
2918
+ const [first, ...others] = fillers;
2919
+ const one = others.every((f) => f.url === first?.url && f.token === first?.token);
2920
+ return real || !one ? { mixed: true } : { filler: first };
2921
+ };
2922
+ /** Whether a request has a body, from its framing: HTTP/2's end of stream, else its headers. */
2923
+ const hasBody = (req) => req.httpVersionMajor === 2 ? !req.stream.endAfterHeaders : req.headers["transfer-encoding"] !== void 0 || Number(req.headers["content-length"]) > 0;
2937
2924
  let policyCheck = createPolicyCheck(options.policy, options);
2938
2925
  /** Bumped by `switchPolicy`: a verdict reached under the policy before it is reached again. */
2939
2926
  let generation = 0;
@@ -3564,6 +3551,7 @@ function createEgressProxy(options) {
3564
3551
  headers: {},
3565
3552
  path,
3566
3553
  own: [],
3554
+ applied: [],
3567
3555
  names: [],
3568
3556
  credentials: [],
3569
3557
  refused: {
@@ -3581,6 +3569,7 @@ function createEgressProxy(options) {
3581
3569
  headers: {},
3582
3570
  path,
3583
3571
  own: [],
3572
+ applied: [],
3584
3573
  names: [],
3585
3574
  credentials: [],
3586
3575
  refused: {
@@ -3608,6 +3597,7 @@ function createEgressProxy(options) {
3608
3597
  headers: {},
3609
3598
  path,
3610
3599
  own: [],
3600
+ applied: [],
3611
3601
  names: [],
3612
3602
  credentials: [],
3613
3603
  refused: {
@@ -3659,6 +3649,7 @@ function createEgressProxy(options) {
3659
3649
  headers: substituted.headers,
3660
3650
  path: substituted.path,
3661
3651
  own,
3652
+ applied: substituted.applied,
3662
3653
  names: substituted.names,
3663
3654
  credentials: replaced,
3664
3655
  ...exchange ? { exchange } : {},
@@ -3901,7 +3892,7 @@ function createEgressProxy(options) {
3901
3892
  via: "decrypted",
3902
3893
  requestHeaders: plainHeaders(req.headers)
3903
3894
  });
3904
- const { headers, path, own, names, credentials, refused, exchange, readsModel, readsUsage } = transformed(target, method, asked, sent, req.httpVersion);
3895
+ const { headers, path, own, applied, names, credentials, refused, exchange, readsModel, readsUsage } = transformed(target, method, asked, sent, req.httpVersion);
3905
3896
  t.set({
3906
3897
  substituted: names,
3907
3898
  credentials,
@@ -3911,10 +3902,16 @@ function createEgressProxy(options) {
3911
3902
  model: !!readsModel,
3912
3903
  usage: !!readsUsage
3913
3904
  };
3914
- if (refused) {
3915
- t.refuse(refused.reason);
3905
+ const route = fillRoute(own, applied, headers, credentials, hasBody(req));
3906
+ const refusal = refused ?? (route.mixed && {
3907
+ status: 403,
3908
+ reason: mixedReason(method, url)
3909
+ });
3910
+ if (refusal) {
3911
+ if (route.mixed) log(`reeval:egress ${method} ${url} refused (filled and real values)`);
3912
+ t.refuse(refusal.reason);
3916
3913
  req.resume();
3917
- return res.writeHead(refused.status, { "content-type": "text/plain" }).end(`${refused.reason}\n`);
3914
+ return res.writeHead(refusal.status, { "content-type": "text/plain" }).end(`${refusal.reason}\n`);
3918
3915
  }
3919
3916
  const local = locals.find((l) => onEndpoint([l.match], {
3920
3917
  host: target.host,
@@ -3937,8 +3934,42 @@ function createEgressProxy(options) {
3937
3934
  }
3938
3935
  delete headers.upgrade;
3939
3936
  delete headers.connection;
3940
- const body = requestBody(req, headers, own, t, !!readsModel || setsCredential(rules, target.host) || substitutes(allSubs(), target.host) || hostAllowed(tokenHosts, target.host));
3937
+ const readsEffort = !!readsModel || setsCredential(rules, target.host) || substitutes(allSubs(), target.host) || hostAllowed(tokenHosts, target.host);
3941
3938
  const authority = authorityOf(target.host, target.port);
3939
+ const { filler } = route;
3940
+ if (filler) {
3941
+ const body = requestBody(req, headers, own.filter((s) => s.fill), t, readsEffort);
3942
+ const to = new URL(filler.url);
3943
+ log(`reeval:egress ${method} ${url} sent to its filler`);
3944
+ const upstream = https.request({
3945
+ host: to.hostname,
3946
+ port: to.port || 443,
3947
+ method,
3948
+ path: to.pathname,
3949
+ headers: {
3950
+ ...headers,
3951
+ host: to.host,
3952
+ ...fillHeaders(filler, `https://${authority}${path}`)
3953
+ },
3954
+ agent,
3955
+ ca
3956
+ });
3957
+ const token = {
3958
+ ...fillerToken,
3959
+ value: filler.token,
3960
+ hosts: [target.host]
3961
+ };
3962
+ return forwardHttp1(body, res, upstream, {
3963
+ own: [...own, token],
3964
+ creds: credentialScrubs(target.host),
3965
+ url,
3966
+ ...exchange ? { exchange } : {},
3967
+ ...t ? { t } : {},
3968
+ reads,
3969
+ unreachable: "its filler could not be reached"
3970
+ });
3971
+ }
3972
+ const body = requestBody(req, headers, own, t, readsEffort);
3942
3973
  const session = req.httpVersionMajor === 2 ? await upstreamSession(target) : null;
3943
3974
  if (!session) return forwardHttp1(body, res, https.request({
3944
3975
  ...reachAt(target),
@@ -4000,6 +4031,13 @@ function createEgressProxy(options) {
4000
4031
  responseBody(up, plan, t, reads).once("error", () => res.destroy()).pipe(res);
4001
4032
  return true;
4002
4033
  }
4034
+ /** The filler's token, scrubbed from what its filler answers. */
4035
+ const fillerToken = {
4036
+ name: "filler token",
4037
+ placeholder: "reeval_redacted_filler_token",
4038
+ in: []
4039
+ };
4040
+ const mixedReason = (method, url) => `reeval egress gateway: refused ${method} ${url}. It carries a secret its filler fills and a value reeval swaps in itself, so it can go neither to the filler nor to its host; send them in separate requests.`;
4003
4041
  function forwardHttp1(req, res, upstream, to) {
4004
4042
  const { own, creds, url, exchange, t } = to;
4005
4043
  upstream.once("response", (up) => {
@@ -4011,11 +4049,13 @@ function createEgressProxy(options) {
4011
4049
  });
4012
4050
  });
4013
4051
  upstream.once("error", (error) => {
4052
+ const reason = to.unreachable ?? failure(error);
4053
+ if (to.unreachable) log(`reeval:egress ${url}: ${to.unreachable}: ${failure(error)}`);
4014
4054
  t?.set({
4015
4055
  status: 502,
4016
- reason: failure(error)
4056
+ reason
4017
4057
  });
4018
- if (!res.headersSent) res.writeHead(502).end(`reeval egress gateway: ${failure(error)}\n`);
4058
+ if (!res.headersSent) res.writeHead(502).end(`reeval egress gateway: ${reason}\n`);
4019
4059
  else res.destroy();
4020
4060
  });
4021
4061
  req.pipe(upstream);
@@ -4023,7 +4063,7 @@ function createEgressProxy(options) {
4023
4063
  function onUpgrade(target, req, socket, head) {
4024
4064
  const method = req.method ?? "GET";
4025
4065
  const startedAt = Date.now();
4026
- const { headers, path, own, names, credentials, refused } = transformed(target, method, req.url ?? "/", req.headers, req.httpVersion);
4066
+ const { headers, path, own, applied, names, credentials, refused } = transformed(target, method, req.url ?? "/", req.headers, req.httpVersion);
4027
4067
  const all = scrubs ? [...own, ...credentialScrubs(target.host)] : [];
4028
4068
  const scrubbed = (value) => scrubValue(all, value);
4029
4069
  if (all.length) delete headers["sec-websocket-extensions"];
@@ -4051,6 +4091,16 @@ function createEgressProxy(options) {
4051
4091
  });
4052
4092
  return reply(socket, refused.status, refused.reason);
4053
4093
  }
4094
+ const route = fillRoute(own, applied, headers, credentials, true);
4095
+ if (route.filler || route.mixed) {
4096
+ const reason = `reeval egress gateway: ${method} https://${target.host}${pathOnly(req.url ?? "/")} carries a secret its filler fills, which takes no upgrades`;
4097
+ upgraded({
4098
+ allowed: false,
4099
+ status: 501,
4100
+ reason
4101
+ });
4102
+ return reply(socket, 501, reason);
4103
+ }
4054
4104
  const upstream = https.request({
4055
4105
  ...reachAt(target),
4056
4106
  servername: net.isIP(target.host) ? void 0 : target.host,
@@ -4170,6 +4220,7 @@ function createEgressProxy(options) {
4170
4220
  }));
4171
4221
  },
4172
4222
  setSubstitutions(all) {
4223
+ for (const s of all) checkFiller(s.fill);
4173
4224
  subs = [...all];
4174
4225
  },
4175
4226
  close() {
@@ -5380,11 +5431,6 @@ const bakeKey = (...inputs) => sha256([BAKE_REVISION, ...inputs].join("\0")).sli
5380
5431
  * {@link bakeKey} covers the toolchain layer, so a change to the sandbox user or paths builds anew.
5381
5432
  */
5382
5433
  const harnessImageFor = (harness, from) => `${imageFor(harness)}-${slugify(from, 40) || "image"}-${bakeKey(toolchainDockerfile(from))}`;
5383
- /**
5384
- * The adapter whose bootstrap `harness`'s image bakes. An attempt whose adapter asks for any other
5385
- * bootstrap reinstalls the CLI at start, which a restricted egress policy can refuse.
5386
- */
5387
- const bakedAdapter = (harness) => HARNESS_PACKAGES[harness].bootstrap.adapter();
5388
5434
  /** Keeps the image's `PATH` in login shells, which Debian's `/etc/profile` resets. */
5389
5435
  const profilePathScript = () => readFileSync(join(DOCKER_CONTEXT, "reeval-path.sh")).toString("base64");
5390
5436
  /** `from` as it goes after `FROM`: one word, so it can't add a stage name or another instruction. */
@@ -5621,11 +5667,10 @@ const imageKey = (info) => info.id;
5621
5667
  * intermediate `-base` tag of a `from` build, are removed once the new one is committed.
5622
5668
  */
5623
5669
  async function buildImage(log, options) {
5624
- const { harness, from, signal, engine } = options;
5670
+ const { harness, bootstrap, from, signal, engine } = options;
5625
5671
  const resolved = from ? await resolveFrom(from, signal, engine) : null;
5626
5672
  const digest = resolved && "digest" in resolved ? resolved.digest : null;
5627
5673
  const pinned = from && digest && resolved && "local" in resolved && !resolved.local && !from.includes("@") ? `${from}@${digest}` : from;
5628
- const { bootstrap } = HARNESS_PACKAGES[harness];
5629
5674
  const base = from ? `${harnessImageFor(harness, from)}-base` : BASE_IMAGE;
5630
5675
  const target = from ? harnessImageFor(harness, from) : imageFor(harness);
5631
5676
  const shared = !!resolved && "local" in resolved && !resolved.local;
@@ -5726,16 +5771,16 @@ async function buildImage(log, options) {
5726
5771
  };
5727
5772
  }
5728
5773
  /**
5729
- * Runs `harness`'s bootstrap in `session` (a container, or a VM reeval then keeps as an image)
5730
- * and returns the CLI version it installed.
5774
+ * Runs `bootstrap` in `session` (a container, or a VM reeval then keeps as an image) and returns
5775
+ * the CLI version it installed.
5731
5776
  */
5732
- const bakeHarness = (session, harness) => bake(session, HARNESS_PACKAGES[harness].bootstrap);
5777
+ const bakeHarness = (session, bootstrap) => bake(session, bootstrap);
5733
5778
  /**
5734
- * A hash of the bootstrap `harness`'s adapter applies (its files and commands): it changes
5735
- * whenever what the bootstrap installs does, version bump or not.
5779
+ * A hash of what `bootstrap`'s adapter applies (its files and commands): it changes whenever
5780
+ * what the bootstrap installs does, version bump or not.
5736
5781
  */
5737
- async function bakedRecipe(harness) {
5738
- const recipe = await (await HARNESS_PACKAGES[harness].bootstrap.adapter()).getBootstrap?.({});
5782
+ async function bakedRecipe(bootstrap) {
5783
+ const recipe = await (await bootstrap.adapter()).getBootstrap?.({});
5739
5784
  if (!recipe) return "none";
5740
5785
  const files = [...recipe.files].sort((a, b) => a.path.localeCompare(b.path)).map((f) => [f.path, f.content]);
5741
5786
  return createHash("sha256").update(JSON.stringify([
@@ -5745,8 +5790,6 @@ async function bakedRecipe(harness) {
5745
5790
  recipe.commands
5746
5791
  ])).digest("hex").slice(0, 16);
5747
5792
  }
5748
- /** The harness's name, as a bake's progress says it. */
5749
- const bakedHarnessName = (harness) => HARNESS_PACKAGES[harness].bootstrap.name;
5750
5793
  /** Runs the harness bootstrap in `session` and returns the CLI version it installed. */
5751
5794
  async function bake(session, bootstrap) {
5752
5795
  await (await createHarnessSandboxTemplate({
@@ -6991,6 +7034,6 @@ async function connectSsh(options) {
6991
7034
  })
6992
7035
  };
6993
7036
  }
6994
- export { PRIVILEGED_CAPABILITIES as $, onDockerCommand as $t, dockerfileBases as A, SANDBOX_USER as At, isLocalKey as B, dockerOk as Bt, bakedHarnessName as C, normalizeImageId as Cn, BRIDGE_PORT as Ct, buildInstallLayer as D, SANDBOX_HOME as Dt, buildImage as E, LABEL$1 as Et, harnessImageFor as F, isBakedHarness as Ft, pruneImages as G, removeContainerDetached as Gt, pluginBuildDir as H, imageInfo as Ht, imageKey as I, slotLayout as It, sourceTreeHash as J, controlPathFits as Jt, reevalImageKey as K, SSH_OPTIONS as Kt, installLayerLines as L, docker as Lt, dockerfileKey as M, adapterVersion as Mt, dockerfileTag as N, harnessLabel as Nt, buildPluginLayer as O, SANDBOX_ROOT as Ot, fromImageKey as P, imageFor as Pt, EgressUnavailableError as Q, OPAQUE_OUTPUT as Qt, installLayerTag as R, dockerAvailable as Rt, bakedAdapter as S, isRemoteEngine as Sn, BASE_IMAGE as St, buildDockerfile as T, HARNESS_PACKAGES as Tt, pluginBuildKey as U, imageTags as Ut, localKey as V, dockerState as Vt, pluginLayerTag as W, isRegistryDigest as Wt, usesReevalBase as X, sshArgv as Xt, toolchainDockerfile as Y, privateDir as Yt, DEFAULT_LIMITS as Z, sshTransport as Zt, PLUGIN_BUILDS_DIR as _, parseBuildOutput as _n, PACKAGE_HOSTS as _t, darwinShell as a, extractTar as an, removeOrphans as at, bakeHarness as b, dockerSeccompFile as bn, requestFacts as bt, enginePlatform as c, safeTarPath as cn, startGateway as ct, registryProblem as d, dockerignoreMatcher as dn, placeholder as dt, traceDocker as en, ROOT_CAPABILITIES as et, registryRef as f, ImageBuildError as fn, applyTransformations as ft, PLATFORM as g, isTransient as gn, HARNESS_HOSTS as gt, NODE_IMAGE as h, failureCause as hn, DOCKER_EGRESS as ht, transportSession as i, spawnEngine as in, ownerLabel as it, dockerfileFinalBase as j, WORKSPACE_DIR as jt, contextHash as k, SANDBOX_STATE as kt, pullLayer as l, writeTar as ln, MODEL_FIELD as lt, DOCKER_CONTEXT as m, causeLine as mn, onEndpoint as mt, keepHomeCopy as n, isSshFailure as nn, dockerSandboxProvider as nt, parseImageRef as o, readTar as on, CA_PATH as ot, MCP_TIMER as p, RETRY_DELAYS as pn, matches as pt, resolveFrom as q, controlOptions as qt, resetSlot as r, remoteBuild as rn, pathOperations as rt, registryDigest as s, readTree as sn, PROXY_PORT as st, connectSsh as t, hostCommand as tn, createDockerSession as tt, pushLayer as u, contextFiles as un, usageReader as ut, PNPM_VERSION as v, retryTransient as vn, defaultAllowedHosts as vt, bakedRecipe as w, DEFAULT_IMAGE as wt, bakeKey as x, engineSpec as xn, BAKED_HARNESSES as xt, REEVAL_BASE_ARG as y, ENGINES as yn, hostAllowed as yt, installScript as z, dockerCapacity as zt };
7037
+ export { createDockerSession as $, sshTransport as $t, dockerfileKey as A, SANDBOX_ROOT as At, pluginBuildDir as B, dockerAvailable as Bt, buildDockerfile as C, engineSpec as Cn, BAKED_HARNESSES as Ct, contextHash as D, HARNESS_PACKAGES as Dt, buildPluginLayer as E, DEFAULT_IMAGE as Et, installLayerLines as F, harnessLabel as Ft, resolveFrom as G, imageTags as Gt, pluginLayerTag as H, dockerOk as Ht, installLayerTag as I, imageFor as It, usesReevalBase as J, SSH_OPTIONS as Jt, sourceTreeHash as K, isRegistryDigest as Kt, installScript as L, isBakedHarness as Lt, fromImageKey as M, SANDBOX_USER as Mt, harnessImageFor as N, WORKSPACE_DIR as Nt, dockerfileBases as O, LABEL$1 as Ot, imageKey as P, adapterVersion as Pt, ROOT_CAPABILITIES as Q, sshArgv as Qt, isLocalKey as R, slotLayout as Rt, bakedRecipe as S, dockerSeccompFile as Sn, requestFacts as St, buildInstallLayer as T, normalizeImageId as Tn, BRIDGE_PORT as Tt, pruneImages as U, dockerState as Ut, pluginBuildKey as V, dockerCapacity as Vt, reevalImageKey as W, imageInfo as Wt, EgressUnavailableError as X, controlPathFits as Xt, DEFAULT_LIMITS as Y, controlOptions as Yt, PRIVILEGED_CAPABILITIES as Z, privateDir as Zt, PLUGIN_BUILDS_DIR as _, failureCause as _n, hostAllowed as _t, darwinShell as a, remoteBuild as an, PROXY_PORT as at, bakeHarness as b, retryTransient as bn, fillHeaders as bt, enginePlatform as c, readTar as cn, usageReader as ct, registryProblem as d, writeTar as dn, matches as dt, OPAQUE_OUTPUT as en, dockerSandboxProvider as et, registryRef as f, contextFiles as fn, onEndpoint as ft, PLATFORM as g, causeLine as gn, defaultAllowedHosts as gt, NODE_IMAGE as h, RETRY_DELAYS as hn, PACKAGE_HOSTS as ht, transportSession as i, isSshFailure as in, CA_PATH as it, dockerfileTag as j, SANDBOX_STATE as jt, dockerfileFinalBase as k, SANDBOX_HOME as kt, pullLayer as l, readTree as ln, placeholder as lt, DOCKER_CONTEXT as m, ImageBuildError as mn, HARNESS_HOSTS as mt, keepHomeCopy as n, traceDocker as nn, ownerLabel as nt, parseImageRef as o, spawnEngine as on, startGateway as ot, MCP_TIMER as p, dockerignoreMatcher as pn, DOCKER_EGRESS as pt, toolchainDockerfile as q, removeContainerDetached as qt, resetSlot as r, hostCommand as rn, removeOrphans as rt, registryDigest as s, extractTar as sn, MODEL_FIELD as st, connectSsh as t, onDockerCommand as tn, pathOperations as tt, pushLayer as u, safeTarPath as un, applyTransformations as ut, PNPM_VERSION as v, isTransient as vn, FILL_AUTHORIZATION_HEADER as vt, buildImage as w, isRemoteEngine as wn, BASE_IMAGE as wt, bakeKey as x, ENGINES as xn, fillerUrlProblem as xt, REEVAL_BASE_ARG as y, parseBuildOutput as yn, FILL_TARGET_HEADER as yt, localKey as z, docker as zt };
6995
7038
 
6996
- //# sourceMappingURL=src-CEValY4l.js.map
7039
+ //# sourceMappingURL=src-B3sBDfG2.js.map