@opencode/core 0.0.0-dev-20774 → 0.0.0-dev-20777

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 (470) hide show
  1. package/dist/agent.js +59 -59
  2. package/dist/aisdk-native.js +59 -59
  3. package/dist/aisdk.js +64 -64
  4. package/dist/app.js +9 -9
  5. package/dist/bus.js +52 -52
  6. package/dist/chunks/{location-00q60weh.js → location-02609e96.js} +16 -16
  7. package/dist/chunks/{location-1krkd5b8.js → location-05p4mhbg.js} +11 -11
  8. package/dist/chunks/location-0gzjc7ft.js +253 -0
  9. package/dist/chunks/{location-nvq72y7j.js → location-15xcwm9t.js} +1 -1
  10. package/dist/chunks/{location-rhraev7y.js → location-1acjjqhc.js} +3 -3
  11. package/dist/chunks/location-1fq0wp1e.js +26 -0
  12. package/dist/chunks/{location-n0ntqt9g.js → location-1g5f91mn.js} +41 -41
  13. package/dist/chunks/{location-rsc8qfyv.js → location-1gmkcf0p.js} +7 -7
  14. package/dist/chunks/{location-bm46emxx.js → location-1h8se44f.js} +13 -13
  15. package/dist/chunks/{location-xm77r8mk.js → location-1ts7y3cx.js} +9 -9
  16. package/dist/chunks/{location-farvs0j6.js → location-1v74vwhm.js} +13 -13
  17. package/dist/chunks/{location-5v2fwzy1.js → location-1v9scpnw.js} +37 -37
  18. package/dist/chunks/{location-jnra9z53.js → location-1z20pv40.js} +15 -15
  19. package/dist/chunks/{location-msn8sz9h.js → location-22tdpft4.js} +14 -14
  20. package/dist/chunks/{location-mcrt8a46.js → location-24skg3e0.js} +22 -22
  21. package/dist/chunks/{location-s1337sdb.js → location-257vwa0c.js} +23 -23
  22. package/dist/chunks/{location-g1bc2t46.js → location-283v9wt3.js} +26 -26
  23. package/dist/chunks/{location-63krnhgr.js → location-2a084xpy.js} +1 -1
  24. package/dist/chunks/{location-savccbnq.js → location-2fpnaz5h.js} +31 -31
  25. package/dist/chunks/{location-32yxbfvn.js → location-2jy94dam.js} +17 -17
  26. package/dist/chunks/{location-avjs8rwt.js → location-2kw5qtk9.js} +43 -43
  27. package/dist/chunks/{location-ma4d79jn.js → location-3jpnnrb4.js} +15 -15
  28. package/dist/chunks/{location-pkm68pcq.js → location-3pxsat6s.js} +17 -17
  29. package/dist/chunks/{location-fcrnmcwp.js → location-3qb0mese.js} +1 -1
  30. package/dist/chunks/{location-fcryy9bm.js → location-42y5raaz.js} +12 -12
  31. package/dist/chunks/{location-4yxknn6d.js → location-44rac60e.js} +12 -12
  32. package/dist/chunks/{location-0r3c1bmw.js → location-47jkzegy.js} +3 -3
  33. package/dist/chunks/{location-0m0pvxq1.js → location-47r5a3mx.js} +10 -10
  34. package/dist/chunks/{location-ssesc4qa.js → location-4b5b0vhn.js} +6 -6
  35. package/dist/chunks/{location-94t80y57.js → location-4bar7sar.js} +25 -25
  36. package/dist/chunks/{location-frz66pft.js → location-4pedpz6c.js} +11 -11
  37. package/dist/chunks/{location-tghtnfzz.js → location-4vvqa2vj.js} +89 -89
  38. package/dist/chunks/{location-1pxz8ven.js → location-4xpgt2w9.js} +3 -3
  39. package/dist/chunks/{location-djqvkhft.js → location-4zxfccqq.js} +21 -21
  40. package/dist/chunks/{location-1z0fzhfg.js → location-50pnv838.js} +24 -24
  41. package/dist/chunks/{location-fpq9acqp.js → location-51f5btjf.js} +5 -5
  42. package/dist/chunks/{location-brggcc39.js → location-57ehm7c4.js} +30 -30
  43. package/dist/chunks/{location-q9fmzgve.js → location-5h0p9j5c.js} +4 -4
  44. package/dist/chunks/{location-5nesw8k5.js → location-5hps0jc8.js} +18 -18
  45. package/dist/chunks/{location-frypca04.js → location-6hcrkmvd.js} +9 -9
  46. package/dist/chunks/{location-2j4zxht4.js → location-6qv3krp1.js} +16 -16
  47. package/dist/chunks/{location-ccyehgd0.js → location-6t1m34v8.js} +2 -2
  48. package/dist/chunks/{location-p1cpmwyf.js → location-6tyzbyh4.js} +16 -16
  49. package/dist/chunks/{location-taakedrx.js → location-6whpyrs3.js} +43 -43
  50. package/dist/chunks/{location-bkp7wwcv.js → location-6zztp22y.js} +42 -42
  51. package/dist/chunks/{location-hyzby332.js → location-724avf7x.js} +15 -15
  52. package/dist/chunks/{location-9mm32rc6.js → location-73gdyt7p.js} +14 -14
  53. package/dist/chunks/{location-2wcpgrf5.js → location-77392vks.js} +7 -7
  54. package/dist/chunks/{location-eapgentd.js → location-7am7j62s.js} +17 -17
  55. package/dist/chunks/{location-qp5zfzrm.js → location-7fyyg3d8.js} +11 -11
  56. package/dist/chunks/{location-w9w8c5s2.js → location-7wpc5jwh.js} +13 -13
  57. package/dist/chunks/{location-mhkvc446.js → location-7yh4e7ss.js} +2 -2
  58. package/dist/chunks/{location-0z2z9ezx.js → location-7z0vcwsq.js} +7 -7
  59. package/dist/chunks/{location-mxyxeq91.js → location-7zz0tb2m.js} +328 -328
  60. package/dist/chunks/{location-fw4jt8zs.js → location-83vepgva.js} +32 -32
  61. package/dist/chunks/{location-fgj24z8y.js → location-8b345ry2.js} +12 -12
  62. package/dist/chunks/{location-gseqh7y5.js → location-8pfsh0gj.js} +19 -19
  63. package/dist/chunks/{location-nc482bkw.js → location-8snddydh.js} +8 -8
  64. package/dist/chunks/{location-hpbkp3jv.js → location-8y8dfhw6.js} +9 -9
  65. package/dist/chunks/{location-n456zfcg.js → location-922xc4bs.js} +30 -30
  66. package/dist/chunks/{location-jkr4b8s0.js → location-9cwykwg4.js} +30 -30
  67. package/dist/chunks/{location-wv396vej.js → location-9t7a50xb.js} +5 -5
  68. package/dist/chunks/{location-v099rn53.js → location-ac3dnfkw.js} +5 -5
  69. package/dist/chunks/{location-db2wf4at.js → location-addxnjmp.js} +3 -3
  70. package/dist/chunks/{location-af8mc2ra.js → location-agg46hj7.js} +4 -4
  71. package/dist/chunks/{location-ss358qx3.js → location-arz7hw7x.js} +3 -3
  72. package/dist/chunks/{location-w89t5azj.js → location-asvfb1gz.js} +22 -22
  73. package/dist/chunks/{location-2kxzs1z5.js → location-b3e58hyc.js} +23 -23
  74. package/dist/chunks/{location-pfvarswz.js → location-b4m962yk.js} +19 -19
  75. package/dist/chunks/{location-7vgmnxtx.js → location-b69x7x7h.js} +4 -4
  76. package/dist/chunks/{location-eqj35hys.js → location-b8d9rq7p.js} +31 -31
  77. package/dist/chunks/{location-k09pycdv.js → location-bem8en1s.js} +16 -16
  78. package/dist/chunks/{location-pcj0rjsp.js → location-bmq95mvw.js} +5 -5
  79. package/dist/chunks/{location-510enc9r.js → location-by659cs7.js} +9 -9
  80. package/dist/chunks/{location-rq5t05qg.js → location-c00fv4ar.js} +18 -18
  81. package/dist/chunks/{location-ckhb8p3a.js → location-c26ps2t9.js} +11 -11
  82. package/dist/chunks/{location-h5z75e8b.js → location-c5g770ce.js} +7 -7
  83. package/dist/chunks/{location-geg4sp68.js → location-ch3qpzfg.js} +8 -8
  84. package/dist/chunks/{location-7ekcnbwa.js → location-cnwjz3s5.js} +17 -17
  85. package/dist/chunks/{location-44ak30pa.js → location-cp937pt4.js} +3 -3
  86. package/dist/chunks/{location-4bfey5n7.js → location-crvcnxkj.js} +4 -4
  87. package/dist/chunks/{location-20ketkdt.js → location-cvmt8rk0.js} +20 -20
  88. package/dist/chunks/{location-k6367mvk.js → location-das60bkc.js} +25 -25
  89. package/dist/chunks/{location-5tpw5fwb.js → location-dc34mbvf.js} +4 -4
  90. package/dist/chunks/{location-r3s6mbe4.js → location-dhddhhrc.js} +9 -9
  91. package/dist/chunks/{location-fag3n04b.js → location-ds1wy84x.js} +24 -24
  92. package/dist/chunks/{location-7fj5dwt0.js → location-dxj72tfx.js} +4 -4
  93. package/dist/chunks/{location-s111bhqz.js → location-dzt4t18k.js} +7 -7
  94. package/dist/chunks/{location-c4apb3t6.js → location-eba7m2bv.js} +14 -14
  95. package/dist/chunks/{location-bb98p2sm.js → location-efgnm1d6.js} +7 -7
  96. package/dist/chunks/{location-tzph5200.js → location-ejfryj65.js} +4 -4
  97. package/dist/chunks/{location-77xysqe6.js → location-enppsyr8.js} +5 -5
  98. package/dist/chunks/{location-gen3kpyr.js → location-ep4m400e.js} +19 -19
  99. package/dist/chunks/{location-86qzxe6p.js → location-ermxvwhp.js} +3 -3
  100. package/dist/chunks/{location-6penkyg2.js → location-essarsw2.js} +32 -32
  101. package/dist/chunks/{location-y1vh2ynk.js → location-etvz4dq0.js} +14 -14
  102. package/dist/chunks/{location-pddm9hjh.js → location-ey3qhexw.js} +5 -5
  103. package/dist/chunks/{location-7qkbpcez.js → location-f2332hgj.js} +9 -9
  104. package/dist/chunks/{location-1y9xp183.js → location-f2mw6jyj.js} +8 -8
  105. package/dist/chunks/{location-7ke8vxpx.js → location-f4jsfm31.js} +37 -37
  106. package/dist/chunks/{location-7dqw4kz8.js → location-fcrkznn8.js} +4 -4
  107. package/dist/chunks/{location-1qrp5yz4.js → location-ffa51ey5.js} +9 -9
  108. package/dist/chunks/{location-r4czyjgq.js → location-fgkdc7jh.js} +22 -22
  109. package/dist/chunks/{location-y9jy459z.js → location-fsvxdad5.js} +2 -2
  110. package/dist/chunks/{location-4gpcyrrc.js → location-fyb3fekh.js} +11 -11
  111. package/dist/chunks/{location-2ha1v7qw.js → location-fzpqnkcj.js} +1 -1
  112. package/dist/chunks/{location-q4vqpvdd.js → location-g6z45s58.js} +13 -13
  113. package/dist/chunks/{location-4c4k5wey.js → location-ge2jb4mz.js} +12 -12
  114. package/dist/chunks/{location-pw5zjs1v.js → location-geyqfexr.js} +9 -9
  115. package/dist/chunks/{location-q753jdth.js → location-gy1mt2vm.js} +21 -21
  116. package/dist/chunks/{location-jwbqxjt0.js → location-h2xnf45v.js} +11 -11
  117. package/dist/chunks/{location-dy2ggsev.js → location-h72xck84.js} +22 -22
  118. package/dist/chunks/{location-rpep4epa.js → location-h788nv4n.js} +19 -19
  119. package/dist/chunks/{location-dmqcgk4z.js → location-h7s7r6s9.js} +6 -5
  120. package/dist/chunks/{location-8xcxajtx.js → location-hfpbvkxs.js} +14 -14
  121. package/dist/chunks/{location-yvvvp4gn.js → location-hpfvhvya.js} +7 -7
  122. package/dist/chunks/{location-p9w1c4fh.js → location-hzfdd747.js} +12 -12
  123. package/dist/chunks/{location-0901hh4n.js → location-j793y9ay.js} +46 -46
  124. package/dist/chunks/{location-e8vwfchq.js → location-j8s9ab9g.js} +4 -4
  125. package/dist/chunks/{location-wmwmmf9p.js → location-j97mndf0.js} +11 -11
  126. package/dist/chunks/{location-jv7qrkz2.js → location-jph2mfn8.js} +20 -20
  127. package/dist/chunks/{location-9qap1kz0.js → location-k2v3a0tj.js} +19 -19
  128. package/dist/chunks/{location-gjbyz4wh.js → location-k58rqv26.js} +16 -16
  129. package/dist/chunks/{location-srq8z0b0.js → location-k70p9jzb.js} +7 -7
  130. package/dist/chunks/{location-3ng9c4h1.js → location-kf8rbkby.js} +25 -25
  131. package/dist/chunks/{location-swtxrcf0.js → location-m46z4pcf.js} +317 -317
  132. package/dist/chunks/{location-5qjvepv9.js → location-m55qy151.js} +8 -8
  133. package/dist/chunks/{location-z2q0v0ax.js → location-m9an57nd.js} +8 -8
  134. package/dist/chunks/{location-bgqmeeks.js → location-mc5akg63.js} +38 -38
  135. package/dist/chunks/{location-1ygqh575.js → location-mfqp6xfm.js} +4 -4
  136. package/dist/chunks/{location-4vygzm8z.js → location-mn8ry2gg.js} +15 -15
  137. package/dist/chunks/{location-wssyxk27.js → location-mq882t6m.js} +18 -18
  138. package/dist/chunks/{location-9f668h4q.js → location-mt66mygc.js} +9 -9
  139. package/dist/chunks/{location-wcab5d7q.js → location-mt74ad40.js} +6 -6
  140. package/dist/chunks/{location-rnnnfbw7.js → location-mw9b1c9f.js} +13 -13
  141. package/dist/chunks/{location-5a6870bg.js → location-mye8z46x.js} +19 -19
  142. package/dist/chunks/{location-6d5my1ea.js → location-n0kpyt58.js} +9 -9
  143. package/dist/chunks/{location-4gvf9rzc.js → location-n7yx15r7.js} +2 -2
  144. package/dist/chunks/{location-n2gztfrf.js → location-na7ss97r.js} +18 -18
  145. package/dist/chunks/{location-f7a9ata7.js → location-np6bm2as.js} +3 -3
  146. package/dist/chunks/{location-63db42yp.js → location-nqxj0yn4.js} +1 -1
  147. package/dist/chunks/{location-twanzasj.js → location-nxpp2y2e.js} +12 -12
  148. package/dist/chunks/{location-4n607a2z.js → location-nyqx1cb3.js} +3 -3
  149. package/dist/chunks/{location-4w5gk0mh.js → location-p0cpcvwn.js} +13 -13
  150. package/dist/chunks/{location-ch1g95xj.js → location-p3pp3bgs.js} +12 -12
  151. package/dist/chunks/{location-9hn6k4tm.js → location-pa8pe2x7.js} +7 -7
  152. package/dist/chunks/{location-bhhh305g.js → location-pbavp9d4.js} +17 -17
  153. package/dist/chunks/{location-f0rkppvs.js → location-pjvjbv32.js} +10 -10
  154. package/dist/chunks/{location-pedttwxr.js → location-pnaxc6j9.js} +7 -7
  155. package/dist/chunks/{location-7zt5x37y.js → location-pnzf6mjf.js} +1 -1
  156. package/dist/chunks/{location-smnkpcw6.js → location-ppc2pnsb.js} +4 -4
  157. package/dist/chunks/{location-296sdbys.js → location-pqxmmrpw.js} +58 -58
  158. package/dist/chunks/{location-p67zypcs.js → location-py28mc1m.js} +10 -10
  159. package/dist/chunks/{location-cfsekr6v.js → location-py3kkmfq.js} +1 -1
  160. package/dist/chunks/{location-ezy2bptn.js → location-qa96c720.js} +7 -7
  161. package/dist/chunks/{location-f9ergr2z.js → location-qh3vb1tn.js} +8 -8
  162. package/dist/chunks/{location-edjm0cp8.js → location-qhqe7njz.js} +37 -37
  163. package/dist/chunks/{location-djszqvmq.js → location-qmqgtz8f.js} +7 -7
  164. package/dist/chunks/{location-bfexnhf9.js → location-qmxh83kc.js} +54 -54
  165. package/dist/chunks/{location-d0n0cznh.js → location-qr0pk10y.js} +21 -21
  166. package/dist/chunks/{location-fn64ej17.js → location-qww9nh48.js} +48 -48
  167. package/dist/chunks/{location-sacwgt96.js → location-qxp4d2xp.js} +46 -46
  168. package/dist/chunks/{location-0eednbcc.js → location-r58s4v78.js} +10 -10
  169. package/dist/chunks/{location-d8ck81wr.js → location-r5atvkz9.js} +5 -5
  170. package/dist/chunks/{location-rj1g0c9z.js → location-rb6kc9en.js} +4 -4
  171. package/dist/chunks/{location-v6vf82bk.js → location-rf5ebq4s.js} +30 -30
  172. package/dist/chunks/{location-288wtq47.js → location-rmg8r6ny.js} +8 -8
  173. package/dist/chunks/{location-d41hc979.js → location-rnffhph3.js} +3 -3
  174. package/dist/chunks/{location-czbv8z0y.js → location-s1rrpmaa.js} +32 -32
  175. package/dist/chunks/{location-8fefh7g5.js → location-sdq79vbt.js} +19 -19
  176. package/dist/chunks/{location-yrwx0ryy.js → location-sfe13qt9.js} +18 -18
  177. package/dist/chunks/{location-33gaavb8.js → location-smz349yv.js} +26 -26
  178. package/dist/chunks/{location-rj26dvxy.js → location-spvg49p3.js} +32 -32
  179. package/dist/chunks/{location-x7x00081.js → location-sws9dtgm.js} +3 -3
  180. package/dist/chunks/{location-fqb2p7cx.js → location-t2fc4mz5.js} +3 -3
  181. package/dist/chunks/{location-6hjayvw0.js → location-t5z5wvj2.js} +4 -4
  182. package/dist/chunks/{location-8mc742af.js → location-t6wbbrfa.js} +26 -26
  183. package/dist/chunks/{location-bvjs27d2.js → location-t7cpp3m0.js} +1 -1
  184. package/dist/chunks/{location-r7srsjaq.js → location-t9ew0xaf.js} +7 -7
  185. package/dist/chunks/{location-cyhwh2m5.js → location-t9xcwzrx.js} +18 -18
  186. package/dist/chunks/{location-kfw6wn9j.js → location-ta6y1msd.js} +65 -65
  187. package/dist/chunks/{location-1hd2en9h.js → location-thkbvcgx.js} +1 -1
  188. package/dist/chunks/{location-q5z81sq7.js → location-tnr8ce74.js} +44 -44
  189. package/dist/chunks/{location-9k8v6d5w.js → location-tz3m3brz.js} +6 -6
  190. package/dist/chunks/{location-x5zkgxzc.js → location-v7yprycd.js} +8 -8
  191. package/dist/chunks/{location-368k0mgv.js → location-v8jdkmfs.js} +19 -19
  192. package/dist/chunks/{location-5psc1bef.js → location-v9tbcfk2.js} +15 -15
  193. package/dist/chunks/{location-1wg0848n.js → location-vaskyz0h.js} +17 -17
  194. package/dist/chunks/{location-pkqb68ka.js → location-vn72gsba.js} +1 -1
  195. package/dist/chunks/{location-czy5pfnh.js → location-w0nqy3aq.js} +7 -7
  196. package/dist/chunks/{location-jb2r3891.js → location-wb7mg7fb.js} +20 -20
  197. package/dist/chunks/{location-38phfjcn.js → location-wbt9zsn3.js} +7 -7
  198. package/dist/chunks/{location-89bv08xb.js → location-wp8xfje7.js} +23 -23
  199. package/dist/chunks/{location-w81mkxs7.js → location-ws2bx7td.js} +3 -3
  200. package/dist/chunks/{location-twfjgwa6.js → location-wt19589t.js} +2 -2
  201. package/dist/chunks/{location-zwdpfek5.js → location-x2tcbxjk.js} +29 -29
  202. package/dist/chunks/{location-bf3zn255.js → location-xfgbrct6.js} +11 -11
  203. package/dist/chunks/{location-g5w8qwbj.js → location-xfkkasph.js} +3 -3
  204. package/dist/chunks/{location-15a8baq2.js → location-xn2v0njk.js} +9 -9
  205. package/dist/chunks/{location-qw00nmad.js → location-xpfnkknw.js} +30 -30
  206. package/dist/chunks/{location-zajgawmg.js → location-xpg5nf0s.js} +28 -28
  207. package/dist/chunks/{location-syqhgwq0.js → location-xpt096d7.js} +3 -3
  208. package/dist/chunks/{location-cyhsea0k.js → location-xs12am9p.js} +7 -7
  209. package/dist/chunks/{location-m7er9qjp.js → location-xvf4b5tc.js} +25 -25
  210. package/dist/chunks/{location-36v99zb6.js → location-y0hnatt9.js} +13 -13
  211. package/dist/chunks/{location-qbjx7vtc.js → location-y4eq9c7t.js} +9 -9
  212. package/dist/chunks/{location-11dqjexa.js → location-y56ehv6b.js} +7 -7
  213. package/dist/chunks/{location-22e0sng0.js → location-y7rk29wk.js} +12 -12
  214. package/dist/chunks/{location-3ftqq3j8.js → location-ya99b1bg.js} +178 -178
  215. package/dist/chunks/{location-eb1krxtt.js → location-yb1pbjke.js} +20 -20
  216. package/dist/chunks/{location-m3971pjk.js → location-yjzd8xzf.js} +16 -16
  217. package/dist/chunks/{location-gw7cjrad.js → location-yrcj3v3g.js} +3 -3
  218. package/dist/chunks/{location-jp0p4yja.js → location-ywcwnstf.js} +28 -28
  219. package/dist/chunks/{location-1kexfm1y.js → location-yx4j6h9t.js} +81 -81
  220. package/dist/chunks/{location-y2zmc9zv.js → location-z8nhrpf5.js} +25 -25
  221. package/dist/chunks/{location-f73rjn58.js → location-zcrspsvn.js} +3 -3
  222. package/dist/chunks/{location-a0tnr6vv.js → location-zdw14zwb.js} +8 -8
  223. package/dist/chunks/{location-w7r147nf.js → location-zg3gffzg.js} +1 -1
  224. package/dist/chunks/{location-qygbw77c.js → location-zyk1yjk8.js} +3 -3
  225. package/dist/chunks/{location-a9568cjm.js → location-zzz4tyg8.js} +31 -31
  226. package/dist/codemode/instructions.js +4 -4
  227. package/dist/command.js +59 -59
  228. package/dist/config/discovery.js +55 -55
  229. package/dist/config/normalize.js +67 -67
  230. package/dist/config/plugin/agent.js +82 -82
  231. package/dist/config/plugin/command.js +163 -163
  232. package/dist/config/plugin/compaction.js +112 -112
  233. package/dist/config/plugin/compatibility.js +97 -97
  234. package/dist/config/plugin/formatter.js +81 -81
  235. package/dist/config/plugin/image.js +80 -80
  236. package/dist/config/plugin/instruction.js +60 -60
  237. package/dist/config/plugin/location-watcher.js +80 -80
  238. package/dist/config/plugin/mcp.js +90 -90
  239. package/dist/config/plugin/policy.js +81 -81
  240. package/dist/config/plugin/provider.js +80 -80
  241. package/dist/config/plugin/reference.js +81 -81
  242. package/dist/config/plugin/shell.js +82 -82
  243. package/dist/config/plugin/skill-file.js +70 -70
  244. package/dist/config/plugin/skill.js +100 -100
  245. package/dist/config/plugin/snapshot.js +80 -80
  246. package/dist/config/plugin/source.js +83 -83
  247. package/dist/config/plugin/tool-output.js +80 -80
  248. package/dist/config/plugin/websearch.js +81 -81
  249. package/dist/config/plugin/worktree.js +82 -82
  250. package/dist/config.js +86 -86
  251. package/dist/credential.js +62 -62
  252. package/dist/database/database.js +47 -47
  253. package/dist/database/drizzle/effect-sqlite/driver.js +6 -6
  254. package/dist/database/drizzle/effect-sqlite/index.js +4 -4
  255. package/dist/database/drizzle/effect-sqlite/session.js +5 -5
  256. package/dist/database/drizzle/index.js +7 -7
  257. package/dist/database/drizzle/sqlite-core/effect/db.js +3 -3
  258. package/dist/database/drizzle/sqlite-core/effect/index.js +2 -2
  259. package/dist/database/drizzle/sqlite-core/effect/session.js +4 -4
  260. package/dist/database/drizzle.js +7 -7
  261. package/dist/database/migration.gen.js +37 -37
  262. package/dist/database/migration.js +39 -39
  263. package/dist/database/v1-migration.bun.js +9 -9
  264. package/dist/effect/app-node-builder.js +231 -231
  265. package/dist/environment/environment.js +62 -62
  266. package/dist/environment/index.js +64 -64
  267. package/dist/event-logger.js +13 -13
  268. package/dist/file-access.js +73 -73
  269. package/dist/file-mutation.js +63 -63
  270. package/dist/filesystem/location-watcher-policy.js +5 -5
  271. package/dist/filesystem/location-watcher.js +173 -173
  272. package/dist/filesystem/search.js +66 -66
  273. package/dist/filesystem/watcher.js +13 -13
  274. package/dist/filesystem.js +65 -65
  275. package/dist/form.js +65 -65
  276. package/dist/formatter/builtins.js +3 -3
  277. package/dist/formatter.js +59 -59
  278. package/dist/generate.js +69 -69
  279. package/dist/git.js +7 -7
  280. package/dist/github-copilot/chat/openai-compatible-chat-language-model.js +4 -4
  281. package/dist/github-copilot/copilot-provider.js +3 -3
  282. package/dist/github-copilot/models.js +69 -69
  283. package/dist/github-copilot/responses/openai-responses-language-model.js +6 -6
  284. package/dist/github-copilot/responses/openai-responses-prepare-tools.js +3 -3
  285. package/dist/image/photon.js +1 -1
  286. package/dist/image.js +5 -5
  287. package/dist/instance/service.js +5 -5
  288. package/dist/instance.js +300 -300
  289. package/dist/instruction-discovery.js +56 -56
  290. package/dist/instructions/builtins.js +60 -60
  291. package/dist/instructions/index.js +3 -3
  292. package/dist/integration/connection.js +3 -3
  293. package/dist/integration.js +63 -63
  294. package/dist/job.js +56 -56
  295. package/dist/kv.js +52 -52
  296. package/dist/location-activity.js +55 -55
  297. package/dist/location-lifecycle.js +72 -72
  298. package/dist/location-service-map.js +59 -59
  299. package/dist/location-services.js +297 -297
  300. package/dist/location.js +58 -58
  301. package/dist/managed-policy.js +7 -7
  302. package/dist/mcp/client.js +16 -16
  303. package/dist/mcp/index.js +69 -69
  304. package/dist/mcp/instructions.js +94 -94
  305. package/dist/mcp/oauth.js +13 -13
  306. package/dist/mcp/stdio.js +59 -59
  307. package/dist/modal/models.js +69 -69
  308. package/dist/model-resolver.js +68 -68
  309. package/dist/model.js +70 -70
  310. package/dist/models-dev.js +73 -73
  311. package/dist/permission/saved.js +58 -58
  312. package/dist/permission.js +84 -84
  313. package/dist/persistent-pty/index.js +56 -56
  314. package/dist/persistent-pty.js +50 -50
  315. package/dist/plugin/agent.js +54 -54
  316. package/dist/plugin/command.js +68 -68
  317. package/dist/plugin/hooks.js +5 -5
  318. package/dist/plugin/host.js +166 -166
  319. package/dist/plugin/identity.js +3 -3
  320. package/dist/plugin/instance.js +5 -5
  321. package/dist/plugin/internal.js +274 -274
  322. package/dist/plugin/mcp-codemode-defaults.js +3 -3
  323. package/dist/plugin/models-dev.js +66 -66
  324. package/dist/plugin/module.js +81 -81
  325. package/dist/plugin/optimize.js +2 -2
  326. package/dist/plugin/plan.js +71 -71
  327. package/dist/plugin/provider/amazon-bedrock.js +60 -60
  328. package/dist/plugin/provider/azure.js +81 -81
  329. package/dist/plugin/provider/chatgpt.js +62 -62
  330. package/dist/plugin/provider/cloudflare-ai-gateway.js +78 -78
  331. package/dist/plugin/provider/cloudflare-workers-ai.js +78 -78
  332. package/dist/plugin/provider/configured.js +77 -77
  333. package/dist/plugin/provider/digitalocean.js +62 -62
  334. package/dist/plugin/provider/github-copilot.js +64 -64
  335. package/dist/plugin/provider/gitlab.js +62 -62
  336. package/dist/plugin/provider/google-vertex.js +78 -78
  337. package/dist/plugin/provider/llmgateway.js +54 -54
  338. package/dist/plugin/provider/lmstudio.js +81 -81
  339. package/dist/plugin/provider/local.js +78 -78
  340. package/dist/plugin/provider/modal.js +62 -62
  341. package/dist/plugin/provider/ollama.js +81 -81
  342. package/dist/plugin/provider/openai.js +61 -61
  343. package/dist/plugin/provider/opencode.js +67 -67
  344. package/dist/plugin/provider/openrouter.js +61 -61
  345. package/dist/plugin/provider/poe.js +54 -54
  346. package/dist/plugin/provider/prompt-cache-key.js +60 -60
  347. package/dist/plugin/provider/sap-ai-core.js +60 -60
  348. package/dist/plugin/provider/snowflake-cortex.js +79 -79
  349. package/dist/plugin/provider/vercel.js +60 -60
  350. package/dist/plugin/provider/vllm.js +81 -81
  351. package/dist/plugin/provider/xai.js +61 -61
  352. package/dist/plugin/provider.js +114 -114
  353. package/dist/plugin/sdk.js +55 -55
  354. package/dist/plugin/service.js +3 -3
  355. package/dist/plugin/skill.js +98 -98
  356. package/dist/plugin/supervisor.js +290 -290
  357. package/dist/plugin/tool-input-repair.js +3 -3
  358. package/dist/plugin/update.js +5 -5
  359. package/dist/plugin/vcs/git.js +58 -58
  360. package/dist/plugin/vcs/hg.js +58 -58
  361. package/dist/plugin/verbosity.js +63 -63
  362. package/dist/plugin/warming.js +79 -79
  363. package/dist/plugin/websearch/exa.js +6 -6
  364. package/dist/plugin/websearch/firecrawl.js +7 -7
  365. package/dist/plugin/websearch/index.js +8 -8
  366. package/dist/plugin/websearch/mcp.js +3 -3
  367. package/dist/plugin/websearch/parallel.js +7 -7
  368. package/dist/plugin/websearch/tavily.js +4 -4
  369. package/dist/plugin/websearch/tinyfish.js +7 -7
  370. package/dist/plugin.js +172 -172
  371. package/dist/project.js +57 -57
  372. package/dist/provider.js +71 -71
  373. package/dist/pty.js +62 -62
  374. package/dist/reference/instructions.js +64 -64
  375. package/dist/reference.js +66 -66
  376. package/dist/repository-cache.js +58 -58
  377. package/dist/ripgrep.js +63 -63
  378. package/dist/rpc.js +59 -59
  379. package/dist/session/command.js +52 -52
  380. package/dist/session/compaction.js +97 -97
  381. package/dist/session/context.js +114 -114
  382. package/dist/session/diff.js +58 -58
  383. package/dist/session/environment.js +5 -5
  384. package/dist/session/error.js +4 -4
  385. package/dist/session/execution/restart.js +111 -111
  386. package/dist/session/execution.js +96 -96
  387. package/dist/session/generate.js +113 -113
  388. package/dist/session/history.js +6 -6
  389. package/dist/session/inbox.js +61 -61
  390. package/dist/session/info.js +2 -2
  391. package/dist/session/instruction-entry.js +55 -55
  392. package/dist/session/instruction-state.js +2 -2
  393. package/dist/session/instructions.js +67 -67
  394. package/dist/session/message-updater.js +3 -3
  395. package/dist/session/model-request.js +86 -86
  396. package/dist/session/model-transport.js +7 -7
  397. package/dist/session/move.js +97 -97
  398. package/dist/session/projector.js +58 -58
  399. package/dist/session/prompt.js +73 -73
  400. package/dist/session/provider-context.js +3 -3
  401. package/dist/session/revert.js +59 -59
  402. package/dist/session/run-coordinator.js +3 -3
  403. package/dist/session/runner/index.js +3 -3
  404. package/dist/session/runner/llm.js +176 -176
  405. package/dist/session/runner/model.js +68 -68
  406. package/dist/session/runner/publish-llm-event.js +81 -81
  407. package/dist/session/runner/retry.js +3 -3
  408. package/dist/session/runner/step.js +92 -92
  409. package/dist/session/runner/to-llm-message.js +2 -2
  410. package/dist/session/schema.js +5 -5
  411. package/dist/session/session.js +126 -126
  412. package/dist/session/shell.js +93 -93
  413. package/dist/session/skill.js +72 -72
  414. package/dist/session/stats.js +8 -8
  415. package/dist/session/store.js +61 -61
  416. package/dist/session/subagent-job.js +159 -159
  417. package/dist/session/system-prompt.js +3 -3
  418. package/dist/session/title.js +117 -117
  419. package/dist/session/to-session-error.js +80 -80
  420. package/dist/session/transfer.js +108 -108
  421. package/dist/session.js +170 -170
  422. package/dist/shell/parse.js +3 -3
  423. package/dist/shell/select.js +11 -11
  424. package/dist/shell.js +96 -96
  425. package/dist/skill/discovery.js +5 -5
  426. package/dist/skill/instructions.js +76 -76
  427. package/dist/skill.js +77 -77
  428. package/dist/snapshot.js +65 -65
  429. package/dist/tool/mcp.js +89 -89
  430. package/dist/tool/plugin/edit.js +84 -84
  431. package/dist/tool/plugin/glob.js +87 -87
  432. package/dist/tool/plugin/grep.js +87 -87
  433. package/dist/tool/plugin/mcp-resource.js +82 -82
  434. package/dist/tool/plugin/opencode.js +76 -76
  435. package/dist/tool/plugin/patch.js +84 -84
  436. package/dist/tool/plugin/question.js +74 -74
  437. package/dist/tool/plugin/read.js +87 -87
  438. package/dist/tool/plugin/shell.js +167 -167
  439. package/dist/tool/plugin/skill.js +80 -80
  440. package/dist/tool/plugin/subagent.js +168 -168
  441. package/dist/tool/plugin/webfetch.js +75 -75
  442. package/dist/tool/plugin/websearch.js +83 -83
  443. package/dist/tool/plugin/write.js +86 -86
  444. package/dist/tool/read-filesystem.js +66 -66
  445. package/dist/tool-output.js +5 -5
  446. package/dist/tool.js +9 -9
  447. package/dist/types/session/history.d.ts +32 -0
  448. package/dist/types/session/transfer.d.ts +19 -0
  449. package/dist/v1/config/command.js +3 -3
  450. package/dist/v1/config/mcp.js +3 -3
  451. package/dist/v1/config/migrate.js +61 -61
  452. package/dist/v1/config/plugin.js +3 -3
  453. package/dist/v1/config/provider.js +3 -3
  454. package/dist/variant.js +63 -63
  455. package/dist/vcs.js +59 -59
  456. package/dist/websearch.js +62 -62
  457. package/dist/wellknown/plugin.js +55 -55
  458. package/dist/wellknown.js +58 -58
  459. package/dist/workspace/driver.js +7 -7
  460. package/dist/workspace.js +57 -57
  461. package/dist/worktree/git.js +6 -6
  462. package/dist/worktree/strategies.js +60 -60
  463. package/dist/worktree.js +66 -66
  464. package/package.json +8 -8
  465. package/dist/chunks/location-350gfnr7.js +0 -26
  466. package/dist/chunks/location-xzkm26z5.js +0 -253
  467. /package/dist/chunks/{location-y8dg3yja.js → location-08mjp3pt.js} +0 -0
  468. /package/dist/chunks/{location-kerhshr9.js → location-0t098hqn.js} +0 -0
  469. /package/dist/chunks/{location-c0gy5km3.js → location-3xqh13de.js} +0 -0
  470. /package/dist/chunks/{location-5camtqdd.js → location-w0pdyb55.js} +0 -0
@@ -1,25 +1,25 @@
1
1
  import {
2
- Service78,
3
- node82
4
- } from "./location-510enc9r.js";
2
+ Service83,
3
+ node87
4
+ } from "./location-by659cs7.js";
5
5
  import {
6
6
  shutdown2,
7
7
  create3
8
8
  } from "./location-rdw6cm16.js";
9
9
  import {
10
- Service75,
11
- node79
12
- } from "./location-w9w8c5s2.js";
10
+ Service80,
11
+ node84
12
+ } from "./location-7wpc5jwh.js";
13
13
  import {
14
- rewrite2,
15
- ID9,
14
+ ID13,
16
15
  modelSettings2,
17
16
  mergeOverlay2,
18
17
  mergeHeaders2,
19
- Service64,
20
- node68,
21
- Event15
22
- } from "./location-swtxrcf0.js";
18
+ Service76,
19
+ node80,
20
+ Event17,
21
+ rewrite2
22
+ } from "./location-m46z4pcf.js";
23
23
  import {
24
24
  __export
25
25
  } from "./location-9rqn6x4v.js";
@@ -30,18 +30,18 @@ __export(exports_model2, {
30
30
  Capabilities: () => Capabilities2,
31
31
  Compatibility: () => Compatibility2,
32
32
  Cost: () => Cost2,
33
- Event: () => Event14,
33
+ Event: () => Event16,
34
34
  Family: () => Family2,
35
- ID: () => ID8,
36
- Info: () => Info17,
35
+ ID: () => ID12,
36
+ Info: () => Info21,
37
37
  Model: () => exports_model2,
38
38
  ReasoningField: () => ReasoningField2,
39
39
  Ref: () => Ref2,
40
- Service: () => Service63,
40
+ Service: () => Service75,
41
41
  VariantID: () => VariantID2,
42
42
  compatibility: () => compatibility2,
43
43
  mergeCapabilities: () => mergeCapabilities2,
44
- node: () => node67,
44
+ node: () => node79,
45
45
  parse: () => parse5,
46
46
  supportsText: () => supportsText2
47
47
  });
@@ -49,8 +49,8 @@ import { Model } from "@opencode/schema/model";
49
49
  import { Context, Effect, Layer, Stream } from "effect";
50
50
  import { makeLocationNode } from "@opencode/util/effect/app-node";
51
51
  import { freeze } from "immer";
52
- import { Event as Event14 } from "@opencode/schema/model";
53
- var ID8 = Model.ID;
52
+ import { Event as Event16 } from "@opencode/schema/model";
53
+ var ID12 = Model.ID;
54
54
  var VariantID2 = Model.VariantID;
55
55
  var Family2 = Model.Family;
56
56
  var ReasoningField2 = Model.ReasoningField;
@@ -66,14 +66,14 @@ var mergeCapabilities2 = (config, base) => {
66
66
  };
67
67
  var Cost2 = Model.Cost;
68
68
  var Ref2 = Model.Ref;
69
- var Info17 = Model.Info;
69
+ var Info21 = Model.Info;
70
70
 
71
- class Service63 extends Context.Service()("@opencode/Model") {
71
+ class Service75 extends Context.Service()("@opencode/Model") {
72
72
  }
73
- var layer = Layer.effect(Service63, Effect.gen(function* () {
74
- const providers = yield* Service64;
75
- const bus = yield* Service78;
76
- const location = yield* Service75;
73
+ var layer = Layer.effect(Service75, Effect.gen(function* () {
74
+ const providers = yield* Service76;
75
+ const bus = yield* Service83;
76
+ const location = yield* Service80;
77
77
  let input;
78
78
  const state = create3({
79
79
  name: "model",
@@ -118,7 +118,7 @@ var layer = Layer.effect(Service63, Effect.gen(function* () {
118
118
  const models = writable(providerID);
119
119
  if (!models)
120
120
  return;
121
- const model = draft(providerID, modelID) ?? Info17.default(providerID, modelID);
121
+ const model = draft(providerID, modelID) ?? Info21.default(providerID, modelID);
122
122
  update(model);
123
123
  model.id = modelID;
124
124
  model.providerID = providerID;
@@ -207,8 +207,8 @@ var layer = Layer.effect(Service63, Effect.gen(function* () {
207
207
  location: { directory: location.directory, workspaceID: location.workspaceID }
208
208
  });
209
209
  });
210
- yield* bus.subscribe(Event15.Updated).pipe(Stream.runForEach(() => notify), Effect.forkScoped({ startImmediately: true }));
211
- return Service63.of({
210
+ yield* bus.subscribe(Event17.Updated).pipe(Stream.runForEach(() => notify), Effect.forkScoped({ startImmediately: true }));
211
+ return Service75.of({
212
212
  transform: (update) => prepare.pipe(Effect.andThen(state.transform(update))),
213
213
  reload,
214
214
  get: Effect.fn("Model.get")((providerID, modelID) => read().pipe(Effect.map((value) => value.byProvider.get(providerID)?.get(modelID)))),
@@ -227,7 +227,7 @@ var layer = Layer.effect(Service63, Effect.gen(function* () {
227
227
  })
228
228
  });
229
229
  }));
230
- var node67 = makeLocationNode({ service: Service63, layer, deps: [node68, node82, node79] });
230
+ var node79 = makeLocationNode({ service: Service75, layer, deps: [node80, node87, node84] });
231
231
  function supportsText2(model) {
232
232
  return (model.capabilities.input.length === 0 || model.capabilities.input.some((item) => item.startsWith("text"))) && (model.capabilities.output.length === 0 || model.capabilities.output.some((item) => item.startsWith("text")));
233
233
  }
@@ -241,9 +241,9 @@ function compatibility2(input) {
241
241
  function parse5(input) {
242
242
  const index = input.indexOf("/");
243
243
  return {
244
- providerID: ID9.make(index === -1 ? input : input.slice(0, index)),
245
- modelID: ID8.make(index === -1 ? "" : input.slice(index + 1))
244
+ providerID: ID13.make(index === -1 ? input : input.slice(0, index)),
245
+ modelID: ID12.make(index === -1 ? "" : input.slice(index + 1))
246
246
  };
247
247
  }
248
248
 
249
- export { ID8, VariantID2, Family2, ReasoningField2, Compatibility2, Capabilities2, mergeCapabilities2, Cost2, Ref2, Info17, Service63, node67, supportsText2, compatibility2, parse5, exports_model2, Event14 };
249
+ export { ID12, VariantID2, Family2, ReasoningField2, Compatibility2, Capabilities2, mergeCapabilities2, Cost2, Ref2, Info21, Service75, node79, supportsText2, compatibility2, parse5, exports_model2, Event16 };
@@ -1,10 +1,10 @@
1
1
  import {
2
- Service61,
3
- node65
4
- } from "./location-q5z81sq7.js";
2
+ Service51,
3
+ node54
4
+ } from "./location-tnr8ce74.js";
5
5
  import {
6
6
  SessionSchema2
7
- } from "./location-ss358qx3.js";
7
+ } from "./location-arz7hw7x.js";
8
8
  import {
9
9
  __export
10
10
  } from "./location-9rqn6x4v.js";
@@ -14,9 +14,9 @@ var exports_model = {};
14
14
  __export(exports_model, {
15
15
  ModelNotSelectedError: () => ModelNotSelectedError2,
16
16
  ModelUnavailableError: () => ModelUnavailableError2,
17
- Service: () => Service60,
17
+ Service: () => Service43,
18
18
  SessionRunnerModel: () => exports_model,
19
- node: () => node64,
19
+ node: () => node45,
20
20
  resolved: () => resolved2
21
21
  });
22
22
  import { makeLocationNode } from "@opencode/util/effect/app-node";
@@ -39,7 +39,7 @@ class ModelUnavailableError2 extends Schema.TaggedError()("SessionRunnerModel.Mo
39
39
  }
40
40
  }
41
41
 
42
- class Service60 extends Context.Service()("@opencode/SessionRunnerModel") {
42
+ class Service43 extends Context.Service()("@opencode/SessionRunnerModel") {
43
43
  }
44
44
  var resolved2 = (model, options) => ({
45
45
  model,
@@ -54,9 +54,9 @@ var resolved2 = (model, options) => ({
54
54
  compaction: options.compaction,
55
55
  transport: options.transport
56
56
  });
57
- var layer = Layer.effect(Service60, Effect.gen(function* () {
58
- const resolver = yield* Service61;
59
- return Service60.of({
57
+ var layer = Layer.effect(Service43, Effect.gen(function* () {
58
+ const resolver = yield* Service51;
59
+ return Service43.of({
60
60
  resolve: Effect.fn("SessionRunnerModel.resolve")(function* (session, available) {
61
61
  if (!session.model) {
62
62
  const resolved = yield* resolver.resolve();
@@ -74,6 +74,6 @@ var layer = Layer.effect(Service60, Effect.gen(function* () {
74
74
  })
75
75
  });
76
76
  }));
77
- var node64 = makeLocationNode({ service: Service60, layer, deps: [node65] });
77
+ var node45 = makeLocationNode({ service: Service43, layer, deps: [node54] });
78
78
 
79
- export { ModelNotSelectedError2, ModelUnavailableError2, Service60, resolved2, node64, exports_model };
79
+ export { ModelNotSelectedError2, ModelUnavailableError2, Service43, resolved2, node45, exports_model };
@@ -1,31 +1,31 @@
1
1
  import {
2
- Key4,
2
+ Key3,
3
3
  removed2,
4
4
  make22,
5
5
  diffByKey2
6
- } from "./location-wv396vej.js";
6
+ } from "./location-9t7a50xb.js";
7
7
  import {
8
- ID5,
8
+ ID4,
9
9
  Name2,
10
10
  available3,
11
- Service44,
12
- node47
13
- } from "./location-w89t5azj.js";
11
+ Service47,
12
+ node49
13
+ } from "./location-asvfb1gz.js";
14
14
  import {
15
15
  __export
16
16
  } from "./location-9rqn6x4v.js";
17
17
 
18
18
  // src/skill/instructions.ts
19
- var exports_instructions3 = {};
20
- __export(exports_instructions3, {
21
- Service: () => Service31,
22
- SkillInstructions: () => exports_instructions3,
23
- node: () => node34
19
+ var exports_instructions5 = {};
20
+ __export(exports_instructions5, {
21
+ Service: () => Service37,
22
+ SkillInstructions: () => exports_instructions5,
23
+ node: () => node40
24
24
  });
25
25
  import { makeLocationNode } from "@opencode/util/effect/app-node";
26
26
  import { Context, Effect, Layer, Schema } from "effect";
27
27
  var Summary = Schema.Struct({
28
- id: ID5,
28
+ id: ID4,
29
29
  name: Name2,
30
30
  description: Schema.String
31
31
  });
@@ -60,15 +60,15 @@ var update = (previous, current) => {
60
60
  `);
61
61
  };
62
62
 
63
- class Service31 extends Context.Service()("@opencode/SkillInstructions") {
63
+ class Service37 extends Context.Service()("@opencode/SkillInstructions") {
64
64
  }
65
- var layer = Layer.effect(Service31, Effect.gen(function* () {
66
- const skills = yield* Service44;
67
- return Service31.of({
65
+ var layer = Layer.effect(Service37, Effect.gen(function* () {
66
+ const skills = yield* Service47;
67
+ return Service37.of({
68
68
  load: Effect.fn("SkillInstructions.load")(function* (permissions) {
69
69
  const available = available3(yield* skills.list(), permissions).flatMap((skill) => skill.description === undefined || skill.autoinvoke === false ? [] : [{ id: skill.id, name: skill.name, description: skill.description }]).toSorted((a, b) => a.id.localeCompare(b.id));
70
70
  return make22({
71
- key: Key4.make("core/skill-guidance"),
71
+ key: Key3.make("core/skill-guidance"),
72
72
  codec: Schema.toCodecJson(Schema.Array(Summary)),
73
73
  read: Effect.succeed(available.length === 0 ? removed2 : available),
74
74
  render: {
@@ -80,6 +80,6 @@ var layer = Layer.effect(Service31, Effect.gen(function* () {
80
80
  })
81
81
  });
82
82
  }));
83
- var node34 = makeLocationNode({ service: Service31, layer, deps: [node47] });
83
+ var node40 = makeLocationNode({ service: Service37, layer, deps: [node49] });
84
84
 
85
- export { Service31, node34, exports_instructions3 };
85
+ export { Service37, node40, exports_instructions5 };
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  Service84,
3
3
  node88
4
- } from "./location-ccyehgd0.js";
4
+ } from "./location-6t1m34v8.js";
5
5
  import {
6
6
  KVTable2
7
7
  } from "./location-3hepkmqq.js";
@@ -13,17 +13,17 @@ import {
13
13
  var exports_kv = {};
14
14
  __export(exports_kv, {
15
15
  KV: () => exports_kv,
16
- Service: () => Service83,
17
- node: () => node87
16
+ Service: () => Service74,
17
+ node: () => node78
18
18
  });
19
19
  import { and, asc, eq, gt, gte, lt } from "drizzle-orm";
20
20
  import { Context, Effect, Layer } from "effect";
21
21
  import { makeGlobalNode } from "@opencode/util/effect/app-node";
22
- class Service83 extends Context.Service()("@opencode/KV") {
22
+ class Service74 extends Context.Service()("@opencode/KV") {
23
23
  }
24
- var layer = Layer.effect(Service83, Effect.gen(function* () {
24
+ var layer = Layer.effect(Service74, Effect.gen(function* () {
25
25
  const db = (yield* Service84).db;
26
- return Service83.of({
26
+ return Service74.of({
27
27
  get: Effect.fn("KV.get")(function* (key) {
28
28
  return (yield* db.select({ value: KVTable2.value }).from(KVTable2).where(eq(KVTable2.key, key)).get().pipe(Effect.orDie))?.value;
29
29
  }),
@@ -51,6 +51,6 @@ function prefixEnd(prefix) {
51
51
  return;
52
52
  return `${points.slice(0, index).join("")}${String.fromCodePoint(points[index].codePointAt(0) + 1)}`;
53
53
  }
54
- var node87 = makeGlobalNode({ service: Service83, layer, deps: [node88] });
54
+ var node78 = makeGlobalNode({ service: Service74, layer, deps: [node88] });
55
55
 
56
- export { Service83, node87, exports_kv };
56
+ export { Service74, node78, exports_kv };
@@ -1,9 +1,9 @@
1
1
  import {
2
- Service48
3
- } from "./location-n0ntqt9g.js";
2
+ Service59
3
+ } from "./location-1g5f91mn.js";
4
4
  import {
5
- Service12
6
- } from "./location-edjm0cp8.js";
5
+ Service8
6
+ } from "./location-qhqe7njz.js";
7
7
  import {
8
8
  observe2
9
9
  } from "./location-qsdy395h.js";
@@ -15,15 +15,15 @@ import {
15
15
  var exports_compaction = {};
16
16
  __export(exports_compaction, {
17
17
  ConfigCompactionPlugin: () => exports_compaction,
18
- Plugin: () => Plugin47
18
+ Plugin: () => Plugin14
19
19
  });
20
20
  import { define } from "@opencode/plugin/effect/plugin";
21
21
  import { Effect } from "effect";
22
- var Plugin47 = define({
22
+ var Plugin14 = define({
23
23
  id: "opencode.config.compaction",
24
24
  effect: Effect.fn(function* (ctx) {
25
- const config = yield* Service48;
26
- const compaction = yield* Service12;
25
+ const config = yield* Service59;
26
+ const compaction = yield* Service8;
27
27
  const loaded = yield* observe2(config, ctx.event, compaction.reload());
28
28
  yield* compaction.transform((editor) => {
29
29
  for (const entry of loaded.entries) {
@@ -39,4 +39,4 @@ var Plugin47 = define({
39
39
  })
40
40
  });
41
41
 
42
- export { Plugin47, exports_compaction };
42
+ export { Plugin14, exports_compaction };
@@ -1,11 +1,11 @@
1
1
  import {
2
2
  Service84,
3
3
  node88
4
- } from "./location-ccyehgd0.js";
4
+ } from "./location-6t1m34v8.js";
5
5
  import {
6
- Service78,
7
- node82
8
- } from "./location-510enc9r.js";
6
+ Service83,
7
+ node87
8
+ } from "./location-by659cs7.js";
9
9
  import {
10
10
  CredentialTable2
11
11
  } from "./location-pknna89w.js";
@@ -20,46 +20,46 @@ import {
20
20
  var exports_credential = {};
21
21
  __export(exports_credential, {
22
22
  Credential: () => exports_credential,
23
- Event: () => Event18,
23
+ Event: () => Event19,
24
24
  External: () => External2,
25
- ID: () => ID12,
26
- Info: () => Info22,
27
- Key: () => Key3,
25
+ ID: () => ID15,
26
+ Info: () => Info25,
27
+ Key: () => Key4,
28
28
  OAuth: () => OAuth3,
29
- Service: () => Service69,
29
+ Service: () => Service78,
30
30
  Value: () => Value2,
31
- node: () => node73
31
+ node: () => node82
32
32
  });
33
33
  import { asc, desc, eq } from "drizzle-orm";
34
34
  import { Cause, Context, Effect, Layer, Schema } from "effect";
35
35
  import { Credential } from "@opencode/schema/credential";
36
36
  import { Integration } from "@opencode/schema/integration";
37
37
  import { makeGlobalNode } from "@opencode/util/effect/app-node";
38
- var ID12 = Credential.ID;
38
+ var ID15 = Credential.ID;
39
39
  var OAuth3 = Credential.OAuth;
40
- var Key3 = Credential.Key;
40
+ var Key4 = Credential.Key;
41
41
  var External2 = Credential.External;
42
42
  var Value2 = Credential.Value;
43
- var Event18 = Credential.Event;
43
+ var Event19 = Credential.Event;
44
44
 
45
- class Info22 extends Schema.Class("Credential.Info")({
46
- id: ID12,
45
+ class Info25 extends Schema.Class("Credential.Info")({
46
+ id: ID15,
47
47
  integrationID: Integration.ID,
48
48
  label: Schema.String,
49
49
  value: Value2
50
50
  }) {
51
51
  }
52
52
 
53
- class Service69 extends Context.Service()("@opencode/Credential") {
53
+ class Service78 extends Context.Service()("@opencode/Credential") {
54
54
  }
55
- var layer = Layer.effect(Service69, Effect.gen(function* () {
55
+ var layer = Layer.effect(Service78, Effect.gen(function* () {
56
56
  const db = (yield* Service84).db;
57
- const bus = yield* Service78;
57
+ const bus = yield* Service83;
58
58
  const decode = Schema.decodeUnknownSync(Value2);
59
59
  const stored = (row) => {
60
60
  if (!row.integration_id)
61
61
  return;
62
- return new Info22({
62
+ return new Info25({
63
63
  id: row.id,
64
64
  integrationID: row.integration_id,
65
65
  label: row.label,
@@ -70,7 +70,7 @@ var layer = Layer.effect(Service69, Effect.gen(function* () {
70
70
  const credential = stored(row);
71
71
  return credential ? [credential] : [];
72
72
  });
73
- return Service69.of({
73
+ return Service78.of({
74
74
  all: Effect.fn("Credential.all")(() => db.select().from(CredentialTable2).orderBy(asc(CredentialTable2.active), asc(CredentialTable2.time_created), asc(CredentialTable2.id)).all().pipe(Effect.orDie, Effect.map(storedRows))),
75
75
  list: Effect.fn("Credential.list")((integrationID) => db.select().from(CredentialTable2).where(eq(CredentialTable2.integration_id, integrationID)).orderBy(asc(CredentialTable2.active), asc(CredentialTable2.time_created), asc(CredentialTable2.id)).all().pipe(Effect.orDie, Effect.map(storedRows))),
76
76
  get: Effect.fn("Credential.get")(function* (id) {
@@ -78,8 +78,8 @@ var layer = Layer.effect(Service69, Effect.gen(function* () {
78
78
  return row ? stored(row) : undefined;
79
79
  }),
80
80
  create: Effect.fn("Credential.create")(function* (input) {
81
- const credential = new Info22({
82
- id: input.id ?? ID12.create(),
81
+ const credential = new Info25({
82
+ id: input.id ?? ID15.create(),
83
83
  integrationID: input.integrationID,
84
84
  label: input.label ?? "default",
85
85
  value: input.value
@@ -110,9 +110,9 @@ var layer = Layer.effect(Service69, Effect.gen(function* () {
110
110
  type: credential.value.type,
111
111
  active: activated
112
112
  });
113
- yield* bus.publish(Event18.Updated, {}, { global: true });
113
+ yield* bus.publish(Event19.Updated, {}, { global: true });
114
114
  if (activated)
115
- yield* bus.publish(Event18.Switched, { integrationID: credential.integrationID, credentialID: credential.id }, { global: true });
115
+ yield* bus.publish(Event19.Switched, { integrationID: credential.integrationID, credentialID: credential.id }, { global: true });
116
116
  return credential;
117
117
  }),
118
118
  activate: Effect.fn("Credential.activate")(function* (id) {
@@ -132,7 +132,7 @@ var layer = Layer.effect(Service69, Effect.gen(function* () {
132
132
  })), Effect.orDie);
133
133
  if (integrationID) {
134
134
  yield* Effect.logInfo("credential activated", { integrationID, credentialID: id });
135
- yield* bus.publish(Event18.Switched, { integrationID, credentialID: id }, { global: true });
135
+ yield* bus.publish(Event19.Switched, { integrationID, credentialID: id }, { global: true });
136
136
  }
137
137
  }),
138
138
  update: Effect.fn("Credential.update")(function* (id, updates) {
@@ -164,7 +164,7 @@ var layer = Layer.effect(Service69, Effect.gen(function* () {
164
164
  labelChanged: updates.label !== undefined && updates.label !== credential.label
165
165
  });
166
166
  if (updates.label !== undefined && updates.label !== credential.label)
167
- yield* bus.publish(Event18.Updated, {}, { global: true });
167
+ yield* bus.publish(Event19.Updated, {}, { global: true });
168
168
  }),
169
169
  remove: Effect.fn("Credential.remove")(function* (id) {
170
170
  const removed = yield* db.transaction((tx) => Effect.gen(function* () {
@@ -197,12 +197,12 @@ var layer = Layer.effect(Service69, Effect.gen(function* () {
197
197
  active: removed.switched,
198
198
  ...removed.switched ? { replacementID: removed.credentialID } : {}
199
199
  });
200
- yield* bus.publish(Event18.Updated, {}, { global: true });
200
+ yield* bus.publish(Event19.Updated, {}, { global: true });
201
201
  if (removed.switched)
202
- yield* bus.publish(Event18.Switched, { integrationID: removed.integrationID, credentialID: removed.credentialID }, { global: true });
202
+ yield* bus.publish(Event19.Switched, { integrationID: removed.integrationID, credentialID: removed.credentialID }, { global: true });
203
203
  })
204
204
  });
205
205
  }));
206
- var node73 = makeGlobalNode({ service: Service69, layer, deps: [node88, node82] });
206
+ var node82 = makeGlobalNode({ service: Service78, layer, deps: [node88, node87] });
207
207
 
208
- export { ID12, OAuth3, Key3, External2, Value2, Event18, Info22, Service69, node73, exports_credential };
208
+ export { ID15, OAuth3, Key4, External2, Value2, Event19, Info25, Service78, node82, exports_credential };
@@ -1,20 +1,20 @@
1
1
  import {
2
- Service51
3
- } from "./location-gen3kpyr.js";
2
+ Service56
3
+ } from "./location-ep4m400e.js";
4
4
  import {
5
- Service15,
5
+ Service20,
6
6
  readText2,
7
7
  syncTextBom2
8
- } from "./location-frz66pft.js";
8
+ } from "./location-4pedpz6c.js";
9
9
  import {
10
- Service13
11
- } from "./location-rnnnfbw7.js";
10
+ Service65
11
+ } from "./location-mw9b1c9f.js";
12
12
  import {
13
- Service71
14
- } from "./location-296sdbys.js";
13
+ Service66
14
+ } from "./location-pqxmmrpw.js";
15
15
  import {
16
- Service21
17
- } from "./location-00q60weh.js";
16
+ Service50
17
+ } from "./location-02609e96.js";
18
18
  import {
19
19
  fileDiff2
20
20
  } from "./location-6prwharc.js";
@@ -25,48 +25,48 @@ import {
25
25
  // src/tool/plugin/write.ts
26
26
  var exports_write = {};
27
27
  __export(exports_write, {
28
- Input: () => Input8,
29
- Output: () => Output6,
30
- Plugin: () => Plugin26,
28
+ Input: () => Input12,
29
+ Output: () => Output8,
30
+ Plugin: () => Plugin49,
31
31
  WriteTool: () => exports_write,
32
- name: () => name8,
33
- toModelContent: () => toModelContent3
32
+ name: () => name12,
33
+ toModelContent: () => toModelContent6
34
34
  });
35
35
  import { ToolFailure } from "@opencode/ai";
36
36
  import { Effect, Schema } from "effect";
37
37
  import { Bom } from "@opencode/util/bom";
38
- var name8 = "write";
39
- var Input8 = Schema.Struct({
38
+ var name12 = "write";
39
+ var Input12 = Schema.Struct({
40
40
  path: Schema.String.annotate({
41
41
  description: "Path to the file to write to"
42
42
  }),
43
43
  content: Schema.String.annotate({ description: "Content to write to the file" })
44
44
  });
45
- var Output6 = Schema.Struct({
45
+ var Output8 = Schema.Struct({
46
46
  operation: Schema.Literal("write"),
47
47
  target: Schema.String,
48
48
  resource: Schema.String,
49
49
  existed: Schema.Boolean
50
50
  });
51
- var toModelContent3 = (output) => `${output.existed ? "Wrote" : "Created"} file successfully: ${output.resource}`;
52
- var Plugin26 = {
51
+ var toModelContent6 = (output) => `${output.existed ? "Wrote" : "Created"} file successfully: ${output.resource}`;
52
+ var Plugin49 = {
53
53
  id: "opencode.tool.write",
54
54
  effect: Effect.fn("WriteTool.Plugin")(function* (ctx) {
55
- const access = yield* Service21;
56
- const fileMutation = yield* Service15;
57
- const environment = yield* Service51;
58
- const formatter = yield* Service13;
59
- const permission = yield* Service71;
55
+ const access = yield* Service50;
56
+ const fileMutation = yield* Service20;
57
+ const environment = yield* Service56;
58
+ const formatter = yield* Service65;
59
+ const permission = yield* Service66;
60
60
  yield* ctx.tool.transform((editor) => editor.add({
61
- name: name8,
61
+ name: name12,
62
62
  options: { codemode: false, permission: "edit" },
63
63
  description: `Writes a file to the local filesystem, overwriting if one exists.
64
64
 
65
65
  Missing parent directories are created automatically.
66
66
 
67
67
  Use this tool to create new files or overwrite existing files. For partial changes, use the edit tool instead.`,
68
- input: Input8,
69
- output: Output6,
68
+ input: Input12,
69
+ output: Output8,
70
70
  execute: (input, context) => Effect.gen(function* () {
71
71
  const source = {
72
72
  type: "tool",
@@ -93,9 +93,9 @@ Use this tool to create new files or overwrite existing files. For partial chang
93
93
  yield* syncTextBom2(environment.files, target.absolute, bom);
94
94
  }
95
95
  return result;
96
- }).pipe(Effect.map((output) => ({ output, content: toModelContent3(output) })), Effect.mapError((error) => new ToolFailure({ message: `Unable to write ${input.path}`, error })))
96
+ }).pipe(Effect.map((output) => ({ output, content: toModelContent6(output) })), Effect.mapError((error) => new ToolFailure({ message: `Unable to write ${input.path}`, error })))
97
97
  })).pipe(Effect.orDie);
98
98
  })
99
99
  };
100
100
 
101
- export { name8, Input8, Output6, toModelContent3, Plugin26, exports_write };
101
+ export { name12, Input12, Output8, toModelContent6, Plugin49, exports_write };
@@ -10,7 +10,7 @@ __export(exports_instructions6, {
10
10
  Hash: () => Hash2,
11
11
  InitializationBlocked: () => InitializationBlocked2,
12
12
  Instructions: () => exports_instructions6,
13
- Key: () => Key4,
13
+ Key: () => Key3,
14
14
  Values: () => Values2,
15
15
  applyHashDelta: () => applyHashDelta2,
16
16
  combine: () => combine2,
@@ -28,7 +28,7 @@ __export(exports_instructions6, {
28
28
  import { createHash } from "crypto";
29
29
  import { Instruction } from "@opencode/schema/instruction";
30
30
  import { Data, Effect, Option, Schema } from "effect";
31
- var Key4 = Instruction.Key;
31
+ var Key3 = Instruction.Key;
32
32
  var Hash2 = Instruction.Hash;
33
33
  var Values2 = Instruction.Values;
34
34
  var Delta2 = Instruction.Delta;
@@ -36,14 +36,14 @@ var NonValue = Data.taggedEnum();
36
36
  var unavailable3 = NonValue.Unavailable();
37
37
  var removed2 = NonValue.Removed();
38
38
 
39
- class InitializationBlocked2 extends Schema.TaggedError()("Instructions.InitializationBlocked", { keys: Schema.Array(Key4) }) {
39
+ class InitializationBlocked2 extends Schema.TaggedError()("Instructions.InitializationBlocked", { keys: Schema.Array(Key3) }) {
40
40
  get message() {
41
41
  return `Instruction initialization blocked by unavailable sources: ${this.keys.join(", ")}`;
42
42
  }
43
43
  }
44
44
 
45
45
  class DuplicateKeyError2 extends Schema.TaggedError()("Instructions.DuplicateKeyError", {
46
- key: Key4
46
+ key: Key3
47
47
  }) {
48
48
  get message() {
49
49
  return `Duplicate instruction key: ${this.key}`;
@@ -193,4 +193,4 @@ function requireText(key, kind, text) {
193
193
  return text;
194
194
  }
195
195
 
196
- export { Key4, Hash2, Values2, Delta2, unavailable3, removed2, InitializationBlocked2, DuplicateKeyError2, empty3, make22, combine2, read3, diff2, renderInitial2, renderUpdate2, hash2, applyHashDelta2, diffByKey2, exports_instructions6 };
196
+ export { Key3, Hash2, Values2, Delta2, unavailable3, removed2, InitializationBlocked2, DuplicateKeyError2, empty3, make22, combine2, read3, diff2, renderInitial2, renderUpdate2, hash2, applyHashDelta2, diffByKey2, exports_instructions6 };