@opencode/core 0.0.0-dev-20215 → 0.0.0-dev-20218

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 (800) 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/{worktree-eeaf82dq.js → state-00832hy7.js} +8 -8
  8. package/dist/chunks/{worktree-674nz3pn.js → state-03axkpd7.js} +26 -26
  9. package/dist/chunks/{worktree-e81dr17b.js → state-05vsj3p7.js} +4 -4
  10. package/dist/chunks/{worktree-w7ams0n7.js → state-07ysamf7.js} +39 -39
  11. package/dist/chunks/{worktree-rkdvqggb.js → state-0gapa1rm.js} +5 -5
  12. package/dist/chunks/state-0mesazry.js +4 -0
  13. package/dist/chunks/{worktree-96ak3467.js → state-0mh48h74.js} +17 -17
  14. package/dist/chunks/{worktree-0paq2nw3.js → state-0paq2nw3.js} +1 -1
  15. package/dist/chunks/{worktree-8cmvxv2n.js → state-0r7yqxbf.js} +5 -5
  16. package/dist/chunks/{worktree-gafemadt.js → state-0xx33ygk.js} +83 -83
  17. package/dist/chunks/{worktree-3k8b8397.js → state-14yk5par.js} +17 -17
  18. package/dist/chunks/{worktree-1dazxqgg.js → state-1dazxqgg.js} +2 -2
  19. package/dist/chunks/{worktree-cxn44tg0.js → state-1gya5ztd.js} +3 -3
  20. package/dist/chunks/{worktree-a4p2e6yr.js → state-1zde08dm.js} +6 -6
  21. package/dist/chunks/{worktree-21r38tys.js → state-21r38tys.js} +1 -1
  22. package/dist/chunks/{worktree-2402vzrj.js → state-2402vzrj.js} +1 -1
  23. package/dist/chunks/{worktree-qany4v32.js → state-25d919r2.js} +37 -37
  24. package/dist/chunks/{worktree-2a5m3afh.js → state-2a5m3afh.js} +1 -1
  25. package/dist/chunks/{worktree-r23pbb8t.js → state-2mkrz92g.js} +29 -29
  26. package/dist/chunks/{worktree-eyz64kwr.js → state-32ymn5e1.js} +6 -6
  27. package/dist/chunks/{worktree-rp0b7fvm.js → state-338yrj73.js} +39 -39
  28. package/dist/chunks/{worktree-0k3fqexr.js → state-347x2fmn.js} +10 -10
  29. package/dist/chunks/{worktree-1ft64m98.js → state-3631mzea.js} +9 -9
  30. package/dist/chunks/{worktree-5xv65hkg.js → state-3ban7q1k.js} +28 -28
  31. package/dist/chunks/{worktree-5kwfr1e0.js → state-3dhcjsqz.js} +24 -24
  32. package/dist/chunks/{worktree-3fc6dm20.js → state-3fc6dm20.js} +1 -1
  33. package/dist/chunks/{worktree-7t5fpg5d.js → state-3fpxrx1n.js} +12 -12
  34. package/dist/chunks/{worktree-3hepkmqq.js → state-3hepkmqq.js} +1 -1
  35. package/dist/chunks/{worktree-k4xjzc9h.js → state-3pkc36ya.js} +7 -7
  36. package/dist/chunks/{worktree-gx5nrd37.js → state-3qb6nqt1.js} +13 -13
  37. package/dist/chunks/{worktree-3smtnn6g.js → state-3smtnn6g.js} +1 -1
  38. package/dist/chunks/{worktree-3tvqynh2.js → state-3tvqynh2.js} +1 -1
  39. package/dist/chunks/{worktree-gnhsmmqn.js → state-3wrtxrr4.js} +6 -6
  40. package/dist/chunks/{worktree-3t40p5r2.js → state-3x4m5qd9.js} +18 -18
  41. package/dist/chunks/{worktree-3zsf4n22.js → state-3zsf4n22.js} +1 -1
  42. package/dist/chunks/{worktree-72mty36f.js → state-405avf1k.js} +11 -11
  43. package/dist/chunks/{worktree-3c8jswt4.js → state-42hej837.js} +19 -19
  44. package/dist/chunks/{worktree-44h5tttr.js → state-4dgbcxzg.js} +4 -4
  45. package/dist/chunks/{worktree-s30fyz93.js → state-4j4tgtq5.js} +4 -4
  46. package/dist/chunks/{worktree-q3d9qgrv.js → state-4p1epq1b.js} +5 -5
  47. package/dist/chunks/{worktree-1arnrgt5.js → state-4ve5k4jc.js} +11 -11
  48. package/dist/chunks/{worktree-3vhzm9vc.js → state-562azfy0.js} +15 -15
  49. package/dist/chunks/{worktree-33w4ejhs.js → state-56gdpj1q.js} +6 -6
  50. package/dist/chunks/{worktree-5daktx2q.js → state-5daktx2q.js} +1 -1
  51. package/dist/chunks/{worktree-hdkzdw1f.js → state-5gpdyetc.js} +20 -20
  52. package/dist/chunks/{worktree-s1xp2azn.js → state-5h68hgfk.js} +30 -30
  53. package/dist/chunks/{worktree-4nhngmcq.js → state-5mcapwzv.js} +35 -35
  54. package/dist/chunks/{worktree-pvecmqrq.js → state-5md0szhq.js} +48 -48
  55. package/dist/chunks/{worktree-ya6t0hrg.js → state-5mnv6qns.js} +20 -20
  56. package/dist/chunks/{worktree-fv23f2g8.js → state-5n657pg2.js} +3 -3
  57. package/dist/chunks/{worktree-5t3nmthw.js → state-5t3nmthw.js} +2 -2
  58. package/dist/chunks/{worktree-xycfn4ya.js → state-5zvmc3ez.js} +20 -20
  59. package/dist/chunks/{worktree-vrxvw0ry.js → state-616betvk.js} +45 -45
  60. package/dist/chunks/{worktree-c8jj867k.js → state-63kpjth9.js} +9 -9
  61. package/dist/chunks/{worktree-669tq793.js → state-669tq793.js} +1 -1
  62. package/dist/chunks/{worktree-0v5qhdm7.js → state-686tv83h.js} +48 -48
  63. package/dist/chunks/{worktree-hnr8f6ws.js → state-697fm79x.js} +4 -4
  64. package/dist/chunks/{worktree-jwtb7ds2.js → state-6b0e6jr0.js} +48 -48
  65. package/dist/chunks/{worktree-nn6yf1qt.js → state-6eqtnz3a.js} +328 -328
  66. package/dist/chunks/{worktree-s2ynmxvy.js → state-6ge9xvdz.js} +12 -12
  67. package/dist/chunks/{worktree-ex8c9819.js → state-6hyw96xs.js} +9 -9
  68. package/dist/chunks/{worktree-6msgmcgs.js → state-6msgmcgs.js} +1 -1
  69. package/dist/chunks/{worktree-qrevjn02.js → state-6wq59zjx.js} +32 -32
  70. package/dist/chunks/{worktree-gs4tkc79.js → state-6ysrkrkr.js} +8 -8
  71. package/dist/chunks/{worktree-a2qe2ev9.js → state-73kdj4zj.js} +8 -8
  72. package/dist/chunks/{worktree-3cvzpexn.js → state-764xmq7n.js} +18 -18
  73. package/dist/chunks/{worktree-7bmhse3q.js → state-7bmhse3q.js} +1 -1
  74. package/dist/chunks/{worktree-vtgtp4yy.js → state-7bvkr4r5.js} +8 -8
  75. package/dist/chunks/{worktree-gq56w217.js → state-7c1t3sth.js} +5 -5
  76. package/dist/chunks/{worktree-2k8khapm.js → state-7dqw4kz8.js} +5 -5
  77. package/dist/chunks/{worktree-9zraknnh.js → state-7g38j68k.js} +30 -30
  78. package/dist/chunks/{worktree-vkxhpebf.js → state-7g5bn0rc.js} +9 -9
  79. package/dist/chunks/{worktree-waa26gy5.js → state-7k0859n8.js} +19 -19
  80. package/dist/chunks/{worktree-d9vsz0nw.js → state-7ve2bcyf.js} +17 -17
  81. package/dist/chunks/{worktree-q3t37ft6.js → state-7w99qc9d.js} +3 -3
  82. package/dist/chunks/{worktree-cn3880dm.js → state-7yjkh209.js} +3 -3
  83. package/dist/chunks/{worktree-1zj7c1b9.js → state-843rktzr.js} +28 -28
  84. package/dist/chunks/{worktree-8d7r5vzw.js → state-8d7r5vzw.js} +1 -1
  85. package/dist/chunks/{worktree-r775761k.js → state-8kb9ad1g.js} +23 -23
  86. package/dist/chunks/{worktree-pc7a78kv.js → state-8t4yhv83.js} +68 -68
  87. package/dist/chunks/{worktree-gfvb90ym.js → state-94ek1h2f.js} +2 -2
  88. package/dist/chunks/{worktree-qkk2rr8y.js → state-9e7tejnn.js} +40 -40
  89. package/dist/chunks/state-9zdhvgqs.js +18 -0
  90. package/dist/chunks/{worktree-7b6f2pz4.js → state-a2ax3qpg.js} +3 -3
  91. package/dist/chunks/{worktree-x3x9tpbc.js → state-a7n07cbk.js} +20 -20
  92. package/dist/chunks/{worktree-aaet6srn.js → state-aaet6srn.js} +2 -2
  93. package/dist/chunks/{worktree-0r0ksm42.js → state-abyvc0ab.js} +16 -16
  94. package/dist/chunks/{worktree-d9s573fh.js → state-ajmg8w9c.js} +9 -9
  95. package/dist/chunks/{worktree-a8nvjzqv.js → state-ajzatwsb.js} +11 -11
  96. package/dist/chunks/{worktree-6krmax6q.js → state-akx14ffq.js} +5 -5
  97. package/dist/chunks/{worktree-2gcp25fc.js → state-anj5zhyn.js} +25 -25
  98. package/dist/chunks/{worktree-shhg5kc4.js → state-aq25p0km.js} +30 -30
  99. package/dist/chunks/{worktree-1xpaaevk.js → state-at4p1dba.js} +24 -24
  100. package/dist/chunks/{worktree-yvpmtcpk.js → state-avz33p24.js} +10 -10
  101. package/dist/chunks/{worktree-0bdrcw2s.js → state-axbkptea.js} +2 -2
  102. package/dist/chunks/{worktree-q10fqe6z.js → state-b3sqm8qs.js} +13 -13
  103. package/dist/chunks/{worktree-b6gygkdw.js → state-b6gygkdw.js} +2 -2
  104. package/dist/chunks/{worktree-caszb10r.js → state-b9cdatme.js} +20 -20
  105. package/dist/chunks/{worktree-e9r79r8d.js → state-bd1518y4.js} +9 -9
  106. package/dist/chunks/{worktree-p37cw4rj.js → state-br0tr5aq.js} +8 -8
  107. package/dist/chunks/{worktree-0j68vngr.js → state-bwhv742z.js} +10 -10
  108. package/dist/chunks/{worktree-3e18wkss.js → state-bysw588c.js} +33 -33
  109. package/dist/chunks/{worktree-3zkmgewa.js → state-c2wmnxd0.js} +16 -16
  110. package/dist/chunks/{worktree-ggceqynt.js → state-c5885s0q.js} +11 -11
  111. package/dist/chunks/{worktree-gpb9r3qt.js → state-cbszzs6d.js} +10 -10
  112. package/dist/chunks/{worktree-54tcyq79.js → state-ckecvw8r.js} +2 -2
  113. package/dist/chunks/{worktree-ktvcadya.js → state-cmxzdf4d.js} +15 -15
  114. package/dist/chunks/{worktree-e14rzxnr.js → state-cnebggg2.js} +30 -30
  115. package/dist/chunks/{worktree-4da46de2.js → state-cw4h18ma.js} +27 -27
  116. package/dist/chunks/{worktree-95v9dhdk.js → state-d06nhcag.js} +12 -12
  117. package/dist/chunks/{worktree-t4mbtemh.js → state-d2aac7k2.js} +5 -5
  118. package/dist/chunks/{worktree-bct739vz.js → state-dfe8djrf.js} +4 -4
  119. package/dist/chunks/{worktree-cpneeje0.js → state-djszqvmq.js} +9 -9
  120. package/dist/chunks/{worktree-kh5y7dsa.js → state-dpdh24t4.js} +29 -29
  121. package/dist/chunks/{worktree-drwq78ky.js → state-drwq78ky.js} +1 -1
  122. package/dist/chunks/{worktree-wedrxhxr.js → state-e0bbdjrn.js} +6 -6
  123. package/dist/chunks/{worktree-1chzq234.js → state-e22zwrdw.js} +5 -5
  124. package/dist/chunks/{worktree-jjk7p82s.js → state-eb7aytjb.js} +26 -26
  125. package/dist/chunks/{worktree-ecfe7b91.js → state-ecfe7b91.js} +2 -2
  126. package/dist/chunks/{worktree-ef5x83kb.js → state-ef5x83kb.js} +1 -1
  127. package/dist/chunks/{worktree-q86ksqw5.js → state-ekw5v65w.js} +29 -29
  128. package/dist/chunks/{worktree-pgp1nwjn.js → state-espax8zg.js} +4 -4
  129. package/dist/chunks/{worktree-etq0c3wd.js → state-etq0c3wd.js} +1 -1
  130. package/dist/chunks/{worktree-pttk24fx.js → state-ev7a3h22.js} +55 -55
  131. package/dist/chunks/{worktree-t2vpa3bp.js → state-evbgk2k8.js} +2 -2
  132. package/dist/chunks/{worktree-dx8w7vfp.js → state-f5q2cchh.js} +10 -10
  133. package/dist/chunks/{worktree-8m4g0388.js → state-f6ggn7ee.js} +26 -26
  134. package/dist/chunks/{worktree-rxmj2525.js → state-fj9t785f.js} +5 -5
  135. package/dist/chunks/{worktree-ejmtyfyw.js → state-fjc6nchj.js} +26 -26
  136. package/dist/chunks/{worktree-yskbjwxr.js → state-fqs56ekt.js} +25 -25
  137. package/dist/chunks/{worktree-1jvcwpzv.js → state-fvfccrab.js} +4 -4
  138. package/dist/chunks/{worktree-bng40jb9.js → state-fz7zprw4.js} +9 -9
  139. package/dist/chunks/{worktree-2384dzxb.js → state-g27ndhem.js} +28 -28
  140. package/dist/chunks/{worktree-swsbd73k.js → state-g534k4t5.js} +15 -15
  141. package/dist/chunks/{worktree-v75ben0y.js → state-g8damagz.js} +14 -14
  142. package/dist/chunks/{worktree-7sxxv0k9.js → state-ga2xd9w7.js} +15 -15
  143. package/dist/chunks/{worktree-gd4qta3r.js → state-gd4qta3r.js} +1 -1
  144. package/dist/chunks/{worktree-9e5ez0z2.js → state-gm9d908t.js} +18 -18
  145. package/dist/chunks/{worktree-axtbgcsn.js → state-gqc82067.js} +5 -5
  146. package/dist/chunks/{worktree-7gt3e72m.js → state-gtbg8hzf.js} +20 -20
  147. package/dist/chunks/{worktree-yyb7tjpc.js → state-gv6a8nnw.js} +2 -2
  148. package/dist/chunks/state-gx3thcd1.js +252 -0
  149. package/dist/chunks/{worktree-j3b38fkc.js → state-h180zsc3.js} +5 -5
  150. package/dist/chunks/{worktree-fj30x8t9.js → state-h3fwwd3m.js} +21 -21
  151. package/dist/chunks/{worktree-fex7j0m5.js → state-h5tv3rwb.js} +13 -13
  152. package/dist/chunks/{worktree-kbrhjmmj.js → state-h6b02349.js} +6 -35
  153. package/dist/chunks/{worktree-gdv4qzn0.js → state-h6p9wsd3.js} +43 -43
  154. package/dist/chunks/{worktree-h6vf3j39.js → state-h6vf3j39.js} +1 -1
  155. package/dist/chunks/{worktree-0bfcnrg1.js → state-hd8vw2pw.js} +1 -1
  156. package/dist/chunks/{worktree-h22tcczk.js → state-hdne2gxf.js} +8 -8
  157. package/dist/chunks/{worktree-k7s9b0vb.js → state-he0atntt.js} +3 -3
  158. package/dist/chunks/{worktree-6893nb2p.js → state-j30mx6hz.js} +32 -32
  159. package/dist/chunks/{worktree-j56e64zr.js → state-j56e64zr.js} +1 -1
  160. package/dist/chunks/{worktree-n9hm6cyq.js → state-jc9t9v97.js} +17 -17
  161. package/dist/chunks/{worktree-b5pxe27k.js → state-jcwatdg2.js} +30 -30
  162. package/dist/chunks/{worktree-dj68pnee.js → state-jewzahs7.js} +4 -4
  163. package/dist/chunks/{worktree-9t5s1r97.js → state-jfqgnx50.js} +9 -9
  164. package/dist/chunks/{worktree-f7j90zp2.js → state-jjs74g98.js} +9 -9
  165. package/dist/chunks/{worktree-s8h5ed1j.js → state-jpybm3yb.js} +17 -17
  166. package/dist/chunks/{worktree-1hgzjtp2.js → state-jx4tfryq.js} +8 -8
  167. package/dist/chunks/{worktree-pd6w8b01.js → state-k0sbk250.js} +25 -25
  168. package/dist/chunks/{worktree-gx48bf3k.js → state-k24hn4de.js} +8 -8
  169. package/dist/chunks/{worktree-k3c624dm.js → state-k3c624dm.js} +3 -3
  170. package/dist/chunks/{worktree-sssfkgzr.js → state-k4eksvdb.js} +11 -11
  171. package/dist/chunks/{worktree-c39c3jzn.js → state-k863czh1.js} +12 -12
  172. package/dist/chunks/{worktree-kmnyjx2j.js → state-kbetmkvn.js} +22 -22
  173. package/dist/chunks/{worktree-3qaj82j9.js → state-kbqjp078.js} +5 -5
  174. package/dist/chunks/{worktree-jypr9n4v.js → state-kbv8ef41.js} +25 -25
  175. package/dist/chunks/{worktree-51kfgev1.js → state-kfxz280d.js} +15 -15
  176. package/dist/chunks/{worktree-n45vtd7p.js → state-kjdd0312.js} +10 -10
  177. package/dist/chunks/{worktree-vdcyv8vc.js → state-kjg680bv.js} +10 -10
  178. package/dist/chunks/{worktree-tpp8915p.js → state-kvvpqxe2.js} +32 -32
  179. package/dist/chunks/{worktree-0d4mnv31.js → state-kwh57d2a.js} +15 -15
  180. package/dist/chunks/{worktree-60z3krt2.js → state-kyyn4ww3.js} +13 -13
  181. package/dist/chunks/{worktree-m3fdjcah.js → state-m3fdjcah.js} +1 -1
  182. package/dist/chunks/{worktree-qgqfqnbd.js → state-m4mpbz9t.js} +12 -12
  183. package/dist/chunks/{worktree-psf552px.js → state-m8qwvxaw.js} +22 -22
  184. package/dist/chunks/{worktree-m9w0rfyh.js → state-m9w0rfyh.js} +1 -1
  185. package/dist/chunks/{worktree-0fzv9h34.js → state-mcq35w5h.js} +28 -28
  186. package/dist/chunks/{worktree-pcn71y31.js → state-mgqv9cjv.js} +8 -8
  187. package/dist/chunks/{worktree-5xhdg7n0.js → state-mjgn9fkd.js} +17 -17
  188. package/dist/chunks/{worktree-t4km5p4j.js → state-mkh9q7yy.js} +20 -20
  189. package/dist/chunks/{worktree-3t7mm76h.js → state-mmcr6kdq.js} +20 -20
  190. package/dist/chunks/{worktree-f1kzstbv.js → state-mv23qax8.js} +26 -26
  191. package/dist/chunks/{worktree-zfps0aje.js → state-mvksx64m.js} +4 -4
  192. package/dist/chunks/{worktree-qecp8fbz.js → state-n35nve9s.js} +11 -11
  193. package/dist/chunks/{worktree-qysgwets.js → state-n898jteq.js} +11 -11
  194. package/dist/chunks/{worktree-jz5sxy2v.js → state-ndqtf2h8.js} +4 -4
  195. package/dist/chunks/{worktree-jca4demv.js → state-nng2ktcm.js} +2 -2
  196. package/dist/chunks/{worktree-8qbj2xnf.js → state-nt1mtbhg.js} +18 -18
  197. package/dist/chunks/{worktree-bqrh5ykt.js → state-nvfvfdqj.js} +9 -9
  198. package/dist/chunks/{worktree-961mqe0b.js → state-p3qswy66.js} +14 -14
  199. package/dist/chunks/{worktree-wagw3cnt.js → state-p8x2zf1r.js} +36 -36
  200. package/dist/chunks/{worktree-em8v7a32.js → state-pc1a02me.js} +30 -30
  201. package/dist/chunks/{worktree-k33k5sgz.js → state-pey5f48j.js} +1 -1
  202. package/dist/chunks/{worktree-w4arg62q.js → state-pf2hb43r.js} +4 -4
  203. package/dist/chunks/{worktree-s6qgj9yb.js → state-phx87qke.js} +11 -11
  204. package/dist/chunks/{worktree-pjvnvgmy.js → state-pjvnvgmy.js} +1 -1
  205. package/dist/chunks/{worktree-pknna89w.js → state-pknna89w.js} +1 -1
  206. package/dist/chunks/{worktree-92zh7pxv.js → state-pm9q95bv.js} +11 -11
  207. package/dist/chunks/{worktree-r5v4xwkj.js → state-pvg53n3j.js} +46 -46
  208. package/dist/chunks/{worktree-m75a1scj.js → state-pvmg7gn1.js} +11 -11
  209. package/dist/chunks/{worktree-27zhgsem.js → state-q6vq307s.js} +4 -4
  210. package/dist/chunks/{worktree-f77nxt0h.js → state-qhv8q597.js} +22 -22
  211. package/dist/chunks/{worktree-magykp64.js → state-qj8eh1ht.js} +4 -4
  212. package/dist/chunks/{worktree-kj6zq9q4.js → state-qpyfagd9.js} +11 -11
  213. package/dist/chunks/{worktree-fferps3m.js → state-qrkzvyze.js} +20 -20
  214. package/dist/chunks/{worktree-n3h0vr51.js → state-qs75wfsq.js} +5 -5
  215. package/dist/chunks/{worktree-qsdy395h.js → state-qsdy395h.js} +1 -1
  216. package/dist/chunks/state-qxcs1gwy.js +26 -0
  217. package/dist/chunks/{worktree-dx2x7qh9.js → state-r3at2bs8.js} +35 -35
  218. package/dist/chunks/{worktree-ekhm0sea.js → state-r3yqybmq.js} +7 -7
  219. package/dist/chunks/{worktree-bw9zjykr.js → state-r5wgqceq.js} +5 -5
  220. package/dist/chunks/{worktree-1bbkgx8g.js → state-r5x6zcsm.js} +3 -3
  221. package/dist/chunks/{worktree-shcgk7se.js → state-r7m9tyc3.js} +6 -6
  222. package/dist/chunks/{worktree-r8xr0va3.js → state-r8xr0va3.js} +1 -1
  223. package/dist/chunks/{worktree-rdw6cm16.js → state-rdw6cm16.js} +1 -1
  224. package/dist/chunks/{worktree-eaj1djv9.js → state-rhjbct0v.js} +8 -8
  225. package/dist/chunks/{worktree-rkprpv83.js → state-rkprpv83.js} +2 -2
  226. package/dist/chunks/{worktree-vz7d5c1g.js → state-rtathh62.js} +5 -5
  227. package/dist/chunks/{worktree-d216944b.js → state-ryr25ayn.js} +5 -5
  228. package/dist/chunks/{worktree-f9ag4zkz.js → state-s3366ge2.js} +20 -20
  229. package/dist/chunks/{worktree-hxghybcg.js → state-s5vp1x85.js} +6 -6
  230. package/dist/chunks/{worktree-ezg02vs1.js → state-s87y6m3g.js} +12 -12
  231. package/dist/chunks/{worktree-xznnvfjn.js → state-sqb9y0cm.js} +20 -20
  232. package/dist/chunks/{worktree-y2zgx20r.js → state-sresy5h2.js} +3 -3
  233. package/dist/chunks/{worktree-jwjamgbd.js → state-srs9dwz9.js} +22 -22
  234. package/dist/chunks/{worktree-ytnjtmra.js → state-sx3dk1aa.js} +3 -3
  235. package/dist/chunks/{worktree-tazgh4e4.js → state-tazgh4e4.js} +1 -1
  236. package/dist/chunks/{worktree-tcezcvh9.js → state-tcezcvh9.js} +1 -1
  237. package/dist/chunks/{worktree-tdstcens.js → state-tdstcens.js} +1 -1
  238. package/dist/chunks/{worktree-3he9s93f.js → state-treznftm.js} +16 -16
  239. package/dist/chunks/{worktree-fgewnttk.js → state-trg22pty.js} +8 -8
  240. package/dist/chunks/{worktree-tvtrv512.js → state-tvtrv512.js} +1 -1
  241. package/dist/chunks/{worktree-n8zk10z2.js → state-v3vry9cg.js} +16 -16
  242. package/dist/chunks/{worktree-gyqt3txq.js → state-v7vymymh.js} +24 -24
  243. package/dist/chunks/{worktree-vc7dggtw.js → state-v997gcsz.js} +20 -20
  244. package/dist/chunks/{worktree-mjk1w6qm.js → state-vb2kgc45.js} +5 -5
  245. package/dist/chunks/{worktree-zj4nggsa.js → state-vb3nvgyj.js} +25 -25
  246. package/dist/chunks/{worktree-veqvce7d.js → state-veqvce7d.js} +1 -1
  247. package/dist/chunks/{worktree-d4gc91s6.js → state-vka635y3.js} +24 -24
  248. package/dist/chunks/{worktree-65tps2j5.js → state-vwryqt0b.js} +15 -15
  249. package/dist/chunks/{worktree-vzcthcp8.js → state-vzcthcp8.js} +1 -1
  250. package/dist/chunks/{worktree-vzs5sf6e.js → state-vzs5sf6e.js} +1 -1
  251. package/dist/chunks/{worktree-aybmmbc8.js → state-w12jd273.js} +30 -30
  252. package/dist/chunks/{worktree-xg31f8ct.js → state-w2ffkqsz.js} +18 -18
  253. package/dist/chunks/{worktree-e32cc78a.js → state-w2xscrkm.js} +83 -83
  254. package/dist/chunks/{worktree-w3wsvvr9.js → state-w3wsvvr9.js} +1 -1
  255. package/dist/chunks/{worktree-b047h9s9.js → state-w9pb4be2.js} +17 -17
  256. package/dist/chunks/{worktree-2sscpfbp.js → state-wcj256t6.js} +42 -42
  257. package/dist/chunks/{worktree-psazpmmj.js → state-wd3x2cqz.js} +2 -2
  258. package/dist/chunks/{worktree-wd87259q.js → state-wd87259q.js} +1 -1
  259. package/dist/chunks/{worktree-01nwxe82.js → state-wjjgdhkj.js} +11 -11
  260. package/dist/chunks/{worktree-njhqdk9p.js → state-wk5z6jzv.js} +5 -5
  261. package/dist/chunks/{worktree-0rbtyk3w.js → state-wkfs9xf1.js} +10 -10
  262. package/dist/chunks/{worktree-x1ezjp6w.js → state-x1ezjp6w.js} +1 -1
  263. package/dist/chunks/{worktree-80n4v3ph.js → state-x2kfg3xp.js} +14 -14
  264. package/dist/chunks/{worktree-2ggx711d.js → state-x7v2bm1t.js} +23 -23
  265. package/dist/chunks/{worktree-k6qbet7y.js → state-xgmh5kwe.js} +47 -47
  266. package/dist/chunks/{worktree-7eezvbx7.js → state-xkahfabv.js} +24 -24
  267. package/dist/chunks/{worktree-dmqcgk4z.js → state-xkntkrq7.js} +5 -5
  268. package/dist/chunks/{worktree-gken7ajx.js → state-xmw0p0yx.js} +27 -27
  269. package/dist/chunks/{worktree-rf68yed4.js → state-xqbar29h.js} +4 -4
  270. package/dist/chunks/{worktree-t2yvaxt4.js → state-xrnnsjt5.js} +4 -4
  271. package/dist/chunks/{worktree-ewbjc8wa.js → state-xzc7yfbq.js} +21 -21
  272. package/dist/chunks/{worktree-y1fvbwt7.js → state-y1fvbwt7.js} +1 -1
  273. package/dist/chunks/{worktree-y71avatq.js → state-y71avatq.js} +1 -1
  274. package/dist/chunks/{worktree-sqgjnw45.js → state-yn0cfv5b.js} +1 -1
  275. package/dist/chunks/{worktree-yrhqyw5v.js → state-yrhqyw5v.js} +1 -1
  276. package/dist/chunks/{worktree-yrznvahk.js → state-yrznvahk.js} +2 -2
  277. package/dist/chunks/{worktree-dt5mtb60.js → state-ysemb9nv.js} +11 -11
  278. package/dist/chunks/{worktree-659sfxq9.js → state-ywyx2haj.js} +14 -14
  279. package/dist/chunks/{worktree-vx8g7p8m.js → state-yx0rmv9r.js} +8 -8
  280. package/dist/chunks/{worktree-bjtzbw4r.js → state-z07pqspn.js} +3 -3
  281. package/dist/chunks/{worktree-z0bkrqjs.js → state-z0bkrqjs.js} +1 -1
  282. package/dist/chunks/{worktree-6f5meky0.js → state-z1wdxvxw.js} +42 -42
  283. package/dist/chunks/{worktree-3j8dagdk.js → state-z380d6bz.js} +31 -31
  284. package/dist/chunks/{worktree-z63w68vq.js → state-z63w68vq.js} +2 -2
  285. package/dist/chunks/{worktree-fe8ssjsg.js → state-za8zfcmp.js} +181 -181
  286. package/dist/chunks/{worktree-n4r3xatb.js → state-zee1rnkq.js} +4 -4
  287. package/dist/chunks/{worktree-rq775frq.js → state-zeh9ct20.js} +2 -2
  288. package/dist/chunks/{worktree-dqt0xvez.js → state-zqktqd3m.js} +4 -4
  289. package/dist/chunks/{worktree-zr2ceqn5.js → state-zr2ceqn5.js} +1 -1
  290. package/dist/chunks/{worktree-zxq2ej10.js → state-zxq2ej10.js} +1 -1
  291. package/dist/chunks/{worktree-kvkgejfx.js → state-zy4wzh65.js} +16 -16
  292. package/dist/codemode/catalog.js +1 -1
  293. package/dist/codemode/instructions.js +7 -7
  294. package/dist/codemode/tool.js +3 -3
  295. package/dist/codemode/web.js +1 -1
  296. package/dist/command.js +85 -85
  297. package/dist/config/discovery.js +82 -82
  298. package/dist/config/markdown.js +1 -1
  299. package/dist/config/normalize.js +106 -106
  300. package/dist/config/plugin/agent.js +125 -125
  301. package/dist/config/plugin/command.js +214 -214
  302. package/dist/config/plugin/compaction.js +160 -160
  303. package/dist/config/plugin/compatibility.js +141 -141
  304. package/dist/config/plugin/entry-observer.js +1 -1
  305. package/dist/config/plugin/formatter.js +124 -124
  306. package/dist/config/plugin/image.js +123 -123
  307. package/dist/config/plugin/instruction.js +90 -90
  308. package/dist/config/plugin/location-watcher.js +123 -123
  309. package/dist/config/plugin/mcp.js +132 -132
  310. package/dist/config/plugin/policy.js +124 -124
  311. package/dist/config/plugin/provider.js +123 -123
  312. package/dist/config/plugin/reference.js +125 -125
  313. package/dist/config/plugin/shell.js +125 -125
  314. package/dist/config/plugin/skill-file.js +102 -102
  315. package/dist/config/plugin/skill.js +144 -144
  316. package/dist/config/plugin/snapshot.js +123 -123
  317. package/dist/config/plugin/source.js +124 -124
  318. package/dist/config/plugin/tool-output.js +125 -125
  319. package/dist/config/plugin/websearch.js +124 -124
  320. package/dist/config/plugin/worktree.js +125 -125
  321. package/dist/config/variable.js +3 -3
  322. package/dist/config/watch.js +1 -1
  323. package/dist/config.js +128 -128
  324. package/dist/credential/sql.js +2 -2
  325. package/dist/credential.js +85 -85
  326. package/dist/database/database.js +66 -66
  327. package/dist/database/drizzle/effect-sqlite/driver.js +12 -12
  328. package/dist/database/drizzle/effect-sqlite/index.js +12 -12
  329. package/dist/database/drizzle/effect-sqlite/session.js +11 -11
  330. package/dist/database/drizzle/index.js +13 -13
  331. package/dist/database/drizzle/internal/drizzle-utils.js +1 -1
  332. package/dist/database/drizzle/sqlite-core/effect/count.js +1 -1
  333. package/dist/database/drizzle/sqlite-core/effect/db.js +9 -9
  334. package/dist/database/drizzle/sqlite-core/effect/delete.js +2 -2
  335. package/dist/database/drizzle/sqlite-core/effect/index.js +10 -10
  336. package/dist/database/drizzle/sqlite-core/effect/insert.js +2 -2
  337. package/dist/database/drizzle/sqlite-core/effect/query.js +1 -1
  338. package/dist/database/drizzle/sqlite-core/effect/raw.js +1 -1
  339. package/dist/database/drizzle/sqlite-core/effect/select.js +2 -2
  340. package/dist/database/drizzle/sqlite-core/effect/session.js +10 -10
  341. package/dist/database/drizzle/sqlite-core/effect/update.js +2 -2
  342. package/dist/database/drizzle.js +14 -14
  343. package/dist/database/migration/20260127222353_familiar_lady_ursula.js +1 -1
  344. package/dist/database/migration/20260211171708_add_project_commands.js +1 -1
  345. package/dist/database/migration/20260213144116_wakeful_the_professor.js +1 -1
  346. package/dist/database/migration/20260225215848_workspace.js +1 -1
  347. package/dist/database/migration/20260227213759_add_session_workspace_id.js +1 -1
  348. package/dist/database/migration/20260228203230_blue_harpoon.js +1 -1
  349. package/dist/database/migration/20260303231226_add_workspace_fields.js +1 -1
  350. package/dist/database/migration/20260309230000_move_org_to_state.js +1 -1
  351. package/dist/database/migration/20260312043431_session_message_cursor.js +1 -1
  352. package/dist/database/migration/20260323234822_events.js +1 -1
  353. package/dist/database/migration/20260410174513_workspace-name.js +1 -1
  354. package/dist/database/migration/20260413175956_chief_energizer.js +1 -1
  355. package/dist/database/migration/20260423070820_add_icon_url_override.js +1 -1
  356. package/dist/database/migration/20260427172553_slow_nightmare.js +1 -1
  357. package/dist/database/migration/20260428004200_add_session_path.js +1 -1
  358. package/dist/database/migration/20260501142318_next_venus.js +1 -1
  359. package/dist/database/migration/20260504145000_add_sync_owner.js +1 -1
  360. package/dist/database/migration/20260507164347_add_workspace_time.js +1 -1
  361. package/dist/database/migration/20260510033149_session_usage.js +1 -1
  362. package/dist/database/migration/20260511000411_data_migration_state.js +1 -1
  363. package/dist/database/migration/20260511173437_session-metadata.js +1 -1
  364. package/dist/database/migration/20260601010001_normalize_storage_paths.js +1 -1
  365. package/dist/database/migration/20260601202201_amazing_prowler.js +1 -1
  366. package/dist/database/migration/20260602002951_lowly_union_jack.js +1 -1
  367. package/dist/database/migration/20260602182828_add_project_directories.js +1 -1
  368. package/dist/database/migration/20260603001617_session_message_projection_indexes.js +1 -1
  369. package/dist/database/migration/20260603040000_session_message_projection_order.js +1 -1
  370. package/dist/database/migration/20260603141458_session_input_inbox.js +1 -1
  371. package/dist/database/migration/20260603160727_jittery_ezekiel_stane.js +1 -1
  372. package/dist/database/migration/20260604172448_event_sourced_session_input.js +1 -1
  373. package/dist/database/migration/20260605003541_add_session_context_snapshot.js +1 -1
  374. package/dist/database/migration/20260605042240_add_context_epoch_agent.js +1 -1
  375. package/dist/database/migration/20260611035744_credential.js +1 -1
  376. package/dist/database/migration/20260611192811_lush_chimera.js +1 -1
  377. package/dist/database/migration/20260612174303_project_dir_strategy.js +1 -1
  378. package/dist/database/migration/20260622142730_simplify_session_context_epoch.js +1 -1
  379. package/dist/database/migration/20260622170816_reset_v2_session_state.js +1 -1
  380. package/dist/database/migration/20260622202450_simplify_session_input.js +1 -1
  381. package/dist/database/migration/20260804233008_loose_psylocke.js +1 -1
  382. package/dist/database/migration/20260805200742_import_legacy_credentials.js +1 -1
  383. package/dist/database/migration/20260808023530_workspace_domain.js +1 -1
  384. package/dist/database/migration/20260811161259_execution_claim_attempts.js +1 -1
  385. package/dist/database/migration/20260812181746_session_inbox.js +1 -1
  386. package/dist/database/migration/20260812213948_worktree.js +1 -1
  387. package/dist/database/migration/20260819222447_session_viewed_state.js +1 -1
  388. package/dist/database/migration/20260823191254_nullable_workspace_binding.js +1 -1
  389. package/dist/database/migration/20260910120000_clear_v1_session_permission.js +1 -1
  390. package/dist/database/migration/20260923013825_project_time_active.js +1 -1
  391. package/dist/database/migration.gen.js +49 -49
  392. package/dist/database/migration.js +51 -51
  393. package/dist/database/path.js +2 -2
  394. package/dist/database/schema.gen.js +1 -1
  395. package/dist/database/schema.sql.js +1 -1
  396. package/dist/database/sqlite.bun.js +1 -1
  397. package/dist/database/sqlite.js +1 -1
  398. package/dist/database/sqlite.node.js +1 -1
  399. package/dist/database/sqlite.workerd.js +1 -1
  400. package/dist/database/v1-migration.bun.js +76 -76
  401. package/dist/database/v1-migration.js +1 -1
  402. package/dist/effect/app-node-builder.js +369 -369
  403. package/dist/effect/app-node-platform.js +2 -2
  404. package/dist/effect/keyed-mutex.js +1 -1
  405. package/dist/effect/websocket-constructor.js +1 -1
  406. package/dist/environment/driver.js +1 -1
  407. package/dist/environment/environment.js +93 -93
  408. package/dist/environment/exec-defaults.js +2 -2
  409. package/dist/environment/files.js +1 -1
  410. package/dist/environment/index.js +95 -95
  411. package/dist/environment/local.js +2 -2
  412. package/dist/environment/memory.js +2 -2
  413. package/dist/environment/unavailable.js +1 -1
  414. package/dist/event/sql.js +1 -1
  415. package/dist/event-logger.js +70 -70
  416. package/dist/file-access.js +104 -104
  417. package/dist/file-mutation.js +94 -94
  418. package/dist/file-retention.js +1 -1
  419. package/dist/file.js +1 -1
  420. package/dist/filesystem/fff.bun.js +2 -2
  421. package/dist/filesystem/fff.js +1 -1
  422. package/dist/filesystem/fff.node.js +2 -2
  423. package/dist/filesystem/fff.workerd.js +2 -2
  424. package/dist/filesystem/ignore.js +1 -1
  425. package/dist/filesystem/location-watcher-policy.js +6 -6
  426. package/dist/filesystem/location-watcher.js +225 -225
  427. package/dist/filesystem/protected.js +1 -1
  428. package/dist/filesystem/search.js +103 -103
  429. package/dist/filesystem/watcher-binding.js +1 -1
  430. package/dist/filesystem/watcher.js +15 -15
  431. package/dist/filesystem.js +106 -106
  432. package/dist/form.js +84 -84
  433. package/dist/formatter/builtins.js +4 -4
  434. package/dist/formatter.js +87 -87
  435. package/dist/generate.js +103 -103
  436. package/dist/git.js +10 -10
  437. package/dist/github-copilot/chat/convert-to-openai-compatible-chat-messages.js +1 -1
  438. package/dist/github-copilot/chat/get-response-metadata.js +1 -1
  439. package/dist/github-copilot/chat/map-openai-compatible-finish-reason.js +1 -1
  440. package/dist/github-copilot/chat/openai-compatible-chat-language-model.js +7 -7
  441. package/dist/github-copilot/chat/openai-compatible-chat-options.js +1 -1
  442. package/dist/github-copilot/chat/openai-compatible-prepare-tools.js +1 -1
  443. package/dist/github-copilot/copilot-provider.js +17 -17
  444. package/dist/github-copilot/models.js +99 -99
  445. package/dist/github-copilot/openai-compatible-error.js +1 -1
  446. package/dist/github-copilot/responses/convert-to-openai-responses-input.js +1 -1
  447. package/dist/github-copilot/responses/map-openai-responses-finish-reason.js +1 -1
  448. package/dist/github-copilot/responses/openai-error.js +1 -1
  449. package/dist/github-copilot/responses/openai-responses-language-model.js +10 -10
  450. package/dist/github-copilot/responses/openai-responses-prepare-tools.js +6 -6
  451. package/dist/github-copilot/responses/tool/code-interpreter.js +1 -1
  452. package/dist/github-copilot/responses/tool/file-search.js +1 -1
  453. package/dist/github-copilot/responses/tool/image-generation.js +1 -1
  454. package/dist/github-copilot/responses/tool/web-search-preview.js +1 -1
  455. package/dist/github-copilot/responses/tool/web-search.js +1 -1
  456. package/dist/id/id.js +1 -1
  457. package/dist/image/photon.js +2 -2
  458. package/dist/image.js +6 -6
  459. package/dist/instance/service.js +3 -3
  460. package/dist/instance.js +360 -360
  461. package/dist/instruction-discovery.js +85 -85
  462. package/dist/instructions/builtins.js +85 -85
  463. package/dist/instructions/index.js +5 -5
  464. package/dist/integration/connection.js +3 -3
  465. package/dist/integration.js +86 -86
  466. package/dist/job.js +77 -77
  467. package/dist/kv/sql.js +2 -2
  468. package/dist/kv.js +73 -73
  469. package/dist/location-activity.js +131 -131
  470. package/dist/location-lifecycle.js +107 -107
  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 +104 -104
  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 +99 -99
  482. package/dist/model-resolver.js +96 -96
  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 +84 -84
  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/hooks.js +5 -5
  497. package/dist/plugin/host.js +218 -218
  498. package/dist/plugin/identity.js +3 -3
  499. package/dist/plugin/instance.js +5 -5
  500. package/dist/plugin/internal.js +333 -333
  501. package/dist/plugin/mcp-codemode-defaults.js +3 -3
  502. package/dist/plugin/models-dev.js +96 -96
  503. package/dist/plugin/module.js +7 -7
  504. package/dist/plugin/optimize.js +2 -2
  505. package/dist/plugin/plan.js +102 -102
  506. package/dist/plugin/promise.js +1 -1
  507. package/dist/plugin/provider/amazon-bedrock.js +90 -90
  508. package/dist/plugin/provider/azure.js +122 -122
  509. package/dist/plugin/provider/cerebras.js +1 -1
  510. package/dist/plugin/provider/cloudflare-ai-gateway.js +121 -121
  511. package/dist/plugin/provider/cloudflare-workers-ai.js +121 -121
  512. package/dist/plugin/provider/cohere.js +2 -2
  513. package/dist/plugin/provider/configured.js +119 -119
  514. package/dist/plugin/provider/digitalocean.js +93 -93
  515. package/dist/plugin/provider/dynamic.js +2 -2
  516. package/dist/plugin/provider/factory.js +1 -1
  517. package/dist/plugin/provider/gateway.js +2 -2
  518. package/dist/plugin/provider/github-copilot.js +94 -94
  519. package/dist/plugin/provider/gitlab.js +93 -93
  520. package/dist/plugin/provider/google-vertex.js +90 -90
  521. package/dist/plugin/provider/kilo.js +1 -1
  522. package/dist/plugin/provider/llmgateway.js +77 -77
  523. package/dist/plugin/provider/lmstudio.js +122 -122
  524. package/dist/plugin/provider/modal.js +92 -92
  525. package/dist/plugin/provider/nvidia.js +1 -1
  526. package/dist/plugin/provider/ollama.js +122 -122
  527. package/dist/plugin/provider/openai.js +92 -92
  528. package/dist/plugin/provider/opencode.js +95 -95
  529. package/dist/plugin/provider/openrouter.js +91 -91
  530. package/dist/plugin/provider/perplexity.js +2 -2
  531. package/dist/plugin/provider/poe.js +78 -78
  532. package/dist/plugin/provider/prompt-cache-key.js +90 -90
  533. package/dist/plugin/provider/sap-ai-core.js +91 -91
  534. package/dist/plugin/provider/sdk-factory.js +1 -1
  535. package/dist/plugin/provider/snowflake-cortex.js +122 -122
  536. package/dist/plugin/provider/venice.js +2 -2
  537. package/dist/plugin/provider/vercel.js +90 -90
  538. package/dist/plugin/provider/vllm.js +122 -122
  539. package/dist/plugin/provider/xai.js +91 -91
  540. package/dist/plugin/provider/zenmux.js +1 -1
  541. package/dist/plugin/provider.js +161 -161
  542. package/dist/plugin/sdk.js +76 -76
  543. package/dist/plugin/service.js +3 -3
  544. package/dist/plugin/skill.js +141 -141
  545. package/dist/plugin/source-directory.js +1 -1
  546. package/dist/plugin/supervisor.js +352 -352
  547. package/dist/plugin/tool-input-repair.js +4 -4
  548. package/dist/plugin/update.js +4 -4
  549. package/dist/plugin/vcs/git.js +86 -86
  550. package/dist/plugin/vcs/hg.js +86 -86
  551. package/dist/plugin/verbosity.js +93 -93
  552. package/dist/plugin/warming.js +121 -121
  553. package/dist/plugin/websearch/exa.js +5 -5
  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 +4 -4
  557. package/dist/plugin/websearch/parallel.js +8 -8
  558. package/dist/plugin/websearch/tavily.js +4 -4
  559. package/dist/plugin/websearch/tinyfish.js +8 -8
  560. package/dist/plugin.js +229 -229
  561. package/dist/project/schema.js +8 -8
  562. package/dist/project/sql.js +4 -4
  563. package/dist/project.js +90 -90
  564. package/dist/provider.js +101 -101
  565. package/dist/pty/protocol.js +1 -1
  566. package/dist/pty/schema.js +3 -3
  567. package/dist/pty/ticket.js +1 -1
  568. package/dist/pty.js +96 -96
  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 +5 -5
  583. package/dist/session/event.js +1 -1
  584. package/dist/session/execution/restart.js +219 -219
  585. package/dist/session/execution.js +122 -122
  586. package/dist/session/generate.js +153 -153
  587. package/dist/session/history.js +13 -13
  588. package/dist/session/inbox.js +84 -84
  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 +1 -1
  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 +4 -4
  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 +170 -170
  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 +85 -85
  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 +1 -1
  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 +220 -220
  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 +112 -112
  634. package/dist/snapshot.js +89 -89
  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 +123 -123
  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 +118 -118
  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 +122 -122
  646. package/dist/tool/plugin/question.js +105 -105
  647. package/dist/tool/plugin/read.js +125 -125
  648. package/dist/tool/plugin/shell.js +217 -217
  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 +114 -114
  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/types/session/runner/retry.d.ts +2 -2
  659. package/dist/util/error-summary.js +1 -1
  660. package/dist/util/error.js +1 -1
  661. package/dist/util/git-executable.js +2 -2
  662. package/dist/util/iife.js +1 -1
  663. package/dist/util/lazy.js +1 -1
  664. package/dist/util/slug.js +1 -1
  665. package/dist/util/token.js +1 -1
  666. package/dist/util/which.js +1 -1
  667. package/dist/util/wildcard.js +1 -1
  668. package/dist/v1/config/agent.js +5 -5
  669. package/dist/v1/config/attachment.js +2 -2
  670. package/dist/v1/config/command.js +3 -3
  671. package/dist/v1/config/config.js +16 -16
  672. package/dist/v1/config/error.js +2 -2
  673. package/dist/v1/config/formatter.js +3 -3
  674. package/dist/v1/config/layout.js +1 -1
  675. package/dist/v1/config/lsp.js +3 -3
  676. package/dist/v1/config/mcp.js +4 -4
  677. package/dist/v1/config/migrate.js +92 -92
  678. package/dist/v1/config/permission.js +3 -3
  679. package/dist/v1/config/plugin.js +3 -3
  680. package/dist/v1/config/provider-options.js +1 -1
  681. package/dist/v1/config/provider.js +4 -4
  682. package/dist/v1/config/server.js +2 -2
  683. package/dist/v1/config/skills.js +3 -3
  684. package/dist/v1/permission.js +1 -1
  685. package/dist/variant.js +93 -93
  686. package/dist/vcs/patch.js +1 -1
  687. package/dist/vcs.js +89 -89
  688. package/dist/websearch.js +84 -84
  689. package/dist/wellknown/plugin.js +76 -76
  690. package/dist/wellknown.js +81 -81
  691. package/dist/workspace/driver.js +7 -7
  692. package/dist/workspace/sql.js +1 -1
  693. package/dist/workspace.js +80 -80
  694. package/dist/worktree/directory.js +2 -2
  695. package/dist/worktree/git.js +10 -10
  696. package/dist/worktree/sql.js +5 -5
  697. package/dist/worktree/strategies.js +89 -89
  698. package/dist/worktree.js +96 -96
  699. package/package.json +8 -8
  700. package/dist/chunks/worktree-4chajvys.js +0 -252
  701. package/dist/chunks/worktree-6kdq0pjd.js +0 -4
  702. package/dist/chunks/worktree-qc068m1q.js +0 -18
  703. package/dist/chunks/worktree-qj6bq7hm.js +0 -26
  704. /package/dist/chunks/{worktree-0qkdqm5v.js → state-0qkdqm5v.js} +0 -0
  705. /package/dist/chunks/{worktree-0zkw76rk.js → state-0zkw76rk.js} +0 -0
  706. /package/dist/chunks/{worktree-17cy0kzp.js → state-17cy0kzp.js} +0 -0
  707. /package/dist/chunks/{worktree-1cnp2v09.js → state-1cnp2v09.js} +0 -0
  708. /package/dist/chunks/{worktree-1kg9ymc8.js → state-1kg9ymc8.js} +0 -0
  709. /package/dist/chunks/{worktree-24dcb14g.js → state-24dcb14g.js} +0 -0
  710. /package/dist/chunks/{worktree-2710q6r3.js → state-2710q6r3.js} +0 -0
  711. /package/dist/chunks/{worktree-2axfhc9x.js → state-2axfhc9x.js} +0 -0
  712. /package/dist/chunks/{worktree-2c3vjs8z.js → state-2c3vjs8z.js} +0 -0
  713. /package/dist/chunks/{worktree-34c7v6d4.js → state-34c7v6d4.js} +0 -0
  714. /package/dist/chunks/{worktree-359p4xyc.js → state-359p4xyc.js} +0 -0
  715. /package/dist/chunks/{worktree-3asan66x.js → state-3asan66x.js} +0 -0
  716. /package/dist/chunks/{worktree-3v8g72cx.js → state-3v8g72cx.js} +0 -0
  717. /package/dist/chunks/{worktree-3w5fmr99.js → state-3w5fmr99.js} +0 -0
  718. /package/dist/chunks/{worktree-3wcehsnq.js → state-3wcehsnq.js} +0 -0
  719. /package/dist/chunks/{worktree-43n2bw4t.js → state-43n2bw4t.js} +0 -0
  720. /package/dist/chunks/{worktree-4knz6hnm.js → state-4knz6hnm.js} +0 -0
  721. /package/dist/chunks/{worktree-4vcrnpx2.js → state-4vcrnpx2.js} +0 -0
  722. /package/dist/chunks/{worktree-4y7fprxs.js → state-4y7fprxs.js} +0 -0
  723. /package/dist/chunks/{worktree-53557ph1.js → state-53557ph1.js} +0 -0
  724. /package/dist/chunks/{worktree-550bvhaj.js → state-550bvhaj.js} +0 -0
  725. /package/dist/chunks/{worktree-5qd3pb7m.js → state-5qd3pb7m.js} +0 -0
  726. /package/dist/chunks/{worktree-6prwharc.js → state-6prwharc.js} +0 -0
  727. /package/dist/chunks/{worktree-7akdwqpd.js → state-7akdwqpd.js} +0 -0
  728. /package/dist/chunks/{worktree-7m9af43g.js → state-7m9af43g.js} +0 -0
  729. /package/dist/chunks/{worktree-822emrt2.js → state-822emrt2.js} +0 -0
  730. /package/dist/chunks/{worktree-88xbtdfr.js → state-88xbtdfr.js} +0 -0
  731. /package/dist/chunks/{worktree-8n3pysct.js → state-8n3pysct.js} +0 -0
  732. /package/dist/chunks/{worktree-8wj87zfr.js → state-8wj87zfr.js} +0 -0
  733. /package/dist/chunks/{worktree-922hggd3.js → state-922hggd3.js} +0 -0
  734. /package/dist/chunks/{worktree-9a4afbnw.js → state-9a4afbnw.js} +0 -0
  735. /package/dist/chunks/{worktree-9rqn6x4v.js → state-9rqn6x4v.js} +0 -0
  736. /package/dist/chunks/{worktree-a6k6eb26.js → state-a6k6eb26.js} +0 -0
  737. /package/dist/chunks/{worktree-af5trqkr.js → state-af5trqkr.js} +0 -0
  738. /package/dist/chunks/{worktree-afrmfg78.js → state-afrmfg78.js} +0 -0
  739. /package/dist/chunks/{worktree-aqzs7mqg.js → state-aqzs7mqg.js} +0 -0
  740. /package/dist/chunks/{worktree-atq7p7m5.js → state-atq7p7m5.js} +0 -0
  741. /package/dist/chunks/{worktree-bkyjaxrp.js → state-bkyjaxrp.js} +0 -0
  742. /package/dist/chunks/{worktree-bmr6ed5q.js → state-bmr6ed5q.js} +0 -0
  743. /package/dist/chunks/{worktree-cf4snx6d.js → state-cf4snx6d.js} +0 -0
  744. /package/dist/chunks/{worktree-cvy3z8tj.js → state-cvy3z8tj.js} +0 -0
  745. /package/dist/chunks/{worktree-d9fn303g.js → state-d9fn303g.js} +0 -0
  746. /package/dist/chunks/{worktree-d9jj8t3e.js → state-d9jj8t3e.js} +0 -0
  747. /package/dist/chunks/{worktree-dajrwvna.js → state-dajrwvna.js} +0 -0
  748. /package/dist/chunks/{worktree-dap0rakb.js → state-dap0rakb.js} +0 -0
  749. /package/dist/chunks/{worktree-df08tz66.js → state-df08tz66.js} +0 -0
  750. /package/dist/chunks/{worktree-dy18nga0.js → state-dy18nga0.js} +0 -0
  751. /package/dist/chunks/{worktree-e5kj55wp.js → state-e5kj55wp.js} +0 -0
  752. /package/dist/chunks/{worktree-e73j6tqm.js → state-e73j6tqm.js} +0 -0
  753. /package/dist/chunks/{worktree-ec1grn59.js → state-ec1grn59.js} +0 -0
  754. /package/dist/chunks/{worktree-eh3zwz77.js → state-eh3zwz77.js} +0 -0
  755. /package/dist/chunks/{worktree-emrn6kk6.js → state-emrn6kk6.js} +0 -0
  756. /package/dist/chunks/{worktree-f0mxakyp.js → state-f0mxakyp.js} +0 -0
  757. /package/dist/chunks/{worktree-f6n9ztr4.js → state-f6n9ztr4.js} +0 -0
  758. /package/dist/chunks/{worktree-faypxj3z.js → state-faypxj3z.js} +0 -0
  759. /package/dist/chunks/{worktree-fd410y7t.js → state-fd410y7t.js} +0 -0
  760. /package/dist/chunks/{worktree-fxgpk5d8.js → state-fxgpk5d8.js} +0 -0
  761. /package/dist/chunks/{worktree-g4wezp1m.js → state-g4wezp1m.js} +0 -0
  762. /package/dist/chunks/{worktree-g86h250q.js → state-g86h250q.js} +0 -0
  763. /package/dist/chunks/{worktree-gebd4c9n.js → state-gebd4c9n.js} +0 -0
  764. /package/dist/chunks/{worktree-gftt206x.js → state-gftt206x.js} +0 -0
  765. /package/dist/chunks/{worktree-hjbc5kem.js → state-hjbc5kem.js} +0 -0
  766. /package/dist/chunks/{worktree-hk9envan.js → state-hk9envan.js} +0 -0
  767. /package/dist/chunks/{worktree-j2ntwpah.js → state-j2ntwpah.js} +0 -0
  768. /package/dist/chunks/{worktree-j5zkgpj8.js → state-j5zkgpj8.js} +0 -0
  769. /package/dist/chunks/{worktree-jjkms2e6.js → state-jjkms2e6.js} +0 -0
  770. /package/dist/chunks/{worktree-jr7sbwjy.js → state-jr7sbwjy.js} +0 -0
  771. /package/dist/chunks/{worktree-jwfs4k6c.js → state-jwfs4k6c.js} +0 -0
  772. /package/dist/chunks/{worktree-jzg6c2d5.js → state-jzg6c2d5.js} +0 -0
  773. /package/dist/chunks/{worktree-mp448xyj.js → state-mp448xyj.js} +0 -0
  774. /package/dist/chunks/{worktree-msx8hqn2.js → state-msx8hqn2.js} +0 -0
  775. /package/dist/chunks/{worktree-n05xt0ee.js → state-n05xt0ee.js} +0 -0
  776. /package/dist/chunks/{worktree-n3j8tn72.js → state-n3j8tn72.js} +0 -0
  777. /package/dist/chunks/{worktree-njntx4h6.js → state-njntx4h6.js} +0 -0
  778. /package/dist/chunks/{worktree-q3sfg36h.js → state-q3sfg36h.js} +0 -0
  779. /package/dist/chunks/{worktree-q74kybfr.js → state-q74kybfr.js} +0 -0
  780. /package/dist/chunks/{worktree-qaymkmh1.js → state-qaymkmh1.js} +0 -0
  781. /package/dist/chunks/{worktree-qb87gjwd.js → state-qb87gjwd.js} +0 -0
  782. /package/dist/chunks/{worktree-qfa1cgps.js → state-qfa1cgps.js} +0 -0
  783. /package/dist/chunks/{worktree-qg3g05ea.js → state-qg3g05ea.js} +0 -0
  784. /package/dist/chunks/{worktree-qrg20bc0.js → state-qrg20bc0.js} +0 -0
  785. /package/dist/chunks/{worktree-rcb2kzg1.js → state-rcb2kzg1.js} +0 -0
  786. /package/dist/chunks/{worktree-sdp7kfr6.js → state-sdp7kfr6.js} +0 -0
  787. /package/dist/chunks/{worktree-sk3qaz4a.js → state-sk3qaz4a.js} +0 -0
  788. /package/dist/chunks/{worktree-ssg3fenm.js → state-ssg3fenm.js} +0 -0
  789. /package/dist/chunks/{worktree-w803qqfp.js → state-w803qqfp.js} +0 -0
  790. /package/dist/chunks/{worktree-wc3fc9cn.js → state-wc3fc9cn.js} +0 -0
  791. /package/dist/chunks/{worktree-wer8tq1h.js → state-wer8tq1h.js} +0 -0
  792. /package/dist/chunks/{worktree-wtztk69x.js → state-wtztk69x.js} +0 -0
  793. /package/dist/chunks/{worktree-x0ckcb58.js → state-x0ckcb58.js} +0 -0
  794. /package/dist/chunks/{worktree-x61499pn.js → state-x61499pn.js} +0 -0
  795. /package/dist/chunks/{worktree-y44na4kk.js → state-y44na4kk.js} +0 -0
  796. /package/dist/chunks/{worktree-y8cydn3q.js → state-y8cydn3q.js} +0 -0
  797. /package/dist/chunks/{worktree-y8f7s663.js → state-y8f7s663.js} +0 -0
  798. /package/dist/chunks/{worktree-ygaqb7jw.js → state-ygaqb7jw.js} +0 -0
  799. /package/dist/chunks/{worktree-ym463w8f.js → state-ym463w8f.js} +0 -0
  800. /package/dist/chunks/{worktree-z9919s4g.js → state-z9919s4g.js} +0 -0
@@ -1,18 +1,18 @@
1
1
  import {
2
2
  AbsolutePath2
3
- } from "./worktree-922hggd3.js";
3
+ } from "./state-922hggd3.js";
4
4
  import {
5
- Service80
6
- } from "./worktree-3he9s93f.js";
5
+ Service78
6
+ } from "./state-treznftm.js";
7
7
  import {
8
- Service51
9
- } from "./worktree-9e5ez0z2.js";
8
+ Service46
9
+ } from "./state-gm9d908t.js";
10
10
  import {
11
- Service9
12
- } from "./worktree-waa26gy5.js";
11
+ Service8
12
+ } from "./state-7k0859n8.js";
13
13
  import {
14
14
  NotFound2
15
- } from "./worktree-2a5m3afh.js";
15
+ } from "./state-2a5m3afh.js";
16
16
  import {
17
17
  MEDIA_MIMES2,
18
18
  BinaryFileError2,
@@ -23,26 +23,26 @@ import {
23
23
  FileContent2,
24
24
  TextPage2,
25
25
  ListPage2,
26
- Service3
27
- } from "./worktree-96ak3467.js";
26
+ Service9
27
+ } from "./state-0mh48h74.js";
28
28
  import {
29
29
  __export
30
- } from "./worktree-9rqn6x4v.js";
30
+ } from "./state-9rqn6x4v.js";
31
31
 
32
32
  // src/tool/plugin/read.ts
33
33
  var exports_read = {};
34
34
  __export(exports_read, {
35
- Input: () => Input2,
36
- Plugin: () => Plugin3,
35
+ Input: () => Input8,
36
+ Plugin: () => Plugin29,
37
37
  ReadTool: () => exports_read,
38
- name: () => name2,
39
- toModelContent: () => toModelContent2
38
+ name: () => name8,
39
+ toModelContent: () => toModelContent4
40
40
  });
41
41
  import { basename, dirname, join } from "path";
42
42
  import { ToolFailure } from "@opencode/ai";
43
43
  import { Effect, Schema } from "effect";
44
44
  import { FSUtil } from "@opencode/util/fs-util";
45
- var name2 = "read";
45
+ var name8 = "read";
46
46
  var FILENAME = "AGENTS.md";
47
47
  var LocationInput = Schema.Struct({
48
48
  path: Schema.String.annotate({ description: "File or directory to read" }),
@@ -53,21 +53,21 @@ var LocationInput = Schema.Struct({
53
53
  description: "The maximum number of lines or directory entries to read (defaults to and capped at 2000)"
54
54
  })
55
55
  });
56
- var Input2 = LocationInput;
56
+ var Input8 = LocationInput;
57
57
  var Output = Schema.Union([FileContent2, TextPage2, ListPage2]);
58
- var Plugin3 = {
58
+ var Plugin29 = {
59
59
  id: "opencode.tool.read",
60
60
  effect: Effect.fn("ReadTool.Plugin")(function* (ctx) {
61
- const reader = yield* Service3;
62
- const access = yield* Service51;
63
- const sessionInstructions = yield* Service9;
61
+ const reader = yield* Service9;
62
+ const access = yield* Service46;
63
+ const sessionInstructions = yield* Service8;
64
64
  const fs = yield* FSUtil.Service;
65
- const location = yield* Service80;
65
+ const location = yield* Service78;
66
66
  yield* ctx.tool.transform((editor) => editor.add({
67
- name: name2,
67
+ name: name8,
68
68
  options: { codemode: false },
69
69
  description: "Read the contents of a file or directory. Supports text files, images, and PDFs. Images and PDFs are presented directly to the model. Each text line is prefixed by its 1-based line number as <line>: <content>. The prefix is for reference and is not part of the file content. Directory entries are returned one per line. Use offset and limit to read large files or directories in sections. Prefer one larger read over many small slices, and use grep to find specific content in large files.",
70
- input: Input2,
70
+ input: Input8,
71
71
  output: Output,
72
72
  execute: (input, context) => {
73
73
  return Effect.gen(function* () {
@@ -112,7 +112,7 @@ var Plugin3 = {
112
112
  return { output: result.content, path: result.path };
113
113
  }).pipe(Effect.map((result) => ({
114
114
  output: result.output,
115
- content: toModelContent2(result.path, input.offset, result.output),
115
+ content: toModelContent4(result.path, input.offset, result.output),
116
116
  metadata: { truncated: result.output.type === "file" ? false : result.output.truncated }
117
117
  })), Effect.mapError((error) => {
118
118
  if (error instanceof ToolFailure)
@@ -145,7 +145,7 @@ ${suggestions.join(`
145
145
  });
146
146
  })
147
147
  };
148
- var toModelContent2 = (path, offset, output) => {
148
+ var toModelContent4 = (path, offset, output) => {
149
149
  if (output.type === "file" && output.encoding === "base64")
150
150
  return [
151
151
  { type: "text", text: output.mime === "application/pdf" ? "PDF read successfully" : "Image read successfully" },
@@ -181,4 +181,4 @@ var toModelContent2 = (path, offset, output) => {
181
181
  `);
182
182
  };
183
183
 
184
- export { name2, Input2, Plugin3, toModelContent2, exports_read };
184
+ export { name8, Input8, Plugin29, toModelContent4, exports_read };
@@ -1,29 +1,29 @@
1
1
  import {
2
2
  Service84,
3
3
  node88
4
- } from "./worktree-7b6f2pz4.js";
4
+ } from "./state-a2ax3qpg.js";
5
5
  import {
6
6
  SessionTable2,
7
7
  SessionMessageTable2
8
- } from "./worktree-bjtzbw4r.js";
8
+ } from "./state-z07pqspn.js";
9
9
  import {
10
10
  decodeMessageRow2,
11
11
  load5
12
- } from "./worktree-1hgzjtp2.js";
12
+ } from "./state-jx4tfryq.js";
13
13
  import {
14
14
  fromRow2
15
- } from "./worktree-jca4demv.js";
15
+ } from "./state-nng2ktcm.js";
16
16
  import {
17
17
  __export
18
- } from "./worktree-9rqn6x4v.js";
18
+ } from "./state-9rqn6x4v.js";
19
19
 
20
20
  // src/session/store.ts
21
21
  var exports_store = {};
22
22
  __export(exports_store, {
23
23
  ListInput: () => ListInput5,
24
- Service: () => Service77,
24
+ Service: () => Service68,
25
25
  SessionStore: () => exports_store,
26
- node: () => node81
26
+ node: () => node71
27
27
  });
28
28
  import { and, asc, desc, eq, gt, isNotNull, isNull, like, lt, notInArray, or, sql } from "drizzle-orm";
29
29
  import { Context, Effect, Layer, Schema } from "effect";
@@ -52,11 +52,11 @@ var ListProjectInput = Schema.Struct({
52
52
  var ListAllInput = Schema.Struct(ListInputBase);
53
53
  var ListInput5 = Schema.Union([ListDirectoryInput, ListProjectInput, ListAllInput]);
54
54
 
55
- class Service77 extends Context.Service()("@opencode/SessionStore") {
55
+ class Service68 extends Context.Service()("@opencode/SessionStore") {
56
56
  }
57
- var layer = Layer.effect(Service77, Effect.gen(function* () {
57
+ var layer = Layer.effect(Service68, Effect.gen(function* () {
58
58
  const { db } = yield* Service84;
59
- return Service77.of({
59
+ return Service68.of({
60
60
  get: Effect.fnUntraced(function* (sessionID) {
61
61
  const row = yield* db.select().from(SessionTable2).where(eq(SessionTable2.id, sessionID)).get().pipe(Effect.orDie);
62
62
  return row ? fromRow2(row) : undefined;
@@ -125,6 +125,6 @@ var layer = Layer.effect(Service77, Effect.gen(function* () {
125
125
  })
126
126
  });
127
127
  }));
128
- var node81 = makeGlobalNode({ service: Service77, layer, deps: [node88] });
128
+ var node71 = makeGlobalNode({ service: Service68, layer, deps: [node88] });
129
129
 
130
- export { ListInput5, Service77, node81, exports_store };
130
+ export { ListInput5, Service68, node71, exports_store };
@@ -1,15 +1,15 @@
1
1
  import {
2
2
  PositiveInt2
3
- } from "./worktree-922hggd3.js";
3
+ } from "./state-922hggd3.js";
4
4
  import {
5
5
  __export
6
- } from "./worktree-9rqn6x4v.js";
6
+ } from "./state-9rqn6x4v.js";
7
7
 
8
8
  // src/v1/config/mcp.ts
9
9
  var exports_mcp5 = {};
10
10
  __export(exports_mcp5, {
11
11
  ConfigMCPV1: () => exports_mcp5,
12
- Info: () => Info12,
12
+ Info: () => Info18,
13
13
  Local: () => Local2,
14
14
  OAuth: () => OAuth2,
15
15
  Remote: () => Remote2
@@ -64,6 +64,6 @@ var Remote2 = Schema.Struct({
64
64
  description: "Timeout in ms for MCP server requests. Defaults to 5000 (5 seconds) if not specified."
65
65
  })
66
66
  }).annotate({ identifier: "McpRemoteConfig" });
67
- var Info12 = Schema.Union([Local2, Remote2]).annotate({ discriminator: "type" });
67
+ var Info18 = Schema.Union([Local2, Remote2]).annotate({ discriminator: "type" });
68
68
 
69
- export { Local2, OAuth2, Remote2, Info12, exports_mcp5 };
69
+ export { Local2, OAuth2, Remote2, Info18, exports_mcp5 };
@@ -1,15 +1,15 @@
1
1
  import {
2
2
  __export
3
- } from "./worktree-9rqn6x4v.js";
3
+ } from "./state-9rqn6x4v.js";
4
4
 
5
5
  // src/v1/config/skills.ts
6
6
  var exports_skills = {};
7
7
  __export(exports_skills, {
8
8
  ConfigSkillsV1: () => exports_skills,
9
- Info: () => Info16
9
+ Info: () => Info17
10
10
  });
11
11
  import { Schema } from "effect";
12
- var Info16 = Schema.Struct({
12
+ var Info17 = Schema.Struct({
13
13
  paths: Schema.optional(Schema.Array(Schema.String)).annotate({
14
14
  description: "Additional paths to skill folders"
15
15
  }),
@@ -18,4 +18,4 @@ var Info16 = Schema.Struct({
18
18
  })
19
19
  });
20
20
 
21
- export { Info16, exports_skills };
21
+ export { Info17, exports_skills };
@@ -1,22 +1,22 @@
1
1
  import {
2
2
  create3
3
- } from "./worktree-rdw6cm16.js";
3
+ } from "./state-rdw6cm16.js";
4
4
  import {
5
5
  __export
6
- } from "./worktree-9rqn6x4v.js";
6
+ } from "./state-9rqn6x4v.js";
7
7
 
8
8
  // src/filesystem/location-watcher-policy.ts
9
9
  var exports_location_watcher_policy = {};
10
10
  __export(exports_location_watcher_policy, {
11
11
  LocationWatcherPolicy: () => exports_location_watcher_policy,
12
- Service: () => Service8,
13
- node: () => node9
12
+ Service: () => Service10,
13
+ node: () => node12
14
14
  });
15
15
  import { makeLocationNode } from "@opencode/util/effect/app-node";
16
16
  import { Context, Effect, Layer, Scope } from "effect";
17
- class Service8 extends Context.Service()("@opencode/LocationWatcherPolicy") {
17
+ class Service10 extends Context.Service()("@opencode/LocationWatcherPolicy") {
18
18
  }
19
- var layer = Layer.effect(Service8, Effect.gen(function* () {
19
+ var layer = Layer.effect(Service10, Effect.gen(function* () {
20
20
  const listeners = new Set;
21
21
  const state = create3({
22
22
  name: "location-watcher-policy",
@@ -41,13 +41,13 @@ var layer = Layer.effect(Service8, Effect.gen(function* () {
41
41
  yield* Scope.addFinalizer(scope, dispose);
42
42
  return { dispose };
43
43
  });
44
- return Service8.of({
44
+ return Service10.of({
45
45
  transform: state.transform,
46
46
  reload: state.reload,
47
47
  current,
48
48
  observe
49
49
  });
50
50
  }));
51
- var node9 = makeLocationNode({ service: Service8, layer, deps: [] });
51
+ var node12 = makeLocationNode({ service: Service10, layer, deps: [] });
52
52
 
53
- export { Service8, node9, exports_location_watcher_policy };
53
+ export { Service10, node12, exports_location_watcher_policy };
@@ -1,42 +1,42 @@
1
1
  import {
2
- Service48
3
- } from "./worktree-7eezvbx7.js";
2
+ Service58
3
+ } from "./state-xkahfabv.js";
4
4
  import {
5
- Service20,
5
+ Service57,
6
6
  readText2,
7
7
  syncTextBom2
8
- } from "./worktree-60z3krt2.js";
8
+ } from "./state-kyyn4ww3.js";
9
9
  import {
10
- Service13
11
- } from "./worktree-65tps2j5.js";
10
+ Service14
11
+ } from "./state-vwryqt0b.js";
12
12
  import {
13
- Service75
14
- } from "./worktree-pttk24fx.js";
13
+ Service66
14
+ } from "./state-ev7a3h22.js";
15
15
  import {
16
- Service51
17
- } from "./worktree-9e5ez0z2.js";
16
+ Service46
17
+ } from "./state-gm9d908t.js";
18
18
  import {
19
19
  fileDiff2
20
- } from "./worktree-6prwharc.js";
20
+ } from "./state-6prwharc.js";
21
21
  import {
22
22
  __export
23
- } from "./worktree-9rqn6x4v.js";
23
+ } from "./state-9rqn6x4v.js";
24
24
 
25
25
  // src/tool/plugin/write.ts
26
26
  var exports_write = {};
27
27
  __export(exports_write, {
28
- Input: () => Input5,
28
+ Input: () => Input3,
29
29
  Output: () => Output3,
30
- Plugin: () => Plugin7,
30
+ Plugin: () => Plugin23,
31
31
  WriteTool: () => exports_write,
32
- name: () => name5,
33
- toModelContent: () => toModelContent3
32
+ name: () => name3,
33
+ toModelContent: () => toModelContent2
34
34
  });
35
35
  import { ToolFailure } from "@opencode/ai";
36
36
  import { Effect, Schema } from "effect";
37
37
  import { Bom } from "@opencode/util/bom";
38
- var name5 = "write";
39
- var Input5 = Schema.Struct({
38
+ var name3 = "write";
39
+ var Input3 = Schema.Struct({
40
40
  path: Schema.String.annotate({
41
41
  description: "Path to the file to write to"
42
42
  }),
@@ -48,24 +48,24 @@ var Output3 = Schema.Struct({
48
48
  resource: Schema.String,
49
49
  existed: Schema.Boolean
50
50
  });
51
- var toModelContent3 = (output) => `${output.existed ? "Wrote" : "Created"} file successfully: ${output.resource}`;
52
- var Plugin7 = {
51
+ var toModelContent2 = (output) => `${output.existed ? "Wrote" : "Created"} file successfully: ${output.resource}`;
52
+ var Plugin23 = {
53
53
  id: "opencode.tool.write",
54
54
  effect: Effect.fn("WriteTool.Plugin")(function* (ctx) {
55
- const access = yield* Service51;
56
- const fileMutation = yield* Service20;
57
- const environment = yield* Service48;
58
- const formatter = yield* Service13;
59
- const permission = yield* Service75;
55
+ const access = yield* Service46;
56
+ const fileMutation = yield* Service57;
57
+ const environment = yield* Service58;
58
+ const formatter = yield* Service14;
59
+ const permission = yield* Service66;
60
60
  yield* ctx.tool.transform((editor) => editor.add({
61
- name: name5,
61
+ name: name3,
62
62
  options: { codemode: false, permission: "edit" },
63
63
  description: `Writes a file to the local filesystem, overwriting if one exists.
64
64
 
65
65
  Missing parent directories are created automatically.
66
66
 
67
67
  Use this tool to create new files or overwrite existing files. For partial changes, use the edit tool instead.`,
68
- input: Input5,
68
+ input: Input3,
69
69
  output: Output3,
70
70
  execute: (input, context) => Effect.gen(function* () {
71
71
  const source = {
@@ -93,9 +93,9 @@ Use this tool to create new files or overwrite existing files. For partial chang
93
93
  yield* syncTextBom2(environment.files, target.absolute, bom);
94
94
  }
95
95
  return result;
96
- }).pipe(Effect.map((output) => ({ output, content: toModelContent3(output) })), Effect.mapError((error) => new ToolFailure({ message: `Unable to write ${input.path}`, error })))
96
+ }).pipe(Effect.map((output) => ({ output, content: toModelContent2(output) })), Effect.mapError((error) => new ToolFailure({ message: `Unable to write ${input.path}`, error })))
97
97
  })).pipe(Effect.orDie);
98
98
  })
99
99
  };
100
100
 
101
- export { name5, Input5, Output3, toModelContent3, Plugin7, exports_write };
101
+ export { name3, Input3, Output3, toModelContent2, Plugin23, exports_write };
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  __export
3
- } from "./worktree-9rqn6x4v.js";
3
+ } from "./state-9rqn6x4v.js";
4
4
 
5
5
  // src/session/system-prompt.ts
6
6
  var exports_system_prompt = {};
@@ -1,20 +1,20 @@
1
1
  import {
2
2
  aisdk2
3
- } from "./worktree-6893nb2p.js";
3
+ } from "./state-j30mx6hz.js";
4
4
  import {
5
5
  VariantID2
6
- } from "./worktree-e14rzxnr.js";
6
+ } from "./state-cnebggg2.js";
7
7
  import {
8
8
  __export
9
- } from "./worktree-9rqn6x4v.js";
9
+ } from "./state-9rqn6x4v.js";
10
10
 
11
11
  // src/variant.ts
12
12
  var exports_variant = {};
13
13
  __export(exports_variant, {
14
14
  Variant: () => exports_variant,
15
- resolve: () => resolve4
15
+ resolve: () => resolve2
16
16
  });
17
- function resolve4(model, supports = [{ type: "effort" }]) {
17
+ function resolve2(model, supports = [{ type: "effort" }]) {
18
18
  const protocol = model.package === undefined ? undefined : PROTOCOLS[model.package];
19
19
  if (!protocol)
20
20
  return [];
@@ -491,4 +491,4 @@ var PROTOCOLS = {
491
491
  [aisdk2("@ai-sdk/cohere")]: cohere
492
492
  };
493
493
 
494
- export { resolve4, exports_variant };
494
+ export { resolve2, exports_variant };
@@ -1,9 +1,9 @@
1
1
  import {
2
- ID9
3
- } from "./worktree-6893nb2p.js";
2
+ ID12
3
+ } from "./state-j30mx6hz.js";
4
4
  import {
5
5
  loadSDKFactory2
6
- } from "./worktree-hjbc5kem.js";
6
+ } from "./state-hjbc5kem.js";
7
7
 
8
8
  // src/plugin/provider/sap-ai-core.ts
9
9
  import { Effect } from "effect";
@@ -14,7 +14,7 @@ var SapAICorePlugin2 = define({
14
14
  effect: Effect.fn(function* (ctx) {
15
15
  const npm = yield* Npm.Service;
16
16
  yield* ctx.aisdk.hook("sdk", Effect.fn(function* (evt) {
17
- if (evt.model.providerID !== ID9.make("sap-ai-core"))
17
+ if (evt.model.providerID !== ID12.make("sap-ai-core"))
18
18
  return;
19
19
  const serviceKey = process.env.AICORE_SERVICE_KEY ?? (typeof evt.options.serviceKey === "string" ? evt.options.serviceKey : undefined);
20
20
  if (serviceKey && !process.env.AICORE_SERVICE_KEY)
@@ -25,7 +25,7 @@ var SapAICorePlugin2 = define({
25
25
  evt.sdk = factory(serviceKey ? { deploymentId: process.env.AICORE_DEPLOYMENT_ID, resourceGroup: process.env.AICORE_RESOURCE_GROUP } : {});
26
26
  }));
27
27
  yield* ctx.aisdk.hook("language", Effect.fn(function* (evt) {
28
- if (evt.model.providerID !== ID9.make("sap-ai-core"))
28
+ if (evt.model.providerID !== ID12.make("sap-ai-core"))
29
29
  return;
30
30
  evt.language = evt.sdk(evt.model.modelID ?? evt.model.id);
31
31
  }));
@@ -1,68 +1,68 @@
1
1
  import {
2
2
  Service84,
3
3
  node88
4
- } from "./worktree-7b6f2pz4.js";
4
+ } from "./state-a2ax3qpg.js";
5
5
  import {
6
6
  Service83,
7
7
  node87
8
- } from "./worktree-t2yvaxt4.js";
8
+ } from "./state-xrnnsjt5.js";
9
9
  import {
10
10
  llmClient2
11
- } from "./worktree-5t3nmthw.js";
11
+ } from "./state-5t3nmthw.js";
12
12
  import {
13
13
  create3
14
- } from "./worktree-rdw6cm16.js";
14
+ } from "./state-rdw6cm16.js";
15
15
  import {
16
16
  estimate2
17
- } from "./worktree-h6vf3j39.js";
17
+ } from "./state-h6vf3j39.js";
18
18
  import {
19
19
  SessionEvent2
20
- } from "./worktree-ec1grn59.js";
20
+ } from "./state-ec1grn59.js";
21
21
  import {
22
22
  provenance2,
23
23
  compatible2,
24
24
  isCheckpoint2,
25
25
  encode2
26
- } from "./worktree-s30fyz93.js";
26
+ } from "./state-4j4tgtq5.js";
27
27
  import {
28
28
  load5
29
- } from "./worktree-1hgzjtp2.js";
29
+ } from "./state-jx4tfryq.js";
30
30
  import {
31
31
  toLLMMessages2
32
- } from "./worktree-0bfcnrg1.js";
32
+ } from "./state-hd8vw2pw.js";
33
33
  import {
34
34
  baseTranscript2,
35
35
  unsupportedParts2,
36
36
  boundImages2,
37
- Service32,
38
- node35
39
- } from "./worktree-s1xp2azn.js";
37
+ Service24,
38
+ node28
39
+ } from "./state-5h68hgfk.js";
40
40
  import {
41
41
  isRetryable2,
42
42
  policy2
43
- } from "./worktree-kbrhjmmj.js";
43
+ } from "./state-h6b02349.js";
44
44
  import {
45
45
  toSessionError2
46
- } from "./worktree-dqt0xvez.js";
46
+ } from "./state-zqktqd3m.js";
47
47
  import {
48
48
  calculateCost2,
49
49
  record2,
50
50
  add2
51
- } from "./worktree-tdstcens.js";
51
+ } from "./state-tdstcens.js";
52
52
  import {
53
53
  __export
54
- } from "./worktree-9rqn6x4v.js";
54
+ } from "./state-9rqn6x4v.js";
55
55
 
56
56
  // src/session/compaction.ts
57
57
  var exports_compaction2 = {};
58
58
  __export(exports_compaction2, {
59
- Service: () => Service10,
59
+ Service: () => Service7,
60
60
  SessionCompaction: () => exports_compaction2,
61
61
  buildPrompt: () => buildPrompt2,
62
62
  estimateContext: () => estimateContext2,
63
63
  estimatePrompt: () => estimatePrompt2,
64
64
  layer: () => layer6,
65
- node: () => node12,
65
+ node: () => node9,
66
66
  recentUserMessages: () => recentUserMessages2
67
67
  });
68
68
  import {
@@ -78,7 +78,7 @@ import {
78
78
  } from "@opencode/ai";
79
79
  import { makeLocationNode } from "@opencode/util/effect/app-node";
80
80
  import { Context, Effect, Layer, Result, Stream } from "effect";
81
- class Service10 extends Context.Service()("@opencode/SessionCompaction") {
81
+ class Service7 extends Context.Service()("@opencode/SessionCompaction") {
82
82
  }
83
83
  var NOTHING_TO_COMPACT = { error: { type: "compaction.unavailable", message: "Nothing to compact yet" } };
84
84
  var SHRINK_STEPS = [0.7, 0.5, 0.35];
@@ -157,11 +157,11 @@ var buildPrompt2 = (update, legacy = false) => {
157
157
  };
158
158
  var NUDGE = "The previous response did not fill in the required summary template. Do not call tools. Return the summary as text using the exact section headings from the template.";
159
159
  var LEGACY_HEADING = "## Additional Context";
160
- var layer6 = Layer.effect(Service10, Effect.gen(function* () {
160
+ var layer6 = Layer.effect(Service7, Effect.gen(function* () {
161
161
  const bus = yield* Service83;
162
162
  const llm = yield* LLMClient.Service;
163
163
  const db = (yield* Service84).db;
164
- const requests = yield* Service32;
164
+ const requests = yield* Service24;
165
165
  const state = create3({
166
166
  name: "session-compaction",
167
167
  initial: () => ({ auto: true, keep: 15000 }),
@@ -452,16 +452,16 @@ ${text}`;
452
452
  }, { metadata: outcome.metadata });
453
453
  return { status: "completed" };
454
454
  });
455
- return Service10.of({
455
+ return Service7.of({
456
456
  transform: state.transform,
457
457
  reload: state.reload,
458
458
  compact: (trigger) => compact(trigger).pipe(Effect.onInterrupt(() => trigger.reason === "manual" ? Effect.void : publish(trigger, { error: { type: "compaction.interrupted", message: "Compaction was interrupted" } })), Effect.ensuring(Effect.sync(() => spent.delete(trigger.context.session.id))))
459
459
  });
460
460
  }));
461
- var node12 = makeLocationNode({
462
- service: Service10,
461
+ var node9 = makeLocationNode({
462
+ service: Service7,
463
463
  layer: layer6,
464
- deps: [node87, node88, llmClient2, node35]
464
+ deps: [node87, node88, llmClient2, node28]
465
465
  });
466
466
  var previousCompaction = (messages) => {
467
467
  const [first] = messages;
@@ -666,4 +666,4 @@ var estimateMedia = (mime) => {
666
666
  return 0;
667
667
  };
668
668
 
669
- export { Service10, buildPrompt2, layer6, node12, recentUserMessages2, estimateContext2, estimatePrompt2, exports_compaction2 };
669
+ export { Service7, buildPrompt2, layer6, node9, recentUserMessages2, estimateContext2, estimatePrompt2, exports_compaction2 };
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  SessionEvent2
3
- } from "./worktree-ec1grn59.js";
3
+ } from "./state-ec1grn59.js";
4
4
  import {
5
5
  tokens2
6
- } from "./worktree-tdstcens.js";
6
+ } from "./state-tdstcens.js";
7
7
 
8
8
  // src/session/runner/publish-llm-event.ts
9
9
  import { Effect, Fiber, Iterable } from "effect";
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  which2
3
- } from "./worktree-qaymkmh1.js";
3
+ } from "./state-qaymkmh1.js";
4
4
 
5
5
  // src/util/git-executable.ts
6
6
  import path from "path";