@opencode/core 2.0.1 → 2.0.3

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 (794) hide show
  1. package/dist/account/sql.js +1 -1
  2. package/dist/agent.js +82 -82
  3. package/dist/aisdk-native.js +2 -2
  4. package/dist/aisdk.js +6 -6
  5. package/dist/app.js +9 -9
  6. package/dist/bus.js +72 -72
  7. package/dist/catalog.js +82 -82
  8. package/dist/chunks/{repository-rhjbct0v.js → mime-02a7j1yb.js} +4 -4
  9. package/dist/chunks/{repository-c9wtqnwj.js → mime-05gwmh6x.js} +11 -11
  10. package/dist/chunks/{repository-fmvngk0a.js → mime-07jv6yz6.js} +29 -29
  11. package/dist/chunks/{repository-mw6spqsr.js → mime-0e70zyzp.js} +17 -17
  12. package/dist/chunks/{repository-q8rd9qhs.js → mime-0f9vejxt.js} +28 -28
  13. package/dist/chunks/{repository-fmpkkhtn.js → mime-0gc96ev3.js} +18 -18
  14. package/dist/chunks/{repository-18e56dsp.js → mime-0gr7cw0d.js} +4 -4
  15. package/dist/chunks/{repository-nxamnhdf.js → mime-0kcg9p5c.js} +10 -10
  16. package/dist/chunks/{repository-evxnsm19.js → mime-0mtmygp7.js} +15 -15
  17. package/dist/chunks/{repository-3seenrp7.js → mime-0nhe5bzg.js} +9 -9
  18. package/dist/chunks/{repository-0paq2nw3.js → mime-0paq2nw3.js} +1 -1
  19. package/dist/chunks/{repository-0q0f95c6.js → mime-0q0f95c6.js} +1 -1
  20. package/dist/chunks/{repository-27wgnz1z.js → mime-0x7565bv.js} +13 -13
  21. package/dist/chunks/{repository-a5h5qkjp.js → mime-0xcwyxas.js} +33 -33
  22. package/dist/chunks/{repository-r94mrtfv.js → mime-1ajjaskr.js} +20 -20
  23. package/dist/chunks/{repository-1bbkgx8g.js → mime-1bbkgx8g.js} +1 -1
  24. package/dist/chunks/{repository-1dazxqgg.js → mime-1dazxqgg.js} +2 -2
  25. package/dist/chunks/{repository-b0sf2pns.js → mime-1drzz6a4.js} +6 -6
  26. package/dist/chunks/{repository-ehajtz8g.js → mime-1h4ppwsj.js} +11 -11
  27. package/dist/chunks/{repository-yahs3f01.js → mime-1khmrxma.js} +46 -46
  28. package/dist/chunks/{repository-1tjfkw5v.js → mime-1s7fk0j0.js} +25 -25
  29. package/dist/chunks/{repository-56gdpj1q.js → mime-1ygqh575.js} +9 -9
  30. package/dist/chunks/{repository-21r38tys.js → mime-21r38tys.js} +1 -1
  31. package/dist/chunks/{repository-2402vzrj.js → mime-2402vzrj.js} +1 -1
  32. package/dist/chunks/{repository-a3n1dpj2.js → mime-2419kjk7.js} +9 -9
  33. package/dist/chunks/{repository-9yhr46n3.js → mime-26m96hf0.js} +22 -22
  34. package/dist/chunks/{repository-4emgtgzt.js → mime-27cjkq2h.js} +15 -15
  35. package/dist/chunks/{repository-mqsc2h20.js → mime-29seat8c.js} +24 -24
  36. package/dist/chunks/{repository-z63w68vq.js → mime-29x78va6.js} +6 -6
  37. package/dist/chunks/{repository-2a5m3afh.js → mime-2a5m3afh.js} +1 -1
  38. package/dist/chunks/{repository-wxpch4dk.js → mime-2b4vkxet.js} +30 -30
  39. package/dist/chunks/{repository-2cgm8dc1.js → mime-2ff821eq.js} +11 -11
  40. package/dist/chunks/{repository-ksjan0t5.js → mime-2h1k6vak.js} +13 -13
  41. package/dist/chunks/{repository-g9cr3d5v.js → mime-2magtmd2.js} +4 -4
  42. package/dist/chunks/{repository-hrncarcf.js → mime-2t5kqt1k.js} +1 -1
  43. package/dist/chunks/{repository-ext3js1z.js → mime-2vr1hr03.js} +18 -18
  44. package/dist/chunks/{repository-me4pxbk2.js → mime-2zdv8wt0.js} +30 -30
  45. package/dist/chunks/{repository-36564s8r.js → mime-31je9t57.js} +29 -29
  46. package/dist/chunks/{repository-kkdm9ajw.js → mime-348n1k1m.js} +3 -3
  47. package/dist/chunks/{repository-y973e7aq.js → mime-34f33jfe.js} +13 -13
  48. package/dist/chunks/{repository-p6v0vyws.js → mime-3ac6cy74.js} +20 -20
  49. package/dist/chunks/{repository-cq37gk0t.js → mime-3amprz0f.js} +4 -4
  50. package/dist/chunks/{repository-20q8k894.js → mime-3ax7whkq.js} +9 -9
  51. package/dist/chunks/{repository-ezbaq0hv.js → mime-3bca72pz.js} +4 -4
  52. package/dist/chunks/{repository-ppq9etn0.js → mime-3c5r44ez.js} +37 -37
  53. package/dist/chunks/mime-3es18rb9.js +76 -0
  54. package/dist/chunks/{repository-gdvy8fx6.js → mime-3fc6dm20.js} +4 -4
  55. package/dist/chunks/{repository-3hepkmqq.js → mime-3hepkmqq.js} +1 -1
  56. package/dist/chunks/{repository-seps633m.js → mime-3k5rp9zq.js} +26 -26
  57. package/dist/chunks/{repository-ky16kd9n.js → mime-3mp8pt0x.js} +12 -12
  58. package/dist/chunks/{repository-3smtnn6g.js → mime-3smtnn6g.js} +1 -1
  59. package/dist/chunks/{repository-3tvqynh2.js → mime-3tvqynh2.js} +1 -1
  60. package/dist/chunks/{repository-x6rcf4cj.js → mime-3wjgak91.js} +16 -16
  61. package/dist/chunks/{repository-3mdgf1e2.js → mime-3xz6hyac.js} +22 -22
  62. package/dist/chunks/{repository-ztwfyng4.js → mime-3zf9b344.js} +4 -4
  63. package/dist/chunks/{repository-csp720wb.js → mime-3zpd0x8a.js} +25 -25
  64. package/dist/chunks/{repository-h90k734v.js → mime-4e18mqjd.js} +9 -9
  65. package/dist/chunks/{repository-0xfnng1h.js → mime-4ey0fprp.js} +15 -15
  66. package/dist/chunks/{repository-zr3d0gxg.js → mime-4nncm24z.js} +28 -28
  67. package/dist/chunks/{repository-gxgjkd0x.js → mime-4w46mhc5.js} +13 -13
  68. package/dist/chunks/{repository-3yetcf2r.js → mime-53c48grp.js} +50 -50
  69. package/dist/chunks/{repository-mhbk2b8a.js → mime-56yeekyc.js} +13 -13
  70. package/dist/chunks/{repository-qkrnz1pz.js → mime-5ahh7ntp.js} +5 -5
  71. package/dist/chunks/{repository-5daktx2q.js → mime-5daktx2q.js} +1 -1
  72. package/dist/chunks/{repository-g0dr00md.js → mime-5gzmb6dp.js} +32 -32
  73. package/dist/chunks/{repository-8vg4n516.js → mime-5hf3fyzy.js} +20 -20
  74. package/dist/chunks/{repository-eprkdeyt.js → mime-5psmcwnn.js} +21 -21
  75. package/dist/chunks/{repository-5t3nmthw.js → mime-5t3nmthw.js} +2 -2
  76. package/dist/chunks/{repository-669tq793.js → mime-669tq793.js} +1 -1
  77. package/dist/chunks/{repository-r2dfp6se.js → mime-66v7x5gy.js} +35 -35
  78. package/dist/chunks/{repository-q8bcy8ws.js → mime-6b2vme4h.js} +2 -2
  79. package/dist/chunks/{repository-jby58kjs.js → mime-6ean1s1z.js} +11 -11
  80. package/dist/chunks/{repository-g8d3gcyj.js → mime-6hh8tjw2.js} +7 -7
  81. package/dist/chunks/{repository-6msgmcgs.js → mime-6msgmcgs.js} +1 -1
  82. package/dist/chunks/{repository-smnv2tch.js → mime-6q31zrbr.js} +91 -42
  83. package/dist/chunks/{repository-58e8mpmb.js → mime-6vz9gfbd.js} +13 -13
  84. package/dist/chunks/{repository-71q4at8m.js → mime-71q4at8m.js} +1 -1
  85. package/dist/chunks/{repository-1j4qb6e1.js → mime-771dt0vh.js} +8 -8
  86. package/dist/chunks/{repository-w75dnx21.js → mime-77hmfzz5.js} +43 -43
  87. package/dist/chunks/{repository-bbarxbyb.js → mime-79w795fr.js} +1 -1
  88. package/dist/chunks/{repository-0k3t14ts.js → mime-7assmfkm.js} +7 -7
  89. package/dist/chunks/{repository-7bmhse3q.js → mime-7bmhse3q.js} +1 -1
  90. package/dist/chunks/{repository-2k8khapm.js → mime-7dqw4kz8.js} +5 -5
  91. package/dist/chunks/{repository-j5xt7epv.js → mime-7rntk513.js} +18 -18
  92. package/dist/chunks/{repository-2v08kgv1.js → mime-824vcv1n.js} +9 -9
  93. package/dist/chunks/{repository-y5pstp70.js → mime-83qrv3hw.js} +6 -6
  94. package/dist/chunks/{repository-r14cnnrw.js → mime-8815nq26.js} +8 -8
  95. package/dist/chunks/{repository-8d7r5vzw.js → mime-8d7r5vzw.js} +1 -1
  96. package/dist/chunks/{repository-h4e6z68e.js → mime-8fjx57rb.js} +13 -13
  97. package/dist/chunks/{repository-t59s3hhv.js → mime-8kdf3zjj.js} +32 -32
  98. package/dist/chunks/{repository-4e540xxx.js → mime-8mfdap3f.js} +8 -8
  99. package/dist/chunks/{repository-8p4f9s12.js → mime-8p4f9s12.js} +2 -2
  100. package/dist/chunks/{repository-nrk5vjbf.js → mime-8ryk0bb9.js} +5 -5
  101. package/dist/chunks/{repository-fv2d43cy.js → mime-8z221vkh.js} +18 -18
  102. package/dist/chunks/{repository-yjknk9j9.js → mime-95wcbadv.js} +3 -3
  103. package/dist/chunks/{repository-ct93djtc.js → mime-9e5xqeqt.js} +14 -14
  104. package/dist/chunks/mime-9jxymrt4.js +247 -0
  105. package/dist/chunks/{repository-v3v5frkk.js → mime-9k690w47.js} +17 -17
  106. package/dist/chunks/{repository-w4wc2211.js → mime-9nydp2f6.js} +32 -32
  107. package/dist/chunks/{repository-mgx963cj.js → mime-9pm6y0s1.js} +8 -8
  108. package/dist/chunks/{repository-8db04et3.js → mime-9xrpzr2m.js} +8 -8
  109. package/dist/chunks/{repository-47vy4edm.js → mime-9zqg8qpq.js} +5 -5
  110. package/dist/chunks/{repository-d75w7jnc.js → mime-a0amxwx8.js} +17 -17
  111. package/dist/chunks/{repository-xjmr3883.js → mime-a13hqwzr.js} +6 -6
  112. package/dist/chunks/{repository-a1bz86dw.js → mime-a1bz86dw.js} +3 -3
  113. package/dist/chunks/{repository-t0x5rdq8.js → mime-a5gt7g2r.js} +9 -9
  114. package/dist/chunks/{repository-aaet6srn.js → mime-aaet6srn.js} +2 -2
  115. package/dist/chunks/{repository-tat7nwhe.js → mime-ak7sjf8k.js} +12 -12
  116. package/dist/chunks/{repository-pvp1cs2e.js → mime-ar6rwxgq.js} +16 -16
  117. package/dist/chunks/mime-b1jrztkg.js +26 -0
  118. package/dist/chunks/{repository-zc2xj3qj.js → mime-b2vqmjat.js} +1 -1
  119. package/dist/chunks/{repository-pn143qvt.js → mime-b315ag2q.js} +17 -17
  120. package/dist/chunks/{repository-b6gygkdw.js → mime-b6gygkdw.js} +2 -2
  121. package/dist/chunks/{repository-59j62b79.js → mime-b8cmw211.js} +11 -11
  122. package/dist/chunks/{repository-6wjjjhy6.js → mime-bawj3v5d.js} +11 -11
  123. package/dist/chunks/{repository-ztky2hbm.js → mime-bb4ztexx.js} +18 -18
  124. package/dist/chunks/{repository-msq0jde0.js → mime-bccb6npm.js} +4 -4
  125. package/dist/chunks/{repository-8m31s27t.js → mime-bhp9fn5h.js} +11 -11
  126. package/dist/chunks/{repository-5b88mxz1.js → mime-bjbqe5j4.js} +7 -7
  127. package/dist/chunks/{repository-213v9py0.js → mime-bst9cd68.js} +6 -6
  128. package/dist/chunks/{repository-dj9sq318.js → mime-c78bbtc9.js} +5 -5
  129. package/dist/chunks/{repository-g8mks886.js → mime-caw866h7.js} +11 -11
  130. package/dist/chunks/{repository-cfpkc3c9.js → mime-cfpkc3c9.js} +2 -2
  131. package/dist/chunks/{repository-cmwkp3r5.js → mime-cmwkp3r5.js} +1 -1
  132. package/dist/chunks/{repository-g4kbd5hn.js → mime-crfhge7d.js} +21 -21
  133. package/dist/chunks/{repository-de42ff3x.js → mime-cvt7tjwh.js} +36 -36
  134. package/dist/chunks/{repository-hj2f0bzq.js → mime-cx2dw8ng.js} +7 -7
  135. package/dist/chunks/{repository-h71w788e.js → mime-depwzj9d.js} +9 -9
  136. package/dist/chunks/{repository-10jtetaj.js → mime-dg5bcj4q.js} +6 -6
  137. package/dist/chunks/{repository-4y66k410.js → mime-e5nv3ght.js} +12 -5
  138. package/dist/chunks/{repository-cabt264k.js → mime-efp1nzpe.js} +14 -14
  139. package/dist/chunks/{repository-tx9qvpbt.js → mime-eraanh1f.js} +2 -2
  140. package/dist/chunks/{repository-2yv9jfkc.js → mime-esaayfhr.js} +10 -10
  141. package/dist/chunks/{repository-etq0c3wd.js → mime-etq0c3wd.js} +1 -1
  142. package/dist/chunks/{repository-ff9w6xrb.js → mime-ex0mzm10.js} +9 -9
  143. package/dist/chunks/{repository-5n0sh9d6.js → mime-ex105f0g.js} +7 -7
  144. package/dist/chunks/{repository-r8xr0va3.js → mime-f2n192rq.js} +4 -4
  145. package/dist/chunks/{repository-f828m53h.js → mime-f828m53h.js} +2 -2
  146. package/dist/chunks/{repository-c13f7gjw.js → mime-fap8rsc6.js} +34 -34
  147. package/dist/chunks/{repository-sgk3431w.js → mime-fce3k32g.js} +25 -25
  148. package/dist/chunks/{repository-fxbjtjnd.js → mime-fxbjtjnd.js} +1 -1
  149. package/dist/chunks/{repository-haj0byqn.js → mime-g04bxtcn.js} +4 -4
  150. package/dist/chunks/{repository-84czwvzw.js → mime-g6878fex.js} +16 -16
  151. package/dist/chunks/{repository-rsbh8q26.js → mime-g7jyz10z.js} +48 -48
  152. package/dist/chunks/{repository-yz39bey7.js → mime-g7nm1tr2.js} +15 -15
  153. package/dist/chunks/{repository-3x8gcmrs.js → mime-ga6hqhxm.js} +9 -9
  154. package/dist/chunks/{repository-gd4qta3r.js → mime-gd4qta3r.js} +1 -1
  155. package/dist/chunks/{repository-x384g1hs.js → mime-ggch0ev5.js} +15 -15
  156. package/dist/chunks/{repository-8gs4w1fy.js → mime-gmw5hd0s.js} +31 -31
  157. package/dist/chunks/{repository-rg2zvvyz.js → mime-gnq13918.js} +11 -11
  158. package/dist/chunks/{repository-p33ejz0k.js → mime-gqrjg9m0.js} +2 -1
  159. package/dist/chunks/{repository-8c7y8dn0.js → mime-gqrsst1j.js} +5 -5
  160. package/dist/chunks/{repository-8gxqpgph.js → mime-gst7axd9.js} +4 -4
  161. package/dist/chunks/{repository-sksn9mf1.js → mime-gwk6svk5.js} +9 -9
  162. package/dist/chunks/{repository-h03wrkyp.js → mime-h03wrkyp.js} +2 -2
  163. package/dist/chunks/{repository-h6vf3j39.js → mime-h6vf3j39.js} +1 -1
  164. package/dist/chunks/mime-h7v0c4h9.js +97 -0
  165. package/dist/chunks/{repository-b5n11jz6.js → mime-hdrc7pzh.js} +27 -27
  166. package/dist/chunks/{repository-qrj9d2ct.js → mime-hf6kd63r.js} +19 -19
  167. package/dist/chunks/{repository-bejabbw1.js → mime-hk1cyxmr.js} +50 -45
  168. package/dist/chunks/{repository-w0cvk6jr.js → mime-hkgwg6cc.js} +20 -20
  169. package/dist/chunks/{repository-a8ygtzbq.js → mime-hkjvptd8.js} +14 -14
  170. package/dist/chunks/{repository-0r7yqxbf.js → mime-hnr5yq9h.js} +5 -5
  171. package/dist/chunks/{repository-jzksghxf.js → mime-hxnftcv1.js} +30 -30
  172. package/dist/chunks/{repository-0k7wafs3.js → mime-j0xvhg4t.js} +26 -26
  173. package/dist/chunks/{repository-j4z2qnee.js → mime-j1tqpjge.js} +11 -11
  174. package/dist/chunks/{repository-j56e64zr.js → mime-j56e64zr.js} +1 -1
  175. package/dist/chunks/{repository-paphc93g.js → mime-j935v87r.js} +2 -2
  176. package/dist/chunks/{repository-1g6ktzxp.js → mime-jg33m14x.js} +46 -46
  177. package/dist/chunks/{repository-rgmexsye.js → mime-jq13afhk.js} +13 -13
  178. package/dist/chunks/{repository-pwf15mvc.js → mime-js4jadbf.js} +4 -4
  179. package/dist/chunks/{repository-19c2b9rb.js → mime-jvw2nnm0.js} +11 -11
  180. package/dist/chunks/{repository-72ds7gf6.js → mime-jwttd70a.js} +32 -32
  181. package/dist/chunks/{repository-h0gkjmvb.js → mime-jzp1tdep.js} +13 -13
  182. package/dist/chunks/{repository-h1rn3ct5.js → mime-k12bwzmm.js} +91 -91
  183. package/dist/chunks/{repository-kg06axw8.js → mime-kg06axw8.js} +1 -1
  184. package/dist/chunks/{repository-t2x602yk.js → mime-kghzffp5.js} +19 -19
  185. package/dist/chunks/{repository-gtm8txn9.js → mime-kxmcqd0q.js} +26 -26
  186. package/dist/chunks/{repository-b09hzw3k.js → mime-ky3seynh.js} +2 -2
  187. package/dist/chunks/{repository-m9w0rfyh.js → mime-m9w0rfyh.js} +1 -1
  188. package/dist/chunks/{repository-s2t8c8fj.js → mime-mkgf31e5.js} +4 -4
  189. package/dist/chunks/{repository-1gnhqkth.js → mime-mr645x8e.js} +63 -53
  190. package/dist/chunks/{repository-qfmvv2sm.js → mime-n0ta87th.js} +3 -3
  191. package/dist/chunks/{repository-5y5h33xd.js → mime-n6wnmytb.js} +8 -8
  192. package/dist/chunks/{repository-87v8z91d.js → mime-n9pgkqx1.js} +11 -11
  193. package/dist/chunks/{repository-hjt4xg1x.js → mime-nhy5jxhy.js} +4 -4
  194. package/dist/chunks/{repository-02dev0ez.js → mime-nxa5rjjz.js} +13 -13
  195. package/dist/chunks/{repository-penaav09.js → mime-nxrdkmqf.js} +26 -26
  196. package/dist/chunks/{repository-drknmmyh.js → mime-nzwzy72p.js} +9 -9
  197. package/dist/chunks/mime-p2h6zvwc.js +18 -0
  198. package/dist/chunks/{repository-fcgysgr5.js → mime-p7ks6zyz.js} +11 -11
  199. package/dist/chunks/{repository-z0xnky3q.js → mime-pcedqjxk.js} +27 -27
  200. package/dist/chunks/{repository-jwjk52g2.js → mime-pck3w1ab.js} +4 -4
  201. package/dist/chunks/{repository-eztf1wzg.js → mime-pd4btrn7.js} +1 -1
  202. package/dist/chunks/{repository-j5346eb1.js → mime-pe4b2cf4.js} +160 -160
  203. package/dist/chunks/{repository-pjvnvgmy.js → mime-pjvnvgmy.js} +1 -1
  204. package/dist/chunks/{repository-pknna89w.js → mime-pknna89w.js} +1 -1
  205. package/dist/chunks/{repository-m2d0j7c0.js → mime-pnv527nz.js} +9 -9
  206. package/dist/chunks/{repository-fmdgzt8c.js → mime-q2fb3trg.js} +41 -41
  207. package/dist/chunks/{repository-88zp0tbv.js → mime-q2yns0nb.js} +10 -10
  208. package/dist/chunks/{repository-j38hs89b.js → mime-q4w5h7cm.js} +31 -25
  209. package/dist/chunks/{repository-y1b098n8.js → mime-q6sszjbn.js} +9 -9
  210. package/dist/chunks/{repository-1bvekr7f.js → mime-qfzde7bh.js} +6 -6
  211. package/dist/chunks/{repository-he3792rk.js → mime-qhvmp4yv.js} +33 -33
  212. package/dist/chunks/{repository-za4pw5w1.js → mime-qs001aqx.js} +11 -11
  213. package/dist/chunks/{repository-qsdy395h.js → mime-qsdy395h.js} +1 -1
  214. package/dist/chunks/{repository-6tpt9h9q.js → mime-qvkfnpew.js} +60 -60
  215. package/dist/chunks/{repository-my7gf51c.js → mime-r27v71mw.js} +67 -67
  216. package/dist/chunks/{repository-j83byb14.js → mime-r98e92ep.js} +4 -4
  217. package/dist/chunks/{repository-r9mregkx.js → mime-r9mregkx.js} +2 -2
  218. package/dist/chunks/{repository-bkhh0yw4.js → mime-raczhzft.js} +21 -21
  219. package/dist/chunks/{repository-hqjg1cx1.js → mime-rk0rec3h.js} +9 -9
  220. package/dist/chunks/{repository-51cmmk6m.js → mime-rme0s8je.js} +115 -93
  221. package/dist/chunks/{repository-r33ff4dw.js → mime-rph3zd4r.js} +6 -6
  222. package/dist/chunks/{repository-fmykz272.js → mime-rpqc7xtd.js} +7 -7
  223. package/dist/chunks/{repository-w4axh9wz.js → mime-rqcbxq1a.js} +8 -8
  224. package/dist/chunks/{repository-xp6wb0v9.js → mime-rvw86qrh.js} +25 -25
  225. package/dist/chunks/{repository-aa4x36r7.js → mime-s2azsgc2.js} +47 -47
  226. package/dist/chunks/{repository-yrznvahk.js → mime-s4enseaf.js} +2 -2
  227. package/dist/chunks/{repository-0zkv00cg.js → mime-s6khr2z3.js} +25 -25
  228. package/dist/chunks/{repository-zdwyj9y5.js → mime-s74jw2kt.js} +36 -36
  229. package/dist/chunks/{repository-3tamc9js.js → mime-s957sxhe.js} +28 -28
  230. package/dist/chunks/{repository-cg1ew3t4.js → mime-sc497s7j.js} +3 -3
  231. package/dist/chunks/{repository-1n274c67.js → mime-spb3hsfg.js} +19 -19
  232. package/dist/chunks/{repository-9rs4eqfv.js → mime-szb4ct1t.js} +17 -17
  233. package/dist/chunks/{repository-n4a6bgqk.js → mime-t1xxg50c.js} +14 -14
  234. package/dist/chunks/{repository-tazgh4e4.js → mime-tazgh4e4.js} +1 -1
  235. package/dist/chunks/{repository-tcezcvh9.js → mime-tcezcvh9.js} +1 -1
  236. package/dist/chunks/{repository-tdstcens.js → mime-tdstcens.js} +1 -1
  237. package/dist/chunks/{repository-qt3bdkqw.js → mime-teqxmgy8.js} +18 -18
  238. package/dist/chunks/{repository-gv6a8nnw.js → mime-th5km1p3.js} +5 -5
  239. package/dist/chunks/{repository-tkvvdtgj.js → mime-tnf45s15.js} +5 -5
  240. package/dist/chunks/{repository-1t2s0wry.js → mime-ttkasvj9.js} +5 -5
  241. package/dist/chunks/{repository-tvtrv512.js → mime-tvtrv512.js} +1 -1
  242. package/dist/chunks/{repository-0wjw63yk.js → mime-v5bprabd.js} +26 -26
  243. package/dist/chunks/{repository-w96k05dy.js → mime-vbedh2fb.js} +11 -11
  244. package/dist/chunks/{repository-5cy52y0z.js → mime-vc2f4mv3.js} +6 -6
  245. package/dist/chunks/{repository-veqvce7d.js → mime-veqvce7d.js} +1 -1
  246. package/dist/chunks/{repository-j8g7a3j8.js → mime-vz9r8jjr.js} +11 -11
  247. package/dist/chunks/{repository-vzcthcp8.js → mime-vzcthcp8.js} +1 -1
  248. package/dist/chunks/{repository-petjzngd.js → mime-w3mesfdc.js} +14 -14
  249. package/dist/chunks/{repository-w3wsvvr9.js → mime-w3wsvvr9.js} +1 -1
  250. package/dist/chunks/{repository-5892jdtn.js → mime-w49382pb.js} +8 -8
  251. package/dist/chunks/{repository-wd87259q.js → mime-wd87259q.js} +1 -1
  252. package/dist/chunks/{repository-3ke3s58r.js → mime-wgqr0wr2.js} +13 -12
  253. package/dist/chunks/{repository-txzqvs6q.js → mime-wq0697zs.js} +33 -33
  254. package/dist/chunks/{repository-peejr10p.js → mime-wqgnyshj.js} +1 -1
  255. package/dist/chunks/{repository-c968x2fe.js → mime-wwr0k6jb.js} +11 -11
  256. package/dist/chunks/{repository-9xb0s4b9.js → mime-wzfbm1pf.js} +26 -26
  257. package/dist/chunks/{repository-x1ezjp6w.js → mime-x1ezjp6w.js} +1 -1
  258. package/dist/chunks/{repository-pjrv1sn1.js → mime-xc0y5txa.js} +1 -1
  259. package/dist/chunks/{repository-xhhmv89y.js → mime-xcggh081.js} +4 -4
  260. package/dist/chunks/{repository-2m84dfka.js → mime-xcz029a5.js} +20 -20
  261. package/dist/chunks/{repository-g190xswt.js → mime-xdk9p2qn.js} +21 -21
  262. package/dist/chunks/{repository-7zs56f9j.js → mime-xmvnw2y2.js} +6 -6
  263. package/dist/chunks/{repository-pye8sh6e.js → mime-xnqxh1k4.js} +6 -6
  264. package/dist/chunks/{repository-shg3amz7.js → mime-xnxgv7d0.js} +24 -24
  265. package/dist/chunks/mime-xrsqh21y.js +4 -0
  266. package/dist/chunks/{repository-sm236kpq.js → mime-xvssc1kt.js} +17 -17
  267. package/dist/chunks/{repository-y6f0p4jw.js → mime-xxynqx5z.js} +3 -3
  268. package/dist/chunks/{repository-y1fvbwt7.js → mime-y1fvbwt7.js} +1 -1
  269. package/dist/chunks/{repository-sztg2hv4.js → mime-y1hy1c31.js} +17 -17
  270. package/dist/chunks/{repository-b6hy6gkz.js → mime-y6fqbdb6.js} +2 -2
  271. package/dist/chunks/{repository-f78hydwg.js → mime-y6r7tp3a.js} +3 -3
  272. package/dist/chunks/{repository-y71avatq.js → mime-y71avatq.js} +1 -1
  273. package/dist/chunks/{repository-xqzn0vp7.js → mime-yk45fjth.js} +9 -9
  274. package/dist/chunks/{repository-cedwm630.js → mime-yrgys5zv.js} +45 -45
  275. package/dist/chunks/{repository-yrhqyw5v.js → mime-yrhqyw5v.js} +1 -1
  276. package/dist/chunks/{repository-pecb0brz.js → mime-yt0fqk68.js} +5 -5
  277. package/dist/chunks/{repository-39fveamk.js → mime-yz87v98p.js} +27 -25
  278. package/dist/chunks/{repository-z0bkrqjs.js → mime-z0bkrqjs.js} +1 -1
  279. package/dist/chunks/{repository-pctvcs1g.js → mime-z159gw3g.js} +18 -18
  280. package/dist/chunks/{repository-386j3b86.js → mime-z2gbnfa5.js} +23 -23
  281. package/dist/chunks/{repository-pzjh8mr9.js → mime-z3af23pk.js} +20 -20
  282. package/dist/chunks/{repository-ykpr0q7c.js → mime-z3zadmjk.js} +55 -55
  283. package/dist/chunks/{repository-mppgq2kn.js → mime-z7q0mhzt.js} +301 -301
  284. package/dist/chunks/{repository-je6c5z5p.js → mime-zch57v4g.js} +9 -9
  285. package/dist/chunks/{repository-zeh9ct20.js → mime-zeh9ct20.js} +2 -2
  286. package/dist/chunks/{repository-1jnd8eq9.js → mime-zg7qrvva.js} +16 -16
  287. package/dist/chunks/{repository-zr2ceqn5.js → mime-zr2ceqn5.js} +1 -1
  288. package/dist/chunks/{repository-2fbr18f9.js → mime-zxh2e4w2.js} +42 -42
  289. package/dist/chunks/{repository-zxq2ej10.js → mime-zxq2ej10.js} +1 -1
  290. package/dist/codemode/catalog.js +3 -3
  291. package/dist/codemode/instructions.js +7 -7
  292. package/dist/codemode/tool.js +2 -2
  293. package/dist/command.js +84 -84
  294. package/dist/config/discovery.js +79 -78
  295. package/dist/config/markdown.js +1 -1
  296. package/dist/config/normalize.js +19 -19
  297. package/dist/config/plugin/agent.js +119 -118
  298. package/dist/config/plugin/command.js +212 -210
  299. package/dist/config/plugin/compaction.js +157 -156
  300. package/dist/config/plugin/entry-observer.js +1 -1
  301. package/dist/config/plugin/formatter.js +119 -118
  302. package/dist/config/plugin/image.js +117 -116
  303. package/dist/config/plugin/instruction.js +87 -86
  304. package/dist/config/plugin/location-watcher.js +119 -118
  305. package/dist/config/plugin/mcp.js +128 -127
  306. package/dist/config/plugin/policy.js +116 -115
  307. package/dist/config/plugin/provider.js +115 -114
  308. package/dist/config/plugin/reference.js +119 -118
  309. package/dist/config/plugin/shell.js +120 -119
  310. package/dist/config/plugin/skill-file.js +99 -98
  311. package/dist/config/plugin/skill.js +138 -137
  312. package/dist/config/plugin/snapshot.js +117 -116
  313. package/dist/config/plugin/source.js +119 -118
  314. package/dist/config/plugin/tool-output.js +119 -118
  315. package/dist/config/plugin/websearch.js +117 -116
  316. package/dist/config/plugin/worktree.js +120 -119
  317. package/dist/config/variable.js +3 -3
  318. package/dist/config/watch.js +1 -1
  319. package/dist/config.js +119 -118
  320. package/dist/credential/sql.js +2 -2
  321. package/dist/credential.js +76 -76
  322. package/dist/database/database.js +69 -69
  323. package/dist/database/drizzle/effect-sqlite/driver.js +12 -12
  324. package/dist/database/drizzle/effect-sqlite/index.js +12 -12
  325. package/dist/database/drizzle/effect-sqlite/session.js +11 -11
  326. package/dist/database/drizzle/index.js +13 -13
  327. package/dist/database/drizzle/internal/drizzle-utils.js +1 -1
  328. package/dist/database/drizzle/sqlite-core/effect/count.js +1 -1
  329. package/dist/database/drizzle/sqlite-core/effect/db.js +9 -9
  330. package/dist/database/drizzle/sqlite-core/effect/delete.js +2 -2
  331. package/dist/database/drizzle/sqlite-core/effect/index.js +10 -10
  332. package/dist/database/drizzle/sqlite-core/effect/insert.js +2 -2
  333. package/dist/database/drizzle/sqlite-core/effect/query.js +1 -1
  334. package/dist/database/drizzle/sqlite-core/effect/raw.js +1 -1
  335. package/dist/database/drizzle/sqlite-core/effect/select.js +2 -2
  336. package/dist/database/drizzle/sqlite-core/effect/session.js +10 -10
  337. package/dist/database/drizzle/sqlite-core/effect/update.js +2 -2
  338. package/dist/database/drizzle.js +14 -14
  339. package/dist/database/migration/20260127222353_familiar_lady_ursula.js +1 -1
  340. package/dist/database/migration/20260211171708_add_project_commands.js +1 -1
  341. package/dist/database/migration/20260213144116_wakeful_the_professor.js +1 -1
  342. package/dist/database/migration/20260225215848_workspace.js +1 -1
  343. package/dist/database/migration/20260227213759_add_session_workspace_id.js +1 -1
  344. package/dist/database/migration/20260228203230_blue_harpoon.js +1 -1
  345. package/dist/database/migration/20260303231226_add_workspace_fields.js +1 -1
  346. package/dist/database/migration/20260309230000_move_org_to_state.js +1 -1
  347. package/dist/database/migration/20260312043431_session_message_cursor.js +1 -1
  348. package/dist/database/migration/20260323234822_events.js +1 -1
  349. package/dist/database/migration/20260410174513_workspace-name.js +1 -1
  350. package/dist/database/migration/20260413175956_chief_energizer.js +1 -1
  351. package/dist/database/migration/20260423070820_add_icon_url_override.js +1 -1
  352. package/dist/database/migration/20260427172553_slow_nightmare.js +1 -1
  353. package/dist/database/migration/20260428004200_add_session_path.js +1 -1
  354. package/dist/database/migration/20260501142318_next_venus.js +1 -1
  355. package/dist/database/migration/20260504145000_add_sync_owner.js +1 -1
  356. package/dist/database/migration/20260507164347_add_workspace_time.js +1 -1
  357. package/dist/database/migration/20260510033149_session_usage.js +1 -1
  358. package/dist/database/migration/20260511000411_data_migration_state.js +1 -1
  359. package/dist/database/migration/20260511173437_session-metadata.js +1 -1
  360. package/dist/database/migration/20260601010001_normalize_storage_paths.js +1 -1
  361. package/dist/database/migration/20260601202201_amazing_prowler.js +1 -1
  362. package/dist/database/migration/20260602002951_lowly_union_jack.js +1 -1
  363. package/dist/database/migration/20260602182828_add_project_directories.js +1 -1
  364. package/dist/database/migration/20260603001617_session_message_projection_indexes.js +1 -1
  365. package/dist/database/migration/20260603040000_session_message_projection_order.js +1 -1
  366. package/dist/database/migration/20260603141458_session_input_inbox.js +1 -1
  367. package/dist/database/migration/20260603160727_jittery_ezekiel_stane.js +1 -1
  368. package/dist/database/migration/20260604172448_event_sourced_session_input.js +1 -1
  369. package/dist/database/migration/20260605003541_add_session_context_snapshot.js +1 -1
  370. package/dist/database/migration/20260605042240_add_context_epoch_agent.js +1 -1
  371. package/dist/database/migration/20260611035744_credential.js +1 -1
  372. package/dist/database/migration/20260611192811_lush_chimera.js +1 -1
  373. package/dist/database/migration/20260612174303_project_dir_strategy.js +1 -1
  374. package/dist/database/migration/20260622142730_simplify_session_context_epoch.js +1 -1
  375. package/dist/database/migration/20260622170816_reset_v2_session_state.js +1 -1
  376. package/dist/database/migration/20260622202450_simplify_session_input.js +1 -1
  377. package/dist/database/migration/20260804233008_loose_psylocke.js +1 -1
  378. package/dist/database/migration/20260805200742_import_legacy_credentials.js +1 -1
  379. package/dist/database/migration/20260808023530_workspace_domain.js +1 -1
  380. package/dist/database/migration/20260811161259_execution_claim_attempts.js +1 -1
  381. package/dist/database/migration/20260812181746_session_inbox.js +1 -1
  382. package/dist/database/migration/20260812213948_worktree.js +1 -1
  383. package/dist/database/migration/20260819222447_session_viewed_state.js +1 -1
  384. package/dist/database/migration/20260823191254_nullable_workspace_binding.js +1 -1
  385. package/dist/database/migration/20260910120000_clear_v1_session_permission.js +1 -1
  386. package/dist/database/migration.gen.js +48 -48
  387. package/dist/database/migration.js +50 -50
  388. package/dist/database/path.js +2 -2
  389. package/dist/database/schema.gen.js +1 -1
  390. package/dist/database/schema.sql.js +1 -1
  391. package/dist/database/sqlite.bun.js +1 -1
  392. package/dist/database/sqlite.js +1 -1
  393. package/dist/database/sqlite.node.js +1 -1
  394. package/dist/database/sqlite.workerd.js +1 -1
  395. package/dist/database/v1-migration.bun.js +78 -78
  396. package/dist/database/v1-migration.js +1 -1
  397. package/dist/effect/app-node-builder.js +363 -361
  398. package/dist/effect/app-node-platform.js +2 -2
  399. package/dist/effect/keyed-mutex.js +1 -1
  400. package/dist/effect/websocket-constructor.js +1 -1
  401. package/dist/environment/driver.js +1 -1
  402. package/dist/environment/environment.js +90 -89
  403. package/dist/environment/exec-defaults.js +2 -2
  404. package/dist/environment/files.js +1 -1
  405. package/dist/environment/index.js +92 -91
  406. package/dist/environment/local.js +2 -2
  407. package/dist/environment/memory.js +2 -2
  408. package/dist/environment/unavailable.js +1 -1
  409. package/dist/event/sql.js +1 -1
  410. package/dist/event-logger.js +73 -73
  411. package/dist/file-access.js +101 -100
  412. package/dist/file-mutation.js +91 -90
  413. package/dist/file-retention.js +1 -1
  414. package/dist/file.js +1 -1
  415. package/dist/filesystem/fff.bun.js +2 -2
  416. package/dist/filesystem/fff.js +1 -1
  417. package/dist/filesystem/fff.node.js +2 -2
  418. package/dist/filesystem/fff.workerd.js +2 -2
  419. package/dist/filesystem/ignore.js +1 -1
  420. package/dist/filesystem/location-watcher-policy.js +6 -6
  421. package/dist/filesystem/location-watcher.js +224 -223
  422. package/dist/filesystem/protected.js +1 -1
  423. package/dist/filesystem/search.js +101 -100
  424. package/dist/filesystem/watcher-binding.js +3 -3
  425. package/dist/filesystem/watcher.js +15 -15
  426. package/dist/filesystem.js +102 -99
  427. package/dist/form.js +75 -75
  428. package/dist/formatter/builtins.js +2 -2
  429. package/dist/formatter.js +84 -83
  430. package/dist/generate.js +88 -88
  431. package/dist/git.js +8 -7
  432. package/dist/github-copilot/chat/convert-to-openai-compatible-chat-messages.js +1 -1
  433. package/dist/github-copilot/chat/get-response-metadata.js +1 -1
  434. package/dist/github-copilot/chat/map-openai-compatible-finish-reason.js +1 -1
  435. package/dist/github-copilot/chat/openai-compatible-chat-language-model.js +7 -7
  436. package/dist/github-copilot/chat/openai-compatible-chat-options.js +1 -1
  437. package/dist/github-copilot/chat/openai-compatible-prepare-tools.js +1 -1
  438. package/dist/github-copilot/copilot-provider.js +17 -17
  439. package/dist/github-copilot/models.js +7 -7
  440. package/dist/github-copilot/openai-compatible-error.js +1 -1
  441. package/dist/github-copilot/responses/convert-to-openai-responses-input.js +1 -1
  442. package/dist/github-copilot/responses/map-openai-responses-finish-reason.js +1 -1
  443. package/dist/github-copilot/responses/openai-error.js +1 -1
  444. package/dist/github-copilot/responses/openai-responses-language-model.js +10 -10
  445. package/dist/github-copilot/responses/openai-responses-prepare-tools.js +6 -6
  446. package/dist/github-copilot/responses/tool/code-interpreter.js +1 -1
  447. package/dist/github-copilot/responses/tool/file-search.js +1 -1
  448. package/dist/github-copilot/responses/tool/image-generation.js +1 -1
  449. package/dist/github-copilot/responses/tool/web-search-preview.js +1 -1
  450. package/dist/github-copilot/responses/tool/web-search.js +1 -1
  451. package/dist/id/id.js +1 -1
  452. package/dist/image/photon.js +2 -2
  453. package/dist/image.js +6 -6
  454. package/dist/instance/service.js +5 -5
  455. package/dist/instance.js +354 -352
  456. package/dist/instruction-discovery.js +84 -84
  457. package/dist/instructions/builtins.js +84 -83
  458. package/dist/instructions/index.js +3 -3
  459. package/dist/integration/connection.js +1 -1
  460. package/dist/integration.js +83 -83
  461. package/dist/job.js +78 -78
  462. package/dist/kv/sql.js +2 -2
  463. package/dist/kv.js +72 -72
  464. package/dist/location-activity.js +135 -134
  465. package/dist/location-mutation.js +101 -100
  466. package/dist/location-service-map.js +85 -84
  467. package/dist/location-services.js +351 -349
  468. package/dist/location.js +82 -81
  469. package/dist/mcp/client.js +88 -87
  470. package/dist/mcp/index.js +107 -106
  471. package/dist/mcp/instructions.js +124 -123
  472. package/dist/mcp/oauth.js +3 -3
  473. package/dist/mcp/stdio.js +87 -86
  474. package/dist/mime.js +1 -1
  475. package/dist/modal/models.js +7 -7
  476. package/dist/model-resolver.js +85 -85
  477. package/dist/model.js +6 -6
  478. package/dist/models-dev.js +87 -87
  479. package/dist/oauth/page.js +1 -1
  480. package/dist/permission/saved.js +81 -81
  481. package/dist/permission/sql.js +5 -5
  482. package/dist/permission.js +110 -109
  483. package/dist/persistent-pty/binary.bun.js +1 -1
  484. package/dist/persistent-pty/daemon.js +1 -1
  485. package/dist/persistent-pty/index.js +79 -79
  486. package/dist/persistent-pty/pty-binding.js +1 -1
  487. package/dist/persistent-pty.js +74 -74
  488. package/dist/plugin/agent.js +101 -100
  489. package/dist/plugin/command.js +98 -97
  490. package/dist/plugin/hooks.js +5 -5
  491. package/dist/plugin/host.js +215 -214
  492. package/dist/plugin/instance.js +1 -1
  493. package/dist/plugin/internal.js +325 -323
  494. package/dist/plugin/mcp-codemode-exclusion.js +3 -3
  495. package/dist/plugin/models-dev.js +76 -76
  496. package/dist/plugin/module.js +7 -7
  497. package/dist/plugin/optimize.js +2 -2
  498. package/dist/plugin/plan.js +99 -98
  499. package/dist/plugin/promise.js +1 -1
  500. package/dist/plugin/provider/alibaba.js +2 -2
  501. package/dist/plugin/provider/amazon-bedrock.js +2 -2
  502. package/dist/plugin/provider/azure.js +120 -119
  503. package/dist/plugin/provider/cerebras.js +2 -2
  504. package/dist/plugin/provider/cloudflare-ai-gateway.js +119 -118
  505. package/dist/plugin/provider/cloudflare-workers-ai.js +119 -118
  506. package/dist/plugin/provider/cohere.js +2 -2
  507. package/dist/plugin/provider/configured.js +116 -115
  508. package/dist/plugin/provider/digitalocean.js +80 -80
  509. package/dist/plugin/provider/dynamic.js +2 -2
  510. package/dist/plugin/provider/factory.js +1 -1
  511. package/dist/plugin/provider/gateway.js +2 -2
  512. package/dist/plugin/provider/github-copilot.js +81 -81
  513. package/dist/plugin/provider/gitlab.js +3 -3
  514. package/dist/plugin/provider/google-vertex.js +2 -2
  515. package/dist/plugin/provider/kilo.js +2 -2
  516. package/dist/plugin/provider/llmgateway.js +77 -77
  517. package/dist/plugin/provider/lmstudio.js +117 -116
  518. package/dist/plugin/provider/modal.js +80 -80
  519. package/dist/plugin/provider/nvidia.js +2 -2
  520. package/dist/plugin/provider/ollama.js +119 -118
  521. package/dist/plugin/provider/openai-compatible.js +1 -1
  522. package/dist/plugin/provider/openai.js +79 -79
  523. package/dist/plugin/provider/opencode.js +80 -80
  524. package/dist/plugin/provider/openrouter.js +3 -3
  525. package/dist/plugin/provider/perplexity.js +2 -2
  526. package/dist/plugin/provider/poe.js +77 -77
  527. package/dist/plugin/provider/sap-ai-core.js +3 -3
  528. package/dist/plugin/provider/sdk-factory.js +1 -1
  529. package/dist/plugin/provider/snowflake-cortex.js +119 -118
  530. package/dist/plugin/provider/venice.js +2 -2
  531. package/dist/plugin/provider/vercel.js +2 -2
  532. package/dist/plugin/provider/vllm.js +117 -116
  533. package/dist/plugin/provider/xai.js +78 -78
  534. package/dist/plugin/provider/zenmux.js +2 -2
  535. package/dist/plugin/provider.js +158 -157
  536. package/dist/plugin/sdk.js +71 -71
  537. package/dist/plugin/service.js +3 -3
  538. package/dist/plugin/skill.js +135 -134
  539. package/dist/plugin/source-directory.js +1 -1
  540. package/dist/plugin/supervisor.js +342 -340
  541. package/dist/plugin/update.js +6 -6
  542. package/dist/plugin/variant.js +4 -4
  543. package/dist/plugin/vcs/git.js +83 -83
  544. package/dist/plugin/vcs/hg.js +83 -83
  545. package/dist/plugin/warming.js +114 -113
  546. package/dist/plugin/websearch/exa.js +7 -7
  547. package/dist/plugin/websearch/firecrawl.js +8 -8
  548. package/dist/plugin/websearch/index.js +9 -8
  549. package/dist/plugin/websearch/mcp.js +6 -6
  550. package/dist/plugin/websearch/parallel.js +8 -8
  551. package/dist/plugin/websearch/tavily.js +6 -6
  552. package/dist/plugin/websearch/tinyfish.js +13 -0
  553. package/dist/plugin.js +220 -219
  554. package/dist/project/schema.js +8 -8
  555. package/dist/project/sql.js +4 -4
  556. package/dist/project.js +87 -86
  557. package/dist/provider.js +5 -5
  558. package/dist/pty/protocol.js +1 -1
  559. package/dist/pty/schema.js +3 -3
  560. package/dist/pty/ticket.js +1 -1
  561. package/dist/pty.js +96 -95
  562. package/dist/reference/instructions.js +86 -85
  563. package/dist/reference.js +86 -85
  564. package/dist/repository-cache.js +78 -77
  565. package/dist/repository.js +1 -1
  566. package/dist/ripgrep/binary.js +2 -2
  567. package/dist/ripgrep.js +95 -94
  568. package/dist/rpc.js +79 -78
  569. package/dist/schema.js +1 -1
  570. package/dist/session/command.js +73 -73
  571. package/dist/session/compaction.js +129 -128
  572. package/dist/session/context.js +149 -148
  573. package/dist/session/diff.js +94 -0
  574. package/dist/session/environment.js +5 -5
  575. package/dist/session/error.js +7 -7
  576. package/dist/session/event.js +1 -1
  577. package/dist/session/execution/restart.js +222 -220
  578. package/dist/session/execution.js +124 -123
  579. package/dist/session/generate.js +148 -147
  580. package/dist/session/history.js +15 -15
  581. package/dist/session/inbox.js +87 -87
  582. package/dist/session/info.js +3 -3
  583. package/dist/session/instruction-entry.js +78 -78
  584. package/dist/session/instruction-state.js +8 -8
  585. package/dist/session/instructions.js +94 -93
  586. package/dist/session/message-updater.js +2 -2
  587. package/dist/session/message.js +1 -1
  588. package/dist/session/model-request.js +115 -114
  589. package/dist/session/model-transport.js +9 -9
  590. package/dist/session/move.js +128 -127
  591. package/dist/session/projector.js +85 -85
  592. package/dist/session/prompt.js +102 -101
  593. package/dist/session/provider-context.js +3 -3
  594. package/dist/session/revert.js +87 -86
  595. package/dist/session/run-coordinator.js +3 -3
  596. package/dist/session/runner/index.js +3 -3
  597. package/dist/session/runner/llm.js +227 -226
  598. package/dist/session/runner/max-steps.js +1 -1
  599. package/dist/session/runner/model.js +87 -87
  600. package/dist/session/runner/publish-llm-event.js +3 -3
  601. package/dist/session/runner/retry.js +112 -111
  602. package/dist/session/runner/step.js +121 -120
  603. package/dist/session/runner/to-llm-message.js +2 -2
  604. package/dist/session/schema.js +5 -5
  605. package/dist/session/session.js +171 -170
  606. package/dist/session/shell.js +133 -132
  607. package/dist/session/skill.js +100 -99
  608. package/dist/session/sql.js +5 -5
  609. package/dist/session/stats.js +74 -74
  610. package/dist/session/store.js +86 -86
  611. package/dist/session/subagent-completion.js +1 -1
  612. package/dist/session/subagent-job.js +208 -206
  613. package/dist/session/system-prompt.js +3 -3
  614. package/dist/session/title.js +151 -150
  615. package/dist/session/to-session-error.js +109 -108
  616. package/dist/session/transfer.js +221 -219
  617. package/dist/session/usage.js +1 -1
  618. package/dist/session.js +219 -214
  619. package/dist/shell/parse.js +6 -6
  620. package/dist/shell/result.js +1 -1
  621. package/dist/shell/scan.js +1 -1
  622. package/dist/shell/select.js +7 -7
  623. package/dist/shell.js +135 -134
  624. package/dist/skill/discovery.js +6 -6
  625. package/dist/skill/instructions.js +104 -103
  626. package/dist/skill.js +107 -106
  627. package/dist/snapshot.js +88 -87
  628. package/dist/state.js +1 -1
  629. package/dist/tool/html-markdown.js +1 -1
  630. package/dist/tool/http-body.js +1 -1
  631. package/dist/tool/mcp.js +121 -120
  632. package/dist/tool/plugin/edit.js +117 -116
  633. package/dist/tool/plugin/file-diff.js +1 -1
  634. package/dist/tool/plugin/glob.js +122 -121
  635. package/dist/tool/plugin/grep.js +122 -121
  636. package/dist/tool/plugin/opencode.js +3 -3
  637. package/dist/tool/plugin/patch.js +119 -118
  638. package/dist/tool/plugin/question.js +102 -101
  639. package/dist/tool/plugin/read.js +123 -122
  640. package/dist/tool/plugin/shell.js +215 -213
  641. package/dist/tool/plugin/skill.js +104 -103
  642. package/dist/tool/plugin/subagent.js +213 -211
  643. package/dist/tool/plugin/webfetch.js +109 -108
  644. package/dist/tool/plugin/websearch.js +111 -110
  645. package/dist/tool/plugin/write.js +119 -118
  646. package/dist/tool/read-filesystem.js +98 -97
  647. package/dist/tool/runtime.js +1 -1
  648. package/dist/tool-output.js +8 -8
  649. package/dist/tool.js +13 -13
  650. package/dist/types/config.d.ts +5 -1
  651. package/dist/types/filesystem.d.ts +6 -1
  652. package/dist/types/plugin/websearch/index.d.ts +1 -1
  653. package/dist/types/plugin/websearch/tinyfish.d.ts +5 -0
  654. package/dist/types/session/diff.d.ts +48 -0
  655. package/dist/types/session/history.d.ts +40 -0
  656. package/dist/types/session/sql.d.ts +1 -1
  657. package/dist/types/session/transfer.d.ts +12 -1
  658. package/dist/types/session.d.ts +10 -0
  659. package/dist/types/shell/select.d.ts +1 -0
  660. package/dist/util/error-summary.js +1 -1
  661. package/dist/util/error.js +1 -1
  662. package/dist/util/iife.js +1 -1
  663. package/dist/util/lazy.js +1 -1
  664. package/dist/util/slug.js +1 -1
  665. package/dist/util/token.js +1 -1
  666. package/dist/util/which.js +1 -1
  667. package/dist/util/wildcard.js +1 -1
  668. package/dist/v1/config/agent.js +7 -7
  669. package/dist/v1/config/attachment.js +4 -4
  670. package/dist/v1/config/command.js +5 -5
  671. package/dist/v1/config/config.js +16 -16
  672. package/dist/v1/config/error.js +4 -4
  673. package/dist/v1/config/formatter.js +5 -5
  674. package/dist/v1/config/layout.js +1 -1
  675. package/dist/v1/config/lsp.js +5 -5
  676. package/dist/v1/config/mcp.js +4 -4
  677. package/dist/v1/config/migrate.js +4 -4
  678. package/dist/v1/config/permission.js +7 -7
  679. package/dist/v1/config/plugin.js +3 -3
  680. package/dist/v1/config/provider-options.js +1 -1
  681. package/dist/v1/config/provider.js +4 -4
  682. package/dist/v1/config/server.js +2 -2
  683. package/dist/v1/config/skills.js +3 -3
  684. package/dist/v1/permission.js +1 -1
  685. package/dist/vcs/patch.js +1 -1
  686. package/dist/vcs.js +86 -86
  687. package/dist/websearch.js +81 -81
  688. package/dist/wellknown/plugin.js +75 -75
  689. package/dist/wellknown.js +78 -78
  690. package/dist/workspace/driver.js +7 -7
  691. package/dist/workspace/sql.js +1 -1
  692. package/dist/workspace.js +79 -79
  693. package/dist/worktree/directory.js +4 -4
  694. package/dist/worktree/git.js +8 -7
  695. package/dist/worktree/refresh.js +343 -341
  696. package/dist/worktree/sql.js +5 -5
  697. package/dist/worktree.js +93 -92
  698. package/package.json +8 -8
  699. package/dist/chunks/repository-jqh9b0xq.js +0 -18
  700. package/dist/chunks/repository-qapv375x.js +0 -4
  701. package/dist/chunks/repository-qec2v6cx.js +0 -247
  702. package/dist/chunks/repository-sj51pd9c.js +0 -22
  703. /package/dist/chunks/{repository-0qkdqm5v.js → mime-0qkdqm5v.js} +0 -0
  704. /package/dist/chunks/{repository-0zkw76rk.js → mime-0zkw76rk.js} +0 -0
  705. /package/dist/chunks/{repository-17cy0kzp.js → mime-17cy0kzp.js} +0 -0
  706. /package/dist/chunks/{repository-1cnp2v09.js → mime-1cnp2v09.js} +0 -0
  707. /package/dist/chunks/{repository-1kg9ymc8.js → mime-1kg9ymc8.js} +0 -0
  708. /package/dist/chunks/{repository-2710q6r3.js → mime-2710q6r3.js} +0 -0
  709. /package/dist/chunks/{repository-2axfhc9x.js → mime-2axfhc9x.js} +0 -0
  710. /package/dist/chunks/{repository-2c3vjs8z.js → mime-2c3vjs8z.js} +0 -0
  711. /package/dist/chunks/{repository-359p4xyc.js → mime-359p4xyc.js} +0 -0
  712. /package/dist/chunks/{repository-3asan66x.js → mime-3asan66x.js} +0 -0
  713. /package/dist/chunks/{repository-3v8g72cx.js → mime-3v8g72cx.js} +0 -0
  714. /package/dist/chunks/{repository-3w5fmr99.js → mime-3w5fmr99.js} +0 -0
  715. /package/dist/chunks/{repository-3wcehsnq.js → mime-3wcehsnq.js} +0 -0
  716. /package/dist/chunks/{repository-43n2bw4t.js → mime-43n2bw4t.js} +0 -0
  717. /package/dist/chunks/{repository-4knz6hnm.js → mime-4knz6hnm.js} +0 -0
  718. /package/dist/chunks/{repository-4vcrnpx2.js → mime-4vcrnpx2.js} +0 -0
  719. /package/dist/chunks/{repository-4y7fprxs.js → mime-4y7fprxs.js} +0 -0
  720. /package/dist/chunks/{repository-53557ph1.js → mime-53557ph1.js} +0 -0
  721. /package/dist/chunks/{repository-550bvhaj.js → mime-550bvhaj.js} +0 -0
  722. /package/dist/chunks/{repository-6prwharc.js → mime-6prwharc.js} +0 -0
  723. /package/dist/chunks/{repository-7akdwqpd.js → mime-7akdwqpd.js} +0 -0
  724. /package/dist/chunks/{repository-7m9af43g.js → mime-7m9af43g.js} +0 -0
  725. /package/dist/chunks/{repository-822emrt2.js → mime-822emrt2.js} +0 -0
  726. /package/dist/chunks/{repository-88xbtdfr.js → mime-88xbtdfr.js} +0 -0
  727. /package/dist/chunks/{repository-8n3pysct.js → mime-8n3pysct.js} +0 -0
  728. /package/dist/chunks/{repository-922hggd3.js → mime-922hggd3.js} +0 -0
  729. /package/dist/chunks/{repository-9a4afbnw.js → mime-9a4afbnw.js} +0 -0
  730. /package/dist/chunks/{repository-9rqn6x4v.js → mime-9rqn6x4v.js} +0 -0
  731. /package/dist/chunks/{repository-a6k6eb26.js → mime-a6k6eb26.js} +0 -0
  732. /package/dist/chunks/{repository-af5trqkr.js → mime-af5trqkr.js} +0 -0
  733. /package/dist/chunks/{repository-afrmfg78.js → mime-afrmfg78.js} +0 -0
  734. /package/dist/chunks/{repository-aqzs7mqg.js → mime-aqzs7mqg.js} +0 -0
  735. /package/dist/chunks/{repository-atq7p7m5.js → mime-atq7p7m5.js} +0 -0
  736. /package/dist/chunks/{repository-bkyjaxrp.js → mime-bkyjaxrp.js} +0 -0
  737. /package/dist/chunks/{repository-bmr6ed5q.js → mime-bmr6ed5q.js} +0 -0
  738. /package/dist/chunks/{repository-cf4snx6d.js → mime-cf4snx6d.js} +0 -0
  739. /package/dist/chunks/{repository-cvy3z8tj.js → mime-cvy3z8tj.js} +0 -0
  740. /package/dist/chunks/{repository-d9fn303g.js → mime-d9fn303g.js} +0 -0
  741. /package/dist/chunks/{repository-d9jj8t3e.js → mime-d9jj8t3e.js} +0 -0
  742. /package/dist/chunks/{repository-dajrwvna.js → mime-dajrwvna.js} +0 -0
  743. /package/dist/chunks/{repository-dap0rakb.js → mime-dap0rakb.js} +0 -0
  744. /package/dist/chunks/{repository-df08tz66.js → mime-df08tz66.js} +0 -0
  745. /package/dist/chunks/{repository-dy18nga0.js → mime-dy18nga0.js} +0 -0
  746. /package/dist/chunks/{repository-e5kj55wp.js → mime-e5kj55wp.js} +0 -0
  747. /package/dist/chunks/{repository-e73j6tqm.js → mime-e73j6tqm.js} +0 -0
  748. /package/dist/chunks/{repository-ec1grn59.js → mime-ec1grn59.js} +0 -0
  749. /package/dist/chunks/{repository-eh3zwz77.js → mime-eh3zwz77.js} +0 -0
  750. /package/dist/chunks/{repository-emrn6kk6.js → mime-emrn6kk6.js} +0 -0
  751. /package/dist/chunks/{repository-f0mxakyp.js → mime-f0mxakyp.js} +0 -0
  752. /package/dist/chunks/{repository-f6n9ztr4.js → mime-f6n9ztr4.js} +0 -0
  753. /package/dist/chunks/{repository-faypxj3z.js → mime-faypxj3z.js} +0 -0
  754. /package/dist/chunks/{repository-fd410y7t.js → mime-fd410y7t.js} +0 -0
  755. /package/dist/chunks/{repository-fxgpk5d8.js → mime-fxgpk5d8.js} +0 -0
  756. /package/dist/chunks/{repository-g4wezp1m.js → mime-g4wezp1m.js} +0 -0
  757. /package/dist/chunks/{repository-g86h250q.js → mime-g86h250q.js} +0 -0
  758. /package/dist/chunks/{repository-gebd4c9n.js → mime-gebd4c9n.js} +0 -0
  759. /package/dist/chunks/{repository-gftt206x.js → mime-gftt206x.js} +0 -0
  760. /package/dist/chunks/{repository-hjbc5kem.js → mime-hjbc5kem.js} +0 -0
  761. /package/dist/chunks/{repository-hk9envan.js → mime-hk9envan.js} +0 -0
  762. /package/dist/chunks/{repository-hrnqkpcd.js → mime-hrnqkpcd.js} +0 -0
  763. /package/dist/chunks/{repository-j2ntwpah.js → mime-j2ntwpah.js} +0 -0
  764. /package/dist/chunks/{repository-j5zkgpj8.js → mime-j5zkgpj8.js} +0 -0
  765. /package/dist/chunks/{repository-jr7sbwjy.js → mime-jr7sbwjy.js} +0 -0
  766. /package/dist/chunks/{repository-jwfs4k6c.js → mime-jwfs4k6c.js} +0 -0
  767. /package/dist/chunks/{repository-jzg6c2d5.js → mime-jzg6c2d5.js} +0 -0
  768. /package/dist/chunks/{repository-mp448xyj.js → mime-mp448xyj.js} +0 -0
  769. /package/dist/chunks/{repository-msx8hqn2.js → mime-msx8hqn2.js} +0 -0
  770. /package/dist/chunks/{repository-n05xt0ee.js → mime-n05xt0ee.js} +0 -0
  771. /package/dist/chunks/{repository-n3j8tn72.js → mime-n3j8tn72.js} +0 -0
  772. /package/dist/chunks/{repository-njntx4h6.js → mime-njntx4h6.js} +0 -0
  773. /package/dist/chunks/{repository-q3sfg36h.js → mime-q3sfg36h.js} +0 -0
  774. /package/dist/chunks/{repository-q74kybfr.js → mime-q74kybfr.js} +0 -0
  775. /package/dist/chunks/{repository-qaymkmh1.js → mime-qaymkmh1.js} +0 -0
  776. /package/dist/chunks/{repository-qb87gjwd.js → mime-qb87gjwd.js} +0 -0
  777. /package/dist/chunks/{repository-qfa1cgps.js → mime-qfa1cgps.js} +0 -0
  778. /package/dist/chunks/{repository-qrg20bc0.js → mime-qrg20bc0.js} +0 -0
  779. /package/dist/chunks/{repository-rcb2kzg1.js → mime-rcb2kzg1.js} +0 -0
  780. /package/dist/chunks/{repository-sdp7kfr6.js → mime-sdp7kfr6.js} +0 -0
  781. /package/dist/chunks/{repository-sk3qaz4a.js → mime-sk3qaz4a.js} +0 -0
  782. /package/dist/chunks/{repository-ssg3fenm.js → mime-ssg3fenm.js} +0 -0
  783. /package/dist/chunks/{repository-twg0f83k.js → mime-twg0f83k.js} +0 -0
  784. /package/dist/chunks/{repository-w803qqfp.js → mime-w803qqfp.js} +0 -0
  785. /package/dist/chunks/{repository-wer8tq1h.js → mime-wer8tq1h.js} +0 -0
  786. /package/dist/chunks/{repository-wtztk69x.js → mime-wtztk69x.js} +0 -0
  787. /package/dist/chunks/{repository-x0ckcb58.js → mime-x0ckcb58.js} +0 -0
  788. /package/dist/chunks/{repository-x61499pn.js → mime-x61499pn.js} +0 -0
  789. /package/dist/chunks/{repository-y44na4kk.js → mime-y44na4kk.js} +0 -0
  790. /package/dist/chunks/{repository-y8cydn3q.js → mime-y8cydn3q.js} +0 -0
  791. /package/dist/chunks/{repository-y8f7s663.js → mime-y8f7s663.js} +0 -0
  792. /package/dist/chunks/{repository-ygaqb7jw.js → mime-ygaqb7jw.js} +0 -0
  793. /package/dist/chunks/{repository-ym463w8f.js → mime-ym463w8f.js} +0 -0
  794. /package/dist/chunks/{repository-z9919s4g.js → mime-z9919s4g.js} +0 -0
@@ -1,62 +1,62 @@
1
1
  import {
2
- Service78,
3
- node83
4
- } from "./repository-x6rcf4cj.js";
2
+ Service79,
3
+ node84
4
+ } from "./mime-3wjgak91.js";
5
5
  import {
6
6
  Event19,
7
- Service75,
8
- node79
9
- } from "./repository-sztg2hv4.js";
7
+ Service77,
8
+ node82
9
+ } from "./mime-y1hy1c31.js";
10
10
  import {
11
- Service45,
12
- node50
13
- } from "./repository-shg3amz7.js";
11
+ Service56,
12
+ node59
13
+ } from "./mime-xnxgv7d0.js";
14
14
  import {
15
15
  AbsolutePath2
16
- } from "./repository-922hggd3.js";
16
+ } from "./mime-922hggd3.js";
17
17
  import {
18
18
  Service66,
19
- node70
20
- } from "./repository-6wjjjhy6.js";
19
+ node71
20
+ } from "./mime-bawj3v5d.js";
21
21
  import {
22
22
  substitute2
23
- } from "./repository-yrznvahk.js";
23
+ } from "./mime-s4enseaf.js";
24
24
  import {
25
25
  normalize2
26
- } from "./repository-mqsc2h20.js";
26
+ } from "./mime-29seat8c.js";
27
27
  import {
28
28
  names4,
29
29
  discover3
30
- } from "./repository-kkdm9ajw.js";
30
+ } from "./mime-348n1k1m.js";
31
31
  import {
32
32
  plan2
33
- } from "./repository-j56e64zr.js";
33
+ } from "./mime-j56e64zr.js";
34
34
  import {
35
- Service46,
36
- Event11,
37
- node51
38
- } from "./repository-bkhh0yw4.js";
35
+ Service57,
36
+ Event13,
37
+ node60
38
+ } from "./mime-raczhzft.js";
39
39
  import {
40
40
  __export
41
- } from "./repository-9rqn6x4v.js";
41
+ } from "./mime-9rqn6x4v.js";
42
42
 
43
43
  // src/config.ts
44
44
  var exports_config = {};
45
45
  __export(exports_config, {
46
46
  Config: () => exports_config,
47
47
  Options: () => Options7,
48
- Service: () => Service44,
48
+ Service: () => Service55,
49
49
  Test: () => Test2,
50
- configured: () => configured8,
50
+ configured: () => configured7,
51
51
  latest: () => latest2,
52
- layer: () => layer18,
53
- node: () => node49,
52
+ layer: () => layer20,
53
+ node: () => node58,
54
54
  testLayer: () => testLayer2
55
55
  });
56
56
  import { makeLocationNode } from "@opencode/util/effect/app-node";
57
57
  import path from "path";
58
58
  import { isDeepStrictEqual } from "node:util";
59
- import { parse } from "jsonc-parser";
59
+ import { applyEdits, modify, parse } from "jsonc-parser";
60
60
  import { Context, Effect, FiberMap, Layer, Option, PubSub, Ref, Schema, Semaphore, Stream } from "effect";
61
61
  import {
62
62
  AgentsDirectory,
@@ -78,7 +78,7 @@ var Options7 = Schema.Struct({
78
78
  content: Schema.optional(Schema.String)
79
79
  });
80
80
 
81
- class Service44 extends Context.Service()("@opencode/Config") {
81
+ class Service55 extends Context.Service()("@opencode/Config") {
82
82
  }
83
83
 
84
84
  class Test2 extends Context.Service()("@opencode/Config/Test") {
@@ -92,16 +92,32 @@ var testLayer2 = (initial = []) => Layer.effectContext(Effect.gen(function* () {
92
92
  setEntries: (next) => Ref.set(entries, next),
93
93
  emitChange: (update) => PubSub.publish(updates, update).pipe(Effect.asVoid)
94
94
  });
95
- return Context.empty().pipe(Context.add(Service44, service), Context.add(Test2, service));
95
+ return Context.empty().pipe(Context.add(Service55, service), Context.add(Test2, service));
96
96
  }));
97
- var layer18 = (options) => Layer.effect(Service44, Effect.gen(function* () {
97
+ function decodePreferences(text) {
98
+ const errors = [];
99
+ const input = parse(text, errors, { allowTrailingComma: true });
100
+ if (errors.length)
101
+ return {};
102
+ const normalized = normalize2(input);
103
+ if (normalized.type === "rejected")
104
+ return {};
105
+ const info = Option.getOrUndefined(Schema.decodeUnknownOption(Info)(normalized.encoded));
106
+ return {
107
+ ...info?.shell === undefined ? {} : { shell: info.shell },
108
+ ...info?.websearch === undefined ? {} : { websearch: info.websearch }
109
+ };
110
+ }
111
+ var layer20 = (options) => Layer.effect(Service55, Effect.gen(function* () {
98
112
  const fs = yield* FSUtil.Service;
99
113
  const location = yield* Service66;
100
- const watcher = yield* Service45;
101
- const bus = yield* Service78;
102
- const credentials = yield* Service75;
103
- const wellknown = yield* Service46;
114
+ const watcher = yield* Service56;
115
+ const bus = yield* Service79;
116
+ const credentials = yield* Service77;
117
+ const globalService = yield* Global.Service;
118
+ const wellknown = yield* Service57;
104
119
  const reloadLock = Semaphore.makeUnsafe(1);
120
+ const updateLock = Semaphore.makeUnsafe(1);
105
121
  const decodeOptions = { errors: "all", onExcessProperty: "ignore", propertyOrder: "original" };
106
122
  const decodeInfo = Schema.decodeUnknownOption(Info, decodeOptions);
107
123
  const parseInfo = Effect.fn("Config.parseInfo")(function* (text, source) {
@@ -224,7 +240,7 @@ var layer18 = (options) => Layer.effect(Service44, Effect.gen(function* () {
224
240
  const pendingReloads = yield* PubSub.subscribe(reloads);
225
241
  yield* Stream.fromSubscription(pendingReloads).pipe(Stream.debounce("100 millis"), Stream.runForEach(() => reload().pipe(Effect.catchCause((cause) => Effect.logError("failed to reload config", { cause })))), Effect.forkScoped({ startImmediately: true }));
226
242
  yield* bus.subscribe(Event19.Switched).pipe(Stream.filterEffect((event) => wellknown.entries().pipe(Effect.map((entries) => entries.some((entry) => entry.integrationID === event.data.integrationID)), Effect.orElseSucceed(() => false))), Stream.runForEach(() => reload().pipe(Effect.catchCause((cause) => Effect.logError("failed to reload wellknown config", { cause })))), Effect.forkScoped({ startImmediately: true }));
227
- yield* bus.subscribe(Event11.Updated).pipe(Stream.runForEach(() => reload().pipe(Effect.catchCause((cause) => Effect.logError("failed to reload wellknown sources", { cause })))), Effect.forkScoped({ startImmediately: true }));
243
+ yield* bus.subscribe(Event13.Updated).pipe(Stream.runForEach(() => reload().pipe(Effect.catchCause((cause) => Effect.logError("failed to reload wellknown sources", { cause })))), Effect.forkScoped({ startImmediately: true }));
228
244
  yield* Effect.sleep("10 minutes").pipe(Effect.andThen(Effect.suspend(() => {
229
245
  if (!wellknown.snapshot().length)
230
246
  return Effect.void;
@@ -235,20 +251,53 @@ var layer18 = (options) => Layer.effect(Service44, Effect.gen(function* () {
235
251
  }).pipe(Effect.catchCause((cause) => Effect.logWarning("failed to refresh wellknown config", { cause })));
236
252
  })), Effect.forever, Effect.forkScoped({ startImmediately: true }));
237
253
  yield* reloadLock.withPermit(reconcile(initial));
238
- return Service44.of({
254
+ const globalConfigPath = Effect.fn("Config.globalConfigPath")(function* () {
255
+ const directory = initial.global ?? AbsolutePath2.make(globalService.config);
256
+ const candidates = names4.map((name) => path.join(directory, name));
257
+ const existing = yield* Effect.filter(candidates, fs.isFile);
258
+ return existing.at(-1) ?? path.join(directory, "opencode.jsonc");
259
+ });
260
+ const preferences = Effect.fn("Config.preferences")(function* () {
261
+ const filepath = yield* globalConfigPath();
262
+ const text = yield* fs.readFileStringSafe(filepath);
263
+ return text === undefined ? {} : decodePreferences(text);
264
+ });
265
+ const updatePreferences = Effect.fn("Config.updatePreferences")(function* (patch) {
266
+ const filepath = yield* globalConfigPath();
267
+ const text = (yield* fs.readFileStringSafe(filepath)) ?? `{}
268
+ `;
269
+ const updated = yield* Effect.try({
270
+ try: () => ["shell", "websearch"].reduce((content, key) => {
271
+ if (!Object.prototype.hasOwnProperty.call(patch, key))
272
+ return content;
273
+ return applyEdits(content, modify(content, [key], patch[key] === null ? undefined : patch[key], {
274
+ formattingOptions: { tabSize: 2, insertSpaces: true }
275
+ }));
276
+ }, text),
277
+ catch: (cause) => new FSUtil.FileSystemError({ method: "config.updatePreferences", cause })
278
+ });
279
+ yield* fs.writeWithDirs(filepath, updated.endsWith(`
280
+ `) ? updated : `${updated}
281
+ `);
282
+ yield* requestReload;
283
+ return decodePreferences(updated);
284
+ }, (effect) => updateLock.withPermit(effect));
285
+ return Service55.of({
239
286
  entries: Effect.fnUntraced(function* () {
240
287
  return configs;
241
288
  }),
242
- changes: () => Stream.fromPubSub(updates)
289
+ changes: () => Stream.fromPubSub(updates),
290
+ preferences,
291
+ updatePreferences
243
292
  });
244
293
  }));
245
- function configured8(options) {
294
+ function configured7(options) {
246
295
  return makeLocationNode({
247
- service: Service44,
248
- layer: layer18(options),
249
- deps: [node50, node83, FSUtil.node, Global.node, node70, node79, node51]
296
+ service: Service55,
297
+ layer: layer20(options),
298
+ deps: [node59, node84, FSUtil.node, Global.node, node71, node82, node60]
250
299
  });
251
300
  }
252
- var node49 = configured8();
301
+ var node58 = configured7();
253
302
 
254
- export { latest2, Options7, Service44, Test2, testLayer2, layer18, configured8, node49, exports_config };
303
+ export { latest2, Options7, Service55, Test2, testLayer2, layer20, configured7, node58, exports_config };
@@ -1,29 +1,29 @@
1
1
  import {
2
2
  Service66,
3
- node70
4
- } from "./repository-6wjjjhy6.js";
3
+ node71
4
+ } from "./mime-bawj3v5d.js";
5
5
  import {
6
6
  create3
7
- } from "./repository-kg06axw8.js";
7
+ } from "./mime-kg06axw8.js";
8
8
  import {
9
9
  __export
10
- } from "./repository-9rqn6x4v.js";
10
+ } from "./mime-9rqn6x4v.js";
11
11
 
12
12
  // src/formatter.ts
13
13
  var exports_formatter2 = {};
14
14
  __export(exports_formatter2, {
15
15
  Formatter: () => exports_formatter2,
16
- Service: () => Service14,
17
- node: () => node17
16
+ Service: () => Service49,
17
+ node: () => node52
18
18
  });
19
19
  import { Context, Effect, Layer } from "effect";
20
20
  import { ChildProcess } from "effect/unstable/process";
21
21
  import path from "path";
22
22
  import { makeLocationNode } from "@opencode/util/effect/app-node";
23
23
  import { AppProcess } from "@opencode/util/process";
24
- class Service14 extends Context.Service()("@opencode/v2/Formatter") {
24
+ class Service49 extends Context.Service()("@opencode/v2/Formatter") {
25
25
  }
26
- var layer = Layer.effect(Service14, Effect.gen(function* () {
26
+ var layer = Layer.effect(Service49, Effect.gen(function* () {
27
27
  const location = yield* Service66;
28
28
  const processes = yield* AppProcess.Service;
29
29
  const commands = new WeakMap;
@@ -85,12 +85,12 @@ var layer = Layer.effect(Service14, Effect.gen(function* () {
85
85
  }
86
86
  return false;
87
87
  });
88
- return Service14.of({ transform: state.transform, reload: state.reload, file });
88
+ return Service49.of({ transform: state.transform, reload: state.reload, file });
89
89
  }));
90
- var node17 = makeLocationNode({
91
- service: Service14,
90
+ var node52 = makeLocationNode({
91
+ service: Service49,
92
92
  layer,
93
- deps: [node70, AppProcess.node]
93
+ deps: [node71, AppProcess.node]
94
94
  });
95
95
 
96
- export { Service14, node17, exports_formatter2 };
96
+ export { Service49, node52, exports_formatter2 };
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  createProviderPlugin2
3
- } from "./repository-ym463w8f.js";
3
+ } from "./mime-ym463w8f.js";
4
4
 
5
5
  // src/plugin/provider/alibaba.ts
6
6
  var AlibabaPlugin2 = createProviderPlugin2({
@@ -1,19 +1,19 @@
1
1
  import {
2
2
  fromPromise2
3
- } from "./repository-zr2ceqn5.js";
3
+ } from "./mime-zr2ceqn5.js";
4
4
  import {
5
- Service45
6
- } from "./repository-shg3amz7.js";
5
+ Service56
6
+ } from "./mime-xnxgv7d0.js";
7
7
  import {
8
8
  __export
9
- } from "./repository-9rqn6x4v.js";
9
+ } from "./mime-9rqn6x4v.js";
10
10
 
11
11
  // src/plugin/module.ts
12
12
  var exports_module = {};
13
13
  __export(exports_module, {
14
14
  LoadError: () => LoadError2,
15
15
  PluginModule: () => exports_module,
16
- make: () => make6
16
+ make: () => make3
17
17
  });
18
18
  import { Host } from "@opencode/plugin/host";
19
19
  import { createPluginSources } from "@opencode/plugin/source";
@@ -22,8 +22,8 @@ import { Deferred, Effect, FiberSet, PubSub, Schema, Stream } from "effect";
22
22
  import path from "path";
23
23
  import { stat } from "node:fs/promises";
24
24
  import { fileURLToPath, pathToFileURL } from "url";
25
- var make6 = Effect.fn("PluginModule.make")(function* () {
26
- const watcher = yield* Service45;
25
+ var make3 = Effect.fn("PluginModule.make")(function* () {
26
+ const watcher = yield* Service56;
27
27
  const scope = yield* Effect.scope;
28
28
  const runPromise = yield* FiberSet.makeRuntimePromise();
29
29
  const changes = yield* PubSub.unbounded();
@@ -102,4 +102,4 @@ var load = Effect.fn("PluginModule.load")(function* (operation, sources, options
102
102
  };
103
103
  });
104
104
 
105
- export { make6, LoadError2, exports_module };
105
+ export { make3, LoadError2, exports_module };
@@ -1,52 +1,52 @@
1
1
  import {
2
2
  NonNegativeInt2,
3
3
  PositiveInt2
4
- } from "./repository-922hggd3.js";
4
+ } from "./mime-922hggd3.js";
5
5
  import {
6
- Info16
7
- } from "./repository-g190xswt.js";
6
+ Info21
7
+ } from "./mime-xdk9p2qn.js";
8
8
  import {
9
- Info13
10
- } from "./repository-za4pw5w1.js";
9
+ Info20
10
+ } from "./mime-qs001aqx.js";
11
11
  import {
12
- Info11
13
- } from "./repository-dj9sq318.js";
12
+ Info14
13
+ } from "./mime-c78bbtc9.js";
14
14
  import {
15
- Info15
16
- } from "./repository-g8d3gcyj.js";
15
+ Info13
16
+ } from "./mime-6hh8tjw2.js";
17
17
  import {
18
- Info9
19
- } from "./repository-10jtetaj.js";
18
+ Info18
19
+ } from "./mime-dg5bcj4q.js";
20
20
  import {
21
21
  Layout2
22
- } from "./repository-21r38tys.js";
22
+ } from "./mime-21r38tys.js";
23
23
  import {
24
- Info17
25
- } from "./repository-r33ff4dw.js";
24
+ Info15
25
+ } from "./mime-rph3zd4r.js";
26
26
  import {
27
- Info10
28
- } from "./repository-pecb0brz.js";
27
+ Info17
28
+ } from "./mime-yt0fqk68.js";
29
29
  import {
30
30
  Spec2
31
- } from "./repository-2k8khapm.js";
31
+ } from "./mime-7dqw4kz8.js";
32
32
  import {
33
- Info14
34
- } from "./repository-0r7yqxbf.js";
33
+ Info16
34
+ } from "./mime-hnr5yq9h.js";
35
35
  import {
36
36
  Server2
37
- } from "./repository-zeh9ct20.js";
37
+ } from "./mime-zeh9ct20.js";
38
38
  import {
39
- Info12
40
- } from "./repository-j83byb14.js";
39
+ Info19
40
+ } from "./mime-r98e92ep.js";
41
41
  import {
42
42
  __export
43
- } from "./repository-9rqn6x4v.js";
43
+ } from "./mime-9rqn6x4v.js";
44
44
 
45
45
  // src/v1/config/config.ts
46
46
  var exports_config2 = {};
47
47
  __export(exports_config2, {
48
48
  ConfigV1: () => exports_config2,
49
- Info: () => Info8,
49
+ Info: () => Info12,
50
50
  WellKnown: () => WellKnown2
51
51
  });
52
52
  import { Schema } from "effect";
@@ -59,7 +59,7 @@ var LogLevelRef = Schema.Literals(["DEBUG", "INFO", "WARN", "ERROR"]).annotate({
59
59
  identifier: "LogLevel",
60
60
  description: "Log level"
61
61
  });
62
- var Info8 = Schema.Struct({
62
+ var Info12 = Schema.Struct({
63
63
  $schema: Schema.optional(Schema.String).annotate({
64
64
  description: "JSON schema reference for configuration validation"
65
65
  }),
@@ -68,10 +68,10 @@ var Info8 = Schema.Struct({
68
68
  server: Schema.optional(Server2).annotate({
69
69
  description: "Server configuration for opencode serve and web commands"
70
70
  }),
71
- command: Schema.optional(Schema.Record(Schema.String, Info15)).annotate({
71
+ command: Schema.optional(Schema.Record(Schema.String, Info13)).annotate({
72
72
  description: "Command configuration, see https://opencode.ai/docs/commands"
73
73
  }),
74
- skills: Schema.optional(Info12).annotate({ description: "Additional skill folder paths" }),
74
+ skills: Schema.optional(Info19).annotate({ description: "Additional skill folder paths" }),
75
75
  references: Schema.optional(ConfigReference.Info).annotate({
76
76
  description: "Named git or local directory references"
77
77
  }),
@@ -113,33 +113,33 @@ var Info8 = Schema.Struct({
113
113
  username: Schema.optional(Schema.String).annotate({
114
114
  description: "Custom username to display in conversations instead of system username"
115
115
  }),
116
- mode: Schema.optional(Schema.StructWithRest(Schema.Struct({ build: Schema.optional(Info13), plan: Schema.optional(Info13) }), [Schema.Record(Schema.String, Info13)])).annotate({ description: "@deprecated Use `agent` field instead." }),
116
+ mode: Schema.optional(Schema.StructWithRest(Schema.Struct({ build: Schema.optional(Info20), plan: Schema.optional(Info20) }), [Schema.Record(Schema.String, Info20)])).annotate({ description: "@deprecated Use `agent` field instead." }),
117
117
  agent: Schema.optional(Schema.StructWithRest(Schema.Struct({
118
- plan: Schema.optional(Info13),
119
- build: Schema.optional(Info13),
120
- general: Schema.optional(Info13),
121
- explore: Schema.optional(Info13),
122
- title: Schema.optional(Info13),
123
- summary: Schema.optional(Info13),
124
- compaction: Schema.optional(Info13)
125
- }), [Schema.Record(Schema.String, Info13)])).annotate({ description: "Agent configuration, see https://opencode.ai/docs/agents" }),
126
- provider: Schema.optional(Schema.Record(Schema.String, Info14)).annotate({
118
+ plan: Schema.optional(Info20),
119
+ build: Schema.optional(Info20),
120
+ general: Schema.optional(Info20),
121
+ explore: Schema.optional(Info20),
122
+ title: Schema.optional(Info20),
123
+ summary: Schema.optional(Info20),
124
+ compaction: Schema.optional(Info20)
125
+ }), [Schema.Record(Schema.String, Info20)])).annotate({ description: "Agent configuration, see https://opencode.ai/docs/agents" }),
126
+ provider: Schema.optional(Schema.Record(Schema.String, Info16)).annotate({
127
127
  description: "Custom provider configurations and model overrides"
128
128
  }),
129
- mcp: Schema.optional(Schema.Record(Schema.String, Schema.Union([Info10, Schema.Struct({ enabled: Schema.Boolean })]))).annotate({ description: "MCP (Model Context Protocol) server configurations" }),
130
- formatter: Schema.optional(Info9).annotate({
129
+ mcp: Schema.optional(Schema.Record(Schema.String, Schema.Union([Info17, Schema.Struct({ enabled: Schema.Boolean })]))).annotate({ description: "MCP (Model Context Protocol) server configurations" }),
130
+ formatter: Schema.optional(Info18).annotate({
131
131
  description: "Enable or configure formatters. Omit or set to false to disable, true to enable built-ins, or an object to enable built-ins with overrides."
132
132
  }),
133
- lsp: Schema.optional(Info17).annotate({
133
+ lsp: Schema.optional(Info15).annotate({
134
134
  description: "Enable or configure LSP servers. Omit or set to false to disable, true to enable built-ins, or an object to enable built-ins with overrides."
135
135
  }),
136
136
  instructions: Schema.optional(Schema.mutable(Schema.Array(Schema.String))).annotate({
137
137
  description: "Additional instruction files or patterns to include"
138
138
  }),
139
139
  layout: Schema.optional(Layout2).annotate({ description: "@deprecated Always uses stretch layout." }),
140
- permission: Schema.optional(Info16),
140
+ permission: Schema.optional(Info21),
141
141
  tools: Schema.optional(Schema.Record(Schema.String, Schema.Boolean)),
142
- attachment: Schema.optional(Info11).annotate({
142
+ attachment: Schema.optional(Info14).annotate({
143
143
  description: "Attachment processing configuration, including image size limits and resizing behavior"
144
144
  }),
145
145
  enterprise: Schema.optional(Schema.Struct({ url: Schema.optional(Schema.String).annotate({ description: "Enterprise URL" }) })),
@@ -191,4 +191,4 @@ var Info8 = Schema.Struct({
191
191
  }))
192
192
  }).annotate({ identifier: "Config" });
193
193
 
194
- export { WellKnown2, Info8, exports_config2 };
194
+ export { WellKnown2, Info12, exports_config2 };
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  isAISDK2,
3
3
  packageName2
4
- } from "./repository-pye8sh6e.js";
4
+ } from "./mime-xnqxh1k4.js";
5
5
 
6
6
  // src/plugin/provider/zenmux.ts
7
7
  import { Effect } from "effect";
@@ -1,12 +1,12 @@
1
1
  import {
2
- ID14
3
- } from "./repository-nxamnhdf.js";
2
+ ID16
3
+ } from "./mime-0kcg9p5c.js";
4
4
  import {
5
- Service44
6
- } from "./repository-smnv2tch.js";
5
+ Service55
6
+ } from "./mime-6q31zrbr.js";
7
7
  import {
8
8
  foldSettings2
9
- } from "./repository-5b88mxz1.js";
9
+ } from "./mime-bjbqe5j4.js";
10
10
 
11
11
  // src/plugin/provider/vllm.ts
12
12
  import { define } from "@opencode/plugin/effect/plugin";
@@ -26,7 +26,7 @@ function make4(origin = "http://127.0.0.1:8000", interval = "30 seconds") {
26
26
  id: "opencode.provider.vllm",
27
27
  effect: Effect.fn(function* (ctx) {
28
28
  const http = HttpClient.filterStatusOk(yield* HttpClient.HttpClient);
29
- const config = yield* Service44;
29
+ const config = yield* Service55;
30
30
  const source = { current: configured(yield* config.entries(), origin) };
31
31
  const loaded = { models: [], hash: "[]" };
32
32
  yield* ctx.integration.transform((integrations) => {
@@ -53,7 +53,7 @@ function make4(origin = "http://127.0.0.1:8000", interval = "30 seconds") {
53
53
  });
54
54
  for (const item of loaded.models) {
55
55
  catalog.model.update(providerID, item.id, (model) => {
56
- model.modelID = ID14.make(item.id);
56
+ model.modelID = ID16.make(item.id);
57
57
  model.name = item.id;
58
58
  model.capabilities = { tools: false, input: ["text"], output: ["text"] };
59
59
  if (typeof item.max_model_len === "number" && item.max_model_len > 0)
@@ -2,7 +2,7 @@ import {
2
2
  getTableColumnsRuntime2,
3
3
  orderSelectedFields2,
4
4
  mapUpdateSet2
5
- } from "./repository-emrn6kk6.js";
5
+ } from "./mime-emrn6kk6.js";
6
6
 
7
7
  // src/database/drizzle/sqlite-core/effect/insert.ts
8
8
  import { applyEffectWrapper } from "drizzle-orm/effect-core/query-effect";
@@ -1,16 +1,16 @@
1
1
  import {
2
2
  __export
3
- } from "./repository-9rqn6x4v.js";
3
+ } from "./mime-9rqn6x4v.js";
4
4
 
5
5
  // src/v1/config/plugin.ts
6
6
  var exports_plugin3 = {};
7
7
  __export(exports_plugin3, {
8
8
  ConfigPluginV1: () => exports_plugin3,
9
- Options: () => Options8,
9
+ Options: () => Options9,
10
10
  Spec: () => Spec2
11
11
  });
12
12
  import { Schema } from "effect";
13
- var Options8 = Schema.Record(Schema.String, Schema.Unknown);
14
- var Spec2 = Schema.Union([Schema.String, Schema.mutable(Schema.Tuple([Schema.String, Options8]))]);
13
+ var Options9 = Schema.Record(Schema.String, Schema.Unknown);
14
+ var Spec2 = Schema.Union([Schema.String, Schema.mutable(Schema.Tuple([Schema.String, Options9]))]);
15
15
 
16
- export { Options8, Spec2, exports_plugin3 };
16
+ export { Options9, Spec2, exports_plugin3 };
@@ -1,27 +1,27 @@
1
1
  import {
2
- ID16,
2
+ ID17,
3
3
  aisdk2,
4
4
  mergeOverlay2
5
- } from "./repository-pye8sh6e.js";
5
+ } from "./mime-xnqxh1k4.js";
6
6
  import {
7
- ID14,
7
+ ID16,
8
8
  VariantID2,
9
- Info29,
9
+ Info31,
10
10
  compatibility2
11
- } from "./repository-nxamnhdf.js";
11
+ } from "./mime-0kcg9p5c.js";
12
12
  import {
13
13
  __export
14
- } from "./repository-9rqn6x4v.js";
14
+ } from "./mime-9rqn6x4v.js";
15
15
 
16
16
  // src/modal/models.ts
17
- var exports_models2 = {};
18
- __export(exports_models2, {
19
- ModalModels: () => exports_models2,
20
- get: () => get3
17
+ var exports_models = {};
18
+ __export(exports_models, {
19
+ ModalModels: () => exports_models,
20
+ get: () => get2
21
21
  });
22
22
  import { Money } from "@opencode/schema/money";
23
23
  import { Option, Schema } from "effect";
24
- var providerID = ID16.make("modal");
24
+ var providerID = ID17.make("modal");
25
25
  var ReasoningOption = Schema.Struct({
26
26
  type: Schema.Literal("effort"),
27
27
  values: Schema.Array(Schema.NullOr(Schema.String))
@@ -53,7 +53,7 @@ var RemoteModel = Schema.Struct({
53
53
  var Response = Schema.Struct({ data: Schema.Array(Schema.Unknown) });
54
54
  var decodeResponse = Schema.decodeUnknownSync(Response);
55
55
  var decodeModel = Schema.decodeUnknownOption(RemoteModel);
56
- async function get3(baseURL, apiKey, existing) {
56
+ async function get2(baseURL, apiKey, existing) {
57
57
  const response = await fetch(`${baseURL.replace(/\/+$/, "")}/models`, {
58
58
  headers: {
59
59
  Authorization: `Bearer ${apiKey}`
@@ -69,8 +69,8 @@ async function get3(baseURL, apiKey, existing) {
69
69
  const templates = new Map(existing.map((model) => [model.id, model]));
70
70
  const result = new Map;
71
71
  for (const item of remote) {
72
- const template = templates.get(ID14.make(item.base_model_id ?? item.hugging_face_id ?? item.id));
73
- const id = ID14.make(item.id);
72
+ const template = templates.get(ID16.make(item.base_model_id ?? item.hugging_face_id ?? item.id));
73
+ const id = ID16.make(item.id);
74
74
  result.set(id, build(id, item, baseURL, template));
75
75
  }
76
76
  return result;
@@ -88,10 +88,10 @@ function limit(value, fallback) {
88
88
  function build(id, remote, baseURL, previous) {
89
89
  const cost = previous?.cost[0];
90
90
  const input = previous?.limit.input;
91
- return Info29.make({
92
- ...Info29.default(providerID, id),
91
+ return Info31.make({
92
+ ...Info31.default(providerID, id),
93
93
  id,
94
- modelID: ID14.make(remote.id),
94
+ modelID: ID16.make(remote.id),
95
95
  providerID,
96
96
  name: remote.name ?? previous?.name ?? remote.id,
97
97
  family: previous?.family,
@@ -138,4 +138,4 @@ function variants(remote) {
138
138
  return [...seen.values()];
139
139
  }
140
140
 
141
- export { get3, exports_models2 };
141
+ export { get2, exports_models };