@opencode/core 0.0.0-dev-19683 → 0.0.0-dev-19685

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 (473) hide show
  1. package/dist/agent.js +64 -64
  2. package/dist/aisdk-native.js +63 -63
  3. package/dist/aisdk.js +68 -68
  4. package/dist/app.js +7 -7
  5. package/dist/bus.js +57 -57
  6. package/dist/chunks/{aisdk-native-09956swx.js → aisdk-native-05kd0h8n.js} +9 -9
  7. package/dist/chunks/{aisdk-native-4a0nv7mx.js → aisdk-native-0jfkt8vv.js} +7 -7
  8. package/dist/chunks/{aisdk-native-az4g7yjb.js → aisdk-native-0kw4t2ss.js} +23 -23
  9. package/dist/chunks/aisdk-native-0mesazry.js +4 -0
  10. package/dist/chunks/{aisdk-native-g9kf27qg.js → aisdk-native-0pac4wxy.js} +8 -8
  11. package/dist/chunks/{aisdk-native-dn7561av.js → aisdk-native-0pffsxzd.js} +24 -24
  12. package/dist/chunks/{aisdk-native-jhpaar4x.js → aisdk-native-0t9wd588.js} +7 -7
  13. package/dist/chunks/{aisdk-native-qj07q2eg.js → aisdk-native-0wbaq0z2.js} +29 -29
  14. package/dist/chunks/{aisdk-native-vd6jm2yd.js → aisdk-native-0xzvcrha.js} +39 -39
  15. package/dist/chunks/{aisdk-native-pwwerkbj.js → aisdk-native-11na8g8b.js} +18 -18
  16. package/dist/chunks/{aisdk-native-mza6s6hg.js → aisdk-native-147w0500.js} +88 -88
  17. package/dist/chunks/{aisdk-native-ht0ph52s.js → aisdk-native-19s7dspw.js} +31 -31
  18. package/dist/chunks/{aisdk-native-b5j16w9d.js → aisdk-native-1ch5qaya.js} +8 -8
  19. package/dist/chunks/{aisdk-native-vpv3g2a7.js → aisdk-native-1hznkpae.js} +6 -6
  20. package/dist/chunks/{aisdk-native-gr1f03ws.js → aisdk-native-2003xh4j.js} +7 -7
  21. package/dist/chunks/{aisdk-native-nhww9bhn.js → aisdk-native-23vvk4nb.js} +28 -28
  22. package/dist/chunks/{aisdk-native-j15mfg1p.js → aisdk-native-2d57kztd.js} +5 -5
  23. package/dist/chunks/{aisdk-native-jc9s7gf6.js → aisdk-native-2gw4gc3t.js} +15 -15
  24. package/dist/chunks/{aisdk-native-7dqw4kz8.js → aisdk-native-2k8khapm.js} +4 -4
  25. package/dist/chunks/{aisdk-native-xxy1bhm1.js → aisdk-native-2qvr8c41.js} +17 -17
  26. package/dist/chunks/{aisdk-native-0a14krkj.js → aisdk-native-2t51sr74.js} +12 -12
  27. package/dist/chunks/{aisdk-native-yhsb8ghp.js → aisdk-native-2vatgfy6.js} +12 -12
  28. package/dist/chunks/{aisdk-native-d6h9vrqt.js → aisdk-native-38ky6pb7.js} +5 -5
  29. package/dist/chunks/{aisdk-native-3zgzsr0q.js → aisdk-native-3ktbe3hf.js} +4 -4
  30. package/dist/chunks/{aisdk-native-j47mgn54.js → aisdk-native-3n8ee3c4.js} +2 -2
  31. package/dist/chunks/{aisdk-native-68bdaj6y.js → aisdk-native-3npbngsp.js} +13 -13
  32. package/dist/chunks/{aisdk-native-qbgpcm8y.js → aisdk-native-3tamtphc.js} +9 -9
  33. package/dist/chunks/{aisdk-native-n8twdh81.js → aisdk-native-3ved0akr.js} +10 -10
  34. package/dist/chunks/{aisdk-native-wrabmwcn.js → aisdk-native-42jzvad5.js} +18 -18
  35. package/dist/chunks/{aisdk-native-h6r3nrb9.js → aisdk-native-44h5tttr.js} +3 -3
  36. package/dist/chunks/{aisdk-native-k9kj6xed.js → aisdk-native-44ke2mar.js} +4 -4
  37. package/dist/chunks/{aisdk-native-mnc31gpg.js → aisdk-native-46606ezs.js} +23 -23
  38. package/dist/chunks/{aisdk-native-pf2e8y0d.js → aisdk-native-48m15pyt.js} +4 -4
  39. package/dist/chunks/{aisdk-native-yfdx3v3q.js → aisdk-native-4g0ndws3.js} +42 -42
  40. package/dist/chunks/{aisdk-native-bz85s9hh.js → aisdk-native-4jc5c4h4.js} +1 -1
  41. package/dist/chunks/{aisdk-native-2gbh0fha.js → aisdk-native-4p35ch0z.js} +23 -23
  42. package/dist/chunks/{aisdk-native-9wh35tzk.js → aisdk-native-4tzv7a5d.js} +57 -57
  43. package/dist/chunks/{aisdk-native-rap9a73h.js → aisdk-native-4v7qdvcn.js} +4 -4
  44. package/dist/chunks/{aisdk-native-1ygqh575.js → aisdk-native-56gdpj1q.js} +7 -7
  45. package/dist/chunks/{aisdk-native-p8bevgsj.js → aisdk-native-5g290phr.js} +43 -43
  46. package/dist/chunks/{aisdk-native-6rf7f5jd.js → aisdk-native-5k1e66mg.js} +21 -21
  47. package/dist/chunks/{aisdk-native-gp1abar7.js → aisdk-native-5m43nnyh.js} +12 -12
  48. package/dist/chunks/{aisdk-native-j1r486kk.js → aisdk-native-5nfze5by.js} +13 -13
  49. package/dist/chunks/{aisdk-native-x4bjtptf.js → aisdk-native-5wkvqjct.js} +26 -26
  50. package/dist/chunks/{aisdk-native-kzc5k3kj.js → aisdk-native-60bxgsbk.js} +7 -7
  51. package/dist/chunks/aisdk-native-62nepcbt.js +26 -0
  52. package/dist/chunks/{aisdk-native-md454ze3.js → aisdk-native-6gtvg2dm.js} +28 -28
  53. package/dist/chunks/{aisdk-native-hw8p7939.js → aisdk-native-6kpcav3z.js} +42 -42
  54. package/dist/chunks/{aisdk-native-hdthj1pw.js → aisdk-native-6n88yxkj.js} +6 -6
  55. package/dist/chunks/{aisdk-native-0g09j3nb.js → aisdk-native-6qmp3fby.js} +31 -31
  56. package/dist/chunks/{aisdk-native-vjhr626e.js → aisdk-native-6sayq1ty.js} +7 -7
  57. package/dist/chunks/{aisdk-native-tba18gcj.js → aisdk-native-6xb3f695.js} +24 -24
  58. package/dist/chunks/{aisdk-native-1khh3dgh.js → aisdk-native-78ma53hf.js} +21 -21
  59. package/dist/chunks/{aisdk-native-88ykc3s8.js → aisdk-native-7q29nmvk.js} +16 -16
  60. package/dist/chunks/{aisdk-native-kgcyjstq.js → aisdk-native-7wxj7vfh.js} +1 -1
  61. package/dist/chunks/{aisdk-native-wbtqks6c.js → aisdk-native-80fkzc6b.js} +10 -10
  62. package/dist/chunks/{aisdk-native-rrgzyjaj.js → aisdk-native-80gct2kr.js} +3 -3
  63. package/dist/chunks/{aisdk-native-f1h6hjy5.js → aisdk-native-81zfvqqs.js} +27 -27
  64. package/dist/chunks/{aisdk-native-hqxaqnsz.js → aisdk-native-851r6173.js} +12 -12
  65. package/dist/chunks/{aisdk-native-2ybfqxjc.js → aisdk-native-88jassm4.js} +17 -17
  66. package/dist/chunks/{aisdk-native-9sjy1xft.js → aisdk-native-8hac7bq2.js} +17 -17
  67. package/dist/chunks/{aisdk-native-y6cd6ah2.js → aisdk-native-8jn8c15b.js} +10 -10
  68. package/dist/chunks/{aisdk-native-gd2xe63m.js → aisdk-native-8xw6hc60.js} +9 -9
  69. package/dist/chunks/{aisdk-native-00j0dh26.js → aisdk-native-8yvs2ce4.js} +3 -3
  70. package/dist/chunks/{aisdk-native-fxqcjp4y.js → aisdk-native-9awa2hmg.js} +20 -20
  71. package/dist/chunks/{aisdk-native-fkv0s007.js → aisdk-native-9d21cdfk.js} +36 -36
  72. package/dist/chunks/{aisdk-native-ymtrgr5e.js → aisdk-native-9tn75rdf.js} +20 -20
  73. package/dist/chunks/{aisdk-native-wb3p2xcb.js → aisdk-native-a06m10p5.js} +27 -27
  74. package/dist/chunks/{aisdk-native-atrw5sbr.js → aisdk-native-a0kfw7rx.js} +30 -30
  75. package/dist/chunks/{aisdk-native-y6kxd9cb.js → aisdk-native-a5ar9xjj.js} +19 -19
  76. package/dist/chunks/{aisdk-native-0f9afca0.js → aisdk-native-af04s6ss.js} +3 -3
  77. package/dist/chunks/{aisdk-native-bnzkcavh.js → aisdk-native-ahrt8s9h.js} +35 -35
  78. package/dist/chunks/{aisdk-native-qrdq1prv.js → aisdk-native-aqrrw3fx.js} +7 -7
  79. package/dist/chunks/{aisdk-native-ef88rrmz.js → aisdk-native-ayy16kn2.js} +11 -11
  80. package/dist/chunks/{aisdk-native-4c02e3a4.js → aisdk-native-ba0pmapb.js} +3 -3
  81. package/dist/chunks/{aisdk-native-fj40dq2k.js → aisdk-native-bacyadyn.js} +6 -7
  82. package/dist/chunks/{aisdk-native-cq37gk0t.js → aisdk-native-bha4atvq.js} +1 -1
  83. package/dist/chunks/{aisdk-native-s86dqrf8.js → aisdk-native-bj66tvz5.js} +7 -7
  84. package/dist/chunks/{aisdk-native-gfww71ry.js → aisdk-native-bv6943e1.js} +1 -1
  85. package/dist/chunks/{aisdk-native-a9jcekkd.js → aisdk-native-c2x19npp.js} +11 -11
  86. package/dist/chunks/{aisdk-native-3w2b2yj4.js → aisdk-native-c78bbtc9.js} +3 -3
  87. package/dist/chunks/{aisdk-native-wc0j5gyx.js → aisdk-native-cegyzb74.js} +6 -6
  88. package/dist/chunks/{aisdk-native-8awfgv52.js → aisdk-native-cjq1148t.js} +15 -15
  89. package/dist/chunks/{aisdk-native-7w3s9kd0.js → aisdk-native-cmbqfntm.js} +5 -5
  90. package/dist/chunks/{aisdk-native-9hn6k4tm.js → aisdk-native-cmwkp3r5.js} +7 -7
  91. package/dist/chunks/{aisdk-native-hd6qev3f.js → aisdk-native-ctm3y1hm.js} +16 -16
  92. package/dist/chunks/{aisdk-native-xbv6w661.js → aisdk-native-d721p5x2.js} +4 -4
  93. package/dist/chunks/{aisdk-native-68k76m1k.js → aisdk-native-d7ssab97.js} +7 -7
  94. package/dist/chunks/{aisdk-native-7krekesg.js → aisdk-native-df10g7zh.js} +25 -25
  95. package/dist/chunks/{aisdk-native-y7nsxf6r.js → aisdk-native-dnsrr8zs.js} +48 -48
  96. package/dist/chunks/{aisdk-native-y71avatq.js → aisdk-native-dpkg50ah.js} +3 -3
  97. package/dist/chunks/{aisdk-native-3a7ehprh.js → aisdk-native-dt5w6v9g.js} +3 -3
  98. package/dist/chunks/{aisdk-native-8hbfdwcy.js → aisdk-native-e0a154fg.js} +5 -5
  99. package/dist/chunks/{aisdk-native-bym8k2q4.js → aisdk-native-e65aczms.js} +16 -16
  100. package/dist/chunks/{aisdk-native-hnr5yq9h.js → aisdk-native-e6hmchc5.js} +3 -3
  101. package/dist/chunks/{aisdk-native-rhjbct0v.js → aisdk-native-eaj1djv9.js} +7 -7
  102. package/dist/chunks/{aisdk-native-sythwh0s.js → aisdk-native-eda3kmbe.js} +4 -4
  103. package/dist/chunks/{aisdk-native-k44b8f6f.js → aisdk-native-eegh8h7g.js} +5 -5
  104. package/dist/chunks/{aisdk-native-8m0chse6.js → aisdk-native-ep530p1t.js} +22 -22
  105. package/dist/chunks/{aisdk-native-yvgpa5e3.js → aisdk-native-eqjmr049.js} +74 -40
  106. package/dist/chunks/{aisdk-native-g17fnnhe.js → aisdk-native-erx5yvxc.js} +17 -17
  107. package/dist/chunks/{aisdk-native-96x7zdnn.js → aisdk-native-f7pkc454.js} +20 -20
  108. package/dist/chunks/{aisdk-native-zdr1f95n.js → aisdk-native-fakctfgg.js} +18 -18
  109. package/dist/chunks/{aisdk-native-tkjpgj67.js → aisdk-native-fd43cwvv.js} +8 -8
  110. package/dist/chunks/{aisdk-native-9gt9xvgh.js → aisdk-native-fgqcvsfv.js} +10 -10
  111. package/dist/chunks/{aisdk-native-ydehfash.js → aisdk-native-fj424p4s.js} +30 -30
  112. package/dist/chunks/{aisdk-native-115hbv0n.js → aisdk-native-fkd6bfp6.js} +12 -12
  113. package/dist/chunks/aisdk-native-fkft4cnq.js +478 -0
  114. package/dist/chunks/{aisdk-native-b6dhfaq6.js → aisdk-native-g2nffjee.js} +11 -11
  115. package/dist/chunks/{aisdk-native-16hwt5r8.js → aisdk-native-g4bm5adv.js} +55 -55
  116. package/dist/chunks/{aisdk-native-h16eh2cg.js → aisdk-native-g8bbjj5w.js} +14 -14
  117. package/dist/chunks/{aisdk-native-0yv7vnxb.js → aisdk-native-gkjg0s4y.js} +32 -32
  118. package/dist/chunks/{aisdk-native-cjks21kp.js → aisdk-native-gmnht6d3.js} +5 -5
  119. package/dist/chunks/{aisdk-native-swmbf78h.js → aisdk-native-h53656fs.js} +8 -8
  120. package/dist/chunks/{aisdk-native-x0511brf.js → aisdk-native-h6jr292a.js} +3 -3
  121. package/dist/chunks/{aisdk-native-b3w3f3fm.js → aisdk-native-h7c2rqcj.js} +19 -19
  122. package/dist/chunks/{aisdk-native-s4k2cmb5.js → aisdk-native-hcvc3emd.js} +19 -19
  123. package/dist/chunks/{aisdk-native-tcay1cqt.js → aisdk-native-hq8zt1th.js} +5 -5
  124. package/dist/chunks/{aisdk-native-tc6qcdy5.js → aisdk-native-hr5bc81f.js} +4 -4
  125. package/dist/chunks/{aisdk-native-r81gss8s.js → aisdk-native-j06qwx11.js} +6 -6
  126. package/dist/chunks/{aisdk-native-kwy4afdt.js → aisdk-native-j0j97596.js} +6 -6
  127. package/dist/chunks/{aisdk-native-esp4ax25.js → aisdk-native-j6gqw2pj.js} +4 -4
  128. package/dist/chunks/{aisdk-native-9jwxq161.js → aisdk-native-jca4demv.js} +1 -1
  129. package/dist/chunks/{aisdk-native-y3cfv4n4.js → aisdk-native-jwnrs5dp.js} +33 -33
  130. package/dist/chunks/{aisdk-native-f3ngv102.js → aisdk-native-k2h4r4s0.js} +3 -3
  131. package/dist/chunks/{aisdk-native-hejrs7ps.js → aisdk-native-k31mpn09.js} +1 -1
  132. package/dist/chunks/{aisdk-native-jppvw2tx.js → aisdk-native-k3gnzxs0.js} +3 -3
  133. package/dist/chunks/{aisdk-native-hw5w4egb.js → aisdk-native-knccs335.js} +24 -24
  134. package/dist/chunks/{aisdk-native-mtax4y4w.js → aisdk-native-kyngf2ah.js} +5 -5
  135. package/dist/chunks/{aisdk-native-pnv527nz.js → aisdk-native-m2d0j7c0.js} +7 -7
  136. package/dist/chunks/{aisdk-native-6n56vpse.js → aisdk-native-mr0hx204.js} +25 -25
  137. package/dist/chunks/{aisdk-native-d9cxwk5k.js → aisdk-native-mw4vczt2.js} +90 -90
  138. package/dist/chunks/{aisdk-native-8y1b1xx2.js → aisdk-native-n9v815xf.js} +10 -10
  139. package/dist/chunks/{aisdk-native-ba3991h0.js → aisdk-native-nb07dary.js} +30 -30
  140. package/dist/chunks/{aisdk-native-zgth59m1.js → aisdk-native-nc1k99g3.js} +5 -5
  141. package/dist/chunks/{aisdk-native-7e0n63vf.js → aisdk-native-ne1gzv55.js} +9 -9
  142. package/dist/chunks/{aisdk-native-em3f3zkt.js → aisdk-native-nm9w1vfn.js} +25 -25
  143. package/dist/chunks/{aisdk-native-d6er668x.js → aisdk-native-nz76xpbf.js} +14 -14
  144. package/dist/chunks/{aisdk-native-9abfm80s.js → aisdk-native-p1p0zqxa.js} +16 -16
  145. package/dist/chunks/aisdk-native-p26stxcb.js +164 -0
  146. package/dist/chunks/{aisdk-native-6z7z12yj.js → aisdk-native-p8hercg3.js} +27 -27
  147. package/dist/chunks/{aisdk-native-ttkvv5bq.js → aisdk-native-pakx3g0a.js} +9 -9
  148. package/dist/chunks/{aisdk-native-21fjxxq6.js → aisdk-native-pb231g4a.js} +9 -9
  149. package/dist/chunks/{aisdk-native-q65r789c.js → aisdk-native-pbcspj05.js} +13 -13
  150. package/dist/chunks/{aisdk-native-a7csp2mw.js → aisdk-native-pmsv8f6n.js} +1 -1
  151. package/dist/chunks/{aisdk-native-zeh8ztgw.js → aisdk-native-pts37tz4.js} +8 -8
  152. package/dist/chunks/{aisdk-native-ggxh3msc.js → aisdk-native-pwndzpcd.js} +20 -20
  153. package/dist/chunks/{aisdk-native-6480rn39.js → aisdk-native-pynn8zta.js} +9 -9
  154. package/dist/chunks/{aisdk-native-skyymkrr.js → aisdk-native-q3t37ft6.js} +3 -3
  155. package/dist/chunks/{aisdk-native-dj7e4mff.js → aisdk-native-q57j3r44.js} +4 -4
  156. package/dist/chunks/{aisdk-native-bab4jsc6.js → aisdk-native-q6z2rbf3.js} +19 -19
  157. package/dist/chunks/{aisdk-native-fs4x7456.js → aisdk-native-q8kwzsyt.js} +5 -5
  158. package/dist/chunks/{aisdk-native-atz937d5.js → aisdk-native-qj4qsxzt.js} +28 -28
  159. package/dist/chunks/{aisdk-native-cwa6csj7.js → aisdk-native-qmqgtz8f.js} +7 -7
  160. package/dist/chunks/aisdk-native-qp3ncj1z.js +247 -0
  161. package/dist/chunks/{aisdk-native-hgqdqc69.js → aisdk-native-qqdrqwz9.js} +4 -4
  162. package/dist/chunks/{aisdk-native-6w67has8.js → aisdk-native-qvqshg0f.js} +3 -3
  163. package/dist/chunks/{aisdk-native-cwq8nmtd.js → aisdk-native-qwf746a1.js} +19 -19
  164. package/dist/chunks/{aisdk-native-32nb2s9m.js → aisdk-native-qze9tj9p.js} +13 -13
  165. package/dist/chunks/{aisdk-native-2nkaynk5.js → aisdk-native-r391d9tr.js} +39 -39
  166. package/dist/chunks/{aisdk-native-yp2x3t23.js → aisdk-native-r8xr0va3.js} +3 -3
  167. package/dist/chunks/{aisdk-native-a46v4e4v.js → aisdk-native-ratrq7cm.js} +3 -3
  168. package/dist/chunks/{aisdk-native-64121yjq.js → aisdk-native-rehmvjq3.js} +22 -22
  169. package/dist/chunks/{aisdk-native-tf0wxgc3.js → aisdk-native-rhcmf0p0.js} +14 -14
  170. package/dist/chunks/{aisdk-native-mgz011jm.js → aisdk-native-rkwasy8q.js} +12 -12
  171. package/dist/chunks/{aisdk-native-kccbwwm6.js → aisdk-native-rs0s42cj.js} +29 -29
  172. package/dist/chunks/{aisdk-native-q2024qw3.js → aisdk-native-rvxj2sc4.js} +9 -9
  173. package/dist/chunks/{aisdk-native-1s1yk029.js → aisdk-native-ry6xxh2r.js} +40 -40
  174. package/dist/chunks/{aisdk-native-knr6p7a1.js → aisdk-native-rz1w6nds.js} +177 -177
  175. package/dist/chunks/{aisdk-native-n60s5vft.js → aisdk-native-rzj2cp84.js} +4 -4
  176. package/dist/chunks/{aisdk-native-wkag27sj.js → aisdk-native-rzmh5fa9.js} +43 -43
  177. package/dist/chunks/{aisdk-native-0qemd7z6.js → aisdk-native-s0ezpa0w.js} +52 -52
  178. package/dist/chunks/{aisdk-native-n082d93f.js → aisdk-native-sadjays5.js} +9 -9
  179. package/dist/chunks/{aisdk-native-yy7hzrx1.js → aisdk-native-sg67pcps.js} +16 -16
  180. package/dist/chunks/{aisdk-native-6hjx5zpb.js → aisdk-native-sk2hk6tq.js} +8 -8
  181. package/dist/chunks/{aisdk-native-npjtxnbs.js → aisdk-native-spnx07s7.js} +18 -18
  182. package/dist/chunks/{aisdk-native-nh7mhm8v.js → aisdk-native-stjqj5dk.js} +4 -4
  183. package/dist/chunks/{aisdk-native-wsck3bd6.js → aisdk-native-tdmtxyj7.js} +10 -10
  184. package/dist/chunks/{aisdk-native-fvghqctd.js → aisdk-native-tft2naev.js} +10 -10
  185. package/dist/chunks/{aisdk-native-c6phvjqp.js → aisdk-native-th2bmv3x.js} +1 -1
  186. package/dist/chunks/{aisdk-native-xnjb55qs.js → aisdk-native-tjtkz35m.js} +26 -26
  187. package/dist/chunks/{aisdk-native-m7nbb49h.js → aisdk-native-tmj2byc7.js} +22 -22
  188. package/dist/chunks/{aisdk-native-gj4qp5ev.js → aisdk-native-tq6snqtp.js} +11 -11
  189. package/dist/chunks/{aisdk-native-zetf5mxq.js → aisdk-native-var2fxzy.js} +12 -12
  190. package/dist/chunks/{aisdk-native-h94hje80.js → aisdk-native-vcmf8r39.js} +12 -12
  191. package/dist/chunks/{aisdk-native-dfe8djrf.js → aisdk-native-ve4pfa0n.js} +3 -3
  192. package/dist/chunks/{aisdk-native-50t98bj2.js → aisdk-native-vew351ra.js} +19 -19
  193. package/dist/chunks/{aisdk-native-q6q6aknj.js → aisdk-native-vpwnv2a1.js} +17 -17
  194. package/dist/chunks/{aisdk-native-eh5yz98j.js → aisdk-native-vqr31nzc.js} +26 -26
  195. package/dist/chunks/{aisdk-native-er424j15.js → aisdk-native-vv0td2jx.js} +3 -3
  196. package/dist/chunks/{aisdk-native-kfg3nz9r.js → aisdk-native-w16z4der.js} +21 -21
  197. package/dist/chunks/{aisdk-native-06dxphr1.js → aisdk-native-w1k39n5e.js} +3 -3
  198. package/dist/chunks/{aisdk-native-wr33kjtx.js → aisdk-native-wf4pm29n.js} +1 -1
  199. package/dist/chunks/{aisdk-native-7c30dffs.js → aisdk-native-wjk8h8nm.js} +20 -20
  200. package/dist/chunks/{aisdk-native-vep9a8b1.js → aisdk-native-wk08kt9e.js} +13 -13
  201. package/dist/chunks/{aisdk-native-skjgnpnj.js → aisdk-native-wk3ypdaq.js} +13 -13
  202. package/dist/chunks/{aisdk-native-3jphrg1a.js → aisdk-native-wn2s22d5.js} +30 -30
  203. package/dist/chunks/{aisdk-native-n08t6ze5.js → aisdk-native-wzys0hxm.js} +12 -12
  204. package/dist/chunks/{aisdk-native-b9g40zgd.js → aisdk-native-x4wxy4x8.js} +15 -15
  205. package/dist/chunks/{aisdk-native-e99pjtb3.js → aisdk-native-x8y1nay7.js} +28 -28
  206. package/dist/chunks/{aisdk-native-jf1jvezk.js → aisdk-native-xc19eb9a.js} +10 -10
  207. package/dist/chunks/{aisdk-native-dbnsaed8.js → aisdk-native-xe562d2c.js} +23 -23
  208. package/dist/chunks/{aisdk-native-pm220jya.js → aisdk-native-xfzxdcg1.js} +30 -30
  209. package/dist/chunks/{aisdk-native-hngy6k3e.js → aisdk-native-xm6fyv27.js} +7 -7
  210. package/dist/chunks/{aisdk-native-x3sqx4k7.js → aisdk-native-xn9n415p.js} +9 -9
  211. package/dist/chunks/{aisdk-native-88jxqscj.js → aisdk-native-xv4rd0sf.js} +10 -10
  212. package/dist/chunks/{aisdk-native-sk3v0q87.js → aisdk-native-y6pfs3xr.js} +13 -13
  213. package/dist/chunks/{aisdk-native-d101js13.js → aisdk-native-y9senqaw.js} +16 -16
  214. package/dist/chunks/{aisdk-native-h11rgf29.js → aisdk-native-yecrv0e3.js} +65 -65
  215. package/dist/chunks/{aisdk-native-t1cbfw6a.js → aisdk-native-yg973644.js} +8 -8
  216. package/dist/chunks/{aisdk-native-qghhqzkx.js → aisdk-native-ypvayta9.js} +4 -4
  217. package/dist/chunks/{aisdk-native-dhmh7aw6.js → aisdk-native-zav06jzw.js} +3 -3
  218. package/dist/chunks/{aisdk-native-1teps6y3.js → aisdk-native-zc1eb274.js} +1 -1
  219. package/dist/chunks/{aisdk-native-3vdfxtgs.js → aisdk-native-zh1mn9d7.js} +5 -5
  220. package/dist/chunks/{aisdk-native-76jm940e.js → aisdk-native-zh4wx33z.js} +20 -20
  221. package/dist/chunks/{aisdk-native-qgcr32z5.js → aisdk-native-zv29ggfk.js} +27 -27
  222. package/dist/chunks/{aisdk-native-h2f7hf79.js → aisdk-native-zx9dccf2.js} +18 -18
  223. package/dist/chunks/{aisdk-native-bpwm8rb1.js → aisdk-native-zxeqxg4j.js} +33 -33
  224. package/dist/chunks/{aisdk-native-87sjyc5f.js → aisdk-native-zy6kjvcy.js} +14 -14
  225. package/dist/codemode/instructions.js +6 -6
  226. package/dist/command.js +66 -66
  227. package/dist/config/discovery.js +59 -59
  228. package/dist/config/normalize.js +78 -78
  229. package/dist/config/plugin/agent.js +93 -93
  230. package/dist/config/plugin/command.js +175 -175
  231. package/dist/config/plugin/compaction.js +123 -123
  232. package/dist/config/plugin/compatibility.js +106 -106
  233. package/dist/config/plugin/formatter.js +92 -92
  234. package/dist/config/plugin/image.js +91 -91
  235. package/dist/config/plugin/instruction.js +64 -64
  236. package/dist/config/plugin/location-watcher.js +91 -91
  237. package/dist/config/plugin/mcp.js +101 -101
  238. package/dist/config/plugin/policy.js +91 -91
  239. package/dist/config/plugin/provider.js +91 -91
  240. package/dist/config/plugin/reference.js +93 -93
  241. package/dist/config/plugin/shell.js +93 -93
  242. package/dist/config/plugin/skill-file.js +73 -73
  243. package/dist/config/plugin/skill.js +109 -109
  244. package/dist/config/plugin/snapshot.js +91 -91
  245. package/dist/config/plugin/source.js +94 -94
  246. package/dist/config/plugin/tool-output.js +91 -91
  247. package/dist/config/plugin/websearch.js +92 -92
  248. package/dist/config/plugin/worktree.js +92 -92
  249. package/dist/config.js +95 -95
  250. package/dist/credential.js +67 -67
  251. package/dist/database/database.js +55 -55
  252. package/dist/database/drizzle/effect-sqlite/driver.js +9 -9
  253. package/dist/database/drizzle/effect-sqlite/index.js +6 -6
  254. package/dist/database/drizzle/effect-sqlite/session.js +6 -6
  255. package/dist/database/drizzle/index.js +10 -10
  256. package/dist/database/drizzle/sqlite-core/effect/db.js +4 -4
  257. package/dist/database/drizzle/sqlite-core/effect/index.js +2 -2
  258. package/dist/database/drizzle/sqlite-core/effect/session.js +5 -5
  259. package/dist/database/drizzle.js +10 -10
  260. package/dist/database/migration.gen.js +40 -40
  261. package/dist/database/migration.js +42 -42
  262. package/dist/database/v1-migration.bun.js +12 -12
  263. package/dist/effect/app-node-builder.js +230 -230
  264. package/dist/effect/keyed-mutex.js +3 -3
  265. package/dist/environment/environment.js +66 -66
  266. package/dist/environment/index.js +68 -68
  267. package/dist/event-logger.js +14 -14
  268. package/dist/file-access.js +76 -76
  269. package/dist/file-mutation.js +67 -67
  270. package/dist/filesystem/location-watcher-policy.js +5 -5
  271. package/dist/filesystem/location-watcher.js +186 -186
  272. package/dist/filesystem/search.js +74 -74
  273. package/dist/filesystem/watcher.js +13 -13
  274. package/dist/filesystem.js +75 -75
  275. package/dist/form.js +68 -68
  276. package/dist/formatter.js +63 -63
  277. package/dist/generate.js +77 -77
  278. package/dist/git.js +6 -6
  279. package/dist/github-copilot/chat/openai-compatible-chat-language-model.js +4 -4
  280. package/dist/github-copilot/copilot-provider.js +3 -3
  281. package/dist/github-copilot/models.js +65 -65
  282. package/dist/github-copilot/responses/openai-responses-language-model.js +5 -5
  283. package/dist/github-copilot/responses/openai-responses-prepare-tools.js +3 -3
  284. package/dist/image/photon.js +1 -1
  285. package/dist/image.js +5 -5
  286. package/dist/instance/service.js +5 -5
  287. package/dist/instance.js +311 -311
  288. package/dist/instruction-discovery.js +67 -67
  289. package/dist/instructions/builtins.js +64 -64
  290. package/dist/instructions/index.js +5 -5
  291. package/dist/integration/connection.js +3 -3
  292. package/dist/integration.js +67 -67
  293. package/dist/job.js +61 -61
  294. package/dist/kv.js +56 -56
  295. package/dist/location-activity.js +56 -56
  296. package/dist/location-mutation.js +30 -30
  297. package/dist/location-service-map.js +63 -63
  298. package/dist/location-services.js +308 -308
  299. package/dist/location.js +62 -62
  300. package/dist/mcp/client.js +17 -17
  301. package/dist/mcp/index.js +78 -78
  302. package/dist/mcp/instructions.js +94 -94
  303. package/dist/mcp/oauth.js +14 -14
  304. package/dist/mcp/stdio.js +63 -63
  305. package/dist/modal/models.js +65 -65
  306. package/dist/model-resolver.js +72 -72
  307. package/dist/model.js +74 -74
  308. package/dist/models-dev.js +81 -81
  309. package/dist/permission/saved.js +60 -60
  310. package/dist/permission.js +85 -85
  311. package/dist/persistent-pty/index.js +69 -69
  312. package/dist/persistent-pty.js +55 -55
  313. package/dist/plugin/agent.js +76 -76
  314. package/dist/plugin/command.js +71 -71
  315. package/dist/plugin/hooks.js +5 -5
  316. package/dist/plugin/host.js +179 -179
  317. package/dist/plugin/identity.js +3 -3
  318. package/dist/plugin/instance.js +5 -5
  319. package/dist/plugin/internal.js +284 -284
  320. package/dist/plugin/mcp-codemode-exclusion.js +3 -3
  321. package/dist/plugin/models-dev.js +70 -70
  322. package/dist/plugin/module.js +4 -4
  323. package/dist/plugin/optimize.js +3 -3
  324. package/dist/plugin/plan.js +74 -74
  325. package/dist/plugin/provider/amazon-bedrock.js +64 -64
  326. package/dist/plugin/provider/azure.js +90 -90
  327. package/dist/plugin/provider/cloudflare-ai-gateway.js +89 -89
  328. package/dist/plugin/provider/cloudflare-workers-ai.js +89 -89
  329. package/dist/plugin/provider/configured.js +88 -88
  330. package/dist/plugin/provider/digitalocean.js +66 -66
  331. package/dist/plugin/provider/github-copilot.js +67 -67
  332. package/dist/plugin/provider/gitlab.js +65 -65
  333. package/dist/plugin/provider/google-vertex.js +64 -64
  334. package/dist/plugin/provider/llmgateway.js +58 -58
  335. package/dist/plugin/provider/lmstudio.js +91 -91
  336. package/dist/plugin/provider/modal.js +66 -66
  337. package/dist/plugin/provider/ollama.js +91 -91
  338. package/dist/plugin/provider/openai.js +67 -67
  339. package/dist/plugin/provider/opencode.js +67 -67
  340. package/dist/plugin/provider/openrouter.js +65 -65
  341. package/dist/plugin/provider/poe.js +58 -58
  342. package/dist/plugin/provider/prompt-cache-key.js +64 -64
  343. package/dist/plugin/provider/sap-ai-core.js +64 -64
  344. package/dist/plugin/provider/snowflake-cortex.js +90 -90
  345. package/dist/plugin/provider/vercel.js +64 -64
  346. package/dist/plugin/provider/vllm.js +91 -91
  347. package/dist/plugin/provider/xai.js +65 -65
  348. package/dist/plugin/provider.js +122 -122
  349. package/dist/plugin/sdk.js +60 -60
  350. package/dist/plugin/service.js +3 -3
  351. package/dist/plugin/skill.js +107 -107
  352. package/dist/plugin/supervisor.js +302 -302
  353. package/dist/plugin/update.js +6 -6
  354. package/dist/plugin/vcs/git.js +62 -62
  355. package/dist/plugin/vcs/hg.js +62 -62
  356. package/dist/plugin/warming.js +90 -90
  357. package/dist/plugin/websearch/exa.js +4 -4
  358. package/dist/plugin/websearch/firecrawl.js +5 -5
  359. package/dist/plugin/websearch/index.js +8 -8
  360. package/dist/plugin/websearch/mcp.js +5 -5
  361. package/dist/plugin/websearch/parallel.js +5 -5
  362. package/dist/plugin/websearch/tavily.js +6 -6
  363. package/dist/plugin/websearch/tinyfish.js +7 -7
  364. package/dist/plugin.js +187 -187
  365. package/dist/project.js +61 -61
  366. package/dist/provider.js +75 -75
  367. package/dist/pty/schema.js +3 -3
  368. package/dist/pty.js +73 -73
  369. package/dist/reference/instructions.js +66 -66
  370. package/dist/reference.js +66 -66
  371. package/dist/repository-cache.js +59 -59
  372. package/dist/ripgrep.js +69 -69
  373. package/dist/rpc.js +63 -63
  374. package/dist/session/command.js +57 -57
  375. package/dist/session/compaction.js +101 -101
  376. package/dist/session/context.js +117 -117
  377. package/dist/session/diff.js +62 -62
  378. package/dist/session/environment.js +5 -5
  379. package/dist/session/error.js +4 -4
  380. package/dist/session/execution/restart.js +118 -118
  381. package/dist/session/execution.js +99 -99
  382. package/dist/session/generate.js +118 -118
  383. package/dist/session/history.js +6 -6
  384. package/dist/session/inbox.js +66 -66
  385. package/dist/session/info.js +2 -2
  386. package/dist/session/instruction-entry.js +57 -57
  387. package/dist/session/instruction-state.js +2 -2
  388. package/dist/session/instructions.js +71 -71
  389. package/dist/session/message-updater.js +3 -3
  390. package/dist/session/model-request.js +88 -88
  391. package/dist/session/model-transport.js +7 -7
  392. package/dist/session/move.js +100 -100
  393. package/dist/session/projector.js +63 -63
  394. package/dist/session/prompt.js +76 -76
  395. package/dist/session/provider-context.js +3 -3
  396. package/dist/session/revert.js +63 -63
  397. package/dist/session/run-coordinator.js +3 -3
  398. package/dist/session/runner/index.js +3 -3
  399. package/dist/session/runner/llm.js +188 -188
  400. package/dist/session/runner/model.js +72 -72
  401. package/dist/session/runner/retry.js +86 -86
  402. package/dist/session/runner/step.js +94 -94
  403. package/dist/session/runner/to-llm-message.js +2 -2
  404. package/dist/session/schema.js +5 -5
  405. package/dist/session/session.js +134 -134
  406. package/dist/session/shell.js +104 -104
  407. package/dist/session/skill.js +75 -75
  408. package/dist/session/stats.js +10 -10
  409. package/dist/session/store.js +63 -63
  410. package/dist/session/subagent-job.js +171 -171
  411. package/dist/session/title.js +120 -120
  412. package/dist/session/to-session-error.js +83 -83
  413. package/dist/session/transfer.js +118 -118
  414. package/dist/session.js +180 -180
  415. package/dist/shell/parse.js +3 -3
  416. package/dist/shell/select.js +13 -13
  417. package/dist/shell.js +107 -107
  418. package/dist/skill/discovery.js +5 -5
  419. package/dist/skill/instructions.js +79 -79
  420. package/dist/skill.js +82 -82
  421. package/dist/snapshot.js +69 -69
  422. package/dist/tool/mcp.js +95 -95
  423. package/dist/tool/plugin/edit.js +87 -87
  424. package/dist/tool/plugin/glob.js +84 -84
  425. package/dist/tool/plugin/grep.js +90 -90
  426. package/dist/tool/plugin/opencode.js +5 -3
  427. package/dist/tool/plugin/patch.js +85 -85
  428. package/dist/tool/plugin/question.js +77 -77
  429. package/dist/tool/plugin/read.js +91 -91
  430. package/dist/tool/plugin/shell.js +179 -179
  431. package/dist/tool/plugin/skill.js +81 -81
  432. package/dist/tool/plugin/subagent.js +178 -178
  433. package/dist/tool/plugin/webfetch.js +77 -77
  434. package/dist/tool/plugin/websearch.js +85 -85
  435. package/dist/tool/plugin/write.js +89 -89
  436. package/dist/tool/read-filesystem.js +71 -71
  437. package/dist/tool-output.js +5 -5
  438. package/dist/tool.js +9 -9
  439. package/dist/types/plugin/identity.d.ts +0 -1
  440. package/dist/types/tool/plugin/opencode.d.ts +7 -0
  441. package/dist/types/tool/plugin/subagent.d.ts +3 -1
  442. package/dist/v1/config/agent.js +4 -4
  443. package/dist/v1/config/attachment.js +3 -3
  444. package/dist/v1/config/command.js +3 -3
  445. package/dist/v1/config/config.js +14 -14
  446. package/dist/v1/config/formatter.js +5 -5
  447. package/dist/v1/config/lsp.js +5 -5
  448. package/dist/v1/config/mcp.js +3 -3
  449. package/dist/v1/config/migrate.js +65 -65
  450. package/dist/v1/config/permission.js +3 -3
  451. package/dist/v1/config/plugin.js +3 -3
  452. package/dist/v1/config/provider.js +3 -3
  453. package/dist/v1/config/skills.js +3 -3
  454. package/dist/variant.js +67 -67
  455. package/dist/vcs.js +65 -65
  456. package/dist/websearch.js +66 -66
  457. package/dist/wellknown/plugin.js +59 -59
  458. package/dist/wellknown.js +62 -62
  459. package/dist/workspace/driver.js +5 -5
  460. package/dist/workspace.js +62 -62
  461. package/dist/worktree/git.js +3 -3
  462. package/dist/worktree/strategies.js +64 -64
  463. package/dist/worktree.js +72 -72
  464. package/package.json +8 -8
  465. package/dist/chunks/aisdk-native-6kdq0pjd.js +0 -4
  466. package/dist/chunks/aisdk-native-e576cz19.js +0 -80
  467. package/dist/chunks/aisdk-native-hcp8xqw6.js +0 -247
  468. package/dist/chunks/aisdk-native-p0z2qksq.js +0 -478
  469. package/dist/chunks/aisdk-native-y817ngn0.js +0 -26
  470. /package/dist/chunks/{aisdk-native-92k45pvj.js → aisdk-native-9nepbqpa.js} +0 -0
  471. /package/dist/chunks/{aisdk-native-18xw5b3r.js → aisdk-native-fpgyj0nn.js} +0 -0
  472. /package/dist/chunks/{aisdk-native-2cmv458r.js → aisdk-native-q17z9dx8.js} +0 -0
  473. /package/dist/chunks/{aisdk-native-hev6f6cv.js → aisdk-native-ssh52gjb.js} +0 -0
@@ -2,15 +2,15 @@ import {
2
2
  ascending2
3
3
  } from "./aisdk-native-tvtrv512.js";
4
4
  import {
5
- Service62,
6
- node65
7
- } from "./aisdk-native-a9jcekkd.js";
5
+ Service69,
6
+ node73
7
+ } from "./aisdk-native-c2x19npp.js";
8
8
  import {
9
9
  SessionMessage2
10
10
  } from "./aisdk-native-gftt206x.js";
11
11
  import {
12
12
  SessionSchema2
13
- } from "./aisdk-native-skyymkrr.js";
13
+ } from "./aisdk-native-q3t37ft6.js";
14
14
  import {
15
15
  __export
16
16
  } from "./aisdk-native-9rqn6x4v.js";
@@ -19,9 +19,9 @@ import {
19
19
  var exports_job = {};
20
20
  __export(exports_job, {
21
21
  Job: () => exports_job,
22
- Service: () => Service51,
23
- make: () => make18,
24
- node: () => node53
22
+ Service: () => Service53,
23
+ make: () => make19,
24
+ node: () => node56
25
25
  });
26
26
  import { Array, Cause, Clock, Context, Deferred, Effect, Exit, Layer, Schema, Scope, SynchronizedRef } from "effect";
27
27
  import { makeGlobalNode } from "@opencode/util/effect/app-node";
@@ -50,7 +50,7 @@ var Background = Schema.Struct({
50
50
  var decodeBackground = Schema.decodeUnknownResult(Background);
51
51
  var backgroundPrefix = "job.background/";
52
52
 
53
- class Service51 extends Context.Service()("@opencode/Job") {
53
+ class Service53 extends Context.Service()("@opencode/Job") {
54
54
  }
55
55
  function snapshot(job) {
56
56
  return {
@@ -85,8 +85,8 @@ function decrementSession(input, sessionID) {
85
85
  next.set(sessionID, count - 1);
86
86
  return next;
87
87
  }
88
- var make18 = Effect.gen(function* () {
89
- const kv = yield* Service62;
88
+ var make19 = Effect.gen(function* () {
89
+ const kv = yield* Service69;
90
90
  const state = {
91
91
  jobs: yield* SynchronizedRef.make(new Map),
92
92
  scope: yield* Scope.Scope
@@ -315,7 +315,7 @@ var make18 = Effect.gen(function* () {
315
315
  return recovered;
316
316
  }).pipe(Effect.withSpan("Job.pendingBackground"));
317
317
  const completeBackground = Effect.fn("Job.completeBackground")((notificationID) => kv.remove(`${backgroundPrefix}${notificationID}`));
318
- return Service51.of({
318
+ return Service53.of({
319
319
  get,
320
320
  start,
321
321
  wait,
@@ -327,7 +327,7 @@ var make18 = Effect.gen(function* () {
327
327
  completeBackground
328
328
  });
329
329
  });
330
- var layer = Layer.effect(Service51, make18);
331
- var node53 = makeGlobalNode({ service: Service51, layer, deps: [node65] });
330
+ var layer = Layer.effect(Service53, make19);
331
+ var node56 = makeGlobalNode({ service: Service53, layer, deps: [node73] });
332
332
 
333
- export { Service51, make18, node53, exports_job };
333
+ export { Service53, make19, node56, exports_job };
@@ -3,15 +3,15 @@ import {
3
3
  } from "./aisdk-native-922hggd3.js";
4
4
  import {
5
5
  root2
6
- } from "./aisdk-native-kfg3nz9r.js";
6
+ } from "./aisdk-native-w16z4der.js";
7
7
  import {
8
- Service77,
9
- node81
10
- } from "./aisdk-native-skjgnpnj.js";
8
+ Service75,
9
+ node79
10
+ } from "./aisdk-native-wk3ypdaq.js";
11
11
  import {
12
- Service64,
13
- node67
14
- } from "./aisdk-native-16hwt5r8.js";
12
+ Service71,
13
+ node75
14
+ } from "./aisdk-native-g4bm5adv.js";
15
15
  import {
16
16
  __export
17
17
  } from "./aisdk-native-9rqn6x4v.js";
@@ -22,9 +22,9 @@ __export(exports_file_access, {
22
22
  FileAccess: () => exports_file_access,
23
23
  Kind: () => Kind2,
24
24
  ResolveInput: () => ResolveInput2,
25
- Service: () => Service21,
25
+ Service: () => Service70,
26
26
  externalDirectoryPermission: () => externalDirectoryPermission2,
27
- node: () => node24,
27
+ node: () => node74,
28
28
  resolvePath: () => resolvePath2
29
29
  });
30
30
  import { makeLocationNode } from "@opencode/util/effect/app-node";
@@ -43,7 +43,7 @@ var externalDirectoryPermission2 = (input) => ({
43
43
  save: [input.save]
44
44
  });
45
45
 
46
- class Service21 extends Context.Service()("@opencode/FileAccess") {
46
+ class Service70 extends Context.Service()("@opencode/FileAccess") {
47
47
  }
48
48
  var resolvePath2 = (directory, input, home = Global.Path.home) => {
49
49
  const normalized = FSUtil.windowsPath(input);
@@ -55,10 +55,10 @@ var invocation = (context) => ({
55
55
  agent: context.agent,
56
56
  source: { type: "tool", messageID: context.messageID, id: context.id }
57
57
  });
58
- var layer = Layer.effect(Service21, Effect.gen(function* () {
58
+ var layer = Layer.effect(Service70, Effect.gen(function* () {
59
59
  const fs = yield* FSUtil.Service;
60
- const location = yield* Service77;
61
- const permission = yield* Service64;
60
+ const location = yield* Service75;
61
+ const permission = yield* Service71;
62
62
  const resolve = Effect.fn("FileAccess.resolve")(function* (input) {
63
63
  const absolute = AbsolutePath2.make(resolvePath2(location.directory, input.path));
64
64
  const worktree = path.resolve(location.project.directory);
@@ -107,8 +107,8 @@ var layer = Layer.effect(Service21, Effect.gen(function* () {
107
107
  });
108
108
  return target;
109
109
  });
110
- return Service21.of({ resolve, authorizeExternal, authorizeRead });
110
+ return Service70.of({ resolve, authorizeExternal, authorizeRead });
111
111
  }));
112
- var node24 = makeLocationNode({ service: Service21, layer, deps: [FSUtil.node, node81, node67] });
112
+ var node74 = makeLocationNode({ service: Service70, layer, deps: [FSUtil.node, node79, node75] });
113
113
 
114
- export { Kind2, ResolveInput2, externalDirectoryPermission2, Service21, resolvePath2, node24, exports_file_access };
114
+ export { Kind2, ResolveInput2, externalDirectoryPermission2, Service70, resolvePath2, node74, exports_file_access };
@@ -0,0 +1,164 @@
1
+ import {
2
+ __export
3
+ } from "./aisdk-native-9rqn6x4v.js";
4
+
5
+ // src/tool/plugin/opencode.ts
6
+ var exports_opencode = {};
7
+ __export(exports_opencode, {
8
+ ModelsInput: () => ModelsInput2,
9
+ MoveInput: () => MoveInput2,
10
+ OpenCodeTools: () => exports_opencode,
11
+ Plugin: () => Plugin29,
12
+ RenameInput: () => RenameInput2
13
+ });
14
+ import { SystemPart, ToolFailure } from "@opencode/ai";
15
+ import { Model } from "@opencode/schema/model";
16
+ import { AbsolutePath } from "@opencode/schema/schema";
17
+ import { Session } from "@opencode/schema/session";
18
+ import { Effect, Schema } from "effect";
19
+ var RenameInput2 = Schema.Struct({
20
+ sessionID: Schema.optionalKey(Session.ID).annotate({ description: "Omit to rename the current session." }),
21
+ title: Schema.String.check(Schema.isMinLength(1)).annotate({ description: "New session title." })
22
+ });
23
+ var RenameOutput = Schema.Struct({ sessionID: Session.ID, title: Schema.String });
24
+ var MoveInput2 = Schema.Struct({
25
+ sessionID: Schema.optionalKey(Session.ID).annotate({ description: "Omit to move the current session." }),
26
+ directory: AbsolutePath.check(Schema.isMinLength(1)).annotate({
27
+ description: "Destination directory, relative to the target session's directory or absolute. Supports ~."
28
+ })
29
+ });
30
+ var MoveOutput = Schema.Struct({ sessionID: Session.ID, directory: AbsolutePath });
31
+ var ModelsInput2 = Schema.Struct({
32
+ query: Schema.optionalKey(Schema.String).annotate({
33
+ description: "Text to search for in model names and IDs."
34
+ }),
35
+ provider: Schema.optionalKey(Schema.String).annotate({
36
+ description: "Provider ID or name to filter by. Try your own provider first."
37
+ }),
38
+ all: Schema.optionalKey(Schema.Boolean).annotate({
39
+ description: "Include older versions of each model family. By default only the newest version is listed."
40
+ }),
41
+ limit: Schema.optionalKey(Schema.Int.check(Schema.isBetween({ minimum: 1, maximum: 100 }))).annotate({
42
+ description: "Maximum number of models to return. Defaults to 20."
43
+ }),
44
+ offset: Schema.optionalKey(Schema.Int.check(Schema.isGreaterThanOrEqualTo(0))).annotate({
45
+ description: "Number of models to skip, for paging through results."
46
+ })
47
+ });
48
+ var ModelEntry = Schema.Struct({
49
+ id: Schema.String.annotate({ description: "providerID/modelID" }),
50
+ name: Schema.String,
51
+ released: Model.Info.fields.time.fields.released.annotate({
52
+ description: "Release date as a Unix timestamp in milliseconds, or 0 when unknown."
53
+ }),
54
+ variants: Schema.Array(Model.VariantID),
55
+ cost: Model.Info.fields.cost.annotate({ description: "Pricing in USD per million tokens." }),
56
+ status: Model.Info.fields.status
57
+ });
58
+ var ModelsOutput = Schema.Struct({
59
+ providers: Schema.Array(Schema.Struct({
60
+ id: Schema.String,
61
+ name: Schema.String,
62
+ models: Schema.Array(ModelEntry).annotate({ description: "Newest first." })
63
+ })).annotate({ description: "Matching models grouped by provider. Your own provider comes first." }),
64
+ total: Schema.Int.annotate({ description: "Number of matching models across all pages." }),
65
+ next: Schema.NullOr(Schema.Int).annotate({ description: "Offset of the next page, or null on the last page." })
66
+ });
67
+ var Plugin29 = {
68
+ id: "opencode.tools",
69
+ effect: Effect.fn("OpenCodeTools.Plugin")(function* (ctx) {
70
+ const hook = (event) => Effect.sync(() => {
71
+ event.system.push(SystemPart.make("When you create a worktree outside the current working directory and intend to use it as your primary working directory, consider using `execute` to call `tools.opencode.session_move` and make the worktree the session's working directory."));
72
+ });
73
+ yield* ctx.session.hook("context", hook);
74
+ yield* ctx.session.hook("compaction", hook);
75
+ yield* ctx.session.hook("generate", hook);
76
+ yield* ctx.tool.transform((draft) => {
77
+ draft.namespace({
78
+ name: "opencode",
79
+ description: "Tools for managing OpenCode itself, such as working with sessions and searching the available models."
80
+ });
81
+ draft.add({
82
+ name: "session_rename",
83
+ description: "Rename a session, or omit sessionID to rename the current session. Use a short, specific title that summarizes the work being done.",
84
+ input: RenameInput2,
85
+ output: RenameOutput,
86
+ options: { namespace: "opencode", codemode: true },
87
+ execute: (input, context) => {
88
+ const sessionID = input.sessionID ?? context.sessionID;
89
+ const title = input.title.trim();
90
+ if (!title)
91
+ return Effect.fail(new ToolFailure({ message: "Session title must not be empty" }));
92
+ return ctx.session.update({ sessionID, title }).pipe(Effect.as({
93
+ output: { sessionID, title },
94
+ content: `Renamed session ${sessionID} to ${title}.`
95
+ }), Effect.mapError((error) => new ToolFailure({ message: `Unable to rename session ${sessionID}`, error })));
96
+ }
97
+ });
98
+ draft.add({
99
+ name: "session_move",
100
+ description: "Move a session to another directory, or omit sessionID to move the current session. The current session moves at the next safe boundary; do not run destination-dependent tools in the same execute call.",
101
+ input: MoveInput2,
102
+ output: MoveOutput,
103
+ options: { namespace: "opencode", codemode: true, pinned: true },
104
+ execute: (input, context) => Effect.gen(function* () {
105
+ const sessionID = input.sessionID ?? context.sessionID;
106
+ yield* ctx.session.move({
107
+ sessionID,
108
+ directory: input.directory,
109
+ delivery: "steer"
110
+ });
111
+ return {
112
+ output: { sessionID, directory: input.directory },
113
+ content: `Moved session ${sessionID} to ${input.directory}.`
114
+ };
115
+ }).pipe(Effect.mapError((error) => new ToolFailure({ message: `Unable to move session to ${input.directory}`, error })))
116
+ });
117
+ draft.add({
118
+ name: "models",
119
+ description: "Search the models available to use. Use this to turn a model name the user mentions into an exact reference before running a subagent on it. Check your own provider first.",
120
+ input: ModelsInput2,
121
+ output: ModelsOutput,
122
+ options: { namespace: "opencode", codemode: true },
123
+ execute: (input, context) => Effect.gen(function* () {
124
+ const offset = input.offset ?? 0;
125
+ const limit = input.limit ?? 20;
126
+ const own = (yield* ctx.session.get({ sessionID: context.sessionID })).model?.providerID;
127
+ const terms = input.query?.toLowerCase().split(/\s+/).filter(Boolean) ?? [];
128
+ const names = new Map((yield* ctx.provider.list()).data.map((provider) => [provider.id, provider.name]));
129
+ const provider = input.provider?.toLowerCase();
130
+ const matching = (yield* ctx.model.list()).data.filter((model) => provider === undefined || model.providerID.toLowerCase() === provider || names.get(model.providerID)?.toLowerCase() === provider).filter((model) => {
131
+ const text = `${model.providerID}/${model.id} ${model.name}`.toLowerCase();
132
+ return terms.every((term) => text.includes(term));
133
+ }).toSorted((left, right) => Number(right.providerID === own) - Number(left.providerID === own) || left.providerID.localeCompare(right.providerID) || right.time.released - left.time.released).filter((model, index, sorted) => {
134
+ if (input.all || model.family === undefined)
135
+ return true;
136
+ return sorted.findIndex((other) => other.providerID === model.providerID && other.family === model.family) === index;
137
+ });
138
+ const page = matching.slice(offset, offset + limit);
139
+ const providers = Array.from(new Set(page.map((model) => model.providerID))).map((id) => ({
140
+ id,
141
+ name: names.get(id) ?? id,
142
+ models: page.filter((model) => model.providerID === id).map((model) => ({
143
+ id: `${model.providerID}/${model.id}`,
144
+ name: model.name,
145
+ released: model.time.released,
146
+ variants: model.variants.map((variant) => variant.id),
147
+ cost: model.cost,
148
+ status: model.status
149
+ }))
150
+ }));
151
+ return {
152
+ output: {
153
+ providers,
154
+ total: matching.length,
155
+ next: offset + limit < matching.length ? offset + limit : null
156
+ }
157
+ };
158
+ }).pipe(Effect.mapError((error) => new ToolFailure({ message: "Unable to list models", error })))
159
+ });
160
+ }).pipe(Effect.orDie);
161
+ })
162
+ };
163
+
164
+ export { RenameInput2, MoveInput2, ModelsInput2, Plugin29, exports_opencode };
@@ -4,26 +4,26 @@ import {
4
4
  Failed2
5
5
  } from "./aisdk-native-2a5m3afh.js";
6
6
  import {
7
- Service77
8
- } from "./aisdk-native-skjgnpnj.js";
7
+ Service75
8
+ } from "./aisdk-native-wk3ypdaq.js";
9
9
  import {
10
- Service59
11
- } from "./aisdk-native-b3w3f3fm.js";
10
+ Service42
11
+ } from "./aisdk-native-h7c2rqcj.js";
12
12
  import {
13
- Service27
14
- } from "./aisdk-native-q65r789c.js";
13
+ Service43
14
+ } from "./aisdk-native-pbcspj05.js";
15
15
  import {
16
- Service20,
16
+ Service13,
17
17
  readText2,
18
18
  syncTextBom2
19
- } from "./aisdk-native-n08t6ze5.js";
19
+ } from "./aisdk-native-wzys0hxm.js";
20
20
  import {
21
- Service64
22
- } from "./aisdk-native-16hwt5r8.js";
21
+ Service71
22
+ } from "./aisdk-native-g4bm5adv.js";
23
23
  import {
24
- Service21,
24
+ Service70,
25
25
  resolvePath2
26
- } from "./aisdk-native-9abfm80s.js";
26
+ } from "./aisdk-native-p1p0zqxa.js";
27
27
  import {
28
28
  fileDiff2
29
29
  } from "./aisdk-native-6prwharc.js";
@@ -36,11 +36,11 @@ var exports_patch = {};
36
36
  __export(exports_patch, {
37
37
  Applied: () => Applied2,
38
38
  Input: () => Input7,
39
- Output: () => Output6,
39
+ Output: () => Output5,
40
40
  PatchTool: () => exports_patch,
41
- Plugin: () => Plugin22,
41
+ Plugin: () => Plugin25,
42
42
  name: () => name7,
43
- toModelContent: () => toModelContent5
43
+ toModelContent: () => toModelContent4
44
44
  });
45
45
  import { ToolFailure } from "@opencode/ai";
46
46
  import { FileDiff } from "@opencode/schema/file-diff";
@@ -96,30 +96,30 @@ var Applied2 = Schema.Struct({
96
96
  resource: Schema.String,
97
97
  target: Schema.String
98
98
  });
99
- var Output6 = Schema.Struct({
99
+ var Output5 = Schema.Struct({
100
100
  applied: Schema.Array(Applied2),
101
101
  files: Schema.Array(FileDiff.Info)
102
102
  });
103
- var toModelContent5 = (output) => [
103
+ var toModelContent4 = (output) => [
104
104
  "Success. Updated the following files:",
105
105
  ...output.applied.map((item) => `${item.type === "add" ? "A" : item.type === "delete" ? "D" : "M"} ${item.resource}`)
106
106
  ].join(`
107
107
  `);
108
- var Plugin22 = {
108
+ var Plugin25 = {
109
109
  id: "opencode.tool.patch",
110
110
  effect: Effect.fn("PatchTool.Plugin")(function* (ctx) {
111
- const environment = yield* Service59;
112
- const access = yield* Service21;
113
- const fileMutation = yield* Service20;
114
- const formatter = yield* Service27;
115
- const location = yield* Service77;
116
- const permission = yield* Service64;
111
+ const environment = yield* Service42;
112
+ const access = yield* Service70;
113
+ const fileMutation = yield* Service13;
114
+ const formatter = yield* Service43;
115
+ const location = yield* Service75;
116
+ const permission = yield* Service71;
117
117
  yield* ctx.tool.transform((editor) => editor.add({
118
118
  name: name7,
119
119
  options: { codemode: false, permission: "edit" },
120
120
  description: patch_default,
121
121
  input: Input7,
122
- output: Output6,
122
+ output: Output5,
123
123
  execute: (input, context) => {
124
124
  const applied = [];
125
125
  const parsed = Patch.parse(input.patchText);
@@ -266,7 +266,7 @@ var Plugin22 = {
266
266
  return { applied, files };
267
267
  }).pipe(fileMutation.withLock(lockTargets), Effect.map((output) => ({
268
268
  output,
269
- content: toModelContent5(output),
269
+ content: toModelContent4(output),
270
270
  metadata: { files: output.files }
271
271
  })), Effect.mapError((error) => error instanceof ToolFailure ? error : new ToolFailure({ message: "Unable to apply patch", error })));
272
272
  }
@@ -326,4 +326,4 @@ function trimDiff(diff) {
326
326
  `);
327
327
  }
328
328
 
329
- export { name7, Input7, Applied2, Output6, toModelContent5, Plugin22, exports_patch };
329
+ export { name7, Input7, Applied2, Output5, toModelContent4, Plugin25, exports_patch };
@@ -1,10 +1,10 @@
1
1
  import {
2
2
  latest2,
3
- Service56
4
- } from "./aisdk-native-1s1yk029.js";
3
+ Service54
4
+ } from "./aisdk-native-ry6xxh2r.js";
5
5
  import {
6
- Service63
7
- } from "./aisdk-native-b5j16w9d.js";
6
+ Service57
7
+ } from "./aisdk-native-1ch5qaya.js";
8
8
  import {
9
9
  observe2
10
10
  } from "./aisdk-native-qsdy395h.js";
@@ -16,15 +16,15 @@ import {
16
16
  var exports_tool_output = {};
17
17
  __export(exports_tool_output, {
18
18
  ConfigToolOutputPlugin: () => exports_tool_output,
19
- Plugin: () => Plugin41
19
+ Plugin: () => Plugin10
20
20
  });
21
21
  import { define } from "@opencode/plugin/effect/plugin";
22
22
  import { Effect } from "effect";
23
- var Plugin41 = define({
23
+ var Plugin10 = define({
24
24
  id: "opencode.config.tool-output",
25
25
  effect: Effect.fn(function* (ctx) {
26
- const config = yield* Service56;
27
- const output = yield* Service63;
26
+ const config = yield* Service54;
27
+ const output = yield* Service57;
28
28
  const loaded = yield* observe2(config, ctx.event, output.reload());
29
29
  yield* output.transform((editor) => {
30
30
  const configured = latest2(loaded.entries, "tool_output");
@@ -38,4 +38,4 @@ var Plugin41 = define({
38
38
  })
39
39
  });
40
40
 
41
- export { Plugin41, exports_tool_output };
41
+ export { Plugin10, exports_tool_output };
@@ -8,17 +8,17 @@ __export(exports_app, {
8
8
  App: () => exports_app,
9
9
  Metadata: () => Metadata2,
10
10
  configured: () => configured11,
11
- layer: () => layer23,
12
- make: () => make21,
13
- node: () => node72,
11
+ layer: () => layer24,
12
+ make: () => make20,
13
+ node: () => node66,
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: () => make21()
19
+ defaultValue: () => make20()
20
20
  });
21
- function make21(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 make21(input = {}) {
28
28
  function useragent2(app) {
29
29
  return `opencode/${app.channel}/${app.version}/${app.name}`;
30
30
  }
31
- var layer23 = (input) => Layer.succeed(Metadata2, make21(input));
32
- var configured11 = (input) => makeGlobalNode({ service: Metadata2, layer: layer23(input), deps: [] });
33
- var node72 = configured11();
31
+ var layer24 = (input) => Layer.succeed(Metadata2, make20(input));
32
+ var configured11 = (input) => makeGlobalNode({ service: Metadata2, layer: layer24(input), deps: [] });
33
+ var node66 = configured11();
34
34
 
35
- export { Metadata2, make21, useragent2, layer23, configured11, node72, exports_app };
35
+ export { Metadata2, make20, useragent2, layer24, configured11, node66, exports_app };
@@ -1,7 +1,7 @@
1
1
  import {
2
- Service77,
3
- node81
4
- } from "./aisdk-native-skjgnpnj.js";
2
+ Service75,
3
+ node79
4
+ } from "./aisdk-native-wk3ypdaq.js";
5
5
  import {
6
6
  create3
7
7
  } from "./aisdk-native-rdw6cm16.js";
@@ -13,18 +13,18 @@ import {
13
13
  var exports_formatter2 = {};
14
14
  __export(exports_formatter2, {
15
15
  Formatter: () => exports_formatter2,
16
- Service: () => Service27,
17
- node: () => node30
16
+ Service: () => Service43,
17
+ node: () => node46
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 Service27 extends Context.Service()("@opencode/v2/Formatter") {
24
+ class Service43 extends Context.Service()("@opencode/v2/Formatter") {
25
25
  }
26
- var layer = Layer.effect(Service27, Effect.gen(function* () {
27
- const location = yield* Service77;
26
+ var layer = Layer.effect(Service43, Effect.gen(function* () {
27
+ const location = yield* Service75;
28
28
  const processes = yield* AppProcess.Service;
29
29
  const commands = new WeakMap;
30
30
  const state = create3({
@@ -85,12 +85,12 @@ var layer = Layer.effect(Service27, Effect.gen(function* () {
85
85
  }
86
86
  return false;
87
87
  });
88
- return Service27.of({ transform: state.transform, reload: state.reload, file });
88
+ return Service43.of({ transform: state.transform, reload: state.reload, file });
89
89
  }));
90
- var node30 = makeLocationNode({
91
- service: Service27,
90
+ var node46 = makeLocationNode({
91
+ service: Service43,
92
92
  layer,
93
- deps: [node81, AppProcess.node]
93
+ deps: [node79, AppProcess.node]
94
94
  });
95
95
 
96
- export { Service27, node30, exports_formatter2 };
96
+ export { Service43, node46, exports_formatter2 };
@@ -4,7 +4,7 @@ import {
4
4
  } from "./aisdk-native-emrn6kk6.js";
5
5
  import {
6
6
  SQLiteEffectDatabase2
7
- } from "./aisdk-native-hev6f6cv.js";
7
+ } from "./aisdk-native-ssh52gjb.js";
8
8
 
9
9
  // src/database/drizzle/sqlite-core/effect/session.ts
10
10
  import * as Cause from "effect/Cause";
@@ -2,15 +2,15 @@ import {
2
2
  PATCH_CONTEXT_LINES2
3
3
  } from "./aisdk-native-tazgh4e4.js";
4
4
  import {
5
- ID11,
6
- Service69
7
- } from "./aisdk-native-qj07q2eg.js";
5
+ ID4,
6
+ Service31
7
+ } from "./aisdk-native-0wbaq0z2.js";
8
8
  import {
9
9
  SessionSchema2
10
- } from "./aisdk-native-skyymkrr.js";
10
+ } from "./aisdk-native-q3t37ft6.js";
11
11
  import {
12
12
  MessageNotFoundError2
13
- } from "./aisdk-native-3zgzsr0q.js";
13
+ } from "./aisdk-native-3ktbe3hf.js";
14
14
  import {
15
15
  SessionMessageTable2
16
16
  } from "./aisdk-native-a1bz86dw.js";
@@ -81,14 +81,14 @@ var turn2 = Effect.fn("SessionDiff.turn")(function* (db, locations, input) {
81
81
  const location = before ? decodeLocation(before) : after ? decodeLocation(after) : input.session.location;
82
82
  const recorded = steps.findLast((step) => step.end)?.end;
83
83
  return yield* Effect.gen(function* () {
84
- const snapshot = yield* Service69;
84
+ const snapshot = yield* Service31;
85
85
  const running = input.active && final.completed === null;
86
86
  const to = running ? (yield* snapshot.capture()) ?? recorded : recorded;
87
87
  if (!to)
88
88
  return [];
89
89
  return yield* snapshot.diff({
90
- from: ID11.make(from),
91
- to: ID11.make(to),
90
+ from: ID4.make(from),
91
+ to: ID4.make(to),
92
92
  context: input.context ?? PATCH_CONTEXT_LINES2
93
93
  });
94
94
  }).pipe(Effect.provide(locations.get(location)));