@opencode/core 2.1.3 → 2.2.0

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 (939) hide show
  1. package/dist/account/sql.js +1 -1
  2. package/dist/agent.js +89 -85
  3. package/dist/aisdk-native.js +97 -91
  4. package/dist/aisdk.js +103 -97
  5. package/dist/app.js +9 -9
  6. package/dist/bus.js +79 -75
  7. package/dist/chunks/{instruction-discovery-9hbqwfdp.js → tool-012mq190.js} +39 -39
  8. package/dist/chunks/{instruction-discovery-jsbhksmn.js → tool-02nh8ewm.js} +18 -14
  9. package/dist/chunks/{instruction-discovery-034tev2y.js → tool-034tev2y.js} +2 -2
  10. package/dist/chunks/{instruction-discovery-1vdntpm3.js → tool-09bv4atg.js} +13 -7
  11. package/dist/chunks/{instruction-discovery-7w0k7xvm.js → tool-0a2sm9cp.js} +19 -19
  12. package/dist/chunks/{instruction-discovery-2azy8kv6.js → tool-0ahs07zn.js} +4 -4
  13. package/dist/chunks/{instruction-discovery-kbp23r6j.js → tool-0fhbvqtr.js} +9 -9
  14. package/dist/chunks/{instruction-discovery-1887s9ws.js → tool-0t332zg2.js} +6 -6
  15. package/dist/chunks/{instruction-discovery-8jztxfpf.js → tool-11hfp36g.js} +4 -4
  16. package/dist/chunks/tool-12cx84te.js +224 -0
  17. package/dist/chunks/{instruction-discovery-43jry69q.js → tool-14kcwm24.js} +11 -11
  18. package/dist/chunks/{instruction-discovery-sm5tp0dc.js → tool-18s0c7mk.js} +13 -13
  19. package/dist/chunks/{instruction-discovery-j4mjn1pq.js → tool-19y1mz66.js} +7 -7
  20. package/dist/chunks/{instruction-discovery-x2sbbjmw.js → tool-1b236rmr.js} +193 -143
  21. package/dist/chunks/{instruction-discovery-wkr28yqr.js → tool-1dvrssaw.js} +6 -4
  22. package/dist/chunks/{instruction-discovery-1ep2p91f.js → tool-1ep2p91f.js} +2 -2
  23. package/dist/chunks/{instruction-discovery-5fjb7ams.js → tool-1jakw16s.js} +2 -2
  24. package/dist/chunks/{instruction-discovery-znn5w31e.js → tool-1px95g66.js} +10 -10
  25. package/dist/chunks/{instruction-discovery-5yzc6bj8.js → tool-1qb2fn2e.js} +12 -12
  26. package/dist/chunks/{instruction-discovery-y9awcm76.js → tool-1vpe07px.js} +78 -23
  27. package/dist/chunks/{instruction-discovery-1x2knyw4.js → tool-1x2knyw4.js} +1 -1
  28. package/dist/chunks/{instruction-discovery-vd3b3yk9.js → tool-204s3925.js} +13 -2
  29. package/dist/chunks/{instruction-discovery-p4az2c5k.js → tool-27c23e33.js} +15 -15
  30. package/dist/chunks/{instruction-discovery-kr28pkn3.js → tool-28pnz6dy.js} +36 -32
  31. package/dist/chunks/tool-2esqe60t.js +252 -0
  32. package/dist/chunks/{instruction-discovery-956c56jz.js → tool-2jrrfqe1.js} +15 -5
  33. package/dist/chunks/{instruction-discovery-v1wb27er.js → tool-2nkqvy4a.js} +36 -36
  34. package/dist/chunks/{instruction-discovery-pthf9bv3.js → tool-2qgpse07.js} +10 -10
  35. package/dist/chunks/{instruction-discovery-x62216mf.js → tool-2xw2f3vf.js} +11 -11
  36. package/dist/chunks/{instruction-discovery-kj7e2tww.js → tool-30wtetgq.js} +129 -47
  37. package/dist/chunks/{instruction-discovery-x0kw00z1.js → tool-39j6yt37.js} +12 -14
  38. package/dist/chunks/{instruction-discovery-ymqv4qqa.js → tool-39tkfg3g.js} +9 -9
  39. package/dist/chunks/{instruction-discovery-b5j1fcax.js → tool-3ewwa9eq.js} +31 -31
  40. package/dist/chunks/{instruction-discovery-xg53n6nb.js → tool-3f13jy3s.js} +27 -27
  41. package/dist/chunks/{instruction-discovery-3hepkmqq.js → tool-3hepkmqq.js} +1 -1
  42. package/dist/chunks/{instruction-discovery-4wn1snmt.js → tool-3jy1f5rc.js} +68 -51
  43. package/dist/chunks/{instruction-discovery-a12mwymm.js → tool-3k7t0q4z.js} +14 -14
  44. package/dist/chunks/{instruction-discovery-3nnrz6f6.js → tool-3nnrz6f6.js} +1 -1
  45. package/dist/chunks/{instruction-discovery-ffdw0et2.js → tool-3nr2yc9a.js} +5 -5
  46. package/dist/chunks/{instruction-discovery-a4b9rhwe.js → tool-3t4066nw.js} +21 -14
  47. package/dist/chunks/{instruction-discovery-pp5hwqdy.js → tool-41sh1bbt.js} +8 -6
  48. package/dist/chunks/{instruction-discovery-ewjr930z.js → tool-47cq5kqw.js} +4 -4
  49. package/dist/chunks/{instruction-discovery-ba1860as.js → tool-4czcg6bs.js} +16 -16
  50. package/dist/chunks/{instruction-discovery-5091jnev.js → tool-4jw80zew.js} +88 -88
  51. package/dist/chunks/{instruction-discovery-pkyv6v7h.js → tool-4m86bj6y.js} +24 -15
  52. package/dist/chunks/{instruction-discovery-nttn14j9.js → tool-4pw98qd4.js} +4 -4
  53. package/dist/chunks/{instruction-discovery-2z1j29yd.js → tool-4pyp9zr9.js} +19 -3
  54. package/dist/chunks/{instruction-discovery-c0emejqt.js → tool-4t7jqkaw.js} +13 -13
  55. package/dist/chunks/{instruction-discovery-4v008n1t.js → tool-4v008n1t.js} +1 -1
  56. package/dist/chunks/{instruction-discovery-wh2p867q.js → tool-4zsrmah6.js} +47 -47
  57. package/dist/chunks/{instruction-discovery-ztzjzgcq.js → tool-5858b97a.js} +13 -13
  58. package/dist/chunks/{instruction-discovery-8p073n4r.js → tool-5887ft1y.js} +4 -4
  59. package/dist/chunks/{instruction-discovery-nxsjqf5t.js → tool-5dme8x4x.js} +8 -8
  60. package/dist/chunks/{instruction-discovery-0txtbpzw.js → tool-5fgj30xe.js} +33 -33
  61. package/dist/chunks/{instruction-discovery-kkh84317.js → tool-5k0vn9gs.js} +2 -2
  62. package/dist/chunks/{instruction-discovery-5m9w47nd.js → tool-5m9w47nd.js} +1 -1
  63. package/dist/chunks/{instruction-discovery-3ffdjm8e.js → tool-5n6snyjt.js} +52 -36
  64. package/dist/chunks/tool-5w3e23ze.js +16 -0
  65. package/dist/chunks/{instruction-discovery-rx7ecff6.js → tool-5wtqv2es.js} +5 -5
  66. package/dist/chunks/{instruction-discovery-zba5tm1j.js → tool-61ennm6n.js} +4 -4
  67. package/dist/chunks/{instruction-discovery-jme6sax1.js → tool-67cvb3ht.js} +9 -9
  68. package/dist/chunks/{instruction-discovery-20e5g7bx.js → tool-6adqbtbr.js} +39 -28
  69. package/dist/chunks/tool-6bshxcsx.js +18 -0
  70. package/dist/chunks/{instruction-discovery-6esdw8yj.js → tool-6esdw8yj.js} +1 -1
  71. package/dist/chunks/{instruction-discovery-4x6wmwcx.js → tool-6h9hqrxp.js} +26 -24
  72. package/dist/chunks/{instruction-discovery-qhhs3wjj.js → tool-6jehphsq.js} +36 -36
  73. package/dist/chunks/{instruction-discovery-6vnjn6e3.js → tool-6mmkz41v.js} +16 -16
  74. package/dist/chunks/{instruction-discovery-hyynj17b.js → tool-6qtsf31h.js} +3 -3
  75. package/dist/chunks/{instruction-discovery-010690t7.js → tool-6rfxa98r.js} +25 -25
  76. package/dist/chunks/{instruction-discovery-gcjdgkn2.js → tool-6twykydk.js} +9 -9
  77. package/dist/chunks/{instruction-discovery-pytpe3gf.js → tool-6wz31r82.js} +11 -11
  78. package/dist/chunks/{instruction-discovery-j035ke4x.js → tool-7467kx48.js} +61 -42
  79. package/dist/chunks/{instruction-discovery-v3tkh1aj.js → tool-752zwhsj.js} +20 -14
  80. package/dist/chunks/{instruction-discovery-76cb1hcw.js → tool-76cb1hcw.js} +1 -1
  81. package/dist/chunks/{instruction-discovery-770pw0s1.js → tool-770pw0s1.js} +1 -1
  82. package/dist/chunks/{instruction-discovery-y09thtp3.js → tool-780q7vq9.js} +9 -7
  83. package/dist/chunks/{instruction-discovery-6q77emv1.js → tool-78kz22ny.js} +19 -19
  84. package/dist/chunks/{instruction-discovery-v2dnm4n9.js → tool-798y36pp.js} +49 -29
  85. package/dist/chunks/{instruction-discovery-7bmhse3q.js → tool-7bmhse3q.js} +1 -1
  86. package/dist/chunks/{instruction-discovery-qz04j05z.js → tool-7f02p6s5.js} +1 -1
  87. package/dist/chunks/{instruction-discovery-tmqhwsdc.js → tool-7gm95e0b.js} +6 -6
  88. package/dist/chunks/{instruction-discovery-w76j0mqj.js → tool-7harcha2.js} +2 -2
  89. package/dist/chunks/{instruction-discovery-scaas24c.js → tool-7hsh0za6.js} +46 -46
  90. package/dist/chunks/{instruction-discovery-hq055v4c.js → tool-7mwfr1ya.js} +10 -10
  91. package/dist/chunks/{instruction-discovery-zygdztbw.js → tool-7tjh76vn.js} +28 -9
  92. package/dist/chunks/{instruction-discovery-7w2ypzdf.js → tool-7w2ypzdf.js} +1 -1
  93. package/dist/chunks/{instruction-discovery-11xg13et.js → tool-88degkwg.js} +48 -23
  94. package/dist/chunks/{instruction-discovery-bcyzxrby.js → tool-8cvc109z.js} +23 -23
  95. package/dist/chunks/{instruction-discovery-vw33scy9.js → tool-8d9gtfa7.js} +27 -20
  96. package/dist/chunks/tool-8e0gbf5j.js +537 -0
  97. package/dist/chunks/{instruction-discovery-2vnhppnj.js → tool-8feq5yxx.js} +26 -20
  98. package/dist/chunks/tool-8jkecmvj.js +111 -0
  99. package/dist/chunks/{instruction-discovery-avzkbq4q.js → tool-8rk0v0nw.js} +44 -44
  100. package/dist/chunks/{instruction-discovery-c1tsfj35.js → tool-8t8mrqrh.js} +6 -6
  101. package/dist/chunks/{instruction-discovery-6y263vp8.js → tool-8wc2fpae.js} +5 -5
  102. package/dist/chunks/{instruction-discovery-8wtp7s3z.js → tool-8wtp7s3z.js} +1 -1
  103. package/dist/chunks/{instruction-discovery-m37sd98t.js → tool-8y4jps98.js} +4 -4
  104. package/dist/chunks/{instruction-discovery-maspj1v3.js → tool-90zstvax.js} +44 -8
  105. package/dist/chunks/{instruction-discovery-x2c3sws5.js → tool-94as0g8p.js} +60 -40
  106. package/dist/chunks/{instruction-discovery-0rmtycpk.js → tool-9e6q8a6s.js} +14 -14
  107. package/dist/chunks/{instruction-discovery-6c5cd6ez.js → tool-9f3sjfep.js} +9 -9
  108. package/dist/chunks/{instruction-discovery-tzjzgnfr.js → tool-9kqcsae8.js} +15 -9
  109. package/dist/chunks/{instruction-discovery-97cewran.js → tool-9nkjg9qd.js} +6 -6
  110. package/dist/chunks/{instruction-discovery-1y0wdj51.js → tool-9q8g9sv8.js} +9 -9
  111. package/dist/chunks/{instruction-discovery-0afbw91q.js → tool-9t5cp16p.js} +32 -22
  112. package/dist/chunks/{instruction-discovery-y8a8xdaa.js → tool-9taxa3wa.js} +15 -12
  113. package/dist/chunks/{instruction-discovery-76ncshtz.js → tool-a35byqw0.js} +29 -29
  114. package/dist/chunks/{instruction-discovery-y299mpjs.js → tool-agmw1zcy.js} +62 -62
  115. package/dist/chunks/tool-asd4mxps.js +26 -0
  116. package/dist/chunks/{instruction-discovery-ayjs7tqn.js → tool-ayjs7tqn.js} +2 -2
  117. package/dist/chunks/{instruction-discovery-4x3py1rw.js → tool-ayv543vf.js} +23 -23
  118. package/dist/chunks/{instruction-discovery-zspgb8vt.js → tool-b08y6na7.js} +2 -2
  119. package/dist/chunks/{instruction-discovery-b6vsg801.js → tool-b6vsg801.js} +2 -2
  120. package/dist/chunks/{instruction-discovery-6j214bp7.js → tool-b7286km2.js} +9 -9
  121. package/dist/chunks/{instruction-discovery-46r0wh18.js → tool-bavxd7np.js} +91 -67
  122. package/dist/chunks/{instruction-discovery-wjj7prxr.js → tool-beh6qq61.js} +11 -0
  123. package/dist/chunks/{instruction-discovery-1x75wf9g.js → tool-bgs9y14h.js} +5 -5
  124. package/dist/chunks/{instruction-discovery-nad4mkqt.js → tool-bk7xq8bh.js} +7 -7
  125. package/dist/chunks/{instruction-discovery-bstexjd6.js → tool-bstexjd6.js} +1 -1
  126. package/dist/chunks/{instruction-discovery-ffcwgx2p.js → tool-c065g2ca.js} +67 -51
  127. package/dist/chunks/{instruction-discovery-7nepz6ee.js → tool-c1y12bqd.js} +35 -37
  128. package/dist/chunks/{instruction-discovery-mpx851pd.js → tool-c347jtgq.js} +29 -29
  129. package/dist/chunks/{instruction-discovery-3wvbe35v.js → tool-cnga39w3.js} +17 -17
  130. package/dist/chunks/{instruction-discovery-p3ram5kx.js → tool-cnh9xgcw.js} +46 -44
  131. package/dist/chunks/tool-cqv5kn06.js +13 -0
  132. package/dist/chunks/{instruction-discovery-ryq7zjd3.js → tool-cwq9059v.js} +18 -16
  133. package/dist/chunks/{instruction-discovery-b0mv4wxm.js → tool-cwrgdav8.js} +2 -2
  134. package/dist/chunks/{instruction-discovery-y78a4wcp.js → tool-d3qmtx3n.js} +73 -41
  135. package/dist/chunks/{instruction-discovery-d4v9tmah.js → tool-d4v9tmah.js} +2 -2
  136. package/dist/chunks/{instruction-discovery-0dw5cvz7.js → tool-d893c1qn.js} +13 -13
  137. package/dist/chunks/{instruction-discovery-7fyd11se.js → tool-d9hg8633.js} +19 -19
  138. package/dist/chunks/{instruction-discovery-18b8n2mx.js → tool-ds82yrjj.js} +35 -22
  139. package/dist/chunks/{instruction-discovery-j113cymg.js → tool-dt77769w.js} +2 -2
  140. package/dist/chunks/{instruction-discovery-5hny5v5k.js → tool-dtfj6qhp.js} +126 -99
  141. package/dist/chunks/{instruction-discovery-gq24h8g9.js → tool-dvbyh3pq.js} +51 -48
  142. package/dist/chunks/{instruction-discovery-ma4p4v89.js → tool-dwxkhmt2.js} +21 -23
  143. package/dist/chunks/tool-e07q2w5p.js +83 -0
  144. package/dist/chunks/{instruction-discovery-bzfg3f7z.js → tool-e4vy1v26.js} +92 -40
  145. package/dist/chunks/{instruction-discovery-e834z07m.js → tool-e834z07m.js} +1 -1
  146. package/dist/chunks/{instruction-discovery-2ph54kq6.js → tool-edkh5za3.js} +3 -3
  147. package/dist/chunks/{instruction-discovery-cqxf2v2j.js → tool-ewr5k9wg.js} +8 -8
  148. package/dist/chunks/{instruction-discovery-xac4ky40.js → tool-f1kzydc9.js} +30 -29
  149. package/dist/chunks/{instruction-discovery-f0st8ac1.js → tool-f449218g.js} +3 -3
  150. package/dist/chunks/{instruction-discovery-5t4dhsbz.js → tool-f68rfrfr.js} +38 -41
  151. package/dist/chunks/{instruction-discovery-w194z9kg.js → tool-f8jj8vg7.js} +12 -12
  152. package/dist/chunks/{instruction-discovery-fffv3p7h.js → tool-fffv3p7h.js} +1 -1
  153. package/dist/chunks/tool-fkpq3x5p.js +36 -0
  154. package/dist/chunks/{instruction-discovery-7yv7aars.js → tool-g2pxrbdf.js} +105 -87
  155. package/dist/chunks/{instruction-discovery-2p8pcvpp.js → tool-g3b4788n.js} +33 -21
  156. package/dist/chunks/{instruction-discovery-mfa5g8gf.js → tool-ge4qdnbb.js} +28 -25
  157. package/dist/chunks/{instruction-discovery-998yhzzq.js → tool-gg8p9cgs.js} +24 -18
  158. package/dist/chunks/{instruction-discovery-jzrtge32.js → tool-gjasn01h.js} +4 -4
  159. package/dist/chunks/{instruction-discovery-62mdyzxb.js → tool-gn0hevf2.js} +13 -13
  160. package/dist/chunks/{instruction-discovery-kdmjmd4e.js → tool-gtqjgkpw.js} +1 -1
  161. package/dist/chunks/{instruction-discovery-mjatteds.js → tool-h0ya90rh.js} +19 -15
  162. package/dist/chunks/{instruction-discovery-d63q5jb9.js → tool-h8wtbm19.js} +44 -44
  163. package/dist/chunks/{instruction-discovery-c3cfh5w6.js → tool-hdfrs5mg.js} +5 -5
  164. package/dist/chunks/{instruction-discovery-6pjqjmy2.js → tool-hpg1pkwy.js} +2 -2
  165. package/dist/chunks/{instruction-discovery-d0bfceqm.js → tool-hs9cwcgs.js} +30 -30
  166. package/dist/chunks/{instruction-discovery-7ayzy530.js → tool-hy05jz59.js} +4 -4
  167. package/dist/chunks/{instruction-discovery-8a6bse1c.js → tool-j04c4e1z.js} +22 -22
  168. package/dist/chunks/{instruction-discovery-7m02jy4j.js → tool-j3xa31ke.js} +17 -17
  169. package/dist/chunks/tool-j56qcejd.js +517 -0
  170. package/dist/chunks/tool-j775gmwt.js +171 -0
  171. package/dist/chunks/{instruction-discovery-91rj84md.js → tool-jfaecv01.js} +2 -2
  172. package/dist/chunks/{instruction-discovery-043wk7y2.js → tool-jhz9911s.js} +46 -31
  173. package/dist/chunks/{instruction-discovery-pd3xbwyj.js → tool-jsqg4353.js} +15 -15
  174. package/dist/chunks/{instruction-discovery-rjw99gz0.js → tool-jszqqvxf.js} +9 -9
  175. package/dist/chunks/{instruction-discovery-g5h9c0rr.js → tool-jtnps1zs.js} +2 -2
  176. package/dist/chunks/tool-jwr30sdr.js +13 -0
  177. package/dist/chunks/{instruction-discovery-08c8nzsh.js → tool-jz5b6eqf.js} +32 -26
  178. package/dist/chunks/{instruction-discovery-fhjfpzy5.js → tool-k66e5v3s.js} +13 -13
  179. package/dist/chunks/{instruction-discovery-k814nvkf.js → tool-k814nvkf.js} +1 -1
  180. package/dist/chunks/{instruction-discovery-4shrmavh.js → tool-kcw9vyak.js} +11 -11
  181. package/dist/chunks/{instruction-discovery-k5dps1se.js → tool-kh9rt25c.js} +11 -11
  182. package/dist/chunks/{instruction-discovery-5fkm8khv.js → tool-ks0qaf84.js} +23 -21
  183. package/dist/chunks/{instruction-discovery-t31xmjpq.js → tool-ks473cwm.js} +22 -22
  184. package/dist/chunks/tool-kt3bjfbg.js +26 -0
  185. package/dist/chunks/{instruction-discovery-6pg400w5.js → tool-kzvqqj4g.js} +24 -24
  186. package/dist/chunks/{instruction-discovery-m1714858.js → tool-m1714858.js} +1 -1
  187. package/dist/chunks/{instruction-discovery-7d2ezwbt.js → tool-m89ew3ks.js} +33 -33
  188. package/dist/chunks/{instruction-discovery-m9w0rfyh.js → tool-m9w0rfyh.js} +1 -1
  189. package/dist/chunks/{instruction-discovery-ad4wbrpy.js → tool-maq43m3m.js} +11 -11
  190. package/dist/chunks/{instruction-discovery-zhtsgqh5.js → tool-mpvgefqy.js} +4 -4
  191. package/dist/chunks/tool-mrzap57y.js +295 -0
  192. package/dist/chunks/{instruction-discovery-pk22050n.js → tool-mvzrjhep.js} +2 -2
  193. package/dist/chunks/{instruction-discovery-1dqke238.js → tool-n0w6tq5t.js} +8 -8
  194. package/dist/chunks/{instruction-discovery-5qd3pb7m.js → tool-ncqqe42p.js} +2 -2
  195. package/dist/chunks/{instruction-discovery-exc8xa65.js → tool-nfga29bv.js} +31 -30
  196. package/dist/chunks/{instruction-discovery-8k3r5dp0.js → tool-nfk1y8jw.js} +26 -26
  197. package/dist/chunks/{instruction-discovery-hxbv21kt.js → tool-nfq3amnp.js} +31 -30
  198. package/dist/chunks/{instruction-discovery-b8mk3enz.js → tool-nh9ma6fe.js} +11 -11
  199. package/dist/chunks/{instruction-discovery-f8fq6sgx.js → tool-nn3qjkhj.js} +24 -24
  200. package/dist/chunks/{instruction-discovery-w0ap69e3.js → tool-nq0efya9.js} +7 -7
  201. package/dist/chunks/{instruction-discovery-c2sed5cq.js → tool-nvxqht09.js} +3 -3
  202. package/dist/chunks/{instruction-discovery-jzmsqkqv.js → tool-nyw2x12k.js} +1 -1
  203. package/dist/chunks/{instruction-discovery-6z2tyrnm.js → tool-nz89qvcx.js} +32 -30
  204. package/dist/chunks/{instruction-discovery-p015t6z3.js → tool-p015t6z3.js} +2 -2
  205. package/dist/chunks/{instruction-discovery-p8t554mv.js → tool-p56gnsnx.js} +29 -29
  206. package/dist/chunks/tool-p71gwv9c.js +153 -0
  207. package/dist/chunks/{instruction-discovery-1yq9hg58.js → tool-p7vhpwh8.js} +5 -5
  208. package/dist/chunks/{instruction-discovery-0mhrw39n.js → tool-p84syj9g.js} +31 -29
  209. package/dist/chunks/{instruction-discovery-w7zjqt6n.js → tool-pbbktnbz.js} +6 -6
  210. package/dist/chunks/{instruction-discovery-m46e9dn8.js → tool-pbwrhxm9.js} +19 -19
  211. package/dist/chunks/{instruction-discovery-t633519e.js → tool-pckyv4f2.js} +36 -36
  212. package/dist/chunks/{instruction-discovery-b9p9sb5m.js → tool-pfnzsr07.js} +19 -19
  213. package/dist/chunks/{instruction-discovery-3z193f8y.js → tool-pfstxkm2.js} +1 -1
  214. package/dist/chunks/tool-pjtyf8t7.js +133 -0
  215. package/dist/chunks/{instruction-discovery-pknna89w.js → tool-pknna89w.js} +1 -1
  216. package/dist/chunks/{instruction-discovery-e65cdmhb.js → tool-pnwsrq7c.js} +11 -11
  217. package/dist/chunks/tool-prq7xxp2.js +37 -0
  218. package/dist/chunks/{instruction-discovery-jjbtbvzd.js → tool-pvzzwdfq.js} +18 -18
  219. package/dist/chunks/{instruction-discovery-1cx70z4q.js → tool-q2z4k2x9.js} +12 -12
  220. package/dist/chunks/{instruction-discovery-0kjn1fz0.js → tool-q63v4kjv.js} +19 -14
  221. package/dist/chunks/{instruction-discovery-ta8jwj2a.js → tool-qakjdagf.js} +42 -32
  222. package/dist/chunks/{instruction-discovery-v4gdxem8.js → tool-qcsk8x8g.js} +113 -63
  223. package/dist/chunks/{instruction-discovery-4n11yhw4.js → tool-qhfm6m5r.js} +27 -25
  224. package/dist/chunks/tool-qp7r0hxv.js +120 -0
  225. package/dist/chunks/{instruction-discovery-bwg9673r.js → tool-r023m38x.js} +16 -16
  226. package/dist/chunks/{instruction-discovery-r0yr0wbs.js → tool-r0yr0wbs.js} +1 -1
  227. package/dist/chunks/{instruction-discovery-mbvnayvm.js → tool-r0yvbzfa.js} +282 -128
  228. package/dist/chunks/{instruction-discovery-scfq87m9.js → tool-r2z94j39.js} +6 -6
  229. package/dist/chunks/{instruction-discovery-tw8zr1ps.js → tool-r542h3bh.js} +5 -2
  230. package/dist/chunks/{instruction-discovery-1acn2yrp.js → tool-r850md5t.js} +9 -9
  231. package/dist/chunks/{instruction-discovery-3p713cmj.js → tool-r8dwygj6.js} +54 -54
  232. package/dist/chunks/{instruction-discovery-9r0x1bva.js → tool-r9zrswe1.js} +9 -9
  233. package/dist/chunks/{instruction-discovery-kmzgegqq.js → tool-ra6js1h8.js} +8 -8
  234. package/dist/chunks/{instruction-discovery-rb9dy4dg.js → tool-rb9dy4dg.js} +1 -1
  235. package/dist/chunks/tool-rbhebfmq.js +58 -0
  236. package/dist/chunks/{instruction-discovery-pmz5xcbe.js → tool-rgmk1r1t.js} +62 -27
  237. package/dist/chunks/{instruction-discovery-wbmymcea.js → tool-rjf5h5f7.js} +8 -8
  238. package/dist/chunks/{instruction-discovery-8d991bzx.js → tool-rr19gkj4.js} +13 -13
  239. package/dist/chunks/{instruction-discovery-rt5dr6hb.js → tool-rt5dr6hb.js} +1 -1
  240. package/dist/chunks/{instruction-discovery-a9n89zg4.js → tool-rvy8xhsv.js} +33 -32
  241. package/dist/chunks/{instruction-discovery-b974jjnj.js → tool-rzh929cz.js} +13 -13
  242. package/dist/chunks/{instruction-discovery-1m4hc5mh.js → tool-s6jj6eh0.js} +13 -13
  243. package/dist/chunks/{instruction-discovery-rtqr9ste.js → tool-s9zns2yk.js} +23 -30
  244. package/dist/chunks/tool-sa3fpqfw.js +46 -0
  245. package/dist/chunks/{instruction-discovery-8mhma7yw.js → tool-sa46y2cf.js} +12 -9
  246. package/dist/chunks/{instruction-discovery-cgwzn4dm.js → tool-sbj9xhv5.js} +79 -53
  247. package/dist/chunks/{instruction-discovery-7d1g1zxa.js → tool-sc5azq8x.js} +81 -48
  248. package/dist/chunks/{instruction-discovery-gwkpgrwq.js → tool-spqj5yby.js} +26 -26
  249. package/dist/chunks/{instruction-discovery-sqjzf8x2.js → tool-sqjzf8x2.js} +1 -1
  250. package/dist/chunks/{instruction-discovery-ssfehs1z.js → tool-ssfehs1z.js} +1 -1
  251. package/dist/chunks/{instruction-discovery-mn6tycs6.js → tool-st7p3hwb.js} +2 -2
  252. package/dist/chunks/{instruction-discovery-zkg84ctx.js → tool-svcy3p9a.js} +4 -2
  253. package/dist/chunks/{instruction-discovery-etwrvj6f.js → tool-sw5vdw2h.js} +12 -12
  254. package/dist/chunks/{instruction-discovery-k61mxn43.js → tool-sws77t7f.js} +11 -11
  255. package/dist/chunks/{instruction-discovery-tczq8hjw.js → tool-tczq8hjw.js} +1 -1
  256. package/dist/chunks/{instruction-discovery-2dh20r6m.js → tool-tt79p4vp.js} +13 -13
  257. package/dist/chunks/tool-twcztz12.js +479 -0
  258. package/dist/chunks/{instruction-discovery-twv2r8f4.js → tool-twssxy5n.js} +2 -2
  259. package/dist/chunks/{instruction-discovery-me5bcav6.js → tool-v2r1d0zg.js} +2 -2
  260. package/dist/chunks/{instruction-discovery-2annm2pv.js → tool-v6njdshh.js} +30 -25
  261. package/dist/chunks/{instruction-discovery-2cjmrnhq.js → tool-v91xp2c8.js} +20 -20
  262. package/dist/chunks/{instruction-discovery-vfjveysg.js → tool-vacfhfey.js} +10 -10
  263. package/dist/chunks/{instruction-discovery-pc1v25hk.js → tool-vb80j1wh.js} +4 -4
  264. package/dist/chunks/{instruction-discovery-veqvce7d.js → tool-veqvce7d.js} +1 -1
  265. package/dist/chunks/{instruction-discovery-rh2kdvv3.js → tool-vmx0pqdh.js} +30 -31
  266. package/dist/chunks/{instruction-discovery-mt3ysty9.js → tool-vsqvcqta.js} +7 -7
  267. package/dist/chunks/{instruction-discovery-6zh9yw36.js → tool-vvj7j8xf.js} +3 -3
  268. package/dist/chunks/{instruction-discovery-cqmfkhmj.js → tool-vvqzd10p.js} +40 -40
  269. package/dist/chunks/{instruction-discovery-jc512s3p.js → tool-vycsk1c7.js} +8 -8
  270. package/dist/chunks/{instruction-discovery-kdbzq6ew.js → tool-w08h028t.js} +9 -9
  271. package/dist/chunks/{instruction-discovery-r41sfy63.js → tool-w2eysc6j.js} +6 -6
  272. package/dist/chunks/{instruction-discovery-w3wsvvr9.js → tool-w3wsvvr9.js} +1 -1
  273. package/dist/chunks/{instruction-discovery-00vfyfmg.js → tool-w9z9y32t.js} +21 -21
  274. package/dist/chunks/{instruction-discovery-wakvkjy4.js → tool-wakvkjy4.js} +1 -1
  275. package/dist/chunks/{instruction-discovery-wd87259q.js → tool-wd87259q.js} +1 -1
  276. package/dist/chunks/{instruction-discovery-n0p0277s.js → tool-wnhgecwx.js} +35 -4
  277. package/dist/chunks/{instruction-discovery-fznmdakp.js → tool-wr3re1en.js} +4 -4
  278. package/dist/chunks/tool-wz464gjx.js +42 -0
  279. package/dist/chunks/{instruction-discovery-hdgh8tc2.js → tool-x75vegnr.js} +13 -11
  280. package/dist/chunks/{instruction-discovery-jf30r1rb.js → tool-xasx590j.js} +7 -7
  281. package/dist/chunks/{instruction-discovery-5v9evq2g.js → tool-xhrs65th.js} +7 -7
  282. package/dist/chunks/{instruction-discovery-ygtqa21c.js → tool-xpx0z35b.js} +11 -11
  283. package/dist/chunks/{instruction-discovery-v466f70q.js → tool-xqxzn5yn.js} +14 -14
  284. package/dist/chunks/{instruction-discovery-jneg3k74.js → tool-xt0z8zst.js} +6 -6
  285. package/dist/chunks/{instruction-discovery-55tcnysh.js → tool-xw4ev616.js} +12 -12
  286. package/dist/chunks/{instruction-discovery-ekeaw6g8.js → tool-y420wvgt.js} +30 -30
  287. package/dist/chunks/{instruction-discovery-a6r83rnm.js → tool-y5kjjy07.js} +24 -24
  288. package/dist/chunks/{instruction-discovery-kb0avjr6.js → tool-y7287ygs.js} +6 -6
  289. package/dist/chunks/tool-yara3q77.js +132 -0
  290. package/dist/chunks/{instruction-discovery-yb20nhc3.js → tool-yb20nhc3.js} +1 -1
  291. package/dist/chunks/{instruction-discovery-t8qa7zg5.js → tool-ycd18cxa.js} +7 -7
  292. package/dist/chunks/{instruction-discovery-wp4rg1a9.js → tool-ymky0t0b.js} +5 -5
  293. package/dist/chunks/{instruction-discovery-n5194rg1.js → tool-yqsmg75a.js} +64 -30
  294. package/dist/chunks/{instruction-discovery-2m2g9ynh.js → tool-yqveydy6.js} +4 -4
  295. package/dist/chunks/{instruction-discovery-vp60xasa.js → tool-yxjvbhxs.js} +4 -4
  296. package/dist/chunks/{instruction-discovery-ddbr5e5j.js → tool-yytcp89d.js} +25 -25
  297. package/dist/chunks/{instruction-discovery-z81weg6a.js → tool-yzaa036j.js} +32 -32
  298. package/dist/chunks/{instruction-discovery-z0bkrqjs.js → tool-z0bkrqjs.js} +1 -1
  299. package/dist/chunks/{instruction-discovery-z38nccrw.js → tool-z38nccrw.js} +1 -1
  300. package/dist/chunks/{instruction-discovery-fnw4y167.js → tool-zdkwz0rs.js} +5 -8
  301. package/dist/chunks/tool-zfjx7vmh.js +257 -0
  302. package/dist/chunks/{instruction-discovery-4xvmh7wp.js → tool-zgkm4kzm.js} +3 -3
  303. package/dist/chunks/{instruction-discovery-psq905b5.js → tool-zw3yjf62.js} +13 -13
  304. package/dist/chunks/{instruction-discovery-r6ff3mpm.js → tool-zyqv3h6k.js} +8 -8
  305. package/dist/codemode/catalog.js +1 -1
  306. package/dist/codemode/instructions.js +7 -7
  307. package/dist/codemode/tool.js +3 -3
  308. package/dist/codemode/web.js +1 -1
  309. package/dist/command.js +89 -85
  310. package/dist/config/discovery.js +90 -84
  311. package/dist/config/integration.js +14 -0
  312. package/dist/config/markdown.js +1 -1
  313. package/dist/config/normalize.js +109 -103
  314. package/dist/config/plugin/agent.js +123 -118
  315. package/dist/config/plugin/command.js +221 -214
  316. package/dist/config/plugin/compaction.js +162 -155
  317. package/dist/config/plugin/compatibility.js +142 -135
  318. package/dist/config/plugin/entry-observer.js +1 -1
  319. package/dist/config/plugin/formatter.js +122 -117
  320. package/dist/config/plugin/image.js +121 -116
  321. package/dist/config/plugin/instruction.js +121 -116
  322. package/dist/config/plugin/location-watcher.js +121 -116
  323. package/dist/config/plugin/mcp.js +130 -125
  324. package/dist/config/plugin/policy.js +123 -117
  325. package/dist/config/plugin/provider.js +124 -116
  326. package/dist/config/plugin/reference.js +123 -118
  327. package/dist/config/plugin/shell.js +121 -116
  328. package/dist/config/plugin/skill-file.js +138 -104
  329. package/dist/config/plugin/skill-scan.js +1 -1
  330. package/dist/config/plugin/skill.js +145 -138
  331. package/dist/config/plugin/snapshot.js +121 -116
  332. package/dist/config/plugin/source.js +124 -119
  333. package/dist/config/plugin/tool-output.js +122 -117
  334. package/dist/config/plugin/websearch.js +120 -115
  335. package/dist/config/plugin/worktree.js +123 -118
  336. package/dist/config/variable.js +1 -1
  337. package/dist/config/watch.js +1 -1
  338. package/dist/config.js +126 -121
  339. package/dist/console-access.js +12 -0
  340. package/dist/credential/sql.js +2 -2
  341. package/dist/credential.js +83 -79
  342. package/dist/database/database.js +78 -74
  343. package/dist/database/drizzle/effect-sqlite/driver.js +14 -14
  344. package/dist/database/drizzle/effect-sqlite/index.js +14 -14
  345. package/dist/database/drizzle/effect-sqlite/session.js +11 -11
  346. package/dist/database/drizzle/index.js +15 -15
  347. package/dist/database/drizzle/internal/drizzle-utils.js +1 -1
  348. package/dist/database/drizzle/sqlite-core/effect/count.js +1 -1
  349. package/dist/database/drizzle/sqlite-core/effect/db.js +9 -9
  350. package/dist/database/drizzle/sqlite-core/effect/delete.js +2 -2
  351. package/dist/database/drizzle/sqlite-core/effect/index.js +10 -10
  352. package/dist/database/drizzle/sqlite-core/effect/insert.js +2 -2
  353. package/dist/database/drizzle/sqlite-core/effect/query.js +1 -1
  354. package/dist/database/drizzle/sqlite-core/effect/raw.js +1 -1
  355. package/dist/database/drizzle/sqlite-core/effect/select.js +2 -2
  356. package/dist/database/drizzle/sqlite-core/effect/session.js +10 -10
  357. package/dist/database/drizzle/sqlite-core/effect/update.js +2 -2
  358. package/dist/database/drizzle.js +16 -16
  359. package/dist/database/migration/20260127222353_familiar_lady_ursula.js +1 -1
  360. package/dist/database/migration/20260211171708_add_project_commands.js +1 -1
  361. package/dist/database/migration/20260213144116_wakeful_the_professor.js +1 -1
  362. package/dist/database/migration/20260225215848_workspace.js +1 -1
  363. package/dist/database/migration/20260227213759_add_session_workspace_id.js +1 -1
  364. package/dist/database/migration/20260228203230_blue_harpoon.js +1 -1
  365. package/dist/database/migration/20260303231226_add_workspace_fields.js +1 -1
  366. package/dist/database/migration/20260309230000_move_org_to_state.js +1 -1
  367. package/dist/database/migration/20260312043431_session_message_cursor.js +1 -1
  368. package/dist/database/migration/20260323234822_events.js +1 -1
  369. package/dist/database/migration/20260410174513_workspace-name.js +1 -1
  370. package/dist/database/migration/20260413175956_chief_energizer.js +1 -1
  371. package/dist/database/migration/20260423070820_add_icon_url_override.js +1 -1
  372. package/dist/database/migration/20260427172553_slow_nightmare.js +1 -1
  373. package/dist/database/migration/20260428004200_add_session_path.js +1 -1
  374. package/dist/database/migration/20260501142318_next_venus.js +1 -1
  375. package/dist/database/migration/20260504145000_add_sync_owner.js +1 -1
  376. package/dist/database/migration/20260507164347_add_workspace_time.js +1 -1
  377. package/dist/database/migration/20260510033149_session_usage.js +1 -1
  378. package/dist/database/migration/20260511000411_data_migration_state.js +1 -1
  379. package/dist/database/migration/20260511173437_session-metadata.js +1 -1
  380. package/dist/database/migration/20260601010001_normalize_storage_paths.js +1 -1
  381. package/dist/database/migration/20260601202201_amazing_prowler.js +1 -1
  382. package/dist/database/migration/20260602002951_lowly_union_jack.js +1 -1
  383. package/dist/database/migration/20260602182828_add_project_directories.js +1 -1
  384. package/dist/database/migration/20260603001617_session_message_projection_indexes.js +1 -1
  385. package/dist/database/migration/20260603040000_session_message_projection_order.js +1 -1
  386. package/dist/database/migration/20260603141458_session_input_inbox.js +1 -1
  387. package/dist/database/migration/20260603160727_jittery_ezekiel_stane.js +1 -1
  388. package/dist/database/migration/20260604172448_event_sourced_session_input.js +1 -1
  389. package/dist/database/migration/20260605003541_add_session_context_snapshot.js +1 -1
  390. package/dist/database/migration/20260605042240_add_context_epoch_agent.js +1 -1
  391. package/dist/database/migration/20260611035744_credential.js +1 -1
  392. package/dist/database/migration/20260611192811_lush_chimera.js +1 -1
  393. package/dist/database/migration/20260612174303_project_dir_strategy.js +1 -1
  394. package/dist/database/migration/20260622142730_simplify_session_context_epoch.js +1 -1
  395. package/dist/database/migration/20260622170816_reset_v2_session_state.js +1 -1
  396. package/dist/database/migration/20260622202450_simplify_session_input.js +1 -1
  397. package/dist/database/migration/20260804233008_loose_psylocke.js +1 -1
  398. package/dist/database/migration/20260805200742_import_legacy_credentials.js +1 -1
  399. package/dist/database/migration/20260808023530_workspace_domain.js +1 -1
  400. package/dist/database/migration/20260811161259_execution_claim_attempts.js +1 -1
  401. package/dist/database/migration/20260812181746_session_inbox.js +1 -1
  402. package/dist/database/migration/20260812213948_worktree.js +1 -1
  403. package/dist/database/migration/20260819222447_session_viewed_state.js +1 -1
  404. package/dist/database/migration/20260823191254_nullable_workspace_binding.js +1 -1
  405. package/dist/database/migration/20260910120000_clear_v1_session_permission.js +1 -1
  406. package/dist/database/migration/20260923013825_project_time_active.js +1 -1
  407. package/dist/database/migration/20261007190000_azure_cli_external_credential.js +1 -1
  408. package/dist/database/migration/20261010180456_project_time_archived.js +1 -1
  409. package/dist/database/migration/20261024002554_session_allowance.js +6 -0
  410. package/dist/database/migration/20261024175301_drop_session_allowance.js +6 -0
  411. package/dist/database/migration/20261025123711_blob.js +6 -0
  412. package/dist/database/migration/20261025154125_drop_session_pending.js +6 -0
  413. package/dist/database/migration.gen.js +55 -51
  414. package/dist/database/migration.js +57 -53
  415. package/dist/database/path.js +2 -2
  416. package/dist/database/schema.gen.js +1 -1
  417. package/dist/database/schema.sql.js +1 -1
  418. package/dist/database/sqlite.bun.js +1 -1
  419. package/dist/database/sqlite.js +1 -1
  420. package/dist/database/sqlite.node.js +1 -1
  421. package/dist/database/sqlite.workerd.js +1 -1
  422. package/dist/database/v1-migration.bun.js +163 -89
  423. package/dist/database/v1-migration.js +1 -1
  424. package/dist/effect/app-node-builder.js +386 -371
  425. package/dist/effect/app-node-platform.js +2 -2
  426. package/dist/effect/keyed-mutex.js +3 -3
  427. package/dist/effect/websocket-constructor.js +1 -1
  428. package/dist/environment/driver.js +1 -1
  429. package/dist/environment/environment.js +101 -95
  430. package/dist/environment/exec-defaults.js +2 -2
  431. package/dist/environment/files.js +3 -1
  432. package/dist/environment/index.js +104 -96
  433. package/dist/environment/local.js +2 -2
  434. package/dist/environment/memory.js +2 -2
  435. package/dist/environment/unavailable.js +3 -3
  436. package/dist/event/sql.js +1 -1
  437. package/dist/event-logger.js +80 -76
  438. package/dist/file-access.js +148 -106
  439. package/dist/file-mutation.js +102 -96
  440. package/dist/file-retention.js +1 -1
  441. package/dist/filesystem/fff.bun.js +2 -2
  442. package/dist/filesystem/fff.js +1 -1
  443. package/dist/filesystem/fff.node.js +2 -2
  444. package/dist/filesystem/fff.workerd.js +2 -2
  445. package/dist/filesystem/file-watch.js +221 -0
  446. package/dist/filesystem/location-watcher-policy.js +6 -6
  447. package/dist/filesystem/location-watcher.js +232 -225
  448. package/dist/filesystem/protected.js +1 -1
  449. package/dist/filesystem/search.js +109 -101
  450. package/dist/filesystem/watcher-binding.js +3 -3
  451. package/dist/filesystem/watcher.js +11 -11
  452. package/dist/filesystem.js +110 -104
  453. package/dist/form.js +80 -76
  454. package/dist/formatter/builtins.js +4 -4
  455. package/dist/formatter.js +95 -89
  456. package/dist/generate.js +125 -111
  457. package/dist/git.js +13 -10
  458. package/dist/github-copilot/chat/convert-to-openai-compatible-chat-messages.js +1 -1
  459. package/dist/github-copilot/chat/get-response-metadata.js +1 -1
  460. package/dist/github-copilot/chat/map-openai-compatible-finish-reason.js +1 -1
  461. package/dist/github-copilot/chat/openai-compatible-chat-language-model.js +7 -7
  462. package/dist/github-copilot/chat/openai-compatible-chat-options.js +1 -1
  463. package/dist/github-copilot/chat/openai-compatible-prepare-tools.js +1 -1
  464. package/dist/github-copilot/copilot-provider.js +17 -17
  465. package/dist/github-copilot/models.js +101 -95
  466. package/dist/github-copilot/openai-compatible-error.js +1 -1
  467. package/dist/github-copilot/responses/convert-to-openai-responses-input.js +1 -1
  468. package/dist/github-copilot/responses/map-openai-responses-finish-reason.js +1 -1
  469. package/dist/github-copilot/responses/openai-error.js +1 -1
  470. package/dist/github-copilot/responses/openai-responses-language-model.js +10 -10
  471. package/dist/github-copilot/responses/openai-responses-prepare-tools.js +6 -6
  472. package/dist/github-copilot/responses/tool/code-interpreter.js +1 -1
  473. package/dist/github-copilot/responses/tool/file-search.js +1 -1
  474. package/dist/github-copilot/responses/tool/image-generation.js +1 -1
  475. package/dist/github-copilot/responses/tool/web-search-preview.js +1 -1
  476. package/dist/github-copilot/responses/tool/web-search.js +1 -1
  477. package/dist/image/photon-normalize.js +12 -0
  478. package/dist/image/photon-worker.js +19 -0
  479. package/dist/image/photon.js +125 -79
  480. package/dist/image.js +6 -6
  481. package/dist/instance/service.js +5 -5
  482. package/dist/instance.js +373 -360
  483. package/dist/instruction-discovery.js +92 -88
  484. package/dist/instructions/builtins.js +91 -85
  485. package/dist/instructions/index.js +5 -5
  486. package/dist/integration/connection.js +3 -3
  487. package/dist/integration.js +91 -87
  488. package/dist/job.js +84 -80
  489. package/dist/kv/sql.js +2 -2
  490. package/dist/kv.js +79 -75
  491. package/dist/location-activity.js +168 -163
  492. package/dist/location-lifecycle.js +142 -109
  493. package/dist/location-service-map.js +94 -88
  494. package/dist/location-services.js +370 -357
  495. package/dist/location.js +97 -91
  496. package/dist/managed-policy.js +5 -4
  497. package/dist/mcp/client.js +146 -108
  498. package/dist/mcp/index.js +115 -109
  499. package/dist/mcp/instructions.js +166 -138
  500. package/dist/mcp/oauth.js +93 -83
  501. package/dist/mcp/socket-client.js +71 -0
  502. package/dist/mcp/stdio.js +98 -92
  503. package/dist/mime.js +1 -1
  504. package/dist/modal/models.js +101 -95
  505. package/dist/model-resolver.js +109 -103
  506. package/dist/model-retry.js +4 -2
  507. package/dist/model.js +108 -100
  508. package/dist/models-dev/v1.js +8 -0
  509. package/dist/models-dev.js +120 -111
  510. package/dist/oauth/page.js +1 -1
  511. package/dist/permission/saved.js +88 -84
  512. package/dist/permission/sql.js +5 -5
  513. package/dist/permission.js +151 -117
  514. package/dist/persistent-pty/binary.bun.js +1 -1
  515. package/dist/persistent-pty/daemon.js +1 -1
  516. package/dist/persistent-pty/index.js +92 -88
  517. package/dist/persistent-pty/pty-binding.js +1 -1
  518. package/dist/persistent-pty.js +81 -77
  519. package/dist/plugin/agent.js +82 -78
  520. package/dist/plugin/command.js +110 -104
  521. package/dist/plugin/hooks.js +3 -3
  522. package/dist/plugin/host.js +227 -220
  523. package/dist/plugin/identity.js +5 -3
  524. package/dist/plugin/instance.js +5 -5
  525. package/dist/plugin/internal.js +343 -332
  526. package/dist/plugin/mcp-codemode-defaults.js +3 -3
  527. package/dist/plugin/models-dev.js +105 -98
  528. package/dist/plugin/module.js +123 -117
  529. package/dist/plugin/optimize.js +5 -3
  530. package/dist/plugin/plan.js +138 -104
  531. package/dist/plugin/promise.js +1 -1
  532. package/dist/plugin/provider/amazon-bedrock.js +98 -92
  533. package/dist/plugin/provider/azure.js +121 -116
  534. package/dist/plugin/provider/cerebras.js +1 -1
  535. package/dist/plugin/provider/chatgpt.js +121 -116
  536. package/dist/plugin/provider/cloudflare-ai-gateway.js +118 -113
  537. package/dist/plugin/provider/cloudflare-workers-ai.js +118 -113
  538. package/dist/plugin/provider/cohere.js +2 -2
  539. package/dist/plugin/provider/configured.js +117 -112
  540. package/dist/plugin/provider/databricks.js +1 -1
  541. package/dist/plugin/provider/digitalocean.js +101 -95
  542. package/dist/plugin/provider/dynamic.js +2 -2
  543. package/dist/plugin/provider/factory.js +1 -1
  544. package/dist/plugin/provider/github-copilot.js +103 -97
  545. package/dist/plugin/provider/gitlab.js +101 -95
  546. package/dist/plugin/provider/google-vertex.js +118 -113
  547. package/dist/plugin/provider/kilo.js +1 -1
  548. package/dist/plugin/provider/llmgateway.js +84 -80
  549. package/dist/plugin/provider/lmstudio.js +130 -125
  550. package/dist/plugin/provider/local.js +127 -122
  551. package/dist/plugin/provider/modal.js +100 -94
  552. package/dist/plugin/provider/neon.js +1 -1
  553. package/dist/plugin/provider/nvidia.js +1 -1
  554. package/dist/plugin/provider/ollama.js +130 -125
  555. package/dist/plugin/provider/openai-context-caps.js +103 -0
  556. package/dist/plugin/provider/openai.js +121 -116
  557. package/dist/plugin/provider/opencode-legacy.js +119 -0
  558. package/dist/plugin/provider/opencode.js +127 -103
  559. package/dist/plugin/provider/openrouter.js +99 -93
  560. package/dist/plugin/provider/perplexity.js +2 -2
  561. package/dist/plugin/provider/poe.js +85 -81
  562. package/dist/plugin/provider/prompt-cache-key.js +1 -1
  563. package/dist/plugin/provider/sap-ai-core.js +99 -93
  564. package/dist/plugin/provider/sdk-factory.js +1 -1
  565. package/dist/plugin/provider/snowflake-cortex.js +120 -115
  566. package/dist/plugin/provider/vercel.js +98 -92
  567. package/dist/plugin/provider/vllm.js +130 -125
  568. package/dist/plugin/provider/xai.js +99 -93
  569. package/dist/plugin/provider/zenmux.js +1 -1
  570. package/dist/plugin/provider.js +178 -170
  571. package/dist/plugin/sdk.js +82 -78
  572. package/dist/plugin/service.js +3 -3
  573. package/dist/plugin/skill.js +141 -134
  574. package/dist/plugin/source-directory.js +1 -1
  575. package/dist/plugin/supervisor.js +362 -351
  576. package/dist/plugin/tool-input-repair.js +4 -4
  577. package/dist/plugin/update.js +6 -6
  578. package/dist/plugin/vcs/git.js +94 -88
  579. package/dist/plugin/vcs/hg.js +94 -88
  580. package/dist/plugin/verbosity.js +101 -95
  581. package/dist/plugin/warming.js +119 -114
  582. package/dist/plugin/websearch/exa.js +7 -7
  583. package/dist/plugin/websearch/firecrawl.js +8 -8
  584. package/dist/plugin/websearch/index.js +9 -9
  585. package/dist/plugin/websearch/mcp.js +4 -4
  586. package/dist/plugin/websearch/parallel.js +8 -8
  587. package/dist/plugin/websearch/tavily.js +6 -6
  588. package/dist/plugin/websearch/tinyfish.js +6 -6
  589. package/dist/plugin.js +236 -227
  590. package/dist/project/icon.js +14 -0
  591. package/dist/project/schema.js +4 -4
  592. package/dist/project/sql.js +4 -4
  593. package/dist/project.js +94 -88
  594. package/dist/provider.js +105 -97
  595. package/dist/pty/protocol.js +1 -1
  596. package/dist/pty/ticket.js +11 -4
  597. package/dist/pty.js +98 -93
  598. package/dist/reference/instructions.js +96 -91
  599. package/dist/reference.js +98 -93
  600. package/dist/repository-cache.js +88 -83
  601. package/dist/repository.js +1 -1
  602. package/dist/ripgrep/binary.js +2 -2
  603. package/dist/ripgrep.js +103 -97
  604. package/dist/rpc.js +96 -88
  605. package/dist/schema.js +1 -1
  606. package/dist/session/affinity.js +1 -1
  607. package/dist/session/blob.js +157 -0
  608. package/dist/session/command.js +80 -76
  609. package/dist/session/compaction.js +162 -136
  610. package/dist/session/context.js +188 -164
  611. package/dist/session/diff.js +96 -90
  612. package/dist/session/environment.js +5 -5
  613. package/dist/session/error.js +5 -5
  614. package/dist/session/event.js +1 -1
  615. package/dist/session/execution/restart.js +231 -224
  616. package/dist/session/execution.js +154 -130
  617. package/dist/session/generate.js +190 -166
  618. package/dist/session/history.js +134 -14
  619. package/dist/session/inbox.js +146 -95
  620. package/dist/session/info.js +3 -3
  621. package/dist/session/instruction-entry.js +85 -81
  622. package/dist/session/instruction-state.js +8 -8
  623. package/dist/session/instructions.js +132 -99
  624. package/dist/session/message-updater.js +2 -2
  625. package/dist/session/message.js +1 -1
  626. package/dist/session/model-request.js +155 -122
  627. package/dist/session/model-transport.js +9 -9
  628. package/dist/session/move.js +156 -132
  629. package/dist/session/projector.js +134 -91
  630. package/dist/session/prompt.js +140 -107
  631. package/dist/session/recent-text.js +1 -1
  632. package/dist/session/revert.js +130 -96
  633. package/dist/session/run-coordinator.js +1 -1
  634. package/dist/session/runner/index.js +3 -3
  635. package/dist/session/runner/llm.js +238 -231
  636. package/dist/session/runner/max-steps.js +1 -1
  637. package/dist/session/runner/model.js +108 -101
  638. package/dist/session/runner/publish-llm-event.js +141 -116
  639. package/dist/session/runner/retry.js +5 -5
  640. package/dist/session/runner/step.js +154 -128
  641. package/dist/session/runner/to-llm-message.js +128 -14
  642. package/dist/session/schema.js +5 -5
  643. package/dist/session/session.js +172 -165
  644. package/dist/session/shell.js +135 -130
  645. package/dist/session/skill.js +139 -105
  646. package/dist/session/sql.js +10 -8
  647. package/dist/session/stats.js +81 -77
  648. package/dist/session/store.js +133 -87
  649. package/dist/session/stored.js +23 -0
  650. package/dist/session/subagent-completion.js +1 -1
  651. package/dist/session/subagent-job.js +215 -208
  652. package/dist/session/system-prompt.js +3 -3
  653. package/dist/session/title.js +192 -168
  654. package/dist/session/to-session-error.js +140 -114
  655. package/dist/session/transfer.js +230 -223
  656. package/dist/session/usage.js +1 -1
  657. package/dist/session.js +223 -216
  658. package/dist/shell/parse.js +6 -6
  659. package/dist/shell/result.js +1 -1
  660. package/dist/shell/scan.js +1 -1
  661. package/dist/shell/select.js +11 -11
  662. package/dist/shell.js +137 -132
  663. package/dist/skill/discovery.js +6 -6
  664. package/dist/skill/instructions.js +141 -107
  665. package/dist/skill.js +150 -116
  666. package/dist/snapshot.js +99 -93
  667. package/dist/state.js +3 -1
  668. package/dist/tool/html-markdown.js +1 -1
  669. package/dist/tool/http-body.js +1 -1
  670. package/dist/tool/mcp.js +167 -139
  671. package/dist/tool/plugin/edit.js +150 -116
  672. package/dist/tool/plugin/file-diff.js +1 -1
  673. package/dist/tool/plugin/glob.js +160 -126
  674. package/dist/tool/plugin/grep.js +160 -126
  675. package/dist/tool/plugin/mcp-resource.js +154 -126
  676. package/dist/tool/plugin/opencode.js +153 -111
  677. package/dist/tool/plugin/patch.js +156 -122
  678. package/dist/tool/plugin/question.js +138 -105
  679. package/dist/tool/plugin/read.js +161 -127
  680. package/dist/tool/plugin/shell.js +222 -215
  681. package/dist/tool/plugin/skill.js +147 -113
  682. package/dist/tool/plugin/subagent.js +226 -219
  683. package/dist/tool/plugin/todo.js +145 -138
  684. package/dist/tool/plugin/webfetch.js +147 -113
  685. package/dist/tool/plugin/websearch.js +145 -114
  686. package/dist/tool/plugin/write.js +158 -124
  687. package/dist/tool/read-filesystem.js +108 -102
  688. package/dist/tool/runtime.js +1 -1
  689. package/dist/tool-output.js +7 -7
  690. package/dist/tool.js +12 -12
  691. package/dist/types/agent.d.ts +5 -0
  692. package/dist/types/aisdk.d.ts +1 -1
  693. package/dist/types/config/integration.d.ts +81 -0
  694. package/dist/types/config/plugin/command.d.ts +1 -1
  695. package/dist/types/config/plugin/provider.d.ts +8 -0
  696. package/dist/types/config.d.ts +8 -1
  697. package/dist/types/console-access.d.ts +7 -0
  698. package/dist/types/credential.d.ts +2 -0
  699. package/dist/types/database/migration/20261024002554_session_allowance.d.ts +3 -0
  700. package/dist/types/database/migration/20261024175301_drop_session_allowance.d.ts +3 -0
  701. package/dist/types/database/migration/20261025123711_blob.d.ts +3 -0
  702. package/dist/types/database/migration/20261025154125_drop_session_pending.d.ts +3 -0
  703. package/dist/types/database/v1-migration.bun.d.ts +4 -2
  704. package/dist/types/effect/app-node-platform.d.ts +3 -2
  705. package/dist/types/environment/files.d.ts +2 -0
  706. package/dist/types/environment/index.d.ts +1 -1
  707. package/dist/types/file-access.d.ts +3 -3
  708. package/dist/types/filesystem/fff.d.ts +1 -0
  709. package/dist/types/filesystem/file-watch.d.ts +33 -0
  710. package/dist/types/filesystem/search.d.ts +3 -0
  711. package/dist/types/generate.d.ts +39 -7
  712. package/dist/types/git.d.ts +17 -2
  713. package/dist/types/github-copilot/responses/openai-responses-language-model.d.ts +2 -2
  714. package/dist/types/image/photon-normalize.d.ts +28 -0
  715. package/dist/types/image/photon-wasm.bun.d.ts +1 -1
  716. package/dist/types/image/photon-worker.d.ts +12 -0
  717. package/dist/types/image/photon.d.ts +14 -4
  718. package/dist/types/instance/service.d.ts +2 -0
  719. package/dist/types/instance.d.ts +2 -2
  720. package/dist/types/job.d.ts +1 -4
  721. package/dist/types/mcp/client.d.ts +10 -281
  722. package/dist/types/mcp/index.d.ts +9 -2
  723. package/dist/types/mcp/socket-client.d.ts +28 -0
  724. package/dist/types/mime.d.ts +1 -1
  725. package/dist/types/model-resolver.d.ts +8 -1
  726. package/dist/types/model-retry.d.ts +3 -1
  727. package/dist/types/model.d.ts +28 -1
  728. package/dist/types/models-dev/v1.d.ts +3 -0
  729. package/dist/types/models-dev.d.ts +3 -3
  730. package/dist/types/permission.d.ts +0 -1
  731. package/dist/types/persistent-pty/daemon.d.ts +0 -6
  732. package/dist/types/plugin/host.d.ts +3 -2
  733. package/dist/types/plugin/internal.d.ts +2 -3
  734. package/dist/types/plugin/module.d.ts +10 -0
  735. package/dist/types/plugin/optimize.d.ts +26 -0
  736. package/dist/types/plugin/provider/azure.d.ts +2 -2
  737. package/dist/types/plugin/provider/chatgpt.d.ts +1 -1
  738. package/dist/types/plugin/provider/github-copilot.d.ts +1 -1
  739. package/dist/types/plugin/provider/gitlab.d.ts +1 -1
  740. package/dist/types/plugin/provider/google-vertex.d.ts +1 -1
  741. package/dist/types/plugin/provider/modal.d.ts +1 -1
  742. package/dist/types/plugin/provider/openai-context-caps.d.ts +2 -0
  743. package/dist/types/plugin/provider/openai.d.ts +1 -1
  744. package/dist/types/plugin/provider/opencode-legacy.d.ts +69 -0
  745. package/dist/types/plugin/provider/opencode.d.ts +2 -2
  746. package/dist/types/plugin/provider/snowflake-cortex.d.ts +1 -1
  747. package/dist/types/plugin/service.d.ts +12 -0
  748. package/dist/types/plugin.d.ts +1 -1
  749. package/dist/types/project/icon.d.ts +26 -0
  750. package/dist/types/project.d.ts +9 -4
  751. package/dist/types/provider.d.ts +33 -3
  752. package/dist/types/pty/ticket.d.ts +7 -1
  753. package/dist/types/ripgrep/binary.d.ts +1 -0
  754. package/dist/types/rpc.d.ts +2 -0
  755. package/dist/types/session/blob.d.ts +2687 -0
  756. package/dist/types/session/compaction.d.ts +18 -8
  757. package/dist/types/session/diff.d.ts +0 -1
  758. package/dist/types/session/error.d.ts +6 -16
  759. package/dist/types/session/generate.d.ts +2 -2
  760. package/dist/types/session/history.d.ts +2348 -293
  761. package/dist/types/session/inbox.d.ts +74 -115
  762. package/dist/types/session/instruction-entry.d.ts +1 -1
  763. package/dist/types/session/model-request.d.ts +2 -2
  764. package/dist/types/session/prompt.d.ts +6 -2
  765. package/dist/types/session/recent-text.d.ts +2 -1
  766. package/dist/types/session/runner/index.d.ts +1 -1
  767. package/dist/types/session/runner/model.d.ts +1 -2
  768. package/dist/types/session/runner/publish-llm-event.d.ts +4 -2
  769. package/dist/types/session/runner/retry.d.ts +1 -1
  770. package/dist/types/session/runner/step.d.ts +2 -2
  771. package/dist/types/session/runner/to-llm-message.d.ts +1 -1
  772. package/dist/types/session/schema.d.ts +10 -12
  773. package/dist/types/session/sql.d.ts +196 -122
  774. package/dist/types/session/stats.d.ts +12 -11
  775. package/dist/types/session/store.d.ts +7 -6
  776. package/dist/types/session/stored.d.ts +462 -0
  777. package/dist/types/session/title.d.ts +1 -1
  778. package/dist/types/session/to-session-error.d.ts +1 -1
  779. package/dist/types/session/transfer.d.ts +23 -25
  780. package/dist/types/session/usage.d.ts +1 -1
  781. package/dist/types/session.d.ts +9 -6
  782. package/dist/types/shell/parser-wasm.bun.d.ts +3 -3
  783. package/dist/types/state.d.ts +6 -0
  784. package/dist/types/tool/plugin/edit.d.ts +2 -1
  785. package/dist/types/tool/plugin/glob.d.ts +1 -1
  786. package/dist/types/tool/plugin/grep.d.ts +1 -1
  787. package/dist/types/tool/plugin/opencode.d.ts +0 -2
  788. package/dist/types/tool/plugin/patch.d.ts +2 -1
  789. package/dist/types/tool/plugin/shell.d.ts +1 -1
  790. package/dist/types/tool/plugin/subagent.d.ts +1 -3
  791. package/dist/types/tool/plugin/write.d.ts +1 -1
  792. package/dist/types/tool/runtime.d.ts +1 -1
  793. package/dist/types/tool.d.ts +1 -1
  794. package/dist/types/usage-limits.d.ts +103 -0
  795. package/dist/types/util/git-executable.d.ts +6 -2
  796. package/dist/types/v1/config/mcp.d.ts +4 -0
  797. package/dist/types/v1/config/migrate.d.ts +3 -1
  798. package/dist/types/vcs.d.ts +3 -2
  799. package/dist/types/voice.d.ts +3 -31
  800. package/dist/types/wellknown/plugin.d.ts +1 -1
  801. package/dist/usage-limits.js +100 -0
  802. package/dist/util/error-summary.js +1 -1
  803. package/dist/util/git-executable.js +5 -2
  804. package/dist/util/lazy.js +1 -1
  805. package/dist/util/slug.js +1 -1
  806. package/dist/util/token.js +1 -1
  807. package/dist/util/which.js +1 -1
  808. package/dist/util/wildcard.js +1 -1
  809. package/dist/v1/config/agent.js +7 -7
  810. package/dist/v1/config/command.js +3 -3
  811. package/dist/v1/config/mcp.js +6 -6
  812. package/dist/v1/config/migrate.js +100 -94
  813. package/dist/v1/config/permission.js +7 -7
  814. package/dist/v1/config/plugin.js +3 -3
  815. package/dist/v1/config/provider-options.js +1 -1
  816. package/dist/v1/config/provider.js +4 -4
  817. package/dist/variant.js +101 -95
  818. package/dist/vcs/patch.js +1 -1
  819. package/dist/vcs.js +99 -91
  820. package/dist/voice.js +92 -88
  821. package/dist/websearch.js +88 -84
  822. package/dist/wellknown/plugin.js +82 -78
  823. package/dist/wellknown.js +87 -83
  824. package/dist/workspace/driver.js +5 -5
  825. package/dist/workspace/sql.js +1 -1
  826. package/dist/workspace.js +86 -82
  827. package/dist/worktree/directory.js +2 -2
  828. package/dist/worktree/git.js +11 -10
  829. package/dist/worktree/sql.js +5 -5
  830. package/dist/worktree/strategies.js +93 -87
  831. package/dist/worktree.js +100 -94
  832. package/package.json +15 -13
  833. package/dist/chunks/instruction-discovery-8wc7jg0k.js +0 -26
  834. package/dist/chunks/instruction-discovery-98t435zw.js +0 -219
  835. package/dist/chunks/instruction-discovery-e2mf0cbs.js +0 -321
  836. package/dist/chunks/instruction-discovery-ef5x83kb.js +0 -15
  837. package/dist/chunks/instruction-discovery-grzehpz7.js +0 -18
  838. package/dist/chunks/instruction-discovery-h50tsds5.js +0 -257
  839. package/dist/chunks/instruction-discovery-k6hny6gd.js +0 -107
  840. package/dist/chunks/instruction-discovery-mg3zv8ep.js +0 -82
  841. package/dist/chunks/instruction-discovery-n4jvz8kw.js +0 -39
  842. package/dist/chunks/instruction-discovery-wcs0vwrk.js +0 -621
  843. package/dist/chunks/instruction-discovery-zyp4ce26.js +0 -523
  844. /package/dist/chunks/{instruction-discovery-0qkdqm5v.js → tool-0qkdqm5v.js} +0 -0
  845. /package/dist/chunks/{instruction-discovery-0zkw76rk.js → tool-0zkw76rk.js} +0 -0
  846. /package/dist/chunks/{instruction-discovery-17cy0kzp.js → tool-17cy0kzp.js} +0 -0
  847. /package/dist/chunks/{instruction-discovery-1cnp2v09.js → tool-1cnp2v09.js} +0 -0
  848. /package/dist/chunks/{instruction-discovery-24dcb14g.js → tool-24dcb14g.js} +0 -0
  849. /package/dist/chunks/{instruction-discovery-2710q6r3.js → tool-2710q6r3.js} +0 -0
  850. /package/dist/chunks/{instruction-discovery-2bv980vf.js → tool-2bv980vf.js} +0 -0
  851. /package/dist/chunks/{instruction-discovery-2c3vjs8z.js → tool-2c3vjs8z.js} +0 -0
  852. /package/dist/chunks/{instruction-discovery-359p4xyc.js → tool-359p4xyc.js} +0 -0
  853. /package/dist/chunks/{instruction-discovery-3asan66x.js → tool-3asan66x.js} +0 -0
  854. /package/dist/chunks/{instruction-discovery-3v8g72cx.js → tool-3v8g72cx.js} +0 -0
  855. /package/dist/chunks/{instruction-discovery-3wcehsnq.js → tool-3wcehsnq.js} +0 -0
  856. /package/dist/chunks/{instruction-discovery-43n2bw4t.js → tool-43n2bw4t.js} +0 -0
  857. /package/dist/chunks/{instruction-discovery-4knz6hnm.js → tool-4knz6hnm.js} +0 -0
  858. /package/dist/chunks/{instruction-discovery-4vcrnpx2.js → tool-4vcrnpx2.js} +0 -0
  859. /package/dist/chunks/{instruction-discovery-4y7fprxs.js → tool-4y7fprxs.js} +0 -0
  860. /package/dist/chunks/{instruction-discovery-53557ph1.js → tool-53557ph1.js} +0 -0
  861. /package/dist/chunks/{instruction-discovery-550bvhaj.js → tool-550bvhaj.js} +0 -0
  862. /package/dist/chunks/{instruction-discovery-6prwharc.js → tool-6prwharc.js} +0 -0
  863. /package/dist/chunks/{instruction-discovery-6q2bdcd1.js → tool-6q2bdcd1.js} +0 -0
  864. /package/dist/chunks/{instruction-discovery-7akdwqpd.js → tool-7akdwqpd.js} +0 -0
  865. /package/dist/chunks/{instruction-discovery-7m9af43g.js → tool-7m9af43g.js} +0 -0
  866. /package/dist/chunks/{instruction-discovery-822emrt2.js → tool-822emrt2.js} +0 -0
  867. /package/dist/chunks/{instruction-discovery-84wd9syh.js → tool-84wd9syh.js} +0 -0
  868. /package/dist/chunks/{instruction-discovery-88xbtdfr.js → tool-88xbtdfr.js} +0 -0
  869. /package/dist/chunks/{instruction-discovery-8n3pysct.js → tool-8n3pysct.js} +0 -0
  870. /package/dist/chunks/{instruction-discovery-8wj87zfr.js → tool-8wj87zfr.js} +0 -0
  871. /package/dist/chunks/{instruction-discovery-9a4afbnw.js → tool-9a4afbnw.js} +0 -0
  872. /package/dist/chunks/{instruction-discovery-9rqn6x4v.js → tool-9rqn6x4v.js} +0 -0
  873. /package/dist/chunks/{instruction-discovery-a058387c.js → tool-a058387c.js} +0 -0
  874. /package/dist/chunks/{instruction-discovery-a6k6eb26.js → tool-a6k6eb26.js} +0 -0
  875. /package/dist/chunks/{instruction-discovery-af5trqkr.js → tool-af5trqkr.js} +0 -0
  876. /package/dist/chunks/{instruction-discovery-afrmfg78.js → tool-afrmfg78.js} +0 -0
  877. /package/dist/chunks/{instruction-discovery-aqzs7mqg.js → tool-aqzs7mqg.js} +0 -0
  878. /package/dist/chunks/{instruction-discovery-atq7p7m5.js → tool-atq7p7m5.js} +0 -0
  879. /package/dist/chunks/{instruction-discovery-bkyjaxrp.js → tool-bkyjaxrp.js} +0 -0
  880. /package/dist/chunks/{instruction-discovery-bmr6ed5q.js → tool-bmr6ed5q.js} +0 -0
  881. /package/dist/chunks/{instruction-discovery-cf4snx6d.js → tool-cf4snx6d.js} +0 -0
  882. /package/dist/chunks/{instruction-discovery-cvy3z8tj.js → tool-cvy3z8tj.js} +0 -0
  883. /package/dist/chunks/{instruction-discovery-d9fn303g.js → tool-d9fn303g.js} +0 -0
  884. /package/dist/chunks/{instruction-discovery-d9jj8t3e.js → tool-d9jj8t3e.js} +0 -0
  885. /package/dist/chunks/{instruction-discovery-dajrwvna.js → tool-dajrwvna.js} +0 -0
  886. /package/dist/chunks/{instruction-discovery-dap0rakb.js → tool-dap0rakb.js} +0 -0
  887. /package/dist/chunks/{instruction-discovery-df08tz66.js → tool-df08tz66.js} +0 -0
  888. /package/dist/chunks/{instruction-discovery-dy18nga0.js → tool-dy18nga0.js} +0 -0
  889. /package/dist/chunks/{instruction-discovery-e5kj55wp.js → tool-e5kj55wp.js} +0 -0
  890. /package/dist/chunks/{instruction-discovery-e73j6tqm.js → tool-e73j6tqm.js} +0 -0
  891. /package/dist/chunks/{instruction-discovery-ec1grn59.js → tool-ec1grn59.js} +0 -0
  892. /package/dist/chunks/{instruction-discovery-eh3zwz77.js → tool-eh3zwz77.js} +0 -0
  893. /package/dist/chunks/{instruction-discovery-emrn6kk6.js → tool-emrn6kk6.js} +0 -0
  894. /package/dist/chunks/{instruction-discovery-f0mxakyp.js → tool-f0mxakyp.js} +0 -0
  895. /package/dist/chunks/{instruction-discovery-f6n9ztr4.js → tool-f6n9ztr4.js} +0 -0
  896. /package/dist/chunks/{instruction-discovery-faypxj3z.js → tool-faypxj3z.js} +0 -0
  897. /package/dist/chunks/{instruction-discovery-fd410y7t.js → tool-fd410y7t.js} +0 -0
  898. /package/dist/chunks/{instruction-discovery-g4wezp1m.js → tool-g4wezp1m.js} +0 -0
  899. /package/dist/chunks/{instruction-discovery-g86h250q.js → tool-g86h250q.js} +0 -0
  900. /package/dist/chunks/{instruction-discovery-gebd4c9n.js → tool-gebd4c9n.js} +0 -0
  901. /package/dist/chunks/{instruction-discovery-gftt206x.js → tool-gftt206x.js} +0 -0
  902. /package/dist/chunks/{instruction-discovery-hcxmzztb.js → tool-hcxmzztb.js} +0 -0
  903. /package/dist/chunks/{instruction-discovery-hk9envan.js → tool-hk9envan.js} +0 -0
  904. /package/dist/chunks/{instruction-discovery-j2ntwpah.js → tool-j2ntwpah.js} +0 -0
  905. /package/dist/chunks/{instruction-discovery-j5zkgpj8.js → tool-j5zkgpj8.js} +0 -0
  906. /package/dist/chunks/{instruction-discovery-jjkms2e6.js → tool-jjkms2e6.js} +0 -0
  907. /package/dist/chunks/{instruction-discovery-jr7sbwjy.js → tool-jr7sbwjy.js} +0 -0
  908. /package/dist/chunks/{instruction-discovery-jwfs4k6c.js → tool-jwfs4k6c.js} +0 -0
  909. /package/dist/chunks/{instruction-discovery-jze0r7bz.js → tool-jze0r7bz.js} +0 -0
  910. /package/dist/chunks/{instruction-discovery-jzg6c2d5.js → tool-jzg6c2d5.js} +0 -0
  911. /package/dist/chunks/{instruction-discovery-m18g726c.js → tool-m18g726c.js} +0 -0
  912. /package/dist/chunks/{instruction-discovery-mp448xyj.js → tool-mp448xyj.js} +0 -0
  913. /package/dist/chunks/{instruction-discovery-msx8hqn2.js → tool-msx8hqn2.js} +0 -0
  914. /package/dist/chunks/{instruction-discovery-n05xt0ee.js → tool-n05xt0ee.js} +0 -0
  915. /package/dist/chunks/{instruction-discovery-n3j8tn72.js → tool-n3j8tn72.js} +0 -0
  916. /package/dist/chunks/{instruction-discovery-njntx4h6.js → tool-njntx4h6.js} +0 -0
  917. /package/dist/chunks/{instruction-discovery-q3sfg36h.js → tool-q3sfg36h.js} +0 -0
  918. /package/dist/chunks/{instruction-discovery-q74kybfr.js → tool-q74kybfr.js} +0 -0
  919. /package/dist/chunks/{instruction-discovery-qaymkmh1.js → tool-qaymkmh1.js} +0 -0
  920. /package/dist/chunks/{instruction-discovery-qb87gjwd.js → tool-qb87gjwd.js} +0 -0
  921. /package/dist/chunks/{instruction-discovery-qfa1cgps.js → tool-qfa1cgps.js} +0 -0
  922. /package/dist/chunks/{instruction-discovery-qg3g05ea.js → tool-qg3g05ea.js} +0 -0
  923. /package/dist/chunks/{instruction-discovery-qrg20bc0.js → tool-qrg20bc0.js} +0 -0
  924. /package/dist/chunks/{instruction-discovery-rcb2kzg1.js → tool-rcb2kzg1.js} +0 -0
  925. /package/dist/chunks/{instruction-discovery-sdp7kfr6.js → tool-sdp7kfr6.js} +0 -0
  926. /package/dist/chunks/{instruction-discovery-ssg3fenm.js → tool-ssg3fenm.js} +0 -0
  927. /package/dist/chunks/{instruction-discovery-ve7vex1e.js → tool-ve7vex1e.js} +0 -0
  928. /package/dist/chunks/{instruction-discovery-w803qqfp.js → tool-w803qqfp.js} +0 -0
  929. /package/dist/chunks/{instruction-discovery-wc3fc9cn.js → tool-wc3fc9cn.js} +0 -0
  930. /package/dist/chunks/{instruction-discovery-wer8tq1h.js → tool-wer8tq1h.js} +0 -0
  931. /package/dist/chunks/{instruction-discovery-wtztk69x.js → tool-wtztk69x.js} +0 -0
  932. /package/dist/chunks/{instruction-discovery-x0ckcb58.js → tool-x0ckcb58.js} +0 -0
  933. /package/dist/chunks/{instruction-discovery-x61499pn.js → tool-x61499pn.js} +0 -0
  934. /package/dist/chunks/{instruction-discovery-y44na4kk.js → tool-y44na4kk.js} +0 -0
  935. /package/dist/chunks/{instruction-discovery-y8f7s663.js → tool-y8f7s663.js} +0 -0
  936. /package/dist/chunks/{instruction-discovery-ygaqb7jw.js → tool-ygaqb7jw.js} +0 -0
  937. /package/dist/chunks/{instruction-discovery-ym463w8f.js → tool-ym463w8f.js} +0 -0
  938. /package/dist/chunks/{instruction-discovery-z5v4ffb3.js → tool-z5v4ffb3.js} +0 -0
  939. /package/dist/chunks/{instruction-discovery-z9919s4g.js → tool-z9919s4g.js} +0 -0
@@ -1,30 +1,30 @@
1
1
  import {
2
- Service86,
3
- node90
4
- } from "./instruction-discovery-8d991bzx.js";
2
+ Service87,
3
+ node91
4
+ } from "./tool-rr19gkj4.js";
5
5
  import {
6
6
  EventSequenceTable2,
7
7
  EventTable2
8
- } from "./instruction-discovery-2710q6r3.js";
8
+ } from "./tool-2710q6r3.js";
9
9
  import {
10
10
  makeUnsafe2
11
- } from "./instruction-discovery-8jztxfpf.js";
11
+ } from "./tool-11hfp36g.js";
12
12
  import {
13
13
  __export
14
- } from "./instruction-discovery-9rqn6x4v.js";
14
+ } from "./tool-9rqn6x4v.js";
15
15
 
16
16
  // src/bus.ts
17
17
  var exports_bus = {};
18
18
  __export(exports_bus, {
19
19
  Bus: () => exports_bus,
20
20
  InvalidDurableEventError: () => InvalidDurableEventError2,
21
- Service: () => Service85,
21
+ Service: () => Service86,
22
22
  configured: () => configured12,
23
23
  durable: () => durable2,
24
24
  ephemeral: () => ephemeral2,
25
25
  isSynced: () => isSynced2,
26
26
  latestSequence: () => latestSequence2,
27
- node: () => node89,
27
+ node: () => node90,
28
28
  reserveSequence: () => reserveSequence2,
29
29
  versionedType: () => versionedType2
30
30
  });
@@ -78,13 +78,13 @@ var ephemeral2 = Event.ephemeral;
78
78
  var isSynced2 = (item) => item.type === "log.synced";
79
79
  var isDefinition = (input) => !Array.isArray(input);
80
80
 
81
- class Service85 extends Context.Service()("@opencode/Bus") {
81
+ class Service86 extends Context.Service()("@opencode/Bus") {
82
82
  }
83
83
  function configured12(options) {
84
84
  return makeGlobalNode({
85
- service: Service85,
86
- deps: [node90],
87
- layer: Layer.effect(Service85, Effect.gen(function* () {
85
+ service: Service86,
86
+ deps: [node91],
87
+ layer: Layer.effect(Service86, Effect.gen(function* () {
88
88
  const { Location } = yield* Effect.promise(() => import("../location.js"));
89
89
  const { SessionTable } = yield* Effect.promise(() => import("../session/sql.js"));
90
90
  const pubsub = {
@@ -95,7 +95,7 @@ function configured12(options) {
95
95
  const projectors = new Map;
96
96
  const listeners = new Array;
97
97
  const durableLocks = makeUnsafe2();
98
- const { db } = yield* Service86;
98
+ const { db } = yield* Service87;
99
99
  const logReadPageSize = options?.logReadPageSize ?? 512;
100
100
  const persist = options?.persist ?? false;
101
101
  const sessions = new Map;
@@ -147,18 +147,10 @@ function configured12(options) {
147
147
  routes.set(event, ref);
148
148
  };
149
149
  });
150
- const getOrCreate = (definition) => Effect.gen(function* () {
151
- const existing = pubsub.typed.get(definition.type);
152
- if (existing)
153
- return existing;
154
- const created = yield* PubSub.unbounded();
155
- pubsub.typed.set(definition.type, created);
156
- return created;
157
- });
158
150
  yield* Effect.addFinalizer(() => Effect.gen(function* () {
159
151
  yield* PubSub.shutdown(pubsub.live);
160
152
  yield* Effect.forEach(pubsub.durable.values(), (pubsubs) => Effect.forEach(pubsubs, PubSub.shutdown, { discard: true }), { discard: true });
161
- yield* Effect.forEach(pubsub.typed.values(), PubSub.shutdown, { discard: true });
153
+ yield* Effect.forEach(pubsub.typed.values(), (subscribers) => Effect.forEach(subscribers, PubSub.shutdown, { discard: true }), { discard: true });
162
154
  }));
163
155
  function commitDurableEvent(definition, event, input, commit) {
164
156
  return Effect.gen(function* () {
@@ -182,7 +174,7 @@ function configured12(options) {
182
174
  const committed = yield* db.transaction(() => Effect.gen(function* () {
183
175
  const row = yield* db.select({ seq: EventSequenceTable2.seq, ownerID: EventSequenceTable2.owner_id }).from(EventSequenceTable2).where(eq(EventSequenceTable2.aggregate_id, aggregateID)).get().pipe(Effect.orDie);
184
176
  const latest = row?.seq ?? -1;
185
- const encoded = Schema.encodeUnknownSync(definition.data)(event.data);
177
+ const encode = () => Schema.encodeUnknownSync(definition.data)(event.data);
186
178
  if (input?.strictOwner && row?.ownerID && row.ownerID !== input.ownerID) {
187
179
  yield* Effect.die(new InvalidDurableEventError2({
188
180
  type: event.type,
@@ -193,7 +185,7 @@ function configured12(options) {
193
185
  if (!persist)
194
186
  return;
195
187
  const stored = yield* db.select().from(EventTable2).where(and(eq(EventTable2.aggregate_id, aggregateID), eq(EventTable2.seq, input.seq))).get().pipe(Effect.orDie);
196
- if (stored?.id === event.id && stored.type === versionedType2(definition.type, durable.version) && stored.created === (event.created ?? 0) && isDeepStrictEqual(SessionLegacy.event(definition.type, stored.data), encoded)) {
188
+ if (stored?.id === event.id && stored.type === versionedType2(definition.type, durable.version) && stored.created === (event.created ?? 0) && isDeepStrictEqual(SessionLegacy.event(definition.type, stored.data), encode())) {
197
189
  if (input.ownerID && row?.ownerID == null) {
198
190
  yield* db.update(EventSequenceTable2).set({ owner_id: input.ownerID }).where(eq(EventSequenceTable2.aggregate_id, aggregateID)).run().pipe(Effect.orDie);
199
191
  }
@@ -247,7 +239,7 @@ function configured12(options) {
247
239
  seq,
248
240
  created: event.created ?? 0,
249
241
  type: versionedType2(definition.type, durable.version),
250
- data: encoded
242
+ data: encode()
251
243
  }
252
244
  ]).run().pipe(Effect.orDie);
253
245
  return { aggregateID, seq, event: committed, route };
@@ -290,10 +282,10 @@ function configured12(options) {
290
282
  function notify(event, isolateListeners) {
291
283
  return Effect.gen(function* () {
292
284
  yield* Effect.forEach(listeners, (listener) => isolateListeners ? observe(event, listener) : listener(event), { discard: true });
285
+ yield* PubSub.publish(pubsub.live, event);
293
286
  const typed = pubsub.typed.get(event.type);
294
287
  if (typed)
295
- yield* PubSub.publish(typed, event);
296
- yield* PubSub.publish(pubsub.live, event);
288
+ yield* Effect.forEach(typed, (subscriber) => PubSub.publish(subscriber, event), { discard: true });
297
289
  });
298
290
  }
299
291
  function publish(definition, data, options) {
@@ -357,7 +349,6 @@ function configured12(options) {
357
349
  const ids = new Set;
358
350
  for (const [index, item] of payloads.entries()) {
359
351
  const seq = firstSeq + index;
360
- const encoded = Schema.encodeUnknownSync(item.definition.data)(item.event.data);
361
352
  if (persist) {
362
353
  if (ids.has(item.event.id))
363
354
  yield* Effect.die(new InvalidDurableEventError2({
@@ -385,7 +376,7 @@ function configured12(options) {
385
376
  seq,
386
377
  created: event.created,
387
378
  type: versionedType2(item.definition.type, item.definition.durable.version),
388
- data: encoded
379
+ data: Schema.encodeUnknownSync(item.definition.data)(item.event.data)
389
380
  });
390
381
  }
391
382
  yield* db.insert(EventSequenceTable2).values([{ aggregate_id: aggregateID, seq: finalSeq }]).onConflictDoUpdate({ target: EventSequenceTable2.aggregate_id, set: { seq: finalSeq } }).run().pipe(Effect.orDie);
@@ -450,11 +441,18 @@ function configured12(options) {
450
441
  function subscribe(input) {
451
442
  if (input === undefined)
452
443
  return streamLive();
453
- if (isDefinition(input)) {
454
- return local(Stream.unwrap(getOrCreate(input).pipe(Effect.map((pubsub) => Stream.fromPubSub(pubsub)))));
455
- }
456
- const types = new Set(input.map((definition) => definition.type));
457
- return streamLive().pipe(Stream.filter((event) => types.has(event.type)));
444
+ const types = new Set((isDefinition(input) ? [input] : input).map((definition) => definition.type));
445
+ return local(Stream.unwrap(Effect.acquireRelease(PubSub.unbounded().pipe(Effect.tap((subscriber) => Effect.sync(() => {
446
+ for (const type of types)
447
+ pubsub.typed.set(type, (pubsub.typed.get(type) ?? new Set).add(subscriber));
448
+ }))), (subscriber) => Effect.sync(() => {
449
+ for (const type of types) {
450
+ const subscribers = pubsub.typed.get(type);
451
+ subscribers?.delete(subscriber);
452
+ if (subscribers?.size === 0)
453
+ pubsub.typed.delete(type);
454
+ }
455
+ }).pipe(Effect.andThen(PubSub.shutdown(subscriber)))).pipe(Effect.flatMap(PubSub.subscribe), Effect.map(Stream.fromSubscription))));
458
456
  }
459
457
  const streamLive = () => local(Stream.fromPubSub(pubsub.live));
460
458
  const readAfter = (aggregateID, after, input) => (options?.beforeAggregateRead?.(aggregateID) ?? Effect.void).pipe(Effect.andThen(Effect.suspend(() => {
@@ -527,7 +525,7 @@ function configured12(options) {
527
525
  list.push((event) => projector(event));
528
526
  projectors.set(key, list);
529
527
  });
530
- return Service85.of({
528
+ return Service86.of({
531
529
  publish,
532
530
  publishAll,
533
531
  subscribe,
@@ -541,6 +539,6 @@ function configured12(options) {
541
539
  }))
542
540
  });
543
541
  }
544
- var node89 = configured12();
542
+ var node90 = configured12();
545
543
 
546
- export { latestSequence2, reserveSequence2, InvalidDurableEventError2, versionedType2, durable2, ephemeral2, isSynced2, Service85, configured12, node89, exports_bus };
544
+ export { latestSequence2, reserveSequence2, InvalidDurableEventError2, versionedType2, durable2, ephemeral2, isSynced2, Service86, configured12, node90, exports_bus };
@@ -1,18 +1,18 @@
1
1
  import {
2
2
  AbsolutePath2
3
- } from "./instruction-discovery-z5v4ffb3.js";
3
+ } from "./tool-z5v4ffb3.js";
4
4
  import {
5
- Service82
6
- } from "./instruction-discovery-7m02jy4j.js";
5
+ Service83
6
+ } from "./tool-j3xa31ke.js";
7
7
  import {
8
- Service14
9
- } from "./instruction-discovery-18b8n2mx.js";
8
+ NotFound3
9
+ } from "./tool-svcy3p9a.js";
10
10
  import {
11
- Service5
12
- } from "./instruction-discovery-mfa5g8gf.js";
11
+ Service13
12
+ } from "./tool-ds82yrjj.js";
13
13
  import {
14
- NotFound3
15
- } from "./instruction-discovery-zkg84ctx.js";
14
+ Service7
15
+ } from "./tool-ge4qdnbb.js";
16
16
  import {
17
17
  BinaryFileError2,
18
18
  MediaIngestLimitError2,
@@ -22,26 +22,26 @@ import {
22
22
  FileContent2,
23
23
  TextPage2,
24
24
  ListPage2,
25
- Service33
26
- } from "./instruction-discovery-pd3xbwyj.js";
25
+ Service37
26
+ } from "./tool-jsqg4353.js";
27
27
  import {
28
28
  __export
29
- } from "./instruction-discovery-9rqn6x4v.js";
29
+ } from "./tool-9rqn6x4v.js";
30
30
 
31
31
  // src/tool/plugin/read.ts
32
32
  var exports_read = {};
33
33
  __export(exports_read, {
34
- Input: () => Input13,
35
- Plugin: () => Plugin17,
34
+ Input: () => Input7,
35
+ Plugin: () => Plugin8,
36
36
  ReadTool: () => exports_read,
37
- name: () => name13,
38
- toModelContent: () => toModelContent6
37
+ name: () => name7,
38
+ toModelContent: () => toModelContent3
39
39
  });
40
40
  import { basename, dirname, join } from "path";
41
- import { ToolFailure } from "@opencode/ai";
41
+ import { ToolFailure } from "@opencode/ai/effect";
42
42
  import { Effect, Schema } from "effect";
43
43
  import { FSUtil } from "@opencode/util/fs-util";
44
- var name13 = "read";
44
+ var name7 = "read";
45
45
  var FILENAME = "AGENTS.md";
46
46
  var LocationInput = Schema.Struct({
47
47
  path: Schema.String.annotate({ description: "File or directory to read" }),
@@ -52,21 +52,21 @@ var LocationInput = Schema.Struct({
52
52
  description: "The maximum number of lines or directory entries to read (defaults to and capped at 2000)"
53
53
  })
54
54
  });
55
- var Input13 = LocationInput;
55
+ var Input7 = LocationInput;
56
56
  var Output = Schema.Union([FileContent2, TextPage2, ListPage2]);
57
- var Plugin17 = {
57
+ var Plugin8 = {
58
58
  id: "opencode.tool.read",
59
59
  effect: Effect.fn("ReadTool.Plugin")(function* (ctx) {
60
- const reader = yield* Service33;
61
- const access = yield* Service14;
62
- const sessionInstructions = yield* Service5;
60
+ const reader = yield* Service37;
61
+ const access = yield* Service13;
62
+ const sessionInstructions = yield* Service7;
63
63
  const fs = yield* FSUtil.Service;
64
- const location = yield* Service82;
64
+ const location = yield* Service83;
65
65
  yield* ctx.tool.transform((editor) => editor.add({
66
- name: name13,
66
+ name: name7,
67
67
  options: { codemode: false },
68
68
  description: "Read the contents of a file or directory. Supports text files, images, and PDFs. Images and PDFs are presented directly to the model. Each text line is prefixed by its 1-based line number as <line>: <content>. The prefix is for reference and is not part of the file content. Directory entries are returned one per line. Use offset and limit to read large files or directories in sections. Prefer one larger read over many small slices, and use grep to find specific content in large files.",
69
- input: Input13,
69
+ input: Input7,
70
70
  output: Output,
71
71
  execute: (input, context) => {
72
72
  return Effect.gen(function* () {
@@ -110,7 +110,7 @@ var Plugin17 = {
110
110
  return { output: result.content, path: result.path };
111
111
  }).pipe(Effect.map((result) => ({
112
112
  output: result.output,
113
- content: toModelContent6(result.path, input.offset, result.output),
113
+ content: toModelContent3(result.path, input.offset, result.output),
114
114
  metadata: { truncated: result.output.type === "file" ? false : result.output.truncated }
115
115
  })), Effect.mapError((error) => {
116
116
  if (error instanceof ToolFailure)
@@ -143,7 +143,7 @@ ${suggestions.join(`
143
143
  });
144
144
  })
145
145
  };
146
- var toModelContent6 = (path, offset, output) => {
146
+ var toModelContent3 = (path, offset, output) => {
147
147
  if (output.type === "file" && output.encoding === "base64")
148
148
  return [
149
149
  { type: "text", text: output.mime === "application/pdf" ? "PDF read successfully" : "Image read successfully" },
@@ -179,4 +179,4 @@ var toModelContent6 = (path, offset, output) => {
179
179
  `);
180
180
  };
181
181
 
182
- export { name13, Input13, Plugin17, toModelContent6, exports_read };
182
+ export { name7, Input7, Plugin8, toModelContent3, exports_read };
@@ -1,27 +1,27 @@
1
1
  import {
2
- Service82
3
- } from "./instruction-discovery-7m02jy4j.js";
2
+ Service83
3
+ } from "./tool-j3xa31ke.js";
4
4
  import {
5
- Service62
6
- } from "./instruction-discovery-4wn1snmt.js";
5
+ Service69
6
+ } from "./tool-3jy1f5rc.js";
7
7
  import {
8
- Service19
9
- } from "./instruction-discovery-p4az2c5k.js";
8
+ Service17
9
+ } from "./tool-27c23e33.js";
10
10
  import {
11
- make10
12
- } from "./instruction-discovery-pc1v25hk.js";
11
+ make6
12
+ } from "./tool-vb80j1wh.js";
13
13
  import {
14
14
  observe2
15
- } from "./instruction-discovery-6pjqjmy2.js";
15
+ } from "./tool-hpg1pkwy.js";
16
16
  import {
17
17
  __export
18
- } from "./instruction-discovery-9rqn6x4v.js";
18
+ } from "./tool-9rqn6x4v.js";
19
19
 
20
20
  // src/config/plugin/formatter.ts
21
21
  var exports_formatter = {};
22
22
  __export(exports_formatter, {
23
23
  ConfigFormatterPlugin: () => exports_formatter,
24
- Plugin: () => Plugin43
24
+ Plugin: () => Plugin30
25
25
  });
26
26
  import { define } from "@opencode/plugin/effect/plugin";
27
27
  import { FSUtil } from "@opencode/util/fs-util";
@@ -29,14 +29,14 @@ import { Global } from "@opencode/util/global";
29
29
  import { Npm } from "@opencode/util/npm";
30
30
  import { AppProcess } from "@opencode/util/process";
31
31
  import { Effect } from "effect";
32
- var Plugin43 = define({
32
+ var Plugin30 = define({
33
33
  id: "opencode.config.formatter",
34
34
  effect: Effect.fn(function* (ctx) {
35
- const config = yield* Service62;
36
- const formatter = yield* Service19;
35
+ const config = yield* Service69;
36
+ const formatter = yield* Service17;
37
37
  const fs = yield* FSUtil.Service;
38
38
  const global = yield* Global.Service;
39
- const location = yield* Service82;
39
+ const location = yield* Service83;
40
40
  const npm = yield* Npm.Service;
41
41
  const processes = yield* AppProcess.Service;
42
42
  const loaded = yield* observe2(config, ctx.event, formatter.reload());
@@ -44,7 +44,7 @@ var Plugin43 = define({
44
44
  const configured = resolve(loaded.entries);
45
45
  if (!configured)
46
46
  return;
47
- const builtIns = make10({
47
+ const builtIns = make6({
48
48
  directory: location.directory,
49
49
  worktree: location.project.directory,
50
50
  fs,
@@ -85,4 +85,4 @@ function resolve(entries) {
85
85
  }, undefined);
86
86
  }
87
87
 
88
- export { Plugin43, exports_formatter };
88
+ export { Plugin30, exports_formatter };
@@ -1,79 +1,79 @@
1
1
  import {
2
- Service86
3
- } from "./instruction-discovery-8d991bzx.js";
2
+ Service87
3
+ } from "./tool-rr19gkj4.js";
4
4
  import {
5
- Service85
6
- } from "./instruction-discovery-7nepz6ee.js";
5
+ Service86
6
+ } from "./tool-c1y12bqd.js";
7
7
  import {
8
- Service59
9
- } from "./instruction-discovery-97cewran.js";
8
+ Service45
9
+ } from "./tool-9nkjg9qd.js";
10
10
  import {
11
11
  userNotification2
12
- } from "./instruction-discovery-k814nvkf.js";
12
+ } from "./tool-k814nvkf.js";
13
13
  import {
14
14
  SessionMessage2
15
- } from "./instruction-discovery-gftt206x.js";
15
+ } from "./tool-gftt206x.js";
16
16
  import {
17
- NotFoundError9,
17
+ NotFoundError6,
18
18
  PromptConflictError2,
19
19
  SyntheticConflictError2,
20
20
  CompactionConflictError2,
21
21
  BusyError2,
22
22
  InboxConflictError2
23
- } from "./instruction-discovery-tmqhwsdc.js";
23
+ } from "./tool-7gm95e0b.js";
24
24
  import {
25
25
  SessionEvent2
26
- } from "./instruction-discovery-ec1grn59.js";
26
+ } from "./tool-ec1grn59.js";
27
27
  import {
28
- Service67
29
- } from "./instruction-discovery-043wk7y2.js";
28
+ Service48
29
+ } from "./tool-jhz9911s.js";
30
30
  import {
31
31
  SyntheticPayload2,
32
- Service58
33
- } from "./instruction-discovery-bzfg3f7z.js";
32
+ Service44
33
+ } from "./tool-e4vy1v26.js";
34
34
  import {
35
- Service56
36
- } from "./instruction-discovery-cqmfkhmj.js";
35
+ Service42
36
+ } from "./tool-vvqzd10p.js";
37
37
  import {
38
38
  prepare2
39
- } from "./instruction-discovery-46r0wh18.js";
39
+ } from "./tool-bavxd7np.js";
40
40
  import {
41
41
  stage2,
42
42
  clear2,
43
43
  commit2
44
- } from "./instruction-discovery-00vfyfmg.js";
44
+ } from "./tool-w9z9y32t.js";
45
45
  import {
46
46
  start2
47
- } from "./instruction-discovery-ymqv4qqa.js";
47
+ } from "./tool-39tkfg3g.js";
48
48
  import {
49
49
  get4
50
- } from "./instruction-discovery-jme6sax1.js";
50
+ } from "./tool-67cvb3ht.js";
51
51
  import {
52
52
  __export
53
- } from "./instruction-discovery-9rqn6x4v.js";
53
+ } from "./tool-9rqn6x4v.js";
54
54
 
55
55
  // src/session/session.ts
56
56
  var exports_session2 = {};
57
57
  __export(exports_session2, {
58
58
  Session: () => exports_session2,
59
- make: () => make14
59
+ make: () => make15
60
60
  });
61
61
  import { DateTime, Effect, Fiber, Scope } from "effect";
62
62
  import { Event } from "@opencode/schema/event";
63
63
  import { FSUtil } from "@opencode/util/fs-util";
64
- var make14 = Effect.fn("Session.make")(function* () {
65
- const bus = yield* Service85;
66
- const database = yield* Service86;
67
- const store = yield* Service67;
68
- const instances = yield* Service59;
69
- const execution = yield* Service56;
70
- const admission = yield* Service58;
64
+ var make15 = Effect.fn("Session.make")(function* () {
65
+ const bus = yield* Service86;
66
+ const database = yield* Service87;
67
+ const store = yield* Service48;
68
+ const instances = yield* Service45;
69
+ const execution = yield* Service42;
70
+ const admission = yield* Service44;
71
71
  const fs = yield* FSUtil.Service;
72
72
  const scope = yield* Scope.Scope;
73
73
  const get = Effect.fn("Session.get")(function* (sessionID) {
74
74
  const session = yield* store.get(sessionID);
75
75
  if (!session)
76
- return yield* new NotFoundError9({ sessionID });
76
+ return yield* new NotFoundError6({ sessionID });
77
77
  return session;
78
78
  });
79
79
  const message = Effect.fn("Session.message")(function* (sessionID, messageID) {
@@ -146,14 +146,16 @@ var make14 = Effect.fn("Session.make")(function* () {
146
146
  });
147
147
  if (existing)
148
148
  return existing;
149
- const item = yield* restore(prepare2({ session, messageID, input }).pipe(Effect.provideService(Service59, instances), Effect.provideService(FSUtil.Service, fs)));
150
- if (session.revert)
151
- yield* commit2(bus, session);
152
- return yield* admission.admit({
153
- id: messageID,
154
- sessionID: session.id,
155
- item
156
- });
149
+ return yield* Effect.gen(function* () {
150
+ const item = yield* restore(prepare2({ session, messageID, input }));
151
+ if (session.revert)
152
+ yield* commit2(bus, session);
153
+ return yield* admission.admit({
154
+ id: messageID,
155
+ sessionID: session.id,
156
+ item
157
+ });
158
+ }).pipe(instances.provide(session), Effect.provideService(Service87, database), Effect.provideService(FSUtil.Service, fs));
157
159
  }).pipe(Effect.catchTag("SessionInbox.LifecycleConflict", () => new PromptConflictError2({ sessionID, messageID })));
158
160
  if (input.resume !== false)
159
161
  yield* execution.wake(sessionID);
@@ -162,7 +164,7 @@ var make14 = Effect.fn("Session.make")(function* () {
162
164
  const shell = Effect.fn("Session.shell")(function* (sessionID, input) {
163
165
  const session = yield* get(sessionID);
164
166
  const running = yield* Effect.gen(function* () {
165
- const started = yield* start2({ session, command: input.command }).pipe(Effect.provideService(Service59, instances), Effect.tapError((error) => synthetic(sessionID, {
167
+ const started = yield* start2({ session, command: input.command }).pipe(Effect.provideService(Service45, instances), Effect.tapError((error) => synthetic(sessionID, {
166
168
  text: `User shell command failed to start:
167
169
  ${input.command}
168
170
 
@@ -191,7 +193,7 @@ ${error.message}`,
191
193
  });
192
194
  const skill = Effect.fn("Session.skill")(function* (sessionID, input) {
193
195
  const session = yield* get(sessionID);
194
- const skill = yield* get4({ session, skill: input.skill }).pipe(Effect.provideService(Service59, instances));
196
+ const skill = yield* get4({ session, skill: input.skill }).pipe(Effect.provideService(Service45, instances));
195
197
  yield* bus.publish(SessionEvent2.Skill.Activated, {
196
198
  sessionID,
197
199
  id: skill.id,
@@ -248,13 +250,13 @@ ${error.message}`,
248
250
  const session = yield* get(sessionID);
249
251
  if (yield* execution.isActive(sessionID))
250
252
  return yield* new BusyError2({ sessionID });
251
- return yield* stage2({ session, messageID: input.messageID, files: input.files }).pipe(Effect.provideService(Service59, instances), Effect.provideService(Service86, database), Effect.provideService(Service85, bus));
253
+ return yield* stage2({ session, messageID: input.messageID, files: input.files }).pipe(Effect.provideService(Service45, instances), Effect.provideService(Service87, database), Effect.provideService(Service86, bus));
252
254
  });
253
255
  const clear = Effect.fn("Session.revert.clear")(function* (sessionID) {
254
256
  const session = yield* get(sessionID);
255
257
  if (yield* execution.isActive(sessionID))
256
258
  return yield* new BusyError2({ sessionID });
257
- yield* clear2(session).pipe(Effect.provideService(Service59, instances), Effect.provideService(Service85, bus));
259
+ yield* clear2(session).pipe(Effect.provideService(Service45, instances), Effect.provideService(Service86, bus));
258
260
  return yield* execution.wake(sessionID);
259
261
  });
260
262
  const commit = Effect.fn("Session.revert.commit")(function* (sessionID) {
@@ -346,4 +348,4 @@ ${error.message}`,
346
348
  return { forSession };
347
349
  });
348
350
 
349
- export { make14, exports_session2 };
351
+ export { make15, exports_session2 };
@@ -0,0 +1,13 @@
1
+ // src/database/migration/20261024002554_session_allowance.ts
2
+ import { Effect } from "effect";
3
+ var migration = {
4
+ id: "20261024002554_session_allowance",
5
+ up(tx) {
6
+ return Effect.gen(function* () {
7
+ yield* tx.run(`ALTER TABLE \`session_v2\` ADD \`allowance\` real DEFAULT 0 NOT NULL;`);
8
+ });
9
+ }
10
+ };
11
+ var _20261024002554_session_allowance_default = migration;
12
+
13
+ export { _20261024002554_session_allowance_default };
@@ -1,37 +1,37 @@
1
1
  import {
2
2
  useragent2
3
- } from "./instruction-discovery-ad4wbrpy.js";
3
+ } from "./tool-maq43m3m.js";
4
4
  import {
5
- Service85
6
- } from "./instruction-discovery-7nepz6ee.js";
5
+ Service86
6
+ } from "./tool-c1y12bqd.js";
7
7
  import {
8
8
  OAuth3,
9
9
  Event19,
10
- Service80
11
- } from "./instruction-discovery-2p8pcvpp.js";
10
+ Service81
11
+ } from "./tool-g3b4788n.js";
12
12
  import {
13
13
  ID14,
14
14
  MethodID2
15
- } from "./instruction-discovery-3ffdjm8e.js";
15
+ } from "./tool-5n6snyjt.js";
16
16
  import {
17
17
  ID13,
18
18
  mergeOverlay2
19
- } from "./instruction-discovery-n5194rg1.js";
19
+ } from "./tool-yqsmg75a.js";
20
20
  import {
21
21
  ID12,
22
22
  VariantID2,
23
- Info20
24
- } from "./instruction-discovery-20e5g7bx.js";
23
+ Info22
24
+ } from "./tool-6adqbtbr.js";
25
25
  import {
26
26
  success2,
27
27
  error2
28
- } from "./instruction-discovery-yb20nhc3.js";
28
+ } from "./tool-yb20nhc3.js";
29
29
  import {
30
30
  get5
31
- } from "./instruction-discovery-3nnrz6f6.js";
31
+ } from "./tool-3nnrz6f6.js";
32
32
  import {
33
33
  configuredSettings2
34
- } from "./instruction-discovery-c1tsfj35.js";
34
+ } from "./tool-8t8mrqrh.js";
35
35
 
36
36
  // src/plugin/provider/chatgpt.ts
37
37
  import { define } from "@opencode/plugin/effect/plugin";
@@ -63,7 +63,9 @@ var fallbackModels = new Set([
63
63
  "gpt-6-sol",
64
64
  "gpt-6-sol-fast",
65
65
  "gpt-6.1-sol",
66
- "gpt-6.1-sol-fast"
66
+ "gpt-6.1-sol-fast",
67
+ "gpt-6.1-terra",
68
+ "gpt-6.1-terra-fast"
67
69
  ]);
68
70
  var nonRetryableSharingCodes = [
69
71
  "subscription_sharing_usage_limit_exceeded",
@@ -179,8 +181,8 @@ function listen(server) {
179
181
  var ChatGPTPlugin2 = define({
180
182
  id: "opencode.provider.chatgpt",
181
183
  effect: Effect.fn(function* (ctx) {
182
- const bus = yield* Service85;
183
- const credentials = yield* Service80;
184
+ const bus = yield* Service86;
185
+ const credentials = yield* Service81;
184
186
  const loading = Semaphore.makeUnsafe(1);
185
187
  let chatgpt;
186
188
  let source;
@@ -325,7 +327,7 @@ function deriveModels2(remote, existing) {
325
327
  const found = byID.get(model.modelID);
326
328
  return found ? [deriveModel(found, model)] : [];
327
329
  }),
328
- ...remote.filter((model) => !known.has(ID12.make(model.slug))).map((model) => deriveModel(model, Info20.default(ID13.openai, ID12.make(model.slug))))
330
+ ...remote.filter((model) => !known.has(ID12.make(model.slug))).map((model) => deriveModel(model, Info22.default(ID13.openai, ID12.make(model.slug))))
329
331
  ];
330
332
  }
331
333
  function deriveModel(remote, previous) {
@@ -2,10 +2,10 @@ import {
2
2
  NotFound3,
3
3
  WrongKind2,
4
4
  Failed2
5
- } from "./instruction-discovery-zkg84ctx.js";
5
+ } from "./tool-svcy3p9a.js";
6
6
  import {
7
7
  __export
8
- } from "./instruction-discovery-9rqn6x4v.js";
8
+ } from "./tool-9rqn6x4v.js";
9
9
 
10
10
  // src/environment/local.ts
11
11
  var exports_local = {};