@opencode/core 2.0.19 → 2.0.20

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 (806) hide show
  1. package/dist/account/sql.js +1 -1
  2. package/dist/agent.js +83 -83
  3. package/dist/aisdk-native.js +89 -89
  4. package/dist/aisdk.js +94 -94
  5. package/dist/app.js +9 -9
  6. package/dist/bus.js +73 -73
  7. package/dist/chunks/{ripgrep-nrzkffvv.js → credential-01764t6m.js} +9 -9
  8. package/dist/chunks/{ripgrep-r7xja54h.js → credential-0ap57xmb.js} +11 -11
  9. package/dist/chunks/{ripgrep-fa7h6qtp.js → credential-0m7nkzkh.js} +8 -8
  10. package/dist/chunks/{ripgrep-0paq2nw3.js → credential-0paq2nw3.js} +1 -1
  11. package/dist/chunks/{ripgrep-1sxym04w.js → credential-0y2g8rq0.js} +18 -18
  12. package/dist/chunks/{ripgrep-ngmgdt3b.js → credential-17xqc022.js} +11 -11
  13. package/dist/chunks/{ripgrep-02cm5gdc.js → credential-1aavndqb.js} +11 -11
  14. package/dist/chunks/{ripgrep-1dazxqgg.js → credential-1dazxqgg.js} +2 -2
  15. package/dist/chunks/{ripgrep-se19vg8t.js → credential-1hnfrh0d.js} +35 -31
  16. package/dist/chunks/{ripgrep-ygfh7z4x.js → credential-1kkkrqff.js} +26 -26
  17. package/dist/chunks/{ripgrep-dkmyvpj5.js → credential-1qkzpzzz.js} +21 -21
  18. package/dist/chunks/{ripgrep-cvmm0xs5.js → credential-1r1tv6v0.js} +10 -10
  19. package/dist/chunks/{ripgrep-21r38tys.js → credential-21r38tys.js} +1 -1
  20. package/dist/chunks/{ripgrep-2a5m3afh.js → credential-2a5m3afh.js} +1 -1
  21. package/dist/chunks/{ripgrep-y7x7h62n.js → credential-2dwnk97h.js} +15 -15
  22. package/dist/chunks/{ripgrep-ncxf1vrd.js → credential-2exk30js.js} +5 -5
  23. package/dist/chunks/{ripgrep-n8c1xpsf.js → credential-2z5bkz89.js} +34 -34
  24. package/dist/chunks/{ripgrep-vcctfkdr.js → credential-30g65q41.js} +19 -19
  25. package/dist/chunks/{ripgrep-v8kmpyqg.js → credential-30men631.js} +22 -22
  26. package/dist/chunks/{ripgrep-smcq1pfk.js → credential-320xhtpp.js} +10 -10
  27. package/dist/chunks/{ripgrep-e6q37ddf.js → credential-32ymn5e1.js} +9 -9
  28. package/dist/chunks/{ripgrep-g5pjqc12.js → credential-34vw7f1n.js} +14 -14
  29. package/dist/chunks/{ripgrep-nqp5g4n1.js → credential-35vy03by.js} +17 -17
  30. package/dist/chunks/{ripgrep-rwk8kepb.js → credential-37axwcy6.js} +31 -31
  31. package/dist/chunks/{ripgrep-t6zs6zyr.js → credential-3c8vhndt.js} +8 -8
  32. package/dist/chunks/{ripgrep-f1mz2x80.js → credential-3ev070rc.js} +20 -20
  33. package/dist/chunks/{ripgrep-3fc6dm20.js → credential-3fc6dm20.js} +1 -1
  34. package/dist/chunks/{ripgrep-513gj428.js → credential-3g99d3pg.js} +5 -5
  35. package/dist/chunks/{ripgrep-3hepkmqq.js → credential-3hepkmqq.js} +1 -1
  36. package/dist/chunks/{ripgrep-3smtnn6g.js → credential-3smtnn6g.js} +1 -1
  37. package/dist/chunks/{ripgrep-3tvqynh2.js → credential-3tvqynh2.js} +1 -1
  38. package/dist/chunks/{ripgrep-3cfzdc8e.js → credential-3w2b2yj4.js} +5 -5
  39. package/dist/chunks/{ripgrep-3zsf4n22.js → credential-3zsf4n22.js} +1 -1
  40. package/dist/chunks/{ripgrep-ef8r30dj.js → credential-49dxcv90.js} +28 -28
  41. package/dist/chunks/{ripgrep-5dkn69vz.js → credential-4j4tgtq5.js} +4 -4
  42. package/dist/chunks/{ripgrep-qwk9htef.js → credential-4mdx2368.js} +9 -9
  43. package/dist/chunks/{ripgrep-w8qr023e.js → credential-4pk2n38q.js} +25 -25
  44. package/dist/chunks/{ripgrep-pzz9wtjp.js → credential-4tbg5pgg.js} +4 -4
  45. package/dist/chunks/credential-4v7qdvcn.js +18 -0
  46. package/dist/chunks/{ripgrep-54ma36ye.js → credential-54ma36ye.js} +1 -1
  47. package/dist/chunks/{ripgrep-54tcyq79.js → credential-54tcyq79.js} +2 -2
  48. package/dist/chunks/{ripgrep-57ez7d0k.js → credential-57ez7d0k.js} +2 -2
  49. package/dist/chunks/{ripgrep-5daktx2q.js → credential-5daktx2q.js} +1 -1
  50. package/dist/chunks/{ripgrep-f8ys8j9y.js → credential-5gg7jdww.js} +13 -13
  51. package/dist/chunks/{ripgrep-7rkndmtb.js → credential-5hxyj64z.js} +12 -12
  52. package/dist/chunks/{ripgrep-e3qxr5gk.js → credential-5qd3pb7m.js} +2 -2
  53. package/dist/chunks/{ripgrep-5t3nmthw.js → credential-5t3nmthw.js} +2 -2
  54. package/dist/chunks/{ripgrep-3xwj4cta.js → credential-5te2f5xw.js} +31 -31
  55. package/dist/chunks/{ripgrep-717rh1cx.js → credential-63fq9d04.js} +11 -11
  56. package/dist/chunks/{ripgrep-vpq7wwjy.js → credential-6582e1zf.js} +25 -6
  57. package/dist/chunks/{ripgrep-669tq793.js → credential-669tq793.js} +1 -1
  58. package/dist/chunks/{ripgrep-bmw6bt9k.js → credential-67hdgqhw.js} +23 -23
  59. package/dist/chunks/{ripgrep-meaywfr2.js → credential-69vgqr14.js} +20 -20
  60. package/dist/chunks/{ripgrep-0gaj4617.js → credential-6ersrjne.js} +4 -4
  61. package/dist/chunks/{ripgrep-50epje6z.js → credential-6fmzyh88.js} +37 -37
  62. package/dist/chunks/{ripgrep-6msgmcgs.js → credential-6msgmcgs.js} +1 -1
  63. package/dist/chunks/{ripgrep-966px1fx.js → credential-6n174ycw.js} +12 -12
  64. package/dist/chunks/{ripgrep-xd3pt1yp.js → credential-6pqttx51.js} +3 -3
  65. package/dist/chunks/{ripgrep-1gq8q7z3.js → credential-6vhy8yb4.js} +30 -30
  66. package/dist/chunks/{ripgrep-1cwrqxta.js → credential-6wqdzgpe.js} +11 -11
  67. package/dist/chunks/{ripgrep-39z47dss.js → credential-6yvxz189.js} +9 -9
  68. package/dist/chunks/{ripgrep-0tkrsm5y.js → credential-76832g3x.js} +7 -7
  69. package/dist/chunks/{ripgrep-7bmhse3q.js → credential-7bmhse3q.js} +1 -1
  70. package/dist/chunks/{ripgrep-7dqw4kz8.js → credential-7dqw4kz8.js} +1 -1
  71. package/dist/chunks/{ripgrep-rpwtn2yk.js → credential-7j45yeqe.js} +22 -22
  72. package/dist/chunks/{ripgrep-wpj1vscs.js → credential-7mpr3p1f.js} +5 -5
  73. package/dist/chunks/{ripgrep-36zg1nxf.js → credential-7pmn0fht.js} +23 -23
  74. package/dist/chunks/{ripgrep-v121z1z6.js → credential-7svg9qyr.js} +3 -3
  75. package/dist/chunks/{ripgrep-w52wajpr.js → credential-7w99qc9d.js} +3 -3
  76. package/dist/chunks/{ripgrep-dxh6ecs0.js → credential-7x29ec5h.js} +5 -5
  77. package/dist/chunks/{ripgrep-vyrd71eq.js → credential-818pfwc9.js} +11 -11
  78. package/dist/chunks/{ripgrep-84txncab.js → credential-84txncab.js} +1 -1
  79. package/dist/chunks/{ripgrep-pa2d04qg.js → credential-860w7ty6.js} +4 -4
  80. package/dist/chunks/{ripgrep-wnbq8dq2.js → credential-87kvv8a5.js} +141 -33
  81. package/dist/chunks/{ripgrep-qsjn5gcs.js → credential-8as63f7d.js} +11 -11
  82. package/dist/chunks/{ripgrep-8d7r5vzw.js → credential-8d7r5vzw.js} +1 -1
  83. package/dist/chunks/{ripgrep-zyft68ff.js → credential-8rsx1zec.js} +3 -3
  84. package/dist/chunks/{ripgrep-ysddpjww.js → credential-8wb366f9.js} +6 -6
  85. package/dist/chunks/{ripgrep-ztychdw2.js → credential-8ytcc0ez.js} +18 -18
  86. package/dist/chunks/{ripgrep-gpj7vvxj.js → credential-965ggptx.js} +12 -12
  87. package/dist/chunks/{ripgrep-87ppwq26.js → credential-995e57hq.js} +7 -7
  88. package/dist/chunks/{ripgrep-45gjfn9y.js → credential-9asmjjbg.js} +8 -8
  89. package/dist/chunks/{ripgrep-9eq5kwq7.js → credential-9eq5kwq7.js} +2 -2
  90. package/dist/chunks/{ripgrep-engkm2d6.js → credential-9pkkzrmj.js} +5 -5
  91. package/dist/chunks/{ripgrep-jjyafwrj.js → credential-9q51rf9r.js} +13 -13
  92. package/dist/chunks/{ripgrep-gn9knv9y.js → credential-9v0v5k0m.js} +39 -39
  93. package/dist/chunks/{ripgrep-7zx59yv5.js → credential-9ysd9rcf.js} +13 -13
  94. package/dist/chunks/{ripgrep-aaet6srn.js → credential-aaet6srn.js} +2 -2
  95. package/dist/chunks/{ripgrep-prwn914c.js → credential-akwq9tj0.js} +19 -19
  96. package/dist/chunks/{ripgrep-q68zcp6s.js → credential-as42p2kz.js} +13 -13
  97. package/dist/chunks/{ripgrep-ybn4q7y2.js → credential-b3rzqckw.js} +13 -13
  98. package/dist/chunks/{ripgrep-p05254f8.js → credential-b46899qp.js} +11 -11
  99. package/dist/chunks/{ripgrep-b6gygkdw.js → credential-b6gygkdw.js} +2 -2
  100. package/dist/chunks/{ripgrep-bjtzbw4r.js → credential-bjtzbw4r.js} +3 -3
  101. package/dist/chunks/{ripgrep-hpgwsqwz.js → credential-bkxev147.js} +9 -9
  102. package/dist/chunks/{ripgrep-jyx4k4a6.js → credential-bnqp8nta.js} +15 -15
  103. package/dist/chunks/{ripgrep-cdm0dq9n.js → credential-bw9zjykr.js} +6 -6
  104. package/dist/chunks/{ripgrep-y3fm06sq.js → credential-c6hr400c.js} +3 -3
  105. package/dist/chunks/{ripgrep-wc7bkbrs.js → credential-c86te7yw.js} +9 -9
  106. package/dist/chunks/credential-c9ejnn61.js +252 -0
  107. package/dist/chunks/{ripgrep-vf281y08.js → credential-ca7kmppq.js} +11 -11
  108. package/dist/chunks/{ripgrep-bj8n3aze.js → credential-ccg1mtqe.js} +28 -28
  109. package/dist/chunks/{ripgrep-2djhngnv.js → credential-cckay3nk.js} +8 -8
  110. package/dist/chunks/{ripgrep-y38ja4bc.js → credential-cfm9g534.js} +8 -8
  111. package/dist/chunks/{ripgrep-3crkzcp9.js → credential-cjfyp86a.js} +41 -41
  112. package/dist/chunks/{ripgrep-dym78pc8.js → credential-cn1v2m3x.js} +8 -8
  113. package/dist/chunks/{ripgrep-pyrtyedv.js → credential-cr4nqcbv.js} +11 -11
  114. package/dist/chunks/{ripgrep-a4pew0st.js → credential-ct0b5bas.js} +49 -49
  115. package/dist/chunks/{ripgrep-cwa6csj7.js → credential-cwa6csj7.js} +2 -2
  116. package/dist/chunks/{ripgrep-hq3kn9m3.js → credential-d7srgpft.js} +3 -3
  117. package/dist/chunks/{ripgrep-bf0ztrs3.js → credential-dfe8djrf.js} +4 -4
  118. package/dist/chunks/{ripgrep-6d4369ev.js → credential-dmr0vvsc.js} +5 -5
  119. package/dist/chunks/{ripgrep-r4tkwkgd.js → credential-dn5d15e9.js} +3 -3
  120. package/dist/chunks/{ripgrep-4dgbcxzg.js → credential-dnxkq42g.js} +6 -4
  121. package/dist/chunks/{ripgrep-y71avatq.js → credential-dpkg50ah.js} +4 -4
  122. package/dist/chunks/{ripgrep-fzjz7zmc.js → credential-drnx3qwb.js} +26 -26
  123. package/dist/chunks/{ripgrep-921pky8x.js → credential-dwrr54rh.js} +29 -29
  124. package/dist/chunks/{ripgrep-5qt97ybp.js → credential-dzq4rv13.js} +28 -28
  125. package/dist/chunks/{ripgrep-kv68fk3j.js → credential-e34dw6hk.js} +180 -175
  126. package/dist/chunks/{ripgrep-d2aac7k2.js → credential-ead3g9p8.js} +5 -5
  127. package/dist/chunks/{ripgrep-ecfe7b91.js → credential-ecfe7b91.js} +2 -2
  128. package/dist/chunks/{ripgrep-jkka0c6f.js → credential-eeaf82dq.js} +8 -8
  129. package/dist/chunks/{ripgrep-ef5x83kb.js → credential-ef5x83kb.js} +1 -1
  130. package/dist/chunks/{ripgrep-p39gsrf5.js → credential-egndxt76.js} +43 -43
  131. package/dist/chunks/{ripgrep-txehjzrx.js → credential-epnck8kw.js} +22 -22
  132. package/dist/chunks/{ripgrep-xyv2nnj9.js → credential-eqpt8p1k.js} +22 -22
  133. package/dist/chunks/{ripgrep-etq0c3wd.js → credential-etq0c3wd.js} +1 -1
  134. package/dist/chunks/{ripgrep-sf4xqwvj.js → credential-evrr6asg.js} +31 -17
  135. package/dist/chunks/{ripgrep-9gz1cjgc.js → credential-eyj09mx0.js} +58 -58
  136. package/dist/chunks/{ripgrep-0mx2aapc.js → credential-fgashtey.js} +10 -10
  137. package/dist/chunks/{ripgrep-ywkfy99j.js → credential-fhs97t90.js} +9 -9
  138. package/dist/chunks/{ripgrep-h71w788e.js → credential-fwwk8vbp.js} +9 -9
  139. package/dist/chunks/{ripgrep-zf7qa2ng.js → credential-fx1epf7g.js} +46 -46
  140. package/dist/chunks/{ripgrep-6ap5qy5h.js → credential-fxtkerxr.js} +18 -18
  141. package/dist/chunks/{ripgrep-sr8ycrw9.js → credential-fyd2dh6z.js} +13 -13
  142. package/dist/chunks/{ripgrep-kk00bynn.js → credential-g190xswt.js} +21 -21
  143. package/dist/chunks/{ripgrep-pjerk14q.js → credential-g3xec8vw.js} +40 -40
  144. package/dist/chunks/{ripgrep-gd4qta3r.js → credential-gd4qta3r.js} +1 -1
  145. package/dist/chunks/{ripgrep-gfvb90ym.js → credential-gfvb90ym.js} +2 -2
  146. package/dist/chunks/{ripgrep-7d3cxzax.js → credential-gj6q2tkf.js} +28 -28
  147. package/dist/chunks/{ripgrep-92b1hf4n.js → credential-gqs84h8k.js} +28 -28
  148. package/dist/chunks/{ripgrep-gv6a8nnw.js → credential-gv6a8nnw.js} +2 -2
  149. package/dist/chunks/{ripgrep-zs8srxkn.js → credential-gv83f00q.js} +25 -25
  150. package/dist/chunks/{ripgrep-mtndfwk2.js → credential-gxdeyq0h.js} +18 -18
  151. package/dist/chunks/{ripgrep-hrj2emtv.js → credential-gygscfxn.js} +4 -4
  152. package/dist/chunks/{ripgrep-8zh4h089.js → credential-h6b02349.js} +5 -5
  153. package/dist/chunks/{ripgrep-h6vf3j39.js → credential-h6vf3j39.js} +1 -1
  154. package/dist/chunks/{ripgrep-bvbkwbsh.js → credential-h8vvrgsf.js} +16 -16
  155. package/dist/chunks/{ripgrep-h5w29vws.js → credential-hd8vw2pw.js} +1 -1
  156. package/dist/chunks/{ripgrep-tgqx6wbb.js → credential-hhd7x08z.js} +5 -5
  157. package/dist/chunks/{ripgrep-gr9s2h9h.js → credential-hvpdd4sy.js} +11 -11
  158. package/dist/chunks/{ripgrep-tgh33bte.js → credential-hw2ff0tr.js} +12 -12
  159. package/dist/chunks/{ripgrep-jceb99ws.js → credential-hyq1p8wb.js} +14 -14
  160. package/dist/chunks/{ripgrep-ws4630vh.js → credential-hytzprz1.js} +11 -11
  161. package/dist/chunks/{ripgrep-j56e64zr.js → credential-j56e64zr.js} +1 -1
  162. package/dist/chunks/{ripgrep-7rhad128.js → credential-j5gmcxfs.js} +20 -20
  163. package/dist/chunks/{ripgrep-bqypnsdg.js → credential-j6ze8jrf.js} +19 -19
  164. package/dist/chunks/{ripgrep-01g11k9t.js → credential-jczj3x0w.js} +21 -21
  165. package/dist/chunks/{ripgrep-p1nm93x7.js → credential-jv01nqvq.js} +5 -5
  166. package/dist/chunks/{ripgrep-jws6fkes.js → credential-jws6fkes.js} +2 -2
  167. package/dist/chunks/{ripgrep-v9tf4bbz.js → credential-k4sma9mx.js} +23 -23
  168. package/dist/chunks/{ripgrep-1ap17en5.js → credential-k553bdtw.js} +34 -34
  169. package/dist/chunks/{ripgrep-t6jhp5yk.js → credential-k8sz2zj3.js} +26 -26
  170. package/dist/chunks/{ripgrep-qfhyjwmh.js → credential-kq6h27xz.js} +4 -4
  171. package/dist/chunks/{ripgrep-p8xjr5qr.js → credential-kr2z21pd.js} +17 -17
  172. package/dist/chunks/{ripgrep-hcxgq10m.js → credential-kyh50zn5.js} +48 -48
  173. package/dist/chunks/{ripgrep-dhtd5fdm.js → credential-m2ddg3y2.js} +18 -18
  174. package/dist/chunks/{ripgrep-6v71ddka.js → credential-m2sn03fv.js} +20 -20
  175. package/dist/chunks/{ripgrep-m3fdjcah.js → credential-m3fdjcah.js} +1 -1
  176. package/dist/chunks/{ripgrep-90x597dq.js → credential-m67h27zr.js} +1 -1
  177. package/dist/chunks/{ripgrep-rd8q201w.js → credential-m7eh5me1.js} +12 -12
  178. package/dist/chunks/{ripgrep-eszpxc5c.js → credential-m9mb90fb.js} +5 -5
  179. package/dist/chunks/{ripgrep-m9w0rfyh.js → credential-m9w0rfyh.js} +1 -1
  180. package/dist/chunks/{ripgrep-mfqp6xfm.js → credential-mfqp6xfm.js} +2 -2
  181. package/dist/chunks/{ripgrep-98cnr0ek.js → credential-mn7chjbp.js} +9 -9
  182. package/dist/chunks/{ripgrep-s3ndjw50.js → credential-mpf0mq91.js} +8 -8
  183. package/dist/chunks/{ripgrep-amncynrr.js → credential-mr6y2ppx.js} +8 -8
  184. package/dist/chunks/{ripgrep-gjepqxj6.js → credential-mt8f3a05.js} +41 -41
  185. package/dist/chunks/{ripgrep-7962e3yf.js → credential-myd2tyxx.js} +18 -18
  186. package/dist/chunks/{ripgrep-784hb5j4.js → credential-mzywpf3p.js} +4 -4
  187. package/dist/chunks/{ripgrep-t2az9yje.js → credential-n4r3xatb.js} +4 -4
  188. package/dist/chunks/{ripgrep-wws8y0j5.js → credential-n6rh12ap.js} +7 -7
  189. package/dist/chunks/{ripgrep-vm695x1h.js → credential-n7q661v8.js} +24 -24
  190. package/dist/chunks/{ripgrep-tfzngn12.js → credential-nb9p6b26.js} +4 -4
  191. package/dist/chunks/{ripgrep-18rbsmj0.js → credential-nbajkkwv.js} +37 -29
  192. package/dist/chunks/{ripgrep-ervy3t4x.js → credential-nfr71wq7.js} +10 -10
  193. package/dist/chunks/{ripgrep-gafqwe43.js → credential-nng2ktcm.js} +2 -2
  194. package/dist/chunks/{ripgrep-wrw0pdsr.js → credential-nye1dag9.js} +32 -32
  195. package/dist/chunks/{ripgrep-nzks3jc8.js → credential-nzks3jc8.js} +3 -3
  196. package/dist/chunks/{ripgrep-dneah854.js → credential-p8vfyszn.js} +9 -9
  197. package/dist/chunks/{ripgrep-1ajx6rf5.js → credential-pa8pe2x7.js} +8 -8
  198. package/dist/chunks/{ripgrep-d3qdrwa5.js → credential-phmegyhy.js} +38 -38
  199. package/dist/chunks/{ripgrep-pjvnvgmy.js → credential-pjvnvgmy.js} +1 -1
  200. package/dist/chunks/{ripgrep-pknna89w.js → credential-pknna89w.js} +1 -1
  201. package/dist/chunks/{ripgrep-1qny0ng8.js → credential-pkt3h2b9.js} +19 -19
  202. package/dist/chunks/{ripgrep-54zxgqzr.js → credential-pnaxc6j9.js} +8 -8
  203. package/dist/chunks/{ripgrep-psazpmmj.js → credential-psazpmmj.js} +2 -2
  204. package/dist/chunks/{ripgrep-d6gxwvxg.js → credential-psr41n11.js} +12 -12
  205. package/dist/chunks/{ripgrep-sg3rx6b8.js → credential-pv6wngh8.js} +22 -22
  206. package/dist/chunks/{ripgrep-y5y40sn1.js → credential-q2hsetqa.js} +12 -12
  207. package/dist/chunks/{ripgrep-fm2qvscf.js → credential-qa3qhgw8.js} +4 -4
  208. package/dist/chunks/{ripgrep-qqeeq2t9.js → credential-qqeeq2t9.js} +1 -1
  209. package/dist/chunks/{ripgrep-qsdy395h.js → credential-qsdy395h.js} +1 -1
  210. package/dist/chunks/{ripgrep-0z0qdp4f.js → credential-qwsb95v7.js} +44 -44
  211. package/dist/chunks/{ripgrep-f5fzvqmp.js → credential-qzd7m72z.js} +10 -10
  212. package/dist/chunks/{ripgrep-e5v6sjzq.js → credential-r2w7cvnr.js} +10 -10
  213. package/dist/chunks/{ripgrep-eybctzj2.js → credential-r513yfhg.js} +26 -26
  214. package/dist/chunks/{ripgrep-jtj8yee2.js → credential-r5mfbntr.js} +86 -86
  215. package/dist/chunks/{ripgrep-73tb2d7t.js → credential-r5x6zcsm.js} +3 -3
  216. package/dist/chunks/{ripgrep-h204n497.js → credential-r68z10wk.js} +4 -4
  217. package/dist/chunks/{ripgrep-f2n192rq.js → credential-r8xr0va3.js} +4 -4
  218. package/dist/chunks/{ripgrep-asw9yjte.js → credential-r9f2t4hr.js} +17 -17
  219. package/dist/chunks/{ripgrep-y18nyng0.js → credential-r9m8wmbv.js} +31 -31
  220. package/dist/chunks/{ripgrep-s8vezypb.js → credential-r9pqfw3c.js} +25 -25
  221. package/dist/chunks/{ripgrep-rdw6cm16.js → credential-rdw6cm16.js} +1 -1
  222. package/dist/chunks/{ripgrep-nyqx1cb3.js → credential-reg6q42h.js} +5 -5
  223. package/dist/chunks/{ripgrep-zb4s847t.js → credential-rgq9hrpw.js} +7 -7
  224. package/dist/chunks/{ripgrep-y01t92x8.js → credential-rjyw1ade.js} +47 -47
  225. package/dist/chunks/{ripgrep-mgq5nv3e.js → credential-rkmmz4cx.js} +8 -8
  226. package/dist/chunks/{ripgrep-w3jg838k.js → credential-rpjgfq5s.js} +9 -9
  227. package/dist/chunks/{ripgrep-4przf6dn.js → credential-rt0y70g6.js} +14 -14
  228. package/dist/chunks/{ripgrep-8v662a6s.js → credential-rxfap019.js} +26 -26
  229. package/dist/chunks/{ripgrep-f960svv2.js → credential-s0mc307a.js} +11 -11
  230. package/dist/chunks/{ripgrep-1n7xvyes.js → credential-s5e2htb3.js} +9 -9
  231. package/dist/chunks/{ripgrep-v6f2zkdc.js → credential-s673kgky.js} +28 -28
  232. package/dist/chunks/{ripgrep-t550f9t1.js → credential-s8d7rejh.js} +4 -4
  233. package/dist/chunks/{ripgrep-fses9meq.js → credential-sknxvkc8.js} +28 -28
  234. package/dist/chunks/{ripgrep-kxhj4mfa.js → credential-t590yz96.js} +11 -11
  235. package/dist/chunks/{ripgrep-tazgh4e4.js → credential-tazgh4e4.js} +1 -1
  236. package/dist/chunks/{ripgrep-tcezcvh9.js → credential-tcezcvh9.js} +1 -1
  237. package/dist/chunks/{ripgrep-r36g8kg2.js → credential-tcmebnch.js} +15 -15
  238. package/dist/chunks/{ripgrep-tdstcens.js → credential-tdstcens.js} +1 -1
  239. package/dist/chunks/{ripgrep-xgw0etvz.js → credential-tjtda90p.js} +2 -2
  240. package/dist/chunks/{ripgrep-ec07y9k9.js → credential-tky6hxra.js} +26 -26
  241. package/dist/chunks/{ripgrep-z8fqh70m.js → credential-tntb81s9.js} +19 -19
  242. package/dist/chunks/{ripgrep-tvtrv512.js → credential-tvtrv512.js} +1 -1
  243. package/dist/chunks/{ripgrep-3ny1h4te.js → credential-tzxp8tch.js} +9 -9
  244. package/dist/chunks/{ripgrep-560t4d1v.js → credential-vayd7y3p.js} +17 -4
  245. package/dist/chunks/{ripgrep-veqvce7d.js → credential-veqvce7d.js} +1 -1
  246. package/dist/chunks/{ripgrep-9dt30ddd.js → credential-vggwrjrt.js} +21 -21
  247. package/dist/chunks/{ripgrep-6e52v1r2.js → credential-vh9g9snc.js} +17 -17
  248. package/dist/chunks/{ripgrep-vktw4pze.js → credential-vnzfaa5x.js} +4 -4
  249. package/dist/chunks/{ripgrep-cew5j6w6.js → credential-vpqca0z9.js} +11 -11
  250. package/dist/chunks/{ripgrep-sdgam4xr.js → credential-vrewfqnt.js} +1 -1
  251. package/dist/chunks/{ripgrep-gfm6y7px.js → credential-vsvxbsy9.js} +66 -66
  252. package/dist/chunks/{ripgrep-pjedbq3k.js → credential-vyqn3nqs.js} +4 -4
  253. package/dist/chunks/{ripgrep-vzcthcp8.js → credential-vzcthcp8.js} +1 -1
  254. package/dist/chunks/{ripgrep-vzs5sf6e.js → credential-vzs5sf6e.js} +1 -1
  255. package/dist/chunks/{ripgrep-bjj0bk6b.js → credential-vzwn6bjz.js} +18 -18
  256. package/dist/chunks/{ripgrep-9q5cvpmr.js → credential-w07vsv7f.js} +27 -27
  257. package/dist/chunks/{ripgrep-k5f615bv.js → credential-w27cvc4j.js} +10 -10
  258. package/dist/chunks/{ripgrep-35qaqz32.js → credential-w2fmgtkz.js} +20 -20
  259. package/dist/chunks/{ripgrep-mmq917w3.js → credential-w3jfy4gq.js} +11 -11
  260. package/dist/chunks/{ripgrep-w3wsvvr9.js → credential-w3wsvvr9.js} +1 -1
  261. package/dist/chunks/{ripgrep-pa6447g9.js → credential-wb1prbnq.js} +24 -24
  262. package/dist/chunks/{ripgrep-wd87259q.js → credential-wd87259q.js} +1 -1
  263. package/dist/chunks/{ripgrep-keqxcydf.js → credential-wp4r7acg.js} +43 -24
  264. package/dist/chunks/{ripgrep-d8j7dsnb.js → credential-ws120pvh.js} +8 -8
  265. package/dist/chunks/credential-wtjjgayy.js +427 -0
  266. package/dist/chunks/{ripgrep-vpdv8epx.js → credential-x01zr8y0.js} +22 -22
  267. package/dist/chunks/{ripgrep-x1ezjp6w.js → credential-x1ezjp6w.js} +1 -1
  268. package/dist/chunks/{ripgrep-zv0jyrj3.js → credential-x5fprgp4.js} +5 -5
  269. package/dist/chunks/{ripgrep-xkntkrq7.js → credential-xkntkrq7.js} +2 -2
  270. package/dist/chunks/{ripgrep-chcvj6mx.js → credential-xn3gx34d.js} +19 -19
  271. package/dist/chunks/{ripgrep-z3k649yd.js → credential-xn90480x.js} +302 -302
  272. package/dist/chunks/{ripgrep-54nwp9r7.js → credential-xnwfhxg1.js} +26 -26
  273. package/dist/chunks/{ripgrep-m3ra8jyf.js → credential-xqbsjtqf.js} +13 -13
  274. package/dist/chunks/{ripgrep-a1fqa279.js → credential-xr72vas6.js} +6 -6
  275. package/dist/chunks/{ripgrep-4nzwy074.js → credential-xxndcd6m.js} +4 -4
  276. package/dist/chunks/{ripgrep-y1fvbwt7.js → credential-y1fvbwt7.js} +1 -1
  277. package/dist/chunks/{ripgrep-kasa1exf.js → credential-ybqqd820.js} +20 -20
  278. package/dist/chunks/{ripgrep-tnwzh9w1.js → credential-yf64nb4f.js} +16 -16
  279. package/dist/chunks/{ripgrep-yrhqyw5v.js → credential-yrhqyw5v.js} +1 -1
  280. package/dist/chunks/{ripgrep-s4enseaf.js → credential-yrznvahk.js} +2 -2
  281. package/dist/chunks/{ripgrep-jb2d75z1.js → credential-yspm5xbj.js} +11 -11
  282. package/dist/chunks/{ripgrep-v0rxv5z8.js → credential-yyk0fdyr.js} +85 -85
  283. package/dist/chunks/{ripgrep-z0bkrqjs.js → credential-z0bkrqjs.js} +1 -1
  284. package/dist/chunks/{ripgrep-2vjymgz4.js → credential-z1qbwb2j.js} +11 -11
  285. package/dist/chunks/{ripgrep-fgmy5dam.js → credential-z41nk1d3.js} +31 -31
  286. package/dist/chunks/{ripgrep-29x78va6.js → credential-z63w68vq.js} +6 -6
  287. package/dist/chunks/{ripgrep-zeh9ct20.js → credential-zeh9ct20.js} +2 -2
  288. package/dist/chunks/{ripgrep-rvtvfpzy.js → credential-zkahend3.js} +6 -6
  289. package/dist/chunks/{ripgrep-nt8bmh2c.js → credential-znxzs23z.js} +7 -7
  290. package/dist/chunks/{ripgrep-zr2ceqn5.js → credential-zr2ceqn5.js} +1 -1
  291. package/dist/chunks/{ripgrep-zxq2ej10.js → credential-zxq2ej10.js} +1 -1
  292. package/dist/chunks/{ripgrep-k0a3z2qz.js → credential-zy43x3f1.js} +4 -4
  293. package/dist/chunks/{ripgrep-gfwqm0th.js → credential-zyh8zg28.js} +34 -34
  294. package/dist/codemode/catalog.js +1 -1
  295. package/dist/codemode/instructions.js +5 -5
  296. package/dist/codemode/tool.js +3 -3
  297. package/dist/codemode/web.js +1 -1
  298. package/dist/command.js +81 -81
  299. package/dist/config/discovery.js +82 -82
  300. package/dist/config/markdown.js +1 -1
  301. package/dist/config/normalize.js +106 -106
  302. package/dist/config/plugin/agent.js +123 -123
  303. package/dist/config/plugin/command.js +213 -213
  304. package/dist/config/plugin/compaction.js +161 -161
  305. package/dist/config/plugin/compatibility.js +141 -141
  306. package/dist/config/plugin/entry-observer.js +1 -1
  307. package/dist/config/plugin/formatter.js +124 -124
  308. package/dist/config/plugin/image.js +123 -123
  309. package/dist/config/plugin/instruction.js +90 -90
  310. package/dist/config/plugin/location-watcher.js +123 -123
  311. package/dist/config/plugin/mcp.js +130 -130
  312. package/dist/config/plugin/policy.js +124 -124
  313. package/dist/config/plugin/provider.js +123 -123
  314. package/dist/config/plugin/reference.js +125 -125
  315. package/dist/config/plugin/shell.js +123 -123
  316. package/dist/config/plugin/skill-file.js +102 -102
  317. package/dist/config/plugin/skill.js +142 -142
  318. package/dist/config/plugin/snapshot.js +123 -123
  319. package/dist/config/plugin/source.js +120 -120
  320. package/dist/config/plugin/tool-output.js +125 -125
  321. package/dist/config/plugin/websearch.js +122 -122
  322. package/dist/config/plugin/worktree.js +125 -125
  323. package/dist/config/variable.js +3 -3
  324. package/dist/config/watch.js +1 -1
  325. package/dist/config.js +126 -126
  326. package/dist/credential/sql.js +2 -2
  327. package/dist/credential.js +81 -81
  328. package/dist/database/database.js +72 -72
  329. package/dist/database/drizzle/effect-sqlite/driver.js +14 -14
  330. package/dist/database/drizzle/effect-sqlite/index.js +14 -14
  331. package/dist/database/drizzle/effect-sqlite/session.js +11 -11
  332. package/dist/database/drizzle/index.js +15 -15
  333. package/dist/database/drizzle/internal/drizzle-utils.js +1 -1
  334. package/dist/database/drizzle/sqlite-core/effect/count.js +1 -1
  335. package/dist/database/drizzle/sqlite-core/effect/db.js +9 -9
  336. package/dist/database/drizzle/sqlite-core/effect/delete.js +2 -2
  337. package/dist/database/drizzle/sqlite-core/effect/index.js +10 -10
  338. package/dist/database/drizzle/sqlite-core/effect/insert.js +2 -2
  339. package/dist/database/drizzle/sqlite-core/effect/query.js +1 -1
  340. package/dist/database/drizzle/sqlite-core/effect/raw.js +1 -1
  341. package/dist/database/drizzle/sqlite-core/effect/select.js +2 -2
  342. package/dist/database/drizzle/sqlite-core/effect/session.js +10 -10
  343. package/dist/database/drizzle/sqlite-core/effect/update.js +2 -2
  344. package/dist/database/drizzle.js +16 -16
  345. package/dist/database/migration/20260127222353_familiar_lady_ursula.js +1 -1
  346. package/dist/database/migration/20260211171708_add_project_commands.js +1 -1
  347. package/dist/database/migration/20260213144116_wakeful_the_professor.js +1 -1
  348. package/dist/database/migration/20260225215848_workspace.js +1 -1
  349. package/dist/database/migration/20260227213759_add_session_workspace_id.js +1 -1
  350. package/dist/database/migration/20260228203230_blue_harpoon.js +1 -1
  351. package/dist/database/migration/20260303231226_add_workspace_fields.js +1 -1
  352. package/dist/database/migration/20260309230000_move_org_to_state.js +1 -1
  353. package/dist/database/migration/20260312043431_session_message_cursor.js +1 -1
  354. package/dist/database/migration/20260323234822_events.js +1 -1
  355. package/dist/database/migration/20260410174513_workspace-name.js +1 -1
  356. package/dist/database/migration/20260413175956_chief_energizer.js +1 -1
  357. package/dist/database/migration/20260423070820_add_icon_url_override.js +1 -1
  358. package/dist/database/migration/20260427172553_slow_nightmare.js +1 -1
  359. package/dist/database/migration/20260428004200_add_session_path.js +1 -1
  360. package/dist/database/migration/20260501142318_next_venus.js +1 -1
  361. package/dist/database/migration/20260504145000_add_sync_owner.js +1 -1
  362. package/dist/database/migration/20260507164347_add_workspace_time.js +1 -1
  363. package/dist/database/migration/20260510033149_session_usage.js +1 -1
  364. package/dist/database/migration/20260511000411_data_migration_state.js +1 -1
  365. package/dist/database/migration/20260511173437_session-metadata.js +1 -1
  366. package/dist/database/migration/20260601010001_normalize_storage_paths.js +1 -1
  367. package/dist/database/migration/20260601202201_amazing_prowler.js +1 -1
  368. package/dist/database/migration/20260602002951_lowly_union_jack.js +1 -1
  369. package/dist/database/migration/20260602182828_add_project_directories.js +1 -1
  370. package/dist/database/migration/20260603001617_session_message_projection_indexes.js +1 -1
  371. package/dist/database/migration/20260603040000_session_message_projection_order.js +1 -1
  372. package/dist/database/migration/20260603141458_session_input_inbox.js +1 -1
  373. package/dist/database/migration/20260603160727_jittery_ezekiel_stane.js +1 -1
  374. package/dist/database/migration/20260604172448_event_sourced_session_input.js +1 -1
  375. package/dist/database/migration/20260605003541_add_session_context_snapshot.js +1 -1
  376. package/dist/database/migration/20260605042240_add_context_epoch_agent.js +1 -1
  377. package/dist/database/migration/20260611035744_credential.js +1 -1
  378. package/dist/database/migration/20260611192811_lush_chimera.js +1 -1
  379. package/dist/database/migration/20260612174303_project_dir_strategy.js +1 -1
  380. package/dist/database/migration/20260622142730_simplify_session_context_epoch.js +1 -1
  381. package/dist/database/migration/20260622170816_reset_v2_session_state.js +1 -1
  382. package/dist/database/migration/20260622202450_simplify_session_input.js +1 -1
  383. package/dist/database/migration/20260804233008_loose_psylocke.js +1 -1
  384. package/dist/database/migration/20260805200742_import_legacy_credentials.js +1 -1
  385. package/dist/database/migration/20260808023530_workspace_domain.js +1 -1
  386. package/dist/database/migration/20260811161259_execution_claim_attempts.js +1 -1
  387. package/dist/database/migration/20260812181746_session_inbox.js +1 -1
  388. package/dist/database/migration/20260812213948_worktree.js +1 -1
  389. package/dist/database/migration/20260819222447_session_viewed_state.js +1 -1
  390. package/dist/database/migration/20260823191254_nullable_workspace_binding.js +1 -1
  391. package/dist/database/migration/20260910120000_clear_v1_session_permission.js +1 -1
  392. package/dist/database/migration/20260923013825_project_time_active.js +1 -1
  393. package/dist/database/migration.gen.js +49 -49
  394. package/dist/database/migration.js +51 -51
  395. package/dist/database/path.js +2 -2
  396. package/dist/database/schema.gen.js +1 -1
  397. package/dist/database/schema.sql.js +1 -1
  398. package/dist/database/sqlite.bun.js +1 -1
  399. package/dist/database/sqlite.js +1 -1
  400. package/dist/database/sqlite.node.js +1 -1
  401. package/dist/database/sqlite.workerd.js +1 -1
  402. package/dist/database/v1-migration.bun.js +79 -79
  403. package/dist/database/v1-migration.js +1 -1
  404. package/dist/effect/app-node-builder.js +372 -371
  405. package/dist/effect/app-node-platform.js +2 -2
  406. package/dist/effect/keyed-mutex.js +3 -3
  407. package/dist/effect/websocket-constructor.js +1 -1
  408. package/dist/environment/driver.js +1 -1
  409. package/dist/environment/environment.js +93 -93
  410. package/dist/environment/exec-defaults.js +2 -2
  411. package/dist/environment/files.js +1 -1
  412. package/dist/environment/index.js +95 -95
  413. package/dist/environment/local.js +2 -2
  414. package/dist/environment/memory.js +2 -2
  415. package/dist/environment/unavailable.js +1 -1
  416. package/dist/event/sql.js +1 -1
  417. package/dist/event-logger.js +72 -72
  418. package/dist/file-access.js +100 -100
  419. package/dist/file-mutation.js +94 -94
  420. package/dist/file-retention.js +1 -1
  421. package/dist/filesystem/fff.bun.js +2 -2
  422. package/dist/filesystem/fff.js +1 -1
  423. package/dist/filesystem/fff.node.js +2 -2
  424. package/dist/filesystem/fff.workerd.js +2 -2
  425. package/dist/filesystem/ignore.js +1 -1
  426. package/dist/filesystem/location-watcher-policy.js +2 -2
  427. package/dist/filesystem/location-watcher.js +222 -222
  428. package/dist/filesystem/protected.js +1 -1
  429. package/dist/filesystem/search.js +103 -103
  430. package/dist/filesystem/watcher-binding.js +3 -3
  431. package/dist/filesystem/watcher.js +13 -13
  432. package/dist/filesystem.js +106 -106
  433. package/dist/form.js +80 -80
  434. package/dist/formatter/builtins.js +4 -4
  435. package/dist/formatter.js +83 -83
  436. package/dist/generate.js +101 -101
  437. package/dist/git.js +10 -10
  438. package/dist/github-copilot/chat/convert-to-openai-compatible-chat-messages.js +1 -1
  439. package/dist/github-copilot/chat/get-response-metadata.js +1 -1
  440. package/dist/github-copilot/chat/map-openai-compatible-finish-reason.js +1 -1
  441. package/dist/github-copilot/chat/openai-compatible-chat-language-model.js +7 -7
  442. package/dist/github-copilot/chat/openai-compatible-chat-options.js +1 -1
  443. package/dist/github-copilot/chat/openai-compatible-prepare-tools.js +1 -1
  444. package/dist/github-copilot/copilot-provider.js +17 -17
  445. package/dist/github-copilot/models.js +99 -99
  446. package/dist/github-copilot/openai-compatible-error.js +1 -1
  447. package/dist/github-copilot/responses/convert-to-openai-responses-input.js +1 -1
  448. package/dist/github-copilot/responses/map-openai-responses-finish-reason.js +1 -1
  449. package/dist/github-copilot/responses/openai-error.js +1 -1
  450. package/dist/github-copilot/responses/openai-responses-language-model.js +10 -10
  451. package/dist/github-copilot/responses/openai-responses-prepare-tools.js +6 -6
  452. package/dist/github-copilot/responses/tool/code-interpreter.js +1 -1
  453. package/dist/github-copilot/responses/tool/file-search.js +1 -1
  454. package/dist/github-copilot/responses/tool/image-generation.js +1 -1
  455. package/dist/github-copilot/responses/tool/web-search-preview.js +1 -1
  456. package/dist/github-copilot/responses/tool/web-search.js +1 -1
  457. package/dist/id/id.js +1 -1
  458. package/dist/image/photon.js +2 -2
  459. package/dist/image.js +6 -6
  460. package/dist/instance/service.js +5 -5
  461. package/dist/instance.js +363 -362
  462. package/dist/instruction-discovery.js +85 -85
  463. package/dist/instructions/builtins.js +87 -87
  464. package/dist/instructions/index.js +3 -3
  465. package/dist/integration/connection.js +5 -3
  466. package/dist/integration.js +83 -82
  467. package/dist/job.js +79 -79
  468. package/dist/kv/sql.js +2 -2
  469. package/dist/kv.js +73 -73
  470. package/dist/location-activity.js +134 -134
  471. package/dist/location-lifecycle.js +107 -107
  472. package/dist/location-service-map.js +86 -86
  473. package/dist/location-services.js +360 -359
  474. package/dist/location.js +83 -83
  475. package/dist/managed-policy.js +5 -5
  476. package/dist/mcp/client.js +91 -91
  477. package/dist/mcp/index.js +109 -108
  478. package/dist/mcp/instructions.js +129 -128
  479. package/dist/mcp/oauth.js +78 -78
  480. package/dist/mcp/stdio.js +90 -90
  481. package/dist/mime.js +1 -1
  482. package/dist/modal/models.js +99 -99
  483. package/dist/model-resolver.js +98 -98
  484. package/dist/model.js +98 -98
  485. package/dist/models-dev.js +107 -107
  486. package/dist/oauth/page.js +1 -1
  487. package/dist/permission/saved.js +82 -82
  488. package/dist/permission/sql.js +5 -5
  489. package/dist/permission.js +115 -115
  490. package/dist/persistent-pty/binary.bun.js +1 -1
  491. package/dist/persistent-pty/daemon.js +1 -1
  492. package/dist/persistent-pty/index.js +88 -88
  493. package/dist/persistent-pty/pty-binding.js +1 -1
  494. package/dist/persistent-pty.js +75 -75
  495. package/dist/plugin/agent.js +102 -102
  496. package/dist/plugin/command.js +100 -99
  497. package/dist/plugin/hooks.js +5 -5
  498. package/dist/plugin/host.js +219 -219
  499. package/dist/plugin/identity.js +3 -3
  500. package/dist/plugin/instance.js +5 -5
  501. package/dist/plugin/internal.js +335 -334
  502. package/dist/plugin/mcp-codemode-defaults.js +3 -3
  503. package/dist/plugin/models-dev.js +96 -96
  504. package/dist/plugin/module.js +7 -7
  505. package/dist/plugin/optimize.js +2 -2
  506. package/dist/plugin/plan.js +102 -102
  507. package/dist/plugin/promise.js +1 -1
  508. package/dist/plugin/provider/amazon-bedrock.js +90 -90
  509. package/dist/plugin/provider/azure.js +122 -122
  510. package/dist/plugin/provider/cerebras.js +1 -1
  511. package/dist/plugin/provider/chatgpt.js +104 -0
  512. package/dist/plugin/provider/cloudflare-ai-gateway.js +120 -120
  513. package/dist/plugin/provider/cloudflare-workers-ai.js +121 -121
  514. package/dist/plugin/provider/cohere.js +2 -2
  515. package/dist/plugin/provider/configured.js +119 -119
  516. package/dist/plugin/provider/digitalocean.js +93 -93
  517. package/dist/plugin/provider/dynamic.js +2 -2
  518. package/dist/plugin/provider/factory.js +1 -1
  519. package/dist/plugin/provider/gateway.js +2 -2
  520. package/dist/plugin/provider/github-copilot.js +95 -95
  521. package/dist/plugin/provider/gitlab.js +93 -93
  522. package/dist/plugin/provider/google-vertex.js +90 -90
  523. package/dist/plugin/provider/kilo.js +1 -1
  524. package/dist/plugin/provider/llmgateway.js +78 -77
  525. package/dist/plugin/provider/lmstudio.js +122 -122
  526. package/dist/plugin/provider/modal.js +92 -92
  527. package/dist/plugin/provider/nvidia.js +1 -1
  528. package/dist/plugin/provider/ollama.js +122 -122
  529. package/dist/plugin/provider/openai.js +93 -93
  530. package/dist/plugin/provider/opencode.js +95 -95
  531. package/dist/plugin/provider/openrouter.js +91 -91
  532. package/dist/plugin/provider/perplexity.js +2 -2
  533. package/dist/plugin/provider/poe.js +79 -78
  534. package/dist/plugin/provider/prompt-cache-key.js +90 -90
  535. package/dist/plugin/provider/sap-ai-core.js +91 -91
  536. package/dist/plugin/provider/sdk-factory.js +1 -1
  537. package/dist/plugin/provider/snowflake-cortex.js +122 -122
  538. package/dist/plugin/provider/venice.js +2 -2
  539. package/dist/plugin/provider/vercel.js +90 -90
  540. package/dist/plugin/provider/vllm.js +122 -122
  541. package/dist/plugin/provider/xai.js +91 -91
  542. package/dist/plugin/provider/zenmux.js +1 -1
  543. package/dist/plugin/provider.js +163 -162
  544. package/dist/plugin/sdk.js +74 -74
  545. package/dist/plugin/service.js +3 -3
  546. package/dist/plugin/skill.js +137 -137
  547. package/dist/plugin/source-directory.js +1 -1
  548. package/dist/plugin/supervisor.js +350 -349
  549. package/dist/plugin/tool-input-repair.js +4 -4
  550. package/dist/plugin/update.js +6 -6
  551. package/dist/plugin/vcs/git.js +86 -86
  552. package/dist/plugin/vcs/hg.js +86 -86
  553. package/dist/plugin/verbosity.js +93 -93
  554. package/dist/plugin/warming.js +121 -121
  555. package/dist/plugin/websearch/exa.js +3 -3
  556. package/dist/plugin/websearch/firecrawl.js +4 -4
  557. package/dist/plugin/websearch/index.js +9 -9
  558. package/dist/plugin/websearch/mcp.js +2 -2
  559. package/dist/plugin/websearch/parallel.js +8 -8
  560. package/dist/plugin/websearch/tavily.js +6 -6
  561. package/dist/plugin/websearch/tinyfish.js +8 -8
  562. package/dist/plugin.js +230 -230
  563. package/dist/project/schema.js +2 -2
  564. package/dist/project/sql.js +4 -4
  565. package/dist/project.js +82 -82
  566. package/dist/provider.js +97 -97
  567. package/dist/pty/protocol.js +1 -1
  568. package/dist/pty/ticket.js +1 -1
  569. package/dist/pty.js +99 -99
  570. package/dist/reference/instructions.js +89 -89
  571. package/dist/reference.js +91 -91
  572. package/dist/repository-cache.js +81 -81
  573. package/dist/repository.js +1 -1
  574. package/dist/ripgrep/binary.js +2 -2
  575. package/dist/ripgrep.js +97 -97
  576. package/dist/rpc.js +86 -86
  577. package/dist/schema.js +1 -1
  578. package/dist/session/affinity.js +1 -1
  579. package/dist/session/command.js +74 -74
  580. package/dist/session/compaction.js +133 -133
  581. package/dist/session/context.js +153 -153
  582. package/dist/session/diff.js +88 -88
  583. package/dist/session/environment.js +5 -5
  584. package/dist/session/error.js +7 -7
  585. package/dist/session/event.js +1 -1
  586. package/dist/session/execution/restart.js +224 -224
  587. package/dist/session/execution.js +128 -128
  588. package/dist/session/generate.js +152 -152
  589. package/dist/session/history.js +15 -15
  590. package/dist/session/inbox.js +90 -90
  591. package/dist/session/info.js +3 -3
  592. package/dist/session/instruction-entry.js +77 -77
  593. package/dist/session/instruction-state.js +8 -8
  594. package/dist/session/instructions.js +93 -93
  595. package/dist/session/message-updater.js +2 -2
  596. package/dist/session/message.js +1 -1
  597. package/dist/session/model-request.js +120 -120
  598. package/dist/session/model-transport.js +9 -9
  599. package/dist/session/move.js +126 -126
  600. package/dist/session/projector.js +84 -84
  601. package/dist/session/prompt.js +105 -105
  602. package/dist/session/provider-context.js +3 -3
  603. package/dist/session/revert.js +90 -90
  604. package/dist/session/run-coordinator.js +3 -3
  605. package/dist/session/runner/index.js +3 -3
  606. package/dist/session/runner/llm.js +230 -230
  607. package/dist/session/runner/max-steps.js +1 -1
  608. package/dist/session/runner/model.js +98 -98
  609. package/dist/session/runner/publish-llm-event.js +3 -3
  610. package/dist/session/runner/retry.js +4 -4
  611. package/dist/session/runner/step.js +124 -124
  612. package/dist/session/runner/to-llm-message.js +2 -2
  613. package/dist/session/schema.js +5 -5
  614. package/dist/session/session.js +170 -170
  615. package/dist/session/shell.js +138 -138
  616. package/dist/session/skill.js +103 -103
  617. package/dist/session/sql.js +5 -5
  618. package/dist/session/stats.js +75 -75
  619. package/dist/session/store.js +87 -87
  620. package/dist/session/subagent-completion.js +1 -1
  621. package/dist/session/subagent-job.js +211 -211
  622. package/dist/session/system-prompt.js +1 -1
  623. package/dist/session/title.js +151 -151
  624. package/dist/session/to-session-error.js +111 -111
  625. package/dist/session/transfer.js +220 -220
  626. package/dist/session/usage.js +1 -1
  627. package/dist/session.js +221 -221
  628. package/dist/shell/parse.js +6 -6
  629. package/dist/shell/result.js +1 -1
  630. package/dist/shell/scan.js +1 -1
  631. package/dist/shell/select.js +11 -11
  632. package/dist/shell.js +140 -140
  633. package/dist/skill/discovery.js +6 -6
  634. package/dist/skill/instructions.js +107 -107
  635. package/dist/skill.js +108 -108
  636. package/dist/snapshot.js +93 -93
  637. package/dist/state.js +1 -1
  638. package/dist/tool/html-markdown.js +1 -1
  639. package/dist/tool/http-body.js +1 -1
  640. package/dist/tool/mcp.js +126 -125
  641. package/dist/tool/plugin/edit.js +120 -120
  642. package/dist/tool/plugin/file-diff.js +1 -1
  643. package/dist/tool/plugin/glob.js +124 -124
  644. package/dist/tool/plugin/grep.js +122 -122
  645. package/dist/tool/plugin/mcp-resource.js +117 -116
  646. package/dist/tool/plugin/opencode.js +3 -3
  647. package/dist/tool/plugin/patch.js +122 -122
  648. package/dist/tool/plugin/question.js +101 -101
  649. package/dist/tool/plugin/read.js +125 -125
  650. package/dist/tool/plugin/shell.js +216 -216
  651. package/dist/tool/plugin/skill.js +111 -111
  652. package/dist/tool/plugin/subagent.js +210 -210
  653. package/dist/tool/plugin/webfetch.js +110 -110
  654. package/dist/tool/plugin/websearch.js +112 -112
  655. package/dist/tool/plugin/write.js +122 -122
  656. package/dist/tool/read-filesystem.js +96 -96
  657. package/dist/tool/runtime.js +1 -1
  658. package/dist/tool-output.js +8 -8
  659. package/dist/tool.js +16 -16
  660. package/dist/types/credential.d.ts +6 -1
  661. package/dist/types/integration/connection.d.ts +42 -0
  662. package/dist/types/integration.d.ts +24 -0
  663. package/dist/types/plugin/provider/chatgpt.d.ts +33 -0
  664. package/dist/types/plugin/provider/opencode.d.ts +1 -1
  665. package/dist/types/session/error.d.ts +5 -0
  666. package/dist/types/session/history.d.ts +48 -0
  667. package/dist/types/session/transfer.d.ts +30 -0
  668. package/dist/util/error-summary.js +1 -1
  669. package/dist/util/error.js +1 -1
  670. package/dist/util/git-executable.js +2 -2
  671. package/dist/util/iife.js +1 -1
  672. package/dist/util/lazy.js +1 -1
  673. package/dist/util/slug.js +1 -1
  674. package/dist/util/token.js +1 -1
  675. package/dist/util/which.js +1 -1
  676. package/dist/util/wildcard.js +1 -1
  677. package/dist/v1/config/agent.js +7 -7
  678. package/dist/v1/config/attachment.js +4 -4
  679. package/dist/v1/config/command.js +3 -3
  680. package/dist/v1/config/config.js +16 -16
  681. package/dist/v1/config/error.js +4 -4
  682. package/dist/v1/config/formatter.js +3 -3
  683. package/dist/v1/config/layout.js +1 -1
  684. package/dist/v1/config/lsp.js +3 -3
  685. package/dist/v1/config/mcp.js +4 -4
  686. package/dist/v1/config/migrate.js +92 -92
  687. package/dist/v1/config/permission.js +7 -7
  688. package/dist/v1/config/plugin.js +1 -1
  689. package/dist/v1/config/provider-options.js +1 -1
  690. package/dist/v1/config/provider.js +4 -4
  691. package/dist/v1/config/server.js +2 -2
  692. package/dist/v1/config/skills.js +3 -3
  693. package/dist/v1/permission.js +1 -1
  694. package/dist/variant.js +91 -91
  695. package/dist/vcs/patch.js +1 -1
  696. package/dist/vcs.js +89 -89
  697. package/dist/websearch.js +82 -82
  698. package/dist/wellknown/plugin.js +76 -76
  699. package/dist/wellknown.js +79 -79
  700. package/dist/workspace/driver.js +7 -7
  701. package/dist/workspace/sql.js +1 -1
  702. package/dist/workspace.js +80 -80
  703. package/dist/worktree/directory.js +2 -2
  704. package/dist/worktree/git.js +10 -10
  705. package/dist/worktree/sql.js +5 -5
  706. package/dist/worktree/strategies.js +89 -89
  707. package/dist/worktree.js +96 -96
  708. package/package.json +9 -8
  709. package/dist/chunks/ripgrep-1x11rq2a.js +0 -18
  710. package/dist/chunks/ripgrep-by268fe6.js +0 -252
  711. /package/dist/chunks/{ripgrep-0qkdqm5v.js → credential-0qkdqm5v.js} +0 -0
  712. /package/dist/chunks/{ripgrep-0zkw76rk.js → credential-0zkw76rk.js} +0 -0
  713. /package/dist/chunks/{ripgrep-17cy0kzp.js → credential-17cy0kzp.js} +0 -0
  714. /package/dist/chunks/{ripgrep-1cnp2v09.js → credential-1cnp2v09.js} +0 -0
  715. /package/dist/chunks/{ripgrep-1kg9ymc8.js → credential-1kg9ymc8.js} +0 -0
  716. /package/dist/chunks/{ripgrep-24dcb14g.js → credential-24dcb14g.js} +0 -0
  717. /package/dist/chunks/{ripgrep-2710q6r3.js → credential-2710q6r3.js} +0 -0
  718. /package/dist/chunks/{ripgrep-2axfhc9x.js → credential-2axfhc9x.js} +0 -0
  719. /package/dist/chunks/{ripgrep-2c3vjs8z.js → credential-2c3vjs8z.js} +0 -0
  720. /package/dist/chunks/{ripgrep-34c7v6d4.js → credential-34c7v6d4.js} +0 -0
  721. /package/dist/chunks/{ripgrep-359p4xyc.js → credential-359p4xyc.js} +0 -0
  722. /package/dist/chunks/{ripgrep-3asan66x.js → credential-3asan66x.js} +0 -0
  723. /package/dist/chunks/{ripgrep-3v8g72cx.js → credential-3v8g72cx.js} +0 -0
  724. /package/dist/chunks/{ripgrep-3w5fmr99.js → credential-3w5fmr99.js} +0 -0
  725. /package/dist/chunks/{ripgrep-3wcehsnq.js → credential-3wcehsnq.js} +0 -0
  726. /package/dist/chunks/{ripgrep-43n2bw4t.js → credential-43n2bw4t.js} +0 -0
  727. /package/dist/chunks/{ripgrep-4knz6hnm.js → credential-4knz6hnm.js} +0 -0
  728. /package/dist/chunks/{ripgrep-4vcrnpx2.js → credential-4vcrnpx2.js} +0 -0
  729. /package/dist/chunks/{ripgrep-4y7fprxs.js → credential-4y7fprxs.js} +0 -0
  730. /package/dist/chunks/{ripgrep-53557ph1.js → credential-53557ph1.js} +0 -0
  731. /package/dist/chunks/{ripgrep-550bvhaj.js → credential-550bvhaj.js} +0 -0
  732. /package/dist/chunks/{ripgrep-6prwharc.js → credential-6prwharc.js} +0 -0
  733. /package/dist/chunks/{ripgrep-7akdwqpd.js → credential-7akdwqpd.js} +0 -0
  734. /package/dist/chunks/{ripgrep-7m9af43g.js → credential-7m9af43g.js} +0 -0
  735. /package/dist/chunks/{ripgrep-822emrt2.js → credential-822emrt2.js} +0 -0
  736. /package/dist/chunks/{ripgrep-88xbtdfr.js → credential-88xbtdfr.js} +0 -0
  737. /package/dist/chunks/{ripgrep-8n3pysct.js → credential-8n3pysct.js} +0 -0
  738. /package/dist/chunks/{ripgrep-8wj87zfr.js → credential-8wj87zfr.js} +0 -0
  739. /package/dist/chunks/{ripgrep-922hggd3.js → credential-922hggd3.js} +0 -0
  740. /package/dist/chunks/{ripgrep-9a4afbnw.js → credential-9a4afbnw.js} +0 -0
  741. /package/dist/chunks/{ripgrep-9rqn6x4v.js → credential-9rqn6x4v.js} +0 -0
  742. /package/dist/chunks/{ripgrep-a6k6eb26.js → credential-a6k6eb26.js} +0 -0
  743. /package/dist/chunks/{ripgrep-af5trqkr.js → credential-af5trqkr.js} +0 -0
  744. /package/dist/chunks/{ripgrep-afrmfg78.js → credential-afrmfg78.js} +0 -0
  745. /package/dist/chunks/{ripgrep-aqzs7mqg.js → credential-aqzs7mqg.js} +0 -0
  746. /package/dist/chunks/{ripgrep-atq7p7m5.js → credential-atq7p7m5.js} +0 -0
  747. /package/dist/chunks/{ripgrep-bkyjaxrp.js → credential-bkyjaxrp.js} +0 -0
  748. /package/dist/chunks/{ripgrep-bmr6ed5q.js → credential-bmr6ed5q.js} +0 -0
  749. /package/dist/chunks/{ripgrep-cf4snx6d.js → credential-cf4snx6d.js} +0 -0
  750. /package/dist/chunks/{ripgrep-cvy3z8tj.js → credential-cvy3z8tj.js} +0 -0
  751. /package/dist/chunks/{ripgrep-d9fn303g.js → credential-d9fn303g.js} +0 -0
  752. /package/dist/chunks/{ripgrep-d9jj8t3e.js → credential-d9jj8t3e.js} +0 -0
  753. /package/dist/chunks/{ripgrep-dajrwvna.js → credential-dajrwvna.js} +0 -0
  754. /package/dist/chunks/{ripgrep-dap0rakb.js → credential-dap0rakb.js} +0 -0
  755. /package/dist/chunks/{ripgrep-df08tz66.js → credential-df08tz66.js} +0 -0
  756. /package/dist/chunks/{ripgrep-dy18nga0.js → credential-dy18nga0.js} +0 -0
  757. /package/dist/chunks/{ripgrep-e5kj55wp.js → credential-e5kj55wp.js} +0 -0
  758. /package/dist/chunks/{ripgrep-e73j6tqm.js → credential-e73j6tqm.js} +0 -0
  759. /package/dist/chunks/{ripgrep-ec1grn59.js → credential-ec1grn59.js} +0 -0
  760. /package/dist/chunks/{ripgrep-eh3zwz77.js → credential-eh3zwz77.js} +0 -0
  761. /package/dist/chunks/{ripgrep-emrn6kk6.js → credential-emrn6kk6.js} +0 -0
  762. /package/dist/chunks/{ripgrep-f0mxakyp.js → credential-f0mxakyp.js} +0 -0
  763. /package/dist/chunks/{ripgrep-f6n9ztr4.js → credential-f6n9ztr4.js} +0 -0
  764. /package/dist/chunks/{ripgrep-faypxj3z.js → credential-faypxj3z.js} +0 -0
  765. /package/dist/chunks/{ripgrep-fd410y7t.js → credential-fd410y7t.js} +0 -0
  766. /package/dist/chunks/{ripgrep-fxgpk5d8.js → credential-fxgpk5d8.js} +0 -0
  767. /package/dist/chunks/{ripgrep-g4wezp1m.js → credential-g4wezp1m.js} +0 -0
  768. /package/dist/chunks/{ripgrep-g86h250q.js → credential-g86h250q.js} +0 -0
  769. /package/dist/chunks/{ripgrep-gebd4c9n.js → credential-gebd4c9n.js} +0 -0
  770. /package/dist/chunks/{ripgrep-gftt206x.js → credential-gftt206x.js} +0 -0
  771. /package/dist/chunks/{ripgrep-hjbc5kem.js → credential-hjbc5kem.js} +0 -0
  772. /package/dist/chunks/{ripgrep-hk9envan.js → credential-hk9envan.js} +0 -0
  773. /package/dist/chunks/{ripgrep-j2ntwpah.js → credential-j2ntwpah.js} +0 -0
  774. /package/dist/chunks/{ripgrep-j5zkgpj8.js → credential-j5zkgpj8.js} +0 -0
  775. /package/dist/chunks/{ripgrep-jjkms2e6.js → credential-jjkms2e6.js} +0 -0
  776. /package/dist/chunks/{ripgrep-jr7sbwjy.js → credential-jr7sbwjy.js} +0 -0
  777. /package/dist/chunks/{ripgrep-jwfs4k6c.js → credential-jwfs4k6c.js} +0 -0
  778. /package/dist/chunks/{ripgrep-jzg6c2d5.js → credential-jzg6c2d5.js} +0 -0
  779. /package/dist/chunks/{ripgrep-mp448xyj.js → credential-mp448xyj.js} +0 -0
  780. /package/dist/chunks/{ripgrep-msx8hqn2.js → credential-msx8hqn2.js} +0 -0
  781. /package/dist/chunks/{ripgrep-n05xt0ee.js → credential-n05xt0ee.js} +0 -0
  782. /package/dist/chunks/{ripgrep-n3j8tn72.js → credential-n3j8tn72.js} +0 -0
  783. /package/dist/chunks/{ripgrep-njntx4h6.js → credential-njntx4h6.js} +0 -0
  784. /package/dist/chunks/{ripgrep-q3sfg36h.js → credential-q3sfg36h.js} +0 -0
  785. /package/dist/chunks/{ripgrep-q74kybfr.js → credential-q74kybfr.js} +0 -0
  786. /package/dist/chunks/{ripgrep-qaymkmh1.js → credential-qaymkmh1.js} +0 -0
  787. /package/dist/chunks/{ripgrep-qb87gjwd.js → credential-qb87gjwd.js} +0 -0
  788. /package/dist/chunks/{ripgrep-qfa1cgps.js → credential-qfa1cgps.js} +0 -0
  789. /package/dist/chunks/{ripgrep-qg3g05ea.js → credential-qg3g05ea.js} +0 -0
  790. /package/dist/chunks/{ripgrep-qrg20bc0.js → credential-qrg20bc0.js} +0 -0
  791. /package/dist/chunks/{ripgrep-rcb2kzg1.js → credential-rcb2kzg1.js} +0 -0
  792. /package/dist/chunks/{ripgrep-sdp7kfr6.js → credential-sdp7kfr6.js} +0 -0
  793. /package/dist/chunks/{ripgrep-sk3qaz4a.js → credential-sk3qaz4a.js} +0 -0
  794. /package/dist/chunks/{ripgrep-ssg3fenm.js → credential-ssg3fenm.js} +0 -0
  795. /package/dist/chunks/{ripgrep-w803qqfp.js → credential-w803qqfp.js} +0 -0
  796. /package/dist/chunks/{ripgrep-wc3fc9cn.js → credential-wc3fc9cn.js} +0 -0
  797. /package/dist/chunks/{ripgrep-wer8tq1h.js → credential-wer8tq1h.js} +0 -0
  798. /package/dist/chunks/{ripgrep-wtztk69x.js → credential-wtztk69x.js} +0 -0
  799. /package/dist/chunks/{ripgrep-x0ckcb58.js → credential-x0ckcb58.js} +0 -0
  800. /package/dist/chunks/{ripgrep-x61499pn.js → credential-x61499pn.js} +0 -0
  801. /package/dist/chunks/{ripgrep-y44na4kk.js → credential-y44na4kk.js} +0 -0
  802. /package/dist/chunks/{ripgrep-y8cydn3q.js → credential-y8cydn3q.js} +0 -0
  803. /package/dist/chunks/{ripgrep-y8f7s663.js → credential-y8f7s663.js} +0 -0
  804. /package/dist/chunks/{ripgrep-ygaqb7jw.js → credential-ygaqb7jw.js} +0 -0
  805. /package/dist/chunks/{ripgrep-ym463w8f.js → credential-ym463w8f.js} +0 -0
  806. /package/dist/chunks/{ripgrep-z9919s4g.js → credential-z9919s4g.js} +0 -0
@@ -1,36 +1,37 @@
1
1
  import {
2
2
  useragent2
3
- } from "./ripgrep-2vjymgz4.js";
3
+ } from "./credential-z1qbwb2j.js";
4
4
  import {
5
- Service83
6
- } from "./ripgrep-jyx4k4a6.js";
5
+ Service82
6
+ } from "./credential-bnqp8nta.js";
7
7
  import {
8
8
  OAuth3,
9
9
  Event19
10
- } from "./ripgrep-18rbsmj0.js";
11
- import {
12
- ID12,
13
- MethodID2
14
- } from "./ripgrep-keqxcydf.js";
10
+ } from "./credential-nbajkkwv.js";
15
11
  import {
16
12
  key2
17
- } from "./ripgrep-4dgbcxzg.js";
13
+ } from "./credential-dnxkq42g.js";
14
+ import {
15
+ ID14,
16
+ MethodID2,
17
+ AuthorizationError2
18
+ } from "./credential-wp4r7acg.js";
18
19
  import {
19
- Service62
20
- } from "./ripgrep-mgq5nv3e.js";
20
+ Service74
21
+ } from "./credential-rkmmz4cx.js";
21
22
  import {
22
- ID11,
23
+ ID13,
23
24
  mergeOverlay2,
24
25
  mergeHeaders2
25
- } from "./ripgrep-fses9meq.js";
26
+ } from "./credential-sknxvkc8.js";
26
27
  import {
27
- ID8,
28
+ ID6,
28
29
  Input14,
29
30
  Response2
30
- } from "./ripgrep-s8vezypb.js";
31
+ } from "./credential-r9pqfw3c.js";
31
32
 
32
33
  // src/plugin/provider/opencode.ts
33
- import { Duration, Effect, Equal, Schema, Semaphore, Stream } from "effect";
34
+ import { Duration, Effect, Equal, Option, Schema, Scope, Semaphore, Stream } from "effect";
34
35
  import { define } from "@opencode/plugin/effect/plugin";
35
36
  import { FetchHttpClient, HttpClient, HttpClientRequest, HttpClientResponse } from "effect/unstable/http";
36
37
  import { ConfigPolicy } from "@opencode/schema/config/policy";
@@ -43,7 +44,7 @@ var methodID = MethodID2.make("device");
43
44
  var RemoteResponse = Schema.Struct({
44
45
  providers: Schema.Record(Schema.String, ConfigProvider.Info),
45
46
  websearch: Schema.Struct({
46
- providerID: ID8
47
+ providerID: ID6
47
48
  }).pipe(Schema.optional),
48
49
  mcp: Schema.Struct({
49
50
  servers: Schema.Record(Schema.String, Schema.Struct({ ...Mcp.RemoteConfig.fields, auth: Schema.Literal("console").pipe(Schema.optional) }))
@@ -69,9 +70,33 @@ var TokenPending = Schema.Struct({ error: Schema.String });
69
70
  var DeviceToken = Schema.Union([Token, TokenPending]);
70
71
  var User = Schema.Struct({ id: Schema.String, email: Schema.String });
71
72
  var Org = Schema.Struct({ id: Schema.String, name: Schema.String });
73
+ var SsoRequired = Schema.Struct({
74
+ _tag: Schema.Literal("SsoRequired"),
75
+ orgId: Schema.String,
76
+ connectionId: Schema.String
77
+ });
78
+ var InvalidGrant = Schema.Struct({ error: Schema.Literal("invalid_grant") });
79
+ var Unauthorized = Schema.Struct({ _tag: Schema.Literal("Unauthorized") });
80
+ var signedOutMessage = "Reconnect OpenCode Console to continue";
81
+ var ssoMessage = (organization) => `Sign in with SSO again to use ${organization ?? "your OpenCode Console organization"}`;
82
+
83
+ class SsoRequiredError extends Schema.TaggedError()("OpencodeConsole.SsoRequired", {
84
+ organization: Schema.optional(Schema.String),
85
+ url: Schema.String
86
+ }) {
87
+ get message() {
88
+ return `${ssoMessage(this.organization)}.`;
89
+ }
90
+ }
91
+
92
+ class SignedOutError extends Schema.TaggedError()("OpencodeConsole.SignedOut", {}) {
93
+ get message() {
94
+ return `${signedOutMessage}.`;
95
+ }
96
+ }
72
97
  function oauth(http) {
73
98
  return {
74
- integrationID: ID12.make("opencode"),
99
+ integrationID: ID14.make("opencode"),
75
100
  method: {
76
101
  id: methodID,
77
102
  type: "oauth",
@@ -106,7 +131,17 @@ function oauth(http) {
106
131
  };
107
132
  }),
108
133
  refresh: (credential) => Effect.gen(function* () {
109
- const token = yield* post(http, `${serverUrl(credential)}/auth/device/token`, { grant_type: "refresh_token", refresh_token: credential.refresh, client_id: clientID }, Token);
134
+ const response = yield* send(http, `${serverUrl(credential)}/auth/device/token`, {
135
+ grant_type: "refresh_token",
136
+ refresh_token: credential.refresh,
137
+ client_id: clientID
138
+ });
139
+ if (response.status === 400) {
140
+ const body = yield* HttpClientResponse.schemaBodyJson(InvalidGrant)(response).pipe(Effect.option);
141
+ if (Option.isSome(body))
142
+ return yield* new SignedOutError;
143
+ }
144
+ const token = yield* HttpClientResponse.filterStatusOk(response).pipe(Effect.flatMap(HttpClientResponse.schemaBodyJson(Token)));
110
145
  return {
111
146
  ...credential,
112
147
  access: token.access_token,
@@ -125,26 +160,41 @@ function oauth(http) {
125
160
  var OpencodePlugin2 = define({
126
161
  id: "opencode.provider.opencode",
127
162
  effect: Effect.fn(function* (ctx) {
128
- const bus = yield* Service83;
163
+ const bus = yield* Service82;
129
164
  const client = yield* HttpClient.HttpClient;
130
165
  const http = HttpClient.mapRequest(client, HttpClientRequest.setHeader("User-Agent", useragent2(ctx.app)));
131
- const managed = yield* Service62;
166
+ const managed = yield* Service74;
167
+ const scope = yield* Scope.Scope;
132
168
  const loading = Semaphore.makeUnsafe(1);
133
169
  let snapshot = { config: undefined, connection: undefined, organization: undefined, mcp: undefined };
170
+ let reported;
171
+ let explainers = [];
134
172
  const load = Effect.fn("OpencodePlugin.load")(function* () {
135
173
  const connection = yield* ctx.integration.connection.active("opencode");
136
- if (!connection)
174
+ if (!connection) {
175
+ reported = undefined;
137
176
  return { config: undefined, connection, organization: undefined, mcp: undefined };
177
+ }
178
+ const status = (status) => {
179
+ reported = status;
180
+ return ctx.integration.connection.status({ integrationID: "opencode", connection, status });
181
+ };
138
182
  return yield* ctx.integration.connection.resolve(connection).pipe(Effect.flatMap((credential) => {
139
183
  if (!credential)
140
184
  return Effect.succeed({ config: undefined, connection, organization: undefined, mcp: undefined });
141
185
  return fetchConfig(http, credential).pipe(Effect.map((config) => ({
142
186
  config,
143
187
  connection,
144
- organization: typeof credential.metadata?.orgName === "string" ? credential.metadata.orgName : undefined,
188
+ organization: organizationName(credential),
145
189
  mcp: config?.mcp && { servers: config.mcp.servers, headers: credentialHeaders(credential) }
146
190
  })));
147
- }), Effect.catch((cause) => Effect.logWarning("failed to load OpenCode provider config", { cause }).pipe(Effect.as(key2(connection) === key2(snapshot.connection) ? { config: snapshot.config, connection, organization: snapshot.organization, mcp: snapshot.mcp } : { config: undefined, connection, organization: undefined, mcp: undefined }))));
191
+ }), Effect.tap(() => status(undefined)), Effect.catch((cause) => Effect.gen(function* () {
192
+ const next = connectionStatus(cause);
193
+ if (next)
194
+ yield* status(next);
195
+ yield* Effect.logWarning("failed to load OpenCode provider config", { cause });
196
+ return key2(connection) === key2(snapshot.connection) ? { config: snapshot.config, connection, organization: snapshot.organization, mcp: snapshot.mcp } : { config: undefined, connection, organization: undefined, mcp: undefined };
197
+ })));
148
198
  });
149
199
  const publish = (next) => managed.set({ statements: next.config?.experimental?.policies ?? [], organization: next.organization });
150
200
  yield* ctx.integration.transform((editor) => {
@@ -162,7 +212,7 @@ var OpencodePlugin2 = define({
162
212
  providers.update(providerID, (provider) => {
163
213
  if (source && source.provider !== provider)
164
214
  Object.assign(provider, structuredClone(source.provider), { id: provider.id });
165
- provider.integrationID = ID12.make("opencode");
215
+ provider.integrationID = ID14.make("opencode");
166
216
  if (item.canonical !== undefined)
167
217
  provider.canonical = item.canonical;
168
218
  if (item.name !== undefined)
@@ -232,7 +282,7 @@ var OpencodePlugin2 = define({
232
282
  sourceConnection: snapshot.connection
233
283
  });
234
284
  }
235
- const item = providers.get(ID11.opencode);
285
+ const item = providers.get(ID13.opencode);
236
286
  if (!item)
237
287
  return;
238
288
  const hasKey = Boolean(process.env.OPENCODE_API_KEY || snapshot.connection || item.provider.settings?.apiKey);
@@ -244,7 +294,7 @@ var OpencodePlugin2 = define({
244
294
  });
245
295
  });
246
296
  yield* ctx.model.transform((models) => {
247
- const item = models.provider.get(ID11.opencode);
297
+ const item = models.provider.get(ID13.opencode);
248
298
  if (!item)
249
299
  return;
250
300
  const hasKey = Boolean(process.env.OPENCODE_API_KEY || snapshot.connection || item.provider.settings?.apiKey && item.provider.settings.apiKey !== "public");
@@ -308,23 +358,78 @@ var OpencodePlugin2 = define({
308
358
  const apply = Effect.fn("OpencodePlugin.apply")(function* (next) {
309
359
  snapshot = next;
310
360
  yield* publish(next);
361
+ yield* guard(next);
311
362
  yield* Effect.all([ctx.provider.reload(), ctx.websearch.reload(), ctx.mcp.reload()], {
312
363
  concurrency: 3,
313
364
  discard: true
314
365
  });
315
366
  });
316
367
  const refresh = () => loading.withPermit(load().pipe(Effect.andThen(apply)));
317
- yield* bus.subscribe(Event19.Switched).pipe(Stream.filter((event) => event.data.integrationID === ID12.make("opencode")), Stream.runForEach(refresh), Effect.forkScoped({ startImmediately: true }));
318
- yield* Effect.sleep(Duration.minutes(1)).pipe(Effect.andThen(loading.withPermit(load().pipe(Effect.flatMap((next) => Equal.equals(snapshot, next) ? Effect.void : apply(next))))), Effect.forever, Effect.forkScoped);
368
+ const check = () => loading.withPermit(load().pipe(Effect.flatMap((next) => Equal.equals(snapshot, next) ? Effect.void : apply(next))));
369
+ const explain = (event) => Effect.gen(function* () {
370
+ if (event.response.status !== 401 && event.response.status !== 403)
371
+ return;
372
+ yield* check();
373
+ const status = reported;
374
+ if (!status)
375
+ return;
376
+ event.response.body?.cancel();
377
+ event.response = Response.json({
378
+ error: {
379
+ type: "authentication_error",
380
+ message: `${status.message}.`
381
+ }
382
+ }, { status: event.response.status });
383
+ });
384
+ const guard = Effect.fn("OpencodePlugin.guard")(function* (next) {
385
+ yield* Effect.forEach(explainers, (registration) => registration.dispose, { discard: true });
386
+ explainers = yield* Effect.forEach(next.connection ? new Set([ID13.opencode, ...Object.keys(next.config?.providers ?? {})]) : [], (providerID) => ctx.session.hook("http.response", explain, { providerID }).pipe(Scope.provide(scope)));
387
+ });
388
+ yield* guard(snapshot);
389
+ yield* bus.subscribe(Event19.Switched).pipe(Stream.filter((event) => event.data.integrationID === ID14.make("opencode")), Stream.runForEach(refresh), Effect.forkScoped({ startImmediately: true }));
390
+ yield* Effect.sleep(Duration.minutes(1)).pipe(Effect.andThen(check()), Effect.forever, Effect.forkScoped);
319
391
  })
320
392
  });
321
393
  function fetchConfig(http, value) {
322
- return http.execute(HttpClientRequest.get(`${serverUrl(value)}/api/v2/config`).pipe(HttpClientRequest.acceptJson, HttpClientRequest.setHeaders(credentialHeaders(value)))).pipe(Effect.flatMap((response) => {
394
+ return http.execute(HttpClientRequest.get(`${serverUrl(value)}/api/v2/config`).pipe(HttpClientRequest.acceptJson, HttpClientRequest.setHeaders(credentialHeaders(value)))).pipe(Effect.flatMap((response) => Effect.gen(function* () {
323
395
  if (response.status === 404)
324
- return Effect.undefined;
325
- return HttpClientResponse.filterStatusOk(response).pipe(Effect.flatMap(HttpClientResponse.schemaBodyJson(RemoteResponse)));
396
+ return;
397
+ if (response.status === 401) {
398
+ const body = yield* HttpClientResponse.schemaBodyJson(Unauthorized)(response).pipe(Effect.option);
399
+ if (Option.isSome(body))
400
+ return yield* new SignedOutError;
401
+ }
402
+ if (response.status === 403) {
403
+ const body = yield* HttpClientResponse.schemaBodyJson(SsoRequired)(response).pipe(Effect.option);
404
+ if (Option.isSome(body))
405
+ return yield* new SsoRequiredError({
406
+ organization: organizationName(value),
407
+ url: yield* ssoUrl(serverUrl(value), body.value.connectionId)
408
+ });
409
+ }
410
+ return yield* HttpClientResponse.filterStatusOk(response).pipe(Effect.flatMap(HttpClientResponse.schemaBodyJson(RemoteResponse)));
411
+ })));
412
+ }
413
+ function ssoUrl(server, connectionID) {
414
+ return normalizeServer(server).pipe(Effect.map((base) => {
415
+ const redirectTo = `${new URL(base).pathname.replace(/\/+$/, "")}/`;
416
+ return `${base}/auth/sso/${encodeURIComponent(connectionID)}/start?redirectTo=${encodeURIComponent(redirectTo)}`;
326
417
  }));
327
418
  }
419
+ function connectionStatus(cause) {
420
+ if (cause instanceof SsoRequiredError)
421
+ return {
422
+ status: "needs_auth",
423
+ message: ssoMessage(cause.organization),
424
+ url: cause.url
425
+ };
426
+ if (cause instanceof SignedOutError || cause instanceof AuthorizationError2 && cause.cause instanceof SignedOutError)
427
+ return { status: "needs_auth", message: signedOutMessage };
428
+ return;
429
+ }
430
+ function organizationName(credential) {
431
+ return typeof credential.metadata?.orgName === "string" ? credential.metadata.orgName : undefined;
432
+ }
328
433
  function credentialHeaders(value) {
329
434
  const orgID = value.metadata?.orgID;
330
435
  return {
@@ -400,7 +505,10 @@ function get(http, url, token, schema) {
400
505
  return HttpClient.filterStatusOk(http).execute(HttpClientRequest.get(url).pipe(HttpClientRequest.acceptJson, HttpClientRequest.bearerToken(token))).pipe(Effect.flatMap(HttpClientResponse.schemaBodyJson(schema)));
401
506
  }
402
507
  function post(http, url, body, schema, statusOk = true) {
403
- return HttpClientRequest.post(url).pipe(HttpClientRequest.acceptJson, HttpClientRequest.schemaBodyJson(Schema.Record(Schema.String, Schema.Union([Schema.String, Schema.Boolean])))(body), Effect.flatMap((request) => http.execute(request)), Effect.flatMap((response) => statusOk ? HttpClientResponse.filterStatusOk(response) : Effect.succeed(response)), Effect.flatMap(HttpClientResponse.schemaBodyJson(schema)));
508
+ return send(http, url, body).pipe(Effect.flatMap((response) => statusOk ? HttpClientResponse.filterStatusOk(response) : Effect.succeed(response)), Effect.flatMap(HttpClientResponse.schemaBodyJson(schema)));
509
+ }
510
+ function send(http, url, body) {
511
+ return HttpClientRequest.post(url).pipe(HttpClientRequest.acceptJson, HttpClientRequest.schemaBodyJson(Schema.Record(Schema.String, Schema.Union([Schema.String, Schema.Boolean])))(body), Effect.flatMap((request) => http.execute(request)));
404
512
  }
405
513
 
406
514
  export { OpencodePlugin2 };
@@ -1,31 +1,31 @@
1
1
  import {
2
2
  SessionMessage2
3
- } from "./ripgrep-gftt206x.js";
3
+ } from "./credential-gftt206x.js";
4
4
  import {
5
5
  SessionSchema2
6
- } from "./ripgrep-w52wajpr.js";
6
+ } from "./credential-7w99qc9d.js";
7
7
  import {
8
8
  MessageDecodeError2
9
- } from "./ripgrep-e6q37ddf.js";
9
+ } from "./credential-32ymn5e1.js";
10
10
  import {
11
11
  InitializationBlocked2,
12
12
  read3
13
- } from "./ripgrep-t550f9t1.js";
13
+ } from "./credential-s8d7rejh.js";
14
14
  import {
15
15
  SessionMessageTable2
16
- } from "./ripgrep-bjtzbw4r.js";
16
+ } from "./credential-bjtzbw4r.js";
17
17
  import {
18
18
  initial2,
19
19
  preview3
20
- } from "./ripgrep-784hb5j4.js";
20
+ } from "./credential-mzywpf3p.js";
21
21
  import {
22
22
  compatible2,
23
23
  isCheckpoint2,
24
24
  validate2
25
- } from "./ripgrep-5dkn69vz.js";
25
+ } from "./credential-4j4tgtq5.js";
26
26
  import {
27
27
  __export
28
- } from "./ripgrep-9rqn6x4v.js";
28
+ } from "./credential-9rqn6x4v.js";
29
29
 
30
30
  // src/session/history.ts
31
31
  var exports_history = {};
@@ -35,7 +35,7 @@ __export(exports_history, {
35
35
  entriesForRunner: () => entriesForRunner2,
36
36
  firstUserMessage: () => firstUserMessage2,
37
37
  latestCompaction: () => latestCompaction2,
38
- load: () => load4,
38
+ load: () => load5,
39
39
  preview: () => preview2
40
40
  });
41
41
  import { and, asc, desc, eq, gte, or, sql } from "drizzle-orm";
@@ -56,7 +56,7 @@ var messageEntries = Effect.fnUntraced(function* (db, sessionID, boundary) {
56
56
  const native = entries.findLast((entry) => isCheckpoint2(entry.message));
57
57
  return entries.filter((entry) => !(entry.message.type === "system" && native && entry.seq < native.seq) && replayable(entry.message, boundary));
58
58
  });
59
- var load4 = Effect.fn("SessionHistory.load")(function* (db, sessionID, boundary) {
59
+ var load5 = Effect.fn("SessionHistory.load")(function* (db, sessionID, boundary) {
60
60
  return (yield* messageEntries(db, sessionID, boundary)).map((entry) => entry.message);
61
61
  });
62
62
  var entriesForRunner2 = Effect.fn("SessionHistory.entriesForRunner")(function* (db, sessionID, instructions, boundary) {
@@ -92,4 +92,4 @@ var firstUserMessage2 = Effect.fn("SessionHistory.firstUserMessage")(function* (
92
92
  return message?.type === "user" ? message : undefined;
93
93
  });
94
94
 
95
- export { latestCompaction2, decodeMessageRow2, load4, entriesForRunner2, preview2, firstUserMessage2, exports_history };
95
+ export { latestCompaction2, decodeMessageRow2, load5, entriesForRunner2, preview2, firstUserMessage2, exports_history };
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  which2
3
- } from "./ripgrep-qaymkmh1.js";
3
+ } from "./credential-qaymkmh1.js";
4
4
 
5
5
  // src/ripgrep/binary.ts
6
6
  import path from "path";
@@ -1,12 +1,12 @@
1
1
  import {
2
2
  migrations2
3
- } from "./ripgrep-hcxgq10m.js";
3
+ } from "./credential-kyh50zn5.js";
4
4
  import {
5
5
  schema_gen_default
6
- } from "./ripgrep-34c7v6d4.js";
6
+ } from "./credential-34c7v6d4.js";
7
7
  import {
8
8
  __export
9
- } from "./ripgrep-9rqn6x4v.js";
9
+ } from "./credential-9rqn6x4v.js";
10
10
 
11
11
  // src/database/migration.ts
12
12
  var exports_migration = {};
@@ -1,21 +1,21 @@
1
1
  import {
2
2
  convertToOpenAICompatibleChatMessages2
3
- } from "./ripgrep-fxgpk5d8.js";
3
+ } from "./credential-fxgpk5d8.js";
4
4
  import {
5
5
  getResponseMetadata2
6
- } from "./ripgrep-g4wezp1m.js";
6
+ } from "./credential-g4wezp1m.js";
7
7
  import {
8
8
  mapOpenAICompatibleFinishReason2
9
- } from "./ripgrep-x61499pn.js";
9
+ } from "./credential-x61499pn.js";
10
10
  import {
11
11
  openaiCompatibleProviderOptions2
12
- } from "./ripgrep-af5trqkr.js";
12
+ } from "./credential-af5trqkr.js";
13
13
  import {
14
14
  defaultOpenAICompatibleErrorStructure2
15
- } from "./ripgrep-afrmfg78.js";
15
+ } from "./credential-afrmfg78.js";
16
16
  import {
17
17
  prepareTools2
18
- } from "./ripgrep-x0ckcb58.js";
18
+ } from "./credential-x0ckcb58.js";
19
19
 
20
20
  // src/github-copilot/chat/openai-compatible-chat-language-model.ts
21
21
  import {
@@ -2,26 +2,26 @@ import {
2
2
  NonNegativeInt2,
3
3
  PositiveInt2,
4
4
  RelativePath2
5
- } from "./ripgrep-922hggd3.js";
5
+ } from "./credential-922hggd3.js";
6
6
  import {
7
- Service77,
8
- node79
9
- } from "./ripgrep-xyv2nnj9.js";
7
+ Service47,
8
+ node51
9
+ } from "./credential-eqpt8p1k.js";
10
10
  import {
11
11
  RipgrepBinary2
12
- } from "./ripgrep-8d7r5vzw.js";
12
+ } from "./credential-8d7r5vzw.js";
13
13
  import {
14
14
  __export
15
- } from "./ripgrep-9rqn6x4v.js";
15
+ } from "./credential-9rqn6x4v.js";
16
16
 
17
17
  // src/ripgrep.ts
18
18
  var exports_ripgrep = {};
19
19
  __export(exports_ripgrep, {
20
- Error: () => Error3,
20
+ Error: () => Error2,
21
21
  InvalidPatternError: () => InvalidPatternError2,
22
22
  Ripgrep: () => exports_ripgrep,
23
- Service: () => Service65,
24
- node: () => node67
23
+ Service: () => Service20,
24
+ node: () => node22
25
25
  });
26
26
  import { Context, Effect, Fiber, Layer, Schema, Stream } from "effect";
27
27
  import { ChildProcess } from "effect/unstable/process";
@@ -46,7 +46,7 @@ var RawMatch = Schema.Struct({
46
46
  });
47
47
  var decodeJsonRecord = Schema.decodeUnknownEffect(Schema.fromJsonString(Schema.Unknown));
48
48
 
49
- class Error3 extends Schema.TaggedError()("Ripgrep.Error", {
49
+ class Error2 extends Schema.TaggedError()("Ripgrep.Error", {
50
50
  message: Schema.String,
51
51
  cause: Schema.optional(Schema.Defect())
52
52
  }) {
@@ -58,13 +58,13 @@ class InvalidPatternError2 extends Schema.TaggedError()("Ripgrep.InvalidPatternE
58
58
  }) {
59
59
  }
60
60
 
61
- class Service65 extends Context.Service()("@opencode/Ripgrep") {
61
+ class Service20 extends Context.Service()("@opencode/Ripgrep") {
62
62
  }
63
- var failure = (message, cause) => new Error3({ message, cause });
63
+ var failure = (message, cause) => new Error2({ message, cause });
64
64
  var normalizePath = (value) => value.replace(/^(?:\.[\\/])+/u, "").replace(/^[\\/]+/u, "").replaceAll("\\", "/");
65
65
  var isInvalidPattern = (stderr) => stderr.includes("regex parse error") || stderr.includes("error parsing regex");
66
- var layer = Layer.effect(Service65, Effect.gen(function* () {
67
- const environment = yield* Service77;
66
+ var layer = Layer.effect(Service20, Effect.gen(function* () {
67
+ const environment = yield* Service47;
68
68
  const binary = yield* RipgrepBinary2.Service;
69
69
  const run = (input) => {
70
70
  const program = Effect.scoped(Effect.gen(function* () {
@@ -90,9 +90,9 @@ var layer = Layer.effect(Service65, Effect.gen(function* () {
90
90
  return code === 1 ? [] : rows;
91
91
  }));
92
92
  const abortable = input.signal ? program.pipe(Effect.raceFirst(waitForAbort(input.signal))) : program;
93
- return abortable.pipe(Effect.mapError((cause) => cause instanceof Error3 || cause instanceof InvalidPatternError2 ? cause : failure("ripgrep execution failed", cause)));
93
+ return abortable.pipe(Effect.mapError((cause) => cause instanceof Error2 || cause instanceof InvalidPatternError2 ? cause : failure("ripgrep execution failed", cause)));
94
94
  };
95
- return Service65.of({
95
+ return Service20.of({
96
96
  glob: (input) => run({
97
97
  cwd: input.cwd,
98
98
  limit: input.limit,
@@ -175,6 +175,6 @@ var layer = Layer.effect(Service65, Effect.gen(function* () {
175
175
  }))))
176
176
  });
177
177
  }));
178
- var node67 = makeLocationNode({ service: Service65, layer, deps: [node79, RipgrepBinary2.node] });
178
+ var node22 = makeLocationNode({ service: Service20, layer, deps: [node51, RipgrepBinary2.node] });
179
179
 
180
- export { Error3, InvalidPatternError2, Service65, node67, exports_ripgrep };
180
+ export { Error2, InvalidPatternError2, Service20, node22, exports_ripgrep };
@@ -1,21 +1,21 @@
1
1
  import {
2
2
  AbsolutePath2,
3
3
  RelativePath2
4
- } from "./ripgrep-922hggd3.js";
4
+ } from "./credential-922hggd3.js";
5
5
  import {
6
6
  makeUnsafe2
7
- } from "./ripgrep-y71avatq.js";
7
+ } from "./credential-dpkg50ah.js";
8
8
  import {
9
9
  MAX_TOTAL_PATCH_BYTES2,
10
10
  emptyPatch2,
11
11
  chunksByFile2
12
- } from "./ripgrep-tazgh4e4.js";
12
+ } from "./credential-tazgh4e4.js";
13
13
  import {
14
14
  gitExecutable2
15
- } from "./ripgrep-ef5x83kb.js";
15
+ } from "./credential-ef5x83kb.js";
16
16
  import {
17
17
  __export
18
- } from "./ripgrep-9rqn6x4v.js";
18
+ } from "./credential-9rqn6x4v.js";
19
19
 
20
20
  // src/git.ts
21
21
  var exports_git3 = {};
@@ -23,11 +23,11 @@ __export(exports_git3, {
23
23
  Git: () => exports_git3,
24
24
  OperationError: () => OperationError3,
25
25
  Repository: () => Repository2,
26
- Service: () => Service82,
26
+ Service: () => Service84,
27
27
  TreeID: () => TreeID2,
28
28
  Worktree: () => Worktree2,
29
29
  WorktreeError: () => WorktreeError2,
30
- node: () => node85
30
+ node: () => node88
31
31
  });
32
32
  import path from "path";
33
33
  import { Context, Effect, Layer, Schema } from "effect";
@@ -93,9 +93,9 @@ class WorktreeError2 extends Schema.TaggedError()("Git.WorktreeError", {
93
93
  }) {
94
94
  }
95
95
 
96
- class Service82 extends Context.Service()("@opencode/Git") {
96
+ class Service84 extends Context.Service()("@opencode/Git") {
97
97
  }
98
- var layer = Layer.effect(Service82, Effect.gen(function* () {
98
+ var layer = Layer.effect(Service84, Effect.gen(function* () {
99
99
  const fs = yield* FSUtil.Service;
100
100
  const proc = yield* AppProcess.Service;
101
101
  const locks = makeUnsafe2();
@@ -419,7 +419,7 @@ var layer = Layer.effect(Service82, Effect.gen(function* () {
419
419
  kind: index === 0 ? "main" : "linked"
420
420
  }));
421
421
  });
422
- return Service82.of({
422
+ return Service84.of({
423
423
  repo: { discover, clone, create },
424
424
  remote: { get: remote },
425
425
  history: { head, branch, defaultRemoteBranch: remoteHead, rootCommits: roots },
@@ -435,7 +435,7 @@ var layer = Layer.effect(Service82, Effect.gen(function* () {
435
435
  }
436
436
  });
437
437
  }));
438
- var node85 = makeGlobalNode({ service: Service82, layer, deps: [FSUtil.node, AppProcess.node] });
438
+ var node88 = makeGlobalNode({ service: Service84, layer, deps: [FSUtil.node, AppProcess.node] });
439
439
  function run(cwd, proc, args) {
440
440
  return execute(cwd, proc, args).pipe(Effect.orElseSucceed(() => ({ exitCode: 1, text: "", stderr: "" })));
441
441
  }
@@ -463,4 +463,4 @@ function resolvePath(cwd, value) {
463
463
  return path.resolve(cwd, normalized);
464
464
  }
465
465
 
466
- export { Repository2, TreeID2, OperationError3, Worktree2, WorktreeError2, Service82, node85, exports_git3 };
466
+ export { Repository2, TreeID2, OperationError3, Worktree2, WorktreeError2, Service84, node88, exports_git3 };
@@ -1,10 +1,10 @@
1
1
  import {
2
2
  Service81,
3
- node84
4
- } from "./ripgrep-vcctfkdr.js";
3
+ node85
4
+ } from "./credential-30g65q41.js";
5
5
  import {
6
6
  __export
7
- } from "./ripgrep-9rqn6x4v.js";
7
+ } from "./credential-9rqn6x4v.js";
8
8
 
9
9
  // src/location.ts
10
10
  var exports_location = {};
@@ -14,7 +14,7 @@ __export(exports_location, {
14
14
  Ref: () => Ref4,
15
15
  Service: () => Service80,
16
16
  boundNode: () => boundNode2,
17
- node: () => node83,
17
+ node: () => node84,
18
18
  response: () => response2
19
19
  });
20
20
  import { Context, Effect, Layer } from "effect";
@@ -23,7 +23,7 @@ import { LayerNode } from "@opencode/util/effect/layer-node";
23
23
  import { makeLocationNode, tags } from "@opencode/util/effect/app-node";
24
24
  class Service80 extends Context.Service()("@opencode/Location") {
25
25
  }
26
- var node83 = LayerNode.unbound(Service80, tags.values.location);
26
+ var node84 = LayerNode.unbound(Service80, tags.values.location);
27
27
  var layer = (ref) => Layer.effect(Service80, Effect.gen(function* () {
28
28
  const project = yield* Service81;
29
29
  const resolved = yield* project.resolve(ref.directory);
@@ -37,7 +37,7 @@ var layer = (ref) => Layer.effect(Service80, Effect.gen(function* () {
37
37
  var boundNode2 = (ref) => makeLocationNode({
38
38
  service: Service80,
39
39
  layer: layer(ref),
40
- deps: [node84]
40
+ deps: [node85]
41
41
  });
42
42
 
43
- export { Info32, Ref4, response2, Service80, node83, boundNode2, exports_location };
43
+ export { Info32, Ref4, response2, Service80, node84, boundNode2, exports_location };
@@ -4,31 +4,31 @@ import {
4
4
  MAX_TOTAL_PATCH_BYTES2,
5
5
  emptyPatch2,
6
6
  chunksByFile2
7
- } from "./ripgrep-tazgh4e4.js";
7
+ } from "./credential-tazgh4e4.js";
8
8
  import {
9
9
  gitExecutable2
10
- } from "./ripgrep-ef5x83kb.js";
10
+ } from "./credential-ef5x83kb.js";
11
11
  import {
12
12
  Service80
13
- } from "./ripgrep-87ppwq26.js";
13
+ } from "./credential-995e57hq.js";
14
14
  import {
15
15
  DiffError2
16
- } from "./ripgrep-kasa1exf.js";
16
+ } from "./credential-ybqqd820.js";
17
17
  import {
18
18
  __export
19
- } from "./ripgrep-9rqn6x4v.js";
19
+ } from "./credential-9rqn6x4v.js";
20
20
 
21
21
  // src/plugin/vcs/git.ts
22
22
  var exports_git = {};
23
23
  __export(exports_git, {
24
- Plugin: () => Plugin27,
24
+ Plugin: () => Plugin29,
25
25
  VcsGitPlugin: () => exports_git
26
26
  });
27
27
  import { define } from "@opencode/plugin/effect/plugin";
28
28
  import { Effect } from "effect";
29
29
  import { ChildProcess } from "effect/unstable/process";
30
30
  import { AppProcess } from "@opencode/util/process";
31
- var Plugin27 = define({
31
+ var Plugin29 = define({
32
32
  id: "opencode.vcs.git",
33
33
  effect: Effect.fn("VcsGitPlugin")(function* (ctx) {
34
34
  const location = yield* Service80;
@@ -470,4 +470,4 @@ var track = Effect.fnUntraced(function* (ctx, ref, options) {
470
470
  return yield* diffAgainstRef(ctx, ref, options);
471
471
  });
472
472
 
473
- export { Plugin27, exports_git };
473
+ export { Plugin29, exports_git };
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  call2
3
- } from "./ripgrep-mfqp6xfm.js";
3
+ } from "./credential-mfqp6xfm.js";
4
4
  import {
5
5
  __export
6
- } from "./ripgrep-9rqn6x4v.js";
6
+ } from "./credential-9rqn6x4v.js";
7
7
 
8
8
  // src/plugin/websearch/exa.ts
9
9
  var exports_exa = {};