@opencode/core 0.0.0-dev-19593 → 0.0.0-dev-19594

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 (454) hide show
  1. package/dist/agent.js +67 -67
  2. package/dist/aisdk.js +5 -5
  3. package/dist/app.js +7 -7
  4. package/dist/bus.js +57 -57
  5. package/dist/catalog.js +65 -65
  6. package/dist/chunks/{mime-gnwbrhke.js → mime-0q847seh.js} +9 -9
  7. package/dist/chunks/{mime-rk0rec3h.js → mime-0qxam8dj.js} +5 -5
  8. package/dist/chunks/{mime-c8v5kc65.js → mime-0rh963zz.js} +16 -16
  9. package/dist/chunks/{mime-60n7bf9e.js → mime-0rn7bd2y.js} +1 -1
  10. package/dist/chunks/{mime-f14wgmqf.js → mime-133n9d2d.js} +6 -6
  11. package/dist/chunks/{mime-j1ydts1m.js → mime-13a7a1wx.js} +27 -27
  12. package/dist/chunks/{mime-522twr50.js → mime-1cbk4m95.js} +14 -14
  13. package/dist/chunks/{mime-8gz95mnd.js → mime-1eaf0dqh.js} +6 -6
  14. package/dist/chunks/{mime-rr42dmak.js → mime-1p086jrz.js} +10 -10
  15. package/dist/chunks/{mime-qwnx8exk.js → mime-1qy9swdm.js} +13 -13
  16. package/dist/chunks/{mime-5r3v2435.js → mime-1vh2jpye.js} +25 -25
  17. package/dist/chunks/{mime-sge7677j.js → mime-2cv161v0.js} +20 -20
  18. package/dist/chunks/{mime-x9yfajt1.js → mime-2fz3ddp8.js} +15 -15
  19. package/dist/chunks/{mime-9v7b1t0y.js → mime-2ge8dzt3.js} +19 -19
  20. package/dist/chunks/{mime-3v1f2d9y.js → mime-2gwea9g5.js} +16 -16
  21. package/dist/chunks/{mime-pkm3pkx5.js → mime-2ht41vc1.js} +8 -8
  22. package/dist/chunks/{mime-1rr79kmz.js → mime-2nm7ty4g.js} +8 -8
  23. package/dist/chunks/{mime-h7xbcxh5.js → mime-2p6q1z9q.js} +7 -7
  24. package/dist/chunks/{mime-ddt2bs9e.js → mime-2vs2nh1n.js} +3 -3
  25. package/dist/chunks/{mime-7k089n9a.js → mime-2wyn68kt.js} +88 -88
  26. package/dist/chunks/{mime-zmyxeed4.js → mime-2x58g7fm.js} +36 -36
  27. package/dist/chunks/{mime-wrqsgs34.js → mime-35vdht0v.js} +1 -1
  28. package/dist/chunks/{mime-6ph579g1.js → mime-3bxse654.js} +9 -9
  29. package/dist/chunks/{mime-s3w38y65.js → mime-3djbw1yw.js} +18 -18
  30. package/dist/chunks/{mime-yq15jsfs.js → mime-3gjcsfkp.js} +23 -23
  31. package/dist/chunks/{mime-0dd32wke.js → mime-3zygn6db.js} +18 -18
  32. package/dist/chunks/{mime-pzy0y0v9.js → mime-420zfhbw.js} +9 -9
  33. package/dist/chunks/{mime-ypdxe0g3.js → mime-444p8hwk.js} +4 -4
  34. package/dist/chunks/{mime-8jqmzt62.js → mime-4780s8zr.js} +7 -7
  35. package/dist/chunks/{mime-25c3bv42.js → mime-4xgk073c.js} +30 -30
  36. package/dist/chunks/{mime-d942djzc.js → mime-50spkatp.js} +1 -1
  37. package/dist/chunks/{mime-xzzqdqzt.js → mime-52xa8h0k.js} +15 -15
  38. package/dist/chunks/{mime-fcj6b5ej.js → mime-59c8rz3w.js} +17 -17
  39. package/dist/chunks/{mime-g9wvjw5e.js → mime-5cbe66kg.js} +15 -15
  40. package/dist/chunks/{mime-tqkrwgse.js → mime-5frpvc34.js} +1 -1
  41. package/dist/chunks/{mime-6ecentyg.js → mime-5r46t150.js} +6 -6
  42. package/dist/chunks/{mime-9adpk5qf.js → mime-5w49rw7h.js} +16 -16
  43. package/dist/chunks/{mime-428y0mtg.js → mime-5y1dhwgz.js} +9 -9
  44. package/dist/chunks/{mime-7n2xhmm7.js → mime-5yeq06a0.js} +8 -8
  45. package/dist/chunks/{mime-yhnrb9df.js → mime-64mdbckw.js} +19 -19
  46. package/dist/chunks/{mime-71pc8m80.js → mime-6heswp50.js} +7 -7
  47. package/dist/chunks/{mime-7x9wdesj.js → mime-6pg9yxyn.js} +25 -25
  48. package/dist/chunks/{mime-rk95q894.js → mime-6sm2335y.js} +8 -8
  49. package/dist/chunks/{mime-2z24jnne.js → mime-6stpc6jq.js} +39 -39
  50. package/dist/chunks/{mime-jt9z208x.js → mime-704h20fa.js} +11 -11
  51. package/dist/chunks/{mime-zdzzr9rq.js → mime-73zec2db.js} +11 -11
  52. package/dist/chunks/{mime-n7w7dj2n.js → mime-79j0w79y.js} +18 -18
  53. package/dist/chunks/{mime-z2st3mnt.js → mime-7dt64zzx.js} +29 -29
  54. package/dist/chunks/{mime-n9gzpzcc.js → mime-7fejhyaj.js} +31 -31
  55. package/dist/chunks/{mime-1fqx7y25.js → mime-7fkzzjzh.js} +16 -16
  56. package/dist/chunks/{mime-793krves.js → mime-7jryds9y.js} +7 -7
  57. package/dist/chunks/{mime-dhwr7h25.js → mime-818pfwc9.js} +9 -9
  58. package/dist/chunks/{mime-zcqf6png.js → mime-81rrwt6s.js} +5 -5
  59. package/dist/chunks/{mime-tpw6cwsb.js → mime-844ef7ks.js} +7 -7
  60. package/dist/chunks/{mime-nk4x76k7.js → mime-870jgjkc.js} +28 -28
  61. package/dist/chunks/{mime-m0e07c1q.js → mime-8bnrj9ah.js} +7 -7
  62. package/dist/chunks/{mime-p1rhzz4x.js → mime-8na3ps9f.js} +14 -14
  63. package/dist/chunks/{mime-7dn07k07.js → mime-8pcfc58d.js} +30 -30
  64. package/dist/chunks/{mime-nvxqht09.js → mime-8q7cq0y1.js} +2 -2
  65. package/dist/chunks/{mime-hfk58y1y.js → mime-8qh7f6m5.js} +25 -25
  66. package/dist/chunks/{mime-kpj3v0jx.js → mime-8x7bs8k4.js} +7 -7
  67. package/dist/chunks/{mime-wce6r091.js → mime-9eafbtjx.js} +3 -3
  68. package/dist/chunks/{mime-sae7gfvb.js → mime-9fk0tq8j.js} +9 -9
  69. package/dist/chunks/{mime-a14tmfw2.js → mime-9h8p7dc2.js} +22 -22
  70. package/dist/chunks/{mime-mk0f86h1.js → mime-a6wxbqrd.js} +18 -18
  71. package/dist/chunks/{mime-vknx877p.js → mime-adtd93wp.js} +24 -24
  72. package/dist/chunks/{mime-1nq040z3.js → mime-ahxwejs5.js} +3 -3
  73. package/dist/chunks/{mime-exmx9z86.js → mime-anxsz8s7.js} +12 -12
  74. package/dist/chunks/{mime-6tjahags.js → mime-axyhzpge.js} +19 -19
  75. package/dist/chunks/{mime-d8d1pk1w.js → mime-b0dn0kc2.js} +20 -20
  76. package/dist/chunks/{mime-k3a2w7sd.js → mime-b11403r6.js} +1 -1
  77. package/dist/chunks/{mime-a9pbgtwm.js → mime-bbrkv54p.js} +20 -20
  78. package/dist/chunks/{mime-hnr5yq9h.js → mime-bgxcxs0p.js} +3 -3
  79. package/dist/chunks/mime-bhcmsjc5.js +26 -0
  80. package/dist/chunks/{mime-244ce5kg.js → mime-c3s2gn8c.js} +6 -6
  81. package/dist/chunks/{mime-18e56dsp.js → mime-c5gn303e.js} +3 -3
  82. package/dist/chunks/{mime-8zve7j1r.js → mime-cc31018j.js} +28 -28
  83. package/dist/chunks/{mime-hsyde07s.js → mime-cfpeewsf.js} +15 -15
  84. package/dist/chunks/{mime-vkxpz7g2.js → mime-cq37gk0t.js} +1 -1
  85. package/dist/chunks/{mime-sxr8e92x.js → mime-d2q9jptv.js} +38 -38
  86. package/dist/chunks/{mime-efemqsg6.js → mime-d6k63gab.js} +55 -55
  87. package/dist/chunks/{mime-wxg5n4nt.js → mime-dagq8swk.js} +85 -85
  88. package/dist/chunks/{mime-yxmrz8pz.js → mime-dec7wy2e.js} +34 -34
  89. package/dist/chunks/{mime-7n7hfnea.js → mime-dvfrh357.js} +2 -2
  90. package/dist/chunks/{mime-3e6fhmkh.js → mime-e07961mt.js} +16 -16
  91. package/dist/chunks/{mime-7mawc3w3.js → mime-e6prdszb.js} +30 -30
  92. package/dist/chunks/{mime-7mny09t0.js → mime-eatzh2k7.js} +10 -10
  93. package/dist/chunks/{mime-pdxxk7hn.js → mime-edtxp2z3.js} +1 -1
  94. package/dist/chunks/{mime-t2p9dx1c.js → mime-eq6c3fte.js} +3 -3
  95. package/dist/chunks/{mime-wwxdkha1.js → mime-eqde16p0.js} +14 -14
  96. package/dist/chunks/{mime-was7srj9.js → mime-et0rkxxj.js} +6 -6
  97. package/dist/chunks/{mime-3xfqjwf0.js → mime-f0r94znb.js} +6 -6
  98. package/dist/chunks/{mime-ndqxs5js.js → mime-f160myny.js} +2 -2
  99. package/dist/chunks/{mime-mzs7jtbe.js → mime-f565jxke.js} +20 -20
  100. package/dist/chunks/{mime-r0e9nadw.js → mime-f640cp8s.js} +4 -4
  101. package/dist/chunks/{mime-19dhad8j.js → mime-fr161fk4.js} +1 -1
  102. package/dist/chunks/{mime-6yr30ss5.js → mime-fvhxsqzp.js} +8 -8
  103. package/dist/chunks/{mime-6e67y2h6.js → mime-fvx6fngr.js} +15 -15
  104. package/dist/chunks/{mime-vsp1fds9.js → mime-g190xswt.js} +20 -20
  105. package/dist/chunks/{mime-mv4qg2g8.js → mime-g2v8q978.js} +64 -64
  106. package/dist/chunks/{mime-89fvnp0w.js → mime-g3vtg5jq.js} +11 -11
  107. package/dist/chunks/{mime-0jez15af.js → mime-g95881nk.js} +4 -4
  108. package/dist/chunks/{mime-p2ab4s2r.js → mime-gb2e7tdd.js} +3 -3
  109. package/dist/chunks/{mime-k5ysc9y0.js → mime-gcb8mzse.js} +49 -49
  110. package/dist/chunks/{mime-ycn09wbg.js → mime-gsy31vka.js} +6 -6
  111. package/dist/chunks/{mime-2bg24y81.js → mime-gv2jqw69.js} +12 -12
  112. package/dist/chunks/{mime-th5km1p3.js → mime-gv6a8nnw.js} +3 -3
  113. package/dist/chunks/{mime-gg6k7kh9.js → mime-h4xx3q8r.js} +42 -42
  114. package/dist/chunks/{mime-2swfdtqq.js → mime-h752p31j.js} +10 -10
  115. package/dist/chunks/{mime-ex7fppdg.js → mime-hbbajkb6.js} +38 -38
  116. package/dist/chunks/{mime-y598pph1.js → mime-hcv4nqeb.js} +7 -7
  117. package/dist/chunks/{mime-mkyvxn7c.js → mime-hr15y0yn.js} +2 -2
  118. package/dist/chunks/{mime-p8vshhkt.js → mime-hs2a3b3x.js} +7 -7
  119. package/dist/chunks/{mime-84f9n64y.js → mime-hssj4d10.js} +30 -30
  120. package/dist/chunks/{mime-6f9xqzex.js → mime-hwfrndnj.js} +12 -12
  121. package/dist/chunks/{mime-gqz15p6p.js → mime-j3y0vmp2.js} +13 -13
  122. package/dist/chunks/{mime-9jn58xvx.js → mime-jgs57335.js} +26 -26
  123. package/dist/chunks/{mime-n0t0kfwn.js → mime-jyzy5bh9.js} +26 -26
  124. package/dist/chunks/{mime-xyf1yhas.js → mime-k30yspdv.js} +8 -8
  125. package/dist/chunks/{mime-tp988bqa.js → mime-ke3mc4hq.js} +10 -10
  126. package/dist/chunks/{mime-mc7r38pz.js → mime-kn0whz0h.js} +19 -19
  127. package/dist/chunks/{mime-xf8yqmad.js → mime-kpvyk30t.js} +8 -8
  128. package/dist/chunks/{mime-599ntear.js → mime-kpzqjmdf.js} +9 -9
  129. package/dist/chunks/{mime-g6jvm51t.js → mime-ky1z1t7f.js} +17 -17
  130. package/dist/chunks/{mime-rbtn8dzz.js → mime-m1mf6fzk.js} +33 -33
  131. package/dist/chunks/{mime-7wj5bpvf.js → mime-m6mq2hjy.js} +1 -1
  132. package/dist/chunks/{mime-jjs74g98.js → mime-m86bnw2c.js} +7 -7
  133. package/dist/chunks/{mime-syx98vxf.js → mime-mdwr1hje.js} +5 -5
  134. package/dist/chunks/{mime-mgfyp3pg.js → mime-mez6c9p4.js} +12 -12
  135. package/dist/chunks/{mime-csf2jhsg.js → mime-mfhfdr54.js} +3 -3
  136. package/dist/chunks/{mime-rjasbbd6.js → mime-mx7czsbd.js} +23 -23
  137. package/dist/chunks/{mime-sat34sqy.js → mime-njct8jvz.js} +7 -7
  138. package/dist/chunks/{mime-thfnv5gc.js → mime-njhyngta.js} +1 -1
  139. package/dist/chunks/{mime-hwyw3hyr.js → mime-pa86c6bb.js} +4 -4
  140. package/dist/chunks/{mime-j935v87r.js → mime-paphc93g.js} +2 -2
  141. package/dist/chunks/{mime-vp7npndj.js → mime-pdcjakb6.js} +44 -44
  142. package/dist/chunks/{mime-qg6c32m5.js → mime-pfm8588r.js} +9 -9
  143. package/dist/chunks/{mime-43fjnve3.js → mime-ppg8cm88.js} +142 -142
  144. package/dist/chunks/{mime-mq0v60k6.js → mime-prkz2p0b.js} +8 -8
  145. package/dist/chunks/{mime-mhxmw1gn.js → mime-pt4bgws9.js} +13 -13
  146. package/dist/chunks/{mime-qkma89m6.js → mime-pt5fe4wm.js} +12 -12
  147. package/dist/chunks/{mime-a7ymv1f3.js → mime-q5r46mjj.js} +19 -19
  148. package/dist/chunks/{mime-9fk3d21e.js → mime-qbx47xy2.js} +6 -6
  149. package/dist/chunks/{mime-58426wyj.js → mime-qc2jvtz9.js} +13 -13
  150. package/dist/chunks/{mime-aq5y8b9e.js → mime-qd153e6s.js} +7 -7
  151. package/dist/chunks/{mime-4x2wqn1j.js → mime-qharf8gs.js} +18 -18
  152. package/dist/chunks/{mime-cjwramev.js → mime-qk0gpxf2.js} +5 -5
  153. package/dist/chunks/{mime-zp6fq2c5.js → mime-qkdjfw93.js} +12 -12
  154. package/dist/chunks/{mime-az6rvz1x.js → mime-qmd9v6g9.js} +23 -23
  155. package/dist/chunks/{mime-mvfsc1pv.js → mime-r5x6zcsm.js} +2 -2
  156. package/dist/chunks/{mime-z1jvgbj7.js → mime-r65rh87v.js} +12 -12
  157. package/dist/chunks/{mime-6w1gr0yw.js → mime-r9asyhme.js} +13 -13
  158. package/dist/chunks/{mime-4m405q6x.js → mime-ra43e7fd.js} +31 -31
  159. package/dist/chunks/{mime-0gdmqesm.js → mime-rhjbct0v.js} +3 -3
  160. package/dist/chunks/{mime-0m2e9swf.js → mime-rm1v9tpv.js} +29 -29
  161. package/dist/chunks/{mime-cp31e4n6.js → mime-rqkpr08e.js} +50 -50
  162. package/dist/chunks/{mime-6xm8j45g.js → mime-rr835zjc.js} +13 -13
  163. package/dist/chunks/{mime-z7haez8t.js → mime-s140sdf9.js} +7 -7
  164. package/dist/chunks/{mime-rw5ambcd.js → mime-sd8yy5r9.js} +9 -9
  165. package/dist/chunks/{mime-60w3gzyt.js → mime-seam05pa.js} +10 -10
  166. package/dist/chunks/{mime-y87sds1v.js → mime-skgd961f.js} +34 -34
  167. package/dist/chunks/{mime-apaaqhj0.js → mime-sm7k231e.js} +10 -10
  168. package/dist/chunks/{mime-806j49yq.js → mime-sxz6gkc3.js} +6 -6
  169. package/dist/chunks/{mime-29zjypxj.js → mime-sy5x3wzp.js} +20 -20
  170. package/dist/chunks/{mime-3w0fmcng.js → mime-t0fxg8b9.js} +3 -3
  171. package/dist/chunks/{mime-94np39z2.js → mime-t0x5rdq8.js} +7 -7
  172. package/dist/chunks/{mime-9s1hrf4j.js → mime-t2qnazqa.js} +24 -24
  173. package/dist/chunks/{mime-y5hshd3q.js → mime-t92h3xfh.js} +25 -25
  174. package/dist/chunks/{mime-3j8sdtpz.js → mime-t9zs3egg.js} +3 -3
  175. package/dist/chunks/{mime-89znhe33.js → mime-tcezcvh9.js} +3 -3
  176. package/dist/chunks/{mime-a7fxnse5.js → mime-tdjcx4hx.js} +23 -23
  177. package/dist/chunks/{mime-ffxj81eb.js → mime-tfwtnexv.js} +9 -9
  178. package/dist/chunks/{mime-tyqa4rq3.js → mime-tpnhe26j.js} +9 -9
  179. package/dist/chunks/{mime-b9bv6qq3.js → mime-tqtqm0tk.js} +20 -20
  180. package/dist/chunks/{mime-1h8wvx6q.js → mime-tr59z4r6.js} +16 -16
  181. package/dist/chunks/{mime-rw09cprj.js → mime-tst7fck9.js} +6 -6
  182. package/dist/chunks/{mime-qxad6akg.js → mime-tt0d903s.js} +31 -31
  183. package/dist/chunks/{mime-p11mj9nc.js → mime-txhedez9.js} +25 -25
  184. package/dist/chunks/{mime-yad4qhb5.js → mime-v2rhk2e4.js} +17 -17
  185. package/dist/chunks/{mime-n4aaschn.js → mime-v4xb0e1g.js} +6 -6
  186. package/dist/chunks/{mime-8nk5pr3x.js → mime-vc4e6k4r.js} +3 -3
  187. package/dist/chunks/{mime-8j0zrhvt.js → mime-vv47xjan.js} +17 -17
  188. package/dist/chunks/{mime-pva5nxfr.js → mime-w3zbj2ne.js} +42 -42
  189. package/dist/chunks/{mime-efv4s0g0.js → mime-w4arg62q.js} +3 -3
  190. package/dist/chunks/{mime-t9kjr4z5.js → mime-wa22fvar.js} +14 -14
  191. package/dist/chunks/{mime-en53wcfr.js → mime-wjf2ryf5.js} +15 -15
  192. package/dist/chunks/{mime-3ey5ve5m.js → mime-wwgj97ya.js} +14 -14
  193. package/dist/chunks/{mime-jy2v93y2.js → mime-wyd5qy3e.js} +12 -12
  194. package/dist/chunks/{mime-1k3djte8.js → mime-wzv25m25.js} +9 -9
  195. package/dist/chunks/mime-x0mt5qzb.js +247 -0
  196. package/dist/chunks/{mime-0pt4f7ej.js → mime-xj7p06cz.js} +9 -9
  197. package/dist/chunks/{mime-9t6fn9sm.js → mime-xkanz2ea.js} +7 -7
  198. package/dist/chunks/{mime-aqtq9wzx.js → mime-xmvk2ac6.js} +5 -5
  199. package/dist/chunks/{mime-vgx6weyf.js → mime-xn5rvdk3.js} +7 -7
  200. package/dist/chunks/{mime-47jk2x7b.js → mime-xtdnnkz9.js} +21 -21
  201. package/dist/chunks/{mime-rpw1jzq2.js → mime-y1x7r325.js} +30 -30
  202. package/dist/chunks/{mime-dpkg50ah.js → mime-y71avatq.js} +3 -3
  203. package/dist/chunks/{mime-3nv94yae.js → mime-ye34jjbw.js} +20 -20
  204. package/dist/chunks/{mime-f2n192rq.js → mime-yp2x3t23.js} +3 -3
  205. package/dist/chunks/{mime-s4enseaf.js → mime-yrznvahk.js} +1 -1
  206. package/dist/chunks/{mime-d2aac7k2.js → mime-yt0fqk68.js} +3 -3
  207. package/dist/chunks/{mime-mvtk1eek.js → mime-ywcdcbeh.js} +10 -10
  208. package/dist/chunks/{mime-8v4hj3yf.js → mime-z053jb5k.js} +17 -17
  209. package/dist/chunks/{mime-7136dx6n.js → mime-z16ek00m.js} +296 -296
  210. package/dist/chunks/{mime-sbwhh814.js → mime-z4y4a432.js} +14 -14
  211. package/dist/chunks/{mime-6mn0csek.js → mime-z5e4xs1g.js} +7 -7
  212. package/dist/chunks/{mime-29x78va6.js → mime-z63w68vq.js} +4 -4
  213. package/dist/chunks/{mime-08vesxpc.js → mime-zb37mv0v.js} +3 -3
  214. package/dist/chunks/{mime-7t2a4rxe.js → mime-zfyh5k5p.js} +30 -30
  215. package/dist/chunks/{mime-t0kymgeb.js → mime-zjw2f83e.js} +58 -58
  216. package/dist/chunks/{mime-7kppz51p.js → mime-zqbh65n6.js} +22 -22
  217. package/dist/chunks/{mime-233vw3g8.js → mime-zyyezbff.js} +11 -11
  218. package/dist/chunks/{mime-msr7tfg3.js → mime-zyyy8fjh.js} +10 -10
  219. package/dist/codemode/instructions.js +4 -4
  220. package/dist/command.js +69 -69
  221. package/dist/config/discovery.js +62 -62
  222. package/dist/config/normalize.js +14 -14
  223. package/dist/config/plugin/agent.js +88 -88
  224. package/dist/config/plugin/command.js +172 -172
  225. package/dist/config/plugin/compaction.js +128 -128
  226. package/dist/config/plugin/compatibility.js +108 -108
  227. package/dist/config/plugin/formatter.js +91 -91
  228. package/dist/config/plugin/image.js +90 -90
  229. package/dist/config/plugin/instruction.js +67 -67
  230. package/dist/config/plugin/location-watcher.js +90 -90
  231. package/dist/config/plugin/mcp.js +96 -96
  232. package/dist/config/plugin/policy.js +89 -89
  233. package/dist/config/plugin/provider.js +88 -88
  234. package/dist/config/plugin/reference.js +92 -92
  235. package/dist/config/plugin/shell.js +92 -92
  236. package/dist/config/plugin/skill-file.js +76 -76
  237. package/dist/config/plugin/skill.js +111 -111
  238. package/dist/config/plugin/snapshot.js +90 -90
  239. package/dist/config/plugin/source.js +92 -92
  240. package/dist/config/plugin/tool-output.js +91 -91
  241. package/dist/config/plugin/websearch.js +90 -90
  242. package/dist/config/plugin/worktree.js +93 -93
  243. package/dist/config/variable.js +2 -2
  244. package/dist/config.js +93 -93
  245. package/dist/credential.js +65 -65
  246. package/dist/database/database.js +55 -55
  247. package/dist/database/drizzle/effect-sqlite/driver.js +10 -10
  248. package/dist/database/drizzle/effect-sqlite/index.js +6 -6
  249. package/dist/database/drizzle/effect-sqlite/session.js +7 -7
  250. package/dist/database/drizzle/index.js +11 -11
  251. package/dist/database/drizzle/sqlite-core/effect/db.js +5 -5
  252. package/dist/database/drizzle/sqlite-core/effect/index.js +2 -2
  253. package/dist/database/drizzle/sqlite-core/effect/session.js +6 -6
  254. package/dist/database/drizzle.js +11 -11
  255. package/dist/database/migration.gen.js +39 -39
  256. package/dist/database/migration.js +41 -41
  257. package/dist/database/v1-migration.bun.js +12 -12
  258. package/dist/effect/app-node-builder.js +224 -224
  259. package/dist/effect/keyed-mutex.js +3 -3
  260. package/dist/environment/environment.js +67 -67
  261. package/dist/environment/index.js +69 -69
  262. package/dist/event-logger.js +14 -14
  263. package/dist/file-access.js +79 -79
  264. package/dist/file-mutation.js +68 -68
  265. package/dist/filesystem/location-watcher-policy.js +5 -5
  266. package/dist/filesystem/location-watcher.js +184 -184
  267. package/dist/filesystem/protected.js +3 -3
  268. package/dist/filesystem/search.js +76 -76
  269. package/dist/filesystem/watcher-binding.js +3 -3
  270. package/dist/filesystem/watcher.js +12 -12
  271. package/dist/filesystem.js +81 -81
  272. package/dist/form.js +64 -64
  273. package/dist/formatter/builtins.js +3 -3
  274. package/dist/formatter.js +67 -67
  275. package/dist/generate.js +75 -75
  276. package/dist/git.js +8 -8
  277. package/dist/github-copilot/chat/openai-compatible-chat-language-model.js +4 -4
  278. package/dist/github-copilot/copilot-provider.js +3 -3
  279. package/dist/github-copilot/models.js +6 -6
  280. package/dist/github-copilot/responses/openai-responses-language-model.js +6 -6
  281. package/dist/github-copilot/responses/openai-responses-prepare-tools.js +3 -3
  282. package/dist/image/photon.js +1 -1
  283. package/dist/image.js +5 -5
  284. package/dist/instance/service.js +5 -5
  285. package/dist/instance.js +304 -304
  286. package/dist/instruction-discovery.js +68 -68
  287. package/dist/instructions/builtins.js +65 -65
  288. package/dist/instructions/index.js +3 -3
  289. package/dist/integration.js +62 -62
  290. package/dist/job.js +61 -61
  291. package/dist/kv.js +56 -56
  292. package/dist/location-activity.js +58 -58
  293. package/dist/location-mutation.js +31 -31
  294. package/dist/location-service-map.js +66 -66
  295. package/dist/location-services.js +302 -302
  296. package/dist/location.js +65 -65
  297. package/dist/mcp/client.js +18 -18
  298. package/dist/mcp/index.js +81 -81
  299. package/dist/mcp/instructions.js +95 -95
  300. package/dist/mcp/oauth.js +14 -14
  301. package/dist/mcp/stdio.js +64 -64
  302. package/dist/modal/models.js +6 -6
  303. package/dist/model-resolver.js +68 -68
  304. package/dist/model.js +5 -5
  305. package/dist/models-dev.js +68 -68
  306. package/dist/permission/saved.js +62 -62
  307. package/dist/permission.js +88 -88
  308. package/dist/persistent-pty/index.js +70 -70
  309. package/dist/persistent-pty.js +56 -56
  310. package/dist/plugin/agent.js +77 -77
  311. package/dist/plugin/command.js +72 -72
  312. package/dist/plugin/hooks.js +5 -5
  313. package/dist/plugin/host.js +177 -177
  314. package/dist/plugin/instance.js +5 -5
  315. package/dist/plugin/internal.js +278 -278
  316. package/dist/plugin/mcp-codemode-exclusion.js +3 -3
  317. package/dist/plugin/models-dev.js +59 -59
  318. package/dist/plugin/module.js +5 -5
  319. package/dist/plugin/plan.js +77 -77
  320. package/dist/plugin/provider/azure.js +92 -92
  321. package/dist/plugin/provider/cloudflare-ai-gateway.js +92 -92
  322. package/dist/plugin/provider/cloudflare-workers-ai.js +92 -92
  323. package/dist/plugin/provider/configured.js +90 -90
  324. package/dist/plugin/provider/digitalocean.js +62 -62
  325. package/dist/plugin/provider/github-copilot.js +64 -64
  326. package/dist/plugin/provider/gitlab.js +2 -2
  327. package/dist/plugin/provider/llmgateway.js +60 -60
  328. package/dist/plugin/provider/lmstudio.js +93 -93
  329. package/dist/plugin/provider/modal.js +63 -63
  330. package/dist/plugin/provider/ollama.js +93 -93
  331. package/dist/plugin/provider/openai.js +61 -61
  332. package/dist/plugin/provider/opencode.js +62 -62
  333. package/dist/plugin/provider/openrouter.js +2 -2
  334. package/dist/plugin/provider/poe.js +59 -59
  335. package/dist/plugin/provider/snowflake-cortex.js +92 -92
  336. package/dist/plugin/provider/vllm.js +93 -93
  337. package/dist/plugin/provider/xai.js +61 -61
  338. package/dist/plugin/provider.js +124 -124
  339. package/dist/plugin/sdk.js +60 -60
  340. package/dist/plugin/skill.js +107 -107
  341. package/dist/plugin/supervisor.js +294 -294
  342. package/dist/plugin/update.js +6 -6
  343. package/dist/plugin/variant.js +3 -3
  344. package/dist/plugin/vcs/git.js +64 -64
  345. package/dist/plugin/vcs/hg.js +64 -64
  346. package/dist/plugin/warming.js +88 -88
  347. package/dist/plugin/websearch/exa.js +5 -5
  348. package/dist/plugin/websearch/firecrawl.js +6 -6
  349. package/dist/plugin/websearch/index.js +7 -7
  350. package/dist/plugin/websearch/parallel.js +6 -6
  351. package/dist/plugin/websearch/tavily.js +6 -6
  352. package/dist/plugin/websearch/tinyfish.js +6 -6
  353. package/dist/plugin.js +183 -183
  354. package/dist/project/schema.js +5 -5
  355. package/dist/project.js +66 -66
  356. package/dist/pty.js +62 -62
  357. package/dist/reference/instructions.js +69 -69
  358. package/dist/reference.js +69 -69
  359. package/dist/repository-cache.js +62 -62
  360. package/dist/ripgrep.js +70 -70
  361. package/dist/rpc.js +64 -64
  362. package/dist/session/command.js +57 -57
  363. package/dist/session/compaction.js +104 -104
  364. package/dist/session/context.js +120 -120
  365. package/dist/session/diff.js +64 -64
  366. package/dist/session/environment.js +5 -5
  367. package/dist/session/error.js +6 -6
  368. package/dist/session/execution/restart.js +118 -118
  369. package/dist/session/execution.js +103 -103
  370. package/dist/session/generate.js +121 -121
  371. package/dist/session/history.js +8 -8
  372. package/dist/session/inbox.js +65 -65
  373. package/dist/session/info.js +2 -2
  374. package/dist/session/instruction-entry.js +57 -57
  375. package/dist/session/instruction-state.js +2 -2
  376. package/dist/session/instructions.js +72 -72
  377. package/dist/session/model-request.js +92 -92
  378. package/dist/session/model-transport.js +7 -7
  379. package/dist/session/move.js +104 -104
  380. package/dist/session/projector.js +62 -62
  381. package/dist/session/prompt.js +79 -79
  382. package/dist/session/provider-context.js +3 -3
  383. package/dist/session/revert.js +65 -65
  384. package/dist/session/run-coordinator.js +3 -3
  385. package/dist/session/runner/index.js +3 -3
  386. package/dist/session/runner/llm.js +187 -187
  387. package/dist/session/runner/model.js +70 -70
  388. package/dist/session/runner/retry.js +89 -89
  389. package/dist/session/runner/step.js +98 -98
  390. package/dist/session/runner/to-llm-message.js +2 -2
  391. package/dist/session/schema.js +3 -3
  392. package/dist/session/session.js +136 -136
  393. package/dist/session/shell.js +100 -100
  394. package/dist/session/skill.js +77 -77
  395. package/dist/session/stats.js +10 -10
  396. package/dist/session/store.js +63 -63
  397. package/dist/session/subagent-job.js +171 -171
  398. package/dist/session/title.js +123 -123
  399. package/dist/session/to-session-error.js +86 -86
  400. package/dist/session/transfer.js +116 -116
  401. package/dist/session.js +184 -184
  402. package/dist/shell/parse.js +3 -3
  403. package/dist/shell/select.js +11 -11
  404. package/dist/shell.js +103 -103
  405. package/dist/skill/discovery.js +5 -5
  406. package/dist/skill/instructions.js +82 -82
  407. package/dist/skill.js +85 -85
  408. package/dist/snapshot.js +69 -69
  409. package/dist/tool/mcp.js +92 -92
  410. package/dist/tool/plugin/edit.js +90 -90
  411. package/dist/tool/plugin/glob.js +95 -95
  412. package/dist/tool/plugin/grep.js +95 -95
  413. package/dist/tool/plugin/opencode.js +3 -3
  414. package/dist/tool/plugin/patch.js +92 -92
  415. package/dist/tool/plugin/question.js +78 -78
  416. package/dist/tool/plugin/read.js +96 -96
  417. package/dist/tool/plugin/shell.js +179 -179
  418. package/dist/tool/plugin/skill.js +88 -88
  419. package/dist/tool/plugin/subagent.js +178 -178
  420. package/dist/tool/plugin/webfetch.js +83 -83
  421. package/dist/tool/plugin/websearch.js +83 -83
  422. package/dist/tool/plugin/write.js +92 -92
  423. package/dist/tool/read-filesystem.js +73 -73
  424. package/dist/tool-output.js +6 -6
  425. package/dist/tool.js +11 -11
  426. package/dist/v1/config/agent.js +6 -6
  427. package/dist/v1/config/attachment.js +3 -3
  428. package/dist/v1/config/command.js +5 -5
  429. package/dist/v1/config/config.js +13 -13
  430. package/dist/v1/config/error.js +3 -3
  431. package/dist/v1/config/formatter.js +7 -7
  432. package/dist/v1/config/lsp.js +3 -3
  433. package/dist/v1/config/mcp.js +3 -3
  434. package/dist/v1/config/migrate.js +2 -2
  435. package/dist/v1/config/permission.js +7 -7
  436. package/dist/v1/config/provider.js +3 -3
  437. package/dist/v1/config/skills.js +3 -3
  438. package/dist/vcs.js +67 -67
  439. package/dist/websearch.js +66 -66
  440. package/dist/wellknown/plugin.js +58 -58
  441. package/dist/wellknown.js +61 -61
  442. package/dist/workspace/driver.js +5 -5
  443. package/dist/workspace.js +60 -60
  444. package/dist/worktree/directory.js +3 -3
  445. package/dist/worktree/git.js +8 -8
  446. package/dist/worktree/refresh.js +293 -293
  447. package/dist/worktree.js +71 -71
  448. package/package.json +8 -8
  449. package/dist/chunks/mime-5wm2rtqk.js +0 -247
  450. package/dist/chunks/mime-89qrc0yw.js +0 -26
  451. /package/dist/chunks/{mime-8mw9dy87.js → mime-cga0myw9.js} +0 -0
  452. /package/dist/chunks/{mime-11qgt1va.js → mime-kx4bd44t.js} +0 -0
  453. /package/dist/chunks/{mime-q6yya7b3.js → mime-rf80fxgj.js} +0 -0
  454. /package/dist/chunks/{mime-7f5wqp31.js → mime-stk15n3e.js} +0 -0
@@ -1,19 +1,19 @@
1
1
  import {
2
- Service78,
3
- node83
4
- } from "./mime-sbwhh814.js";
2
+ Service76,
3
+ node81
4
+ } from "./mime-z4y4a432.js";
5
5
  import {
6
- Service70,
7
- node75
8
- } from "./mime-hsyde07s.js";
6
+ Service65,
7
+ node70
8
+ } from "./mime-cfpeewsf.js";
9
9
  import {
10
10
  ID2
11
11
  } from "./mime-0mesazry.js";
12
12
  import {
13
- Service57,
13
+ Service37,
14
14
  login2,
15
- node60
16
- } from "./mime-en53wcfr.js";
15
+ node41
16
+ } from "./mime-wjf2ryf5.js";
17
17
  import {
18
18
  lazy2
19
19
  } from "./mime-88xbtdfr.js";
@@ -58,9 +58,9 @@ class ExitedError2 extends Schema.TaggedError()("Pty.ExitedError", {
58
58
  class Service13 extends Context.Service()("@opencode/Pty") {
59
59
  }
60
60
  var layer = Layer.effect(Service13, Effect.gen(function* () {
61
- const bus = yield* Service78;
62
- const location = yield* Service70;
63
- const shell = yield* Service57;
61
+ const bus = yield* Service76;
62
+ const location = yield* Service65;
63
+ const shell = yield* Service37;
64
64
  const context = yield* Effect.context();
65
65
  const runFork = Effect.runForkWith(context);
66
66
  const sessions = new Map;
@@ -273,7 +273,7 @@ var layer = Layer.effect(Service13, Effect.gen(function* () {
273
273
  var node16 = makeLocationNode({
274
274
  service: Service13,
275
275
  layer,
276
- deps: [node83, node75, node60]
276
+ deps: [node81, node70, node41]
277
277
  });
278
278
 
279
279
  export { Info2, CreateInput2, UpdateInput2, NotFoundError2, ExitedError2, Service13, node16, exports_pty, Event2 };
@@ -5,12 +5,12 @@ import {
5
5
  ModelInitializationError3,
6
6
  UnresolvedProviderVariablesError3,
7
7
  UnsupportedCompactionError3,
8
- Service73,
9
- node78
10
- } from "./mime-0m2e9swf.js";
8
+ Service70,
9
+ node75
10
+ } from "./mime-rm1v9tpv.js";
11
11
  import {
12
12
  SessionSchema2
13
- } from "./mime-nvxqht09.js";
13
+ } from "./mime-8q7cq0y1.js";
14
14
  import {
15
15
  __export
16
16
  } from "./mime-9rqn6x4v.js";
@@ -22,13 +22,13 @@ __export(exports_model, {
22
22
  ModelInitializationError: () => ModelInitializationError2,
23
23
  ModelNotSelectedError: () => ModelNotSelectedError2,
24
24
  ModelUnavailableError: () => ModelUnavailableError2,
25
- Service: () => Service38,
25
+ Service: () => Service41,
26
26
  SessionRunnerModel: () => exports_model,
27
27
  UnresolvedProviderVariablesError: () => UnresolvedProviderVariablesError2,
28
28
  UnsupportedCompactionError: () => UnsupportedCompactionError2,
29
29
  UnsupportedPackageError: () => UnsupportedPackageError2,
30
30
  VariantUnavailableError: () => VariantUnavailableError2,
31
- node: () => node41,
31
+ node: () => node44,
32
32
  resolved: () => resolved2
33
33
  });
34
34
  import { makeLocationNode } from "@opencode/util/effect/app-node";
@@ -57,7 +57,7 @@ var ModelInitializationError2 = ModelInitializationError3;
57
57
  var UnresolvedProviderVariablesError2 = UnresolvedProviderVariablesError3;
58
58
  var UnsupportedCompactionError2 = UnsupportedCompactionError3;
59
59
 
60
- class Service38 extends Context.Service()("@opencode/SessionRunnerModel") {
60
+ class Service41 extends Context.Service()("@opencode/SessionRunnerModel") {
61
61
  }
62
62
  var resolved2 = (model, options) => ({
63
63
  model,
@@ -72,9 +72,9 @@ var resolved2 = (model, options) => ({
72
72
  compaction: options.compaction,
73
73
  websocket: options.websocket ?? false
74
74
  });
75
- var layer = Layer.effect(Service38, Effect.gen(function* () {
76
- const resolver = yield* Service73;
77
- return Service38.of({
75
+ var layer = Layer.effect(Service41, Effect.gen(function* () {
76
+ const resolver = yield* Service70;
77
+ return Service41.of({
78
78
  resolve: Effect.fn("SessionRunnerModel.resolve")(function* (session, available) {
79
79
  if (!session.model) {
80
80
  const resolved = yield* resolver.resolve();
@@ -92,6 +92,6 @@ var layer = Layer.effect(Service38, Effect.gen(function* () {
92
92
  })
93
93
  });
94
94
  }));
95
- var node41 = makeLocationNode({ service: Service38, layer, deps: [node78] });
95
+ var node44 = makeLocationNode({ service: Service41, layer, deps: [node75] });
96
96
 
97
- export { ModelNotSelectedError2, ModelUnavailableError2, VariantUnavailableError2, UnsupportedPackageError2, ModelConfigurationError2, ModelInitializationError2, UnresolvedProviderVariablesError2, UnsupportedCompactionError2, Service38, resolved2, node41, exports_model };
97
+ export { ModelNotSelectedError2, ModelUnavailableError2, VariantUnavailableError2, UnsupportedPackageError2, ModelConfigurationError2, ModelInitializationError2, UnresolvedProviderVariablesError2, UnsupportedCompactionError2, Service41, resolved2, node44, exports_model };
@@ -4,28 +4,28 @@ import {
4
4
  mergeOverlay2
5
5
  } from "./mime-33n3bzdy.js";
6
6
  import {
7
- ID16
8
- } from "./mime-244ce5kg.js";
7
+ ID17
8
+ } from "./mime-c3s2gn8c.js";
9
9
  import {
10
- Service78
11
- } from "./mime-sbwhh814.js";
10
+ Service76
11
+ } from "./mime-z4y4a432.js";
12
12
  import {
13
13
  OAuth3,
14
- Event20
15
- } from "./mime-n9gzpzcc.js";
14
+ Event19
15
+ } from "./mime-7fejhyaj.js";
16
16
  import {
17
17
  ID14,
18
18
  MethodID2
19
- } from "./mime-n7w7dj2n.js";
19
+ } from "./mime-79j0w79y.js";
20
20
  import {
21
- Service74
22
- } from "./mime-s3w38y65.js";
21
+ Service72
22
+ } from "./mime-3djbw1yw.js";
23
23
  import {
24
- get2
25
- } from "./mime-6w1gr0yw.js";
24
+ get3
25
+ } from "./mime-r9asyhme.js";
26
26
  import {
27
27
  useragent2
28
- } from "./mime-6mn0csek.js";
28
+ } from "./mime-z5e4xs1g.js";
29
29
 
30
30
  // src/plugin/provider/github-copilot.ts
31
31
  import { Effect, Option, Schema, Semaphore, Stream } from "effect";
@@ -155,8 +155,8 @@ var oauth = (app) => ({
155
155
  var GithubCopilotPlugin2 = define({
156
156
  id: "opencode.provider.github.copilot",
157
157
  effect: Effect.fn(function* (ctx) {
158
- const catalog = yield* Service74;
159
- const bus = yield* Service78;
158
+ const catalog = yield* Service72;
159
+ const bus = yield* Service76;
160
160
  const loading = Semaphore.makeUnsafe(1);
161
161
  const loaded = {};
162
162
  const load = Effect.fn("GithubCopilotPlugin.load")(function* () {
@@ -173,7 +173,7 @@ var GithubCopilotPlugin2 = define({
173
173
  const provider = yield* catalog.provider.get(ID18.githubCopilot);
174
174
  const existing = (yield* catalog.model.all()).filter((model) => model.providerID === ID18.githubCopilot);
175
175
  loaded.models = yield* Effect.tryPromise({
176
- try: () => get2(loaded.baseURL ?? baseURL(), {
176
+ try: () => get3(loaded.baseURL ?? baseURL(), {
177
177
  ...provider?.headers,
178
178
  Authorization: `Bearer ${credential.refresh}`,
179
179
  "User-Agent": useragent2(ctx.app),
@@ -192,7 +192,7 @@ var GithubCopilotPlugin2 = define({
192
192
  return;
193
193
  if (loaded.models) {
194
194
  for (const id of item.models.keys()) {
195
- if (!loaded.models.has(ID16.make(id)))
195
+ if (!loaded.models.has(ID17.make(id)))
196
196
  evt.model.remove(item.provider.id, id);
197
197
  }
198
198
  for (const [id, model] of loaded.models) {
@@ -207,14 +207,14 @@ var GithubCopilotPlugin2 = define({
207
207
  });
208
208
  }
209
209
  }
210
- if (item.models.has(ID16.make("gpt-5-chat-latest"))) {
211
- evt.model.update(item.provider.id, ID16.make("gpt-5-chat-latest"), (model) => {
210
+ if (item.models.has(ID17.make("gpt-5-chat-latest"))) {
211
+ evt.model.update(item.provider.id, ID17.make("gpt-5-chat-latest"), (model) => {
212
212
  model.enabled = false;
213
213
  });
214
214
  }
215
215
  });
216
216
  const refresh = () => loading.withPermit(load().pipe(Effect.andThen(ctx.catalog.reload())));
217
- yield* bus.subscribe(Event20.Switched).pipe(Stream.filter((event) => event.data.integrationID === ID14.make("github-copilot")), Stream.runForEach(refresh), Effect.forkScoped({ startImmediately: true }));
217
+ yield* bus.subscribe(Event19.Switched).pipe(Stream.filter((event) => event.data.integrationID === ID14.make("github-copilot")), Stream.runForEach(refresh), Effect.forkScoped({ startImmediately: true }));
218
218
  yield* refresh().pipe(Effect.forkScoped);
219
219
  yield* ctx.aisdk.hook("sdk", Effect.fn(function* (evt) {
220
220
  if (evt.model.providerID !== ID18.githubCopilot)
@@ -1,12 +1,12 @@
1
1
  import {
2
- Service39
3
- } from "./mime-zcqf6png.js";
2
+ Service42
3
+ } from "./mime-81rrwt6s.js";
4
4
  import {
5
5
  awaitActivation2
6
6
  } from "./mime-4v7qdvcn.js";
7
7
  import {
8
- Service54
9
- } from "./mime-k5ysc9y0.js";
8
+ Service33
9
+ } from "./mime-gcb8mzse.js";
10
10
  import {
11
11
  unavailable2
12
12
  } from "./mime-fxbjtjnd.js";
@@ -22,8 +22,8 @@ __export(exports_shell3, {
22
22
  });
23
23
  import { Effect } from "effect";
24
24
  var start2 = Effect.fn("SessionShell.start")(function* (input) {
25
- const instances = yield* Service39;
26
- const shell = yield* awaitActivation2.pipe(Effect.andThen(Service54), instances.provide(input.session));
25
+ const instances = yield* Service42;
26
+ const shell = yield* awaitActivation2.pipe(Effect.andThen(Service33), instances.provide(input.session));
27
27
  const info = yield* shell.create({
28
28
  command: input.command,
29
29
  cwd: input.session.location.directory,
@@ -2,13 +2,13 @@ import {
2
2
  AbsolutePath2
3
3
  } from "./mime-922hggd3.js";
4
4
  import {
5
- Info9,
6
- ID5,
5
+ Info19,
6
+ ID6,
7
7
  Name2
8
- } from "./mime-vknx877p.js";
8
+ } from "./mime-adtd93wp.js";
9
9
  import {
10
- Service59
11
- } from "./mime-vp7npndj.js";
10
+ Service48
11
+ } from "./mime-pdcjakb6.js";
12
12
  import {
13
13
  __export
14
14
  } from "./mime-9rqn6x4v.js";
@@ -18,7 +18,7 @@ var exports_skill3 = {};
18
18
  __export(exports_skill3, {
19
19
  OpencodeContent: () => OpencodeContent2,
20
20
  OpencodeDescription: () => OpencodeDescription2,
21
- Plugin: () => Plugin41,
21
+ Plugin: () => Plugin45,
22
22
  ReportContent: () => ReportContent2,
23
23
  SkillPlugin: () => exports_skill3
24
24
  });
@@ -421,20 +421,20 @@ var OpencodeContent2 = opencode_default;
421
421
  var ReportContent2 = report_default;
422
422
  var OpencodeDescription2 = "Use this skill for any question about OpenCode itself, including how OpenCode works, using or configuring it, migrating from V1 to V2, troubleshooting it, developing plugins or integrations, using the OpenCode SDK, clients, server, or API, and contributing to the OpenCode codebase. Also use it for OpenCode agents, commands, skills, tools, permissions, MCP servers, providers, models, themes, keybinds, formatters, the CLI, TUI, desktop app, and web app.";
423
423
  var REPORT_DESCRIPTION = "Use when the user wants to report an opencode issue or bug. Collect standard diagnostics, add user-specific reproduction context, and publish the issue with GitHub CLI.";
424
- var Plugin41 = define({
424
+ var Plugin45 = define({
425
425
  id: "opencode.skill",
426
426
  effect: Effect.fn(function* (ctx) {
427
427
  const reportContent = yield* reportContentWithDiagnostics(ctx.app);
428
428
  yield* ctx.skill.transform((editor) => {
429
- editor.add(Info9.make({
430
- id: ID5.make("opencode"),
429
+ editor.add(Info19.make({
430
+ id: ID6.make("opencode"),
431
431
  name: Name2.make("OpenCode"),
432
432
  description: OpencodeDescription2,
433
433
  path: AbsolutePath2.make("/builtin/opencode.md"),
434
434
  content: OpencodeContent2
435
435
  }));
436
- editor.add(Info9.make({
437
- id: ID5.make("report"),
436
+ editor.add(Info19.make({
437
+ id: ID6.make("report"),
438
438
  name: Name2.make("Report"),
439
439
  description: REPORT_DESCRIPTION,
440
440
  path: AbsolutePath2.make("/builtin/report.md"),
@@ -462,7 +462,7 @@ var reportContentWithDiagnostics = Effect.fn("SkillPlugin.reportContentWithDiagn
462
462
  `);
463
463
  });
464
464
  var configuredPlugins = Effect.fn("SkillPlugin.configuredPlugins")(function* () {
465
- const config = yield* Service59;
465
+ const config = yield* Service48;
466
466
  return (yield* config.entries()).filter((entry) => entry.type === "document").flatMap((entry) => entry.info.plugins ?? []).map((entry) => typeof entry === "string" ? entry : entry.package).toSorted();
467
467
  });
468
468
  function terminal() {
@@ -476,4 +476,4 @@ function shell() {
476
476
  return process.env.SHELL ?? process.env.ComSpec ?? process.env.COMSPEC ?? "Unavailable: shell environment variable is not set";
477
477
  }
478
478
 
479
- export { OpencodeContent2, ReportContent2, OpencodeDescription2, Plugin41, exports_skill3 };
479
+ export { OpencodeContent2, ReportContent2, OpencodeDescription2, Plugin45, exports_skill3 };
@@ -6,8 +6,8 @@ import {
6
6
  var exports_hooks = {};
7
7
  __export(exports_hooks, {
8
8
  PluginHooks: () => exports_hooks,
9
- Service: () => Service58,
10
- node: () => node61
9
+ Service: () => Service80,
10
+ node: () => node85
11
11
  });
12
12
  import { Context, Effect, Layer, Scope } from "effect";
13
13
  import { makeLocationNode } from "@opencode/util/effect/app-node";
@@ -20,9 +20,9 @@ var eventProviderID = (event) => {
20
20
  return typeof model.providerID === "string" ? model.providerID : undefined;
21
21
  };
22
22
 
23
- class Service58 extends Context.Service()("@opencode/PluginHooks") {
23
+ class Service80 extends Context.Service()("@opencode/PluginHooks") {
24
24
  }
25
- var layer = Layer.effect(Service58, Effect.gen(function* () {
25
+ var layer = Layer.effect(Service80, Effect.gen(function* () {
26
26
  const callbacks = new Map;
27
27
  const key = (domain, name) => `${domain}.${String(name)}`;
28
28
  const register = Effect.fn("PluginHooks.register")(function* (domain, name, callback, options) {
@@ -54,8 +54,8 @@ var layer = Layer.effect(Service58, Effect.gen(function* () {
54
54
  return event;
55
55
  });
56
56
  const has = (domain, name, providerID) => Effect.sync(() => (callbacks.get(key(domain, name)) ?? []).some((entry) => entry.options?.providerID === undefined || entry.options.providerID === providerID));
57
- return Service58.of({ has, register, trigger });
57
+ return Service80.of({ has, register, trigger });
58
58
  }));
59
- var node61 = makeLocationNode({ service: Service58, layer, deps: [] });
59
+ var node85 = makeLocationNode({ service: Service80, layer, deps: [] });
60
60
 
61
- export { Service58, node61, exports_hooks };
61
+ export { Service80, node85, exports_hooks };
@@ -1,24 +1,24 @@
1
1
  import {
2
- Service78
3
- } from "./mime-sbwhh814.js";
2
+ Service76
3
+ } from "./mime-z4y4a432.js";
4
4
  import {
5
- Service33
6
- } from "./mime-7kppz51p.js";
5
+ Service46
6
+ } from "./mime-zqbh65n6.js";
7
7
  import {
8
- Error2
9
- } from "./mime-29zjypxj.js";
8
+ Error5
9
+ } from "./mime-sy5x3wzp.js";
10
10
  import {
11
- Service56
12
- } from "./mime-1rr79kmz.js";
11
+ Service35
12
+ } from "./mime-2nm7ty4g.js";
13
13
  import {
14
14
  StepFailedError2
15
- } from "./mime-p8vshhkt.js";
15
+ } from "./mime-hs2a3b3x.js";
16
16
  import {
17
17
  SessionEvent2
18
18
  } from "./mime-ec1grn59.js";
19
19
  import {
20
20
  toSessionError2
21
- } from "./mime-hwyw3hyr.js";
21
+ } from "./mime-pa86c6bb.js";
22
22
  import {
23
23
  calculateCost2
24
24
  } from "./mime-tdstcens.js";
@@ -27,7 +27,7 @@ import {
27
27
  } from "./mime-h03wrkyp.js";
28
28
  import {
29
29
  isRetryable2
30
- } from "./mime-0jez15af.js";
30
+ } from "./mime-g95881nk.js";
31
31
  import {
32
32
  __export
33
33
  } from "./mime-9rqn6x4v.js";
@@ -37,7 +37,7 @@ var exports_step = {};
37
37
  __export(exports_step, {
38
38
  Outcome: () => Outcome2,
39
39
  SessionStep: () => exports_step,
40
- make: () => make8
40
+ make: () => make3
41
41
  });
42
42
  import {
43
43
  AIError,
@@ -51,11 +51,11 @@ var Outcome2 = Data.taggedEnum();
51
51
  var TOOLS_INTERRUPTED = { type: "aborted", message: "Tool execution interrupted" };
52
52
  var STEP_INTERRUPTED = { type: "aborted", message: "Step interrupted" };
53
53
  var RESULT_MISSING = { type: "tool.result-missing", message: "Provider did not return a tool result" };
54
- var make8 = Effect.gen(function* () {
55
- const bus = yield* Service78;
54
+ var make3 = Effect.gen(function* () {
55
+ const bus = yield* Service76;
56
56
  const llm = yield* LLMClient.Service;
57
- const snapshots = yield* Service33;
58
- const toolOutput = yield* Service56;
57
+ const snapshots = yield* Service46;
58
+ const toolOutput = yield* Service35;
59
59
  const attempt = Effect.fn("SessionStep.attempt")(function* (input) {
60
60
  const startSnapshot = yield* snapshots.capture();
61
61
  const publisher = createLLMEventPublisher2(bus, {
@@ -70,7 +70,7 @@ var make8 = Effect.gen(function* () {
70
70
  const interruptTools = Effect.suspend(() => Fiber.interruptAll(toolRuns.map((run) => run.fiber)));
71
71
  const executeTool = (call) => {
72
72
  if (input.prepared.request.toolChoice?.type === "none")
73
- return new Error2({ message: "Tools are disabled after the maximum agent steps" });
73
+ return new Error5({ message: "Tools are disabled after the maximum agent steps" });
74
74
  return input.prepared.executeTool({
75
75
  sessionID: input.sessionID,
76
76
  agent: input.agent,
@@ -205,4 +205,4 @@ var classifyToolExits = (settled, runs) => {
205
205
  return { interrupted: causes.some(Cause.hasInterrupts), declines, failure };
206
206
  };
207
207
 
208
- export { Outcome2, make8, exports_step };
208
+ export { Outcome2, make3, exports_step };
@@ -6,12 +6,12 @@ import {
6
6
  var exports_driver = {};
7
7
  __export(exports_driver, {
8
8
  Binding: () => Binding2,
9
- Error: () => Error5,
9
+ Error: () => Error4,
10
10
  ProviderNotFound: () => ProviderNotFound2,
11
11
  RegistryService: () => RegistryService2,
12
12
  WorkspaceDriver: () => exports_driver,
13
13
  make: () => make21,
14
- node: () => node74,
14
+ node: () => node69,
15
15
  registry: () => registry2,
16
16
  registryNode: () => registryNode2
17
17
  });
@@ -19,7 +19,7 @@ import { makeGlobalNode } from "@opencode/util/effect/app-node";
19
19
  import { Context, Effect, Layer, Schema } from "effect";
20
20
  var Binding2 = Schema.Record(Schema.String, Schema.Json);
21
21
 
22
- class Error5 extends Schema.TaggedError()("WorkspaceDriver.Error", {
22
+ class Error4 extends Schema.TaggedError()("WorkspaceDriver.Error", {
23
23
  message: Schema.optional(Schema.String),
24
24
  cause: Schema.optional(Schema.Defect())
25
25
  }) {
@@ -44,6 +44,6 @@ var registryNode2 = (drivers) => makeGlobalNode({
44
44
  layer: Layer.succeed(RegistryService2, RegistryService2.of(registry2(drivers))),
45
45
  deps: []
46
46
  });
47
- var node74 = registryNode2({});
47
+ var node69 = registryNode2({});
48
48
 
49
- export { Binding2, Error5, ProviderNotFound2, make21, RegistryService2, registry2, registryNode2, node74, exports_driver };
49
+ export { Binding2, Error4, ProviderNotFound2, make21, RegistryService2, registry2, registryNode2, node69, exports_driver };
@@ -1,10 +1,10 @@
1
1
  import {
2
2
  makeUnsafe2
3
- } from "./mime-dpkg50ah.js";
3
+ } from "./mime-y71avatq.js";
4
4
  import {
5
- Service68,
6
- node72
7
- } from "./mime-mc7r38pz.js";
5
+ Service63,
6
+ node67
7
+ } from "./mime-kn0whz0h.js";
8
8
  import {
9
9
  __export
10
10
  } from "./mime-9rqn6x4v.js";
@@ -13,8 +13,8 @@ import {
13
13
  var exports_file_mutation = {};
14
14
  __export(exports_file_mutation, {
15
15
  FileMutation: () => exports_file_mutation,
16
- Service: () => Service14,
17
- node: () => node17,
16
+ Service: () => Service62,
17
+ node: () => node66,
18
18
  readText: () => readText2,
19
19
  syncTextBom: () => syncTextBom2
20
20
  });
@@ -22,7 +22,7 @@ import { makeLocationNode } from "@opencode/util/effect/app-node";
22
22
  import { Context, Effect, Layer } from "effect";
23
23
  import { FSUtil } from "@opencode/util/fs-util";
24
24
  import { Bom } from "@opencode/util/bom";
25
- class Service14 extends Context.Service()("@opencode/FileMutation") {
25
+ class Service62 extends Context.Service()("@opencode/FileMutation") {
26
26
  }
27
27
  var readText2 = Effect.fn("FileMutation.readText")(function* (files, target) {
28
28
  return Bom.decodeBytes((yield* files.read(target)).bytes);
@@ -34,8 +34,8 @@ var syncTextBom2 = Effect.fn("FileMutation.syncTextBom")(function* (files, targe
34
34
  return synced.text;
35
35
  });
36
36
  var transactionLocks = makeUnsafe2();
37
- var layer = Layer.effect(Service14, Effect.gen(function* () {
38
- const environment = yield* Service68;
37
+ var layer = Layer.effect(Service62, Effect.gen(function* () {
38
+ const environment = yield* Service63;
39
39
  const locks = makeUnsafe2();
40
40
  const withLock = (targets) => (effect) => [...new Set(targets.map(FSUtil.resolve))].sort().reduceRight((result, target) => transactionLocks.withLock(target)(result), effect);
41
41
  const withTargetLock = (target) => (effect) => locks.withLock(target.absolute)(Effect.uninterruptible(effect));
@@ -56,8 +56,8 @@ var layer = Layer.effect(Service14, Effect.gen(function* () {
56
56
  yield* environment.files.write(input.target.absolute, new TextEncoder().encode(Bom.join(next.text, Boolean(current && Bom.has(current)) || next.bom)));
57
57
  return writeResult(input.target, current !== undefined);
58
58
  })));
59
- return Service14.of({ withLock, write, writeTextPreservingBom });
59
+ return Service62.of({ withLock, write, writeTextPreservingBom });
60
60
  }));
61
- var node17 = makeLocationNode({ service: Service14, layer, deps: [node72] });
61
+ var node66 = makeLocationNode({ service: Service62, layer, deps: [node67] });
62
62
 
63
- export { Service14, readText2, syncTextBom2, node17, exports_file_mutation };
63
+ export { Service62, readText2, syncTextBom2, node66, exports_file_mutation };
@@ -2,22 +2,22 @@ import {
2
2
  llmClient2
3
3
  } from "./mime-5t3nmthw.js";
4
4
  import {
5
- Service73,
6
- node78
7
- } from "./mime-0m2e9swf.js";
5
+ Service70,
6
+ node75
7
+ } from "./mime-rm1v9tpv.js";
8
8
  import {
9
9
  __export
10
10
  } from "./mime-9rqn6x4v.js";
11
11
 
12
12
  // src/generate.ts
13
- var exports_generate = {};
14
- __export(exports_generate, {
15
- Generate: () => exports_generate,
13
+ var exports_generate2 = {};
14
+ __export(exports_generate2, {
15
+ Generate: () => exports_generate2,
16
16
  ModelSelectionError: () => ModelSelectionError2,
17
- Service: () => Service15,
18
- UnavailableError: () => UnavailableError2,
19
- layer: () => layer8,
20
- node: () => node19
17
+ Service: () => Service69,
18
+ UnavailableError: () => UnavailableError3,
19
+ layer: () => layer23,
20
+ node: () => node74
21
21
  });
22
22
  import { LLM, LLMClient } from "@opencode/ai";
23
23
  import { Context, Effect, Layer, Schema } from "effect";
@@ -27,17 +27,17 @@ class ModelSelectionError2 extends Schema.TaggedError()("Generate.ModelSelection
27
27
  }) {
28
28
  }
29
29
 
30
- class UnavailableError2 extends Schema.TaggedError()("Generate.UnavailableError", {
30
+ class UnavailableError3 extends Schema.TaggedError()("Generate.UnavailableError", {
31
31
  message: Schema.String,
32
32
  service: Schema.optional(Schema.String)
33
33
  }) {
34
34
  }
35
35
 
36
- class Service15 extends Context.Service()("@opencode/Generate") {
36
+ class Service69 extends Context.Service()("@opencode/Generate") {
37
37
  }
38
- var layer8 = Layer.effect(Service15, Effect.gen(function* () {
38
+ var layer23 = Layer.effect(Service69, Effect.gen(function* () {
39
39
  const llm = yield* LLMClient.Service;
40
- const resolver = yield* Service73;
40
+ const resolver = yield* Service70;
41
41
  const runText = Effect.fn("Generate.text")(function* (input) {
42
42
  const resolved = yield* resolver.resolve(input.model).pipe(Effect.catchTag([
43
43
  "SessionRunnerModel.VariantUnavailableError",
@@ -47,28 +47,28 @@ var layer8 = Layer.effect(Service15, Effect.gen(function* () {
47
47
  "SessionRunnerModel.UnresolvedProviderVariablesError",
48
48
  "SessionRunnerModel.UnsupportedCompactionError"
49
49
  ], (error) => {
50
- const mapped = input.model ? new ModelSelectionError2({ message: error.message }) : new UnavailableError2({ message: error.message, service: error.providerID });
50
+ const mapped = input.model ? new ModelSelectionError2({ message: error.message }) : new UnavailableError3({ message: error.message, service: error.providerID });
51
51
  return Effect.fail(mapped);
52
52
  }));
53
53
  if (!resolved)
54
54
  return yield* new ModelSelectionError2({
55
55
  message: input.model ? `Model unavailable: ${input.model.providerID}/${input.model.id}` : "No model specified and no supported model is available"
56
56
  });
57
- const response = yield* llm.generate(LLM.request({ model: resolved.model, prompt: input.prompt })).pipe(Effect.mapError((error) => new UnavailableError2({
57
+ const response = yield* llm.generate(LLM.request({ model: resolved.model, prompt: input.prompt })).pipe(Effect.mapError((error) => new UnavailableError3({
58
58
  message: error.message,
59
59
  service: resolved.ref.providerID
60
60
  })));
61
61
  return response.text;
62
62
  });
63
- const text = (input) => runText(input).pipe(Effect.catchTag("Integration.Authorization", () => new UnavailableError2({
63
+ const text = (input) => runText(input).pipe(Effect.catchTag("Integration.Authorization", () => new UnavailableError3({
64
64
  message: "Generation credentials are unavailable"
65
65
  })));
66
- return Service15.of({ text });
66
+ return Service69.of({ text });
67
67
  }));
68
- var node19 = makeLocationNode({
69
- service: Service15,
70
- layer: layer8,
71
- deps: [node78, llmClient2]
68
+ var node74 = makeLocationNode({
69
+ service: Service69,
70
+ layer: layer23,
71
+ deps: [node75, llmClient2]
72
72
  });
73
73
 
74
- export { ModelSelectionError2, UnavailableError2, Service15, layer8, node19, exports_generate };
74
+ export { ModelSelectionError2, UnavailableError3, Service69, layer23, node74, exports_generate2 };
@@ -5,7 +5,7 @@ import {
5
5
  // src/formatter/builtins.ts
6
6
  import { Effect } from "effect";
7
7
  import { ChildProcess } from "effect/unstable/process";
8
- function make4(input) {
8
+ function make5(input) {
9
9
  const disabled = false;
10
10
  const findExecutable = (name) => which2(name, undefined, input.bin);
11
11
  const findUp = (target) => input.fs.findUp(target, input.directory, input.worktree);
@@ -261,4 +261,4 @@ function isRecord(input) {
261
261
  return Boolean(input && typeof input === "object" && !Array.isArray(input));
262
262
  }
263
263
 
264
- export { make4 };
264
+ export { make5 };
@@ -1,10 +1,10 @@
1
1
  import {
2
2
  latest2,
3
- Service59
4
- } from "./mime-vp7npndj.js";
3
+ Service48
4
+ } from "./mime-pdcjakb6.js";
5
5
  import {
6
- Service57
7
- } from "./mime-en53wcfr.js";
6
+ Service37
7
+ } from "./mime-wjf2ryf5.js";
8
8
  import {
9
9
  observe2
10
10
  } from "./mime-qsdy395h.js";
@@ -13,18 +13,18 @@ import {
13
13
  } from "./mime-9rqn6x4v.js";
14
14
 
15
15
  // src/config/plugin/shell.ts
16
- var exports_shell2 = {};
17
- __export(exports_shell2, {
18
- ConfigShellPlugin: () => exports_shell2,
19
- Plugin: () => Plugin23
16
+ var exports_shell = {};
17
+ __export(exports_shell, {
18
+ ConfigShellPlugin: () => exports_shell,
19
+ Plugin: () => Plugin4
20
20
  });
21
21
  import { define } from "@opencode/plugin/effect/plugin";
22
22
  import { Effect } from "effect";
23
- var Plugin23 = define({
23
+ var Plugin4 = define({
24
24
  id: "opencode.config.shell",
25
25
  effect: Effect.fn(function* (ctx) {
26
- const config = yield* Service59;
27
- const shell = yield* Service57;
26
+ const config = yield* Service48;
27
+ const shell = yield* Service37;
28
28
  const loaded = yield* observe2(config, ctx.event, shell.reload());
29
29
  yield* shell.transform((editor) => {
30
30
  const configured = latest2(loaded.entries, "shell");
@@ -34,4 +34,4 @@ var Plugin23 = define({
34
34
  })
35
35
  });
36
36
 
37
- export { Plugin23, exports_shell2 };
37
+ export { Plugin4, exports_shell };