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

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 (813) 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/{state-axbkptea.js → workspace-07s4dn0t.js} +2 -2
  8. package/dist/chunks/{state-s3366ge2.js → workspace-0aj2g9bc.js} +18 -18
  9. package/dist/chunks/{state-pey5f48j.js → workspace-0f2p78zq.js} +1 -1
  10. package/dist/chunks/{state-kwh57d2a.js → workspace-0grssgzr.js} +9 -9
  11. package/dist/chunks/{state-0paq2nw3.js → workspace-0paq2nw3.js} +1 -1
  12. package/dist/chunks/{state-dfe8djrf.js → workspace-0v53mg2y.js} +4 -4
  13. package/dist/chunks/{state-fvfccrab.js → workspace-0v9511cz.js} +4 -4
  14. package/dist/chunks/{state-yn0cfv5b.js → workspace-17sdw283.js} +1 -1
  15. package/dist/chunks/{state-7yjkh209.js → workspace-17v2tb9j.js} +5 -5
  16. package/dist/chunks/{state-r8xr0va3.js → workspace-1acjjqhc.js} +4 -4
  17. package/dist/chunks/{state-2mkrz92g.js → workspace-1b2dpk4d.js} +25 -25
  18. package/dist/chunks/{state-r5x6zcsm.js → workspace-1bbkgx8g.js} +3 -3
  19. package/dist/chunks/{state-1dazxqgg.js → workspace-1dazxqgg.js} +2 -2
  20. package/dist/chunks/{state-21r38tys.js → workspace-21r38tys.js} +1 -1
  21. package/dist/chunks/{state-jjs74g98.js → workspace-24dd53tp.js} +8 -8
  22. package/dist/chunks/{state-2a5m3afh.js → workspace-2a5m3afh.js} +1 -1
  23. package/dist/chunks/{state-nt1mtbhg.js → workspace-2ezrptcc.js} +16 -16
  24. package/dist/chunks/{state-63kpjth9.js → workspace-2q8c0gm7.js} +9 -9
  25. package/dist/chunks/{state-ev7a3h22.js → workspace-2skkdyk1.js} +41 -41
  26. package/dist/chunks/{state-c2wmnxd0.js → workspace-2t479tbe.js} +16 -16
  27. package/dist/chunks/{state-42hej837.js → workspace-32sacsj5.js} +27 -27
  28. package/dist/chunks/{state-56gdpj1q.js → workspace-33w4ejhs.js} +6 -6
  29. package/dist/chunks/{state-evbgk2k8.js → workspace-37s12vcn.js} +5 -5
  30. package/dist/chunks/{state-h180zsc3.js → workspace-39n49jwr.js} +5 -5
  31. package/dist/chunks/{state-a2ax3qpg.js → workspace-3dsvdpyk.js} +3 -3
  32. package/dist/chunks/{state-7g38j68k.js → workspace-3et4sczz.js} +28 -28
  33. package/dist/chunks/{state-3fc6dm20.js → workspace-3fc6dm20.js} +1 -1
  34. package/dist/chunks/{state-3hepkmqq.js → workspace-3hepkmqq.js} +1 -1
  35. package/dist/chunks/{state-mkh9q7yy.js → workspace-3ncp34ar.js} +23 -23
  36. package/dist/chunks/{state-ajmg8w9c.js → workspace-3nxb9rvh.js} +9 -9
  37. package/dist/chunks/{state-3smtnn6g.js → workspace-3smtnn6g.js} +1 -1
  38. package/dist/chunks/{state-9e7tejnn.js → workspace-3ta7235s.js} +44 -44
  39. package/dist/chunks/{state-3tvqynh2.js → workspace-3tvqynh2.js} +1 -1
  40. package/dist/chunks/{state-8t4yhv83.js → workspace-3vypftwz.js} +67 -67
  41. package/dist/chunks/{state-3zsf4n22.js → workspace-3zsf4n22.js} +1 -1
  42. package/dist/chunks/{state-aq25p0km.js → workspace-4085f8rb.js} +33 -33
  43. package/dist/chunks/{state-zy4wzh65.js → workspace-414cp7b0.js} +17 -17
  44. package/dist/chunks/{state-07ysamf7.js → workspace-47w2eqjq.js} +43 -43
  45. package/dist/chunks/{state-wjjgdhkj.js → workspace-4ehfw94s.js} +11 -11
  46. package/dist/chunks/{state-hdne2gxf.js → workspace-4f0b6jfs.js} +6 -6
  47. package/dist/chunks/{state-wcj256t6.js → workspace-4k5pqwqv.js} +43 -43
  48. package/dist/chunks/{state-0mh48h74.js → workspace-4myaz8ns.js} +15 -15
  49. package/dist/chunks/{state-jcwatdg2.js → workspace-4rd4da1r.js} +26 -26
  50. package/dist/chunks/workspace-4s0jyqng.js +507 -0
  51. package/dist/chunks/{state-4p1epq1b.js → workspace-4sb7vttz.js} +5 -5
  52. package/dist/chunks/workspace-4v7qdvcn.js +18 -0
  53. package/dist/chunks/{state-vb3nvgyj.js → workspace-4yn70x16.js} +33 -33
  54. package/dist/chunks/{state-qj8eh1ht.js → workspace-50mzsvk4.js} +4 -4
  55. package/dist/chunks/{state-p8x2zf1r.js → workspace-514963fk.js} +31 -31
  56. package/dist/chunks/{state-cw4h18ma.js → workspace-5903przf.js} +27 -27
  57. package/dist/chunks/{state-5daktx2q.js → workspace-5daktx2q.js} +1 -1
  58. package/dist/chunks/{state-v3vry9cg.js → workspace-5ddqzaw2.js} +12 -12
  59. package/dist/chunks/{state-6b0e6jr0.js → workspace-5kj8b39y.js} +52 -52
  60. package/dist/chunks/{state-5mcapwzv.js → workspace-5nkr2rt4.js} +33 -33
  61. package/dist/chunks/{state-ndqtf2h8.js → workspace-5phqnecy.js} +7 -7
  62. package/dist/chunks/{state-s87y6m3g.js → workspace-5qz8v4qk.js} +13 -13
  63. package/dist/chunks/{state-5t3nmthw.js → workspace-5t3nmthw.js} +2 -2
  64. package/dist/chunks/{state-br0tr5aq.js → workspace-5yzzbxa7.js} +8 -8
  65. package/dist/chunks/{state-5gpdyetc.js → workspace-64gm52cj.js} +20 -20
  66. package/dist/chunks/{state-669tq793.js → workspace-669tq793.js} +1 -1
  67. package/dist/chunks/{state-0xx33ygk.js → workspace-6d9vm36g.js} +85 -85
  68. package/dist/chunks/{state-2402vzrj.js → workspace-6h73sxmp.js} +5 -5
  69. package/dist/chunks/{state-6msgmcgs.js → workspace-6msgmcgs.js} +1 -1
  70. package/dist/chunks/{state-e22zwrdw.js → workspace-6s6k40ev.js} +5 -5
  71. package/dist/chunks/{state-s5vp1x85.js → workspace-6zsyems9.js} +6 -6
  72. package/dist/chunks/{state-qhv8q597.js → workspace-71haf3zx.js} +15 -15
  73. package/dist/chunks/{state-z380d6bz.js → workspace-71r8gsdc.js} +33 -33
  74. package/dist/chunks/{state-g534k4t5.js → workspace-75r560w4.js} +15 -15
  75. package/dist/chunks/{state-7bmhse3q.js → workspace-7bmhse3q.js} +1 -1
  76. package/dist/chunks/{state-m8qwvxaw.js → workspace-7mmmc1dn.js} +22 -22
  77. package/dist/chunks/{state-kfxz280d.js → workspace-7qnb4kh2.js} +15 -15
  78. package/dist/chunks/{state-ryr25ayn.js → workspace-7sbkp4xb.js} +4 -4
  79. package/dist/chunks/{state-xrnnsjt5.js → workspace-82r76d2b.js} +4 -4
  80. package/dist/chunks/{state-za8zfcmp.js → workspace-86k3a79a.js} +181 -181
  81. package/dist/chunks/{state-xzc7yfbq.js → workspace-87c9dbfz.js} +21 -21
  82. package/dist/chunks/{state-jc9t9v97.js → workspace-8875jzjj.js} +17 -17
  83. package/dist/chunks/{state-kyyn4ww3.js → workspace-88f96gnv.js} +13 -13
  84. package/dist/chunks/{state-ysemb9nv.js → workspace-8brtktdt.js} +11 -11
  85. package/dist/chunks/{state-8d7r5vzw.js → workspace-8d7r5vzw.js} +1 -1
  86. package/dist/chunks/{state-405avf1k.js → workspace-8ec64kag.js} +11 -11
  87. package/dist/chunks/{state-w2xscrkm.js → workspace-8ez8fgkm.js} +79 -79
  88. package/dist/chunks/{state-7w99qc9d.js → workspace-8jmaqybk.js} +3 -3
  89. package/dist/chunks/{state-rkprpv83.js → workspace-8sze2n9a.js} +6 -6
  90. package/dist/chunks/{state-c5885s0q.js → workspace-8wry8wmy.js} +11 -11
  91. package/dist/chunks/{state-4dgbcxzg.js → workspace-8z00fdkb.js} +4 -4
  92. package/dist/chunks/{state-anj5zhyn.js → workspace-9448wgn4.js} +25 -25
  93. package/dist/chunks/{state-94ek1h2f.js → workspace-94ek1h2f.js} +2 -2
  94. package/dist/chunks/{state-697fm79x.js → workspace-96ctqc5x.js} +4 -4
  95. package/dist/chunks/{state-k0sbk250.js → workspace-9h36tbcg.js} +2 -2
  96. package/dist/chunks/{state-akx14ffq.js → workspace-9hyh706k.js} +5 -5
  97. package/dist/chunks/{state-f5q2cchh.js → workspace-9zj539jb.js} +10 -10
  98. package/dist/chunks/{state-srs9dwz9.js → workspace-9zvsvm9a.js} +11 -11
  99. package/dist/chunks/{state-aaet6srn.js → workspace-aaet6srn.js} +2 -2
  100. package/dist/chunks/{state-n35nve9s.js → workspace-b0d9b1gc.js} +11 -11
  101. package/dist/chunks/{state-764xmq7n.js → workspace-b5bxpz8p.js} +7 -7
  102. package/dist/chunks/{state-b6gygkdw.js → workspace-b6gygkdw.js} +2 -2
  103. package/dist/chunks/{state-d06nhcag.js → workspace-b8kga87m.js} +5 -5
  104. package/dist/chunks/{state-ywyx2haj.js → workspace-bf4gbvg4.js} +9 -9
  105. package/dist/chunks/{state-5mnv6qns.js → workspace-btk09rt4.js} +20 -20
  106. package/dist/chunks/{state-3ban7q1k.js → workspace-bx34mrvh.js} +31 -31
  107. package/dist/chunks/{state-5zvmc3ez.js → workspace-c09pats7.js} +20 -20
  108. package/dist/chunks/{state-pvg53n3j.js → workspace-c93n3nwq.js} +44 -44
  109. package/dist/chunks/{state-eb7aytjb.js → workspace-cc3pbsab.js} +28 -28
  110. package/dist/chunks/{state-ckecvw8r.js → workspace-ckecvw8r.js} +2 -2
  111. package/dist/chunks/{state-347x2fmn.js → workspace-d2hqzb0k.js} +10 -10
  112. package/dist/chunks/{state-1zde08dm.js → workspace-d9q5jt11.js} +6 -6
  113. package/dist/chunks/{state-fjc6nchj.js → workspace-dc4f6cmj.js} +28 -28
  114. package/dist/chunks/{state-j30mx6hz.js → workspace-dmgn39c0.js} +32 -32
  115. package/dist/chunks/workspace-dn2dwtb1.js +252 -0
  116. package/dist/chunks/{state-y71avatq.js → workspace-dpkg50ah.js} +4 -4
  117. package/dist/chunks/{state-562azfy0.js → workspace-e1vgq4ya.js} +15 -15
  118. package/dist/chunks/{state-nvfvfdqj.js → workspace-eahjaez5.js} +9 -9
  119. package/dist/chunks/{state-ecfe7b91.js → workspace-ecfe7b91.js} +2 -2
  120. package/dist/chunks/{state-ef5x83kb.js → workspace-ef5x83kb.js} +1 -1
  121. package/dist/chunks/{state-yx0rmv9r.js → workspace-emzsebxx.js} +6 -6
  122. package/dist/chunks/{state-etq0c3wd.js → workspace-etq0c3wd.js} +1 -1
  123. package/dist/chunks/{state-rtathh62.js → workspace-etzz3kcr.js} +8 -8
  124. package/dist/chunks/{state-w12jd273.js → workspace-f57b98hz.js} +32 -32
  125. package/dist/chunks/{state-6ge9xvdz.js → workspace-fd43cwvv.js} +12 -12
  126. package/dist/chunks/{state-ga2xd9w7.js → workspace-fwndzhfb.js} +20 -20
  127. package/dist/chunks/{state-h6b02349.js → workspace-g5agzp2h.js} +5 -5
  128. package/dist/chunks/{state-gtbg8hzf.js → workspace-g5jfh1r0.js} +20 -20
  129. package/dist/chunks/{state-kjdd0312.js → workspace-g631b151.js} +10 -10
  130. package/dist/chunks/{state-14yk5par.js → workspace-g723tk78.js} +11 -11
  131. package/dist/chunks/{state-7ve2bcyf.js → workspace-gce79w0q.js} +22 -22
  132. package/dist/chunks/{state-gd4qta3r.js → workspace-gd4qta3r.js} +1 -1
  133. package/dist/chunks/{state-djszqvmq.js → workspace-gjwgx2c5.js} +9 -9
  134. package/dist/chunks/{state-qs75wfsq.js → workspace-gk8g57t4.js} +8 -8
  135. package/dist/chunks/{state-73kdj4zj.js → workspace-gs3s1a1g.js} +8 -8
  136. package/dist/chunks/{state-6ysrkrkr.js → workspace-gs4tkc79.js} +8 -8
  137. package/dist/chunks/{state-gv6a8nnw.js → workspace-gv6a8nnw.js} +2 -2
  138. package/dist/chunks/{state-p3qswy66.js → workspace-gvc1y3x8.js} +14 -14
  139. package/dist/chunks/{state-4j4tgtq5.js → workspace-gw7cjrad.js} +4 -4
  140. package/dist/chunks/{state-cbszzs6d.js → workspace-gy40wgwj.js} +10 -10
  141. package/dist/chunks/{state-5h68hgfk.js → workspace-h275qfxe.js} +32 -32
  142. package/dist/chunks/{state-1gya5ztd.js → workspace-h2f17wn1.js} +3 -3
  143. package/dist/chunks/{state-mgqv9cjv.js → workspace-h6nd84cd.js} +8 -8
  144. package/dist/chunks/{state-h6vf3j39.js → workspace-h6vf3j39.js} +1 -1
  145. package/dist/chunks/{state-3wrtxrr4.js → workspace-h7e5g0tn.js} +6 -6
  146. package/dist/chunks/{state-xqbar29h.js → workspace-ha0kmnyt.js} +4 -4
  147. package/dist/chunks/{state-pm9q95bv.js → workspace-hgefj7cx.js} +11 -11
  148. package/dist/chunks/{state-kbv8ef41.js → workspace-hgxj8cmt.js} +24 -24
  149. package/dist/chunks/{state-mjgn9fkd.js → workspace-hnb8xd58.js} +24 -24
  150. package/dist/chunks/{state-sqb9y0cm.js → workspace-hq63kp9t.js} +20 -20
  151. package/dist/chunks/{state-bysw588c.js → workspace-ht10abdc.js} +29 -29
  152. package/dist/chunks/{state-h6p9wsd3.js → workspace-hxmj7brn.js} +43 -43
  153. package/dist/chunks/{state-j56e64zr.js → workspace-j56e64zr.js} +1 -1
  154. package/dist/chunks/{state-jewzahs7.js → workspace-j5rxtxht.js} +4 -4
  155. package/dist/chunks/{state-kjg680bv.js → workspace-j61y0zmr.js} +8 -8
  156. package/dist/chunks/{state-gqc82067.js → workspace-jc292bcq.js} +5 -5
  157. package/dist/chunks/{state-32ymn5e1.js → workspace-jebmra90.js} +6 -6
  158. package/dist/chunks/{state-abyvc0ab.js → workspace-jg3pwedt.js} +18 -18
  159. package/dist/chunks/{state-k4eksvdb.js → workspace-jqrps7eh.js} +11 -11
  160. package/dist/chunks/{state-x7v2bm1t.js → workspace-k1th7fpy.js} +12 -12
  161. package/dist/chunks/{state-k3c624dm.js → workspace-k3c624dm.js} +3 -3
  162. package/dist/chunks/{state-w9pb4be2.js → workspace-k9t5awnq.js} +17 -17
  163. package/dist/chunks/{state-mcq35w5h.js → workspace-kaaz30r4.js} +26 -26
  164. package/dist/chunks/{state-phx87qke.js → workspace-kf1z0tr0.js} +11 -11
  165. package/dist/chunks/{state-4ve5k4jc.js → workspace-ktwsgnm5.js} +11 -11
  166. package/dist/chunks/{state-avz33p24.js → workspace-kwqnb3b3.js} +10 -10
  167. package/dist/chunks/{state-k863czh1.js → workspace-kzemhjjj.js} +12 -12
  168. package/dist/chunks/{state-vwryqt0b.js → workspace-m06zp20y.js} +18 -18
  169. package/dist/chunks/{state-vka635y3.js → workspace-m17gx2bx.js} +17 -17
  170. package/dist/chunks/{state-fj9t785f.js → workspace-m2xqb0a2.js} +5 -5
  171. package/dist/chunks/{state-m3fdjcah.js → workspace-m3fdjcah.js} +1 -1
  172. package/dist/chunks/{state-cmxzdf4d.js → workspace-m5qajknk.js} +15 -15
  173. package/dist/chunks/{state-6wq59zjx.js → workspace-m9cctz3y.js} +30 -30
  174. package/dist/chunks/{state-m9w0rfyh.js → workspace-m9w0rfyh.js} +1 -1
  175. package/dist/chunks/{state-bd1518y4.js → workspace-mer1x770.js} +9 -9
  176. package/dist/chunks/{state-ekw5v65w.js → workspace-mg1gmkd7.js} +27 -27
  177. package/dist/chunks/{state-x2kfg3xp.js → workspace-mgeyp9t4.js} +10 -10
  178. package/dist/chunks/{state-686tv83h.js → workspace-mnyccpt8.js} +42 -44
  179. package/dist/chunks/{state-xgmh5kwe.js → workspace-ms6hn236.js} +47 -47
  180. package/dist/chunks/{state-616betvk.js → workspace-mtmzgpw7.js} +43 -43
  181. package/dist/chunks/{state-mvksx64m.js → workspace-mvksx64m.js} +4 -4
  182. package/dist/chunks/{state-b9cdatme.js → workspace-myrxwzwn.js} +24 -24
  183. package/dist/chunks/{state-q6vq307s.js → workspace-n1edfwxj.js} +4 -4
  184. package/dist/chunks/{state-r5wgqceq.js → workspace-n8dykrk6.js} +6 -6
  185. package/dist/chunks/{state-3x4m5qd9.js → workspace-nba0xr5w.js} +18 -18
  186. package/dist/chunks/{state-7bvkr4r5.js → workspace-nbzsj80d.js} +8 -8
  187. package/dist/chunks/{state-f6ggn7ee.js → workspace-nc6w8shy.js} +16 -16
  188. package/dist/chunks/{state-v997gcsz.js → workspace-nfn0d9bm.js} +20 -20
  189. package/dist/chunks/{state-3pkc36ya.js → workspace-njtd5qwa.js} +7 -7
  190. package/dist/chunks/{state-3631mzea.js → workspace-np5vbz7c.js} +11 -11
  191. package/dist/chunks/{state-pvmg7gn1.js → workspace-nvynjj51.js} +11 -11
  192. package/dist/chunks/{state-6hyw96xs.js → workspace-nwxrs5sk.js} +9 -9
  193. package/dist/chunks/{state-qpyfagd9.js → workspace-nxs13mpc.js} +11 -11
  194. package/dist/chunks/{state-xmw0p0yx.js → workspace-nzcytcen.js} +22 -22
  195. package/dist/chunks/{state-k24hn4de.js → workspace-p23bcykr.js} +8 -8
  196. package/dist/chunks/workspace-p4wystw3.js +26 -0
  197. package/dist/chunks/{state-pc1a02me.js → workspace-p5vysgrm.js} +30 -30
  198. package/dist/chunks/{state-05vsj3p7.js → workspace-pbnw4rax.js} +4 -4
  199. package/dist/chunks/{state-sresy5h2.js → workspace-phywj5ap.js} +3 -3
  200. package/dist/chunks/{state-pjvnvgmy.js → workspace-pjvnvgmy.js} +1 -1
  201. package/dist/chunks/{state-pknna89w.js → workspace-pknna89w.js} +1 -1
  202. package/dist/chunks/{state-wk5z6jzv.js → workspace-prq7hedt.js} +9 -9
  203. package/dist/chunks/{state-jfqgnx50.js → workspace-pvakgcfb.js} +6 -6
  204. package/dist/chunks/{state-g8damagz.js → workspace-q456jvfz.js} +14 -14
  205. package/dist/chunks/{state-pf2hb43r.js → workspace-q5t0te5a.js} +4 -4
  206. package/dist/chunks/{state-b3sqm8qs.js → workspace-qczdb8gm.js} +13 -13
  207. package/dist/chunks/{state-7dqw4kz8.js → workspace-qgn6gcr1.js} +5 -5
  208. package/dist/chunks/{state-xkahfabv.js → workspace-qhdvyz6r.js} +24 -24
  209. package/dist/chunks/{state-0r7yqxbf.js → workspace-qjnxxf51.js} +5 -5
  210. package/dist/chunks/{state-qsdy395h.js → workspace-qsdy395h.js} +1 -1
  211. package/dist/chunks/{state-a7n07cbk.js → workspace-qsz2rxby.js} +16 -16
  212. package/dist/chunks/{state-g27ndhem.js → workspace-qt56tf5w.js} +28 -28
  213. package/dist/chunks/{state-trg22pty.js → workspace-qvqshg0f.js} +8 -8
  214. package/dist/chunks/{state-fqs56ekt.js → workspace-r35k9y4r.js} +25 -25
  215. package/dist/chunks/{state-m4mpbz9t.js → workspace-r4xhx5yy.js} +12 -12
  216. package/dist/chunks/{state-jpybm3yb.js → workspace-r5azket3.js} +13 -13
  217. package/dist/chunks/{state-03axkpd7.js → workspace-rbztqx5q.js} +23 -23
  218. package/dist/chunks/{state-rdw6cm16.js → workspace-rdw6cm16.js} +1 -1
  219. package/dist/chunks/{state-fz7zprw4.js → workspace-rdyyfad2.js} +9 -9
  220. package/dist/chunks/{state-at4p1dba.js → workspace-rhfw1snm.js} +20 -20
  221. package/dist/chunks/{state-rhjbct0v.js → workspace-rhjbct0v.js} +1 -1
  222. package/dist/chunks/{state-qrkzvyze.js → workspace-rmeh0b5f.js} +20 -20
  223. package/dist/chunks/{state-5n657pg2.js → workspace-rx665nrj.js} +3 -3
  224. package/dist/chunks/{state-338yrj73.js → workspace-s31epa91.js} +40 -40
  225. package/dist/chunks/{state-h5tv3rwb.js → workspace-s53jkx9g.js} +13 -13
  226. package/dist/chunks/{state-d2aac7k2.js → workspace-s8zy8myc.js} +5 -5
  227. package/dist/chunks/{state-843rktzr.js → workspace-sfvptea7.js} +33 -33
  228. package/dist/chunks/{state-8kb9ad1g.js → workspace-t1m4pd80.js} +23 -23
  229. package/dist/chunks/{state-7k0859n8.js → workspace-t3fxmr6d.js} +16 -16
  230. package/dist/chunks/{state-tazgh4e4.js → workspace-tazgh4e4.js} +1 -1
  231. package/dist/chunks/{state-tcezcvh9.js → workspace-tcezcvh9.js} +1 -1
  232. package/dist/chunks/{state-tdstcens.js → workspace-tdstcens.js} +1 -1
  233. package/dist/chunks/{state-dpdh24t4.js → workspace-tj19hryr.js} +30 -30
  234. package/dist/chunks/{state-3fpxrx1n.js → workspace-tqpa570b.js} +10 -10
  235. package/dist/chunks/{state-zee1rnkq.js → workspace-ttqh24zm.js} +4 -4
  236. package/dist/chunks/{state-ajzatwsb.js → workspace-ttv288q9.js} +14 -14
  237. package/dist/chunks/{state-tvtrv512.js → workspace-tvtrv512.js} +1 -1
  238. package/dist/chunks/{state-r3at2bs8.js → workspace-twha2rmd.js} +31 -31
  239. package/dist/chunks/{state-mmcr6kdq.js → workspace-v1wpj03p.js} +20 -20
  240. package/dist/chunks/{state-n898jteq.js → workspace-v3ap8ec6.js} +11 -11
  241. package/dist/chunks/{state-zqktqd3m.js → workspace-v4gq33pr.js} +8 -6
  242. package/dist/chunks/{state-7g5bn0rc.js → workspace-vaknmyan.js} +9 -9
  243. package/dist/chunks/{state-h3fwwd3m.js → workspace-vbksr8hy.js} +21 -21
  244. package/dist/chunks/{state-gm9d908t.js → workspace-vcbvf67x.js} +15 -15
  245. package/dist/chunks/{state-jx4tfryq.js → workspace-vdxhr03z.js} +8 -8
  246. package/dist/chunks/{state-veqvce7d.js → workspace-veqvce7d.js} +1 -1
  247. package/dist/chunks/{state-espax8zg.js → workspace-vfjhn2wd.js} +4 -4
  248. package/dist/chunks/{state-e0bbdjrn.js → workspace-vh4zb22k.js} +3 -3
  249. package/dist/chunks/{state-mv23qax8.js → workspace-vj68ba03.js} +26 -26
  250. package/dist/chunks/{state-r3yqybmq.js → workspace-vncddnhg.js} +7 -7
  251. package/dist/chunks/workspace-vp8zed57.js +43 -0
  252. package/dist/chunks/{state-5md0szhq.js → workspace-vprd2cpq.js} +48 -48
  253. package/dist/chunks/{state-25d919r2.js → workspace-vrk25kfx.js} +29 -29
  254. package/dist/chunks/{state-0gapa1rm.js → workspace-vrpz8t5t.js} +5 -5
  255. package/dist/chunks/{state-r7m9tyc3.js → workspace-vw6eyh63.js} +6 -6
  256. package/dist/chunks/{state-he0atntt.js → workspace-vz659dg8.js} +6 -6
  257. package/dist/chunks/{state-vzcthcp8.js → workspace-vzcthcp8.js} +1 -1
  258. package/dist/chunks/{state-vzs5sf6e.js → workspace-vzs5sf6e.js} +1 -1
  259. package/dist/chunks/{state-w3wsvvr9.js → workspace-w3wsvvr9.js} +1 -1
  260. package/dist/chunks/{state-00832hy7.js → workspace-w3x9v1nk.js} +8 -8
  261. package/dist/chunks/{state-wd3x2cqz.js → workspace-wd3x2cqz.js} +2 -2
  262. package/dist/chunks/{state-wd87259q.js → workspace-wd87259q.js} +1 -1
  263. package/dist/chunks/{state-sx3dk1aa.js → workspace-wgca8pcg.js} +3 -3
  264. package/dist/chunks/{state-hd8vw2pw.js → workspace-wxyynt4w.js} +1 -1
  265. package/dist/chunks/{state-nng2ktcm.js → workspace-x0600czv.js} +2 -2
  266. package/dist/chunks/{state-x1ezjp6w.js → workspace-x1ezjp6w.js} +1 -1
  267. package/dist/chunks/{state-bwhv742z.js → workspace-xaqfg0qp.js} +10 -10
  268. package/dist/chunks/{state-drwq78ky.js → workspace-xfkkasph.js} +4 -4
  269. package/dist/chunks/{state-w2ffkqsz.js → workspace-xfp6s5ka.js} +18 -18
  270. package/dist/chunks/{state-xkntkrq7.js → workspace-xkntkrq7.js} +2 -2
  271. package/dist/chunks/{state-wkfs9xf1.js → workspace-xmh8t9jm.js} +10 -10
  272. package/dist/chunks/{state-y1fvbwt7.js → workspace-y1fvbwt7.js} +1 -1
  273. package/dist/chunks/{state-cnebggg2.js → workspace-y2sw0xjf.js} +32 -32
  274. package/dist/chunks/{state-z1wdxvxw.js → workspace-ybfe78wp.js} +62 -62
  275. package/dist/chunks/{state-v7vymymh.js → workspace-yddyfygy.js} +22 -22
  276. package/dist/chunks/{state-kvvpqxe2.js → workspace-yfvrmt6j.js} +34 -35
  277. package/dist/chunks/{state-kbqjp078.js → workspace-yq14pbr7.js} +5 -5
  278. package/dist/chunks/{state-yrhqyw5v.js → workspace-yrhqyw5v.js} +1 -1
  279. package/dist/chunks/{state-yrznvahk.js → workspace-yrznvahk.js} +2 -2
  280. package/dist/chunks/{state-kbetmkvn.js → workspace-yttbpxek.js} +22 -22
  281. package/dist/chunks/{state-z07pqspn.js → workspace-z07pqspn.js} +3 -3
  282. package/dist/chunks/{state-z0bkrqjs.js → workspace-z0bkrqjs.js} +1 -1
  283. package/dist/chunks/{state-7c1t3sth.js → workspace-z1v6gmzf.js} +5 -5
  284. package/dist/chunks/{state-vb2kgc45.js → workspace-z243wpgr.js} +5 -5
  285. package/dist/chunks/{state-z63w68vq.js → workspace-z63w68vq.js} +2 -2
  286. package/dist/chunks/{state-zeh9ct20.js → workspace-zeh9ct20.js} +2 -2
  287. package/dist/chunks/{state-3qb6nqt1.js → workspace-zmkvdbb2.js} +13 -31
  288. package/dist/chunks/{state-zr2ceqn5.js → workspace-zr2ceqn5.js} +1 -1
  289. package/dist/chunks/{state-3dhcjsqz.js → workspace-zsw7hnhc.js} +26 -26
  290. package/dist/chunks/{state-zxq2ej10.js → workspace-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 +81 -81
  296. package/dist/config/discovery.js +82 -82
  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 +160 -160
  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 +125 -125
  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 +124 -124
  317. package/dist/config/plugin/tool-output.js +125 -125
  318. package/dist/config/plugin/websearch.js +124 -124
  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 +128 -128
  323. package/dist/credential/sql.js +2 -2
  324. package/dist/credential.js +83 -83
  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 +370 -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/filesystem/fff.bun.js +2 -2
  419. package/dist/filesystem/fff.js +1 -1
  420. package/dist/filesystem/fff.node.js +2 -2
  421. package/dist/filesystem/fff.workerd.js +2 -2
  422. package/dist/filesystem/ignore.js +1 -1
  423. package/dist/filesystem/location-watcher-policy.js +6 -6
  424. package/dist/filesystem/location-watcher.js +227 -227
  425. package/dist/filesystem/protected.js +1 -1
  426. package/dist/filesystem/search.js +103 -103
  427. package/dist/filesystem/watcher-binding.js +1 -1
  428. package/dist/filesystem/watcher.js +15 -15
  429. package/dist/filesystem.js +102 -102
  430. package/dist/form.js +70 -70
  431. package/dist/formatter/builtins.js +4 -4
  432. package/dist/formatter.js +89 -89
  433. package/dist/generate.js +101 -101
  434. package/dist/git.js +10 -10
  435. package/dist/github-copilot/chat/convert-to-openai-compatible-chat-messages.js +1 -1
  436. package/dist/github-copilot/chat/get-response-metadata.js +1 -1
  437. package/dist/github-copilot/chat/map-openai-compatible-finish-reason.js +1 -1
  438. package/dist/github-copilot/chat/openai-compatible-chat-language-model.js +7 -7
  439. package/dist/github-copilot/chat/openai-compatible-chat-options.js +1 -1
  440. package/dist/github-copilot/chat/openai-compatible-prepare-tools.js +1 -1
  441. package/dist/github-copilot/copilot-provider.js +17 -17
  442. package/dist/github-copilot/models.js +91 -91
  443. package/dist/github-copilot/openai-compatible-error.js +1 -1
  444. package/dist/github-copilot/responses/convert-to-openai-responses-input.js +1 -1
  445. package/dist/github-copilot/responses/map-openai-responses-finish-reason.js +1 -1
  446. package/dist/github-copilot/responses/openai-error.js +1 -1
  447. package/dist/github-copilot/responses/openai-responses-language-model.js +10 -10
  448. package/dist/github-copilot/responses/openai-responses-prepare-tools.js +6 -6
  449. package/dist/github-copilot/responses/tool/code-interpreter.js +1 -1
  450. package/dist/github-copilot/responses/tool/file-search.js +1 -1
  451. package/dist/github-copilot/responses/tool/image-generation.js +1 -1
  452. package/dist/github-copilot/responses/tool/web-search-preview.js +1 -1
  453. package/dist/github-copilot/responses/tool/web-search.js +1 -1
  454. package/dist/id/id.js +1 -1
  455. package/dist/image/photon.js +2 -2
  456. package/dist/image.js +6 -6
  457. package/dist/instance/service.js +5 -5
  458. package/dist/instance.js +361 -362
  459. package/dist/instruction-discovery.js +79 -79
  460. package/dist/instructions/builtins.js +83 -83
  461. package/dist/instructions/index.js +1 -1
  462. package/dist/integration/connection.js +3 -3
  463. package/dist/integration.js +88 -88
  464. package/dist/job.js +79 -79
  465. package/dist/kv/sql.js +2 -2
  466. package/dist/kv.js +73 -73
  467. package/dist/location-activity.js +129 -129
  468. package/dist/location-lifecycle.js +107 -107
  469. package/dist/location-service-map.js +86 -86
  470. package/dist/location-services.js +358 -359
  471. package/dist/location.js +89 -89
  472. package/dist/managed-policy.js +5 -5
  473. package/dist/mcp/client.js +91 -91
  474. package/dist/mcp/index.js +104 -106
  475. package/dist/mcp/instructions.js +126 -126
  476. package/dist/mcp/oauth.js +78 -78
  477. package/dist/mcp/stdio.js +90 -90
  478. package/dist/mime.js +1 -1
  479. package/dist/modal/models.js +91 -91
  480. package/dist/model-resolver.js +110 -110
  481. package/dist/model.js +102 -102
  482. package/dist/models-dev.js +101 -101
  483. package/dist/oauth/page.js +1 -1
  484. package/dist/permission/saved.js +76 -76
  485. package/dist/permission/sql.js +5 -5
  486. package/dist/permission.js +109 -109
  487. package/dist/persistent-pty/binary.bun.js +1 -1
  488. package/dist/persistent-pty/daemon.js +1 -1
  489. package/dist/persistent-pty/index.js +88 -88
  490. package/dist/persistent-pty/pty-binding.js +1 -1
  491. package/dist/persistent-pty.js +75 -75
  492. package/dist/plugin/agent.js +104 -104
  493. package/dist/plugin/command.js +101 -101
  494. package/dist/plugin/hooks.js +5 -5
  495. package/dist/plugin/host.js +218 -218
  496. package/dist/plugin/identity.js +3 -3
  497. package/dist/plugin/instance.js +5 -5
  498. package/dist/plugin/internal.js +333 -333
  499. package/dist/plugin/mcp-codemode-defaults.js +3 -3
  500. package/dist/plugin/models-dev.js +96 -96
  501. package/dist/plugin/module.js +7 -7
  502. package/dist/plugin/optimize.js +4 -4
  503. package/dist/plugin/plan.js +102 -102
  504. package/dist/plugin/promise.js +1 -1
  505. package/dist/plugin/provider/amazon-bedrock.js +90 -90
  506. package/dist/plugin/provider/azure.js +122 -122
  507. package/dist/plugin/provider/cerebras.js +1 -1
  508. package/dist/plugin/provider/cloudflare-ai-gateway.js +121 -121
  509. package/dist/plugin/provider/cloudflare-workers-ai.js +121 -121
  510. package/dist/plugin/provider/cohere.js +2 -2
  511. package/dist/plugin/provider/configured.js +119 -119
  512. package/dist/plugin/provider/digitalocean.js +93 -93
  513. package/dist/plugin/provider/dynamic.js +2 -2
  514. package/dist/plugin/provider/factory.js +1 -1
  515. package/dist/plugin/provider/gateway.js +2 -2
  516. package/dist/plugin/provider/github-copilot.js +94 -94
  517. package/dist/plugin/provider/gitlab.js +93 -93
  518. package/dist/plugin/provider/google-vertex.js +90 -90
  519. package/dist/plugin/provider/kilo.js +1 -1
  520. package/dist/plugin/provider/llmgateway.js +77 -77
  521. package/dist/plugin/provider/lmstudio.js +122 -122
  522. package/dist/plugin/provider/modal.js +92 -92
  523. package/dist/plugin/provider/nvidia.js +1 -1
  524. package/dist/plugin/provider/ollama.js +122 -122
  525. package/dist/plugin/provider/openai.js +94 -94
  526. package/dist/plugin/provider/opencode.js +95 -95
  527. package/dist/plugin/provider/openrouter.js +91 -91
  528. package/dist/plugin/provider/perplexity.js +2 -2
  529. package/dist/plugin/provider/poe.js +78 -78
  530. package/dist/plugin/provider/prompt-cache-key.js +90 -90
  531. package/dist/plugin/provider/sap-ai-core.js +91 -91
  532. package/dist/plugin/provider/sdk-factory.js +1 -1
  533. package/dist/plugin/provider/snowflake-cortex.js +122 -122
  534. package/dist/plugin/provider/venice.js +2 -2
  535. package/dist/plugin/provider/vercel.js +90 -90
  536. package/dist/plugin/provider/vllm.js +122 -122
  537. package/dist/plugin/provider/xai.js +91 -91
  538. package/dist/plugin/provider/zenmux.js +1 -1
  539. package/dist/plugin/provider.js +161 -161
  540. package/dist/plugin/sdk.js +76 -76
  541. package/dist/plugin/service.js +3 -3
  542. package/dist/plugin/skill.js +141 -141
  543. package/dist/plugin/source-directory.js +1 -1
  544. package/dist/plugin/supervisor.js +352 -352
  545. package/dist/plugin/tool-input-repair.js +4 -4
  546. package/dist/plugin/update.js +6 -6
  547. package/dist/plugin/vcs/git.js +86 -86
  548. package/dist/plugin/vcs/hg.js +86 -86
  549. package/dist/plugin/verbosity.js +93 -93
  550. package/dist/plugin/warming.js +121 -121
  551. package/dist/plugin/websearch/exa.js +7 -7
  552. package/dist/plugin/websearch/firecrawl.js +8 -8
  553. package/dist/plugin/websearch/index.js +9 -9
  554. package/dist/plugin/websearch/mcp.js +4 -4
  555. package/dist/plugin/websearch/parallel.js +8 -8
  556. package/dist/plugin/websearch/tavily.js +6 -6
  557. package/dist/plugin/websearch/tinyfish.js +6 -6
  558. package/dist/plugin.js +229 -229
  559. package/dist/project/schema.js +8 -8
  560. package/dist/project/sql.js +4 -4
  561. package/dist/project.js +90 -90
  562. package/dist/provider.js +101 -101
  563. package/dist/pty/protocol.js +1 -1
  564. package/dist/pty/ticket.js +1 -1
  565. package/dist/pty.js +99 -98
  566. package/dist/reference/instructions.js +89 -89
  567. package/dist/reference.js +91 -91
  568. package/dist/repository-cache.js +81 -81
  569. package/dist/repository.js +3 -3
  570. package/dist/ripgrep/binary.js +2 -2
  571. package/dist/ripgrep.js +97 -97
  572. package/dist/rpc.js +86 -86
  573. package/dist/schema.js +1 -1
  574. package/dist/session/command.js +74 -74
  575. package/dist/session/compaction.js +134 -134
  576. package/dist/session/context.js +152 -152
  577. package/dist/session/diff.js +88 -88
  578. package/dist/session/environment.js +5 -5
  579. package/dist/session/error.js +5 -5
  580. package/dist/session/event.js +1 -1
  581. package/dist/session/execution/restart.js +218 -218
  582. package/dist/session/execution.js +126 -126
  583. package/dist/session/generate.js +151 -151
  584. package/dist/session/history.js +13 -13
  585. package/dist/session/inbox.js +90 -90
  586. package/dist/session/info.js +3 -3
  587. package/dist/session/instruction-entry.js +77 -77
  588. package/dist/session/instruction-state.js +8 -8
  589. package/dist/session/instructions.js +97 -97
  590. package/dist/session/message-updater.js +2 -2
  591. package/dist/session/message.js +1 -1
  592. package/dist/session/model-request.js +119 -119
  593. package/dist/session/model-transport.js +9 -9
  594. package/dist/session/move.js +130 -130
  595. package/dist/session/projector.js +86 -86
  596. package/dist/session/prompt.js +105 -105
  597. package/dist/session/provider-context.js +3 -3
  598. package/dist/session/revert.js +90 -90
  599. package/dist/session/run-coordinator.js +3 -3
  600. package/dist/session/runner/index.js +3 -3
  601. package/dist/session/runner/llm.js +231 -231
  602. package/dist/session/runner/max-steps.js +1 -1
  603. package/dist/session/runner/model.js +98 -110
  604. package/dist/session/runner/publish-llm-event.js +3 -3
  605. package/dist/session/runner/retry.js +4 -4
  606. package/dist/session/runner/step.js +126 -126
  607. package/dist/session/runner/to-llm-message.js +2 -2
  608. package/dist/session/schema.js +5 -5
  609. package/dist/session/session.js +172 -172
  610. package/dist/session/shell.js +138 -138
  611. package/dist/session/skill.js +103 -103
  612. package/dist/session/sql.js +5 -5
  613. package/dist/session/stats.js +73 -73
  614. package/dist/session/store.js +81 -81
  615. package/dist/session/subagent-completion.js +1 -1
  616. package/dist/session/subagent-job.js +210 -210
  617. package/dist/session/system-prompt.js +3 -3
  618. package/dist/session/title.js +156 -156
  619. package/dist/session/to-session-error.js +111 -111
  620. package/dist/session/transfer.js +217 -217
  621. package/dist/session/usage.js +1 -1
  622. package/dist/session.js +216 -216
  623. package/dist/shell/parse.js +6 -6
  624. package/dist/shell/result.js +1 -1
  625. package/dist/shell/scan.js +1 -1
  626. package/dist/shell/select.js +15 -15
  627. package/dist/shell.js +140 -140
  628. package/dist/skill/discovery.js +4 -4
  629. package/dist/skill/instructions.js +105 -105
  630. package/dist/skill.js +110 -110
  631. package/dist/snapshot.js +91 -91
  632. package/dist/state.js +1 -1
  633. package/dist/tool/html-markdown.js +1 -1
  634. package/dist/tool/http-body.js +1 -1
  635. package/dist/tool/mcp.js +127 -127
  636. package/dist/tool/plugin/edit.js +120 -120
  637. package/dist/tool/plugin/file-diff.js +1 -1
  638. package/dist/tool/plugin/glob.js +124 -124
  639. package/dist/tool/plugin/grep.js +124 -124
  640. package/dist/tool/plugin/mcp-resource.js +116 -116
  641. package/dist/tool/plugin/opencode.js +3 -3
  642. package/dist/tool/plugin/patch.js +120 -120
  643. package/dist/tool/plugin/question.js +105 -105
  644. package/dist/tool/plugin/read.js +125 -125
  645. package/dist/tool/plugin/shell.js +217 -217
  646. package/dist/tool/plugin/skill.js +113 -113
  647. package/dist/tool/plugin/subagent.js +219 -219
  648. package/dist/tool/plugin/webfetch.js +110 -110
  649. package/dist/tool/plugin/websearch.js +114 -114
  650. package/dist/tool/plugin/write.js +122 -122
  651. package/dist/tool/read-filesystem.js +100 -100
  652. package/dist/tool/runtime.js +1 -1
  653. package/dist/tool-output.js +8 -8
  654. package/dist/tool.js +14 -14
  655. package/dist/types/git.d.ts +2 -2
  656. package/dist/types/location.d.ts +1 -3
  657. package/dist/types/mcp/index.d.ts +0 -12
  658. package/dist/types/project.d.ts +1 -3
  659. package/dist/types/pty/ticket.d.ts +2 -2
  660. package/dist/types/pty.d.ts +11 -6
  661. package/dist/types/session/diff.d.ts +1 -7
  662. package/dist/types/session/revert.d.ts +1 -7
  663. package/dist/types/session/runner/model.d.ts +0 -12
  664. package/dist/types/session/session.d.ts +1 -7
  665. package/dist/types/snapshot.d.ts +2 -2
  666. package/dist/util/error-summary.js +1 -1
  667. package/dist/util/error.js +1 -1
  668. package/dist/util/git-executable.js +2 -2
  669. package/dist/util/iife.js +1 -1
  670. package/dist/util/lazy.js +1 -1
  671. package/dist/util/slug.js +1 -1
  672. package/dist/util/token.js +1 -1
  673. package/dist/util/which.js +1 -1
  674. package/dist/util/wildcard.js +1 -1
  675. package/dist/v1/config/agent.js +5 -5
  676. package/dist/v1/config/attachment.js +4 -4
  677. package/dist/v1/config/command.js +3 -3
  678. package/dist/v1/config/config.js +16 -16
  679. package/dist/v1/config/error.js +2 -2
  680. package/dist/v1/config/formatter.js +5 -5
  681. package/dist/v1/config/layout.js +1 -1
  682. package/dist/v1/config/lsp.js +3 -3
  683. package/dist/v1/config/mcp.js +4 -4
  684. package/dist/v1/config/migrate.js +92 -92
  685. package/dist/v1/config/permission.js +3 -3
  686. package/dist/v1/config/plugin.js +3 -3
  687. package/dist/v1/config/provider-options.js +1 -1
  688. package/dist/v1/config/provider.js +4 -4
  689. package/dist/v1/config/server.js +2 -2
  690. package/dist/v1/config/skills.js +3 -3
  691. package/dist/v1/permission.js +1 -1
  692. package/dist/variant.js +91 -91
  693. package/dist/vcs/patch.js +1 -1
  694. package/dist/vcs.js +89 -89
  695. package/dist/websearch.js +84 -84
  696. package/dist/wellknown/plugin.js +76 -76
  697. package/dist/wellknown.js +81 -81
  698. package/dist/workspace/driver.js +5 -5
  699. package/dist/workspace/sql.js +1 -1
  700. package/dist/workspace.js +80 -80
  701. package/dist/worktree/directory.js +2 -2
  702. package/dist/worktree/git.js +10 -10
  703. package/dist/worktree/sql.js +5 -5
  704. package/dist/worktree/strategies.js +89 -89
  705. package/dist/worktree.js +98 -98
  706. package/package.json +8 -8
  707. package/dist/chunks/state-0mesazry.js +0 -4
  708. package/dist/chunks/state-6eqtnz3a.js +0 -507
  709. package/dist/chunks/state-9zdhvgqs.js +0 -18
  710. package/dist/chunks/state-gx3thcd1.js +0 -252
  711. package/dist/chunks/state-qxcs1gwy.js +0 -26
  712. package/dist/chunks/state-treznftm.js +0 -43
  713. package/dist/file.js +0 -16
  714. package/dist/pty/schema.js +0 -6
  715. package/dist/types/file.d.ts +0 -9
  716. package/dist/types/pty/schema.d.ts +0 -1
  717. /package/dist/chunks/{state-0qkdqm5v.js → workspace-0qkdqm5v.js} +0 -0
  718. /package/dist/chunks/{state-0zkw76rk.js → workspace-0zkw76rk.js} +0 -0
  719. /package/dist/chunks/{state-17cy0kzp.js → workspace-17cy0kzp.js} +0 -0
  720. /package/dist/chunks/{state-1cnp2v09.js → workspace-1cnp2v09.js} +0 -0
  721. /package/dist/chunks/{state-1kg9ymc8.js → workspace-1kg9ymc8.js} +0 -0
  722. /package/dist/chunks/{state-24dcb14g.js → workspace-24dcb14g.js} +0 -0
  723. /package/dist/chunks/{state-2710q6r3.js → workspace-2710q6r3.js} +0 -0
  724. /package/dist/chunks/{state-2axfhc9x.js → workspace-2axfhc9x.js} +0 -0
  725. /package/dist/chunks/{state-2c3vjs8z.js → workspace-2c3vjs8z.js} +0 -0
  726. /package/dist/chunks/{state-34c7v6d4.js → workspace-34c7v6d4.js} +0 -0
  727. /package/dist/chunks/{state-359p4xyc.js → workspace-359p4xyc.js} +0 -0
  728. /package/dist/chunks/{state-3asan66x.js → workspace-3asan66x.js} +0 -0
  729. /package/dist/chunks/{state-3v8g72cx.js → workspace-3v8g72cx.js} +0 -0
  730. /package/dist/chunks/{state-3w5fmr99.js → workspace-3w5fmr99.js} +0 -0
  731. /package/dist/chunks/{state-3wcehsnq.js → workspace-3wcehsnq.js} +0 -0
  732. /package/dist/chunks/{state-43n2bw4t.js → workspace-43n2bw4t.js} +0 -0
  733. /package/dist/chunks/{state-4knz6hnm.js → workspace-4knz6hnm.js} +0 -0
  734. /package/dist/chunks/{state-4vcrnpx2.js → workspace-4vcrnpx2.js} +0 -0
  735. /package/dist/chunks/{state-4y7fprxs.js → workspace-4y7fprxs.js} +0 -0
  736. /package/dist/chunks/{state-53557ph1.js → workspace-53557ph1.js} +0 -0
  737. /package/dist/chunks/{state-550bvhaj.js → workspace-550bvhaj.js} +0 -0
  738. /package/dist/chunks/{state-5qd3pb7m.js → workspace-5qd3pb7m.js} +0 -0
  739. /package/dist/chunks/{state-6prwharc.js → workspace-6prwharc.js} +0 -0
  740. /package/dist/chunks/{state-7akdwqpd.js → workspace-7akdwqpd.js} +0 -0
  741. /package/dist/chunks/{state-7m9af43g.js → workspace-7m9af43g.js} +0 -0
  742. /package/dist/chunks/{state-822emrt2.js → workspace-822emrt2.js} +0 -0
  743. /package/dist/chunks/{state-88xbtdfr.js → workspace-88xbtdfr.js} +0 -0
  744. /package/dist/chunks/{state-8n3pysct.js → workspace-8n3pysct.js} +0 -0
  745. /package/dist/chunks/{state-8wj87zfr.js → workspace-8wj87zfr.js} +0 -0
  746. /package/dist/chunks/{state-922hggd3.js → workspace-922hggd3.js} +0 -0
  747. /package/dist/chunks/{state-9a4afbnw.js → workspace-9a4afbnw.js} +0 -0
  748. /package/dist/chunks/{state-9rqn6x4v.js → workspace-9rqn6x4v.js} +0 -0
  749. /package/dist/chunks/{state-a6k6eb26.js → workspace-a6k6eb26.js} +0 -0
  750. /package/dist/chunks/{state-af5trqkr.js → workspace-af5trqkr.js} +0 -0
  751. /package/dist/chunks/{state-afrmfg78.js → workspace-afrmfg78.js} +0 -0
  752. /package/dist/chunks/{state-aqzs7mqg.js → workspace-aqzs7mqg.js} +0 -0
  753. /package/dist/chunks/{state-atq7p7m5.js → workspace-atq7p7m5.js} +0 -0
  754. /package/dist/chunks/{state-bkyjaxrp.js → workspace-bkyjaxrp.js} +0 -0
  755. /package/dist/chunks/{state-bmr6ed5q.js → workspace-bmr6ed5q.js} +0 -0
  756. /package/dist/chunks/{state-cf4snx6d.js → workspace-cf4snx6d.js} +0 -0
  757. /package/dist/chunks/{state-cvy3z8tj.js → workspace-cvy3z8tj.js} +0 -0
  758. /package/dist/chunks/{state-d9fn303g.js → workspace-d9fn303g.js} +0 -0
  759. /package/dist/chunks/{state-d9jj8t3e.js → workspace-d9jj8t3e.js} +0 -0
  760. /package/dist/chunks/{state-dajrwvna.js → workspace-dajrwvna.js} +0 -0
  761. /package/dist/chunks/{state-dap0rakb.js → workspace-dap0rakb.js} +0 -0
  762. /package/dist/chunks/{state-df08tz66.js → workspace-df08tz66.js} +0 -0
  763. /package/dist/chunks/{state-dy18nga0.js → workspace-dy18nga0.js} +0 -0
  764. /package/dist/chunks/{state-e5kj55wp.js → workspace-e5kj55wp.js} +0 -0
  765. /package/dist/chunks/{state-e73j6tqm.js → workspace-e73j6tqm.js} +0 -0
  766. /package/dist/chunks/{state-ec1grn59.js → workspace-ec1grn59.js} +0 -0
  767. /package/dist/chunks/{state-eh3zwz77.js → workspace-eh3zwz77.js} +0 -0
  768. /package/dist/chunks/{state-emrn6kk6.js → workspace-emrn6kk6.js} +0 -0
  769. /package/dist/chunks/{state-f0mxakyp.js → workspace-f0mxakyp.js} +0 -0
  770. /package/dist/chunks/{state-f6n9ztr4.js → workspace-f6n9ztr4.js} +0 -0
  771. /package/dist/chunks/{state-faypxj3z.js → workspace-faypxj3z.js} +0 -0
  772. /package/dist/chunks/{state-fd410y7t.js → workspace-fd410y7t.js} +0 -0
  773. /package/dist/chunks/{state-fxgpk5d8.js → workspace-fxgpk5d8.js} +0 -0
  774. /package/dist/chunks/{state-g4wezp1m.js → workspace-g4wezp1m.js} +0 -0
  775. /package/dist/chunks/{state-g86h250q.js → workspace-g86h250q.js} +0 -0
  776. /package/dist/chunks/{state-gebd4c9n.js → workspace-gebd4c9n.js} +0 -0
  777. /package/dist/chunks/{state-gftt206x.js → workspace-gftt206x.js} +0 -0
  778. /package/dist/chunks/{state-hjbc5kem.js → workspace-hjbc5kem.js} +0 -0
  779. /package/dist/chunks/{state-hk9envan.js → workspace-hk9envan.js} +0 -0
  780. /package/dist/chunks/{state-j2ntwpah.js → workspace-j2ntwpah.js} +0 -0
  781. /package/dist/chunks/{state-j5zkgpj8.js → workspace-j5zkgpj8.js} +0 -0
  782. /package/dist/chunks/{state-jjkms2e6.js → workspace-jjkms2e6.js} +0 -0
  783. /package/dist/chunks/{state-jr7sbwjy.js → workspace-jr7sbwjy.js} +0 -0
  784. /package/dist/chunks/{state-jwfs4k6c.js → workspace-jwfs4k6c.js} +0 -0
  785. /package/dist/chunks/{state-jzg6c2d5.js → workspace-jzg6c2d5.js} +0 -0
  786. /package/dist/chunks/{state-mp448xyj.js → workspace-mp448xyj.js} +0 -0
  787. /package/dist/chunks/{state-msx8hqn2.js → workspace-msx8hqn2.js} +0 -0
  788. /package/dist/chunks/{state-n05xt0ee.js → workspace-n05xt0ee.js} +0 -0
  789. /package/dist/chunks/{state-n3j8tn72.js → workspace-n3j8tn72.js} +0 -0
  790. /package/dist/chunks/{state-njntx4h6.js → workspace-njntx4h6.js} +0 -0
  791. /package/dist/chunks/{state-q3sfg36h.js → workspace-q3sfg36h.js} +0 -0
  792. /package/dist/chunks/{state-q74kybfr.js → workspace-q74kybfr.js} +0 -0
  793. /package/dist/chunks/{state-qaymkmh1.js → workspace-qaymkmh1.js} +0 -0
  794. /package/dist/chunks/{state-qb87gjwd.js → workspace-qb87gjwd.js} +0 -0
  795. /package/dist/chunks/{state-qfa1cgps.js → workspace-qfa1cgps.js} +0 -0
  796. /package/dist/chunks/{state-qg3g05ea.js → workspace-qg3g05ea.js} +0 -0
  797. /package/dist/chunks/{state-qrg20bc0.js → workspace-qrg20bc0.js} +0 -0
  798. /package/dist/chunks/{state-rcb2kzg1.js → workspace-rcb2kzg1.js} +0 -0
  799. /package/dist/chunks/{state-sdp7kfr6.js → workspace-sdp7kfr6.js} +0 -0
  800. /package/dist/chunks/{state-sk3qaz4a.js → workspace-sk3qaz4a.js} +0 -0
  801. /package/dist/chunks/{state-ssg3fenm.js → workspace-ssg3fenm.js} +0 -0
  802. /package/dist/chunks/{state-w803qqfp.js → workspace-w803qqfp.js} +0 -0
  803. /package/dist/chunks/{state-wc3fc9cn.js → workspace-wc3fc9cn.js} +0 -0
  804. /package/dist/chunks/{state-wer8tq1h.js → workspace-wer8tq1h.js} +0 -0
  805. /package/dist/chunks/{state-wtztk69x.js → workspace-wtztk69x.js} +0 -0
  806. /package/dist/chunks/{state-x0ckcb58.js → workspace-x0ckcb58.js} +0 -0
  807. /package/dist/chunks/{state-x61499pn.js → workspace-x61499pn.js} +0 -0
  808. /package/dist/chunks/{state-y44na4kk.js → workspace-y44na4kk.js} +0 -0
  809. /package/dist/chunks/{state-y8cydn3q.js → workspace-y8cydn3q.js} +0 -0
  810. /package/dist/chunks/{state-y8f7s663.js → workspace-y8f7s663.js} +0 -0
  811. /package/dist/chunks/{state-ygaqb7jw.js → workspace-ygaqb7jw.js} +0 -0
  812. /package/dist/chunks/{state-ym463w8f.js → workspace-ym463w8f.js} +0 -0
  813. /package/dist/chunks/{state-z9919s4g.js → workspace-z9919s4g.js} +0 -0
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  SessionEvent2
3
- } from "./state-ec1grn59.js";
3
+ } from "./workspace-ec1grn59.js";
4
4
  import {
5
5
  tokens2
6
- } from "./state-tdstcens.js";
6
+ } from "./workspace-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 "./state-qaymkmh1.js";
3
+ } from "./workspace-qaymkmh1.js";
4
4
 
5
5
  // src/util/git-executable.ts
6
6
  import path from "path";
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  __export
3
- } from "./state-9rqn6x4v.js";
3
+ } from "./workspace-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: () => node85,
13
+ make: () => make19,
14
+ node: () => node68,
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 node85 = registryNode2({});
47
+ var node68 = registryNode2({});
48
48
 
49
- export { Binding2, Error5, ProviderNotFound2, make21, RegistryService2, registry2, registryNode2, node85, exports_driver };
49
+ export { Binding2, Error5, ProviderNotFound2, make19, RegistryService2, registry2, registryNode2, node68, exports_driver };
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  __export
3
- } from "./state-9rqn6x4v.js";
3
+ } from "./workspace-9rqn6x4v.js";
4
4
 
5
5
  // src/database/sqlite.ts
6
6
  var exports_sqlite = {};
@@ -1,21 +1,21 @@
1
1
  import {
2
2
  call2
3
- } from "./state-56gdpj1q.js";
3
+ } from "./workspace-33w4ejhs.js";
4
4
  import {
5
5
  __export
6
- } from "./state-9rqn6x4v.js";
6
+ } from "./workspace-9rqn6x4v.js";
7
7
 
8
8
  // src/plugin/websearch/exa.ts
9
9
  var exports_exa = {};
10
10
  __export(exports_exa, {
11
- Plugin: () => Plugin34,
11
+ Plugin: () => Plugin21,
12
12
  WebSearchExa: () => exports_exa,
13
- endpoint: () => endpoint2
13
+ endpoint: () => endpoint6
14
14
  });
15
15
  import { define } from "@opencode/plugin/effect/plugin";
16
16
  import { Effect, Schema } from "effect";
17
17
  import { HttpClient } from "effect/unstable/http";
18
- var endpoint2 = "https://mcp.exa.ai/mcp";
18
+ var endpoint6 = "https://mcp.exa.ai/mcp";
19
19
  var McpInput = Schema.Struct({
20
20
  query: Schema.String,
21
21
  numResults: Schema.Number.pipe(Schema.optional)
@@ -27,7 +27,7 @@ var McpOutput = Schema.Struct({
27
27
  _meta: Schema.Struct({ searchTime: Schema.Number }).pipe(Schema.optional)
28
28
  }))
29
29
  });
30
- var Plugin34 = define({
30
+ var Plugin21 = define({
31
31
  id: "opencode.websearch.exa",
32
32
  effect: Effect.fn("WebSearchExa.Plugin")(function* (ctx) {
33
33
  const http = yield* HttpClient.HttpClient;
@@ -49,7 +49,7 @@ var Plugin34 = define({
49
49
  execute: (input) => Effect.gen(function* () {
50
50
  const connection = yield* ctx.integration.connection.active("exa");
51
51
  const credential = connection ? yield* ctx.integration.connection.resolve(connection) : undefined;
52
- const url = new URL(endpoint2);
52
+ const url = new URL(endpoint6);
53
53
  if (credential?.type === "key")
54
54
  url.searchParams.set("exaApiKey", credential.key);
55
55
  const result = yield* call2(http, url.toString(), "web_search_exa", { input: McpInput, output: McpOutput }, { query: input.query, numResults: 8 });
@@ -80,4 +80,4 @@ function parseResults(text) {
80
80
  });
81
81
  }
82
82
 
83
- export { endpoint2, Plugin34, exports_exa };
83
+ export { endpoint6, Plugin21, exports_exa };
@@ -1,32 +1,32 @@
1
1
  import {
2
2
  AbsolutePath2,
3
3
  RelativePath2
4
- } from "./state-922hggd3.js";
4
+ } from "./workspace-922hggd3.js";
5
5
  import {
6
6
  Repository2,
7
7
  TreeID2,
8
- Service80,
9
- node83
10
- } from "./state-6ge9xvdz.js";
11
- import {
12
- Service78,
8
+ Service77,
13
9
  node81
14
- } from "./state-treznftm.js";
10
+ } from "./workspace-fd43cwvv.js";
11
+ import {
12
+ Service72,
13
+ node75
14
+ } from "./workspace-vp8zed57.js";
15
15
  import {
16
16
  create3
17
- } from "./state-rdw6cm16.js";
17
+ } from "./workspace-rdw6cm16.js";
18
18
  import {
19
19
  __export
20
- } from "./state-9rqn6x4v.js";
20
+ } from "./workspace-9rqn6x4v.js";
21
21
 
22
22
  // src/snapshot.ts
23
23
  var exports_snapshot2 = {};
24
24
  __export(exports_snapshot2, {
25
- Error: () => Error4,
26
- ID: () => ID6,
27
- Service: () => Service44,
25
+ Error: () => Error2,
26
+ ID: () => ID4,
27
+ Service: () => Service33,
28
28
  Snapshot: () => exports_snapshot2,
29
- node: () => node48,
29
+ node: () => node36,
30
30
  noopLayer: () => noopLayer2
31
31
  });
32
32
  import { makeLocationNode } from "@opencode/util/effect/app-node";
@@ -34,22 +34,22 @@ import path from "path";
34
34
  import { Context, Effect, Fiber, Layer, Schema, Scope } from "effect";
35
35
  import { FSUtil } from "@opencode/util/fs-util";
36
36
  import { Global } from "@opencode/util/global";
37
- import { ID as ID6 } from "@opencode/schema/snapshot";
37
+ import { ID as ID4 } from "@opencode/schema/snapshot";
38
38
  import { Hash } from "@opencode/util/hash";
39
- class Error4 extends Schema.TaggedError()("Snapshot.Error", {
39
+ class Error2 extends Schema.TaggedError()("Snapshot.Error", {
40
40
  operation: Schema.Literals(["capture", "files", "diff", "restore"]),
41
41
  message: Schema.String,
42
42
  cause: Schema.optional(Schema.Defect())
43
43
  }) {
44
44
  }
45
45
 
46
- class Service44 extends Context.Service()("@opencode/Snapshot") {
46
+ class Service33 extends Context.Service()("@opencode/Snapshot") {
47
47
  }
48
- var layer = Layer.effect(Service44, Effect.gen(function* () {
48
+ var layer = Layer.effect(Service33, Effect.gen(function* () {
49
49
  const fs = yield* FSUtil.Service;
50
- const git = yield* Service80;
50
+ const git = yield* Service77;
51
51
  const global = yield* Global.Service;
52
- const location = yield* Service78;
52
+ const location = yield* Service72;
53
53
  const lifetime = yield* Scope.Scope;
54
54
  const state = create3({
55
55
  name: "snapshot",
@@ -63,7 +63,7 @@ var layer = Layer.effect(Service44, Effect.gen(function* () {
63
63
  const repositoryFiber = yield* Effect.cached(Effect.gen(function* () {
64
64
  const source = yield* git.repo.discover(location.project.directory);
65
65
  if (!source)
66
- return yield* new Error4({ operation: "capture", message: "Project is not a Git repository" });
66
+ return yield* new Error2({ operation: "capture", message: "Project is not a Git repository" });
67
67
  const worktree = AbsolutePath2.make(yield* fs.realPath(source.worktree).pipe(Effect.orDie));
68
68
  const gitDirectory = AbsolutePath2.make(path.join(global.data, "snapshot", location.project.id, Hash.fast(worktree)));
69
69
  const snapshotRepository = (yield* fs.existsSafe(path.join(gitDirectory, "HEAD"))) ? new Repository2({ worktree, gitDirectory, commonDirectory: gitDirectory }) : yield* git.repo.create({ worktree, gitDirectory, seed: source }).pipe(Effect.mapError((cause) => failure("capture", cause)));
@@ -73,7 +73,7 @@ var layer = Layer.effect(Service44, Effect.gen(function* () {
73
73
  const scope = Effect.fnUntraced(function* (worktree) {
74
74
  const relative = path.relative(worktree, location.directory);
75
75
  if (relative.startsWith("..") || path.isAbsolute(relative))
76
- return yield* new Error4({ operation: "capture", message: "Location is outside the project" });
76
+ return yield* new Error2({ operation: "capture", message: "Location is outside the project" });
77
77
  return RelativePath2.make(relative.replaceAll("\\", "/") || ".");
78
78
  });
79
79
  const enabled = () => location.vcs?.type === "git" && state.get().enabled;
@@ -82,7 +82,7 @@ var layer = Layer.effect(Service44, Effect.gen(function* () {
82
82
  return;
83
83
  return yield* Effect.gen(function* () {
84
84
  const repo = yield* repository;
85
- return ID6.make(yield* git.tree.capture({
85
+ return ID4.make(yield* git.tree.capture({
86
86
  repository: repo.snapshotRepository,
87
87
  scopes: [yield* scope(repo.worktree)],
88
88
  ignores: repo.source,
@@ -127,25 +127,25 @@ var layer = Layer.effect(Service44, Effect.gen(function* () {
127
127
  for (const [file, snapshot] of input.files) {
128
128
  const absolute = path.resolve(worktree, file);
129
129
  if (!FSUtil.contains(worktree, absolute))
130
- return yield* new Error4({ operation: "restore", message: `Path escapes the project: ${file}` });
130
+ return yield* new Error2({ operation: "restore", message: `Path escapes the project: ${file}` });
131
131
  files.set(file, TreeID2.make(snapshot));
132
132
  }
133
133
  return files;
134
134
  });
135
135
  const restore = Effect.fn("Snapshot.restore")(function* (input) {
136
136
  if (!enabled())
137
- return yield* new Error4({ operation: "restore", message: "Snapshots are disabled" });
137
+ return yield* new Error2({ operation: "restore", message: "Snapshots are disabled" });
138
138
  const repo = yield* repository.pipe(Effect.mapError((cause) => failure("restore", cause)));
139
139
  yield* git.tree.restore({ repository: repo.snapshotRepository, files: yield* plan(repo.worktree, input) }).pipe(Effect.mapError((cause) => failure("restore", cause)));
140
140
  });
141
- return Service44.of({ transform: state.transform, reload: state.reload, capture, files, diff, restore });
141
+ return Service33.of({ transform: state.transform, reload: state.reload, capture, files, diff, restore });
142
142
  }).pipe(Effect.withSpan("Snapshot.boot")));
143
- var node48 = makeLocationNode({
144
- service: Service44,
143
+ var node36 = makeLocationNode({
144
+ service: Service33,
145
145
  layer,
146
- deps: [FSUtil.node, node83, Global.node, node81]
146
+ deps: [FSUtil.node, node81, Global.node, node75]
147
147
  });
148
- var noopLayer2 = Layer.succeed(Service44, Service44.of({
148
+ var noopLayer2 = Layer.succeed(Service33, Service33.of({
149
149
  transform: () => Effect.succeed({ dispose: Effect.void }),
150
150
  reload: () => Effect.void,
151
151
  capture: () => Effect.undefined,
@@ -154,13 +154,13 @@ var noopLayer2 = Layer.succeed(Service44, Service44.of({
154
154
  restore: () => Effect.void
155
155
  }));
156
156
  function failure(operation, cause) {
157
- if (cause instanceof Error4 && cause.operation === operation)
157
+ if (cause instanceof Error2 && cause.operation === operation)
158
158
  return cause;
159
- return new Error4({
159
+ return new Error2({
160
160
  operation,
161
161
  message: cause instanceof globalThis.Error ? cause.message : String(cause),
162
162
  cause
163
163
  });
164
164
  }
165
165
 
166
- export { ID6, Error4, Service44, node48, noopLayer2, exports_snapshot2 };
166
+ export { ID4, Error2, Service33, node36, noopLayer2, exports_snapshot2 };
@@ -1,21 +1,21 @@
1
1
  import {
2
2
  AbsolutePath2,
3
3
  RelativePath2
4
- } from "./state-922hggd3.js";
4
+ } from "./workspace-922hggd3.js";
5
5
  import {
6
6
  makeUnsafe2
7
- } from "./state-y71avatq.js";
7
+ } from "./workspace-dpkg50ah.js";
8
8
  import {
9
9
  MAX_TOTAL_PATCH_BYTES2,
10
10
  emptyPatch2,
11
11
  chunksByFile2
12
- } from "./state-tazgh4e4.js";
12
+ } from "./workspace-tazgh4e4.js";
13
13
  import {
14
14
  gitExecutable2
15
- } from "./state-ef5x83kb.js";
15
+ } from "./workspace-ef5x83kb.js";
16
16
  import {
17
17
  __export
18
- } from "./state-9rqn6x4v.js";
18
+ } from "./workspace-9rqn6x4v.js";
19
19
 
20
20
  // src/git.ts
21
21
  var exports_git3 = {};
@@ -23,11 +23,11 @@ __export(exports_git3, {
23
23
  Git: () => exports_git3,
24
24
  OperationError: () => OperationError3,
25
25
  Repository: () => Repository2,
26
- Service: () => Service80,
26
+ Service: () => Service77,
27
27
  TreeID: () => TreeID2,
28
28
  Worktree: () => Worktree2,
29
29
  WorktreeError: () => WorktreeError2,
30
- node: () => node83
30
+ node: () => node81
31
31
  });
32
32
  import path from "path";
33
33
  import { Context, Effect, Layer, Schema } from "effect";
@@ -93,9 +93,9 @@ class WorktreeError2 extends Schema.TaggedError()("Git.WorktreeError", {
93
93
  }) {
94
94
  }
95
95
 
96
- class Service80 extends Context.Service()("@opencode/Git") {
96
+ class Service77 extends Context.Service()("@opencode/Git") {
97
97
  }
98
- var layer = Layer.effect(Service80, Effect.gen(function* () {
98
+ var layer = Layer.effect(Service77, Effect.gen(function* () {
99
99
  const fs = yield* FSUtil.Service;
100
100
  const proc = yield* AppProcess.Service;
101
101
  const locks = makeUnsafe2();
@@ -419,7 +419,7 @@ var layer = Layer.effect(Service80, Effect.gen(function* () {
419
419
  kind: index === 0 ? "main" : "linked"
420
420
  }));
421
421
  });
422
- return Service80.of({
422
+ return Service77.of({
423
423
  repo: { discover, clone, create },
424
424
  remote: { get: remote },
425
425
  history: { head, branch, defaultRemoteBranch: remoteHead, rootCommits: roots },
@@ -435,7 +435,7 @@ var layer = Layer.effect(Service80, Effect.gen(function* () {
435
435
  }
436
436
  });
437
437
  }));
438
- var node83 = makeGlobalNode({ service: Service80, layer, deps: [FSUtil.node, AppProcess.node] });
438
+ var node81 = makeGlobalNode({ service: Service77, layer, deps: [FSUtil.node, AppProcess.node] });
439
439
  function run(cwd, proc, args) {
440
440
  return execute(cwd, proc, args).pipe(Effect.orElseSucceed(() => ({ exitCode: 1, text: "", stderr: "" })));
441
441
  }
@@ -463,4 +463,4 @@ function resolvePath(cwd, value) {
463
463
  return path.resolve(cwd, normalized);
464
464
  }
465
465
 
466
- export { Repository2, TreeID2, OperationError3, Worktree2, WorktreeError2, Service80, node83, exports_git3 };
466
+ export { Repository2, TreeID2, OperationError3, Worktree2, WorktreeError2, Service77, node81, exports_git3 };
@@ -1,33 +1,33 @@
1
1
  import {
2
2
  Service83,
3
3
  node87
4
- } from "./state-xrnnsjt5.js";
4
+ } from "./workspace-82r76d2b.js";
5
5
  import {
6
6
  optional2,
7
7
  statics2
8
- } from "./state-922hggd3.js";
8
+ } from "./workspace-922hggd3.js";
9
9
  import {
10
- Ref4,
11
- Service78,
12
- node81
13
- } from "./state-treznftm.js";
10
+ Ref3,
11
+ Service72,
12
+ node75
13
+ } from "./workspace-vp8zed57.js";
14
14
  import {
15
15
  __export
16
- } from "./state-9rqn6x4v.js";
16
+ } from "./workspace-9rqn6x4v.js";
17
17
 
18
18
  // src/rpc.ts
19
19
  var exports_rpc = {};
20
20
  __export(exports_rpc, {
21
21
  Rpc: () => exports_rpc,
22
- Service: () => Service34,
22
+ Service: () => Service42,
23
23
  define: () => define2,
24
- node: () => node37
24
+ node: () => node45
25
25
  });
26
26
  import { define as define2 } from "@opencode/schema/rpc";
27
27
  import { Event } from "@opencode/schema/event";
28
28
  import { makeLocationNode } from "@opencode/util/effect/app-node";
29
29
  import { Context, Deferred, Effect, JsonSchema, Layer, Schema, SchemaRepresentation, Stream } from "effect";
30
- class Service34 extends Context.Service()("@opencode/Rpc") {
30
+ class Service42 extends Context.Service()("@opencode/Rpc") {
31
31
  }
32
32
 
33
33
  class DeclaredError extends Error {
@@ -39,10 +39,10 @@ class DeclaredError extends Error {
39
39
  this.data = data;
40
40
  }
41
41
  }
42
- var layer = Layer.effect(Service34, Effect.gen(function* () {
42
+ var layer = Layer.effect(Service42, Effect.gen(function* () {
43
43
  const bus = yield* Service83;
44
- const location = yield* Service78;
45
- const ref = Ref4.make({ directory: location.directory, workspaceID: location.workspaceID });
44
+ const location = yield* Service72;
45
+ const ref = Ref3.make({ directory: location.directory, workspaceID: location.workspaceID });
46
46
  const closed = yield* Deferred.make();
47
47
  const callContext = {
48
48
  error: (type, message, data) => new DeclaredError(type, message, data)
@@ -82,7 +82,7 @@ var layer = Layer.effect(Service34, Effect.gen(function* () {
82
82
  const event = registered.event;
83
83
  const data = yield* encode(event.schema, args[1]);
84
84
  return yield* bus.publish(registered.definition, data, {
85
- location: Ref4.make({ directory: ref.directory, workspaceID: ref.workspaceID })
85
+ location: Ref3.make({ directory: ref.directory, workspaceID: ref.workspaceID })
86
86
  }).pipe(Effect.asVoid);
87
87
  })
88
88
  }
@@ -118,19 +118,19 @@ var layer = Layer.effect(Service34, Effect.gen(function* () {
118
118
  const registered = events.get(name);
119
119
  if (!registered)
120
120
  return Stream.fail(new Error(`Unknown RPC event: ${definition.id}.${name}`));
121
- return bus.subscribe(registered.definition).pipe(Stream.provideService(Service78, location), Stream.mapEffect((payload) => logicalEvent(definition, name, payload, ref)));
121
+ return bus.subscribe(registered.definition).pipe(Stream.provideService(Service72, location), Stream.mapEffect((payload) => logicalEvent(definition, name, payload, ref)));
122
122
  }
123
123
  }
124
124
  };
125
125
  };
126
- return Service34.of({ register, call, client, close: Deferred.succeed(closed, undefined).pipe(Effect.asVoid) });
126
+ return Service42.of({ register, call, client, close: Deferred.succeed(closed, undefined).pipe(Effect.asVoid) });
127
127
  }));
128
- var node37 = makeLocationNode({ service: Service34, layer, deps: [node87, node81] });
128
+ var node45 = makeLocationNode({ service: Service42, layer, deps: [node87, node75] });
129
129
  var fields = {
130
130
  id: Event.ID,
131
131
  created: Schema.Finite,
132
132
  metadata: optional2(Schema.Record(Schema.String, Schema.Unknown)),
133
- location: optional2(Ref4)
133
+ location: optional2(Ref3)
134
134
  };
135
135
  var EventData = Schema.Record(Schema.String, Schema.Unknown);
136
136
  var jsonSchemas = new WeakMap;
@@ -206,8 +206,8 @@ var logicalEvent = Effect.fn("Rpc.logicalEvent")(function* (definition, name, pa
206
206
  ...payload,
207
207
  type: eventType(definition, name),
208
208
  data,
209
- location: Ref4.make({ directory: ref.directory, workspaceID: ref.workspaceID })
209
+ location: Ref3.make({ directory: ref.directory, workspaceID: ref.workspaceID })
210
210
  };
211
211
  });
212
212
 
213
- export { Service34, node37, exports_rpc, define2 };
213
+ export { Service42, node45, exports_rpc, define2 };
@@ -1,16 +1,16 @@
1
1
  import {
2
2
  SessionEvent2
3
- } from "./state-ec1grn59.js";
3
+ } from "./workspace-ec1grn59.js";
4
4
  import {
5
5
  __export
6
- } from "./state-9rqn6x4v.js";
6
+ } from "./workspace-9rqn6x4v.js";
7
7
 
8
8
  // src/session/runner/retry.ts
9
9
  var exports_retry = {};
10
10
  __export(exports_retry, {
11
11
  SessionRunnerRetry: () => exports_retry,
12
12
  isRetryable: () => isRetryable2,
13
- make: () => make6,
13
+ make: () => make9,
14
14
  policy: () => policy2
15
15
  });
16
16
  import { isRetryable as isRetryable2 } from "@opencode/ai";
@@ -55,7 +55,7 @@ var policy2 = (sessionID) => Effect.gen(function* () {
55
55
  return { retry: true, attempt, delay: normalized };
56
56
  });
57
57
  });
58
- var make6 = (bus, sessionID) => Effect.gen(function* () {
58
+ var make9 = (bus, sessionID) => Effect.gen(function* () {
59
59
  const decide = yield* policy2(sessionID);
60
60
  const wait = (input) => Effect.gen(function* () {
61
61
  const scheduled = yield* Clock.currentTimeMillis;
@@ -72,4 +72,4 @@ var make6 = (bus, sessionID) => Effect.gen(function* () {
72
72
  return { decide, wait };
73
73
  });
74
74
 
75
- export { isRetryable2, policy2, make6, exports_retry };
75
+ export { isRetryable2, policy2, make9, exports_retry };
@@ -1,23 +1,23 @@
1
1
  import {
2
2
  llmClient2
3
- } from "./state-5t3nmthw.js";
3
+ } from "./workspace-5t3nmthw.js";
4
4
  import {
5
- Service72,
6
- node75
7
- } from "./state-z1wdxvxw.js";
5
+ Service60,
6
+ node62
7
+ } from "./workspace-ybfe78wp.js";
8
8
  import {
9
9
  __export
10
- } from "./state-9rqn6x4v.js";
10
+ } from "./workspace-9rqn6x4v.js";
11
11
 
12
12
  // src/generate.ts
13
13
  var exports_generate2 = {};
14
14
  __export(exports_generate2, {
15
15
  Generate: () => exports_generate2,
16
16
  ModelSelectionError: () => ModelSelectionError2,
17
- Service: () => Service56,
18
- UnavailableError: () => UnavailableError3,
17
+ Service: () => Service59,
18
+ UnavailableError: () => UnavailableError2,
19
19
  layer: () => layer21,
20
- node: () => node60
20
+ node: () => node61
21
21
  });
22
22
  import { LLM, LLMClient } from "@opencode/ai";
23
23
  import { Context, Effect, Layer, Schema } from "effect";
@@ -27,17 +27,17 @@ class ModelSelectionError2 extends Schema.TaggedError()("Generate.ModelSelection
27
27
  }) {
28
28
  }
29
29
 
30
- class UnavailableError3 extends Schema.TaggedError()("Generate.UnavailableError", {
30
+ class UnavailableError2 extends Schema.TaggedError()("Generate.UnavailableError", {
31
31
  message: Schema.String,
32
32
  service: Schema.optional(Schema.String)
33
33
  }) {
34
34
  }
35
35
 
36
- class Service56 extends Context.Service()("@opencode/Generate") {
36
+ class Service59 extends Context.Service()("@opencode/Generate") {
37
37
  }
38
- var layer21 = Layer.effect(Service56, Effect.gen(function* () {
38
+ var layer21 = Layer.effect(Service59, Effect.gen(function* () {
39
39
  const llm = yield* LLMClient.Service;
40
- const resolver = yield* Service72;
40
+ const resolver = yield* Service60;
41
41
  const runText = Effect.fn("Generate.text")(function* (input) {
42
42
  const resolved = yield* resolver.resolve(input.model).pipe(Effect.catchTag([
43
43
  "SessionRunnerModel.VariantUnavailableError",
@@ -47,28 +47,28 @@ var layer21 = Layer.effect(Service56, Effect.gen(function* () {
47
47
  "SessionRunnerModel.UnresolvedProviderVariablesError",
48
48
  "SessionRunnerModel.UnsupportedCompactionError"
49
49
  ], (error) => {
50
- const mapped = input.model ? new ModelSelectionError2({ message: error.message }) : new UnavailableError3({ message: error.message, service: error.providerID });
50
+ const mapped = input.model ? new ModelSelectionError2({ message: error.message }) : new UnavailableError2({ message: error.message, service: error.providerID });
51
51
  return Effect.fail(mapped);
52
52
  }));
53
53
  if (!resolved)
54
54
  return yield* new ModelSelectionError2({
55
55
  message: input.model ? `Model unavailable: ${input.model.providerID}/${input.model.id}` : "No model specified and no supported model is available"
56
56
  });
57
- const response = yield* llm.generate(LLM.request({ model: resolved.model, prompt: input.prompt })).pipe(Effect.mapError((error) => new UnavailableError3({
57
+ const response = yield* llm.generate(LLM.request({ model: resolved.model, prompt: input.prompt })).pipe(Effect.mapError((error) => new UnavailableError2({
58
58
  message: error.message,
59
59
  service: resolved.ref.providerID
60
60
  })));
61
61
  return response.text;
62
62
  });
63
- const text = (input) => runText(input).pipe(Effect.catchTag("Integration.Authorization", () => new UnavailableError3({
63
+ const text = (input) => runText(input).pipe(Effect.catchTag("Integration.Authorization", () => new UnavailableError2({
64
64
  message: "Generation credentials are unavailable"
65
65
  })));
66
- return Service56.of({ text });
66
+ return Service59.of({ text });
67
67
  }));
68
- var node60 = makeLocationNode({
69
- service: Service56,
68
+ var node61 = makeLocationNode({
69
+ service: Service59,
70
70
  layer: layer21,
71
- deps: [node75, llmClient2]
71
+ deps: [node62, llmClient2]
72
72
  });
73
73
 
74
- export { ModelSelectionError2, UnavailableError3, Service56, layer21, node60, exports_generate2 };
74
+ export { ModelSelectionError2, UnavailableError2, Service59, layer21, node61, exports_generate2 };
@@ -1,27 +1,27 @@
1
1
  import {
2
2
  Service83
3
- } from "./state-xrnnsjt5.js";
3
+ } from "./workspace-82r76d2b.js";
4
4
  import {
5
- Service55,
6
- Event13
7
- } from "./state-5zvmc3ez.js";
5
+ Service47,
6
+ Event10
7
+ } from "./workspace-c09pats7.js";
8
8
  import {
9
9
  __export
10
- } from "./state-9rqn6x4v.js";
10
+ } from "./workspace-9rqn6x4v.js";
11
11
 
12
12
  // src/wellknown/plugin.ts
13
13
  var exports_plugin = {};
14
14
  __export(exports_plugin, {
15
- Plugin: () => Plugin24,
15
+ Plugin: () => Plugin49,
16
16
  WellKnownPlugin: () => exports_plugin
17
17
  });
18
18
  import { define } from "@opencode/plugin/effect/plugin";
19
19
  import { Effect, Stream } from "effect";
20
- var Plugin24 = define({
20
+ var Plugin49 = define({
21
21
  id: "opencode.wellknown",
22
22
  effect: Effect.fn(function* (ctx) {
23
23
  const bus = yield* Service83;
24
- const wellknown = yield* Service55;
24
+ const wellknown = yield* Service47;
25
25
  yield* wellknown.entries().pipe(Effect.orDie);
26
26
  yield* ctx.integration.transform((editor) => {
27
27
  wellknown.snapshot().forEach((entry) => {
@@ -41,8 +41,8 @@ var Plugin24 = define({
41
41
  });
42
42
  });
43
43
  });
44
- yield* bus.subscribe(Event13.Updated).pipe(Stream.runForEach(() => ctx.integration.reload()), Effect.forkScoped({ startImmediately: true }));
44
+ yield* bus.subscribe(Event10.Updated).pipe(Stream.runForEach(() => ctx.integration.reload()), Effect.forkScoped({ startImmediately: true }));
45
45
  })
46
46
  });
47
47
 
48
- export { Plugin24, exports_plugin };
48
+ export { Plugin49, exports_plugin };