reeval 0.20.0 → 0.22.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (481) hide show
  1. package/CHANGELOG.md +841 -0
  2. package/README.md +15 -15
  3. package/assets/gateway-models.mjs +65 -31
  4. package/dist/{adapter-C60z3wLq.js → adapter-Di9H2etg.js} +8 -49
  5. package/dist/adapter-Di9H2etg.js.map +1 -0
  6. package/dist/{agent-BmsMXZXx.js → agent-B-6GFDqA.js} +185 -38
  7. package/dist/agent-B-6GFDqA.js.map +1 -0
  8. package/dist/{agents-DXuFxtGC.js → agents-KBTYhSSh.js} +385 -116
  9. package/dist/agents-KBTYhSSh.js.map +1 -0
  10. package/dist/{app-files-DT5mJyV4.js → app-files-Cmh9FGr5.js} +3 -3
  11. package/dist/app-files-Cmh9FGr5.js.map +1 -0
  12. package/dist/{assemble-CE4pHKIa.js → assemble-CBMRIhso.js} +1 -1
  13. package/dist/{assemble-DM2PNU4R.js → assemble-DNVBTBp_.js} +172 -18
  14. package/dist/assemble-DNVBTBp_.js.map +1 -0
  15. package/dist/attach-EbDGKGTO.js +152 -0
  16. package/dist/attach-EbDGKGTO.js.map +1 -0
  17. package/dist/{attempt-CAdlwlNu.js → attempt-_dUsblVx.js} +2 -2
  18. package/dist/{attempt-CAdlwlNu.js.map → attempt-_dUsblVx.js.map} +1 -1
  19. package/dist/{attempt-host-7VviAJrl.js → attempt-host-DQvynDHk.js} +17 -8
  20. package/dist/attempt-host-DQvynDHk.js.map +1 -0
  21. package/dist/boat-Bzz8L-KQ.js +701 -0
  22. package/dist/boat-Bzz8L-KQ.js.map +1 -0
  23. package/dist/{boat-BjLqFJIZ.js → boat-Dek8ftIt.js} +20 -8
  24. package/dist/boat-Dek8ftIt.js.map +1 -0
  25. package/dist/bridge/index.mjs +6 -1
  26. package/dist/bundle-DZstHDeW.js +718 -0
  27. package/dist/bundle-DZstHDeW.js.map +1 -0
  28. package/dist/{capture-Ccf0Hmyx.js → capture-BkbPsfej.js} +61 -32
  29. package/dist/capture-BkbPsfej.js.map +1 -0
  30. package/dist/capture-CUAvk9KM.js +1 -0
  31. package/dist/{cases-z9E6DCd5.js → cases-CM-MQRQp.js} +133 -19
  32. package/dist/cases-CM-MQRQp.js.map +1 -0
  33. package/dist/cases-FvhbM8M5.js +1 -0
  34. package/dist/{cli-DTuLSlmW.js → cli-BgBBuxxJ.js} +412 -1044
  35. package/dist/cli-BgBBuxxJ.js.map +1 -0
  36. package/dist/{cli-spec-Dsr79Qy1.js → cli-spec-B5L9n-DV.js} +199 -35
  37. package/dist/cli-spec-B5L9n-DV.js.map +1 -0
  38. package/dist/cli.js +2 -2
  39. package/dist/client-DMEYR3MA.js +807 -0
  40. package/dist/client-DMEYR3MA.js.map +1 -0
  41. package/dist/{command-C2C7P5qo.js → command-BKb8eN_X.js} +10 -10
  42. package/dist/{command-C2C7P5qo.js.map → command-BKb8eN_X.js.map} +1 -1
  43. package/dist/{command-DSL7I-SI.js → command-D_w_kDpI.js} +25 -21
  44. package/dist/command-D_w_kDpI.js.map +1 -0
  45. package/dist/{command-Ff0T-1Hi.js → command-Dwlh0Vhu.js} +17 -16
  46. package/dist/command-Dwlh0Vhu.js.map +1 -0
  47. package/dist/{command-D8oMB2fa.js → command-loXH2jHr.js} +16 -16
  48. package/dist/{command-D8oMB2fa.js.map → command-loXH2jHr.js.map} +1 -1
  49. package/dist/{commands-xAOi_VEk.js → commands-Cuf57OYb.js} +174 -40
  50. package/dist/commands-Cuf57OYb.js.map +1 -0
  51. package/dist/{commands-Bk9NG1s_.js → commands-Dqli45sR.js} +1 -1
  52. package/dist/{config-SvK8pjEK.js → config-C0RKt00M.js} +288 -106
  53. package/dist/config-C0RKt00M.js.map +1 -0
  54. package/dist/{context-BdgCao9Q.js → context-DrEAtUyg.js} +2 -2
  55. package/dist/{context-BdgCao9Q.js.map → context-DrEAtUyg.js.map} +1 -1
  56. package/dist/{cost-BdRgySQl.js → cost-C21gGrju.js} +19 -9
  57. package/dist/cost-C21gGrju.js.map +1 -0
  58. package/dist/cost-IM80LyGD.js +1 -0
  59. package/dist/{cursor-catalog-DEzan4IT.js → cursor-catalog-CRsFxorF.js} +4 -4
  60. package/dist/{cursor-catalog-DEzan4IT.js.map → cursor-catalog-CRsFxorF.js.map} +1 -1
  61. package/dist/db-3o8s2EyD.js +2 -0
  62. package/dist/{db-BzOJ4Js4.js → db-ErnJ-gMD.js} +168 -248
  63. package/dist/db-ErnJ-gMD.js.map +1 -0
  64. package/dist/debug-CIXzB4wK.js.map +1 -1
  65. package/dist/{default-effort-BDKIxJyC.js → default-effort-D70cTG00.js} +4 -4
  66. package/dist/{default-effort-BDKIxJyC.js.map → default-effort-D70cTG00.js.map} +1 -1
  67. package/dist/{default-effort-BBDPbJ4D.js → default-effort-DHzj84dD.js} +1 -1
  68. package/dist/{dist-Db7ifchA.js → dist-DeqeCUZe.js} +5 -5
  69. package/dist/{dist-Db7ifchA.js.map → dist-DeqeCUZe.js.map} +1 -1
  70. package/dist/{docker-DFrjoNs-.js → docker-CFWzZOEk.js} +4 -4
  71. package/dist/{docker-DFrjoNs-.js.map → docker-CFWzZOEk.js.map} +1 -1
  72. package/dist/docker-DrMnpL84.js +1 -0
  73. package/dist/{doctor-DWK4ttex.js → doctor-B7utCSdh.js} +121 -100
  74. package/dist/doctor-B7utCSdh.js.map +1 -0
  75. package/dist/{environment-cPMCOk-h.js → environment-C0Gg8kyN.js} +49 -11
  76. package/dist/environment-C0Gg8kyN.js.map +1 -0
  77. package/dist/{errors-BZgLSZtV.js → errors-C1GBcWE2.js} +2 -2
  78. package/dist/{errors-BZgLSZtV.js.map → errors-C1GBcWE2.js.map} +1 -1
  79. package/dist/{eval-source-C9b1h8L6.js → eval-source-CsW5VIXS.js} +24 -12
  80. package/dist/eval-source-CsW5VIXS.js.map +1 -0
  81. package/dist/{evaluate-B12Tosvq.js → evaluate-BHQyAszQ.js} +679 -142
  82. package/dist/evaluate-BHQyAszQ.js.map +1 -0
  83. package/dist/{evaluate-COdzf7Hl.d.ts → evaluate-DzHq4EsU.d.ts} +2 -2
  84. package/dist/fake-bootstrap-VpisF1WE.js +15 -0
  85. package/dist/fake-bootstrap-VpisF1WE.js.map +1 -0
  86. package/dist/{files-tiNWe8Ih.js → files-BCraBodb.js} +3 -3
  87. package/dist/{files-tiNWe8Ih.js.map → files-BCraBodb.js.map} +1 -1
  88. package/dist/files-BjOJw4sn.js +1 -0
  89. package/dist/{files-DgXyaAg6.js → files-BrGVs4gY.js} +2 -2
  90. package/dist/{files-DgXyaAg6.js.map → files-BrGVs4gY.js.map} +1 -1
  91. package/dist/{files-BOBdC0uI.js → files-BuKWZCzY.js} +6 -6
  92. package/dist/{files-BOBdC0uI.js.map → files-BuKWZCzY.js.map} +1 -1
  93. package/dist/files-CAzVG3Rr.js +1 -0
  94. package/dist/{files-F5EG0WPT.js → files-Cv856jLN.js} +5 -5
  95. package/dist/{files-F5EG0WPT.js.map → files-Cv856jLN.js.map} +1 -1
  96. package/dist/files-D-Lir4aE.js +1 -0
  97. package/dist/files-DRlJ0Xr2.js +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/{files-s28a6czq.js → files-qjeqXnfE.js} +143 -20
  101. package/dist/files-qjeqXnfE.js.map +1 -0
  102. package/dist/gateway.d.ts +1 -1
  103. package/dist/{git-BpoqEgDV.js → git-DOrOtAiD.js} +3 -3
  104. package/dist/{git-BpoqEgDV.js.map → git-DOrOtAiD.js.map} +1 -1
  105. package/dist/{harness-DXv2gnaT.js → harness-FcTyyPco.js} +17 -8
  106. package/dist/harness-FcTyyPco.js.map +1 -0
  107. package/dist/harness-install-Dxho1yaU.js +53 -0
  108. package/dist/harness-install-Dxho1yaU.js.map +1 -0
  109. package/dist/{harness-C2berMiM.js → harness-nwnyghJZ.js} +14 -11
  110. package/dist/{harness-C2berMiM.js.map → harness-nwnyghJZ.js.map} +1 -1
  111. package/dist/harness.d.ts +11 -8
  112. package/dist/harness.js +1 -1
  113. package/dist/{ids-C_advdJA.js → ids-B-JKTCP8.js} +2 -2
  114. package/dist/{ids-C_advdJA.js.map → ids-B-JKTCP8.js.map} +1 -1
  115. package/dist/{images-D2jFze2v.js → images-Ch1y1t6_.js} +122 -73
  116. package/dist/images-Ch1y1t6_.js.map +1 -0
  117. package/dist/index.d.ts +46 -7
  118. package/dist/index.js +6 -6
  119. package/dist/{init-Bi1Q3lRi.js → init-C2HqCwnt.js} +33 -14
  120. package/dist/init-C2HqCwnt.js.map +1 -0
  121. package/dist/init-CM9xwyre.js +1 -0
  122. package/dist/{ink-list-BpfidQ1h.js → ink-list-BbKXElcQ.js} +54 -15
  123. package/dist/ink-list-BbKXElcQ.js.map +1 -0
  124. package/dist/inputs-5UIDpjz-.js +190 -0
  125. package/dist/inputs-5UIDpjz-.js.map +1 -0
  126. package/dist/inputs-load-C82HOKnb.js +1 -0
  127. package/dist/inputs-load-CGPyigMC.js +95 -0
  128. package/dist/inputs-load-CGPyigMC.js.map +1 -0
  129. package/dist/{invocations-CxGNOlh0.js → invocations-BrZAMuTb.js} +5 -5
  130. package/dist/{invocations-CxGNOlh0.js.map → invocations-BrZAMuTb.js.map} +1 -1
  131. package/dist/jiti-radm1Soi.js +52 -0
  132. package/dist/jiti-radm1Soi.js.map +1 -0
  133. package/dist/{judge-COMXT1Hx.js → judge-DwzqucLS.js} +17 -12
  134. package/dist/{judge-COMXT1Hx.js.map → judge-DwzqucLS.js.map} +1 -1
  135. package/dist/judge.d.ts +3 -1
  136. package/dist/judge.js +1 -1
  137. package/dist/{judgments-CzgpsTqv.js → judgments-Cj8bFaDG.js} +2 -2
  138. package/dist/{judgments-CzgpsTqv.js.map → judgments-Cj8bFaDG.js.map} +1 -1
  139. package/dist/{layout-Cm85tQYk.js → layout-Czh5wOpz.js} +14 -11
  140. package/dist/layout-Czh5wOpz.js.map +1 -0
  141. package/dist/{list-DuThsE28.js → list-B_C0k5ex.js} +33 -19
  142. package/dist/{list-DuThsE28.js.map → list-B_C0k5ex.js.map} +1 -1
  143. package/dist/live-C9Et_BVT.js +1 -0
  144. package/dist/{live-CgYbO4Te.js → live-DGgIrVw0.js} +7 -5
  145. package/dist/live-DGgIrVw0.js.map +1 -0
  146. package/dist/{live-DL0se4Zd.js → live-DgFm0H90.js} +9 -9
  147. package/dist/{live-DL0se4Zd.js.map → live-DgFm0H90.js.map} +1 -1
  148. package/dist/machine-service-2lIv5UWF.js +1 -0
  149. package/dist/machine-service-Ct_1XMMi.js +520 -0
  150. package/dist/machine-service-Ct_1XMMi.js.map +1 -0
  151. package/dist/machines-BnquHcBZ.js +120 -0
  152. package/dist/machines-BnquHcBZ.js.map +1 -0
  153. package/dist/{model-CkNVAxob.js → model-B1tdv9-d.js} +1 -1
  154. package/dist/model-Bcy4Qjmm.js +1 -0
  155. package/dist/{model-V3mMXp6x.js → model-DF77SgZv.js} +6 -6
  156. package/dist/{model-V3mMXp6x.js.map → model-DF77SgZv.js.map} +1 -1
  157. package/dist/{model-CwwkrCb7.js → model-DRa7yv6K.js} +9 -6
  158. package/dist/model-DRa7yv6K.js.map +1 -0
  159. package/dist/{model-cgt5uvu8.js → model-E5X8YBJM.js} +7 -6
  160. package/dist/model-E5X8YBJM.js.map +1 -0
  161. package/dist/model-calls-B0BoQfJ4.js +95 -0
  162. package/dist/model-calls-B0BoQfJ4.js.map +1 -0
  163. package/dist/{node-D7pAU--0.js → node-BjuhqQwa.js} +21 -10
  164. package/dist/node-BjuhqQwa.js.map +1 -0
  165. package/dist/{opencode-providers-BGiXt8_B.js → opencode-providers-ChJTQRmz.js} +5 -2
  166. package/dist/{opencode-providers-BGiXt8_B.js.map → opencode-providers-ChJTQRmz.js.map} +1 -1
  167. package/dist/{openrouter-models-Cw1z8-sq.js → openrouter-models-B1sIOTD2.js} +2 -2
  168. package/dist/{openrouter-models-Cw1z8-sq.js.map → openrouter-models-B1sIOTD2.js.map} +1 -1
  169. package/dist/options-C989kuVE.js +1 -0
  170. package/dist/own-reads-CYmBlrHK.js +15 -0
  171. package/dist/own-reads-CYmBlrHK.js.map +1 -0
  172. package/dist/{patch-DAi1nCuH.js → patch-BR8rdl7r.js} +2 -2
  173. package/dist/{patch-DAi1nCuH.js.map → patch-BR8rdl7r.js.map} +1 -1
  174. package/dist/pi-providers-HygmL1y-.js +552 -0
  175. package/dist/pi-providers-HygmL1y-.js.map +1 -0
  176. package/dist/{plain-BYUf_fUV.js → plain-Ctn8oUdp.js} +44 -10
  177. package/dist/plain-Ctn8oUdp.js.map +1 -0
  178. package/dist/{plan-CsPilzpk.js → plan-BcT4G5jj.js} +104 -15
  179. package/dist/plan-BcT4G5jj.js.map +1 -0
  180. package/dist/{plugins-BfnhazOv.js → plugins-cC0sqoDA.js} +608 -12
  181. package/dist/plugins-cC0sqoDA.js.map +1 -0
  182. package/dist/preflight-BMVDBcux.js +1 -0
  183. package/dist/{preflight-BixaE4BA.js → preflight-C9OtTb7k.js} +4 -4
  184. package/dist/{preflight-BixaE4BA.js.map → preflight-C9OtTb7k.js.map} +1 -1
  185. package/dist/{preflight-GkpgrBxP.js → preflight-DySHXeFJ.js} +9 -10
  186. package/dist/preflight-DySHXeFJ.js.map +1 -0
  187. package/dist/{preflight-D1C-iH0U.js → preflight-zsAn3heN.js} +1 -1
  188. package/dist/{prepare-C--rM_wO.js → prepare-MaRWRhNT.js} +2 -2
  189. package/dist/prepare-nbX1CXXg.js +409 -0
  190. package/dist/prepare-nbX1CXXg.js.map +1 -0
  191. package/dist/prices-B1vm_lPk.js +1 -0
  192. package/dist/{prices-5m3SzMZ3.js → prices-BrY_ihLs.js} +80 -22
  193. package/dist/prices-BrY_ihLs.js.map +1 -0
  194. package/dist/{provenance-BXyYwUC8.js → provenance-CkykifD9.js} +5 -5
  195. package/dist/{provenance-BXyYwUC8.js.map → provenance-CkykifD9.js.map} +1 -1
  196. package/dist/provider-DHT20Gl8.js +1 -0
  197. package/dist/{provider-BxzZq3Th.js → provider-ieWOn4YS.js} +2 -2
  198. package/dist/{provider-BxzZq3Th.js.map → provider-ieWOn4YS.js.map} +1 -1
  199. package/dist/provider-stop-CxzWW7Ft.js +69 -0
  200. package/dist/provider-stop-CxzWW7Ft.js.map +1 -0
  201. package/dist/providers-BkLGzaSY.js +1 -0
  202. package/dist/{providers-1p4HKYIp.js → providers-bNgfKa6m.js} +224 -49
  203. package/dist/providers-bNgfKa6m.js.map +1 -0
  204. package/dist/query-B2SQddoV.js +1 -0
  205. package/dist/{query-DhhU9ADI.js → query-DhV3a8lM.js} +2 -2
  206. package/dist/{query-DhhU9ADI.js.map → query-DhV3a8lM.js.map} +1 -1
  207. package/dist/{questions-CMAq4pr8.js → questions-Csv64WCb.js} +7 -7
  208. package/dist/{questions-CMAq4pr8.js.map → questions-Csv64WCb.js.map} +1 -1
  209. package/dist/{record-6IUzwP9K.js → record--vHreTLk.js} +11 -5
  210. package/dist/record--vHreTLk.js.map +1 -0
  211. package/dist/{redact-BhjtnjrU.js → redact-t-L3VGy8.js} +106 -2
  212. package/dist/redact-t-L3VGy8.js.map +1 -0
  213. package/dist/{remarks-D9Lcd1fF.js → remarks-BpdM_2RC.js} +2 -1
  214. package/dist/remarks-BpdM_2RC.js.map +1 -0
  215. package/dist/{remarks-BNABzemt.js → remarks-CYFOsnz5.js} +46 -11
  216. package/dist/remarks-CYFOsnz5.js.map +1 -0
  217. package/dist/remarks-CleoDlYw.js +1 -0
  218. package/dist/{remarks-DPCONFxZ.js → remarks-DqriPKxm.js} +3 -2
  219. package/dist/{remarks-DPCONFxZ.js.map → remarks-DqriPKxm.js.map} +1 -1
  220. package/dist/{remote-U7fNt0UP.js → remote-0CHog7Oq.js} +6 -6
  221. package/dist/{remote-U7fNt0UP.js.map → remote-0CHog7Oq.js.map} +1 -1
  222. package/dist/resolve-Bm9ZyFR-.js +1 -0
  223. package/dist/resolve-Bul8lHaa.js +205 -0
  224. package/dist/resolve-Bul8lHaa.js.map +1 -0
  225. package/dist/{resolve-Cx3a9UQ2.js → resolve-DorSHDBs.js} +14 -11
  226. package/dist/resolve-DorSHDBs.js.map +1 -0
  227. package/dist/resources-DqdwihhT.js +62 -0
  228. package/dist/resources-DqdwihhT.js.map +1 -0
  229. package/dist/{results-CQKXmHym.js → results-DhMgRkR0.js} +9 -22
  230. package/dist/results-DhMgRkR0.js.map +1 -0
  231. package/dist/{resume-POpZa1ge.js → resume-C8Ihfy-C.js} +166 -17
  232. package/dist/resume-C8Ihfy-C.js.map +1 -0
  233. package/dist/{retry-CmG809Mp.js → retry-Bfk7pDti.js} +4 -4
  234. package/dist/{retry-CmG809Mp.js.map → retry-Bfk7pDti.js.map} +1 -1
  235. package/dist/{root-Co0jhOT5.js → root-BzeoyfGd.js} +2 -2
  236. package/dist/{root-Co0jhOT5.js.map → root-BzeoyfGd.js.map} +1 -1
  237. package/dist/routes-Cp4gAjBZ.js +427 -0
  238. package/dist/routes-Cp4gAjBZ.js.map +1 -0
  239. package/dist/{runtime-Xm9oeC7o.js → runtime-CPUH0Vk5.js} +46 -5
  240. package/dist/runtime-CPUH0Vk5.js.map +1 -0
  241. package/dist/sandbox/boat.d.ts +1 -1
  242. package/dist/sandbox/boat.js +1 -1
  243. package/dist/{sandbox-DrlL4yqb.js → sandbox-z8q_4Ywn.js} +3 -3
  244. package/dist/{sandbox-DrlL4yqb.js.map → sandbox-z8q_4Ywn.js.map} +1 -1
  245. package/dist/sandbox.d.ts +1 -1
  246. package/dist/sandbox.js +1 -1
  247. package/dist/{server-C00zd6zl.js → server-BsQZtuF9.js} +9 -9
  248. package/dist/{server-C00zd6zl.js.map → server-BsQZtuF9.js.map} +1 -1
  249. package/dist/server-ZaMzUNmV.js +1 -0
  250. package/dist/services-BG8xuU82.js +39 -0
  251. package/dist/services-BG8xuU82.js.map +1 -0
  252. package/dist/{shared-Cfi45Bvy.js → shared-DtZwIAfy.js} +7 -1
  253. package/dist/shared-DtZwIAfy.js.map +1 -0
  254. package/dist/{source-DDgr48Gn.js → source-9HWaTEgV.js} +2 -2
  255. package/dist/{source-DDgr48Gn.js.map → source-9HWaTEgV.js.map} +1 -1
  256. package/dist/source-BcBDj-R0.js +1 -0
  257. package/dist/src-B2eHTCnp.js +3 -0
  258. package/dist/{src-DAzaCTcN.js → src-B5r1d23Y.js} +176 -18
  259. package/dist/src-B5r1d23Y.js.map +1 -0
  260. package/dist/{src-Dw79VLa3.js → src-Bb3k9Kn_.js} +208 -59
  261. package/dist/src-Bb3k9Kn_.js.map +1 -0
  262. package/dist/src-BfOlH_Bu.js +2 -0
  263. package/dist/src-BuGc40IF.js +2 -0
  264. package/dist/{src-CV_7DkPa.js → src-C-ChdnG6.js} +102 -13
  265. package/dist/src-C-ChdnG6.js.map +1 -0
  266. package/dist/src-C2K5_afU.js +2 -0
  267. package/dist/{src-YvblOrBU.js → src-C3OhA5pw.js} +87 -13
  268. package/dist/src-C3OhA5pw.js.map +1 -0
  269. package/dist/src-CSVJjghq.js +4 -0
  270. package/dist/{src-y0nOeRRE.js → src-CWfy8ct8.js} +1572 -487
  271. package/dist/src-CWfy8ct8.js.map +1 -0
  272. package/dist/src-CcrQQB0_.js +2 -0
  273. package/dist/src-CotUxxQV.js +2 -0
  274. package/dist/src-D-PwBaBB.js +2 -0
  275. package/dist/{src-Cb2MWozp.js → src-DNWiU__5.js} +276 -41
  276. package/dist/src-DNWiU__5.js.map +1 -0
  277. package/dist/{src-KxS91P7L.js → src-DwcTn4JY.js} +79 -11
  278. package/dist/src-DwcTn4JY.js.map +1 -0
  279. package/dist/{src-BNQznj4z.js → src-boB6D-5T.js} +124 -45
  280. package/dist/src-boB6D-5T.js.map +1 -0
  281. package/dist/{src-DvGns8cz.js → src-c3ZQu7Uu.js} +299 -17
  282. package/dist/src-c3ZQu7Uu.js.map +1 -0
  283. package/dist/src-jYqNkT-F.js +1 -0
  284. package/dist/start-Db5VRcRZ.js +660 -0
  285. package/dist/start-Db5VRcRZ.js.map +1 -0
  286. package/dist/state-CKIjZZRK.js +1 -0
  287. package/dist/{state-328JpnHA.js → state-DUYdzNA7.js} +21 -21
  288. package/dist/{state-328JpnHA.js.map → state-DUYdzNA7.js.map} +1 -1
  289. package/dist/store/local.d.ts +8 -0
  290. package/dist/store/local.js +16 -0
  291. package/dist/store/local.js.map +1 -0
  292. package/dist/store/s3.d.ts +10 -0
  293. package/dist/store/s3.js +18 -0
  294. package/dist/store/s3.js.map +1 -0
  295. package/dist/suite-CH1aaAbs.js +2 -0
  296. package/dist/{suite-COglUhPd.js → suite-DjGxmDSY.js} +6 -5
  297. package/dist/{suite-COglUhPd.js.map → suite-DjGxmDSY.js.map} +1 -1
  298. package/dist/{summary-DDy9DfyJ.js → summary-BK5Sa_N0.js} +28 -7
  299. package/dist/summary-BK5Sa_N0.js.map +1 -0
  300. package/dist/sync-DUi_P2UJ.js +559 -0
  301. package/dist/sync-DUi_P2UJ.js.map +1 -0
  302. package/dist/{tarball-CESxtK4X.js → tarball-C8BSTAMk.js} +2 -2
  303. package/dist/{tarball-CESxtK4X.js.map → tarball-C8BSTAMk.js.map} +1 -1
  304. package/dist/tart-BQ_Ap0l4.js +508 -0
  305. package/dist/tart-BQ_Ap0l4.js.map +1 -0
  306. package/dist/tart-CzViW3WZ.js +186 -0
  307. package/dist/tart-CzViW3WZ.js.map +1 -0
  308. package/dist/tart-DmVuVsmX.js +1 -0
  309. package/dist/tart-bake-D1RttYfM.js +148 -0
  310. package/dist/tart-bake-D1RttYfM.js.map +1 -0
  311. package/dist/tart-bake-DjFcsG3N.js +1 -0
  312. package/dist/tart-cli-BOcluha1.js +1 -0
  313. package/dist/tart-cli-gA9xEaQL.js +89 -0
  314. package/dist/tart-cli-gA9xEaQL.js.map +1 -0
  315. package/dist/tart-hosts-CHNrfV6u.js +313 -0
  316. package/dist/tart-hosts-CHNrfV6u.js.map +1 -0
  317. package/dist/tart-hosts-CWse-ASo.js +1 -0
  318. package/dist/{tart-images-DZ_Mbh-g.js → tart-images-CLBjfF9u.js} +64 -6
  319. package/dist/tart-images-CLBjfF9u.js.map +1 -0
  320. package/dist/testing.d.ts +36 -2
  321. package/dist/testing.js +4 -4
  322. package/dist/tool-class-krsmEo44.js +433 -0
  323. package/dist/tool-class-krsmEo44.js.map +1 -0
  324. package/dist/{trace-Dx2NBE1O.js → trace-BpXByD7W.js} +13 -2
  325. package/dist/{trace-Dx2NBE1O.js.map → trace-BpXByD7W.js.map} +1 -1
  326. package/dist/{traits-DKnYkqeK.js → traits-CCD8XsmI.js} +2 -2
  327. package/dist/{traits-DKnYkqeK.js.map → traits-CCD8XsmI.js.map} +1 -1
  328. package/dist/{transcript-CCf07UmU.js → transcript-BXWZiMuC.js} +3 -3
  329. package/dist/{transcript-CCf07UmU.js.map → transcript-BXWZiMuC.js.map} +1 -1
  330. package/dist/{types-C2mLpph3.js → types-CbcnJxCy.js} +7 -1
  331. package/dist/types-CbcnJxCy.js.map +1 -0
  332. package/dist/{types-DBwFsGem.d.ts → types-DKK8jj--.d.ts} +517 -45
  333. package/dist/ui-DKYjTVpn.js +1455 -0
  334. package/dist/ui-DKYjTVpn.js.map +1 -0
  335. package/dist/{usage-DJiDnh2D.js → usage-CwIRPPZ9.js} +16 -3
  336. package/dist/usage-CwIRPPZ9.js.map +1 -0
  337. package/dist/vercel-models-Ci33llXz.js +21 -0
  338. package/dist/vercel-models-Ci33llXz.js.map +1 -0
  339. package/dist/{vertex-Eb2wqahk.js → vertex-BEWxHoxH.js} +22 -6
  340. package/dist/{vertex-Eb2wqahk.js.map → vertex-BEWxHoxH.js.map} +1 -1
  341. package/dist/vertex-DXfcXYKn.js +1 -0
  342. package/dist/view/index.d.ts +32 -3
  343. package/dist/view/index.js +8 -8
  344. package/dist/{views-BROacjBv.js → views-B1zVLJsF.js} +6 -6
  345. package/dist/{views-BROacjBv.js.map → views-B1zVLJsF.js.map} +1 -1
  346. package/dist/views-DCjtw1jF.js +2 -0
  347. package/dist/{worker-entry-Smb4bNDc.js → worker-entry-DrAYYt0M.js} +37 -14
  348. package/dist/worker-entry-DrAYYt0M.js.map +1 -0
  349. package/dist/workspace-CnRbV8cM.js +1 -0
  350. package/dist/{workspace-DNDTEk8v.js → workspace-DwTe1zo6.js} +7 -7
  351. package/dist/{workspace-DNDTEk8v.js.map → workspace-DwTe1zo6.js.map} +1 -1
  352. package/docker/Dockerfile +1 -1
  353. package/package.json +15 -1
  354. package/skills/eval-rubric/SKILL.md +10 -0
  355. package/skills/reeval/SKILL.md +370 -0
  356. package/skills/reeval/references/capture.md +48 -0
  357. package/skills/reeval/references/cli.md +162 -0
  358. package/skills/reeval/references/compare.md +180 -0
  359. package/skills/reeval/references/config.md +147 -0
  360. package/skills/reeval/references/environments.md +218 -0
  361. package/skills/reeval/references/evals.md +241 -0
  362. package/skills/reeval/references/mistakes.md +39 -0
  363. package/skills/reeval/references/vocabulary.md +19 -0
  364. package/skills/setup/SKILL.md +219 -0
  365. package/skills/setup/references/templates.md +258 -0
  366. package/dist/adapter-C60z3wLq.js.map +0 -1
  367. package/dist/agent-BmsMXZXx.js.map +0 -1
  368. package/dist/agents-DXuFxtGC.js.map +0 -1
  369. package/dist/app-files-DT5mJyV4.js.map +0 -1
  370. package/dist/assemble-DM2PNU4R.js.map +0 -1
  371. package/dist/attempt-host-7VviAJrl.js.map +0 -1
  372. package/dist/boat-BjLqFJIZ.js.map +0 -1
  373. package/dist/boat-DSNgZt-t.js +0 -322
  374. package/dist/boat-DSNgZt-t.js.map +0 -1
  375. package/dist/capture-BzotD2hs.js +0 -1
  376. package/dist/capture-Ccf0Hmyx.js.map +0 -1
  377. package/dist/cases-Dy0mifal.js +0 -1
  378. package/dist/cases-z9E6DCd5.js.map +0 -1
  379. package/dist/cli-DTuLSlmW.js.map +0 -1
  380. package/dist/cli-spec-Dsr79Qy1.js.map +0 -1
  381. package/dist/client-KM4C5r5_.js +0 -387
  382. package/dist/client-KM4C5r5_.js.map +0 -1
  383. package/dist/command-DSL7I-SI.js.map +0 -1
  384. package/dist/command-Ff0T-1Hi.js.map +0 -1
  385. package/dist/commands-xAOi_VEk.js.map +0 -1
  386. package/dist/config-SvK8pjEK.js.map +0 -1
  387. package/dist/cost-BdRgySQl.js.map +0 -1
  388. package/dist/cost-Cr26Alhq.js +0 -1
  389. package/dist/db-BzOJ4Js4.js.map +0 -1
  390. package/dist/db-CQRZ3URX.js +0 -2
  391. package/dist/docker--mukta3L.js +0 -1
  392. package/dist/docker-DG_uFgn2.js +0 -246
  393. package/dist/docker-DG_uFgn2.js.map +0 -1
  394. package/dist/doctor-DWK4ttex.js.map +0 -1
  395. package/dist/environment-cPMCOk-h.js.map +0 -1
  396. package/dist/eval-source-C9b1h8L6.js.map +0 -1
  397. package/dist/evaluate-B12Tosvq.js.map +0 -1
  398. package/dist/files-C1Rk9FYA.js +0 -1
  399. package/dist/files-DMQ9-Vv5.js +0 -1
  400. package/dist/files-Di0xDbCc.js +0 -1
  401. package/dist/files-G5jf8wBp.js +0 -1
  402. package/dist/files-s28a6czq.js.map +0 -1
  403. package/dist/harness-DXv2gnaT.js.map +0 -1
  404. package/dist/images-D2jFze2v.js.map +0 -1
  405. package/dist/init-Bi1Q3lRi.js.map +0 -1
  406. package/dist/init-CUw65o36.js +0 -1
  407. package/dist/ink-list-BpfidQ1h.js.map +0 -1
  408. package/dist/kinds-Bh2I35id.js +0 -698
  409. package/dist/kinds-Bh2I35id.js.map +0 -1
  410. package/dist/layout-Cm85tQYk.js.map +0 -1
  411. package/dist/live-CgYbO4Te.js.map +0 -1
  412. package/dist/live-DZLmj0iG.js +0 -1
  413. package/dist/matchers-CXLn-1jm.js +0 -148
  414. package/dist/matchers-CXLn-1jm.js.map +0 -1
  415. package/dist/model-Cv4GuTsZ.js +0 -1
  416. package/dist/model-CwwkrCb7.js.map +0 -1
  417. package/dist/model-cgt5uvu8.js.map +0 -1
  418. package/dist/node-D7pAU--0.js.map +0 -1
  419. package/dist/options-DPUmk7v_.js +0 -1
  420. package/dist/plain-BYUf_fUV.js.map +0 -1
  421. package/dist/plan-CsPilzpk.js.map +0 -1
  422. package/dist/plugins-BfnhazOv.js.map +0 -1
  423. package/dist/preflight-Bn3ianye.js +0 -1
  424. package/dist/preflight-GkpgrBxP.js.map +0 -1
  425. package/dist/prepare-DQEDXoDp.js +0 -268
  426. package/dist/prepare-DQEDXoDp.js.map +0 -1
  427. package/dist/prices-5m3SzMZ3.js.map +0 -1
  428. package/dist/provider-BnUoz4KB.js +0 -1
  429. package/dist/providers-1p4HKYIp.js.map +0 -1
  430. package/dist/providers-B-ijCktf.js +0 -1
  431. package/dist/query-BYhyf0LR.js +0 -1
  432. package/dist/record-6IUzwP9K.js.map +0 -1
  433. package/dist/redact-BhjtnjrU.js.map +0 -1
  434. package/dist/remarks-BNABzemt.js.map +0 -1
  435. package/dist/remarks-CAvTSq16.js +0 -1
  436. package/dist/remarks-D9Lcd1fF.js.map +0 -1
  437. package/dist/resolve-C14Pmtej.js +0 -1
  438. package/dist/resolve-Cx3a9UQ2.js.map +0 -1
  439. package/dist/results-CQKXmHym.js.map +0 -1
  440. package/dist/resume-POpZa1ge.js.map +0 -1
  441. package/dist/runtime-Xm9oeC7o.js.map +0 -1
  442. package/dist/server-C1UJcpUh.js +0 -1
  443. package/dist/shared-Cfi45Bvy.js.map +0 -1
  444. package/dist/source-DJHmQv_j.js +0 -1
  445. package/dist/src-1dBuXzs4.js +0 -3
  446. package/dist/src-BKpioayC.js +0 -2
  447. package/dist/src-BNQznj4z.js.map +0 -1
  448. package/dist/src-BY1cCaoJ.js +0 -2
  449. package/dist/src-BbZYaQ8b.js +0 -2
  450. package/dist/src-CDFH2vVN.js +0 -2
  451. package/dist/src-CMW5R9Q0.js +0 -1
  452. package/dist/src-CV_7DkPa.js.map +0 -1
  453. package/dist/src-Cb2MWozp.js.map +0 -1
  454. package/dist/src-CrV2WA2i.js +0 -2
  455. package/dist/src-CsFaawcZ.js +0 -2
  456. package/dist/src-DAzaCTcN.js.map +0 -1
  457. package/dist/src-DvGns8cz.js.map +0 -1
  458. package/dist/src-Dw79VLa3.js.map +0 -1
  459. package/dist/src-KxS91P7L.js.map +0 -1
  460. package/dist/src-YvblOrBU.js.map +0 -1
  461. package/dist/src-wKwznPgt.js +0 -2
  462. package/dist/src-y0nOeRRE.js.map +0 -1
  463. package/dist/state-Ca55Gk_O.js +0 -1
  464. package/dist/suite-CKBa6MKt.js +0 -2
  465. package/dist/summary-DDy9DfyJ.js.map +0 -1
  466. package/dist/tart-cli-C-GsbVsQ.js +0 -1
  467. package/dist/tart-cli-CU0nFS-L.js +0 -55
  468. package/dist/tart-cli-CU0nFS-L.js.map +0 -1
  469. package/dist/tart-dWoJvWHc.js +0 -586
  470. package/dist/tart-dWoJvWHc.js.map +0 -1
  471. package/dist/tart-images-DZ_Mbh-g.js.map +0 -1
  472. package/dist/tool-target-DS5d72eH.js +0 -40
  473. package/dist/tool-target-DS5d72eH.js.map +0 -1
  474. package/dist/types-C2mLpph3.js.map +0 -1
  475. package/dist/usage-DJiDnh2D.js.map +0 -1
  476. package/dist/vercel-CGlSBv63.js +0 -344
  477. package/dist/vercel-CGlSBv63.js.map +0 -1
  478. package/dist/vertex-O88TCwgY.js +0 -1
  479. package/dist/views-B0Yt_Q1S.js +0 -2
  480. package/dist/worker-entry-Smb4bNDc.js.map +0 -1
  481. package/dist/workspace-C0dDP75l.js +0 -1
@@ -1,18 +1,11 @@
1
+ import { a as providerEndpoints, c as providerServedModel, o as providerHosts, s as providerModelResponses, u as resolveOpenCodeProvider } from "./opencode-providers-ChJTQRmz.js";
2
+ import { t as piProvider } from "./pi-providers-HygmL1y-.js";
3
+ import { O as pluginServerName, a as PLUGIN_PARTS, n as PLUGIN_DIR, r as PLUGIN_MANIFEST, t as PART_PATHS } from "./plugins-cC0sqoDA.js";
1
4
  import { o as withoutBom } from "./text-B8-W3Cvn.js";
2
- import { d as sandboxKind, f as suggestedSandbox, n as capabilitiesOf, p as takesHarness } from "./kinds-Bh2I35id.js";
3
- import { a as providerEndpoints, c as providerServedModel, o as providerHosts, s as providerModelResponses, u as resolveOpenCodeProvider } from "./opencode-providers-BGiXt8_B.js";
4
- import { a as VERCEL_KEY, c as servedOnVercel, i as VERCEL_HOST, n as FX_VERCEL_ENDPOINTS, r as VERCEL_GATEWAY, s as fxAskedModel, t as FX_VERCEL_CALL, u as OPENROUTER_GATEWAY } from "./vercel-CGlSBv63.js";
5
- import { a as VERTEX_ROUTES, t as SANDBOX_ACCESS_TOKEN } from "./vertex-Eb2wqahk.js";
6
- import { D as pluginServerName, a as PLUGIN_PARTS, n as PLUGIN_DIR, r as PLUGIN_MANIFEST, t as PART_PATHS } from "./plugins-BfnhazOv.js";
7
- import { t as InfraError } from "./types-C2mLpph3.js";
8
- // src/gateway/routes.ts
9
- /** Every gateway that brokers a key, by name. */
10
- const ROUTING_GATEWAYS = {
11
- vercel: VERCEL_GATEWAY,
12
- openrouter: OPENROUTER_GATEWAY
13
- };
14
- /** Whether a harness's `gateway` names one of {@link ROUTING_GATEWAYS}. */
15
- const isRoutingGateway = (name) => name !== void 0 && Object.hasOwn(ROUTING_GATEWAYS, name);
5
+ import { a as VERCEL_HOST, c as fxAskedModel, d as servedOn, f as vercelApi, l as fxVercelCall, n as isRoutingGateway, o as VERCEL_KEY, r as onRoutingGateway, t as ROUTING_GATEWAYS, u as fxVercelEndpoints } from "./routes-Cp4gAjBZ.js";
6
+ import { a as VERTEX_ROUTES, t as SANDBOX_ACCESS_TOKEN } from "./vertex-BEWxHoxH.js";
7
+ import { r as modelLimits } from "./prices-BrY_ihLs.js";
8
+ import { t as InfraError } from "./types-CbcnJxCy.js";
16
9
  // src/harness/agents.ts
17
10
  const WEB_EVENTS = {
18
11
  webSearch: "web-search",
@@ -23,6 +16,22 @@ function cursorUnreported(harnessMetadata) {
23
16
  const tools = harnessMetadata?.cursorSdk?.unreportedTools;
24
17
  return Array.isArray(tools) ? tools.flatMap((t) => WEB_EVENTS[t] ? [WEB_EVENTS[t]] : []) : [];
25
18
  }
19
+ const usdIn = (v) => typeof v === "number" && Number.isFinite(v) && v >= 0 ? v : void 0;
20
+ /** Claude Code's `total_cost_usd`, its session's cost so far, as its bridge reports it. */
21
+ function claudeCodeCost(harnessMetadata) {
22
+ const meta = harnessMetadata?.["claude-code"];
23
+ const usd = usdIn(meta?.costUsd);
24
+ if (usd === void 0) return void 0;
25
+ return {
26
+ usd,
27
+ session: typeof meta?.sessionId === "string" ? meta.sessionId : ""
28
+ };
29
+ }
30
+ /** The sum of the turn's model calls' `cost.total`, which pi prices itself. */
31
+ function piCost(harnessMetadata) {
32
+ const usd = usdIn(harnessMetadata?.pi?.costUsd);
33
+ return usd === void 0 ? void 0 : { usd };
34
+ }
26
35
  /** A Gemini API key's only request: `POST /v1beta/models/<model>:streamGenerateContent`. */
27
36
  const GEMINI_ENDPOINTS = [{
28
37
  host: "generativelanguage.googleapis.com",
@@ -73,6 +82,12 @@ const XAI_MODEL_RESPONSES = XAI_ENDPOINTS.filter((e) => e.path.exact === "/v1/ch
73
82
  const xaiServedModel = ({ host, responseModel }) => host === "api.x.ai" ? responseModel : void 0;
74
83
  /** The model a Gemini API request names in its URL. */
75
84
  const geminiServedModel = ({ host, path }) => host === "generativelanguage.googleapis.com" ? /^\/v1beta\/models\/([^/:]+):streamGenerateContent$/.exec(path)?.[1] : void 0;
85
+ /** Cursor's agent stream: one call per turn, which carries the turn's model output and tool calls. */
86
+ const CURSOR_RUN = {
87
+ host: "api2.cursor.sh",
88
+ path: { exact: "/agent.v1.AgentService/RunSSE" },
89
+ method: ["POST"]
90
+ };
76
91
  /** Cursor's key exchange: the only request the Cursor SDK sends the API key on. */
77
92
  const CURSOR_EXCHANGE = {
78
93
  host: "api2.cursor.sh",
@@ -110,6 +125,7 @@ function opencodeForModel(model, env = process.env) {
110
125
  credential: provider.env,
111
126
  endpoints: providerEndpoints(provider),
112
127
  ...modelResponses.length ? { modelResponses } : {},
128
+ modelCalls: providerEndpoints(provider).filter((e) => e.method.includes("POST")),
113
129
  servedModel: (request) => providerServedModel(provider, request),
114
130
  hosts: [...providerHosts(provider), "mcp.exa.ai"]
115
131
  };
@@ -123,6 +139,141 @@ function opencodeVars(model, env = process.env) {
123
139
  if ("error" in resolved) throw new InfraError(`opencode(): ${resolved.error}`);
124
140
  return resolved.vars;
125
141
  }
142
+ /** The `<provider>` a pi or Goose model id, `<provider>/<model>`, names. */
143
+ const providerOf = (model) => model.slice(0, Math.max(model.indexOf("/"), 0));
144
+ /** The model id pi or Goose asks its provider for: the id without its `<provider>/`. */
145
+ const withoutProvider = (model) => model.slice(model.indexOf("/") + 1);
146
+ /** reeval's name for a provider's key where it isn't the agent's: Google's, which the judge reads too. */
147
+ const HOST_CREDENTIAL = { google: "GOOGLE_GENERATIVE_AI_API_KEY" };
148
+ /** A provider's model calls: the POST requests among those its key is sent on. */
149
+ const modelCallsOf = (endpoints) => endpoints.filter((e) => e.method?.includes("POST"));
150
+ /** The model a response from `hosts`' model calls names. */
151
+ const respondedOn = (...hosts) => (request) => hosts.includes(request.host) && request.method === "POST" ? request.responseModel : void 0;
152
+ /**
153
+ * pi on the model's provider (`xai/grok-4.5` is xAI's), from the table probed on the pinned pi
154
+ * (harness-pi's pi-provider-table.ts): its key, the requests pi sends it on, their hosts, and the
155
+ * served model from a Gemini API's URL or the response body. Throws naming why reeval can't run a
156
+ * provider pi has, or that pi has none of that name.
157
+ */
158
+ function piForModel(model) {
159
+ const id = providerOf(model);
160
+ const provider = piProvider(id);
161
+ if ("refused" in provider) throw new InfraError(`pi(): ${directProviderRefusal("pi", model)}`);
162
+ const endpoints = provider.endpoints.map(({ host, method, path }) => ({
163
+ host,
164
+ method,
165
+ path
166
+ }));
167
+ const hosts = [...new Set(endpoints.map((e) => e.host))];
168
+ const inUrl = provider.endpoints.some((e) => e.api === "google-generative-ai");
169
+ const modelResponses = provider.endpoints.filter((e) => e.api !== "google-generative-ai").map(({ host, method, path }) => ({
170
+ host,
171
+ method,
172
+ path
173
+ }));
174
+ return {
175
+ credential: HOST_CREDENTIAL[id] ?? provider.credentialEnv,
176
+ authAs: provider.credentialEnv,
177
+ endpoints,
178
+ modelCalls: modelCallsOf(endpoints),
179
+ ...modelResponses.length ? { modelResponses } : {},
180
+ servedModel: (request) => openaiServedModel(request) ?? (inUrl && hosts.includes(request.host) ? /\/models\/([^/:]+):streamGenerateContent$/.exec(request.path)?.[1] : void 0) ?? respondedOn(...hosts)(request),
181
+ hosts
182
+ };
183
+ }
184
+ /** A provider pi runs on its own key; throws naming why reeval can't run one. */
185
+ function keyed(provider) {
186
+ if ("refused" in provider) throw new InfraError(`pi(): ${provider.refused}`);
187
+ return provider;
188
+ }
189
+ /** Anthropic's Messages API, whose response names the model that served it. */
190
+ const ANTHROPIC_MESSAGES = [{
191
+ host: "api.anthropic.com",
192
+ path: { exact: "/v1/messages" },
193
+ method: ["POST"]
194
+ }];
195
+ /** OpenAI's Chat Completions API, whose response names the model that served it. */
196
+ const OPENAI_CHAT = [{
197
+ host: "api.openai.com",
198
+ path: { exact: "/v1/chat/completions" },
199
+ method: ["POST"]
200
+ }];
201
+ /** xAI's Chat Completions API, which Goose's OpenAI-compatible `xai` provider calls. */
202
+ const XAI_CHAT = [{
203
+ host: "api.x.ai",
204
+ path: { exact: "/v1/chat/completions" },
205
+ method: ["POST"]
206
+ }];
207
+ /**
208
+ * Goose on each provider reeval brokers its key for (Goose's `google`, `anthropic`, `openai` and
209
+ * `xai`): its model calls and the model list it fetches.
210
+ */
211
+ const GOOSE_DIRECT = {
212
+ google: {
213
+ credential: "GOOGLE_GENERATIVE_AI_API_KEY",
214
+ authAs: "GOOGLE_API_KEY",
215
+ endpoints: GOOSE_ENDPOINTS,
216
+ servedModel: geminiServedModel,
217
+ hosts: ["generativelanguage.googleapis.com"]
218
+ },
219
+ anthropic: {
220
+ credential: "ANTHROPIC_API_KEY",
221
+ authAs: "ANTHROPIC_API_KEY",
222
+ endpoints: [...ANTHROPIC_MESSAGES, {
223
+ host: "api.anthropic.com",
224
+ path: { exact: "/v1/models" },
225
+ method: ["GET"]
226
+ }],
227
+ modelResponses: ANTHROPIC_MESSAGES,
228
+ servedModel: respondedOn("api.anthropic.com"),
229
+ hosts: ["api.anthropic.com"]
230
+ },
231
+ openai: {
232
+ credential: "OPENAI_API_KEY",
233
+ authAs: "OPENAI_API_KEY",
234
+ endpoints: [
235
+ ...OPENAI_CHAT,
236
+ ...OPENAI_MODEL_ENDPOINTS,
237
+ {
238
+ host: "api.openai.com",
239
+ path: { exact: "/v1/models" },
240
+ method: ["GET"]
241
+ }
242
+ ],
243
+ modelResponses: [...OPENAI_CHAT, ...OPENAI_MODEL_ENDPOINTS],
244
+ servedModel: (request) => openaiServedModel(request) ?? respondedOn("api.openai.com")(request),
245
+ hosts: ["api.openai.com"]
246
+ },
247
+ xai: {
248
+ credential: "XAI_API_KEY",
249
+ authAs: "XAI_API_KEY",
250
+ endpoints: [...XAI_CHAT, {
251
+ host: "api.x.ai",
252
+ path: { exact: "/v1/models" },
253
+ method: ["GET"]
254
+ }],
255
+ modelResponses: XAI_CHAT,
256
+ servedModel: xaiServedModel,
257
+ hosts: ["api.x.ai"]
258
+ }
259
+ };
260
+ /** The Goose providers reeval runs on their own keys, for messages. */
261
+ const GOOSE_PROVIDERS = Object.keys(GOOSE_DIRECT);
262
+ /** Goose on the model's provider; throws naming the providers reeval brokers a key for. */
263
+ function gooseForModel(model) {
264
+ const direct = GOOSE_DIRECT[providerOf(model)];
265
+ if (!direct) throw new InfraError(`goose(): ${directProviderRefusal("goose", model)}`);
266
+ return {
267
+ ...direct,
268
+ modelCalls: modelCallsOf(direct.endpoints)
269
+ };
270
+ }
271
+ /** Why pi or Goose can't run `model` on its provider's own key, or undefined when it can. */
272
+ function directProviderRefusal(kind, model) {
273
+ if (kind === "goose") return GOOSE_DIRECT[providerOf(model)] ? void 0 : `reeval runs Goose on its own key for its ${GOOSE_PROVIDERS.join(", ")} providers, so not ${model}: where Goose's other providers send their keys isn't probed yet. Run it through a gateway`;
274
+ const provider = piProvider(providerOf(model));
275
+ return "refused" in provider ? `${provider.refused}, so not ${model}` : void 0;
276
+ }
126
277
  /** Codex's `config.toml` `[mcp_servers]` shape. */
127
278
  function codexMcpServers(servers) {
128
279
  return Object.fromEntries(Object.entries(servers).map(([name, s]) => {
@@ -306,10 +457,10 @@ function fxForModel(model) {
306
457
  }
307
458
  return {
308
459
  credential: VERCEL_KEY,
309
- endpoints: FX_VERCEL_ENDPOINTS,
310
- modelResponses: [FX_VERCEL_CALL],
311
- servedModel: servedOnVercel,
312
- askedModel: fxAskedModel,
460
+ endpoints: fxVercelEndpoints(),
461
+ modelResponses: [fxVercelCall()],
462
+ servedModel: servedOn(),
463
+ askedModel: fxAskedModel(),
313
464
  hosts: [VERCEL_HOST]
314
465
  };
315
466
  }
@@ -504,6 +655,7 @@ const LAYOUTS = {
504
655
  rulesFile: "AGENTS.md",
505
656
  workspaceSkillDir: ".agents/skills",
506
657
  harnessSkillDir: ".gemini/config/skills",
658
+ builtinSkillDirs: [".gemini/antigravity-cli/builtin/skills"],
507
659
  pluginPlacement: "namespaced",
508
660
  pluginHookEvents: [
509
661
  "SessionStart",
@@ -516,6 +668,7 @@ const LAYOUTS = {
516
668
  rulesFile: "AGENTS.md",
517
669
  workspaceSkillDir: ".opencode/skills",
518
670
  harnessSkillDir: ".config/opencode/skills",
671
+ alsoReadsSkillDirs: [".claude/skills", ".agents/skills"],
519
672
  pluginPlacement: "flat",
520
673
  pluginUnpack: OPENCODE_PLUGIN_UNPACK
521
674
  },
@@ -523,6 +676,7 @@ const LAYOUTS = {
523
676
  rulesFile: "AGENTS.md",
524
677
  workspaceSkillDir: ".goose/skills",
525
678
  harnessSkillDir: ".ai-sdk-harness/.harness-bootstrap/goose/home/.config/goose/skills",
679
+ alsoReadsSkillDirs: [".agents/skills", ".claude/skills"],
526
680
  pluginPlacement: "flat"
527
681
  },
528
682
  pi: {
@@ -548,6 +702,7 @@ const LAYOUTS = {
548
702
  rulesFile: "AGENTS.md",
549
703
  workspaceSkillDir: ".grok/skills",
550
704
  harnessSkillDir: ".ai-sdk-harness/.harness-bootstrap/grok-build/home/.grok/skills",
705
+ alsoReadsSkillDirs: [".agents/skills", ".claude/skills"],
551
706
  pluginPlacement: "namespaced"
552
707
  }
553
708
  };
@@ -563,6 +718,8 @@ const AGENTS = {
563
718
  reasoningTokens: false,
564
719
  credential: "CURSOR_API_KEY",
565
720
  endpoints: [CURSOR_EXCHANGE],
721
+ modelCalls: [CURSOR_RUN],
722
+ modelStream: true,
566
723
  tokens: {
567
724
  endpoint: CURSOR_EXCHANGE,
568
725
  fields: ["accessToken", "refreshToken"],
@@ -570,7 +727,7 @@ const AGENTS = {
570
727
  },
571
728
  unreported: cursorUnreported,
572
729
  mcpServers: cursorMcpServers,
573
- adapter: async ({ auth, mcpServers, descriptor }) => (await import("./src-CsFaawcZ.js")).createCursorSdk({
730
+ adapter: async ({ auth, mcpServers, descriptor }) => (await import("./src-BuGc40IF.js")).createCursorSdk({
574
731
  auth,
575
732
  ...mcpServers ? { mcpServers } : {},
576
733
  ...descriptor.kind === "cursor" && descriptor.params ? { modelParams: descriptor.params } : {},
@@ -583,11 +740,19 @@ const AGENTS = {
583
740
  pluginParts: CLAUDE_FORMAT_PARTS,
584
741
  name: "Claude Code",
585
742
  factory: "claudeCode",
586
- platforms: ["linux"],
743
+ bridgePort: true,
744
+ platforms: ["linux", "darwin"],
587
745
  reasoning: "streamed",
588
- reasoningTokens: false,
746
+ reasoningTokens: true,
589
747
  subagentCalls: true,
748
+ reportedCost: claudeCodeCost,
590
749
  credential: "ANTHROPIC_API_KEY",
750
+ fallbackCredentials: ["CLAUDE_CODE_OAUTH_TOKEN"],
751
+ modelCalls: [{
752
+ host: "api.anthropic.com",
753
+ path: { exact: "/v1/messages" },
754
+ method: ["POST"]
755
+ }],
591
756
  endpoints: [
592
757
  {
593
758
  host: "api.anthropic.com",
@@ -611,7 +776,7 @@ const AGENTS = {
611
776
  }
612
777
  ],
613
778
  mcpServers: claudeMcpServers,
614
- adapter: async ({ auth, env, mcpServers, descriptor }) => (await import("./dist-Db7ifchA.js")).createClaudeCode({
779
+ adapter: async ({ auth, env, mcpServers, descriptor }) => (await import("./dist-DeqeCUZe.js")).createClaudeCode({
615
780
  auth,
616
781
  ...mcpServers ? { mcpServers } : {},
617
782
  ...descriptor.kind === "claude-code" && descriptor.effort ? { effort: descriptor.effort } : {},
@@ -633,18 +798,20 @@ const AGENTS = {
633
798
  ],
634
799
  name: "Antigravity",
635
800
  factory: "antigravity",
636
- platforms: ["linux"],
637
- reasoning: "none",
801
+ keychainTrust: true,
802
+ platforms: ["linux", "darwin"],
803
+ reasoning: "recovered",
638
804
  reasoningTokens: true,
639
805
  credential: "GEMINI_API_KEY",
640
806
  endpoints: ANTIGRAVITY_ENDPOINTS,
807
+ modelCalls: ANTIGRAVITY_ENDPOINTS,
641
808
  expectedBlocked: {
642
809
  hosts: ["play.googleapis.com", "antigravity-unleash.goog"],
643
810
  why: "Antigravity's telemetry and feature flags, which its CLI sends even with telemetry off"
644
811
  },
645
812
  servedModel: geminiServedModel,
646
813
  mcpServers: antigravityMcpServers,
647
- adapter: async ({ auth, mcpServers, descriptor, plugins, vertex }) => (await import("./src-BbZYaQ8b.js")).createAntigravity({
814
+ adapter: async ({ auth, mcpServers, descriptor, plugins, vertex }) => (await import("./src-CotUxxQV.js")).createAntigravity({
648
815
  auth,
649
816
  ...vertex ? { vertex } : {},
650
817
  ...mcpServers ? { mcpServers } : {},
@@ -666,16 +833,21 @@ const AGENTS = {
666
833
  ],
667
834
  name: "OpenCode",
668
835
  factory: "opencode",
669
- platforms: ["linux"],
836
+ bridgePort: true,
837
+ platforms: ["linux", "darwin"],
670
838
  configuredModelOnStart: true,
671
839
  reasoning: "streamed",
672
840
  reasoningTokens: "provider",
673
- credential: "GOOGLE_GENERATIVE_AI_API_KEY",
674
- endpoints: GEMINI_ENDPOINTS,
675
- servedModel: geminiServedModel,
841
+ storedUsage: async () => {
842
+ const m = await import("./src-B2eHTCnp.js");
843
+ return {
844
+ command: m.openCodeStoredUsageCommand,
845
+ parse: m.parseOpenCodeStoredUsage
846
+ };
847
+ },
676
848
  forModel: opencodeForModel,
677
849
  mcpServers: opencodeMcpServers,
678
- adapter: async ({ auth, mcpServers, descriptor, model, vertex }) => (await import("./src-1dBuXzs4.js")).createOpenCode({
850
+ adapter: async ({ auth, mcpServers, descriptor, model, vertex }) => (await import("./src-B2eHTCnp.js")).createOpenCode({
679
851
  auth,
680
852
  model,
681
853
  ...vertex ? { vertex } : { vars: opencodeVars(model) },
@@ -689,32 +861,48 @@ const AGENTS = {
689
861
  pluginParts: ["skills", "mcp"],
690
862
  name: "Goose",
691
863
  factory: "goose",
692
- platforms: ["linux"],
864
+ keychainTrust: true,
865
+ bridgePort: true,
866
+ platforms: ["linux", "darwin"],
693
867
  configuredModelOnStart: true,
694
868
  reasoning: "streamed",
695
869
  reasoningTokens: false,
696
- credential: "GOOGLE_GENERATIVE_AI_API_KEY",
697
- endpoints: GOOSE_ENDPOINTS,
870
+ storedUsage: async () => {
871
+ const m = await import("./src-BfOlH_Bu.js");
872
+ return {
873
+ command: m.gooseStoredUsageCommand,
874
+ parse: m.parseGooseStoredUsage,
875
+ mark: m.gooseUsageMark
876
+ };
877
+ },
878
+ forModel: gooseForModel,
879
+ modelId: withoutProvider,
698
880
  expectedBlocked: {
699
881
  hosts: ["models.dev"],
700
882
  why: "Goose's model catalog refresh, which no setting turns off"
701
883
  },
702
- servedModel: geminiServedModel,
703
884
  mcpServers: gooseMcpServers,
704
- adapter: async ({ auth, mcpServers, descriptor, model, vertex }) => (await import("./src-BY1cCaoJ.js")).createGoose({
705
- ...vertex ? { vertex } : {},
706
- ...auth["AI_GATEWAY_API_KEY"] ? {
707
- auth,
708
- provider: (await import("./src-BY1cCaoJ.js")).AI_GATEWAY_PROVIDER
709
- } : auth["OPENROUTER_API_KEY"] ? {
885
+ adapter: async ({ auth, mcpServers, descriptor, model, vertex }) => {
886
+ const goose = await import("./src-BfOlH_Bu.js");
887
+ const direct = {
888
+ google: goose.GEMINI_PROVIDER,
889
+ anthropic: goose.ANTHROPIC_PROVIDER,
890
+ openai: goose.OPENAI_PROVIDER,
891
+ xai: goose.XAI_PROVIDER
892
+ };
893
+ const provider = onRoutingGateway(descriptor, {
894
+ vercel: goose.AI_GATEWAY_PROVIDER,
895
+ openrouter: goose.OPENROUTER_PROVIDER
896
+ }) ?? direct[providerOf(descriptor.model)];
897
+ return goose.createGoose({
898
+ ...vertex ? { vertex } : provider ? { provider } : {},
710
899
  auth,
711
- provider: (await import("./src-BY1cCaoJ.js")).OPENROUTER_PROVIDER
712
- } : { auth: { GOOGLE_API_KEY: auth.GOOGLE_GENERATIVE_AI_API_KEY ?? "" } },
713
- model,
714
- ...descriptor.kind === "goose" && descriptor.effort ? { effort: descriptor.effort } : {},
715
- ...mcpServers ? { mcpServers } : {},
716
- requireCredentialBrokering: true
717
- })
900
+ model,
901
+ ...descriptor.kind === "goose" && descriptor.effort ? { effort: descriptor.effort } : {},
902
+ ...mcpServers ? { mcpServers } : {},
903
+ requireCredentialBrokering: true
904
+ });
905
+ }
718
906
  },
719
907
  pi: {
720
908
  ...LAYOUTS.pi,
@@ -725,28 +913,36 @@ const AGENTS = {
725
913
  ],
726
914
  name: "pi",
727
915
  factory: "pi",
728
- platforms: ["linux"],
916
+ platforms: ["linux", "darwin"],
729
917
  reasoning: "streamed",
730
918
  reasoningTokens: true,
731
- credential: "GOOGLE_GENERATIVE_AI_API_KEY",
732
- endpoints: GEMINI_ENDPOINTS,
733
- servedModel: geminiServedModel,
919
+ reportedCost: piCost,
920
+ forModel: piForModel,
921
+ modelId: withoutProvider,
734
922
  mcpServers: piMcpServers,
735
- adapter: async ({ auth, mcpServers, descriptor, vertex }) => (await import("./src-CrV2WA2i.js")).createPi({
736
- ...auth["AI_GATEWAY_API_KEY"] ? {
737
- auth,
738
- gateway: (await import("./src-CrV2WA2i.js")).PI_AI_GATEWAY
739
- } : auth["OPENROUTER_API_KEY"] ? {
923
+ adapter: async ({ auth, mcpServers, descriptor, model, vertex }) => {
924
+ const pi = await import("./src-CSVJjghq.js");
925
+ const api = vercelApi();
926
+ const gateway = onRoutingGateway(descriptor, {
927
+ vercel: {
928
+ ...pi.PI_AI_GATEWAY,
929
+ openai: api.openai,
930
+ anthropic: api.anthropic
931
+ },
932
+ openrouter: pi.PI_OPENROUTER
933
+ });
934
+ const modelInfo = gateway && model && !pi.piGatewayDescribes(gateway, model) ? await modelLimits(model) : void 0;
935
+ return pi.createPi({
740
936
  auth,
741
- gateway: (await import("./src-CrV2WA2i.js")).PI_OPENROUTER
742
- } : {
743
- auth: { GEMINI_API_KEY: auth.GOOGLE_GENERATIVE_AI_API_KEY ?? "" },
744
- ...vertex ? { vertex } : {}
745
- },
746
- ...descriptor.kind === "pi" && descriptor.effort ? { effort: descriptor.effort } : {},
747
- ...mcpServers ? { mcpServers } : {},
748
- requireCredentialBrokering: true
749
- })
937
+ ...gateway ? {
938
+ gateway,
939
+ ...modelInfo ? { modelInfo } : {}
940
+ } : vertex ? { vertex } : { provider: keyed(piProvider(providerOf(descriptor.model))) },
941
+ ...descriptor.kind === "pi" && descriptor.effort ? { effort: descriptor.effort } : {},
942
+ ...mcpServers ? { mcpServers } : {},
943
+ requireCredentialBrokering: true
944
+ });
945
+ }
750
946
  },
751
947
  codex: {
752
948
  ...LAYOUTS.codex,
@@ -757,9 +953,18 @@ const AGENTS = {
757
953
  pluginServersByName: true,
758
954
  name: "Codex",
759
955
  factory: "codex",
760
- platforms: ["linux"],
956
+ keychainTrust: true,
957
+ platforms: ["linux", "darwin"],
761
958
  reasoning: "whole",
762
959
  reasoningTokens: true,
960
+ storedUsage: async () => {
961
+ const m = await import("./src-CcrQQB0_.js");
962
+ return {
963
+ command: m.codexStoredUsageCommand,
964
+ parse: m.parseCodexStoredUsage
965
+ };
966
+ },
967
+ fullToolOutput: "all",
763
968
  credential: "OPENAI_API_KEY",
764
969
  endpoints: OPENAI_ENDPOINTS,
765
970
  modelResponses: OPENAI_MODEL_ENDPOINTS,
@@ -774,34 +979,49 @@ const AGENTS = {
774
979
  },
775
980
  servedModel: openaiServedModel,
776
981
  mcpServers: codexMcpServers,
777
- adapter: async ({ auth, mcpServers, descriptor, plugins }) => (await import("./src-CDFH2vVN.js")).createCodex({
778
- auth,
779
- ...auth["AI_GATEWAY_API_KEY"] ? { provider: (await import("./src-CDFH2vVN.js")).AI_GATEWAY_PROVIDER } : auth["OPENROUTER_API_KEY"] ? { provider: (await import("./src-CDFH2vVN.js")).OPENROUTER_PROVIDER } : {},
780
- ...descriptor.kind === "codex" && descriptor.effort ? { effort: descriptor.effort } : {},
781
- ...mcpServers ? { mcpServers } : {},
782
- ...plugins.length ? { plugins: plugins.map(({ name, dir }) => ({
783
- name,
784
- dir
785
- })) } : {},
786
- requireCredentialBrokering: true
787
- })
982
+ adapter: async ({ auth, mcpServers, descriptor, plugins }) => {
983
+ const codex = await import("./src-CcrQQB0_.js");
984
+ const provider = onRoutingGateway(descriptor, {
985
+ vercel: {
986
+ ...codex.AI_GATEWAY_PROVIDER,
987
+ baseUrl: vercelApi().openai
988
+ },
989
+ openrouter: codex.OPENROUTER_PROVIDER
990
+ });
991
+ return codex.createCodex({
992
+ auth,
993
+ ...provider ? { provider } : {},
994
+ ...descriptor.kind === "codex" && descriptor.effort ? { effort: descriptor.effort } : {},
995
+ ...mcpServers ? { mcpServers } : {},
996
+ ...plugins.length ? { plugins: plugins.map(({ name, dir }) => ({
997
+ name,
998
+ dir
999
+ })) } : {},
1000
+ requireCredentialBrokering: true
1001
+ });
1002
+ }
788
1003
  },
789
1004
  fx: {
790
1005
  ...LAYOUTS.fx,
791
1006
  pluginParts: ["skills", "mcp"],
792
1007
  name: "fx",
793
1008
  factory: "fx",
794
- platforms: ["linux"],
1009
+ bridgePort: true,
1010
+ platforms: ["linux", "darwin"],
795
1011
  configuredModelOnStart: true,
796
1012
  reasoning: "streamed",
797
1013
  reasoningTokens: "provider",
1014
+ fullToolOutput: ["bash"],
798
1015
  ...fxForModel("provider/model"),
799
1016
  forModel: fxForModel,
800
1017
  mcpServers: acpMcpServers,
801
- adapter: async ({ auth, env, mcpServers, model, descriptor }) => (await import("./src-wKwznPgt.js")).createFx({
1018
+ adapter: async ({ auth, env, mcpServers, model, descriptor }) => (await import("./src-D-PwBaBB.js")).createFx({
802
1019
  auth,
803
1020
  model,
804
- ...auth["OPENROUTER_API_KEY"] ? { provider: "openrouter" } : {},
1021
+ ...onRoutingGateway(descriptor, {
1022
+ vercel: { gatewayUrl: vercelApi().origin },
1023
+ openrouter: { provider: "openrouter" }
1024
+ }),
805
1025
  ...env?.FX_VERTEX_PROJECT ? { vertex: {
806
1026
  project: env.FX_VERTEX_PROJECT,
807
1027
  location: env.FX_VERTEX_LOCATION ?? ""
@@ -817,24 +1037,39 @@ const AGENTS = {
817
1037
  pluginServersByName: true,
818
1038
  name: "Grok Build",
819
1039
  factory: "grokBuild",
820
- platforms: ["linux"],
1040
+ keychainTrust: true,
1041
+ bridgePort: true,
1042
+ platforms: ["linux", "darwin"],
821
1043
  configuredModelOnStart: true,
822
1044
  reasoning: "streamed",
823
1045
  reasoningTokens: true,
1046
+ storedUsage: async () => {
1047
+ const m = await import("./src-C2K5_afU.js");
1048
+ return {
1049
+ command: m.grokStoredUsageCommand,
1050
+ parse: m.parseGrokStoredUsage
1051
+ };
1052
+ },
824
1053
  credential: "XAI_API_KEY",
825
1054
  endpoints: XAI_ENDPOINTS,
826
1055
  modelResponses: XAI_MODEL_RESPONSES,
827
1056
  servedModel: xaiServedModel,
828
1057
  mcpServers: acpMcpServers,
829
1058
  adapter: async ({ auth, mcpServers, descriptor, plugins, model, vertexChat }) => {
830
- const grok = await import("./src-BKpioayC.js");
1059
+ const grok = await import("./src-C2K5_afU.js");
831
1060
  return grok.createGrokBuild({
832
1061
  ...vertexChat ? {
833
1062
  auth: { [grok.VERTEX_TOKEN_ENV]: SANDBOX_ACCESS_TOKEN },
834
1063
  provider: grok.vertexProvider(vertexChat.project, vertexChat.region)
835
1064
  } : {
836
1065
  auth,
837
- ...auth["AI_GATEWAY_API_KEY"] ? { provider: grok.AI_GATEWAY_PROVIDER } : auth["OPENROUTER_API_KEY"] ? { provider: grok.OPENROUTER_PROVIDER } : {}
1066
+ ...onRoutingGateway(descriptor, {
1067
+ vercel: { provider: {
1068
+ ...grok.AI_GATEWAY_PROVIDER,
1069
+ baseUrl: vercelApi().openai
1070
+ } },
1071
+ openrouter: { provider: grok.OPENROUTER_PROVIDER }
1072
+ })
838
1073
  },
839
1074
  model,
840
1075
  ...plugins.length ? {
@@ -874,18 +1109,6 @@ function plannedMcpServer(s) {
874
1109
  };
875
1110
  }
876
1111
  /**
877
- * Why a sandbox kind that runs only some real harnesses so far doesn't run `harness`, so the plan
878
- * refuses it before any attempt starts; undefined when it does.
879
- */
880
- function unverifiedHarness(harness, sandbox) {
881
- const capabilities = capabilitiesOf(sandbox);
882
- if (!isAgentKind(harness.kind) || takesHarness(capabilities, harness.kind)) return;
883
- const kind = sandboxKind(sandbox);
884
- const names = (capabilities.harnesses === "all" ? [] : capabilities.harnesses).flatMap((k) => isAgentKind(k) ? [AGENTS[k].name] : []);
885
- const elsewhere = suggestedSandbox((c) => c.harnessSession && takesHarness(c, harness.kind));
886
- return `The ${AGENTS[harness.kind].name} harness doesn't run in the ${kind.provider(sandbox)} sandbox yet: it runs ${names.join(", ") || "no real harness"} so far. ${kind.unverifiedHarnesses ?? `Run it in ${elsewhere}.`}`;
887
- }
888
- /**
889
1112
  * Why a harness's agent can't take the environment's MCP servers (Goose, OpenCode, pi and Codex
890
1113
  * take no `mcp.sse`; OpenCode would substitute a `{env:…}` or `{file:…}` in a name or value), in the
891
1114
  * agent's own words, so the plan refuses them before any attempt starts; undefined when it can.
@@ -903,6 +1126,16 @@ function refusedMcp(harness, layers) {
903
1126
  throw error;
904
1127
  }
905
1128
  }
1129
+ /**
1130
+ * Why a harness's agent can't share a machine with `slots - 1` other attempts: its bridge takes
1131
+ * the one port every session exposes. Undefined when it can.
1132
+ */
1133
+ function refusedSharedMachine(harness, slots) {
1134
+ if (slots <= 1) return void 0;
1135
+ const kind = isAgentKind(harness.kind) ? harness.kind : harness.kind === "fake" && harness.brokers ? harness.layout ?? "cursor" : void 0;
1136
+ if (!kind || !AGENTS[kind].bridgePort) return void 0;
1137
+ return `${kind}'s bridge listens on a fixed port in the machine, so it runs one attempt per machine: set attemptsPerMachine: 1 for it (got ${slots})`;
1138
+ }
906
1139
  /** The first host variable a plugin MCP server reads (`${VAR}`), as `VAR`; undefined for none. */
907
1140
  function hostVariable(s) {
908
1141
  const values = Object.entries(s.transport === "stdio" ? s.env : s.headers);
@@ -1036,12 +1269,13 @@ function refusedPlugins(harness, plugins, own, unread = []) {
1036
1269
  */
1037
1270
  function agentFor(h, vertex) {
1038
1271
  const agent = AGENTS[h.kind];
1272
+ const { fallbackCredentials: _, ...routed } = agent;
1039
1273
  if (h.gateway === "vertex") {
1040
1274
  const route = VERTEX_ROUTES[h.kind];
1041
1275
  if (!route) throw new InfraError(`reeval doesn't run ${agent.name} on Vertex AI`);
1042
1276
  if (!vertex) throw new InfraError(`${agent.name} on Vertex AI has no vertex() settings`);
1043
1277
  return {
1044
- ...agent,
1278
+ ...routed,
1045
1279
  ...route(vertex)
1046
1280
  };
1047
1281
  }
@@ -1050,10 +1284,14 @@ function agentFor(h, vertex) {
1050
1284
  const route = gateway.routes[h.kind];
1051
1285
  if (!route) throw new InfraError(`reeval doesn't run ${agent.name} on ${gateway.name}`);
1052
1286
  return {
1053
- ...agent,
1287
+ ...routed,
1054
1288
  ...route(process.env)
1055
1289
  };
1056
1290
  }
1291
+ if (agent.credential === void 0) return {
1292
+ ...agent,
1293
+ ...agent.forModel(h.model)
1294
+ };
1057
1295
  return agent.forModel ? {
1058
1296
  ...agent,
1059
1297
  ...agent.forModel(h.model)
@@ -1061,11 +1299,15 @@ function agentFor(h, vertex) {
1061
1299
  }
1062
1300
  /** The catalog entry for a harness's agent; undefined for the fake harness. */
1063
1301
  const agentOf = (h, vertex) => h.kind === "fake" ? void 0 : agentFor(h, vertex);
1302
+ /** The host variables an agent authenticates with, any one of which will do: `credential` first. */
1303
+ const credentialsOf = (agent) => [agent.credential, ...agent.fallbackCredentials ?? []];
1304
+ /** The host variable the agent authenticates with in `env`: the first set, else `credential`. */
1305
+ const credentialIn = (agent, env = process.env) => credentialsOf(agent).find((name) => env[name]) ?? agent.credential;
1064
1306
  /**
1065
- * The host variable a harness authenticates with; undefined for the fake harness, and on Vertex,
1066
- * whose token comes from Application Default Credentials.
1307
+ * The host variables a harness authenticates with, any one of which will do; none for the fake
1308
+ * harness, and on Vertex, whose token comes from Application Default Credentials.
1067
1309
  */
1068
- const credentialOf = (h) => h.kind === "fake" || h.gateway === "vertex" ? void 0 : agentFor(h).credential;
1310
+ const harnessCredentials = (h) => h.kind === "fake" || h.gateway === "vertex" ? [] : credentialsOf(agentFor(h));
1069
1311
  /** The fake agent's own layout. */
1070
1312
  const FAKE_LAYOUT = {
1071
1313
  rulesFile: "AGENTS.md",
@@ -1073,6 +1315,17 @@ const FAKE_LAYOUT = {
1073
1315
  harnessSkillDir: ".agents/skills",
1074
1316
  pluginPlacement: "flat"
1075
1317
  };
1318
+ /**
1319
+ * Every skill directory some agent reads, as a path's tail (`.claude/skills`, `.config/goose/skills`):
1320
+ * a skill under one is the agent's to load, whoever put it there.
1321
+ */
1322
+ const SKILL_DIRS = [...new Set([FAKE_LAYOUT, ...Object.values(LAYOUTS)].flatMap((l) => [
1323
+ l.workspaceSkillDir,
1324
+ l.harnessSkillDir.replace(/^\.ai-sdk-harness\/\.harness-bootstrap\/[^/]+\/home\//, ""),
1325
+ ...l.alsoReadsSkillDirs ?? []
1326
+ ]))];
1327
+ /** Every agent CLI's own skill directories (`builtinSkillDirs`), as a path's tail. */
1328
+ const BUILTIN_SKILL_DIRS = [...new Set(Object.values(LAYOUTS).flatMap((l) => l.builtinSkillDirs ?? []))];
1076
1329
  /** Where a harness's agent reads rules and skills; a fake one with `layout` mimics that agent. */
1077
1330
  function layoutOf(descriptor) {
1078
1331
  if (descriptor.kind !== "fake") return LAYOUTS[descriptor.kind];
@@ -1102,7 +1355,7 @@ const REFUSED_KEY = /\bHTTP 401\b|\b401\b.{0,40}\bunauthori[sz]ed\b|\bunauthori[
1102
1355
  function authHint(agent, message, refused = false) {
1103
1356
  if (!refused && !REFUSED_KEY.test(message)) return void 0;
1104
1357
  if (agent.token) return `The API rejected the access token reeval minted from ${agent.credential}: check gcloud auth application-default login (or GOOGLE_APPLICATION_CREDENTIALS) and the project's Vertex AI access`;
1105
- return keyRejected(agent.credential);
1358
+ return keyRejected(credentialIn(agent));
1106
1359
  }
1107
1360
  /** What to do when the API refused the key in `credential`, naming it. */
1108
1361
  const keyRejected = (credential) => `The API rejected ${credential}: set a valid key in the environment or .env.local`;
@@ -1112,26 +1365,40 @@ const keyRejected = (credential) => `The API rejected ${credential}: set a valid
1112
1365
  */
1113
1366
  function agentAuth(agent, env = process.env) {
1114
1367
  if (agent.token) return {};
1115
- const value = env[agent.credential];
1116
- if (!value) throw new InfraError(`${agent.credential} isn't set, so the ${agent.name} harness can't authenticate. Set it in the environment or .env.local.`);
1368
+ const name = credentialIn(agent, env);
1369
+ const value = env[name];
1370
+ if (!value) {
1371
+ const names = credentialsOf(agent);
1372
+ const unset = names.length === 1 ? `${name} isn't set` : `Neither ${names.join(" nor ")} is set`;
1373
+ throw new InfraError(`${unset}, so the ${agent.name} harness can't authenticate. Set ${names.length === 1 ? "it" : "one"} in the environment or .env.local.`);
1374
+ }
1117
1375
  return {
1118
1376
  ...agent.authEnv,
1119
- [agent.authAs ?? agent.credential]: value
1377
+ [name === agent.credential ? agent.authAs ?? name : name]: value
1378
+ };
1379
+ }
1380
+ /**
1381
+ * The key the fake agent brokers with `layout`, and where: the agent's own, or, for one that takes
1382
+ * its model's provider's key, a key of the fake's own on no endpoint.
1383
+ */
1384
+ function fakeBrokering(layout = "cursor") {
1385
+ const { credential, endpoints } = AGENTS[layout];
1386
+ return credential === void 0 ? {
1387
+ credential: "FAKE_AGENT_API_KEY",
1388
+ endpoints: []
1389
+ } : {
1390
+ credential,
1391
+ endpoints
1120
1392
  };
1121
1393
  }
1122
1394
  function brokeringFor(h, vertex) {
1123
- if (h.kind === "fake") {
1124
- if (!h.brokers) return void 0;
1125
- const { credential, endpoints } = AGENTS[h.layout ?? "cursor"];
1126
- return {
1127
- credential,
1128
- endpoints
1129
- };
1130
- }
1395
+ if (h.kind === "fake") return h.brokers ? fakeBrokering(h.layout) : void 0;
1131
1396
  const agent = agentOf(h, vertex);
1132
1397
  if (!agent) return void 0;
1133
- const { credential, endpoints, tokens, servedModel, askedModel, modelResponses, upstream } = agent;
1134
- const { localResponses } = agent;
1398
+ const { endpoints, tokens, servedModel, askedModel, modelResponses, upstream } = agent;
1399
+ const { localResponses, modelStream } = agent;
1400
+ const credential = credentialIn(agent);
1401
+ const modelCalls = [...agent.modelCalls ?? [], ...modelResponses ?? []];
1135
1402
  return {
1136
1403
  credential,
1137
1404
  endpoints,
@@ -1142,10 +1409,12 @@ function brokeringFor(h, vertex) {
1142
1409
  ...servedModel ? { servedModel } : {},
1143
1410
  ...askedModel ? { askedModel } : {},
1144
1411
  ...modelResponses ? { modelResponses } : {},
1412
+ ...modelCalls.length ? { modelCalls } : {},
1413
+ ...modelStream ? { modelStream } : {},
1145
1414
  ...upstream ? { upstream } : {},
1146
1415
  ...localResponses?.length ? { localResponses } : {}
1147
1416
  };
1148
1417
  }
1149
- export { unverifiedHarness as _, agentFor as a, isRoutingGateway as b, brokeringFor as c, expectedBlockedFor as d, isAgentKind as f, refusedPlugins as g, refusedMcp as h, agentAuth as i, claudeMcpServers as l, layoutOf as m, DEFAULT_HARNESS as n, agentMcp as o, keyRejected as p, HARNESS_EXAMPLE as r, authHint as s, AGENTS as t, credentialOf as u, writePluginFiles as v, ROUTING_GATEWAYS as y };
1418
+ export { writePluginFiles as C, refusedSharedMachine as S, isAgentKind as _, SKILL_DIRS as a, refusedMcp as b, agentMcp as c, brokeringFor as d, claudeMcpServers as f, harnessCredentials as g, fakeBrokering as h, HARNESS_EXAMPLE as i, agentOf as l, expectedBlockedFor as m, BUILTIN_SKILL_DIRS as n, agentAuth as o, directProviderRefusal as p, DEFAULT_HARNESS as r, agentFor as s, AGENTS as t, authHint as u, keyRejected as v, refusedPlugins as x, layoutOf as y };
1150
1419
 
1151
- //# sourceMappingURL=agents-DXuFxtGC.js.map
1420
+ //# sourceMappingURL=agents-KBTYhSSh.js.map