@opencode/core 0.0.0-dev-19709 → 0.0.0-dev-19711

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 (790) hide show
  1. package/dist/account/sql.js +1 -1
  2. package/dist/agent.js +80 -80
  3. package/dist/aisdk-native.js +88 -88
  4. package/dist/aisdk.js +93 -93
  5. package/dist/app.js +9 -9
  6. package/dist/bus.js +72 -72
  7. package/dist/chunks/{pty-ar88qa8v.js → worktree-0230e1kb.js} +7 -7
  8. package/dist/chunks/{pty-0rd9v16n.js → worktree-0en0hh3r.js} +4 -4
  9. package/dist/chunks/{pty-xp8zvqfe.js → worktree-0hpyxh65.js} +32 -32
  10. package/dist/chunks/{pty-11dqjexa.js → worktree-0jq9fyba.js} +9 -9
  11. package/dist/chunks/{pty-0jwsre1p.js → worktree-0jwsre1p.js} +1 -1
  12. package/dist/chunks/{pty-nwyqkjv9.js → worktree-0npqrrz9.js} +3 -3
  13. package/dist/chunks/{pty-0paq2nw3.js → worktree-0paq2nw3.js} +1 -1
  14. package/dist/chunks/{pty-0q0f95c6.js → worktree-0q0f95c6.js} +1 -1
  15. package/dist/chunks/{pty-00z3vp5f.js → worktree-0v53mg2y.js} +4 -4
  16. package/dist/chunks/{pty-qc1pk71j.js → worktree-0xm04epx.js} +32 -32
  17. package/dist/chunks/{pty-b5ymaj20.js → worktree-0y8zxexa.js} +9 -9
  18. package/dist/chunks/{pty-zyyjv7w6.js → worktree-1010tx7k.js} +7 -7
  19. package/dist/chunks/{pty-wv40thab.js → worktree-170wnync.js} +9 -9
  20. package/dist/chunks/{pty-3g5zqvsj.js → worktree-17996mr8.js} +48 -48
  21. package/dist/chunks/{pty-bz85s9hh.js → worktree-19w9qk9n.js} +1 -1
  22. package/dist/chunks/{pty-1dazxqgg.js → worktree-1dazxqgg.js} +2 -2
  23. package/dist/chunks/{pty-6sz4ttcn.js → worktree-1ezrspvn.js} +23 -23
  24. package/dist/chunks/{pty-51sk06m6.js → worktree-1mayy0ne.js} +11 -11
  25. package/dist/chunks/{pty-zvp4p5jk.js → worktree-1t3e0y0p.js} +30 -30
  26. package/dist/chunks/{pty-qsr74hn5.js → worktree-2018kd55.js} +27 -27
  27. package/dist/chunks/{pty-qvrdgs7t.js → worktree-20djd28m.js} +23 -23
  28. package/dist/chunks/{pty-21r38tys.js → worktree-21r38tys.js} +1 -1
  29. package/dist/chunks/{pty-v772zmrr.js → worktree-24afheyq.js} +61 -61
  30. package/dist/chunks/{pty-mrhxfjgm.js → worktree-2844r4n4.js} +9 -9
  31. package/dist/chunks/{pty-2a5m3afh.js → worktree-2a5m3afh.js} +1 -1
  32. package/dist/chunks/{pty-etr222cf.js → worktree-2dbhpjrh.js} +11 -11
  33. package/dist/chunks/{pty-phrgc7s2.js → worktree-2ecm7k5x.js} +16 -16
  34. package/dist/chunks/{pty-p2vgnhh6.js → worktree-2hn9d9f8.js} +24 -24
  35. package/dist/chunks/{pty-p5m64j98.js → worktree-2hszhs49.js} +5 -5
  36. package/dist/chunks/{pty-vx7vnxew.js → worktree-2t4v8nsv.js} +182 -182
  37. package/dist/chunks/{pty-50jcqkpg.js → worktree-2zfaeqj9.js} +18 -18
  38. package/dist/chunks/{pty-4v4zcyn8.js → worktree-34gxdjay.js} +11 -11
  39. package/dist/chunks/{pty-t0fxg8b9.js → worktree-37s12vcn.js} +5 -5
  40. package/dist/chunks/{pty-8pmgwz46.js → worktree-38a6tnxe.js} +32 -32
  41. package/dist/chunks/{pty-3fc6dm20.js → worktree-3fc6dm20.js} +1 -1
  42. package/dist/chunks/{pty-3hepkmqq.js → worktree-3hepkmqq.js} +1 -1
  43. package/dist/chunks/{pty-bnepd0n1.js → worktree-3rcc0r2v.js} +44 -44
  44. package/dist/chunks/{pty-3smtnn6g.js → worktree-3smtnn6g.js} +1 -1
  45. package/dist/chunks/{pty-3tvqynh2.js → worktree-3tvqynh2.js} +1 -1
  46. package/dist/chunks/{pty-wcr3727a.js → worktree-3v1n839j.js} +29 -29
  47. package/dist/chunks/{pty-wndtrgrh.js → worktree-3z1ybf3s.js} +10 -10
  48. package/dist/chunks/{pty-6e1261xp.js → worktree-3z6f7pb8.js} +30 -30
  49. package/dist/chunks/{pty-rqg791dd.js → worktree-3zwsa50c.js} +11 -11
  50. package/dist/chunks/{pty-1f62kj91.js → worktree-43xg0xp9.js} +3 -3
  51. package/dist/chunks/{pty-h6r3nrb9.js → worktree-4dgbcxzg.js} +4 -4
  52. package/dist/chunks/{pty-jp67d8xq.js → worktree-4ea00b8w.js} +19 -19
  53. package/dist/chunks/{pty-beda3f75.js → worktree-4kb8nfbq.js} +20 -20
  54. package/dist/chunks/{pty-zwejzy2c.js → worktree-4mg2myvn.js} +24 -24
  55. package/dist/chunks/{pty-1as7yqy8.js → worktree-4nep509d.js} +10 -10
  56. package/dist/chunks/{pty-wph04nnx.js → worktree-4t2g0ek8.js} +39 -39
  57. package/dist/chunks/{pty-jpsrdk1d.js → worktree-4zzvgtjt.js} +26 -26
  58. package/dist/chunks/{pty-khny7pv9.js → worktree-5089mcsz.js} +22 -22
  59. package/dist/chunks/{pty-nrdmrqsx.js → worktree-50mzsvk4.js} +4 -4
  60. package/dist/chunks/{pty-57ez7d0k.js → worktree-57ez7d0k.js} +2 -2
  61. package/dist/chunks/{pty-th6p44mh.js → worktree-58ymd9wj.js} +11 -11
  62. package/dist/chunks/{pty-5daktx2q.js → worktree-5daktx2q.js} +1 -1
  63. package/dist/chunks/{pty-1rgevqwt.js → worktree-5df007sy.js} +22 -22
  64. package/dist/chunks/{pty-5t3nmthw.js → worktree-5t3nmthw.js} +2 -2
  65. package/dist/chunks/{pty-1ajp4aa7.js → worktree-5za9a44f.js} +6 -6
  66. package/dist/chunks/{pty-s6n8ez8a.js → worktree-63czgv3m.js} +32 -32
  67. package/dist/chunks/{pty-m39c7hxd.js → worktree-65h9d7h0.js} +14 -14
  68. package/dist/chunks/{pty-669tq793.js → worktree-669tq793.js} +1 -1
  69. package/dist/chunks/{pty-3fax0mp7.js → worktree-67tsegz1.js} +8 -8
  70. package/dist/chunks/{pty-2402vzrj.js → worktree-6h73sxmp.js} +5 -5
  71. package/dist/chunks/{pty-hht4hdr7.js → worktree-6hk05hg4.js} +54 -54
  72. package/dist/chunks/{pty-6msgmcgs.js → worktree-6msgmcgs.js} +1 -1
  73. package/dist/chunks/worktree-6r3amyyd.js +4 -0
  74. package/dist/chunks/{pty-bczxr085.js → worktree-6s7tjjvr.js} +35 -35
  75. package/dist/chunks/{pty-zh0ytwzz.js → worktree-6xkw5tt3.js} +11 -11
  76. package/dist/chunks/{pty-7bmhse3q.js → worktree-7bmhse3q.js} +1 -1
  77. package/dist/chunks/{pty-5rbd4j62.js → worktree-7de2s2df.js} +14 -14
  78. package/dist/chunks/{pty-0d61r9h4.js → worktree-7h1yv2z1.js} +32 -32
  79. package/dist/chunks/{pty-8s8mxddj.js → worktree-7j92jdde.js} +4 -4
  80. package/dist/chunks/{pty-p3wwg9fw.js → worktree-7k1xdcvp.js} +20 -20
  81. package/dist/chunks/{pty-dprzeqmr.js → worktree-7k3pveqf.js} +10 -10
  82. package/dist/chunks/{pty-g8d3gcyj.js → worktree-7sbkp4xb.js} +7 -7
  83. package/dist/chunks/{pty-fkr83qb9.js → worktree-7sp2vdb0.js} +10 -10
  84. package/dist/chunks/{pty-xxpn3ren.js → worktree-7tg4tqbg.js} +9 -9
  85. package/dist/chunks/{pty-jexxy024.js → worktree-7xmz7frw.js} +3 -3
  86. package/dist/chunks/{pty-06dxphr1.js → worktree-81czwxpn.js} +4 -4
  87. package/dist/chunks/{pty-abpc31sx.js → worktree-83dcqrsd.js} +30 -30
  88. package/dist/chunks/{pty-89znhe33.js → worktree-89znhe33.js} +1 -1
  89. package/dist/chunks/{pty-8d7r5vzw.js → worktree-8d7r5vzw.js} +1 -1
  90. package/dist/chunks/{pty-gdfvffmy.js → worktree-8g6scpm2.js} +5 -5
  91. package/dist/chunks/{pty-dj2t23y0.js → worktree-8p4f9s12.js} +2 -2
  92. package/dist/chunks/{pty-2acp3zpj.js → worktree-8zjetqqg.js} +24 -24
  93. package/dist/chunks/{pty-a3r4dcrj.js → worktree-90b858qz.js} +2 -2
  94. package/dist/chunks/{pty-qnk3khrz.js → worktree-91zq4d2j.js} +15 -15
  95. package/dist/chunks/{pty-kbnfxfat.js → worktree-9jysh8tn.js} +28 -28
  96. package/dist/chunks/worktree-9pb540j7.js +26 -0
  97. package/dist/chunks/{pty-ykyjdacj.js → worktree-9qzpdwkp.js} +5 -5
  98. package/dist/chunks/{pty-cmh35hj2.js → worktree-9rqqtf5r.js} +16 -16
  99. package/dist/chunks/{pty-5c4hm403.js → worktree-a1bz86dw.js} +3 -3
  100. package/dist/chunks/{pty-aaet6srn.js → worktree-aaet6srn.js} +2 -2
  101. package/dist/chunks/{pty-zwks5p0r.js → worktree-ad58ka5n.js} +37 -37
  102. package/dist/chunks/{pty-0f9afca0.js → worktree-af04s6ss.js} +5 -5
  103. package/dist/chunks/{pty-b4h1fdev.js → worktree-afnx0wnx.js} +47 -47
  104. package/dist/chunks/{pty-zvcgv5cx.js → worktree-av68cqnf.js} +31 -31
  105. package/dist/chunks/{pty-0kk2g04a.js → worktree-b01jnyv4.js} +31 -31
  106. package/dist/chunks/{pty-b6gygkdw.js → worktree-b6gygkdw.js} +2 -2
  107. package/dist/chunks/{pty-51rpk3dg.js → worktree-b7krtsvq.js} +48 -48
  108. package/dist/chunks/{pty-7ac170kv.js → worktree-bajakh74.js} +4 -4
  109. package/dist/chunks/{pty-m77m9jq1.js → worktree-bfh368mz.js} +31 -31
  110. package/dist/chunks/{pty-wfex9hf5.js → worktree-bfrw9c16.js} +22 -22
  111. package/dist/chunks/{pty-xzzedvdq.js → worktree-bkdff2qy.js} +12 -12
  112. package/dist/chunks/{pty-3j6kc4fe.js → worktree-bthbky82.js} +23 -23
  113. package/dist/chunks/{pty-f1nmtkf4.js → worktree-c0szj6gh.js} +8 -8
  114. package/dist/chunks/{pty-7ywv553p.js → worktree-c2r7a6ev.js} +19 -19
  115. package/dist/chunks/{pty-shrcc9g3.js → worktree-c8g19qcp.js} +26 -26
  116. package/dist/chunks/{pty-p3sqe4zf.js → worktree-caaa7gb9.js} +13 -13
  117. package/dist/chunks/{pty-935t04zr.js → worktree-caf4s13y.js} +6 -6
  118. package/dist/chunks/{pty-b594zzbj.js → worktree-cbsmg7zv.js} +9 -9
  119. package/dist/chunks/{pty-5ge7b1s9.js → worktree-cdea582g.js} +17 -17
  120. package/dist/chunks/{pty-m0jqrx5p.js → worktree-cfpkc3c9.js} +2 -2
  121. package/dist/chunks/{pty-5w8sdvf2.js → worktree-cj605r6v.js} +4 -4
  122. package/dist/chunks/{pty-2sejkfem.js → worktree-cwa6csj7.js} +9 -9
  123. package/dist/chunks/{pty-zncxtbv1.js → worktree-d380kj32.js} +14 -14
  124. package/dist/chunks/{pty-ybhbtxjg.js → worktree-d5wtg2df.js} +6 -6
  125. package/dist/chunks/{pty-rh9ghw4z.js → worktree-d6z8az9q.js} +13 -13
  126. package/dist/chunks/{pty-0gq5ttfh.js → worktree-d7ehg0cy.js} +11 -11
  127. package/dist/chunks/{pty-qyc8vy2s.js → worktree-dnepjbkk.js} +15 -15
  128. package/dist/chunks/{pty-0kv2ctep.js → worktree-dnkx6etr.js} +36 -36
  129. package/dist/chunks/{pty-xfkkasph.js → worktree-drwq78ky.js} +4 -4
  130. package/dist/chunks/{pty-1vjy2hpw.js → worktree-e11m5cn3.js} +35 -35
  131. package/dist/chunks/{pty-6ep9m4sq.js → worktree-e5kbttzp.js} +18 -18
  132. package/dist/chunks/{pty-3b1q5j1v.js → worktree-e6hd9jay.js} +6 -6
  133. package/dist/chunks/{pty-t031qe01.js → worktree-e70fzpwb.js} +35 -35
  134. package/dist/chunks/{pty-5hazr681.js → worktree-eaerxtz5.js} +2 -2
  135. package/dist/chunks/{pty-5ac4s34f.js → worktree-ebqt6dkv.js} +95 -95
  136. package/dist/chunks/{pty-ef5x83kb.js → worktree-ef5x83kb.js} +1 -1
  137. package/dist/chunks/{pty-8fxgy4be.js → worktree-efswfzpf.js} +26 -26
  138. package/dist/chunks/{pty-za55qz67.js → worktree-efyxdhp4.js} +24 -24
  139. package/dist/chunks/{pty-5019jpyd.js → worktree-ej2x38fw.js} +16 -16
  140. package/dist/chunks/{pty-etq0c3wd.js → worktree-etq0c3wd.js} +1 -1
  141. package/dist/chunks/{pty-mgpyxjx6.js → worktree-ezy28dwm.js} +11 -11
  142. package/dist/chunks/{pty-v2sqwdfa.js → worktree-f2497b3s.js} +25 -25
  143. package/dist/chunks/{pty-dd95b6zp.js → worktree-f5jkzqkr.js} +5 -5
  144. package/dist/chunks/{pty-hdnk95c8.js → worktree-f828m53h.js} +2 -2
  145. package/dist/chunks/{pty-xe6cmgbq.js → worktree-f8520a7c.js} +11 -11
  146. package/dist/chunks/{pty-nq7qbqzc.js → worktree-fhs97t90.js} +9 -9
  147. package/dist/chunks/{pty-fxbjtjnd.js → worktree-fxbjtjnd.js} +1 -1
  148. package/dist/chunks/{pty-kmac05v5.js → worktree-g3happs1.js} +317 -317
  149. package/dist/chunks/{pty-t159kbzr.js → worktree-g9b0yvmz.js} +14 -14
  150. package/dist/chunks/{pty-2gw9te71.js → worktree-gcp4fqq7.js} +28 -28
  151. package/dist/chunks/{pty-gd4qta3r.js → worktree-gd4qta3r.js} +1 -1
  152. package/dist/chunks/{pty-63kpjth9.js → worktree-gr1f03ws.js} +9 -9
  153. package/dist/chunks/{pty-j7d1bz3z.js → worktree-grff790k.js} +13 -13
  154. package/dist/chunks/{pty-gv6a8nnw.js → worktree-gv6a8nnw.js} +2 -2
  155. package/dist/chunks/worktree-gyce5qg1.js +18 -0
  156. package/dist/chunks/{pty-h03wrkyp.js → worktree-h03wrkyp.js} +2 -2
  157. package/dist/chunks/{pty-km08fevc.js → worktree-h3jg7y6c.js} +6 -6
  158. package/dist/chunks/{pty-x7vb65wd.js → worktree-h55255v8.js} +21 -21
  159. package/dist/chunks/{pty-h6vf3j39.js → worktree-h6vf3j39.js} +1 -1
  160. package/dist/chunks/{pty-yjq1h8wq.js → worktree-h6zkevjm.js} +8 -8
  161. package/dist/chunks/{pty-w981yqz9.js → worktree-h82mr5fe.js} +91 -91
  162. package/dist/chunks/{pty-j5g2921s.js → worktree-hfqbnt06.js} +25 -25
  163. package/dist/chunks/{pty-9p1nr3wb.js → worktree-hhv32xm1.js} +12 -12
  164. package/dist/chunks/{pty-ctrx9nnj.js → worktree-hptad3cj.js} +8 -8
  165. package/dist/chunks/{pty-q5rhn9x0.js → worktree-hrmdcqyf.js} +11 -11
  166. package/dist/chunks/{pty-hq8zt1th.js → worktree-hwe7x4em.js} +6 -6
  167. package/dist/chunks/{pty-9zct7zr5.js → worktree-hx07tmjt.js} +34 -34
  168. package/dist/chunks/{pty-2c4g75ke.js → worktree-hyp0yes1.js} +25 -25
  169. package/dist/chunks/{pty-j56e64zr.js → worktree-j56e64zr.js} +1 -1
  170. package/dist/chunks/{pty-k3c624dm.js → worktree-k3c624dm.js} +3 -3
  171. package/dist/chunks/{pty-g7td5zdy.js → worktree-k3fznmea.js} +17 -17
  172. package/dist/chunks/{pty-jppvw2tx.js → worktree-k3gnzxs0.js} +5 -5
  173. package/dist/chunks/{pty-pdg35gy8.js → worktree-k5jjawww.js} +4 -4
  174. package/dist/chunks/{pty-xp7gxvaq.js → worktree-kdnytvmd.js} +4 -4
  175. package/dist/chunks/{pty-39dab3jh.js → worktree-kf58x7p8.js} +18 -18
  176. package/dist/chunks/{pty-afve55vv.js → worktree-kf7vjh8k.js} +18 -18
  177. package/dist/chunks/{pty-6j9cmr93.js → worktree-kh3vq3v6.js} +28 -28
  178. package/dist/chunks/{pty-exfq5gv3.js → worktree-kkysd6gj.js} +5 -5
  179. package/dist/chunks/{pty-44ke2mar.js → worktree-knb7evpn.js} +2 -2
  180. package/dist/chunks/{pty-embw8kgh.js → worktree-kne8f3cn.js} +4 -4
  181. package/dist/chunks/{pty-f59eyknk.js → worktree-ksztttm6.js} +4 -4
  182. package/dist/chunks/{pty-ww94c77x.js → worktree-kwpf6cbb.js} +16 -16
  183. package/dist/chunks/{pty-m3fdjcah.js → worktree-m3fdjcah.js} +1 -1
  184. package/dist/chunks/{pty-p2ezm693.js → worktree-m3sr29v9.js} +31 -31
  185. package/dist/chunks/{pty-m9w0rfyh.js → worktree-m9w0rfyh.js} +1 -1
  186. package/dist/chunks/{pty-zth7qvys.js → worktree-mc9zg8nb.js} +17 -17
  187. package/dist/chunks/{pty-tn5bgys5.js → worktree-md16tndp.js} +5 -5
  188. package/dist/chunks/{pty-1ygqh575.js → worktree-mfqp6xfm.js} +6 -6
  189. package/dist/chunks/{pty-mhkvc446.js → worktree-mhkvc446.js} +1 -1
  190. package/dist/chunks/{pty-avh5jyvb.js → worktree-mjryszr1.js} +38 -38
  191. package/dist/chunks/{pty-zerzqssk.js → worktree-mpm0nhxe.js} +1 -1
  192. package/dist/chunks/{pty-pkgfky7d.js → worktree-mq9b79x9.js} +5 -5
  193. package/dist/chunks/{pty-xfkknnqv.js → worktree-n1se7dz6.js} +5 -5
  194. package/dist/chunks/{pty-ypnspery.js → worktree-n2rqx0tz.js} +15 -15
  195. package/dist/chunks/{pty-66rzgmh2.js → worktree-n68akk4h.js} +3 -3
  196. package/dist/chunks/{pty-4b8tw1g7.js → worktree-nbzsj80d.js} +8 -8
  197. package/dist/chunks/{pty-ntcc5ehh.js → worktree-npt9980d.js} +23 -23
  198. package/dist/chunks/{pty-9hn6k4tm.js → worktree-p37cw4rj.js} +8 -8
  199. package/dist/chunks/{pty-3ddaden9.js → worktree-p8ghq9hh.js} +4 -4
  200. package/dist/chunks/{pty-10f3mqse.js → worktree-phcx6ke7.js} +29 -29
  201. package/dist/chunks/{pty-pjvnvgmy.js → worktree-pjvnvgmy.js} +1 -1
  202. package/dist/chunks/{pty-pknna89w.js → worktree-pknna89w.js} +1 -1
  203. package/dist/chunks/{pty-9mjv2j5h.js → worktree-pqkgg4rt.js} +9 -9
  204. package/dist/chunks/{pty-5sevqzg5.js → worktree-prvhm99j.js} +20 -20
  205. package/dist/chunks/{pty-8rt8k92t.js → worktree-py26wd2m.js} +11 -11
  206. package/dist/chunks/{pty-84s7s0kh.js → worktree-q8y36nbv.js} +26 -26
  207. package/dist/chunks/{pty-12b8t429.js → worktree-q980a1ys.js} +15 -15
  208. package/dist/chunks/{pty-svvemcs6.js → worktree-qa8hdfea.js} +8 -8
  209. package/dist/chunks/{pty-2k6s2zm4.js → worktree-qc6a7nr8.js} +18 -18
  210. package/dist/chunks/{pty-76mn2m8t.js → worktree-qepg3hej.js} +19 -19
  211. package/dist/chunks/{pty-54qvpy9t.js → worktree-qg87rn1s.js} +11 -11
  212. package/dist/chunks/{pty-m5j3w5gw.js → worktree-qj9fam2n.js} +13 -13
  213. package/dist/chunks/{pty-g8atgw3j.js → worktree-qk0gpxf2.js} +8 -8
  214. package/dist/chunks/{pty-yjptyezs.js → worktree-qn4ba14w.js} +5 -5
  215. package/dist/chunks/{pty-4kgnd0zh.js → worktree-qnmg5nvf.js} +26 -26
  216. package/dist/chunks/{pty-z440px53.js → worktree-qpz1kkwg.js} +69 -69
  217. package/dist/chunks/{pty-qsdy395h.js → worktree-qsdy395h.js} +1 -1
  218. package/dist/chunks/{pty-marnn1hp.js → worktree-qsxf26yz.js} +9 -9
  219. package/dist/chunks/{pty-856c6xfq.js → worktree-r1zfwvff.js} +23 -23
  220. package/dist/chunks/{pty-rdw6cm16.js → worktree-rdw6cm16.js} +1 -1
  221. package/dist/chunks/worktree-rhs8pca3.js +252 -0
  222. package/dist/chunks/{pty-15nepkqg.js → worktree-rmdyxgmk.js} +8 -8
  223. package/dist/chunks/{pty-zhp5m1zz.js → worktree-rnx68x6k.js} +4 -4
  224. package/dist/chunks/{pty-7t28gyx8.js → worktree-rq8k8p5a.js} +28 -28
  225. package/dist/chunks/{pty-vnrb3chg.js → worktree-rrdqyp65.js} +17 -17
  226. package/dist/chunks/{pty-5dkyq3w9.js → worktree-rsss4qf7.js} +11 -11
  227. package/dist/chunks/{pty-b6j8bg70.js → worktree-rtw8xa1t.js} +1 -1
  228. package/dist/chunks/{pty-6y05ew1d.js → worktree-rzs6nh5d.js} +21 -21
  229. package/dist/chunks/{pty-x1gfpc1p.js → worktree-s0443v51.js} +34 -34
  230. package/dist/chunks/{pty-xbckpkdq.js → worktree-sfswfqfx.js} +22 -22
  231. package/dist/chunks/{pty-mjyryqn6.js → worktree-spnnfxkd.js} +9 -9
  232. package/dist/chunks/{pty-apyk6ttn.js → worktree-sq6g32t3.js} +3 -3
  233. package/dist/chunks/{pty-vj5dzvyh.js → worktree-svt8q2xz.js} +40 -40
  234. package/dist/chunks/{pty-f6pbrr8w.js → worktree-t05795gg.js} +16 -16
  235. package/dist/chunks/{pty-s8d7rejh.js → worktree-t550f9t1.js} +4 -4
  236. package/dist/chunks/{pty-h5prvwy2.js → worktree-ta5sp2nd.js} +15 -15
  237. package/dist/chunks/{pty-tazgh4e4.js → worktree-tazgh4e4.js} +1 -1
  238. package/dist/chunks/{pty-tdstcens.js → worktree-tdstcens.js} +1 -1
  239. package/dist/chunks/{pty-4w5f3qm5.js → worktree-thjxzeng.js} +8 -8
  240. package/dist/chunks/{pty-fe1vvtkz.js → worktree-tmmgzrnt.js} +19 -19
  241. package/dist/chunks/{pty-t8c9cnyg.js → worktree-tmqffpxk.js} +42 -42
  242. package/dist/chunks/{pty-tvtrv512.js → worktree-tvtrv512.js} +1 -1
  243. package/dist/chunks/{pty-jnwk8z6k.js → worktree-v057vym3.js} +33 -33
  244. package/dist/chunks/{pty-tja9b7zx.js → worktree-v4881naz.js} +30 -30
  245. package/dist/chunks/{pty-0rgpk1ds.js → worktree-vbcd8shf.js} +5 -5
  246. package/dist/chunks/{pty-7ha090w8.js → worktree-vdenjeyk.js} +13 -13
  247. package/dist/chunks/{pty-gaf2f4t8.js → worktree-vdrskp9d.js} +18 -18
  248. package/dist/chunks/{pty-veqvce7d.js → worktree-veqvce7d.js} +1 -1
  249. package/dist/chunks/{pty-qg5tx4hd.js → worktree-vpwtksfj.js} +21 -21
  250. package/dist/chunks/{pty-vzcthcp8.js → worktree-vzcthcp8.js} +1 -1
  251. package/dist/chunks/{pty-w3wsvvr9.js → worktree-w3wsvvr9.js} +1 -1
  252. package/dist/chunks/{pty-h66ycz74.js → worktree-w59x44tx.js} +13 -13
  253. package/dist/chunks/{pty-wd87259q.js → worktree-wd87259q.js} +1 -1
  254. package/dist/chunks/{pty-207ajt2h.js → worktree-wr7ps67x.js} +5 -5
  255. package/dist/chunks/{pty-rtvxz8am.js → worktree-wvesw99d.js} +4 -4
  256. package/dist/chunks/{pty-bxfxz0qc.js → worktree-x1a42kg1.js} +15 -15
  257. package/dist/chunks/{pty-x1ezjp6w.js → worktree-x1ezjp6w.js} +1 -1
  258. package/dist/chunks/{pty-f0v6spgv.js → worktree-x1k3d8vr.js} +5 -5
  259. package/dist/chunks/{pty-2kbj14yf.js → worktree-x5cfpxw5.js} +43 -43
  260. package/dist/chunks/{pty-75ckhbr3.js → worktree-x5sjtarf.js} +27 -27
  261. package/dist/chunks/{pty-6bh8btd9.js → worktree-x7cagxvm.js} +37 -37
  262. package/dist/chunks/{pty-fanw3jjr.js → worktree-xbkhyrvs.js} +3 -3
  263. package/dist/chunks/{pty-3z40mttx.js → worktree-xcgm0ws5.js} +14 -14
  264. package/dist/chunks/{pty-74rrnwt7.js → worktree-xm1e10md.js} +12 -12
  265. package/dist/chunks/{pty-jh55ed6j.js → worktree-xn2m3856.js} +5 -5
  266. package/dist/chunks/{pty-3ad3156b.js → worktree-xrv44ghv.js} +7 -7
  267. package/dist/chunks/{pty-k5shenda.js → worktree-xs2gg3ph.js} +20 -20
  268. package/dist/chunks/{pty-92aty353.js → worktree-xtzqjyy0.js} +6 -6
  269. package/dist/chunks/{pty-j0d8kce8.js → worktree-xwyqxccg.js} +46 -46
  270. package/dist/chunks/{pty-y1fvbwt7.js → worktree-y1fvbwt7.js} +1 -1
  271. package/dist/chunks/{pty-6n9a7w7g.js → worktree-y69j51hy.js} +13 -13
  272. package/dist/chunks/{pty-dpkg50ah.js → worktree-y71avatq.js} +4 -4
  273. package/dist/chunks/{pty-nvv66n76.js → worktree-ye6h68qm.js} +15 -15
  274. package/dist/chunks/{pty-1acjjqhc.js → worktree-yp2x3t23.js} +4 -4
  275. package/dist/chunks/{pty-56caj4g6.js → worktree-yrb04hz8.js} +20 -20
  276. package/dist/chunks/{pty-yrhqyw5v.js → worktree-yrhqyw5v.js} +1 -1
  277. package/dist/chunks/{pty-yrznvahk.js → worktree-yrznvahk.js} +2 -2
  278. package/dist/chunks/{pty-ph842b28.js → worktree-z0aj456m.js} +4 -4
  279. package/dist/chunks/{pty-z0bkrqjs.js → worktree-z0bkrqjs.js} +1 -1
  280. package/dist/chunks/{pty-z63w68vq.js → worktree-z63w68vq.js} +2 -2
  281. package/dist/chunks/{pty-zeh9ct20.js → worktree-zeh9ct20.js} +2 -2
  282. package/dist/chunks/{pty-dqa43dhg.js → worktree-zjd7s1bk.js} +18 -18
  283. package/dist/chunks/{pty-h64tyvph.js → worktree-zpqb3spp.js} +3 -3
  284. package/dist/chunks/{pty-gwydwvmj.js → worktree-zq6stcrg.js} +8 -8
  285. package/dist/chunks/{pty-zr2ceqn5.js → worktree-zr2ceqn5.js} +1 -1
  286. package/dist/chunks/{pty-vaa1zs5p.js → worktree-zrhgkfkj.js} +35 -35
  287. package/dist/chunks/{pty-zxq2ej10.js → worktree-zxq2ej10.js} +1 -1
  288. package/dist/codemode/catalog.js +1 -1
  289. package/dist/codemode/instructions.js +7 -7
  290. package/dist/codemode/tool.js +3 -3
  291. package/dist/codemode/web.js +1 -1
  292. package/dist/command.js +84 -84
  293. package/dist/config/discovery.js +81 -81
  294. package/dist/config/markdown.js +1 -1
  295. package/dist/config/normalize.js +105 -105
  296. package/dist/config/plugin/agent.js +124 -124
  297. package/dist/config/plugin/command.js +213 -213
  298. package/dist/config/plugin/compaction.js +159 -159
  299. package/dist/config/plugin/compatibility.js +140 -140
  300. package/dist/config/plugin/entry-observer.js +1 -1
  301. package/dist/config/plugin/formatter.js +123 -123
  302. package/dist/config/plugin/image.js +122 -122
  303. package/dist/config/plugin/instruction.js +89 -89
  304. package/dist/config/plugin/location-watcher.js +124 -124
  305. package/dist/config/plugin/mcp.js +131 -131
  306. package/dist/config/plugin/policy.js +122 -122
  307. package/dist/config/plugin/provider.js +122 -122
  308. package/dist/config/plugin/reference.js +124 -124
  309. package/dist/config/plugin/shell.js +124 -124
  310. package/dist/config/plugin/skill-file.js +101 -101
  311. package/dist/config/plugin/skill.js +143 -143
  312. package/dist/config/plugin/snapshot.js +122 -122
  313. package/dist/config/plugin/source.js +125 -125
  314. package/dist/config/plugin/tool-output.js +124 -124
  315. package/dist/config/plugin/websearch.js +123 -123
  316. package/dist/config/plugin/worktree.js +124 -124
  317. package/dist/config/variable.js +3 -3
  318. package/dist/config/watch.js +1 -1
  319. package/dist/config.js +127 -127
  320. package/dist/credential/sql.js +2 -2
  321. package/dist/credential.js +82 -82
  322. package/dist/database/database.js +69 -69
  323. package/dist/database/drizzle/effect-sqlite/driver.js +14 -14
  324. package/dist/database/drizzle/effect-sqlite/index.js +14 -14
  325. package/dist/database/drizzle/effect-sqlite/session.js +11 -11
  326. package/dist/database/drizzle/index.js +15 -15
  327. package/dist/database/drizzle/internal/drizzle-utils.js +1 -1
  328. package/dist/database/drizzle/sqlite-core/effect/count.js +1 -1
  329. package/dist/database/drizzle/sqlite-core/effect/db.js +9 -9
  330. package/dist/database/drizzle/sqlite-core/effect/delete.js +2 -2
  331. package/dist/database/drizzle/sqlite-core/effect/index.js +10 -10
  332. package/dist/database/drizzle/sqlite-core/effect/insert.js +2 -2
  333. package/dist/database/drizzle/sqlite-core/effect/query.js +1 -1
  334. package/dist/database/drizzle/sqlite-core/effect/raw.js +1 -1
  335. package/dist/database/drizzle/sqlite-core/effect/select.js +2 -2
  336. package/dist/database/drizzle/sqlite-core/effect/session.js +10 -10
  337. package/dist/database/drizzle/sqlite-core/effect/update.js +2 -2
  338. package/dist/database/drizzle.js +16 -16
  339. package/dist/database/migration/20260127222353_familiar_lady_ursula.js +1 -1
  340. package/dist/database/migration/20260211171708_add_project_commands.js +1 -1
  341. package/dist/database/migration/20260213144116_wakeful_the_professor.js +1 -1
  342. package/dist/database/migration/20260225215848_workspace.js +1 -1
  343. package/dist/database/migration/20260227213759_add_session_workspace_id.js +1 -1
  344. package/dist/database/migration/20260228203230_blue_harpoon.js +1 -1
  345. package/dist/database/migration/20260303231226_add_workspace_fields.js +1 -1
  346. package/dist/database/migration/20260309230000_move_org_to_state.js +1 -1
  347. package/dist/database/migration/20260312043431_session_message_cursor.js +1 -1
  348. package/dist/database/migration/20260323234822_events.js +1 -1
  349. package/dist/database/migration/20260410174513_workspace-name.js +1 -1
  350. package/dist/database/migration/20260413175956_chief_energizer.js +1 -1
  351. package/dist/database/migration/20260423070820_add_icon_url_override.js +1 -1
  352. package/dist/database/migration/20260427172553_slow_nightmare.js +1 -1
  353. package/dist/database/migration/20260428004200_add_session_path.js +1 -1
  354. package/dist/database/migration/20260501142318_next_venus.js +1 -1
  355. package/dist/database/migration/20260504145000_add_sync_owner.js +1 -1
  356. package/dist/database/migration/20260507164347_add_workspace_time.js +1 -1
  357. package/dist/database/migration/20260510033149_session_usage.js +1 -1
  358. package/dist/database/migration/20260511000411_data_migration_state.js +1 -1
  359. package/dist/database/migration/20260511173437_session-metadata.js +1 -1
  360. package/dist/database/migration/20260601010001_normalize_storage_paths.js +1 -1
  361. package/dist/database/migration/20260601202201_amazing_prowler.js +1 -1
  362. package/dist/database/migration/20260602002951_lowly_union_jack.js +1 -1
  363. package/dist/database/migration/20260602182828_add_project_directories.js +1 -1
  364. package/dist/database/migration/20260603001617_session_message_projection_indexes.js +1 -1
  365. package/dist/database/migration/20260603040000_session_message_projection_order.js +1 -1
  366. package/dist/database/migration/20260603141458_session_input_inbox.js +1 -1
  367. package/dist/database/migration/20260603160727_jittery_ezekiel_stane.js +1 -1
  368. package/dist/database/migration/20260604172448_event_sourced_session_input.js +1 -1
  369. package/dist/database/migration/20260605003541_add_session_context_snapshot.js +1 -1
  370. package/dist/database/migration/20260605042240_add_context_epoch_agent.js +1 -1
  371. package/dist/database/migration/20260611035744_credential.js +1 -1
  372. package/dist/database/migration/20260611192811_lush_chimera.js +1 -1
  373. package/dist/database/migration/20260612174303_project_dir_strategy.js +1 -1
  374. package/dist/database/migration/20260622142730_simplify_session_context_epoch.js +1 -1
  375. package/dist/database/migration/20260622170816_reset_v2_session_state.js +1 -1
  376. package/dist/database/migration/20260622202450_simplify_session_input.js +1 -1
  377. package/dist/database/migration/20260804233008_loose_psylocke.js +1 -1
  378. package/dist/database/migration/20260805200742_import_legacy_credentials.js +1 -1
  379. package/dist/database/migration/20260808023530_workspace_domain.js +1 -1
  380. package/dist/database/migration/20260811161259_execution_claim_attempts.js +1 -1
  381. package/dist/database/migration/20260812181746_session_inbox.js +1 -1
  382. package/dist/database/migration/20260812213948_worktree.js +1 -1
  383. package/dist/database/migration/20260819222447_session_viewed_state.js +1 -1
  384. package/dist/database/migration/20260823191254_nullable_workspace_binding.js +1 -1
  385. package/dist/database/migration/20260910120000_clear_v1_session_permission.js +1 -1
  386. package/dist/database/migration.gen.js +48 -48
  387. package/dist/database/migration.js +50 -50
  388. package/dist/database/path.js +2 -2
  389. package/dist/database/schema.gen.js +1 -1
  390. package/dist/database/schema.sql.js +1 -1
  391. package/dist/database/sqlite.bun.js +1 -1
  392. package/dist/database/sqlite.js +1 -1
  393. package/dist/database/sqlite.node.js +1 -1
  394. package/dist/database/sqlite.workerd.js +1 -1
  395. package/dist/database/v1-migration.bun.js +78 -78
  396. package/dist/database/v1-migration.js +1 -1
  397. package/dist/effect/app-node-builder.js +366 -366
  398. package/dist/effect/app-node-platform.js +2 -2
  399. package/dist/effect/keyed-mutex.js +3 -3
  400. package/dist/effect/websocket-constructor.js +1 -1
  401. package/dist/environment/driver.js +1 -1
  402. package/dist/environment/environment.js +92 -92
  403. package/dist/environment/exec-defaults.js +2 -2
  404. package/dist/environment/files.js +1 -1
  405. package/dist/environment/index.js +94 -94
  406. package/dist/environment/local.js +2 -2
  407. package/dist/environment/memory.js +2 -2
  408. package/dist/environment/unavailable.js +1 -1
  409. package/dist/event/sql.js +1 -1
  410. package/dist/event-logger.js +73 -73
  411. package/dist/file-access.js +103 -103
  412. package/dist/file-mutation.js +93 -93
  413. package/dist/file-retention.js +1 -1
  414. package/dist/file.js +1 -1
  415. package/dist/filesystem/fff.bun.js +2 -2
  416. package/dist/filesystem/fff.js +1 -1
  417. package/dist/filesystem/fff.node.js +2 -2
  418. package/dist/filesystem/fff.workerd.js +2 -2
  419. package/dist/filesystem/ignore.js +1 -1
  420. package/dist/filesystem/location-watcher-policy.js +6 -6
  421. package/dist/filesystem/location-watcher.js +226 -226
  422. package/dist/filesystem/protected.js +1 -1
  423. package/dist/filesystem/search.js +102 -102
  424. package/dist/filesystem/watcher-binding.js +1 -1
  425. package/dist/filesystem/watcher.js +15 -15
  426. package/dist/filesystem.js +105 -105
  427. package/dist/form.js +81 -81
  428. package/dist/formatter/builtins.js +2 -2
  429. package/dist/formatter.js +88 -88
  430. package/dist/generate.js +100 -100
  431. package/dist/git.js +10 -10
  432. package/dist/github-copilot/chat/convert-to-openai-compatible-chat-messages.js +1 -1
  433. package/dist/github-copilot/chat/get-response-metadata.js +1 -1
  434. package/dist/github-copilot/chat/map-openai-compatible-finish-reason.js +1 -1
  435. package/dist/github-copilot/chat/openai-compatible-chat-language-model.js +7 -7
  436. package/dist/github-copilot/chat/openai-compatible-chat-options.js +1 -1
  437. package/dist/github-copilot/chat/openai-compatible-prepare-tools.js +1 -1
  438. package/dist/github-copilot/copilot-provider.js +17 -17
  439. package/dist/github-copilot/models.js +98 -98
  440. package/dist/github-copilot/openai-compatible-error.js +1 -1
  441. package/dist/github-copilot/responses/convert-to-openai-responses-input.js +1 -1
  442. package/dist/github-copilot/responses/map-openai-responses-finish-reason.js +1 -1
  443. package/dist/github-copilot/responses/openai-error.js +1 -1
  444. package/dist/github-copilot/responses/openai-responses-language-model.js +10 -10
  445. package/dist/github-copilot/responses/openai-responses-prepare-tools.js +6 -6
  446. package/dist/github-copilot/responses/tool/code-interpreter.js +1 -1
  447. package/dist/github-copilot/responses/tool/file-search.js +1 -1
  448. package/dist/github-copilot/responses/tool/image-generation.js +1 -1
  449. package/dist/github-copilot/responses/tool/web-search-preview.js +1 -1
  450. package/dist/github-copilot/responses/tool/web-search.js +1 -1
  451. package/dist/id/id.js +1 -1
  452. package/dist/image/photon.js +2 -2
  453. package/dist/image.js +6 -6
  454. package/dist/instance/service.js +5 -5
  455. package/dist/instance.js +357 -357
  456. package/dist/instruction-discovery.js +84 -84
  457. package/dist/instructions/builtins.js +86 -86
  458. package/dist/instructions/index.js +3 -3
  459. package/dist/integration/connection.js +3 -3
  460. package/dist/integration.js +85 -85
  461. package/dist/job.js +78 -78
  462. package/dist/kv/sql.js +2 -2
  463. package/dist/kv.js +72 -72
  464. package/dist/location-activity.js +134 -134
  465. package/dist/location-lifecycle.js +105 -105
  466. package/dist/location-mutation.js +103 -103
  467. package/dist/location-service-map.js +85 -85
  468. package/dist/location-services.js +354 -354
  469. package/dist/location.js +84 -84
  470. package/dist/mcp/client.js +90 -90
  471. package/dist/mcp/index.js +101 -101
  472. package/dist/mcp/instructions.js +127 -127
  473. package/dist/mcp/oauth.js +77 -77
  474. package/dist/mcp/stdio.js +89 -89
  475. package/dist/mime.js +1 -1
  476. package/dist/modal/models.js +98 -98
  477. package/dist/model-resolver.js +97 -97
  478. package/dist/model.js +101 -101
  479. package/dist/models-dev.js +106 -106
  480. package/dist/oauth/page.js +1 -1
  481. package/dist/permission/saved.js +81 -81
  482. package/dist/permission/sql.js +5 -5
  483. package/dist/permission.js +110 -110
  484. package/dist/persistent-pty/binary.bun.js +1 -1
  485. package/dist/persistent-pty/daemon.js +1 -1
  486. package/dist/persistent-pty/index.js +87 -87
  487. package/dist/persistent-pty/pty-binding.js +1 -1
  488. package/dist/persistent-pty.js +74 -74
  489. package/dist/plugin/agent.js +103 -103
  490. package/dist/plugin/command.js +100 -100
  491. package/dist/plugin/hooks.js +5 -5
  492. package/dist/plugin/host.js +217 -217
  493. package/dist/plugin/identity.js +3 -3
  494. package/dist/plugin/instance.js +5 -5
  495. package/dist/plugin/internal.js +328 -328
  496. package/dist/plugin/mcp-codemode-exclusion.js +3 -3
  497. package/dist/plugin/models-dev.js +95 -95
  498. package/dist/plugin/module.js +5 -5
  499. package/dist/plugin/optimize.js +2 -2
  500. package/dist/plugin/plan.js +101 -101
  501. package/dist/plugin/promise.js +1 -1
  502. package/dist/plugin/provider/amazon-bedrock.js +89 -89
  503. package/dist/plugin/provider/azure.js +121 -121
  504. package/dist/plugin/provider/cerebras.js +1 -1
  505. package/dist/plugin/provider/cloudflare-ai-gateway.js +120 -120
  506. package/dist/plugin/provider/cloudflare-workers-ai.js +120 -120
  507. package/dist/plugin/provider/cohere.js +2 -2
  508. package/dist/plugin/provider/configured.js +118 -118
  509. package/dist/plugin/provider/digitalocean.js +92 -92
  510. package/dist/plugin/provider/dynamic.js +2 -2
  511. package/dist/plugin/provider/factory.js +1 -1
  512. package/dist/plugin/provider/gateway.js +2 -2
  513. package/dist/plugin/provider/github-copilot.js +92 -92
  514. package/dist/plugin/provider/gitlab.js +90 -90
  515. package/dist/plugin/provider/google-vertex.js +89 -89
  516. package/dist/plugin/provider/kilo.js +1 -1
  517. package/dist/plugin/provider/llmgateway.js +76 -76
  518. package/dist/plugin/provider/lmstudio.js +119 -119
  519. package/dist/plugin/provider/modal.js +91 -91
  520. package/dist/plugin/provider/nvidia.js +1 -1
  521. package/dist/plugin/provider/ollama.js +121 -121
  522. package/dist/plugin/provider/openai.js +91 -91
  523. package/dist/plugin/provider/opencode.js +92 -92
  524. package/dist/plugin/provider/openrouter.js +90 -90
  525. package/dist/plugin/provider/perplexity.js +2 -2
  526. package/dist/plugin/provider/poe.js +77 -77
  527. package/dist/plugin/provider/prompt-cache-key.js +89 -89
  528. package/dist/plugin/provider/sap-ai-core.js +90 -90
  529. package/dist/plugin/provider/sdk-factory.js +1 -1
  530. package/dist/plugin/provider/snowflake-cortex.js +121 -121
  531. package/dist/plugin/provider/venice.js +2 -2
  532. package/dist/plugin/provider/vercel.js +89 -89
  533. package/dist/plugin/provider/vllm.js +121 -121
  534. package/dist/plugin/provider/xai.js +90 -90
  535. package/dist/plugin/provider/zenmux.js +1 -1
  536. package/dist/plugin/provider.js +158 -158
  537. package/dist/plugin/sdk.js +75 -75
  538. package/dist/plugin/service.js +3 -3
  539. package/dist/plugin/skill.js +140 -140
  540. package/dist/plugin/source-directory.js +1 -1
  541. package/dist/plugin/supervisor.js +343 -343
  542. package/dist/plugin/update.js +6 -6
  543. package/dist/plugin/vcs/git.js +85 -85
  544. package/dist/plugin/vcs/hg.js +85 -85
  545. package/dist/plugin/warming.js +120 -120
  546. package/dist/plugin/websearch/exa.js +7 -7
  547. package/dist/plugin/websearch/firecrawl.js +6 -6
  548. package/dist/plugin/websearch/index.js +9 -9
  549. package/dist/plugin/websearch/mcp.js +4 -4
  550. package/dist/plugin/websearch/parallel.js +8 -8
  551. package/dist/plugin/websearch/tavily.js +4 -4
  552. package/dist/plugin/websearch/tinyfish.js +8 -8
  553. package/dist/plugin.js +224 -224
  554. package/dist/project/schema.js +2 -2
  555. package/dist/project/sql.js +4 -4
  556. package/dist/project.js +83 -83
  557. package/dist/provider.js +98 -98
  558. package/dist/pty/protocol.js +1 -1
  559. package/dist/pty/schema.js +3 -3
  560. package/dist/pty/ticket.js +1 -1
  561. package/dist/pty.js +95 -95
  562. package/dist/reference/instructions.js +88 -88
  563. package/dist/reference.js +90 -90
  564. package/dist/repository-cache.js +80 -80
  565. package/dist/repository.js +3 -3
  566. package/dist/ripgrep/binary.js +2 -2
  567. package/dist/ripgrep.js +96 -96
  568. package/dist/rpc.js +85 -85
  569. package/dist/schema.js +1 -1
  570. package/dist/session/command.js +73 -73
  571. package/dist/session/compaction.js +133 -133
  572. package/dist/session/context.js +151 -151
  573. package/dist/session/diff.js +87 -87
  574. package/dist/session/environment.js +5 -5
  575. package/dist/session/error.js +5 -5
  576. package/dist/session/event.js +1 -1
  577. package/dist/session/execution/restart.js +223 -223
  578. package/dist/session/execution.js +125 -125
  579. package/dist/session/generate.js +150 -150
  580. package/dist/session/history.js +13 -13
  581. package/dist/session/inbox.js +85 -85
  582. package/dist/session/info.js +3 -3
  583. package/dist/session/instruction-entry.js +76 -76
  584. package/dist/session/instruction-state.js +8 -8
  585. package/dist/session/instructions.js +96 -96
  586. package/dist/session/message-updater.js +4 -4
  587. package/dist/session/message.js +1 -1
  588. package/dist/session/model-request.js +118 -118
  589. package/dist/session/model-transport.js +9 -9
  590. package/dist/session/move.js +129 -129
  591. package/dist/session/projector.js +85 -85
  592. package/dist/session/prompt.js +104 -104
  593. package/dist/session/provider-context.js +3 -3
  594. package/dist/session/revert.js +89 -89
  595. package/dist/session/run-coordinator.js +3 -3
  596. package/dist/session/runner/index.js +3 -3
  597. package/dist/session/runner/llm.js +230 -230
  598. package/dist/session/runner/max-steps.js +1 -1
  599. package/dist/session/runner/model.js +97 -97
  600. package/dist/session/runner/publish-llm-event.js +3 -3
  601. package/dist/session/runner/retry.js +111 -111
  602. package/dist/session/runner/step.js +123 -123
  603. package/dist/session/runner/to-llm-message.js +2 -2
  604. package/dist/session/schema.js +5 -5
  605. package/dist/session/session.js +171 -171
  606. package/dist/session/shell.js +137 -137
  607. package/dist/session/skill.js +102 -102
  608. package/dist/session/sql.js +5 -5
  609. package/dist/session/stats.js +74 -74
  610. package/dist/session/store.js +84 -84
  611. package/dist/session/subagent-completion.js +1 -1
  612. package/dist/session/subagent-job.js +207 -207
  613. package/dist/session/system-prompt.js +3 -3
  614. package/dist/session/title.js +151 -151
  615. package/dist/session/to-session-error.js +110 -110
  616. package/dist/session/transfer.js +222 -222
  617. package/dist/session/usage.js +1 -1
  618. package/dist/session.js +215 -215
  619. package/dist/shell/parse.js +6 -6
  620. package/dist/shell/result.js +1 -1
  621. package/dist/shell/scan.js +1 -1
  622. package/dist/shell/select.js +11 -11
  623. package/dist/shell.js +139 -139
  624. package/dist/skill/discovery.js +6 -6
  625. package/dist/skill/instructions.js +106 -106
  626. package/dist/skill.js +109 -109
  627. package/dist/snapshot.js +88 -88
  628. package/dist/state.js +1 -1
  629. package/dist/tool/html-markdown.js +1 -1
  630. package/dist/tool/http-body.js +1 -1
  631. package/dist/tool/mcp.js +126 -126
  632. package/dist/tool/plugin/edit.js +119 -119
  633. package/dist/tool/plugin/file-diff.js +1 -1
  634. package/dist/tool/plugin/glob.js +123 -123
  635. package/dist/tool/plugin/grep.js +123 -123
  636. package/dist/tool/plugin/opencode.js +3 -3
  637. package/dist/tool/plugin/patch.js +117 -117
  638. package/dist/tool/plugin/question.js +104 -104
  639. package/dist/tool/plugin/read.js +118 -118
  640. package/dist/tool/plugin/shell.js +212 -212
  641. package/dist/tool/plugin/skill.js +112 -112
  642. package/dist/tool/plugin/subagent.js +216 -216
  643. package/dist/tool/plugin/webfetch.js +109 -109
  644. package/dist/tool/plugin/websearch.js +113 -113
  645. package/dist/tool/plugin/write.js +121 -121
  646. package/dist/tool/read-filesystem.js +99 -99
  647. package/dist/tool/runtime.js +1 -1
  648. package/dist/tool-output.js +8 -8
  649. package/dist/tool.js +16 -16
  650. package/dist/util/error-summary.js +1 -1
  651. package/dist/util/error.js +1 -1
  652. package/dist/util/git-executable.js +2 -2
  653. package/dist/util/iife.js +1 -1
  654. package/dist/util/lazy.js +1 -1
  655. package/dist/util/slug.js +1 -1
  656. package/dist/util/token.js +1 -1
  657. package/dist/util/which.js +1 -1
  658. package/dist/util/wildcard.js +1 -1
  659. package/dist/v1/config/agent.js +5 -5
  660. package/dist/v1/config/attachment.js +4 -4
  661. package/dist/v1/config/command.js +5 -5
  662. package/dist/v1/config/config.js +14 -14
  663. package/dist/v1/config/error.js +2 -2
  664. package/dist/v1/config/formatter.js +7 -7
  665. package/dist/v1/config/layout.js +1 -1
  666. package/dist/v1/config/lsp.js +5 -5
  667. package/dist/v1/config/mcp.js +4 -4
  668. package/dist/v1/config/migrate.js +91 -91
  669. package/dist/v1/config/permission.js +3 -3
  670. package/dist/v1/config/plugin.js +1 -1
  671. package/dist/v1/config/provider-options.js +1 -1
  672. package/dist/v1/config/provider.js +4 -4
  673. package/dist/v1/config/server.js +2 -2
  674. package/dist/v1/config/skills.js +3 -3
  675. package/dist/v1/permission.js +1 -1
  676. package/dist/variant.js +90 -90
  677. package/dist/vcs/patch.js +1 -1
  678. package/dist/vcs.js +88 -88
  679. package/dist/websearch.js +83 -83
  680. package/dist/wellknown/plugin.js +75 -75
  681. package/dist/wellknown.js +78 -78
  682. package/dist/workspace/driver.js +7 -7
  683. package/dist/workspace/sql.js +1 -1
  684. package/dist/workspace.js +79 -79
  685. package/dist/worktree/directory.js +2 -2
  686. package/dist/worktree/git.js +10 -10
  687. package/dist/worktree/sql.js +5 -5
  688. package/dist/worktree/strategies.js +88 -88
  689. package/dist/worktree.js +95 -95
  690. package/package.json +8 -8
  691. package/dist/chunks/pty-0qs04gjp.js +0 -252
  692. package/dist/chunks/pty-1tm0r3ht.js +0 -4
  693. package/dist/chunks/pty-phz3h32g.js +0 -18
  694. package/dist/chunks/pty-pysn9s93.js +0 -26
  695. /package/dist/chunks/{pty-0qkdqm5v.js → worktree-0qkdqm5v.js} +0 -0
  696. /package/dist/chunks/{pty-0zkw76rk.js → worktree-0zkw76rk.js} +0 -0
  697. /package/dist/chunks/{pty-17cy0kzp.js → worktree-17cy0kzp.js} +0 -0
  698. /package/dist/chunks/{pty-1cnp2v09.js → worktree-1cnp2v09.js} +0 -0
  699. /package/dist/chunks/{pty-1kg9ymc8.js → worktree-1kg9ymc8.js} +0 -0
  700. /package/dist/chunks/{pty-24dcb14g.js → worktree-24dcb14g.js} +0 -0
  701. /package/dist/chunks/{pty-2710q6r3.js → worktree-2710q6r3.js} +0 -0
  702. /package/dist/chunks/{pty-2axfhc9x.js → worktree-2axfhc9x.js} +0 -0
  703. /package/dist/chunks/{pty-2c3vjs8z.js → worktree-2c3vjs8z.js} +0 -0
  704. /package/dist/chunks/{pty-359p4xyc.js → worktree-359p4xyc.js} +0 -0
  705. /package/dist/chunks/{pty-3asan66x.js → worktree-3asan66x.js} +0 -0
  706. /package/dist/chunks/{pty-3v8g72cx.js → worktree-3v8g72cx.js} +0 -0
  707. /package/dist/chunks/{pty-3w5fmr99.js → worktree-3w5fmr99.js} +0 -0
  708. /package/dist/chunks/{pty-3wcehsnq.js → worktree-3wcehsnq.js} +0 -0
  709. /package/dist/chunks/{pty-43n2bw4t.js → worktree-43n2bw4t.js} +0 -0
  710. /package/dist/chunks/{pty-4knz6hnm.js → worktree-4knz6hnm.js} +0 -0
  711. /package/dist/chunks/{pty-4vcrnpx2.js → worktree-4vcrnpx2.js} +0 -0
  712. /package/dist/chunks/{pty-4y7fprxs.js → worktree-4y7fprxs.js} +0 -0
  713. /package/dist/chunks/{pty-53557ph1.js → worktree-53557ph1.js} +0 -0
  714. /package/dist/chunks/{pty-550bvhaj.js → worktree-550bvhaj.js} +0 -0
  715. /package/dist/chunks/{pty-5qd3pb7m.js → worktree-5qd3pb7m.js} +0 -0
  716. /package/dist/chunks/{pty-6prwharc.js → worktree-6prwharc.js} +0 -0
  717. /package/dist/chunks/{pty-7akdwqpd.js → worktree-7akdwqpd.js} +0 -0
  718. /package/dist/chunks/{pty-7m9af43g.js → worktree-7m9af43g.js} +0 -0
  719. /package/dist/chunks/{pty-822emrt2.js → worktree-822emrt2.js} +0 -0
  720. /package/dist/chunks/{pty-88xbtdfr.js → worktree-88xbtdfr.js} +0 -0
  721. /package/dist/chunks/{pty-8n3pysct.js → worktree-8n3pysct.js} +0 -0
  722. /package/dist/chunks/{pty-922hggd3.js → worktree-922hggd3.js} +0 -0
  723. /package/dist/chunks/{pty-9a4afbnw.js → worktree-9a4afbnw.js} +0 -0
  724. /package/dist/chunks/{pty-9rqn6x4v.js → worktree-9rqn6x4v.js} +0 -0
  725. /package/dist/chunks/{pty-a6k6eb26.js → worktree-a6k6eb26.js} +0 -0
  726. /package/dist/chunks/{pty-af5trqkr.js → worktree-af5trqkr.js} +0 -0
  727. /package/dist/chunks/{pty-afrmfg78.js → worktree-afrmfg78.js} +0 -0
  728. /package/dist/chunks/{pty-aqzs7mqg.js → worktree-aqzs7mqg.js} +0 -0
  729. /package/dist/chunks/{pty-atq7p7m5.js → worktree-atq7p7m5.js} +0 -0
  730. /package/dist/chunks/{pty-bkyjaxrp.js → worktree-bkyjaxrp.js} +0 -0
  731. /package/dist/chunks/{pty-bmr6ed5q.js → worktree-bmr6ed5q.js} +0 -0
  732. /package/dist/chunks/{pty-cf4snx6d.js → worktree-cf4snx6d.js} +0 -0
  733. /package/dist/chunks/{pty-cvy3z8tj.js → worktree-cvy3z8tj.js} +0 -0
  734. /package/dist/chunks/{pty-d9fn303g.js → worktree-d9fn303g.js} +0 -0
  735. /package/dist/chunks/{pty-d9jj8t3e.js → worktree-d9jj8t3e.js} +0 -0
  736. /package/dist/chunks/{pty-dajrwvna.js → worktree-dajrwvna.js} +0 -0
  737. /package/dist/chunks/{pty-dap0rakb.js → worktree-dap0rakb.js} +0 -0
  738. /package/dist/chunks/{pty-df08tz66.js → worktree-df08tz66.js} +0 -0
  739. /package/dist/chunks/{pty-dy18nga0.js → worktree-dy18nga0.js} +0 -0
  740. /package/dist/chunks/{pty-e5kj55wp.js → worktree-e5kj55wp.js} +0 -0
  741. /package/dist/chunks/{pty-e73j6tqm.js → worktree-e73j6tqm.js} +0 -0
  742. /package/dist/chunks/{pty-ec1grn59.js → worktree-ec1grn59.js} +0 -0
  743. /package/dist/chunks/{pty-eh3zwz77.js → worktree-eh3zwz77.js} +0 -0
  744. /package/dist/chunks/{pty-emrn6kk6.js → worktree-emrn6kk6.js} +0 -0
  745. /package/dist/chunks/{pty-f0mxakyp.js → worktree-f0mxakyp.js} +0 -0
  746. /package/dist/chunks/{pty-f6n9ztr4.js → worktree-f6n9ztr4.js} +0 -0
  747. /package/dist/chunks/{pty-faypxj3z.js → worktree-faypxj3z.js} +0 -0
  748. /package/dist/chunks/{pty-fd410y7t.js → worktree-fd410y7t.js} +0 -0
  749. /package/dist/chunks/{pty-fxgpk5d8.js → worktree-fxgpk5d8.js} +0 -0
  750. /package/dist/chunks/{pty-g4wezp1m.js → worktree-g4wezp1m.js} +0 -0
  751. /package/dist/chunks/{pty-g86h250q.js → worktree-g86h250q.js} +0 -0
  752. /package/dist/chunks/{pty-gebd4c9n.js → worktree-gebd4c9n.js} +0 -0
  753. /package/dist/chunks/{pty-gftt206x.js → worktree-gftt206x.js} +0 -0
  754. /package/dist/chunks/{pty-hjbc5kem.js → worktree-hjbc5kem.js} +0 -0
  755. /package/dist/chunks/{pty-hk9envan.js → worktree-hk9envan.js} +0 -0
  756. /package/dist/chunks/{pty-j2ntwpah.js → worktree-j2ntwpah.js} +0 -0
  757. /package/dist/chunks/{pty-j5zkgpj8.js → worktree-j5zkgpj8.js} +0 -0
  758. /package/dist/chunks/{pty-jjkms2e6.js → worktree-jjkms2e6.js} +0 -0
  759. /package/dist/chunks/{pty-jr7sbwjy.js → worktree-jr7sbwjy.js} +0 -0
  760. /package/dist/chunks/{pty-jwfs4k6c.js → worktree-jwfs4k6c.js} +0 -0
  761. /package/dist/chunks/{pty-jzg6c2d5.js → worktree-jzg6c2d5.js} +0 -0
  762. /package/dist/chunks/{pty-mp448xyj.js → worktree-mp448xyj.js} +0 -0
  763. /package/dist/chunks/{pty-msx8hqn2.js → worktree-msx8hqn2.js} +0 -0
  764. /package/dist/chunks/{pty-n05xt0ee.js → worktree-n05xt0ee.js} +0 -0
  765. /package/dist/chunks/{pty-n3j8tn72.js → worktree-n3j8tn72.js} +0 -0
  766. /package/dist/chunks/{pty-njntx4h6.js → worktree-njntx4h6.js} +0 -0
  767. /package/dist/chunks/{pty-q3sfg36h.js → worktree-q3sfg36h.js} +0 -0
  768. /package/dist/chunks/{pty-q74kybfr.js → worktree-q74kybfr.js} +0 -0
  769. /package/dist/chunks/{pty-qaymkmh1.js → worktree-qaymkmh1.js} +0 -0
  770. /package/dist/chunks/{pty-qb87gjwd.js → worktree-qb87gjwd.js} +0 -0
  771. /package/dist/chunks/{pty-qfa1cgps.js → worktree-qfa1cgps.js} +0 -0
  772. /package/dist/chunks/{pty-qg3g05ea.js → worktree-qg3g05ea.js} +0 -0
  773. /package/dist/chunks/{pty-qrg20bc0.js → worktree-qrg20bc0.js} +0 -0
  774. /package/dist/chunks/{pty-rcb2kzg1.js → worktree-rcb2kzg1.js} +0 -0
  775. /package/dist/chunks/{pty-sdp7kfr6.js → worktree-sdp7kfr6.js} +0 -0
  776. /package/dist/chunks/{pty-sk3qaz4a.js → worktree-sk3qaz4a.js} +0 -0
  777. /package/dist/chunks/{pty-ssg3fenm.js → worktree-ssg3fenm.js} +0 -0
  778. /package/dist/chunks/{pty-twg0f83k.js → worktree-twg0f83k.js} +0 -0
  779. /package/dist/chunks/{pty-w803qqfp.js → worktree-w803qqfp.js} +0 -0
  780. /package/dist/chunks/{pty-wc3fc9cn.js → worktree-wc3fc9cn.js} +0 -0
  781. /package/dist/chunks/{pty-wer8tq1h.js → worktree-wer8tq1h.js} +0 -0
  782. /package/dist/chunks/{pty-wtztk69x.js → worktree-wtztk69x.js} +0 -0
  783. /package/dist/chunks/{pty-x0ckcb58.js → worktree-x0ckcb58.js} +0 -0
  784. /package/dist/chunks/{pty-x61499pn.js → worktree-x61499pn.js} +0 -0
  785. /package/dist/chunks/{pty-y44na4kk.js → worktree-y44na4kk.js} +0 -0
  786. /package/dist/chunks/{pty-y8cydn3q.js → worktree-y8cydn3q.js} +0 -0
  787. /package/dist/chunks/{pty-y8f7s663.js → worktree-y8f7s663.js} +0 -0
  788. /package/dist/chunks/{pty-ygaqb7jw.js → worktree-ygaqb7jw.js} +0 -0
  789. /package/dist/chunks/{pty-ym463w8f.js → worktree-ym463w8f.js} +0 -0
  790. /package/dist/chunks/{pty-z9919s4g.js → worktree-z9919s4g.js} +0 -0
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  __export
3
- } from "./pty-9rqn6x4v.js";
3
+ } from "./worktree-9rqn6x4v.js";
4
4
 
5
5
  // src/session/usage.ts
6
6
  var exports_usage = {};
@@ -1,13 +1,13 @@
1
1
  import {
2
2
  __export
3
- } from "./pty-9rqn6x4v.js";
3
+ } from "./worktree-9rqn6x4v.js";
4
4
 
5
5
  // src/plugin/hooks.ts
6
6
  var exports_hooks = {};
7
7
  __export(exports_hooks, {
8
8
  PluginHooks: () => exports_hooks,
9
- Service: () => Service72,
10
- node: () => node76
9
+ Service: () => Service83,
10
+ node: () => node87
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 Service72 extends Context.Service()("@opencode/PluginHooks") {
23
+ class Service83 extends Context.Service()("@opencode/PluginHooks") {
24
24
  }
25
- var layer = Layer.effect(Service72, Effect.gen(function* () {
25
+ var layer = Layer.effect(Service83, 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(Service72, 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 Service72.of({ has, register, trigger });
57
+ return Service83.of({ has, register, trigger });
58
58
  }));
59
- var node76 = makeLocationNode({ service: Service72, layer, deps: [] });
59
+ var node87 = makeLocationNode({ service: Service83, layer, deps: [] });
60
60
 
61
- export { Service72, node76, exports_hooks };
61
+ export { Service83, node87, exports_hooks };
@@ -1,24 +1,24 @@
1
1
  import {
2
- Service82
3
- } from "./pty-phrgc7s2.js";
2
+ Service79
3
+ } from "./worktree-2ecm7k5x.js";
4
4
  import {
5
5
  OAuth3,
6
- Event19
7
- } from "./pty-x1gfpc1p.js";
6
+ Event18
7
+ } from "./worktree-s0443v51.js";
8
8
  import {
9
- ID14,
9
+ ID13,
10
10
  MethodID2
11
- } from "./pty-2gw9te71.js";
11
+ } from "./worktree-gcp4fqq7.js";
12
12
  import {
13
- ID13,
13
+ ID12,
14
14
  mergeOverlay2,
15
15
  mergeHeaders2
16
- } from "./pty-jnwk8z6k.js";
16
+ } from "./worktree-v057vym3.js";
17
17
  import {
18
- ID3,
19
- Input13,
18
+ ID5,
19
+ Input14,
20
20
  Response2
21
- } from "./pty-6j9cmr93.js";
21
+ } from "./worktree-kh3vq3v6.js";
22
22
 
23
23
  // src/plugin/provider/opencode.ts
24
24
  import { Duration, Effect, Equal, Schema, Semaphore, Stream } from "effect";
@@ -32,7 +32,7 @@ var methodID = MethodID2.make("device");
32
32
  var RemoteResponse = Schema.Struct({
33
33
  providers: Schema.Record(Schema.String, ConfigProvider.Info),
34
34
  websearch: Schema.Struct({
35
- providerID: ID3
35
+ providerID: ID5
36
36
  }).pipe(Schema.optional)
37
37
  });
38
38
  var Device = Schema.Struct({
@@ -54,7 +54,7 @@ var User = Schema.Struct({ id: Schema.String, email: Schema.String });
54
54
  var Org = Schema.Struct({ id: Schema.String, name: Schema.String });
55
55
  function oauth(http) {
56
56
  return {
57
- integrationID: ID14.make("opencode"),
57
+ integrationID: ID13.make("opencode"),
58
58
  method: {
59
59
  id: methodID,
60
60
  type: "oauth",
@@ -99,7 +99,7 @@ function oauth(http) {
99
99
  var OpencodePlugin2 = define({
100
100
  id: "opencode.provider.opencode",
101
101
  effect: Effect.fn(function* (ctx) {
102
- const bus = yield* Service82;
102
+ const bus = yield* Service79;
103
103
  const http = yield* HttpClient.HttpClient;
104
104
  const loading = Semaphore.makeUnsafe(1);
105
105
  let snapshot = { config: undefined, connection: undefined };
@@ -125,7 +125,7 @@ var OpencodePlugin2 = define({
125
125
  providers.update(providerID, (provider) => {
126
126
  if (source && source.provider !== provider)
127
127
  Object.assign(provider, structuredClone(source.provider), { id: provider.id });
128
- provider.integrationID = ID14.make("opencode");
128
+ provider.integrationID = ID13.make("opencode");
129
129
  if (item.canonical !== undefined)
130
130
  provider.canonical = item.canonical;
131
131
  if (item.name !== undefined)
@@ -195,7 +195,7 @@ var OpencodePlugin2 = define({
195
195
  sourceConnection: snapshot.connection
196
196
  });
197
197
  }
198
- const item = providers.get(ID13.opencode);
198
+ const item = providers.get(ID12.opencode);
199
199
  if (!item)
200
200
  return;
201
201
  const hasKey = Boolean(process.env.OPENCODE_API_KEY || snapshot.connection || item.provider.settings?.apiKey);
@@ -207,7 +207,7 @@ var OpencodePlugin2 = define({
207
207
  });
208
208
  });
209
209
  yield* ctx.model.transform((models) => {
210
- const item = models.provider.get(ID13.opencode);
210
+ const item = models.provider.get(ID12.opencode);
211
211
  if (!item)
212
212
  return;
213
213
  const hasKey = Boolean(process.env.OPENCODE_API_KEY || snapshot.connection || item.provider.settings?.apiKey && item.provider.settings.apiKey !== "public");
@@ -241,7 +241,7 @@ var OpencodePlugin2 = define({
241
241
  const orgID = typeof metadata?.orgID === "string" ? metadata.orgID : undefined;
242
242
  const token = credential.type === "oauth" ? credential.access : credential.key;
243
243
  const server = yield* normalizeServer(serverUrl(credential));
244
- const request = yield* HttpClientRequest.post(`${server}/api/websearch`).pipe(HttpClientRequest.acceptJson, HttpClientRequest.bearerToken(token), HttpClientRequest.setHeaders(orgID ? { "x-org-id": orgID } : {}), HttpClientRequest.schemaBodyJson(Input13)({
244
+ const request = yield* HttpClientRequest.post(`${server}/api/websearch`).pipe(HttpClientRequest.acceptJson, HttpClientRequest.bearerToken(token), HttpClientRequest.setHeaders(orgID ? { "x-org-id": orgID } : {}), HttpClientRequest.schemaBodyJson(Input14)({
245
245
  query: input.query,
246
246
  providerID: descriptor.providerID
247
247
  }));
@@ -262,7 +262,7 @@ var OpencodePlugin2 = define({
262
262
  yield* Effect.all([ctx.provider.reload(), ctx.websearch.reload()], { concurrency: 2, discard: true });
263
263
  });
264
264
  const refresh = () => loading.withPermit(load().pipe(Effect.andThen(apply)));
265
- yield* bus.subscribe(Event19.Switched).pipe(Stream.filter((event) => event.data.integrationID === ID14.make("opencode")), Stream.runForEach(refresh), Effect.forkScoped({ startImmediately: true }));
265
+ yield* bus.subscribe(Event18.Switched).pipe(Stream.filter((event) => event.data.integrationID === ID13.make("opencode")), Stream.runForEach(refresh), Effect.forkScoped({ startImmediately: true }));
266
266
  yield* Effect.sleep(Duration.minutes(1)).pipe(Effect.andThen(loading.withPermit(load().pipe(Effect.flatMap((next) => Equal.equals(snapshot, next) ? Effect.void : apply(next))))), Effect.forever, Effect.forkScoped);
267
267
  })
268
268
  });
@@ -1,51 +1,51 @@
1
1
  import {
2
2
  AbsolutePath2
3
- } from "./pty-922hggd3.js";
3
+ } from "./worktree-922hggd3.js";
4
4
  import {
5
5
  WorktreeError2,
6
- node85
7
- } from "./pty-74rrnwt7.js";
6
+ node82
7
+ } from "./worktree-xm1e10md.js";
8
8
  import {
9
9
  Slug2
10
- } from "./pty-gebd4c9n.js";
10
+ } from "./worktree-gebd4c9n.js";
11
11
  import {
12
- Service83,
13
- node87
14
- } from "./pty-rqg791dd.js";
12
+ Service80,
13
+ node84
14
+ } from "./worktree-3zwsa50c.js";
15
15
  import {
16
- Service82,
17
- node86
18
- } from "./pty-phrgc7s2.js";
16
+ Service79,
17
+ node83
18
+ } from "./worktree-2ecm7k5x.js";
19
19
  import {
20
20
  ProjectTable2
21
- } from "./pty-dj2t23y0.js";
21
+ } from "./worktree-8p4f9s12.js";
22
22
  import {
23
23
  WorktreeTable2
24
- } from "./pty-m0jqrx5p.js";
24
+ } from "./worktree-cfpkc3c9.js";
25
25
  import {
26
26
  ID17,
27
27
  NotFoundError11
28
- } from "./pty-4kgnd0zh.js";
28
+ } from "./worktree-qnmg5nvf.js";
29
29
  import {
30
30
  Ref4
31
- } from "./pty-t159kbzr.js";
31
+ } from "./worktree-g9b0yvmz.js";
32
32
  import {
33
- Service52,
34
- node55
35
- } from "./pty-wv40thab.js";
33
+ Service60,
34
+ node63
35
+ } from "./worktree-170wnync.js";
36
36
  import {
37
37
  DirectoryUnavailableError2,
38
38
  canonical2
39
- } from "./pty-gv6a8nnw.js";
39
+ } from "./worktree-gv6a8nnw.js";
40
40
  import {
41
- make12
42
- } from "./pty-svvemcs6.js";
41
+ make20
42
+ } from "./worktree-qa8hdfea.js";
43
43
  import {
44
- Service18
45
- } from "./pty-x7vb65wd.js";
44
+ Service59
45
+ } from "./worktree-h55255v8.js";
46
46
  import {
47
47
  __export
48
- } from "./pty-9rqn6x4v.js";
48
+ } from "./worktree-9rqn6x4v.js";
49
49
 
50
50
  // src/worktree.ts
51
51
  var exports_worktree2 = {};
@@ -53,19 +53,19 @@ __export(exports_worktree2, {
53
53
  CreateInput: () => CreateInput2,
54
54
  DestinationExistsError: () => DestinationExistsError2,
55
55
  DirectoryUnavailableError: () => DirectoryUnavailableError2,
56
- Event: () => Event4,
57
- Info: () => Info3,
56
+ Event: () => Event12,
57
+ Info: () => Info23,
58
58
  InvalidDirectoryError: () => InvalidDirectoryError2,
59
59
  List: () => List2,
60
60
  ListEntry: () => ListEntry3,
61
61
  OperationError: () => OperationError2,
62
62
  RemoveInput: () => RemoveInput2,
63
- Service: () => Service17,
63
+ Service: () => Service58,
64
64
  SourceDirectoryNotFoundError: () => SourceDirectoryNotFoundError2,
65
65
  StrategyID: () => StrategyID2,
66
66
  StrategyUnavailableError: () => StrategyUnavailableError2,
67
67
  Worktree: () => exports_worktree2,
68
- node: () => node20
68
+ node: () => node61
69
69
  });
70
70
  import { Context, Effect, Layer, Schema } from "effect";
71
71
  import { and, asc, desc, eq, isNull, sql } from "drizzle-orm";
@@ -79,7 +79,7 @@ import { OperationError as OperationError2 } from "@opencode/schema/worktree";
79
79
  var StrategyID2 = Worktree.StrategyID;
80
80
  var CreateInput2 = Worktree.CreateInput;
81
81
  var RemoveInput2 = Worktree.RemoveInput;
82
- var Info3 = Worktree.Info;
82
+ var Info23 = Worktree.Info;
83
83
  var List2 = Worktree.List;
84
84
  var ListEntry3 = Worktree.ListEntry;
85
85
 
@@ -94,18 +94,18 @@ class InvalidDirectoryError2 extends Schema.TaggedError()("Worktree.InvalidDirec
94
94
 
95
95
  class StrategyUnavailableError2 extends Schema.TaggedError()("Worktree.StrategyUnavailableError", { strategy: StrategyID2 }) {
96
96
  }
97
- var Event4 = Worktree.Event;
97
+ var Event12 = Worktree.Event;
98
98
 
99
- class Service17 extends Context.Service()("@opencode/Worktree") {
99
+ class Service58 extends Context.Service()("@opencode/Worktree") {
100
100
  }
101
- var layer = Layer.effect(Service17, Effect.gen(function* () {
101
+ var layer = Layer.effect(Service58, Effect.gen(function* () {
102
102
  const fs = yield* FSUtil.Service;
103
- const database = yield* Service83;
103
+ const database = yield* Service80;
104
104
  const db = database.db;
105
- const bus = yield* Service82;
105
+ const bus = yield* Service79;
106
106
  const processService = yield* AppProcess.Service;
107
- const locations = yield* Service52;
108
- const gitStrategy = yield* make12;
107
+ const locations = yield* Service60;
108
+ const gitStrategy = yield* make20;
109
109
  const project = Effect.fnUntraced(function* (projectID) {
110
110
  const row = yield* db.select().from(ProjectTable2).where(eq(ProjectTable2.id, projectID)).get().pipe(Effect.orDie);
111
111
  if (!row)
@@ -120,11 +120,11 @@ var layer = Layer.effect(Service17, Effect.gen(function* () {
120
120
  const { Plugin } = yield* Effect.promise(() => import("../plugin.js"));
121
121
  const context = yield* locations.contextEffect(Ref4.make({ directory }));
122
122
  yield* Context.get(context, Plugin.Service).awaitActivation;
123
- return Context.get(context, Service18).get();
123
+ return Context.get(context, Service59).get();
124
124
  });
125
125
  const changed = Effect.fnUntraced(function* (projectID, update) {
126
126
  if (update)
127
- yield* bus.publish(Event4.Updated, { projectID });
127
+ yield* bus.publish(Event12.Updated, { projectID });
128
128
  });
129
129
  const ops = {
130
130
  list: Effect.fnUntraced(function* (projectID) {
@@ -251,7 +251,7 @@ var layer = Layer.effect(Service17, Effect.gen(function* () {
251
251
  })).pipe(Effect.orDie);
252
252
  yield* changed(input.projectID, changes.updated.length > 0 || changes.removed.length > 0);
253
253
  }, Effect.scoped);
254
- return Service17.of({
254
+ return Service58.of({
255
255
  list: Effect.fn("Worktree.list")(function* (input) {
256
256
  yield* project(input.projectID);
257
257
  return yield* ops.list(input.projectID);
@@ -261,10 +261,10 @@ var layer = Layer.effect(Service17, Effect.gen(function* () {
261
261
  refresh
262
262
  });
263
263
  }));
264
- var node20 = Node.makeGlobalNode({
265
- service: Service17,
264
+ var node61 = Node.makeGlobalNode({
265
+ service: Service58,
266
266
  layer,
267
- deps: [FSUtil.node, node85, node86, node87, AppProcess.node, node55]
267
+ deps: [FSUtil.node, node82, node83, node84, AppProcess.node, node63]
268
268
  });
269
269
  function operationError(strategy, operation, error) {
270
270
  if (error instanceof WorktreeError2 || error instanceof DirectoryUnavailableError2 || error instanceof Worktree.OperationError)
@@ -274,4 +274,4 @@ function operationError(strategy, operation, error) {
274
274
  });
275
275
  }
276
276
 
277
- export { StrategyID2, CreateInput2, RemoveInput2, Info3, List2, ListEntry3, SourceDirectoryNotFoundError2, DestinationExistsError2, InvalidDirectoryError2, StrategyUnavailableError2, Event4, Service17, node20, exports_worktree2, OperationError2 };
277
+ export { StrategyID2, CreateInput2, RemoveInput2, Info23, List2, ListEntry3, SourceDirectoryNotFoundError2, DestinationExistsError2, InvalidDirectoryError2, StrategyUnavailableError2, Event12, Service58, node61, exports_worktree2, OperationError2 };
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  __export
3
- } from "./pty-9rqn6x4v.js";
3
+ } from "./worktree-9rqn6x4v.js";
4
4
 
5
5
  // src/id/id.ts
6
6
  var exports_id = {};
@@ -1,27 +1,27 @@
1
1
  import {
2
- Service82,
3
- node86
4
- } from "./pty-phrgc7s2.js";
2
+ Service79,
3
+ node83
4
+ } from "./worktree-2ecm7k5x.js";
5
5
  import {
6
6
  shutdown2,
7
7
  create3
8
- } from "./pty-rdw6cm16.js";
8
+ } from "./worktree-rdw6cm16.js";
9
9
  import {
10
- ID14,
11
- Service76,
12
- node80,
13
- Event18
14
- } from "./pty-2gw9te71.js";
10
+ ID13,
11
+ Service71,
12
+ node75,
13
+ Event17
14
+ } from "./worktree-gcp4fqq7.js";
15
15
  import {
16
16
  key2
17
- } from "./pty-h6r3nrb9.js";
17
+ } from "./worktree-4dgbcxzg.js";
18
18
  import {
19
- Service79,
20
- node83
21
- } from "./pty-t159kbzr.js";
19
+ Service76,
20
+ node80
21
+ } from "./worktree-g9b0yvmz.js";
22
22
  import {
23
23
  __export
24
- } from "./pty-9rqn6x4v.js";
24
+ } from "./worktree-9rqn6x4v.js";
25
25
 
26
26
  // src/aisdk-native.ts
27
27
  var exports_aisdk_native = {};
@@ -36,13 +36,13 @@ import { Effect as Effect2, Option, Schema as Schema2, Struct as Struct2 } from
36
36
  var exports_provider3 = {};
37
37
  __export(exports_provider3, {
38
38
  AISDK_PREFIX: () => AISDK_PREFIX2,
39
- Event: () => Event17,
40
- ID: () => ID13,
41
- Info: () => Info27,
39
+ Event: () => Event16,
40
+ ID: () => ID12,
41
+ Info: () => Info26,
42
42
  LoadError: () => LoadError3,
43
43
  Provider: () => exports_provider3,
44
44
  Request: () => Request3,
45
- Service: () => Service75,
45
+ Service: () => Service70,
46
46
  Settings: () => Settings2,
47
47
  aisdk: () => aisdk2,
48
48
  isAISDK: () => isAISDK2,
@@ -50,7 +50,7 @@ __export(exports_provider3, {
50
50
  mergeHeaders: () => mergeHeaders2,
51
51
  mergeOverlay: () => mergeOverlay2,
52
52
  nativeSettings: () => nativeSettings2,
53
- node: () => node79,
53
+ node: () => node74,
54
54
  packageName: () => packageName2
55
55
  });
56
56
  import { Context, Effect, Layer, Schema, Stream, Struct } from "effect";
@@ -61,8 +61,8 @@ import { isRecord } from "@opencode/ai/utils/record";
61
61
  import { importModule, resolveModule } from "@opencode/util/runtime-import";
62
62
  import { Credential } from "@opencode/schema/credential";
63
63
  import { freeze } from "immer";
64
- import { Event as Event17 } from "@opencode/schema/provider";
65
- var ID13 = Provider.ID;
64
+ import { Event as Event16 } from "@opencode/schema/provider";
65
+ var ID12 = Provider.ID;
66
66
  var AISDK_PREFIX2 = "aisdk:";
67
67
  var isAISDK2 = (value) => value?.startsWith(AISDK_PREFIX2) ?? false;
68
68
  var aisdk2 = (value) => isAISDK2(value) ? value : `${AISDK_PREFIX2}${value}`;
@@ -201,9 +201,9 @@ function mergeHeaders2(base, overlay) {
201
201
  }
202
202
  var Request3 = Provider.Request;
203
203
  var Settings2 = Provider.Settings;
204
- var Info27 = Provider.Info;
204
+ var Info26 = Provider.Info;
205
205
 
206
- class Service75 extends Context.Service()("@opencode/Provider") {
206
+ class Service70 extends Context.Service()("@opencode/Provider") {
207
207
  }
208
208
  var definitions = new WeakMap;
209
209
  function index(providerID, models) {
@@ -216,10 +216,10 @@ function index(providerID, models) {
216
216
  definitions.set(models, indexes);
217
217
  return result;
218
218
  }
219
- var layer = Layer.effect(Service75, Effect.gen(function* () {
220
- const bus = yield* Service82;
221
- const integrations = yield* Service76;
222
- const location = yield* Service79;
219
+ var layer = Layer.effect(Service70, Effect.gen(function* () {
220
+ const bus = yield* Service79;
221
+ const integrations = yield* Service71;
222
+ const location = yield* Service76;
223
223
  const state = create3({
224
224
  name: "provider",
225
225
  initial: () => new Map,
@@ -230,7 +230,7 @@ var layer = Layer.effect(Service75, Effect.gen(function* () {
230
230
  const current = records.get(id);
231
231
  if (current)
232
232
  return current;
233
- const added = { provider: Info27.empty(id), models: new Map };
233
+ const added = { provider: Info26.empty(id), models: new Map };
234
234
  records.set(id, added);
235
235
  maps.add(added.models);
236
236
  return added;
@@ -311,7 +311,7 @@ var layer = Layer.effect(Service75, Effect.gen(function* () {
311
311
  const available = Array.from(records.values()).filter((record) => {
312
312
  if (record.provider.activation === "disabled")
313
313
  return false;
314
- const integration = byID.get(record.provider.integrationID ?? ID14.make(record.provider.id));
314
+ const integration = byID.get(record.provider.integrationID ?? ID13.make(record.provider.id));
315
315
  if (record.sourceConnection && key2(record.sourceConnection) !== key2(integration?.connections[0]))
316
316
  return false;
317
317
  if (record.provider.activation === "enabled")
@@ -337,8 +337,8 @@ var layer = Layer.effect(Service75, Effect.gen(function* () {
337
337
  location: { directory: location.directory, workspaceID: location.workspaceID }
338
338
  });
339
339
  });
340
- yield* bus.subscribe([Event18.Updated, Credential.Event.Updated, Credential.Event.Switched]).pipe(Stream.runForEach(() => notify), Effect.forkScoped({ startImmediately: true }));
341
- return Service75.of({
340
+ yield* bus.subscribe([Event17.Updated, Credential.Event.Updated, Credential.Event.Switched]).pipe(Stream.runForEach(() => notify), Effect.forkScoped({ startImmediately: true }));
341
+ return Service70.of({
342
342
  transform: state.transform,
343
343
  reload: state.reload,
344
344
  get: Effect.fn("Provider.get")((id) => Effect.sync(() => freeze(state.get().get(id)?.provider, true))),
@@ -347,7 +347,7 @@ var layer = Layer.effect(Service75, Effect.gen(function* () {
347
347
  snapshot
348
348
  });
349
349
  }));
350
- var node79 = makeLocationNode({ service: Service75, layer, deps: [node86, node80, node83] });
350
+ var node74 = makeLocationNode({ service: Service70, layer, deps: [node83, node75, node80] });
351
351
  var importPackage = Effect.fn("Provider.importPackage")(function* (specifier, entrypoint, load = () => importModule(entrypoint)) {
352
352
  const module = yield* Effect.tryPromise({
353
353
  try: () => {
@@ -607,4 +607,4 @@ var Legacy = Schema2.StructWithRest(Schema2.Struct({
607
607
  }), [Schema2.Record(Schema2.String, Schema2.Unknown)]);
608
608
  var decode = Schema2.decodeUnknownSync(Legacy);
609
609
 
610
- export { rewrite2, native2, exports_aisdk_native, ID13, AISDK_PREFIX2, isAISDK2, aisdk2, packageName2, LoadError3, loadPackage2, nativeSettings2, mergeOverlay2, mergeHeaders2, Request3, Settings2, Info27, Service75, node79, exports_provider3, Event17 };
610
+ export { rewrite2, native2, exports_aisdk_native, ID12, AISDK_PREFIX2, isAISDK2, aisdk2, packageName2, LoadError3, loadPackage2, nativeSettings2, mergeOverlay2, mergeHeaders2, Request3, Settings2, Info26, Service70, node74, exports_provider3, Event16 };
@@ -2,45 +2,45 @@ import {
2
2
  NotFound2,
3
3
  WrongKind2,
4
4
  Failed2
5
- } from "./pty-2a5m3afh.js";
5
+ } from "./worktree-2a5m3afh.js";
6
6
  import {
7
- Service79
8
- } from "./pty-t159kbzr.js";
7
+ Service76
8
+ } from "./worktree-g9b0yvmz.js";
9
9
  import {
10
- Service63
11
- } from "./pty-2acp3zpj.js";
10
+ Service64
11
+ } from "./worktree-8zjetqqg.js";
12
12
  import {
13
- Service59
14
- } from "./pty-dqa43dhg.js";
13
+ Service33
14
+ } from "./worktree-zjd7s1bk.js";
15
15
  import {
16
- Service19,
16
+ Service55,
17
17
  readText2,
18
18
  syncTextBom2
19
- } from "./pty-h66ycz74.js";
19
+ } from "./worktree-w59x44tx.js";
20
20
  import {
21
- Service68
22
- } from "./pty-hht4hdr7.js";
21
+ Service51
22
+ } from "./worktree-6hk05hg4.js";
23
23
  import {
24
- Service67,
24
+ Service50,
25
25
  resolvePath2
26
- } from "./pty-6ep9m4sq.js";
26
+ } from "./worktree-e5kbttzp.js";
27
27
  import {
28
28
  fileDiff2
29
- } from "./pty-6prwharc.js";
29
+ } from "./worktree-6prwharc.js";
30
30
  import {
31
31
  __export
32
- } from "./pty-9rqn6x4v.js";
32
+ } from "./worktree-9rqn6x4v.js";
33
33
 
34
34
  // src/tool/plugin/patch.ts
35
35
  var exports_patch = {};
36
36
  __export(exports_patch, {
37
37
  Applied: () => Applied2,
38
38
  Input: () => Input6,
39
- Output: () => Output5,
39
+ Output: () => Output4,
40
40
  PatchTool: () => exports_patch,
41
- Plugin: () => Plugin22,
41
+ Plugin: () => Plugin39,
42
42
  name: () => name6,
43
- toModelContent: () => toModelContent3
43
+ toModelContent: () => toModelContent4
44
44
  });
45
45
  import { ToolFailure } from "@opencode/ai";
46
46
  import { FileDiff } from "@opencode/schema/file-diff";
@@ -96,30 +96,30 @@ var Applied2 = Schema.Struct({
96
96
  resource: Schema.String,
97
97
  target: Schema.String
98
98
  });
99
- var Output5 = Schema.Struct({
99
+ var Output4 = Schema.Struct({
100
100
  applied: Schema.Array(Applied2),
101
101
  files: Schema.Array(FileDiff.Info)
102
102
  });
103
- var toModelContent3 = (output) => [
103
+ var toModelContent4 = (output) => [
104
104
  "Success. Updated the following files:",
105
105
  ...output.applied.map((item) => `${item.type === "add" ? "A" : item.type === "delete" ? "D" : "M"} ${item.resource}`)
106
106
  ].join(`
107
107
  `);
108
- var Plugin22 = {
108
+ var Plugin39 = {
109
109
  id: "opencode.tool.patch",
110
110
  effect: Effect.fn("PatchTool.Plugin")(function* (ctx) {
111
- const environment = yield* Service63;
112
- const access = yield* Service67;
113
- const fileMutation = yield* Service19;
114
- const formatter = yield* Service59;
115
- const location = yield* Service79;
116
- const permission = yield* Service68;
111
+ const environment = yield* Service64;
112
+ const access = yield* Service50;
113
+ const fileMutation = yield* Service55;
114
+ const formatter = yield* Service33;
115
+ const location = yield* Service76;
116
+ const permission = yield* Service51;
117
117
  yield* ctx.tool.transform((editor) => editor.add({
118
118
  name: name6,
119
119
  options: { codemode: false, permission: "edit" },
120
120
  description: patch_default,
121
121
  input: Input6,
122
- output: Output5,
122
+ output: Output4,
123
123
  execute: (input, context) => {
124
124
  const applied = [];
125
125
  const parsed = Patch.parse(input.patchText);
@@ -266,7 +266,7 @@ var Plugin22 = {
266
266
  return { applied, files };
267
267
  }).pipe(fileMutation.withLock(lockTargets), Effect.map((output) => ({
268
268
  output,
269
- content: toModelContent3(output),
269
+ content: toModelContent4(output),
270
270
  metadata: { files: output.files }
271
271
  })), Effect.mapError((error) => error instanceof ToolFailure ? error : new ToolFailure({ message: "Unable to apply patch", error })));
272
272
  }
@@ -326,4 +326,4 @@ function trimDiff(diff) {
326
326
  `);
327
327
  }
328
328
 
329
- export { name6, Input6, Applied2, Output5, toModelContent3, Plugin22, exports_patch };
329
+ export { name6, Input6, Applied2, Output4, toModelContent4, Plugin39, exports_patch };
@@ -1,6 +1,6 @@
1
1
  import {
2
- ID13
3
- } from "./pty-jnwk8z6k.js";
2
+ ID12
3
+ } from "./worktree-v057vym3.js";
4
4
 
5
5
  // src/plugin/provider/google-vertex.ts
6
6
  import { Effect } from "effect";
@@ -24,7 +24,7 @@ var GoogleVertexPlugin2 = define({
24
24
  effect: Effect.fn(function* (ctx) {
25
25
  yield* ctx.provider.transform((evt) => {
26
26
  for (const item of evt.list()) {
27
- if (!item.provider.package.startsWith("@opencode/ai/providers/google-vertex") && !(item.provider.id === ID13.googleVertex && item.provider.package === "@opencode/ai/providers/openai-compatible"))
27
+ if (!item.provider.package.startsWith("@opencode/ai/providers/google-vertex") && !(item.provider.id === ID12.googleVertex && item.provider.package === "@opencode/ai/providers/openai-compatible"))
28
28
  continue;
29
29
  const project = resolveProject(item.provider.settings ?? {});
30
30
  const location = String(resolveLocation(item.provider.settings ?? {}));
@@ -42,7 +42,7 @@ var GoogleVertexPlugin2 = define({
42
42
  });
43
43
  yield* ctx.model.transform((models) => {
44
44
  for (const item of models.provider.list()) {
45
- if (!item.provider.package.startsWith("@opencode/ai/providers/google-vertex") && !(item.provider.id === ID13.googleVertex && item.provider.package === "@opencode/ai/providers/openai-compatible"))
45
+ if (!item.provider.package.startsWith("@opencode/ai/providers/google-vertex") && !(item.provider.id === ID12.googleVertex && item.provider.package === "@opencode/ai/providers/openai-compatible"))
46
46
  continue;
47
47
  const project = resolveProject(item.provider.settings ?? {});
48
48
  const location = String(resolveLocation(item.provider.settings ?? {}));
@@ -59,7 +59,7 @@ var GoogleVertexPlugin2 = define({
59
59
  }
60
60
  });
61
61
  yield* ctx.aisdk.hook("language", Effect.fn(function* (evt) {
62
- if (evt.model.providerID !== ID13.googleVertex)
62
+ if (evt.model.providerID !== ID12.googleVertex)
63
63
  return;
64
64
  evt.language = evt.sdk.languageModel(String(evt.model.modelID ?? evt.model.id).trim());
65
65
  }));