@opencode-ai/core 0.0.0-beta-17793 → 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 (777) 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/{workspace-02dbfq60.js → schema-02dbfq60.js} +1 -1
  9. package/dist/chunks/{workspace-0b17sr9d.js → schema-0b17sr9d.js} +2 -2
  10. package/dist/chunks/{workspace-c8h311wd.js → schema-0cxmrpsx.js} +30 -30
  11. package/dist/chunks/{workspace-r15s1bd3.js → schema-0ehq5bhp.js} +12 -10
  12. package/dist/chunks/{workspace-zqdn9cme.js → schema-0hgrfweh.js} +7 -7
  13. package/dist/chunks/{workspace-0kvmztkf.js → schema-0kvmztkf.js} +1 -1
  14. package/dist/chunks/{workspace-ks77wmnj.js → schema-0ranhcjt.js} +2 -2
  15. package/dist/chunks/{workspace-n744begs.js → schema-0vem89v9.js} +4 -4
  16. package/dist/chunks/{workspace-n2w8fz38.js → schema-0vgt3zn6.js} +2 -2
  17. package/dist/chunks/{workspace-rbn77fxp.js → schema-1637fpsx.js} +3 -3
  18. package/dist/chunks/{workspace-18pv8fg3.js → schema-18pv8fg3.js} +2 -2
  19. package/dist/chunks/{workspace-81wsrtjr.js → schema-19nk26qg.js} +7 -7
  20. package/dist/chunks/{workspace-wh0zhxcg.js → schema-1a3a2s70.js} +2 -2
  21. package/dist/chunks/{workspace-wwkgmt0p.js → schema-1nf83cea.js} +10 -16
  22. package/dist/chunks/{workspace-swnnf7jm.js → schema-1tqppy8q.js} +3 -3
  23. package/dist/chunks/{workspace-fgk5sp52.js → schema-20hrmxeg.js} +7 -7
  24. package/dist/chunks/{workspace-25pxtba7.js → schema-25pxtba7.js} +1 -1
  25. package/dist/chunks/{workspace-r9bsqnhw.js → schema-29ddmng8.js} +8 -8
  26. package/dist/chunks/{workspace-thrqaz0e.js → schema-2aeag69d.js} +5 -5
  27. package/dist/chunks/{workspace-8jssm6tx.js → schema-2h85227b.js} +2 -2
  28. package/dist/chunks/{workspace-1afm1b6n.js → schema-2hwdvqtr.js} +8 -8
  29. package/dist/chunks/{workspace-x7z5vctn.js → schema-2hyeqd71.js} +5 -5
  30. package/dist/chunks/{workspace-2nmyybe0.js → schema-2nmyybe0.js} +1 -1
  31. package/dist/chunks/{workspace-sney8k4p.js → schema-2sx6rcrq.js} +68 -38
  32. package/dist/chunks/{workspace-2akqrmqf.js → schema-2ya5073c.js} +1 -1
  33. package/dist/chunks/{workspace-t2ccr6s6.js → schema-2zf7hxjt.js} +4 -4
  34. package/dist/chunks/{workspace-gp1p5nz4.js → schema-37e9hbzs.js} +2 -2
  35. package/dist/chunks/{workspace-7xm5mbbb.js → schema-3d1t6jqf.js} +3 -3
  36. package/dist/chunks/{workspace-zebyd4z6.js → schema-3g6g5vyj.js} +3 -3
  37. package/dist/chunks/{workspace-3g8vftxb.js → schema-3g8vftxb.js} +2 -2
  38. package/dist/chunks/{workspace-atc09b0q.js → schema-3gsv1x0v.js} +2 -2
  39. package/dist/chunks/{workspace-9z7sbd73.js → schema-3hfdta0w.js} +2 -2
  40. package/dist/chunks/{workspace-p6edj0et.js → schema-3jsgz9x8.js} +39 -41
  41. package/dist/chunks/{workspace-3thh6229.js → schema-3thh6229.js} +2 -2
  42. package/dist/chunks/{workspace-mp82cem1.js → schema-3wg1t0st.js} +13 -13
  43. package/dist/chunks/{workspace-0bxpjz5v.js → schema-3x0rbcme.js} +12 -13
  44. package/dist/chunks/{workspace-tva2scp3.js → schema-4hyc8pdv.js} +12 -12
  45. package/dist/chunks/{workspace-42q4drvy.js → schema-4j7te1s0.js} +3 -3
  46. package/dist/chunks/{workspace-5hakc3n5.js → schema-4jvfx8g6.js} +3 -3
  47. package/dist/chunks/{workspace-4s2xwh5d.js → schema-4s2xwh5d.js} +3 -3
  48. package/dist/chunks/{workspace-4zzdwbaz.js → schema-4zzdwbaz.js} +2 -2
  49. package/dist/chunks/{workspace-50jxp3hw.js → schema-50jxp3hw.js} +1 -1
  50. package/dist/chunks/{workspace-fjtxtbhx.js → schema-50qcmj3d.js} +3 -3
  51. package/dist/chunks/{workspace-p7enbrfs.js → schema-53w8n9hm.js} +7 -5
  52. package/dist/chunks/{workspace-ghg83jvf.js → schema-53xdmpnb.js} +38 -38
  53. package/dist/chunks/{workspace-57tzwnz4.js → schema-57tzwnz4.js} +1 -1
  54. package/dist/chunks/{workspace-tcn24h1d.js → schema-58xdvehb.js} +2 -3
  55. package/dist/chunks/{workspace-pcp53y3y.js → schema-59ccykdk.js} +10 -19
  56. package/dist/chunks/{workspace-pfrv4bm3.js → schema-59hngwn8.js} +10 -10
  57. package/dist/chunks/{workspace-r0chg1wz.js → schema-5anrxqdj.js} +20 -4
  58. package/dist/chunks/{workspace-prf9bavk.js → schema-5fe026tx.js} +3 -3
  59. package/dist/chunks/{workspace-st1tmxxz.js → schema-5fq5ws54.js} +4 -4
  60. package/dist/chunks/{workspace-29g7zza5.js → schema-5ndt04bs.js} +7 -7
  61. package/dist/chunks/{workspace-vfekzexe.js → schema-5rnjreb1.js} +6 -4
  62. package/dist/chunks/{workspace-5rs65q6p.js → schema-5rs65q6p.js} +1 -1
  63. package/dist/chunks/{workspace-5vcssjzn.js → schema-5vcssjzn.js} +1 -1
  64. package/dist/chunks/{workspace-p0zqjz05.js → schema-5xrsrne4.js} +3 -3
  65. package/dist/chunks/{workspace-bd453e9f.js → schema-6039vy3q.js} +6 -6
  66. package/dist/chunks/{workspace-4s6c9e56.js → schema-61m74eps.js} +6 -6
  67. package/dist/chunks/{workspace-ph1me6ah.js → schema-65re92qg.js} +6 -4
  68. package/dist/chunks/{workspace-mznpwsa6.js → schema-6btb8gmk.js} +6 -6
  69. package/dist/chunks/{workspace-xp27tpff.js → schema-6e0hvkjj.js} +16 -17
  70. package/dist/chunks/{workspace-e93xz9yp.js → schema-6gz8qpj3.js} +15 -16
  71. package/dist/chunks/{workspace-6ky7rqk7.js → schema-6ky7rqk7.js} +1 -1
  72. package/dist/chunks/{workspace-hhffyw1t.js → schema-6mvn0j90.js} +6 -6
  73. package/dist/chunks/{workspace-6q0m15b3.js → schema-6q0m15b3.js} +1 -1
  74. package/dist/chunks/{workspace-k1b850en.js → schema-6srb8ptf.js} +7 -7
  75. package/dist/chunks/{workspace-5yea2tah.js → schema-6x98y149.js} +2 -2
  76. package/dist/chunks/schema-6zqxzw0a.js +15 -0
  77. package/dist/chunks/{workspace-f56b6eec.js → schema-70248kr6.js} +27 -31
  78. package/dist/chunks/{workspace-mjyfgnw8.js → schema-763yasmv.js} +8 -8
  79. package/dist/chunks/{workspace-7f3c62hs.js → schema-76hmsx9m.js} +11 -11
  80. package/dist/chunks/{workspace-dfrm5wx2.js → schema-7764k952.js} +24 -19
  81. package/dist/chunks/{workspace-7gqqz1s8.js → schema-7gqqz1s8.js} +1 -1
  82. package/dist/chunks/{workspace-7mrpdsq5.js → schema-7mrpdsq5.js} +1 -1
  83. package/dist/chunks/{workspace-dvghb557.js → schema-7rqv91hy.js} +8 -8
  84. package/dist/chunks/{workspace-mz28rckj.js → schema-7vh3yvmw.js} +3 -3
  85. package/dist/chunks/{workspace-7wcmqxrc.js → schema-7wcmqxrc.js} +1 -1
  86. package/dist/chunks/{workspace-pd55t4m6.js → schema-7yfqzmjb.js} +31 -31
  87. package/dist/chunks/{workspace-88jbfw8z.js → schema-88jbfw8z.js} +2 -2
  88. package/dist/chunks/{workspace-5mg8q2r2.js → schema-89dw1ph7.js} +4 -4
  89. package/dist/chunks/{workspace-hsyk7kfz.js → schema-8bkmtpp6.js} +5 -5
  90. package/dist/chunks/{workspace-rt6yg6j2.js → schema-8bqpm1yy.js} +3 -3
  91. package/dist/chunks/{workspace-jmmc1vfj.js → schema-8cbfrh3v.js} +26 -20
  92. package/dist/chunks/{workspace-bmweayxc.js → schema-8gp1tmat.js} +3 -3
  93. package/dist/chunks/{workspace-x6bsrrkz.js → schema-8m0kaaxz.js} +12 -12
  94. package/dist/chunks/{workspace-sphyh08q.js → schema-8qfxtd4q.js} +12 -12
  95. package/dist/chunks/{workspace-5p73vhh3.js → schema-8ry20zzk.js} +11 -11
  96. package/dist/chunks/{workspace-8v47shgf.js → schema-8v47shgf.js} +2 -2
  97. package/dist/chunks/{workspace-95dhhjyp.js → schema-905996ne.js} +16 -16
  98. package/dist/chunks/{workspace-999qd968.js → schema-999qd968.js} +1 -1
  99. package/dist/chunks/{workspace-9f0rnpkn.js → schema-9f0rnpkn.js} +1 -1
  100. package/dist/chunks/{workspace-gz765asg.js → schema-9p8mhgdp.js} +1 -1
  101. package/dist/chunks/{workspace-1x1rapwb.js → schema-9ss8makt.js} +8 -6
  102. package/dist/chunks/{workspace-5qqhchyw.js → schema-aejndznj.js} +17 -14
  103. package/dist/chunks/{workspace-dwvaj8pd.js → schema-ambzzkps.js} +7 -7
  104. package/dist/chunks/{workspace-ayfwnm78.js → schema-ayfwnm78.js} +2 -2
  105. package/dist/chunks/{workspace-zjvgdt9p.js → schema-b7hsw5bk.js} +22 -38
  106. package/dist/chunks/{workspace-dyz5q1tb.js → schema-bh1wr8rq.js} +3 -6
  107. package/dist/chunks/{workspace-afy8tpbe.js → schema-bj25ggyd.js} +4 -5
  108. package/dist/chunks/{workspace-byab506k.js → schema-byab506k.js} +1 -1
  109. package/dist/chunks/{workspace-1c00jchy.js → schema-c4wcb9vc.js} +3 -3
  110. package/dist/chunks/{workspace-e24rm1tf.js → schema-c6gknnhe.js} +2 -2
  111. package/dist/chunks/{workspace-12te9h01.js → schema-c6h4bynb.js} +20 -24
  112. package/dist/chunks/{workspace-0b6ye7sf.js → schema-c9tk9ghs.js} +3 -3
  113. package/dist/chunks/{workspace-b04yncak.js → schema-chrmmjkk.js} +8 -8
  114. package/dist/chunks/schema-ck5pgha0.js +68 -0
  115. package/dist/chunks/{workspace-19e1vard.js → schema-cke3skfe.js} +3 -7
  116. package/dist/chunks/{workspace-6103r997.js → schema-cmm1dbz2.js} +5 -5
  117. package/dist/chunks/{workspace-92cpjck4.js → schema-cqrnepgy.js} +51 -39
  118. package/dist/chunks/{workspace-nk6yb8jk.js → schema-cve546b2.js} +2 -2
  119. package/dist/chunks/{workspace-cz3dkvcz.js → schema-cz3dkvcz.js} +1 -1
  120. package/dist/chunks/{workspace-eyk9wdct.js → schema-d2gk9vpf.js} +4 -5
  121. package/dist/chunks/{workspace-tsj2cygv.js → schema-dc6p8rz8.js} +20 -16
  122. package/dist/chunks/{workspace-dhphtf1x.js → schema-dhphtf1x.js} +1 -1
  123. package/dist/chunks/{workspace-sfbv6a2b.js → schema-djkt4gex.js} +4 -6
  124. package/dist/chunks/{workspace-byr5z3qa.js → schema-dkxc2cgd.js} +90 -89
  125. package/dist/chunks/{workspace-1h0r72pv.js → schema-dyrphakh.js} +11 -17
  126. package/dist/chunks/{workspace-e1z9a0ts.js → schema-e1z9a0ts.js} +2 -2
  127. package/dist/chunks/{workspace-c16qn48m.js → schema-e5r8d43z.js} +3 -3
  128. package/dist/chunks/{workspace-ec8vrfw5.js → schema-ec8vrfw5.js} +1 -1
  129. package/dist/chunks/{workspace-b2csa971.js → schema-ej9r6fs2.js} +9 -9
  130. package/dist/chunks/{workspace-zkkkcc8p.js → schema-epzxjdf4.js} +4 -4
  131. package/dist/chunks/{workspace-erj4j75s.js → schema-erj4j75s.js} +1 -1
  132. package/dist/chunks/{workspace-y44ckmk4.js → schema-eyrg1yjb.js} +11 -11
  133. package/dist/chunks/{workspace-tenv3kfs.js → schema-f9wt0tjw.js} +2 -2
  134. package/dist/chunks/{workspace-vptxxpwc.js → schema-f9z62w49.js} +5 -5
  135. package/dist/chunks/{workspace-s7pbx90j.js → schema-fbe8wd9q.js} +5 -5
  136. package/dist/chunks/{workspace-rgk2vntt.js → schema-fx6gxcwx.js} +4 -4
  137. package/dist/chunks/{workspace-egfckg0q.js → schema-g1ps01gx.js} +101 -74
  138. package/dist/chunks/{workspace-20m6kz67.js → schema-g3tejemp.js} +6 -7
  139. package/dist/chunks/{workspace-q1q6wfxa.js → schema-g4tfhrky.js} +17 -10
  140. package/dist/chunks/{workspace-fx25bfyk.js → schema-g6sgqcje.js} +3 -3
  141. package/dist/chunks/{workspace-8k08086v.js → schema-g7t6p8r2.js} +1 -1
  142. package/dist/chunks/{workspace-n44ep8ax.js → schema-g7v03tbe.js} +12 -11
  143. package/dist/chunks/{workspace-g9yygpzr.js → schema-g9yygpzr.js} +1 -1
  144. package/dist/chunks/{workspace-gcay93cp.js → schema-gcay93cp.js} +1 -1
  145. package/dist/chunks/{workspace-gd2xppx8.js → schema-gd2xppx8.js} +1 -1
  146. package/dist/chunks/{workspace-fqxzsdmq.js → schema-gg8gy1ab.js} +2 -2
  147. package/dist/chunks/{workspace-dstxtxkt.js → schema-gjkvrjgw.js} +3 -3
  148. package/dist/chunks/{workspace-9jeda383.js → schema-gk39pf7r.js} +8 -6
  149. package/dist/chunks/{workspace-daqkr6yp.js → schema-gnae5wg8.js} +20 -21
  150. package/dist/chunks/{workspace-dfspp6r4.js → schema-gpj6jen2.js} +12 -13
  151. package/dist/chunks/{workspace-6prg4qz0.js → schema-gsd7aj52.js} +16 -14
  152. package/dist/chunks/{workspace-9jzaagxn.js → schema-gvywm9dn.js} +11 -11
  153. package/dist/chunks/{workspace-h6r3t75p.js → schema-gxhthtcw.js} +8 -8
  154. package/dist/chunks/{workspace-ra765m8n.js → schema-gzsc4f4d.js} +16 -16
  155. package/dist/chunks/{workspace-ctdgtkbw.js → schema-h5ybtq26.js} +5 -5
  156. package/dist/chunks/{workspace-e8j1nhvt.js → schema-hca9bg61.js} +3 -3
  157. package/dist/chunks/{workspace-azhye5zs.js → schema-hevdag7w.js} +11 -11
  158. package/dist/chunks/{workspace-zqh29h4g.js → schema-hhxt27np.js} +2 -3
  159. package/dist/chunks/{workspace-0a6rv85p.js → schema-hkpr9a4z.js} +3 -3
  160. package/dist/chunks/{workspace-wb4dbzpz.js → schema-hp6rpdnc.js} +5 -3
  161. package/dist/chunks/{workspace-kwbvxbjz.js → schema-j3ethsxz.js} +2 -2
  162. package/dist/chunks/{workspace-z6g48jge.js → schema-jf0w9kwc.js} +4 -4
  163. package/dist/chunks/{workspace-d0r2hzy0.js → schema-jf35ek5b.js} +2 -2
  164. package/dist/chunks/{workspace-jssy2dr3.js → schema-jssy2dr3.js} +2 -2
  165. package/dist/chunks/{workspace-h3vs7mve.js → schema-jt9ap34s.js} +3 -3
  166. package/dist/chunks/{workspace-38y8nwsh.js → schema-jtpqmfzd.js} +10 -10
  167. package/dist/chunks/{workspace-g7k9te92.js → schema-k3e42drn.js} +1 -2
  168. package/dist/chunks/{workspace-j1a5h53y.js → schema-k42t1tha.js} +5 -3
  169. package/dist/chunks/{workspace-6p15na29.js → schema-kcbd8yt0.js} +3 -3
  170. package/dist/chunks/{workspace-kg1345f7.js → schema-kg1345f7.js} +1 -1
  171. package/dist/chunks/schema-kp1t5rcy.js +20 -0
  172. package/dist/chunks/{workspace-62faaqw9.js → schema-m5hb23fp.js} +30 -18
  173. package/dist/chunks/{workspace-z5tq16yp.js → schema-mat0pk2n.js} +150 -150
  174. package/dist/chunks/{workspace-76qm5nqf.js → schema-me155pxc.js} +7 -7
  175. package/dist/chunks/{workspace-mf0hyk7z.js → schema-mf0hyk7z.js} +1 -1
  176. package/dist/chunks/{workspace-dn5xz30q.js → schema-mf73chvh.js} +11 -11
  177. package/dist/chunks/{workspace-j1zjb56y.js → schema-mge4khx8.js} +10 -10
  178. package/dist/chunks/{workspace-mh28new4.js → schema-mh28new4.js} +2 -2
  179. package/dist/chunks/{workspace-d9bbznyn.js → schema-mmjdvscj.js} +6 -6
  180. package/dist/chunks/{workspace-mnb85w6b.js → schema-mnb85w6b.js} +2 -2
  181. package/dist/chunks/{workspace-hwx2w7zf.js → schema-mtdnc27f.js} +23 -25
  182. package/dist/chunks/{workspace-0ankgmxn.js → schema-mtwyx2kp.js} +3 -3
  183. package/dist/chunks/{workspace-mwceq5am.js → schema-mwceq5am.js} +1 -1
  184. package/dist/chunks/{workspace-mxvw03gv.js → schema-mxvw03gv.js} +1 -1
  185. package/dist/chunks/{workspace-7ard301f.js → schema-n9e07w6s.js} +25 -25
  186. package/dist/chunks/{workspace-thrfs9vw.js → schema-nbfw6jpr.js} +5 -5
  187. package/dist/chunks/{workspace-dt2pbfh8.js → schema-ndw42r8n.js} +67 -67
  188. package/dist/chunks/{workspace-nesb2rcz.js → schema-nesb2rcz.js} +2 -2
  189. package/dist/chunks/{workspace-nr76rjj3.js → schema-nr76rjj3.js} +2 -2
  190. package/dist/chunks/{workspace-qgt32wwf.js → schema-nrkas8zm.js} +4 -4
  191. package/dist/chunks/{workspace-nxs45nrs.js → schema-nt3351yh.js} +15 -15
  192. package/dist/chunks/{workspace-37d718jr.js → schema-nvz6n7yp.js} +31 -23
  193. package/dist/chunks/{workspace-nzrjycs5.js → schema-nzrjycs5.js} +1 -1
  194. package/dist/chunks/{workspace-p27xxkqg.js → schema-p27xxkqg.js} +3 -3
  195. package/dist/chunks/{workspace-pfqehjmy.js → schema-pfqehjmy.js} +2 -2
  196. package/dist/chunks/{workspace-b7wyyjhh.js → schema-pgex9pvk.js} +2 -2
  197. package/dist/chunks/{workspace-pq4b4pqk.js → schema-pq4b4pqk.js} +2 -2
  198. package/dist/chunks/{workspace-jqkpryhn.js → schema-q07sa4nq.js} +4 -4
  199. package/dist/chunks/{workspace-8t1bhfvh.js → schema-qcpexbr2.js} +1 -1
  200. package/dist/chunks/{workspace-qe0d689s.js → schema-qe0d689s.js} +2 -2
  201. package/dist/chunks/{workspace-f2kz495y.js → schema-qhdqjp31.js} +7 -8
  202. package/dist/chunks/{workspace-vgjwjeca.js → schema-r14kbnc4.js} +8 -13
  203. package/dist/chunks/{workspace-a7458xm9.js → schema-r211gje0.js} +8 -8
  204. package/dist/chunks/{workspace-r3k9abhd.js → schema-r3k9abhd.js} +2 -2
  205. package/dist/chunks/{workspace-fycc0m1w.js → schema-r6v38kgd.js} +11 -11
  206. package/dist/chunks/{workspace-ef1ebqv9.js → schema-r7qg3fv7.js} +26 -5
  207. package/dist/chunks/{workspace-mmbfffa0.js → schema-r9f1y3a1.js} +8 -8
  208. package/dist/chunks/{workspace-vq4xdzwy.js → schema-r9m9r1k0.js} +5 -5
  209. package/dist/chunks/{workspace-h8ecejt5.js → schema-rahat93a.js} +1 -1
  210. package/dist/chunks/{workspace-dmq0pk88.js → schema-rbzab1ws.js} +2 -2
  211. package/dist/chunks/{workspace-706a4azd.js → schema-rfbm65k8.js} +1 -1
  212. package/dist/chunks/{workspace-tk479mxv.js → schema-rhr8bscf.js} +6 -6
  213. package/dist/chunks/{workspace-3zgv951r.js → schema-rm6e9qn4.js} +14 -14
  214. package/dist/chunks/{workspace-jt4wm1df.js → schema-rn9r0ddn.js} +2 -2
  215. package/dist/chunks/{workspace-adfr8vkf.js → schema-rpvypsvk.js} +6 -6
  216. package/dist/chunks/{workspace-ryap75b3.js → schema-ryap75b3.js} +1 -1
  217. package/dist/chunks/{workspace-dtq2eppm.js → schema-s123x8qa.js} +4 -4
  218. package/dist/chunks/{workspace-s33fw6zm.js → schema-s33fw6zm.js} +1 -1
  219. package/dist/chunks/{workspace-e9yfe4g9.js → schema-s4hn1693.js} +11 -9
  220. package/dist/chunks/{workspace-vxayaa8z.js → schema-s7tvvea7.js} +8 -8
  221. package/dist/chunks/{workspace-pw5qhcym.js → schema-sb6cavh7.js} +50 -41
  222. package/dist/chunks/{workspace-smpeg8c9.js → schema-smpeg8c9.js} +2 -2
  223. package/dist/chunks/{workspace-sw84ckhj.js → schema-sw84ckhj.js} +1 -1
  224. package/dist/chunks/{workspace-dman5pj0.js → schema-swj2q685.js} +120 -132
  225. package/dist/chunks/{workspace-t14kykx1.js → schema-t14kykx1.js} +1 -1
  226. package/dist/chunks/{workspace-t066q9hw.js → schema-tb33ng7x.js} +2 -2
  227. package/dist/chunks/{workspace-e1fj3hnt.js → schema-tg2wc1h2.js} +3 -3
  228. package/dist/chunks/{workspace-thstd87d.js → schema-thstd87d.js} +1 -1
  229. package/dist/chunks/{workspace-b25zdeh7.js → schema-tjjf1q77.js} +1 -1
  230. package/dist/chunks/{workspace-ppea70bb.js → schema-tpennrrf.js} +2 -2
  231. package/dist/chunks/{workspace-v2wshkax.js → schema-v2wshkax.js} +1 -1
  232. package/dist/chunks/{workspace-s6zr15p0.js → schema-v3sehd45.js} +1 -1
  233. package/dist/chunks/{workspace-bftvctww.js → schema-v6nebarc.js} +4 -4
  234. package/dist/chunks/{workspace-v80zsxnb.js → schema-v80zsxnb.js} +1 -1
  235. package/dist/chunks/{workspace-75dc4a2v.js → schema-v888f2m4.js} +91 -87
  236. package/dist/chunks/{workspace-v972xay6.js → schema-v972xay6.js} +1 -1
  237. package/dist/chunks/{workspace-v9bfv94f.js → schema-v9bfv94f.js} +1 -1
  238. package/dist/chunks/{workspace-njrg7yr8.js → schema-vmvzq9kn.js} +29 -31
  239. package/dist/chunks/{workspace-xaf8phze.js → schema-vq63px7f.js} +22 -26
  240. package/dist/chunks/{workspace-f05p34aa.js → schema-vqbmgfq1.js} +3 -3
  241. package/dist/chunks/{workspace-zeqnj68x.js → schema-vrnna8ef.js} +8 -8
  242. package/dist/chunks/{workspace-vz89hfgr.js → schema-vz89hfgr.js} +1 -1
  243. package/dist/chunks/{workspace-wd268jeg.js → schema-wd268jeg.js} +1 -1
  244. package/dist/chunks/{workspace-xvjmrenr.js → schema-wk54z6sh.js} +20 -16
  245. package/dist/chunks/{workspace-wmxdh12w.js → schema-wmxdh12w.js} +1 -1
  246. package/dist/chunks/{workspace-wps8gh8n.js → schema-wps8gh8n.js} +2 -2
  247. package/dist/chunks/{workspace-yw6774fb.js → schema-wqvb4wbw.js} +34 -21
  248. package/dist/chunks/{workspace-mceg3fc8.js → schema-xc83wxk6.js} +11 -11
  249. package/dist/chunks/{workspace-xczfw7dq.js → schema-xczfw7dq.js} +1 -1
  250. package/dist/chunks/{workspace-xgv25zxy.js → schema-xgv25zxy.js} +1 -1
  251. package/dist/chunks/{workspace-xhz3jyrc.js → schema-xt0068v8.js} +4 -6
  252. package/dist/chunks/{workspace-n1869kza.js → schema-xty1ggdh.js} +7 -7
  253. package/dist/chunks/{workspace-xwftk1fd.js → schema-xwftk1fd.js} +2 -2
  254. package/dist/chunks/{workspace-xxpvz42q.js → schema-xxpvz42q.js} +3 -3
  255. package/dist/chunks/{workspace-y0x38cee.js → schema-y0x38cee.js} +1 -1
  256. package/dist/chunks/{workspace-y198y2ra.js → schema-y198y2ra.js} +1 -1
  257. package/dist/chunks/{workspace-vzsgyrq1.js → schema-y4vhttwz.js} +10 -16
  258. package/dist/chunks/{workspace-y67x6rf6.js → schema-y67x6rf6.js} +1 -1
  259. package/dist/chunks/{workspace-y8rs54ne.js → schema-y8rs54ne.js} +1 -1
  260. package/dist/chunks/{workspace-y980s7ka.js → schema-y980s7ka.js} +3 -3
  261. package/dist/chunks/{workspace-a65h300v.js → schema-ybhfpy64.js} +5 -3
  262. package/dist/chunks/{workspace-yf0knd5z.js → schema-yf0knd5z.js} +2 -2
  263. package/dist/chunks/{workspace-9d2xhdr4.js → schema-ygy0xbqa.js} +6 -3
  264. package/dist/chunks/{workspace-ppg6z601.js → schema-yqydgc4n.js} +10 -8
  265. package/dist/chunks/{workspace-cd4gxvhq.js → schema-yv6n70q9.js} +18 -14
  266. package/dist/chunks/{workspace-v4xjagz7.js → schema-z50xyfn5.js} +8 -8
  267. package/dist/chunks/{workspace-pqg6v7an.js → schema-z5t17bvd.js} +8 -8
  268. package/dist/chunks/{workspace-emcgmnta.js → schema-z7z53gbn.js} +11 -11
  269. package/dist/chunks/{workspace-ecxv0vtt.js → schema-z8fm0r70.js} +3 -0
  270. package/dist/chunks/{workspace-zbqqnp0n.js → schema-zbqqnp0n.js} +1 -1
  271. package/dist/chunks/{workspace-zdkg1k91.js → schema-zdkg1k91.js} +1 -1
  272. package/dist/chunks/{workspace-zfxc0ze5.js → schema-zfxc0ze5.js} +1 -1
  273. package/dist/chunks/{workspace-bg6er1xr.js → schema-zwedh6rp.js} +6 -6
  274. package/dist/chunks/{workspace-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 -169
  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 +20 -20
  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 +20 -20
  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 +21 -21
  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 +82 -81
  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 -337
  383. package/dist/effect/app-node-platform.js +3 -2
  384. package/dist/effect/keyed-mutex.js +2 -2
  385. package/dist/effect/websocket-constructor.js +7 -0
  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 -304
  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 -85
  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 -330
  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 -162
  471. package/dist/plugin/internal.js +298 -298
  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 -79
  511. package/dist/plugin/provider/zenmux.js +3 -3
  512. package/dist/plugin/provider.js +158 -157
  513. package/dist/plugin/runtime.js +154 -151
  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 -303
  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 -163
  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 -142
  547. package/dist/session/context.js +310 -311
  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 -312
  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 -138
  564. package/dist/session/model-transport.js +5 -4
  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 -317
  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 -140
  581. package/dist/session/to-session-error.js +113 -112
  582. package/dist/session/transfer.js +171 -159
  583. package/dist/session/usage.js +2 -2
  584. package/dist/session.js +155 -150
  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 -181
  608. package/dist/tool/plugin/skill.js +104 -103
  609. package/dist/tool/plugin/subagent.js +181 -178
  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/effect/websocket-constructor.d.ts +8 -0
  620. package/dist/types/location-service-map.d.ts +2 -2
  621. package/dist/types/location-services.d.ts +1 -1
  622. package/dist/types/model.d.ts +2 -0
  623. package/dist/types/plugin/host.d.ts +26 -25
  624. package/dist/types/plugin/sdk.d.ts +1 -1
  625. package/dist/types/plugin.d.ts +2 -1
  626. package/dist/types/session/history.d.ts +345 -0
  627. package/dist/types/session/instruction-entry.d.ts +20 -0
  628. package/dist/types/session/model-request.d.ts +1 -1
  629. package/dist/types/session/schema.d.ts +3 -0
  630. package/dist/types/session/sql.d.ts +50 -1
  631. package/dist/types/session/transfer.d.ts +3 -0
  632. package/dist/types/session.d.ts +20 -11
  633. package/dist/types/shell/scan.d.ts +17 -0
  634. package/dist/types/skill.d.ts +1 -1
  635. package/dist/types/state.d.ts +4 -0
  636. package/dist/types/v1/config/migrate.d.ts +2 -1
  637. package/dist/util/array.js +1 -1
  638. package/dist/util/error.js +2 -2
  639. package/dist/util/identifier.js +1 -1
  640. package/dist/util/iife.js +2 -2
  641. package/dist/util/lazy.js +2 -2
  642. package/dist/util/process-lock-ffi.bun.js +1 -1
  643. package/dist/util/process-lock-ffi.node.js +1 -1
  644. package/dist/util/process-lock-ffi.workerd.js +1 -1
  645. package/dist/util/process-lock.js +2 -3
  646. package/dist/util/slug.js +2 -2
  647. package/dist/util/token.js +2 -2
  648. package/dist/util/which.js +2 -2
  649. package/dist/util/wildcard.js +2 -2
  650. package/dist/v1/config/agent.js +4 -4
  651. package/dist/v1/config/attachment.js +3 -3
  652. package/dist/v1/config/command.js +2 -2
  653. package/dist/v1/config/config.js +15 -15
  654. package/dist/v1/config/error.js +3 -3
  655. package/dist/v1/config/formatter.js +2 -2
  656. package/dist/v1/config/layout.js +2 -2
  657. package/dist/v1/config/lsp.js +2 -2
  658. package/dist/v1/config/mcp.js +3 -3
  659. package/dist/v1/config/migrate.js +19 -19
  660. package/dist/v1/config/permission.js +2 -2
  661. package/dist/v1/config/plugin.js +2 -2
  662. package/dist/v1/config/provider-options.js +2 -2
  663. package/dist/v1/config/provider.js +3 -3
  664. package/dist/v1/config/server.js +3 -3
  665. package/dist/v1/config/skills.js +2 -2
  666. package/dist/v1/permission.js +1 -1
  667. package/dist/vcs/git.js +3 -3
  668. package/dist/vcs/hg.js +3 -3
  669. package/dist/vcs/patch.js +2 -2
  670. package/dist/vcs.js +85 -84
  671. package/dist/websearch.js +76 -75
  672. package/dist/wellknown/plugin.js +76 -75
  673. package/dist/wellknown.js +75 -74
  674. package/dist/workspace/driver.js +2 -2
  675. package/dist/workspace/sql.js +2 -2
  676. package/dist/workspace.js +72 -71
  677. package/dist/worktree/directory.js +3 -3
  678. package/dist/worktree/git.js +7 -7
  679. package/dist/worktree/sql.js +6 -6
  680. package/dist/worktree.js +85 -84
  681. package/package.json +11 -10
  682. package/dist/chunks/workspace-1xksxgzs.js +0 -24
  683. package/dist/chunks/workspace-52jzav25.js +0 -13
  684. package/dist/chunks/workspace-93qdgxxd.js +0 -30
  685. package/dist/chunks/workspace-vxz5qdmp.js +0 -31
  686. package/dist/session/model-headers.js +0 -11
  687. package/dist/session/model-hook.js +0 -11
  688. package/dist/session/model-http.js +0 -11
  689. package/dist/session/prompt-cache-key.js +0 -10
  690. package/dist/types/session/model-headers.d.ts +0 -12
  691. package/dist/types/session/model-hook.d.ts +0 -12
  692. package/dist/types/session/model-http.d.ts +0 -11
  693. package/dist/types/session/prompt-cache-key.d.ts +0 -3
  694. /package/dist/chunks/{workspace-0cgt0xh2.js → schema-0cgt0xh2.js} +0 -0
  695. /package/dist/chunks/{workspace-0f48qthw.js → schema-0f48qthw.js} +0 -0
  696. /package/dist/chunks/{workspace-0zz82cjq.js → schema-0zz82cjq.js} +0 -0
  697. /package/dist/chunks/{workspace-1fb7bmpf.js → schema-1fb7bmpf.js} +0 -0
  698. /package/dist/chunks/{workspace-1wcz8fvj.js → schema-1wcz8fvj.js} +0 -0
  699. /package/dist/chunks/{workspace-2qdx6zz3.js → schema-2qdx6zz3.js} +0 -0
  700. /package/dist/chunks/{workspace-3c4nztf9.js → schema-3c4nztf9.js} +0 -0
  701. /package/dist/chunks/{workspace-3g3rpp2x.js → schema-3g3rpp2x.js} +0 -0
  702. /package/dist/chunks/{workspace-3q6gbwmd.js → schema-3q6gbwmd.js} +0 -0
  703. /package/dist/chunks/{workspace-3w3ybtfd.js → schema-3w3ybtfd.js} +0 -0
  704. /package/dist/chunks/{workspace-47ty4mvs.js → schema-47ty4mvs.js} +0 -0
  705. /package/dist/chunks/{workspace-4b2tz2m9.js → schema-4b2tz2m9.js} +0 -0
  706. /package/dist/chunks/{workspace-4zg0gww9.js → schema-4zg0gww9.js} +0 -0
  707. /package/dist/chunks/{workspace-5a5ch9ts.js → schema-5a5ch9ts.js} +0 -0
  708. /package/dist/chunks/{workspace-5va1yh78.js → schema-5va1yh78.js} +0 -0
  709. /package/dist/chunks/{workspace-69qrqpw0.js → schema-69qrqpw0.js} +0 -0
  710. /package/dist/chunks/{workspace-6yt963b8.js → schema-6yt963b8.js} +0 -0
  711. /package/dist/chunks/{workspace-7n9qwqk4.js → schema-7n9qwqk4.js} +0 -0
  712. /package/dist/chunks/{workspace-8nn8kqcn.js → schema-8nn8kqcn.js} +0 -0
  713. /package/dist/chunks/{workspace-8sj3ajy5.js → schema-8sj3ajy5.js} +0 -0
  714. /package/dist/chunks/{workspace-8w9tzfz1.js → schema-8w9tzfz1.js} +0 -0
  715. /package/dist/chunks/{workspace-906y0b6d.js → schema-906y0b6d.js} +0 -0
  716. /package/dist/chunks/{workspace-9dct5xhx.js → schema-9dct5xhx.js} +0 -0
  717. /package/dist/chunks/{workspace-9sdtsapf.js → schema-9sdtsapf.js} +0 -0
  718. /package/dist/chunks/{workspace-a02svayp.js → schema-a02svayp.js} +0 -0
  719. /package/dist/chunks/{workspace-a83yvq99.js → schema-a83yvq99.js} +0 -0
  720. /package/dist/chunks/{workspace-aqg9wnx6.js → schema-aqg9wnx6.js} +0 -0
  721. /package/dist/chunks/{workspace-ayevdmef.js → schema-ayevdmef.js} +0 -0
  722. /package/dist/chunks/{workspace-b02txbh8.js → schema-b02txbh8.js} +0 -0
  723. /package/dist/chunks/{workspace-bbqs2y60.js → schema-bbqs2y60.js} +0 -0
  724. /package/dist/chunks/{workspace-brsh5f65.js → schema-brsh5f65.js} +0 -0
  725. /package/dist/chunks/{workspace-bxdhjb3y.js → schema-bxdhjb3y.js} +0 -0
  726. /package/dist/chunks/{workspace-c77ad0vh.js → schema-c77ad0vh.js} +0 -0
  727. /package/dist/chunks/{workspace-cm67rqy2.js → schema-cm67rqy2.js} +0 -0
  728. /package/dist/chunks/{workspace-dbah77c1.js → schema-dbah77c1.js} +0 -0
  729. /package/dist/chunks/{workspace-df3v2q6j.js → schema-df3v2q6j.js} +0 -0
  730. /package/dist/chunks/{workspace-dhcq6c44.js → schema-dhcq6c44.js} +0 -0
  731. /package/dist/chunks/{workspace-dht5baf0.js → schema-dht5baf0.js} +0 -0
  732. /package/dist/chunks/{workspace-dkmkay92.js → schema-dkmkay92.js} +0 -0
  733. /package/dist/chunks/{workspace-ehj9csmv.js → schema-ehj9csmv.js} +0 -0
  734. /package/dist/chunks/{workspace-em6xpscd.js → schema-em6xpscd.js} +0 -0
  735. /package/dist/chunks/{workspace-emmqknsm.js → schema-emmqknsm.js} +0 -0
  736. /package/dist/chunks/{workspace-ezs3tagn.js → schema-ezs3tagn.js} +0 -0
  737. /package/dist/chunks/{workspace-f14r7hfz.js → schema-f14r7hfz.js} +0 -0
  738. /package/dist/chunks/{workspace-f4cp4g4a.js → schema-f4cp4g4a.js} +0 -0
  739. /package/dist/chunks/{workspace-f84sxdqn.js → schema-f84sxdqn.js} +0 -0
  740. /package/dist/chunks/{workspace-faypg4r1.js → schema-faypg4r1.js} +0 -0
  741. /package/dist/chunks/{workspace-gd5xeqc2.js → schema-gd5xeqc2.js} +0 -0
  742. /package/dist/chunks/{workspace-ghm4673n.js → schema-ghm4673n.js} +0 -0
  743. /package/dist/chunks/{workspace-ghwjy7my.js → schema-ghwjy7my.js} +0 -0
  744. /package/dist/chunks/{workspace-gy500k2r.js → schema-gy500k2r.js} +0 -0
  745. /package/dist/chunks/{workspace-hzeg9cfr.js → schema-hzeg9cfr.js} +0 -0
  746. /package/dist/chunks/{workspace-j07kk359.js → schema-j07kk359.js} +0 -0
  747. /package/dist/chunks/{workspace-jve7t217.js → schema-jve7t217.js} +0 -0
  748. /package/dist/chunks/{workspace-kpdbz7gn.js → schema-kpdbz7gn.js} +0 -0
  749. /package/dist/chunks/{workspace-kxy11nzk.js → schema-kxy11nzk.js} +0 -0
  750. /package/dist/chunks/{workspace-kyyqvx4s.js → schema-kyyqvx4s.js} +0 -0
  751. /package/dist/chunks/{workspace-m8cbvarh.js → schema-m8cbvarh.js} +0 -0
  752. /package/dist/chunks/{workspace-ma07p6tt.js → schema-ma07p6tt.js} +0 -0
  753. /package/dist/chunks/{workspace-ma60vzgv.js → schema-ma60vzgv.js} +0 -0
  754. /package/dist/chunks/{workspace-n3m50c2t.js → schema-n3m50c2t.js} +0 -0
  755. /package/dist/chunks/{workspace-nkm1m8dz.js → schema-nkm1m8dz.js} +0 -0
  756. /package/dist/chunks/{workspace-nsc0c3zb.js → schema-nsc0c3zb.js} +0 -0
  757. /package/dist/chunks/{workspace-qaarhjrp.js → schema-qaarhjrp.js} +0 -0
  758. /package/dist/chunks/{workspace-qc167nrn.js → schema-qc167nrn.js} +0 -0
  759. /package/dist/chunks/{workspace-qp95y4jb.js → schema-qp95y4jb.js} +0 -0
  760. /package/dist/chunks/{workspace-r8f4w671.js → schema-r8f4w671.js} +0 -0
  761. /package/dist/chunks/{workspace-rdfev9jy.js → schema-rdfev9jy.js} +0 -0
  762. /package/dist/chunks/{workspace-rvfvac9x.js → schema-rvfvac9x.js} +0 -0
  763. /package/dist/chunks/{workspace-s7whb9gt.js → schema-s7whb9gt.js} +0 -0
  764. /package/dist/chunks/{workspace-se76j685.js → schema-se76j685.js} +0 -0
  765. /package/dist/chunks/{workspace-sem2g21k.js → schema-sem2g21k.js} +0 -0
  766. /package/dist/chunks/{workspace-tmb1f636.js → schema-tmb1f636.js} +0 -0
  767. /package/dist/chunks/{workspace-ttxf0gsy.js → schema-ttxf0gsy.js} +0 -0
  768. /package/dist/chunks/{workspace-tvmhrvfj.js → schema-tvmhrvfj.js} +0 -0
  769. /package/dist/chunks/{workspace-v2adqbbe.js → schema-v2adqbbe.js} +0 -0
  770. /package/dist/chunks/{workspace-vkvb1sb3.js → schema-vkvb1sb3.js} +0 -0
  771. /package/dist/chunks/{workspace-wj4sxzqa.js → schema-wj4sxzqa.js} +0 -0
  772. /package/dist/chunks/{workspace-wwntjmk1.js → schema-wwntjmk1.js} +0 -0
  773. /package/dist/chunks/{workspace-wyqjaaa5.js → schema-wyqjaaa5.js} +0 -0
  774. /package/dist/chunks/{workspace-x4q807cx.js → schema-x4q807cx.js} +0 -0
  775. /package/dist/chunks/{workspace-yrqrg4vp.js → schema-yrqrg4vp.js} +0 -0
  776. /package/dist/chunks/{workspace-z47nswr2.js → schema-z47nswr2.js} +0 -0
  777. /package/dist/chunks/{workspace-zsf8rs93.js → schema-zsf8rs93.js} +0 -0
@@ -1,24 +1,24 @@
1
1
  import {
2
2
  exports_page
3
- } from "./workspace-7mrpdsq5.js";
3
+ } from "./schema-7mrpdsq5.js";
4
4
  import {
5
5
  exports_integration
6
- } from "./workspace-b2csa971.js";
6
+ } from "./schema-ej9r6fs2.js";
7
7
  import {
8
8
  exports_credential
9
- } from "./workspace-vzsgyrq1.js";
9
+ } from "./schema-y4vhttwz.js";
10
10
  import {
11
11
  exports_app
12
- } from "./workspace-50jxp3hw.js";
12
+ } from "./schema-50jxp3hw.js";
13
13
  import {
14
14
  exports_provider
15
- } from "./workspace-sfbv6a2b.js";
15
+ } from "./schema-djkt4gex.js";
16
16
  import {
17
17
  exports_bus
18
- } from "./workspace-njrg7yr8.js";
18
+ } from "./schema-vmvzq9kn.js";
19
19
  import {
20
20
  __require
21
- } from "./workspace-rvfvac9x.js";
21
+ } from "./schema-rvfvac9x.js";
22
22
 
23
23
  // src/plugin/provider/openai.ts
24
24
  import { define } from "@opencode-ai/plugin/effect/plugin";
@@ -138,7 +138,9 @@ var OpenAIPlugin = define({
138
138
  let chatgpt;
139
139
  const load = Effect.fn("OpenAIPlugin.load")(function* () {
140
140
  const connection = yield* ctx.integration.connection.active("openai");
141
- const credential = connection ? yield* ctx.integration.connection.resolve(connection).pipe(Effect.catch(() => Effect.succeed(undefined))) : undefined;
141
+ const credential = connection ? yield* ctx.integration.connection.resolve(connection).pipe(Effect.orElseSucceed(() => {
142
+ return;
143
+ })) : undefined;
142
144
  chatgpt = credential?.type === "oauth" && (credential.methodID === browserMethodID || credential.methodID === headlessMethodID) ? credential : undefined;
143
145
  });
144
146
  yield* ctx.integration.transform((draft) => {
@@ -147,11 +149,16 @@ var OpenAIPlugin = define({
147
149
  });
148
150
  yield* load();
149
151
  yield* ctx.catalog.transform((evt) => {
150
- if (!chatgpt)
151
- return;
152
152
  const item = evt.provider.get(exports_provider.ID.openai);
153
153
  if (!item)
154
154
  return;
155
+ for (const model of item.models.values()) {
156
+ evt.model.update(item.provider.id, model.id, (draft) => {
157
+ draft.capabilities.responsesWebsockets = true;
158
+ });
159
+ }
160
+ if (!chatgpt)
161
+ return;
155
162
  item.provider.settings = exports_provider.mergeOverlay(item.provider.settings, { baseURL: codexBaseURL });
156
163
  const account = chatgpt.metadata?.accountID;
157
164
  item.provider.headers = exports_provider.mergeHeaders(item.provider.headers, {
@@ -1,12 +1,12 @@
1
1
  import {
2
2
  exports_config
3
- } from "./workspace-ghg83jvf.js";
3
+ } from "./schema-53xdmpnb.js";
4
4
  import {
5
5
  exports_mcp
6
- } from "./workspace-tsj2cygv.js";
6
+ } from "./schema-dc6p8rz8.js";
7
7
  import {
8
8
  __export
9
- } from "./workspace-rvfvac9x.js";
9
+ } from "./schema-rvfvac9x.js";
10
10
 
11
11
  // src/config/plugin/mcp.ts
12
12
  var exports_mcp2 = {};
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  exports_provider
3
- } from "./workspace-sfbv6a2b.js";
3
+ } from "./schema-djkt4gex.js";
4
4
 
5
5
  // src/plugin/provider/zenmux.ts
6
6
  import { Effect } from "effect";
@@ -1,12 +1,12 @@
1
1
  import {
2
2
  exports_kv
3
- } from "./workspace-z6g48jge.js";
3
+ } from "./schema-jf0w9kwc.js";
4
4
  import {
5
5
  exports_bus
6
- } from "./workspace-njrg7yr8.js";
6
+ } from "./schema-vmvzq9kn.js";
7
7
  import {
8
8
  __export
9
- } from "./workspace-rvfvac9x.js";
9
+ } from "./schema-rvfvac9x.js";
10
10
 
11
11
  // src/wellknown.ts
12
12
  var exports_wellknown = {};
@@ -78,6 +78,10 @@ var layer = Layer.effect(Service, Effect.gen(function* () {
78
78
  const bus = yield* exports_bus.Service;
79
79
  const cache = yield* Ref.make(new Map);
80
80
  const lock = Semaphore.makeUnsafe(1);
81
+ const loadEntry = Effect.fn("WellKnown.loadEntry")(function* (origin) {
82
+ const manifest = yield* inspect(origin).pipe(Effect.provideService(HttpClient.HttpClient, http));
83
+ return { origin, integrationID: Integration.ID.make(origin), manifest };
84
+ });
81
85
  const load = Effect.fn("WellKnown.load")(function* () {
82
86
  const value = yield* kv.get(sourcesKey);
83
87
  const origins = Schema.is(Sources)(value) ? value : [];
@@ -86,7 +90,7 @@ var layer = Layer.effect(Service, Effect.gen(function* () {
86
90
  const cached = current.get(origin);
87
91
  if (cached)
88
92
  return Effect.succeed(cached);
89
- return inspect(origin).pipe(Effect.provideService(HttpClient.HttpClient, http), Effect.map((manifest) => ({ origin, integrationID: Integration.ID.make(origin), manifest })));
93
+ return loadEntry(origin);
90
94
  });
91
95
  yield* Ref.set(cache, new Map(entries.map((entry) => [entry.origin, entry])));
92
96
  return entries;
@@ -97,7 +101,7 @@ var layer = Layer.effect(Service, Effect.gen(function* () {
97
101
  const origins = Schema.is(Sources)(value) ? value : [];
98
102
  if (!origins.length)
99
103
  return false;
100
- const entries = yield* Effect.forEach(origins, (origin) => inspect(origin).pipe(Effect.provideService(HttpClient.HttpClient, http), Effect.map((manifest) => ({ origin, integrationID: Integration.ID.make(origin), manifest }))));
104
+ const entries = yield* Effect.forEach(origins, loadEntry);
101
105
  const next = new Map(entries.map((entry) => [entry.origin, entry]));
102
106
  const changed = !isDeepStrictEqual(Ref.getUnsafe(cache), next);
103
107
  if (!changed)
@@ -114,10 +118,9 @@ var layer = Layer.effect(Service, Effect.gen(function* () {
114
118
  add: Effect.fn("WellKnown.add")(function* (value) {
115
119
  return yield* lock.withPermit(Effect.gen(function* () {
116
120
  const origin = value.replace(/\/+$/, "");
117
- const manifest = yield* inspect(origin).pipe(Effect.provideService(HttpClient.HttpClient, http));
118
- if (!manifest.auth)
121
+ const entry = yield* loadEntry(origin);
122
+ if (!entry.manifest.auth)
119
123
  return yield* Effect.fail(new Error(`No authentication method found at ${origin}`));
120
- const entry = { origin, integrationID: Integration.ID.make(origin), manifest };
121
124
  const sources = yield* kv.get(sourcesKey);
122
125
  const origins = Schema.is(Sources)(sources) ? sources : [];
123
126
  yield* kv.set(sourcesKey, Array.from(new Set([...origins, origin])));
@@ -140,9 +143,7 @@ var layer = Layer.effect(Service, Effect.gen(function* () {
140
143
  yield* bus.publish(Event.Updated, {});
141
144
  }));
142
145
  }),
143
- resolve: Effect.fn("WellKnown.resolveEntry")(function* (entry, variables) {
144
- return yield* resolveEntry(entry, variables).pipe(Effect.provideService(HttpClient.HttpClient, http));
145
- })
146
+ resolve: Effect.fn("WellKnown.resolveEntry")((entry, variables) => resolveEntry(entry, variables).pipe(Effect.provideService(HttpClient.HttpClient, http)))
146
147
  });
147
148
  }));
148
149
  var node = makeGlobalNode({ service: Service, layer, deps: [httpClient, exports_kv.node, exports_bus.node] });
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  getTableColumnsRuntime,
3
3
  orderSelectedFields
4
- } from "./workspace-ma07p6tt.js";
4
+ } from "./schema-ma07p6tt.js";
5
5
 
6
6
  // src/database/drizzle/sqlite-core/effect/delete.ts
7
7
  import { applyEffectWrapper } from "drizzle-orm/effect-core/query-effect";
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  __export
3
- } from "./workspace-rvfvac9x.js";
3
+ } from "./schema-rvfvac9x.js";
4
4
 
5
5
  // src/v1/config/layout.ts
6
6
  var exports_layout = {};
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  __export
3
- } from "./workspace-rvfvac9x.js";
3
+ } from "./schema-rvfvac9x.js";
4
4
 
5
5
  // src/file.ts
6
6
  var exports_file = {};
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  exports_model
3
- } from "./workspace-wh0zhxcg.js";
3
+ } from "./schema-1a3a2s70.js";
4
4
  import {
5
5
  exports_provider
6
- } from "./workspace-sfbv6a2b.js";
6
+ } from "./schema-djkt4gex.js";
7
7
 
8
8
  // src/plugin/provider/openrouter.ts
9
9
  import { Effect } from "effect";
@@ -1,12 +1,12 @@
1
1
  import {
2
2
  llmClient
3
- } from "./workspace-j1a5h53y.js";
3
+ } from "./schema-k42t1tha.js";
4
4
  import {
5
5
  exports_model_resolver
6
- } from "./workspace-9jzaagxn.js";
6
+ } from "./schema-gvywm9dn.js";
7
7
  import {
8
8
  __export
9
- } from "./workspace-rvfvac9x.js";
9
+ } from "./schema-rvfvac9x.js";
10
10
 
11
11
  // src/generate.ts
12
12
  var exports_generate = {};
@@ -1,12 +1,15 @@
1
+ import {
2
+ exports_entry_observer
3
+ } from "./schema-kp1t5rcy.js";
1
4
  import {
2
5
  exports_config
3
- } from "./workspace-ghg83jvf.js";
6
+ } from "./schema-53xdmpnb.js";
4
7
  import {
5
8
  exports_provider
6
- } from "./workspace-sfbv6a2b.js";
9
+ } from "./schema-djkt4gex.js";
7
10
  import {
8
11
  __export
9
- } from "./workspace-rvfvac9x.js";
12
+ } from "./schema-rvfvac9x.js";
10
13
 
11
14
  // src/config/plugin/provider.ts
12
15
  var exports_provider2 = {};
@@ -16,12 +19,12 @@ __export(exports_provider2, {
16
19
  });
17
20
  import { define } from "@opencode-ai/plugin/effect/plugin";
18
21
  import { Money } from "@opencode-ai/schema/money";
19
- import { Effect, Stream } from "effect";
22
+ import { Effect } from "effect";
20
23
  var Plugin = define({
21
24
  id: "opencode.config.provider",
22
25
  effect: Effect.fn(function* (ctx) {
23
26
  const config = yield* exports_config.Service;
24
- const loaded = { entries: yield* config.entries() };
27
+ const loaded = yield* exports_entry_observer.observe(config, ctx.event, ctx.integration.reload().pipe(Effect.andThen(ctx.catalog.reload())));
25
28
  yield* ctx.integration.transform((integrations) => {
26
29
  for (const [id, provider] of configuredProviders(loaded.entries)) {
27
30
  const integrationID = id;
@@ -121,7 +124,6 @@ var Plugin = define({
121
124
  }
122
125
  }
123
126
  });
124
- yield* ctx.event.subscribe().pipe(Stream.filter((event) => event.type === "config.updated"), Stream.runForEach(() => config.entries().pipe(Effect.tap((entries) => Effect.sync(() => loaded.entries = entries)), Effect.andThen(ctx.integration.reload()), Effect.andThen(ctx.catalog.reload()))), Effect.forkScoped({ startImmediately: true }));
125
127
  })
126
128
  });
127
129
  function configuredProviders(entries) {
@@ -1,24 +1,24 @@
1
1
  import {
2
2
  exports_markdown
3
- } from "./workspace-7wcmqxrc.js";
3
+ } from "./schema-7wcmqxrc.js";
4
4
  import {
5
5
  exports_config
6
- } from "./workspace-ghg83jvf.js";
6
+ } from "./schema-53xdmpnb.js";
7
7
  import {
8
8
  exports_migrate
9
- } from "./workspace-zkkkcc8p.js";
9
+ } from "./schema-epzxjdf4.js";
10
10
  import {
11
11
  exports_agent as exports_agent2
12
- } from "./workspace-4s2xwh5d.js";
12
+ } from "./schema-4s2xwh5d.js";
13
13
  import {
14
14
  exports_agent
15
- } from "./workspace-6p15na29.js";
15
+ } from "./schema-kcbd8yt0.js";
16
16
  import {
17
17
  AbsolutePath
18
- } from "./workspace-j07kk359.js";
18
+ } from "./schema-j07kk359.js";
19
19
  import {
20
20
  __export
21
- } from "./workspace-rvfvac9x.js";
21
+ } from "./schema-rvfvac9x.js";
22
22
 
23
23
  // src/config/plugin/agent.ts
24
24
  var exports_agent3 = {};
@@ -61,17 +61,18 @@ var Plugin = define({
61
61
  const config = yield* exports_config.Service;
62
62
  const fs = yield* FSUtil.Service;
63
63
  const global = yield* Global.Service;
64
+ const loadEntry = Effect.fnUntraced(function* (entry) {
65
+ if (entry.type === "document")
66
+ return [entry];
67
+ if (entry.type !== "directory")
68
+ return [];
69
+ const files = yield* discover(fs, entry.path);
70
+ return yield* Effect.forEach(files, (file) => fs.readFileStringSafe(file.filepath).pipe(Effect.map((content) => content ? decode(file, content) : undefined), Effect.orElseSucceed(() => {
71
+ return;
72
+ }))).pipe(Effect.map((documents) => documents.filter((document) => document !== undefined)));
73
+ });
64
74
  const load = Effect.fn("ConfigAgentPlugin.load")(function* () {
65
- return yield* Effect.forEach(yield* config.entries(), (entry) => {
66
- if (entry.type === "document")
67
- return Effect.succeed([entry]);
68
- if (entry.type !== "directory")
69
- return Effect.succeed([]);
70
- return Effect.gen(function* () {
71
- const files = yield* discover(fs, entry.path);
72
- return yield* Effect.forEach(files, (file) => fs.readFileStringSafe(file.filepath).pipe(Effect.map((content) => content ? decode(file, content) : undefined), Effect.catch(() => Effect.succeed(undefined)))).pipe(Effect.map((documents) => documents.filter((document) => document !== undefined)));
73
- });
74
- }).pipe(Effect.map((documents) => documents.flat()));
75
+ return yield* Effect.forEach(yield* config.entries(), loadEntry).pipe(Effect.map((documents) => documents.flat()));
75
76
  });
76
77
  const loaded = { documents: [] };
77
78
  const reload = load().pipe(Effect.tap((documents) => Effect.sync(() => loaded.documents = documents)), Effect.andThen(ctx.agent.reload()));
@@ -139,9 +140,7 @@ function isPathAction(action) {
139
140
  return pathActions.some((item) => item === action);
140
141
  }
141
142
  function expandHome(resource, home) {
142
- if (resource === "~")
143
- return home;
144
- if (resource === "$HOME")
143
+ if (resource === "~" || resource === "$HOME")
145
144
  return home;
146
145
  const relative = resource.startsWith("~/") ? resource.slice(2) : resource.startsWith("$HOME/") || resource.startsWith("$HOME\\") ? resource.slice(6) : undefined;
147
146
  if (relative !== undefined)
@@ -149,7 +148,7 @@ function expandHome(resource, home) {
149
148
  return resource;
150
149
  }
151
150
  function discover(fs, directory) {
152
- return Effect.forEach(legacySources, (source) => fs.scan(source.pattern, { cwd: directory, absolute: true, dot: true, symlink: true }).pipe(Effect.map((files) => files.toSorted().map((filepath) => ({ directory, filepath, primary: source.primary }))))).pipe(Effect.map((files) => files.flat()), Effect.catch(() => Effect.succeed([])));
151
+ return Effect.forEach(legacySources, (source) => fs.scan(source.pattern, { cwd: directory, absolute: true, dot: true, symlink: true }).pipe(Effect.map((files) => files.toSorted().map((filepath) => ({ directory, filepath, primary: source.primary }))))).pipe(Effect.map((files) => files.flat()), Effect.orElseSucceed(() => []));
153
152
  }
154
153
  function decode(file, content) {
155
154
  const markdown = exports_markdown.parseOption(content);
@@ -1,27 +1,27 @@
1
1
  import {
2
2
  exports_saved
3
- } from "./workspace-x7z5vctn.js";
3
+ } from "./schema-2hyeqd71.js";
4
4
  import {
5
5
  exports_store
6
- } from "./workspace-wwkgmt0p.js";
6
+ } from "./schema-1nf83cea.js";
7
7
  import {
8
8
  exports_error
9
- } from "./workspace-p27xxkqg.js";
9
+ } from "./schema-p27xxkqg.js";
10
10
  import {
11
11
  exports_wildcard
12
- } from "./workspace-y67x6rf6.js";
13
- import {
14
- exports_location
15
- } from "./workspace-kwbvxbjz.js";
12
+ } from "./schema-y67x6rf6.js";
16
13
  import {
17
14
  exports_agent
18
- } from "./workspace-6p15na29.js";
15
+ } from "./schema-kcbd8yt0.js";
16
+ import {
17
+ exports_location
18
+ } from "./schema-j3ethsxz.js";
19
19
  import {
20
20
  exports_bus
21
- } from "./workspace-njrg7yr8.js";
21
+ } from "./schema-vmvzq9kn.js";
22
22
  import {
23
23
  __export
24
- } from "./workspace-rvfvac9x.js";
24
+ } from "./schema-rvfvac9x.js";
25
25
 
26
26
  // src/permission.ts
27
27
  var exports_permission = {};
@@ -252,11 +252,10 @@ var layer = Layer.effect(Service, Effect.gen(function* () {
252
252
  return;
253
253
  const rememberedRules = yield* savedRules();
254
254
  for (const [id, item] of pending) {
255
- const input2 = { ...item.request };
256
- const rules = yield* configured(item.request.sessionID, item.agent).pipe(Effect.catchTag("Session.NotFoundError", () => Effect.succeed(undefined)));
255
+ const rules = yield* configured(item.request.sessionID, item.agent).pipe(Effect.catchTag("Session.NotFoundError", () => Effect.undefined));
257
256
  if (!rules)
258
257
  continue;
259
- if (denied(input2, rules))
258
+ if (denied(item.request, rules))
260
259
  continue;
261
260
  const effective = [...rules, ...rememberedRules];
262
261
  if (!item.request.resources.every((resource) => evaluate(item.request.action, resource, effective).effect === "allow"))
@@ -1,12 +1,12 @@
1
1
  import {
2
2
  exports_markdown
3
- } from "./workspace-7wcmqxrc.js";
3
+ } from "./schema-7wcmqxrc.js";
4
4
  import {
5
5
  exports_config
6
- } from "./workspace-ghg83jvf.js";
6
+ } from "./schema-53xdmpnb.js";
7
7
  import {
8
8
  __export
9
- } from "./workspace-rvfvac9x.js";
9
+ } from "./schema-rvfvac9x.js";
10
10
 
11
11
  // src/config/plugin/command.ts
12
12
  var exports_command = {};
@@ -25,16 +25,16 @@ var Plugin = define({
25
25
  effect: Effect.fn(function* (ctx) {
26
26
  const config = yield* exports_config.Service;
27
27
  const fs = yield* FSUtil.Service;
28
+ const loadEntry = Effect.fnUntraced(function* (entry) {
29
+ if (entry.type === "document")
30
+ return [{ commands: entry.info.commands }];
31
+ if (entry.type !== "directory")
32
+ return [];
33
+ const commands = yield* loadDirectory(fs, entry.path);
34
+ return [{ commands: Object.fromEntries(commands.map((command) => [command.name, command.info])) }];
35
+ });
28
36
  const load = Effect.fn("ConfigCommandPlugin.load")(function* () {
29
- return yield* Effect.forEach(yield* config.entries(), (entry) => {
30
- if (entry.type === "document")
31
- return Effect.succeed([{ commands: entry.info.commands }]);
32
- if (entry.type !== "directory")
33
- return Effect.succeed([]);
34
- return loadDirectory(fs, entry.path).pipe(Effect.map((commands) => [
35
- { commands: Object.fromEntries(commands.map((command) => [command.name, command.info])) }
36
- ]));
37
- }).pipe(Effect.map((documents) => documents.flat()));
37
+ return yield* Effect.forEach(yield* config.entries(), loadEntry).pipe(Effect.map((documents) => documents.flat()));
38
38
  });
39
39
  const loaded = { documents: [] };
40
40
  const reload = load().pipe(Effect.tap((documents) => Effect.sync(() => loaded.documents = documents)), Effect.andThen(ctx.command.reload()));
@@ -71,8 +71,10 @@ function isCommandSource(entries, file) {
71
71
  }
72
72
  function loadDirectory(fs, directory) {
73
73
  return Effect.gen(function* () {
74
- const files = yield* fs.scan("{command,commands}/**/*.md", { cwd: directory, absolute: true, dot: true, symlink: true }).pipe(Effect.catch(() => Effect.succeed([])));
75
- return yield* Effect.forEach(files.toSorted(), (filepath) => fs.readFileStringSafe(filepath).pipe(Effect.map((content) => content === undefined ? undefined : decode(directory, filepath, content)), Effect.catch(() => Effect.succeed(undefined)))).pipe(Effect.map((commands) => commands.filter((command) => command !== undefined)));
74
+ const files = yield* fs.scan("{command,commands}/**/*.md", { cwd: directory, absolute: true, dot: true, symlink: true }).pipe(Effect.orElseSucceed(() => []));
75
+ return yield* Effect.forEach(files.toSorted(), (filepath) => fs.readFileStringSafe(filepath).pipe(Effect.map((content) => content === undefined ? undefined : decode(directory, filepath, content)), Effect.orElseSucceed(() => {
76
+ return;
77
+ }))).pipe(Effect.map((commands) => commands.filter((command) => command !== undefined)));
76
78
  });
77
79
  }
78
80
  function decode(directory, filepath, content) {
@@ -1,26 +1,26 @@
1
1
  import {
2
2
  exports_catalog
3
- } from "./workspace-76qm5nqf.js";
3
+ } from "./schema-me155pxc.js";
4
4
  import {
5
5
  exports_aisdk_native
6
- } from "./workspace-jt4wm1df.js";
7
- import {
8
- exports_aisdk
9
- } from "./workspace-t2ccr6s6.js";
6
+ } from "./schema-rn9r0ddn.js";
10
7
  import {
11
8
  exports_integration
12
- } from "./workspace-b2csa971.js";
9
+ } from "./schema-ej9r6fs2.js";
10
+ import {
11
+ exports_aisdk
12
+ } from "./schema-2zf7hxjt.js";
13
13
  import {
14
14
  ID,
15
15
  Ref,
16
16
  VariantID
17
- } from "./workspace-wh0zhxcg.js";
17
+ } from "./schema-1a3a2s70.js";
18
18
  import {
19
19
  exports_provider
20
- } from "./workspace-sfbv6a2b.js";
20
+ } from "./schema-djkt4gex.js";
21
21
  import {
22
22
  __export
23
- } from "./workspace-rvfvac9x.js";
23
+ } from "./schema-rvfvac9x.js";
24
24
 
25
25
  // src/model-resolver.ts
26
26
  var exports_model_resolver = {};
@@ -78,11 +78,11 @@ class Service extends Context.Service()("@opencode/ModelResolver") {
78
78
  var withVariant = (model, variantID) => {
79
79
  const id = variantID === "default" ? undefined : variantID;
80
80
  const variant = model.variants?.find((item) => item.id === id);
81
- if (!variant && variantID !== undefined && variantID !== "default")
81
+ if (!variant && id !== undefined)
82
82
  return Effect.fail(new VariantUnavailableError({
83
83
  providerID: model.providerID,
84
84
  modelID: model.id,
85
- variant: variantID
85
+ variant: id
86
86
  }));
87
87
  return Effect.succeed(variant ? produce(model, (draft) => {
88
88
  draft.settings = exports_provider.mergeOverlay(draft.settings, variant.settings);
@@ -1,12 +1,15 @@
1
+ import {
2
+ exports_entry_observer
3
+ } from "./schema-kp1t5rcy.js";
1
4
  import {
2
5
  exports_config
3
- } from "./workspace-ghg83jvf.js";
6
+ } from "./schema-53xdmpnb.js";
4
7
  import {
5
8
  exports_snapshot
6
- } from "./workspace-b04yncak.js";
9
+ } from "./schema-chrmmjkk.js";
7
10
  import {
8
11
  __export
9
- } from "./workspace-rvfvac9x.js";
12
+ } from "./schema-rvfvac9x.js";
10
13
 
11
14
  // src/config/plugin/snapshot.ts
12
15
  var exports_snapshot2 = {};
@@ -15,16 +18,13 @@ __export(exports_snapshot2, {
15
18
  ConfigSnapshotPlugin: () => exports_snapshot2
16
19
  });
17
20
  import { define } from "@opencode-ai/plugin/effect/plugin";
18
- import { Effect, Stream } from "effect";
21
+ import { Effect } from "effect";
19
22
  var Plugin = define({
20
23
  id: "opencode.config.snapshot",
21
24
  effect: Effect.fn(function* (ctx) {
22
25
  const config = yield* exports_config.Service;
23
26
  const snapshot = yield* exports_snapshot.Service;
24
- const loaded = { entries: yield* config.entries() };
25
- const reload = config.entries().pipe(Effect.tap((entries) => Effect.sync(() => loaded.entries = entries)), Effect.andThen(snapshot.reload()));
26
- yield* ctx.event.subscribe().pipe(Stream.filter((event) => event.type === "config.updated"), Stream.runForEach(() => reload), Effect.forkScoped({ startImmediately: true }));
27
- loaded.entries = yield* config.entries();
27
+ const loaded = yield* exports_entry_observer.observe(config, ctx.event, snapshot.reload());
28
28
  yield* snapshot.transform((draft) => {
29
29
  const configured = exports_config.latest(loaded.entries, "snapshots");
30
30
  if (configured === undefined)
@@ -1,24 +1,24 @@
1
1
  import {
2
2
  MessageDecodeError
3
- } from "./workspace-p27xxkqg.js";
3
+ } from "./schema-p27xxkqg.js";
4
4
  import {
5
5
  exports_instruction_state
6
- } from "./workspace-n744begs.js";
6
+ } from "./schema-0vem89v9.js";
7
7
  import {
8
8
  SessionMessageTable
9
- } from "./workspace-9d2xhdr4.js";
9
+ } from "./schema-ygy0xbqa.js";
10
10
  import {
11
11
  exports_message
12
- } from "./workspace-25pxtba7.js";
13
- import {
14
- exports_schema
15
- } from "./workspace-y8rs54ne.js";
12
+ } from "./schema-25pxtba7.js";
16
13
  import {
17
14
  exports_instructions
18
- } from "./workspace-ec8vrfw5.js";
15
+ } from "./schema-ec8vrfw5.js";
16
+ import {
17
+ exports_schema
18
+ } from "./schema-y8rs54ne.js";
19
19
  import {
20
20
  __export
21
- } from "./workspace-rvfvac9x.js";
21
+ } from "./schema-rvfvac9x.js";
22
22
 
23
23
  // src/session/history.ts
24
24
  var exports_history = {};
@@ -28,6 +28,7 @@ __export(exports_history, {
28
28
  latestCompaction: () => latestCompaction,
29
29
  firstUserMessage: () => firstUserMessage,
30
30
  entriesForRunner: () => entriesForRunner,
31
+ decodeMessageRow: () => decodeMessageRow,
31
32
  SessionHistory: () => exports_history
32
33
  });
33
34
  import { and, asc, desc, eq, gte, sql } from "drizzle-orm";
@@ -36,16 +37,13 @@ var decode = Schema.decodeUnknownEffect(exports_message.Info);
36
37
  var latestCompaction = Effect.fnUntraced(function* (db, sessionID) {
37
38
  return yield* db.select({ seq: SessionMessageTable.seq }).from(SessionMessageTable).where(and(eq(SessionMessageTable.session_id, sessionID), eq(SessionMessageTable.type, "compaction"), sql`json_extract(${SessionMessageTable.data}, '$.status') = 'completed'`)).orderBy(desc(SessionMessageTable.seq)).limit(1).get().pipe(Effect.orDie);
38
39
  });
39
- var messageRows = Effect.fnUntraced(function* (db, sessionID, compaction) {
40
- const rows = yield* db.select().from(SessionMessageTable).where(and(eq(SessionMessageTable.session_id, sessionID), compaction ? gte(SessionMessageTable.seq, compaction.seq) : undefined)).orderBy(asc(SessionMessageTable.seq)).all().pipe(Effect.orDie);
41
- return rows;
42
- });
43
40
  var decodeMessageRow = (row) => decode({ ...row.data, id: row.id, type: row.type }).pipe(Effect.mapError(() => new MessageDecodeError({
44
41
  sessionID: exports_schema.ID.make(row.session_id),
45
42
  messageID: exports_message.ID.make(row.id)
46
43
  })));
47
44
  var messageEntries = Effect.fnUntraced(function* (db, sessionID) {
48
- const rows = yield* messageRows(db, sessionID, yield* latestCompaction(db, sessionID));
45
+ const compaction = yield* latestCompaction(db, sessionID);
46
+ const rows = yield* db.select().from(SessionMessageTable).where(and(eq(SessionMessageTable.session_id, sessionID), compaction ? gte(SessionMessageTable.seq, compaction.seq) : undefined)).orderBy(asc(SessionMessageTable.seq)).all().pipe(Effect.orDie);
49
47
  return yield* Effect.forEach(rows, (row) => decodeMessageRow(row).pipe(Effect.map((message) => ({ seq: row.seq, message }))));
50
48
  });
51
49
  var load = Effect.fn("SessionHistory.load")(function* (db, sessionID) {
@@ -78,8 +76,10 @@ var firstUserMessage = Effect.fn("SessionHistory.firstUserMessage")(function* (d
78
76
  const row = yield* db.select().from(SessionMessageTable).where(and(eq(SessionMessageTable.session_id, sessionID), eq(SessionMessageTable.type, "user"))).orderBy(asc(SessionMessageTable.seq)).get().pipe(Effect.orDie);
79
77
  if (!row)
80
78
  return;
81
- const message = yield* decodeMessageRow(row).pipe(Effect.catch(() => Effect.succeed(undefined)));
79
+ const message = yield* decodeMessageRow(row).pipe(Effect.orElseSucceed(() => {
80
+ return;
81
+ }));
82
82
  return message?.type === "user" ? message : undefined;
83
83
  });
84
84
 
85
- export { latestCompaction, load, entriesForRunner, preview, firstUserMessage, exports_history };
85
+ export { latestCompaction, decodeMessageRow, load, entriesForRunner, preview, firstUserMessage, exports_history };
@@ -1,12 +1,12 @@
1
- import {
2
- SQLiteEffectDatabase
3
- } from "./workspace-dn5xz30q.js";
4
1
  import {
5
2
  upgradeIfNeeded
6
- } from "./workspace-hsyk7kfz.js";
3
+ } from "./schema-8bkmtpp6.js";
4
+ import {
5
+ SQLiteEffectDatabase
6
+ } from "./schema-mf73chvh.js";
7
7
  import {
8
8
  mapResultRow
9
- } from "./workspace-ma07p6tt.js";
9
+ } from "./schema-ma07p6tt.js";
10
10
 
11
11
  // src/database/drizzle/sqlite-core/effect/session.ts
12
12
  import * as Cause from "effect/Cause";
@@ -1,12 +1,12 @@
1
1
  import {
2
2
  exports_config
3
- } from "./workspace-ghg83jvf.js";
3
+ } from "./schema-53xdmpnb.js";
4
4
  import {
5
5
  exports_catalog
6
- } from "./workspace-76qm5nqf.js";
6
+ } from "./schema-me155pxc.js";
7
7
  import {
8
8
  exports_provider
9
- } from "./workspace-sfbv6a2b.js";
9
+ } from "./schema-djkt4gex.js";
10
10
 
11
11
  // src/plugin/provider/configured.ts
12
12
  import { Effect, Option } from "effect";