reeval 0.20.0 → 0.21.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 +803 -0
  2. package/README.md +15 -15
  3. package/assets/gateway-models.mjs +65 -31
  4. package/dist/{adapter-C60z3wLq.js → adapter-BdzhdRYo.js} +8 -6
  5. package/dist/adapter-BdzhdRYo.js.map +1 -0
  6. package/dist/{agent-BmsMXZXx.js → agent-Dx-bDmlV.js} +179 -31
  7. package/dist/agent-Dx-bDmlV.js.map +1 -0
  8. package/dist/{agents-DXuFxtGC.js → agents-l0-k7vw3.js} +361 -101
  9. package/dist/agents-l0-k7vw3.js.map +1 -0
  10. package/dist/{app-files-DT5mJyV4.js → app-files-B-CQYB0c.js} +3 -3
  11. package/dist/app-files-B-CQYB0c.js.map +1 -0
  12. package/dist/{assemble-CE4pHKIa.js → assemble-CYMpN8LC.js} +1 -1
  13. package/dist/{assemble-DM2PNU4R.js → assemble-CsZIcJo8.js} +171 -18
  14. package/dist/assemble-CsZIcJo8.js.map +1 -0
  15. package/dist/{attempt-CAdlwlNu.js → attempt-CKfKsqqw.js} +2 -2
  16. package/dist/{attempt-CAdlwlNu.js.map → attempt-CKfKsqqw.js.map} +1 -1
  17. package/dist/{attempt-host-7VviAJrl.js → attempt-host-BwSmNYkX.js} +17 -8
  18. package/dist/attempt-host-BwSmNYkX.js.map +1 -0
  19. package/dist/{boat-BjLqFJIZ.js → boat-CZpAreTB.js} +3 -3
  20. package/dist/{boat-BjLqFJIZ.js.map → boat-CZpAreTB.js.map} +1 -1
  21. package/dist/{boat-DSNgZt-t.js → boat-su1Y7LPd.js} +17 -14
  22. package/dist/boat-su1Y7LPd.js.map +1 -0
  23. package/dist/bridge/index.mjs +6 -1
  24. package/dist/{capture-Ccf0Hmyx.js → capture-BqIAeFyC.js} +55 -29
  25. package/dist/{capture-Ccf0Hmyx.js.map → capture-BqIAeFyC.js.map} +1 -1
  26. package/dist/capture-D0Ln5aCP.js +1 -0
  27. package/dist/{cases-z9E6DCd5.js → cases-CM-MQRQp.js} +133 -19
  28. package/dist/cases-CM-MQRQp.js.map +1 -0
  29. package/dist/cases-FvhbM8M5.js +1 -0
  30. package/dist/{cli-DTuLSlmW.js → cli-s_3opn_I.js} +219 -109
  31. package/dist/cli-s_3opn_I.js.map +1 -0
  32. package/dist/{cli-spec-Dsr79Qy1.js → cli-spec-DxzIjmq_.js} +109 -26
  33. package/dist/cli-spec-DxzIjmq_.js.map +1 -0
  34. package/dist/cli.js +2 -2
  35. package/dist/client-C5fIzHQa.js +803 -0
  36. package/dist/client-C5fIzHQa.js.map +1 -0
  37. package/dist/{command-DSL7I-SI.js → command-B5OAIjp7.js} +25 -21
  38. package/dist/command-B5OAIjp7.js.map +1 -0
  39. package/dist/{command-C2C7P5qo.js → command-BJ7KqczP.js} +10 -10
  40. package/dist/{command-C2C7P5qo.js.map → command-BJ7KqczP.js.map} +1 -1
  41. package/dist/{command-D8oMB2fa.js → command-BXLZsEwQ.js} +16 -16
  42. package/dist/{command-D8oMB2fa.js.map → command-BXLZsEwQ.js.map} +1 -1
  43. package/dist/{command-Ff0T-1Hi.js → command-DA_SHQUQ.js} +16 -16
  44. package/dist/{command-Ff0T-1Hi.js.map → command-DA_SHQUQ.js.map} +1 -1
  45. package/dist/{commands-xAOi_VEk.js → commands-BKBamOcX.js} +174 -40
  46. package/dist/commands-BKBamOcX.js.map +1 -0
  47. package/dist/{commands-Bk9NG1s_.js → commands-BPvAOEmb.js} +1 -1
  48. package/dist/{config-SvK8pjEK.js → config-C0URar0t.js} +255 -89
  49. package/dist/config-C0URar0t.js.map +1 -0
  50. package/dist/{context-BdgCao9Q.js → context-Sj58aJEu.js} +2 -2
  51. package/dist/{context-BdgCao9Q.js.map → context-Sj58aJEu.js.map} +1 -1
  52. package/dist/{cost-BdRgySQl.js → cost-C21gGrju.js} +19 -9
  53. package/dist/cost-C21gGrju.js.map +1 -0
  54. package/dist/cost-IM80LyGD.js +1 -0
  55. package/dist/{cursor-catalog-DEzan4IT.js → cursor-catalog-FWgSo-T1.js} +4 -4
  56. package/dist/{cursor-catalog-DEzan4IT.js.map → cursor-catalog-FWgSo-T1.js.map} +1 -1
  57. package/dist/db-Bc4L-Wcr.js +2 -0
  58. package/dist/{db-BzOJ4Js4.js → db-BjAWxVAG.js} +142 -248
  59. package/dist/db-BjAWxVAG.js.map +1 -0
  60. package/dist/debug-CIXzB4wK.js.map +1 -1
  61. package/dist/{default-effort-BBDPbJ4D.js → default-effort-CWlhZ6U1.js} +1 -1
  62. package/dist/{default-effort-BDKIxJyC.js → default-effort-Ck2GYIxX.js} +4 -4
  63. package/dist/{default-effort-BDKIxJyC.js.map → default-effort-Ck2GYIxX.js.map} +1 -1
  64. package/dist/{dist-Db7ifchA.js → dist-DeqeCUZe.js} +5 -5
  65. package/dist/{dist-Db7ifchA.js.map → dist-DeqeCUZe.js.map} +1 -1
  66. package/dist/{docker-DG_uFgn2.js → docker-CDdK6Ity.js} +41 -16
  67. package/dist/docker-CDdK6Ity.js.map +1 -0
  68. package/dist/{docker-DFrjoNs-.js → docker-D74l67k8.js} +4 -4
  69. package/dist/{docker-DFrjoNs-.js.map → docker-D74l67k8.js.map} +1 -1
  70. package/dist/{docker--mukta3L.js → docker-DMug3l-a.js} +1 -1
  71. package/dist/{doctor-DWK4ttex.js → doctor-eFxyn6at.js} +85 -46
  72. package/dist/doctor-eFxyn6at.js.map +1 -0
  73. package/dist/{environment-cPMCOk-h.js → environment-CJIKz-Ud.js} +49 -11
  74. package/dist/environment-CJIKz-Ud.js.map +1 -0
  75. package/dist/{errors-BZgLSZtV.js → errors-C1GBcWE2.js} +2 -2
  76. package/dist/{errors-BZgLSZtV.js.map → errors-C1GBcWE2.js.map} +1 -1
  77. package/dist/{eval-source-C9b1h8L6.js → eval-source-CXIRJ91v.js} +24 -12
  78. package/dist/eval-source-CXIRJ91v.js.map +1 -0
  79. package/dist/{evaluate-B12Tosvq.js → evaluate-DA4QsrHO.js} +792 -281
  80. package/dist/evaluate-DA4QsrHO.js.map +1 -0
  81. package/dist/{evaluate-COdzf7Hl.d.ts → evaluate-DHrU4Wld.d.ts} +2 -2
  82. package/dist/fake-bootstrap-CnwWG3kP.js +15 -0
  83. package/dist/fake-bootstrap-CnwWG3kP.js.map +1 -0
  84. package/dist/{files-BOBdC0uI.js → files-BVVWAS0A.js} +6 -6
  85. package/dist/{files-BOBdC0uI.js.map → files-BVVWAS0A.js.map} +1 -1
  86. package/dist/files-BaqXvB88.js +1 -0
  87. package/dist/{files-tiNWe8Ih.js → files-Bey1VAex.js} +3 -3
  88. package/dist/{files-tiNWe8Ih.js.map → files-Bey1VAex.js.map} +1 -1
  89. package/dist/files-BjOJw4sn.js +1 -0
  90. package/dist/{files-DgXyaAg6.js → files-BrGVs4gY.js} +2 -2
  91. package/dist/{files-DgXyaAg6.js.map → files-BrGVs4gY.js.map} +1 -1
  92. package/dist/files-CNHhSyb3.js +1 -0
  93. package/dist/files-CW1lChNh.js +1 -0
  94. package/dist/{files-F5EG0WPT.js → files-D6j-XpaK.js} +5 -5
  95. package/dist/{files-F5EG0WPT.js.map → files-D6j-XpaK.js.map} +1 -1
  96. package/dist/{files-s28a6czq.js → files-F44NRCN0.js} +143 -20
  97. package/dist/files-F44NRCN0.js.map +1 -0
  98. package/dist/{files-DlQshsks.js → files-g1watgRC.js} +2 -2
  99. package/dist/{files-DlQshsks.js.map → files-g1watgRC.js.map} +1 -1
  100. package/dist/gateway.d.ts +1 -1
  101. package/dist/{git-BpoqEgDV.js → git-Jqkf9SBa.js} +3 -3
  102. package/dist/{git-BpoqEgDV.js.map → git-Jqkf9SBa.js.map} +1 -1
  103. package/dist/{harness-DXv2gnaT.js → harness-FcTyyPco.js} +17 -8
  104. package/dist/harness-FcTyyPco.js.map +1 -0
  105. package/dist/{harness-C2berMiM.js → harness-nwnyghJZ.js} +14 -11
  106. package/dist/{harness-C2berMiM.js.map → harness-nwnyghJZ.js.map} +1 -1
  107. package/dist/harness.d.ts +11 -8
  108. package/dist/harness.js +1 -1
  109. package/dist/{ids-C_advdJA.js → ids-B-JKTCP8.js} +2 -2
  110. package/dist/{ids-C_advdJA.js.map → ids-B-JKTCP8.js.map} +1 -1
  111. package/dist/{images-D2jFze2v.js → images-Dsc4Wi-F.js} +65 -30
  112. package/dist/images-Dsc4Wi-F.js.map +1 -0
  113. package/dist/index.d.ts +46 -7
  114. package/dist/index.js +6 -6
  115. package/dist/init-C0oUG3jh.js +1 -0
  116. package/dist/{init-Bi1Q3lRi.js → init-QB5ecPDA.js} +33 -14
  117. package/dist/init-QB5ecPDA.js.map +1 -0
  118. package/dist/{ink-list-BpfidQ1h.js → ink-list-mCJypk3d.js} +2 -2
  119. package/dist/{ink-list-BpfidQ1h.js.map → ink-list-mCJypk3d.js.map} +1 -1
  120. package/dist/{invocations-CxGNOlh0.js → invocations-BSr4lRzI.js} +5 -5
  121. package/dist/{invocations-CxGNOlh0.js.map → invocations-BSr4lRzI.js.map} +1 -1
  122. package/dist/{judge-COMXT1Hx.js → judge-eGH39PaP.js} +12 -10
  123. package/dist/{judge-COMXT1Hx.js.map → judge-eGH39PaP.js.map} +1 -1
  124. package/dist/judge.d.ts +3 -1
  125. package/dist/judge.js +1 -1
  126. package/dist/{judgments-CzgpsTqv.js → judgments-Cj8bFaDG.js} +2 -2
  127. package/dist/{judgments-CzgpsTqv.js.map → judgments-Cj8bFaDG.js.map} +1 -1
  128. package/dist/{layout-Cm85tQYk.js → layout-DfQa4mJs.js} +14 -11
  129. package/dist/layout-DfQa4mJs.js.map +1 -0
  130. package/dist/{list-DuThsE28.js → list-Dh6T0kdr.js} +23 -12
  131. package/dist/{list-DuThsE28.js.map → list-Dh6T0kdr.js.map} +1 -1
  132. package/dist/live-DwjWJTdn.js +1 -0
  133. package/dist/{live-CgYbO4Te.js → live-xTZs0c61.js} +2 -2
  134. package/dist/{live-CgYbO4Te.js.map → live-xTZs0c61.js.map} +1 -1
  135. package/dist/{live-DL0se4Zd.js → live-y1p3oNXH.js} +9 -9
  136. package/dist/{live-DL0se4Zd.js.map → live-y1p3oNXH.js.map} +1 -1
  137. package/dist/{model-CwwkrCb7.js → model-3pZZzloU.js} +7 -5
  138. package/dist/model-3pZZzloU.js.map +1 -0
  139. package/dist/{model-CkNVAxob.js → model-DEjwetkJ.js} +1 -1
  140. package/dist/{model-V3mMXp6x.js → model-DNpKiHqO.js} +6 -6
  141. package/dist/{model-V3mMXp6x.js.map → model-DNpKiHqO.js.map} +1 -1
  142. package/dist/model-calls-B0BoQfJ4.js +95 -0
  143. package/dist/model-calls-B0BoQfJ4.js.map +1 -0
  144. package/dist/{model-cgt5uvu8.js → model-jRKSQBg6.js} +5 -5
  145. package/dist/{model-cgt5uvu8.js.map → model-jRKSQBg6.js.map} +1 -1
  146. package/dist/model-nfewGTzB.js +1 -0
  147. package/dist/{node-D7pAU--0.js → node-DM-mLGdX.js} +7 -7
  148. package/dist/{node-D7pAU--0.js.map → node-DM-mLGdX.js.map} +1 -1
  149. package/dist/{opencode-providers-BGiXt8_B.js → opencode-providers-ChJTQRmz.js} +5 -2
  150. package/dist/{opencode-providers-BGiXt8_B.js.map → opencode-providers-ChJTQRmz.js.map} +1 -1
  151. package/dist/{openrouter-models-Cw1z8-sq.js → openrouter-models-C0aRo633.js} +2 -2
  152. package/dist/{openrouter-models-Cw1z8-sq.js.map → openrouter-models-C0aRo633.js.map} +1 -1
  153. package/dist/options-DpsJ_5CU.js +1 -0
  154. package/dist/{patch-DAi1nCuH.js → patch-Bx-qp8Li.js} +2 -2
  155. package/dist/{patch-DAi1nCuH.js.map → patch-Bx-qp8Li.js.map} +1 -1
  156. package/dist/pi-providers-HygmL1y-.js +552 -0
  157. package/dist/pi-providers-HygmL1y-.js.map +1 -0
  158. package/dist/{plain-BYUf_fUV.js → plain-Ctn8oUdp.js} +44 -10
  159. package/dist/plain-Ctn8oUdp.js.map +1 -0
  160. package/dist/{plan-CsPilzpk.js → plan-ChO0A-xn.js} +63 -12
  161. package/dist/plan-ChO0A-xn.js.map +1 -0
  162. package/dist/{plugins-BfnhazOv.js → plugins-BioMWncI.js} +636 -9
  163. package/dist/plugins-BioMWncI.js.map +1 -0
  164. package/dist/{preflight-D1C-iH0U.js → preflight-BUjk_6wT.js} +1 -1
  165. package/dist/{preflight-GkpgrBxP.js → preflight-CJSGzMzc.js} +8 -9
  166. package/dist/preflight-CJSGzMzc.js.map +1 -0
  167. package/dist/preflight-DD3fI4Hz.js +1 -0
  168. package/dist/{preflight-BixaE4BA.js → preflight-qFCXmxha.js} +4 -4
  169. package/dist/{preflight-BixaE4BA.js.map → preflight-qFCXmxha.js.map} +1 -1
  170. package/dist/{prepare-DQEDXoDp.js → prepare-D7oSSFNm.js} +9 -9
  171. package/dist/{prepare-DQEDXoDp.js.map → prepare-D7oSSFNm.js.map} +1 -1
  172. package/dist/{prepare-C--rM_wO.js → prepare-xHU2BpN-.js} +2 -2
  173. package/dist/prices-B1vm_lPk.js +1 -0
  174. package/dist/{prices-5m3SzMZ3.js → prices-BrY_ihLs.js} +80 -22
  175. package/dist/prices-BrY_ihLs.js.map +1 -0
  176. package/dist/{provenance-BXyYwUC8.js → provenance-B-flBAzR.js} +5 -5
  177. package/dist/{provenance-BXyYwUC8.js.map → provenance-B-flBAzR.js.map} +1 -1
  178. package/dist/provider-DHT20Gl8.js +1 -0
  179. package/dist/{provider-BxzZq3Th.js → provider-ieWOn4YS.js} +2 -2
  180. package/dist/{provider-BxzZq3Th.js.map → provider-ieWOn4YS.js.map} +1 -1
  181. package/dist/provider-stop-CxzWW7Ft.js +69 -0
  182. package/dist/provider-stop-CxzWW7Ft.js.map +1 -0
  183. package/dist/{providers-1p4HKYIp.js → providers-B6StVyfG.js} +215 -48
  184. package/dist/providers-B6StVyfG.js.map +1 -0
  185. package/dist/providers-Dljf6al6.js +1 -0
  186. package/dist/query-BAc2tQZj.js +1 -0
  187. package/dist/{query-DhhU9ADI.js → query-CkLmJv7R.js} +2 -2
  188. package/dist/{query-DhhU9ADI.js.map → query-CkLmJv7R.js.map} +1 -1
  189. package/dist/{questions-CMAq4pr8.js → questions-CJIh2FSX.js} +7 -7
  190. package/dist/{questions-CMAq4pr8.js.map → questions-CJIh2FSX.js.map} +1 -1
  191. package/dist/{record-6IUzwP9K.js → record-nVVujCW7.js} +2 -2
  192. package/dist/{record-6IUzwP9K.js.map → record-nVVujCW7.js.map} +1 -1
  193. package/dist/{redact-BhjtnjrU.js → redact-DL2BTykw.js} +17 -2
  194. package/dist/redact-DL2BTykw.js.map +1 -0
  195. package/dist/{remarks-BNABzemt.js → remarks-B3wjKscW.js} +46 -11
  196. package/dist/remarks-B3wjKscW.js.map +1 -0
  197. package/dist/{remarks-D9Lcd1fF.js → remarks-BpdM_2RC.js} +2 -1
  198. package/dist/remarks-BpdM_2RC.js.map +1 -0
  199. package/dist/remarks-CleoDlYw.js +1 -0
  200. package/dist/{remarks-DPCONFxZ.js → remarks-DqriPKxm.js} +3 -2
  201. package/dist/{remarks-DPCONFxZ.js.map → remarks-DqriPKxm.js.map} +1 -1
  202. package/dist/{remote-U7fNt0UP.js → remote-C88amFRN.js} +6 -6
  203. package/dist/{remote-U7fNt0UP.js.map → remote-C88amFRN.js.map} +1 -1
  204. package/dist/resolve-Bul8lHaa.js +205 -0
  205. package/dist/resolve-Bul8lHaa.js.map +1 -0
  206. package/dist/resolve-DW92wpIZ.js +1 -0
  207. package/dist/{resolve-Cx3a9UQ2.js → resolve-G576PiFJ.js} +14 -11
  208. package/dist/resolve-G576PiFJ.js.map +1 -0
  209. package/dist/{results-CQKXmHym.js → results-zVHIW6xw.js} +9 -22
  210. package/dist/results-zVHIW6xw.js.map +1 -0
  211. package/dist/{resume-POpZa1ge.js → resume-D_PcUXfG.js} +94 -16
  212. package/dist/resume-D_PcUXfG.js.map +1 -0
  213. package/dist/{retry-CmG809Mp.js → retry-BvTzCxdc.js} +4 -4
  214. package/dist/{retry-CmG809Mp.js.map → retry-BvTzCxdc.js.map} +1 -1
  215. package/dist/{root-Co0jhOT5.js → root-BzeoyfGd.js} +2 -2
  216. package/dist/{root-Co0jhOT5.js.map → root-BzeoyfGd.js.map} +1 -1
  217. package/dist/{vercel-CGlSBv63.js → routes-B0F2R-K7.js} +91 -56
  218. package/dist/routes-B0F2R-K7.js.map +1 -0
  219. package/dist/{runtime-Xm9oeC7o.js → runtime-B3r_pAq6.js} +4 -4
  220. package/dist/{runtime-Xm9oeC7o.js.map → runtime-B3r_pAq6.js.map} +1 -1
  221. package/dist/sandbox/boat.d.ts +1 -1
  222. package/dist/sandbox/boat.js +1 -1
  223. package/dist/{sandbox-DrlL4yqb.js → sandbox-Duh3z1TV.js} +3 -3
  224. package/dist/{sandbox-DrlL4yqb.js.map → sandbox-Duh3z1TV.js.map} +1 -1
  225. package/dist/sandbox.d.ts +1 -1
  226. package/dist/sandbox.js +1 -1
  227. package/dist/server-CGEsvVRG.js +1 -0
  228. package/dist/{server-C00zd6zl.js → server-DUWMRKik.js} +8 -8
  229. package/dist/{server-C00zd6zl.js.map → server-DUWMRKik.js.map} +1 -1
  230. package/dist/{shared-Cfi45Bvy.js → shared-DtZwIAfy.js} +7 -1
  231. package/dist/shared-DtZwIAfy.js.map +1 -0
  232. package/dist/{source-DDgr48Gn.js → source-CHuN4Nfg.js} +2 -2
  233. package/dist/{source-DDgr48Gn.js.map → source-CHuN4Nfg.js.map} +1 -1
  234. package/dist/source-Wz1Nrfue.js +1 -0
  235. package/dist/src--yl1OypK.js +2 -0
  236. package/dist/{src-Cb2MWozp.js → src-B-HuDqpH.js} +276 -41
  237. package/dist/src-B-HuDqpH.js.map +1 -0
  238. package/dist/{src-DAzaCTcN.js → src-B5r1d23Y.js} +176 -18
  239. package/dist/src-B5r1d23Y.js.map +1 -0
  240. package/dist/{src-y0nOeRRE.js → src-BHJ4MWvY.js} +494 -112
  241. package/dist/src-BHJ4MWvY.js.map +1 -0
  242. package/dist/{src-Dw79VLa3.js → src-BI0v8qlZ.js} +202 -56
  243. package/dist/src-BI0v8qlZ.js.map +1 -0
  244. package/dist/src-BL-_0QoE.js +1 -0
  245. package/dist/{src-YvblOrBU.js → src-BqNzHHWn.js} +87 -13
  246. package/dist/src-BqNzHHWn.js.map +1 -0
  247. package/dist/{src-CV_7DkPa.js → src-C-ChdnG6.js} +102 -13
  248. package/dist/src-C-ChdnG6.js.map +1 -0
  249. package/dist/src-C-mOSczH.js +2 -0
  250. package/dist/src-CZaYu6ER.js +3 -0
  251. package/dist/src-CeBhwD8k.js +2 -0
  252. package/dist/src-CkEiiyON.js +2 -0
  253. package/dist/{src-KxS91P7L.js → src-CmA5Yev6.js} +79 -11
  254. package/dist/src-CmA5Yev6.js.map +1 -0
  255. package/dist/src-CwH_nEaw.js +2 -0
  256. package/dist/src-DA95rM6v.js +4 -0
  257. package/dist/{src-DvGns8cz.js → src-DL-EE4DU.js} +299 -17
  258. package/dist/src-DL-EE4DU.js.map +1 -0
  259. package/dist/src-De0KY5S_.js +2 -0
  260. package/dist/{src-BNQznj4z.js → src-boB6D-5T.js} +124 -45
  261. package/dist/src-boB6D-5T.js.map +1 -0
  262. package/dist/state-B3jex5KU.js +1 -0
  263. package/dist/{state-328JpnHA.js → state-DUBRDyMk.js} +21 -21
  264. package/dist/{state-328JpnHA.js.map → state-DUBRDyMk.js.map} +1 -1
  265. package/dist/store/local.d.ts +8 -0
  266. package/dist/store/local.js +16 -0
  267. package/dist/store/local.js.map +1 -0
  268. package/dist/store/s3.d.ts +10 -0
  269. package/dist/store/s3.js +18 -0
  270. package/dist/store/s3.js.map +1 -0
  271. package/dist/{suite-COglUhPd.js → suite-B9J6Afg6.js} +6 -5
  272. package/dist/{suite-COglUhPd.js.map → suite-B9J6Afg6.js.map} +1 -1
  273. package/dist/suite-Bhs9-Z7O.js +2 -0
  274. package/dist/{summary-DDy9DfyJ.js → summary-CSp4cfnr.js} +25 -7
  275. package/dist/{summary-DDy9DfyJ.js.map → summary-CSp4cfnr.js.map} +1 -1
  276. package/dist/sync-CxAY6Dki.js +559 -0
  277. package/dist/sync-CxAY6Dki.js.map +1 -0
  278. package/dist/{tart-dWoJvWHc.js → tart-CcrrtSrp.js} +179 -61
  279. package/dist/tart-CcrrtSrp.js.map +1 -0
  280. package/dist/tart-CzViW3WZ.js +186 -0
  281. package/dist/tart-CzViW3WZ.js.map +1 -0
  282. package/dist/tart-DmVuVsmX.js +1 -0
  283. package/dist/tart-bake-F-6seRC9.js +192 -0
  284. package/dist/tart-bake-F-6seRC9.js.map +1 -0
  285. package/dist/tart-bake-RK7RaT9E.js +1 -0
  286. package/dist/tart-cli-B86Jqo1t.js +89 -0
  287. package/dist/tart-cli-B86Jqo1t.js.map +1 -0
  288. package/dist/tart-cli-ClvRniLQ.js +1 -0
  289. package/dist/tart-hosts-Brii7zHM.js +1 -0
  290. package/dist/tart-hosts-DPyZsg-1.js +313 -0
  291. package/dist/tart-hosts-DPyZsg-1.js.map +1 -0
  292. package/dist/{tart-images-DZ_Mbh-g.js → tart-images-CWSf03w8.js} +64 -6
  293. package/dist/tart-images-CWSf03w8.js.map +1 -0
  294. package/dist/testing.d.ts +36 -2
  295. package/dist/testing.js +4 -4
  296. package/dist/tool-class-CVDdJy0H.js +433 -0
  297. package/dist/tool-class-CVDdJy0H.js.map +1 -0
  298. package/dist/{trace-Dx2NBE1O.js → trace-BpXByD7W.js} +13 -2
  299. package/dist/{trace-Dx2NBE1O.js.map → trace-BpXByD7W.js.map} +1 -1
  300. package/dist/{traits-DKnYkqeK.js → traits-CCD8XsmI.js} +2 -2
  301. package/dist/{traits-DKnYkqeK.js.map → traits-CCD8XsmI.js.map} +1 -1
  302. package/dist/{transcript-CCf07UmU.js → transcript-BP_2hji-.js} +3 -3
  303. package/dist/{transcript-CCf07UmU.js.map → transcript-BP_2hji-.js.map} +1 -1
  304. package/dist/{types-DBwFsGem.d.ts → types-BJ0wh8wC.d.ts} +408 -44
  305. package/dist/{types-C2mLpph3.js → types-CbcnJxCy.js} +7 -1
  306. package/dist/types-CbcnJxCy.js.map +1 -0
  307. package/dist/{usage-DJiDnh2D.js → usage-CwIRPPZ9.js} +16 -3
  308. package/dist/usage-CwIRPPZ9.js.map +1 -0
  309. package/dist/{vertex-Eb2wqahk.js → vertex-BEWxHoxH.js} +22 -6
  310. package/dist/{vertex-Eb2wqahk.js.map → vertex-BEWxHoxH.js.map} +1 -1
  311. package/dist/vertex-DXfcXYKn.js +1 -0
  312. package/dist/view/index.d.ts +27 -3
  313. package/dist/view/index.js +8 -8
  314. package/dist/{views-BROacjBv.js → views-DRxXCyIH.js} +6 -6
  315. package/dist/{views-BROacjBv.js.map → views-DRxXCyIH.js.map} +1 -1
  316. package/dist/views-i67V1ly3.js +2 -0
  317. package/dist/{worker-entry-Smb4bNDc.js → worker-entry-C3Q4U63F.js} +12 -9
  318. package/dist/worker-entry-C3Q4U63F.js.map +1 -0
  319. package/dist/workspace-DhUOW8if.js +1 -0
  320. package/dist/{workspace-DNDTEk8v.js → workspace-P72SXLXr.js} +7 -7
  321. package/dist/{workspace-DNDTEk8v.js.map → workspace-P72SXLXr.js.map} +1 -1
  322. package/package.json +12 -1
  323. package/skills/eval-rubric/SKILL.md +10 -0
  324. package/skills/reeval/SKILL.md +370 -0
  325. package/skills/reeval/references/capture.md +48 -0
  326. package/skills/reeval/references/cli.md +162 -0
  327. package/skills/reeval/references/compare.md +180 -0
  328. package/skills/reeval/references/config.md +147 -0
  329. package/skills/reeval/references/environments.md +218 -0
  330. package/skills/reeval/references/evals.md +241 -0
  331. package/skills/reeval/references/mistakes.md +39 -0
  332. package/skills/reeval/references/vocabulary.md +19 -0
  333. package/skills/setup/SKILL.md +219 -0
  334. package/skills/setup/references/templates.md +258 -0
  335. package/dist/adapter-C60z3wLq.js.map +0 -1
  336. package/dist/agent-BmsMXZXx.js.map +0 -1
  337. package/dist/agents-DXuFxtGC.js.map +0 -1
  338. package/dist/app-files-DT5mJyV4.js.map +0 -1
  339. package/dist/assemble-DM2PNU4R.js.map +0 -1
  340. package/dist/attempt-host-7VviAJrl.js.map +0 -1
  341. package/dist/boat-DSNgZt-t.js.map +0 -1
  342. package/dist/capture-BzotD2hs.js +0 -1
  343. package/dist/cases-Dy0mifal.js +0 -1
  344. package/dist/cases-z9E6DCd5.js.map +0 -1
  345. package/dist/cli-DTuLSlmW.js.map +0 -1
  346. package/dist/cli-spec-Dsr79Qy1.js.map +0 -1
  347. package/dist/client-KM4C5r5_.js +0 -387
  348. package/dist/client-KM4C5r5_.js.map +0 -1
  349. package/dist/command-DSL7I-SI.js.map +0 -1
  350. package/dist/commands-xAOi_VEk.js.map +0 -1
  351. package/dist/config-SvK8pjEK.js.map +0 -1
  352. package/dist/cost-BdRgySQl.js.map +0 -1
  353. package/dist/cost-Cr26Alhq.js +0 -1
  354. package/dist/db-BzOJ4Js4.js.map +0 -1
  355. package/dist/db-CQRZ3URX.js +0 -2
  356. package/dist/docker-DG_uFgn2.js.map +0 -1
  357. package/dist/doctor-DWK4ttex.js.map +0 -1
  358. package/dist/environment-cPMCOk-h.js.map +0 -1
  359. package/dist/eval-source-C9b1h8L6.js.map +0 -1
  360. package/dist/evaluate-B12Tosvq.js.map +0 -1
  361. package/dist/files-C1Rk9FYA.js +0 -1
  362. package/dist/files-DMQ9-Vv5.js +0 -1
  363. package/dist/files-Di0xDbCc.js +0 -1
  364. package/dist/files-G5jf8wBp.js +0 -1
  365. package/dist/files-s28a6czq.js.map +0 -1
  366. package/dist/harness-DXv2gnaT.js.map +0 -1
  367. package/dist/images-D2jFze2v.js.map +0 -1
  368. package/dist/init-Bi1Q3lRi.js.map +0 -1
  369. package/dist/init-CUw65o36.js +0 -1
  370. package/dist/kinds-Bh2I35id.js +0 -698
  371. package/dist/kinds-Bh2I35id.js.map +0 -1
  372. package/dist/layout-Cm85tQYk.js.map +0 -1
  373. package/dist/live-DZLmj0iG.js +0 -1
  374. package/dist/matchers-CXLn-1jm.js +0 -148
  375. package/dist/matchers-CXLn-1jm.js.map +0 -1
  376. package/dist/model-Cv4GuTsZ.js +0 -1
  377. package/dist/model-CwwkrCb7.js.map +0 -1
  378. package/dist/options-DPUmk7v_.js +0 -1
  379. package/dist/plain-BYUf_fUV.js.map +0 -1
  380. package/dist/plan-CsPilzpk.js.map +0 -1
  381. package/dist/plugins-BfnhazOv.js.map +0 -1
  382. package/dist/preflight-Bn3ianye.js +0 -1
  383. package/dist/preflight-GkpgrBxP.js.map +0 -1
  384. package/dist/prices-5m3SzMZ3.js.map +0 -1
  385. package/dist/provider-BnUoz4KB.js +0 -1
  386. package/dist/providers-1p4HKYIp.js.map +0 -1
  387. package/dist/providers-B-ijCktf.js +0 -1
  388. package/dist/query-BYhyf0LR.js +0 -1
  389. package/dist/redact-BhjtnjrU.js.map +0 -1
  390. package/dist/remarks-BNABzemt.js.map +0 -1
  391. package/dist/remarks-CAvTSq16.js +0 -1
  392. package/dist/remarks-D9Lcd1fF.js.map +0 -1
  393. package/dist/resolve-C14Pmtej.js +0 -1
  394. package/dist/resolve-Cx3a9UQ2.js.map +0 -1
  395. package/dist/results-CQKXmHym.js.map +0 -1
  396. package/dist/resume-POpZa1ge.js.map +0 -1
  397. package/dist/server-C1UJcpUh.js +0 -1
  398. package/dist/shared-Cfi45Bvy.js.map +0 -1
  399. package/dist/source-DJHmQv_j.js +0 -1
  400. package/dist/src-1dBuXzs4.js +0 -3
  401. package/dist/src-BKpioayC.js +0 -2
  402. package/dist/src-BNQznj4z.js.map +0 -1
  403. package/dist/src-BY1cCaoJ.js +0 -2
  404. package/dist/src-BbZYaQ8b.js +0 -2
  405. package/dist/src-CDFH2vVN.js +0 -2
  406. package/dist/src-CMW5R9Q0.js +0 -1
  407. package/dist/src-CV_7DkPa.js.map +0 -1
  408. package/dist/src-Cb2MWozp.js.map +0 -1
  409. package/dist/src-CrV2WA2i.js +0 -2
  410. package/dist/src-CsFaawcZ.js +0 -2
  411. package/dist/src-DAzaCTcN.js.map +0 -1
  412. package/dist/src-DvGns8cz.js.map +0 -1
  413. package/dist/src-Dw79VLa3.js.map +0 -1
  414. package/dist/src-KxS91P7L.js.map +0 -1
  415. package/dist/src-YvblOrBU.js.map +0 -1
  416. package/dist/src-wKwznPgt.js +0 -2
  417. package/dist/src-y0nOeRRE.js.map +0 -1
  418. package/dist/state-Ca55Gk_O.js +0 -1
  419. package/dist/suite-CKBa6MKt.js +0 -2
  420. package/dist/tart-cli-C-GsbVsQ.js +0 -1
  421. package/dist/tart-cli-CU0nFS-L.js +0 -55
  422. package/dist/tart-cli-CU0nFS-L.js.map +0 -1
  423. package/dist/tart-dWoJvWHc.js.map +0 -1
  424. package/dist/tart-images-DZ_Mbh-g.js.map +0 -1
  425. package/dist/tool-target-DS5d72eH.js +0 -40
  426. package/dist/tool-target-DS5d72eH.js.map +0 -1
  427. package/dist/types-C2mLpph3.js.map +0 -1
  428. package/dist/usage-DJiDnh2D.js.map +0 -1
  429. package/dist/vercel-CGlSBv63.js.map +0 -1
  430. package/dist/vertex-O88TCwgY.js +0 -1
  431. package/dist/views-B0Yt_Q1S.js +0 -2
  432. package/dist/worker-entry-Smb4bNDc.js.map +0 -1
  433. package/dist/workspace-C0dDP75l.js +0 -1
@@ -1,15 +1,15 @@
1
- import { u as ownFileURL } from "./root-Co0jhOT5.js";
2
- import { existsSync, lstatSync, readFileSync, readdirSync, readlinkSync, renameSync, writeFileSync } from "node:fs";
3
- import { tmpdir } from "node:os";
1
+ import { u as ownFileURL } from "./root-BzeoyfGd.js";
2
+ import { existsSync, lstatSync, mkdirSync, readFileSync, readdirSync, readlinkSync, renameSync, writeFileSync } from "node:fs";
4
3
  import { basename, dirname, join, posix, relative, win32 } from "node:path";
5
- import net, { BlockList, isIP } from "node:net";
4
+ import { execFileSync, spawn } from "node:child_process";
6
5
  import { createHash, generateKeyPairSync, randomBytes, randomInt, sign } from "node:crypto";
6
+ import { tmpdir } from "node:os";
7
7
  import { fileURLToPath } from "node:url";
8
- import { execFileSync, spawn } from "node:child_process";
9
8
  import { createHarnessSandboxTemplate } from "@ai-sdk/harness/agent";
10
9
  import { isUtf8 } from "node:buffer";
11
10
  import dockerignore from "@balena/dockerignore";
12
11
  import { Duplex, Readable, Transform } from "node:stream";
12
+ import net, { BlockList, isIP } from "node:net";
13
13
  import http from "node:http";
14
14
  import http2 from "node:http2";
15
15
  import https from "node:https";
@@ -799,16 +799,16 @@ function contextFiles(context, dockerfile) {
799
799
  const HARNESS_PACKAGES = {
800
800
  cursor: {
801
801
  name: "@reeval/harness-cursor-sdk",
802
- version: "0.1.8"
802
+ version: "0.1.9"
803
803
  },
804
804
  "claude-code": {
805
805
  name: "@ai-sdk/harness-claude-code",
806
806
  version: "1.0.176",
807
- patch: "8c0f3055"
807
+ patch: "a9d56a8c"
808
808
  },
809
809
  antigravity: {
810
810
  name: "@reeval/harness-antigravity",
811
- version: "0.1.13"
811
+ version: "0.1.15"
812
812
  },
813
813
  opencode: {
814
814
  name: "@reeval/harness-opencode",
@@ -816,7 +816,7 @@ const HARNESS_PACKAGES = {
816
816
  },
817
817
  goose: {
818
818
  name: "@reeval/harness-goose",
819
- version: "0.1.12"
819
+ version: "0.1.15"
820
820
  },
821
821
  pi: {
822
822
  name: "@reeval/harness-pi",
@@ -824,15 +824,15 @@ const HARNESS_PACKAGES = {
824
824
  },
825
825
  codex: {
826
826
  name: "@reeval/harness-codex",
827
- version: "0.1.10"
827
+ version: "0.1.12"
828
828
  },
829
829
  fx: {
830
830
  name: "@reeval/harness-fx",
831
- version: "0.1.7"
831
+ version: "0.1.10"
832
832
  },
833
833
  "grok-build": {
834
834
  name: "@reeval/harness-grok-build",
835
- version: "0.1.10"
835
+ version: "0.1.11"
836
836
  }
837
837
  };
838
838
  /** Every harness with an image, in {@link HARNESS_PACKAGES} order. */
@@ -1297,35 +1297,58 @@ function walk(value, keys, at, out) {
1297
1297
  for (const name of key === "*" ? Object.keys(record).sort() : [key]) if (Object.hasOwn(record, name)) walk(record[name], rest, [...at, name], out);
1298
1298
  }
1299
1299
  /**
1300
- * Every reasoning setting in a JSON request body, as `<path>=<value>` joined by spaces
1301
- * (`reasoning_effort=high`, `providerOptions.google.thinkingConfig.thinkingLevel=low`), or
1302
- * undefined when it carries none or isn't JSON.
1300
+ * The tools a request body declares: Anthropic's and OpenAI's `tools` list counts each entry,
1301
+ * and Gemini's (a list, or one object) each of its `functionDeclarations`. 0 when it declares
1302
+ * none.
1303
+ */
1304
+ function toolCount(body) {
1305
+ const declared = (entry) => {
1306
+ if (!entry || typeof entry !== "object") return 1;
1307
+ const record = entry;
1308
+ const functions = record.functionDeclarations ?? record.function_declarations;
1309
+ return Array.isArray(functions) ? functions.length : 1;
1310
+ };
1311
+ const { tools } = body;
1312
+ if (Array.isArray(tools)) return tools.reduce((n, t) => n + declared(t), 0);
1313
+ return tools && typeof tools === "object" ? declared(tools) : 0;
1314
+ }
1315
+ /**
1316
+ * A model call's request body, read once: its reasoning settings (`requestedEffort`) and how
1317
+ * many tools it declares. Both undefined when it isn't a JSON object.
1303
1318
  */
1304
- function requestedEffort(body) {
1319
+ function requestFacts(body) {
1305
1320
  let parsed;
1306
1321
  try {
1307
1322
  parsed = JSON.parse(body);
1308
1323
  } catch {
1309
- return;
1324
+ return {};
1310
1325
  }
1326
+ if (!parsed || typeof parsed !== "object" || Array.isArray(parsed)) return {};
1311
1327
  const found = [];
1312
1328
  for (const path of PATHS) walk(parsed, path.split("."), [], found);
1313
- return found.length ? found.map((f) => `${f.path}=${f.value}`).join(" ") : void 0;
1329
+ return {
1330
+ ...found.length ? { effort: found.map((f) => `${f.path}=${f.value}`).join(" ") } : {},
1331
+ tools: toolCount(parsed)
1332
+ };
1314
1333
  }
1315
1334
  // ../sandbox-docker/src/egress/policy.ts
1316
- /** The Docker sandbox enforces every policy through its egress gateway, and records what passes. */
1335
+ /**
1336
+ * The Docker sandbox enforces every policy through its egress gateway, records what passes, and
1337
+ * switches policy mid-attempt by changing the gateway's and detaching or reattaching networks.
1338
+ */
1317
1339
  const DOCKER_EGRESS = {
1318
1340
  enforce: "allowlist",
1319
- record: true
1341
+ record: true,
1342
+ switches: true
1320
1343
  };
1321
1344
  /** The hosts each harness's CLI talks to at runtime. */
1322
1345
  const HARNESS_HOSTS = {
1323
1346
  cursor: ["api2.cursor.sh", "*.cursor.sh"],
1324
1347
  "claude-code": ["api.anthropic.com", "*.anthropic.com"],
1325
1348
  antigravity: ["generativelanguage.googleapis.com"],
1326
- opencode: ["generativelanguage.googleapis.com", "mcp.exa.ai"],
1327
- goose: ["generativelanguage.googleapis.com"],
1328
- pi: ["generativelanguage.googleapis.com"],
1349
+ opencode: ["mcp.exa.ai"],
1350
+ goose: [],
1351
+ pi: [],
1329
1352
  codex: ["api.openai.com"],
1330
1353
  fx: ["ai-gateway.vercel.sh"],
1331
1354
  "grok-build": ["api.x.ai"]
@@ -1432,8 +1455,8 @@ const defaultLookup = async (host) => (await lookup(host, {
1432
1455
  verbatim: true
1433
1456
  })).map((a) => a.address);
1434
1457
  /**
1435
- * Decides whether `host` may be reached and which address to connect to. The gateway connects
1436
- * to the address it checked, so a DNS answer can't change between the check and the connect.
1458
+ * Decides whether `host` may be reached and which addresses to connect to. The gateway connects
1459
+ * only to the addresses it checked, so a DNS answer can't change between the check and the connect.
1437
1460
  */
1438
1461
  function createPolicyCheck(policy, options = {}) {
1439
1462
  const lookup = options.lookup ?? defaultLookup;
@@ -1465,8 +1488,7 @@ function createPolicyCheck(policy, options = {}) {
1465
1488
  reason: `can't resolve ${host}: ${error.message}`
1466
1489
  };
1467
1490
  }
1468
- const first = addresses[0];
1469
- if (!first) return {
1491
+ if (!addresses.length) return {
1470
1492
  allowed: false,
1471
1493
  status: 502,
1472
1494
  unresolved: true,
@@ -1489,7 +1511,7 @@ function createPolicyCheck(policy, options = {}) {
1489
1511
  }
1490
1512
  if (!custom) return {
1491
1513
  allowed: true,
1492
- address: first
1514
+ addresses
1493
1515
  };
1494
1516
  if (reached.some((a) => inList(deniedCidrs, a))) return {
1495
1517
  allowed: false,
@@ -1503,11 +1525,11 @@ function createPolicyCheck(policy, options = {}) {
1503
1525
  };
1504
1526
  if (listed) return {
1505
1527
  allowed: true,
1506
- address: first
1528
+ addresses
1507
1529
  };
1508
1530
  if (custom.allowedCIDRs?.length && addresses.every((a) => inList(allowedCidrs, a))) return {
1509
1531
  allowed: true,
1510
- address: first
1532
+ addresses
1511
1533
  };
1512
1534
  return {
1513
1535
  allowed: false,
@@ -1809,6 +1831,115 @@ function tokenizeResponse(derived, body, known) {
1809
1831
  fields
1810
1832
  };
1811
1833
  }
1834
+ // ../sandbox-docker/src/egress/usage.ts
1835
+ /**
1836
+ * The usage fields of the model APIs the agents call: Anthropic's Messages, OpenAI's Responses
1837
+ * and Chat Completions (and the APIs shaped like them), and Gemini's `usageMetadata`. A nested
1838
+ * details object (`input_tokens_details`, `output_tokens_details`) gives its fields by their own
1839
+ * names.
1840
+ */
1841
+ const FIELDS = /* @__PURE__ */ new Set([
1842
+ "input_tokens",
1843
+ "output_tokens",
1844
+ "cache_read_input_tokens",
1845
+ "cache_creation_input_tokens",
1846
+ "prompt_tokens",
1847
+ "completion_tokens",
1848
+ "cached_tokens",
1849
+ "cache_write_tokens",
1850
+ "reasoning_tokens",
1851
+ "thinking_tokens",
1852
+ "promptTokenCount",
1853
+ "candidatesTokenCount",
1854
+ "cachedContentTokenCount",
1855
+ "thoughtsTokenCount"
1856
+ ]);
1857
+ /** xAI's `context_details` repeats `input_tokens` and `output_tokens` as the context counts them. */
1858
+ const SKIP = /* @__PURE__ */ new Set(["context_details"]);
1859
+ /** The model a model call's response names: Gemini's `generateContent` says `modelVersion`. */
1860
+ const MODEL_FIELD = /"model(?:Id|Version)?"\s*:\s*"([^"\\]{1,200})"/;
1861
+ const USAGE_KEY = /"(?:usage|usageMetadata)"\s*:\s*\{/g;
1862
+ /** How much of a chunk's end is kept while no usage object is open, so a split key is seen. */
1863
+ const CARRY = 64;
1864
+ /** The longest usage object read; a longer one is dropped. */
1865
+ const OBJECT_LIMIT = 65536;
1866
+ function flatten(value, out) {
1867
+ if (!value || typeof value !== "object" || Array.isArray(value)) return;
1868
+ for (const [key, v] of Object.entries(value)) {
1869
+ if (SKIP.has(key)) continue;
1870
+ if (typeof v === "number" && Number.isFinite(v) && FIELDS.has(key)) out[key] = v;
1871
+ else flatten(v, out);
1872
+ }
1873
+ }
1874
+ /**
1875
+ * Reads a response body's usage objects as it flows, whole: each `"usage"` or `"usageMetadata"`
1876
+ * object is parsed and its fields merged over the earlier ones', since a stream's later events
1877
+ * repeat its counts or replace them with the final ones (Anthropic's `message_delta`, Gemini's
1878
+ * last chunk, the Responses API's `response.completed`). Inside a JSON string the quotes are
1879
+ * escaped, so text that merely mentions a usage object doesn't match. Each call returns the
1880
+ * fields so far when that chunk completed an object, and null otherwise.
1881
+ */
1882
+ function usageReader() {
1883
+ const fields = {};
1884
+ let pending = "";
1885
+ let object = null;
1886
+ let depth = 0;
1887
+ let inString = false;
1888
+ let escaped = false;
1889
+ return (chunk) => {
1890
+ let found = false;
1891
+ let text = object === null ? pending + chunk : chunk;
1892
+ let from = 0;
1893
+ for (;;) {
1894
+ if (object === null) {
1895
+ USAGE_KEY.lastIndex = from;
1896
+ const key = USAGE_KEY.exec(text);
1897
+ if (!key) {
1898
+ pending = text.slice(Math.max(from, text.length - CARRY));
1899
+ break;
1900
+ }
1901
+ object = "{";
1902
+ depth = 1;
1903
+ inString = false;
1904
+ escaped = false;
1905
+ from = key.index + key[0].length;
1906
+ }
1907
+ let end = -1;
1908
+ for (let i = from; i < text.length; i++) {
1909
+ const c = text[i];
1910
+ if (inString) {
1911
+ if (escaped) escaped = false;
1912
+ else if (c === "\\") escaped = true;
1913
+ else if (c === "\"") inString = false;
1914
+ } else if (c === "\"") inString = true;
1915
+ else if (c === "{") depth++;
1916
+ else if (c === "}" && --depth === 0) {
1917
+ end = i;
1918
+ break;
1919
+ }
1920
+ }
1921
+ if (end === -1) {
1922
+ object += text.slice(from);
1923
+ if (object.length > OBJECT_LIMIT) object = null;
1924
+ pending = "";
1925
+ break;
1926
+ }
1927
+ const json = object + text.slice(from, end + 1);
1928
+ object = null;
1929
+ try {
1930
+ const got = {};
1931
+ flatten(JSON.parse(json), got);
1932
+ if (Object.keys(got).length > 0) {
1933
+ Object.assign(fields, got);
1934
+ found = true;
1935
+ }
1936
+ } catch {}
1937
+ text = text.slice(end + 1);
1938
+ from = 0;
1939
+ }
1940
+ return found ? { ...fields } : null;
1941
+ };
1942
+ }
1812
1943
  // ../sandbox-docker/src/egress/websocket.ts
1813
1944
  /** The most a message may hold while its frames are gathered to be scrubbed. */
1814
1945
  const MAX_MESSAGE = 16777216;
@@ -1938,6 +2069,53 @@ const authorityOf = (host, port) => {
1938
2069
  return port === 443 ? name : `${name}:${port}`;
1939
2070
  };
1940
2071
  const pathOnly = (path) => path.split("?")[0];
2072
+ /**
2073
+ * Connection options that reach `target` at the addresses its policy check resolved, with no
2074
+ * lookup of their own. Node tries each in turn (Happy Eyeballs), so a host whose IPv6 address is
2075
+ * unreachable from here is still reached over IPv4.
2076
+ */
2077
+ function reachAt(target) {
2078
+ const addresses = target.addresses.map((address) => ({
2079
+ address,
2080
+ family: net.isIP(address)
2081
+ }));
2082
+ const lookup = (_host, options, callback) => {
2083
+ const [first = {
2084
+ address: target.host,
2085
+ family: net.isIP(target.host)
2086
+ }] = addresses;
2087
+ if (options.all) callback(null, addresses);
2088
+ else callback(null, first.address, first.family);
2089
+ };
2090
+ return {
2091
+ host: target.host,
2092
+ lookup,
2093
+ autoSelectFamily: true,
2094
+ pinned: pinnedKey(target)
2095
+ };
2096
+ }
2097
+ /** The checked addresses, in a stable order, that a pooled connection to `target` was made for. */
2098
+ const pinnedKey = (target) => [...target.addresses].sort().join(",");
2099
+ /**
2100
+ * An agent whose pool keys a connection by the addresses its policy check reached as well as by
2101
+ * name, so a kept-alive connection is reused only by a request whose own check reached the same
2102
+ * addresses, never one checked under an earlier policy or DNS answer.
2103
+ */
2104
+ var PinnedAgent = class extends http.Agent {
2105
+ getName(options) {
2106
+ return `${super.getName(options)}:${options?.pinned ?? ""}`;
2107
+ }
2108
+ };
2109
+ var PinnedHttpsAgent = class extends https.Agent {
2110
+ getName(options) {
2111
+ return `${super.getName(options)}:${options?.pinned ?? ""}`;
2112
+ }
2113
+ };
2114
+ /**
2115
+ * Why a connect failed. Happy Eyeballs fails with an `AggregateError` whose own message is empty
2116
+ * when every address does, so name each address's error.
2117
+ */
2118
+ const failure = (error) => error instanceof AggregateError && error.errors.length ? error.errors.map((e) => e.message).join(", ") : error.message;
1941
2119
  /** Refused brokered requests recorded per method and path before the rest share an entry. */
1942
2120
  const REFUSED_PATHS = 20;
1943
2121
  function reply(socket, status, reason) {
@@ -1959,6 +2137,14 @@ const DECODERS = {
1959
2137
  /** Text a credential could be echoed into, or no type at all. */
1960
2138
  const isText = (type) => !type.trim() || /^\s*(text\/|application\/(json|xml|javascript|x-www-form-urlencoded|x-ndjson|[\w.-]+\+(json|xml))\b)/i.test(type);
1961
2139
  const plainHeaders = (headers) => Object.fromEntries(Object.entries(headers).flatMap(([k, v]) => v === void 0 ? [] : [[k, Array.isArray(v) ? v.map(String) : String(v)]]));
2140
+ /** The first of `names` set in `headers` to a finite number, as a call's cost; undefined if none is. */
2141
+ function headerCost(headers, names = []) {
2142
+ for (const name of names) {
2143
+ const raw = headers[name.toLowerCase()];
2144
+ const value = Number((Array.isArray(raw) ? raw[0] : raw)?.trim() || NaN);
2145
+ if (Number.isFinite(value)) return value;
2146
+ }
2147
+ }
1962
2148
  function createEgressProxy(options) {
1963
2149
  const log = options.log ?? (() => {});
1964
2150
  const firstByteTimeout = options.firstByteTimeout ?? FIRST_BYTE_TIMEOUT_MS;
@@ -1977,13 +2163,20 @@ function createEgressProxy(options) {
1977
2163
  const locals = options.localResponses ?? [];
1978
2164
  const localHosts = locals.map((l) => l.match.host);
1979
2165
  let policyCheck = createPolicyCheck(options.policy, options);
2166
+ /** Bumped by `switchPolicy`: a verdict reached under the policy before it is reached again. */
2167
+ let generation = 0;
1980
2168
  const check = async (host) => {
1981
- const verdict = await policyCheck(host);
2169
+ let verdict;
2170
+ let at;
2171
+ do {
2172
+ at = generation;
2173
+ verdict = await policyCheck(host);
2174
+ } while (at !== generation);
1982
2175
  emit(verdict.allowed ? {
1983
2176
  type: "dns",
1984
2177
  host,
1985
2178
  allowed: true,
1986
- address: verdict.address
2179
+ addresses: verdict.addresses
1987
2180
  } : {
1988
2181
  type: "dns",
1989
2182
  host,
@@ -2000,7 +2193,8 @@ function createEgressProxy(options) {
2000
2193
  const leaves = /* @__PURE__ */ new Map();
2001
2194
  const open = /* @__PURE__ */ new Set();
2002
2195
  const sessions = /* @__PURE__ */ new Map();
2003
- const agent = new https.Agent({ keepAlive: true });
2196
+ const agent = new PinnedHttpsAgent({ keepAlive: true });
2197
+ const plainAgent = new PinnedAgent({ keepAlive: true });
2004
2198
  const ca = options.upstreamCA ? [...tls.rootCertificates, options.upstreamCA] : void 0;
2005
2199
  const track = (s) => {
2006
2200
  open.add(s);
@@ -2010,12 +2204,25 @@ function createEgressProxy(options) {
2010
2204
  const contacted = /* @__PURE__ */ new Map();
2011
2205
  const blocked = /* @__PURE__ */ new Map();
2012
2206
  const unresolved = /* @__PURE__ */ new Map();
2207
+ /** The phase traffic is tagged with; unset until the first `switchPolicy`. */
2208
+ let phase;
2209
+ const tagged = () => phase === void 0 ? {} : { phase };
2210
+ const keyed = (key) => phase === void 0 ? key : `${phase} ${key}`;
2211
+ /** Each open tunnel's host, which only the policy at its start checked. */
2212
+ const tunnels = /* @__PURE__ */ new Map();
2213
+ const holdTunnel = (connection, host, port) => {
2214
+ tunnels.set(connection, {
2215
+ host,
2216
+ port
2217
+ });
2218
+ connection.once("close", () => tunnels.delete(connection));
2219
+ };
2013
2220
  /** The host each sandbox connection's bytes count towards: its latest allowed request's. */
2014
2221
  const counting = /* @__PURE__ */ new WeakMap();
2015
2222
  /** Bytes a connection sent before the policy decided whose they are: the request itself. */
2016
2223
  const unclaimed = /* @__PURE__ */ new WeakMap();
2017
2224
  const contact = (connection, host, port) => {
2018
- const key = `${host}:${port}`;
2225
+ const key = keyed(`${host}:${port}`);
2019
2226
  let entry = contacted.get(key);
2020
2227
  if (!entry) {
2021
2228
  entry = {
@@ -2023,7 +2230,8 @@ function createEgressProxy(options) {
2023
2230
  port,
2024
2231
  connections: 0,
2025
2232
  sent: 0,
2026
- received: 0
2233
+ received: 0,
2234
+ ...tagged()
2027
2235
  };
2028
2236
  contacted.set(key, entry);
2029
2237
  }
@@ -2033,13 +2241,14 @@ function createEgressProxy(options) {
2033
2241
  counting.set(connection, entry);
2034
2242
  };
2035
2243
  const block = (connection, host, port, verdict) => {
2036
- const key = `${host}:${port}`;
2244
+ const key = keyed(`${host}:${port}`);
2037
2245
  const into = verdict.status === 502 ? unresolved : blocked;
2038
2246
  const entry = into.get(key) ?? {
2039
2247
  host,
2040
2248
  port,
2041
2249
  connections: 0,
2042
- reason: verdict.reason
2250
+ reason: verdict.reason,
2251
+ ...tagged()
2043
2252
  };
2044
2253
  entry.connections++;
2045
2254
  into.set(key, entry);
@@ -2056,10 +2265,10 @@ function createEgressProxy(options) {
2056
2265
  */
2057
2266
  const blockRequest = (target, method, path, reason) => {
2058
2267
  const host = `${target.host}:${target.port}`;
2059
- let key = `${host} ${method} ${path}`;
2268
+ let key = keyed(`${host} ${method} ${path}`);
2060
2269
  if (!blocked.has(key)) {
2061
2270
  if (refusedPaths >= REFUSED_PATHS) {
2062
- key = `${host} more`;
2271
+ key = keyed(`${host} more`);
2063
2272
  reason = `more requests that carry a brokered credential off the endpoints reeval brokers it for, on paths past the first ${REFUSED_PATHS}`;
2064
2273
  } else refusedPaths++;
2065
2274
  }
@@ -2067,7 +2276,8 @@ function createEgressProxy(options) {
2067
2276
  host: target.host,
2068
2277
  port: target.port,
2069
2278
  connections: 0,
2070
- reason
2279
+ reason,
2280
+ ...tagged()
2071
2281
  };
2072
2282
  entry.connections++;
2073
2283
  blocked.set(key, entry);
@@ -2134,6 +2344,7 @@ function createEgressProxy(options) {
2134
2344
  event.sent += n;
2135
2345
  },
2136
2346
  received: (n) => {
2347
+ if (n > 0 && event.firstByteMs === void 0) event.firstByteMs = Date.now() - startedAt;
2137
2348
  event.received += n;
2138
2349
  }
2139
2350
  };
@@ -2189,10 +2400,11 @@ function createEgressProxy(options) {
2189
2400
  return reply(socket, verdict.status, refusal(verdict));
2190
2401
  }
2191
2402
  contact(socket, host, port);
2403
+ holdTunnel(socket, host, port);
2192
2404
  const target = {
2193
2405
  host,
2194
2406
  port,
2195
- address: verdict.address
2407
+ addresses: verdict.addresses
2196
2408
  };
2197
2409
  if (decrypts(rules, host) || substitutes(allSubs(), host) || hostAllowed(tokenHosts, host) || hostAllowed(localHosts, host)) {
2198
2410
  log(`reeval:egress CONNECT ${host}:${port} decrypt`);
@@ -2230,7 +2442,7 @@ function createEgressProxy(options) {
2230
2442
  });
2231
2443
  });
2232
2444
  const upstream = track(net.connect({
2233
- host: target.address,
2445
+ ...reachAt(target),
2234
2446
  port,
2235
2447
  allowHalfOpen: true
2236
2448
  }));
@@ -2240,10 +2452,10 @@ function createEgressProxy(options) {
2240
2452
  link(socket, upstream);
2241
2453
  });
2242
2454
  upstream.once("error", (error) => {
2243
- log(`reeval:egress CONNECT ${host}:${port} failed (${error.message})`);
2455
+ log(`reeval:egress CONNECT ${host}:${port} failed (${failure(error)})`);
2244
2456
  status = 502;
2245
- reason = `couldn't reach ${host}:${port}: ${error.message}`;
2246
- reply(socket, 502, `reeval egress gateway couldn't reach ${host}:${port}: ${error.message}`);
2457
+ reason = `couldn't reach ${host}:${port}: ${failure(error)}`;
2458
+ reply(socket, 502, `reeval egress gateway couldn't reach ${host}:${port}: ${failure(error)}`);
2247
2459
  });
2248
2460
  });
2249
2461
  });
@@ -2279,10 +2491,15 @@ function createEgressProxy(options) {
2279
2491
  return res.writeHead(verdict.status).end(`${refusal(verdict)}\n`);
2280
2492
  }
2281
2493
  contact(req.socket, host, port);
2494
+ tunnels.set(req.socket, {
2495
+ host,
2496
+ port
2497
+ });
2498
+ res.once("close", () => tunnels.delete(req.socket));
2282
2499
  const target = {
2283
2500
  host,
2284
2501
  port,
2285
- address: verdict.address
2502
+ addresses: verdict.addresses
2286
2503
  };
2287
2504
  if (secure) {
2288
2505
  const headers = {
@@ -2330,10 +2547,11 @@ function createEgressProxy(options) {
2330
2547
  return reply(socket, verdict.status, refusal(verdict));
2331
2548
  }
2332
2549
  contact(socket, host, port);
2550
+ holdTunnel(socket, host, port);
2333
2551
  onPlainUpgrade({
2334
2552
  host,
2335
2553
  port,
2336
- address: verdict.address
2554
+ addresses: verdict.addresses
2337
2555
  }, req, track(socket), head);
2338
2556
  });
2339
2557
  });
@@ -2345,14 +2563,15 @@ function createEgressProxy(options) {
2345
2563
  const url = `http://${target.host}:${target.port}${pathOnly(path)}`;
2346
2564
  log(`reeval:egress ${req.method} ${url}`);
2347
2565
  const upstream = http.request({
2348
- host: target.address,
2566
+ ...reachAt(target),
2349
2567
  port: target.port,
2350
2568
  method: req.method,
2351
2569
  path,
2352
2570
  headers: {
2353
2571
  ...endToEnd(req.headers),
2354
2572
  host
2355
- }
2573
+ },
2574
+ agent: plainAgent
2356
2575
  });
2357
2576
  forwardHttp1(req.pipe(counter(done.sent)), res, upstream, {
2358
2577
  own: [],
@@ -2500,14 +2719,15 @@ function createEgressProxy(options) {
2500
2719
  }
2501
2720
  log(`reeval:egress ${method} http://${authority}${pathOnly(path)} (upgrade)`);
2502
2721
  const upstream = http.request({
2503
- host: target.address,
2722
+ ...reachAt(target),
2504
2723
  port: target.port,
2505
2724
  method,
2506
2725
  path,
2507
2726
  headers: {
2508
2727
  ...endToEnd(req.headers, ["upgrade", "connection"]),
2509
2728
  host: req.headers.host ?? authority
2510
- }
2729
+ },
2730
+ agent: plainAgent
2511
2731
  });
2512
2732
  upstream.once("upgrade", (up, upSocket, upHead) => {
2513
2733
  upgraded({
@@ -2529,9 +2749,9 @@ function createEgressProxy(options) {
2529
2749
  upstream.once("error", (error) => {
2530
2750
  upgraded({
2531
2751
  status: 502,
2532
- reason: error.message
2752
+ reason: failure(error)
2533
2753
  });
2534
- reply(socket, 502, `reeval egress gateway: ${error.message}`);
2754
+ reply(socket, 502, `reeval egress gateway: ${failure(error)}`);
2535
2755
  });
2536
2756
  upstream.end();
2537
2757
  }
@@ -2638,7 +2858,13 @@ function createEgressProxy(options) {
2638
2858
  path,
2639
2859
  headers: {}
2640
2860
  });
2641
- if (scrubbedInBodies(own).length || credentialValues(rules, target.host).length || exchange || readsModel) delete substituted.headers["accept-encoding"];
2861
+ const readsUsage = onEndpoint(options.modelCalls ?? [], {
2862
+ host: target.host,
2863
+ method,
2864
+ path,
2865
+ headers: {}
2866
+ });
2867
+ if (scrubbedInBodies(own).length || credentialValues(rules, target.host).length || exchange || readsModel || readsUsage) delete substituted.headers["accept-encoding"];
2642
2868
  const notes = [
2643
2869
  replaced.length ? `set ${replaced.join(", ")}` : "",
2644
2870
  substituted.names.length ? `substituted ${substituted.names.join(", ")}` : "",
@@ -2652,7 +2878,8 @@ function createEgressProxy(options) {
2652
2878
  names: substituted.names,
2653
2879
  credentials: replaced,
2654
2880
  ...exchange ? { exchange } : {},
2655
- ...readsModel ? { readsModel } : {}
2881
+ ...readsModel ? { readsModel } : {},
2882
+ ...readsUsage ? { readsUsage } : {}
2656
2883
  };
2657
2884
  }
2658
2885
  /**
@@ -2698,8 +2925,9 @@ function createEgressProxy(options) {
2698
2925
  * The response body as sent to the sandbox: decoded if the plan says so, with real values put
2699
2926
  * back as placeholders. An error anywhere upstream of it (a corrupt encoding) errors it.
2700
2927
  */
2701
- function responseBody(up, plan, t, readsModel = false) {
2702
- if (readsModel && t) readModel(up, t);
2928
+ function responseBody(up, plan, t, reads = {}) {
2929
+ if (reads.model && t) readModel(up, t);
2930
+ if (reads.usage && t) readUsage(up, t);
2703
2931
  const into = (from, to) => {
2704
2932
  from.once("error", (error) => to.destroy(error));
2705
2933
  return from.pipe(to);
@@ -2781,6 +3009,27 @@ function createEgressProxy(options) {
2781
3009
  };
2782
3010
  up.on("data", onData);
2783
3011
  }
3012
+ /**
3013
+ * Records the response body's usage (`usageReader`) and the first model it names, reading
3014
+ * alongside its flow.
3015
+ */
3016
+ function readUsage(up, t) {
3017
+ const read = usageReader();
3018
+ let carry = "";
3019
+ let seen = 0;
3020
+ let model;
3021
+ up.on("data", (chunk) => {
3022
+ const text = chunk.toString("utf8");
3023
+ if (!model && seen <= MODEL_WINDOW) {
3024
+ model = MODEL_FIELD.exec(carry + text)?.[1];
3025
+ if (model) t.set({ usageModel: model });
3026
+ carry = (carry + text).slice(-256);
3027
+ }
3028
+ seen += chunk.length;
3029
+ const usage = read(text);
3030
+ if (usage) t.set({ responseUsage: usage });
3031
+ });
3032
+ }
2784
3033
  /** Most of a request body the gateway reads for its reasoning settings: a long session's. */
2785
3034
  const EFFORT_LIMIT = 16777216;
2786
3035
  /**
@@ -2799,8 +3048,9 @@ function createEgressProxy(options) {
2799
3048
  },
2800
3049
  flush(done) {
2801
3050
  if (size <= EFFORT_LIMIT) {
2802
- const effort = requestedEffort(Buffer.concat(chunks).toString("utf8"));
3051
+ const { effort, tools } = requestFacts(Buffer.concat(chunks).toString("utf8"));
2803
3052
  if (effort) t.set({ requestEffort: effort });
3053
+ if (tools !== void 0) t.set({ requestTools: tools });
2804
3054
  }
2805
3055
  done();
2806
3056
  }
@@ -2867,11 +3117,16 @@ function createEgressProxy(options) {
2867
3117
  via: "decrypted",
2868
3118
  requestHeaders: plainHeaders(req.headers)
2869
3119
  });
2870
- const { headers, path, own, names, credentials, refused, exchange, readsModel } = transformed(target, method, asked, sent, req.httpVersion);
3120
+ const { headers, path, own, names, credentials, refused, exchange, readsModel, readsUsage } = transformed(target, method, asked, sent, req.httpVersion);
2871
3121
  t.set({
2872
3122
  substituted: names,
2873
- credentials
3123
+ credentials,
3124
+ ...readsUsage ? { modelCall: true } : {}
2874
3125
  });
3126
+ const reads = {
3127
+ model: !!readsModel,
3128
+ usage: !!readsUsage
3129
+ };
2875
3130
  if (refused) {
2876
3131
  t.refuse(refused.reason);
2877
3132
  req.resume();
@@ -2902,7 +3157,7 @@ function createEgressProxy(options) {
2902
3157
  const authority = authorityOf(target.host, target.port);
2903
3158
  const session = req.httpVersionMajor === 2 ? await upstreamSession(target) : null;
2904
3159
  if (!session) return forwardHttp1(body, res, https.request({
2905
- host: target.address,
3160
+ ...reachAt(target),
2906
3161
  servername: net.isIP(target.host) ? void 0 : target.host,
2907
3162
  port: target.port,
2908
3163
  method,
@@ -2919,7 +3174,7 @@ function createEgressProxy(options) {
2919
3174
  url,
2920
3175
  ...exchange ? { exchange } : {},
2921
3176
  ...t ? { t } : {},
2922
- readsModel: !!readsModel
3177
+ reads
2923
3178
  });
2924
3179
  const stream = session.request({
2925
3180
  ...headers,
@@ -2929,7 +3184,7 @@ function createEgressProxy(options) {
2929
3184
  ":authority": authority
2930
3185
  });
2931
3186
  const fail = (error) => {
2932
- if (!res.headersSent) res.writeHead(502).end(`reeval egress gateway: ${error.message}\n`);
3187
+ if (!res.headersSent) res.writeHead(502).end(`reeval egress gateway: ${failure(error)}\n`);
2933
3188
  else res.destroy();
2934
3189
  };
2935
3190
  stream.once("error", fail);
@@ -2937,7 +3192,7 @@ function createEgressProxy(options) {
2937
3192
  stream.once("response", (h) => {
2938
3193
  const status = Number(h[":status"]);
2939
3194
  if (exchange) return tokenized(exchange, url, status, h, stream, res, own, creds, t);
2940
- if (!respond(status, h, stream, res, own, creds, url, t, readsModel)) return;
3195
+ if (!respond(status, h, stream, res, own, creds, url, t, reads)) return;
2941
3196
  stream.once("trailers", (trailers) => res.addTrailers(scrubbedHeaders(trailers, [...own, ...creds])));
2942
3197
  });
2943
3198
  body.pipe(stream);
@@ -2947,7 +3202,7 @@ function createEgressProxy(options) {
2947
3202
  * Sends an upstream response on to the sandbox, scrubbed. False when it was refused instead,
2948
3203
  * already answered with a 502.
2949
3204
  */
2950
- function respond(status, headers, up, res, own, creds, url, t, readsModel = false) {
3205
+ function respond(status, headers, up, res, own, creds, url, t, reads = {}) {
2951
3206
  const plan = scrubPlan(status, headers, own, creds);
2952
3207
  if (plan.refuse) {
2953
3208
  refuseResponse(res, up, url, plan.refuse, t);
@@ -2955,8 +3210,10 @@ function createEgressProxy(options) {
2955
3210
  }
2956
3211
  const out = responseHeaders(headers, own, creds, plan);
2957
3212
  t?.set({ responseHeaders: plainHeaders(out) });
3213
+ const cost = reads.model ? headerCost(headers, options.costHeaders) : void 0;
3214
+ if (cost !== void 0) t?.set({ responseCost: cost });
2958
3215
  res.writeHead(status, out);
2959
- responseBody(up, plan, t, readsModel).once("error", () => res.destroy()).pipe(res);
3216
+ responseBody(up, plan, t, reads).once("error", () => res.destroy()).pipe(res);
2960
3217
  return true;
2961
3218
  }
2962
3219
  function forwardHttp1(req, res, upstream, to) {
@@ -2964,7 +3221,7 @@ function createEgressProxy(options) {
2964
3221
  upstream.once("response", (up) => {
2965
3222
  const status = up.statusCode ?? 502;
2966
3223
  if (exchange) return tokenized(exchange, url, status, up.headers, up, res, own, creds, t);
2967
- if (!respond(status, up.headers, up, res, own, creds, url, t, to.readsModel)) return;
3224
+ if (!respond(status, up.headers, up, res, own, creds, url, t, to.reads)) return;
2968
3225
  up.once("end", () => {
2969
3226
  if (Object.keys(up.trailers).length) res.addTrailers(scrubbedHeaders(up.trailers, [...own, ...creds]));
2970
3227
  });
@@ -2972,9 +3229,9 @@ function createEgressProxy(options) {
2972
3229
  upstream.once("error", (error) => {
2973
3230
  t?.set({
2974
3231
  status: 502,
2975
- reason: error.message
3232
+ reason: failure(error)
2976
3233
  });
2977
- if (!res.headersSent) res.writeHead(502).end(`reeval egress gateway: ${error.message}\n`);
3234
+ if (!res.headersSent) res.writeHead(502).end(`reeval egress gateway: ${failure(error)}\n`);
2978
3235
  else res.destroy();
2979
3236
  });
2980
3237
  req.pipe(upstream);
@@ -3011,7 +3268,7 @@ function createEgressProxy(options) {
3011
3268
  return reply(socket, refused.status, refused.reason);
3012
3269
  }
3013
3270
  const upstream = https.request({
3014
- host: target.address,
3271
+ ...reachAt(target),
3015
3272
  servername: net.isIP(target.host) ? void 0 : target.host,
3016
3273
  port: target.port,
3017
3274
  method,
@@ -3020,6 +3277,7 @@ function createEgressProxy(options) {
3020
3277
  ...headers,
3021
3278
  host: target.host
3022
3279
  },
3280
+ agent,
3023
3281
  ca
3024
3282
  });
3025
3283
  upstream.once("upgrade", (up, upSocket, upHead) => {
@@ -3050,17 +3308,17 @@ function createEgressProxy(options) {
3050
3308
  reply(socket, up.statusCode ?? 502, `upstream refused the upgrade (${up.statusCode})`);
3051
3309
  up.resume();
3052
3310
  });
3053
- upstream.once("error", (error) => reply(socket, 502, `reeval egress gateway: ${error.message}`));
3311
+ upstream.once("error", (error) => reply(socket, 502, `reeval egress gateway: ${failure(error)}`));
3054
3312
  upstream.end();
3055
3313
  }
3056
3314
  /** One HTTP/2 session per upstream, or null when it doesn't speak h2. */
3057
3315
  function upstreamSession(target) {
3058
- const key = `${target.host}:${target.port}`;
3316
+ const key = `${target.host}:${target.port}:${pinnedKey(target)}`;
3059
3317
  const existing = sessions.get(key);
3060
3318
  if (existing && !existing.closed && !existing.destroyed) return Promise.resolve(existing);
3061
3319
  return new Promise((resolve) => {
3062
3320
  const socket = tls.connect({
3063
- host: target.address,
3321
+ ...reachAt(target),
3064
3322
  port: target.port,
3065
3323
  servername: net.isIP(target.host) ? void 0 : target.host,
3066
3324
  ALPNProtocols: ["h2", "http/1.1"],
@@ -3102,6 +3360,31 @@ function createEgressProxy(options) {
3102
3360
  setPolicy(policy) {
3103
3361
  policyCheck = createPolicyCheck(policy, options);
3104
3362
  },
3363
+ async switchPolicy(policy, next) {
3364
+ phase = next;
3365
+ generation++;
3366
+ const recheck = createPolicyCheck(policy, options);
3367
+ policyCheck = recheck;
3368
+ await new Promise((r) => setImmediate(r));
3369
+ await Promise.all([...tunnels].map(async ([connection, { host, port }]) => {
3370
+ const verdict = await recheck(host);
3371
+ if (verdict.allowed || verdict.status === 502 || connection.destroyed) return;
3372
+ log(`reeval:egress ${host}:${port} tunnel closed (${verdict.reason})`);
3373
+ tunnels.delete(connection);
3374
+ connection.destroy();
3375
+ const key = keyed(`closed ${host}:${port}`);
3376
+ const entry = blocked.get(key) ?? {
3377
+ host,
3378
+ port,
3379
+ connections: 0,
3380
+ reason: `a tunnel opened before the ${next} phase, closed: ${verdict.reason}`,
3381
+ ...tagged(),
3382
+ closed: true
3383
+ };
3384
+ entry.connections++;
3385
+ blocked.set(key, entry);
3386
+ }));
3387
+ },
3105
3388
  setSubstitutions(all) {
3106
3389
  subs = [...all];
3107
3390
  },
@@ -3110,6 +3393,7 @@ function createEgressProxy(options) {
3110
3393
  for (const s of sessions.values()) s.destroy();
3111
3394
  sessions.clear();
3112
3395
  agent.destroy();
3396
+ plainAgent.destroy();
3113
3397
  }
3114
3398
  };
3115
3399
  }
@@ -3158,19 +3442,66 @@ function execSpawn(transport, command) {
3158
3442
  }));
3159
3443
  return child;
3160
3444
  }
3445
+ /** What every `ssh` reeval runs passes: no prompt, a dropped connection noticed within a minute. */
3446
+ const SSH_OPTIONS = [
3447
+ "-o",
3448
+ "BatchMode=yes",
3449
+ "-o",
3450
+ "ServerAliveInterval=15",
3451
+ "-o",
3452
+ "ServerAliveCountMax=4",
3453
+ "-o",
3454
+ "LogLevel=ERROR"
3455
+ ];
3161
3456
  /**
3162
- * The host argv that runs `remote`, one shell command line, on `target`. ssh joins its remote
3163
- * arguments into one line for the login shell, so the caller quotes it. No user config applies.
3457
+ * Whether `dir` is a directory only this user can enter, made (0700) first with `make`. An ssh
3458
+ * client trusts whatever listens at its ControlPath, so a socket in a directory another user can
3459
+ * write lets them stand in for the host.
3164
3460
  */
3165
- function sshArgv(target, remote) {
3166
- const shared = target.controlPath && process.platform !== "win32" ? [
3461
+ function privateDir(dir, o = {}) {
3462
+ try {
3463
+ if (o.make) mkdirSync(dir, {
3464
+ recursive: true,
3465
+ mode: 448
3466
+ });
3467
+ const st = lstatSync(dir);
3468
+ return st.isDirectory() && st.uid === process.getuid?.() && (st.mode & 63) === 0;
3469
+ } catch {
3470
+ return false;
3471
+ }
3472
+ }
3473
+ /**
3474
+ * Whether ssh can listen on a control socket at `path` on `platform`. A socket's path has
3475
+ * `sizeof(sun_path)` bytes with its NUL (104 on macOS and the BSDs, 108 on Linux), and the master
3476
+ * first listens on `path` plus a 17-byte random suffix. `%C` expands to a 40-character hash.
3477
+ */
3478
+ function controlPathFits(path, platform = process.platform) {
3479
+ const room = platform === "linux" ? 108 : 104;
3480
+ return Buffer.byteLength(path.replaceAll("%C", "C".repeat(40))) + 17 < room;
3481
+ }
3482
+ /**
3483
+ * The options that share one connection through a control socket at `path`, kept open `persistS`
3484
+ * seconds after the last command; none on Windows, whose OpenSSH has no ControlMaster, when the
3485
+ * path is too long for a socket ({@link controlPathFits}), or when the socket's directory isn't
3486
+ * {@link privateDir}. `path` may end in an ssh token such as `%C`.
3487
+ */
3488
+ function controlOptions(path, persistS) {
3489
+ if (!path || process.platform === "win32" || !controlPathFits(path)) return [];
3490
+ if (!privateDir(dirname(path))) return [];
3491
+ return [
3167
3492
  "-o",
3168
3493
  "ControlMaster=auto",
3169
3494
  "-o",
3170
- `ControlPath=${target.controlPath}`,
3495
+ `ControlPath=${path}`,
3171
3496
  "-o",
3172
- "ControlPersist=300"
3173
- ] : [];
3497
+ `ControlPersist=${persistS}`
3498
+ ];
3499
+ }
3500
+ /**
3501
+ * The host argv that runs `remote`, one shell command line, on `target`. ssh joins its remote
3502
+ * arguments into one line for the login shell, so the caller quotes it. No user config applies.
3503
+ */
3504
+ function sshArgv(target, remote) {
3174
3505
  return [
3175
3506
  "ssh",
3176
3507
  "-T",
@@ -3180,8 +3511,7 @@ function sshArgv(target, remote) {
3180
3511
  target.identityFile,
3181
3512
  "-p",
3182
3513
  String(target.port),
3183
- "-o",
3184
- "BatchMode=yes",
3514
+ ...SSH_OPTIONS,
3185
3515
  "-o",
3186
3516
  "IdentitiesOnly=yes",
3187
3517
  "-o",
@@ -3194,13 +3524,7 @@ function sshArgv(target, remote) {
3194
3524
  `HostKeyAlias=${target.hostKeyAlias}`,
3195
3525
  "-o",
3196
3526
  "ConnectTimeout=20",
3197
- "-o",
3198
- "ServerAliveInterval=15",
3199
- "-o",
3200
- "ServerAliveCountMax=4",
3201
- "-o",
3202
- "LogLevel=ERROR",
3203
- ...shared,
3527
+ ...controlOptions(target.controlPath, 300),
3204
3528
  `${target.user}@${target.host}`,
3205
3529
  remote
3206
3530
  ];
@@ -3401,6 +3725,7 @@ async function startGateway(transport, options, signal) {
3401
3725
  addTransformations: proxy.addTransformations,
3402
3726
  setTransformations: proxy.setTransformations,
3403
3727
  setPolicy: proxy.setPolicy,
3728
+ switchPolicy: proxy.switchPolicy,
3404
3729
  setSubstitutions: proxy.setSubstitutions,
3405
3730
  traffic: proxy.traffic,
3406
3731
  get stopped() {
@@ -3540,13 +3865,18 @@ const userEnv = (options) => ({
3540
3865
  NPM_CONFIG_UPDATE_NOTIFIER: "false",
3541
3866
  ...options.root ? {} : { NPM_CONFIG_PREFIX: `${SANDBOX_HOME}/.local` }
3542
3867
  });
3543
- /** The gateway didn't start for a detached container, which then has no way out: `reason` says why. */
3868
+ /**
3869
+ * The gateway didn't start for a detached container, which then has no way out, or the container
3870
+ * has a route out no disconnect takes away (`network`): `reason` says why.
3871
+ */
3544
3872
  var EgressUnavailableError = class extends Error {
3545
3873
  reason;
3546
- constructor(reason) {
3874
+ network;
3875
+ constructor(reason, o = {}) {
3547
3876
  super(`Can't enforce the egress policy: ${reason}`);
3548
3877
  this.name = "EgressUnavailableError";
3549
3878
  this.reason = reason;
3879
+ this.network = !!o.network;
3550
3880
  }
3551
3881
  };
3552
3882
  /** Root's PATH in a privileged exec: none of the sandbox user's own `bin` directories. */
@@ -3757,13 +4087,22 @@ async function createDockerSession(options) {
3757
4087
  }
3758
4088
  const egressOptions = options.egress === true ? {} : options.egress || void 0;
3759
4089
  let egress;
3760
- const direct = (policy) => !!egressOptions?.direct && !isRestricted(policy);
4090
+ let directNow = !!egressOptions?.direct;
4091
+ const direct = (policy) => directNow && !isRestricted(policy);
3761
4092
  let detached = [];
4093
+ /**
4094
+ * Its networks, or a throw when it has a route out that no disconnect can take away: the host's
4095
+ * network (Docker lists it as one, Podman as a mode) or rootless Podman's slirp4netns or pasta.
4096
+ */
4097
+ const detachable = async () => {
4098
+ const networks = await networksOf(id, engine);
4099
+ const mode = networks.includes("host") ? "host" : networks.length === 0 ? await networkMode(id, engine) : "none";
4100
+ if (mode !== "none") throw new EgressUnavailableError(`the container's network is ${mode}, which ${spec.name} can't detach it from, so traffic around the gateway would still have a route out`, { network: true });
4101
+ return networks;
4102
+ };
3762
4103
  const attach = async (policy) => {
3763
4104
  if (!direct(policy) && detached.length === 0) {
3764
- detached = await networksOf(id, engine);
3765
- const mode = detached.length === 0 ? await networkMode(id, engine) : "none";
3766
- if (detached.length === 0 && mode !== "none") throw new Error(`the container's network is ${mode}, which ${spec.name} can't detach it from, so traffic around the gateway would still have a route out`);
4105
+ detached = await detachable();
3767
4106
  for (const n of detached) await dockerOk([
3768
4107
  "network",
3769
4108
  "disconnect",
@@ -3782,18 +4121,20 @@ async function createDockerSession(options) {
3782
4121
  }
3783
4122
  };
3784
4123
  if (egressOptions) {
3785
- const { policy = { mode: "allow-all" }, direct: _, ...rest } = egressOptions;
4124
+ const { policy = { mode: "allow-all" }, direct: _, detachLater, ...rest } = egressOptions;
3786
4125
  try {
3787
4126
  await attach(policy);
4127
+ if (detachLater && direct(policy)) await detachable();
3788
4128
  gateway = await startGateway(containerTransport(id, engine), {
3789
4129
  ...rest,
3790
4130
  policy
3791
4131
  }, signal);
3792
4132
  egress = { active: true };
3793
4133
  } catch (error) {
3794
- if (signal?.aborted || !direct(policy)) {
4134
+ if (signal?.aborted || !direct(policy) || detachLater) {
3795
4135
  await remove();
3796
4136
  if (signal?.aborted) throw signal.reason;
4137
+ if (error instanceof EgressUnavailableError) throw error;
3797
4138
  throw new EgressUnavailableError(error.message);
3798
4139
  }
3799
4140
  egress = {
@@ -3972,6 +4313,12 @@ async function createDockerSession(options) {
3972
4313
  async setSubstitutions(subs) {
3973
4314
  gateway?.setSubstitutions(subs);
3974
4315
  },
4316
+ async setEgress({ policy, direct: keeps, phase }) {
4317
+ directNow = keeps;
4318
+ if (!direct(policy)) await attach(policy);
4319
+ await gateway?.switchPolicy(policy, phase);
4320
+ if (direct(policy)) await attach(policy);
4321
+ },
3975
4322
  traffic: () => gateway.traffic()
3976
4323
  } : {};
3977
4324
  const session = {
@@ -4112,6 +4459,7 @@ const dockerSandboxProvider = (options) => ({
4112
4459
  }
4113
4460
  });
4114
4461
  // ../sandbox-docker/src/build-image.ts
4462
+ /** The pnpm every image and baked Tart VM has: the harness bridges install with it. */
4115
4463
  const PNPM_VERSION = "10.33.3";
4116
4464
  /** Pinned so evals' installs don't move with the Node image's bundled npm. */
4117
4465
  const NPM_VERSION = "11.20.0";
@@ -4145,22 +4493,22 @@ const BOOTSTRAPS = {
4145
4493
  name: "Cursor",
4146
4494
  cli: "@cursor/sdk",
4147
4495
  version: `node -p "'@cursor/sdk ' + require(process.env.HOME + '/.ai-sdk-harness/.harness-bootstrap/cursor-sdk/node_modules/@cursor/sdk/package.json').version"`,
4148
- adapter: async () => (await import("./src-CsFaawcZ.js")).createCursorSdk()
4496
+ adapter: async () => (await import("./src-CeBhwD8k.js")).createCursorSdk()
4149
4497
  },
4150
4498
  "claude-code": {
4151
4499
  name: "Claude Code",
4152
4500
  cli: "claude",
4153
- adapter: async () => (await import("./dist-Db7ifchA.js")).createClaudeCode()
4501
+ adapter: async () => (await import("./dist-DeqeCUZe.js")).createClaudeCode()
4154
4502
  },
4155
4503
  antigravity: {
4156
4504
  name: "Antigravity",
4157
4505
  cli: "agy",
4158
- adapter: async () => (await import("./src-BbZYaQ8b.js")).createAntigravity()
4506
+ adapter: async () => (await import("./src-C-mOSczH.js")).createAntigravity()
4159
4507
  },
4160
4508
  opencode: {
4161
4509
  name: "OpenCode",
4162
4510
  cli: "opencode",
4163
- adapter: async () => (await import("./src-1dBuXzs4.js")).createOpenCode({
4511
+ adapter: async () => (await import("./src-CZaYu6ER.js")).createOpenCode({
4164
4512
  auth: { GOOGLE_GENERATIVE_AI_API_KEY: "unused" },
4165
4513
  model: "google/unused"
4166
4514
  })
@@ -4168,25 +4516,37 @@ const BOOTSTRAPS = {
4168
4516
  goose: {
4169
4517
  name: "Goose",
4170
4518
  cli: "goose",
4171
- adapter: async () => (await import("./src-BY1cCaoJ.js")).createGoose({
4172
- auth: { GOOGLE_API_KEY: "unused" },
4173
- model: "unused"
4174
- })
4519
+ adapter: async () => {
4520
+ const goose = await import("./src-CkEiiyON.js");
4521
+ return goose.createGoose({
4522
+ auth: { GOOGLE_API_KEY: "unused" },
4523
+ provider: goose.GEMINI_PROVIDER,
4524
+ model: "unused"
4525
+ });
4526
+ }
4175
4527
  },
4176
4528
  pi: {
4177
4529
  name: "pi",
4178
4530
  cli: "pi",
4179
- adapter: async () => (await import("./src-CrV2WA2i.js")).createPi({ auth: { GEMINI_API_KEY: "unused" } })
4531
+ adapter: async () => {
4532
+ const pi = await import("./src-DA95rM6v.js");
4533
+ const provider = pi.piProvider("google");
4534
+ if ("refused" in provider) throw new Error(provider.refused);
4535
+ return pi.createPi({
4536
+ auth: { GEMINI_API_KEY: "unused" },
4537
+ provider
4538
+ });
4539
+ }
4180
4540
  },
4181
4541
  codex: {
4182
4542
  name: "Codex",
4183
4543
  cli: "codex",
4184
- adapter: async () => (await import("./src-CDFH2vVN.js")).createCodex({ auth: { OPENAI_API_KEY: "unused" } })
4544
+ adapter: async () => (await import("./src--yl1OypK.js")).createCodex({ auth: { OPENAI_API_KEY: "unused" } })
4185
4545
  },
4186
4546
  fx: {
4187
4547
  name: "fx",
4188
4548
  cli: "fx",
4189
- adapter: async () => (await import("./src-wKwznPgt.js")).createFx({
4549
+ adapter: async () => (await import("./src-CwH_nEaw.js")).createFx({
4190
4550
  auth: { AI_GATEWAY_API_KEY: "unused" },
4191
4551
  model: "unused/unused"
4192
4552
  })
@@ -4194,7 +4554,7 @@ const BOOTSTRAPS = {
4194
4554
  "grok-build": {
4195
4555
  name: "Grok Build",
4196
4556
  cli: "grok",
4197
- adapter: async () => (await import("./src-BKpioayC.js")).createGrokBuild({
4557
+ adapter: async () => (await import("./src-De0KY5S_.js")).createGrokBuild({
4198
4558
  auth: { XAI_API_KEY: "unused" },
4199
4559
  model: "unused"
4200
4560
  })
@@ -4522,6 +4882,28 @@ async function buildImage(log, options) {
4522
4882
  agentVersion
4523
4883
  };
4524
4884
  }
4885
+ /**
4886
+ * Runs `harness`'s bootstrap in `session` (a container, or a VM reeval then keeps as an image)
4887
+ * and returns the CLI version it installed.
4888
+ */
4889
+ const bakeHarness = (session, harness) => bake(session, BOOTSTRAPS[harness]);
4890
+ /**
4891
+ * A hash of the bootstrap `harness`'s adapter applies (its files and commands): it changes
4892
+ * whenever what the bootstrap installs does, version bump or not.
4893
+ */
4894
+ async function bakedRecipe(harness) {
4895
+ const recipe = await (await BOOTSTRAPS[harness].adapter()).getBootstrap?.({});
4896
+ if (!recipe) return "none";
4897
+ const files = [...recipe.files].sort((a, b) => a.path.localeCompare(b.path)).map((f) => [f.path, f.content]);
4898
+ return createHash("sha256").update(JSON.stringify([
4899
+ recipe.harnessId,
4900
+ recipe.bootstrapDir,
4901
+ files,
4902
+ recipe.commands
4903
+ ])).digest("hex").slice(0, 16);
4904
+ }
4905
+ /** The harness's name, as a bake's progress says it. */
4906
+ const bakedHarnessName = (harness) => BOOTSTRAPS[harness].name;
4525
4907
  /** Runs the harness bootstrap in `session` and returns the CLI version it installed. */
4526
4908
  async function bake(session, bootstrap) {
4527
4909
  await (await createHarnessSandboxTemplate({
@@ -4846,7 +5228,7 @@ async function createSshSession(options) {
4846
5228
  const asUser = (cwd, command) => `sudo -n -H -u ${SANDBOX_USER} -- env -i ${Object.entries(baseEnv).map(([k, v]) => shellQuote(`${k}=${v}`)).join(" ")} bash -c ${shellQuote(READER)} bash ${shellQuote(cwd)} ${shellQuote(command)}`;
4847
5229
  const asRoot = (command, marker) => `sudo -n -- env -i PATH=${SYSTEM_PATH} HOME=/root${marker ? ` ${EXEC_MARKER}=${marker}` : ""} /bin/sh -c ${shellQuote(`cd ${SANDBOX_STATE} || exit 1; ${EXEC_UMASK}; ${command}`)}`;
4848
5230
  const closeConnection = async () => {
4849
- if (!target.controlPath || process.platform === "win32") return;
5231
+ if (!controlOptions(target.controlPath, 0).length) return;
4850
5232
  const [bin = "ssh", ...args] = sshArgv(target, "");
4851
5233
  await run(bin, [
4852
5234
  "-O",
@@ -5099,6 +5481,6 @@ async function createSshSession(options) {
5099
5481
  };
5100
5482
  return session;
5101
5483
  }
5102
- export { SANDBOX_USER as $, CA_PATH as A, engineSpec as At, HARNESS_HOSTS as B, DEFAULT_LIMITS as C, causeLine as Ct, createDockerSession as D, retryTransient as Dt, ROOT_CAPABILITIES as E, parseBuildOutput as Et, placeholder as F, BASE_IMAGE as G, defaultAllowedHosts as H, applyTransformations as I, HARNESS_PACKAGES as J, BRIDGE_PORT as K, matches as L, startGateway as M, sshArgv as N, dockerSandboxProvider as O, ENGINES as Ot, sshTransport as P, SANDBOX_STATE as Q, onEndpoint as R, usesReevalBase as S, RETRY_DELAYS as St, PRIVILEGED_CAPABILITIES as T, isTransient as Tt, hostAllowed as U, PACKAGE_HOSTS as V, BAKED_HARNESSES as W, SANDBOX_HOME as X, LABEL as Y, SANDBOX_ROOT as Z, pluginBuildKey as _, onDockerCommand as _t, REEVAL_BASE_ARG as a, contextFiles as at, resolveFrom as b, shellQuote as bt, buildImage as c, dockerAvailable as ct, contextHash as d, dockerState as dt, WORKSPACE_DIR as et, dockerfileTag as f, imageInfo as ft, pluginBuildDir as g, OPAQUE_OUTPUT as gt, installScript as h, removeContainerDetached as ht, PLUGIN_BUILDS_DIR as i, isBakedHarness as it, PROXY_PORT as j, normalizeImageId as jt, pathOperations as k, dockerSeccompFile as kt, buildInstallLayer as l, dockerCapacity as lt, installLayerTag as m, isRegistryDigest as mt, MCP_TIMER as n, harnessLabel as nt, bakedAdapter as o, dockerignoreMatcher as ot, harnessImageFor as p, imageTags as pt, DEFAULT_IMAGE as q, DOCKER_CONTEXT as r, imageFor as rt, buildDockerfile as s, docker as st, createSshSession as t, adapterVersion as tt, buildPluginLayer as u, dockerOk as ut, pluginLayerTag as v, traceDocker as vt, EgressUnavailableError as w, failureCause as wt, sourceTreeHash as x, ImageBuildError as xt, pruneImages as y, run as yt, DOCKER_EGRESS as z };
5484
+ export { hostAllowed as $, ROOT_CAPABILITIES as A, run as At, privateDir as B, dockerSeccompFile as Bt, pruneImages as C, imageInfo as Ct, DEFAULT_LIMITS as D, OPAQUE_OUTPUT as Dt, usesReevalBase as E, removeContainerDetached as Et, PROXY_PORT as F, failureCause as Ft, placeholder as G, sshTransport as H, normalizeImageId as Ht, startGateway as I, isTransient as It, onEndpoint as J, applyTransformations as K, SSH_OPTIONS as L, parseBuildOutput as Lt, dockerSandboxProvider as M, ImageBuildError as Mt, pathOperations as N, RETRY_DELAYS as Nt, EgressUnavailableError as O, onDockerCommand as Ot, CA_PATH as P, causeLine as Pt, defaultAllowedHosts as Q, controlOptions as R, retryTransient as Rt, pluginLayerTag as S, dockerState as St, sourceTreeHash as T, isRegistryDigest as Tt, MODEL_FIELD as U, sshArgv as V, engineSpec as Vt, usageReader as W, HARNESS_HOSTS as X, DOCKER_EGRESS as Y, PACKAGE_HOSTS as Z, harnessImageFor as _, dockerignoreMatcher as _t, PNPM_VERSION as a, HARNESS_PACKAGES as at, pluginBuildDir as b, dockerCapacity as bt, bakedAdapter as c, SANDBOX_ROOT as ct, buildDockerfile as d, WORKSPACE_DIR as dt, requestFacts as et, buildImage as f, adapterVersion as ft, dockerfileTag as g, contextFiles as gt, contextHash as h, isBakedHarness as ht, PLUGIN_BUILDS_DIR as i, DEFAULT_IMAGE as it, createDockerSession as j, shellQuote as jt, PRIVILEGED_CAPABILITIES as k, traceDocker as kt, bakedHarnessName as l, SANDBOX_STATE as lt, buildPluginLayer as m, imageFor as mt, MCP_TIMER as n, BASE_IMAGE as nt, REEVAL_BASE_ARG as o, LABEL as ot, buildInstallLayer as p, harnessLabel as pt, matches as q, DOCKER_CONTEXT as r, BRIDGE_PORT as rt, bakeHarness as s, SANDBOX_HOME as st, createSshSession as t, BAKED_HARNESSES as tt, bakedRecipe as u, SANDBOX_USER as ut, installLayerTag as v, docker as vt, resolveFrom as w, imageTags as wt, pluginBuildKey as x, dockerOk as xt, installScript as y, dockerAvailable as yt, controlPathFits as z, ENGINES as zt };
5103
5485
 
5104
- //# sourceMappingURL=src-y0nOeRRE.js.map
5486
+ //# sourceMappingURL=src-BHJ4MWvY.js.map