@opencode-ai/core 0.0.0-dev-19196 → 0.0.0-dev-19200

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 (778) hide show
  1. package/dist/account/sql.js +1 -1
  2. package/dist/agent.js +81 -81
  3. package/dist/aisdk-native.js +2 -2
  4. package/dist/aisdk.js +6 -6
  5. package/dist/app.js +9 -9
  6. package/dist/bus.js +67 -67
  7. package/dist/catalog.js +83 -83
  8. package/dist/chunks/{shell-0ar19swb.js → config-0424b8g1.js} +4 -4
  9. package/dist/chunks/{shell-c88sz3qs.js → config-06g3gz3d.js} +24 -24
  10. package/dist/chunks/{shell-zhrc5y8g.js → config-06qbn9zd.js} +9 -9
  11. package/dist/chunks/{shell-4xew0z44.js → config-08tvc40j.js} +3 -3
  12. package/dist/chunks/{shell-0e0xafbb.js → config-0e0xafbb.js} +2 -2
  13. package/dist/chunks/{shell-aybqrser.js → config-0ed3m1jk.js} +20 -20
  14. package/dist/chunks/{shell-3wkxvcm2.js → config-0faacv9h.js} +5 -5
  15. package/dist/chunks/{shell-0paq2nw3.js → config-0paq2nw3.js} +1 -1
  16. package/dist/chunks/{shell-0q0f95c6.js → config-0q0f95c6.js} +1 -1
  17. package/dist/chunks/{shell-yd426xvt.js → config-0q383bzk.js} +9 -9
  18. package/dist/chunks/{shell-0s9ayhjt.js → config-0s9ayhjt.js} +1 -1
  19. package/dist/chunks/{shell-jsdxtgmy.js → config-0sv942tj.js} +8 -8
  20. package/dist/chunks/{shell-xhfw6gwk.js → config-113zg7kv.js} +15 -15
  21. package/dist/chunks/{shell-dvxcgtgp.js → config-11d5h6an.js} +37 -37
  22. package/dist/chunks/{shell-1ct4r87x.js → config-1ct4r87x.js} +1 -1
  23. package/dist/chunks/{shell-32wdy755.js → config-1g8zrhqs.js} +6 -6
  24. package/dist/chunks/{shell-1n116cmy.js → config-1n116cmy.js} +2 -2
  25. package/dist/chunks/{shell-zfnpc7fv.js → config-1rfmywcm.js} +1 -1
  26. package/dist/chunks/{shell-6abnk40k.js → config-1ygqh575.js} +11 -11
  27. package/dist/chunks/{shell-21r38tys.js → config-21r38tys.js} +1 -1
  28. package/dist/chunks/{shell-p3e4re21.js → config-237jjh8r.js} +1 -1
  29. package/dist/chunks/{shell-2402vzrj.js → config-2402vzrj.js} +1 -1
  30. package/dist/chunks/{shell-2a5m3afh.js → config-2a5m3afh.js} +1 -1
  31. package/dist/chunks/{shell-2ht70gj7.js → config-2ht70gj7.js} +1 -1
  32. package/dist/chunks/{shell-g47dvf5d.js → config-2jjpr40g.js} +9 -9
  33. package/dist/chunks/{shell-yykyxftz.js → config-2rgt7c3b.js} +9 -9
  34. package/dist/chunks/{shell-mmj01rc6.js → config-2sg0crgm.js} +6 -6
  35. package/dist/chunks/config-35chk74t.js +4 -0
  36. package/dist/chunks/{shell-7pb57fb0.js → config-3camn5j0.js} +36 -36
  37. package/dist/chunks/{shell-sraw6zer.js → config-3g8r9y4m.js} +22 -22
  38. package/dist/chunks/{shell-jdnwrjf1.js → config-3h117gp9.js} +3 -3
  39. package/dist/chunks/{shell-3hepkmqq.js → config-3hepkmqq.js} +1 -1
  40. package/dist/chunks/{shell-3qzbfqsy.js → config-3qzbfqsy.js} +2 -2
  41. package/dist/chunks/{shell-3smtnn6g.js → config-3smtnn6g.js} +1 -1
  42. package/dist/chunks/{shell-3tvqynh2.js → config-3tvqynh2.js} +1 -1
  43. package/dist/chunks/{shell-kkqvv4hs.js → config-3wyqxhyv.js} +40 -40
  44. package/dist/chunks/{shell-454k5vzh.js → config-454k5vzh.js} +1 -1
  45. package/dist/chunks/{shell-ywcb5etp.js → config-4cn8226d.js} +51 -68
  46. package/dist/chunks/{shell-9sy3m4ps.js → config-4cshh5cf.js} +23 -23
  47. package/dist/chunks/{shell-21ahhajh.js → config-4f0jyt0w.js} +4 -4
  48. package/dist/chunks/{shell-98fez8vh.js → config-4gbf76z9.js} +20 -20
  49. package/dist/chunks/{shell-7yp0j7my.js → config-4mj950mr.js} +13 -13
  50. package/dist/chunks/{shell-7t18mxkv.js → config-4n3dgrrb.js} +3 -3
  51. package/dist/chunks/{shell-8gfg9fa9.js → config-4p03f1qq.js} +3 -3
  52. package/dist/chunks/{shell-4r2nyarf.js → config-4r2nyarf.js} +1 -1
  53. package/dist/chunks/{shell-sfrccsk6.js → config-4vxwgeaq.js} +33 -33
  54. package/dist/chunks/{shell-xyxtpgsf.js → config-4wdmqajx.js} +25 -25
  55. package/dist/chunks/{shell-hmeey3k9.js → config-4zxvp4s8.js} +11 -11
  56. package/dist/chunks/{shell-pjy2hnng.js → config-511mjebb.js} +4 -4
  57. package/dist/chunks/{shell-1sfe7ky6.js → config-55v2ymrw.js} +5 -5
  58. package/dist/chunks/{shell-5daktx2q.js → config-5daktx2q.js} +1 -1
  59. package/dist/chunks/{shell-5fmxt4p5.js → config-5fmxt4p5.js} +1 -1
  60. package/dist/chunks/{shell-43q760fm.js → config-5g0g6sxf.js} +5 -5
  61. package/dist/chunks/{shell-5jvc5tg2.js → config-5jvc5tg2.js} +1 -1
  62. package/dist/chunks/{shell-nv1z9knr.js → config-5p8rkq6x.js} +3 -3
  63. package/dist/chunks/{shell-0xzew176.js → config-5qanm62w.js} +44 -44
  64. package/dist/chunks/{shell-1xtfawcg.js → config-5rp8p5tq.js} +25 -25
  65. package/dist/chunks/{shell-7vcgspzg.js → config-5sw9j7cb.js} +32 -32
  66. package/dist/chunks/{shell-9cbk0p5b.js → config-5xcc0t2d.js} +35 -35
  67. package/dist/chunks/{shell-66zzpgw2.js → config-5z3wefky.js} +36 -36
  68. package/dist/chunks/{shell-fy2metxv.js → config-5z9qstwn.js} +75 -75
  69. package/dist/chunks/{shell-v63mh1hy.js → config-67cp0t3n.js} +8 -8
  70. package/dist/chunks/{shell-gw8yqzg5.js → config-6a55zhma.js} +9 -9
  71. package/dist/chunks/{shell-44x7fxmt.js → config-6adkm6cr.js} +10 -10
  72. package/dist/chunks/{shell-kv8syyjy.js → config-6cnprtbt.js} +17 -17
  73. package/dist/chunks/{shell-pxcwkz2f.js → config-6cp2jw9r.js} +18 -18
  74. package/dist/chunks/{shell-zqyb8yat.js → config-6mjnften.js} +18 -18
  75. package/dist/chunks/{shell-417y9pm1.js → config-6vwm7pwz.js} +4 -4
  76. package/dist/chunks/{shell-711hfp6y.js → config-711hfp6y.js} +2 -2
  77. package/dist/chunks/{shell-72nftnjy.js → config-72nftnjy.js} +2 -2
  78. package/dist/chunks/{shell-mvfsc1pv.js → config-73tb2d7t.js} +3 -3
  79. package/dist/chunks/{shell-wgz7hchk.js → config-75my1bc5.js} +6 -6
  80. package/dist/chunks/{shell-mtcjf44p.js → config-75yf2d83.js} +8 -8
  81. package/dist/chunks/{shell-4b5qqsbn.js → config-794t4179.js} +11 -11
  82. package/dist/chunks/{shell-7bmhse3q.js → config-7bmhse3q.js} +1 -1
  83. package/dist/chunks/{shell-qgn6gcr1.js → config-7dqw4kz8.js} +5 -5
  84. package/dist/chunks/{shell-hc4b3kyg.js → config-7gbsxqt2.js} +8 -8
  85. package/dist/chunks/{shell-0qkbcjwh.js → config-7hfxww9t.js} +9 -9
  86. package/dist/chunks/{shell-bmfd242v.js → config-7j5570x5.js} +18 -18
  87. package/dist/chunks/{shell-2xs51w6t.js → config-7t23sfae.js} +22 -22
  88. package/dist/chunks/{shell-2x7hewgh.js → config-7yygr4vw.js} +61 -61
  89. package/dist/chunks/{shell-14s8ve6g.js → config-84e5sn9r.js} +1 -1
  90. package/dist/chunks/{shell-jphw73by.js → config-89eb7pds.js} +18 -18
  91. package/dist/chunks/{shell-2r4smnpn.js → config-8dd5gh5g.js} +23 -23
  92. package/dist/chunks/{shell-ysjs28ey.js → config-8ktjr7xz.js} +15 -15
  93. package/dist/chunks/{shell-k2qp0rt7.js → config-8pn7nfj1.js} +1 -1
  94. package/dist/chunks/{shell-nsw1yxtn.js → config-8qxykv75.js} +20 -20
  95. package/dist/chunks/{shell-kryk1pph.js → config-8r0202fd.js} +9 -9
  96. package/dist/chunks/{shell-bhmtg2kj.js → config-8rk43p0s.js} +14 -14
  97. package/dist/chunks/{shell-k0zgeteb.js → config-8w44y47c.js} +24 -24
  98. package/dist/chunks/{shell-7r4ym1qc.js → config-909y75nz.js} +26 -26
  99. package/dist/chunks/{shell-ecqg7bmw.js → config-90crsdqb.js} +20 -20
  100. package/dist/chunks/{shell-fr5cx72t.js → config-95kzga43.js} +71 -71
  101. package/dist/chunks/{shell-fk8hrt4z.js → config-96s1cz01.js} +61 -61
  102. package/dist/chunks/{shell-xaf20by6.js → config-9ehtken5.js} +15 -15
  103. package/dist/chunks/{shell-zsf5n11x.js → config-9h90tm9n.js} +30 -30
  104. package/dist/chunks/{shell-9qm9egsn.js → config-9qm9egsn.js} +2 -2
  105. package/dist/chunks/{shell-ga1tzhpe.js → config-9tj0rnrh.js} +14 -14
  106. package/dist/chunks/{shell-vn3xvc40.js → config-9ybgd8dh.js} +39 -39
  107. package/dist/chunks/config-9zdhvgqs.js +18 -0
  108. package/dist/chunks/{shell-bb0kg1q4.js → config-a51qe2m1.js} +9 -9
  109. package/dist/chunks/{shell-ctd4qdmr.js → config-a5nkh94p.js} +4 -4
  110. package/dist/chunks/{shell-djytekme.js → config-a6y8nfjs.js} +30 -30
  111. package/dist/chunks/{shell-gc168ysg.js → config-a7ygzknp.js} +14 -14
  112. package/dist/chunks/{shell-aaet6srn.js → config-aaet6srn.js} +2 -2
  113. package/dist/chunks/{shell-ajtjthsy.js → config-ajtjthsy.js} +2 -2
  114. package/dist/chunks/{shell-fe9mb3y1.js → config-aw45zfev.js} +11 -11
  115. package/dist/chunks/{shell-a46v4e4v.js → config-b27vhd2z.js} +4 -4
  116. package/dist/chunks/{shell-b6gygkdw.js → config-b6gygkdw.js} +2 -2
  117. package/dist/chunks/{shell-b9wsbatv.js → config-b9wsbatv.js} +1 -1
  118. package/dist/chunks/{shell-bsvvsrn1.js → config-bcezcar3.js} +5 -5
  119. package/dist/chunks/{shell-vh4awg6g.js → config-bj6xkg51.js} +16 -16
  120. package/dist/chunks/{shell-ckv8rq3a.js → config-bpdzwx5y.js} +20 -20
  121. package/dist/chunks/{shell-enwn0tzc.js → config-bpnz08mb.js} +2 -2
  122. package/dist/chunks/{shell-zmjynawk.js → config-btc4hvws.js} +5 -5
  123. package/dist/chunks/{shell-g3m9axkp.js → config-bva7vcjq.js} +4 -4
  124. package/dist/chunks/{shell-4wt00r3g.js → config-bwd8tstc.js} +9 -9
  125. package/dist/chunks/{shell-xa232ce3.js → config-c570sca7.js} +18 -18
  126. package/dist/chunks/{shell-93wwsra1.js → config-c5x8pjfg.js} +5 -5
  127. package/dist/chunks/{shell-2sfwn1pw.js → config-c6tw1r0q.js} +9 -9
  128. package/dist/chunks/{shell-1s3v4p4d.js → config-c8jz2e4n.js} +18 -18
  129. package/dist/chunks/{shell-bvc9822d.js → config-cevanw02.js} +29 -29
  130. package/dist/chunks/{shell-36vsdr69.js → config-cfsc9srb.js} +8 -8
  131. package/dist/chunks/config-cjjzzp5t.js +247 -0
  132. package/dist/chunks/{shell-05mkz72h.js → config-cjnqn6s5.js} +25 -25
  133. package/dist/chunks/{shell-k37p1w3a.js → config-ck970z52.js} +10 -10
  134. package/dist/chunks/{shell-j1pm0kh5.js → config-cm990fgz.js} +9 -9
  135. package/dist/chunks/{shell-d72308c8.js → config-d72308c8.js} +2 -2
  136. package/dist/chunks/{shell-f086nceb.js → config-d9rpbp5n.js} +24 -24
  137. package/dist/chunks/{shell-mg8hyy97.js → config-dkk7a5wk.js} +2 -2
  138. package/dist/chunks/{shell-585qr39b.js → config-dn3mp5jr.js} +7 -7
  139. package/dist/chunks/{shell-brg38b3f.js → config-dt746yqr.js} +6 -6
  140. package/dist/chunks/{shell-fkpvx5pg.js → config-e6s6n12p.js} +41 -41
  141. package/dist/chunks/{shell-nhy5jxhy.js → config-e82z9tr0.js} +7 -7
  142. package/dist/chunks/{shell-ky97vkm0.js → config-eatef5sh.js} +12 -12
  143. package/dist/chunks/{shell-7sqp221s.js → config-eg4pr325.js} +10 -10
  144. package/dist/chunks/{shell-vqcnb6e5.js → config-ektxve03.js} +11 -11
  145. package/dist/chunks/{shell-f2n192rq.js → config-f2n192rq.js} +1 -1
  146. package/dist/chunks/{shell-dyrfwbsh.js → config-f6e7rem1.js} +21 -21
  147. package/dist/chunks/{shell-rca1y2wr.js → config-fbfx65yb.js} +11 -11
  148. package/dist/chunks/{shell-42t0dhr4.js → config-ffzahd1q.js} +5 -5
  149. package/dist/chunks/{shell-aszbaj7g.js → config-fhsnc0hn.js} +13 -13
  150. package/dist/chunks/{shell-gzbkpp9m.js → config-fjvydvzm.js} +4 -4
  151. package/dist/chunks/{shell-ew0tmsyp.js → config-fp0hvswx.js} +10 -10
  152. package/dist/chunks/{shell-0gaj4617.js → config-fvanntqq.js} +4 -4
  153. package/dist/chunks/{shell-fxbjtjnd.js → config-fxbjtjnd.js} +1 -1
  154. package/dist/chunks/{shell-fxypknc8.js → config-fxypknc8.js} +1 -1
  155. package/dist/chunks/{shell-xb5d6gcm.js → config-g0ae6at5.js} +30 -30
  156. package/dist/chunks/{shell-06337yqs.js → config-g3zj0x2b.js} +5 -5
  157. package/dist/chunks/config-g5hp5s0s.js +22 -0
  158. package/dist/chunks/{shell-gd4qta3r.js → config-gd4qta3r.js} +1 -1
  159. package/dist/chunks/{shell-3fc6dm20.js → config-gdvy8fx6.js} +4 -4
  160. package/dist/chunks/{shell-gp91837t.js → config-gfhv6fp9.js} +20 -20
  161. package/dist/chunks/config-gmyhzdye.js +193 -0
  162. package/dist/chunks/{shell-gqs2vad9.js → config-h0xakedw.js} +17 -17
  163. package/dist/chunks/{shell-x02ksyz9.js → config-h0zp9rha.js} +16 -16
  164. package/dist/chunks/{shell-4c5k13je.js → config-h397hkc6.js} +1 -1
  165. package/dist/chunks/{shell-h6vf3j39.js → config-h6vf3j39.js} +1 -1
  166. package/dist/chunks/{shell-qwjbpryz.js → config-hcnaa5mc.js} +19 -19
  167. package/dist/chunks/{shell-heyhwy2w.js → config-heyhwy2w.js} +1 -1
  168. package/dist/chunks/{shell-hrvm11jt.js → config-hrvm11jt.js} +3 -3
  169. package/dist/chunks/{shell-kvsjn1dr.js → config-hw4pv20g.js} +2 -2
  170. package/dist/chunks/{shell-r9fqtgme.js → config-j5cvhpj6.js} +10 -10
  171. package/dist/chunks/{shell-2xph78ty.js → config-j80e9skv.js} +9 -9
  172. package/dist/chunks/{shell-037vejbr.js → config-jbzcfc0w.js} +20 -20
  173. package/dist/chunks/{shell-v9mxw17g.js → config-jh787hsq.js} +24 -24
  174. package/dist/chunks/{shell-b4xf332k.js → config-jrfpqtb1.js} +27 -27
  175. package/dist/chunks/{shell-r48p3yav.js → config-jrkm11se.js} +1 -1
  176. package/dist/chunks/{shell-7gfpemw6.js → config-k0f82zt9.js} +6 -6
  177. package/dist/chunks/{shell-k4bwy1x5.js → config-k4bwy1x5.js} +1 -1
  178. package/dist/chunks/{shell-7qtxbs4b.js → config-kc8pqgtx.js} +6 -6
  179. package/dist/chunks/{shell-kg06axw8.js → config-kg06axw8.js} +1 -1
  180. package/dist/chunks/{shell-sjn9e3ew.js → config-kgc8thfg.js} +11 -11
  181. package/dist/chunks/{shell-3f9n5hdq.js → config-khzg4rw9.js} +12 -12
  182. package/dist/chunks/{shell-9ap403n6.js → config-ktcvmpym.js} +39 -39
  183. package/dist/chunks/{shell-r99b7fbd.js → config-kxdbpzvg.js} +11 -11
  184. package/dist/chunks/{shell-35kceag9.js → config-kztq1z52.js} +35 -35
  185. package/dist/chunks/{shell-gfv1e1ds.js → config-m92yr7es.js} +46 -46
  186. package/dist/chunks/{shell-m9w0rfyh.js → config-m9w0rfyh.js} +1 -1
  187. package/dist/chunks/{shell-y68jbn75.js → config-mbpc0r5e.js} +16 -16
  188. package/dist/chunks/{shell-z8c5n9kb.js → config-mcqwb5cw.js} +21 -21
  189. package/dist/chunks/{shell-6rjzzdxy.js → config-mdgebrj3.js} +3 -3
  190. package/dist/chunks/{shell-5ewtbtr0.js → config-mecc0azh.js} +32 -32
  191. package/dist/chunks/{shell-8tzngw7b.js → config-mfm8exmb.js} +20 -20
  192. package/dist/chunks/{shell-kz8th6jy.js → config-mq9r6drf.js} +3 -3
  193. package/dist/chunks/{shell-q39pj94r.js → config-mqc5k020.js} +9 -9
  194. package/dist/chunks/{shell-kyd4za44.js → config-ms4p05rz.js} +4 -4
  195. package/dist/chunks/{shell-3w01mqch.js → config-n029d2mf.js} +25 -25
  196. package/dist/chunks/{shell-fcxhebz1.js → config-n4h9vw0g.js} +26 -26
  197. package/dist/chunks/{shell-2g7fb4sy.js → config-n6wnzfnt.js} +9 -9
  198. package/dist/chunks/{shell-m3fm0fm8.js → config-n95nq84g.js} +5 -5
  199. package/dist/chunks/{shell-ze4dnq9c.js → config-p2rgpb9z.js} +20 -20
  200. package/dist/chunks/{shell-j935v87r.js → config-paphc93g.js} +2 -2
  201. package/dist/chunks/{shell-g52wq5zw.js → config-pcfe4ghh.js} +4 -4
  202. package/dist/chunks/{shell-6ym5me7r.js → config-pdw22why.js} +5 -5
  203. package/dist/chunks/{shell-2ty14fk8.js → config-pe40p04d.js} +9 -9
  204. package/dist/chunks/{shell-pjvnvgmy.js → config-pjvnvgmy.js} +1 -1
  205. package/dist/chunks/{shell-pknna89w.js → config-pknna89w.js} +1 -1
  206. package/dist/chunks/{shell-ejmkr9z7.js → config-pvze4eqr.js} +50 -50
  207. package/dist/chunks/{shell-y7w5kr51.js → config-pwc5sxx6.js} +25 -25
  208. package/dist/chunks/{shell-ya0kqzg7.js → config-pztjajpw.js} +7 -7
  209. package/dist/chunks/{shell-yc67yyny.js → config-q3x5sxn7.js} +9 -9
  210. package/dist/chunks/{shell-hjjb040h.js → config-q4zymtb1.js} +4 -4
  211. package/dist/chunks/{shell-mek50901.js → config-q99m3398.js} +6 -6
  212. package/dist/chunks/{shell-8nkz5pt3.js → config-qa6sfwtx.js} +8 -8
  213. package/dist/chunks/{shell-w2fyyd5g.js → config-qrf1196v.js} +32 -32
  214. package/dist/chunks/{shell-qsdy395h.js → config-qsdy395h.js} +1 -1
  215. package/dist/chunks/{shell-04pvrnvk.js → config-qt1tjvnb.js} +28 -28
  216. package/dist/chunks/{shell-8tbsk23y.js → config-r5w2ssxe.js} +9 -9
  217. package/dist/chunks/{shell-r8dhm0tv.js → config-r8dhm0tv.js} +1 -1
  218. package/dist/chunks/{shell-bct739vz.js → config-r98e92ep.js} +4 -4
  219. package/dist/chunks/{shell-nmgddbg4.js → config-rae26gbb.js} +8 -8
  220. package/dist/chunks/{shell-1a5eqtf0.js → config-rgsxhgxd.js} +24 -24
  221. package/dist/chunks/{shell-jzz3abdx.js → config-rrtr8q94.js} +18 -18
  222. package/dist/chunks/{shell-78vzyx6d.js → config-rvgz7n9z.js} +20 -20
  223. package/dist/chunks/{shell-d67bzqbb.js → config-rwqv0d5v.js} +9 -9
  224. package/dist/chunks/{shell-sba4qhjf.js → config-sba4qhjf.js} +1 -1
  225. package/dist/chunks/{shell-hzxz3qkz.js → config-sez2sxvq.js} +11 -11
  226. package/dist/chunks/{shell-00pcw284.js → config-sj7pfbwb.js} +16 -16
  227. package/dist/chunks/{shell-ts3fz7sh.js → config-sxq12nxh.js} +34 -34
  228. package/dist/chunks/{shell-fehrn2qm.js → config-sy7czwgb.js} +6 -6
  229. package/dist/chunks/{shell-cg0d0972.js → config-szgaehjq.js} +12 -12
  230. package/dist/chunks/{shell-1kmw8bw9.js → config-t00n1yfv.js} +8 -8
  231. package/dist/chunks/{shell-tazgh4e4.js → config-tazgh4e4.js} +1 -1
  232. package/dist/chunks/{shell-tcezcvh9.js → config-tcezcvh9.js} +1 -1
  233. package/dist/chunks/{shell-sykc9y4a.js → config-tdpndm1c.js} +5 -5
  234. package/dist/chunks/{shell-tjykrgmx.js → config-tjykrgmx.js} +1 -1
  235. package/dist/chunks/{shell-vwvvp157.js → config-tppvcy65.js} +9 -9
  236. package/dist/chunks/{shell-9yjbvttw.js → config-twmtcs0e.js} +24 -24
  237. package/dist/chunks/{shell-v4r0s993.js → config-v7mvzpxp.js} +13 -13
  238. package/dist/chunks/{shell-d6se384q.js → config-vhzdsqy0.js} +17 -17
  239. package/dist/chunks/{shell-gr7vg3y5.js → config-vpkbx0dt.js} +4 -4
  240. package/dist/chunks/{shell-w3wsvvr9.js → config-w3wsvvr9.js} +1 -1
  241. package/dist/chunks/{shell-myqn1vwn.js → config-w4sy5vr6.js} +8 -8
  242. package/dist/chunks/{shell-fzajb8v1.js → config-w6cg0ec3.js} +10 -10
  243. package/dist/chunks/{shell-qkar7ddm.js → config-w9pb3kva.js} +23 -23
  244. package/dist/chunks/{shell-9y1phk8d.js → config-wb545wbz.js} +1 -1
  245. package/dist/chunks/{shell-wd87259q.js → config-wd87259q.js} +1 -1
  246. package/dist/chunks/{shell-bpyk2zgp.js → config-wdqf1a1r.js} +6 -6
  247. package/dist/chunks/{shell-08gqv4wh.js → config-wqk7r3qg.js} +25 -25
  248. package/dist/chunks/{shell-hay8k9wj.js → config-wszjhsey.js} +26 -26
  249. package/dist/chunks/{shell-a6y0jgay.js → config-wx6ek7p1.js} +9 -9
  250. package/dist/chunks/{shell-v97587cg.js → config-x05erqvs.js} +6 -6
  251. package/dist/chunks/{shell-x1ezjp6w.js → config-x1ezjp6w.js} +1 -1
  252. package/dist/chunks/{shell-n3xn0h0f.js → config-x8nx6njd.js} +10 -10
  253. package/dist/chunks/{shell-vcnd030r.js → config-xc5n2mhq.js} +13 -13
  254. package/dist/chunks/{shell-4192f9pk.js → config-xd3j2mtj.js} +169 -169
  255. package/dist/chunks/{shell-2yk8myve.js → config-xjjjdr4d.js} +36 -36
  256. package/dist/chunks/{shell-vtq1wfzg.js → config-xnjnn6ck.js} +4 -4
  257. package/dist/chunks/{shell-80bfyqqz.js → config-xpt98yma.js} +24 -24
  258. package/dist/chunks/{shell-xjy0arej.js → config-xya7n0dd.js} +48 -48
  259. package/dist/chunks/{shell-y1fvbwt7.js → config-y1fvbwt7.js} +1 -1
  260. package/dist/chunks/{shell-y2cqme3r.js → config-y2cqme3r.js} +2 -2
  261. package/dist/chunks/{shell-9gfdxbs4.js → config-y2gt4tn8.js} +2 -2
  262. package/dist/chunks/{shell-4t7hsdzk.js → config-y5nnwpyf.js} +17 -17
  263. package/dist/chunks/{shell-eye58hw2.js → config-y6x1631j.js} +21 -21
  264. package/dist/chunks/{shell-y71avatq.js → config-y71avatq.js} +1 -1
  265. package/dist/chunks/{shell-kk3rr3qh.js → config-yfbd16n1.js} +5 -5
  266. package/dist/chunks/{shell-6erngkvb.js → config-yptt4r9g.js} +30 -30
  267. package/dist/chunks/{shell-1mrma768.js → config-yzd93mfj.js} +5 -5
  268. package/dist/chunks/{shell-sh0vnv2k.js → config-yzendvqq.js} +18 -18
  269. package/dist/chunks/{shell-n7p3q306.js → config-z1jkgvde.js} +19 -19
  270. package/dist/chunks/{shell-z1k01bn4.js → config-z1k01bn4.js} +2 -2
  271. package/dist/chunks/{shell-4kjzcy7g.js → config-z3avqe8v.js} +17 -17
  272. package/dist/chunks/{shell-29x78va6.js → config-z63w68vq.js} +6 -6
  273. package/dist/chunks/{shell-7nprwmah.js → config-z9dxnre0.js} +43 -43
  274. package/dist/chunks/{shell-70b0rhqw.js → config-zc4pefsx.js} +16 -16
  275. package/dist/chunks/{shell-7908ykgb.js → config-zfqme3r2.js} +8 -8
  276. package/dist/chunks/{shell-jjz9kdpw.js → config-zgxqspyk.js} +23 -23
  277. package/dist/chunks/{shell-84ws7vk9.js → config-zkhy5g3c.js} +29 -29
  278. package/dist/chunks/{shell-sxaj9jh7.js → config-zre25x07.js} +12 -12
  279. package/dist/chunks/{shell-k1w98zgr.js → config-ztvw86cy.js} +8 -8
  280. package/dist/chunks/{shell-haggcxkj.js → config-ztwscpt3.js} +7 -7
  281. package/dist/chunks/{shell-h5wpvtxr.js → config-zv54gy8z.js} +6 -6
  282. package/dist/chunks/{shell-m70sbz6t.js → config-zvt5dnpc.js} +4 -4
  283. package/dist/chunks/{shell-b7pyt6aj.js → config-zw7n3jsf.js} +289 -289
  284. package/dist/chunks/{shell-zxq2ej10.js → config-zxq2ej10.js} +1 -1
  285. package/dist/chunks/{shell-5mxx68d3.js → config-zyherzjf.js} +8 -8
  286. package/dist/codemode/catalog.js +3 -3
  287. package/dist/codemode/instructions.js +11 -11
  288. package/dist/codemode/tool.js +2 -2
  289. package/dist/command.js +81 -81
  290. package/dist/config/discovery.js +77 -77
  291. package/dist/config/markdown.js +1 -1
  292. package/dist/config/normalize.js +19 -19
  293. package/dist/config/plugin/agent.js +117 -117
  294. package/dist/config/plugin/command.js +208 -208
  295. package/dist/config/plugin/compaction.js +154 -154
  296. package/dist/config/plugin/entry-observer.js +1 -1
  297. package/dist/config/plugin/formatter.js +115 -115
  298. package/dist/config/plugin/image.js +115 -115
  299. package/dist/config/plugin/instruction.js +85 -85
  300. package/dist/config/plugin/location-watcher.js +117 -117
  301. package/dist/config/plugin/mcp.js +126 -126
  302. package/dist/config/plugin/policy.js +114 -114
  303. package/dist/config/plugin/provider.js +113 -113
  304. package/dist/config/plugin/reference.js +117 -117
  305. package/dist/config/plugin/shell.js +116 -116
  306. package/dist/config/plugin/skill-file.js +96 -96
  307. package/dist/config/plugin/skill.js +135 -135
  308. package/dist/config/plugin/snapshot.js +115 -115
  309. package/dist/config/plugin/source.js +117 -117
  310. package/dist/config/plugin/tool-output.js +117 -117
  311. package/dist/config/plugin/websearch.js +113 -113
  312. package/dist/config/plugin/worktree.js +118 -118
  313. package/dist/config/variable.js +3 -3
  314. package/dist/config/watch.js +1 -1
  315. package/dist/config.js +117 -117
  316. package/dist/credential/sql.js +2 -2
  317. package/dist/credential.js +83 -83
  318. package/dist/database/database.js +64 -64
  319. package/dist/database/drizzle/effect-sqlite/driver.js +12 -12
  320. package/dist/database/drizzle/effect-sqlite/index.js +12 -12
  321. package/dist/database/drizzle/effect-sqlite/session.js +11 -11
  322. package/dist/database/drizzle/index.js +13 -13
  323. package/dist/database/drizzle/internal/drizzle-utils.js +1 -1
  324. package/dist/database/drizzle/sqlite-core/effect/count.js +1 -1
  325. package/dist/database/drizzle/sqlite-core/effect/db.js +9 -9
  326. package/dist/database/drizzle/sqlite-core/effect/delete.js +2 -2
  327. package/dist/database/drizzle/sqlite-core/effect/index.js +10 -10
  328. package/dist/database/drizzle/sqlite-core/effect/insert.js +2 -2
  329. package/dist/database/drizzle/sqlite-core/effect/query.js +1 -1
  330. package/dist/database/drizzle/sqlite-core/effect/raw.js +1 -1
  331. package/dist/database/drizzle/sqlite-core/effect/select.js +2 -2
  332. package/dist/database/drizzle/sqlite-core/effect/session.js +10 -10
  333. package/dist/database/drizzle/sqlite-core/effect/update.js +2 -2
  334. package/dist/database/drizzle.js +14 -14
  335. package/dist/database/migration/20260127222353_familiar_lady_ursula.js +1 -1
  336. package/dist/database/migration/20260211171708_add_project_commands.js +1 -1
  337. package/dist/database/migration/20260213144116_wakeful_the_professor.js +1 -1
  338. package/dist/database/migration/20260225215848_workspace.js +1 -1
  339. package/dist/database/migration/20260227213759_add_session_workspace_id.js +1 -1
  340. package/dist/database/migration/20260228203230_blue_harpoon.js +1 -1
  341. package/dist/database/migration/20260303231226_add_workspace_fields.js +1 -1
  342. package/dist/database/migration/20260309230000_move_org_to_state.js +1 -1
  343. package/dist/database/migration/20260312043431_session_message_cursor.js +1 -1
  344. package/dist/database/migration/20260323234822_events.js +1 -1
  345. package/dist/database/migration/20260410174513_workspace-name.js +1 -1
  346. package/dist/database/migration/20260413175956_chief_energizer.js +1 -1
  347. package/dist/database/migration/20260423070820_add_icon_url_override.js +1 -1
  348. package/dist/database/migration/20260427172553_slow_nightmare.js +1 -1
  349. package/dist/database/migration/20260428004200_add_session_path.js +1 -1
  350. package/dist/database/migration/20260501142318_next_venus.js +1 -1
  351. package/dist/database/migration/20260504145000_add_sync_owner.js +1 -1
  352. package/dist/database/migration/20260507164347_add_workspace_time.js +1 -1
  353. package/dist/database/migration/20260510033149_session_usage.js +1 -1
  354. package/dist/database/migration/20260511000411_data_migration_state.js +1 -1
  355. package/dist/database/migration/20260511173437_session-metadata.js +1 -1
  356. package/dist/database/migration/20260601010001_normalize_storage_paths.js +1 -1
  357. package/dist/database/migration/20260601202201_amazing_prowler.js +1 -1
  358. package/dist/database/migration/20260602002951_lowly_union_jack.js +1 -1
  359. package/dist/database/migration/20260602182828_add_project_directories.js +1 -1
  360. package/dist/database/migration/20260603001617_session_message_projection_indexes.js +1 -1
  361. package/dist/database/migration/20260603040000_session_message_projection_order.js +1 -1
  362. package/dist/database/migration/20260603141458_session_input_inbox.js +1 -1
  363. package/dist/database/migration/20260603160727_jittery_ezekiel_stane.js +1 -1
  364. package/dist/database/migration/20260604172448_event_sourced_session_input.js +1 -1
  365. package/dist/database/migration/20260605003541_add_session_context_snapshot.js +1 -1
  366. package/dist/database/migration/20260605042240_add_context_epoch_agent.js +1 -1
  367. package/dist/database/migration/20260611035744_credential.js +1 -1
  368. package/dist/database/migration/20260611192811_lush_chimera.js +1 -1
  369. package/dist/database/migration/20260612174303_project_dir_strategy.js +1 -1
  370. package/dist/database/migration/20260622142730_simplify_session_context_epoch.js +1 -1
  371. package/dist/database/migration/20260622170816_reset_v2_session_state.js +1 -1
  372. package/dist/database/migration/20260622202450_simplify_session_input.js +1 -1
  373. package/dist/database/migration/20260804233008_loose_psylocke.js +1 -1
  374. package/dist/database/migration/20260805200742_import_legacy_credentials.js +1 -1
  375. package/dist/database/migration/20260808023530_workspace_domain.js +1 -1
  376. package/dist/database/migration/20260811161259_execution_claim_attempts.js +1 -1
  377. package/dist/database/migration/20260812181746_session_inbox.js +1 -1
  378. package/dist/database/migration/20260812213948_worktree.js +1 -1
  379. package/dist/database/migration/20260819222447_session_viewed_state.js +1 -1
  380. package/dist/database/migration/20260823191254_nullable_workspace_binding.js +1 -1
  381. package/dist/database/migration.gen.js +47 -47
  382. package/dist/database/migration.js +49 -49
  383. package/dist/database/path.js +2 -2
  384. package/dist/database/schema.gen.js +1 -1
  385. package/dist/database/schema.sql.js +1 -1
  386. package/dist/database/sqlite.bun.js +1 -1
  387. package/dist/database/sqlite.js +1 -1
  388. package/dist/database/sqlite.node.js +1 -1
  389. package/dist/database/sqlite.workerd.js +1 -1
  390. package/dist/database/v1-migration.bun.js +74 -74
  391. package/dist/database/v1-migration.js +1 -1
  392. package/dist/effect/app-node-builder.js +359 -359
  393. package/dist/effect/app-node-platform.js +2 -2
  394. package/dist/effect/keyed-mutex.js +1 -1
  395. package/dist/effect/websocket-constructor.js +1 -1
  396. package/dist/environment/driver.js +1 -1
  397. package/dist/environment/environment.js +88 -88
  398. package/dist/environment/exec-defaults.js +2 -2
  399. package/dist/environment/files.js +1 -1
  400. package/dist/environment/index.js +90 -90
  401. package/dist/environment/local.js +2 -2
  402. package/dist/environment/memory.js +2 -2
  403. package/dist/environment/unavailable.js +1 -1
  404. package/dist/event/sql.js +1 -1
  405. package/dist/event-logger.js +68 -68
  406. package/dist/file-mutation.js +89 -89
  407. package/dist/file-retention.js +1 -1
  408. package/dist/file.js +1 -1
  409. package/dist/filesystem/fff.bun.js +2 -2
  410. package/dist/filesystem/fff.js +1 -1
  411. package/dist/filesystem/fff.node.js +2 -2
  412. package/dist/filesystem/fff.workerd.js +2 -2
  413. package/dist/filesystem/ignore.js +1 -1
  414. package/dist/filesystem/location-watcher-policy.js +2 -2
  415. package/dist/filesystem/location-watcher.js +221 -221
  416. package/dist/filesystem/protected.js +1 -1
  417. package/dist/filesystem/search.js +93 -93
  418. package/dist/filesystem/watcher-binding.js +3 -3
  419. package/dist/filesystem/watcher.js +13 -13
  420. package/dist/filesystem.js +96 -96
  421. package/dist/form.js +82 -82
  422. package/dist/formatter/builtins.js +4 -4
  423. package/dist/formatter.js +82 -82
  424. package/dist/generate.js +89 -89
  425. package/dist/git.js +7 -7
  426. package/dist/github-copilot/chat/convert-to-openai-compatible-chat-messages.js +1 -1
  427. package/dist/github-copilot/chat/get-response-metadata.js +1 -1
  428. package/dist/github-copilot/chat/map-openai-compatible-finish-reason.js +1 -1
  429. package/dist/github-copilot/chat/openai-compatible-chat-language-model.js +7 -7
  430. package/dist/github-copilot/chat/openai-compatible-chat-options.js +1 -1
  431. package/dist/github-copilot/chat/openai-compatible-prepare-tools.js +1 -1
  432. package/dist/github-copilot/copilot-provider.js +17 -17
  433. package/dist/github-copilot/models.js +7 -7
  434. package/dist/github-copilot/openai-compatible-error.js +1 -1
  435. package/dist/github-copilot/responses/convert-to-openai-responses-input.js +1 -1
  436. package/dist/github-copilot/responses/map-openai-responses-finish-reason.js +1 -1
  437. package/dist/github-copilot/responses/openai-error.js +1 -1
  438. package/dist/github-copilot/responses/openai-responses-language-model.js +10 -10
  439. package/dist/github-copilot/responses/openai-responses-prepare-tools.js +6 -6
  440. package/dist/github-copilot/responses/tool/code-interpreter.js +1 -1
  441. package/dist/github-copilot/responses/tool/file-search.js +1 -1
  442. package/dist/github-copilot/responses/tool/image-generation.js +1 -1
  443. package/dist/github-copilot/responses/tool/web-search-preview.js +1 -1
  444. package/dist/github-copilot/responses/tool/web-search.js +1 -1
  445. package/dist/id/id.js +1 -1
  446. package/dist/image/photon.js +2 -2
  447. package/dist/image.js +6 -6
  448. package/dist/instance/service.js +5 -5
  449. package/dist/instance.js +350 -350
  450. package/dist/instruction-discovery.js +83 -83
  451. package/dist/instructions/builtins.js +82 -82
  452. package/dist/instructions/index.js +5 -5
  453. package/dist/integration/connection.js +1 -1
  454. package/dist/integration.js +86 -86
  455. package/dist/job.js +77 -77
  456. package/dist/kv/sql.js +2 -2
  457. package/dist/kv.js +71 -71
  458. package/dist/location-activity.js +127 -127
  459. package/dist/location-mutation.js +81 -81
  460. package/dist/location-service-map.js +81 -81
  461. package/dist/location-services.js +347 -347
  462. package/dist/location.js +84 -84
  463. package/dist/mcp/client.js +86 -86
  464. package/dist/mcp/index.js +103 -103
  465. package/dist/mcp/instructions.js +121 -121
  466. package/dist/mcp/oauth.js +3 -3
  467. package/dist/mcp/stdio.js +85 -85
  468. package/dist/mime.js +1 -1
  469. package/dist/modal/models.js +7 -7
  470. package/dist/model-resolver.js +86 -86
  471. package/dist/model.js +8 -8
  472. package/dist/models-dev.js +86 -86
  473. package/dist/oauth/page.js +1 -1
  474. package/dist/permission/saved.js +80 -80
  475. package/dist/permission/sql.js +5 -5
  476. package/dist/permission.js +113 -113
  477. package/dist/persistent-pty/binary.bun.js +1 -1
  478. package/dist/persistent-pty/daemon.js +1 -1
  479. package/dist/persistent-pty/index.js +86 -86
  480. package/dist/persistent-pty/pty-binding.js +1 -1
  481. package/dist/persistent-pty.js +73 -73
  482. package/dist/plugin/agent.js +98 -98
  483. package/dist/plugin/command.js +96 -96
  484. package/dist/plugin/hooks.js +5 -5
  485. package/dist/plugin/host.js +212 -212
  486. package/dist/plugin/instance.js +5 -5
  487. package/dist/plugin/internal.js +321 -321
  488. package/dist/plugin/mcp-codemode-exclusion.js +3 -3
  489. package/dist/plugin/models-dev.js +75 -75
  490. package/dist/plugin/module.js +7 -7
  491. package/dist/plugin/optimize.js +4 -4
  492. package/dist/plugin/plan.js +96 -96
  493. package/dist/plugin/promise.js +1 -1
  494. package/dist/plugin/provider/alibaba.js +2 -2
  495. package/dist/plugin/provider/amazon-bedrock.js +2 -2
  496. package/dist/plugin/provider/anthropic.js +2 -2
  497. package/dist/plugin/provider/azure.js +118 -118
  498. package/dist/plugin/provider/cerebras.js +2 -2
  499. package/dist/plugin/provider/cloudflare-ai-gateway.js +117 -117
  500. package/dist/plugin/provider/cloudflare-workers-ai.js +117 -117
  501. package/dist/plugin/provider/cohere.js +2 -2
  502. package/dist/plugin/provider/configured.js +114 -114
  503. package/dist/plugin/provider/dynamic.js +2 -2
  504. package/dist/plugin/provider/factory.js +1 -1
  505. package/dist/plugin/provider/gateway.js +2 -2
  506. package/dist/plugin/provider/github-copilot.js +80 -80
  507. package/dist/plugin/provider/gitlab.js +3 -3
  508. package/dist/plugin/provider/google-vertex.js +2 -2
  509. package/dist/plugin/provider/kilo.js +2 -2
  510. package/dist/plugin/provider/llmgateway.js +76 -76
  511. package/dist/plugin/provider/lmstudio.js +117 -117
  512. package/dist/plugin/provider/mistral.js +2 -2
  513. package/dist/plugin/provider/modal.js +79 -79
  514. package/dist/plugin/provider/nvidia.js +2 -2
  515. package/dist/plugin/provider/ollama.js +117 -117
  516. package/dist/plugin/provider/openai-compatible.js +1 -1
  517. package/dist/plugin/provider/openai.js +80 -80
  518. package/dist/plugin/provider/opencode.js +76 -76
  519. package/dist/plugin/provider/openrouter.js +3 -3
  520. package/dist/plugin/provider/perplexity.js +2 -2
  521. package/dist/plugin/provider/sap-ai-core.js +3 -3
  522. package/dist/plugin/provider/sdk-factory.js +1 -1
  523. package/dist/plugin/provider/snowflake-cortex.js +2 -2
  524. package/dist/plugin/provider/venice.js +2 -2
  525. package/dist/plugin/provider/vercel.js +2 -2
  526. package/dist/plugin/provider/vllm.js +117 -117
  527. package/dist/plugin/provider/xai.js +77 -77
  528. package/dist/plugin/provider/zenmux.js +2 -2
  529. package/dist/plugin/provider.js +155 -155
  530. package/dist/plugin/sdk.js +72 -72
  531. package/dist/plugin/service.js +3 -3
  532. package/dist/plugin/skill.js +132 -132
  533. package/dist/plugin/source-directory.js +1 -1
  534. package/dist/plugin/supervisor.js +340 -340
  535. package/dist/plugin/update.js +6 -6
  536. package/dist/plugin/variant.js +4 -4
  537. package/dist/plugin/vcs/git.js +82 -82
  538. package/dist/plugin/vcs/hg.js +82 -82
  539. package/dist/plugin/warming.js +112 -112
  540. package/dist/plugin/websearch/exa.js +7 -7
  541. package/dist/plugin/websearch/firecrawl.js +8 -8
  542. package/dist/plugin/websearch/index.js +8 -8
  543. package/dist/plugin/websearch/mcp.js +6 -6
  544. package/dist/plugin/websearch/parallel.js +6 -6
  545. package/dist/plugin/websearch/tavily.js +6 -6
  546. package/dist/plugin.js +221 -221
  547. package/dist/project/schema.js +8 -8
  548. package/dist/project/sql.js +4 -4
  549. package/dist/project.js +85 -85
  550. package/dist/provider.js +7 -7
  551. package/dist/pty/protocol.js +1 -1
  552. package/dist/pty/schema.js +3 -3
  553. package/dist/pty/ticket.js +1 -1
  554. package/dist/pty.js +92 -92
  555. package/dist/reference/instructions.js +84 -84
  556. package/dist/reference.js +86 -86
  557. package/dist/repository-cache.js +76 -76
  558. package/dist/repository.js +1 -1
  559. package/dist/ripgrep/binary.js +2 -2
  560. package/dist/ripgrep.js +91 -91
  561. package/dist/rpc.js +81 -81
  562. package/dist/schema.js +1 -1
  563. package/dist/session/command.js +72 -72
  564. package/dist/session/compaction.js +128 -128
  565. package/dist/session/context.js +144 -144
  566. package/dist/session/environment.js +5 -5
  567. package/dist/session/error.js +7 -7
  568. package/dist/session/event.js +1 -1
  569. package/dist/session/execution/restart.js +212 -212
  570. package/dist/session/execution.js +123 -123
  571. package/dist/session/generate.js +145 -145
  572. package/dist/session/history.js +14 -14
  573. package/dist/session/inbox.js +84 -84
  574. package/dist/session/info.js +3 -3
  575. package/dist/session/instruction-entry.js +73 -73
  576. package/dist/session/instruction-state.js +8 -8
  577. package/dist/session/instructions.js +87 -87
  578. package/dist/session/message-updater.js +4 -4
  579. package/dist/session/message.js +1 -1
  580. package/dist/session/model-request.js +108 -108
  581. package/dist/session/model-transport.js +7 -7
  582. package/dist/session/move.js +121 -121
  583. package/dist/session/projector.js +84 -84
  584. package/dist/session/prompt.js +99 -99
  585. package/dist/session/revert.js +85 -85
  586. package/dist/session/run-coordinator.js +1 -1
  587. package/dist/session/runner/index.js +3 -3
  588. package/dist/session/runner/llm.js +224 -224
  589. package/dist/session/runner/max-steps.js +1 -1
  590. package/dist/session/runner/model.js +86 -86
  591. package/dist/session/runner/publish-llm-event.js +3 -3
  592. package/dist/session/runner/retry.js +4 -4
  593. package/dist/session/runner/step.js +120 -120
  594. package/dist/session/runner/to-llm-message.js +1 -1
  595. package/dist/session/schema.js +5 -5
  596. package/dist/session/session.js +166 -166
  597. package/dist/session/shell.js +131 -131
  598. package/dist/session/skill.js +97 -97
  599. package/dist/session/sql.js +5 -5
  600. package/dist/session/stats.js +71 -71
  601. package/dist/session/store.js +84 -84
  602. package/dist/session/subagent-completion.js +1 -1
  603. package/dist/session/subagent-job.js +204 -204
  604. package/dist/session/system-prompt.js +5 -5
  605. package/dist/session/title.js +150 -150
  606. package/dist/session/to-session-error.js +106 -106
  607. package/dist/session/transfer.js +208 -208
  608. package/dist/session/usage.js +1 -1
  609. package/dist/session.js +206 -206
  610. package/dist/shell/parse.js +6 -6
  611. package/dist/shell/result.js +1 -1
  612. package/dist/shell/scan.js +1 -1
  613. package/dist/shell/select.js +11 -11
  614. package/dist/shell.js +133 -133
  615. package/dist/skill/discovery.js +6 -6
  616. package/dist/skill/instructions.js +99 -99
  617. package/dist/skill.js +106 -106
  618. package/dist/snapshot.js +86 -86
  619. package/dist/state.js +1 -1
  620. package/dist/tool/html-markdown.js +1 -1
  621. package/dist/tool/http-body.js +1 -1
  622. package/dist/tool/mcp.js +120 -120
  623. package/dist/tool/plugin/edit.js +114 -114
  624. package/dist/tool/plugin/file-diff.js +1 -1
  625. package/dist/tool/plugin/glob.js +117 -117
  626. package/dist/tool/plugin/grep.js +119 -119
  627. package/dist/tool/plugin/opencode.js +3 -3
  628. package/dist/tool/plugin/patch.js +116 -116
  629. package/dist/tool/plugin/question.js +99 -99
  630. package/dist/tool/plugin/read.js +120 -120
  631. package/dist/tool/plugin/shell.js +209 -209
  632. package/dist/tool/plugin/skill.js +105 -105
  633. package/dist/tool/plugin/subagent.js +213 -213
  634. package/dist/tool/plugin/webfetch.js +106 -106
  635. package/dist/tool/plugin/websearch.js +106 -106
  636. package/dist/tool/plugin/write.js +110 -110
  637. package/dist/tool/read-filesystem.js +96 -96
  638. package/dist/tool/runtime.js +1 -1
  639. package/dist/tool-output.js +8 -8
  640. package/dist/tool.js +11 -11
  641. package/dist/types/plugin/websearch/mcp.d.ts +1 -1
  642. package/dist/types/websearch.d.ts +5 -1
  643. package/dist/util/error-summary.js +1 -1
  644. package/dist/util/error.js +1 -1
  645. package/dist/util/iife.js +1 -1
  646. package/dist/util/lazy.js +1 -1
  647. package/dist/util/slug.js +1 -1
  648. package/dist/util/token.js +1 -1
  649. package/dist/util/which.js +1 -1
  650. package/dist/util/wildcard.js +1 -1
  651. package/dist/v1/config/agent.js +7 -7
  652. package/dist/v1/config/attachment.js +4 -4
  653. package/dist/v1/config/command.js +3 -3
  654. package/dist/v1/config/config.js +16 -16
  655. package/dist/v1/config/error.js +4 -4
  656. package/dist/v1/config/formatter.js +3 -3
  657. package/dist/v1/config/layout.js +1 -1
  658. package/dist/v1/config/lsp.js +3 -3
  659. package/dist/v1/config/mcp.js +4 -4
  660. package/dist/v1/config/migrate.js +4 -4
  661. package/dist/v1/config/permission.js +7 -7
  662. package/dist/v1/config/plugin.js +3 -3
  663. package/dist/v1/config/provider-options.js +1 -1
  664. package/dist/v1/config/provider.js +4 -4
  665. package/dist/v1/config/server.js +2 -2
  666. package/dist/v1/config/skills.js +3 -3
  667. package/dist/v1/permission.js +1 -1
  668. package/dist/vcs/patch.js +1 -1
  669. package/dist/vcs.js +85 -85
  670. package/dist/websearch.js +82 -82
  671. package/dist/wellknown/plugin.js +74 -74
  672. package/dist/wellknown.js +79 -79
  673. package/dist/workspace/driver.js +5 -5
  674. package/dist/workspace/sql.js +1 -1
  675. package/dist/workspace.js +78 -78
  676. package/dist/worktree/directory.js +2 -2
  677. package/dist/worktree/git.js +7 -7
  678. package/dist/worktree/refresh.js +339 -339
  679. package/dist/worktree/sql.js +5 -5
  680. package/dist/worktree.js +89 -89
  681. package/package.json +7 -7
  682. package/dist/chunks/shell-7zk4hah4.js +0 -4
  683. package/dist/chunks/shell-8y6r9mz6.js +0 -22
  684. package/dist/chunks/shell-bgee90x3.js +0 -138
  685. package/dist/chunks/shell-dxj72tfx.js +0 -18
  686. package/dist/chunks/shell-wpc0p36r.js +0 -247
  687. /package/dist/chunks/{shell-0fabt78z.js → config-0fabt78z.js} +0 -0
  688. /package/dist/chunks/{shell-0qkdqm5v.js → config-0qkdqm5v.js} +0 -0
  689. /package/dist/chunks/{shell-0zkw76rk.js → config-0zkw76rk.js} +0 -0
  690. /package/dist/chunks/{shell-17cy0kzp.js → config-17cy0kzp.js} +0 -0
  691. /package/dist/chunks/{shell-1cnp2v09.js → config-1cnp2v09.js} +0 -0
  692. /package/dist/chunks/{shell-1kg9ymc8.js → config-1kg9ymc8.js} +0 -0
  693. /package/dist/chunks/{shell-2710q6r3.js → config-2710q6r3.js} +0 -0
  694. /package/dist/chunks/{shell-2axfhc9x.js → config-2axfhc9x.js} +0 -0
  695. /package/dist/chunks/{shell-2c3vjs8z.js → config-2c3vjs8z.js} +0 -0
  696. /package/dist/chunks/{shell-359p4xyc.js → config-359p4xyc.js} +0 -0
  697. /package/dist/chunks/{shell-3asan66x.js → config-3asan66x.js} +0 -0
  698. /package/dist/chunks/{shell-3t738kvx.js → config-3t738kvx.js} +0 -0
  699. /package/dist/chunks/{shell-3v8g72cx.js → config-3v8g72cx.js} +0 -0
  700. /package/dist/chunks/{shell-3wcehsnq.js → config-3wcehsnq.js} +0 -0
  701. /package/dist/chunks/{shell-41nvscxy.js → config-41nvscxy.js} +0 -0
  702. /package/dist/chunks/{shell-43n2bw4t.js → config-43n2bw4t.js} +0 -0
  703. /package/dist/chunks/{shell-4knz6hnm.js → config-4knz6hnm.js} +0 -0
  704. /package/dist/chunks/{shell-4y7fprxs.js → config-4y7fprxs.js} +0 -0
  705. /package/dist/chunks/{shell-53557ph1.js → config-53557ph1.js} +0 -0
  706. /package/dist/chunks/{shell-550bvhaj.js → config-550bvhaj.js} +0 -0
  707. /package/dist/chunks/{shell-6prwharc.js → config-6prwharc.js} +0 -0
  708. /package/dist/chunks/{shell-7akdwqpd.js → config-7akdwqpd.js} +0 -0
  709. /package/dist/chunks/{shell-7m9af43g.js → config-7m9af43g.js} +0 -0
  710. /package/dist/chunks/{shell-822emrt2.js → config-822emrt2.js} +0 -0
  711. /package/dist/chunks/{shell-88xbtdfr.js → config-88xbtdfr.js} +0 -0
  712. /package/dist/chunks/{shell-8n3pysct.js → config-8n3pysct.js} +0 -0
  713. /package/dist/chunks/{shell-982e01ww.js → config-982e01ww.js} +0 -0
  714. /package/dist/chunks/{shell-9a4afbnw.js → config-9a4afbnw.js} +0 -0
  715. /package/dist/chunks/{shell-9rqn6x4v.js → config-9rqn6x4v.js} +0 -0
  716. /package/dist/chunks/{shell-a1tpkmh4.js → config-a1tpkmh4.js} +0 -0
  717. /package/dist/chunks/{shell-af5trqkr.js → config-af5trqkr.js} +0 -0
  718. /package/dist/chunks/{shell-afrmfg78.js → config-afrmfg78.js} +0 -0
  719. /package/dist/chunks/{shell-aqzs7mqg.js → config-aqzs7mqg.js} +0 -0
  720. /package/dist/chunks/{shell-atq7p7m5.js → config-atq7p7m5.js} +0 -0
  721. /package/dist/chunks/{shell-bkyjaxrp.js → config-bkyjaxrp.js} +0 -0
  722. /package/dist/chunks/{shell-bmr6ed5q.js → config-bmr6ed5q.js} +0 -0
  723. /package/dist/chunks/{shell-cf4snx6d.js → config-cf4snx6d.js} +0 -0
  724. /package/dist/chunks/{shell-cvy3z8tj.js → config-cvy3z8tj.js} +0 -0
  725. /package/dist/chunks/{shell-d9fn303g.js → config-d9fn303g.js} +0 -0
  726. /package/dist/chunks/{shell-d9jj8t3e.js → config-d9jj8t3e.js} +0 -0
  727. /package/dist/chunks/{shell-dajrwvna.js → config-dajrwvna.js} +0 -0
  728. /package/dist/chunks/{shell-dap0rakb.js → config-dap0rakb.js} +0 -0
  729. /package/dist/chunks/{shell-df08tz66.js → config-df08tz66.js} +0 -0
  730. /package/dist/chunks/{shell-dy18nga0.js → config-dy18nga0.js} +0 -0
  731. /package/dist/chunks/{shell-e5kj55wp.js → config-e5kj55wp.js} +0 -0
  732. /package/dist/chunks/{shell-e73j6tqm.js → config-e73j6tqm.js} +0 -0
  733. /package/dist/chunks/{shell-eh3zwz77.js → config-eh3zwz77.js} +0 -0
  734. /package/dist/chunks/{shell-emrn6kk6.js → config-emrn6kk6.js} +0 -0
  735. /package/dist/chunks/{shell-f0mxakyp.js → config-f0mxakyp.js} +0 -0
  736. /package/dist/chunks/{shell-f6n9ztr4.js → config-f6n9ztr4.js} +0 -0
  737. /package/dist/chunks/{shell-faypxj3z.js → config-faypxj3z.js} +0 -0
  738. /package/dist/chunks/{shell-fd410y7t.js → config-fd410y7t.js} +0 -0
  739. /package/dist/chunks/{shell-fxgpk5d8.js → config-fxgpk5d8.js} +0 -0
  740. /package/dist/chunks/{shell-g4wezp1m.js → config-g4wezp1m.js} +0 -0
  741. /package/dist/chunks/{shell-g86h250q.js → config-g86h250q.js} +0 -0
  742. /package/dist/chunks/{shell-gebd4c9n.js → config-gebd4c9n.js} +0 -0
  743. /package/dist/chunks/{shell-hk9envan.js → config-hk9envan.js} +0 -0
  744. /package/dist/chunks/{shell-j2ntwpah.js → config-j2ntwpah.js} +0 -0
  745. /package/dist/chunks/{shell-j5zkgpj8.js → config-j5zkgpj8.js} +0 -0
  746. /package/dist/chunks/{shell-jr7sbwjy.js → config-jr7sbwjy.js} +0 -0
  747. /package/dist/chunks/{shell-jwfs4k6c.js → config-jwfs4k6c.js} +0 -0
  748. /package/dist/chunks/{shell-jzg6c2d5.js → config-jzg6c2d5.js} +0 -0
  749. /package/dist/chunks/{shell-mntxs535.js → config-mntxs535.js} +0 -0
  750. /package/dist/chunks/{shell-mp448xyj.js → config-mp448xyj.js} +0 -0
  751. /package/dist/chunks/{shell-msx8hqn2.js → config-msx8hqn2.js} +0 -0
  752. /package/dist/chunks/{shell-n05xt0ee.js → config-n05xt0ee.js} +0 -0
  753. /package/dist/chunks/{shell-n3j8tn72.js → config-n3j8tn72.js} +0 -0
  754. /package/dist/chunks/{shell-njntx4h6.js → config-njntx4h6.js} +0 -0
  755. /package/dist/chunks/{shell-p8qxwesx.js → config-p8qxwesx.js} +0 -0
  756. /package/dist/chunks/{shell-q3sfg36h.js → config-q3sfg36h.js} +0 -0
  757. /package/dist/chunks/{shell-q74kybfr.js → config-q74kybfr.js} +0 -0
  758. /package/dist/chunks/{shell-qaymkmh1.js → config-qaymkmh1.js} +0 -0
  759. /package/dist/chunks/{shell-qb87gjwd.js → config-qb87gjwd.js} +0 -0
  760. /package/dist/chunks/{shell-qfa1cgps.js → config-qfa1cgps.js} +0 -0
  761. /package/dist/chunks/{shell-qrg20bc0.js → config-qrg20bc0.js} +0 -0
  762. /package/dist/chunks/{shell-rcb2kzg1.js → config-rcb2kzg1.js} +0 -0
  763. /package/dist/chunks/{shell-sdp7kfr6.js → config-sdp7kfr6.js} +0 -0
  764. /package/dist/chunks/{shell-se0s1eqw.js → config-se0s1eqw.js} +0 -0
  765. /package/dist/chunks/{shell-sk3qaz4a.js → config-sk3qaz4a.js} +0 -0
  766. /package/dist/chunks/{shell-ssg3fenm.js → config-ssg3fenm.js} +0 -0
  767. /package/dist/chunks/{shell-twg0f83k.js → config-twg0f83k.js} +0 -0
  768. /package/dist/chunks/{shell-w803qqfp.js → config-w803qqfp.js} +0 -0
  769. /package/dist/chunks/{shell-wer8tq1h.js → config-wer8tq1h.js} +0 -0
  770. /package/dist/chunks/{shell-wtztk69x.js → config-wtztk69x.js} +0 -0
  771. /package/dist/chunks/{shell-x0ckcb58.js → config-x0ckcb58.js} +0 -0
  772. /package/dist/chunks/{shell-x1b8g1yb.js → config-x1b8g1yb.js} +0 -0
  773. /package/dist/chunks/{shell-x61499pn.js → config-x61499pn.js} +0 -0
  774. /package/dist/chunks/{shell-y44na4kk.js → config-y44na4kk.js} +0 -0
  775. /package/dist/chunks/{shell-y8cydn3q.js → config-y8cydn3q.js} +0 -0
  776. /package/dist/chunks/{shell-ygaqb7jw.js → config-ygaqb7jw.js} +0 -0
  777. /package/dist/chunks/{shell-z9919s4g.js → config-z9919s4g.js} +0 -0
  778. /package/dist/chunks/{shell-zbjnn3ac.js → config-zbjnn3ac.js} +0 -0
@@ -1,34 +1,34 @@
1
1
  import {
2
2
  Service80
3
- } from "./shell-6rjzzdxy.js";
3
+ } from "./config-mdgebrj3.js";
4
4
  import {
5
5
  Service79
6
- } from "./shell-hjjb040h.js";
6
+ } from "./config-q4zymtb1.js";
7
7
  import {
8
- Service37
9
- } from "./shell-fehrn2qm.js";
8
+ Service46
9
+ } from "./config-sy7czwgb.js";
10
10
  import {
11
11
  RelativePath2
12
- } from "./shell-p8qxwesx.js";
12
+ } from "./config-p8qxwesx.js";
13
13
  import {
14
- ID8,
15
- Service43
16
- } from "./shell-1xtfawcg.js";
14
+ ID3,
15
+ Service36
16
+ } from "./config-5rp8p5tq.js";
17
17
  import {
18
18
  SessionEvent2
19
- } from "./shell-mntxs535.js";
19
+ } from "./config-mntxs535.js";
20
20
  import {
21
21
  SessionMessage2
22
- } from "./shell-982e01ww.js";
22
+ } from "./config-982e01ww.js";
23
23
  import {
24
24
  MessageNotFoundError2
25
- } from "./shell-2g7fb4sy.js";
25
+ } from "./config-n6wnzfnt.js";
26
26
  import {
27
27
  SessionMessageTable2
28
- } from "./shell-hrvm11jt.js";
28
+ } from "./config-hrvm11jt.js";
29
29
  import {
30
30
  __export
31
- } from "./shell-9rqn6x4v.js";
31
+ } from "./config-9rqn6x4v.js";
32
32
 
33
33
  // src/session/revert.ts
34
34
  var exports_revert = {};
@@ -42,12 +42,12 @@ __export(exports_revert, {
42
42
  import { and, asc, eq, gt } from "drizzle-orm";
43
43
  import { Effect, Schema } from "effect";
44
44
  var stage2 = Effect.fn("SessionRevert.stage")(function* (input) {
45
- const instances = yield* Service37;
45
+ const instances = yield* Service46;
46
46
  const database = yield* Service80;
47
47
  const bus = yield* Service79;
48
48
  return yield* Effect.gen(function* () {
49
- const snapshot = yield* Service43;
50
- const original = input.session.revert?.snapshot ? ID8.make(input.session.revert.snapshot) : yield* snapshot.capture();
49
+ const snapshot = yield* Service36;
50
+ const original = input.session.revert?.snapshot ? ID3.make(input.session.revert.snapshot) : yield* snapshot.capture();
51
51
  const next = yield* plan(database.db, { sessionID: input.session.id, messageID: input.messageID });
52
52
  const restore = new Map;
53
53
  if (original) {
@@ -74,13 +74,13 @@ var stage2 = Effect.fn("SessionRevert.stage")(function* (input) {
74
74
  }).pipe(instances.provide(input.session));
75
75
  });
76
76
  var clear2 = Effect.fn("SessionRevert.clear")(function* (session) {
77
- const instances = yield* Service37;
77
+ const instances = yield* Service46;
78
78
  const bus = yield* Service79;
79
79
  yield* Effect.gen(function* () {
80
- const snapshot = yield* Service43;
80
+ const snapshot = yield* Service36;
81
81
  if (!session.revert)
82
82
  return;
83
- const original = session.revert.snapshot ? ID8.make(session.revert.snapshot) : undefined;
83
+ const original = session.revert.snapshot ? ID3.make(session.revert.snapshot) : undefined;
84
84
  if (original)
85
85
  yield* snapshot.restore({
86
86
  files: new Map((session.revert.files ?? []).map((file) => [RelativePath2.make(file.file), original]))
@@ -111,7 +111,7 @@ var plan = Effect.fn("SessionRevert.plan")(function* (db, input) {
111
111
  continue;
112
112
  for (const file of message.snapshot.files ?? [])
113
113
  if (!files.has(file))
114
- files.set(file, ID8.make(message.snapshot.start));
114
+ files.set(file, ID3.make(message.snapshot.start));
115
115
  }
116
116
  return files;
117
117
  });
@@ -0,0 +1,193 @@
1
+ import {
2
+ Service79,
3
+ node84
4
+ } from "./config-q4zymtb1.js";
5
+ import {
6
+ Service66,
7
+ node71
8
+ } from "./config-j5cvhpj6.js";
9
+ import {
10
+ create3
11
+ } from "./config-kg06axw8.js";
12
+ import {
13
+ __export
14
+ } from "./config-9rqn6x4v.js";
15
+
16
+ // src/websearch.ts
17
+ var exports_websearch3 = {};
18
+ __export(exports_websearch3, {
19
+ DisabledError: () => DisabledError2,
20
+ Event: () => Event11,
21
+ ID: () => ID7,
22
+ Input: () => Input14,
23
+ Provider: () => Provider2,
24
+ ProviderKey: () => ProviderKey2,
25
+ ProviderNotFoundError: () => ProviderNotFoundError2,
26
+ ProviderRequiredError: () => ProviderRequiredError2,
27
+ RequestError: () => RequestError2,
28
+ Response: () => Response2,
29
+ Result: () => Result2,
30
+ Selection: () => Selection2,
31
+ Service: () => Service60,
32
+ WebSearch: () => exports_websearch3,
33
+ node: () => node65
34
+ });
35
+ import { WebSearch } from "@opencode-ai/schema/websearch";
36
+ import { SessionEvent } from "@opencode-ai/schema/session-event";
37
+ import { Clock, Context, Effect, Layer, Option, Schema, Stream } from "effect";
38
+ import { HttpClientError } from "effect/unstable/http";
39
+ import { makeLocationNode } from "@opencode-ai/util/effect/app-node";
40
+ import { Event as Event11 } from "@opencode-ai/schema/websearch";
41
+ var ID7 = WebSearch.ID;
42
+ var Provider2 = WebSearch.Provider;
43
+ var Input14 = WebSearch.Input;
44
+ var Result2 = WebSearch.Result;
45
+ var Response2 = WebSearch.Response;
46
+ var ProviderKey2 = "websearch:provider";
47
+ var Selection2 = Schema.Union([ID7, Schema.Literal("random"), Schema.Literal(false)]);
48
+
49
+ class ProviderRequiredError2 extends Schema.TaggedError()("WebSearch.ProviderRequired", {}) {
50
+ }
51
+
52
+ class ProviderNotFoundError2 extends Schema.TaggedError()("WebSearch.ProviderNotFound", {
53
+ providerID: ID7
54
+ }) {
55
+ }
56
+
57
+ class DisabledError2 extends Schema.TaggedError()("WebSearch.Disabled", {}) {
58
+ }
59
+
60
+ class RequestError2 extends Schema.TaggedError()("WebSearch.Request", {
61
+ providerID: ID7,
62
+ cause: Schema.Defect()
63
+ }) {
64
+ }
65
+
66
+ class Service60 extends Context.Service()("@opencode/WebSearch") {
67
+ }
68
+ var layer = Layer.effect(Service60, Effect.gen(function* () {
69
+ const bus = yield* Service79;
70
+ const kv = yield* Service66;
71
+ const decodeResults = Schema.decodeUnknownEffect(Schema.Array(Result2));
72
+ const cooldowns = new Map;
73
+ const preferred = new Map;
74
+ yield* Effect.addFinalizer(() => Effect.sync(() => preferred.clear()));
75
+ yield* bus.subscribe([SessionEvent.Deleted, SessionEvent.Moved]).pipe(Stream.runForEach((event) => Effect.sync(() => {
76
+ preferred.delete(event.data.sessionID);
77
+ })), Effect.forkScoped({ startImmediately: true }));
78
+ const state = create3({
79
+ initial: () => ({ providers: new Map }),
80
+ editor: (editor) => ({
81
+ add: (provider) => editor.providers.set(provider.id, provider),
82
+ default: {
83
+ get: () => editor.selection,
84
+ set: (selection) => editor.selection = selection
85
+ }
86
+ }),
87
+ notify: () => bus.publish(WebSearch.Event.Updated, {}).pipe(Effect.asVoid)
88
+ });
89
+ const requireProvider = (providers, providerID) => {
90
+ const provider = providers.get(providerID);
91
+ return provider ? Effect.succeed(provider) : Effect.fail(new ProviderNotFoundError2({ providerID }));
92
+ };
93
+ const selection = Effect.fn("WebSearch.selection")(function* () {
94
+ const data = state.get();
95
+ if (data.selection === false || data.selection === "random" || data.selection && data.providers.has(data.selection))
96
+ return data.selection;
97
+ const stored = yield* kv.get(ProviderKey2);
98
+ const decoded = Schema.decodeUnknownOption(Selection2)(stored);
99
+ if (stored !== undefined && Option.isNone(decoded))
100
+ yield* kv.remove(ProviderKey2);
101
+ return Option.getOrUndefined(decoded);
102
+ });
103
+ const randomProvider = (now, affinity, attempted) => {
104
+ const providers = state.get().providers;
105
+ cooldowns.forEach((cooldown, id) => {
106
+ if (cooldown.until <= now || !providers.has(id))
107
+ cooldowns.delete(id);
108
+ });
109
+ const current = affinity.provider === undefined ? undefined : providers.get(affinity.provider);
110
+ if (current && !cooldowns.has(current.id) && !attempted?.has(current.id))
111
+ return current;
112
+ const available = Array.from(providers.values()).filter((provider) => !cooldowns.has(provider.id) && !attempted?.has(provider.id));
113
+ const provider = available[Math.floor(Math.random() * available.length)];
114
+ if (provider)
115
+ affinity.provider = provider.id;
116
+ return provider;
117
+ };
118
+ const defaultProvider = Effect.fn("WebSearch.default")(function* (choice) {
119
+ if (choice === false)
120
+ return yield* new DisabledError2;
121
+ if (choice === "random") {
122
+ const active = preferred.get(undefined)?.provider;
123
+ return (active === undefined ? undefined : state.get().providers.get(active)) ?? state.get().providers.values().next().value;
124
+ }
125
+ return choice ? state.get().providers.get(choice) : undefined;
126
+ });
127
+ return Service60.of({
128
+ transform: state.transform,
129
+ reload: state.reload,
130
+ providers: Effect.fn("WebSearch.providers")(function* () {
131
+ return Array.from(state.get().providers.values(), (provider) => ({
132
+ id: provider.id,
133
+ name: provider.name
134
+ })).toSorted((a, b) => a.name.localeCompare(b.name));
135
+ }),
136
+ default: Effect.fn("WebSearch.defaultInfo")(function* () {
137
+ const provider = yield* defaultProvider(yield* selection());
138
+ return provider && { id: provider.id, name: provider.name };
139
+ }),
140
+ select: Effect.fn("WebSearch.select")(function* (selection) {
141
+ yield* kv.set(ProviderKey2, selection);
142
+ }),
143
+ query: Effect.fn("WebSearch.query")(function* (input, options) {
144
+ const choice = input.providerID ? undefined : yield* selection();
145
+ let provider = input.providerID ? yield* requireProvider(state.get().providers, input.providerID) : yield* defaultProvider(choice);
146
+ if (!provider)
147
+ return yield* new ProviderRequiredError2;
148
+ const affinity = preferred.get(options?.sessionID) ?? { provider: undefined };
149
+ if (choice === "random") {
150
+ preferred.set(options?.sessionID, affinity);
151
+ provider = randomProvider(yield* Clock.currentTimeMillis, affinity) ?? provider;
152
+ }
153
+ const attempted = new Set;
154
+ while (true) {
155
+ if (options?.onProvider)
156
+ yield* options.onProvider({ id: provider.id, name: provider.name });
157
+ let cooldown = choice === "random" ? cooldowns.get(provider.id) : undefined;
158
+ if (!cooldown || cooldown.until <= (yield* Clock.currentTimeMillis)) {
159
+ attempted.add(provider.id);
160
+ const result = yield* provider.execute({ query: input.query }).pipe(Effect.flatMap(decodeResults), Effect.result);
161
+ if (result._tag === "Success")
162
+ return new Response2({ providerID: provider.id, results: result.success });
163
+ const cause = result.failure;
164
+ const error = new RequestError2({ providerID: provider.id, cause });
165
+ if (choice !== "random" || !HttpClientError.isHttpClientError(cause) || cause.response?.status !== 429)
166
+ return yield* error;
167
+ const now = yield* Clock.currentTimeMillis;
168
+ cooldown = { until: now + cooldownMillis(cause.response.headers["retry-after"], now), error };
169
+ cooldowns.set(provider.id, cooldown);
170
+ }
171
+ provider = randomProvider(yield* Clock.currentTimeMillis, affinity, attempted);
172
+ if (!provider)
173
+ return yield* cooldown.error;
174
+ }
175
+ })
176
+ });
177
+ }));
178
+ function cooldownMillis(value, now) {
179
+ if (!value?.trim())
180
+ return 60000;
181
+ const seconds = Number(value);
182
+ if (Number.isFinite(seconds))
183
+ return seconds >= 0 ? seconds * 1000 : 60000;
184
+ const date = Date.parse(value);
185
+ return Number.isFinite(date) ? Math.max(0, date - now) : 60000;
186
+ }
187
+ var node65 = makeLocationNode({
188
+ service: Service60,
189
+ layer,
190
+ deps: [node84, node71]
191
+ });
192
+
193
+ export { ID7, Provider2, Input14, Result2, Response2, ProviderKey2, Selection2, ProviderRequiredError2, ProviderNotFoundError2, DisabledError2, RequestError2, Service60, node65, exports_websearch3, Event11 };
@@ -1,18 +1,18 @@
1
1
  import {
2
2
  create3
3
- } from "./shell-kg06axw8.js";
3
+ } from "./config-kg06axw8.js";
4
4
  import {
5
5
  which2
6
- } from "./shell-qaymkmh1.js";
6
+ } from "./config-qaymkmh1.js";
7
7
  import {
8
8
  __export
9
- } from "./shell-9rqn6x4v.js";
9
+ } from "./config-9rqn6x4v.js";
10
10
 
11
11
  // src/shell/select.ts
12
12
  var exports_select = {};
13
13
  __export(exports_select, {
14
- Options: () => Options9,
15
- Service: () => Service70,
14
+ Options: () => Options7,
15
+ Service: () => Service58,
16
16
  ShellSelect: () => exports_select,
17
17
  args: () => args2,
18
18
  configured: () => configured9,
@@ -21,9 +21,9 @@ __export(exports_select, {
21
21
  list: () => list4,
22
22
  login: () => login2,
23
23
  name: () => name15,
24
- node: () => node74,
24
+ node: () => node63,
25
25
  ps: () => ps2,
26
- resolve: () => resolve3
26
+ resolve: () => resolve2
27
27
  });
28
28
  import path from "path";
29
29
  import { readFile } from "fs/promises";
@@ -43,11 +43,11 @@ var META = {
43
43
  sh: { login: true },
44
44
  zsh: { login: true }
45
45
  };
46
- var Options9 = Schema.Struct({
46
+ var Options7 = Schema.Struct({
47
47
  gitbash: Schema.optional(Schema.String)
48
48
  });
49
49
 
50
- class Service70 extends Context.Service()("@opencode/ShellSelect") {
50
+ class Service58 extends Context.Service()("@opencode/ShellSelect") {
51
51
  }
52
52
  function stat(file) {
53
53
  return statSync(file, { throwIfNoEntry: false }) ?? undefined;
@@ -164,7 +164,7 @@ function environment2(bin, filter) {
164
164
  }
165
165
  var defaultConfigured;
166
166
  var defaultCompatible;
167
- function resolve3(input, configShell, options, bin) {
167
+ function resolve2(input, configShell, options, bin) {
168
168
  const filter = input.priority === "compat" ? { compatible: true } : undefined;
169
169
  if (configShell)
170
170
  return select(configShell, options, filter, bin);
@@ -180,7 +180,7 @@ function resolve3(input, configShell, options, bin) {
180
180
  defaultConfigured = { bin, value };
181
181
  return value;
182
182
  }
183
- resolve3.reset = () => {
183
+ resolve2.reset = () => {
184
184
  defaultConfigured = undefined;
185
185
  defaultCompatible = undefined;
186
186
  };
@@ -188,7 +188,7 @@ async function list4(options, bin) {
188
188
  const shells = process.platform === "win32" ? win(options, bin) : await unix();
189
189
  return shells.filter((shell) => executable(shell, options, bin)).map((shell) => info(shell, options, bin));
190
190
  }
191
- var layer = (options) => Layer.effect(Service70, Effect.gen(function* () {
191
+ var layer = (options) => Layer.effect(Service58, Effect.gen(function* () {
192
192
  const global = yield* Global.Service;
193
193
  const state = create3({
194
194
  name: "shell-select",
@@ -199,15 +199,15 @@ var layer = (options) => Layer.effect(Service70, Effect.gen(function* () {
199
199
  }
200
200
  })
201
201
  });
202
- return Service70.of({
202
+ return Service58.of({
203
203
  transform: state.transform,
204
204
  reload: state.reload,
205
- resolve: (input) => Effect.sync(() => resolve3(input, state.get().shell, options, global.bin))
205
+ resolve: (input) => Effect.sync(() => resolve2(input, state.get().shell, options, global.bin))
206
206
  });
207
207
  }));
208
208
  function configured9(options) {
209
- return makeLocationNode({ service: Service70, layer: layer(options), deps: [Global.node] });
209
+ return makeLocationNode({ service: Service58, layer: layer(options), deps: [Global.node] });
210
210
  }
211
- var node74 = configured9();
211
+ var node63 = configured9();
212
212
 
213
- export { Options9, Service70, gitbash2, name15, login2, ps2, args2, environment2, resolve3, list4, configured9, node74, exports_select };
213
+ export { Options7, Service58, gitbash2, name15, login2, ps2, args2, environment2, resolve2, list4, configured9, node63, exports_select };
@@ -1,29 +1,29 @@
1
1
  import {
2
2
  Service80,
3
3
  node85
4
- } from "./shell-6rjzzdxy.js";
4
+ } from "./config-mdgebrj3.js";
5
5
  import {
6
6
  SessionTable2,
7
7
  SessionMessageTable2
8
- } from "./shell-hrvm11jt.js";
8
+ } from "./config-hrvm11jt.js";
9
9
  import {
10
10
  decodeMessageRow2,
11
- load2
12
- } from "./shell-k37p1w3a.js";
11
+ load3
12
+ } from "./config-ck970z52.js";
13
13
  import {
14
14
  fromRow2
15
- } from "./shell-enwn0tzc.js";
15
+ } from "./config-bpnz08mb.js";
16
16
  import {
17
17
  __export
18
- } from "./shell-9rqn6x4v.js";
18
+ } from "./config-9rqn6x4v.js";
19
19
 
20
20
  // src/session/store.ts
21
21
  var exports_store = {};
22
22
  __export(exports_store, {
23
- ListInput: () => ListInput5,
24
- Service: () => Service42,
23
+ ListInput: () => ListInput4,
24
+ Service: () => Service72,
25
25
  SessionStore: () => exports_store,
26
- node: () => node45
26
+ node: () => node77
27
27
  });
28
28
  import { and, asc, desc, eq, gt, isNotNull, isNull, like, lt, notInArray, or, sql } from "drizzle-orm";
29
29
  import { Context, Effect, Layer, Schema } from "effect";
@@ -50,13 +50,13 @@ var ListProjectInput = Schema.Struct({
50
50
  subpath: RelativePath.pipe(Schema.optional)
51
51
  });
52
52
  var ListAllInput = Schema.Struct(ListInputBase);
53
- var ListInput5 = Schema.Union([ListDirectoryInput, ListProjectInput, ListAllInput]);
53
+ var ListInput4 = Schema.Union([ListDirectoryInput, ListProjectInput, ListAllInput]);
54
54
 
55
- class Service42 extends Context.Service()("@opencode/SessionStore") {
55
+ class Service72 extends Context.Service()("@opencode/SessionStore") {
56
56
  }
57
- var layer = Layer.effect(Service42, Effect.gen(function* () {
57
+ var layer = Layer.effect(Service72, Effect.gen(function* () {
58
58
  const { db } = yield* Service80;
59
- return Service42.of({
59
+ return Service72.of({
60
60
  get: Effect.fnUntraced(function* (sessionID) {
61
61
  const row = yield* db.select().from(SessionTable2).where(eq(SessionTable2.id, sessionID)).get().pipe(Effect.orDie);
62
62
  return row ? fromRow2(row) : undefined;
@@ -99,7 +99,7 @@ var layer = Layer.effect(Service42, Effect.gen(function* () {
99
99
  const rows = yield* (input.limit === undefined ? query.all() : query.limit(input.limit).all()).pipe(Effect.orDie);
100
100
  return yield* Effect.forEach(direction === "previous" ? rows.toReversed() : rows, decodeMessageRow2);
101
101
  }),
102
- context: Effect.fn("SessionStore.context")((sessionID) => load2(db, sessionID)),
102
+ context: Effect.fn("SessionStore.context")((sessionID) => load3(db, sessionID)),
103
103
  message: Effect.fn("SessionStore.message")(function* (messageID) {
104
104
  const row = yield* db.select().from(SessionMessageTable2).where(eq(SessionMessageTable2.id, messageID)).get().pipe(Effect.orDie);
105
105
  return row ? {
@@ -126,6 +126,6 @@ var layer = Layer.effect(Service42, Effect.gen(function* () {
126
126
  })
127
127
  });
128
128
  }));
129
- var node45 = makeGlobalNode({ service: Service42, layer, deps: [node85] });
129
+ var node77 = makeGlobalNode({ service: Service72, layer, deps: [node85] });
130
130
 
131
- export { ListInput5, Service42, node45, exports_store };
131
+ export { ListInput4, Service72, node77, exports_store };
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  packageName2
3
- } from "./shell-hc4b3kyg.js";
3
+ } from "./config-7gbsxqt2.js";
4
4
 
5
5
  // src/plugin/provider/cerebras.ts
6
6
  import { Effect } from "effect";
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  __export
3
- } from "./shell-9rqn6x4v.js";
3
+ } from "./config-9rqn6x4v.js";
4
4
 
5
5
  // src/util/token.ts
6
6
  var exports_token = {};
@@ -1,35 +1,35 @@
1
1
  import {
2
- Service71,
3
- node75
4
- } from "./shell-d6se384q.js";
2
+ Service76,
3
+ node81
4
+ } from "./config-vhzdsqy0.js";
5
5
  import {
6
- Key3,
7
- make18,
6
+ Key4,
7
+ make21,
8
8
  combine2
9
- } from "./shell-mtcjf44p.js";
9
+ } from "./config-75yf2d83.js";
10
10
  import {
11
11
  __export
12
- } from "./shell-9rqn6x4v.js";
12
+ } from "./config-9rqn6x4v.js";
13
13
 
14
14
  // src/instructions/builtins.ts
15
15
  var exports_builtins = {};
16
16
  __export(exports_builtins, {
17
17
  InstructionBuiltIns: () => exports_builtins,
18
- Service: () => Service26,
19
- node: () => node30
18
+ Service: () => Service23,
19
+ node: () => node28
20
20
  });
21
21
  import { makeLocationNode } from "@opencode-ai/util/effect/app-node";
22
22
  import { Context, DateTime, Effect, Layer, Schema } from "effect";
23
23
  import { Global } from "@opencode-ai/util/global";
24
- class Service26 extends Context.Service()("@opencode/InstructionBuiltIns") {
24
+ class Service23 extends Context.Service()("@opencode/InstructionBuiltIns") {
25
25
  }
26
- var layer = Layer.effect(Service26, Effect.gen(function* () {
26
+ var layer = Layer.effect(Service23, Effect.gen(function* () {
27
27
  const global = yield* Global.Service;
28
- const location = yield* Service71;
29
- return Service26.of({
28
+ const location = yield* Service76;
29
+ return Service23.of({
30
30
  load: (sessionID) => Effect.succeed(combine2([
31
- make18({
32
- key: Key3.make("core/environment"),
31
+ make21({
32
+ key: Key4.make("core/environment"),
33
33
  codec: Schema.toCodecJson(Schema.String),
34
34
  read: Effect.sync(() => [
35
35
  "<env>",
@@ -49,8 +49,8 @@ var layer = Layer.effect(Service26, Effect.gen(function* () {
49
49
  `)
50
50
  }
51
51
  }),
52
- make18({
53
- key: Key3.make("core/date"),
52
+ make21({
53
+ key: Key4.make("core/date"),
54
54
  codec: Schema.toCodecJson(Schema.String),
55
55
  read: DateTime.nowAsDate.pipe(Effect.map((date) => date.toDateString())),
56
56
  render: {
@@ -61,6 +61,6 @@ var layer = Layer.effect(Service26, Effect.gen(function* () {
61
61
  ]))
62
62
  });
63
63
  }));
64
- var node30 = makeLocationNode({ service: Service26, layer, deps: [Global.node, node75] });
64
+ var node28 = makeLocationNode({ service: Service23, layer, deps: [Global.node, node81] });
65
65
 
66
- export { Service26, node30, exports_builtins };
66
+ export { Service23, node28, exports_builtins };
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  createProviderPlugin2
3
- } from "./shell-se0s1eqw.js";
3
+ } from "./config-se0s1eqw.js";
4
4
 
5
5
  // src/plugin/provider/perplexity.ts
6
6
  var PerplexityPlugin2 = createProviderPlugin2({
@@ -1,13 +1,13 @@
1
1
  import {
2
2
  directoryColumn2,
3
3
  pathColumn2
4
- } from "./shell-r8dhm0tv.js";
4
+ } from "./config-r8dhm0tv.js";
5
5
  import {
6
6
  Timestamps2
7
- } from "./shell-qfa1cgps.js";
7
+ } from "./config-qfa1cgps.js";
8
8
  import {
9
9
  ProjectTable2
10
- } from "./shell-9qm9egsn.js";
10
+ } from "./config-9qm9egsn.js";
11
11
 
12
12
  // src/session/sql.ts
13
13
  import { sqliteTable, text, integer, index, primaryKey, real, uniqueIndex } from "drizzle-orm/sqlite-core";
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  InvalidError2
3
- } from "./shell-29x78va6.js";
3
+ } from "./config-z63w68vq.js";
4
4
  import {
5
5
  __export
6
- } from "./shell-9rqn6x4v.js";
6
+ } from "./config-9rqn6x4v.js";
7
7
 
8
8
  // src/config/variable.ts
9
9
  var exports_variable = {};
@@ -1,29 +1,29 @@
1
1
  import {
2
2
  Service80,
3
3
  node85
4
- } from "./shell-6rjzzdxy.js";
4
+ } from "./config-mdgebrj3.js";
5
5
  import {
6
6
  KVTable2
7
- } from "./shell-3hepkmqq.js";
7
+ } from "./config-3hepkmqq.js";
8
8
  import {
9
9
  __export
10
- } from "./shell-9rqn6x4v.js";
10
+ } from "./config-9rqn6x4v.js";
11
11
 
12
12
  // src/kv.ts
13
13
  var exports_kv = {};
14
14
  __export(exports_kv, {
15
15
  KV: () => exports_kv,
16
- Service: () => Service75,
17
- node: () => node80
16
+ Service: () => Service66,
17
+ node: () => node71
18
18
  });
19
19
  import { and, asc, eq, gt, gte, lt } from "drizzle-orm";
20
20
  import { Context, Effect, Layer } from "effect";
21
21
  import { makeGlobalNode } from "@opencode-ai/util/effect/app-node";
22
- class Service75 extends Context.Service()("@opencode/KV") {
22
+ class Service66 extends Context.Service()("@opencode/KV") {
23
23
  }
24
- var layer = Layer.effect(Service75, Effect.gen(function* () {
24
+ var layer = Layer.effect(Service66, Effect.gen(function* () {
25
25
  const db = (yield* Service80).db;
26
- return Service75.of({
26
+ return Service66.of({
27
27
  get: Effect.fn("KV.get")(function* (key) {
28
28
  return (yield* db.select({ value: KVTable2.value }).from(KVTable2).where(eq(KVTable2.key, key)).get().pipe(Effect.orDie))?.value;
29
29
  }),
@@ -51,6 +51,6 @@ function prefixEnd(prefix) {
51
51
  return;
52
52
  return `${points.slice(0, index).join("")}${String.fromCodePoint(points[index].codePointAt(0) + 1)}`;
53
53
  }
54
- var node80 = makeGlobalNode({ service: Service75, layer, deps: [node85] });
54
+ var node71 = makeGlobalNode({ service: Service66, layer, deps: [node85] });
55
55
 
56
- export { Service75, node80, exports_kv };
56
+ export { Service66, node71, exports_kv };
@@ -1,27 +1,27 @@
1
1
  import {
2
- Service60
3
- } from "./shell-4kjzcy7g.js";
2
+ Service48
3
+ } from "./config-z3avqe8v.js";
4
4
  import {
5
5
  Service20
6
- } from "./shell-fr5cx72t.js";
6
+ } from "./config-95kzga43.js";
7
7
  import {
8
8
  text2,
9
9
  deliver2
10
- } from "./shell-x1ezjp6w.js";
10
+ } from "./config-x1ezjp6w.js";
11
11
  import {
12
12
  __export
13
- } from "./shell-9rqn6x4v.js";
13
+ } from "./config-9rqn6x4v.js";
14
14
 
15
15
  // src/session/subagent-job.ts
16
16
  var exports_subagent_job = {};
17
17
  __export(exports_subagent_job, {
18
18
  SubagentJob: () => exports_subagent_job,
19
- make: () => make8
19
+ make: () => make9
20
20
  });
21
21
  import { Effect, Scope } from "effect";
22
- var make8 = Effect.gen(function* () {
22
+ var make9 = Effect.gen(function* () {
23
23
  const sessions = yield* Service20;
24
- const jobs = yield* Service60;
24
+ const jobs = yield* Service48;
25
25
  const scope = yield* Scope.Scope;
26
26
  const notifications = new Set;
27
27
  const notify = Effect.fn("SubagentJob.notify")(function* (recovery, startedAt) {
@@ -58,4 +58,4 @@ var make8 = Effect.gen(function* () {
58
58
  };
59
59
  });
60
60
 
61
- export { make8, exports_subagent_job };
61
+ export { make9, exports_subagent_job };