reeval 0.17.1 → 0.18.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 (297) hide show
  1. package/README.md +4 -2
  2. package/THIRD_PARTY_NOTICES.md +5 -5
  3. package/dist/{adapter-BIlJWXff.js → adapter-CptK032x.js} +2 -2
  4. package/dist/{adapter-BIlJWXff.js.map → adapter-CptK032x.js.map} +1 -1
  5. package/dist/{agent-CE-qdvmh.js → agent-B63OzUX9.js} +124 -11
  6. package/dist/agent-B63OzUX9.js.map +1 -0
  7. package/dist/{analysis-CTBb_C0Z.js → analysis-BnG_1x_O.js} +4 -4
  8. package/dist/{analysis-CTBb_C0Z.js.map → analysis-BnG_1x_O.js.map} +1 -1
  9. package/dist/{app-files-YMmDAHA8.js → app-files-sgqwfjtn.js} +4 -4
  10. package/dist/app-files-sgqwfjtn.js.map +1 -0
  11. package/dist/assemble-CxBHkavM.js +1 -0
  12. package/dist/{assemble-7RI7Nuhz.js → assemble-Me7Whp-y.js} +62 -196
  13. package/dist/assemble-Me7Whp-y.js.map +1 -0
  14. package/dist/{attempt-CtKGvaQR.js → attempt-Dp7Wtm8M.js} +2 -2
  15. package/dist/{attempt-CtKGvaQR.js.map → attempt-Dp7Wtm8M.js.map} +1 -1
  16. package/dist/{attempt-host-CJM_wEA4.js → attempt-host-Cik0SoIn.js} +17 -9
  17. package/dist/{attempt-host-CJM_wEA4.js.map → attempt-host-Cik0SoIn.js.map} +1 -1
  18. package/dist/bridge/index.mjs +9 -5
  19. package/dist/{capture-DF8cHsJh.js → capture-C3RmjPph.js} +392 -609
  20. package/dist/capture-C3RmjPph.js.map +1 -0
  21. package/dist/capture-YPwxp_iK.js +1 -0
  22. package/dist/{cli-Bm9ntSxz.js → cli-BBOlXKPG.js} +1078 -459
  23. package/dist/cli-BBOlXKPG.js.map +1 -0
  24. package/dist/{cli-spec-ChkleEVm.js → cli-spec-DZ0bnP0_.js} +9 -8
  25. package/dist/cli-spec-DZ0bnP0_.js.map +1 -0
  26. package/dist/cli.js +2 -2
  27. package/dist/{client-CF-DOjOU.js → client-tZ2WBDxf.js} +20 -13
  28. package/dist/client-tZ2WBDxf.js.map +1 -0
  29. package/dist/{command-Dk6wggV-.js → command-CFQ9c1hk.js} +13 -13
  30. package/dist/{command-Dk6wggV-.js.map → command-CFQ9c1hk.js.map} +1 -1
  31. package/dist/{command-DPF8hnWS.js → command-DhiwsZl1.js} +9 -9
  32. package/dist/{command-DPF8hnWS.js.map → command-DhiwsZl1.js.map} +1 -1
  33. package/dist/{command-DDkz6jsD.js → command-fO0BFsTq.js} +105 -37
  34. package/dist/command-fO0BFsTq.js.map +1 -0
  35. package/dist/{command-B7MslY_w.js → command-qGS802uX.js} +17 -15
  36. package/dist/command-qGS802uX.js.map +1 -0
  37. package/dist/{commands-DHT-nhEJ.js → commands-CC60TOT5.js} +64 -18
  38. package/dist/commands-CC60TOT5.js.map +1 -0
  39. package/dist/{commands-DQBayPCV.js → commands-xYTMNTPv.js} +1 -1
  40. package/dist/{config-BLL5JqeX.js → config-C2UtS9vy.js} +745 -80
  41. package/dist/config-C2UtS9vy.js.map +1 -0
  42. package/dist/{context-I6nq3uS7.js → context-BajfiH0S.js} +3 -3
  43. package/dist/{context-I6nq3uS7.js.map → context-BajfiH0S.js.map} +1 -1
  44. package/dist/{contrasts-CjOU_pfD.js → contrasts-BjOg7wyr.js} +3 -3
  45. package/dist/{contrasts-CjOU_pfD.js.map → contrasts-BjOg7wyr.js.map} +1 -1
  46. package/dist/cost-BJU0MAji.js +1 -0
  47. package/dist/{cost-e4IppZpJ.js → cost-BuVDamui.js} +4 -4
  48. package/dist/{cost-e4IppZpJ.js.map → cost-BuVDamui.js.map} +1 -1
  49. package/dist/{cursor-catalog-BeBJTk6A.js → cursor-catalog-BTK_apL-.js} +2 -2
  50. package/dist/{cursor-catalog-BeBJTk6A.js.map → cursor-catalog-BTK_apL-.js.map} +1 -1
  51. package/dist/{db-DPiWC7Br.js → db-C5SZ0510.js} +79 -18
  52. package/dist/db-C5SZ0510.js.map +1 -0
  53. package/dist/db-puzLzX4k.js +2 -0
  54. package/dist/{default-effort-ciIXMA7h.js → default-effort-BVmx7r7L.js} +8 -5
  55. package/dist/default-effort-BVmx7r7L.js.map +1 -0
  56. package/dist/{default-effort-B7c4V9Qd.js → default-effort-FEidNAIi.js} +1 -1
  57. package/dist/{dist-CGwueB0T.js → dist-ByYk_wAs.js} +58 -290
  58. package/dist/dist-ByYk_wAs.js.map +1 -0
  59. package/dist/{docker-Bcrc39Z8.js → docker-B2F8-PGC.js} +4 -4
  60. package/dist/{docker-Bcrc39Z8.js.map → docker-B2F8-PGC.js.map} +1 -1
  61. package/dist/{docker-D83s_ADn.js → docker-BlSopHpZ.js} +1 -1
  62. package/dist/{docker-BUZOxh62.js → docker-Dto8ROCq.js} +5 -5
  63. package/dist/{docker-BUZOxh62.js.map → docker-Dto8ROCq.js.map} +1 -1
  64. package/dist/{doctor-CIhEAzbw.js → doctor-BcvfKpBX.js} +20 -20
  65. package/dist/{doctor-CIhEAzbw.js.map → doctor-BcvfKpBX.js.map} +1 -1
  66. package/dist/{env-T86lAqUD.js → env-8x1O8I1M.js} +2 -2
  67. package/dist/{env-T86lAqUD.js.map → env-8x1O8I1M.js.map} +1 -1
  68. package/dist/{environment-Ccytlpgf.js → environment-CC1RV21n.js} +3 -3
  69. package/dist/{environment-Ccytlpgf.js.map → environment-CC1RV21n.js.map} +1 -1
  70. package/dist/{eval-source-D4xqc0iO.js → eval-source-CzxdgFBW.js} +18 -10
  71. package/dist/eval-source-CzxdgFBW.js.map +1 -0
  72. package/dist/evaluate-DToSB2bt.d.ts +101 -0
  73. package/dist/{evaluate-DNzyRQFe.js → evaluate-NTNJ8T9H.js} +135 -54
  74. package/dist/evaluate-NTNJ8T9H.js.map +1 -0
  75. package/dist/{files-D_CBK9Zo.js → files-CZXrkPja.js} +6 -6
  76. package/dist/{files-D_CBK9Zo.js.map → files-CZXrkPja.js.map} +1 -1
  77. package/dist/files-DFtuRQJx.js +1 -0
  78. package/dist/{files-3ZqUBbwg.js → files-DsXULUi5.js} +4 -4
  79. package/dist/{files-3ZqUBbwg.js.map → files-DsXULUi5.js.map} +1 -1
  80. package/dist/{files-B2U5RezT.js → files-aAzoGNCB.js} +5 -5
  81. package/dist/{files-B2U5RezT.js.map → files-aAzoGNCB.js.map} +1 -1
  82. package/dist/files-oOYNR7ZH.js +1 -0
  83. package/dist/{gate-BoDKeuJu.js → gate-Cp_pQoEe.js} +2 -2
  84. package/dist/{gate-BoDKeuJu.js.map → gate-Cp_pQoEe.js.map} +1 -1
  85. package/dist/gateway.d.ts +1 -1
  86. package/dist/{git-s-qf-vww.js → git-C1MB5bjr.js} +3 -3
  87. package/dist/{git-s-qf-vww.js.map → git-C1MB5bjr.js.map} +1 -1
  88. package/dist/harness-DGsRZDSo.js +105 -0
  89. package/dist/harness-DGsRZDSo.js.map +1 -0
  90. package/dist/{harness-Ch2P81sx.js → harness-DYSC4zMh.js} +65 -110
  91. package/dist/harness-DYSC4zMh.js.map +1 -0
  92. package/dist/harness.d.ts +1 -1
  93. package/dist/harness.js +1 -1
  94. package/dist/{images-h1VBM7TP.js → images-CNayXCp2.js} +8 -8
  95. package/dist/{images-h1VBM7TP.js.map → images-CNayXCp2.js.map} +1 -1
  96. package/dist/index.d.ts +3 -3
  97. package/dist/index.js +5 -5
  98. package/dist/init-8o6W3_fn.js +1 -0
  99. package/dist/{init-Z1cRnE3E.js → init-D5HtmyMI.js} +5 -5
  100. package/dist/{init-Z1cRnE3E.js.map → init-D5HtmyMI.js.map} +1 -1
  101. package/dist/ink-list-Ca-5dunO.js +184 -0
  102. package/dist/ink-list-Ca-5dunO.js.map +1 -0
  103. package/dist/{invocations-z6hUD15n.js → invocations-DrGXF9dT.js} +4 -4
  104. package/dist/{invocations-z6hUD15n.js.map → invocations-DrGXF9dT.js.map} +1 -1
  105. package/dist/{judge-ByEUlzOM.js → judge-DYOF69Oe.js} +5 -5
  106. package/dist/{judge-ByEUlzOM.js.map → judge-DYOF69Oe.js.map} +1 -1
  107. package/dist/judge.d.ts +1 -1
  108. package/dist/judge.js +1 -1
  109. package/dist/judgments-m-mb0zv8.js +246 -0
  110. package/dist/judgments-m-mb0zv8.js.map +1 -0
  111. package/dist/list-CM_YSJXq.js +374 -0
  112. package/dist/list-CM_YSJXq.js.map +1 -0
  113. package/dist/{live-D22qY6S_.js → live-B71o2TkX.js} +22 -4
  114. package/dist/live-B71o2TkX.js.map +1 -0
  115. package/dist/live-DQc8jr6o.js +1 -0
  116. package/dist/{live-DpfJfc33.js → live-uRURFDMZ.js} +7 -7
  117. package/dist/{live-DpfJfc33.js.map → live-uRURFDMZ.js.map} +1 -1
  118. package/dist/{matchers-B4ZtlJyP.js → matchers-Cs8aDqdU.js} +3 -3
  119. package/dist/{matchers-B4ZtlJyP.js.map → matchers-Cs8aDqdU.js.map} +1 -1
  120. package/dist/{model-CFSjV-HJ.js → model-1L19Zukh.js} +5 -5
  121. package/dist/{model-CFSjV-HJ.js.map → model-1L19Zukh.js.map} +1 -1
  122. package/dist/{model-BL_10Neu.js → model-BxBWFOZn.js} +44 -20
  123. package/dist/{model-BL_10Neu.js.map → model-BxBWFOZn.js.map} +1 -1
  124. package/dist/{model-D1TBKeZj.js → model-CXVVB4RK.js} +1 -1
  125. package/dist/{model-Bn7ndUQZ.js → model-Ce9l9_rF.js} +27 -254
  126. package/dist/model-Ce9l9_rF.js.map +1 -0
  127. package/dist/model-Cxzo4cjw.js +1 -0
  128. package/dist/{node-CwP1G178.js → node-DhIRSrrK.js} +22 -17
  129. package/dist/{node-CwP1G178.js.map → node-DhIRSrrK.js.map} +1 -1
  130. package/dist/{opencode-providers-yNKyXD49.js → opencode-providers-Co7plCea.js} +4 -15
  131. package/dist/{opencode-providers-yNKyXD49.js.map → opencode-providers-Co7plCea.js.map} +1 -1
  132. package/dist/{openrouter-models-C8nzPKG2.js → openrouter-models-DNvLRYM7.js} +2 -2
  133. package/dist/{openrouter-models-C8nzPKG2.js.map → openrouter-models-DNvLRYM7.js.map} +1 -1
  134. package/dist/{patch-LFunkZ-L.js → patch-ug5HpMOj.js} +3 -3
  135. package/dist/{patch-LFunkZ-L.js.map → patch-ug5HpMOj.js.map} +1 -1
  136. package/dist/{plan-BrfiMcHh.js → plan-DqnzfDH1.js} +15 -14
  137. package/dist/plan-DqnzfDH1.js.map +1 -0
  138. package/dist/{plugins-CW-sQMg3.js → plugins-B2KQ0y3P.js} +4 -4
  139. package/dist/{plugins-CW-sQMg3.js.map → plugins-B2KQ0y3P.js.map} +1 -1
  140. package/dist/{preflight-CH-7KyhS.js → preflight-DVXEvzFU.js} +1 -1
  141. package/dist/{preflight-BnFpd3Kv.js → preflight-DyzmvK7i.js} +3 -3
  142. package/dist/{preflight-BnFpd3Kv.js.map → preflight-DyzmvK7i.js.map} +1 -1
  143. package/dist/{prepare-0cA77eFD.js → prepare-21WMQZyt.js} +7 -7
  144. package/dist/{prepare-0cA77eFD.js.map → prepare-21WMQZyt.js.map} +1 -1
  145. package/dist/{prepare-CRyEwb5q.js → prepare-BcSRa7-3.js} +2 -2
  146. package/dist/{prices-C4BRuSe8.js → prices-DYJA0tJN.js} +2 -2
  147. package/dist/{prices-C4BRuSe8.js.map → prices-DYJA0tJN.js.map} +1 -1
  148. package/dist/{provenance-CKIG_1LB.js → provenance-iRxjp4Pu.js} +4 -4
  149. package/dist/{provenance-CKIG_1LB.js.map → provenance-iRxjp4Pu.js.map} +1 -1
  150. package/dist/{providers-CCl8ElNW.js → providers-D0ob_tra.js} +1 -1
  151. package/dist/{providers-Dt6BEN_1.js → providers-vXMXuwn-.js} +5 -5
  152. package/dist/{providers-Dt6BEN_1.js.map → providers-vXMXuwn-.js.map} +1 -1
  153. package/dist/{query-BV-zcw2t.js → query-BhaKQ07P.js} +3 -3
  154. package/dist/{query-BV-zcw2t.js.map → query-BhaKQ07P.js.map} +1 -1
  155. package/dist/query-CvgUsvep.js +1 -0
  156. package/dist/{questions-AyLUMHYX.js → questions-BzdLdV3C.js} +39 -9
  157. package/dist/questions-BzdLdV3C.js.map +1 -0
  158. package/dist/{record-J45gJise.js → record-DhzwkSXc.js} +22 -2
  159. package/dist/{record-J45gJise.js.map → record-DhzwkSXc.js.map} +1 -1
  160. package/dist/{redact-BEEGc37e.js → redact-BhjtnjrU.js} +11 -7
  161. package/dist/redact-BhjtnjrU.js.map +1 -0
  162. package/dist/remarks-CAvTSq16.js +1 -0
  163. package/dist/{remarks-UIZTSIhd.js → remarks-CauU408t.js} +231 -25
  164. package/dist/remarks-CauU408t.js.map +1 -0
  165. package/dist/{remarks-0EXMh6AD.js → remarks-D9Lcd1fF.js} +3 -2
  166. package/dist/remarks-D9Lcd1fF.js.map +1 -0
  167. package/dist/{remarks-CgO1nIoG.js → remarks-NMgPd30U.js} +4 -3
  168. package/dist/{remarks-CgO1nIoG.js.map → remarks-NMgPd30U.js.map} +1 -1
  169. package/dist/{remote-BA9-hhgB.js → remote-Dwy3fyo3.js} +5 -5
  170. package/dist/{remote-BA9-hhgB.js.map → remote-Dwy3fyo3.js.map} +1 -1
  171. package/dist/{resolve-FHjE-dN3.js → resolve-B1zMnPwK.js} +7 -7
  172. package/dist/{resolve-FHjE-dN3.js.map → resolve-B1zMnPwK.js.map} +1 -1
  173. package/dist/resolve-BIIeVT12.js +1 -0
  174. package/dist/{results-CFE6Nwb0.js → results-CfC0id_u.js} +7 -7
  175. package/dist/{results-CFE6Nwb0.js.map → results-CfC0id_u.js.map} +1 -1
  176. package/dist/{resume-iaTxWRew.js → resume-Dkhrpjow.js} +123 -8
  177. package/dist/resume-Dkhrpjow.js.map +1 -0
  178. package/dist/{runtime-SEkGS1Rx.js → runtime-DcvQcr36.js} +2 -2
  179. package/dist/{runtime-SEkGS1Rx.js.map → runtime-DcvQcr36.js.map} +1 -1
  180. package/dist/{sandbox-CAsXlGro.js → sandbox-8zCrtuCf.js} +2 -2
  181. package/dist/{sandbox-CAsXlGro.js.map → sandbox-8zCrtuCf.js.map} +1 -1
  182. package/dist/sandbox.d.ts +1 -1
  183. package/dist/sandbox.js +1 -1
  184. package/dist/server-0tuj8VSa.js +1 -0
  185. package/dist/{server-C9_kV1IP.js → server-Dplq8g0r.js} +8 -8
  186. package/dist/{server-C9_kV1IP.js.map → server-Dplq8g0r.js.map} +1 -1
  187. package/dist/{source-BszY6yAC.js → source-NWHqn5-o.js} +2 -2
  188. package/dist/{source-BszY6yAC.js.map → source-NWHqn5-o.js.map} +1 -1
  189. package/dist/source-llwLewOU.js +1 -0
  190. package/dist/{src-Dt6BWDcJ.js → src-B9oE_mNS.js} +1 -1
  191. package/dist/{src-DaYQ1O9Y.js → src-BQ6BiXoc.js} +86 -31
  192. package/dist/{src-DaYQ1O9Y.js.map → src-BQ6BiXoc.js.map} +1 -1
  193. package/dist/src-BQXdf-Gw.js +1448 -0
  194. package/dist/src-BQXdf-Gw.js.map +1 -0
  195. package/dist/{src-DVGVWOAB.js → src-BXnv0ViU.js} +1 -1
  196. package/dist/src-BiS8YNN_.js +3 -0
  197. package/dist/{src-CZANB4pb.js → src-BkH4GOxu.js} +1 -1
  198. package/dist/{src-8fy4nSWU.js → src-BvM0jWuZ.js} +28 -2
  199. package/dist/{src-8fy4nSWU.js.map → src-BvM0jWuZ.js.map} +1 -1
  200. package/dist/src-C-tH5ebd.js +2 -0
  201. package/dist/{src-umdk2alV.js → src-CUpoVVb8.js} +2 -2
  202. package/dist/src-Cg1bFs9g.js +2 -0
  203. package/dist/{src-CWrKJO92.js → src-D5t4OiRt.js} +2 -2
  204. package/dist/{src-CWrKJO92.js.map → src-D5t4OiRt.js.map} +1 -1
  205. package/dist/{src-DoxUxkU3.js → src-DV_UorZv.js} +1 -1
  206. package/dist/{src-DMiwtprP.js → src-KlDOGD0B.js} +4 -4
  207. package/dist/{src-DMiwtprP.js.map → src-KlDOGD0B.js.map} +1 -1
  208. package/dist/{src-BYpY_vXK.js → src-XxUpr2sa.js} +1 -1
  209. package/dist/{state-DfcikRK3.js → state-DDCGUhva.js} +16 -16
  210. package/dist/{state-DfcikRK3.js.map → state-DDCGUhva.js.map} +1 -1
  211. package/dist/state-DZbAO95a.js +1 -0
  212. package/dist/{stats-D-Gqwqt0.js → stats-C18W4xPX.js} +63 -8
  213. package/dist/stats-C18W4xPX.js.map +1 -0
  214. package/dist/suite-M8_7xio7.js +1294 -0
  215. package/dist/suite-M8_7xio7.js.map +1 -0
  216. package/dist/suite-u2KJnGpY.js +2 -0
  217. package/dist/{summary-BmooCwQv.js → summary-Uzc9osfV.js} +47 -13
  218. package/dist/summary-Uzc9osfV.js.map +1 -0
  219. package/dist/testing.d.ts +51 -37
  220. package/dist/testing.js +4 -4
  221. package/dist/{text-D--Q5KsA.js → text-B8-W3Cvn.js} +2 -4
  222. package/dist/{text-D--Q5KsA.js.map → text-B8-W3Cvn.js.map} +1 -1
  223. package/dist/{transcript-C_IpYMRk.js → transcript-Cg4SeqRX.js} +3 -3
  224. package/dist/{transcript-C_IpYMRk.js.map → transcript-Cg4SeqRX.js.map} +1 -1
  225. package/dist/{types-BlM-aN9_.d.ts → types-DGvexkcp.d.ts} +116 -66
  226. package/dist/{vertex-6uSpZ5L8.js → vertex-BLQMayc1.js} +5 -2
  227. package/dist/vertex-BLQMayc1.js.map +1 -0
  228. package/dist/vertex-h_peaZTN.js +1 -0
  229. package/dist/view/index.d.ts +143 -34
  230. package/dist/view/index.js +9 -8
  231. package/dist/{views-DPng-2-z.js → views-BISrsIjw.js} +6 -6
  232. package/dist/{views-DPng-2-z.js.map → views-BISrsIjw.js.map} +1 -1
  233. package/dist/views-Bfab8fM9.js +2 -0
  234. package/dist/{worker-entry-lt5otEb5.js → worker-entry-DJD_nHkS.js} +5 -5
  235. package/dist/{worker-entry-lt5otEb5.js.map → worker-entry-DJD_nHkS.js.map} +1 -1
  236. package/dist/workspace-B8EOCuxl.js +1 -0
  237. package/dist/{workspace-1O8x4oDc.js → workspace-BO1VhUR9.js} +5 -5
  238. package/dist/{workspace-1O8x4oDc.js.map → workspace-BO1VhUR9.js.map} +1 -1
  239. package/docker/Dockerfile +4 -4
  240. package/package.json +14 -12
  241. package/skills/eval-rubric/SKILL.md +22 -3
  242. package/dist/agent-CE-qdvmh.js.map +0 -1
  243. package/dist/app-files-YMmDAHA8.js.map +0 -1
  244. package/dist/assemble-7RI7Nuhz.js.map +0 -1
  245. package/dist/assemble-CANqwtwD.js +0 -1
  246. package/dist/capture-DF8cHsJh.js.map +0 -1
  247. package/dist/capture-DagM1npp.js +0 -1
  248. package/dist/cli-Bm9ntSxz.js.map +0 -1
  249. package/dist/cli-spec-ChkleEVm.js.map +0 -1
  250. package/dist/client-CF-DOjOU.js.map +0 -1
  251. package/dist/command-B7MslY_w.js.map +0 -1
  252. package/dist/command-DDkz6jsD.js.map +0 -1
  253. package/dist/commands-DHT-nhEJ.js.map +0 -1
  254. package/dist/config-BLL5JqeX.js.map +0 -1
  255. package/dist/cost-CMzY9VXv.js +0 -1
  256. package/dist/db-DPiWC7Br.js.map +0 -1
  257. package/dist/db-DysoTexX.js +0 -2
  258. package/dist/default-effort-ciIXMA7h.js.map +0 -1
  259. package/dist/dist-CGwueB0T.js.map +0 -1
  260. package/dist/eval-source-D4xqc0iO.js.map +0 -1
  261. package/dist/evaluate-BEGAQQuo.d.ts +0 -43
  262. package/dist/evaluate-DNzyRQFe.js.map +0 -1
  263. package/dist/files-Bw2NQecs.js +0 -1
  264. package/dist/files-Cp1jp0Nq.js +0 -1
  265. package/dist/harness-Ch2P81sx.js.map +0 -1
  266. package/dist/init-DJ3WFUt8.js +0 -1
  267. package/dist/live-D22qY6S_.js.map +0 -1
  268. package/dist/live-DUpitP_9.js +0 -1
  269. package/dist/model-Bn7ndUQZ.js.map +0 -1
  270. package/dist/model-CR3-qY-z.js +0 -1
  271. package/dist/plan-BrfiMcHh.js.map +0 -1
  272. package/dist/query-DSSMxkmw.js +0 -1
  273. package/dist/questions-AyLUMHYX.js.map +0 -1
  274. package/dist/redact-BEEGc37e.js.map +0 -1
  275. package/dist/remarks-0EXMh6AD.js.map +0 -1
  276. package/dist/remarks-BL18Id09.js +0 -1
  277. package/dist/remarks-UIZTSIhd.js.map +0 -1
  278. package/dist/resolve-C56s8_EF.js +0 -1
  279. package/dist/resume-iaTxWRew.js.map +0 -1
  280. package/dist/server-BYfqpMD0.js +0 -1
  281. package/dist/source-C4Q5psjD.js +0 -1
  282. package/dist/src-BBmCEE-M.js +0 -3
  283. package/dist/src-BWcgyARO.js +0 -640
  284. package/dist/src-BWcgyARO.js.map +0 -1
  285. package/dist/src-CnrLy_r_.js +0 -2
  286. package/dist/src-DqIQQTu1.js +0 -2
  287. package/dist/state-haxTOljN.js +0 -1
  288. package/dist/stats-D-Gqwqt0.js.map +0 -1
  289. package/dist/suite-BVcBo_ua.js +0 -544
  290. package/dist/suite-BVcBo_ua.js.map +0 -1
  291. package/dist/suite-CmeXyn66.js +0 -2
  292. package/dist/summary-BmooCwQv.js.map +0 -1
  293. package/dist/vertex-6uSpZ5L8.js.map +0 -1
  294. package/dist/vertex-BaAz44YN.js +0 -1
  295. package/dist/views-CBAsDkCB.js +0 -2
  296. package/dist/workspace-It7dvpbg.js +0 -1
  297. /package/dist/bridge/{pnpm-lock.yaml → pnpm-lockfile.yaml} +0 -0
@@ -0,0 +1,1448 @@
1
+ import { d as splitModel, f as OPENCODE_PROVIDERS, i as openCodeProvider, l as providerTransformations, n as openCodeEffortBody, r as openCodeEffortRefusal, t as OPENCODE_VERTEX_PROVIDER, u as resolveOpenCodeProvider } from "./opencode-providers-Co7plCea.js";
2
+ import "./root-Co0jhOT5.js";
3
+ import { z } from "zod";
4
+ import { commonTool } from "@ai-sdk/harness";
5
+ import { createCredentialRequestTransformation, isHarnessAuthenticationEnvironment, resolveSandboxHomeDir, shellQuote } from "@ai-sdk/harness/utils";
6
+ import { tool } from "@ai-sdk/provider-utils";
7
+ import { createACP } from "@ai-sdk/harness-acp";
8
+ // ../harness-opencode/src/opencode-gate.ts
9
+ /**
10
+ * The gate's name, `executable` for `harness-acp`, which takes a bare name and runs
11
+ * `<bootstrap>/node_modules/.bin/<executable>`: the gate goes beside OpenCode's own bin.
12
+ */
13
+ const OPENCODE_GATE_EXECUTABLE = "reeval-opencode-gate";
14
+ /** Where the gate goes, under the sandbox home. */
15
+ const OPENCODE_GATE_PATH = `.ai-sdk-harness/.harness-bootstrap/opencode/node_modules/.bin/${OPENCODE_GATE_EXECUTABLE}`;
16
+ /** The variable that names the MCP servers the gate waits for, as a JSON list. */
17
+ const OPENCODE_GATE_SERVERS_ENV = "REEVAL_OPENCODE_MCP_SERVERS";
18
+ /**
19
+ * The variable that holds the route's variables besides its key (Bedrock's region, Vertex AI's
20
+ * project, location and credentials file), as a JSON object the gate sets in OpenCode's
21
+ * environment. One name on every route keeps the bootstrap, which lists the names, the same;
22
+ * a route's own variables, set or empty, would replace the eval's values for the agent's commands.
23
+ */
24
+ const OPENCODE_GATE_ENV = "REEVAL_OPENCODE_ENV";
25
+ /**
26
+ * The gate `harness-acp` runs in front of `opencode acp`. OpenCode connects the MCP servers
27
+ * in its config in the background once `session/new` has returned, and a prompt sent before
28
+ * they're connected runs its first step without their tools. The gate holds the first
29
+ * `session/prompt` (and what follows it) until each server named in
30
+ * `REEVAL_OPENCODE_MCP_SERVERS` has logged `mcp connected` or `mcp connect failed` (and
31
+ * {@link OPENCODE_GATE_SETTLE_MS} has passed), or the timeout passes. With servers to wait for, OpenCode runs with its info logs on stderr, which the gate
32
+ * reads and keeps; anything else on stderr passes through. OpenCode runs with the variables in
33
+ * {@link OPENCODE_GATE_ENV} added to the gate's environment.
34
+ */
35
+ const OPENCODE_GATE = `#!/usr/bin/env node
36
+ import { spawn } from 'node:child_process'
37
+ import { dirname, join } from 'node:path'
38
+ import { createInterface } from 'node:readline'
39
+ import { fileURLToPath } from 'node:url'
40
+
41
+ const here = dirname(fileURLToPath(import.meta.url))
42
+ const pending = new Set(JSON.parse(process.env.${OPENCODE_GATE_SERVERS_ENV} || '[]'))
43
+ const logs = pending.size > 0 ? ['--print-logs', '--log-level', 'info'] : []
44
+ const env = { ...process.env, ...JSON.parse(process.env.${OPENCODE_GATE_ENV} || '{}') }
45
+ delete env.${OPENCODE_GATE_ENV}
46
+ const child = spawn(join(here, 'opencode'), ['acp', ...logs], {
47
+ env,
48
+ stdio: ['pipe', 'inherit', 'pipe'],
49
+ })
50
+ let held = null
51
+ let ended = false
52
+ const release = () => {
53
+ if (held === null) return
54
+ for (const line of held) child.stdin.write(line + '\\n')
55
+ held = null
56
+ if (ended) child.stdin.end()
57
+ }
58
+ const timer = setTimeout(() => {
59
+ pending.clear()
60
+ release()
61
+ }, 30000)
62
+ timer.unref()
63
+ createInterface({ input: child.stderr }).on('line', (line) => {
64
+ if (!line.startsWith('timestamp=')) return process.stderr.write(line + '\\n')
65
+ const event = /message="mcp (connected|connect failed)"/.test(line)
66
+ const server = /\\bserver=(?:"((?:[^"\\\\]|\\\\.)*)"|(\\S+))/.exec(line)
67
+ if (!event || !server) return
68
+ pending.delete(server[1] ?? server[2])
69
+ if (pending.size === 0) setTimeout(release, 250)
70
+ })
71
+ createInterface({ input: process.stdin }).on('line', (line) => {
72
+ if (held === null && pending.size > 0 && /"method"\\s*:\\s*"session\\/prompt"/.test(line)) held = []
73
+ if (held !== null) held.push(line)
74
+ else child.stdin.write(line + '\\n')
75
+ }).on('close', () => {
76
+ ended = true
77
+ if (held === null) child.stdin.end()
78
+ })
79
+ for (const signal of ['SIGTERM', 'SIGINT', 'SIGHUP']) process.on(signal, () => child.kill(signal))
80
+ child.on('exit', (code, signal) => process.exit(code ?? (signal ? 1 : 0)))
81
+ `;
82
+ // ../harness-opencode/src/opencode-install.ts
83
+ const OPENCODE_PACKAGE_JSON = `{
84
+ "name": "harness-acp-implementation",
85
+ "version": "0.0.0",
86
+ "private": true,
87
+ "type": "module",
88
+ "dependencies": {
89
+ "@agentclientprotocol/sdk": "1.7.0",
90
+ "@modelcontextprotocol/sdk": "1.32.1",
91
+ "@opencode/cli": "2.1.4",
92
+ "ws": "8.21.0",
93
+ "zod": "4.4.3"
94
+ }
95
+ }
96
+ `;
97
+ const OPENCODE_PNPM_WORKSPACE = `allowBuilds:
98
+ '@opencode/cli@2.1.4': true
99
+ ignoredOptionalDependencies:
100
+ - '@opencode/cli-linux-arm64-musl'
101
+ - '@opencode/cli-linux-x64-baseline-musl'
102
+ - '@opencode/cli-linux-x64-musl'
103
+ `;
104
+ const OPENCODE_PNPM_LOCK = `lockfileVersion: '9.0'
105
+
106
+ settings:
107
+ autoInstallPeers: true
108
+ excludeLinksFromLockfile: false
109
+
110
+ importers:
111
+
112
+ .:
113
+ dependencies:
114
+ '@agentclientprotocol/sdk':
115
+ specifier: 1.7.0
116
+ version: 1.7.0(zod@4.4.3)
117
+ '@modelcontextprotocol/sdk':
118
+ specifier: 1.32.1
119
+ version: 1.32.1(zod@4.4.3)
120
+ '@opencode/cli':
121
+ specifier: 2.1.4
122
+ version: 2.1.4
123
+ ws:
124
+ specifier: 8.21.0
125
+ version: 8.21.0
126
+ zod:
127
+ specifier: 4.4.3
128
+ version: 4.4.3
129
+
130
+ packages:
131
+
132
+ '@agentclientprotocol/sdk@1.7.0':
133
+ resolution: {integrity: sha512-ZORuxsuEnLjRly7t6Ad7zAsWitjWsyprswyPUHz/yycPb+tTm3DGa8XheaHhRXqX8LS9snuxaYavXSRA50TlHw==}
134
+ peerDependencies:
135
+ zod: ^3.25.0 || ^4.0.0
136
+
137
+ '@hono/node-server@2.1.5':
138
+ resolution: {integrity: sha512-MgP/I06GdvsilDspMk/qmRzpk8LOUStP6jFAbSRi40W09DhoyUn+Mj7eyKICPqeYKybOjVFLVIAQzvu1bfIa7Q==}
139
+ engines: {node: '>=20'}
140
+ peerDependencies:
141
+ hono: ^4 || ^5.0.0-0
142
+
143
+ '@modelcontextprotocol/sdk@1.32.1':
144
+ resolution: {integrity: sha512-2DdE+SJDtzLEEWzY1ZjY7Q+VcPhcV1KisD3zI4u0XZyktsjHum1mwbMI+JaulUBi2OZk+KJAi2uPXzxichPkdw==}
145
+ engines: {node: '>=18'}
146
+ peerDependencies:
147
+ '@cfworker/json-schema': ^4.1.1
148
+ zod: ^3.25 || ^4.0
149
+ peerDependenciesMeta:
150
+ '@cfworker/json-schema':
151
+ optional: true
152
+
153
+ '@opencode/cli-darwin-arm64@2.1.4':
154
+ resolution: {integrity: sha512-QwjyvovTdT0gFi5rxUyPVlYePIe3ELduR9olu+KJWe089XVIDOTMhxylBe/ZGIpvoXHYo6bp2NskIiqCFAEXsw==}
155
+ cpu: [arm64]
156
+ os: [darwin]
157
+
158
+ '@opencode/cli-darwin-x64-baseline@2.1.4':
159
+ resolution: {integrity: sha512-htb+MYexlbFPc/da+jXePmclbXuMMX4m8kSIe24wbgy/npTC8wv1VHj0QTDt9YttTnnas+Yr1kNmJ7j/86yt+Q==}
160
+ cpu: [x64]
161
+ os: [darwin]
162
+
163
+ '@opencode/cli-darwin-x64@2.1.4':
164
+ resolution: {integrity: sha512-pdx0Iyl+IK1SdSQOhvz8JE4Rk0PGyacZ55FaxmyowYe9h0aFZNs3UAj7wNYod6Hsu4qsAeSVkdfQLr4SI8G1oA==}
165
+ cpu: [x64]
166
+ os: [darwin]
167
+
168
+ '@opencode/cli-linux-arm64@2.1.4':
169
+ resolution: {integrity: sha512-drw0LWMG0niaE94ePXm1h7qjFBZZRcSZD3gact3hx3OYPXesp7xrOt0bn3sicYNUN6fojERrDKR6jYrXmZX+rA==}
170
+ cpu: [arm64]
171
+ os: [linux]
172
+
173
+ '@opencode/cli-linux-x64-baseline@2.1.4':
174
+ resolution: {integrity: sha512-0/H4wRDAW4hA5IWN440XwDrRATbvT3cno+UUsqFynTu0TeGXNADjK2AZfvhNTfyJaVyCa+v7VhB+r7ghuMa5EQ==}
175
+ cpu: [x64]
176
+ os: [linux]
177
+
178
+ '@opencode/cli-linux-x64@2.1.4':
179
+ resolution: {integrity: sha512-o8EJ0ZsT4dzDKN+0mpG2EKbNGzJyp+F1++Av28UReRVfiEv+N34eZEnN/unkiMoerKHad6W6Ii7k4ukTnPNmNQ==}
180
+ cpu: [x64]
181
+ os: [linux]
182
+
183
+ '@opencode/cli-windows-arm64@2.1.4':
184
+ resolution: {integrity: sha512-ZDKG+2rhCYb2ngl1B/H8Lx2ll9NjNLhghj10/War9eK5ASYysWvR+26+Bdv+/J29eZdzeXViJnOwf3tZBdMakA==}
185
+ cpu: [arm64]
186
+ os: [win32]
187
+
188
+ '@opencode/cli-windows-x64-baseline@2.1.4':
189
+ resolution: {integrity: sha512-76bsf2uQK/vj2CI0p6dhten9ZD8HmGLeC4B1XfwEaD1xmWHB+8hwTGy5VVvHsoqH+flRQeq3Xfk0VCyQ9zA9+g==}
190
+ cpu: [x64]
191
+ os: [win32]
192
+
193
+ '@opencode/cli-windows-x64@2.1.4':
194
+ resolution: {integrity: sha512-9h0Nb/3g6HxnFY6lawSqNSCxek0K3zUPjOAoF20pyPBaLMq65sXfWLVwgyS/21AM0NrUw77S9CeP0tPM+XrbGQ==}
195
+ cpu: [x64]
196
+ os: [win32]
197
+
198
+ '@opencode/cli@2.1.4':
199
+ resolution: {integrity: sha512-vtHFa/1frSylpx1cZRuzmM2ecHWn6YB8cNvhw8eWKPvSFvDnckZXugDbi3LJYD9TGjRx2U6JRo725qwqtwMUfQ==}
200
+ cpu: [arm64, x64]
201
+ os: [darwin, linux, win32]
202
+ hasBin: true
203
+
204
+ accepts@2.0.0:
205
+ resolution: {integrity: sha512-5cvg6CtKwfgdmVqY1WIiXKc3Q1bkRqGLi+2W/6ao+6Y7gu/RCwRuAhGEzh5B4KlszSuTLgZYuqFqo5bImjNKng==}
206
+ engines: {node: '>= 0.6'}
207
+
208
+ ajv-formats@3.0.1:
209
+ resolution: {integrity: sha512-8iUql50EUR+uUcdRQ3HDqa6EVyo3docL8g5WJ3FNcWmu62IbkGUue/pEyLBW8VGKKucTPgqeks4fIU1DA4yowQ==}
210
+ peerDependencies:
211
+ ajv: ^8.0.0
212
+ peerDependenciesMeta:
213
+ ajv:
214
+ optional: true
215
+
216
+ ajv@8.20.0:
217
+ resolution: {integrity: sha512-Thbli+OlOj+iMPYFBVBfJ3OmCAnaSyNn4M1vz9T6Gka5Jt9ba/HIR56joy65tY6kx/FCF5VXNB819Y7/GUrBGA==}
218
+
219
+ body-parser@2.4.0:
220
+ resolution: {integrity: sha512-Ifk1KcLrxaGt1occQagQNFNNOqRt1LFuehEnHHzB8Z6cRgIxRU1TBaiIsUiCdA+gy5PL7Y1IX31DNKkRmxtXjQ==}
221
+ engines: {node: '>=18'}
222
+
223
+ bytes@3.1.2:
224
+ resolution: {integrity: sha512-/Nf7TyzTx6S3yRJObOAV7956r8cr2+Oj8AC5dt8wSP3BQAoeX58NoHyCU8P8zGkNXStjTSi6fzO6F0pBdcYbEg==}
225
+ engines: {node: '>= 0.8'}
226
+
227
+ call-bind-apply-helpers@1.0.2:
228
+ resolution: {integrity: sha512-Sp1ablJ0ivDkSzjcaJdxEunN5/XvksFJ2sMBFfq6x0ryhQV/2b/KwFe21cMpmHtPOSij8K99/wSfoEuTObmuMQ==}
229
+ engines: {node: '>= 0.4'}
230
+
231
+ call-bound@1.0.4:
232
+ resolution: {integrity: sha512-+ys997U96po4Kx/ABpBCqhA9EuxJaQWDQg7295H4hBphv3IZg0boBKuwYpt4YXp6MZ5AmZQnU/tyMTlRpaSejg==}
233
+ engines: {node: '>= 0.4'}
234
+
235
+ content-disposition@2.0.1:
236
+ resolution: {integrity: sha512-e+H0ZXHSWYrENhQzw1LPuP4oF5MzVKmDU6d3hxlvaPEYLLg62MxtQNPRx4SYSuYJSBUgnQIG4HIN2tEtNv7Dog==}
237
+ engines: {node: '>=18'}
238
+
239
+ content-type@1.0.5:
240
+ resolution: {integrity: sha512-nTjqfcBFEipKdXCv4YDQWCfmcLZKm81ldF0pAopTvyrFGVbcR6P/VAAd5G7N+0tTr8QqiU0tFadD6FK4NtJwOA==}
241
+ engines: {node: '>= 0.6'}
242
+
243
+ content-type@2.1.0:
244
+ resolution: {integrity: sha512-mj7UPXE0jaqaOsukNZRUEfEi2AcL7C/vwmwcHV0O97eO1E1pxBZuyjlZrx5seTaNBg1U6+o35wpa35Qfcc+7ag==}
245
+ engines: {node: '>=18'}
246
+
247
+ cookie-signature@1.2.2:
248
+ resolution: {integrity: sha512-D76uU73ulSXrD1UXF4KE2TMxVVwhsnCgfAyTg9k8P6KGZjlXKrOLe4dJQKI3Bxi5wjesZoFXJWElNWBjPZMbhg==}
249
+ engines: {node: '>=6.6.0'}
250
+
251
+ cookie@0.7.2:
252
+ resolution: {integrity: sha512-yki5XnKuf750l50uGTllt6kKILY4nQ1eNIQatoXEByZ5dWgnKqbnqmTrBE5B4N7lrMJKQ2ytWMiTO2o0v6Ew/w==}
253
+ engines: {node: '>= 0.6'}
254
+
255
+ cors@2.8.6:
256
+ resolution: {integrity: sha512-tJtZBBHA6vjIAaF6EnIaq6laBBP9aq/Y3ouVJjEfoHbRBcHBAHYcMh/w8LDrk2PvIMMq8gmopa5D4V8RmbrxGw==}
257
+ engines: {node: '>= 0.10'}
258
+
259
+ cross-spawn@7.0.6:
260
+ resolution: {integrity: sha512-uV2QOWP2nWzsy2aMp8aRibhi9dlzF5Hgh5SHaB9OiTGEyDTiJJyx0uy51QXdyWbtAHNua4XJzUKca3OzKUd3vA==}
261
+ engines: {node: '>= 8'}
262
+
263
+ debug@4.4.3:
264
+ resolution: {integrity: sha512-RGwwWnwQvkVfavKVt22FGLw+xYSdzARwm0ru6DhTVA3umU5hZc28V3kO4stgYryrTlLpuvgI9GiijltAjNbcqA==}
265
+ engines: {node: '>=6.0'}
266
+ peerDependencies:
267
+ supports-color: '*'
268
+ peerDependenciesMeta:
269
+ supports-color:
270
+ optional: true
271
+
272
+ depd@2.0.0:
273
+ resolution: {integrity: sha512-g7nH6P6dyDioJogAAGprGpCtVImJhpPk/roCzdb3fIh61/s/nPsfR6onyMwkCAR/OlC3yBC0lESvUoQEAssIrw==}
274
+ engines: {node: '>= 0.8'}
275
+
276
+ dunder-proto@1.0.1:
277
+ resolution: {integrity: sha512-KIN/nDJBQRcXw0MLVhZE9iQHmG68qAVIBg9CqmUYjmQIhgij9U5MFvrqkUL5FbtyyzZuOeOt0zdeRe4UY7ct+A==}
278
+ engines: {node: '>= 0.4'}
279
+
280
+ ee-first@1.1.1:
281
+ resolution: {integrity: sha512-WMwm9LhRUo+WUaRN+vRuETqG89IgZphVSNkdFgeb6sS/E4OrDIN7t48CAewSHXc6C8lefD8KKfr5vY61brQlow==}
282
+
283
+ encodeurl@2.0.1:
284
+ resolution: {integrity: sha512-Ev/hIyePLZtpL98x562lvPtenrUfGr0lfaf44HFZ+hDEwso7ccV9QAZrEVLg0hxNAzygaAFxy2dYaAKKM0G06A==}
285
+ engines: {node: '>= 0.8'}
286
+
287
+ es-define-property@1.0.1:
288
+ resolution: {integrity: sha512-e3nRfgfUZ4rNGL232gUgX06QNyyez04KdjFrF+LTRoOXmrOgFKDg4BCdsjW8EnT69eqdYGmRpJwiPVYNrCaW3g==}
289
+ engines: {node: '>= 0.4'}
290
+
291
+ es-errors@1.3.0:
292
+ resolution: {integrity: sha512-Zf5H2Kxt2xjTvbJvP2ZWLEICxA6j+hAmMzIlypy4xcBg1vKVnx89Wy0GbS+kf5cwCVFFzdCFh2XSCFNULS6csw==}
293
+ engines: {node: '>= 0.4'}
294
+
295
+ es-object-atoms@1.1.2:
296
+ resolution: {integrity: sha512-HWcBoN6NileqtSydK2FqHbS/LoDd2pqrnQHLyJzBj4kOp/ky2MWMN694xOfkK8/SnUsW2DH7EfyVlydKCsm1Zw==}
297
+ engines: {node: '>= 0.4'}
298
+
299
+ escape-html@1.0.3:
300
+ resolution: {integrity: sha512-NiSupZ4OeuGwr68lGIeym/ksIZMJodUGOSCZ/FSnTxcrekbvqrgdUxlJOMpijaKZVjAJrWrGs/6Jy8OMuyj9ow==}
301
+
302
+ etag@1.8.1:
303
+ resolution: {integrity: sha512-aIL5Fx7mawVa300al2BnEE4iNvo1qETxLrPI/o05L7z6go7fCw1J6EQmbK4FmJ2AS7kgVF/KEZWufBfdClMcPg==}
304
+ engines: {node: '>= 0.6'}
305
+
306
+ eventsource-parser@3.1.1:
307
+ resolution: {integrity: sha512-EKN1vKAMcZ8MlYMpaNuxN6R9yakzH6uajHcHVTqWJzvu5pWw9DyhbP35HH8MVBQ+dZjAfDxk+A8NiR9KWaXiyQ==}
308
+ engines: {node: '>=18.0.0'}
309
+
310
+ eventsource@3.0.7:
311
+ resolution: {integrity: sha512-CRT1WTyuQoD771GW56XEZFQ/ZoSfWid1alKGDYMmkt2yl8UXrVR4pspqWNEcqKvVIzg6PAltWjxcSSPrboA4iA==}
312
+ engines: {node: '>=18.0.0'}
313
+
314
+ express-rate-limit@8.7.1:
315
+ resolution: {integrity: sha512-2FXbqkygil3mZiXzEtM0IjE/UBmBNot0J1GEVrJT4JbrvwOSoEtqtO+wHbiMQELWe1eNvHoYRg2dkjOid+6JkA==}
316
+ engines: {node: '>= 16'}
317
+ peerDependencies:
318
+ express: '>= 4.11'
319
+
320
+ express@5.3.0:
321
+ resolution: {integrity: sha512-qCqy1xSoaugxOD4IVHb1ZWdkvCF2W3aE2okKouWj8VwJ+ztskSiXoBnCSJqfKT+cVPJhuJqe9YLbY425+Zh00g==}
322
+ engines: {node: '>= 18'}
323
+
324
+ fast-deep-equal@3.1.3:
325
+ resolution: {integrity: sha512-f3qQ9oQy9j2AhBe/H9VC91wLmKBCCU/gDOnKNAYG5hswO7BLKj09Hc5HYNz9cGI++xlpDCIgDaitVs03ATR84Q==}
326
+
327
+ fast-uri@3.1.9:
328
+ resolution: {integrity: sha512-hS/0Wt3Ya043oKXs0sIxrMpKQITXhMLIrVAKKXi4gozGC9v7YRWVnXIZzjNPTO02M9BdxLCWqK1yRXgNziVyJQ==}
329
+
330
+ finalhandler@2.1.1:
331
+ resolution: {integrity: sha512-S8KoZgRZN+a5rNwqTxlZZePjT/4cnm0ROV70LedRHZ0p8u9fRID0hJUZQpkKLzro8LfmC8sx23bY6tVNxv8pQA==}
332
+ engines: {node: '>= 18.0.0'}
333
+
334
+ forwarded@0.2.0:
335
+ resolution: {integrity: sha512-buRG0fpBtRHSTCOASe6hD258tEubFoRLb4ZNA6NxMVHNw2gOcwHo9wyablzMzOA5z9xA9L1KNjk/Nt6MT9aYow==}
336
+ engines: {node: '>= 0.6'}
337
+
338
+ fresh@2.0.0:
339
+ resolution: {integrity: sha512-Rx/WycZ60HOaqLKAi6cHRKKI7zxWbJ31MhntmtwMoaTeF7XFH9hhBp8vITaMidfljRQ6eYWCKkaTK+ykVJHP2A==}
340
+ engines: {node: '>= 0.8'}
341
+
342
+ function-bind@1.1.2:
343
+ resolution: {integrity: sha512-7XHNxH7qX9xG5mIwxkhumTox/MIRNcOgDrxWsMt2pAr23WHp6MrRlN7FBSFpCpr+oVO0F744iUgR82nJMfG2SA==}
344
+
345
+ get-intrinsic@1.3.0:
346
+ resolution: {integrity: sha512-9fSjSaos/fRIVIp+xSJlE6lfwhES7LNtKaCBIamHsjr2na1BiABJPo0mOjjz8GJDURarmCPGqaiVg5mfjb98CQ==}
347
+ engines: {node: '>= 0.4'}
348
+
349
+ get-proto@1.0.1:
350
+ resolution: {integrity: sha512-sTSfBjoXBp89JvIKIefqw7U2CCebsc74kiY6awiGogKtoSGbgjYE/G/+l9sF3MWFPNc9IcoOC4ODfKHfxFmp0g==}
351
+ engines: {node: '>= 0.4'}
352
+
353
+ gopd@1.2.0:
354
+ resolution: {integrity: sha512-ZUKRh6/kUFoAiTAtTYPZJ3hw9wNxx+BIBOijnlG9PnrJsCcSjs1wyyD6vJpaYtgnzDrKYRSqf3OO6Rfa93xsRg==}
355
+ engines: {node: '>= 0.4'}
356
+
357
+ has-symbols@1.1.0:
358
+ resolution: {integrity: sha512-1cDNdwJ2Jaohmb3sg4OmKaMBwuC48sYni5HUw2DvsC8LjGTLK9h+eb1X6RyuOHe4hT0ULCW68iomhjUoKUqlPQ==}
359
+ engines: {node: '>= 0.4'}
360
+
361
+ hasown@2.0.4:
362
+ resolution: {integrity: sha512-T2UbfbBEF32wiepXIsMlTW9+dDYC6wMh/t/vYA4tuOMKqWz/n3vr1NFSxQiyP+zk2mXsoMA/i/7qV6LKut1t1A==}
363
+ engines: {node: '>= 0.4'}
364
+
365
+ hono@4.13.14:
366
+ resolution: {integrity: sha512-yhRLQ21U6qa9Hsu2N7Qcbh8tE+WKEcoErjIo56LeSGiGXGp9sA7UpE86Ui9uexb61KakiGwuHMn2QdV7w6i6kQ==}
367
+ engines: {node: '>=16.9.0'}
368
+
369
+ http-errors@2.0.1:
370
+ resolution: {integrity: sha512-4FbRdAX+bSdmo4AUFuS0WNiPz8NgFt+r8ThgNWmlrjQjt1Q7ZR9+zTlce2859x4KSXrwIsaeTqDoKQmtP8pLmQ==}
371
+ engines: {node: '>= 0.8'}
372
+
373
+ iconv-lite@0.7.3:
374
+ resolution: {integrity: sha512-IKXpvIzjnC9XTAUbVBcMfGS0EPaIXtW6v+zr+RRp+hqULEpo0owZax6wyRwPOJbWbzjYspQwusTsfVr0ifh4uQ==}
375
+ engines: {node: '>=0.10.0'}
376
+
377
+ inherits@2.0.4:
378
+ resolution: {integrity: sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ==}
379
+
380
+ ip-address@10.7.5:
381
+ resolution: {integrity: sha512-t2v0rkILYv9WXmSL7TpAaU3HXgaFYOPUcH3QHgwQ++gpJuH3bqyMy4Fvt/DJCTKwzH3Cf+bAp5W/mFL39KPLzA==}
382
+ engines: {node: '>= 12'}
383
+
384
+ ipaddr.js@1.9.1:
385
+ resolution: {integrity: sha512-0KI/607xoxSToH7GjN1FfSbLoU0+btTicjsQSWQlh/hZykN8KpmMf7uYwPW3R+akZ6R/w18ZlXSHBYXiYUPO3g==}
386
+ engines: {node: '>= 0.10'}
387
+
388
+ is-promise@4.0.0:
389
+ resolution: {integrity: sha512-hvpoI6korhJMnej285dSg6nu1+e6uxs7zG3BYAm5byqDsgJNWwxzM6z6iZiAgQR4TJ30JmBTOwqZUw3WlyH3AQ==}
390
+
391
+ isexe@2.0.0:
392
+ resolution: {integrity: sha512-RHxMLp9lnKHGHRng9QFhRCMbYAcVpn69smSGcq3f36xjgVVWThj4qqLbTLlq7Ssj8B+fIQ1EuCEGI2lKsyQeIw==}
393
+
394
+ jose@6.2.13:
395
+ resolution: {integrity: sha512-7TIg10ZE1x82YediN+lcrPNvGMKge9yFHQD+Qho/b8y2adfugU3AsvvHfxV0fzyFllT6l9xCjf4RWY9g/Z9PJQ==}
396
+
397
+ json-schema-traverse@1.0.0:
398
+ resolution: {integrity: sha512-NM8/P9n3XjXhIZn1lLhkFaACTOURQXjWhV4BA/RnOv8xvgqtqpAX9IO4mRQxSx1Rlo4tqzeqb0sOlruaOy3dug==}
399
+
400
+ json-schema-typed@8.0.2:
401
+ resolution: {integrity: sha512-fQhoXdcvc3V28x7C7BMs4P5+kNlgUURe2jmUT1T//oBRMDrqy1QPelJimwZGo7Hg9VPV3EQV5Bnq4hbFy2vetA==}
402
+
403
+ math-intrinsics@1.1.0:
404
+ resolution: {integrity: sha512-/IXtbwEk5HTPyEwyKX6hGkYXxM9nbj64B+ilVJnC/R6B0pH5G4V3b0pVbL7DBj4tkhBAppbQUlf6F6Xl9LHu1g==}
405
+ engines: {node: '>= 0.4'}
406
+
407
+ media-typer@1.1.1:
408
+ resolution: {integrity: sha512-yz3xRaG20c6/BOzvYoDaGtPmGscs7YivItZEEqe6GbwNfHuxu9YNmvnEkMzKldAGY4/80pRcQRZSEnhquk9XuQ==}
409
+ engines: {node: '>= 0.8'}
410
+
411
+ merge-descriptors@2.0.0:
412
+ resolution: {integrity: sha512-Snk314V5ayFLhp3fkUREub6WtjBfPdCPY1Ln8/8munuLuiYhsABgBVWsozAG+MWMbVEvcdcpbi9R7ww22l9Q3g==}
413
+ engines: {node: '>=18'}
414
+
415
+ mime-db@1.54.0:
416
+ resolution: {integrity: sha512-aU5EJuIN2WDemCcAp2vFBfp/m4EAhWJnUNSSw0ixs7/kXbd6Pg64EmwJkNdFhB8aWt1sH2CTXrLxo/iAGV3oPQ==}
417
+ engines: {node: '>= 0.6'}
418
+
419
+ mime-types@3.0.2:
420
+ resolution: {integrity: sha512-Lbgzdk0h4juoQ9fCKXW4by0UJqj+nOOrI9MJ1sSj4nI8aI2eo1qmvQEie4VD1glsS250n15LsWsYtCugiStS5A==}
421
+ engines: {node: '>=18'}
422
+
423
+ ms@2.1.3:
424
+ resolution: {integrity: sha512-6FlzubTLZG3J2a/NVCAleEhjzq5oxgHyaCU9yYXvcLsvoVaHJq/s5xXI6/XXP6tz7R9xAOtHnSO/tXtF3WRTlA==}
425
+
426
+ negotiator@1.1.0:
427
+ resolution: {integrity: sha512-NMPBRMJgiQHjbd8phG3Vebdx4kZ1H121rbl5IkMqeOsahptB9BKo/d7oJ3zTXqTgagn2bWlNSXkh0QUGM31RYg==}
428
+ engines: {node: '>=18'}
429
+
430
+ object-assign@4.1.1:
431
+ resolution: {integrity: sha512-rJgTQnkUnH1sFw8yT6VSU3zD3sWmu6sZhIseY8VX+GRu3P6F7Fu+JNDoXfklElbLJSnc3FUQHVe4cU5hj+BcUg==}
432
+ engines: {node: '>=0.10.0'}
433
+
434
+ object-inspect@1.13.4:
435
+ resolution: {integrity: sha512-W67iLl4J2EXEGTbfeHCffrjDfitvLANg0UlX3wFUUSTx92KXRFegMHUVgSqE+wvhAbi4WqjGg9czysTV2Epbew==}
436
+ engines: {node: '>= 0.4'}
437
+
438
+ on-finished@2.4.2:
439
+ resolution: {integrity: sha512-ATWUv387i+nLD49EiDoOft5scf32Vsdz3ktrQJG9bi7jRFmaXTssvyvj1EmeKVVgvesbqUtvQQvaS2TpTukAZQ==}
440
+ engines: {node: '>= 0.8'}
441
+
442
+ once@1.4.0:
443
+ resolution: {integrity: sha512-lNaJgI+2Q5URQBkccEKHTQOPaXdUxnZZElQTZY0MFUAuaEqe1E+Nyvgdz/aIyNi6Z9MzO5dv1H8n58/GELp3+w==}
444
+
445
+ parseurl@1.3.3:
446
+ resolution: {integrity: sha512-CiyeOxFT/JZyN5m0z9PfXw4SCBJ6Sygz1Dpl0wqjlhDEGGBP1GnsUVEL0p63hoG1fcj3fHynXi9NYO4nWOL+qQ==}
447
+ engines: {node: '>= 0.8'}
448
+
449
+ path-key@3.1.1:
450
+ resolution: {integrity: sha512-ojmeN0qd+y0jszEtoY48r0Peq5dwMEkIlCOu6Q5f41lfkswXuKtYrhgoTpLnyIcHm24Uhqx+5Tqm2InSwLhE6Q==}
451
+ engines: {node: '>=8'}
452
+
453
+ path-to-regexp@8.4.2:
454
+ resolution: {integrity: sha512-qRcuIdP69NPm4qbACK+aDogI5CBDMi1jKe0ry5rSQJz8JVLsC7jV8XpiJjGRLLol3N+R5ihGYcrPLTno6pAdBA==}
455
+
456
+ pkce-challenge@5.0.1:
457
+ resolution: {integrity: sha512-wQ0b/W4Fr01qtpHlqSqspcj3EhBvimsdh0KlHhH8HRZnMsEa0ea2fTULOXOS9ccQr3om+GcGRk4e+isrZWV8qQ==}
458
+ engines: {node: '>=16.20.0'}
459
+
460
+ proxy-addr@2.0.8:
461
+ resolution: {integrity: sha512-5nnx0yGyVUcY6t9RnWcARWtwT9F1D8O9rt08htPvnd49W1IgZtmLkhu9WfMzQj1cFxjHIO6connUNVW5k7AVyQ==}
462
+ engines: {node: '>= 0.10'}
463
+
464
+ qs@6.17.1:
465
+ resolution: {integrity: sha512-jd3COkaKVgGUW+ZHyEHCG9bH7RoaaiWuMgzsIBjUMVjLAaWGWpoUAVwljVvBHxRu/2qEHnadLGZrkutYUBPQJA==}
466
+ engines: {node: '>=0.6'}
467
+
468
+ range-parser@1.3.0:
469
+ resolution: {integrity: sha512-hek2mFQpPuI4E1BBKrSto+BU3e3x4xuarsbiwr3+lf7p44juvFMV0XFWQAP3xUyqXA4RrXLIoaSUGbSt056ZMw==}
470
+ engines: {node: '>= 0.6'}
471
+
472
+ raw-body@3.0.2:
473
+ resolution: {integrity: sha512-K5zQjDllxWkf7Z5xJdV0/B0WTNqx6vxG70zJE4N0kBs4LovmEYWJzQGxC9bS9RAKu3bgM40lrd5zoLJ12MQ5BA==}
474
+ engines: {node: '>= 0.10'}
475
+
476
+ require-from-string@2.0.2:
477
+ resolution: {integrity: sha512-Xf0nWe6RseziFMu+Ap9biiUbmplq6S9/p+7w7YXP/JBHhrUDDUhwa+vANyubuqfZWTveU//DYVGsDG7RKL/vEw==}
478
+ engines: {node: '>=0.10.0'}
479
+
480
+ router@2.2.0:
481
+ resolution: {integrity: sha512-nLTrUKm2UyiL7rlhapu/Zl45FwNgkZGaCpZbIHajDYgwlJCOzLSk+cIPAnsEqV955GjILJnKbdQC1nVPz+gAYQ==}
482
+ engines: {node: '>= 18'}
483
+
484
+ safer-buffer@2.1.2:
485
+ resolution: {integrity: sha512-YZo3K82SD7Riyi0E1EQPojLz7kpepnSQI9IyPbHHg1XXXevb5dJI7tpyN2ADxGcQbHG7vcyRHk0cbwqcQriUtg==}
486
+
487
+ send@1.2.1:
488
+ resolution: {integrity: sha512-1gnZf7DFcoIcajTjTwjwuDjzuz4PPcY2StKPlsGAQ1+YH20IRVrBaXSWmdjowTJ6u8Rc01PoYOGHXfP1mYcZNQ==}
489
+ engines: {node: '>= 18'}
490
+
491
+ serve-static@2.2.1:
492
+ resolution: {integrity: sha512-xRXBn0pPqQTVQiC8wyQrKs2MOlX24zQ0POGaj0kultvoOCstBQM5yvOhAVSUwOMjQtTvsPWoNCHfPGwaaQJhTw==}
493
+ engines: {node: '>= 18'}
494
+
495
+ setprototypeof@1.2.0:
496
+ resolution: {integrity: sha512-E5LDX7Wrp85Kil5bhZv46j8jOeboKq5JMmYM3gVGdGH8xFpPWXUMsNrlODCrkoxMEeNi/XZIwuRvY4XNwYMJpw==}
497
+
498
+ shebang-command@2.0.0:
499
+ resolution: {integrity: sha512-kHxr2zZpYtdmrN1qDjrrX/Z1rR1kG8Dx+gkpK1G4eXmvXswmcE1hTWBWYUzlraYw1/yZp6YuDY77YtvbN0dmDA==}
500
+ engines: {node: '>=8'}
501
+
502
+ shebang-regex@3.0.0:
503
+ resolution: {integrity: sha512-7++dFhtcx3353uBaq8DDR4NuxBetBzC7ZQOhmTQInHEd6bSrXdiEyzCvG07Z44UYdLShWUyXt5M/yhz8ekcb1A==}
504
+ engines: {node: '>=8'}
505
+
506
+ side-channel-list@1.0.1:
507
+ resolution: {integrity: sha512-mjn/0bi/oUURjc5Xl7IaWi/OJJJumuoJFQJfDDyO46+hBWsfaVM65TBHq2eoZBhzl9EchxOijpkbRC8SVBQU0w==}
508
+ engines: {node: '>= 0.4'}
509
+
510
+ side-channel-map@1.0.1:
511
+ resolution: {integrity: sha512-VCjCNfgMsby3tTdo02nbjtM/ewra6jPHmpThenkTYh8pG9ucZ/1P8So4u4FGBek/BjpOVsDCMoLA/iuBKIFXRA==}
512
+ engines: {node: '>= 0.4'}
513
+
514
+ side-channel-weakmap@1.0.2:
515
+ resolution: {integrity: sha512-WPS/HvHQTYnHisLo9McqBHOJk2FkHO/tlpvldyrnem4aeQp4hai3gythswg6p01oSoTl58rcpiFAjF2br2Ak2A==}
516
+ engines: {node: '>= 0.4'}
517
+
518
+ side-channel@1.1.1:
519
+ resolution: {integrity: sha512-6x6dK6zJdpTzF4sQeNYxwtvBzf6Eg4GtlesS94HOvTudUeyK2WXAaIfmDgsyslYrRBeFIlsi54AYsFGUuhmvrQ==}
520
+ engines: {node: '>= 0.4'}
521
+
522
+ statuses@2.0.2:
523
+ resolution: {integrity: sha512-DvEy55V3DB7uknRo+4iOGT5fP1slR8wQohVdknigZPMpMstaKJQWhwiYBACJE3Ul2pTnATihhBYnRhZQHGBiRw==}
524
+ engines: {node: '>= 0.8'}
525
+
526
+ toidentifier@1.0.1:
527
+ resolution: {integrity: sha512-o5sSPKEkg/DIQNmH43V0/uerLrpzVedkUh8tGNvaeXpfpuwjKenlSox/2O/BTlZUtEe+JG7s5YhEz608PlAHRA==}
528
+ engines: {node: '>=0.6'}
529
+
530
+ type-is@2.1.0:
531
+ resolution: {integrity: sha512-faYHw0anBbc/kWF3zFTEnxSFOAGUX9GFbOBthvDdLsIlEoWOFOtS0zgCiQYwIskL9iGXZL3kAXD8OoZ4GmMATA==}
532
+ engines: {node: '>= 18'}
533
+
534
+ unpipe@1.0.0:
535
+ resolution: {integrity: sha512-pjy2bYhSsufwWlKwPc+l3cN7+wuJlK6uz0YdJEOlQDbl6jo/YlPi4mb8agUkVC8BF7V8NuzeyPNqRksA3hztKQ==}
536
+ engines: {node: '>= 0.8'}
537
+
538
+ vary@1.1.2:
539
+ resolution: {integrity: sha512-BNGbWLfd0eUPabhkXUVm0j8uuvREyTh5ovRa/dyow/BqAbZJyC+5fU+IzQOzmAKzYqYRAISoRhdQr3eIZ/PXqg==}
540
+ engines: {node: '>= 0.8'}
541
+
542
+ which@2.0.2:
543
+ resolution: {integrity: sha512-BLI3Tl1TW3Pvl70l3yq3Y64i+awpwXqsGBYWkkqMtnbXgrMD+yj7rhW0kuEDxzJaYXGjEW5ogapKNMEKNMjibA==}
544
+ engines: {node: '>= 8'}
545
+ hasBin: true
546
+
547
+ wrappy@1.0.2:
548
+ resolution: {integrity: sha512-l4Sp/DRseor9wL6EvV2+TuQn63dMkPjZ/sp9XkghTEbV9KlPS1xUsZ3u7/IQO4wxtcFB4bgpQPRcR3QCvezPcQ==}
549
+
550
+ ws@8.21.0:
551
+ resolution: {integrity: sha512-Vsp28b7DRcimFQvrqu2Wek3z1iYxDCWqHYB8Qsnk/S4RfaCQzPGPyBNuVjJV3cd6UiKtUtp6sNM77gWvzcCH+g==}
552
+ engines: {node: '>=10.0.0'}
553
+ peerDependencies:
554
+ bufferutil: ^4.0.1
555
+ utf-8-validate: '>=5.0.2'
556
+ peerDependenciesMeta:
557
+ bufferutil:
558
+ optional: true
559
+ utf-8-validate:
560
+ optional: true
561
+
562
+ zod-to-json-schema@3.25.2:
563
+ resolution: {integrity: sha512-O/PgfnpT1xKSDeQYSCfRI5Gy3hPf91mKVDuYLUHZJMiDFptvP41MSnWofm8dnCm0256ZNfZIM7DSzuSMAFnjHA==}
564
+ peerDependencies:
565
+ zod: ^3.25.28 || ^4
566
+
567
+ zod@4.4.3:
568
+ resolution: {integrity: sha512-ytENFjIJFl2UwYglde2jchW2Hwm4GJFLDiSXWdTrJQBIN9Fcyp7n4DhxJEiWNAJMV1/BqWfW/kkg71UDcHJyTQ==}
569
+
570
+ ignoredOptionalDependencies:
571
+ - '@opencode/cli-linux-arm64-musl'
572
+ - '@opencode/cli-linux-x64-baseline-musl'
573
+ - '@opencode/cli-linux-x64-musl'
574
+
575
+ snapshots:
576
+
577
+ '@agentclientprotocol/sdk@1.7.0(zod@4.4.3)':
578
+ dependencies:
579
+ zod: 4.4.3
580
+
581
+ '@hono/node-server@2.1.5(hono@4.13.14)':
582
+ dependencies:
583
+ hono: 4.13.14
584
+
585
+ '@modelcontextprotocol/sdk@1.32.1(zod@4.4.3)':
586
+ dependencies:
587
+ '@hono/node-server': 2.1.5(hono@4.13.14)
588
+ ajv: 8.20.0
589
+ ajv-formats: 3.0.1(ajv@8.20.0)
590
+ content-type: 1.0.5
591
+ cors: 2.8.6
592
+ cross-spawn: 7.0.6
593
+ eventsource: 3.0.7
594
+ eventsource-parser: 3.1.1
595
+ express: 5.3.0
596
+ express-rate-limit: 8.7.1(express@5.3.0)
597
+ hono: 4.13.14
598
+ jose: 6.2.13
599
+ json-schema-typed: 8.0.2
600
+ pkce-challenge: 5.0.1
601
+ raw-body: 3.0.2
602
+ zod: 4.4.3
603
+ zod-to-json-schema: 3.25.2(zod@4.4.3)
604
+ transitivePeerDependencies:
605
+ - supports-color
606
+
607
+ '@opencode/cli-darwin-arm64@2.1.4':
608
+ optional: true
609
+
610
+ '@opencode/cli-darwin-x64-baseline@2.1.4':
611
+ optional: true
612
+
613
+ '@opencode/cli-darwin-x64@2.1.4':
614
+ optional: true
615
+
616
+ '@opencode/cli-linux-arm64@2.1.4':
617
+ optional: true
618
+
619
+ '@opencode/cli-linux-x64-baseline@2.1.4':
620
+ optional: true
621
+
622
+ '@opencode/cli-linux-x64@2.1.4':
623
+ optional: true
624
+
625
+ '@opencode/cli-windows-arm64@2.1.4':
626
+ optional: true
627
+
628
+ '@opencode/cli-windows-x64-baseline@2.1.4':
629
+ optional: true
630
+
631
+ '@opencode/cli-windows-x64@2.1.4':
632
+ optional: true
633
+
634
+ '@opencode/cli@2.1.4':
635
+ optionalDependencies:
636
+ '@opencode/cli-darwin-arm64': 2.1.4
637
+ '@opencode/cli-darwin-x64': 2.1.4
638
+ '@opencode/cli-darwin-x64-baseline': 2.1.4
639
+ '@opencode/cli-linux-arm64': 2.1.4
640
+ '@opencode/cli-linux-x64': 2.1.4
641
+ '@opencode/cli-linux-x64-baseline': 2.1.4
642
+ '@opencode/cli-windows-arm64': 2.1.4
643
+ '@opencode/cli-windows-x64': 2.1.4
644
+ '@opencode/cli-windows-x64-baseline': 2.1.4
645
+
646
+ accepts@2.0.0:
647
+ dependencies:
648
+ mime-types: 3.0.2
649
+ negotiator: 1.1.0
650
+
651
+ ajv-formats@3.0.1(ajv@8.20.0):
652
+ optionalDependencies:
653
+ ajv: 8.20.0
654
+
655
+ ajv@8.20.0:
656
+ dependencies:
657
+ fast-deep-equal: 3.1.3
658
+ fast-uri: 3.1.9
659
+ json-schema-traverse: 1.0.0
660
+ require-from-string: 2.0.2
661
+
662
+ body-parser@2.4.0:
663
+ dependencies:
664
+ bytes: 3.1.2
665
+ content-type: 2.1.0
666
+ debug: 4.4.3
667
+ http-errors: 2.0.1
668
+ iconv-lite: 0.7.3
669
+ on-finished: 2.4.2
670
+ qs: 6.17.1
671
+ raw-body: 3.0.2
672
+ type-is: 2.1.0
673
+ transitivePeerDependencies:
674
+ - supports-color
675
+
676
+ bytes@3.1.2: {}
677
+
678
+ call-bind-apply-helpers@1.0.2:
679
+ dependencies:
680
+ es-errors: 1.3.0
681
+ function-bind: 1.1.2
682
+
683
+ call-bound@1.0.4:
684
+ dependencies:
685
+ call-bind-apply-helpers: 1.0.2
686
+ get-intrinsic: 1.3.0
687
+
688
+ content-disposition@2.0.1: {}
689
+
690
+ content-type@1.0.5: {}
691
+
692
+ content-type@2.1.0: {}
693
+
694
+ cookie-signature@1.2.2: {}
695
+
696
+ cookie@0.7.2: {}
697
+
698
+ cors@2.8.6:
699
+ dependencies:
700
+ object-assign: 4.1.1
701
+ vary: 1.1.2
702
+
703
+ cross-spawn@7.0.6:
704
+ dependencies:
705
+ path-key: 3.1.1
706
+ shebang-command: 2.0.0
707
+ which: 2.0.2
708
+
709
+ debug@4.4.3:
710
+ dependencies:
711
+ ms: 2.1.3
712
+
713
+ depd@2.0.0: {}
714
+
715
+ dunder-proto@1.0.1:
716
+ dependencies:
717
+ call-bind-apply-helpers: 1.0.2
718
+ es-errors: 1.3.0
719
+ gopd: 1.2.0
720
+
721
+ ee-first@1.1.1: {}
722
+
723
+ encodeurl@2.0.1: {}
724
+
725
+ es-define-property@1.0.1: {}
726
+
727
+ es-errors@1.3.0: {}
728
+
729
+ es-object-atoms@1.1.2:
730
+ dependencies:
731
+ es-errors: 1.3.0
732
+
733
+ escape-html@1.0.3: {}
734
+
735
+ etag@1.8.1: {}
736
+
737
+ eventsource-parser@3.1.1: {}
738
+
739
+ eventsource@3.0.7:
740
+ dependencies:
741
+ eventsource-parser: 3.1.1
742
+
743
+ express-rate-limit@8.7.1(express@5.3.0):
744
+ dependencies:
745
+ debug: 4.4.3
746
+ express: 5.3.0
747
+ ip-address: 10.7.5
748
+ transitivePeerDependencies:
749
+ - supports-color
750
+
751
+ express@5.3.0:
752
+ dependencies:
753
+ accepts: 2.0.0
754
+ body-parser: 2.4.0
755
+ content-disposition: 2.0.1
756
+ content-type: 2.1.0
757
+ cookie: 0.7.2
758
+ cookie-signature: 1.2.2
759
+ debug: 4.4.3
760
+ depd: 2.0.0
761
+ encodeurl: 2.0.1
762
+ escape-html: 1.0.3
763
+ etag: 1.8.1
764
+ finalhandler: 2.1.1
765
+ fresh: 2.0.0
766
+ http-errors: 2.0.1
767
+ merge-descriptors: 2.0.0
768
+ mime-types: 3.0.2
769
+ on-finished: 2.4.2
770
+ once: 1.4.0
771
+ parseurl: 1.3.3
772
+ proxy-addr: 2.0.8
773
+ qs: 6.17.1
774
+ range-parser: 1.3.0
775
+ router: 2.2.0
776
+ send: 1.2.1
777
+ serve-static: 2.2.1
778
+ statuses: 2.0.2
779
+ type-is: 2.1.0
780
+ vary: 1.1.2
781
+ transitivePeerDependencies:
782
+ - supports-color
783
+
784
+ fast-deep-equal@3.1.3: {}
785
+
786
+ fast-uri@3.1.9: {}
787
+
788
+ finalhandler@2.1.1:
789
+ dependencies:
790
+ debug: 4.4.3
791
+ encodeurl: 2.0.1
792
+ escape-html: 1.0.3
793
+ on-finished: 2.4.2
794
+ parseurl: 1.3.3
795
+ statuses: 2.0.2
796
+ transitivePeerDependencies:
797
+ - supports-color
798
+
799
+ forwarded@0.2.0: {}
800
+
801
+ fresh@2.0.0: {}
802
+
803
+ function-bind@1.1.2: {}
804
+
805
+ get-intrinsic@1.3.0:
806
+ dependencies:
807
+ call-bind-apply-helpers: 1.0.2
808
+ es-define-property: 1.0.1
809
+ es-errors: 1.3.0
810
+ es-object-atoms: 1.1.2
811
+ function-bind: 1.1.2
812
+ get-proto: 1.0.1
813
+ gopd: 1.2.0
814
+ has-symbols: 1.1.0
815
+ hasown: 2.0.4
816
+ math-intrinsics: 1.1.0
817
+
818
+ get-proto@1.0.1:
819
+ dependencies:
820
+ dunder-proto: 1.0.1
821
+ es-object-atoms: 1.1.2
822
+
823
+ gopd@1.2.0: {}
824
+
825
+ has-symbols@1.1.0: {}
826
+
827
+ hasown@2.0.4:
828
+ dependencies:
829
+ function-bind: 1.1.2
830
+
831
+ hono@4.13.14: {}
832
+
833
+ http-errors@2.0.1:
834
+ dependencies:
835
+ depd: 2.0.0
836
+ inherits: 2.0.4
837
+ setprototypeof: 1.2.0
838
+ statuses: 2.0.2
839
+ toidentifier: 1.0.1
840
+
841
+ iconv-lite@0.7.3:
842
+ dependencies:
843
+ safer-buffer: 2.1.2
844
+
845
+ inherits@2.0.4: {}
846
+
847
+ ip-address@10.7.5: {}
848
+
849
+ ipaddr.js@1.9.1: {}
850
+
851
+ is-promise@4.0.0: {}
852
+
853
+ isexe@2.0.0: {}
854
+
855
+ jose@6.2.13: {}
856
+
857
+ json-schema-traverse@1.0.0: {}
858
+
859
+ json-schema-typed@8.0.2: {}
860
+
861
+ math-intrinsics@1.1.0: {}
862
+
863
+ media-typer@1.1.1: {}
864
+
865
+ merge-descriptors@2.0.0: {}
866
+
867
+ mime-db@1.54.0: {}
868
+
869
+ mime-types@3.0.2:
870
+ dependencies:
871
+ mime-db: 1.54.0
872
+
873
+ ms@2.1.3: {}
874
+
875
+ negotiator@1.1.0:
876
+ dependencies:
877
+ content-type: 2.1.0
878
+
879
+ object-assign@4.1.1: {}
880
+
881
+ object-inspect@1.13.4: {}
882
+
883
+ on-finished@2.4.2:
884
+ dependencies:
885
+ ee-first: 1.1.1
886
+
887
+ once@1.4.0:
888
+ dependencies:
889
+ wrappy: 1.0.2
890
+
891
+ parseurl@1.3.3: {}
892
+
893
+ path-key@3.1.1: {}
894
+
895
+ path-to-regexp@8.4.2: {}
896
+
897
+ pkce-challenge@5.0.1: {}
898
+
899
+ proxy-addr@2.0.8:
900
+ dependencies:
901
+ forwarded: 0.2.0
902
+ ipaddr.js: 1.9.1
903
+
904
+ qs@6.17.1:
905
+ dependencies:
906
+ es-define-property: 1.0.1
907
+ side-channel: 1.1.1
908
+
909
+ range-parser@1.3.0: {}
910
+
911
+ raw-body@3.0.2:
912
+ dependencies:
913
+ bytes: 3.1.2
914
+ http-errors: 2.0.1
915
+ iconv-lite: 0.7.3
916
+ unpipe: 1.0.0
917
+
918
+ require-from-string@2.0.2: {}
919
+
920
+ router@2.2.0:
921
+ dependencies:
922
+ debug: 4.4.3
923
+ depd: 2.0.0
924
+ is-promise: 4.0.0
925
+ parseurl: 1.3.3
926
+ path-to-regexp: 8.4.2
927
+ transitivePeerDependencies:
928
+ - supports-color
929
+
930
+ safer-buffer@2.1.2: {}
931
+
932
+ send@1.2.1:
933
+ dependencies:
934
+ debug: 4.4.3
935
+ encodeurl: 2.0.1
936
+ escape-html: 1.0.3
937
+ etag: 1.8.1
938
+ fresh: 2.0.0
939
+ http-errors: 2.0.1
940
+ mime-types: 3.0.2
941
+ ms: 2.1.3
942
+ on-finished: 2.4.2
943
+ range-parser: 1.3.0
944
+ statuses: 2.0.2
945
+ transitivePeerDependencies:
946
+ - supports-color
947
+
948
+ serve-static@2.2.1:
949
+ dependencies:
950
+ encodeurl: 2.0.1
951
+ escape-html: 1.0.3
952
+ parseurl: 1.3.3
953
+ send: 1.2.1
954
+ transitivePeerDependencies:
955
+ - supports-color
956
+
957
+ setprototypeof@1.2.0: {}
958
+
959
+ shebang-command@2.0.0:
960
+ dependencies:
961
+ shebang-regex: 3.0.0
962
+
963
+ shebang-regex@3.0.0: {}
964
+
965
+ side-channel-list@1.0.1:
966
+ dependencies:
967
+ es-errors: 1.3.0
968
+ object-inspect: 1.13.4
969
+
970
+ side-channel-map@1.0.1:
971
+ dependencies:
972
+ call-bound: 1.0.4
973
+ es-errors: 1.3.0
974
+ get-intrinsic: 1.3.0
975
+ object-inspect: 1.13.4
976
+
977
+ side-channel-weakmap@1.0.2:
978
+ dependencies:
979
+ call-bound: 1.0.4
980
+ es-errors: 1.3.0
981
+ get-intrinsic: 1.3.0
982
+ object-inspect: 1.13.4
983
+ side-channel-map: 1.0.1
984
+
985
+ side-channel@1.1.1:
986
+ dependencies:
987
+ es-errors: 1.3.0
988
+ object-inspect: 1.13.4
989
+ side-channel-list: 1.0.1
990
+ side-channel-map: 1.0.1
991
+ side-channel-weakmap: 1.0.2
992
+
993
+ statuses@2.0.2: {}
994
+
995
+ toidentifier@1.0.1: {}
996
+
997
+ type-is@2.1.0:
998
+ dependencies:
999
+ content-type: 2.1.0
1000
+ media-typer: 1.1.1
1001
+ mime-types: 3.0.2
1002
+
1003
+ unpipe@1.0.0: {}
1004
+
1005
+ vary@1.1.2: {}
1006
+
1007
+ which@2.0.2:
1008
+ dependencies:
1009
+ isexe: 2.0.0
1010
+
1011
+ wrappy@1.0.2: {}
1012
+
1013
+ ws@8.21.0: {}
1014
+
1015
+ zod-to-json-schema@3.25.2(zod@4.4.3):
1016
+ dependencies:
1017
+ zod: 4.4.3
1018
+
1019
+ zod@4.4.3: {}
1020
+ `;
1021
+ // ../harness-opencode/src/opencode-tools.ts
1022
+ const native = (title, toolUseKind) => ({
1023
+ ...tool({
1024
+ title,
1025
+ inputSchema: z.looseObject({})
1026
+ }),
1027
+ ...toolUseKind ? { toolUseKind } : {}
1028
+ });
1029
+ const OPENCODE_BUILTIN_TOOLS = {
1030
+ bash: {
1031
+ ...commonTool("bash", {
1032
+ nativeName: "shell",
1033
+ toolUseKind: "bash",
1034
+ inputSchema: z.looseObject({
1035
+ command: z.string(),
1036
+ workdir: z.string().optional()
1037
+ })
1038
+ }),
1039
+ title: "shell"
1040
+ },
1041
+ read: {
1042
+ ...tool({
1043
+ title: "read",
1044
+ inputSchema: z.looseObject({
1045
+ path: z.string(),
1046
+ offset: z.number().optional()
1047
+ })
1048
+ }),
1049
+ toolUseKind: "readonly"
1050
+ },
1051
+ write: {
1052
+ ...tool({
1053
+ title: "write",
1054
+ inputSchema: z.looseObject({
1055
+ path: z.string(),
1056
+ content: z.string()
1057
+ })
1058
+ }),
1059
+ toolUseKind: "edit"
1060
+ },
1061
+ edit: {
1062
+ ...tool({
1063
+ title: "edit",
1064
+ inputSchema: z.looseObject({
1065
+ path: z.string(),
1066
+ oldString: z.string(),
1067
+ newString: z.string()
1068
+ })
1069
+ }),
1070
+ toolUseKind: "edit"
1071
+ },
1072
+ glob: {
1073
+ ...commonTool("glob", {
1074
+ nativeName: "glob",
1075
+ toolUseKind: "readonly",
1076
+ inputSchema: z.looseObject({
1077
+ pattern: z.string(),
1078
+ path: z.string().optional()
1079
+ })
1080
+ }),
1081
+ title: "glob"
1082
+ },
1083
+ grep: {
1084
+ ...commonTool("grep", {
1085
+ nativeName: "grep",
1086
+ toolUseKind: "readonly",
1087
+ inputSchema: z.looseObject({
1088
+ pattern: z.string(),
1089
+ include: z.string().optional()
1090
+ })
1091
+ }),
1092
+ title: "grep"
1093
+ },
1094
+ webFetch: {
1095
+ ...tool({
1096
+ title: "webfetch",
1097
+ inputSchema: z.looseObject({ url: z.string() })
1098
+ }),
1099
+ nativeName: "webfetch",
1100
+ toolUseKind: "readonly"
1101
+ },
1102
+ webSearch: {
1103
+ ...commonTool("webSearch", {
1104
+ nativeName: "websearch",
1105
+ inputSchema: z.looseObject({ query: z.string() })
1106
+ }),
1107
+ title: "websearch"
1108
+ },
1109
+ skill: native("skill", "readonly"),
1110
+ subagent: native("subagent"),
1111
+ execute: native("execute")
1112
+ };
1113
+ // ../harness-opencode/src/opencode-stream.ts
1114
+ /**
1115
+ * The builtin's key for each name OpenCode gives its tools. `patch`, the edit tool OpenCode gives
1116
+ * GPT models in place of `edit`, reports the files it changed as `edit` does, so it's an `edit`.
1117
+ */
1118
+ const BUILTIN_BY_NATIVE = new Map([...Object.entries(OPENCODE_BUILTIN_TOOLS).map(([key, t]) => ["nativeName" in t && typeof t.nativeName === "string" ? t.nativeName : key, key]), ["patch", "edit"]]);
1119
+ const isObjectLike = (value) => typeof value === "object" && value !== null;
1120
+ const record = (value) => isObjectLike(value) ? value : {};
1121
+ /** OpenCode's name for an MCP server in its tools' names (`-` becomes `_`). */
1122
+ const namespaceOf = (server) => server.replace(/[^a-zA-Z0-9]/g, "_");
1123
+ /** The text items of an ACP tool call's `content`, joined. */
1124
+ function contentText(content) {
1125
+ if (!Array.isArray(content)) return void 0;
1126
+ const texts = content.flatMap((item) => {
1127
+ const inner = record(record(item).content);
1128
+ return record(item).type === "content" && typeof inner.text === "string" ? [inner.text] : [];
1129
+ });
1130
+ return texts.length ? texts.join("\n") : void 0;
1131
+ }
1132
+ const count = (value) => typeof value === "number" ? value : void 0;
1133
+ /**
1134
+ * The turn's usage with `outputTokens.total` counting reasoning. OpenCode's `PromptResponse.usage`
1135
+ * reports `thoughtTokens` beside `outputTokens`, not in it (its `totalTokens` is input, output and
1136
+ * thoughts), and `harness-acp` passes both on as they are.
1137
+ */
1138
+ function openCodeTurnUsage(usage) {
1139
+ const input = count(record(record(usage).inputTokens).total);
1140
+ const outputTokens = record(record(usage).outputTokens);
1141
+ const output = count(outputTokens.total);
1142
+ const reasoning = count(outputTokens.reasoning);
1143
+ const total = count(record(record(usage).raw).totalTokens);
1144
+ if (input === void 0 || output === void 0 || reasoning === void 0) return usage;
1145
+ if (total === void 0 || total <= input + output) return usage;
1146
+ return {
1147
+ ...record(usage),
1148
+ outputTokens: {
1149
+ ...outputTokens,
1150
+ total: output + reasoning,
1151
+ text: output
1152
+ }
1153
+ };
1154
+ }
1155
+ /** A web search's results, from the `## [title](url)` heading OpenCode gives each. */
1156
+ const searchResults = (text) => [...text.matchAll(/^## \[(.*)\]\((\S+)\)$/gm)].map(([, title, url]) => ({
1157
+ title,
1158
+ url
1159
+ }));
1160
+ /**
1161
+ * Fixes up one OpenCode turn's parts from `@ai-sdk/harness-acp`'s bridge (a tool result's value
1162
+ * is its `result`, a failure's marked `isError`):
1163
+ *
1164
+ * - A tool's output is `{ output, metadata }`: OpenCode sends the text only in the call's
1165
+ * `content`, and `harness-acp` passes on its `rawOutput`, `{ metadata }`. A web search's also
1166
+ * lists its `references`, `{ title, url }`.
1167
+ * - A call it couldn't name (`acp_tool_<id>`) is named from OpenCode's first `tool_call` update,
1168
+ * whose `name` or title is the tool's name: `shell` (its later titles are the command),
1169
+ * `patch` (an `edit`), or `<server>_<tool>` for an MCP tool, named `mcp__<server>__<tool>`.
1170
+ * `harness-acp` can pass `tool_call.name` through instead (`patch`, `<server>_<tool>`); that
1171
+ * is remapped the same way.
1172
+ * - The `finish` part's usage is `PromptResponse.usage` (the whole turn) as `@ai-sdk/harness-acp`
1173
+ * mapped it, with the reasoning added to the output ({@link openCodeTurnUsage}).
1174
+ * `usage_update.used` is the last step's context size, so it is not used here.
1175
+ */
1176
+ var OpenCodeStreamTranslator = class {
1177
+ titles = /* @__PURE__ */ new Map();
1178
+ texts = /* @__PURE__ */ new Map();
1179
+ servers;
1180
+ constructor(options = {}) {
1181
+ this.servers = [...options.mcpServers ?? []].sort((a, b) => b.length - a.length);
1182
+ }
1183
+ push(part) {
1184
+ if (part.type === "raw") {
1185
+ this.observe(record(part.rawValue));
1186
+ return [part];
1187
+ }
1188
+ if (part.type === "finish") return [{
1189
+ ...part,
1190
+ totalUsage: openCodeTurnUsage(part.totalUsage)
1191
+ }];
1192
+ if (part.type !== "tool-call" && part.type !== "tool-result") return [part];
1193
+ const id = typeof part.toolCallId === "string" ? part.toolCallId : "";
1194
+ let out = part;
1195
+ if (typeof part.toolName === "string") {
1196
+ if (part.toolName.startsWith("acp_tool_")) {
1197
+ const name = this.nameFor(this.titles.get(id));
1198
+ if (name) out = {
1199
+ ...out,
1200
+ toolName: name
1201
+ };
1202
+ } else {
1203
+ const name = this.nameFor(part.toolName);
1204
+ if (name) out = {
1205
+ ...out,
1206
+ toolName: name
1207
+ };
1208
+ }
1209
+ }
1210
+ if (part.type !== "tool-result") return [out];
1211
+ const text = this.texts.get(id);
1212
+ const result = record(out.result);
1213
+ if (text !== void 0 && typeof result.output !== "string") {
1214
+ const references = out.toolName === "webSearch" ? { references: searchResults(text) } : {};
1215
+ out = {
1216
+ ...out,
1217
+ result: {
1218
+ ...result,
1219
+ output: text,
1220
+ ...references
1221
+ }
1222
+ };
1223
+ }
1224
+ return [out];
1225
+ }
1226
+ observe(update) {
1227
+ const id = update.toolCallId;
1228
+ if (typeof id !== "string") return;
1229
+ if (update.sessionUpdate === "tool_call") {
1230
+ const label = typeof update.name === "string" && update.name ? update.name : typeof update.title === "string" ? update.title : void 0;
1231
+ if (label) this.titles.set(id, label);
1232
+ }
1233
+ if (update.sessionUpdate !== "tool_call" && update.sessionUpdate !== "tool_call_update") return;
1234
+ const text = contentText(update.content);
1235
+ if (text !== void 0) this.texts.set(id, text);
1236
+ }
1237
+ nameFor(title) {
1238
+ if (!title) return void 0;
1239
+ const builtin = BUILTIN_BY_NATIVE.get(title);
1240
+ if (builtin) return builtin;
1241
+ const server = this.servers.find((s) => title.startsWith(`${namespaceOf(s)}_`));
1242
+ if (!server) return void 0;
1243
+ const ns = namespaceOf(server);
1244
+ if (this.servers.some((s) => s !== server && namespaceOf(s) === ns)) return void 0;
1245
+ return `mcp__${server}__${title.slice(ns.length + 1)}`;
1246
+ }
1247
+ };
1248
+ // ../harness-opencode/src/opencode-harness.ts
1249
+ const OPENCODE_HARNESS_ID = "opencode";
1250
+ /** Where harness-placed skills go, under the sandbox home: OpenCode's own global directory. */
1251
+ const OPENCODE_HOME_SKILLS_DIR = ".config/opencode/skills";
1252
+ /**
1253
+ * The tools OpenCode offers that can't work in an eval, which the config turns off: `question`
1254
+ * waits for a person to answer, and `browser` drives a desktop browser.
1255
+ */
1256
+ const OPENCODE_DENIED_TOOLS = ["question", "browser"];
1257
+ /**
1258
+ * The search service `websearch` uses: Exa's hosted MCP server, keyless. Without a provider in
1259
+ * the config, the tool asks the user to pick one, which in an eval ends "Web search cancelled".
1260
+ */
1261
+ const OPENCODE_WEB_SEARCH = {
1262
+ provider: "exa",
1263
+ host: "mcp.exa.ai"
1264
+ };
1265
+ /**
1266
+ * The config OpenCode runs with, as `OPENCODE_CONFIG_CONTENT` (not the
1267
+ * `OPENCODE_DISABLE_*` variables): no self-update or share links,
1268
+ * {@link OPENCODE_DENIED_TOOLS} off, web search on {@link OPENCODE_WEB_SEARCH},
1269
+ * session titles on the run's own model (OpenCode's default is a second, small one), the
1270
+ * provider's model calls over HTTP, and the MCP servers. It loads after an eval's own
1271
+ * `opencode.json(c)`: a key both set is reeval's, objects merge (MCP servers by name), and permission
1272
+ * rules append to the eval's.
1273
+ */
1274
+ function openCodeConfig(options = {}) {
1275
+ const servers = Object.entries(options.mcpServers ?? {});
1276
+ const parts = options.model ? splitModel(options.model) : void 0;
1277
+ const provider = parts?.provider;
1278
+ const modelId = parts?.model;
1279
+ const effortBody = options.model && options.effort ? openCodeEffortBody(options.model, options.effort) : void 0;
1280
+ return {
1281
+ update: "disable",
1282
+ share: "disabled",
1283
+ permissions: OPENCODE_DENIED_TOOLS.map((action) => ({
1284
+ action,
1285
+ resource: "*",
1286
+ effect: "deny"
1287
+ })),
1288
+ websearch: { provider: OPENCODE_WEB_SEARCH.provider },
1289
+ ...options.model ? { agents: { title: { model: options.model } } } : {},
1290
+ ...provider ? { providers: { [provider]: {
1291
+ settings: { transport: "http" },
1292
+ ...effortBody && modelId ? { models: { [modelId]: { body: effortBody } } } : {}
1293
+ } } } : {},
1294
+ ...servers.length ? { mcp: { servers: Object.fromEntries(servers.map(([name, server]) => [name, {
1295
+ ...server,
1296
+ codemode: false
1297
+ }])) } } : {}
1298
+ };
1299
+ }
1300
+ /**
1301
+ * The environment `opencode acp` runs with: its config, and no self-update or model-catalog
1302
+ * fetch (it uses the catalog built into the release).
1303
+ */
1304
+ const openCodeEnv = (options = {}) => ({
1305
+ OPENCODE_DISABLE_AUTOUPDATE: "1",
1306
+ OPENCODE_DISABLE_MODELS_FETCH: "1",
1307
+ OPENCODE_CONFIG_CONTENT: JSON.stringify(openCodeConfig(options)),
1308
+ [OPENCODE_GATE_SERVERS_ENV]: JSON.stringify(Object.keys(options.mcpServers ?? {}))
1309
+ });
1310
+ /**
1311
+ * OpenCode (`opencode acp`) as an AI SDK harness, on any provider whose key it sends in a header
1312
+ * on known hosts: the model's provider (`anthropic/claude-haiku-4-5` runs on `anthropic`) picks
1313
+ * the key, and only that key is used and brokered.
1314
+ *
1315
+ * OpenCode ignores its config's `model` over ACP (a session starts on its own default), so each
1316
+ * turn sets the session's `model` config option. `@ai-sdk/harness-acp` maps
1317
+ * `PromptResponse.usage` onto the `finish` part (the whole turn)
1318
+ * (see {@link OpenCodeStreamTranslator}).
1319
+ */
1320
+ function createOpenCode(settings) {
1321
+ const route = settings.vertex ? vertexRoute(settings, settings.vertex) : keyRoute(settings);
1322
+ const refused = settings.effort && openCodeEffortRefusal(settings.model, settings.effort);
1323
+ if (refused) throw new Error(`OpenCode's effort: ${refused}; drop effort, or run a model that takes one`);
1324
+ if (settings.effort && !openCodeEffortBody(settings.model, settings.effort)) throw new Error(`OpenCode's effort on ${settings.model} goes in no field reeval has checked the model reads; drop effort, or run a model on Google, Vertex AI, Anthropic, OpenAI or OpenRouter, or a Gemini model on Vercel AI Gateway`);
1325
+ const acp = createACP({
1326
+ version: "v1",
1327
+ harnessId: OPENCODE_HARNESS_ID,
1328
+ builtinTools: OPENCODE_BUILTIN_TOOLS,
1329
+ source: {
1330
+ type: "npm-locked",
1331
+ packageJson: OPENCODE_PACKAGE_JSON,
1332
+ pnpmLockYaml: OPENCODE_PNPM_LOCK,
1333
+ pnpmWorkspaceYaml: OPENCODE_PNPM_WORKSPACE
1334
+ },
1335
+ executable: OPENCODE_GATE_EXECUTABLE,
1336
+ args: [],
1337
+ auth: Object.fromEntries(route.credentialEnv.flatMap((name) => {
1338
+ const value = isHarnessAuthenticationEnvironment(settings.auth) ? settings.auth[name] : void 0;
1339
+ return value ? [[name, value]] : [];
1340
+ })),
1341
+ env: {
1342
+ ...openCodeEnv(settings),
1343
+ [OPENCODE_GATE_ENV]: JSON.stringify(route.env)
1344
+ },
1345
+ credentialEnv: OPENCODE_KEY_ENV,
1346
+ credentialBrokering: route.credentialBrokering ?? (() => []),
1347
+ modelMapping: {
1348
+ type: "session-config-option",
1349
+ path: "model"
1350
+ },
1351
+ skillsDirectory: OPENCODE_HOME_SKILLS_DIR
1352
+ });
1353
+ return {
1354
+ ...acp,
1355
+ doStart: async (options) => {
1356
+ const sandbox = options.sandboxSession;
1357
+ if (route.credentialEnv.length > 0 && settings.requireCredentialBrokering && typeof sandbox.addRequestTransformations !== "function") throw new Error(`The sandbox can't broker ${route.credentialEnv.join(", ")} (it has no request transformations), and requireCredentialBrokering is set, so the key stays out of it.`);
1358
+ const session = await acp.doStart(options);
1359
+ await writeGate(options.sandboxSession, options.abortSignal);
1360
+ return translated(session, route, Object.keys(settings.mcpServers ?? {}));
1361
+ }
1362
+ };
1363
+ }
1364
+ /** Every provider's key variable: harness-acp forwards the one in auth, and brokers it. */
1365
+ const OPENCODE_KEY_ENV = [...new Set(OPENCODE_PROVIDERS.map((p) => p.env))].sort();
1366
+ function keyRoute(settings) {
1367
+ const resolved = resolveOpenCodeProvider(settings.model, settings.vars ?? {});
1368
+ if ("error" in resolved) throw new Error(resolved.error);
1369
+ const { provider, vars } = resolved;
1370
+ if (!isHarnessAuthenticationEnvironment(settings.auth) || !settings.auth[provider.env]) throw new Error(`OpenCode auth must be an environment object with ${provider.env} (the ${provider.name} key for ${settings.model})`);
1371
+ return {
1372
+ id: provider.id,
1373
+ name: provider.name,
1374
+ env: vars,
1375
+ credentialEnv: [provider.env],
1376
+ credentialBrokering: ({ env, sandboxEnv, headers }) => {
1377
+ const key = env[provider.env];
1378
+ const placeholder = sandboxEnv?.[provider.env];
1379
+ if (!key || !placeholder) return [];
1380
+ return providerTransformations(provider, {
1381
+ key,
1382
+ placeholder,
1383
+ ...headers ? { headers } : {}
1384
+ }).map(createCredentialRequestTransformation);
1385
+ },
1386
+ refuses: (model) => openCodeProvider(model).id === provider.id ? void 0 : `OpenCode was started with ${provider.name}'s key, so it can't run ${model}`
1387
+ };
1388
+ }
1389
+ function vertexRoute(settings, vertex) {
1390
+ const onVertex = (model) => splitModel(model)?.provider === OPENCODE_VERTEX_PROVIDER;
1391
+ if (!onVertex(settings.model)) throw new Error(`OpenCode on Vertex AI runs a ${OPENCODE_VERTEX_PROVIDER}/<model> id, such as '${OPENCODE_VERTEX_PROVIDER}/gemini-3.8-flash' (got ${JSON.stringify(settings.model)})`);
1392
+ return {
1393
+ id: OPENCODE_VERTEX_PROVIDER,
1394
+ name: "Vertex AI",
1395
+ env: {
1396
+ GOOGLE_CLOUD_PROJECT: vertex.project,
1397
+ GOOGLE_VERTEX_LOCATION: vertex.location,
1398
+ GOOGLE_APPLICATION_CREDENTIALS: vertex.credentialsFile
1399
+ },
1400
+ credentialEnv: [],
1401
+ refuses: (model) => onVertex(model) ? void 0 : `OpenCode was started on Vertex AI, so it can't run ${model}`
1402
+ };
1403
+ }
1404
+ /** Writes the gate where `harness-acp` runs its executable from, executable. */
1405
+ async function writeGate(sandbox, abortSignal) {
1406
+ const path = `${await resolveSandboxHomeDir({
1407
+ sandbox,
1408
+ ...abortSignal ? { abortSignal } : {}
1409
+ })}/${OPENCODE_GATE_PATH}`;
1410
+ await sandbox.run({
1411
+ command: `mkdir -p ${shellQuote(path.slice(0, path.lastIndexOf("/")))}`,
1412
+ abortSignal
1413
+ });
1414
+ await sandbox.writeTextFile({
1415
+ path,
1416
+ content: OPENCODE_GATE,
1417
+ abortSignal
1418
+ });
1419
+ if ((await sandbox.run({
1420
+ command: `chmod 755 ${shellQuote(path)}`,
1421
+ abortSignal
1422
+ })).exitCode !== 0) throw new Error(`OpenCode's gate isn't executable: ${path}`);
1423
+ }
1424
+ /**
1425
+ * The session, with each turn's model checked against the provider whose key it has, and its
1426
+ * parts through a fresh {@link OpenCodeStreamTranslator}.
1427
+ */
1428
+ function translated(session, route, mcpServers) {
1429
+ const turn = (run) => (options) => {
1430
+ const refused = options.model ? route.refuses(options.model) : void 0;
1431
+ if (refused) throw new Error(refused);
1432
+ const translator = new OpenCodeStreamTranslator({ mcpServers });
1433
+ return run({
1434
+ ...options,
1435
+ emit: (part) => {
1436
+ for (const out of translator.push(part)) options.emit(out);
1437
+ }
1438
+ });
1439
+ };
1440
+ return new Proxy(session, { get(target, key, receiver) {
1441
+ const value = Reflect.get(target, key, receiver);
1442
+ if (key !== "doPromptTurn" && key !== "doContinueTurn") return value;
1443
+ return turn(value.bind(target));
1444
+ } });
1445
+ }
1446
+ export { createOpenCode as a, OpenCodeStreamTranslator as c, OPENCODE_WEB_SEARCH as i, openCodeTurnUsage as l, OPENCODE_HARNESS_ID as n, openCodeConfig as o, OPENCODE_HOME_SKILLS_DIR as r, openCodeEnv as s, OPENCODE_DENIED_TOOLS as t, OPENCODE_BUILTIN_TOOLS as u };
1447
+
1448
+ //# sourceMappingURL=src-BQXdf-Gw.js.map