@opencode/core 0.0.0-dev-20086 → 0.0.0-dev-20091

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 (801) hide show
  1. package/dist/account/sql.js +1 -1
  2. package/dist/agent.js +81 -81
  3. package/dist/aisdk-native.js +89 -89
  4. package/dist/aisdk.js +94 -94
  5. package/dist/app.js +9 -9
  6. package/dist/bus.js +69 -69
  7. package/dist/chunks/{state-g4w6jwnj.js → rpc-0ak84vrq.js} +5 -5
  8. package/dist/chunks/{state-892zz8qj.js → rpc-0f99d1kc.js} +2 -2
  9. package/dist/chunks/{state-2r4f9961.js → rpc-0jd7kznf.js} +20 -20
  10. package/dist/chunks/{state-0paq2nw3.js → rpc-0paq2nw3.js} +1 -1
  11. package/dist/chunks/{state-tmgek03n.js → rpc-0qpy9kbv.js} +38 -38
  12. package/dist/chunks/{state-6w1rts7e.js → rpc-0yh7gvmr.js} +4 -4
  13. package/dist/chunks/{state-637kffsg.js → rpc-1187sa4n.js} +21 -21
  14. package/dist/chunks/{state-t15fh6tg.js → rpc-140nrjv3.js} +11 -11
  15. package/dist/chunks/{state-r8xr0va3.js → rpc-1acjjqhc.js} +4 -4
  16. package/dist/chunks/{state-1dazxqgg.js → rpc-1dazxqgg.js} +2 -2
  17. package/dist/chunks/{state-6qsj15fd.js → rpc-1g1f653b.js} +7 -7
  18. package/dist/chunks/{state-1ygqh575.js → rpc-1ygqh575.js} +2 -2
  19. package/dist/chunks/{state-21r38tys.js → rpc-21r38tys.js} +1 -1
  20. package/dist/chunks/{state-44849632.js → rpc-22605frz.js} +17 -17
  21. package/dist/chunks/{state-d858xzj7.js → rpc-277eer69.js} +4 -4
  22. package/dist/chunks/{state-2a5m3afh.js → rpc-2a5m3afh.js} +1 -1
  23. package/dist/chunks/{state-scad059f.js → rpc-2d9myqrc.js} +48 -48
  24. package/dist/chunks/{state-bgte5q86.js → rpc-2zb9s7ys.js} +9 -9
  25. package/dist/chunks/{state-k53npxr2.js → rpc-32h4nn8p.js} +1 -1
  26. package/dist/chunks/{state-6s8wj2t2.js → rpc-365yjnh1.js} +4 -4
  27. package/dist/chunks/{state-d2jcr80b.js → rpc-3a0ryv44.js} +15 -15
  28. package/dist/chunks/{state-3fc6dm20.js → rpc-3fc6dm20.js} +1 -1
  29. package/dist/chunks/{state-nj4z6qgz.js → rpc-3fj101ct.js} +5 -5
  30. package/dist/chunks/{state-3pt3xjye.js → rpc-3h7rs62d.js} +3 -3
  31. package/dist/chunks/{state-3hepkmqq.js → rpc-3hepkmqq.js} +1 -1
  32. package/dist/chunks/{state-n45qbav7.js → rpc-3n43km23.js} +5 -5
  33. package/dist/chunks/{state-q994nwkr.js → rpc-3p14h8vg.js} +6 -6
  34. package/dist/chunks/{state-sfr5ve0q.js → rpc-3rcen5fp.js} +18 -18
  35. package/dist/chunks/{state-yvvvp4gn.js → rpc-3rtxz4nr.js} +8 -8
  36. package/dist/chunks/{state-3smtnn6g.js → rpc-3smtnn6g.js} +1 -1
  37. package/dist/chunks/{state-3tvqynh2.js → rpc-3tvqynh2.js} +1 -1
  38. package/dist/chunks/{state-63cq5ear.js → rpc-3tyeh7t8.js} +11 -11
  39. package/dist/chunks/{state-3zsf4n22.js → rpc-3zsf4n22.js} +1 -1
  40. package/dist/chunks/{state-7z7az0f5.js → rpc-44ak30pa.js} +11 -7
  41. package/dist/chunks/{state-eef7h5va.js → rpc-45pqjn0p.js} +11 -11
  42. package/dist/chunks/{state-dqpqvfc1.js → rpc-48vq6k8e.js} +22 -22
  43. package/dist/chunks/{state-6xxehmv1.js → rpc-49waw88t.js} +18 -18
  44. package/dist/chunks/{state-m5qjvym0.js → rpc-4fkfxdcb.js} +26 -26
  45. package/dist/chunks/{state-nrx107y4.js → rpc-4yb3jyry.js} +16 -16
  46. package/dist/chunks/{state-y7x142mt.js → rpc-51cfftr3.js} +8 -8
  47. package/dist/chunks/{state-ckecvw8r.js → rpc-54tcyq79.js} +2 -2
  48. package/dist/chunks/{state-dsdkcqh1.js → rpc-54vja5z3.js} +12 -12
  49. package/dist/chunks/{state-bwgpf6kh.js → rpc-5cbbqwkm.js} +21 -21
  50. package/dist/chunks/{state-t3dtk66s.js → rpc-5d0ac39p.js} +20 -20
  51. package/dist/chunks/{state-5daktx2q.js → rpc-5daktx2q.js} +1 -1
  52. package/dist/chunks/{state-5ekn9679.js → rpc-5ekn9679.js} +1 -1
  53. package/dist/chunks/{state-a3r4dcrj.js → rpc-5frpvc34.js} +2 -2
  54. package/dist/chunks/{state-7z9wgydg.js → rpc-5h0sskvy.js} +7 -7
  55. package/dist/chunks/{state-4nzwy074.js → rpc-5kvqrqtt.js} +4 -4
  56. package/dist/chunks/{state-h6r3nrb9.js → rpc-5mtzsd3b.js} +4 -4
  57. package/dist/chunks/{state-dq0v80fr.js → rpc-5npp0aqe.js} +5 -5
  58. package/dist/chunks/{state-0erg9wwv.js → rpc-5pyghbdh.js} +25 -25
  59. package/dist/chunks/{state-bct739vz.js → rpc-5q02cxx3.js} +4 -4
  60. package/dist/chunks/{state-5t3nmthw.js → rpc-5t3nmthw.js} +2 -2
  61. package/dist/chunks/{state-chjpp9jv.js → rpc-5tdvja1p.js} +20 -20
  62. package/dist/chunks/{state-9hn6k4tm.js → rpc-5yzzbxa7.js} +8 -8
  63. package/dist/chunks/{state-7dqw4kz8.js → rpc-607tc6va.js} +5 -5
  64. package/dist/chunks/{state-669tq793.js → rpc-669tq793.js} +1 -1
  65. package/dist/chunks/{state-bhnryp6n.js → rpc-66fn4sgh.js} +27 -27
  66. package/dist/chunks/{state-my5aw7sa.js → rpc-670v93wv.js} +7 -7
  67. package/dist/chunks/{state-9zch71dn.js → rpc-6gcmqch7.js} +24 -24
  68. package/dist/chunks/{state-6h73sxmp.js → rpc-6h73sxmp.js} +1 -1
  69. package/dist/chunks/{state-6msgmcgs.js → rpc-6msgmcgs.js} +1 -1
  70. package/dist/chunks/{state-vssbqz3f.js → rpc-6r5j6srn.js} +4 -4
  71. package/dist/chunks/{state-wm0kxxzy.js → rpc-6vddn0mw.js} +11 -11
  72. package/dist/chunks/{state-nj1j17x6.js → rpc-6ysrkrkr.js} +8 -8
  73. package/dist/chunks/{state-mhkvc446.js → rpc-73tb2d7t.js} +3 -3
  74. package/dist/chunks/{state-580xtat9.js → rpc-7a0h28kt.js} +17 -17
  75. package/dist/chunks/{state-7bmhse3q.js → rpc-7bmhse3q.js} +1 -1
  76. package/dist/chunks/{state-n98mt2bs.js → rpc-7dps8r9t.js} +1 -1
  77. package/dist/chunks/{state-14qvxy67.js → rpc-7tbbnpg4.js} +4 -4
  78. package/dist/chunks/{state-dxs7zpw7.js → rpc-7wmac47h.js} +21 -21
  79. package/dist/chunks/{state-khz59kc2.js → rpc-855brr7v.js} +24 -24
  80. package/dist/chunks/{state-tcezcvh9.js → rpc-89znhe33.js} +4 -4
  81. package/dist/chunks/{state-8d7r5vzw.js → rpc-8d7r5vzw.js} +1 -1
  82. package/dist/chunks/{state-bgs9y14h.js → rpc-8dff8bqa.js} +5 -5
  83. package/dist/chunks/{state-0wey50z9.js → rpc-8fyhndsy.js} +15 -15
  84. package/dist/chunks/{state-tp76zfa1.js → rpc-8h0es0v7.js} +12 -12
  85. package/dist/chunks/{state-aesvhg1d.js → rpc-8hmg3j7t.js} +42 -42
  86. package/dist/chunks/{state-jexxy024.js → rpc-8q7cq0y1.js} +3 -3
  87. package/dist/chunks/{state-2wh0tznn.js → rpc-8rtprbzr.js} +44 -44
  88. package/dist/chunks/{state-dq47ydgj.js → rpc-8rxxwv2n.js} +11 -11
  89. package/dist/chunks/{state-331q5pgp.js → rpc-8ss5wpaf.js} +21 -21
  90. package/dist/chunks/{state-1s1ztnqh.js → rpc-8wad1t3a.js} +9 -9
  91. package/dist/chunks/{state-384gf1m7.js → rpc-92safqaw.js} +28 -28
  92. package/dist/chunks/{state-qwjmgwmn.js → rpc-92swnv4m.js} +8 -8
  93. package/dist/chunks/{state-37pjvmwd.js → rpc-97qf1wn9.js} +9 -9
  94. package/dist/chunks/{state-96frkt8z.js → rpc-9a3peswj.js} +7 -7
  95. package/dist/chunks/{state-g5vp43hv.js → rpc-9eadg5yg.js} +4 -4
  96. package/dist/chunks/{state-fhs97t90.js → rpc-9wpgsbre.js} +9 -9
  97. package/dist/chunks/{state-g6h7bsxt.js → rpc-a39fgh0c.js} +18 -18
  98. package/dist/chunks/{state-a8tm1nmv.js → rpc-a3eqt4pv.js} +11 -11
  99. package/dist/chunks/{state-r9tfwnqk.js → rpc-a9rrkws0.js} +3 -3
  100. package/dist/chunks/{state-aaet6srn.js → rpc-aaet6srn.js} +2 -2
  101. package/dist/chunks/{state-epb60yey.js → rpc-abmt9xsc.js} +29 -29
  102. package/dist/chunks/{state-12as4csw.js → rpc-ac7bw970.js} +4 -4
  103. package/dist/chunks/{state-rhg03jha.js → rpc-afseksn3.js} +15 -15
  104. package/dist/chunks/{state-ngxakx5z.js → rpc-ampcc59a.js} +30 -30
  105. package/dist/chunks/{state-3tza3sf4.js → rpc-anpt4zzg.js} +49 -49
  106. package/dist/chunks/{state-1bmsx0zf.js → rpc-ap15he75.js} +10 -10
  107. package/dist/chunks/{state-dmcwwrzf.js → rpc-ar5526at.js} +41 -41
  108. package/dist/chunks/{state-3fmtxraa.js → rpc-b2a4mx33.js} +4 -4
  109. package/dist/chunks/{state-b6gygkdw.js → rpc-b6gygkdw.js} +2 -2
  110. package/dist/chunks/{state-k1jc7js8.js → rpc-b8k7m099.js} +29 -29
  111. package/dist/chunks/{state-ckf8nxjz.js → rpc-baaqp4zd.js} +4 -4
  112. package/dist/chunks/{state-z07pqspn.js → rpc-bjtzbw4r.js} +3 -3
  113. package/dist/chunks/{state-x46s54wc.js → rpc-bzn0n02h.js} +5 -5
  114. package/dist/chunks/{state-wgzsnxjh.js → rpc-c0gceaw5.js} +20 -20
  115. package/dist/chunks/{state-vpwpbydj.js → rpc-c1np9tvh.js} +12 -12
  116. package/dist/chunks/{state-tvqfr44j.js → rpc-c27pyt7g.js} +18 -18
  117. package/dist/chunks/{state-w2fbgn6w.js → rpc-cbegqk0n.js} +16 -16
  118. package/dist/chunks/{state-r33ff4dw.js → rpc-cqg8v4c7.js} +6 -6
  119. package/dist/chunks/{state-addr2z3b.js → rpc-ctfk3r7m.js} +14 -14
  120. package/dist/chunks/{state-xhvbz364.js → rpc-cv1dxnrk.js} +2 -2
  121. package/dist/chunks/{state-djszqvmq.js → rpc-cwa6csj7.js} +9 -9
  122. package/dist/chunks/{state-57ez7d0k.js → rpc-d9s573fh.js} +2 -2
  123. package/dist/chunks/{state-mp6axp2d.js → rpc-daehv13z.js} +17 -17
  124. package/dist/chunks/{state-22r3fh08.js → rpc-daf1799e.js} +7 -7
  125. package/dist/chunks/{state-6q87yf47.js → rpc-db69fgnc.js} +10 -10
  126. package/dist/chunks/{state-4qv3yyzg.js → rpc-dfe4ny7b.js} +10 -10
  127. package/dist/chunks/{state-g9a672k8.js → rpc-dhd4sqjj.js} +8 -8
  128. package/dist/chunks/{state-1em0vfhe.js → rpc-dhy82dgw.js} +9 -9
  129. package/dist/chunks/{state-ksg5ge3c.js → rpc-djfjcras.js} +11 -11
  130. package/dist/chunks/{state-vtxr0yy2.js → rpc-dmqcgk4z.js} +6 -6
  131. package/dist/chunks/{state-y71avatq.js → rpc-dpkg50ah.js} +4 -4
  132. package/dist/chunks/{state-zw06ysnm.js → rpc-dq1j01v1.js} +7 -7
  133. package/dist/chunks/{state-drwq78ky.js → rpc-drwq78ky.js} +1 -1
  134. package/dist/chunks/{state-rycbktba.js → rpc-dxrcwhf4.js} +3 -3
  135. package/dist/chunks/{state-6n2eehmw.js → rpc-dz3ef1v7.js} +22 -22
  136. package/dist/chunks/{state-dbs1cfk5.js → rpc-e1mcxat9.js} +15 -15
  137. package/dist/chunks/{state-r860wnh4.js → rpc-e77v5w2a.js} +3 -3
  138. package/dist/chunks/{state-ef5x83kb.js → rpc-ef5x83kb.js} +1 -1
  139. package/dist/chunks/{state-ybhbtxjg.js → rpc-egrr39fs.js} +6 -6
  140. package/dist/chunks/{state-t6msp11s.js → rpc-em7mzjn4.js} +6 -6
  141. package/dist/chunks/{state-1px9a8xa.js → rpc-epag9pnc.js} +28 -28
  142. package/dist/chunks/{state-erw5rpbs.js → rpc-erw5rpbs.js} +2 -2
  143. package/dist/chunks/{state-1vtry6ap.js → rpc-esgwbj3g.js} +11 -11
  144. package/dist/chunks/{state-etq0c3wd.js → rpc-etq0c3wd.js} +1 -1
  145. package/dist/chunks/{state-dj9sq318.js → rpc-ez47arx5.js} +5 -5
  146. package/dist/chunks/{state-8tt36ewb.js → rpc-f5440hnn.js} +25 -25
  147. package/dist/chunks/{state-4n607a2z.js → rpc-f62qkzqr.js} +5 -5
  148. package/dist/chunks/{state-8d0p2m37.js → rpc-fcehmy4h.js} +6 -6
  149. package/dist/chunks/{state-bxxr9cq6.js → rpc-fd991arp.js} +12 -12
  150. package/dist/chunks/{state-4ncjv8c3.js → rpc-fdz38t3m.js} +32 -32
  151. package/dist/chunks/{state-fv5cfh7k.js → rpc-fg14c903.js} +11 -11
  152. package/dist/chunks/{state-6xjd4qpp.js → rpc-fk21bvkt.js} +86 -86
  153. package/dist/chunks/{state-821ss22x.js → rpc-fscv18x6.js} +48 -48
  154. package/dist/chunks/{state-527n1w5n.js → rpc-fwx7zfd0.js} +7 -7
  155. package/dist/chunks/{state-vyxryegc.js → rpc-fz9n0x27.js} +28 -28
  156. package/dist/chunks/{state-gd4qta3r.js → rpc-gd4qta3r.js} +1 -1
  157. package/dist/chunks/{state-94ek1h2f.js → rpc-gfvb90ym.js} +2 -2
  158. package/dist/chunks/{state-nybzzdwf.js → rpc-gxc4dss7.js} +23 -23
  159. package/dist/chunks/{state-rdve76c1.js → rpc-h21e9eav.js} +11 -11
  160. package/dist/chunks/{state-mpsr4xxv.js → rpc-h5cr8bz1.js} +8 -8
  161. package/dist/chunks/{state-h6vf3j39.js → rpc-h6vf3j39.js} +1 -1
  162. package/dist/chunks/{state-gj2fds2z.js → rpc-h7hht36j.js} +12 -12
  163. package/dist/chunks/{state-7wrqfeey.js → rpc-hb491ctm.js} +43 -43
  164. package/dist/chunks/{state-5gftdx11.js → rpc-hcj02zej.js} +47 -47
  165. package/dist/chunks/{state-gpk600j1.js → rpc-hf4kecbx.js} +14 -14
  166. package/dist/chunks/rpc-hr9dp009.js +4 -0
  167. package/dist/chunks/{state-ftffmgpp.js → rpc-ht092jq8.js} +25 -25
  168. package/dist/chunks/{state-kbhz4k7s.js → rpc-j0dtfmad.js} +11 -11
  169. package/dist/chunks/{state-j56e64zr.js → rpc-j56e64zr.js} +1 -1
  170. package/dist/chunks/{state-sc9th92v.js → rpc-jh1ctwrr.js} +13 -13
  171. package/dist/chunks/{state-dg2cj1yd.js → rpc-jjzf804t.js} +4 -4
  172. package/dist/chunks/{state-gv189fdt.js → rpc-jqtg2a1d.js} +4 -4
  173. package/dist/chunks/{state-prk02b1h.js → rpc-jvg2fp71.js} +25 -25
  174. package/dist/chunks/{state-ab3q5qw2.js → rpc-k2q04tbx.js} +27 -27
  175. package/dist/chunks/{state-k3c624dm.js → rpc-k3c624dm.js} +3 -3
  176. package/dist/chunks/{state-jtjd9btn.js → rpc-k4bdqcm1.js} +12 -12
  177. package/dist/chunks/{state-gvz217w8.js → rpc-khtspwyv.js} +16 -16
  178. package/dist/chunks/{state-nh5efkqv.js → rpc-km2mv6w2.js} +9 -9
  179. package/dist/chunks/{state-jmx7yt6q.js → rpc-kt3xrw1h.js} +6 -6
  180. package/dist/chunks/{state-s2zjj5p9.js → rpc-kvak95fc.js} +20 -20
  181. package/dist/chunks/{state-cbm7rw8j.js → rpc-m0yf1xgy.js} +24 -24
  182. package/dist/chunks/{state-w2gpeyga.js → rpc-m2zwv4x1.js} +23 -23
  183. package/dist/chunks/{state-m3fdjcah.js → rpc-m3fdjcah.js} +1 -1
  184. package/dist/chunks/{state-38zhvv5q.js → rpc-m4zcmsxf.js} +9 -9
  185. package/dist/chunks/{state-w6wc4w52.js → rpc-m6e83zq9.js} +322 -322
  186. package/dist/chunks/{state-p1m5akjg.js → rpc-m71bz8xd.js} +8 -8
  187. package/dist/chunks/{state-m9w0rfyh.js → rpc-m9w0rfyh.js} +1 -1
  188. package/dist/chunks/{state-5vmwkxe9.js → rpc-mj63816a.js} +22 -22
  189. package/dist/chunks/{state-a8bn8zg0.js → rpc-mjymc32g.js} +4 -4
  190. package/dist/chunks/{state-0tmgye68.js → rpc-mphgtbj1.js} +9 -9
  191. package/dist/chunks/{state-8hm487hb.js → rpc-mtfg2rzp.js} +11 -11
  192. package/dist/chunks/{state-vgbaqptb.js → rpc-n7rry9e7.js} +6 -6
  193. package/dist/chunks/{state-2akz4pff.js → rpc-n8syj9f0.js} +16 -16
  194. package/dist/chunks/{state-vchqcv40.js → rpc-nn0j7dhb.js} +17 -17
  195. package/dist/chunks/{state-8w6y8kk9.js → rpc-nnb3zbyy.js} +20 -20
  196. package/dist/chunks/{state-07rdd209.js → rpc-nwvqacg0.js} +15 -15
  197. package/dist/chunks/{state-ash9qzxk.js → rpc-p0jg9bfb.js} +8 -8
  198. package/dist/chunks/{state-3ztzj39p.js → rpc-p5b6a9hg.js} +17 -17
  199. package/dist/chunks/{state-87qk2fb2.js → rpc-p5fj36b1.js} +8 -8
  200. package/dist/chunks/{state-s0gvgf44.js → rpc-p9303mn1.js} +21 -21
  201. package/dist/chunks/{state-pjvnvgmy.js → rpc-pjvnvgmy.js} +1 -1
  202. package/dist/chunks/{state-pknna89w.js → rpc-pknna89w.js} +1 -1
  203. package/dist/chunks/{state-xcfbfb3r.js → rpc-prejmsyd.js} +31 -31
  204. package/dist/chunks/{state-wd3x2cqz.js → rpc-psazpmmj.js} +2 -2
  205. package/dist/chunks/{state-w5mngq82.js → rpc-pvnvy7e3.js} +1 -1
  206. package/dist/chunks/{state-b2rczs3a.js → rpc-q063x1m1.js} +3 -3
  207. package/dist/chunks/{state-kv8zgwe7.js → rpc-q14yt9m2.js} +5 -5
  208. package/dist/chunks/{state-jrfdjycb.js → rpc-q80jy5e4.js} +11 -11
  209. package/dist/chunks/{state-qkrrfaax.js → rpc-q9b6yydg.js} +25 -25
  210. package/dist/chunks/{state-271vm2mc.js → rpc-qhpxg0gg.js} +175 -175
  211. package/dist/chunks/{state-qsdy395h.js → rpc-qsdy395h.js} +1 -1
  212. package/dist/chunks/{state-2cdppye1.js → rpc-qt0s1ys5.js} +9 -9
  213. package/dist/chunks/{state-3xe0jx7r.js → rpc-r33vza2m.js} +2 -2
  214. package/dist/chunks/{state-12p4qwq0.js → rpc-r6kyhk88.js} +13 -13
  215. package/dist/chunks/{state-ggydwk5a.js → rpc-r77c5ftj.js} +26 -26
  216. package/dist/chunks/{state-fdms3n6w.js → rpc-r9w3djhf.js} +9 -9
  217. package/dist/chunks/{state-zdnfnbnt.js → rpc-raz4feyj.js} +26 -26
  218. package/dist/chunks/{state-rdw6cm16.js → rpc-rdw6cm16.js} +1 -1
  219. package/dist/chunks/{state-86dam8yv.js → rpc-rdx3ran4.js} +11 -11
  220. package/dist/chunks/{state-zpx8x5b1.js → rpc-rhnbcme6.js} +14 -14
  221. package/dist/chunks/{state-64dtqc3f.js → rpc-rk5cbm42.js} +5 -5
  222. package/dist/chunks/{state-6pc27hjz.js → rpc-rkprpv83.js} +6 -6
  223. package/dist/chunks/{state-zeh9ct20.js → rpc-rq775frq.js} +2 -2
  224. package/dist/chunks/{state-ahze9mkv.js → rpc-rvnvjbyr.js} +10 -10
  225. package/dist/chunks/{state-nkf0pzw4.js → rpc-s680c22m.js} +13 -13
  226. package/dist/chunks/{state-tr7ttk42.js → rpc-shhtp6sb.js} +17 -17
  227. package/dist/chunks/{state-k7hn9ts1.js → rpc-shjbm5s5.js} +11 -11
  228. package/dist/chunks/{state-dhw6r217.js → rpc-shqkqfxq.js} +17 -17
  229. package/dist/chunks/{state-n436yt00.js → rpc-skeqeh4r.js} +27 -27
  230. package/dist/chunks/{state-ww31mshw.js → rpc-srmqrt03.js} +17 -17
  231. package/dist/chunks/{state-72c7x5rd.js → rpc-t0qwt8g4.js} +5 -5
  232. package/dist/chunks/{state-m46seram.js → rpc-t2120bsy.js} +17 -17
  233. package/dist/chunks/{state-ws3tx48n.js → rpc-t2z6k8ec.js} +88 -88
  234. package/dist/chunks/{state-e6hmchc5.js → rpc-t3swkhbg.js} +2 -2
  235. package/dist/chunks/{state-rhjbct0v.js → rpc-t550f9t1.js} +4 -4
  236. package/dist/chunks/{state-fdv30zvt.js → rpc-t6vsspdg.js} +4 -4
  237. package/dist/chunks/{state-tazgh4e4.js → rpc-tazgh4e4.js} +1 -1
  238. package/dist/chunks/{state-nxhqveyz.js → rpc-tb89zjsd.js} +5 -5
  239. package/dist/chunks/{state-tdstcens.js → rpc-tdstcens.js} +1 -1
  240. package/dist/chunks/rpc-tras7yme.js +252 -0
  241. package/dist/chunks/{state-tvtrv512.js → rpc-tvtrv512.js} +1 -1
  242. package/dist/chunks/{state-dnrkp1py.js → rpc-v34za21y.js} +34 -34
  243. package/dist/chunks/{state-dnndpd67.js → rpc-v6wj3j48.js} +21 -21
  244. package/dist/chunks/{state-ezbzr521.js → rpc-v7417wvt.js} +30 -30
  245. package/dist/chunks/{state-x9ftw283.js → rpc-v9n78xjr.js} +46 -46
  246. package/dist/chunks/{state-rxp8vwqb.js → rpc-vbd8trgq.js} +14 -14
  247. package/dist/chunks/{state-veqvce7d.js → rpc-veqvce7d.js} +1 -1
  248. package/dist/chunks/{state-x7gyst7m.js → rpc-vg2e8j6d.js} +7 -7
  249. package/dist/chunks/rpc-vnkjks7b.js +18 -0
  250. package/dist/chunks/{state-8zz3fhf5.js → rpc-vv3pxcp1.js} +24 -24
  251. package/dist/chunks/{state-9smb885v.js → rpc-vvchgjpn.js} +35 -35
  252. package/dist/chunks/{state-9g7qqvsb.js → rpc-vvwdyrxn.js} +64 -64
  253. package/dist/chunks/{state-za95q0ey.js → rpc-vybe5h7b.js} +13 -13
  254. package/dist/chunks/{state-vzcthcp8.js → rpc-vzcthcp8.js} +1 -1
  255. package/dist/chunks/{state-w3wsvvr9.js → rpc-w3wsvvr9.js} +1 -1
  256. package/dist/chunks/{state-zhfw9w26.js → rpc-w94fp5je.js} +22 -22
  257. package/dist/chunks/{state-zaxbaxp3.js → rpc-wamymaxn.js} +13 -13
  258. package/dist/chunks/{state-2gsn04w3.js → rpc-wcdy3eek.js} +33 -33
  259. package/dist/chunks/{state-wd87259q.js → rpc-wd87259q.js} +1 -1
  260. package/dist/chunks/{state-87df55d3.js → rpc-wnyecskh.js} +13 -13
  261. package/dist/chunks/{state-cfm9g534.js → rpc-wpm2rk0p.js} +8 -8
  262. package/dist/chunks/{state-bswpvtym.js → rpc-wvyrsy9x.js} +8 -8
  263. package/dist/chunks/{state-ttkne1yr.js → rpc-wwsc9jn3.js} +26 -26
  264. package/dist/chunks/{state-10jtetaj.js → rpc-wzz0kxab.js} +7 -7
  265. package/dist/chunks/{state-x1ezjp6w.js → rpc-x1ezjp6w.js} +1 -1
  266. package/dist/chunks/{state-es9xe94t.js → rpc-xc69qdhb.js} +6 -6
  267. package/dist/chunks/{state-52hb404k.js → rpc-xcd0eash.js} +6 -6
  268. package/dist/chunks/{state-smmy5npd.js → rpc-xee4y2w1.js} +26 -26
  269. package/dist/chunks/{state-trg234vc.js → rpc-xpy2chad.js} +27 -27
  270. package/dist/chunks/{state-103sd08j.js → rpc-xs2r0fkq.js} +8 -8
  271. package/dist/chunks/{state-q0jqcs2e.js → rpc-xvrfjdkf.js} +24 -24
  272. package/dist/chunks/{state-eqrfgmgr.js → rpc-xzzcxeez.js} +37 -37
  273. package/dist/chunks/{state-y1fvbwt7.js → rpc-y1fvbwt7.js} +1 -1
  274. package/dist/chunks/{state-40e94ye7.js → rpc-ydztx126.js} +26 -26
  275. package/dist/chunks/{state-yrhqyw5v.js → rpc-yrhqyw5v.js} +1 -1
  276. package/dist/chunks/{state-yrznvahk.js → rpc-yrznvahk.js} +2 -2
  277. package/dist/chunks/{state-gv6a8nnw.js → rpc-yyb7tjpc.js} +2 -2
  278. package/dist/chunks/{state-z0bkrqjs.js → rpc-z0bkrqjs.js} +1 -1
  279. package/dist/chunks/{state-cjagda2z.js → rpc-z2he3694.js} +23 -23
  280. package/dist/chunks/{state-6f09tcf1.js → rpc-z4am7v83.js} +33 -33
  281. package/dist/chunks/{state-vyj7e0dj.js → rpc-z513xpqp.js} +43 -43
  282. package/dist/chunks/{state-z63w68vq.js → rpc-z63w68vq.js} +2 -2
  283. package/dist/chunks/{state-njbb07ax.js → rpc-z6ds88kc.js} +13 -13
  284. package/dist/chunks/{state-qp3v07n2.js → rpc-ze5v0a14.js} +8 -8
  285. package/dist/chunks/{state-en8wy5tc.js → rpc-zefabhx4.js} +6 -6
  286. package/dist/chunks/{state-02cj0pc8.js → rpc-zeg2a3nt.js} +12 -12
  287. package/dist/chunks/{state-zr2ceqn5.js → rpc-zr2ceqn5.js} +1 -1
  288. package/dist/chunks/{state-9aq5295b.js → rpc-zvxnxwje.js} +8 -8
  289. package/dist/chunks/{state-x69hm2n9.js → rpc-zwvyhhtf.js} +17 -17
  290. package/dist/chunks/{state-zxq2ej10.js → rpc-zxq2ej10.js} +1 -1
  291. package/dist/chunks/{state-b4xx7p0v.js → rpc-zznvadtc.js} +10 -10
  292. package/dist/codemode/catalog.js +1 -1
  293. package/dist/codemode/instructions.js +9 -9
  294. package/dist/codemode/tool.js +3 -3
  295. package/dist/codemode/web.js +1 -1
  296. package/dist/command.js +83 -83
  297. package/dist/config/discovery.js +84 -84
  298. package/dist/config/markdown.js +1 -1
  299. package/dist/config/normalize.js +106 -106
  300. package/dist/config/plugin/agent.js +123 -123
  301. package/dist/config/plugin/command.js +212 -212
  302. package/dist/config/plugin/compaction.js +160 -160
  303. package/dist/config/plugin/compatibility.js +141 -141
  304. package/dist/config/plugin/entry-observer.js +1 -1
  305. package/dist/config/plugin/formatter.js +124 -124
  306. package/dist/config/plugin/image.js +123 -123
  307. package/dist/config/plugin/instruction.js +90 -90
  308. package/dist/config/plugin/location-watcher.js +123 -123
  309. package/dist/config/plugin/mcp.js +130 -130
  310. package/dist/config/plugin/policy.js +124 -124
  311. package/dist/config/plugin/provider.js +123 -123
  312. package/dist/config/plugin/reference.js +123 -123
  313. package/dist/config/plugin/shell.js +125 -125
  314. package/dist/config/plugin/skill-file.js +102 -102
  315. package/dist/config/plugin/skill.js +144 -144
  316. package/dist/config/plugin/snapshot.js +123 -123
  317. package/dist/config/plugin/source.js +126 -126
  318. package/dist/config/plugin/tool-output.js +125 -125
  319. package/dist/config/plugin/websearch.js +124 -124
  320. package/dist/config/plugin/worktree.js +125 -125
  321. package/dist/config/variable.js +3 -3
  322. package/dist/config/watch.js +1 -1
  323. package/dist/config.js +128 -128
  324. package/dist/credential/sql.js +2 -2
  325. package/dist/credential.js +83 -83
  326. package/dist/database/database.js +66 -66
  327. package/dist/database/drizzle/effect-sqlite/driver.js +14 -14
  328. package/dist/database/drizzle/effect-sqlite/index.js +14 -14
  329. package/dist/database/drizzle/effect-sqlite/session.js +11 -11
  330. package/dist/database/drizzle/index.js +15 -15
  331. package/dist/database/drizzle/internal/drizzle-utils.js +1 -1
  332. package/dist/database/drizzle/sqlite-core/effect/count.js +1 -1
  333. package/dist/database/drizzle/sqlite-core/effect/db.js +9 -9
  334. package/dist/database/drizzle/sqlite-core/effect/delete.js +2 -2
  335. package/dist/database/drizzle/sqlite-core/effect/index.js +10 -10
  336. package/dist/database/drizzle/sqlite-core/effect/insert.js +2 -2
  337. package/dist/database/drizzle/sqlite-core/effect/query.js +1 -1
  338. package/dist/database/drizzle/sqlite-core/effect/raw.js +1 -1
  339. package/dist/database/drizzle/sqlite-core/effect/select.js +2 -2
  340. package/dist/database/drizzle/sqlite-core/effect/session.js +10 -10
  341. package/dist/database/drizzle/sqlite-core/effect/update.js +2 -2
  342. package/dist/database/drizzle.js +16 -16
  343. package/dist/database/migration/20260127222353_familiar_lady_ursula.js +1 -1
  344. package/dist/database/migration/20260211171708_add_project_commands.js +1 -1
  345. package/dist/database/migration/20260213144116_wakeful_the_professor.js +1 -1
  346. package/dist/database/migration/20260225215848_workspace.js +1 -1
  347. package/dist/database/migration/20260227213759_add_session_workspace_id.js +1 -1
  348. package/dist/database/migration/20260228203230_blue_harpoon.js +1 -1
  349. package/dist/database/migration/20260303231226_add_workspace_fields.js +1 -1
  350. package/dist/database/migration/20260309230000_move_org_to_state.js +1 -1
  351. package/dist/database/migration/20260312043431_session_message_cursor.js +1 -1
  352. package/dist/database/migration/20260323234822_events.js +1 -1
  353. package/dist/database/migration/20260410174513_workspace-name.js +1 -1
  354. package/dist/database/migration/20260413175956_chief_energizer.js +1 -1
  355. package/dist/database/migration/20260423070820_add_icon_url_override.js +1 -1
  356. package/dist/database/migration/20260427172553_slow_nightmare.js +1 -1
  357. package/dist/database/migration/20260428004200_add_session_path.js +1 -1
  358. package/dist/database/migration/20260501142318_next_venus.js +1 -1
  359. package/dist/database/migration/20260504145000_add_sync_owner.js +1 -1
  360. package/dist/database/migration/20260507164347_add_workspace_time.js +1 -1
  361. package/dist/database/migration/20260510033149_session_usage.js +1 -1
  362. package/dist/database/migration/20260511000411_data_migration_state.js +1 -1
  363. package/dist/database/migration/20260511173437_session-metadata.js +1 -1
  364. package/dist/database/migration/20260601010001_normalize_storage_paths.js +1 -1
  365. package/dist/database/migration/20260601202201_amazing_prowler.js +1 -1
  366. package/dist/database/migration/20260602002951_lowly_union_jack.js +1 -1
  367. package/dist/database/migration/20260602182828_add_project_directories.js +1 -1
  368. package/dist/database/migration/20260603001617_session_message_projection_indexes.js +1 -1
  369. package/dist/database/migration/20260603040000_session_message_projection_order.js +1 -1
  370. package/dist/database/migration/20260603141458_session_input_inbox.js +1 -1
  371. package/dist/database/migration/20260603160727_jittery_ezekiel_stane.js +1 -1
  372. package/dist/database/migration/20260604172448_event_sourced_session_input.js +1 -1
  373. package/dist/database/migration/20260605003541_add_session_context_snapshot.js +1 -1
  374. package/dist/database/migration/20260605042240_add_context_epoch_agent.js +1 -1
  375. package/dist/database/migration/20260611035744_credential.js +1 -1
  376. package/dist/database/migration/20260611192811_lush_chimera.js +1 -1
  377. package/dist/database/migration/20260612174303_project_dir_strategy.js +1 -1
  378. package/dist/database/migration/20260622142730_simplify_session_context_epoch.js +1 -1
  379. package/dist/database/migration/20260622170816_reset_v2_session_state.js +1 -1
  380. package/dist/database/migration/20260622202450_simplify_session_input.js +1 -1
  381. package/dist/database/migration/20260804233008_loose_psylocke.js +1 -1
  382. package/dist/database/migration/20260805200742_import_legacy_credentials.js +1 -1
  383. package/dist/database/migration/20260808023530_workspace_domain.js +1 -1
  384. package/dist/database/migration/20260811161259_execution_claim_attempts.js +1 -1
  385. package/dist/database/migration/20260812181746_session_inbox.js +1 -1
  386. package/dist/database/migration/20260812213948_worktree.js +1 -1
  387. package/dist/database/migration/20260819222447_session_viewed_state.js +1 -1
  388. package/dist/database/migration/20260823191254_nullable_workspace_binding.js +1 -1
  389. package/dist/database/migration/20260910120000_clear_v1_session_permission.js +1 -1
  390. package/dist/database/migration/20260923013825_project_time_active.js +1 -1
  391. package/dist/database/migration.gen.js +49 -49
  392. package/dist/database/migration.js +51 -51
  393. package/dist/database/path.js +2 -2
  394. package/dist/database/schema.gen.js +1 -1
  395. package/dist/database/schema.sql.js +1 -1
  396. package/dist/database/sqlite.bun.js +1 -1
  397. package/dist/database/sqlite.js +1 -1
  398. package/dist/database/sqlite.node.js +1 -1
  399. package/dist/database/sqlite.workerd.js +1 -1
  400. package/dist/database/v1-migration.bun.js +76 -76
  401. package/dist/database/v1-migration.js +1 -1
  402. package/dist/effect/app-node-builder.js +371 -371
  403. package/dist/effect/app-node-platform.js +2 -2
  404. package/dist/effect/keyed-mutex.js +3 -3
  405. package/dist/effect/websocket-constructor.js +1 -1
  406. package/dist/environment/driver.js +1 -1
  407. package/dist/environment/environment.js +93 -93
  408. package/dist/environment/exec-defaults.js +2 -2
  409. package/dist/environment/files.js +1 -1
  410. package/dist/environment/index.js +95 -95
  411. package/dist/environment/local.js +2 -2
  412. package/dist/environment/memory.js +2 -2
  413. package/dist/environment/unavailable.js +1 -1
  414. package/dist/event/sql.js +1 -1
  415. package/dist/event-logger.js +70 -70
  416. package/dist/file-access.js +104 -104
  417. package/dist/file-mutation.js +94 -94
  418. package/dist/file-retention.js +1 -1
  419. package/dist/file.js +1 -1
  420. package/dist/filesystem/fff.bun.js +2 -2
  421. package/dist/filesystem/fff.js +1 -1
  422. package/dist/filesystem/fff.node.js +2 -2
  423. package/dist/filesystem/fff.workerd.js +2 -2
  424. package/dist/filesystem/ignore.js +1 -1
  425. package/dist/filesystem/location-watcher-policy.js +6 -6
  426. package/dist/filesystem/location-watcher.js +225 -225
  427. package/dist/filesystem/protected.js +3 -3
  428. package/dist/filesystem/search.js +103 -103
  429. package/dist/filesystem/watcher-binding.js +1 -1
  430. package/dist/filesystem/watcher.js +15 -15
  431. package/dist/filesystem.js +108 -108
  432. package/dist/form.js +84 -84
  433. package/dist/formatter/builtins.js +4 -4
  434. package/dist/formatter.js +89 -89
  435. package/dist/generate.js +101 -101
  436. package/dist/git.js +6 -6
  437. package/dist/github-copilot/chat/convert-to-openai-compatible-chat-messages.js +1 -1
  438. package/dist/github-copilot/chat/get-response-metadata.js +1 -1
  439. package/dist/github-copilot/chat/map-openai-compatible-finish-reason.js +1 -1
  440. package/dist/github-copilot/chat/openai-compatible-chat-language-model.js +7 -7
  441. package/dist/github-copilot/chat/openai-compatible-chat-options.js +1 -1
  442. package/dist/github-copilot/chat/openai-compatible-prepare-tools.js +1 -1
  443. package/dist/github-copilot/copilot-provider.js +17 -17
  444. package/dist/github-copilot/models.js +91 -91
  445. package/dist/github-copilot/openai-compatible-error.js +1 -1
  446. package/dist/github-copilot/responses/convert-to-openai-responses-input.js +1 -1
  447. package/dist/github-copilot/responses/map-openai-responses-finish-reason.js +1 -1
  448. package/dist/github-copilot/responses/openai-error.js +1 -1
  449. package/dist/github-copilot/responses/openai-responses-language-model.js +10 -10
  450. package/dist/github-copilot/responses/openai-responses-prepare-tools.js +6 -6
  451. package/dist/github-copilot/responses/tool/code-interpreter.js +1 -1
  452. package/dist/github-copilot/responses/tool/file-search.js +1 -1
  453. package/dist/github-copilot/responses/tool/image-generation.js +1 -1
  454. package/dist/github-copilot/responses/tool/web-search-preview.js +1 -1
  455. package/dist/github-copilot/responses/tool/web-search.js +1 -1
  456. package/dist/id/id.js +1 -1
  457. package/dist/image/photon.js +2 -2
  458. package/dist/image.js +6 -6
  459. package/dist/instance/service.js +5 -5
  460. package/dist/instance.js +362 -362
  461. package/dist/instruction-discovery.js +85 -85
  462. package/dist/instructions/builtins.js +87 -87
  463. package/dist/instructions/index.js +3 -3
  464. package/dist/integration/connection.js +3 -3
  465. package/dist/integration.js +86 -86
  466. package/dist/job.js +79 -79
  467. package/dist/kv/sql.js +2 -2
  468. package/dist/kv.js +73 -73
  469. package/dist/location-activity.js +132 -132
  470. package/dist/location-lifecycle.js +107 -107
  471. package/dist/location-mutation.js +104 -104
  472. package/dist/location-service-map.js +86 -86
  473. package/dist/location-services.js +359 -359
  474. package/dist/location.js +81 -81
  475. package/dist/managed-policy.js +5 -5
  476. package/dist/mcp/client.js +91 -91
  477. package/dist/mcp/index.js +108 -108
  478. package/dist/mcp/instructions.js +128 -128
  479. package/dist/mcp/oauth.js +78 -78
  480. package/dist/mcp/stdio.js +90 -90
  481. package/dist/mime.js +1 -1
  482. package/dist/modal/models.js +91 -91
  483. package/dist/model-resolver.js +98 -98
  484. package/dist/model.js +100 -100
  485. package/dist/models-dev.js +99 -99
  486. package/dist/oauth/page.js +1 -1
  487. package/dist/permission/saved.js +82 -82
  488. package/dist/permission/sql.js +5 -5
  489. package/dist/permission.js +109 -109
  490. package/dist/persistent-pty/binary.bun.js +1 -1
  491. package/dist/persistent-pty/daemon.js +1 -1
  492. package/dist/persistent-pty/index.js +86 -86
  493. package/dist/persistent-pty/pty-binding.js +1 -1
  494. package/dist/persistent-pty.js +75 -75
  495. package/dist/plugin/agent.js +102 -102
  496. package/dist/plugin/command.js +99 -99
  497. package/dist/plugin/compaction.js +131 -131
  498. package/dist/plugin/hooks.js +5 -5
  499. package/dist/plugin/host.js +218 -218
  500. package/dist/plugin/identity.js +3 -3
  501. package/dist/plugin/instance.js +5 -5
  502. package/dist/plugin/internal.js +333 -333
  503. package/dist/plugin/mcp-codemode-defaults.js +8 -0
  504. package/dist/plugin/models-dev.js +96 -96
  505. package/dist/plugin/module.js +7 -7
  506. package/dist/plugin/optimize.js +4 -4
  507. package/dist/plugin/plan.js +100 -100
  508. package/dist/plugin/promise.js +1 -1
  509. package/dist/plugin/provider/amazon-bedrock.js +90 -90
  510. package/dist/plugin/provider/azure.js +122 -122
  511. package/dist/plugin/provider/cerebras.js +1 -1
  512. package/dist/plugin/provider/cloudflare-ai-gateway.js +121 -121
  513. package/dist/plugin/provider/cloudflare-workers-ai.js +121 -121
  514. package/dist/plugin/provider/cohere.js +2 -2
  515. package/dist/plugin/provider/configured.js +119 -119
  516. package/dist/plugin/provider/digitalocean.js +93 -93
  517. package/dist/plugin/provider/dynamic.js +2 -2
  518. package/dist/plugin/provider/factory.js +1 -1
  519. package/dist/plugin/provider/gateway.js +2 -2
  520. package/dist/plugin/provider/github-copilot.js +93 -93
  521. package/dist/plugin/provider/gitlab.js +93 -93
  522. package/dist/plugin/provider/google-vertex.js +90 -90
  523. package/dist/plugin/provider/kilo.js +1 -1
  524. package/dist/plugin/provider/llmgateway.js +77 -77
  525. package/dist/plugin/provider/lmstudio.js +120 -120
  526. package/dist/plugin/provider/modal.js +92 -92
  527. package/dist/plugin/provider/nvidia.js +1 -1
  528. package/dist/plugin/provider/ollama.js +122 -122
  529. package/dist/plugin/provider/openai.js +94 -94
  530. package/dist/plugin/provider/opencode.js +95 -95
  531. package/dist/plugin/provider/openrouter.js +91 -91
  532. package/dist/plugin/provider/perplexity.js +2 -2
  533. package/dist/plugin/provider/poe.js +78 -78
  534. package/dist/plugin/provider/prompt-cache-key.js +90 -90
  535. package/dist/plugin/provider/sap-ai-core.js +91 -91
  536. package/dist/plugin/provider/sdk-factory.js +1 -1
  537. package/dist/plugin/provider/snowflake-cortex.js +122 -122
  538. package/dist/plugin/provider/venice.js +2 -2
  539. package/dist/plugin/provider/vercel.js +90 -90
  540. package/dist/plugin/provider/vllm.js +122 -122
  541. package/dist/plugin/provider/xai.js +91 -91
  542. package/dist/plugin/provider/zenmux.js +1 -1
  543. package/dist/plugin/provider.js +160 -160
  544. package/dist/plugin/sdk.js +74 -74
  545. package/dist/plugin/service.js +3 -3
  546. package/dist/plugin/skill.js +139 -139
  547. package/dist/plugin/source-directory.js +1 -1
  548. package/dist/plugin/supervisor.js +348 -348
  549. package/dist/plugin/tool-input-repair.js +4 -4
  550. package/dist/plugin/update.js +6 -6
  551. package/dist/plugin/vcs/git.js +86 -86
  552. package/dist/plugin/vcs/hg.js +86 -86
  553. package/dist/plugin/warming.js +121 -121
  554. package/dist/plugin/websearch/exa.js +7 -7
  555. package/dist/plugin/websearch/firecrawl.js +8 -8
  556. package/dist/plugin/websearch/index.js +9 -9
  557. package/dist/plugin/websearch/mcp.js +2 -2
  558. package/dist/plugin/websearch/parallel.js +6 -6
  559. package/dist/plugin/websearch/tavily.js +6 -6
  560. package/dist/plugin/websearch/tinyfish.js +8 -8
  561. package/dist/plugin.js +229 -229
  562. package/dist/project/schema.js +2 -2
  563. package/dist/project/sql.js +4 -4
  564. package/dist/project.js +80 -80
  565. package/dist/provider.js +99 -99
  566. package/dist/pty/protocol.js +1 -1
  567. package/dist/pty/schema.js +3 -3
  568. package/dist/pty/ticket.js +1 -1
  569. package/dist/pty.js +98 -98
  570. package/dist/reference/instructions.js +89 -89
  571. package/dist/reference.js +91 -91
  572. package/dist/repository-cache.js +81 -81
  573. package/dist/repository.js +1 -1
  574. package/dist/ripgrep/binary.js +2 -2
  575. package/dist/ripgrep.js +97 -97
  576. package/dist/rpc.js +86 -86
  577. package/dist/schema.js +1 -1
  578. package/dist/session/command.js +74 -74
  579. package/dist/session/compaction.js +132 -132
  580. package/dist/session/context.js +152 -152
  581. package/dist/session/diff.js +88 -88
  582. package/dist/session/environment.js +5 -5
  583. package/dist/session/error.js +5 -5
  584. package/dist/session/event.js +1 -1
  585. package/dist/session/execution/restart.js +223 -222
  586. package/dist/session/execution.js +128 -128
  587. package/dist/session/generate.js +151 -151
  588. package/dist/session/history.js +13 -13
  589. package/dist/session/inbox.js +88 -88
  590. package/dist/session/info.js +3 -3
  591. package/dist/session/instruction-entry.js +79 -79
  592. package/dist/session/instruction-state.js +8 -8
  593. package/dist/session/instructions.js +97 -97
  594. package/dist/session/message-updater.js +4 -4
  595. package/dist/session/message.js +1 -1
  596. package/dist/session/model-request.js +119 -119
  597. package/dist/session/model-transport.js +9 -9
  598. package/dist/session/move.js +130 -130
  599. package/dist/session/projector.js +86 -86
  600. package/dist/session/prompt.js +105 -105
  601. package/dist/session/provider-context.js +3 -3
  602. package/dist/session/revert.js +90 -90
  603. package/dist/session/run-coordinator.js +3 -3
  604. package/dist/session/runner/index.js +3 -3
  605. package/dist/session/runner/llm.js +229 -229
  606. package/dist/session/runner/max-steps.js +1 -1
  607. package/dist/session/runner/model.js +98 -98
  608. package/dist/session/runner/publish-llm-event.js +3 -3
  609. package/dist/session/runner/retry.js +114 -114
  610. package/dist/session/runner/step.js +124 -124
  611. package/dist/session/runner/to-llm-message.js +2 -2
  612. package/dist/session/schema.js +5 -5
  613. package/dist/session/session.js +172 -172
  614. package/dist/session/shell.js +138 -138
  615. package/dist/session/skill.js +103 -103
  616. package/dist/session/sql.js +5 -5
  617. package/dist/session/stats.js +73 -73
  618. package/dist/session/store.js +87 -87
  619. package/dist/session/subagent-completion.js +1 -1
  620. package/dist/session/subagent-job.js +210 -210
  621. package/dist/session/system-prompt.js +1 -1
  622. package/dist/session/title.js +156 -156
  623. package/dist/session/to-session-error.js +111 -111
  624. package/dist/session/transfer.js +214 -214
  625. package/dist/session/usage.js +1 -1
  626. package/dist/session.js +220 -220
  627. package/dist/shell/parse.js +6 -6
  628. package/dist/shell/result.js +1 -1
  629. package/dist/shell/scan.js +1 -1
  630. package/dist/shell/select.js +13 -13
  631. package/dist/shell.js +140 -140
  632. package/dist/skill/discovery.js +6 -6
  633. package/dist/skill/instructions.js +107 -107
  634. package/dist/skill.js +112 -112
  635. package/dist/snapshot.js +93 -93
  636. package/dist/state.js +1 -1
  637. package/dist/tool/html-markdown.js +1 -1
  638. package/dist/tool/http-body.js +1 -1
  639. package/dist/tool/mcp.js +125 -125
  640. package/dist/tool/plugin/edit.js +120 -120
  641. package/dist/tool/plugin/file-diff.js +1 -1
  642. package/dist/tool/plugin/glob.js +124 -124
  643. package/dist/tool/plugin/grep.js +120 -120
  644. package/dist/tool/plugin/mcp-resource.js +116 -116
  645. package/dist/tool/plugin/opencode.js +3 -3
  646. package/dist/tool/plugin/patch.js +118 -118
  647. package/dist/tool/plugin/question.js +101 -101
  648. package/dist/tool/plugin/read.js +125 -125
  649. package/dist/tool/plugin/shell.js +217 -217
  650. package/dist/tool/plugin/skill.js +109 -109
  651. package/dist/tool/plugin/subagent.js +217 -217
  652. package/dist/tool/plugin/webfetch.js +108 -108
  653. package/dist/tool/plugin/websearch.js +112 -112
  654. package/dist/tool/plugin/write.js +122 -122
  655. package/dist/tool/read-filesystem.js +100 -100
  656. package/dist/tool/runtime.js +1 -1
  657. package/dist/tool-output.js +8 -8
  658. package/dist/tool.js +16 -16
  659. package/dist/types/plugin/{mcp-codemode-exclusion.d.ts → mcp-codemode-defaults.d.ts} +1 -1
  660. package/dist/util/error-summary.js +1 -1
  661. package/dist/util/error.js +1 -1
  662. package/dist/util/git-executable.js +2 -2
  663. package/dist/util/iife.js +1 -1
  664. package/dist/util/lazy.js +1 -1
  665. package/dist/util/slug.js +1 -1
  666. package/dist/util/token.js +1 -1
  667. package/dist/util/which.js +1 -1
  668. package/dist/util/wildcard.js +1 -1
  669. package/dist/v1/config/agent.js +5 -5
  670. package/dist/v1/config/attachment.js +4 -4
  671. package/dist/v1/config/command.js +3 -3
  672. package/dist/v1/config/config.js +16 -16
  673. package/dist/v1/config/error.js +2 -2
  674. package/dist/v1/config/formatter.js +5 -5
  675. package/dist/v1/config/layout.js +1 -1
  676. package/dist/v1/config/lsp.js +5 -5
  677. package/dist/v1/config/mcp.js +4 -4
  678. package/dist/v1/config/migrate.js +92 -92
  679. package/dist/v1/config/permission.js +3 -3
  680. package/dist/v1/config/plugin.js +3 -3
  681. package/dist/v1/config/provider-options.js +1 -1
  682. package/dist/v1/config/provider.js +2 -2
  683. package/dist/v1/config/server.js +2 -2
  684. package/dist/v1/config/skills.js +3 -3
  685. package/dist/v1/permission.js +1 -1
  686. package/dist/variant.js +93 -93
  687. package/dist/vcs/patch.js +1 -1
  688. package/dist/vcs.js +89 -89
  689. package/dist/websearch.js +82 -82
  690. package/dist/wellknown/plugin.js +74 -74
  691. package/dist/wellknown.js +79 -79
  692. package/dist/workspace/driver.js +7 -7
  693. package/dist/workspace/sql.js +1 -1
  694. package/dist/workspace.js +80 -80
  695. package/dist/worktree/directory.js +2 -2
  696. package/dist/worktree/git.js +10 -10
  697. package/dist/worktree/sql.js +5 -5
  698. package/dist/worktree/strategies.js +89 -89
  699. package/dist/worktree.js +98 -98
  700. package/package.json +8 -8
  701. package/dist/chunks/state-0mesazry.js +0 -4
  702. package/dist/chunks/state-6mkgf16q.js +0 -252
  703. package/dist/chunks/state-qc068m1q.js +0 -18
  704. package/dist/plugin/mcp-codemode-exclusion.js +0 -8
  705. /package/dist/chunks/{state-0qkdqm5v.js → rpc-0qkdqm5v.js} +0 -0
  706. /package/dist/chunks/{state-0zkw76rk.js → rpc-0zkw76rk.js} +0 -0
  707. /package/dist/chunks/{state-17cy0kzp.js → rpc-17cy0kzp.js} +0 -0
  708. /package/dist/chunks/{state-1cnp2v09.js → rpc-1cnp2v09.js} +0 -0
  709. /package/dist/chunks/{state-1kg9ymc8.js → rpc-1kg9ymc8.js} +0 -0
  710. /package/dist/chunks/{state-24dcb14g.js → rpc-24dcb14g.js} +0 -0
  711. /package/dist/chunks/{state-2710q6r3.js → rpc-2710q6r3.js} +0 -0
  712. /package/dist/chunks/{state-2axfhc9x.js → rpc-2axfhc9x.js} +0 -0
  713. /package/dist/chunks/{state-2c3vjs8z.js → rpc-2c3vjs8z.js} +0 -0
  714. /package/dist/chunks/{state-34c7v6d4.js → rpc-34c7v6d4.js} +0 -0
  715. /package/dist/chunks/{state-359p4xyc.js → rpc-359p4xyc.js} +0 -0
  716. /package/dist/chunks/{state-3asan66x.js → rpc-3asan66x.js} +0 -0
  717. /package/dist/chunks/{state-3v8g72cx.js → rpc-3v8g72cx.js} +0 -0
  718. /package/dist/chunks/{state-3w5fmr99.js → rpc-3w5fmr99.js} +0 -0
  719. /package/dist/chunks/{state-3wcehsnq.js → rpc-3wcehsnq.js} +0 -0
  720. /package/dist/chunks/{state-43n2bw4t.js → rpc-43n2bw4t.js} +0 -0
  721. /package/dist/chunks/{state-4knz6hnm.js → rpc-4knz6hnm.js} +0 -0
  722. /package/dist/chunks/{state-4vcrnpx2.js → rpc-4vcrnpx2.js} +0 -0
  723. /package/dist/chunks/{state-4y7fprxs.js → rpc-4y7fprxs.js} +0 -0
  724. /package/dist/chunks/{state-53557ph1.js → rpc-53557ph1.js} +0 -0
  725. /package/dist/chunks/{state-550bvhaj.js → rpc-550bvhaj.js} +0 -0
  726. /package/dist/chunks/{state-5qd3pb7m.js → rpc-5qd3pb7m.js} +0 -0
  727. /package/dist/chunks/{state-6prwharc.js → rpc-6prwharc.js} +0 -0
  728. /package/dist/chunks/{state-7akdwqpd.js → rpc-7akdwqpd.js} +0 -0
  729. /package/dist/chunks/{state-7m9af43g.js → rpc-7m9af43g.js} +0 -0
  730. /package/dist/chunks/{state-822emrt2.js → rpc-822emrt2.js} +0 -0
  731. /package/dist/chunks/{state-88xbtdfr.js → rpc-88xbtdfr.js} +0 -0
  732. /package/dist/chunks/{state-8n3pysct.js → rpc-8n3pysct.js} +0 -0
  733. /package/dist/chunks/{state-8wj87zfr.js → rpc-8wj87zfr.js} +0 -0
  734. /package/dist/chunks/{state-922hggd3.js → rpc-922hggd3.js} +0 -0
  735. /package/dist/chunks/{state-9a4afbnw.js → rpc-9a4afbnw.js} +0 -0
  736. /package/dist/chunks/{state-9rqn6x4v.js → rpc-9rqn6x4v.js} +0 -0
  737. /package/dist/chunks/{state-a6k6eb26.js → rpc-a6k6eb26.js} +0 -0
  738. /package/dist/chunks/{state-af5trqkr.js → rpc-af5trqkr.js} +0 -0
  739. /package/dist/chunks/{state-afrmfg78.js → rpc-afrmfg78.js} +0 -0
  740. /package/dist/chunks/{state-aqzs7mqg.js → rpc-aqzs7mqg.js} +0 -0
  741. /package/dist/chunks/{state-atq7p7m5.js → rpc-atq7p7m5.js} +0 -0
  742. /package/dist/chunks/{state-bkyjaxrp.js → rpc-bkyjaxrp.js} +0 -0
  743. /package/dist/chunks/{state-bmr6ed5q.js → rpc-bmr6ed5q.js} +0 -0
  744. /package/dist/chunks/{state-cf4snx6d.js → rpc-cf4snx6d.js} +0 -0
  745. /package/dist/chunks/{state-cvy3z8tj.js → rpc-cvy3z8tj.js} +0 -0
  746. /package/dist/chunks/{state-d9fn303g.js → rpc-d9fn303g.js} +0 -0
  747. /package/dist/chunks/{state-d9jj8t3e.js → rpc-d9jj8t3e.js} +0 -0
  748. /package/dist/chunks/{state-dajrwvna.js → rpc-dajrwvna.js} +0 -0
  749. /package/dist/chunks/{state-dap0rakb.js → rpc-dap0rakb.js} +0 -0
  750. /package/dist/chunks/{state-df08tz66.js → rpc-df08tz66.js} +0 -0
  751. /package/dist/chunks/{state-dy18nga0.js → rpc-dy18nga0.js} +0 -0
  752. /package/dist/chunks/{state-e5kj55wp.js → rpc-e5kj55wp.js} +0 -0
  753. /package/dist/chunks/{state-e73j6tqm.js → rpc-e73j6tqm.js} +0 -0
  754. /package/dist/chunks/{state-ec1grn59.js → rpc-ec1grn59.js} +0 -0
  755. /package/dist/chunks/{state-eh3zwz77.js → rpc-eh3zwz77.js} +0 -0
  756. /package/dist/chunks/{state-emrn6kk6.js → rpc-emrn6kk6.js} +0 -0
  757. /package/dist/chunks/{state-f0mxakyp.js → rpc-f0mxakyp.js} +0 -0
  758. /package/dist/chunks/{state-f6n9ztr4.js → rpc-f6n9ztr4.js} +0 -0
  759. /package/dist/chunks/{state-faypxj3z.js → rpc-faypxj3z.js} +0 -0
  760. /package/dist/chunks/{state-fd410y7t.js → rpc-fd410y7t.js} +0 -0
  761. /package/dist/chunks/{state-fxgpk5d8.js → rpc-fxgpk5d8.js} +0 -0
  762. /package/dist/chunks/{state-g4wezp1m.js → rpc-g4wezp1m.js} +0 -0
  763. /package/dist/chunks/{state-g86h250q.js → rpc-g86h250q.js} +0 -0
  764. /package/dist/chunks/{state-gebd4c9n.js → rpc-gebd4c9n.js} +0 -0
  765. /package/dist/chunks/{state-gftt206x.js → rpc-gftt206x.js} +0 -0
  766. /package/dist/chunks/{state-hjbc5kem.js → rpc-hjbc5kem.js} +0 -0
  767. /package/dist/chunks/{state-hk9envan.js → rpc-hk9envan.js} +0 -0
  768. /package/dist/chunks/{state-j2ntwpah.js → rpc-j2ntwpah.js} +0 -0
  769. /package/dist/chunks/{state-j5zkgpj8.js → rpc-j5zkgpj8.js} +0 -0
  770. /package/dist/chunks/{state-jjkms2e6.js → rpc-jjkms2e6.js} +0 -0
  771. /package/dist/chunks/{state-jr7sbwjy.js → rpc-jr7sbwjy.js} +0 -0
  772. /package/dist/chunks/{state-jwfs4k6c.js → rpc-jwfs4k6c.js} +0 -0
  773. /package/dist/chunks/{state-jzg6c2d5.js → rpc-jzg6c2d5.js} +0 -0
  774. /package/dist/chunks/{state-mp448xyj.js → rpc-mp448xyj.js} +0 -0
  775. /package/dist/chunks/{state-msx8hqn2.js → rpc-msx8hqn2.js} +0 -0
  776. /package/dist/chunks/{state-n05xt0ee.js → rpc-n05xt0ee.js} +0 -0
  777. /package/dist/chunks/{state-n3j8tn72.js → rpc-n3j8tn72.js} +0 -0
  778. /package/dist/chunks/{state-njntx4h6.js → rpc-njntx4h6.js} +0 -0
  779. /package/dist/chunks/{state-q3sfg36h.js → rpc-q3sfg36h.js} +0 -0
  780. /package/dist/chunks/{state-q74kybfr.js → rpc-q74kybfr.js} +0 -0
  781. /package/dist/chunks/{state-qaymkmh1.js → rpc-qaymkmh1.js} +0 -0
  782. /package/dist/chunks/{state-qb87gjwd.js → rpc-qb87gjwd.js} +0 -0
  783. /package/dist/chunks/{state-qfa1cgps.js → rpc-qfa1cgps.js} +0 -0
  784. /package/dist/chunks/{state-qg3g05ea.js → rpc-qg3g05ea.js} +0 -0
  785. /package/dist/chunks/{state-qrg20bc0.js → rpc-qrg20bc0.js} +0 -0
  786. /package/dist/chunks/{state-rcb2kzg1.js → rpc-rcb2kzg1.js} +0 -0
  787. /package/dist/chunks/{state-sdp7kfr6.js → rpc-sdp7kfr6.js} +0 -0
  788. /package/dist/chunks/{state-sk3qaz4a.js → rpc-sk3qaz4a.js} +0 -0
  789. /package/dist/chunks/{state-ssg3fenm.js → rpc-ssg3fenm.js} +0 -0
  790. /package/dist/chunks/{state-w803qqfp.js → rpc-w803qqfp.js} +0 -0
  791. /package/dist/chunks/{state-wc3fc9cn.js → rpc-wc3fc9cn.js} +0 -0
  792. /package/dist/chunks/{state-wer8tq1h.js → rpc-wer8tq1h.js} +0 -0
  793. /package/dist/chunks/{state-wtztk69x.js → rpc-wtztk69x.js} +0 -0
  794. /package/dist/chunks/{state-x0ckcb58.js → rpc-x0ckcb58.js} +0 -0
  795. /package/dist/chunks/{state-x61499pn.js → rpc-x61499pn.js} +0 -0
  796. /package/dist/chunks/{state-y44na4kk.js → rpc-y44na4kk.js} +0 -0
  797. /package/dist/chunks/{state-y8cydn3q.js → rpc-y8cydn3q.js} +0 -0
  798. /package/dist/chunks/{state-y8f7s663.js → rpc-y8f7s663.js} +0 -0
  799. /package/dist/chunks/{state-ygaqb7jw.js → rpc-ygaqb7jw.js} +0 -0
  800. /package/dist/chunks/{state-ym463w8f.js → rpc-ym463w8f.js} +0 -0
  801. /package/dist/chunks/{state-z9919s4g.js → rpc-z9919s4g.js} +0 -0
@@ -1,32 +1,32 @@
1
1
  import {
2
2
  Service83
3
- } from "./state-12as4csw.js";
3
+ } from "./rpc-ac7bw970.js";
4
4
  import {
5
5
  key2
6
- } from "./state-h6r3nrb9.js";
6
+ } from "./rpc-5mtzsd3b.js";
7
7
  import {
8
- Event19
9
- } from "./state-384gf1m7.js";
8
+ Event18
9
+ } from "./rpc-92safqaw.js";
10
10
  import {
11
- ID14
12
- } from "./state-0erg9wwv.js";
11
+ ID13
12
+ } from "./rpc-5pyghbdh.js";
13
13
  import {
14
- ID13,
15
- Service76
16
- } from "./state-bhnryp6n.js";
14
+ ID12,
15
+ Service68
16
+ } from "./rpc-66fn4sgh.js";
17
17
  import {
18
18
  load3,
19
19
  derive3
20
- } from "./state-bxxr9cq6.js";
20
+ } from "./rpc-fd991arp.js";
21
21
 
22
22
  // src/plugin/provider/modal.ts
23
23
  import { Effect, Semaphore, Stream } from "effect";
24
24
  import { define } from "@opencode/plugin/effect/plugin";
25
- var providerID = ID13.make("modal");
25
+ var providerID = ID12.make("modal");
26
26
  var ModalPlugin2 = define({
27
27
  id: "opencode.provider.modal",
28
28
  effect: Effect.fn(function* (ctx) {
29
- const providers = yield* Service76;
29
+ const providers = yield* Service68;
30
30
  const bus = yield* Service83;
31
31
  const loading = Semaphore.makeUnsafe(1);
32
32
  const loaded = {};
@@ -67,7 +67,7 @@ var ModalPlugin2 = define({
67
67
  });
68
68
  });
69
69
  const refresh = () => loading.withPermit(load().pipe(Effect.andThen(ctx.provider.reload())));
70
- yield* bus.subscribe(Event19.Switched).pipe(Stream.filter((event) => event.data.integrationID === ID14.make("modal")), Stream.runForEach(refresh), Effect.forkScoped({ startImmediately: true }));
70
+ yield* bus.subscribe(Event18.Switched).pipe(Stream.filter((event) => event.data.integrationID === ID13.make("modal")), Stream.runForEach(refresh), Effect.forkScoped({ startImmediately: true }));
71
71
  yield* refresh().pipe(Effect.forkScoped);
72
72
  })
73
73
  });
@@ -1,35 +1,35 @@
1
1
  import {
2
- Service79
3
- } from "./state-khz59kc2.js";
2
+ Service71
3
+ } from "./rpc-855brr7v.js";
4
4
  import {
5
- Service68
6
- } from "./state-5gftdx11.js";
5
+ Service56
6
+ } from "./rpc-hcj02zej.js";
7
7
  import {
8
- ID4,
8
+ ID3,
9
9
  Result2,
10
10
  ProviderRequiredError2,
11
11
  DisabledError2,
12
12
  RequestError2,
13
- Service23
14
- } from "./state-cjagda2z.js";
13
+ Service17
14
+ } from "./rpc-z2he3694.js";
15
15
  import {
16
16
  __export
17
- } from "./state-9rqn6x4v.js";
17
+ } from "./rpc-9rqn6x4v.js";
18
18
 
19
19
  // src/tool/plugin/websearch.ts
20
- var exports_websearch2 = {};
21
- __export(exports_websearch2, {
22
- Input: () => Input3,
20
+ var exports_websearch = {};
21
+ __export(exports_websearch, {
22
+ Input: () => Input2,
23
23
  NO_RESULTS: () => NO_RESULTS2,
24
- Plugin: () => Plugin38,
25
- WebSearchTool: () => exports_websearch2,
24
+ Plugin: () => Plugin18,
25
+ WebSearchTool: () => exports_websearch,
26
26
  description: () => description2,
27
- name: () => name3
27
+ name: () => name2
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 name3 = "websearch";
32
+ var name2 = "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([
@@ -39,28 +39,28 @@ var httpErrors = new Map([
39
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 Input3 = Schema.Struct({
42
+ var Input2 = Schema.Struct({
43
43
  query: Schema.String.annotate({ description: "Websearch query" })
44
44
  });
45
45
  var Output = Schema.Struct({
46
- provider: ID4,
46
+ provider: ID3,
47
47
  results: Schema.Array(Result2)
48
48
  });
49
- var Plugin38 = {
49
+ var Plugin18 = {
50
50
  id: "opencode.tool.websearch",
51
51
  effect: Effect.fn("WebSearchTool.Plugin")(function* (ctx) {
52
- const permission = yield* Service68;
53
- const forms = yield* Service79;
54
- const websearch = yield* Service23;
52
+ const permission = yield* Service56;
53
+ const forms = yield* Service71;
54
+ const websearch = yield* Service17;
55
55
  yield* ctx.tool.transform((editor) => editor.add({
56
- name: name3,
56
+ name: name2,
57
57
  options: { codemode: false },
58
58
  description: description2,
59
- input: Input3,
59
+ input: Input2,
60
60
  output: Output,
61
61
  execute: (input, context) => Effect.gen(function* () {
62
62
  yield* permission.assert({
63
- action: name3,
63
+ action: name2,
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[name3];
179
+ delete event.tools[name2];
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 { name3, NO_RESULTS2, description2, Input3, Plugin38, exports_websearch2 };
187
+ export { name2, NO_RESULTS2, description2, Input2, Plugin18, exports_websearch };
@@ -1,30 +1,30 @@
1
1
  import {
2
2
  makeUnsafe2
3
- } from "./state-y71avatq.js";
3
+ } from "./rpc-dpkg50ah.js";
4
4
  import {
5
5
  __export
6
- } from "./state-9rqn6x4v.js";
6
+ } from "./rpc-9rqn6x4v.js";
7
7
 
8
8
  // src/plugin/update.ts
9
9
  var exports_update = {};
10
10
  __export(exports_update, {
11
11
  PluginUpdate: () => exports_update,
12
- Service: () => Service2,
13
- node: () => node3
12
+ Service: () => Service4,
13
+ node: () => node5
14
14
  });
15
15
  import { Clock, Context, Effect, Exit, Layer, Option, PubSub, Stream } from "effect";
16
16
  import { Npm } from "@opencode/util/npm";
17
17
  import { makeGlobalNode } from "@opencode/util/effect/app-node";
18
18
  var interval = 24 * 60 * 60 * 1000;
19
19
 
20
- class Service2 extends Context.Service()("@opencode/PluginUpdate") {
20
+ class Service4 extends Context.Service()("@opencode/PluginUpdate") {
21
21
  }
22
- var layer = Layer.effect(Service2, Effect.gen(function* () {
22
+ var layer = Layer.effect(Service4, Effect.gen(function* () {
23
23
  const npm = yield* Npm.Service;
24
24
  const locks = makeUnsafe2();
25
25
  const status = new Map;
26
26
  const changes = yield* PubSub.unbounded();
27
- return Service2.of({
27
+ return Service4.of({
28
28
  check: (target, options) => locks.withLock(target)(Effect.gen(function* () {
29
29
  const checkedAt = yield* Clock.currentTimeMillis;
30
30
  const current = status.get(target);
@@ -49,6 +49,6 @@ var layer = Layer.effect(Service2, Effect.gen(function* () {
49
49
  changes: () => Stream.fromPubSub(changes)
50
50
  });
51
51
  }));
52
- var node3 = makeGlobalNode({ service: Service2, layer, deps: [Npm.node] });
52
+ var node5 = makeGlobalNode({ service: Service4, layer, deps: [Npm.node] });
53
53
 
54
- export { Service2, node3, exports_update };
54
+ export { Service4, node5, exports_update };
@@ -1,51 +1,51 @@
1
1
  import {
2
2
  AbsolutePath2,
3
3
  RelativePath2
4
- } from "./state-922hggd3.js";
4
+ } from "./rpc-922hggd3.js";
5
5
  import {
6
6
  Repository2,
7
7
  TreeID2,
8
8
  Service82,
9
9
  node86
10
- } from "./state-dq0v80fr.js";
10
+ } from "./rpc-5npp0aqe.js";
11
11
  import {
12
12
  Service80,
13
13
  node84
14
- } from "./state-xhvbz364.js";
14
+ } from "./rpc-cv1dxnrk.js";
15
15
  import {
16
16
  create3
17
- } from "./state-rdw6cm16.js";
17
+ } from "./rpc-rdw6cm16.js";
18
18
  import {
19
19
  __export
20
- } from "./state-9rqn6x4v.js";
20
+ } from "./rpc-9rqn6x4v.js";
21
21
 
22
22
  // src/snapshot.ts
23
23
  var exports_snapshot2 = {};
24
24
  __export(exports_snapshot2, {
25
- Error: () => Error5,
26
- ID: () => ID6,
27
- Service: () => Service59,
25
+ Error: () => Error3,
26
+ ID: () => ID4,
27
+ Service: () => Service32,
28
28
  Snapshot: () => exports_snapshot2,
29
- node: () => node63,
30
- noopLayer: () => noopLayer3
29
+ node: () => node35,
30
+ noopLayer: () => noopLayer2
31
31
  });
32
32
  import { makeLocationNode } from "@opencode/util/effect/app-node";
33
33
  import path from "path";
34
34
  import { Context, Effect, Fiber, Layer, Schema, Scope } from "effect";
35
35
  import { FSUtil } from "@opencode/util/fs-util";
36
36
  import { Global } from "@opencode/util/global";
37
- import { ID as ID6 } from "@opencode/schema/snapshot";
37
+ import { ID as ID4 } from "@opencode/schema/snapshot";
38
38
  import { Hash } from "@opencode/util/hash";
39
- class Error5 extends Schema.TaggedError()("Snapshot.Error", {
39
+ class Error3 extends Schema.TaggedError()("Snapshot.Error", {
40
40
  operation: Schema.Literals(["capture", "files", "diff", "restore"]),
41
41
  message: Schema.String,
42
42
  cause: Schema.optional(Schema.Defect())
43
43
  }) {
44
44
  }
45
45
 
46
- class Service59 extends Context.Service()("@opencode/Snapshot") {
46
+ class Service32 extends Context.Service()("@opencode/Snapshot") {
47
47
  }
48
- var layer = Layer.effect(Service59, Effect.gen(function* () {
48
+ var layer = Layer.effect(Service32, Effect.gen(function* () {
49
49
  const fs = yield* FSUtil.Service;
50
50
  const git = yield* Service82;
51
51
  const global = yield* Global.Service;
@@ -63,7 +63,7 @@ var layer = Layer.effect(Service59, Effect.gen(function* () {
63
63
  const repositoryFiber = yield* Effect.cached(Effect.gen(function* () {
64
64
  const source = yield* git.repo.discover(location.project.directory);
65
65
  if (!source)
66
- return yield* new Error5({ operation: "capture", message: "Project is not a Git repository" });
66
+ return yield* new Error3({ operation: "capture", message: "Project is not a Git repository" });
67
67
  const worktree = AbsolutePath2.make(yield* fs.realPath(source.worktree).pipe(Effect.orDie));
68
68
  const gitDirectory = AbsolutePath2.make(path.join(global.data, "snapshot", location.project.id, Hash.fast(worktree)));
69
69
  const snapshotRepository = (yield* fs.existsSafe(path.join(gitDirectory, "HEAD"))) ? new Repository2({ worktree, gitDirectory, commonDirectory: gitDirectory }) : yield* git.repo.create({ worktree, gitDirectory, seed: source }).pipe(Effect.mapError((cause) => failure("capture", cause)));
@@ -73,7 +73,7 @@ var layer = Layer.effect(Service59, Effect.gen(function* () {
73
73
  const scope = Effect.fnUntraced(function* (worktree) {
74
74
  const relative = path.relative(worktree, location.directory);
75
75
  if (relative.startsWith("..") || path.isAbsolute(relative))
76
- return yield* new Error5({ operation: "capture", message: "Location is outside the project" });
76
+ return yield* new Error3({ operation: "capture", message: "Location is outside the project" });
77
77
  return RelativePath2.make(relative.replaceAll("\\", "/") || ".");
78
78
  });
79
79
  const enabled = () => location.vcs?.type === "git" && state.get().enabled;
@@ -82,7 +82,7 @@ var layer = Layer.effect(Service59, Effect.gen(function* () {
82
82
  return;
83
83
  return yield* Effect.gen(function* () {
84
84
  const repo = yield* repository;
85
- return ID6.make(yield* git.tree.capture({
85
+ return ID4.make(yield* git.tree.capture({
86
86
  repository: repo.snapshotRepository,
87
87
  scopes: [yield* scope(repo.worktree)],
88
88
  ignores: repo.source,
@@ -127,25 +127,25 @@ var layer = Layer.effect(Service59, Effect.gen(function* () {
127
127
  for (const [file, snapshot] of input.files) {
128
128
  const absolute = path.resolve(worktree, file);
129
129
  if (!FSUtil.contains(worktree, absolute))
130
- return yield* new Error5({ operation: "restore", message: `Path escapes the project: ${file}` });
130
+ return yield* new Error3({ operation: "restore", message: `Path escapes the project: ${file}` });
131
131
  files.set(file, TreeID2.make(snapshot));
132
132
  }
133
133
  return files;
134
134
  });
135
135
  const restore = Effect.fn("Snapshot.restore")(function* (input) {
136
136
  if (!enabled())
137
- return yield* new Error5({ operation: "restore", message: "Snapshots are disabled" });
137
+ return yield* new Error3({ operation: "restore", message: "Snapshots are disabled" });
138
138
  const repo = yield* repository.pipe(Effect.mapError((cause) => failure("restore", cause)));
139
139
  yield* git.tree.restore({ repository: repo.snapshotRepository, files: yield* plan(repo.worktree, input) }).pipe(Effect.mapError((cause) => failure("restore", cause)));
140
140
  });
141
- return Service59.of({ transform: state.transform, reload: state.reload, capture, files, diff, restore });
141
+ return Service32.of({ transform: state.transform, reload: state.reload, capture, files, diff, restore });
142
142
  }).pipe(Effect.withSpan("Snapshot.boot")));
143
- var node63 = makeLocationNode({
144
- service: Service59,
143
+ var node35 = makeLocationNode({
144
+ service: Service32,
145
145
  layer,
146
146
  deps: [FSUtil.node, node86, Global.node, node84]
147
147
  });
148
- var noopLayer3 = Layer.succeed(Service59, Service59.of({
148
+ var noopLayer2 = Layer.succeed(Service32, Service32.of({
149
149
  transform: () => Effect.succeed({ dispose: Effect.void }),
150
150
  reload: () => Effect.void,
151
151
  capture: () => Effect.undefined,
@@ -154,13 +154,13 @@ var noopLayer3 = Layer.succeed(Service59, Service59.of({
154
154
  restore: () => Effect.void
155
155
  }));
156
156
  function failure(operation, cause) {
157
- if (cause instanceof Error5 && cause.operation === operation)
157
+ if (cause instanceof Error3 && cause.operation === operation)
158
158
  return cause;
159
- return new Error5({
159
+ return new Error3({
160
160
  operation,
161
161
  message: cause instanceof globalThis.Error ? cause.message : String(cause),
162
162
  cause
163
163
  });
164
164
  }
165
165
 
166
- export { ID6, Error5, Service59, node63, noopLayer3, exports_snapshot2 };
166
+ export { ID4, Error3, Service32, node35, noopLayer2, exports_snapshot2 };
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  __export
3
- } from "./state-9rqn6x4v.js";
3
+ } from "./rpc-9rqn6x4v.js";
4
4
 
5
5
  // src/state.ts
6
6
  var exports_state = {};
@@ -1,33 +1,33 @@
1
1
  import {
2
2
  Service83,
3
3
  node87
4
- } from "./state-12as4csw.js";
4
+ } from "./rpc-ac7bw970.js";
5
5
  import {
6
6
  optional2,
7
7
  statics2
8
- } from "./state-922hggd3.js";
8
+ } from "./rpc-922hggd3.js";
9
9
  import {
10
10
  Ref4,
11
11
  Service80,
12
12
  node84
13
- } from "./state-xhvbz364.js";
13
+ } from "./rpc-cv1dxnrk.js";
14
14
  import {
15
15
  __export
16
- } from "./state-9rqn6x4v.js";
16
+ } from "./rpc-9rqn6x4v.js";
17
17
 
18
18
  // src/rpc.ts
19
19
  var exports_rpc = {};
20
20
  __export(exports_rpc, {
21
21
  Rpc: () => exports_rpc,
22
- Service: () => Service25,
22
+ Service: () => Service66,
23
23
  define: () => define2,
24
- node: () => node28
24
+ node: () => node69
25
25
  });
26
26
  import { define as define2 } from "@opencode/schema/rpc";
27
27
  import { Event } from "@opencode/schema/event";
28
28
  import { makeLocationNode } from "@opencode/util/effect/app-node";
29
29
  import { Context, Deferred, Effect, JsonSchema, Layer, Schema, SchemaRepresentation, Stream } from "effect";
30
- class Service25 extends Context.Service()("@opencode/Rpc") {
30
+ class Service66 extends Context.Service()("@opencode/Rpc") {
31
31
  }
32
32
 
33
33
  class DeclaredError extends Error {
@@ -39,7 +39,7 @@ class DeclaredError extends Error {
39
39
  this.data = data;
40
40
  }
41
41
  }
42
- var layer = Layer.effect(Service25, Effect.gen(function* () {
42
+ var layer = Layer.effect(Service66, Effect.gen(function* () {
43
43
  const bus = yield* Service83;
44
44
  const location = yield* Service80;
45
45
  const ref = Ref4.make({ directory: location.directory, workspaceID: location.workspaceID });
@@ -123,9 +123,9 @@ var layer = Layer.effect(Service25, Effect.gen(function* () {
123
123
  }
124
124
  };
125
125
  };
126
- return Service25.of({ register, call, client, close: Deferred.succeed(closed, undefined).pipe(Effect.asVoid) });
126
+ return Service66.of({ register, call, client, close: Deferred.succeed(closed, undefined).pipe(Effect.asVoid) });
127
127
  }));
128
- var node28 = makeLocationNode({ service: Service25, layer, deps: [node87, node84] });
128
+ var node69 = makeLocationNode({ service: Service66, layer, deps: [node87, node84] });
129
129
  var fields = {
130
130
  id: Event.ID,
131
131
  created: Schema.Finite,
@@ -210,4 +210,4 @@ var logicalEvent = Effect.fn("Rpc.logicalEvent")(function* (definition, name, pa
210
210
  };
211
211
  });
212
212
 
213
- export { Service25, node28, exports_rpc, define2 };
213
+ export { Service66, node69, exports_rpc, define2 };
@@ -1,29 +1,29 @@
1
1
  import {
2
2
  Service80,
3
3
  node84
4
- } from "./state-xhvbz364.js";
4
+ } from "./rpc-cv1dxnrk.js";
5
5
  import {
6
6
  create3
7
- } from "./state-rdw6cm16.js";
7
+ } from "./rpc-rdw6cm16.js";
8
8
  import {
9
9
  __export
10
- } from "./state-9rqn6x4v.js";
10
+ } from "./rpc-9rqn6x4v.js";
11
11
 
12
12
  // src/formatter.ts
13
- var exports_formatter2 = {};
14
- __export(exports_formatter2, {
15
- Formatter: () => exports_formatter2,
16
- Service: () => Service21,
17
- node: () => node23
13
+ var exports_formatter3 = {};
14
+ __export(exports_formatter3, {
15
+ Formatter: () => exports_formatter3,
16
+ Service: () => Service78,
17
+ node: () => node82
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 Service21 extends Context.Service()("@opencode/v2/Formatter") {
24
+ class Service78 extends Context.Service()("@opencode/v2/Formatter") {
25
25
  }
26
- var layer = Layer.effect(Service21, Effect.gen(function* () {
26
+ var layer = Layer.effect(Service78, Effect.gen(function* () {
27
27
  const location = yield* Service80;
28
28
  const processes = yield* AppProcess.Service;
29
29
  const commands = new WeakMap;
@@ -85,12 +85,12 @@ var layer = Layer.effect(Service21, Effect.gen(function* () {
85
85
  }
86
86
  return false;
87
87
  });
88
- return Service21.of({ transform: state.transform, reload: state.reload, file });
88
+ return Service78.of({ transform: state.transform, reload: state.reload, file });
89
89
  }));
90
- var node23 = makeLocationNode({
91
- service: Service21,
90
+ var node82 = makeLocationNode({
91
+ service: Service78,
92
92
  layer,
93
93
  deps: [node84, AppProcess.node]
94
94
  });
95
95
 
96
- export { Service21, node23, exports_formatter2 };
96
+ export { Service78, node82, exports_formatter3 };
@@ -2,16 +2,16 @@ import {
2
2
  managesTransactionsNatively2,
3
3
  EffectSQLiteSession2,
4
4
  EffectSQLiteTransaction2
5
- } from "./state-n98mt2bs.js";
5
+ } from "./rpc-7dps8r9t.js";
6
6
  import {
7
7
  EffectSQLiteDatabase2,
8
8
  DefaultServices2,
9
- make23,
9
+ make22,
10
10
  makeWithDefaults2
11
- } from "./state-jmx7yt6q.js";
11
+ } from "./rpc-kt3xrw1h.js";
12
12
  import {
13
13
  __export
14
- } from "./state-9rqn6x4v.js";
14
+ } from "./rpc-9rqn6x4v.js";
15
15
 
16
16
  // src/database/drizzle/index.ts
17
17
  var exports_drizzle = {};
@@ -22,7 +22,7 @@ __export(exports_drizzle, {
22
22
  EffectSQLiteDatabase: () => EffectSQLiteDatabase2,
23
23
  EffectSQLiteSession: () => EffectSQLiteSession2,
24
24
  EffectSQLiteTransaction: () => EffectSQLiteTransaction2,
25
- make: () => make23,
25
+ make: () => make22,
26
26
  makeWithDefaults: () => makeWithDefaults2,
27
27
  managesTransactionsNatively: () => managesTransactionsNatively2
28
28
  });
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  render3
3
- } from "./state-drwq78ky.js";
3
+ } from "./rpc-drwq78ky.js";
4
4
  import {
5
5
  __export
6
- } from "./state-9rqn6x4v.js";
6
+ } from "./rpc-9rqn6x4v.js";
7
7
 
8
8
  // src/plugin/optimize.ts
9
9
  var exports_optimize = {};
@@ -13,7 +13,7 @@ __export(exports_optimize, {
13
13
  ArceePlugin: () => ArceePlugin2,
14
14
  KimiPlugin: () => KimiPlugin2,
15
15
  MetaPlugin: () => MetaPlugin2,
16
- OpenAIPlugin: () => OpenAIPlugin2,
16
+ OpenAIPlugin: () => OpenAIPlugin3,
17
17
  OpenAIToolsPlugin: () => OpenAIToolsPlugin2,
18
18
  OptimizePlugin: () => exports_optimize,
19
19
  Plugins: () => Plugins2
@@ -374,7 +374,7 @@ By default, match the surrounding comment density: where the code has none, add
374
374
  `;
375
375
 
376
376
  // src/plugin/optimize.ts
377
- var OpenAIPlugin2 = make("opencode.prompt.openai", (model) => {
377
+ var OpenAIPlugin3 = make("opencode.prompt.openai", (model) => {
378
378
  const id = model.id.toLowerCase();
379
379
  if (!id.includes("gpt"))
380
380
  return;
@@ -409,7 +409,7 @@ var MetaPlugin2 = make("opencode.prompt.meta", (model) => {
409
409
  return;
410
410
  return meta_default.replaceAll("{{MODEL_NAME}}", model.name);
411
411
  });
412
- var Plugins2 = [OpenAIPlugin2, AnthropicPlugin2, KimiPlugin2, ArceePlugin2, MetaPlugin2];
412
+ var Plugins2 = [OpenAIPlugin3, AnthropicPlugin2, KimiPlugin2, ArceePlugin2, MetaPlugin2];
413
413
  function make(id, optimize, mode = "override") {
414
414
  return define({
415
415
  id,
@@ -437,4 +437,4 @@ ${rendered}` : rendered;
437
437
  });
438
438
  }
439
439
 
440
- export { OpenAIPlugin2, AnthropicPlugin2, OpenAIToolsPlugin2, AnthropicToolsPlugin2, KimiPlugin2, ArceePlugin2, MetaPlugin2, Plugins2, exports_optimize };
440
+ export { OpenAIPlugin3, AnthropicPlugin2, OpenAIToolsPlugin2, AnthropicToolsPlugin2, KimiPlugin2, ArceePlugin2, MetaPlugin2, Plugins2, exports_optimize };
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  PositiveInt2
3
- } from "./state-922hggd3.js";
3
+ } from "./rpc-922hggd3.js";
4
4
  import {
5
5
  __export
6
- } from "./state-9rqn6x4v.js";
6
+ } from "./rpc-9rqn6x4v.js";
7
7
 
8
8
  // src/v1/config/server.ts
9
9
  var exports_server = {};
@@ -2,28 +2,28 @@ import {
2
2
  Resource2,
3
3
  ResourceTemplate2,
4
4
  ResourceContent2,
5
- Service41
6
- } from "./state-scad059f.js";
5
+ Service29
6
+ } from "./rpc-2d9myqrc.js";
7
7
  import {
8
- Service68
9
- } from "./state-5gftdx11.js";
8
+ Service56
9
+ } from "./rpc-hcj02zej.js";
10
10
  import {
11
11
  __export
12
- } from "./state-9rqn6x4v.js";
12
+ } from "./rpc-9rqn6x4v.js";
13
13
 
14
14
  // src/tool/plugin/mcp-resource.ts
15
15
  var exports_mcp_resource = {};
16
16
  __export(exports_mcp_resource, {
17
17
  McpResourceTools: () => exports_mcp_resource,
18
- Plugin: () => Plugin41
18
+ Plugin: () => Plugin25
19
19
  });
20
20
  import { ToolFailure } from "@opencode/ai";
21
21
  import { Effect, Schema } from "effect";
22
- var Plugin41 = {
22
+ var Plugin25 = {
23
23
  id: "opencode.tools.mcp-resources",
24
24
  effect: Effect.fn("McpResourceTools.Plugin")(function* (ctx) {
25
- const mcp = yield* Service41;
26
- const permission = yield* Service68;
25
+ const mcp = yield* Service29;
26
+ const permission = yield* Service56;
27
27
  yield* ctx.tool.transform((editor) => {
28
28
  editor.add({
29
29
  name: "list_mcp_resources",
@@ -93,4 +93,4 @@ var Plugin41 = {
93
93
  })
94
94
  };
95
95
 
96
- export { Plugin41, exports_mcp_resource };
96
+ export { Plugin25, exports_mcp_resource };