@opencode-ai/core 0.0.0-beta-17823 → 0.0.0-beta-17887

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 (774) hide show
  1. package/dist/account/sql.js +2 -2
  2. package/dist/agent.js +73 -72
  3. package/dist/aisdk-native.js +3 -3
  4. package/dist/aisdk.js +4 -4
  5. package/dist/app.js +2 -2
  6. package/dist/bus.js +71 -70
  7. package/dist/catalog.js +81 -80
  8. package/dist/chunks/{bus-02dbfq60.js → schema-02dbfq60.js} +1 -1
  9. package/dist/chunks/{bus-0b17sr9d.js → schema-0b17sr9d.js} +2 -2
  10. package/dist/chunks/{bus-veg0dp2c.js → schema-0cxmrpsx.js} +32 -32
  11. package/dist/chunks/{bus-q33mk6d8.js → schema-0ehq5bhp.js} +14 -12
  12. package/dist/chunks/{bus-y9esm2mp.js → schema-0hgrfweh.js} +5 -5
  13. package/dist/chunks/{bus-0kvmztkf.js → schema-0kvmztkf.js} +1 -1
  14. package/dist/chunks/{bus-3ewxjzxn.js → schema-0ranhcjt.js} +2 -2
  15. package/dist/chunks/{bus-n744begs.js → schema-0vem89v9.js} +4 -4
  16. package/dist/chunks/{bus-n2w8fz38.js → schema-0vgt3zn6.js} +2 -2
  17. package/dist/chunks/{bus-tc8t62xv.js → schema-1637fpsx.js} +3 -3
  18. package/dist/chunks/{bus-18pv8fg3.js → schema-18pv8fg3.js} +2 -2
  19. package/dist/chunks/{bus-qp4w20e0.js → schema-19nk26qg.js} +5 -5
  20. package/dist/chunks/{bus-wh0zhxcg.js → schema-1a3a2s70.js} +2 -2
  21. package/dist/chunks/{bus-n0pq9mwy.js → schema-1nf83cea.js} +10 -16
  22. package/dist/chunks/{bus-x8pw55re.js → schema-1tqppy8q.js} +3 -3
  23. package/dist/chunks/{bus-2m10tm2s.js → schema-20hrmxeg.js} +7 -7
  24. package/dist/chunks/{bus-25pxtba7.js → schema-25pxtba7.js} +1 -1
  25. package/dist/chunks/{bus-2krkn5gv.js → schema-29ddmng8.js} +8 -8
  26. package/dist/chunks/{bus-rxf53ctm.js → schema-2aeag69d.js} +5 -5
  27. package/dist/chunks/{bus-2h2vssdq.js → schema-2h85227b.js} +2 -2
  28. package/dist/chunks/{bus-nzn9vp0h.js → schema-2hwdvqtr.js} +8 -8
  29. package/dist/chunks/{bus-pey90rx3.js → schema-2hyeqd71.js} +5 -5
  30. package/dist/chunks/{bus-2nmyybe0.js → schema-2nmyybe0.js} +1 -1
  31. package/dist/chunks/{bus-4hc8axh8.js → schema-2sx6rcrq.js} +64 -32
  32. package/dist/chunks/{bus-2akqrmqf.js → schema-2ya5073c.js} +1 -1
  33. package/dist/chunks/{bus-t2ccr6s6.js → schema-2zf7hxjt.js} +4 -4
  34. package/dist/chunks/{bus-gp1p5nz4.js → schema-37e9hbzs.js} +2 -2
  35. package/dist/chunks/{bus-7xm5mbbb.js → schema-3d1t6jqf.js} +3 -3
  36. package/dist/chunks/{bus-wcv7f5r5.js → schema-3g6g5vyj.js} +3 -3
  37. package/dist/chunks/{bus-3g8vftxb.js → schema-3g8vftxb.js} +2 -2
  38. package/dist/chunks/{bus-atc09b0q.js → schema-3gsv1x0v.js} +2 -2
  39. package/dist/chunks/{bus-f8knj356.js → schema-3hfdta0w.js} +2 -2
  40. package/dist/chunks/{bus-51y8ay1x.js → schema-3jsgz9x8.js} +37 -39
  41. package/dist/chunks/{bus-3thh6229.js → schema-3thh6229.js} +2 -2
  42. package/dist/chunks/{bus-xhs8426p.js → schema-3wg1t0st.js} +13 -13
  43. package/dist/chunks/{bus-3r3ecpec.js → schema-3x0rbcme.js} +10 -11
  44. package/dist/chunks/{bus-m8mm853q.js → schema-4hyc8pdv.js} +10 -10
  45. package/dist/chunks/{bus-48wxp1m2.js → schema-4j7te1s0.js} +3 -3
  46. package/dist/chunks/{bus-pd67jw04.js → schema-4jvfx8g6.js} +3 -3
  47. package/dist/chunks/{bus-4s2xwh5d.js → schema-4s2xwh5d.js} +3 -3
  48. package/dist/chunks/{bus-4zzdwbaz.js → schema-4zzdwbaz.js} +2 -2
  49. package/dist/chunks/{bus-50jxp3hw.js → schema-50jxp3hw.js} +1 -1
  50. package/dist/chunks/{bus-fjtxtbhx.js → schema-50qcmj3d.js} +3 -3
  51. package/dist/chunks/{bus-tr2j01af.js → schema-53w8n9hm.js} +7 -5
  52. package/dist/chunks/{bus-6dssp8bm.js → schema-53xdmpnb.js} +38 -38
  53. package/dist/chunks/{bus-57tzwnz4.js → schema-57tzwnz4.js} +1 -1
  54. package/dist/chunks/{bus-tcn24h1d.js → schema-58xdvehb.js} +2 -3
  55. package/dist/chunks/{bus-sgvnccme.js → schema-59ccykdk.js} +10 -19
  56. package/dist/chunks/{bus-m8eb5ktf.js → schema-59hngwn8.js} +9 -9
  57. package/dist/chunks/{bus-wbddvyfn.js → schema-5anrxqdj.js} +7 -5
  58. package/dist/chunks/{bus-prf9bavk.js → schema-5fe026tx.js} +3 -3
  59. package/dist/chunks/{bus-qn7g8h3c.js → schema-5fq5ws54.js} +4 -4
  60. package/dist/chunks/{bus-96x57j49.js → schema-5ndt04bs.js} +7 -7
  61. package/dist/chunks/{bus-mye11gf8.js → schema-5rnjreb1.js} +6 -4
  62. package/dist/chunks/{bus-5rs65q6p.js → schema-5rs65q6p.js} +1 -1
  63. package/dist/chunks/{bus-5vcssjzn.js → schema-5vcssjzn.js} +1 -1
  64. package/dist/chunks/{bus-p0zqjz05.js → schema-5xrsrne4.js} +3 -3
  65. package/dist/chunks/{bus-cgfda2sn.js → schema-6039vy3q.js} +6 -6
  66. package/dist/chunks/{bus-ng2qt8pw.js → schema-61m74eps.js} +6 -6
  67. package/dist/chunks/{bus-ph1me6ah.js → schema-65re92qg.js} +6 -4
  68. package/dist/chunks/{bus-5f5thcby.js → schema-6btb8gmk.js} +6 -6
  69. package/dist/chunks/{bus-8hssvxkg.js → schema-6e0hvkjj.js} +16 -17
  70. package/dist/chunks/{bus-e93xz9yp.js → schema-6gz8qpj3.js} +15 -16
  71. package/dist/chunks/{bus-6ky7rqk7.js → schema-6ky7rqk7.js} +1 -1
  72. package/dist/chunks/{bus-2te62yba.js → schema-6mvn0j90.js} +4 -4
  73. package/dist/chunks/{bus-6q0m15b3.js → schema-6q0m15b3.js} +1 -1
  74. package/dist/chunks/{bus-eceszhsw.js → schema-6srb8ptf.js} +5 -5
  75. package/dist/chunks/{bus-5yea2tah.js → schema-6x98y149.js} +2 -2
  76. package/dist/chunks/schema-6zqxzw0a.js +15 -0
  77. package/dist/chunks/{bus-anf7mnj5.js → schema-70248kr6.js} +21 -25
  78. package/dist/chunks/{bus-v9sqx51q.js → schema-763yasmv.js} +8 -8
  79. package/dist/chunks/{bus-as47syxa.js → schema-76hmsx9m.js} +11 -11
  80. package/dist/chunks/{bus-bs3z4wp1.js → schema-7764k952.js} +26 -21
  81. package/dist/chunks/{bus-7gqqz1s8.js → schema-7gqqz1s8.js} +1 -1
  82. package/dist/chunks/{bus-7mrpdsq5.js → schema-7mrpdsq5.js} +1 -1
  83. package/dist/chunks/{bus-cpzngvr9.js → schema-7rqv91hy.js} +8 -8
  84. package/dist/chunks/{bus-wrfx3tf4.js → schema-7vh3yvmw.js} +3 -3
  85. package/dist/chunks/{bus-7wcmqxrc.js → schema-7wcmqxrc.js} +1 -1
  86. package/dist/chunks/{bus-cwdq890m.js → schema-7yfqzmjb.js} +27 -27
  87. package/dist/chunks/{bus-88jbfw8z.js → schema-88jbfw8z.js} +2 -2
  88. package/dist/chunks/{bus-gn16fasc.js → schema-89dw1ph7.js} +4 -4
  89. package/dist/chunks/{bus-hsyk7kfz.js → schema-8bkmtpp6.js} +5 -5
  90. package/dist/chunks/{bus-rt6yg6j2.js → schema-8bqpm1yy.js} +3 -3
  91. package/dist/chunks/{bus-e3pt0j5y.js → schema-8cbfrh3v.js} +28 -22
  92. package/dist/chunks/{bus-bmweayxc.js → schema-8gp1tmat.js} +3 -3
  93. package/dist/chunks/{bus-x2c0q89n.js → schema-8m0kaaxz.js} +12 -12
  94. package/dist/chunks/{bus-trb1bzw9.js → schema-8qfxtd4q.js} +12 -12
  95. package/dist/chunks/{bus-55ypd0k6.js → schema-8ry20zzk.js} +12 -12
  96. package/dist/chunks/{bus-8v47shgf.js → schema-8v47shgf.js} +2 -2
  97. package/dist/chunks/{bus-vw66b17v.js → schema-905996ne.js} +17 -17
  98. package/dist/chunks/{bus-999qd968.js → schema-999qd968.js} +1 -1
  99. package/dist/chunks/{bus-9f0rnpkn.js → schema-9f0rnpkn.js} +1 -1
  100. package/dist/chunks/{bus-gz765asg.js → schema-9p8mhgdp.js} +1 -1
  101. package/dist/chunks/{bus-7vdhadbr.js → schema-9ss8makt.js} +8 -6
  102. package/dist/chunks/{bus-pksqhf5j.js → schema-aejndznj.js} +17 -14
  103. package/dist/chunks/{bus-27v6rhsm.js → schema-ambzzkps.js} +8 -8
  104. package/dist/chunks/{bus-ayfwnm78.js → schema-ayfwnm78.js} +2 -2
  105. package/dist/chunks/{bus-zjvgdt9p.js → schema-b7hsw5bk.js} +22 -38
  106. package/dist/chunks/{bus-dyz5q1tb.js → schema-bh1wr8rq.js} +3 -6
  107. package/dist/chunks/{bus-xd2xkk7n.js → schema-bj25ggyd.js} +4 -5
  108. package/dist/chunks/{bus-byab506k.js → schema-byab506k.js} +1 -1
  109. package/dist/chunks/{bus-1c00jchy.js → schema-c4wcb9vc.js} +3 -3
  110. package/dist/chunks/{bus-e24rm1tf.js → schema-c6gknnhe.js} +2 -2
  111. package/dist/chunks/{bus-fk3tzmrv.js → schema-c6h4bynb.js} +20 -24
  112. package/dist/chunks/{bus-0b6ye7sf.js → schema-c9tk9ghs.js} +3 -3
  113. package/dist/chunks/{bus-gwj8nfkp.js → schema-chrmmjkk.js} +6 -6
  114. package/dist/chunks/{bus-qw06pdhp.js → schema-ck5pgha0.js} +1 -1
  115. package/dist/chunks/{bus-19e1vard.js → schema-cke3skfe.js} +3 -7
  116. package/dist/chunks/{bus-4tmgtgw2.js → schema-cmm1dbz2.js} +5 -5
  117. package/dist/chunks/{bus-3jcy51m6.js → schema-cqrnepgy.js} +48 -36
  118. package/dist/chunks/{bus-nk6yb8jk.js → schema-cve546b2.js} +2 -2
  119. package/dist/chunks/{bus-cz3dkvcz.js → schema-cz3dkvcz.js} +1 -1
  120. package/dist/chunks/{bus-eyk9wdct.js → schema-d2gk9vpf.js} +4 -5
  121. package/dist/chunks/{bus-rcvvhx6c.js → schema-dc6p8rz8.js} +20 -16
  122. package/dist/chunks/{bus-dhphtf1x.js → schema-dhphtf1x.js} +1 -1
  123. package/dist/chunks/{bus-sfbv6a2b.js → schema-djkt4gex.js} +4 -6
  124. package/dist/chunks/{bus-wxb49pcv.js → schema-dkxc2cgd.js} +89 -88
  125. package/dist/chunks/{bus-1h0r72pv.js → schema-dyrphakh.js} +11 -17
  126. package/dist/chunks/{bus-e1z9a0ts.js → schema-e1z9a0ts.js} +2 -2
  127. package/dist/chunks/{bus-tchczry9.js → schema-e5r8d43z.js} +3 -3
  128. package/dist/chunks/{bus-ec8vrfw5.js → schema-ec8vrfw5.js} +1 -1
  129. package/dist/chunks/{bus-md8xze4k.js → schema-ej9r6fs2.js} +9 -9
  130. package/dist/chunks/{bus-zkkkcc8p.js → schema-epzxjdf4.js} +4 -4
  131. package/dist/chunks/{bus-erj4j75s.js → schema-erj4j75s.js} +1 -1
  132. package/dist/chunks/{bus-v332cd3m.js → schema-eyrg1yjb.js} +9 -9
  133. package/dist/chunks/{bus-tenv3kfs.js → schema-f9wt0tjw.js} +2 -2
  134. package/dist/chunks/{bus-mkpz73zj.js → schema-f9z62w49.js} +5 -5
  135. package/dist/chunks/{bus-kyy2az1w.js → schema-fbe8wd9q.js} +5 -5
  136. package/dist/chunks/{bus-704hbswx.js → schema-fx6gxcwx.js} +4 -4
  137. package/dist/chunks/{bus-dcprj0dg.js → schema-g1ps01gx.js} +97 -70
  138. package/dist/chunks/{bus-73eahnvp.js → schema-g3tejemp.js} +4 -5
  139. package/dist/chunks/{bus-mcq6xj16.js → schema-g4tfhrky.js} +12 -10
  140. package/dist/chunks/{bus-tg6hejda.js → schema-g6sgqcje.js} +5 -5
  141. package/dist/chunks/{bus-8k08086v.js → schema-g7t6p8r2.js} +1 -1
  142. package/dist/chunks/{bus-z5d5bw72.js → schema-g7v03tbe.js} +12 -11
  143. package/dist/chunks/{bus-g9yygpzr.js → schema-g9yygpzr.js} +1 -1
  144. package/dist/chunks/{bus-gcay93cp.js → schema-gcay93cp.js} +1 -1
  145. package/dist/chunks/{bus-gd2xppx8.js → schema-gd2xppx8.js} +1 -1
  146. package/dist/chunks/{bus-fqxzsdmq.js → schema-gg8gy1ab.js} +2 -2
  147. package/dist/chunks/{bus-egasbfm0.js → schema-gjkvrjgw.js} +3 -3
  148. package/dist/chunks/{bus-tqvcb8j8.js → schema-gk39pf7r.js} +8 -6
  149. package/dist/chunks/{bus-c0h8k03q.js → schema-gnae5wg8.js} +20 -21
  150. package/dist/chunks/{bus-6k923qe9.js → schema-gpj6jen2.js} +12 -13
  151. package/dist/chunks/{bus-ceh687qc.js → schema-gsd7aj52.js} +16 -14
  152. package/dist/chunks/{bus-46kxywyk.js → schema-gvywm9dn.js} +12 -12
  153. package/dist/chunks/{bus-9cey77cq.js → schema-gxhthtcw.js} +9 -9
  154. package/dist/chunks/{bus-ra765m8n.js → schema-gzsc4f4d.js} +16 -16
  155. package/dist/chunks/{bus-943bxw84.js → schema-h5ybtq26.js} +5 -5
  156. package/dist/chunks/{bus-rnqjp4cw.js → schema-hca9bg61.js} +5 -5
  157. package/dist/chunks/{bus-gn83211g.js → schema-hevdag7w.js} +12 -12
  158. package/dist/chunks/{bus-zqh29h4g.js → schema-hhxt27np.js} +2 -3
  159. package/dist/chunks/{bus-cake6fs9.js → schema-hkpr9a4z.js} +5 -5
  160. package/dist/chunks/{bus-wb4dbzpz.js → schema-hp6rpdnc.js} +5 -3
  161. package/dist/chunks/{bus-19qgjfzv.js → schema-j3ethsxz.js} +2 -2
  162. package/dist/chunks/{bus-3ahf14k8.js → schema-jf0w9kwc.js} +4 -4
  163. package/dist/chunks/{bus-d0r2hzy0.js → schema-jf35ek5b.js} +2 -2
  164. package/dist/chunks/{bus-jssy2dr3.js → schema-jssy2dr3.js} +2 -2
  165. package/dist/chunks/{bus-brqpbqpa.js → schema-jt9ap34s.js} +3 -3
  166. package/dist/chunks/{bus-eacxen1d.js → schema-jtpqmfzd.js} +6 -6
  167. package/dist/chunks/{bus-g7k9te92.js → schema-k3e42drn.js} +1 -2
  168. package/dist/chunks/{bus-g5d54sdx.js → schema-k42t1tha.js} +2 -2
  169. package/dist/chunks/{bus-n11z769x.js → schema-kcbd8yt0.js} +3 -3
  170. package/dist/chunks/{bus-kg1345f7.js → schema-kg1345f7.js} +1 -1
  171. package/dist/chunks/schema-kp1t5rcy.js +20 -0
  172. package/dist/chunks/{bus-ste2kqtd.js → schema-m5hb23fp.js} +4 -4
  173. package/dist/chunks/{bus-hq5052b7.js → schema-mat0pk2n.js} +148 -148
  174. package/dist/chunks/{bus-1mxyy099.js → schema-me155pxc.js} +11 -11
  175. package/dist/chunks/{bus-mf0hyk7z.js → schema-mf0hyk7z.js} +1 -1
  176. package/dist/chunks/{bus-73a2hz0p.js → schema-mf73chvh.js} +13 -13
  177. package/dist/chunks/{bus-xvphkvkz.js → schema-mge4khx8.js} +12 -12
  178. package/dist/chunks/{bus-mh28new4.js → schema-mh28new4.js} +2 -2
  179. package/dist/chunks/{bus-9thznc6f.js → schema-mmjdvscj.js} +6 -6
  180. package/dist/chunks/{bus-mnb85w6b.js → schema-mnb85w6b.js} +2 -2
  181. package/dist/chunks/{bus-xg45bpe0.js → schema-mtdnc27f.js} +23 -25
  182. package/dist/chunks/{bus-3jxrc0qq.js → schema-mtwyx2kp.js} +3 -3
  183. package/dist/chunks/{bus-mwceq5am.js → schema-mwceq5am.js} +1 -1
  184. package/dist/chunks/{bus-mxvw03gv.js → schema-mxvw03gv.js} +1 -1
  185. package/dist/chunks/{bus-d9a0aqm5.js → schema-n9e07w6s.js} +25 -25
  186. package/dist/chunks/{bus-qyzajttf.js → schema-nbfw6jpr.js} +8 -8
  187. package/dist/chunks/{bus-dwn7kn0q.js → schema-ndw42r8n.js} +65 -65
  188. package/dist/chunks/{bus-nesb2rcz.js → schema-nesb2rcz.js} +2 -2
  189. package/dist/chunks/{bus-nr76rjj3.js → schema-nr76rjj3.js} +2 -2
  190. package/dist/chunks/{bus-qgt32wwf.js → schema-nrkas8zm.js} +4 -4
  191. package/dist/chunks/{bus-0v9t0j92.js → schema-nt3351yh.js} +15 -15
  192. package/dist/chunks/{bus-ck1pqn60.js → schema-nvz6n7yp.js} +25 -17
  193. package/dist/chunks/{bus-nzrjycs5.js → schema-nzrjycs5.js} +1 -1
  194. package/dist/chunks/{bus-p27xxkqg.js → schema-p27xxkqg.js} +3 -3
  195. package/dist/chunks/{bus-pfqehjmy.js → schema-pfqehjmy.js} +2 -2
  196. package/dist/chunks/{bus-a3p3qcfz.js → schema-pgex9pvk.js} +2 -2
  197. package/dist/chunks/{bus-pq4b4pqk.js → schema-pq4b4pqk.js} +2 -2
  198. package/dist/chunks/{bus-jqkpryhn.js → schema-q07sa4nq.js} +4 -4
  199. package/dist/chunks/{bus-jyf48vpz.js → schema-qcpexbr2.js} +1 -1
  200. package/dist/chunks/{bus-qe0d689s.js → schema-qe0d689s.js} +2 -2
  201. package/dist/chunks/{bus-f2kz495y.js → schema-qhdqjp31.js} +7 -8
  202. package/dist/chunks/{bus-ftqx1cne.js → schema-r14kbnc4.js} +8 -13
  203. package/dist/chunks/{bus-r2sj0wvy.js → schema-r211gje0.js} +8 -8
  204. package/dist/chunks/{bus-r3k9abhd.js → schema-r3k9abhd.js} +2 -2
  205. package/dist/chunks/{bus-x6ts3ckt.js → schema-r6v38kgd.js} +9 -9
  206. package/dist/chunks/{bus-f9et6cts.js → schema-r7qg3fv7.js} +26 -5
  207. package/dist/chunks/{bus-awwx6pea.js → schema-r9f1y3a1.js} +9 -9
  208. package/dist/chunks/{bus-23pj99w1.js → schema-r9m9r1k0.js} +5 -5
  209. package/dist/chunks/{bus-h8ecejt5.js → schema-rahat93a.js} +1 -1
  210. package/dist/chunks/{bus-7yf7nmr6.js → schema-rbzab1ws.js} +2 -2
  211. package/dist/chunks/{bus-706a4azd.js → schema-rfbm65k8.js} +1 -1
  212. package/dist/chunks/{bus-t30cm89f.js → schema-rhr8bscf.js} +8 -8
  213. package/dist/chunks/{bus-phkhjjkz.js → schema-rm6e9qn4.js} +15 -15
  214. package/dist/chunks/{bus-jt4wm1df.js → schema-rn9r0ddn.js} +2 -2
  215. package/dist/chunks/{bus-d1vv73bz.js → schema-rpvypsvk.js} +4 -4
  216. package/dist/chunks/{bus-ryap75b3.js → schema-ryap75b3.js} +1 -1
  217. package/dist/chunks/{bus-r1kmqz8y.js → schema-s123x8qa.js} +4 -4
  218. package/dist/chunks/{bus-s33fw6zm.js → schema-s33fw6zm.js} +1 -1
  219. package/dist/chunks/{bus-e9yfe4g9.js → schema-s4hn1693.js} +11 -9
  220. package/dist/chunks/{bus-80ngqr8j.js → schema-s7tvvea7.js} +8 -8
  221. package/dist/chunks/{bus-0em3xb1n.js → schema-sb6cavh7.js} +44 -44
  222. package/dist/chunks/{bus-smpeg8c9.js → schema-smpeg8c9.js} +2 -2
  223. package/dist/chunks/{bus-sw84ckhj.js → schema-sw84ckhj.js} +1 -1
  224. package/dist/chunks/{bus-dman5pj0.js → schema-swj2q685.js} +120 -132
  225. package/dist/chunks/{bus-t14kykx1.js → schema-t14kykx1.js} +1 -1
  226. package/dist/chunks/{bus-t066q9hw.js → schema-tb33ng7x.js} +2 -2
  227. package/dist/chunks/{bus-w7shx321.js → schema-tg2wc1h2.js} +3 -3
  228. package/dist/chunks/{bus-thstd87d.js → schema-thstd87d.js} +1 -1
  229. package/dist/chunks/{bus-b25zdeh7.js → schema-tjjf1q77.js} +1 -1
  230. package/dist/chunks/{bus-kc4zdy65.js → schema-tpennrrf.js} +2 -2
  231. package/dist/chunks/{bus-v2wshkax.js → schema-v2wshkax.js} +1 -1
  232. package/dist/chunks/{bus-7vtcgg65.js → schema-v3sehd45.js} +1 -1
  233. package/dist/chunks/{bus-95jpn1bs.js → schema-v6nebarc.js} +4 -4
  234. package/dist/chunks/{bus-v80zsxnb.js → schema-v80zsxnb.js} +1 -1
  235. package/dist/chunks/{bus-9bpmq09z.js → schema-v888f2m4.js} +93 -89
  236. package/dist/chunks/{bus-v972xay6.js → schema-v972xay6.js} +1 -1
  237. package/dist/chunks/{bus-v9bfv94f.js → schema-v9bfv94f.js} +1 -1
  238. package/dist/chunks/{bus-ded9e5ma.js → schema-vmvzq9kn.js} +31 -33
  239. package/dist/chunks/{bus-vd085d0a.js → schema-vq63px7f.js} +23 -27
  240. package/dist/chunks/{bus-f05p34aa.js → schema-vqbmgfq1.js} +3 -3
  241. package/dist/chunks/{bus-d88ta3k5.js → schema-vrnna8ef.js} +8 -8
  242. package/dist/chunks/{bus-vz89hfgr.js → schema-vz89hfgr.js} +1 -1
  243. package/dist/chunks/{bus-wd268jeg.js → schema-wd268jeg.js} +1 -1
  244. package/dist/chunks/{bus-bx2a89z7.js → schema-wk54z6sh.js} +20 -16
  245. package/dist/chunks/{bus-wmxdh12w.js → schema-wmxdh12w.js} +1 -1
  246. package/dist/chunks/{bus-wps8gh8n.js → schema-wps8gh8n.js} +2 -2
  247. package/dist/chunks/{bus-dq22jep7.js → schema-wqvb4wbw.js} +34 -21
  248. package/dist/chunks/{bus-zgz5w7jt.js → schema-xc83wxk6.js} +11 -11
  249. package/dist/chunks/{bus-xczfw7dq.js → schema-xczfw7dq.js} +1 -1
  250. package/dist/chunks/{bus-xgv25zxy.js → schema-xgv25zxy.js} +1 -1
  251. package/dist/chunks/{bus-xhz3jyrc.js → schema-xt0068v8.js} +4 -6
  252. package/dist/chunks/{bus-05egcjvj.js → schema-xty1ggdh.js} +5 -5
  253. package/dist/chunks/{bus-xwftk1fd.js → schema-xwftk1fd.js} +2 -2
  254. package/dist/chunks/{bus-xxpvz42q.js → schema-xxpvz42q.js} +3 -3
  255. package/dist/chunks/{bus-y0x38cee.js → schema-y0x38cee.js} +1 -1
  256. package/dist/chunks/{bus-y198y2ra.js → schema-y198y2ra.js} +1 -1
  257. package/dist/chunks/{bus-4qce6znw.js → schema-y4vhttwz.js} +10 -16
  258. package/dist/chunks/{bus-y67x6rf6.js → schema-y67x6rf6.js} +1 -1
  259. package/dist/chunks/{bus-y8rs54ne.js → schema-y8rs54ne.js} +1 -1
  260. package/dist/chunks/{bus-y980s7ka.js → schema-y980s7ka.js} +3 -3
  261. package/dist/chunks/{bus-a65h300v.js → schema-ybhfpy64.js} +5 -3
  262. package/dist/chunks/{bus-yf0knd5z.js → schema-yf0knd5z.js} +2 -2
  263. package/dist/chunks/{bus-9d2xhdr4.js → schema-ygy0xbqa.js} +6 -3
  264. package/dist/chunks/{bus-vyw6gc2g.js → schema-yqydgc4n.js} +11 -9
  265. package/dist/chunks/{bus-7q3nz0jj.js → schema-yv6n70q9.js} +18 -14
  266. package/dist/chunks/{bus-ven12e56.js → schema-z50xyfn5.js} +8 -8
  267. package/dist/chunks/{bus-j9hz4v7z.js → schema-z5t17bvd.js} +8 -8
  268. package/dist/chunks/{bus-pqtsv9by.js → schema-z7z53gbn.js} +9 -9
  269. package/dist/chunks/{bus-ecxv0vtt.js → schema-z8fm0r70.js} +3 -0
  270. package/dist/chunks/{bus-zbqqnp0n.js → schema-zbqqnp0n.js} +1 -1
  271. package/dist/chunks/{bus-zdkg1k91.js → schema-zdkg1k91.js} +1 -1
  272. package/dist/chunks/{bus-zfxc0ze5.js → schema-zfxc0ze5.js} +1 -1
  273. package/dist/chunks/{bus-5hnhk0jf.js → schema-zwedh6rp.js} +6 -6
  274. package/dist/chunks/{bus-zxe9jjhn.js → schema-zxe9jjhn.js} +2 -2
  275. package/dist/codemode/catalog.js +2 -2
  276. package/dist/codemode/instructions.js +4 -4
  277. package/dist/codemode/tool.js +3 -3
  278. package/dist/command.js +99 -98
  279. package/dist/config/markdown.js +2 -2
  280. package/dist/config/normalize.js +20 -20
  281. package/dist/config/plugin/agent.js +132 -131
  282. package/dist/config/plugin/command.js +129 -128
  283. package/dist/config/plugin/compaction.js +168 -170
  284. package/dist/config/plugin/entry-observer.js +119 -0
  285. package/dist/config/plugin/formatter.js +117 -115
  286. package/dist/config/plugin/image.js +128 -126
  287. package/dist/config/plugin/instruction.js +88 -87
  288. package/dist/config/plugin/location-watcher.js +115 -113
  289. package/dist/config/plugin/mcp.js +125 -124
  290. package/dist/config/plugin/policy.js +114 -112
  291. package/dist/config/plugin/provider.js +113 -111
  292. package/dist/config/plugin/reference.js +117 -115
  293. package/dist/config/plugin/shell.js +116 -114
  294. package/dist/config/plugin/skill-file.js +105 -104
  295. package/dist/config/plugin/skill.js +135 -134
  296. package/dist/config/plugin/snapshot.js +115 -113
  297. package/dist/config/plugin/source.js +112 -111
  298. package/dist/config/plugin/tool-output.js +117 -115
  299. package/dist/config/plugin/websearch.js +113 -111
  300. package/dist/config/variable.js +4 -4
  301. package/dist/config.js +111 -110
  302. package/dist/credential/sql.js +3 -3
  303. package/dist/credential.js +71 -70
  304. package/dist/database/database.js +68 -67
  305. package/dist/database/drizzle/effect-sqlite/driver.js +16 -16
  306. package/dist/database/drizzle/effect-sqlite/index.js +16 -16
  307. package/dist/database/drizzle/effect-sqlite/migrator.js +15 -15
  308. package/dist/database/drizzle/effect-sqlite/session.js +15 -15
  309. package/dist/database/drizzle/index.js +18 -18
  310. package/dist/database/drizzle/internal/drizzle-utils.js +2 -2
  311. package/dist/database/drizzle/sqlite-core/effect/count.js +2 -2
  312. package/dist/database/drizzle/sqlite-core/effect/db.js +10 -10
  313. package/dist/database/drizzle/sqlite-core/effect/delete.js +3 -3
  314. package/dist/database/drizzle/sqlite-core/effect/index.js +22 -22
  315. package/dist/database/drizzle/sqlite-core/effect/insert.js +3 -3
  316. package/dist/database/drizzle/sqlite-core/effect/query.js +2 -2
  317. package/dist/database/drizzle/sqlite-core/effect/raw.js +2 -2
  318. package/dist/database/drizzle/sqlite-core/effect/select.js +3 -3
  319. package/dist/database/drizzle/sqlite-core/effect/session.js +14 -14
  320. package/dist/database/drizzle/sqlite-core/effect/update.js +3 -3
  321. package/dist/database/drizzle/up-migrations/effect-sqlite.js +4 -4
  322. package/dist/database/drizzle/up-migrations/sqlite.js +2 -2
  323. package/dist/database/drizzle/up-migrations/utils.js +2 -2
  324. package/dist/database/drizzle.js +19 -19
  325. package/dist/database/migration/20260127222353_familiar_lady_ursula.js +2 -2
  326. package/dist/database/migration/20260211171708_add_project_commands.js +2 -2
  327. package/dist/database/migration/20260213144116_wakeful_the_professor.js +2 -2
  328. package/dist/database/migration/20260225215848_workspace.js +2 -2
  329. package/dist/database/migration/20260227213759_add_session_workspace_id.js +2 -2
  330. package/dist/database/migration/20260228203230_blue_harpoon.js +2 -2
  331. package/dist/database/migration/20260303231226_add_workspace_fields.js +2 -2
  332. package/dist/database/migration/20260309230000_move_org_to_state.js +2 -2
  333. package/dist/database/migration/20260312043431_session_message_cursor.js +2 -2
  334. package/dist/database/migration/20260323234822_events.js +2 -2
  335. package/dist/database/migration/20260410174513_workspace-name.js +2 -2
  336. package/dist/database/migration/20260413175956_chief_energizer.js +2 -2
  337. package/dist/database/migration/20260423070820_add_icon_url_override.js +2 -2
  338. package/dist/database/migration/20260427172553_slow_nightmare.js +2 -2
  339. package/dist/database/migration/20260428004200_add_session_path.js +2 -2
  340. package/dist/database/migration/20260501142318_next_venus.js +2 -2
  341. package/dist/database/migration/20260504145000_add_sync_owner.js +2 -2
  342. package/dist/database/migration/20260507164347_add_workspace_time.js +2 -2
  343. package/dist/database/migration/20260510033149_session_usage.js +2 -2
  344. package/dist/database/migration/20260511000411_data_migration_state.js +2 -2
  345. package/dist/database/migration/20260511173437_session-metadata.js +2 -2
  346. package/dist/database/migration/20260601010001_normalize_storage_paths.js +2 -2
  347. package/dist/database/migration/20260601202201_amazing_prowler.js +2 -2
  348. package/dist/database/migration/20260602002951_lowly_union_jack.js +2 -2
  349. package/dist/database/migration/20260602182828_add_project_directories.js +2 -2
  350. package/dist/database/migration/20260603001617_session_message_projection_indexes.js +2 -2
  351. package/dist/database/migration/20260603040000_session_message_projection_order.js +2 -2
  352. package/dist/database/migration/20260603141458_session_input_inbox.js +2 -2
  353. package/dist/database/migration/20260603160727_jittery_ezekiel_stane.js +2 -2
  354. package/dist/database/migration/20260604172448_event_sourced_session_input.js +2 -2
  355. package/dist/database/migration/20260605003541_add_session_context_snapshot.js +2 -2
  356. package/dist/database/migration/20260605042240_add_context_epoch_agent.js +2 -2
  357. package/dist/database/migration/20260611035744_credential.js +2 -2
  358. package/dist/database/migration/20260611192811_lush_chimera.js +2 -2
  359. package/dist/database/migration/20260612174303_project_dir_strategy.js +2 -2
  360. package/dist/database/migration/20260622142730_simplify_session_context_epoch.js +2 -2
  361. package/dist/database/migration/20260622170816_reset_v2_session_state.js +2 -2
  362. package/dist/database/migration/20260622202450_simplify_session_input.js +2 -2
  363. package/dist/database/migration/20260804233008_loose_psylocke.js +2 -2
  364. package/dist/database/migration/20260805200742_import_legacy_credentials.js +2 -2
  365. package/dist/database/migration/20260808023530_workspace_domain.js +2 -2
  366. package/dist/database/migration/20260811161259_execution_claim_attempts.js +2 -2
  367. package/dist/database/migration/20260812181746_session_inbox.js +2 -2
  368. package/dist/database/migration/20260812213948_worktree.js +2 -2
  369. package/dist/database/migration/20260819222447_session_viewed_state.js +7 -0
  370. package/dist/database/migration.gen.js +47 -46
  371. package/dist/database/migration.js +49 -48
  372. package/dist/database/path.js +3 -3
  373. package/dist/database/schema.gen.js +2 -2
  374. package/dist/database/schema.sql.js +2 -2
  375. package/dist/database/sqlite.bun.js +2 -2
  376. package/dist/database/sqlite.js +2 -2
  377. package/dist/database/sqlite.node.js +2 -2
  378. package/dist/database/sqlite.workerd.js +4 -24
  379. package/dist/database/v1-migration.bun.js +80 -79
  380. package/dist/database/v1-migration.js +2 -2
  381. package/dist/database/v1-migration.noop.js +1 -1
  382. package/dist/effect/app-node-builder.js +334 -338
  383. package/dist/effect/app-node-platform.js +3 -3
  384. package/dist/effect/keyed-mutex.js +2 -2
  385. package/dist/effect/websocket-constructor.js +2 -2
  386. package/dist/environment/driver.js +1 -1
  387. package/dist/environment/environment.js +89 -88
  388. package/dist/environment/exec-defaults.js +3 -3
  389. package/dist/environment/files.js +2 -2
  390. package/dist/environment/index.js +91 -90
  391. package/dist/environment/local.js +3 -3
  392. package/dist/environment/memory.js +3 -3
  393. package/dist/environment/unavailable.js +1 -1
  394. package/dist/event/sql.js +2 -2
  395. package/dist/event-logger.js +73 -72
  396. package/dist/file-mutation.js +90 -89
  397. package/dist/file-retention.js +2 -2
  398. package/dist/file.js +2 -2
  399. package/dist/filesystem/fff.bun.js +2 -2
  400. package/dist/filesystem/fff.js +2 -2
  401. package/dist/filesystem/fff.node.js +2 -2
  402. package/dist/filesystem/fff.workerd.js +2 -2
  403. package/dist/filesystem/ignore.js +1 -1
  404. package/dist/filesystem/location-watcher-policy.js +3 -3
  405. package/dist/filesystem/location-watcher.js +304 -305
  406. package/dist/filesystem/protected.js +2 -2
  407. package/dist/filesystem/search.js +94 -93
  408. package/dist/filesystem/watcher-binding.js +2 -2
  409. package/dist/filesystem/watcher.js +4 -4
  410. package/dist/filesystem.js +94 -93
  411. package/dist/form.js +72 -71
  412. package/dist/formatter/builtins.js +3 -3
  413. package/dist/formatter.js +83 -82
  414. package/dist/generate.js +87 -86
  415. package/dist/git.js +5 -5
  416. package/dist/github-copilot/chat/convert-to-openai-compatible-chat-messages.js +2 -2
  417. package/dist/github-copilot/chat/get-response-metadata.js +2 -2
  418. package/dist/github-copilot/chat/map-openai-compatible-finish-reason.js +2 -2
  419. package/dist/github-copilot/chat/openai-compatible-chat-language-model.js +8 -8
  420. package/dist/github-copilot/chat/openai-compatible-chat-options.js +2 -2
  421. package/dist/github-copilot/chat/openai-compatible-prepare-tools.js +2 -2
  422. package/dist/github-copilot/copilot-provider.js +21 -21
  423. package/dist/github-copilot/models.js +4 -4
  424. package/dist/github-copilot/openai-compatible-error.js +2 -2
  425. package/dist/github-copilot/responses/convert-to-openai-responses-input.js +3 -3
  426. package/dist/github-copilot/responses/map-openai-responses-finish-reason.js +2 -2
  427. package/dist/github-copilot/responses/openai-error.js +2 -2
  428. package/dist/github-copilot/responses/openai-responses-language-model.js +12 -12
  429. package/dist/github-copilot/responses/openai-responses-prepare-tools.js +7 -7
  430. package/dist/github-copilot/responses/tool/code-interpreter.js +2 -2
  431. package/dist/github-copilot/responses/tool/file-search.js +2 -2
  432. package/dist/github-copilot/responses/tool/image-generation.js +2 -2
  433. package/dist/github-copilot/responses/tool/local-shell.js +2 -2
  434. package/dist/github-copilot/responses/tool/web-search-preview.js +2 -2
  435. package/dist/github-copilot/responses/tool/web-search.js +2 -2
  436. package/dist/id/id.js +2 -2
  437. package/dist/image/photon-wasm.bun.js +1 -1
  438. package/dist/image/photon-wasm.node.js +1 -1
  439. package/dist/image/photon-wasm.workerd.js +1 -1
  440. package/dist/image/photon.js +96 -95
  441. package/dist/image.js +96 -95
  442. package/dist/instruction-discovery.js +75 -74
  443. package/dist/instructions/builtins.js +84 -83
  444. package/dist/instructions/index.js +2 -2
  445. package/dist/integration/connection.js +2 -2
  446. package/dist/integration.js +78 -77
  447. package/dist/job.js +4 -4
  448. package/dist/kv/sql.js +3 -3
  449. package/dist/kv.js +71 -70
  450. package/dist/location-mutation.js +82 -81
  451. package/dist/location-service-map.js +82 -81
  452. package/dist/location-services.js +329 -331
  453. package/dist/location.js +81 -80
  454. package/dist/mcp/client.js +98 -96
  455. package/dist/mcp/index.js +96 -95
  456. package/dist/mcp/instructions.js +126 -125
  457. package/dist/mcp/oauth.js +5 -4
  458. package/dist/mcp/stdio.js +90 -89
  459. package/dist/mime.js +2 -2
  460. package/dist/model-resolver.js +84 -83
  461. package/dist/model.js +3 -3
  462. package/dist/models-dev.js +78 -77
  463. package/dist/oauth/page.js +2 -2
  464. package/dist/permission/saved.js +82 -81
  465. package/dist/permission/sql.js +6 -6
  466. package/dist/permission.js +102 -101
  467. package/dist/plugin/agent.js +103 -102
  468. package/dist/plugin/command.js +82 -81
  469. package/dist/plugin/hooks.js +3 -3
  470. package/dist/plugin/host.js +165 -163
  471. package/dist/plugin/internal.js +298 -299
  472. package/dist/plugin/mcp-codemode-exclusion.js +2 -2
  473. package/dist/plugin/models-dev.js +79 -78
  474. package/dist/plugin/plan.js +108 -107
  475. package/dist/plugin/promise.js +2 -2
  476. package/dist/plugin/provider/alibaba.js +3 -3
  477. package/dist/plugin/provider/amazon-bedrock.js +3 -3
  478. package/dist/plugin/provider/anthropic.js +3 -3
  479. package/dist/plugin/provider/azure.js +119 -118
  480. package/dist/plugin/provider/cerebras.js +3 -3
  481. package/dist/plugin/provider/cloudflare-ai-gateway.js +120 -119
  482. package/dist/plugin/provider/cloudflare-workers-ai.js +120 -119
  483. package/dist/plugin/provider/cohere.js +3 -3
  484. package/dist/plugin/provider/configured.js +117 -116
  485. package/dist/plugin/provider/deepinfra.js +3 -3
  486. package/dist/plugin/provider/dynamic.js +2 -2
  487. package/dist/plugin/provider/factory.js +2 -2
  488. package/dist/plugin/provider/gateway.js +3 -3
  489. package/dist/plugin/provider/github-copilot.js +85 -84
  490. package/dist/plugin/provider/gitlab.js +4 -4
  491. package/dist/plugin/provider/google-vertex.js +3 -3
  492. package/dist/plugin/provider/groq.js +3 -3
  493. package/dist/plugin/provider/kilo.js +3 -3
  494. package/dist/plugin/provider/llmgateway.js +80 -79
  495. package/dist/plugin/provider/lmstudio.js +112 -111
  496. package/dist/plugin/provider/mistral.js +3 -3
  497. package/dist/plugin/provider/nvidia.js +3 -3
  498. package/dist/plugin/provider/ollama.js +112 -111
  499. package/dist/plugin/provider/openai-compatible.js +2 -2
  500. package/dist/plugin/provider/openai.js +82 -81
  501. package/dist/plugin/provider/opencode.js +96 -95
  502. package/dist/plugin/provider/openrouter.js +4 -4
  503. package/dist/plugin/provider/perplexity.js +3 -3
  504. package/dist/plugin/provider/sap-ai-core.js +3 -3
  505. package/dist/plugin/provider/snowflake-cortex.js +3 -3
  506. package/dist/plugin/provider/togetherai.js +3 -3
  507. package/dist/plugin/provider/venice.js +3 -3
  508. package/dist/plugin/provider/vercel.js +3 -3
  509. package/dist/plugin/provider/vllm.js +112 -111
  510. package/dist/plugin/provider/xai.js +81 -80
  511. package/dist/plugin/provider/zenmux.js +3 -3
  512. package/dist/plugin/provider.js +158 -157
  513. package/dist/plugin/runtime.js +154 -152
  514. package/dist/plugin/sdk.js +72 -71
  515. package/dist/plugin/skill.js +133 -132
  516. package/dist/plugin/supervisor-service.js +2 -2
  517. package/dist/plugin/supervisor.js +303 -304
  518. package/dist/plugin/system-prompt.js +2 -2
  519. package/dist/plugin/variant.js +4 -4
  520. package/dist/plugin/warming.js +113 -112
  521. package/dist/plugin/websearch/exa.js +4 -4
  522. package/dist/plugin/websearch/firecrawl.js +5 -5
  523. package/dist/plugin/websearch/index.js +9 -9
  524. package/dist/plugin/websearch/mcp.js +3 -3
  525. package/dist/plugin/websearch/parallel.js +5 -5
  526. package/dist/plugin/websearch/tavily.js +3 -3
  527. package/dist/plugin.js +166 -164
  528. package/dist/project/schema.js +3 -3
  529. package/dist/project/sql.js +5 -5
  530. package/dist/project.js +80 -79
  531. package/dist/provider.js +2 -2
  532. package/dist/pty/protocol.js +1 -1
  533. package/dist/pty/pty.bun.js +1 -1
  534. package/dist/pty/pty.node.js +1 -1
  535. package/dist/pty/pty.workerd.js +1 -1
  536. package/dist/pty/schema.js +2 -2
  537. package/dist/pty/ticket.js +73 -72
  538. package/dist/pty.js +87 -86
  539. package/dist/reference/instructions.js +80 -79
  540. package/dist/reference.js +78 -77
  541. package/dist/repository-cache.js +7 -7
  542. package/dist/repository.js +2 -2
  543. package/dist/ripgrep/binary.js +3 -3
  544. package/dist/ripgrep.js +92 -91
  545. package/dist/schema.js +2 -2
  546. package/dist/session/compaction.js +140 -143
  547. package/dist/session/context.js +310 -312
  548. package/dist/session/environment.js +3 -3
  549. package/dist/session/error.js +4 -4
  550. package/dist/session/event.js +2 -2
  551. package/dist/session/execution/restart.js +118 -117
  552. package/dist/session/execution.js +118 -117
  553. package/dist/session/generate-node.js +311 -313
  554. package/dist/session/generate.js +2 -2
  555. package/dist/session/history.js +82 -79
  556. package/dist/session/inbox.js +80 -79
  557. package/dist/session/info.js +90 -89
  558. package/dist/session/instruction-entry.js +83 -76
  559. package/dist/session/instruction-state.js +10 -10
  560. package/dist/session/instructions.js +99 -98
  561. package/dist/session/message-updater.js +4 -4
  562. package/dist/session/message.js +2 -2
  563. package/dist/session/model-request.js +136 -139
  564. package/dist/session/model-transport.js +5 -5
  565. package/dist/session/projector.js +93 -91
  566. package/dist/session/prompt-cache-diagnostics.js +2 -2
  567. package/dist/session/revert.js +88 -87
  568. package/dist/session/run-coordinator.js +2 -2
  569. package/dist/session/runner/index.js +87 -86
  570. package/dist/session/runner/llm.js +316 -318
  571. package/dist/session/runner/max-steps.js +2 -2
  572. package/dist/session/runner/model.js +86 -85
  573. package/dist/session/runner/publish-llm-event.js +4 -4
  574. package/dist/session/runner/retry.js +75 -74
  575. package/dist/session/runner/to-llm-message.js +2 -2
  576. package/dist/session/schema.js +2 -2
  577. package/dist/session/sql.js +6 -6
  578. package/dist/session/store.js +98 -97
  579. package/dist/session/system-prompt.js +2 -2
  580. package/dist/session/title.js +138 -141
  581. package/dist/session/to-session-error.js +113 -112
  582. package/dist/session/transfer.js +166 -155
  583. package/dist/session/usage.js +2 -2
  584. package/dist/session.js +155 -151
  585. package/dist/shell/parse.js +5 -5
  586. package/dist/shell/parser-wasm.bun.js +1 -1
  587. package/dist/shell/parser-wasm.node.js +1 -1
  588. package/dist/shell/parser-wasm.workerd.js +1 -1
  589. package/dist/{chunks/index-8jqmqb92.js → shell/scan.js} +6 -6
  590. package/dist/shell/select.js +4 -4
  591. package/dist/shell.js +97 -96
  592. package/dist/skill/discovery.js +3 -3
  593. package/dist/skill/instructions.js +104 -103
  594. package/dist/skill.js +103 -102
  595. package/dist/snapshot.js +83 -82
  596. package/dist/state.js +2 -2
  597. package/dist/tool/html-markdown.js +2 -2
  598. package/dist/tool/http-body.js +2 -2
  599. package/dist/tool/mcp.js +125 -124
  600. package/dist/tool/plugin/edit.js +112 -111
  601. package/dist/tool/plugin/file-diff.js +2 -2
  602. package/dist/tool/plugin/glob.js +114 -113
  603. package/dist/tool/plugin/grep.js +114 -113
  604. package/dist/tool/plugin/patch.js +112 -111
  605. package/dist/tool/plugin/question.js +104 -103
  606. package/dist/tool/plugin/read.js +117 -116
  607. package/dist/tool/plugin/shell.js +184 -182
  608. package/dist/tool/plugin/skill.js +104 -103
  609. package/dist/tool/plugin/subagent.js +181 -179
  610. package/dist/tool/plugin/webfetch.js +105 -104
  611. package/dist/tool/plugin/websearch.js +107 -106
  612. package/dist/tool/plugin/write.js +112 -111
  613. package/dist/tool/read-filesystem.js +96 -95
  614. package/dist/tool/runtime.js +2 -2
  615. package/dist/tool-output.js +5 -5
  616. package/dist/tool.js +118 -117
  617. package/dist/types/config/plugin/entry-observer.d.ts +7 -0
  618. package/dist/types/database/migration/20260819222447_session_viewed_state.d.ts +3 -0
  619. package/dist/types/location-service-map.d.ts +2 -2
  620. package/dist/types/location-services.d.ts +1 -1
  621. package/dist/types/plugin/host.d.ts +26 -25
  622. package/dist/types/plugin/sdk.d.ts +1 -1
  623. package/dist/types/plugin.d.ts +2 -1
  624. package/dist/types/session/history.d.ts +345 -0
  625. package/dist/types/session/instruction-entry.d.ts +20 -0
  626. package/dist/types/session/model-request.d.ts +1 -1
  627. package/dist/types/session/schema.d.ts +3 -0
  628. package/dist/types/session/sql.d.ts +50 -1
  629. package/dist/types/session/transfer.d.ts +3 -0
  630. package/dist/types/session.d.ts +20 -11
  631. package/dist/types/shell/scan.d.ts +17 -0
  632. package/dist/types/skill.d.ts +1 -1
  633. package/dist/types/state.d.ts +4 -0
  634. package/dist/util/array.js +1 -1
  635. package/dist/util/error.js +2 -2
  636. package/dist/util/identifier.js +1 -1
  637. package/dist/util/iife.js +2 -2
  638. package/dist/util/lazy.js +2 -2
  639. package/dist/util/process-lock-ffi.bun.js +1 -1
  640. package/dist/util/process-lock-ffi.node.js +1 -1
  641. package/dist/util/process-lock-ffi.workerd.js +1 -1
  642. package/dist/util/process-lock.js +2 -3
  643. package/dist/util/slug.js +2 -2
  644. package/dist/util/token.js +2 -2
  645. package/dist/util/which.js +2 -2
  646. package/dist/util/wildcard.js +2 -2
  647. package/dist/v1/config/agent.js +4 -4
  648. package/dist/v1/config/attachment.js +3 -3
  649. package/dist/v1/config/command.js +2 -2
  650. package/dist/v1/config/config.js +15 -15
  651. package/dist/v1/config/error.js +3 -3
  652. package/dist/v1/config/formatter.js +2 -2
  653. package/dist/v1/config/layout.js +2 -2
  654. package/dist/v1/config/lsp.js +2 -2
  655. package/dist/v1/config/mcp.js +3 -3
  656. package/dist/v1/config/migrate.js +19 -19
  657. package/dist/v1/config/permission.js +2 -2
  658. package/dist/v1/config/plugin.js +2 -2
  659. package/dist/v1/config/provider-options.js +2 -2
  660. package/dist/v1/config/provider.js +3 -3
  661. package/dist/v1/config/server.js +3 -3
  662. package/dist/v1/config/skills.js +2 -2
  663. package/dist/v1/permission.js +1 -1
  664. package/dist/vcs/git.js +3 -3
  665. package/dist/vcs/hg.js +3 -3
  666. package/dist/vcs/patch.js +2 -2
  667. package/dist/vcs.js +85 -84
  668. package/dist/websearch.js +76 -75
  669. package/dist/wellknown/plugin.js +76 -75
  670. package/dist/wellknown.js +75 -74
  671. package/dist/workspace/driver.js +2 -2
  672. package/dist/workspace/sql.js +2 -2
  673. package/dist/workspace.js +72 -71
  674. package/dist/worktree/directory.js +3 -3
  675. package/dist/worktree/git.js +7 -7
  676. package/dist/worktree/sql.js +6 -6
  677. package/dist/worktree.js +85 -84
  678. package/package.json +9 -10
  679. package/dist/chunks/bus-1xksxgzs.js +0 -24
  680. package/dist/chunks/bus-52jzav25.js +0 -13
  681. package/dist/chunks/bus-93qdgxxd.js +0 -30
  682. package/dist/chunks/bus-vxz5qdmp.js +0 -31
  683. package/dist/session/model-headers.js +0 -11
  684. package/dist/session/model-hook.js +0 -11
  685. package/dist/session/model-http.js +0 -11
  686. package/dist/session/prompt-cache-key.js +0 -10
  687. package/dist/types/session/model-headers.d.ts +0 -12
  688. package/dist/types/session/model-hook.d.ts +0 -12
  689. package/dist/types/session/model-http.d.ts +0 -11
  690. package/dist/types/session/prompt-cache-key.d.ts +0 -3
  691. /package/dist/chunks/{bus-0cgt0xh2.js → schema-0cgt0xh2.js} +0 -0
  692. /package/dist/chunks/{bus-0f48qthw.js → schema-0f48qthw.js} +0 -0
  693. /package/dist/chunks/{bus-0zz82cjq.js → schema-0zz82cjq.js} +0 -0
  694. /package/dist/chunks/{bus-1fb7bmpf.js → schema-1fb7bmpf.js} +0 -0
  695. /package/dist/chunks/{bus-1wcz8fvj.js → schema-1wcz8fvj.js} +0 -0
  696. /package/dist/chunks/{bus-2qdx6zz3.js → schema-2qdx6zz3.js} +0 -0
  697. /package/dist/chunks/{bus-3c4nztf9.js → schema-3c4nztf9.js} +0 -0
  698. /package/dist/chunks/{bus-3g3rpp2x.js → schema-3g3rpp2x.js} +0 -0
  699. /package/dist/chunks/{bus-3q6gbwmd.js → schema-3q6gbwmd.js} +0 -0
  700. /package/dist/chunks/{bus-3w3ybtfd.js → schema-3w3ybtfd.js} +0 -0
  701. /package/dist/chunks/{bus-47ty4mvs.js → schema-47ty4mvs.js} +0 -0
  702. /package/dist/chunks/{bus-4b2tz2m9.js → schema-4b2tz2m9.js} +0 -0
  703. /package/dist/chunks/{bus-4zg0gww9.js → schema-4zg0gww9.js} +0 -0
  704. /package/dist/chunks/{bus-5a5ch9ts.js → schema-5a5ch9ts.js} +0 -0
  705. /package/dist/chunks/{bus-5va1yh78.js → schema-5va1yh78.js} +0 -0
  706. /package/dist/chunks/{bus-69qrqpw0.js → schema-69qrqpw0.js} +0 -0
  707. /package/dist/chunks/{bus-6yt963b8.js → schema-6yt963b8.js} +0 -0
  708. /package/dist/chunks/{bus-7n9qwqk4.js → schema-7n9qwqk4.js} +0 -0
  709. /package/dist/chunks/{bus-8nn8kqcn.js → schema-8nn8kqcn.js} +0 -0
  710. /package/dist/chunks/{bus-8sj3ajy5.js → schema-8sj3ajy5.js} +0 -0
  711. /package/dist/chunks/{bus-8w9tzfz1.js → schema-8w9tzfz1.js} +0 -0
  712. /package/dist/chunks/{bus-906y0b6d.js → schema-906y0b6d.js} +0 -0
  713. /package/dist/chunks/{bus-9dct5xhx.js → schema-9dct5xhx.js} +0 -0
  714. /package/dist/chunks/{bus-9sdtsapf.js → schema-9sdtsapf.js} +0 -0
  715. /package/dist/chunks/{bus-a02svayp.js → schema-a02svayp.js} +0 -0
  716. /package/dist/chunks/{bus-a83yvq99.js → schema-a83yvq99.js} +0 -0
  717. /package/dist/chunks/{bus-aqg9wnx6.js → schema-aqg9wnx6.js} +0 -0
  718. /package/dist/chunks/{bus-ayevdmef.js → schema-ayevdmef.js} +0 -0
  719. /package/dist/chunks/{bus-b02txbh8.js → schema-b02txbh8.js} +0 -0
  720. /package/dist/chunks/{bus-bbqs2y60.js → schema-bbqs2y60.js} +0 -0
  721. /package/dist/chunks/{bus-brsh5f65.js → schema-brsh5f65.js} +0 -0
  722. /package/dist/chunks/{bus-bxdhjb3y.js → schema-bxdhjb3y.js} +0 -0
  723. /package/dist/chunks/{bus-c77ad0vh.js → schema-c77ad0vh.js} +0 -0
  724. /package/dist/chunks/{bus-cm67rqy2.js → schema-cm67rqy2.js} +0 -0
  725. /package/dist/chunks/{bus-dbah77c1.js → schema-dbah77c1.js} +0 -0
  726. /package/dist/chunks/{bus-df3v2q6j.js → schema-df3v2q6j.js} +0 -0
  727. /package/dist/chunks/{bus-dhcq6c44.js → schema-dhcq6c44.js} +0 -0
  728. /package/dist/chunks/{bus-dht5baf0.js → schema-dht5baf0.js} +0 -0
  729. /package/dist/chunks/{bus-dkmkay92.js → schema-dkmkay92.js} +0 -0
  730. /package/dist/chunks/{bus-ehj9csmv.js → schema-ehj9csmv.js} +0 -0
  731. /package/dist/chunks/{bus-em6xpscd.js → schema-em6xpscd.js} +0 -0
  732. /package/dist/chunks/{bus-emmqknsm.js → schema-emmqknsm.js} +0 -0
  733. /package/dist/chunks/{bus-ezs3tagn.js → schema-ezs3tagn.js} +0 -0
  734. /package/dist/chunks/{bus-f14r7hfz.js → schema-f14r7hfz.js} +0 -0
  735. /package/dist/chunks/{bus-f4cp4g4a.js → schema-f4cp4g4a.js} +0 -0
  736. /package/dist/chunks/{bus-f84sxdqn.js → schema-f84sxdqn.js} +0 -0
  737. /package/dist/chunks/{bus-faypg4r1.js → schema-faypg4r1.js} +0 -0
  738. /package/dist/chunks/{bus-gd5xeqc2.js → schema-gd5xeqc2.js} +0 -0
  739. /package/dist/chunks/{bus-ghm4673n.js → schema-ghm4673n.js} +0 -0
  740. /package/dist/chunks/{bus-ghwjy7my.js → schema-ghwjy7my.js} +0 -0
  741. /package/dist/chunks/{bus-gy500k2r.js → schema-gy500k2r.js} +0 -0
  742. /package/dist/chunks/{bus-hzeg9cfr.js → schema-hzeg9cfr.js} +0 -0
  743. /package/dist/chunks/{bus-j07kk359.js → schema-j07kk359.js} +0 -0
  744. /package/dist/chunks/{bus-jve7t217.js → schema-jve7t217.js} +0 -0
  745. /package/dist/chunks/{bus-kpdbz7gn.js → schema-kpdbz7gn.js} +0 -0
  746. /package/dist/chunks/{bus-kxy11nzk.js → schema-kxy11nzk.js} +0 -0
  747. /package/dist/chunks/{bus-kyyqvx4s.js → schema-kyyqvx4s.js} +0 -0
  748. /package/dist/chunks/{bus-m8cbvarh.js → schema-m8cbvarh.js} +0 -0
  749. /package/dist/chunks/{bus-ma07p6tt.js → schema-ma07p6tt.js} +0 -0
  750. /package/dist/chunks/{bus-ma60vzgv.js → schema-ma60vzgv.js} +0 -0
  751. /package/dist/chunks/{bus-n3m50c2t.js → schema-n3m50c2t.js} +0 -0
  752. /package/dist/chunks/{bus-nkm1m8dz.js → schema-nkm1m8dz.js} +0 -0
  753. /package/dist/chunks/{bus-nsc0c3zb.js → schema-nsc0c3zb.js} +0 -0
  754. /package/dist/chunks/{bus-qaarhjrp.js → schema-qaarhjrp.js} +0 -0
  755. /package/dist/chunks/{bus-qc167nrn.js → schema-qc167nrn.js} +0 -0
  756. /package/dist/chunks/{bus-qp95y4jb.js → schema-qp95y4jb.js} +0 -0
  757. /package/dist/chunks/{bus-r8f4w671.js → schema-r8f4w671.js} +0 -0
  758. /package/dist/chunks/{bus-rdfev9jy.js → schema-rdfev9jy.js} +0 -0
  759. /package/dist/chunks/{bus-rvfvac9x.js → schema-rvfvac9x.js} +0 -0
  760. /package/dist/chunks/{bus-s7whb9gt.js → schema-s7whb9gt.js} +0 -0
  761. /package/dist/chunks/{bus-se76j685.js → schema-se76j685.js} +0 -0
  762. /package/dist/chunks/{bus-sem2g21k.js → schema-sem2g21k.js} +0 -0
  763. /package/dist/chunks/{bus-tmb1f636.js → schema-tmb1f636.js} +0 -0
  764. /package/dist/chunks/{bus-ttxf0gsy.js → schema-ttxf0gsy.js} +0 -0
  765. /package/dist/chunks/{bus-tvmhrvfj.js → schema-tvmhrvfj.js} +0 -0
  766. /package/dist/chunks/{bus-v2adqbbe.js → schema-v2adqbbe.js} +0 -0
  767. /package/dist/chunks/{bus-vkvb1sb3.js → schema-vkvb1sb3.js} +0 -0
  768. /package/dist/chunks/{bus-wj4sxzqa.js → schema-wj4sxzqa.js} +0 -0
  769. /package/dist/chunks/{bus-wwntjmk1.js → schema-wwntjmk1.js} +0 -0
  770. /package/dist/chunks/{bus-wyqjaaa5.js → schema-wyqjaaa5.js} +0 -0
  771. /package/dist/chunks/{bus-x4q807cx.js → schema-x4q807cx.js} +0 -0
  772. /package/dist/chunks/{bus-yrqrg4vp.js → schema-yrqrg4vp.js} +0 -0
  773. /package/dist/chunks/{bus-z47nswr2.js → schema-z47nswr2.js} +0 -0
  774. /package/dist/chunks/{bus-zsf8rs93.js → schema-zsf8rs93.js} +0 -0
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  exports_app
3
- } from "./bus-50jxp3hw.js";
3
+ } from "./schema-50jxp3hw.js";
4
4
  import {
5
5
  __export
6
- } from "./bus-rvfvac9x.js";
6
+ } from "./schema-rvfvac9x.js";
7
7
 
8
8
  // src/plugin/websearch/tavily.ts
9
9
  var exports_tavily = {};
@@ -61,10 +61,7 @@ var Plugin = define({
61
61
  chunks_per_source: 3,
62
62
  max_results: 8
63
63
  }));
64
- const response = yield* Effect.gen(function* () {
65
- const httpResponse = yield* HttpClient.filterStatusOk(http).execute(request);
66
- return yield* HttpClientResponse.schemaBodyJson(SearchResponse)(httpResponse);
67
- }).pipe(Effect.timeoutOrElse({
64
+ const response = yield* HttpClient.filterStatusOk(http).execute(request).pipe(Effect.flatMap(HttpClientResponse.schemaBodyJson(SearchResponse)), Effect.timeoutOrElse({
68
65
  duration: Duration.seconds(25),
69
66
  orElse: () => Effect.fail(new Error("Tavily web search request timed out"))
70
67
  }));
@@ -1,12 +1,12 @@
1
1
  import {
2
2
  exports_skill
3
- } from "./bus-704hbswx.js";
3
+ } from "./schema-fx6gxcwx.js";
4
4
  import {
5
5
  exports_instructions
6
- } from "./bus-ec8vrfw5.js";
6
+ } from "./schema-ec8vrfw5.js";
7
7
  import {
8
8
  __export
9
- } from "./bus-rvfvac9x.js";
9
+ } from "./schema-rvfvac9x.js";
10
10
 
11
11
  // src/skill/instructions.ts
12
12
  var exports_instructions2 = {};
@@ -62,8 +62,7 @@ var layer = Layer.effect(Service, Effect.gen(function* () {
62
62
  const agent = selection.info;
63
63
  if (!agent)
64
64
  return exports_instructions.empty;
65
- const permitted = exports_skill.available(yield* skills.list(), agent);
66
- const available = permitted.flatMap((skill) => skill.description === undefined || skill.autoinvoke === false ? [] : [{ id: skill.id, name: skill.name, description: skill.description }]).toSorted((a, b) => a.id.localeCompare(b.id));
65
+ const available = exports_skill.available(yield* skills.list(), agent).flatMap((skill) => skill.description === undefined || skill.autoinvoke === false ? [] : [{ id: skill.id, name: skill.name, description: skill.description }]).toSorted((a, b) => a.id.localeCompare(b.id));
67
66
  return exports_instructions.make({
68
67
  key: exports_instructions.Key.make("core/skill-guidance"),
69
68
  codec: Schema.toCodecJson(Schema.Array(Summary)),
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  __export
3
- } from "./bus-rvfvac9x.js";
3
+ } from "./schema-rvfvac9x.js";
4
4
 
5
5
  // src/database/v1-migration.ts
6
6
  var exports_v1_migration = {};
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  collectBoundedResponseBody
3
- } from "./bus-jve7t217.js";
3
+ } from "./schema-jve7t217.js";
4
4
  import {
5
5
  __export
6
- } from "./bus-rvfvac9x.js";
6
+ } from "./schema-rvfvac9x.js";
7
7
 
8
8
  // src/plugin/websearch/mcp.ts
9
9
  var exports_mcp = {};
@@ -21,7 +21,7 @@ var parseResponse = (body, result) => {
21
21
  const parse = (payload) => {
22
22
  const trimmed = payload.trim();
23
23
  if (!trimmed.startsWith("{"))
24
- return Effect.succeed(undefined);
24
+ return Effect.undefined;
25
25
  return decode(trimmed).pipe(Effect.map((response) => response.result));
26
26
  };
27
27
  return Effect.gen(function* () {
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  __export
3
- } from "./bus-rvfvac9x.js";
3
+ } from "./schema-rvfvac9x.js";
4
4
 
5
5
  // src/session/run-coordinator.ts
6
6
  var exports_run_coordinator = {};
@@ -12,7 +12,7 @@ import { Deferred, Effect, Exit, Fiber, FiberSet } from "effect";
12
12
  var make = (options) => Effect.gen(function* () {
13
13
  const executions = new Map;
14
14
  const fork = yield* FiberSet.makeRuntime();
15
- const loop = (key, execution, force) => Effect.suspend(() => options.drain(key, force, execution.scope)).pipe(Effect.flatMap(() => Effect.suspend(() => {
15
+ const loop = (key, execution, force) => Effect.suspend(() => options.drain(key, force, execution.scope)).pipe(Effect.andThen(Effect.suspend(() => {
16
16
  if (execution.stopping || execution.pendingWake === undefined)
17
17
  return Effect.void;
18
18
  execution.scope = execution.pendingWake;
@@ -1,21 +1,21 @@
1
- import {
2
- exports_runtime
3
- } from "./bus-3r3ecpec.js";
4
1
  import {
5
2
  exports_config
6
- } from "./bus-6dssp8bm.js";
3
+ } from "./schema-53xdmpnb.js";
4
+ import {
5
+ exports_runtime
6
+ } from "./schema-3x0rbcme.js";
7
7
  import {
8
8
  exports_permission
9
- } from "./bus-6k923qe9.js";
9
+ } from "./schema-gpj6jen2.js";
10
10
  import {
11
11
  exports_agent
12
- } from "./bus-n11z769x.js";
12
+ } from "./schema-kcbd8yt0.js";
13
13
  import {
14
14
  exports_schema
15
- } from "./bus-y8rs54ne.js";
15
+ } from "./schema-y8rs54ne.js";
16
16
  import {
17
17
  __export
18
- } from "./bus-rvfvac9x.js";
18
+ } from "./schema-rvfvac9x.js";
19
19
 
20
20
  // src/tool/plugin/subagent.ts
21
21
  var exports_subagent = {};
@@ -31,12 +31,16 @@ import { ToolFailure } from "@opencode-ai/ai";
31
31
  import { Effect, Schema, Scope } from "effect";
32
32
  var name = "subagent";
33
33
  var NO_TEXT = "Subagent completed without a text response.";
34
- var backgroundStarted = (sessionID) => [
35
- `The subagent is working in the background (sessionID: ${sessionID}). You will be notified automatically when it finishes.`,
36
- "DO NOT sleep, poll for progress, ask the subagent for status, or duplicate this subagent's work; avoid working with the same files or topics it is using.",
37
- "Work on non-overlapping tasks, or briefly tell the user what you launched and end your response."
38
- ].join(`
39
- `);
34
+ var backgroundResult = (sessionID) => ({
35
+ sessionID,
36
+ status: "running",
37
+ output: [
38
+ `The subagent is working in the background (sessionID: ${sessionID}). You will be notified automatically when it finishes.`,
39
+ "DO NOT sleep, poll for progress, ask the subagent for status, or duplicate this subagent's work; avoid working with the same files or topics it is using.",
40
+ "Work on non-overlapping tasks, or briefly tell the user what you launched and end your response."
41
+ ].join(`
42
+ `)
43
+ });
40
44
  var Input = Schema.Struct({
41
45
  agent: Schema.String.annotate({ description: "The type of specialized agent to use for this task" }),
42
46
  description: Schema.String.annotate({ description: "A short 3-5 word label for the task, displayed to the user" }),
@@ -176,22 +180,14 @@ ${text}
176
180
  if (background) {
177
181
  yield* runtime.job.background(info.id);
178
182
  yield* notifyWhenDone(context.sessionID, child.id, agent.name, input.description, info.started_at);
179
- return {
180
- sessionID: child.id,
181
- status: "running",
182
- output: backgroundStarted(child.id)
183
- };
183
+ return backgroundResult(child.id);
184
184
  }
185
185
  const result = yield* runtime.job.block({ id: child.id, sessionID: context.sessionID }).pipe(Effect.onInterrupt(() => Effect.all([runtime.session.interrupt(child.id), runtime.job.cancel(child.id)], {
186
186
  discard: true
187
187
  })));
188
188
  if (result?.type === "backgrounded") {
189
189
  yield* notifyWhenDone(context.sessionID, child.id, agent.name, input.description, result.info.started_at);
190
- return {
191
- sessionID: child.id,
192
- status: "running",
193
- output: backgroundStarted(child.id)
194
- };
190
+ return backgroundResult(child.id);
195
191
  }
196
192
  if (result?.info.status === "error")
197
193
  return yield* new ToolFailure({
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  exports_provider
3
- } from "./bus-sfbv6a2b.js";
3
+ } from "./schema-djkt4gex.js";
4
4
  import {
5
5
  __require
6
- } from "./bus-rvfvac9x.js";
6
+ } from "./schema-rvfvac9x.js";
7
7
 
8
8
  // src/plugin/provider/snowflake-cortex.ts
9
9
  import { Effect } from "effect";
@@ -21,7 +21,7 @@ function cortexFetch(upstream = fetch) {
21
21
  } catch {}
22
22
  }
23
23
  const response = await upstream(url, init);
24
- if (!response.ok && response.status === 400) {
24
+ if (response.status === 400) {
25
25
  try {
26
26
  const errorData = await response.clone().json();
27
27
  if (String(errorData.message || errorData.error || "").toLowerCase().includes("conversation complete")) {
@@ -1,19 +1,19 @@
1
1
  import {
2
2
  exports_location
3
- } from "./bus-19qgjfzv.js";
3
+ } from "./schema-j3ethsxz.js";
4
4
  import {
5
5
  exports_git
6
- } from "./bus-zjvgdt9p.js";
6
+ } from "./schema-b7hsw5bk.js";
7
7
  import {
8
8
  AbsolutePath,
9
9
  RelativePath
10
- } from "./bus-j07kk359.js";
10
+ } from "./schema-j07kk359.js";
11
11
  import {
12
12
  exports_state
13
- } from "./bus-f2kz495y.js";
13
+ } from "./schema-qhdqjp31.js";
14
14
  import {
15
15
  __export
16
- } from "./bus-rvfvac9x.js";
16
+ } from "./schema-rvfvac9x.js";
17
17
 
18
18
  // src/snapshot.ts
19
19
  var exports_snapshot = {};
@@ -139,7 +139,7 @@ var node = makeLocationNode({
139
139
  var noopLayer = Layer.succeed(Service, Service.of({
140
140
  transform: () => Effect.succeed({ dispose: Effect.void }),
141
141
  reload: () => Effect.void,
142
- capture: () => Effect.succeed(undefined),
142
+ capture: () => Effect.undefined,
143
143
  files: () => Effect.succeed([]),
144
144
  diff: () => Effect.succeed([]),
145
145
  restore: () => Effect.void
@@ -9,6 +9,7 @@ var bypassesProxy = (url, value) => {
9
9
  if (!value)
10
10
  return false;
11
11
  const port = url.port || (url.protocol === "wss:" ? "443" : "80");
12
+ const hostname = url.hostname.toLowerCase();
12
13
  return value.split(/[\s,]+/).some((entry) => {
13
14
  if (!entry)
14
15
  return false;
@@ -18,7 +19,6 @@ var bypassesProxy = (url, value) => {
18
19
  if (match?.[2] && match[2] !== port)
19
20
  return false;
20
21
  const host = (match?.[1] ?? entry).toLowerCase().replace(/^\*/, "");
21
- const hostname = url.hostname.toLowerCase();
22
22
  return host.startsWith(".") ? hostname.endsWith(host) : hostname === host;
23
23
  });
24
24
  };
@@ -1,12 +1,12 @@
1
1
  import {
2
2
  which
3
- } from "./bus-g7k9te92.js";
3
+ } from "./schema-k3e42drn.js";
4
4
  import {
5
5
  exports_state
6
- } from "./bus-f2kz495y.js";
6
+ } from "./schema-qhdqjp31.js";
7
7
  import {
8
8
  __export
9
- } from "./bus-rvfvac9x.js";
9
+ } from "./schema-rvfvac9x.js";
10
10
 
11
11
  // src/shell/select.ts
12
12
  var exports_select = {};
@@ -153,10 +153,6 @@ function info(file, options, bin) {
153
153
  }
154
154
  function args(file, command) {
155
155
  const n = name(file);
156
- if (n === "nu" || n === "fish")
157
- return ["-c", command];
158
- if (n === "zsh" || n === "bash")
159
- return ["-c", command];
160
156
  if (n === "cmd")
161
157
  return ["/c", command];
162
158
  if (ps(file))
@@ -1,12 +1,12 @@
1
- import {
2
- exports_location
3
- } from "./bus-19qgjfzv.js";
4
1
  import {
5
2
  exports_instructions
6
- } from "./bus-ec8vrfw5.js";
3
+ } from "./schema-ec8vrfw5.js";
4
+ import {
5
+ exports_location
6
+ } from "./schema-j3ethsxz.js";
7
7
  import {
8
8
  __export
9
- } from "./bus-rvfvac9x.js";
9
+ } from "./schema-rvfvac9x.js";
10
10
 
11
11
  // src/instructions/builtins.ts
12
12
  var exports_builtins = {};
@@ -1,48 +1,51 @@
1
+ import {
2
+ exports_instruction_entry
3
+ } from "./schema-r7qg3fv7.js";
1
4
  import {
2
5
  exports_message_updater
3
- } from "./bus-dman5pj0.js";
6
+ } from "./schema-swj2q685.js";
4
7
  import {
5
8
  exports_inbox
6
- } from "./bus-e93xz9yp.js";
9
+ } from "./schema-6gz8qpj3.js";
7
10
  import {
8
11
  Slug
9
- } from "./bus-df3v2q6j.js";
12
+ } from "./schema-df3v2q6j.js";
10
13
  import {
11
14
  exports_instruction_state
12
- } from "./bus-n744begs.js";
15
+ } from "./schema-0vem89v9.js";
13
16
  import {
14
17
  SessionEvent
15
- } from "./bus-a83yvq99.js";
18
+ } from "./schema-a83yvq99.js";
16
19
  import {
17
20
  SessionInboxTable,
18
21
  SessionMessageTable,
19
22
  SessionTable
20
- } from "./bus-9d2xhdr4.js";
23
+ } from "./schema-ygy0xbqa.js";
21
24
  import {
22
25
  exports_message
23
- } from "./bus-25pxtba7.js";
26
+ } from "./schema-25pxtba7.js";
24
27
  import {
25
28
  exports_agent
26
- } from "./bus-n11z769x.js";
29
+ } from "./schema-kcbd8yt0.js";
27
30
  import {
28
31
  exports_workspace
29
- } from "./bus-qyzajttf.js";
32
+ } from "./schema-nbfw6jpr.js";
33
+ import {
34
+ exports_model
35
+ } from "./schema-1a3a2s70.js";
30
36
  import {
31
37
  AbsolutePath,
32
38
  RelativePath
33
- } from "./bus-j07kk359.js";
39
+ } from "./schema-j07kk359.js";
34
40
  import {
35
41
  exports_bus
36
- } from "./bus-ded9e5ma.js";
42
+ } from "./schema-vmvzq9kn.js";
37
43
  import {
38
44
  exports_database
39
- } from "./bus-kyy2az1w.js";
40
- import {
41
- exports_model
42
- } from "./bus-wh0zhxcg.js";
45
+ } from "./schema-fbe8wd9q.js";
43
46
  import {
44
47
  __export
45
- } from "./bus-rvfvac9x.js";
48
+ } from "./schema-rvfvac9x.js";
46
49
 
47
50
  // src/session/projector.ts
48
51
  var exports_projector = {};
@@ -140,13 +143,15 @@ var projectFork = Effect.fn("SessionProjector.projectFork")(function* (db, event
140
143
  }).onConflictDoNothing().returning({ sessionID: SessionTable.id }).get().pipe(Effect.orDie);
141
144
  if (!stored)
142
145
  return yield* Effect.die(new SessionAlreadyProjected);
146
+ if (event.data.instructionEntries)
147
+ yield* exports_instruction_entry.initialize(db, event.data.sessionID, event.data.instructionEntries, event.created);
143
148
  let cursor = -1;
144
149
  while (copiedSeq !== undefined) {
145
- const rows = yield* db.select().from(SessionMessageTable).where(and(eq(SessionMessageTable.session_id, event.data.parentID), gt(SessionMessageTable.seq, cursor), lt(SessionMessageTable.seq, copiedSeq + 1), sql`${SessionMessageTable.type} != 'compaction' or json_extract(${SessionMessageTable.data}, '$.status') != 'running'`)).orderBy(asc(SessionMessageTable.seq)).limit(ForkBatchSize).all().pipe(Effect.orDie);
150
+ const rows = yield* db.select().from(SessionMessageTable).where(and(eq(SessionMessageTable.session_id, event.data.parentID), gt(SessionMessageTable.seq, cursor), lt(SessionMessageTable.seq, copiedSeq + 1), sql`${SessionMessageTable.type} != 'assistant' or json_extract(${SessionMessageTable.data}, '$.time.completed') is not null`, sql`${SessionMessageTable.type} != 'shell' or json_extract(${SessionMessageTable.data}, '$.status') != 'running'`, sql`${SessionMessageTable.type} != 'compaction' or json_extract(${SessionMessageTable.data}, '$.status') != 'running'`)).orderBy(asc(SessionMessageTable.seq)).limit(ForkBatchSize).all().pipe(Effect.orDie);
146
151
  if (rows.length === 0)
147
152
  break;
148
153
  yield* db.insert(SessionMessageTable).values(rows.map((row) => ({
149
- id: exports_message.ID.create(),
154
+ id: exports_message.ID.make(`${exports_message.ID.fromEvent(event.id)}_${row.seq}`),
150
155
  session_id: event.data.sessionID,
151
156
  type: row.type,
152
157
  seq: row.seq,
@@ -165,8 +170,6 @@ function run(db, event) {
165
170
  return Effect.gen(function* () {
166
171
  const decodeRow = (row) => decodeMessage({ ...row.data, id: row.id, type: row.type });
167
172
  const updateMessage = (message) => {
168
- if (event.durable === undefined)
169
- return Effect.die(new Error("Durable Session event is missing aggregate sequence"));
170
173
  const encoded = encodeMessage(message);
171
174
  const { id, type, ...data } = encoded;
172
175
  return db.update(SessionMessageTable).set({ type, time_created: DateTime.toEpochMillis(message.time.created), data }).where(and(eq(SessionMessageTable.id, exports_message.ID.make(id)), eq(SessionMessageTable.session_id, event.data.sessionID))).run().pipe(Effect.orDie);
@@ -239,8 +242,6 @@ function run(db, event) {
239
242
  });
240
243
  }
241
244
  function insertMessage(db, event, message) {
242
- if (event.durable === undefined)
243
- return Effect.die(new Error("Durable Session event is missing aggregate sequence"));
244
245
  const encoded = encodeMessage(message);
245
246
  const { id, type, ...data } = encoded;
246
247
  return db.insert(SessionMessageTable).values({
@@ -252,6 +253,20 @@ function insertMessage(db, event, message) {
252
253
  data
253
254
  }).run().pipe(Effect.orDie);
254
255
  }
256
+ function projectIdle(db, event) {
257
+ return Effect.gen(function* () {
258
+ yield* run(db, event);
259
+ if (event.type === SessionEvent.Execution.Interrupted.type && event.data.reason === "shutdown")
260
+ return;
261
+ const time = event.created;
262
+ const outcome = event.type === SessionEvent.Execution.Succeeded.type ? "succeeded" : event.type === SessionEvent.Execution.Failed.type ? "failed" : "interrupted";
263
+ yield* db.update(SessionTable).set({
264
+ time_idle: sql`max(${time}, coalesce(${SessionTable.time_idle} + 1, ${time}))`,
265
+ idle_outcome: outcome,
266
+ time_updated: sql`${SessionTable.time_updated}`
267
+ }).where(eq(SessionTable.id, event.data.sessionID)).run().pipe(Effect.orDie);
268
+ });
269
+ }
255
270
  var layer = Layer.effectDiscard(Effect.gen(function* () {
256
271
  const bus = yield* exports_bus.Service;
257
272
  const db = (yield* exports_database.Service).db;
@@ -309,11 +324,16 @@ var layer = Layer.effectDiscard(Effect.gen(function* () {
309
324
  yield* db.update(SessionTable).set({ model: event.data.model, time_updated: event.created }).where(eq(SessionTable.id, event.data.sessionID)).run().pipe(Effect.orDie);
310
325
  }));
311
326
  yield* bus.project(SessionEvent.Renamed, (event) => db.update(SessionTable).set({ title: event.data.title, time_updated: event.created }).where(eq(SessionTable.id, event.data.sessionID)).run().pipe(Effect.orDie));
327
+ yield* bus.project(SessionEvent.Viewed, (event) => {
328
+ const idle = event.data.idle;
329
+ return db.update(SessionTable).set({
330
+ time_viewed: sql`max(${idle}, coalesce(${SessionTable.time_viewed}, ${idle}))`,
331
+ time_updated: sql`${SessionTable.time_updated}`
332
+ }).where(eq(SessionTable.id, event.data.sessionID)).run().pipe(Effect.orDie);
333
+ });
312
334
  yield* bus.project(SessionEvent.UsageRecorded, (event) => applyUsage(db, event.data.sessionID, event.data));
313
335
  yield* bus.project(SessionEvent.Forked, (event) => projectFork(db, event));
314
336
  yield* bus.project(SessionEvent.InboxDelivered, (event) => Effect.gen(function* () {
315
- if (event.durable === undefined)
316
- return yield* Effect.die(new Error("Durable Session event is missing aggregate sequence"));
317
337
  const input = yield* exports_inbox.projectDelivered(db, {
318
338
  id: event.data.inboxID,
319
339
  sessionID: event.data.sessionID
@@ -339,8 +359,6 @@ var layer = Layer.effectDiscard(Effect.gen(function* () {
339
359
  });
340
360
  }));
341
361
  yield* bus.project(SessionEvent.InboxEnqueued, (event) => Effect.gen(function* () {
342
- if (event.durable === undefined)
343
- return yield* Effect.die(new Error("Durable Session event is missing aggregate sequence"));
344
362
  yield* exports_inbox.projectAdmitted(db, {
345
363
  enqueuedSeq: event.durable.seq,
346
364
  id: event.data.inboxID,
@@ -359,9 +377,9 @@ var layer = Layer.effectDiscard(Effect.gen(function* () {
359
377
  sessionID: event.data.sessionID,
360
378
  delivery: event.data.delivery
361
379
  }));
362
- yield* bus.project(SessionEvent.Execution.Succeeded, (event) => run(db, event));
363
- yield* bus.project(SessionEvent.Execution.Failed, (event) => run(db, event));
364
- yield* bus.project(SessionEvent.Execution.Interrupted, (event) => run(db, event));
380
+ yield* bus.project(SessionEvent.Execution.Succeeded, (event) => projectIdle(db, event));
381
+ yield* bus.project(SessionEvent.Execution.Failed, (event) => projectIdle(db, event));
382
+ yield* bus.project(SessionEvent.Execution.Interrupted, (event) => projectIdle(db, event));
365
383
  yield* bus.project(SessionEvent.InstructionsUpdated, (event) => Effect.gen(function* () {
366
384
  yield* run(db, event);
367
385
  yield* exports_instruction_state.apply(db, event.data.sessionID, event.durable.seq, event.data.delta);
@@ -394,14 +412,8 @@ var layer = Layer.effectDiscard(Effect.gen(function* () {
394
412
  yield* bus.project(SessionEvent.Compaction.Ended, (event) => Effect.gen(function* () {
395
413
  yield* run(db, event);
396
414
  yield* exports_instruction_state.advanceEpoch(db, event.data.sessionID, event.durable.seq);
397
- if (event.durable === undefined)
398
- return yield* Effect.die(new Error("Durable Session event is missing aggregate sequence"));
399
- }));
400
- yield* bus.project(SessionEvent.Compaction.Failed, (event) => Effect.gen(function* () {
401
- yield* run(db, event);
402
- if (event.durable === undefined)
403
- return yield* Effect.die(new Error("Durable Session event is missing aggregate sequence"));
404
415
  }));
416
+ yield* bus.project(SessionEvent.Compaction.Failed, (event) => run(db, event));
405
417
  yield* bus.project(SessionEvent.RevertEvent.Staged, (event) => Effect.gen(function* () {
406
418
  const revert = event.data.revert;
407
419
  yield* db.update(SessionTable).set({
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  exports_provider
3
- } from "./bus-sfbv6a2b.js";
3
+ } from "./schema-djkt4gex.js";
4
4
  import {
5
5
  __require
6
- } from "./bus-rvfvac9x.js";
6
+ } from "./schema-rvfvac9x.js";
7
7
 
8
8
  // src/plugin/provider/anthropic.ts
9
9
  import { Effect } from "effect";
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  __export
3
- } from "./bus-rvfvac9x.js";
3
+ } from "./schema-rvfvac9x.js";
4
4
 
5
5
  // src/session/runner/index.ts
6
6
  var exports_runner = {};
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  InvalidError
3
- } from "./bus-nr76rjj3.js";
3
+ } from "./schema-nr76rjj3.js";
4
4
  import {
5
5
  __export
6
- } from "./bus-rvfvac9x.js";
6
+ } from "./schema-rvfvac9x.js";
7
7
 
8
8
  // src/config/variable.ts
9
9
  var exports_variable = {};
@@ -25,10 +25,9 @@ var substituteFiles = Effect.fnUntraced(function* (input, text) {
25
25
  const fs = yield* FSUtil.Service;
26
26
  const configDir = input.type === "path" ? path.dirname(input.path) : input.dir;
27
27
  const configSource = input.type === "path" ? input.path : input.source;
28
- const matches = Array.from(text.matchAll(/\{file:[^}]+\}/g));
29
28
  let out = "";
30
29
  let cursor = 0;
31
- for (const match of matches) {
30
+ for (const match of text.matchAll(/\{file:[^}]+\}/g)) {
32
31
  const token = match[0];
33
32
  const index = match.index;
34
33
  out += text.slice(cursor, index);
@@ -40,7 +39,7 @@ var substituteFiles = Effect.fnUntraced(function* (input, text) {
40
39
  cursor = index + token.length;
41
40
  continue;
42
41
  }
43
- const filePath = token.replace(/^\{file:/, "").replace(/\}$/, "");
42
+ const filePath = token.slice("{file:".length, -1);
44
43
  const expandedPath = filePath.startsWith("~/") ? path.join(os.homedir(), filePath.slice(2)) : filePath;
45
44
  const resolvedPath = path.isAbsolute(expandedPath) ? expandedPath : path.resolve(configDir, expandedPath);
46
45
  const fileContent = yield* fs.readFileString(resolvedPath).pipe(Effect.catch((error) => {
@@ -1,31 +1,31 @@
1
1
  import {
2
2
  exports_integration
3
- } from "./bus-md8xze4k.js";
4
- import {
5
- exports_form
6
- } from "./bus-ftqx1cne.js";
3
+ } from "./schema-ej9r6fs2.js";
7
4
  import {
8
5
  exports_credential
9
- } from "./bus-4qce6znw.js";
6
+ } from "./schema-y4vhttwz.js";
7
+ import {
8
+ exports_form
9
+ } from "./schema-r14kbnc4.js";
10
10
  import {
11
11
  exports_environment1 as exports_environment
12
- } from "./bus-v332cd3m.js";
12
+ } from "./schema-eyrg1yjb.js";
13
13
  import {
14
14
  exports_location
15
- } from "./bus-19qgjfzv.js";
15
+ } from "./schema-j3ethsxz.js";
16
16
  import {
17
17
  exports_state
18
- } from "./bus-f2kz495y.js";
18
+ } from "./schema-qhdqjp31.js";
19
19
  import {
20
20
  exports_bus
21
- } from "./bus-ded9e5ma.js";
21
+ } from "./schema-vmvzq9kn.js";
22
22
  import {
23
23
  exports_keyed_mutex
24
- } from "./bus-0kvmztkf.js";
24
+ } from "./schema-0kvmztkf.js";
25
25
  import {
26
26
  __export,
27
27
  __require
28
- } from "./bus-rvfvac9x.js";
28
+ } from "./schema-rvfvac9x.js";
29
29
 
30
30
  // src/mcp/index.ts
31
31
  var exports_mcp = {};
@@ -334,7 +334,7 @@ var layer = (options) => Layer.effect(Service, Effect.gen(function* () {
334
334
  const refreshTools = (name, entry, connection) => connection.tools().pipe(Effect.map((defs) => {
335
335
  entry.tools = defs.map((def) => toTool(name, entry, def));
336
336
  }));
337
- const refreshPrompts = (name, entry, connection) => connection.prompts().pipe(Effect.catch(() => Effect.succeed([])), Effect.map((defs) => {
337
+ const refreshPrompts = (name, entry, connection) => connection.prompts().pipe(Effect.orElseSucceed(() => []), Effect.map((defs) => {
338
338
  entry.prompts = defs.map((def) => toPrompt(name, def));
339
339
  }), Effect.andThen(bus.publish(Command.Event.Updated, {})));
340
340
  const whenLive = (name, entry, connection) => (effect) => fork(Effect.suspend(() => entry.client === connection ? effect : Effect.void).pipe(locks.withLock(name), Effect.ignore));
@@ -600,7 +600,9 @@ var layer = (options) => Layer.effect(Service, Effect.gen(function* () {
600
600
  yield* target.entry.startup.await;
601
601
  if (!target.entry.client)
602
602
  return;
603
- const result = yield* target.entry.client.prompt({ name: input.name, args: input.args }).pipe(Effect.catch(() => Effect.succeed(undefined)));
603
+ const result = yield* target.entry.client.prompt({ name: input.name, args: input.args }).pipe(Effect.orElseSucceed(() => {
604
+ return;
605
+ }));
604
606
  if (!result)
605
607
  return;
606
608
  return new PromptResult({
@@ -615,8 +617,8 @@ var layer = (options) => Layer.effect(Service, Effect.gen(function* () {
615
617
  if (!entry.client)
616
618
  return Effect.succeed({ resources: [], templates: [] });
617
619
  return Effect.all({
618
- resources: entry.client.resources().pipe(Effect.catch(() => Effect.succeed([]))),
619
- templates: entry.client.resourceTemplates().pipe(Effect.catch(() => Effect.succeed([])))
620
+ resources: entry.client.resources().pipe(Effect.orElseSucceed(() => [])),
621
+ templates: entry.client.resourceTemplates().pipe(Effect.orElseSucceed(() => []))
620
622
  }, { concurrency: "unbounded" }).pipe(Effect.map((catalog) => ({
621
623
  resources: catalog.resources.map((def) => toResource(name, def)),
622
624
  templates: catalog.templates.map((def) => toResourceTemplate(name, def))
@@ -632,7 +634,9 @@ var layer = (options) => Layer.effect(Service, Effect.gen(function* () {
632
634
  yield* target.entry.startup.await;
633
635
  if (!target.entry.client)
634
636
  return;
635
- const result = yield* target.entry.client.readResource({ uri: input.uri }).pipe(Effect.catch(() => Effect.succeed(undefined)));
637
+ const result = yield* target.entry.client.readResource({ uri: input.uri }).pipe(Effect.orElseSucceed(() => {
638
+ return;
639
+ }));
636
640
  if (!result)
637
641
  return;
638
642
  return ResourceContent.make({
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  __export
3
- } from "./bus-rvfvac9x.js";
3
+ } from "./schema-rvfvac9x.js";
4
4
 
5
5
  // src/mime.ts
6
6
  var exports_mime = {};
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  __export,
3
3
  __require
4
- } from "./bus-rvfvac9x.js";
4
+ } from "./schema-rvfvac9x.js";
5
5
 
6
6
  // src/provider.ts
7
7
  var exports_provider = {};
@@ -22,6 +22,7 @@ __export(exports_provider, {
22
22
  });
23
23
  import { Effect, Schema } from "effect";
24
24
  import { Provider } from "@opencode-ai/schema/provider";
25
+ import { isRecord } from "@opencode-ai/ai/utils/record";
25
26
  import { importModule, resolveModule } from "@opencode-ai/util/runtime-import";
26
27
  var ID = Provider.ID;
27
28
  var AISDK_PREFIX = "aisdk:";
@@ -115,11 +116,8 @@ function mergeOverlay(base, overlay) {
115
116
  const right = overlay[key];
116
117
  if (right === undefined)
117
118
  return [key, left];
118
- if (typeof left === "object" && left !== null && !Array.isArray(left) && typeof right === "object" && right !== null && !Array.isArray(right))
119
- return [
120
- key,
121
- mergeOverlay(left, right) ?? {}
122
- ];
119
+ if (isRecord(left) && isRecord(right))
120
+ return [key, mergeOverlay(left, right) ?? {}];
123
121
  return [key, right];
124
122
  })));
125
123
  }