@opencode/core 0.0.0-dev-20097 → 0.0.0-dev-20105

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 (799) hide show
  1. package/dist/account/sql.js +1 -1
  2. package/dist/agent.js +81 -81
  3. package/dist/aisdk-native.js +89 -89
  4. package/dist/aisdk.js +94 -94
  5. package/dist/app.js +9 -9
  6. package/dist/bus.js +69 -69
  7. package/dist/chunks/{agent-bct739vz.js → worktree-00z3vp5f.js} +4 -4
  8. package/dist/chunks/{agent-9gnd804a.js → worktree-09tgrvw7.js} +35 -35
  9. package/dist/chunks/{agent-gmf134c1.js → worktree-0bf3khfw.js} +32 -32
  10. package/dist/chunks/{agent-a1a50ys5.js → worktree-0f9afca0.js} +5 -5
  11. package/dist/chunks/{agent-e57neqwz.js → worktree-0mr6qh9d.js} +1 -1
  12. package/dist/chunks/{agent-0paq2nw3.js → worktree-0paq2nw3.js} +1 -1
  13. package/dist/chunks/{agent-6fkaw2xz.js → worktree-0wgz3kfx.js} +8 -8
  14. package/dist/chunks/{agent-m6hb8kht.js → worktree-0xc744yh.js} +26 -26
  15. package/dist/chunks/{agent-0996nyz8.js → worktree-11dqjexa.js} +9 -9
  16. package/dist/chunks/{agent-3tnqn7ww.js → worktree-13gx36pc.js} +11 -11
  17. package/dist/chunks/{agent-yp2x3t23.js → worktree-1acjjqhc.js} +4 -4
  18. package/dist/chunks/{agent-1dazxqgg.js → worktree-1dazxqgg.js} +2 -2
  19. package/dist/chunks/{agent-xf20h1cj.js → worktree-1myxn3kd.js} +24 -24
  20. package/dist/chunks/{agent-epd79qdj.js → worktree-1q9thhxg.js} +9 -9
  21. package/dist/chunks/{agent-56gdpj1q.js → worktree-1ygqh575.js} +9 -9
  22. package/dist/chunks/{agent-zzvjeq0g.js → worktree-1zhvft14.js} +18 -18
  23. package/dist/chunks/{agent-21r38tys.js → worktree-21r38tys.js} +1 -1
  24. package/dist/chunks/{agent-2402vzrj.js → worktree-2402vzrj.js} +1 -1
  25. package/dist/chunks/{agent-bzfhs60c.js → worktree-25mrtkcq.js} +26 -26
  26. package/dist/chunks/{agent-4snp72qp.js → worktree-26300t6s.js} +29 -29
  27. package/dist/chunks/{agent-hm613f1m.js → worktree-28rfmn1q.js} +16 -16
  28. package/dist/chunks/{agent-2a5m3afh.js → worktree-2a5m3afh.js} +1 -1
  29. package/dist/chunks/{agent-wmmy56cc.js → worktree-2k8482vm.js} +8 -8
  30. package/dist/chunks/{agent-wxjq8k3m.js → worktree-2n4z0gea.js} +26 -26
  31. package/dist/chunks/{agent-g4nf9hqv.js → worktree-348pjw7k.js} +14 -14
  32. package/dist/chunks/{agent-ef05nmcp.js → worktree-34q1q4g3.js} +4 -4
  33. package/dist/chunks/{agent-5w978569.js → worktree-3654ekc1.js} +87 -87
  34. package/dist/chunks/{agent-w0m74e8e.js → worktree-3dvng5ry.js} +20 -20
  35. package/dist/chunks/{agent-3fc6dm20.js → worktree-3fc6dm20.js} +1 -1
  36. package/dist/chunks/{agent-3hepkmqq.js → worktree-3hepkmqq.js} +1 -1
  37. package/dist/chunks/{agent-j3na2f7t.js → worktree-3nyjywfs.js} +13 -13
  38. package/dist/chunks/{agent-p28vygmv.js → worktree-3qhjhqs4.js} +27 -27
  39. package/dist/chunks/{agent-3smtnn6g.js → worktree-3smtnn6g.js} +1 -1
  40. package/dist/chunks/{agent-433eb07g.js → worktree-3t84zwd8.js} +6 -6
  41. package/dist/chunks/{agent-3tvqynh2.js → worktree-3tvqynh2.js} +1 -1
  42. package/dist/chunks/{agent-3zsf4n22.js → worktree-3zsf4n22.js} +1 -1
  43. package/dist/chunks/{agent-gs3s1a1g.js → worktree-4a0nv7mx.js} +8 -8
  44. package/dist/chunks/{agent-10xd58z0.js → worktree-4angy42y.js} +3 -3
  45. package/dist/chunks/{agent-qzq3tp80.js → worktree-4db8mzj7.js} +5 -5
  46. package/dist/chunks/{agent-rabh22kx.js → worktree-4ev63tw3.js} +32 -32
  47. package/dist/chunks/{agent-nyv1j4r3.js → worktree-4fa6t2zh.js} +70 -70
  48. package/dist/chunks/{agent-hp9thjyh.js → worktree-4gy17at8.js} +18 -18
  49. package/dist/chunks/{agent-rv27b6j4.js → worktree-4hk27nw6.js} +8 -8
  50. package/dist/chunks/{agent-vt4rwap3.js → worktree-4j9vtrd0.js} +9 -9
  51. package/dist/chunks/{agent-8qtvggd8.js → worktree-4md04jt5.js} +17 -17
  52. package/dist/chunks/{agent-grg0hm6f.js → worktree-4n0pz7ta.js} +29 -29
  53. package/dist/chunks/{agent-kb3wdknj.js → worktree-4qw9jy8s.js} +6 -6
  54. package/dist/chunks/{agent-dq0v80fr.js → worktree-4yvz2rcy.js} +12 -12
  55. package/dist/chunks/{agent-195jkryp.js → worktree-5214kcsh.js} +39 -39
  56. package/dist/chunks/{agent-y4y8g8ts.js → worktree-53t702sg.js} +45 -45
  57. package/dist/chunks/{agent-khsmmeas.js → worktree-5935cfns.js} +10 -10
  58. package/dist/chunks/{agent-1jdf3fxk.js → worktree-5bxn2d00.js} +11 -11
  59. package/dist/chunks/{agent-5daktx2q.js → worktree-5daktx2q.js} +1 -1
  60. package/dist/chunks/{agent-5ekn9679.js → worktree-5ekn9679.js} +1 -1
  61. package/dist/chunks/{agent-5v30z6ja.js → worktree-5qsvws2p.js} +33 -33
  62. package/dist/chunks/{agent-5t3nmthw.js → worktree-5t3nmthw.js} +2 -2
  63. package/dist/chunks/{agent-m26c3xec.js → worktree-5vd11pkv.js} +32 -32
  64. package/dist/chunks/{agent-1t756eex.js → worktree-5x326c62.js} +10 -10
  65. package/dist/chunks/{agent-b3xz1q2n.js → worktree-61hs1ryt.js} +26 -26
  66. package/dist/chunks/{agent-pk5jep21.js → worktree-62h9g2fv.js} +16 -16
  67. package/dist/chunks/{agent-669tq793.js → worktree-669tq793.js} +1 -1
  68. package/dist/chunks/{agent-5gs1xt34.js → worktree-67k3ptxm.js} +13 -13
  69. package/dist/chunks/{agent-5q306sn2.js → worktree-6a4q1va2.js} +4 -4
  70. package/dist/chunks/{agent-5z7c0ntw.js → worktree-6fx6kqf3.js} +20 -20
  71. package/dist/chunks/{agent-6msgmcgs.js → worktree-6msgmcgs.js} +1 -1
  72. package/dist/chunks/{agent-970zzb99.js → worktree-6zsnk1nj.js} +11 -11
  73. package/dist/chunks/{agent-r5x6zcsm.js → worktree-73tb2d7t.js} +3 -3
  74. package/dist/chunks/{agent-9p3rp546.js → worktree-7463r9za.js} +39 -39
  75. package/dist/chunks/{agent-xt2arqya.js → worktree-76g3v1wk.js} +22 -22
  76. package/dist/chunks/{agent-7bmhse3q.js → worktree-7bmhse3q.js} +1 -1
  77. package/dist/chunks/{agent-h0yxpfzn.js → worktree-7d83w40e.js} +3 -3
  78. package/dist/chunks/{agent-0jwsre1p.js → worktree-7dqw4kz8.js} +5 -5
  79. package/dist/chunks/{agent-rqqqmm2x.js → worktree-7j2qha59.js} +8 -8
  80. package/dist/chunks/{agent-9jddndyh.js → worktree-85hqfz1z.js} +43 -43
  81. package/dist/chunks/{agent-z0pa14ta.js → worktree-87nphv2h.js} +8 -8
  82. package/dist/chunks/{agent-jvv6rca9.js → worktree-891pch5y.js} +9 -9
  83. package/dist/chunks/{agent-qyvvmpr4.js → worktree-8b96hdfe.js} +11 -11
  84. package/dist/chunks/{agent-8d7r5vzw.js → worktree-8d7r5vzw.js} +1 -1
  85. package/dist/chunks/{agent-187249xp.js → worktree-8hbfdwcy.js} +6 -6
  86. package/dist/chunks/{agent-k65r9af3.js → worktree-8q0abqdy.js} +6 -6
  87. package/dist/chunks/{agent-e4t91rn4.js → worktree-8xr9e5ma.js} +13 -13
  88. package/dist/chunks/{agent-s75w71bb.js → worktree-8xtjj1tw.js} +8 -8
  89. package/dist/chunks/{agent-rcgt23b9.js → worktree-904rfj5f.js} +32 -32
  90. package/dist/chunks/{agent-2v3kphkq.js → worktree-92a34jea.js} +5 -5
  91. package/dist/chunks/{agent-x5wbyy1f.js → worktree-92hycem4.js} +16 -16
  92. package/dist/chunks/{agent-94ek1h2f.js → worktree-94ek1h2f.js} +2 -2
  93. package/dist/chunks/{agent-7k9dqqsg.js → worktree-97jrthbw.js} +25 -25
  94. package/dist/chunks/{agent-8v6pyhej.js → worktree-9hn6k4tm.js} +8 -8
  95. package/dist/chunks/{agent-m30kdexy.js → worktree-9knhcppf.js} +3 -3
  96. package/dist/chunks/{agent-retswvcy.js → worktree-9p4j1g8x.js} +9 -9
  97. package/dist/chunks/{agent-s7am3t11.js → worktree-a4xtdcdy.js} +30 -30
  98. package/dist/chunks/{agent-j76x6msn.js → worktree-a55n900e.js} +11 -11
  99. package/dist/chunks/{agent-d6gar2mb.js → worktree-a71abfbd.js} +20 -20
  100. package/dist/chunks/{agent-aaet6srn.js → worktree-aaet6srn.js} +2 -2
  101. package/dist/chunks/{agent-c651xxjb.js → worktree-afjydgk3.js} +4 -4
  102. package/dist/chunks/{agent-mr4nn3b0.js → worktree-ak9z2h5t.js} +6 -6
  103. package/dist/chunks/{agent-5cr33wy9.js → worktree-akfg0z59.js} +11 -11
  104. package/dist/chunks/{agent-8hhx35dq.js → worktree-akgm0gv0.js} +4 -4
  105. package/dist/chunks/{agent-98mydvev.js → worktree-an0ayh94.js} +31 -31
  106. package/dist/chunks/{agent-mks6kp02.js → worktree-an32yxdc.js} +5 -5
  107. package/dist/chunks/{agent-hvdqw0fa.js → worktree-b4cpr7mt.js} +7 -7
  108. package/dist/chunks/{agent-b6gygkdw.js → worktree-b6gygkdw.js} +2 -2
  109. package/dist/chunks/{agent-27eedk78.js → worktree-b9mjazqy.js} +18 -18
  110. package/dist/chunks/{agent-w5bpb8j7.js → worktree-ba7qst6d.js} +20 -20
  111. package/dist/chunks/{agent-br6g232s.js → worktree-bhsdwye2.js} +15 -15
  112. package/dist/chunks/{agent-a12t2k2w.js → worktree-bpktnpw7.js} +16 -16
  113. package/dist/chunks/{agent-3jy1139n.js → worktree-bwvgaq24.js} +37 -37
  114. package/dist/chunks/{agent-h4xnkbg8.js → worktree-c0bsws40.js} +33 -33
  115. package/dist/chunks/{agent-rw9fhyhq.js → worktree-cb70gybk.js} +18 -18
  116. package/dist/chunks/{agent-k1qjx27w.js → worktree-cj8h12nx.js} +5 -5
  117. package/dist/chunks/{agent-ckecvw8r.js → worktree-ckecvw8r.js} +2 -2
  118. package/dist/chunks/{agent-e6hd9jay.js → worktree-cpy6gm2a.js} +6 -6
  119. package/dist/chunks/{agent-4yxx405s.js → worktree-cqkjr9eb.js} +24 -24
  120. package/dist/chunks/{agent-a8mfdbqj.js → worktree-d16e32c3.js} +3 -3
  121. package/dist/chunks/{agent-4bm5ja14.js → worktree-d858xzj7.js} +4 -4
  122. package/dist/chunks/{agent-vjxaqdq6.js → worktree-d8frqt36.js} +41 -41
  123. package/dist/chunks/{agent-57ez7d0k.js → worktree-dc6tzc5b.js} +9 -9
  124. package/dist/chunks/{agent-tbj51q56.js → worktree-dd33gdcs.js} +21 -21
  125. package/dist/chunks/{agent-kwrf6mrp.js → worktree-dg2cj1yd.js} +4 -4
  126. package/dist/chunks/{agent-cwa6csj7.js → worktree-djszqvmq.js} +9 -9
  127. package/dist/chunks/{agent-y71avatq.js → worktree-dpkg50ah.js} +4 -4
  128. package/dist/chunks/{agent-gf8f2rcw.js → worktree-drmc2xrn.js} +18 -18
  129. package/dist/chunks/{agent-am1638rj.js → worktree-e28zdnr3.js} +5 -5
  130. package/dist/chunks/{agent-ef5x83kb.js → worktree-ef5x83kb.js} +1 -1
  131. package/dist/chunks/{agent-8j3kf1eb.js → worktree-emv10mfg.js} +27 -27
  132. package/dist/chunks/{agent-erw5rpbs.js → worktree-erw5rpbs.js} +2 -2
  133. package/dist/chunks/{agent-etq0c3wd.js → worktree-etq0c3wd.js} +1 -1
  134. package/dist/chunks/{agent-fwpx9avw.js → worktree-eyk4t588.js} +48 -48
  135. package/dist/chunks/{agent-fq21n8kg.js → worktree-f9w2621f.js} +5 -5
  136. package/dist/chunks/{agent-8s95nyqa.js → worktree-fa3800w2.js} +5 -5
  137. package/dist/chunks/{agent-jc2w93fw.js → worktree-fggcrdhd.js} +50 -50
  138. package/dist/chunks/{agent-aat21nqc.js → worktree-ftxpvdc7.js} +15 -15
  139. package/dist/chunks/{agent-9wwn998v.js → worktree-fzc1rrhc.js} +183 -183
  140. package/dist/chunks/{agent-wz2yh3bc.js → worktree-g8sy80jx.js} +89 -89
  141. package/dist/chunks/{agent-hy7mmz7x.js → worktree-g9hze54y.js} +1 -1
  142. package/dist/chunks/{agent-gd4qta3r.js → worktree-gd4qta3r.js} +1 -1
  143. package/dist/chunks/{agent-e8tny9qf.js → worktree-gs1aapz6.js} +3 -3
  144. package/dist/chunks/{agent-f5gy8qwh.js → worktree-gs4tkc79.js} +8 -8
  145. package/dist/chunks/{agent-gv6a8nnw.js → worktree-gv6a8nnw.js} +2 -2
  146. package/dist/chunks/{agent-c3q7hj01.js → worktree-gv8bg5p6.js} +13 -13
  147. package/dist/chunks/{agent-5kdwdsfr.js → worktree-gvrsjrvz.js} +9 -9
  148. package/dist/chunks/{agent-tw7pwy41.js → worktree-gze2a564.js} +20 -20
  149. package/dist/chunks/{agent-wtzh7vad.js → worktree-h0v79wmk.js} +21 -21
  150. package/dist/chunks/{agent-rghjtt8s.js → worktree-h5m7e0fe.js} +9 -9
  151. package/dist/chunks/{agent-nzyhnfxz.js → worktree-h6r3nrb9.js} +4 -4
  152. package/dist/chunks/{agent-h6vf3j39.js → worktree-h6vf3j39.js} +1 -1
  153. package/dist/chunks/{agent-x2d9qy7d.js → worktree-hbyhqfhs.js} +5 -5
  154. package/dist/chunks/{agent-ba5zwyng.js → worktree-hy20qw0x.js} +15 -15
  155. package/dist/chunks/{agent-j56e64zr.js → worktree-j56e64zr.js} +1 -1
  156. package/dist/chunks/{agent-3vsgk2p7.js → worktree-ja2sysa1.js} +12 -12
  157. package/dist/chunks/{agent-mkwsrdpy.js → worktree-jwjj0ar8.js} +20 -20
  158. package/dist/chunks/{agent-k1z6zz7b.js → worktree-k3anzat6.js} +22 -22
  159. package/dist/chunks/{agent-k3c624dm.js → worktree-k3c624dm.js} +3 -3
  160. package/dist/chunks/{agent-vtpkq4qf.js → worktree-k53npxr2.js} +1 -1
  161. package/dist/chunks/{agent-ca7w653e.js → worktree-k76fn4kw.js} +4 -4
  162. package/dist/chunks/{agent-2pn7pm4n.js → worktree-kd3d1vys.js} +52 -52
  163. package/dist/chunks/{agent-bt5x84hs.js → worktree-kes845dh.js} +22 -22
  164. package/dist/chunks/{agent-njyz79cc.js → worktree-khmcpx04.js} +37 -37
  165. package/dist/chunks/{agent-3mmdgdjj.js → worktree-knc8nek6.js} +6 -6
  166. package/dist/chunks/{agent-j325xqev.js → worktree-ky3seynh.js} +2 -2
  167. package/dist/chunks/{agent-m3fdjcah.js → worktree-m3fdjcah.js} +1 -1
  168. package/dist/chunks/{agent-0yxqwdtr.js → worktree-m4b4b35v.js} +39 -39
  169. package/dist/chunks/{agent-p1jhb79r.js → worktree-m7d3ytap.js} +6 -6
  170. package/dist/chunks/{agent-m9w0rfyh.js → worktree-m9w0rfyh.js} +1 -1
  171. package/dist/chunks/{agent-wr7ps67x.js → worktree-ma48de29.js} +5 -5
  172. package/dist/chunks/{agent-kzsyc47h.js → worktree-mcphez6e.js} +18 -18
  173. package/dist/chunks/{agent-8yfag9w4.js → worktree-mdc5nwhd.js} +15 -15
  174. package/dist/chunks/{agent-50mzsvk4.js → worktree-mjymc32g.js} +4 -4
  175. package/dist/chunks/{agent-4378a0hc.js → worktree-mmgzkw4b.js} +8 -8
  176. package/dist/chunks/{agent-3zjyq5kp.js → worktree-mn20a28a.js} +11 -11
  177. package/dist/chunks/{agent-wgtcm0m7.js → worktree-mvksx64m.js} +4 -4
  178. package/dist/chunks/{agent-3dwfd5y2.js → worktree-n2fk86tq.js} +10 -10
  179. package/dist/chunks/{agent-cc4mce2f.js → worktree-n810d9f4.js} +11 -11
  180. package/dist/chunks/{agent-9pswe2t8.js → worktree-n9c5x41c.js} +12 -12
  181. package/dist/chunks/{agent-8zmehegn.js → worktree-nbpn5fgr.js} +18 -18
  182. package/dist/chunks/{agent-96r286zg.js → worktree-nfpfdzzq.js} +12 -12
  183. package/dist/chunks/{agent-5j37ws3e.js → worktree-nppmj0x6.js} +17 -17
  184. package/dist/chunks/{agent-h420pbdz.js → worktree-ntzzmvrg.js} +4 -4
  185. package/dist/chunks/{agent-439r14a2.js → worktree-nxhz0hz5.js} +12 -12
  186. package/dist/chunks/{agent-2h5wpswp.js → worktree-nz0453qb.js} +13 -13
  187. package/dist/chunks/{agent-0x0enb5q.js → worktree-p31vw5zt.js} +9 -9
  188. package/dist/chunks/{agent-wrmaeg5p.js → worktree-p6eds5cr.js} +14 -14
  189. package/dist/chunks/{agent-fgfb0b2k.js → worktree-p7q1b1dk.js} +18 -18
  190. package/dist/chunks/{agent-jz6frww0.js → worktree-pa033vv9.js} +23 -23
  191. package/dist/chunks/{agent-x6mxy5rc.js → worktree-pag0f7q6.js} +25 -25
  192. package/dist/chunks/{agent-xy1gf4rw.js → worktree-pcmmyvsr.js} +4 -4
  193. package/dist/chunks/{agent-pjvnvgmy.js → worktree-pjvnvgmy.js} +1 -1
  194. package/dist/chunks/{agent-pknna89w.js → worktree-pknna89w.js} +1 -1
  195. package/dist/chunks/{agent-fhs97t90.js → worktree-pnv527nz.js} +9 -9
  196. package/dist/chunks/{agent-rkprpv83.js → worktree-py3kkmfq.js} +2 -2
  197. package/dist/chunks/{agent-g8d3gcyj.js → worktree-qa3qhgw8.js} +7 -7
  198. package/dist/chunks/worktree-qc068m1q.js +18 -0
  199. package/dist/chunks/{agent-3f7398v7.js → worktree-qc08edcd.js} +20 -20
  200. package/dist/chunks/{agent-6eezz40m.js → worktree-qfgk5m70.js} +5 -5
  201. package/dist/chunks/{agent-q9k0gsh2.js → worktree-qhmjmk1w.js} +44 -44
  202. package/dist/chunks/{agent-r4r17rq4.js → worktree-qj5cc9w6.js} +10 -10
  203. package/dist/chunks/{agent-wvvmmxvm.js → worktree-qm63xfj9.js} +9 -9
  204. package/dist/chunks/{agent-qn4ba14w.js → worktree-qn4ba14w.js} +2 -2
  205. package/dist/chunks/{agent-aemzcrym.js → worktree-qnksa3ad.js} +28 -28
  206. package/dist/chunks/{agent-7hgr463c.js → worktree-qqhk6b98.js} +5 -5
  207. package/dist/chunks/{agent-qsdy395h.js → worktree-qsdy395h.js} +1 -1
  208. package/dist/chunks/{agent-8vggh432.js → worktree-qsj8tpbg.js} +15 -15
  209. package/dist/chunks/{agent-7ksjx2k2.js → worktree-qtq40051.js} +41 -41
  210. package/dist/chunks/{agent-fj6am7we.js → worktree-qv9g0gyx.js} +30 -30
  211. package/dist/chunks/{agent-ym7x7v54.js → worktree-r1qjztdq.js} +24 -24
  212. package/dist/chunks/{agent-q3zwv4bp.js → worktree-r7y78zcv.js} +4 -4
  213. package/dist/chunks/{agent-rdw6cm16.js → worktree-rdw6cm16.js} +1 -1
  214. package/dist/chunks/{agent-02nrjc1r.js → worktree-rhjbct0v.js} +6 -6
  215. package/dist/chunks/{agent-emyyb3h7.js → worktree-rjb11c09.js} +22 -22
  216. package/dist/chunks/{agent-q10v52aa.js → worktree-rqj5z4yb.js} +11 -11
  217. package/dist/chunks/{agent-71wjg4kw.js → worktree-rqz00b65.js} +16 -16
  218. package/dist/chunks/{agent-et0rkxxj.js → worktree-s0agc963.js} +8 -8
  219. package/dist/chunks/{agent-8ek8aczr.js → worktree-s1hq0v60.js} +13 -13
  220. package/dist/chunks/{agent-w21repx7.js → worktree-s31e5dqq.js} +38 -38
  221. package/dist/chunks/{agent-61xdzkjd.js → worktree-sd1fa18v.js} +9 -9
  222. package/dist/chunks/{agent-qcfjhy73.js → worktree-sn5dskjm.js} +31 -31
  223. package/dist/chunks/{agent-97mkmtmd.js → worktree-snbrpa5g.js} +32 -32
  224. package/dist/chunks/{agent-jvvge85p.js → worktree-sr8hj6d6.js} +20 -20
  225. package/dist/chunks/{agent-w1tfbzx8.js → worktree-ssb8qcd9.js} +10 -10
  226. package/dist/chunks/{agent-4vtve4mp.js → worktree-szv3adj2.js} +2 -2
  227. package/dist/chunks/{agent-974apvmy.js → worktree-t2q8n6ss.js} +40 -40
  228. package/dist/chunks/{agent-nvefxcm9.js → worktree-t5jfh8kc.js} +10 -10
  229. package/dist/chunks/{agent-tazgh4e4.js → worktree-tazgh4e4.js} +1 -1
  230. package/dist/chunks/{agent-89znhe33.js → worktree-tcezcvh9.js} +4 -4
  231. package/dist/chunks/{agent-1qmbbwgh.js → worktree-tcjtg44a.js} +322 -322
  232. package/dist/chunks/{agent-nbzsj80d.js → worktree-tdhe5xga.js} +8 -8
  233. package/dist/chunks/{agent-tdstcens.js → worktree-tdstcens.js} +1 -1
  234. package/dist/chunks/{agent-prt5basj.js → worktree-tj8p0sq8.js} +21 -21
  235. package/dist/chunks/{agent-37s12vcn.js → worktree-tn0aqsam.js} +5 -5
  236. package/dist/chunks/{agent-ffqrm4dy.js → worktree-tt2ps04y.js} +25 -25
  237. package/dist/chunks/{agent-tvtrv512.js → worktree-tvtrv512.js} +1 -1
  238. package/dist/chunks/{agent-s53zfdxe.js → worktree-tzcmwgv2.js} +23 -23
  239. package/dist/chunks/{agent-cda3cvpx.js → worktree-v5ysw9b9.js} +9 -9
  240. package/dist/chunks/{agent-207sxyyq.js → worktree-v5z7k5hc.js} +7 -7
  241. package/dist/chunks/{agent-rk7s9xkn.js → worktree-v7z2bvyd.js} +4 -4
  242. package/dist/chunks/{agent-6xscy18h.js → worktree-vddp9fpw.js} +31 -31
  243. package/dist/chunks/{agent-veqvce7d.js → worktree-veqvce7d.js} +1 -1
  244. package/dist/chunks/{agent-hg3pgq27.js → worktree-vsjn4aq5.js} +9 -9
  245. package/dist/chunks/{agent-95sbn98w.js → worktree-vv8yfjwc.js} +7 -7
  246. package/dist/chunks/{agent-40c61p32.js → worktree-vyjb9e8r.js} +25 -25
  247. package/dist/chunks/{agent-vzcthcp8.js → worktree-vzcthcp8.js} +1 -1
  248. package/dist/chunks/{agent-w3wsvvr9.js → worktree-w3wsvvr9.js} +1 -1
  249. package/dist/chunks/{agent-fpcmhq1w.js → worktree-w6dwg7gz.js} +18 -18
  250. package/dist/chunks/{agent-zvtzzjx8.js → worktree-wchfvtxb.js} +26 -26
  251. package/dist/chunks/{agent-wd3x2cqz.js → worktree-wd3x2cqz.js} +2 -2
  252. package/dist/chunks/{agent-wd87259q.js → worktree-wd87259q.js} +1 -1
  253. package/dist/chunks/{agent-8vkkgngr.js → worktree-wg821d8s.js} +4 -4
  254. package/dist/chunks/{agent-wkzkw8tr.js → worktree-wxffcvth.js} +3 -3
  255. package/dist/chunks/{agent-qsxf26yz.js → worktree-wzz0kxab.js} +9 -9
  256. package/dist/chunks/{agent-x1ezjp6w.js → worktree-x1ezjp6w.js} +1 -1
  257. package/dist/chunks/{agent-cktb56xb.js → worktree-x8z8zpk0.js} +6 -6
  258. package/dist/chunks/{agent-n68d0cf5.js → worktree-xbsm0w8x.js} +16 -16
  259. package/dist/chunks/{agent-drwq78ky.js → worktree-xfkkasph.js} +4 -4
  260. package/dist/chunks/{agent-dmqcgk4z.js → worktree-xkntkrq7.js} +5 -5
  261. package/dist/chunks/{agent-f5syc60y.js → worktree-xxynqx5z.js} +3 -3
  262. package/dist/chunks/{agent-95n9ta3s.js → worktree-y0adyrm5.js} +6 -6
  263. package/dist/chunks/{agent-y1fvbwt7.js → worktree-y1fvbwt7.js} +1 -1
  264. package/dist/chunks/worktree-ybrqsgzm.js +252 -0
  265. package/dist/chunks/{agent-cdm0dq9n.js → worktree-yf4jcbx9.js} +6 -6
  266. package/dist/chunks/{agent-yv6fwtq8.js → worktree-yfpm05b7.js} +10 -10
  267. package/dist/chunks/{agent-j75c8f36.js → worktree-yghvc19j.js} +15 -15
  268. package/dist/chunks/{agent-6qckwf5w.js → worktree-ykzz1t9e.js} +51 -51
  269. package/dist/chunks/{agent-yrhqyw5v.js → worktree-yrhqyw5v.js} +1 -1
  270. package/dist/chunks/{agent-yrznvahk.js → worktree-yrznvahk.js} +2 -2
  271. package/dist/chunks/{agent-2q5q7rph.js → worktree-ysav94bt.js} +20 -20
  272. package/dist/chunks/{agent-75ftyfa0.js → worktree-ystnmmhc.js} +19 -19
  273. package/dist/chunks/{agent-z07pqspn.js → worktree-z07pqspn.js} +3 -3
  274. package/dist/chunks/{agent-z0bkrqjs.js → worktree-z0bkrqjs.js} +1 -1
  275. package/dist/chunks/{agent-b6n0f07q.js → worktree-z3aggnr2.js} +30 -30
  276. package/dist/chunks/{agent-180z65gf.js → worktree-z4pkgcrj.js} +33 -33
  277. package/dist/chunks/{agent-r40cdba5.js → worktree-z4ygwn82.js} +12 -12
  278. package/dist/chunks/{agent-z63w68vq.js → worktree-z63w68vq.js} +2 -2
  279. package/dist/chunks/{agent-crwh5vwx.js → worktree-z8zh437v.js} +15 -15
  280. package/dist/chunks/{agent-nyvvhy0p.js → worktree-zbdxx7ek.js} +11 -11
  281. package/dist/chunks/{agent-zeh9ct20.js → worktree-zeh9ct20.js} +2 -2
  282. package/dist/chunks/{agent-9y90ydfh.js → worktree-zjp1cm63.js} +17 -17
  283. package/dist/chunks/{agent-pjah6pe2.js → worktree-zk5bpfgp.js} +15 -15
  284. package/dist/chunks/{agent-dzmmerrf.js → worktree-zp8n7hk2.js} +9 -9
  285. package/dist/chunks/{agent-4tb9kxn6.js → worktree-zqm7km32.js} +8 -8
  286. package/dist/chunks/{agent-zr2ceqn5.js → worktree-zr2ceqn5.js} +1 -1
  287. package/dist/chunks/{agent-9pw8sy2q.js → worktree-zt0bgn8n.js} +10 -10
  288. package/dist/chunks/{agent-pwa9tev3.js → worktree-zv6910x8.js} +23 -23
  289. package/dist/chunks/worktree-zw0azyx1.js +26 -0
  290. package/dist/chunks/{agent-zxq2ej10.js → worktree-zxq2ej10.js} +1 -1
  291. package/dist/codemode/catalog.js +1 -1
  292. package/dist/codemode/instructions.js +7 -7
  293. package/dist/codemode/tool.js +3 -3
  294. package/dist/codemode/web.js +1 -1
  295. package/dist/command.js +85 -85
  296. package/dist/config/discovery.js +84 -84
  297. package/dist/config/markdown.js +1 -1
  298. package/dist/config/normalize.js +106 -106
  299. package/dist/config/plugin/agent.js +125 -125
  300. package/dist/config/plugin/command.js +214 -214
  301. package/dist/config/plugin/compaction.js +162 -162
  302. package/dist/config/plugin/compatibility.js +141 -141
  303. package/dist/config/plugin/entry-observer.js +1 -1
  304. package/dist/config/plugin/formatter.js +124 -124
  305. package/dist/config/plugin/image.js +123 -123
  306. package/dist/config/plugin/instruction.js +90 -90
  307. package/dist/config/plugin/location-watcher.js +125 -125
  308. package/dist/config/plugin/mcp.js +132 -132
  309. package/dist/config/plugin/policy.js +124 -124
  310. package/dist/config/plugin/provider.js +123 -123
  311. package/dist/config/plugin/reference.js +125 -125
  312. package/dist/config/plugin/shell.js +123 -123
  313. package/dist/config/plugin/skill-file.js +102 -102
  314. package/dist/config/plugin/skill.js +144 -144
  315. package/dist/config/plugin/snapshot.js +123 -123
  316. package/dist/config/plugin/source.js +126 -126
  317. package/dist/config/plugin/tool-output.js +125 -125
  318. package/dist/config/plugin/websearch.js +122 -122
  319. package/dist/config/plugin/worktree.js +125 -125
  320. package/dist/config/variable.js +3 -3
  321. package/dist/config/watch.js +1 -1
  322. package/dist/config.js +126 -126
  323. package/dist/credential/sql.js +2 -2
  324. package/dist/credential.js +85 -85
  325. package/dist/database/database.js +66 -66
  326. package/dist/database/drizzle/effect-sqlite/driver.js +14 -14
  327. package/dist/database/drizzle/effect-sqlite/index.js +14 -14
  328. package/dist/database/drizzle/effect-sqlite/session.js +11 -11
  329. package/dist/database/drizzle/index.js +15 -15
  330. package/dist/database/drizzle/internal/drizzle-utils.js +1 -1
  331. package/dist/database/drizzle/sqlite-core/effect/count.js +1 -1
  332. package/dist/database/drizzle/sqlite-core/effect/db.js +9 -9
  333. package/dist/database/drizzle/sqlite-core/effect/delete.js +2 -2
  334. package/dist/database/drizzle/sqlite-core/effect/index.js +10 -10
  335. package/dist/database/drizzle/sqlite-core/effect/insert.js +2 -2
  336. package/dist/database/drizzle/sqlite-core/effect/query.js +1 -1
  337. package/dist/database/drizzle/sqlite-core/effect/raw.js +1 -1
  338. package/dist/database/drizzle/sqlite-core/effect/select.js +2 -2
  339. package/dist/database/drizzle/sqlite-core/effect/session.js +10 -10
  340. package/dist/database/drizzle/sqlite-core/effect/update.js +2 -2
  341. package/dist/database/drizzle.js +16 -16
  342. package/dist/database/migration/20260127222353_familiar_lady_ursula.js +1 -1
  343. package/dist/database/migration/20260211171708_add_project_commands.js +1 -1
  344. package/dist/database/migration/20260213144116_wakeful_the_professor.js +1 -1
  345. package/dist/database/migration/20260225215848_workspace.js +1 -1
  346. package/dist/database/migration/20260227213759_add_session_workspace_id.js +1 -1
  347. package/dist/database/migration/20260228203230_blue_harpoon.js +1 -1
  348. package/dist/database/migration/20260303231226_add_workspace_fields.js +1 -1
  349. package/dist/database/migration/20260309230000_move_org_to_state.js +1 -1
  350. package/dist/database/migration/20260312043431_session_message_cursor.js +1 -1
  351. package/dist/database/migration/20260323234822_events.js +1 -1
  352. package/dist/database/migration/20260410174513_workspace-name.js +1 -1
  353. package/dist/database/migration/20260413175956_chief_energizer.js +1 -1
  354. package/dist/database/migration/20260423070820_add_icon_url_override.js +1 -1
  355. package/dist/database/migration/20260427172553_slow_nightmare.js +1 -1
  356. package/dist/database/migration/20260428004200_add_session_path.js +1 -1
  357. package/dist/database/migration/20260501142318_next_venus.js +1 -1
  358. package/dist/database/migration/20260504145000_add_sync_owner.js +1 -1
  359. package/dist/database/migration/20260507164347_add_workspace_time.js +1 -1
  360. package/dist/database/migration/20260510033149_session_usage.js +1 -1
  361. package/dist/database/migration/20260511000411_data_migration_state.js +1 -1
  362. package/dist/database/migration/20260511173437_session-metadata.js +1 -1
  363. package/dist/database/migration/20260601010001_normalize_storage_paths.js +1 -1
  364. package/dist/database/migration/20260601202201_amazing_prowler.js +1 -1
  365. package/dist/database/migration/20260602002951_lowly_union_jack.js +1 -1
  366. package/dist/database/migration/20260602182828_add_project_directories.js +1 -1
  367. package/dist/database/migration/20260603001617_session_message_projection_indexes.js +1 -1
  368. package/dist/database/migration/20260603040000_session_message_projection_order.js +1 -1
  369. package/dist/database/migration/20260603141458_session_input_inbox.js +1 -1
  370. package/dist/database/migration/20260603160727_jittery_ezekiel_stane.js +1 -1
  371. package/dist/database/migration/20260604172448_event_sourced_session_input.js +1 -1
  372. package/dist/database/migration/20260605003541_add_session_context_snapshot.js +1 -1
  373. package/dist/database/migration/20260605042240_add_context_epoch_agent.js +1 -1
  374. package/dist/database/migration/20260611035744_credential.js +1 -1
  375. package/dist/database/migration/20260611192811_lush_chimera.js +1 -1
  376. package/dist/database/migration/20260612174303_project_dir_strategy.js +1 -1
  377. package/dist/database/migration/20260622142730_simplify_session_context_epoch.js +1 -1
  378. package/dist/database/migration/20260622170816_reset_v2_session_state.js +1 -1
  379. package/dist/database/migration/20260622202450_simplify_session_input.js +1 -1
  380. package/dist/database/migration/20260804233008_loose_psylocke.js +1 -1
  381. package/dist/database/migration/20260805200742_import_legacy_credentials.js +1 -1
  382. package/dist/database/migration/20260808023530_workspace_domain.js +1 -1
  383. package/dist/database/migration/20260811161259_execution_claim_attempts.js +1 -1
  384. package/dist/database/migration/20260812181746_session_inbox.js +1 -1
  385. package/dist/database/migration/20260812213948_worktree.js +1 -1
  386. package/dist/database/migration/20260819222447_session_viewed_state.js +1 -1
  387. package/dist/database/migration/20260823191254_nullable_workspace_binding.js +1 -1
  388. package/dist/database/migration/20260910120000_clear_v1_session_permission.js +1 -1
  389. package/dist/database/migration/20260923013825_project_time_active.js +1 -1
  390. package/dist/database/migration.gen.js +49 -49
  391. package/dist/database/migration.js +51 -51
  392. package/dist/database/path.js +2 -2
  393. package/dist/database/schema.gen.js +1 -1
  394. package/dist/database/schema.sql.js +1 -1
  395. package/dist/database/sqlite.bun.js +1 -1
  396. package/dist/database/sqlite.js +1 -1
  397. package/dist/database/sqlite.node.js +1 -1
  398. package/dist/database/sqlite.workerd.js +1 -1
  399. package/dist/database/v1-migration.bun.js +76 -76
  400. package/dist/database/v1-migration.js +1 -1
  401. package/dist/effect/app-node-builder.js +371 -371
  402. package/dist/effect/app-node-platform.js +2 -2
  403. package/dist/effect/keyed-mutex.js +3 -3
  404. package/dist/effect/websocket-constructor.js +1 -1
  405. package/dist/environment/driver.js +1 -1
  406. package/dist/environment/environment.js +93 -93
  407. package/dist/environment/exec-defaults.js +2 -2
  408. package/dist/environment/files.js +1 -1
  409. package/dist/environment/index.js +95 -95
  410. package/dist/environment/local.js +2 -2
  411. package/dist/environment/memory.js +2 -2
  412. package/dist/environment/unavailable.js +1 -1
  413. package/dist/event/sql.js +1 -1
  414. package/dist/event-logger.js +70 -70
  415. package/dist/file-access.js +104 -104
  416. package/dist/file-mutation.js +94 -94
  417. package/dist/file-retention.js +1 -1
  418. package/dist/file.js +1 -1
  419. package/dist/filesystem/fff.bun.js +2 -2
  420. package/dist/filesystem/fff.js +1 -1
  421. package/dist/filesystem/fff.node.js +2 -2
  422. package/dist/filesystem/fff.workerd.js +2 -2
  423. package/dist/filesystem/ignore.js +1 -1
  424. package/dist/filesystem/location-watcher-policy.js +6 -6
  425. package/dist/filesystem/location-watcher.js +227 -227
  426. package/dist/filesystem/protected.js +3 -3
  427. package/dist/filesystem/search.js +103 -103
  428. package/dist/filesystem/watcher-binding.js +1 -1
  429. package/dist/filesystem/watcher.js +13 -13
  430. package/dist/filesystem.js +108 -108
  431. package/dist/form.js +84 -84
  432. package/dist/formatter/builtins.js +4 -4
  433. package/dist/formatter.js +89 -89
  434. package/dist/generate.js +105 -105
  435. package/dist/git.js +10 -10
  436. package/dist/github-copilot/chat/convert-to-openai-compatible-chat-messages.js +1 -1
  437. package/dist/github-copilot/chat/get-response-metadata.js +1 -1
  438. package/dist/github-copilot/chat/map-openai-compatible-finish-reason.js +1 -1
  439. package/dist/github-copilot/chat/openai-compatible-chat-language-model.js +7 -7
  440. package/dist/github-copilot/chat/openai-compatible-chat-options.js +1 -1
  441. package/dist/github-copilot/chat/openai-compatible-prepare-tools.js +1 -1
  442. package/dist/github-copilot/copilot-provider.js +17 -17
  443. package/dist/github-copilot/models.js +91 -91
  444. package/dist/github-copilot/openai-compatible-error.js +1 -1
  445. package/dist/github-copilot/responses/convert-to-openai-responses-input.js +1 -1
  446. package/dist/github-copilot/responses/map-openai-responses-finish-reason.js +1 -1
  447. package/dist/github-copilot/responses/openai-error.js +1 -1
  448. package/dist/github-copilot/responses/openai-responses-language-model.js +10 -10
  449. package/dist/github-copilot/responses/openai-responses-prepare-tools.js +6 -6
  450. package/dist/github-copilot/responses/tool/code-interpreter.js +1 -1
  451. package/dist/github-copilot/responses/tool/file-search.js +1 -1
  452. package/dist/github-copilot/responses/tool/image-generation.js +1 -1
  453. package/dist/github-copilot/responses/tool/web-search-preview.js +1 -1
  454. package/dist/github-copilot/responses/tool/web-search.js +1 -1
  455. package/dist/id/id.js +1 -1
  456. package/dist/image/photon.js +2 -2
  457. package/dist/image.js +6 -6
  458. package/dist/instance/service.js +5 -5
  459. package/dist/instance.js +362 -362
  460. package/dist/instruction-discovery.js +85 -85
  461. package/dist/instructions/builtins.js +87 -87
  462. package/dist/instructions/index.js +3 -3
  463. package/dist/integration/connection.js +3 -3
  464. package/dist/integration.js +86 -86
  465. package/dist/job.js +79 -79
  466. package/dist/kv/sql.js +2 -2
  467. package/dist/kv.js +73 -73
  468. package/dist/location-activity.js +132 -132
  469. package/dist/location-lifecycle.js +107 -107
  470. package/dist/location-mutation.js +104 -104
  471. package/dist/location-service-map.js +86 -86
  472. package/dist/location-services.js +359 -359
  473. package/dist/location.js +87 -87
  474. package/dist/managed-policy.js +5 -5
  475. package/dist/mcp/client.js +91 -91
  476. package/dist/mcp/index.js +108 -108
  477. package/dist/mcp/instructions.js +128 -128
  478. package/dist/mcp/oauth.js +78 -78
  479. package/dist/mcp/stdio.js +90 -90
  480. package/dist/mime.js +1 -1
  481. package/dist/modal/models.js +91 -91
  482. package/dist/model-resolver.js +98 -98
  483. package/dist/model.js +100 -100
  484. package/dist/models-dev.js +107 -107
  485. package/dist/oauth/page.js +1 -1
  486. package/dist/permission/saved.js +80 -80
  487. package/dist/permission/sql.js +5 -5
  488. package/dist/permission.js +113 -113
  489. package/dist/persistent-pty/binary.bun.js +1 -1
  490. package/dist/persistent-pty/daemon.js +1 -1
  491. package/dist/persistent-pty/index.js +88 -88
  492. package/dist/persistent-pty/pty-binding.js +1 -1
  493. package/dist/persistent-pty.js +75 -75
  494. package/dist/plugin/agent.js +104 -104
  495. package/dist/plugin/command.js +101 -101
  496. package/dist/plugin/compaction.js +133 -133
  497. package/dist/plugin/hooks.js +5 -5
  498. package/dist/plugin/host.js +218 -218
  499. package/dist/plugin/identity.js +3 -3
  500. package/dist/plugin/instance.js +5 -5
  501. package/dist/plugin/internal.js +333 -333
  502. package/dist/plugin/mcp-codemode-defaults.js +3 -3
  503. package/dist/plugin/models-dev.js +96 -96
  504. package/dist/plugin/module.js +7 -7
  505. package/dist/plugin/optimize.js +2 -2
  506. package/dist/plugin/plan.js +102 -102
  507. package/dist/plugin/promise.js +1 -1
  508. package/dist/plugin/provider/amazon-bedrock.js +90 -90
  509. package/dist/plugin/provider/azure.js +122 -122
  510. package/dist/plugin/provider/cerebras.js +1 -1
  511. package/dist/plugin/provider/cloudflare-ai-gateway.js +121 -121
  512. package/dist/plugin/provider/cloudflare-workers-ai.js +121 -121
  513. package/dist/plugin/provider/cohere.js +2 -2
  514. package/dist/plugin/provider/configured.js +119 -119
  515. package/dist/plugin/provider/digitalocean.js +93 -93
  516. package/dist/plugin/provider/dynamic.js +2 -2
  517. package/dist/plugin/provider/factory.js +1 -1
  518. package/dist/plugin/provider/gateway.js +2 -2
  519. package/dist/plugin/provider/github-copilot.js +93 -93
  520. package/dist/plugin/provider/gitlab.js +93 -93
  521. package/dist/plugin/provider/google-vertex.js +90 -90
  522. package/dist/plugin/provider/kilo.js +1 -1
  523. package/dist/plugin/provider/llmgateway.js +77 -77
  524. package/dist/plugin/provider/lmstudio.js +122 -122
  525. package/dist/plugin/provider/modal.js +92 -92
  526. package/dist/plugin/provider/nvidia.js +1 -1
  527. package/dist/plugin/provider/ollama.js +122 -122
  528. package/dist/plugin/provider/openai.js +92 -92
  529. package/dist/plugin/provider/opencode.js +95 -95
  530. package/dist/plugin/provider/openrouter.js +91 -91
  531. package/dist/plugin/provider/perplexity.js +2 -2
  532. package/dist/plugin/provider/poe.js +78 -78
  533. package/dist/plugin/provider/prompt-cache-key.js +90 -90
  534. package/dist/plugin/provider/sap-ai-core.js +91 -91
  535. package/dist/plugin/provider/sdk-factory.js +1 -1
  536. package/dist/plugin/provider/snowflake-cortex.js +122 -122
  537. package/dist/plugin/provider/venice.js +2 -2
  538. package/dist/plugin/provider/vercel.js +90 -90
  539. package/dist/plugin/provider/vllm.js +122 -122
  540. package/dist/plugin/provider/xai.js +91 -91
  541. package/dist/plugin/provider/zenmux.js +1 -1
  542. package/dist/plugin/provider.js +160 -160
  543. package/dist/plugin/sdk.js +76 -76
  544. package/dist/plugin/service.js +3 -3
  545. package/dist/plugin/skill.js +141 -141
  546. package/dist/plugin/source-directory.js +1 -1
  547. package/dist/plugin/supervisor.js +352 -352
  548. package/dist/plugin/tool-input-repair.js +4 -4
  549. package/dist/plugin/update.js +6 -6
  550. package/dist/plugin/vcs/git.js +86 -86
  551. package/dist/plugin/vcs/hg.js +86 -86
  552. package/dist/plugin/warming.js +121 -121
  553. package/dist/plugin/websearch/exa.js +7 -7
  554. package/dist/plugin/websearch/firecrawl.js +8 -8
  555. package/dist/plugin/websearch/index.js +9 -9
  556. package/dist/plugin/websearch/mcp.js +6 -6
  557. package/dist/plugin/websearch/parallel.js +8 -8
  558. package/dist/plugin/websearch/tavily.js +6 -6
  559. package/dist/plugin/websearch/tinyfish.js +8 -8
  560. package/dist/plugin.js +225 -225
  561. package/dist/project/schema.js +8 -8
  562. package/dist/project/sql.js +4 -4
  563. package/dist/project.js +88 -88
  564. package/dist/provider.js +101 -101
  565. package/dist/pty/protocol.js +1 -1
  566. package/dist/pty/schema.js +1 -1
  567. package/dist/pty/ticket.js +1 -1
  568. package/dist/pty.js +98 -98
  569. package/dist/reference/instructions.js +89 -89
  570. package/dist/reference.js +91 -91
  571. package/dist/repository-cache.js +81 -81
  572. package/dist/repository.js +1 -1
  573. package/dist/ripgrep/binary.js +2 -2
  574. package/dist/ripgrep.js +97 -97
  575. package/dist/rpc.js +86 -86
  576. package/dist/schema.js +1 -1
  577. package/dist/session/command.js +74 -74
  578. package/dist/session/compaction.js +132 -132
  579. package/dist/session/context.js +152 -152
  580. package/dist/session/diff.js +88 -88
  581. package/dist/session/environment.js +5 -5
  582. package/dist/session/error.js +3 -3
  583. package/dist/session/event.js +1 -1
  584. package/dist/session/execution/restart.js +221 -221
  585. package/dist/session/execution.js +128 -128
  586. package/dist/session/generate.js +153 -153
  587. package/dist/session/history.js +13 -13
  588. package/dist/session/inbox.js +88 -88
  589. package/dist/session/info.js +3 -3
  590. package/dist/session/instruction-entry.js +79 -79
  591. package/dist/session/instruction-state.js +8 -8
  592. package/dist/session/instructions.js +97 -97
  593. package/dist/session/message-updater.js +4 -4
  594. package/dist/session/message.js +1 -1
  595. package/dist/session/model-request.js +119 -119
  596. package/dist/session/model-transport.js +9 -9
  597. package/dist/session/move.js +130 -130
  598. package/dist/session/projector.js +86 -86
  599. package/dist/session/prompt.js +105 -105
  600. package/dist/session/provider-context.js +3 -3
  601. package/dist/session/revert.js +90 -90
  602. package/dist/session/run-coordinator.js +3 -3
  603. package/dist/session/runner/index.js +3 -3
  604. package/dist/session/runner/llm.js +231 -231
  605. package/dist/session/runner/max-steps.js +1 -1
  606. package/dist/session/runner/model.js +98 -98
  607. package/dist/session/runner/publish-llm-event.js +3 -3
  608. package/dist/session/runner/retry.js +114 -114
  609. package/dist/session/runner/step.js +126 -126
  610. package/dist/session/runner/to-llm-message.js +2 -2
  611. package/dist/session/schema.js +5 -5
  612. package/dist/session/session.js +172 -172
  613. package/dist/session/shell.js +138 -138
  614. package/dist/session/skill.js +103 -103
  615. package/dist/session/sql.js +5 -5
  616. package/dist/session/stats.js +73 -73
  617. package/dist/session/store.js +87 -87
  618. package/dist/session/subagent-completion.js +1 -1
  619. package/dist/session/subagent-job.js +210 -210
  620. package/dist/session/system-prompt.js +3 -3
  621. package/dist/session/title.js +156 -156
  622. package/dist/session/to-session-error.js +111 -111
  623. package/dist/session/transfer.js +217 -217
  624. package/dist/session/usage.js +1 -1
  625. package/dist/session.js +218 -218
  626. package/dist/shell/parse.js +6 -6
  627. package/dist/shell/result.js +1 -1
  628. package/dist/shell/scan.js +1 -1
  629. package/dist/shell/select.js +11 -11
  630. package/dist/shell.js +140 -140
  631. package/dist/skill/discovery.js +6 -6
  632. package/dist/skill/instructions.js +107 -107
  633. package/dist/skill.js +110 -110
  634. package/dist/snapshot.js +93 -93
  635. package/dist/state.js +1 -1
  636. package/dist/tool/html-markdown.js +1 -1
  637. package/dist/tool/http-body.js +1 -1
  638. package/dist/tool/mcp.js +125 -125
  639. package/dist/tool/plugin/edit.js +120 -120
  640. package/dist/tool/plugin/file-diff.js +1 -1
  641. package/dist/tool/plugin/glob.js +122 -122
  642. package/dist/tool/plugin/grep.js +124 -124
  643. package/dist/tool/plugin/mcp-resource.js +116 -116
  644. package/dist/tool/plugin/opencode.js +3 -3
  645. package/dist/tool/plugin/patch.js +120 -120
  646. package/dist/tool/plugin/question.js +103 -103
  647. package/dist/tool/plugin/read.js +125 -125
  648. package/dist/tool/plugin/shell.js +215 -215
  649. package/dist/tool/plugin/skill.js +113 -113
  650. package/dist/tool/plugin/subagent.js +219 -219
  651. package/dist/tool/plugin/webfetch.js +110 -110
  652. package/dist/tool/plugin/websearch.js +108 -108
  653. package/dist/tool/plugin/write.js +120 -120
  654. package/dist/tool/read-filesystem.js +100 -100
  655. package/dist/tool/runtime.js +1 -1
  656. package/dist/tool-output.js +8 -8
  657. package/dist/tool.js +16 -16
  658. package/dist/util/error-summary.js +1 -1
  659. package/dist/util/error.js +1 -1
  660. package/dist/util/git-executable.js +2 -2
  661. package/dist/util/iife.js +1 -1
  662. package/dist/util/lazy.js +1 -1
  663. package/dist/util/slug.js +1 -1
  664. package/dist/util/token.js +1 -1
  665. package/dist/util/which.js +1 -1
  666. package/dist/util/wildcard.js +1 -1
  667. package/dist/v1/config/agent.js +5 -5
  668. package/dist/v1/config/attachment.js +4 -4
  669. package/dist/v1/config/command.js +5 -5
  670. package/dist/v1/config/config.js +16 -16
  671. package/dist/v1/config/error.js +2 -2
  672. package/dist/v1/config/formatter.js +7 -7
  673. package/dist/v1/config/layout.js +1 -1
  674. package/dist/v1/config/lsp.js +5 -5
  675. package/dist/v1/config/mcp.js +4 -4
  676. package/dist/v1/config/migrate.js +92 -92
  677. package/dist/v1/config/permission.js +3 -3
  678. package/dist/v1/config/plugin.js +3 -3
  679. package/dist/v1/config/provider-options.js +1 -1
  680. package/dist/v1/config/provider.js +2 -2
  681. package/dist/v1/config/server.js +2 -2
  682. package/dist/v1/config/skills.js +3 -3
  683. package/dist/v1/permission.js +1 -1
  684. package/dist/variant.js +93 -93
  685. package/dist/vcs/patch.js +1 -1
  686. package/dist/vcs.js +89 -89
  687. package/dist/websearch.js +84 -84
  688. package/dist/wellknown/plugin.js +74 -74
  689. package/dist/wellknown.js +81 -81
  690. package/dist/workspace/driver.js +5 -5
  691. package/dist/workspace/sql.js +1 -1
  692. package/dist/workspace.js +80 -80
  693. package/dist/worktree/directory.js +2 -2
  694. package/dist/worktree/git.js +10 -10
  695. package/dist/worktree/sql.js +5 -5
  696. package/dist/worktree/strategies.js +89 -89
  697. package/dist/worktree.js +98 -98
  698. package/package.json +8 -8
  699. package/dist/chunks/agent-9zdhvgqs.js +0 -18
  700. package/dist/chunks/agent-jq4mhrem.js +0 -26
  701. package/dist/chunks/agent-qxc1ymac.js +0 -252
  702. /package/dist/chunks/{agent-0qkdqm5v.js → worktree-0qkdqm5v.js} +0 -0
  703. /package/dist/chunks/{agent-0zkw76rk.js → worktree-0zkw76rk.js} +0 -0
  704. /package/dist/chunks/{agent-17cy0kzp.js → worktree-17cy0kzp.js} +0 -0
  705. /package/dist/chunks/{agent-1cnp2v09.js → worktree-1cnp2v09.js} +0 -0
  706. /package/dist/chunks/{agent-1kg9ymc8.js → worktree-1kg9ymc8.js} +0 -0
  707. /package/dist/chunks/{agent-24dcb14g.js → worktree-24dcb14g.js} +0 -0
  708. /package/dist/chunks/{agent-2710q6r3.js → worktree-2710q6r3.js} +0 -0
  709. /package/dist/chunks/{agent-2axfhc9x.js → worktree-2axfhc9x.js} +0 -0
  710. /package/dist/chunks/{agent-2c3vjs8z.js → worktree-2c3vjs8z.js} +0 -0
  711. /package/dist/chunks/{agent-34c7v6d4.js → worktree-34c7v6d4.js} +0 -0
  712. /package/dist/chunks/{agent-359p4xyc.js → worktree-359p4xyc.js} +0 -0
  713. /package/dist/chunks/{agent-3asan66x.js → worktree-3asan66x.js} +0 -0
  714. /package/dist/chunks/{agent-3v8g72cx.js → worktree-3v8g72cx.js} +0 -0
  715. /package/dist/chunks/{agent-3w5fmr99.js → worktree-3w5fmr99.js} +0 -0
  716. /package/dist/chunks/{agent-3wcehsnq.js → worktree-3wcehsnq.js} +0 -0
  717. /package/dist/chunks/{agent-43n2bw4t.js → worktree-43n2bw4t.js} +0 -0
  718. /package/dist/chunks/{agent-4knz6hnm.js → worktree-4knz6hnm.js} +0 -0
  719. /package/dist/chunks/{agent-4vcrnpx2.js → worktree-4vcrnpx2.js} +0 -0
  720. /package/dist/chunks/{agent-4y7fprxs.js → worktree-4y7fprxs.js} +0 -0
  721. /package/dist/chunks/{agent-53557ph1.js → worktree-53557ph1.js} +0 -0
  722. /package/dist/chunks/{agent-550bvhaj.js → worktree-550bvhaj.js} +0 -0
  723. /package/dist/chunks/{agent-5qd3pb7m.js → worktree-5qd3pb7m.js} +0 -0
  724. /package/dist/chunks/{agent-6kdq0pjd.js → worktree-6kdq0pjd.js} +0 -0
  725. /package/dist/chunks/{agent-6prwharc.js → worktree-6prwharc.js} +0 -0
  726. /package/dist/chunks/{agent-7akdwqpd.js → worktree-7akdwqpd.js} +0 -0
  727. /package/dist/chunks/{agent-7m9af43g.js → worktree-7m9af43g.js} +0 -0
  728. /package/dist/chunks/{agent-822emrt2.js → worktree-822emrt2.js} +0 -0
  729. /package/dist/chunks/{agent-88xbtdfr.js → worktree-88xbtdfr.js} +0 -0
  730. /package/dist/chunks/{agent-8n3pysct.js → worktree-8n3pysct.js} +0 -0
  731. /package/dist/chunks/{agent-8wj87zfr.js → worktree-8wj87zfr.js} +0 -0
  732. /package/dist/chunks/{agent-922hggd3.js → worktree-922hggd3.js} +0 -0
  733. /package/dist/chunks/{agent-9a4afbnw.js → worktree-9a4afbnw.js} +0 -0
  734. /package/dist/chunks/{agent-9rqn6x4v.js → worktree-9rqn6x4v.js} +0 -0
  735. /package/dist/chunks/{agent-a6k6eb26.js → worktree-a6k6eb26.js} +0 -0
  736. /package/dist/chunks/{agent-af5trqkr.js → worktree-af5trqkr.js} +0 -0
  737. /package/dist/chunks/{agent-afrmfg78.js → worktree-afrmfg78.js} +0 -0
  738. /package/dist/chunks/{agent-aqzs7mqg.js → worktree-aqzs7mqg.js} +0 -0
  739. /package/dist/chunks/{agent-atq7p7m5.js → worktree-atq7p7m5.js} +0 -0
  740. /package/dist/chunks/{agent-bkyjaxrp.js → worktree-bkyjaxrp.js} +0 -0
  741. /package/dist/chunks/{agent-bmr6ed5q.js → worktree-bmr6ed5q.js} +0 -0
  742. /package/dist/chunks/{agent-cf4snx6d.js → worktree-cf4snx6d.js} +0 -0
  743. /package/dist/chunks/{agent-cvy3z8tj.js → worktree-cvy3z8tj.js} +0 -0
  744. /package/dist/chunks/{agent-d9fn303g.js → worktree-d9fn303g.js} +0 -0
  745. /package/dist/chunks/{agent-d9jj8t3e.js → worktree-d9jj8t3e.js} +0 -0
  746. /package/dist/chunks/{agent-dajrwvna.js → worktree-dajrwvna.js} +0 -0
  747. /package/dist/chunks/{agent-dap0rakb.js → worktree-dap0rakb.js} +0 -0
  748. /package/dist/chunks/{agent-df08tz66.js → worktree-df08tz66.js} +0 -0
  749. /package/dist/chunks/{agent-dy18nga0.js → worktree-dy18nga0.js} +0 -0
  750. /package/dist/chunks/{agent-e5kj55wp.js → worktree-e5kj55wp.js} +0 -0
  751. /package/dist/chunks/{agent-e73j6tqm.js → worktree-e73j6tqm.js} +0 -0
  752. /package/dist/chunks/{agent-ec1grn59.js → worktree-ec1grn59.js} +0 -0
  753. /package/dist/chunks/{agent-eh3zwz77.js → worktree-eh3zwz77.js} +0 -0
  754. /package/dist/chunks/{agent-emrn6kk6.js → worktree-emrn6kk6.js} +0 -0
  755. /package/dist/chunks/{agent-f0mxakyp.js → worktree-f0mxakyp.js} +0 -0
  756. /package/dist/chunks/{agent-f6n9ztr4.js → worktree-f6n9ztr4.js} +0 -0
  757. /package/dist/chunks/{agent-faypxj3z.js → worktree-faypxj3z.js} +0 -0
  758. /package/dist/chunks/{agent-fd410y7t.js → worktree-fd410y7t.js} +0 -0
  759. /package/dist/chunks/{agent-fxgpk5d8.js → worktree-fxgpk5d8.js} +0 -0
  760. /package/dist/chunks/{agent-g4wezp1m.js → worktree-g4wezp1m.js} +0 -0
  761. /package/dist/chunks/{agent-g86h250q.js → worktree-g86h250q.js} +0 -0
  762. /package/dist/chunks/{agent-gebd4c9n.js → worktree-gebd4c9n.js} +0 -0
  763. /package/dist/chunks/{agent-gftt206x.js → worktree-gftt206x.js} +0 -0
  764. /package/dist/chunks/{agent-hjbc5kem.js → worktree-hjbc5kem.js} +0 -0
  765. /package/dist/chunks/{agent-hk9envan.js → worktree-hk9envan.js} +0 -0
  766. /package/dist/chunks/{agent-j2ntwpah.js → worktree-j2ntwpah.js} +0 -0
  767. /package/dist/chunks/{agent-j5zkgpj8.js → worktree-j5zkgpj8.js} +0 -0
  768. /package/dist/chunks/{agent-jjkms2e6.js → worktree-jjkms2e6.js} +0 -0
  769. /package/dist/chunks/{agent-jr7sbwjy.js → worktree-jr7sbwjy.js} +0 -0
  770. /package/dist/chunks/{agent-jwfs4k6c.js → worktree-jwfs4k6c.js} +0 -0
  771. /package/dist/chunks/{agent-jzg6c2d5.js → worktree-jzg6c2d5.js} +0 -0
  772. /package/dist/chunks/{agent-mp448xyj.js → worktree-mp448xyj.js} +0 -0
  773. /package/dist/chunks/{agent-msx8hqn2.js → worktree-msx8hqn2.js} +0 -0
  774. /package/dist/chunks/{agent-n05xt0ee.js → worktree-n05xt0ee.js} +0 -0
  775. /package/dist/chunks/{agent-n3j8tn72.js → worktree-n3j8tn72.js} +0 -0
  776. /package/dist/chunks/{agent-njntx4h6.js → worktree-njntx4h6.js} +0 -0
  777. /package/dist/chunks/{agent-q3sfg36h.js → worktree-q3sfg36h.js} +0 -0
  778. /package/dist/chunks/{agent-q74kybfr.js → worktree-q74kybfr.js} +0 -0
  779. /package/dist/chunks/{agent-qaymkmh1.js → worktree-qaymkmh1.js} +0 -0
  780. /package/dist/chunks/{agent-qb87gjwd.js → worktree-qb87gjwd.js} +0 -0
  781. /package/dist/chunks/{agent-qfa1cgps.js → worktree-qfa1cgps.js} +0 -0
  782. /package/dist/chunks/{agent-qg3g05ea.js → worktree-qg3g05ea.js} +0 -0
  783. /package/dist/chunks/{agent-qrg20bc0.js → worktree-qrg20bc0.js} +0 -0
  784. /package/dist/chunks/{agent-rcb2kzg1.js → worktree-rcb2kzg1.js} +0 -0
  785. /package/dist/chunks/{agent-sdp7kfr6.js → worktree-sdp7kfr6.js} +0 -0
  786. /package/dist/chunks/{agent-sk3qaz4a.js → worktree-sk3qaz4a.js} +0 -0
  787. /package/dist/chunks/{agent-ssg3fenm.js → worktree-ssg3fenm.js} +0 -0
  788. /package/dist/chunks/{agent-w803qqfp.js → worktree-w803qqfp.js} +0 -0
  789. /package/dist/chunks/{agent-wc3fc9cn.js → worktree-wc3fc9cn.js} +0 -0
  790. /package/dist/chunks/{agent-wer8tq1h.js → worktree-wer8tq1h.js} +0 -0
  791. /package/dist/chunks/{agent-wtztk69x.js → worktree-wtztk69x.js} +0 -0
  792. /package/dist/chunks/{agent-x0ckcb58.js → worktree-x0ckcb58.js} +0 -0
  793. /package/dist/chunks/{agent-x61499pn.js → worktree-x61499pn.js} +0 -0
  794. /package/dist/chunks/{agent-y44na4kk.js → worktree-y44na4kk.js} +0 -0
  795. /package/dist/chunks/{agent-y8cydn3q.js → worktree-y8cydn3q.js} +0 -0
  796. /package/dist/chunks/{agent-y8f7s663.js → worktree-y8f7s663.js} +0 -0
  797. /package/dist/chunks/{agent-ygaqb7jw.js → worktree-ygaqb7jw.js} +0 -0
  798. /package/dist/chunks/{agent-ym463w8f.js → worktree-ym463w8f.js} +0 -0
  799. /package/dist/chunks/{agent-z9919s4g.js → worktree-z9919s4g.js} +0 -0
@@ -1,51 +1,51 @@
1
1
  import {
2
- ID13,
3
- Service70
4
- } from "./agent-prt5basj.js";
2
+ ID10,
3
+ Service65
4
+ } from "./worktree-tj8p0sq8.js";
5
5
  import {
6
6
  Ref2,
7
- Service61
8
- } from "./agent-b6n0f07q.js";
7
+ Service73
8
+ } from "./worktree-z3aggnr2.js";
9
9
  import {
10
10
  latest2,
11
11
  Service47
12
- } from "./agent-0yxqwdtr.js";
12
+ } from "./worktree-m4b4b35v.js";
13
13
  import {
14
14
  SessionSchema2
15
- } from "./agent-f5syc60y.js";
15
+ } from "./worktree-xxynqx5z.js";
16
16
  import {
17
- Service42
18
- } from "./agent-8qtvggd8.js";
17
+ Service59
18
+ } from "./worktree-4md04jt5.js";
19
19
  import {
20
20
  evaluate2,
21
- Service66
22
- } from "./agent-6qckwf5w.js";
21
+ Service62
22
+ } from "./worktree-ykzz1t9e.js";
23
23
  import {
24
- Service19
25
- } from "./agent-wz2yh3bc.js";
24
+ Service29
25
+ } from "./worktree-g8sy80jx.js";
26
26
  import {
27
27
  NO_TEXT2
28
- } from "./agent-x1ezjp6w.js";
28
+ } from "./worktree-x1ezjp6w.js";
29
29
  import {
30
- make6
31
- } from "./agent-j76x6msn.js";
30
+ make8
31
+ } from "./worktree-a55n900e.js";
32
32
  import {
33
33
  __export
34
- } from "./agent-9rqn6x4v.js";
34
+ } from "./worktree-9rqn6x4v.js";
35
35
 
36
36
  // src/tool/plugin/subagent.ts
37
37
  var exports_subagent = {};
38
38
  __export(exports_subagent, {
39
- Input: () => Input3,
40
- Output: () => Output2,
41
- Plugin: () => Plugin3,
39
+ Input: () => Input10,
40
+ Output: () => Output7,
41
+ Plugin: () => Plugin28,
42
42
  SubagentTool: () => exports_subagent,
43
- description: () => description3,
44
- name: () => name3
43
+ description: () => description5,
44
+ name: () => name10
45
45
  });
46
46
  import { ToolFailure } from "@opencode/ai";
47
47
  import { Effect, Predicate, Schema } from "effect";
48
- var name3 = "subagent";
48
+ var name10 = "subagent";
49
49
  var backgroundResult = (sessionID) => ({
50
50
  sessionID,
51
51
  status: "running",
@@ -56,7 +56,7 @@ var backgroundResult = (sessionID) => ({
56
56
  ].join(`
57
57
  `)
58
58
  });
59
- var Input3 = Schema.Struct({
59
+ var Input10 = Schema.Struct({
60
60
  agent: Schema.String.annotate({
61
61
  description: "The type of specialized agent to use for this task. If the user asks for a subagent by a name that is not one of the available subagents, they most likely mean a model: pick a suitable agent and pass the name through the model parameter instead."
62
62
  }),
@@ -72,12 +72,12 @@ var Input3 = Schema.Struct({
72
72
  description: "Run the subagent in the background and return immediately. You will be notified when it completes. DO NOT sleep, poll, or proactively check on its progress."
73
73
  })
74
74
  });
75
- var Output2 = Schema.Struct({
75
+ var Output7 = Schema.Struct({
76
76
  sessionID: SessionSchema2.ID,
77
77
  status: Schema.Literals(["completed", "running"]),
78
78
  output: Schema.String
79
79
  });
80
- var description3 = [
80
+ var description5 = [
81
81
  "Spawns an agent in a child session to work on the specified task.",
82
82
  "The output includes a sessionID you can pass back later to continue that specific conversation with the subagent.",
83
83
  "New child sessions start with fresh context, so include all relevant context and instructions when you don't pass a sessionID.",
@@ -86,16 +86,16 @@ var description3 = [
86
86
  "Use background only for independent work that can run while you continue elsewhere."
87
87
  ].join(`
88
88
  `);
89
- var Plugin3 = {
89
+ var Plugin28 = {
90
90
  id: "opencode.tool.subagent",
91
91
  effect: Effect.fn("SubagentTool.Plugin")(function* (ctx) {
92
- const sessions = yield* Service19;
93
- const jobs = yield* Service42;
94
- const agents = yield* Service70;
92
+ const sessions = yield* Service29;
93
+ const jobs = yield* Service59;
94
+ const agents = yield* Service65;
95
95
  const config = yield* Service47;
96
- const permission = yield* Service66;
97
- const models = yield* Service61;
98
- const subagents = yield* make6;
96
+ const permission = yield* Service62;
97
+ const models = yield* Service73;
98
+ const subagents = yield* make8;
99
99
  const resolveModel = Effect.fn("SubagentTool.resolveModel")(function* (input) {
100
100
  const ref = yield* Effect.try({
101
101
  try: () => Ref2.parse(input),
@@ -115,11 +115,11 @@ var Plugin3 = {
115
115
  return ref;
116
116
  });
117
117
  yield* ctx.tool.transform((editor) => editor.add({
118
- name: name3,
118
+ name: name10,
119
119
  options: { codemode: false },
120
- description: description3,
121
- input: Input3,
122
- output: Output2,
120
+ description: description5,
121
+ input: Input10,
122
+ output: Output7,
123
123
  execute: (input, context) => Effect.gen(function* () {
124
124
  const parent = yield* sessions.get(context.sessionID).pipe(Effect.mapError((error) => new ToolFailure({ message: `Parent session not found: ${context.sessionID}`, error })));
125
125
  let current = parent;
@@ -139,7 +139,7 @@ var Plugin3 = {
139
139
  if (agent.mode === "primary")
140
140
  return yield* new ToolFailure({ message: `Agent ${input.agent} cannot run as a subagent` });
141
141
  yield* permission.assert({
142
- action: name3,
142
+ action: name10,
143
143
  resources: [agent.id],
144
144
  save: [agent.id],
145
145
  sessionID: context.sessionID,
@@ -168,7 +168,7 @@ var Plugin3 = {
168
168
  const child = existing ?? (yield* sessions.create({
169
169
  parentID: context.sessionID,
170
170
  title: input.description,
171
- agent: ID13.make(input.agent),
171
+ agent: ID10.make(input.agent),
172
172
  model
173
173
  }).pipe(Effect.mapError((error) => new ToolFailure({ message: `Parent session not found: ${context.sessionID}`, error }))));
174
174
  const background = input.background === true;
@@ -218,7 +218,7 @@ ${output.output}
218
218
  })))
219
219
  })).pipe(Effect.orDie);
220
220
  yield* ctx.tool.hook("execute.before", (event) => Effect.sync(() => {
221
- if (event.tool !== name3 || !Predicate.isObject(event.input))
221
+ if (event.tool !== name10 || !Predicate.isObject(event.input))
222
222
  return;
223
223
  if (event.input.model !== "" && event.input.sessionID !== "")
224
224
  return;
@@ -230,13 +230,13 @@ ${output.output}
230
230
  event.input = input;
231
231
  }));
232
232
  const hook = (event) => Effect.gen(function* () {
233
- const tool = event.tools[name3];
233
+ const tool = event.tools[name10];
234
234
  if (!tool)
235
235
  return;
236
236
  const selected = yield* agents.resolve(event.agent);
237
237
  if (!selected)
238
238
  return;
239
- const available = (yield* agents.list()).filter((agent) => agent.mode !== "primary" && !agent.hidden && evaluate2(name3, agent.id, selected.permissions).effect !== "deny").toSorted((a, b) => a.id.localeCompare(b.id));
239
+ const available = (yield* agents.list()).filter((agent) => agent.mode !== "primary" && !agent.hidden && evaluate2(name10, agent.id, selected.permissions).effect !== "deny").toSorted((a, b) => a.id.localeCompare(b.id));
240
240
  if (available.length === 0)
241
241
  return;
242
242
  tool.description = [
@@ -253,4 +253,4 @@ ${output.output}
253
253
  })
254
254
  };
255
255
 
256
- export { name3, Input3, Output2, description3, Plugin3, exports_subagent };
256
+ export { name10, Input10, Output7, description5, Plugin28, exports_subagent };
@@ -1,13 +1,13 @@
1
1
  import {
2
- ID5,
2
+ ID12,
3
3
  Family2
4
- } from "./agent-b6n0f07q.js";
4
+ } from "./worktree-z3aggnr2.js";
5
5
  import {
6
6
  Service47
7
- } from "./agent-0yxqwdtr.js";
7
+ } from "./worktree-m4b4b35v.js";
8
8
  import {
9
9
  foldSettings2
10
- } from "./agent-8vkkgngr.js";
10
+ } from "./worktree-wg821d8s.js";
11
11
 
12
12
  // src/plugin/provider/ollama.ts
13
13
  import { define } from "@opencode/plugin/effect/plugin";
@@ -45,7 +45,7 @@ var ShowResponse = Schema.Struct({
45
45
  });
46
46
  var discovery = new Map;
47
47
  var discoveryLock = Semaphore.makeUnsafe(1);
48
- function make10(origin = "http://127.0.0.1:11434", interval = "30 seconds") {
48
+ function make5(origin = "http://127.0.0.1:11434", interval = "30 seconds") {
49
49
  return define({
50
50
  id: "opencode.provider.ollama",
51
51
  effect: Effect.fn(function* (ctx) {
@@ -77,7 +77,7 @@ function make10(origin = "http://127.0.0.1:11434", interval = "30 seconds") {
77
77
  });
78
78
  for (const item of loaded.models) {
79
79
  providers.models.update(providerID, item.model, (model) => {
80
- model.modelID = ID5.make(item.model);
80
+ model.modelID = ID12.make(item.model);
81
81
  model.name = item.name || item.model;
82
82
  model.family = item.show.details?.family ? Family2.make(item.show.details.family) : item.details.family ? Family2.make(item.details.family) : undefined;
83
83
  model.capabilities = {
@@ -151,7 +151,7 @@ function make10(origin = "http://127.0.0.1:11434", interval = "30 seconds") {
151
151
  })
152
152
  });
153
153
  }
154
- var OllamaPlugin2 = make10();
154
+ var OllamaPlugin2 = make5();
155
155
  function configured(entries, origin) {
156
156
  const settings = foldSettings2(entries, providerID, undefined);
157
157
  const baseURL = (typeof settings?.baseURL === "string" ? settings.baseURL : `${origin.replace(/\/+$/, "")}/v1`).replace(/\/+$/, "");
@@ -170,4 +170,4 @@ function configured(entries, origin) {
170
170
  return { baseURL, apiKey, tagsEndpoint, showEndpoint: url.toString() };
171
171
  }
172
172
 
173
- export { make10, OllamaPlugin2 };
173
+ export { make5, OllamaPlugin2 };
@@ -1,18 +1,18 @@
1
1
  import {
2
- Service35
3
- } from "./agent-cdm0dq9n.js";
2
+ Service54
3
+ } from "./worktree-yf4jcbx9.js";
4
4
  import {
5
5
  awaitActivation2
6
- } from "./agent-9zdhvgqs.js";
6
+ } from "./worktree-qc068m1q.js";
7
7
  import {
8
8
  SkillNotFoundError2
9
- } from "./agent-wkzkw8tr.js";
9
+ } from "./worktree-wxffcvth.js";
10
10
  import {
11
- Service40
12
- } from "./agent-k1z6zz7b.js";
11
+ Service57
12
+ } from "./worktree-k3anzat6.js";
13
13
  import {
14
14
  __export
15
- } from "./agent-9rqn6x4v.js";
15
+ } from "./worktree-9rqn6x4v.js";
16
16
 
17
17
  // src/session/skill.ts
18
18
  var exports_skill4 = {};
@@ -22,8 +22,8 @@ __export(exports_skill4, {
22
22
  });
23
23
  import { Effect } from "effect";
24
24
  var get4 = Effect.fn("SessionSkill.get")(function* (input) {
25
- const instances = yield* Service35;
26
- const skills = yield* awaitActivation2.pipe(Effect.andThen(Service40), instances.provide(input.session));
25
+ const instances = yield* Service54;
26
+ const skills = yield* awaitActivation2.pipe(Effect.andThen(Service57), instances.provide(input.session));
27
27
  const skill = yield* skills.get(input.skill);
28
28
  if (!skill)
29
29
  return yield* new SkillNotFoundError2({ skill: input.skill });
@@ -1,23 +1,23 @@
1
1
  import {
2
2
  Service47
3
- } from "./agent-0yxqwdtr.js";
3
+ } from "./worktree-m4b4b35v.js";
4
4
  import {
5
- Service31
6
- } from "./agent-jc2w93fw.js";
5
+ Service39
6
+ } from "./worktree-fggcrdhd.js";
7
7
  import {
8
8
  __export
9
- } from "./agent-9rqn6x4v.js";
9
+ } from "./worktree-9rqn6x4v.js";
10
10
 
11
11
  // src/config/plugin/mcp.ts
12
- var exports_mcp = {};
13
- __export(exports_mcp, {
14
- ConfigMcpPlugin: () => exports_mcp,
15
- Plugin: () => Plugin20,
12
+ var exports_mcp2 = {};
13
+ __export(exports_mcp2, {
14
+ ConfigMcpPlugin: () => exports_mcp2,
15
+ Plugin: () => Plugin34,
16
16
  register: () => register2
17
17
  });
18
18
  import { define } from "@opencode/plugin/effect/plugin";
19
19
  import { Effect, Stream } from "effect";
20
- var Plugin20 = define({
20
+ var Plugin34 = define({
21
21
  id: "opencode.config.mcp",
22
22
  effect: Effect.fn(function* (ctx) {
23
23
  yield* register2(ctx.event.subscribe());
@@ -25,7 +25,7 @@ var Plugin20 = define({
25
25
  });
26
26
  var register2 = Effect.fn("ConfigMCPPlugin.register")(function* (events) {
27
27
  const config = yield* Service47;
28
- const mcp = yield* Service31;
28
+ const mcp = yield* Service39;
29
29
  const loaded = { entries: [] };
30
30
  yield* events.pipe(Stream.filter((event) => event.type === "config.updated"), Stream.runForEach(() => config.entries().pipe(Effect.tap((entries) => Effect.sync(() => loaded.entries = entries)), Effect.andThen(mcp.reload()), Effect.catchCause((cause) => Effect.logError("failed to reload MCP config", { cause })))), Effect.ignore, Effect.forkScoped({ startImmediately: true }));
31
31
  loaded.entries = yield* config.entries();
@@ -46,4 +46,4 @@ var register2 = Effect.fn("ConfigMCPPlugin.register")(function* (events) {
46
46
  });
47
47
  });
48
48
 
49
- export { Plugin20, register2, exports_mcp };
49
+ export { Plugin34, register2, exports_mcp2 };
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  which2
3
- } from "./agent-qaymkmh1.js";
3
+ } from "./worktree-qaymkmh1.js";
4
4
 
5
5
  // src/ripgrep/binary.ts
6
6
  import path from "path";
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  __export
3
- } from "./agent-9rqn6x4v.js";
3
+ } from "./worktree-9rqn6x4v.js";
4
4
 
5
5
  // src/workspace/driver.ts
6
6
  var exports_driver = {};
@@ -10,8 +10,8 @@ __export(exports_driver, {
10
10
  ProviderNotFound: () => ProviderNotFound2,
11
11
  RegistryService: () => RegistryService2,
12
12
  WorkspaceDriver: () => exports_driver,
13
- make: () => make21,
14
- node: () => node81,
13
+ make: () => make19,
14
+ node: () => node63,
15
15
  registry: () => registry2,
16
16
  registryNode: () => registryNode2
17
17
  });
@@ -29,7 +29,7 @@ class ProviderNotFound2 extends Schema.TaggedError()("WorkspaceDriver.ProviderNo
29
29
  provider: Schema.String
30
30
  }) {
31
31
  }
32
- var make21 = (driver) => driver;
32
+ var make19 = (driver) => driver;
33
33
 
34
34
  class RegistryService2 extends Context.Service()("@opencode/WorkspaceDriverRegistry") {
35
35
  }
@@ -44,6 +44,6 @@ var registryNode2 = (drivers) => makeGlobalNode({
44
44
  layer: Layer.succeed(RegistryService2, RegistryService2.of(registry2(drivers))),
45
45
  deps: []
46
46
  });
47
- var node81 = registryNode2({});
47
+ var node63 = registryNode2({});
48
48
 
49
- export { Binding2, Error4, ProviderNotFound2, make21, RegistryService2, registry2, registryNode2, node81, exports_driver };
49
+ export { Binding2, Error4, ProviderNotFound2, make19, RegistryService2, registry2, registryNode2, node63, exports_driver };
@@ -1,23 +1,23 @@
1
1
  import {
2
2
  latest2,
3
3
  Service47
4
- } from "./agent-0yxqwdtr.js";
4
+ } from "./worktree-m4b4b35v.js";
5
5
  import {
6
6
  observe2
7
- } from "./agent-qsdy395h.js";
7
+ } from "./worktree-qsdy395h.js";
8
8
  import {
9
9
  __export
10
- } from "./agent-9rqn6x4v.js";
10
+ } from "./worktree-9rqn6x4v.js";
11
11
 
12
12
  // src/config/plugin/websearch.ts
13
13
  var exports_websearch2 = {};
14
14
  __export(exports_websearch2, {
15
15
  ConfigWebSearchPlugin: () => exports_websearch2,
16
- Plugin: () => Plugin32
16
+ Plugin: () => Plugin40
17
17
  });
18
18
  import { define } from "@opencode/plugin/effect/plugin";
19
19
  import { Effect } from "effect";
20
- var Plugin32 = define({
20
+ var Plugin40 = define({
21
21
  id: "opencode.config.websearch",
22
22
  effect: Effect.fn(function* (ctx) {
23
23
  const config = yield* Service47;
@@ -32,4 +32,4 @@ var Plugin32 = define({
32
32
  })
33
33
  });
34
34
 
35
- export { Plugin32, exports_websearch2 };
35
+ export { Plugin40, exports_websearch2 };
@@ -1,39 +1,39 @@
1
1
  import {
2
2
  AbsolutePath2
3
- } from "./agent-922hggd3.js";
3
+ } from "./worktree-922hggd3.js";
4
4
  import {
5
- Service80
6
- } from "./agent-71wjg4kw.js";
5
+ Service77
6
+ } from "./worktree-rqz00b65.js";
7
7
  import {
8
8
  Service47
9
- } from "./agent-0yxqwdtr.js";
9
+ } from "./worktree-m4b4b35v.js";
10
10
  import {
11
- Service54
12
- } from "./agent-wtzh7vad.js";
11
+ Service28
12
+ } from "./worktree-h0v79wmk.js";
13
13
  import {
14
14
  observe2
15
- } from "./agent-qsdy395h.js";
15
+ } from "./worktree-qsdy395h.js";
16
16
  import {
17
17
  __export
18
- } from "./agent-9rqn6x4v.js";
18
+ } from "./worktree-9rqn6x4v.js";
19
19
 
20
20
  // src/config/plugin/worktree.ts
21
21
  var exports_worktree = {};
22
22
  __export(exports_worktree, {
23
23
  ConfigWorktreePlugin: () => exports_worktree,
24
- Plugin: () => Plugin26
24
+ Plugin: () => Plugin42
25
25
  });
26
26
  import { define } from "@opencode/plugin/effect/plugin";
27
27
  import { Effect } from "effect";
28
28
  import path from "path";
29
29
  import { Global } from "@opencode/util/global";
30
- var Plugin26 = define({
30
+ var Plugin42 = define({
31
31
  id: "opencode.config.worktree",
32
32
  effect: Effect.fn(function* (ctx) {
33
33
  const config = yield* Service47;
34
- const location = yield* Service80;
34
+ const location = yield* Service77;
35
35
  const global = yield* Global.Service;
36
- const worktrees = yield* Service54;
36
+ const worktrees = yield* Service28;
37
37
  const loaded = yield* observe2(config, ctx.event, worktrees.reload());
38
38
  yield* worktrees.transform((editor) => {
39
39
  for (const entry of loaded.entries) {
@@ -48,4 +48,4 @@ var Plugin26 = define({
48
48
  })
49
49
  });
50
50
 
51
- export { Plugin26, exports_worktree };
51
+ export { Plugin42, exports_worktree };
@@ -1,21 +1,21 @@
1
1
  import {
2
2
  useragent2
3
- } from "./agent-cc4mce2f.js";
3
+ } from "./worktree-n810d9f4.js";
4
4
  import {
5
5
  __export
6
- } from "./agent-9rqn6x4v.js";
6
+ } from "./worktree-9rqn6x4v.js";
7
7
 
8
8
  // src/plugin/websearch/tavily.ts
9
9
  var exports_tavily = {};
10
10
  __export(exports_tavily, {
11
- Plugin: () => Plugin38,
11
+ Plugin: () => Plugin9,
12
12
  WebSearchTavily: () => exports_tavily,
13
- endpoint: () => endpoint5
13
+ endpoint: () => endpoint6
14
14
  });
15
15
  import { define } from "@opencode/plugin/effect/plugin";
16
16
  import { Duration, Effect, Schema } from "effect";
17
17
  import { HttpClient, HttpClientRequest, HttpClientResponse } from "effect/unstable/http";
18
- var endpoint5 = "https://api.tavily.com/search";
18
+ var endpoint6 = "https://api.tavily.com/search";
19
19
  var SearchRequest = Schema.Struct({
20
20
  query: Schema.String,
21
21
  search_depth: Schema.Literal("basic"),
@@ -29,7 +29,7 @@ var SearchResponse = Schema.Struct({
29
29
  content: Schema.String
30
30
  }))
31
31
  });
32
- var Plugin38 = define({
32
+ var Plugin9 = define({
33
33
  id: "opencode.websearch.tavily",
34
34
  effect: Effect.fn("WebSearchTavily.Plugin")(function* (ctx) {
35
35
  const http = yield* HttpClient.HttpClient;
@@ -51,7 +51,7 @@ var Plugin38 = define({
51
51
  execute: (input) => Effect.gen(function* () {
52
52
  const connection = yield* ctx.integration.connection.active("tavily");
53
53
  const credential = connection ? yield* ctx.integration.connection.resolve(connection) : undefined;
54
- const request = yield* HttpClientRequest.post(endpoint5).pipe(HttpClientRequest.acceptJson, HttpClientRequest.setHeaders({
54
+ const request = yield* HttpClientRequest.post(endpoint6).pipe(HttpClientRequest.acceptJson, HttpClientRequest.setHeaders({
55
55
  "User-Agent": useragent2(ctx.app),
56
56
  "X-Client-Name": "opencode2",
57
57
  ...credential?.type === "key" ? { Authorization: `Bearer ${credential.key}` } : { "X-Tavily-Access-Mode": "keyless" }
@@ -77,4 +77,4 @@ var Plugin38 = define({
77
77
  })
78
78
  });
79
79
 
80
- export { endpoint5, Plugin38, exports_tavily };
80
+ export { endpoint6, Plugin9, exports_tavily };
@@ -1,27 +1,27 @@
1
1
  import {
2
2
  Service83,
3
3
  node87
4
- } from "./agent-q3zwv4bp.js";
4
+ } from "./worktree-r7y78zcv.js";
5
5
  import {
6
6
  shutdown2,
7
7
  create3
8
- } from "./agent-rdw6cm16.js";
8
+ } from "./worktree-rdw6cm16.js";
9
9
  import {
10
- ID7,
11
- Service63,
12
- node66,
13
- Event14
14
- } from "./agent-4snp72qp.js";
10
+ ID14,
11
+ Service75,
12
+ node78,
13
+ Event17
14
+ } from "./worktree-26300t6s.js";
15
15
  import {
16
16
  key2
17
- } from "./agent-nzyhnfxz.js";
17
+ } from "./worktree-h6r3nrb9.js";
18
18
  import {
19
- Service80,
20
- node84
21
- } from "./agent-71wjg4kw.js";
19
+ Service77,
20
+ node80
21
+ } from "./worktree-rqz00b65.js";
22
22
  import {
23
23
  __export
24
- } from "./agent-9rqn6x4v.js";
24
+ } from "./worktree-9rqn6x4v.js";
25
25
 
26
26
  // src/aisdk-native.ts
27
27
  var exports_aisdk_native = {};
@@ -37,13 +37,13 @@ var exports_provider3 = {};
37
37
  __export(exports_provider3, {
38
38
  AISDK_PREFIX: () => AISDK_PREFIX2,
39
39
  Compaction: () => Compaction3,
40
- Event: () => Event13,
41
- ID: () => ID6,
42
- Info: () => Info22,
40
+ Event: () => Event16,
41
+ ID: () => ID13,
42
+ Info: () => Info27,
43
43
  LoadError: () => LoadError3,
44
44
  Provider: () => exports_provider3,
45
- Request: () => Request2,
46
- Service: () => Service62,
45
+ Request: () => Request3,
46
+ Service: () => Service74,
47
47
  Settings: () => Settings2,
48
48
  Transport: () => Transport2,
49
49
  aisdk: () => aisdk2,
@@ -53,7 +53,7 @@ __export(exports_provider3, {
53
53
  mergeOverlay: () => mergeOverlay2,
54
54
  modelSettings: () => modelSettings2,
55
55
  nativeSettings: () => nativeSettings2,
56
- node: () => node65,
56
+ node: () => node77,
57
57
  packageName: () => packageName2
58
58
  });
59
59
  import { Context, Effect, Layer, Schema, Stream, Struct } from "effect";
@@ -64,8 +64,8 @@ import { isRecord } from "@opencode/ai/utils/record";
64
64
  import { importModule, resolveModule } from "@opencode/util/runtime-import";
65
65
  import { Credential } from "@opencode/schema/credential";
66
66
  import { freeze } from "immer";
67
- import { Event as Event13 } from "@opencode/schema/provider";
68
- var ID6 = Provider.ID;
67
+ import { Event as Event16 } from "@opencode/schema/provider";
68
+ var ID13 = Provider.ID;
69
69
  var AISDK_PREFIX2 = "aisdk:";
70
70
  var isAISDK2 = (value) => value?.startsWith(AISDK_PREFIX2) ?? false;
71
71
  var aisdk2 = (value) => isAISDK2(value) ? value : `${AISDK_PREFIX2}${value}`;
@@ -206,13 +206,13 @@ function mergeHeaders2(base, overlay) {
206
206
  return result;
207
207
  }, new Map).values());
208
208
  }
209
- var Request2 = Provider.Request;
209
+ var Request3 = Provider.Request;
210
210
  var Compaction3 = Provider.Compaction;
211
211
  var Transport2 = Provider.Transport;
212
212
  var Settings2 = Provider.Settings;
213
- var Info22 = Provider.Info;
213
+ var Info27 = Provider.Info;
214
214
 
215
- class Service62 extends Context.Service()("@opencode/Provider") {
215
+ class Service74 extends Context.Service()("@opencode/Provider") {
216
216
  }
217
217
  var definitions = new WeakMap;
218
218
  function index(providerID, models) {
@@ -225,10 +225,10 @@ function index(providerID, models) {
225
225
  definitions.set(models, indexes);
226
226
  return result;
227
227
  }
228
- var layer = Layer.effect(Service62, Effect.gen(function* () {
228
+ var layer = Layer.effect(Service74, Effect.gen(function* () {
229
229
  const bus = yield* Service83;
230
- const integrations = yield* Service63;
231
- const location = yield* Service80;
230
+ const integrations = yield* Service75;
231
+ const location = yield* Service77;
232
232
  const state = create3({
233
233
  name: "provider",
234
234
  initial: () => new Map,
@@ -239,7 +239,7 @@ var layer = Layer.effect(Service62, Effect.gen(function* () {
239
239
  const current = records.get(id);
240
240
  if (current)
241
241
  return current;
242
- const added = { provider: Info22.empty(id), models: new Map };
242
+ const added = { provider: Info27.empty(id), models: new Map };
243
243
  records.set(id, added);
244
244
  maps.add(added.models);
245
245
  return added;
@@ -320,7 +320,7 @@ var layer = Layer.effect(Service62, Effect.gen(function* () {
320
320
  const available = Array.from(records.values()).filter((record) => {
321
321
  if (record.provider.activation === "disabled")
322
322
  return false;
323
- const integration = byID.get(record.provider.integrationID ?? ID7.make(record.provider.id));
323
+ const integration = byID.get(record.provider.integrationID ?? ID14.make(record.provider.id));
324
324
  if (record.sourceConnection && key2(record.sourceConnection) !== key2(integration?.connections[0]))
325
325
  return false;
326
326
  if (record.provider.activation === "enabled")
@@ -346,8 +346,8 @@ var layer = Layer.effect(Service62, Effect.gen(function* () {
346
346
  location: { directory: location.directory, workspaceID: location.workspaceID }
347
347
  });
348
348
  });
349
- yield* bus.subscribe([Event14.Updated, Credential.Event.Updated, Credential.Event.Switched]).pipe(Stream.runForEach(() => notify), Effect.forkScoped({ startImmediately: true }));
350
- return Service62.of({
349
+ yield* bus.subscribe([Event17.Updated, Credential.Event.Updated, Credential.Event.Switched]).pipe(Stream.runForEach(() => notify), Effect.forkScoped({ startImmediately: true }));
350
+ return Service74.of({
351
351
  transform: state.transform,
352
352
  reload: state.reload,
353
353
  get: Effect.fn("Provider.get")((id) => Effect.sync(() => freeze(state.get().get(id)?.provider, true))),
@@ -356,7 +356,7 @@ var layer = Layer.effect(Service62, Effect.gen(function* () {
356
356
  snapshot
357
357
  });
358
358
  }));
359
- var node65 = makeLocationNode({ service: Service62, layer, deps: [node87, node66, node84] });
359
+ var node77 = makeLocationNode({ service: Service74, layer, deps: [node87, node78, node80] });
360
360
  var importPackage = Effect.fn("Provider.importPackage")(function* (specifier, entrypoint, load = () => importModule(entrypoint)) {
361
361
  const module = yield* Effect.tryPromise({
362
362
  try: () => {
@@ -616,4 +616,4 @@ var Legacy = Schema2.StructWithRest(Schema2.Struct({
616
616
  }), [Schema2.Record(Schema2.String, Schema2.Unknown)]);
617
617
  var decode = Schema2.decodeUnknownSync(Legacy);
618
618
 
619
- export { rewrite2, native2, exports_aisdk_native, ID6, AISDK_PREFIX2, isAISDK2, aisdk2, packageName2, LoadError3, loadPackage2, nativeSettings2, modelSettings2, mergeOverlay2, mergeHeaders2, Request2, Compaction3, Transport2, Settings2, Info22, Service62, node65, exports_provider3, Event13 };
619
+ export { rewrite2, native2, exports_aisdk_native, ID13, AISDK_PREFIX2, isAISDK2, aisdk2, packageName2, LoadError3, loadPackage2, nativeSettings2, modelSettings2, mergeOverlay2, mergeHeaders2, Request3, Compaction3, Transport2, Settings2, Info27, Service74, node77, exports_provider3, Event16 };