@opencode/core 0.0.0-dev-20638 → 0.0.0-dev-20640

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 (467) hide show
  1. package/dist/agent.js +61 -61
  2. package/dist/aisdk-native.js +66 -66
  3. package/dist/aisdk.js +71 -71
  4. package/dist/app.js +9 -9
  5. package/dist/bus.js +54 -54
  6. package/dist/chunks/{kv-ykchqbdg.js → kv-00zna71j.js} +1 -1
  7. package/dist/chunks/{kv-gnn7jhj8.js → kv-018bn4f4.js} +13 -13
  8. package/dist/chunks/{kv-sd8sm53s.js → kv-04bfvmpq.js} +2 -2
  9. package/dist/chunks/{kv-w9903dp5.js → kv-05jdtgp8.js} +9 -9
  10. package/dist/chunks/{kv-am5d478n.js → kv-07t56emn.js} +82 -82
  11. package/dist/chunks/{kv-rmjmvf0k.js → kv-0dm71e41.js} +13 -13
  12. package/dist/chunks/{kv-vn0x08py.js → kv-0fgqvstr.js} +10 -10
  13. package/dist/chunks/{kv-3y2y4nc2.js → kv-0gscdz11.js} +40 -40
  14. package/dist/chunks/{kv-5zt2q5ce.js → kv-0knbg5a8.js} +6 -6
  15. package/dist/chunks/{kv-d99q2kf9.js → kv-0mxj9fd6.js} +7 -7
  16. package/dist/chunks/{kv-0jw53tw8.js → kv-0y3sqs0q.js} +1 -1
  17. package/dist/chunks/{kv-f0swrhq5.js → kv-11nb2wm6.js} +18 -18
  18. package/dist/chunks/{kv-nh2sdsz2.js → kv-144xedv6.js} +29 -29
  19. package/dist/chunks/{kv-e8qyrgb1.js → kv-150yg2gd.js} +3 -3
  20. package/dist/chunks/{kv-c1jmz0dd.js → kv-1bf59rb9.js} +8 -8
  21. package/dist/chunks/{kv-k8kjf1xa.js → kv-1f7zsz3w.js} +31 -31
  22. package/dist/chunks/{kv-psdhy0c9.js → kv-1k745sen.js} +7 -7
  23. package/dist/chunks/{kv-ec2y1rs7.js → kv-1qa15gwt.js} +12 -12
  24. package/dist/chunks/{kv-f72k0wyq.js → kv-28r17msq.js} +13 -13
  25. package/dist/chunks/{kv-vet6ekdp.js → kv-291skbwy.js} +8 -8
  26. package/dist/chunks/{kv-3z80er74.js → kv-2cwhkz2n.js} +5 -5
  27. package/dist/chunks/{kv-7z362xx8.js → kv-2fcn0a3n.js} +20 -20
  28. package/dist/chunks/{kv-zmfyv7f1.js → kv-2qkz3cac.js} +1 -1
  29. package/dist/chunks/{kv-qmqgtz8f.js → kv-2sejkfem.js} +7 -7
  30. package/dist/chunks/{kv-es77a9ge.js → kv-2xd3k6k6.js} +15 -15
  31. package/dist/chunks/{kv-c9sr4239.js → kv-314vn2g9.js} +10 -10
  32. package/dist/chunks/{kv-akagqmhc.js → kv-3axgwepp.js} +28 -28
  33. package/dist/chunks/{kv-zf5wv535.js → kv-3dnqr9q0.js} +7 -7
  34. package/dist/chunks/{kv-769wxhem.js → kv-3ehr1n9z.js} +33 -33
  35. package/dist/chunks/{kv-cvgnxgr7.js → kv-3fj5q6bc.js} +44 -44
  36. package/dist/chunks/{kv-541w9c89.js → kv-3m2w0hrx.js} +11 -11
  37. package/dist/chunks/{kv-97cfts9w.js → kv-3pbt6ms1.js} +13 -13
  38. package/dist/chunks/{kv-66y76zaq.js → kv-3v7e0nj5.js} +19 -19
  39. package/dist/chunks/kv-4639mgfq.js +26 -0
  40. package/dist/chunks/{kv-3784c8ef.js → kv-4hsstsq2.js} +16 -16
  41. package/dist/chunks/{kv-kzk474gs.js → kv-4mtsj6py.js} +10 -10
  42. package/dist/chunks/{kv-bw9zjykr.js → kv-4mwpykj0.js} +5 -5
  43. package/dist/chunks/{kv-a91mm6pd.js → kv-50202j3g.js} +21 -21
  44. package/dist/chunks/{kv-bfhjdpf9.js → kv-504addgz.js} +12 -12
  45. package/dist/chunks/{kv-vfn4q1c6.js → kv-50jx1ftv.js} +12 -12
  46. package/dist/chunks/{kv-de13b2w8.js → kv-53dxyvp1.js} +11 -11
  47. package/dist/chunks/{kv-fcf2thwx.js → kv-59j91h7p.js} +17 -17
  48. package/dist/chunks/{kv-0rce4jxn.js → kv-5h5wp7dv.js} +8 -8
  49. package/dist/chunks/{kv-nqxj0yn4.js → kv-5pyjqqve.js} +1 -1
  50. package/dist/chunks/{kv-v4f2fze8.js → kv-5rmvjxjt.js} +20 -20
  51. package/dist/chunks/{kv-r2tr70hw.js → kv-5thf4vwx.js} +10 -10
  52. package/dist/chunks/{kv-5f9vzzra.js → kv-606mcbpt.js} +24 -24
  53. package/dist/chunks/{kv-jtvf2jb4.js → kv-6443pe5d.js} +9 -9
  54. package/dist/chunks/{kv-rabz0548.js → kv-6858qs0d.js} +12 -12
  55. package/dist/chunks/{kv-tbjhtzyt.js → kv-6r5yv9td.js} +28 -28
  56. package/dist/chunks/{kv-g4w6v84v.js → kv-6w1vezwk.js} +17 -17
  57. package/dist/chunks/{kv-xqht2e7y.js → kv-6w9b2v2t.js} +9 -9
  58. package/dist/chunks/{kv-5jm289mv.js → kv-6xtnp6pv.js} +15 -15
  59. package/dist/chunks/{kv-acznmef4.js → kv-6ze8z48e.js} +8 -8
  60. package/dist/chunks/{kv-cfgev5fc.js → kv-789vsg7z.js} +150 -150
  61. package/dist/chunks/{kv-vknqf5hb.js → kv-797efr59.js} +15 -15
  62. package/dist/chunks/{kv-qaq2bwnf.js → kv-7c9bbt45.js} +4 -4
  63. package/dist/chunks/{kv-4njb8sjz.js → kv-89xk2mrn.js} +11 -11
  64. package/dist/chunks/{kv-hh9qw4pz.js → kv-8aj500b4.js} +5 -5
  65. package/dist/chunks/{kv-g7e7y44y.js → kv-8bk2q5by.js} +15 -15
  66. package/dist/chunks/{kv-cq12npaq.js → kv-8cseh6jw.js} +15 -15
  67. package/dist/chunks/{kv-954r981e.js → kv-906tg66d.js} +9 -9
  68. package/dist/chunks/{kv-r5nk2c05.js → kv-90rwhrb1.js} +9 -9
  69. package/dist/chunks/{kv-pnx8jqpz.js → kv-91xts6ft.js} +35 -35
  70. package/dist/chunks/{kv-mfjr1h2x.js → kv-9kf9wkxz.js} +6 -6
  71. package/dist/chunks/{kv-qsx4fnpq.js → kv-9phyjc4n.js} +8 -8
  72. package/dist/chunks/{kv-s8d7rejh.js → kv-9t7a50xb.js} +3 -3
  73. package/dist/chunks/{kv-krejfd1h.js → kv-9y0z6c2k.js} +5 -5
  74. package/dist/chunks/{kv-ctbj4zyv.js → kv-9yev5r92.js} +53 -53
  75. package/dist/chunks/{kv-q5ykhdzx.js → kv-a5wq81es.js} +8 -8
  76. package/dist/chunks/{kv-181xftrn.js → kv-a8vnbk5s.js} +40 -40
  77. package/dist/chunks/{kv-7pb7xpah.js → kv-a92h78km.js} +2 -2
  78. package/dist/chunks/{kv-mdtczhqa.js → kv-aa77x952.js} +20 -20
  79. package/dist/chunks/{kv-a2b9r020.js → kv-ad98q5fk.js} +2 -2
  80. package/dist/chunks/{kv-x661k3y3.js → kv-addxnjmp.js} +3 -3
  81. package/dist/chunks/{kv-dk81va9j.js → kv-amzhydp5.js} +19 -19
  82. package/dist/chunks/{kv-dk7aapm0.js → kv-apeyh75a.js} +40 -40
  83. package/dist/chunks/{kv-exv1vest.js → kv-as8ynvdv.js} +21 -21
  84. package/dist/chunks/{kv-tsqf5x7w.js → kv-at6chbkf.js} +20 -20
  85. package/dist/chunks/{kv-z5zt2xra.js → kv-b1vjxa7a.js} +5 -5
  86. package/dist/chunks/{kv-hs1x7rht.js → kv-bebjmbk5.js} +7 -7
  87. package/dist/chunks/{kv-xsgk3b13.js → kv-bezhzanq.js} +7 -7
  88. package/dist/chunks/{kv-4xqz2kzs.js → kv-bkvz5s71.js} +3 -3
  89. package/dist/chunks/{kv-b53mfyph.js → kv-brsymgq7.js} +7 -7
  90. package/dist/chunks/{kv-8a627zjw.js → kv-bwaap7p9.js} +1 -1
  91. package/dist/chunks/{kv-hdnsej8e.js → kv-bx744vwq.js} +2 -2
  92. package/dist/chunks/{kv-0yb8695g.js → kv-c1eyt60v.js} +17 -17
  93. package/dist/chunks/{kv-h3xh88mt.js → kv-c6sqj817.js} +20 -20
  94. package/dist/chunks/{kv-j9n4penq.js → kv-cghk8e58.js} +18 -18
  95. package/dist/chunks/{kv-a3y1te1t.js → kv-ct739ed2.js} +34 -34
  96. package/dist/chunks/{kv-jmz67v6d.js → kv-d1ve849e.js} +18 -18
  97. package/dist/chunks/{kv-5yqam25v.js → kv-d5q12aqz.js} +4 -4
  98. package/dist/chunks/{kv-4eq8w0dz.js → kv-de52ckkz.js} +3 -3
  99. package/dist/chunks/{kv-ftqbsq0r.js → kv-dje26vdb.js} +2 -2
  100. package/dist/chunks/{kv-87x5xn13.js → kv-dpfrkhds.js} +7 -7
  101. package/dist/chunks/{kv-t88m99yp.js → kv-dpnnxfwt.js} +8 -8
  102. package/dist/chunks/{kv-x8pjv9xj.js → kv-drmw43ea.js} +19 -19
  103. package/dist/chunks/{kv-4v7qdvcn.js → kv-dxj72tfx.js} +4 -4
  104. package/dist/chunks/{kv-1en3ymky.js → kv-e8wga5c8.js} +22 -22
  105. package/dist/chunks/{kv-r9hhpn8b.js → kv-ebwqfc2a.js} +4 -4
  106. package/dist/chunks/{kv-pvekm5mg.js → kv-ee8xpbar.js} +19 -19
  107. package/dist/chunks/{kv-basq6rcm.js → kv-ef5xnz50.js} +5 -5
  108. package/dist/chunks/{kv-kq04c70q.js → kv-evpcrbn2.js} +11 -11
  109. package/dist/chunks/{kv-1mpyd4wr.js → kv-ew12th47.js} +14 -14
  110. package/dist/chunks/{kv-3q141gzy.js → kv-ey7zsb2z.js} +1 -1
  111. package/dist/chunks/{kv-cce4e01m.js → kv-f87x761z.js} +23 -23
  112. package/dist/chunks/{kv-bq3zev7t.js → kv-f9pxsqr6.js} +1 -1
  113. package/dist/chunks/{kv-m357821f.js → kv-ff79g11c.js} +23 -23
  114. package/dist/chunks/{kv-xayh4kry.js → kv-fhq4beaq.js} +20 -20
  115. package/dist/chunks/{kv-b97wbwxq.js → kv-fkzjdf45.js} +134 -134
  116. package/dist/chunks/{kv-v0es1rhs.js → kv-fpecnkgp.js} +7 -7
  117. package/dist/chunks/{kv-2ewwsn6j.js → kv-fsh2y1zv.js} +13 -13
  118. package/dist/chunks/{kv-w4egk6m7.js → kv-fz64p049.js} +10 -10
  119. package/dist/chunks/{kv-k1gkpfdk.js → kv-g1sxm558.js} +7 -7
  120. package/dist/chunks/{kv-j0dh5s1b.js → kv-g3ndzw54.js} +49 -49
  121. package/dist/chunks/{kv-mkrt49cm.js → kv-g4sw2epc.js} +24 -24
  122. package/dist/chunks/{kv-gejf6mxt.js → kv-g549jxts.js} +26 -26
  123. package/dist/chunks/{kv-ephge0j6.js → kv-gk37k7rf.js} +32 -32
  124. package/dist/chunks/{kv-mge92msv.js → kv-hcbpprgx.js} +1 -1
  125. package/dist/chunks/{kv-w5rr2y2z.js → kv-hcbveym2.js} +9 -9
  126. package/dist/chunks/{kv-yh94greh.js → kv-hmkvz94f.js} +12 -12
  127. package/dist/chunks/{kv-kp4erq8a.js → kv-hp04rdxh.js} +8 -8
  128. package/dist/chunks/{kv-ee3bnshg.js → kv-hq1swd7v.js} +5 -5
  129. package/dist/chunks/{kv-ggyw05pn.js → kv-htjphyk5.js} +13 -13
  130. package/dist/chunks/{kv-4x0vy5hp.js → kv-hxxy4jtt.js} +3 -3
  131. package/dist/chunks/{kv-axe20dxj.js → kv-hydafzv0.js} +38 -38
  132. package/dist/chunks/{kv-cptwqp0x.js → kv-jg575x7y.js} +32 -32
  133. package/dist/chunks/{kv-b4twkq7r.js → kv-jktqzjpa.js} +3 -3
  134. package/dist/chunks/{kv-fzgc1kyb.js → kv-jn9040r2.js} +23 -23
  135. package/dist/chunks/{kv-nw91k3fh.js → kv-jpqeh2wc.js} +3 -3
  136. package/dist/chunks/{kv-c10v6zqh.js → kv-k318agvy.js} +3 -3
  137. package/dist/chunks/{kv-3cd9n481.js → kv-k70p9jzb.js} +7 -7
  138. package/dist/chunks/{kv-3sk4rdba.js → kv-kpg2gynq.js} +29 -29
  139. package/dist/chunks/{kv-4da8s4pt.js → kv-kykapc73.js} +14 -14
  140. package/dist/chunks/{kv-e75k1waj.js → kv-mae0k732.js} +8 -8
  141. package/dist/chunks/{kv-56gdpj1q.js → kv-mfqp6xfm.js} +4 -4
  142. package/dist/chunks/{kv-hbwv7efq.js → kv-mrwm8afd.js} +19 -19
  143. package/dist/chunks/{kv-09k9s00a.js → kv-n0571dh0.js} +16 -16
  144. package/dist/chunks/{kv-3ewed21c.js → kv-n2srvep7.js} +3 -3
  145. package/dist/chunks/{kv-j58c5xyq.js → kv-n37c4crj.js} +7 -7
  146. package/dist/chunks/{kv-dssebbhk.js → kv-n43tnyyv.js} +26 -26
  147. package/dist/chunks/{kv-4xmcpy6p.js → kv-n4grcdw5.js} +12 -12
  148. package/dist/chunks/{kv-npetrjxw.js → kv-n72xc886.js} +33 -33
  149. package/dist/chunks/{kv-c51rhznc.js → kv-n9tt80yh.js} +1 -1
  150. package/dist/chunks/{kv-b69jv39p.js → kv-ncnm8wen.js} +1 -1
  151. package/dist/chunks/{kv-szbg98by.js → kv-nhkczpkc.js} +8 -8
  152. package/dist/chunks/{kv-a8bn8zg0.js → kv-nrdmrqsx.js} +3 -3
  153. package/dist/chunks/{kv-41jmxe7k.js → kv-nt69khzf.js} +9 -9
  154. package/dist/chunks/{kv-zz9f7sca.js → kv-pgdq0m2s.js} +7 -7
  155. package/dist/chunks/{kv-6pwtgj3y.js → kv-pnedbpq6.js} +6 -6
  156. package/dist/chunks/{kv-nekkkdzt.js → kv-pyfe26s8.js} +9 -9
  157. package/dist/chunks/{kv-a78avpfy.js → kv-q2pzxhp3.js} +7 -7
  158. package/dist/chunks/{kv-xy8y824b.js → kv-q3djzwyg.js} +20 -20
  159. package/dist/chunks/{kv-2x8be395.js → kv-q7fq4b4a.js} +30 -30
  160. package/dist/chunks/{kv-8tatyyx7.js → kv-q95kjj2t.js} +20 -20
  161. package/dist/chunks/{kv-jfe7dgrr.js → kv-qdq3033d.js} +6 -6
  162. package/dist/chunks/{kv-ahd542yp.js → kv-qe26s0zb.js} +7 -7
  163. package/dist/chunks/{kv-y81zftz8.js → kv-qey3k095.js} +1 -1
  164. package/dist/chunks/{kv-aa2ejxze.js → kv-qfhmckpv.js} +12 -12
  165. package/dist/chunks/{kv-esafk7q3.js → kv-qgn6gcr1.js} +4 -4
  166. package/dist/chunks/{kv-efqmpk1d.js → kv-qh99jyhd.js} +15 -15
  167. package/dist/chunks/{kv-p3np81yz.js → kv-qj944938.js} +16 -16
  168. package/dist/chunks/{kv-58pe7162.js → kv-qqgnk5sa.js} +6 -6
  169. package/dist/chunks/{kv-22r6mj2d.js → kv-qqmhc4xj.js} +38 -38
  170. package/dist/chunks/{kv-rjqw1fkn.js → kv-qvy3y2q7.js} +32 -32
  171. package/dist/chunks/{kv-mc0gpg4v.js → kv-r3s59a3c.js} +17 -17
  172. package/dist/chunks/{kv-a7gbfrqc.js → kv-r7kk08kn.js} +17 -17
  173. package/dist/chunks/{kv-rhraev7y.js → kv-r8xr0va3.js} +3 -3
  174. package/dist/chunks/{kv-7c2mj90v.js → kv-re39fj6q.js} +1 -1
  175. package/dist/chunks/{kv-dns82zgn.js → kv-rhvgmpzm.js} +2 -2
  176. package/dist/chunks/{kv-rr6414d7.js → kv-rqwx90yh.js} +1 -1
  177. package/dist/chunks/{kv-8pfwr1aj.js → kv-ryd2rdzb.js} +6 -6
  178. package/dist/chunks/{kv-vp15e18s.js → kv-ryj782zy.js} +10 -10
  179. package/dist/chunks/{kv-nq2hrp2d.js → kv-s1vq5vjj.js} +2 -2
  180. package/dist/chunks/{kv-s2azmpd0.js → kv-s2xdefjk.js} +11 -11
  181. package/dist/chunks/{kv-syyk301w.js → kv-sanedfh0.js} +20 -20
  182. package/dist/chunks/{kv-j9nscww1.js → kv-sfxc0p81.js} +38 -38
  183. package/dist/chunks/{kv-62536pe3.js → kv-sppc6c79.js} +3 -3
  184. package/dist/chunks/{kv-5xbp0mzp.js → kv-t11fnep0.js} +1 -1
  185. package/dist/chunks/{kv-5184fe6e.js → kv-t1nf5an5.js} +9 -9
  186. package/dist/chunks/{kv-6hh8tjw2.js → kv-t6vsspdg.js} +6 -6
  187. package/dist/chunks/{kv-89znhe33.js → kv-tcezcvh9.js} +3 -3
  188. package/dist/chunks/{kv-89713pt3.js → kv-tdhpb3v5.js} +11 -11
  189. package/dist/chunks/{kv-vzmw36wy.js → kv-tk8acvkq.js} +10 -10
  190. package/dist/chunks/{kv-2mbt8s9p.js → kv-tnxzcmvm.js} +1 -1
  191. package/dist/chunks/{kv-br0tr5aq.js → kv-tpw6cwsb.js} +7 -7
  192. package/dist/chunks/{kv-ss3rnzs3.js → kv-tsq8mx3a.js} +7 -7
  193. package/dist/chunks/{kv-wp70r9pc.js → kv-v1m0bgap.js} +31 -31
  194. package/dist/chunks/{kv-byx867r3.js → kv-v2p84kh2.js} +81 -81
  195. package/dist/chunks/{kv-wqtjzdjg.js → kv-v2yhfrn9.js} +8 -8
  196. package/dist/chunks/{kv-m0c8nc3q.js → kv-vk34wx83.js} +21 -21
  197. package/dist/chunks/{kv-zfs8ae4p.js → kv-vn72gsba.js} +1 -1
  198. package/dist/chunks/{kv-se3xc60m.js → kv-vpjxjfws.js} +1 -1
  199. package/dist/chunks/{kv-arz7hw7x.js → kv-vx3jgdek.js} +2 -2
  200. package/dist/chunks/{kv-10a0p2jb.js → kv-vy4j84c5.js} +13 -13
  201. package/dist/chunks/{kv-9jdad9bj.js → kv-vz9np6hr.js} +32 -32
  202. package/dist/chunks/{kv-g5w8qwbj.js → kv-w19d8598.js} +6 -6
  203. package/dist/chunks/{kv-j2g8k53c.js → kv-weef4h0t.js} +23 -23
  204. package/dist/chunks/{kv-hr5bc81f.js → kv-wh3mwy9y.js} +4 -4
  205. package/dist/chunks/{kv-1pxz8ven.js → kv-wh6zw745.js} +3 -3
  206. package/dist/chunks/{kv-wtwn561a.js → kv-wmnwwwhc.js} +19 -19
  207. package/dist/chunks/{kv-apt05brx.js → kv-wwctf8pa.js} +9 -9
  208. package/dist/chunks/{kv-zfa8n539.js → kv-x61eq3et.js} +14 -14
  209. package/dist/chunks/{kv-cf8234ah.js → kv-xbq5pdxh.js} +24 -24
  210. package/dist/chunks/{kv-9p60zphx.js → kv-xm2v5ye2.js} +9 -9
  211. package/dist/chunks/{kv-rdy0ce08.js → kv-xr5yvd35.js} +7 -7
  212. package/dist/chunks/{kv-wda5c5wt.js → kv-xvc4631w.js} +13 -13
  213. package/dist/chunks/{kv-b24qy0b9.js → kv-xve1yjb3.js} +5 -5
  214. package/dist/chunks/{kv-gbpk5mqp.js → kv-y2g779vb.js} +19 -19
  215. package/dist/chunks/{kv-rwkdedx1.js → kv-y2vqkag3.js} +5 -5
  216. package/dist/chunks/{kv-mfhezxan.js → kv-y6d2apqa.js} +9 -9
  217. package/dist/chunks/{kv-xsch7tq4.js → kv-y8wcetdn.js} +8 -8
  218. package/dist/chunks/{kv-yx8a1kq8.js → kv-yd0qngcd.js} +10 -10
  219. package/dist/chunks/{kv-vbe0572m.js → kv-ygws11mx.js} +24 -24
  220. package/dist/chunks/{kv-fsa96q8z.js → kv-ygz7vdjy.js} +11 -11
  221. package/dist/chunks/{kv-5xjgfznd.js → kv-yhgbfdfr.js} +9 -9
  222. package/dist/chunks/{kv-j8s9ab9g.js → kv-yhq47pcp.js} +4 -4
  223. package/dist/chunks/{kv-zee1rnkq.js → kv-zcrspsvn.js} +3 -3
  224. package/dist/chunks/{kv-jn7ad7x7.js → kv-zsp613gn.js} +326 -326
  225. package/dist/chunks/{kv-yrcj3v3g.js → kv-zsr4wwhv.js} +3 -3
  226. package/dist/codemode/instructions.js +8 -8
  227. package/dist/command.js +69 -69
  228. package/dist/config/discovery.js +63 -63
  229. package/dist/config/normalize.js +75 -75
  230. package/dist/config/plugin/agent.js +85 -85
  231. package/dist/config/plugin/command.js +165 -165
  232. package/dist/config/plugin/compaction.js +117 -117
  233. package/dist/config/plugin/compatibility.js +100 -100
  234. package/dist/config/plugin/formatter.js +85 -85
  235. package/dist/config/plugin/image.js +85 -85
  236. package/dist/config/plugin/instruction.js +67 -67
  237. package/dist/config/plugin/location-watcher.js +87 -87
  238. package/dist/config/plugin/mcp.js +90 -90
  239. package/dist/config/plugin/policy.js +85 -85
  240. package/dist/config/plugin/provider.js +85 -85
  241. package/dist/config/plugin/reference.js +86 -86
  242. package/dist/config/plugin/shell.js +87 -87
  243. package/dist/config/plugin/skill-file.js +77 -77
  244. package/dist/config/plugin/skill.js +103 -103
  245. package/dist/config/plugin/snapshot.js +85 -85
  246. package/dist/config/plugin/source.js +86 -86
  247. package/dist/config/plugin/tool-output.js +86 -86
  248. package/dist/config/plugin/websearch.js +86 -86
  249. package/dist/config/plugin/worktree.js +86 -86
  250. package/dist/config.js +91 -91
  251. package/dist/credential.js +62 -62
  252. package/dist/database/database.js +53 -53
  253. package/dist/database/drizzle/effect-sqlite/driver.js +7 -7
  254. package/dist/database/drizzle/effect-sqlite/index.js +4 -4
  255. package/dist/database/drizzle/effect-sqlite/session.js +6 -6
  256. package/dist/database/drizzle/index.js +8 -8
  257. package/dist/database/drizzle/sqlite-core/effect/db.js +4 -4
  258. package/dist/database/drizzle/sqlite-core/effect/index.js +2 -2
  259. package/dist/database/drizzle/sqlite-core/effect/session.js +5 -5
  260. package/dist/database/drizzle.js +8 -8
  261. package/dist/database/migration.gen.js +36 -36
  262. package/dist/database/migration.js +38 -38
  263. package/dist/database/v1-migration.bun.js +9 -9
  264. package/dist/effect/app-node-builder.js +230 -230
  265. package/dist/environment/environment.js +69 -69
  266. package/dist/environment/index.js +71 -71
  267. package/dist/event-logger.js +9 -9
  268. package/dist/file-access.js +80 -80
  269. package/dist/file-mutation.js +70 -70
  270. package/dist/filesystem/location-watcher-policy.js +5 -5
  271. package/dist/filesystem/location-watcher.js +180 -180
  272. package/dist/filesystem/protected.js +3 -3
  273. package/dist/filesystem/search.js +78 -78
  274. package/dist/filesystem/watcher.js +13 -13
  275. package/dist/filesystem.js +81 -81
  276. package/dist/form.js +67 -67
  277. package/dist/formatter.js +66 -66
  278. package/dist/generate.js +78 -78
  279. package/dist/git.js +6 -6
  280. package/dist/github-copilot/chat/openai-compatible-chat-language-model.js +4 -4
  281. package/dist/github-copilot/copilot-provider.js +3 -3
  282. package/dist/github-copilot/models.js +68 -68
  283. package/dist/github-copilot/responses/openai-responses-language-model.js +7 -7
  284. package/dist/github-copilot/responses/openai-responses-prepare-tools.js +3 -3
  285. package/dist/image/photon.js +1 -1
  286. package/dist/image.js +5 -5
  287. package/dist/instance/service.js +5 -5
  288. package/dist/instance.js +303 -303
  289. package/dist/instruction-discovery.js +65 -65
  290. package/dist/instructions/builtins.js +62 -62
  291. package/dist/instructions/index.js +3 -3
  292. package/dist/integration/connection.js +3 -3
  293. package/dist/integration.js +65 -65
  294. package/dist/job.js +62 -62
  295. package/dist/kv.js +58 -58
  296. package/dist/location-activity.js +53 -53
  297. package/dist/location-lifecycle.js +83 -83
  298. package/dist/location-service-map.js +65 -65
  299. package/dist/location-services.js +299 -299
  300. package/dist/location.js +66 -66
  301. package/dist/managed-policy.js +5 -5
  302. package/dist/mcp/client.js +17 -17
  303. package/dist/mcp/index.js +83 -83
  304. package/dist/mcp/instructions.js +100 -100
  305. package/dist/mcp/oauth.js +13 -13
  306. package/dist/mcp/stdio.js +66 -66
  307. package/dist/modal/models.js +68 -68
  308. package/dist/model-resolver.js +75 -75
  309. package/dist/model.js +73 -73
  310. package/dist/models-dev.js +83 -83
  311. package/dist/permission/saved.js +60 -60
  312. package/dist/permission.js +81 -81
  313. package/dist/persistent-pty/index.js +69 -69
  314. package/dist/persistent-pty.js +57 -57
  315. package/dist/plugin/agent.js +78 -78
  316. package/dist/plugin/command.js +74 -74
  317. package/dist/plugin/hooks.js +5 -5
  318. package/dist/plugin/host.js +171 -171
  319. package/dist/plugin/identity.js +3 -3
  320. package/dist/plugin/instance.js +5 -5
  321. package/dist/plugin/internal.js +277 -277
  322. package/dist/plugin/mcp-codemode-defaults.js +3 -3
  323. package/dist/plugin/models-dev.js +72 -72
  324. package/dist/plugin/module.js +4 -4
  325. package/dist/plugin/optimize.js +2 -2
  326. package/dist/plugin/plan.js +78 -78
  327. package/dist/plugin/provider/amazon-bedrock.js +67 -67
  328. package/dist/plugin/provider/azure.js +86 -86
  329. package/dist/plugin/provider/chatgpt.js +69 -69
  330. package/dist/plugin/provider/cloudflare-ai-gateway.js +83 -83
  331. package/dist/plugin/provider/cloudflare-workers-ai.js +83 -83
  332. package/dist/plugin/provider/configured.js +82 -82
  333. package/dist/plugin/provider/digitalocean.js +69 -69
  334. package/dist/plugin/provider/github-copilot.js +71 -71
  335. package/dist/plugin/provider/gitlab.js +69 -69
  336. package/dist/plugin/provider/google-vertex.js +67 -67
  337. package/dist/plugin/provider/llmgateway.js +60 -60
  338. package/dist/plugin/provider/lmstudio.js +86 -86
  339. package/dist/plugin/provider/local.js +83 -83
  340. package/dist/plugin/provider/modal.js +69 -69
  341. package/dist/plugin/provider/ollama.js +84 -84
  342. package/dist/plugin/provider/openai.js +68 -68
  343. package/dist/plugin/provider/opencode.js +72 -72
  344. package/dist/plugin/provider/openrouter.js +68 -68
  345. package/dist/plugin/provider/poe.js +60 -60
  346. package/dist/plugin/provider/prompt-cache-key.js +67 -67
  347. package/dist/plugin/provider/sap-ai-core.js +67 -67
  348. package/dist/plugin/provider/snowflake-cortex.js +84 -84
  349. package/dist/plugin/provider/vercel.js +67 -67
  350. package/dist/plugin/provider/vllm.js +86 -86
  351. package/dist/plugin/provider/xai.js +68 -68
  352. package/dist/plugin/provider.js +119 -119
  353. package/dist/plugin/sdk.js +61 -61
  354. package/dist/plugin/service.js +3 -3
  355. package/dist/plugin/skill.js +101 -101
  356. package/dist/plugin/supervisor.js +292 -292
  357. package/dist/plugin/tool-input-repair.js +3 -3
  358. package/dist/plugin/update.js +5 -5
  359. package/dist/plugin/vcs/git.js +65 -65
  360. package/dist/plugin/vcs/hg.js +65 -65
  361. package/dist/plugin/verbosity.js +70 -70
  362. package/dist/plugin/warming.js +84 -84
  363. package/dist/plugin/websearch/exa.js +4 -4
  364. package/dist/plugin/websearch/firecrawl.js +7 -7
  365. package/dist/plugin/websearch/index.js +8 -8
  366. package/dist/plugin/websearch/mcp.js +3 -3
  367. package/dist/plugin/websearch/parallel.js +7 -7
  368. package/dist/plugin/websearch/tavily.js +6 -6
  369. package/dist/plugin/websearch/tinyfish.js +7 -7
  370. package/dist/plugin.js +182 -182
  371. package/dist/project/schema.js +7 -7
  372. package/dist/project.js +69 -69
  373. package/dist/provider.js +72 -72
  374. package/dist/pty.js +73 -73
  375. package/dist/reference/instructions.js +69 -69
  376. package/dist/reference.js +69 -69
  377. package/dist/repository-cache.js +62 -62
  378. package/dist/ripgrep.js +72 -72
  379. package/dist/rpc.js +65 -65
  380. package/dist/session/command.js +58 -58
  381. package/dist/session/compaction.js +102 -102
  382. package/dist/session/context.js +122 -122
  383. package/dist/session/diff.js +65 -65
  384. package/dist/session/environment.js +5 -5
  385. package/dist/session/error.js +4 -4
  386. package/dist/session/execution/restart.js +109 -109
  387. package/dist/session/execution.js +98 -98
  388. package/dist/session/generate.js +123 -123
  389. package/dist/session/history.js +6 -6
  390. package/dist/session/inbox.js +69 -69
  391. package/dist/session/info.js +2 -2
  392. package/dist/session/instruction-entry.js +59 -59
  393. package/dist/session/instruction-state.js +2 -2
  394. package/dist/session/instructions.js +73 -73
  395. package/dist/session/model-request.js +92 -92
  396. package/dist/session/model-transport.js +7 -7
  397. package/dist/session/move.js +100 -100
  398. package/dist/session/projector.js +63 -63
  399. package/dist/session/prompt.js +80 -80
  400. package/dist/session/provider-context.js +3 -3
  401. package/dist/session/revert.js +66 -66
  402. package/dist/session/run-coordinator.js +3 -3
  403. package/dist/session/runner/index.js +3 -3
  404. package/dist/session/runner/llm.js +178 -178
  405. package/dist/session/runner/model.js +75 -75
  406. package/dist/session/runner/publish-llm-event.js +86 -86
  407. package/dist/session/runner/step.js +92 -92
  408. package/dist/session/runner/to-llm-message.js +2 -2
  409. package/dist/session/schema.js +3 -3
  410. package/dist/session/session.js +125 -125
  411. package/dist/session/shell.js +96 -96
  412. package/dist/session/skill.js +79 -79
  413. package/dist/session/stats.js +8 -8
  414. package/dist/session/store.js +67 -67
  415. package/dist/session/subagent-job.js +163 -163
  416. package/dist/session/system-prompt.js +5 -5
  417. package/dist/session/title.js +119 -119
  418. package/dist/session/to-session-error.js +85 -85
  419. package/dist/session/transfer.js +104 -104
  420. package/dist/session.js +171 -171
  421. package/dist/shell/parse.js +3 -3
  422. package/dist/shell/select.js +14 -14
  423. package/dist/shell.js +97 -97
  424. package/dist/skill/discovery.js +5 -5
  425. package/dist/skill/instructions.js +83 -83
  426. package/dist/skill.js +86 -86
  427. package/dist/snapshot.js +70 -70
  428. package/dist/tool/mcp.js +97 -97
  429. package/dist/tool/plugin/edit.js +86 -86
  430. package/dist/tool/plugin/glob.js +96 -96
  431. package/dist/tool/plugin/grep.js +96 -96
  432. package/dist/tool/plugin/mcp-resource.js +88 -88
  433. package/dist/tool/plugin/opencode.js +3 -3
  434. package/dist/tool/plugin/patch.js +94 -94
  435. package/dist/tool/plugin/question.js +79 -79
  436. package/dist/tool/plugin/read.js +97 -97
  437. package/dist/tool/plugin/shell.js +171 -171
  438. package/dist/tool/plugin/skill.js +87 -87
  439. package/dist/tool/plugin/subagent.js +170 -170
  440. package/dist/tool/plugin/webfetch.js +86 -86
  441. package/dist/tool/plugin/websearch.js +89 -89
  442. package/dist/tool/plugin/write.js +88 -88
  443. package/dist/tool/read-filesystem.js +75 -75
  444. package/dist/tool-output.js +5 -5
  445. package/dist/tool.js +11 -11
  446. package/dist/v1/config/agent.js +4 -4
  447. package/dist/v1/config/command.js +5 -5
  448. package/dist/v1/config/mcp.js +3 -3
  449. package/dist/v1/config/migrate.js +68 -68
  450. package/dist/v1/config/permission.js +3 -3
  451. package/dist/v1/config/plugin.js +3 -3
  452. package/dist/variant.js +70 -70
  453. package/dist/vcs.js +68 -68
  454. package/dist/websearch.js +67 -67
  455. package/dist/wellknown/plugin.js +60 -60
  456. package/dist/wellknown.js +63 -63
  457. package/dist/workspace/driver.js +7 -7
  458. package/dist/workspace.js +65 -65
  459. package/dist/worktree/git.js +3 -3
  460. package/dist/worktree/strategies.js +67 -67
  461. package/dist/worktree.js +75 -75
  462. package/package.json +8 -8
  463. package/dist/chunks/kv-1x068165.js +0 -26
  464. /package/dist/chunks/{kv-x8n5620y.js → kv-gxxkvswg.js} +0 -0
  465. /package/dist/chunks/{kv-2bzwd702.js → kv-r101cspy.js} +0 -0
  466. /package/dist/chunks/{kv-2hg7qvzt.js → kv-rf80fxgj.js} +0 -0
  467. /package/dist/chunks/{kv-gyt7gbrq.js → kv-vnnhbf40.js} +0 -0
@@ -1,6 +1,6 @@
1
1
  import {
2
- Service65
3
- } from "./kv-pnx8jqpz.js";
2
+ Service63
3
+ } from "./kv-91xts6ft.js";
4
4
  import {
5
5
  MAX_MARKDOWN_BYTES2,
6
6
  convertHTMLToMarkdown2
@@ -16,29 +16,29 @@ import {
16
16
  var exports_webfetch = {};
17
17
  __export(exports_webfetch, {
18
18
  DEFAULT_TIMEOUT_SECONDS: () => DEFAULT_TIMEOUT_SECONDS2,
19
- Input: () => Input2,
20
- MAX_RESPONSE_BYTES: () => MAX_RESPONSE_BYTES2,
19
+ Input: () => Input9,
20
+ MAX_RESPONSE_BYTES: () => MAX_RESPONSE_BYTES3,
21
21
  MAX_TIMEOUT_SECONDS: () => MAX_TIMEOUT_SECONDS2,
22
- Plugin: () => Plugin4,
22
+ Plugin: () => Plugin43,
23
23
  WebFetchTool: () => exports_webfetch,
24
24
  convertHTMLToMarkdown: () => convertHTMLToMarkdown2,
25
- description: () => description2,
25
+ description: () => description4,
26
26
  extractTextFromHTML: () => extractTextFromHTML2,
27
- name: () => name2
27
+ name: () => name9
28
28
  });
29
29
  import { ToolFailure } from "@opencode/ai";
30
30
  import { Duration, Effect, Schema } from "effect";
31
31
  import { HttpClient, HttpClientRequest, HttpClientResponse } from "effect/unstable/http";
32
32
  import { Parser } from "htmlparser2";
33
- var name2 = "webfetch";
34
- var MAX_RESPONSE_BYTES2 = MAX_MARKDOWN_BYTES2;
33
+ var name9 = "webfetch";
34
+ var MAX_RESPONSE_BYTES3 = MAX_MARKDOWN_BYTES2;
35
35
  var DEFAULT_TIMEOUT_SECONDS2 = 30;
36
36
  var MAX_TIMEOUT_SECONDS2 = 120;
37
- var description2 = `Fetch content from an HTTP or HTTPS URL and return it as text, markdown, or HTML. Markdown is the default.
37
+ var description4 = `Fetch content from an HTTP or HTTPS URL and return it as text, markdown, or HTML. Markdown is the default.
38
38
 
39
39
  Use a more targeted tool when one is available. This tool is read-only. Large text results may be replaced with a preview while the complete output is retained in managed storage.`;
40
40
  var Timeout = Schema.Finite.check(Schema.isGreaterThan(0), Schema.isLessThanOrEqualTo(MAX_TIMEOUT_SECONDS2));
41
- var Input2 = Schema.Struct({
41
+ var Input9 = Schema.Struct({
42
42
  url: Schema.String.annotate({ description: "The HTTP or HTTPS URL to fetch content from" }),
43
43
  format: Schema.Literals(["text", "markdown", "html"]).annotate({ description: "The format to return the content in. Defaults to markdown." }).pipe(Schema.withDecodingDefaultKey(Effect.succeed("markdown"))),
44
44
  timeout: Schema.optionalKey(Timeout).annotate({
@@ -48,7 +48,7 @@ var Input2 = Schema.Struct({
48
48
  var Output = Schema.Struct({
49
49
  url: Schema.String,
50
50
  contentType: Schema.String,
51
- format: Input2.fields.format,
51
+ format: Input9.fields.format,
52
52
  output: Schema.String
53
53
  });
54
54
  var acceptHeader = (format) => {
@@ -79,7 +79,7 @@ var assertHttpUrl = (url) => {
79
79
  throw new Error("URL must use http:// or https://");
80
80
  };
81
81
  var execute = (http, url, format, userAgent = openCodeUserAgent) => http.execute(request(url, format, userAgent)).pipe(Effect.flatMap(HttpClientResponse.filterStatusOk));
82
- var collectBody = (response) => collectBoundedResponseBody2(response, MAX_RESPONSE_BYTES2, () => new Error(`Response too large (exceeds ${MAX_RESPONSE_BYTES2} byte limit)`));
82
+ var collectBody = (response) => collectBoundedResponseBody2(response, MAX_RESPONSE_BYTES3, () => new Error(`Response too large (exceeds ${MAX_RESPONSE_BYTES3} byte limit)`));
83
83
  var mimeFrom = (contentType) => contentType.split(";", 1)[0]?.trim().toLowerCase() ?? "";
84
84
  var isImageAttachment = (mime) => mime.startsWith("image/") && mime !== "image/svg+xml" && mime !== "image/vnd.fastbidsheet";
85
85
  var isTextualMime = (mime) => !mime || mime.startsWith("text/") || mime === "application/json" || mime.endsWith("+json") || mime === "application/xml" || mime.endsWith("+xml") || mime === "application/javascript" || mime === "application/x-javascript";
@@ -92,16 +92,16 @@ var convert = (content, contentType, format) => {
92
92
  return extractTextFromHTML2(content);
93
93
  return content;
94
94
  };
95
- var Plugin4 = {
95
+ var Plugin43 = {
96
96
  id: "opencode.tool.webfetch",
97
97
  effect: Effect.fn("WebFetchTool.Plugin")(function* (ctx) {
98
98
  const http = yield* HttpClient.HttpClient;
99
- const permission = yield* Service65;
99
+ const permission = yield* Service63;
100
100
  yield* ctx.tool.transform((editor) => editor.add({
101
- name: name2,
101
+ name: name9,
102
102
  options: { codemode: false },
103
- description: description2,
104
- input: Input2,
103
+ description: description4,
104
+ input: Input9,
105
105
  output: Output,
106
106
  execute: (input, context) => Effect.gen(function* () {
107
107
  yield* Effect.try({
@@ -109,7 +109,7 @@ var Plugin4 = {
109
109
  catch: (error) => error
110
110
  });
111
111
  yield* permission.assert({
112
- action: name2,
112
+ action: name9,
113
113
  resources: [input.url],
114
114
  save: ["*"],
115
115
  metadata: input,
@@ -167,4 +167,4 @@ function extractTextFromHTML2(html) {
167
167
  parser.end();
168
168
  return text.trim();
169
169
  }
170
- export { name2, MAX_RESPONSE_BYTES2, DEFAULT_TIMEOUT_SECONDS2, MAX_TIMEOUT_SECONDS2, description2, Input2, Plugin4, extractTextFromHTML2, exports_webfetch };
170
+ export { name9, MAX_RESPONSE_BYTES3, DEFAULT_TIMEOUT_SECONDS2, MAX_TIMEOUT_SECONDS2, description4, Input9, Plugin43, extractTextFromHTML2, exports_webfetch };
@@ -7,18 +7,18 @@ var exports_app = {};
7
7
  __export(exports_app, {
8
8
  App: () => exports_app,
9
9
  Metadata: () => Metadata2,
10
- configured: () => configured7,
11
- layer: () => layer19,
12
- make: () => make17,
13
- node: () => node53,
10
+ configured: () => configured6,
11
+ layer: () => layer18,
12
+ make: () => make20,
13
+ node: () => node49,
14
14
  useragent: () => useragent2
15
15
  });
16
16
  import { Context, Layer } from "effect";
17
17
  import { makeGlobalNode } from "@opencode/util/effect/app-node";
18
18
  var Metadata2 = Context.Reference("@opencode/App", {
19
- defaultValue: () => make17()
19
+ defaultValue: () => make20()
20
20
  });
21
- function make17(input = {}) {
21
+ function make20(input = {}) {
22
22
  return {
23
23
  name: input.name ?? "opencode",
24
24
  version: input.version ?? "unknown",
@@ -28,8 +28,8 @@ function make17(input = {}) {
28
28
  function useragent2(app) {
29
29
  return `opencode/${app.channel}/${app.version}/${app.name}`;
30
30
  }
31
- var layer19 = (input) => Layer.succeed(Metadata2, make17(input));
32
- var configured7 = (input) => makeGlobalNode({ service: Metadata2, layer: layer19(input), deps: [] });
33
- var node53 = configured7();
31
+ var layer18 = (input) => Layer.succeed(Metadata2, make20(input));
32
+ var configured6 = (input) => makeGlobalNode({ service: Metadata2, layer: layer18(input), deps: [] });
33
+ var node49 = configured6();
34
34
 
35
- export { Metadata2, make17, useragent2, layer19, configured7, node53, exports_app };
35
+ export { Metadata2, make20, useragent2, layer18, configured6, node49, exports_app };
@@ -2,14 +2,14 @@ import {
2
2
  AbsolutePath2
3
3
  } from "./kv-z5v4ffb3.js";
4
4
  import {
5
- Service80
6
- } from "./kv-cq12npaq.js";
5
+ Service76
6
+ } from "./kv-8cseh6jw.js";
7
7
  import {
8
- Service45
9
- } from "./kv-09k9s00a.js";
8
+ Service20
9
+ } from "./kv-n0571dh0.js";
10
10
  import {
11
- Service6
12
- } from "./kv-g4w6v84v.js";
11
+ Service8
12
+ } from "./kv-6w1vezwk.js";
13
13
  import {
14
14
  NotFound2
15
15
  } from "./kv-2a5m3afh.js";
@@ -23,8 +23,8 @@ import {
23
23
  FileContent2,
24
24
  TextPage2,
25
25
  ListPage2,
26
- Service5
27
- } from "./kv-zfa8n539.js";
26
+ Service9
27
+ } from "./kv-x61eq3et.js";
28
28
  import {
29
29
  __export
30
30
  } from "./kv-9rqn6x4v.js";
@@ -32,17 +32,17 @@ import {
32
32
  // src/tool/plugin/read.ts
33
33
  var exports_read = {};
34
34
  __export(exports_read, {
35
- Input: () => Input6,
36
- Plugin: () => Plugin8,
35
+ Input: () => Input10,
36
+ Plugin: () => Plugin44,
37
37
  ReadTool: () => exports_read,
38
- name: () => name6,
39
- toModelContent: () => toModelContent3
38
+ name: () => name10,
39
+ toModelContent: () => toModelContent5
40
40
  });
41
41
  import { basename, dirname, join } from "path";
42
42
  import { ToolFailure } from "@opencode/ai";
43
43
  import { Effect, Schema } from "effect";
44
44
  import { FSUtil } from "@opencode/util/fs-util";
45
- var name6 = "read";
45
+ var name10 = "read";
46
46
  var FILENAME = "AGENTS.md";
47
47
  var LocationInput = Schema.Struct({
48
48
  path: Schema.String.annotate({ description: "File or directory to read" }),
@@ -53,21 +53,21 @@ var LocationInput = Schema.Struct({
53
53
  description: "The maximum number of lines or directory entries to read (defaults to and capped at 2000)"
54
54
  })
55
55
  });
56
- var Input6 = LocationInput;
56
+ var Input10 = LocationInput;
57
57
  var Output = Schema.Union([FileContent2, TextPage2, ListPage2]);
58
- var Plugin8 = {
58
+ var Plugin44 = {
59
59
  id: "opencode.tool.read",
60
60
  effect: Effect.fn("ReadTool.Plugin")(function* (ctx) {
61
- const reader = yield* Service5;
62
- const access = yield* Service45;
63
- const sessionInstructions = yield* Service6;
61
+ const reader = yield* Service9;
62
+ const access = yield* Service20;
63
+ const sessionInstructions = yield* Service8;
64
64
  const fs = yield* FSUtil.Service;
65
- const location = yield* Service80;
65
+ const location = yield* Service76;
66
66
  yield* ctx.tool.transform((editor) => editor.add({
67
- name: name6,
67
+ name: name10,
68
68
  options: { codemode: false },
69
69
  description: "Read the contents of a file or directory. Supports text files, images, and PDFs. Images and PDFs are presented directly to the model. Each text line is prefixed by its 1-based line number as <line>: <content>. The prefix is for reference and is not part of the file content. Directory entries are returned one per line. Use offset and limit to read large files or directories in sections. Prefer one larger read over many small slices, and use grep to find specific content in large files.",
70
- input: Input6,
70
+ input: Input10,
71
71
  output: Output,
72
72
  execute: (input, context) => {
73
73
  return Effect.gen(function* () {
@@ -113,7 +113,7 @@ var Plugin8 = {
113
113
  return { output: result.content, path: result.path };
114
114
  }).pipe(Effect.map((result) => ({
115
115
  output: result.output,
116
- content: toModelContent3(result.path, input.offset, result.output),
116
+ content: toModelContent5(result.path, input.offset, result.output),
117
117
  metadata: { truncated: result.output.type === "file" ? false : result.output.truncated }
118
118
  })), Effect.mapError((error) => {
119
119
  if (error instanceof ToolFailure)
@@ -146,7 +146,7 @@ ${suggestions.join(`
146
146
  });
147
147
  })
148
148
  };
149
- var toModelContent3 = (path, offset, output) => {
149
+ var toModelContent5 = (path, offset, output) => {
150
150
  if (output.type === "file" && output.encoding === "base64")
151
151
  return [
152
152
  { type: "text", text: output.mime === "application/pdf" ? "PDF read successfully" : "Image read successfully" },
@@ -182,4 +182,4 @@ var toModelContent3 = (path, offset, output) => {
182
182
  `);
183
183
  };
184
184
 
185
- export { name6, Input6, Plugin8, toModelContent3, exports_read };
185
+ export { name10, Input10, Plugin44, toModelContent5, exports_read };
@@ -1,10 +1,10 @@
1
1
  import {
2
2
  latest2,
3
- Service41
4
- } from "./kv-dk7aapm0.js";
3
+ Service50
4
+ } from "./kv-apeyh75a.js";
5
5
  import {
6
- Service33
7
- } from "./kv-3sk4rdba.js";
6
+ Service36
7
+ } from "./kv-kpg2gynq.js";
8
8
  import {
9
9
  observe2
10
10
  } from "./kv-qsdy395h.js";
@@ -16,15 +16,15 @@ import {
16
16
  var exports_snapshot = {};
17
17
  __export(exports_snapshot, {
18
18
  ConfigSnapshotPlugin: () => exports_snapshot,
19
- Plugin: () => Plugin17
19
+ Plugin: () => Plugin2
20
20
  });
21
21
  import { define } from "@opencode/plugin/effect/plugin";
22
22
  import { Effect } from "effect";
23
- var Plugin17 = define({
23
+ var Plugin2 = define({
24
24
  id: "opencode.config.snapshot",
25
25
  effect: Effect.fn(function* (ctx) {
26
- const config = yield* Service41;
27
- const snapshot = yield* Service33;
26
+ const config = yield* Service50;
27
+ const snapshot = yield* Service36;
28
28
  const loaded = yield* observe2(config, ctx.event, snapshot.reload());
29
29
  yield* snapshot.transform((editor) => {
30
30
  const configured = latest2(loaded.entries, "snapshots");
@@ -35,4 +35,4 @@ var Plugin17 = define({
35
35
  })
36
36
  });
37
37
 
38
- export { Plugin17, exports_snapshot };
38
+ export { Plugin2, exports_snapshot };
@@ -1,10 +1,10 @@
1
1
  import {
2
- Service72,
3
- node76
4
- } from "./kv-gejf6mxt.js";
2
+ Service70,
3
+ node74
4
+ } from "./kv-g549jxts.js";
5
5
  import {
6
6
  SessionSchema2
7
- } from "./kv-arz7hw7x.js";
7
+ } from "./kv-vx3jgdek.js";
8
8
  import {
9
9
  __export
10
10
  } from "./kv-9rqn6x4v.js";
@@ -14,9 +14,9 @@ var exports_model = {};
14
14
  __export(exports_model, {
15
15
  ModelNotSelectedError: () => ModelNotSelectedError2,
16
16
  ModelUnavailableError: () => ModelUnavailableError2,
17
- Service: () => Service63,
17
+ Service: () => Service44,
18
18
  SessionRunnerModel: () => exports_model,
19
- node: () => node67,
19
+ node: () => node46,
20
20
  resolved: () => resolved2
21
21
  });
22
22
  import { makeLocationNode } from "@opencode/util/effect/app-node";
@@ -39,7 +39,7 @@ class ModelUnavailableError2 extends Schema.TaggedError()("SessionRunnerModel.Mo
39
39
  }
40
40
  }
41
41
 
42
- class Service63 extends Context.Service()("@opencode/SessionRunnerModel") {
42
+ class Service44 extends Context.Service()("@opencode/SessionRunnerModel") {
43
43
  }
44
44
  var resolved2 = (model, options) => ({
45
45
  model,
@@ -54,9 +54,9 @@ var resolved2 = (model, options) => ({
54
54
  compaction: options.compaction,
55
55
  transport: options.transport
56
56
  });
57
- var layer = Layer.effect(Service63, Effect.gen(function* () {
58
- const resolver = yield* Service72;
59
- return Service63.of({
57
+ var layer = Layer.effect(Service44, Effect.gen(function* () {
58
+ const resolver = yield* Service70;
59
+ return Service44.of({
60
60
  resolve: Effect.fn("SessionRunnerModel.resolve")(function* (session, available) {
61
61
  if (!session.model) {
62
62
  const resolved = yield* resolver.resolve();
@@ -74,6 +74,6 @@ var layer = Layer.effect(Service63, Effect.gen(function* () {
74
74
  })
75
75
  });
76
76
  }));
77
- var node67 = makeLocationNode({ service: Service63, layer, deps: [node76] });
77
+ var node46 = makeLocationNode({ service: Service44, layer, deps: [node74] });
78
78
 
79
- export { ModelNotSelectedError2, ModelUnavailableError2, Service63, resolved2, node67, exports_model };
79
+ export { ModelNotSelectedError2, ModelUnavailableError2, Service44, resolved2, node46, exports_model };
@@ -1,66 +1,66 @@
1
1
  import {
2
- Service78
3
- } from "./kv-xayh4kry.js";
2
+ Service80
3
+ } from "./kv-fhq4beaq.js";
4
4
  import {
5
- Service65
6
- } from "./kv-pnx8jqpz.js";
5
+ Service63
6
+ } from "./kv-91xts6ft.js";
7
7
  import {
8
- ID6,
8
+ ID4,
9
9
  Result2,
10
10
  ProviderRequiredError2,
11
11
  DisabledError2,
12
12
  RequestError2,
13
- Service48
14
- } from "./kv-m357821f.js";
13
+ Service21
14
+ } from "./kv-ff79g11c.js";
15
15
  import {
16
16
  __export
17
17
  } from "./kv-9rqn6x4v.js";
18
18
 
19
19
  // src/tool/plugin/websearch.ts
20
- var exports_websearch = {};
21
- __export(exports_websearch, {
22
- Input: () => Input5,
20
+ var exports_websearch2 = {};
21
+ __export(exports_websearch2, {
22
+ Input: () => Input6,
23
23
  NO_RESULTS: () => NO_RESULTS2,
24
- Plugin: () => Plugin7,
25
- WebSearchTool: () => exports_websearch,
26
- description: () => description3,
27
- name: () => name5
24
+ Plugin: () => Plugin40,
25
+ WebSearchTool: () => exports_websearch2,
26
+ description: () => description2,
27
+ name: () => name6
28
28
  });
29
29
  import { ToolFailure } from "@opencode/ai";
30
30
  import { Effect, Schema, Semaphore } from "effect";
31
31
  import { HttpClientError } from "effect/unstable/http";
32
- var name5 = "websearch";
32
+ var name6 = "websearch";
33
33
  var NO_RESULTS2 = "No search results found. Please try a different query.";
34
34
  var providerSelectionLock = Semaphore.makeUnsafe(1);
35
35
  var httpErrors = new Map([
36
36
  [429, "Web search rate limited (HTTP 429)"],
37
37
  [401, "Web search authentication failed (HTTP 401)"]
38
38
  ]);
39
- var description3 = `Search the web using the user's selected search integration. Use this for current information beyond knowledge cutoff.
39
+ var description2 = `Search the web using the user's selected search integration. Use this for current information beyond knowledge cutoff.
40
40
 
41
41
  The current year is ${new Date().getFullYear()}. Use this year when searching for recent information or current events.`;
42
- var Input5 = Schema.Struct({
42
+ var Input6 = Schema.Struct({
43
43
  query: Schema.String.annotate({ description: "Websearch query" })
44
44
  });
45
45
  var Output = Schema.Struct({
46
- provider: ID6,
46
+ provider: ID4,
47
47
  results: Schema.Array(Result2)
48
48
  });
49
- var Plugin7 = {
49
+ var Plugin40 = {
50
50
  id: "opencode.tool.websearch",
51
51
  effect: Effect.fn("WebSearchTool.Plugin")(function* (ctx) {
52
- const permission = yield* Service65;
53
- const forms = yield* Service78;
54
- const websearch = yield* Service48;
52
+ const permission = yield* Service63;
53
+ const forms = yield* Service80;
54
+ const websearch = yield* Service21;
55
55
  yield* ctx.tool.transform((editor) => editor.add({
56
- name: name5,
56
+ name: name6,
57
57
  options: { codemode: false },
58
- description: description3,
59
- input: Input5,
58
+ description: description2,
59
+ input: Input6,
60
60
  output: Output,
61
61
  execute: (input, context) => Effect.gen(function* () {
62
62
  yield* permission.assert({
63
- action: name5,
63
+ action: name6,
64
64
  resources: [input.query],
65
65
  save: ["*"],
66
66
  metadata: input,
@@ -176,7 +176,7 @@ ${result.content}` : ""}`;
176
176
  const hook = (event) => Effect.gen(function* () {
177
177
  const disabled = yield* websearch.default().pipe(Effect.as(false), Effect.catchTag("WebSearch.Disabled", () => Effect.succeed(true)));
178
178
  if (disabled)
179
- delete event.tools[name5];
179
+ delete event.tools[name6];
180
180
  });
181
181
  yield* ctx.session.hook("context", hook);
182
182
  yield* ctx.session.hook("compaction", hook);
@@ -184,4 +184,4 @@ ${result.content}` : ""}`;
184
184
  })
185
185
  };
186
186
 
187
- export { name5, NO_RESULTS2, description3, Input5, Plugin7, exports_websearch };
187
+ export { name6, NO_RESULTS2, description2, Input6, Plugin40, exports_websearch2 };
@@ -1,18 +1,18 @@
1
1
  import {
2
2
  Service83,
3
3
  node87
4
- } from "./kv-2mbt8s9p.js";
4
+ } from "./kv-tnxzcmvm.js";
5
5
  import {
6
- Service80,
7
- node84
8
- } from "./kv-cq12npaq.js";
6
+ Service76,
7
+ node80
8
+ } from "./kv-8cseh6jw.js";
9
9
  import {
10
10
  SessionEvent2
11
11
  } from "./kv-ec1grn59.js";
12
12
  import {
13
- Service66,
14
- node70
15
- } from "./kv-aa2ejxze.js";
13
+ Service65,
14
+ node69
15
+ } from "./kv-qfhmckpv.js";
16
16
  import {
17
17
  __export
18
18
  } from "./kv-9rqn6x4v.js";
@@ -20,9 +20,9 @@ import {
20
20
  // src/session/instructions.ts
21
21
  var exports_instructions = {};
22
22
  __export(exports_instructions, {
23
- Service: () => Service6,
23
+ Service: () => Service8,
24
24
  SessionInstructions: () => exports_instructions,
25
- node: () => node8
25
+ node: () => node10
26
26
  });
27
27
  import { relative } from "path";
28
28
  import { Context, Effect, Layer, Option, Ref, Schema } from "effect";
@@ -32,13 +32,13 @@ var InjectedMetadata = Schema.Struct({
32
32
  instruction: Schema.Struct({ paths: Schema.Array(Schema.String) })
33
33
  });
34
34
 
35
- class Service6 extends Context.Service()("@opencode/SessionInstructions") {
35
+ class Service8 extends Context.Service()("@opencode/SessionInstructions") {
36
36
  }
37
- var layer = Layer.effect(Service6, Effect.gen(function* () {
37
+ var layer = Layer.effect(Service8, Effect.gen(function* () {
38
38
  const bus = yield* Service83;
39
39
  const fs = yield* FSUtil.Service;
40
- const store = yield* Service66;
41
- const location = yield* Service80;
40
+ const store = yield* Service65;
41
+ const location = yield* Service76;
42
42
  const root = yield* fs.resolve(location.project.directory);
43
43
  const inFlight = yield* Ref.make(new Map);
44
44
  const load = Effect.fn("SessionInstructions.load")(function* (input) {
@@ -84,7 +84,7 @@ ${file.content}`).join(`
84
84
  return next;
85
85
  })));
86
86
  });
87
- return Service6.of({ load });
87
+ return Service8.of({ load });
88
88
  }));
89
89
  function previouslyInjected(store, sessionID) {
90
90
  return Effect.gen(function* () {
@@ -95,10 +95,10 @@ function previouslyInjected(store, sessionID) {
95
95
  function describePath(root, path) {
96
96
  return FSUtil.contains(root, path) ? relative(root, path) : path;
97
97
  }
98
- var node8 = makeLocationNode({
98
+ var node10 = makeLocationNode({
99
99
  name: "session-instructions",
100
100
  layer,
101
- deps: [node87, FSUtil.node, node84, node70]
101
+ deps: [node87, FSUtil.node, node80, node69]
102
102
  });
103
103
 
104
- export { Service6, node8, exports_instructions };
104
+ export { Service8, node10, exports_instructions };
@@ -1,9 +1,9 @@
1
1
  import {
2
- Service41
3
- } from "./kv-dk7aapm0.js";
2
+ Service50
3
+ } from "./kv-apeyh75a.js";
4
4
  import {
5
- Service40
6
- } from "./kv-xsgk3b13.js";
5
+ Service58
6
+ } from "./kv-bezhzanq.js";
7
7
  import {
8
8
  observe2
9
9
  } from "./kv-qsdy395h.js";
@@ -15,15 +15,15 @@ import {
15
15
  var exports_image = {};
16
16
  __export(exports_image, {
17
17
  ConfigImagePlugin: () => exports_image,
18
- Plugin: () => Plugin26
18
+ Plugin: () => Plugin3
19
19
  });
20
20
  import { define } from "@opencode/plugin/effect/plugin";
21
21
  import { Effect } from "effect";
22
- var Plugin26 = define({
22
+ var Plugin3 = define({
23
23
  id: "opencode.config.image",
24
24
  effect: Effect.fn(function* (ctx) {
25
- const config = yield* Service41;
26
- const image = yield* Service40;
25
+ const config = yield* Service50;
26
+ const image = yield* Service58;
27
27
  const loaded = yield* observe2(config, ctx.event, image.reload());
28
28
  yield* image.transform((editor) => {
29
29
  for (const entry of loaded.entries) {
@@ -43,4 +43,4 @@ var Plugin26 = define({
43
43
  })
44
44
  });
45
45
 
46
- export { Plugin26, exports_image };
46
+ export { Plugin3, exports_image };
@@ -1,19 +1,19 @@
1
1
  import {
2
2
  Service84
3
- } from "./kv-sd8sm53s.js";
3
+ } from "./kv-04bfvmpq.js";
4
4
  import {
5
5
  Service83
6
- } from "./kv-2mbt8s9p.js";
6
+ } from "./kv-tnxzcmvm.js";
7
7
  import {
8
- Service62
9
- } from "./kv-bw9zjykr.js";
8
+ Service43
9
+ } from "./kv-4mwpykj0.js";
10
10
  import {
11
11
  RelativePath2
12
12
  } from "./kv-z5v4ffb3.js";
13
13
  import {
14
- ID4,
15
- Service33
16
- } from "./kv-3sk4rdba.js";
14
+ ID5,
15
+ Service36
16
+ } from "./kv-kpg2gynq.js";
17
17
  import {
18
18
  SessionEvent2
19
19
  } from "./kv-ec1grn59.js";
@@ -22,7 +22,7 @@ import {
22
22
  } from "./kv-gftt206x.js";
23
23
  import {
24
24
  MessageNotFoundError2
25
- } from "./kv-j8s9ab9g.js";
25
+ } from "./kv-yhq47pcp.js";
26
26
  import {
27
27
  SessionMessageTable2
28
28
  } from "./kv-9e5bzkjp.js";
@@ -41,12 +41,12 @@ __export(exports_revert, {
41
41
  import { and, asc, eq, gt } from "drizzle-orm";
42
42
  import { Effect, Schema } from "effect";
43
43
  var stage2 = Effect.fn("SessionRevert.stage")(function* (input) {
44
- const instances = yield* Service62;
44
+ const instances = yield* Service43;
45
45
  const database = yield* Service84;
46
46
  const bus = yield* Service83;
47
47
  return yield* Effect.gen(function* () {
48
- const snapshot = yield* Service33;
49
- const original = input.session.revert?.snapshot ? ID4.make(input.session.revert.snapshot) : yield* snapshot.capture();
48
+ const snapshot = yield* Service36;
49
+ const original = input.session.revert?.snapshot ? ID5.make(input.session.revert.snapshot) : yield* snapshot.capture();
50
50
  const next = yield* plan(database.db, { sessionID: input.session.id, messageID: input.messageID });
51
51
  const restore = new Map;
52
52
  if (original) {
@@ -73,13 +73,13 @@ var stage2 = Effect.fn("SessionRevert.stage")(function* (input) {
73
73
  }).pipe(instances.provide(input.session));
74
74
  });
75
75
  var clear2 = Effect.fn("SessionRevert.clear")(function* (session) {
76
- const instances = yield* Service62;
76
+ const instances = yield* Service43;
77
77
  const bus = yield* Service83;
78
78
  yield* Effect.gen(function* () {
79
- const snapshot = yield* Service33;
79
+ const snapshot = yield* Service36;
80
80
  if (!session.revert)
81
81
  return;
82
- const original = session.revert.snapshot ? ID4.make(session.revert.snapshot) : undefined;
82
+ const original = session.revert.snapshot ? ID5.make(session.revert.snapshot) : undefined;
83
83
  if (original)
84
84
  yield* snapshot.restore({
85
85
  files: new Map((session.revert.files ?? []).map((file) => [RelativePath2.make(file.file), original]))
@@ -110,7 +110,7 @@ var plan = Effect.fn("SessionRevert.plan")(function* (db, input) {
110
110
  continue;
111
111
  for (const file of message.snapshot.files ?? [])
112
112
  if (!files.has(file))
113
- files.set(file, ID4.make(message.snapshot.start));
113
+ files.set(file, ID5.make(message.snapshot.start));
114
114
  }
115
115
  return files;
116
116
  });