@opencode/core 0.0.0-dev-627 → 0.0.0-dev-639

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 (931) hide show
  1. package/dist/account/sql.js +1 -1
  2. package/dist/agent.js +94 -94
  3. package/dist/aisdk-native.js +102 -102
  4. package/dist/aisdk.js +108 -108
  5. package/dist/app.js +9 -9
  6. package/dist/artifact.js +241 -240
  7. package/dist/bus.js +80 -80
  8. package/dist/chunks/{tool-78j7y49x.js → state-005hgbmc.js} +6 -6
  9. package/dist/chunks/{tool-zezjv31z.js → state-03ytfdv2.js} +52 -52
  10. package/dist/chunks/{tool-0hknrezz.js → state-058yze6e.js} +295 -98
  11. package/dist/chunks/{tool-hkajchxt.js → state-0702g9ty.js} +15 -15
  12. package/dist/chunks/{tool-ejt8ytt0.js → state-0afahd95.js} +10 -10
  13. package/dist/chunks/{tool-2qgmh7f2.js → state-0ah14zvb.js} +30 -30
  14. package/dist/chunks/{tool-qv28rmvw.js → state-0hknhewd.js} +9 -9
  15. package/dist/chunks/{tool-0j7gp832.js → state-0j7gp832.js} +1 -1
  16. package/dist/chunks/{tool-0ma9gw4f.js → state-0ma9gw4f.js} +2 -2
  17. package/dist/chunks/{tool-vcfdc226.js → state-0mgprbja.js} +4 -4
  18. package/dist/chunks/{tool-wdx6g3kg.js → state-0pzjnp4k.js} +5 -5
  19. package/dist/chunks/{tool-04whjz6n.js → state-0x9bxa2j.js} +9 -9
  20. package/dist/chunks/{tool-yzt4cd6e.js → state-0zawj110.js} +11 -11
  21. package/dist/chunks/{tool-1aqsckx4.js → state-1aqsckx4.js} +1 -1
  22. package/dist/chunks/{tool-y67570ve.js → state-1ey5qnnv.js} +24 -24
  23. package/dist/chunks/{tool-sd2het5a.js → state-1f4wmeda.js} +8 -8
  24. package/dist/chunks/{tool-6fj7drec.js → state-1nnzvr93.js} +11 -11
  25. package/dist/chunks/{tool-2na6qge8.js → state-1ns54vtm.js} +26 -26
  26. package/dist/chunks/{tool-9n2jx8hn.js → state-1p1x9nxz.js} +34 -34
  27. package/dist/chunks/{tool-c9djvm77.js → state-1pkqygy7.js} +20 -20
  28. package/dist/chunks/{tool-cc953ej2.js → state-1r5qzbyh.js} +9 -9
  29. package/dist/chunks/{tool-p7vg4ymv.js → state-1r6wypvn.js} +8 -8
  30. package/dist/chunks/{tool-1qtvm13f.js → state-1wzytdev.js} +32 -32
  31. package/dist/chunks/{tool-1x2knyw4.js → state-1x2knyw4.js} +1 -1
  32. package/dist/chunks/{tool-0bgjjgx2.js → state-1zb0f7xb.js} +4 -4
  33. package/dist/chunks/{tool-h6k67dd7.js → state-1zxzscwb.js} +20 -20
  34. package/dist/chunks/{tool-2k9qpqfa.js → state-200c8bwh.js} +32 -32
  35. package/dist/chunks/{tool-29vsvq2t.js → state-22ywckht.js} +2 -2
  36. package/dist/chunks/{tool-gmemj5zs.js → state-26wfx3k0.js} +4 -4
  37. package/dist/chunks/{tool-1ep2p91f.js → state-27w5k9zf.js} +2 -2
  38. package/dist/chunks/{tool-aapszx4f.js → state-28rbnsxr.js} +4 -4
  39. package/dist/chunks/{tool-vre17ymf.js → state-2b2r7h3k.js} +2 -2
  40. package/dist/chunks/{tool-sbz71ybr.js → state-2cdjxzfg.js} +3 -3
  41. package/dist/chunks/{tool-h78x36nt.js → state-2h02dkxy.js} +13 -13
  42. package/dist/chunks/{tool-e53hqhbg.js → state-2hwamttx.js} +29 -29
  43. package/dist/chunks/{tool-71dvczxp.js → state-2jah2drd.js} +19 -19
  44. package/dist/chunks/{tool-2p60zmnr.js → state-2p60zmnr.js} +2 -2
  45. package/dist/chunks/{tool-qxs6496v.js → state-2yg9jg90.js} +35 -35
  46. package/dist/chunks/{tool-qm1pyt2m.js → state-30682yka.js} +3 -3
  47. package/dist/chunks/{tool-99b14w1w.js → state-32x69y22.js} +12 -12
  48. package/dist/chunks/{tool-kmq4a999.js → state-3572fg0x.js} +14 -14
  49. package/dist/chunks/{tool-3w3bwa55.js → state-39fx35ej.js} +14 -14
  50. package/dist/chunks/{tool-ayjs7tqn.js → state-3cbjf1nt.js} +2 -2
  51. package/dist/chunks/{tool-sgzhenxf.js → state-3dbwnewe.js} +49 -49
  52. package/dist/chunks/{tool-3hepkmqq.js → state-3hepkmqq.js} +1 -1
  53. package/dist/chunks/{tool-ret0xxsr.js → state-3m4ecmrv.js} +43 -43
  54. package/dist/chunks/{tool-s9m725b8.js → state-3rhkght6.js} +24 -24
  55. package/dist/chunks/{tool-he2d4cv0.js → state-3rtabnqb.js} +13 -13
  56. package/dist/chunks/{tool-0ahs07zn.js → state-3ryz99p0.js} +4 -4
  57. package/dist/chunks/{tool-m76bysk3.js → state-3zc0ew3n.js} +11 -11
  58. package/dist/chunks/{tool-28rx08cw.js → state-40gk5z43.js} +25 -25
  59. package/dist/chunks/{tool-40y6dtc2.js → state-40y6dtc2.js} +1 -1
  60. package/dist/chunks/{tool-44pmzq9c.js → state-44pmzq9c.js} +2 -2
  61. package/dist/chunks/{tool-vmjdpmwf.js → state-46gvyp4n.js} +37 -37
  62. package/dist/chunks/{tool-47p5bcf3.js → state-47xsyjcp.js} +3 -3
  63. package/dist/chunks/{tool-8ggfwbsw.js → state-4bdwn29n.js} +10 -10
  64. package/dist/chunks/{tool-4dx1dgte.js → state-4dx1dgte.js} +1 -1
  65. package/dist/chunks/{tool-2p1fyn1z.js → state-4ek5prqz.js} +59 -59
  66. package/dist/chunks/{tool-4f25tdd0.js → state-4f25tdd0.js} +1 -1
  67. package/dist/chunks/{tool-ctmpqb7w.js → state-4g3sdj5g.js} +9 -9
  68. package/dist/chunks/{tool-q2kq49nt.js → state-4m3x3yd1.js} +6 -6
  69. package/dist/chunks/{tool-4pyp9zr9.js → state-4pyp9zr9.js} +1 -1
  70. package/dist/chunks/{tool-9v4dp1sv.js → state-4s8zsgt8.js} +47 -47
  71. package/dist/chunks/{tool-few90dvn.js → state-4sk3nywx.js} +41 -41
  72. package/dist/chunks/{tool-4v008n1t.js → state-4v008n1t.js} +1 -1
  73. package/dist/chunks/{tool-5vzkvv7b.js → state-52dgcxsx.js} +15 -15
  74. package/dist/chunks/{tool-nzgq6x82.js → state-561j2z15.js} +4 -4
  75. package/dist/chunks/{tool-k3pgnzh0.js → state-56js796r.js} +15 -15
  76. package/dist/chunks/{tool-v7mersgb.js → state-5c63qkqm.js} +8 -8
  77. package/dist/chunks/{tool-5m9w47nd.js → state-5m9w47nd.js} +1 -1
  78. package/dist/chunks/{tool-tfgq9ps6.js → state-5qm3ncyd.js} +36 -36
  79. package/dist/chunks/{tool-6015y25q.js → state-63vhtyqq.js} +7 -7
  80. package/dist/chunks/{tool-djadtdmr.js → state-64eehrrp.js} +8 -8
  81. package/dist/chunks/{tool-6dqyy18z.js → state-6dqyy18z.js} +1 -1
  82. package/dist/chunks/{tool-kzdam8c6.js → state-6edbc7zm.js} +4 -4
  83. package/dist/chunks/{tool-35fxc5rr.js → state-6mksr8nq.js} +6 -6
  84. package/dist/chunks/{tool-vy064tmw.js → state-6nnngxg4.js} +11 -11
  85. package/dist/chunks/{tool-kq17g8gv.js → state-6t8b10qe.js} +4 -4
  86. package/dist/chunks/{tool-5kn2gf19.js → state-6w8cmh26.js} +9 -9
  87. package/dist/chunks/{tool-0mv06tb8.js → state-6z6h3x2w.js} +27 -27
  88. package/dist/chunks/{tool-9m4t11kw.js → state-72pwv4xr.js} +12 -12
  89. package/dist/chunks/{tool-w2jbjawn.js → state-73zcwtb4.js} +31 -31
  90. package/dist/chunks/{tool-h00e2jz3.js → state-77e1x0tb.js} +14 -14
  91. package/dist/chunks/{tool-5y3wp1ns.js → state-78nzcbrg.js} +36 -36
  92. package/dist/chunks/{tool-mycg523h.js → state-797jepss.js} +18 -18
  93. package/dist/chunks/{tool-rqjqz1dx.js → state-7b6jtnth.js} +6 -6
  94. package/dist/chunks/{tool-7bmhse3q.js → state-7bmhse3q.js} +1 -1
  95. package/dist/chunks/{tool-faaqe93r.js → state-7d3s8vk4.js} +43 -43
  96. package/dist/chunks/{tool-f3h7dwma.js → state-7hmcdcr2.js} +1 -1
  97. package/dist/chunks/{tool-fwqqjaak.js → state-7m5p5bky.js} +2 -2
  98. package/dist/chunks/{tool-bqa8ney4.js → state-7nqkf5r1.js} +4 -4
  99. package/dist/chunks/{tool-2y0y3f74.js → state-7te94ftx.js} +15 -15
  100. package/dist/chunks/{tool-v1t7h3ys.js → state-7vqhr0z6.js} +10 -10
  101. package/dist/chunks/{tool-7w2ypzdf.js → state-7w2ypzdf.js} +1 -1
  102. package/dist/chunks/{tool-7weczvnd.js → state-7weczvnd.js} +1 -1
  103. package/dist/chunks/{tool-fvypmx9y.js → state-7x89mc78.js} +10 -10
  104. package/dist/chunks/{tool-hjnjc3ts.js → state-80m5xgxj.js} +9 -9
  105. package/dist/chunks/{tool-775hqbnd.js → state-80mg3ag8.js} +3 -3
  106. package/dist/chunks/{tool-pyc3gczw.js → state-82phgae0.js} +5 -5
  107. package/dist/chunks/{tool-89287pr7.js → state-89287pr7.js} +1 -1
  108. package/dist/chunks/{tool-hqpnkr71.js → state-89ejrav2.js} +1 -1
  109. package/dist/chunks/{tool-mt3yb1mx.js → state-89zbskah.js} +11 -11
  110. package/dist/chunks/{tool-8b3vzgkx.js → state-8b3vzgkx.js} +1 -1
  111. package/dist/chunks/{tool-5whx36p1.js → state-8cg7mtm3.js} +4 -4
  112. package/dist/chunks/{tool-46eaz8xc.js → state-8r6b1jv8.js} +20 -20
  113. package/dist/chunks/{tool-8t99kr38.js → state-8t99kr38.js} +1 -1
  114. package/dist/chunks/{tool-rp5s57se.js → state-8v66b1mn.js} +9 -9
  115. package/dist/chunks/{tool-fxgn3893.js → state-8w90g9rp.js} +11 -11
  116. package/dist/chunks/{tool-8wtp7s3z.js → state-8wtp7s3z.js} +1 -1
  117. package/dist/chunks/{tool-mb7mbhnz.js → state-8z6m94af.js} +3 -3
  118. package/dist/chunks/{tool-kh8gdsej.js → state-8zv0xmg5.js} +2 -2
  119. package/dist/chunks/{tool-90zstvax.js → state-90zstvax.js} +1 -1
  120. package/dist/chunks/{tool-qwfph5fh.js → state-921kp94s.js} +10 -10
  121. package/dist/chunks/{tool-senv5r2t.js → state-92jryngg.js} +27 -27
  122. package/dist/chunks/{tool-68cs06h1.js → state-963hk181.js} +5 -5
  123. package/dist/chunks/{tool-04r04va6.js → state-977r5w0v.js} +4 -4
  124. package/dist/chunks/{tool-1nhv4g69.js → state-993bn7g3.js} +30 -30
  125. package/dist/chunks/{tool-pebg18yw.js → state-9eg6gkma.js} +5 -5
  126. package/dist/chunks/{tool-4dn934sm.js → state-9gr1b0wk.js} +18 -18
  127. package/dist/chunks/{tool-dd57nsvn.js → state-9h1ss44a.js} +8 -8
  128. package/dist/chunks/{tool-vh5kkfdr.js → state-9kc3pfzw.js} +12 -12
  129. package/dist/chunks/{tool-bm60jz01.js → state-9paapht9.js} +10 -10
  130. package/dist/chunks/{tool-2y3daeve.js → state-9pea0zhc.js} +15 -15
  131. package/dist/chunks/{tool-40dmbkek.js → state-9pq98ypf.js} +24 -24
  132. package/dist/chunks/{tool-2kg89srt.js → state-9q8g9sv8.js} +4 -4
  133. package/dist/chunks/{tool-p4a0yr3q.js → state-9vvzrg4f.js} +10 -10
  134. package/dist/chunks/{tool-ssx9tcnt.js → state-9wjcjbgb.js} +6 -6
  135. package/dist/chunks/{tool-yf2cgb8m.js → state-9ytd7gcc.js} +11 -11
  136. package/dist/chunks/{tool-y2wreccq.js → state-aafk9y72.js} +3 -3
  137. package/dist/chunks/{tool-mh6aekfc.js → state-aaj9jfft.js} +25 -25
  138. package/dist/chunks/{tool-kmzgegqq.js → state-aedwt843.js} +8 -8
  139. package/dist/chunks/{tool-034tev2y.js → state-aj7mw0zk.js} +2 -2
  140. package/dist/chunks/{tool-spbh5ss8.js → state-aje6kyw0.js} +4 -4
  141. package/dist/chunks/{tool-jj3d0q0a.js → state-am22a7bw.js} +11 -11
  142. package/dist/chunks/{tool-90ct6wq4.js → state-anvcme1c.js} +4 -4
  143. package/dist/chunks/{tool-haj538yg.js → state-aphxkpa5.js} +12 -12
  144. package/dist/chunks/{tool-wc9tj2ev.js → state-avttgdgt.js} +21 -21
  145. package/dist/chunks/{tool-rfrmsrgv.js → state-ayz01erp.js} +5 -5
  146. package/dist/chunks/{tool-n00hnt5k.js → state-b1yjrp7m.js} +11 -11
  147. package/dist/chunks/{tool-y4rkeds0.js → state-b3j5jf8z.js} +11 -11
  148. package/dist/chunks/{tool-q8yjkgp4.js → state-b6dg22k5.js} +6 -6
  149. package/dist/chunks/{tool-nwzg2a6d.js → state-b8jqv5nz.js} +5 -5
  150. package/dist/chunks/{tool-nhxnj8wq.js → state-b9gqeys9.js} +11 -11
  151. package/dist/chunks/{tool-8sxe6kv8.js → state-bb3mmwvh.js} +2 -2
  152. package/dist/chunks/{tool-5eh5vnwa.js → state-bbqav1wc.js} +19 -19
  153. package/dist/chunks/{tool-1yq9hg58.js → state-bdhd9h6e.js} +5 -5
  154. package/dist/chunks/{tool-57a3gt61.js → state-bgg73g7v.js} +8 -8
  155. package/dist/chunks/{tool-3kc70r3e.js → state-bjaq03r1.js} +17 -17
  156. package/dist/chunks/{tool-3669yegd.js → state-bk2z9g4f.js} +27 -27
  157. package/dist/chunks/{tool-9hnph9wg.js → state-bn0zqt6f.js} +30 -30
  158. package/dist/chunks/{tool-qs1v69th.js → state-bncpbghn.js} +16 -16
  159. package/dist/chunks/{tool-t8nm1vpg.js → state-bppeetk9.js} +24 -24
  160. package/dist/chunks/{tool-bstexjd6.js → state-bstexjd6.js} +1 -1
  161. package/dist/chunks/{tool-rxs3kqv2.js → state-byrn1x2h.js} +3 -3
  162. package/dist/chunks/{tool-9zwexsxs.js → state-bys6f9s7.js} +5 -5
  163. package/dist/chunks/{tool-c5zvymhv.js → state-c5zvymhv.js} +1 -1
  164. package/dist/chunks/{tool-wbzmgrmw.js → state-c6090a4k.js} +30 -30
  165. package/dist/chunks/{tool-b6vsg801.js → state-c7cw818c.js} +40 -63
  166. package/dist/chunks/{tool-4bwthz3m.js → state-ceq6pwch.js} +6 -6
  167. package/dist/chunks/{tool-w5zs3rpn.js → state-cfs5ew59.js} +9 -5
  168. package/dist/chunks/state-cjs9h53k.js +26 -0
  169. package/dist/chunks/{tool-dqmkpjk4.js → state-cwaehys5.js} +16 -16
  170. package/dist/chunks/{tool-cwrgdav8.js → state-cwrgdav8.js} +2 -2
  171. package/dist/chunks/{tool-7f5g0fx5.js → state-cydqd7ep.js} +20 -20
  172. package/dist/chunks/{tool-zggfewvb.js → state-d3r3jjg0.js} +21 -21
  173. package/dist/chunks/{tool-eqrv7k0x.js → state-d4dp9kyp.js} +25 -25
  174. package/dist/chunks/{tool-d4v9tmah.js → state-d4v9tmah.js} +2 -2
  175. package/dist/chunks/{tool-j64v0wxx.js → state-d5v54jh8.js} +9 -9
  176. package/dist/chunks/{tool-c5xfa1xp.js → state-d6m9wv98.js} +28 -28
  177. package/dist/chunks/{tool-y84y5pby.js → state-dfsfebr9.js} +12 -12
  178. package/dist/chunks/{tool-s0x6kf2p.js → state-dnvezvpm.js} +4 -4
  179. package/dist/chunks/{tool-dt77769w.js → state-dt77769w.js} +1 -1
  180. package/dist/chunks/{tool-5r3wrmp5.js → state-dv6nbphe.js} +4 -4
  181. package/dist/chunks/{tool-e834z07m.js → state-e834z07m.js} +1 -1
  182. package/dist/chunks/{tool-55g2q5p5.js → state-eavcrtrz.js} +2 -2
  183. package/dist/chunks/{tool-eqw4pqj1.js → state-eqw4pqj1.js} +2 -2
  184. package/dist/chunks/state-ev660z6k.js +18 -0
  185. package/dist/chunks/{tool-ppedw7jc.js → state-f61f7jdk.js} +15 -15
  186. package/dist/chunks/{tool-th2rzzzd.js → state-f7bknhyh.js} +49 -49
  187. package/dist/chunks/{tool-2s7a5cr8.js → state-f9hnarx8.js} +65 -51
  188. package/dist/chunks/{tool-fffv3p7h.js → state-fffv3p7h.js} +1 -1
  189. package/dist/chunks/{tool-prq7xxp2.js → state-fg9p65nk.js} +6 -6
  190. package/dist/chunks/{tool-qhgzfx65.js → state-fm77cfpy.js} +87 -87
  191. package/dist/chunks/{tool-9xkpsvpb.js → state-fr628t37.js} +16 -16
  192. package/dist/chunks/{tool-zhrtystx.js → state-fw350tjq.js} +34 -34
  193. package/dist/chunks/{tool-jswra5yg.js → state-g01nwhfp.js} +14 -14
  194. package/dist/chunks/{tool-8yf6c4ws.js → state-g0hf1nfa.js} +5 -5
  195. package/dist/chunks/{tool-bt50pbny.js → state-g1wbt592.js} +10 -10
  196. package/dist/chunks/{tool-y094zgrg.js → state-g7gy25a0.js} +16 -16
  197. package/dist/chunks/{tool-p8pjvayg.js → state-g95r1ctc.js} +3 -3
  198. package/dist/chunks/{tool-z1tj3v26.js → state-g9xbwnwv.js} +7 -7
  199. package/dist/chunks/{tool-gbjdnr5j.js → state-gbjdnr5j.js} +2 -2
  200. package/dist/chunks/{tool-a93bg3fh.js → state-gdqzzjg1.js} +4 -4
  201. package/dist/chunks/{tool-g4yftf1w.js → state-gfgje09d.js} +78 -78
  202. package/dist/chunks/{tool-ym84t9db.js → state-ggfch722.js} +22 -22
  203. package/dist/chunks/{tool-6fwyg1ss.js → state-gh7fsshn.js} +24 -24
  204. package/dist/chunks/{tool-ghrv1g9c.js → state-ghrv1g9c.js} +1 -1
  205. package/dist/chunks/{tool-t04y6rka.js → state-gjs6kf30.js} +27 -27
  206. package/dist/chunks/{tool-p5shtcs3.js → state-gr7rgkrw.js} +43 -43
  207. package/dist/chunks/{tool-y3bjyseh.js → state-gtrj8c21.js} +14 -14
  208. package/dist/chunks/{tool-s2d4b5x8.js → state-h353fke4.js} +4 -4
  209. package/dist/chunks/{tool-3qevzq3v.js → state-h9xvjfqn.js} +8 -8
  210. package/dist/chunks/{tool-tmsyzkdq.js → state-hbh5ad0e.js} +15 -15
  211. package/dist/chunks/{tool-fmjsjtqm.js → state-hced1q2j.js} +4 -4
  212. package/dist/chunks/{tool-t2kbrzxc.js → state-hjddz07k.js} +17 -17
  213. package/dist/chunks/{tool-7ft1dw8t.js → state-hn0qwvdh.js} +10 -10
  214. package/dist/chunks/{tool-47xhmy8n.js → state-hn3egxjd.js} +5 -5
  215. package/dist/chunks/{tool-772thxeb.js → state-hqqnejca.js} +10 -10
  216. package/dist/chunks/{tool-6cqkw5v2.js → state-hrpg1pdd.js} +5 -5
  217. package/dist/chunks/{tool-1zc261y1.js → state-j0p3wt22.js} +8 -8
  218. package/dist/chunks/{tool-qd895tht.js → state-j4y0kh3f.js} +22 -22
  219. package/dist/chunks/{tool-s818qefp.js → state-jfjvxp5c.js} +5 -5
  220. package/dist/chunks/{tool-fretqggx.js → state-jh1m9pe1.js} +18 -18
  221. package/dist/chunks/state-jm70asfg.js +21 -0
  222. package/dist/chunks/{tool-8qmf4c22.js → state-jnzh5xfy.js} +15 -15
  223. package/dist/chunks/{tool-nezv9r4s.js → state-k1xhm3vy.js} +84 -84
  224. package/dist/chunks/{tool-kzczzf4v.js → state-kzczzf4v.js} +1 -1
  225. package/dist/chunks/{tool-m1714858.js → state-m1714858.js} +1 -1
  226. package/dist/chunks/{tool-vkwey47a.js → state-m5266p9d.js} +2 -2
  227. package/dist/chunks/{tool-m9w0rfyh.js → state-m9w0rfyh.js} +1 -1
  228. package/dist/chunks/{tool-0zrc1hgf.js → state-mdvqzrzy.js} +29 -29
  229. package/dist/chunks/{tool-zyjx7tf0.js → state-mg1jj979.js} +15 -15
  230. package/dist/chunks/{tool-snkgcq6v.js → state-mj23vw6g.js} +6 -6
  231. package/dist/chunks/{tool-6yebzpzq.js → state-mjc37m1k.js} +21 -21
  232. package/dist/chunks/{tool-mm06edep.js → state-mm06edep.js} +1 -1
  233. package/dist/chunks/{tool-60scttwb.js → state-mnv2jyz7.js} +4 -4
  234. package/dist/chunks/{tool-wmndttsw.js → state-mq99xgvr.js} +29 -14
  235. package/dist/chunks/{tool-1v2g13eq.js → state-msd2a3qm.js} +4 -4
  236. package/dist/chunks/{tool-qgcn30ny.js → state-mv6jdq2w.js} +7 -7
  237. package/dist/chunks/{tool-75c0yt7x.js → state-mye87mks.js} +12 -12
  238. package/dist/chunks/{tool-h1da92q3.js → state-nchq7fqh.js} +31 -31
  239. package/dist/chunks/{tool-k6r1bs0t.js → state-nppp2r4z.js} +11 -11
  240. package/dist/chunks/{tool-nt907s04.js → state-nt907s04.js} +3 -3
  241. package/dist/chunks/{tool-1rapdk7p.js → state-nvj53022.js} +28 -28
  242. package/dist/chunks/{tool-wegkxhrn.js → state-nx4vzyjd.js} +2 -2
  243. package/dist/chunks/{tool-rv2ck8m4.js → state-p1zyyx7p.js} +14 -14
  244. package/dist/chunks/{tool-vv9k68sd.js → state-p2g6jje1.js} +17 -17
  245. package/dist/chunks/{tool-ew00rcme.js → state-pagshcxp.js} +35 -35
  246. package/dist/chunks/{tool-mzf8qq5c.js → state-phz1cjg9.js} +11 -11
  247. package/dist/chunks/{tool-pknna89w.js → state-pknna89w.js} +1 -1
  248. package/dist/chunks/{tool-4kfzmx5g.js → state-q56wpc8y.js} +2 -2
  249. package/dist/chunks/{tool-8ww1xt0h.js → state-q9d90wga.js} +16 -16
  250. package/dist/chunks/{tool-xg73td2j.js → state-qfef7h1d.js} +8 -8
  251. package/dist/chunks/{tool-qfz6bxfd.js → state-qfz6bxfd.js} +1 -1
  252. package/dist/chunks/{tool-wcgjrgaf.js → state-qke86nqk.js} +42 -42
  253. package/dist/chunks/{tool-enaqqywp.js → state-qm790n5p.js} +17 -17
  254. package/dist/chunks/{tool-qp7r0hxv.js → state-qp7r0hxv.js} +1 -1
  255. package/dist/chunks/{tool-qsdghx1p.js → state-qsdghx1p.js} +1 -1
  256. package/dist/chunks/{tool-rmv7fhs4.js → state-qw2t3dzn.js} +6 -6
  257. package/dist/chunks/{tool-zn5cq78w.js → state-r3bpf7pz.js} +7 -7
  258. package/dist/chunks/{tool-xa23xek1.js → state-r3jp95ya.js} +8 -8
  259. package/dist/chunks/{tool-6yc1yn4a.js → state-r3nbcy9x.js} +16 -16
  260. package/dist/chunks/{tool-40za9wsf.js → state-r41sfy63.js} +6 -6
  261. package/dist/chunks/{tool-mnq1jwzt.js → state-r6q4sfpa.js} +12 -12
  262. package/dist/chunks/{tool-nh09tcxv.js → state-rabw2mys.js} +13 -13
  263. package/dist/chunks/{tool-rb9dy4dg.js → state-rb9dy4dg.js} +1 -1
  264. package/dist/chunks/{tool-ptxs8w6f.js → state-rdawdz7g.js} +25 -25
  265. package/dist/chunks/{tool-gdqab8my.js → state-rfrdehgj.js} +5 -5
  266. package/dist/chunks/{tool-zeby9t0g.js → state-rg9szfbb.js} +12 -12
  267. package/dist/chunks/{tool-rgc9cx3e.js → state-rgc9cx3e.js} +2 -2
  268. package/dist/chunks/{tool-65zzbc8y.js → state-rjeg9c4a.js} +3 -3
  269. package/dist/chunks/{tool-rt5dr6hb.js → state-rt5dr6hb.js} +1 -1
  270. package/dist/chunks/{tool-sa3fpqfw.js → state-sa3fpqfw.js} +2 -2
  271. package/dist/chunks/{tool-sbya78hr.js → state-sbya78hr.js} +1 -1
  272. package/dist/chunks/{tool-34kmj136.js → state-sg44rzx3.js} +15 -15
  273. package/dist/chunks/{tool-pdvy17jd.js → state-sheyags7.js} +18 -18
  274. package/dist/chunks/{tool-sfnc6e8w.js → state-sq0c2t7p.js} +27 -27
  275. package/dist/chunks/{tool-2r8wnwkh.js → state-sqv6sja0.js} +9 -5
  276. package/dist/chunks/{tool-svcy3p9a.js → state-svcy3p9a.js} +1 -1
  277. package/dist/chunks/{tool-ws4tpv13.js → state-sw8sg13a.js} +3 -3
  278. package/dist/chunks/{tool-szwm4crx.js → state-szwm4crx.js} +4 -4
  279. package/dist/chunks/{tool-c7r9599d.js → state-t62dywgn.js} +6 -6
  280. package/dist/chunks/{tool-tczq8hjw.js → state-tczq8hjw.js} +1 -1
  281. package/dist/chunks/{tool-gxs71cxp.js → state-tg7s7b5t.js} +4 -4
  282. package/dist/chunks/{tool-3nnrz6f6.js → state-tmc7xdjs.js} +4 -4
  283. package/dist/chunks/{tool-q81kq6vk.js → state-tptg6stc.js} +7 -7
  284. package/dist/chunks/{tool-tr8x705m.js → state-tr8x705m.js} +1 -1
  285. package/dist/chunks/{tool-v9zj8gmy.js → state-trq16rvm.js} +20 -15
  286. package/dist/chunks/{tool-e0d96e0q.js → state-tsj3mfe2.js} +4 -4
  287. package/dist/chunks/{tool-twssxy5n.js → state-twssxy5n.js} +2 -2
  288. package/dist/chunks/{tool-nw5eecxx.js → state-tyr5qtmx.js} +1 -1
  289. package/dist/chunks/{tool-eqkq82nh.js → state-v157w7rk.js} +35 -35
  290. package/dist/chunks/{tool-5vnxagfg.js → state-v1gkajza.js} +23 -23
  291. package/dist/chunks/{tool-v2r1d0zg.js → state-v2r1d0zg.js} +1 -1
  292. package/dist/chunks/{tool-twz8991w.js → state-va3qjjz1.js} +58 -33
  293. package/dist/chunks/{tool-pa056g0m.js → state-vaty8g2w.js} +12 -12
  294. package/dist/chunks/{tool-zh6krqj4.js → state-vcbjdmh4.js} +7 -7
  295. package/dist/chunks/{tool-zcnch7vt.js → state-vgd0xb2g.js} +11 -11
  296. package/dist/chunks/{tool-vjf35v1f.js → state-vjf35v1f.js} +1 -1
  297. package/dist/chunks/{tool-jkdcm5hg.js → state-vmxsyvj6.js} +4 -4
  298. package/dist/chunks/{tool-5jgwgsds.js → state-vmy3bva4.js} +23 -23
  299. package/dist/chunks/{tool-weqc7sb9.js → state-vnjc296t.js} +3 -3
  300. package/dist/chunks/{tool-w3wsvvr9.js → state-w3wsvvr9.js} +1 -1
  301. package/dist/chunks/{tool-wr3re1en.js → state-w687dnns.js} +4 -4
  302. package/dist/chunks/{tool-8vav0wt6.js → state-w90vmn9j.js} +29 -29
  303. package/dist/chunks/{tool-p8t94sdg.js → state-w9dedz0k.js} +7 -7
  304. package/dist/chunks/{tool-0b12brbm.js → state-wag7rwyd.js} +23 -23
  305. package/dist/chunks/{tool-wakvkjy4.js → state-wakvkjy4.js} +1 -1
  306. package/dist/chunks/{tool-nn6t2hk7.js → state-wcejgkpf.js} +14 -14
  307. package/dist/chunks/{tool-wd87259q.js → state-wd87259q.js} +1 -1
  308. package/dist/chunks/{tool-1555t097.js → state-wj190css.js} +4 -4
  309. package/dist/chunks/{tool-xdgtjw5x.js → state-wjvxg2e5.js} +24 -24
  310. package/dist/chunks/{tool-wnhgecwx.js → state-wnhgecwx.js} +1 -1
  311. package/dist/chunks/{tool-1brsnn94.js → state-wq9h8gy5.js} +2 -2
  312. package/dist/chunks/{tool-db4seax3.js → state-wsmen7jm.js} +14 -14
  313. package/dist/chunks/{tool-1j4h07zs.js → state-wsv0t92k.js} +12 -12
  314. package/dist/chunks/{tool-czwy3yzx.js → state-wvr8xscb.js} +7 -7
  315. package/dist/chunks/{tool-nrp7ym1y.js → state-wzsrndbq.js} +23 -23
  316. package/dist/chunks/{tool-j5f9jgzm.js → state-x261zjn4.js} +11 -11
  317. package/dist/chunks/{tool-debd8pf3.js → state-x2x6btqw.js} +3 -3
  318. package/dist/chunks/{tool-kf978mzt.js → state-x5q33sjw.js} +16 -16
  319. package/dist/chunks/{tool-k75at1a4.js → state-x72hckx5.js} +11 -11
  320. package/dist/chunks/{tool-1hw98qrx.js → state-x8r4ndq1.js} +8 -8
  321. package/dist/chunks/{tool-3pkw540f.js → state-xf3wmjdz.js} +22 -22
  322. package/dist/chunks/{tool-77h00f9v.js → state-xh3npcfc.js} +26 -26
  323. package/dist/chunks/{tool-xjr6c8m4.js → state-xjr6c8m4.js} +1 -1
  324. package/dist/chunks/{tool-xksw6ev0.js → state-xksw6ev0.js} +1 -1
  325. package/dist/chunks/{tool-h0rg6s60.js → state-xsact9zs.js} +4 -4
  326. package/dist/chunks/{tool-r96ere88.js → state-xsvq7cjt.js} +4 -4
  327. package/dist/chunks/{tool-mgrbscb1.js → state-xytydggh.js} +11 -11
  328. package/dist/chunks/{tool-2dkpp6r2.js → state-yagqa7s0.js} +11 -11
  329. package/dist/chunks/{tool-yb20nhc3.js → state-yb20nhc3.js} +1 -1
  330. package/dist/chunks/{tool-4z0mnfsb.js → state-yhdjqea2.js} +149 -149
  331. package/dist/chunks/{tool-m9f5rdz9.js → state-yhycmjqj.js} +26 -26
  332. package/dist/chunks/{tool-1wkggrjf.js → state-yjt5dh5y.js} +6 -6
  333. package/dist/chunks/{tool-84483szx.js → state-yntprw1s.js} +21 -21
  334. package/dist/chunks/{tool-yr705xyq.js → state-yr705xyq.js} +1 -1
  335. package/dist/chunks/{tool-x5vj74a2.js → state-yrbn0ame.js} +25 -25
  336. package/dist/chunks/{tool-yvtc2x31.js → state-yvtc2x31.js} +1 -1
  337. package/dist/chunks/{tool-xr7xm7qf.js → state-yw8h6eng.js} +28 -28
  338. package/dist/chunks/{tool-rgejq9ef.js → state-z90jk6wv.js} +18 -18
  339. package/dist/chunks/{tool-j9nxzz3g.js → state-ze75qvmd.js} +3 -3
  340. package/dist/chunks/{tool-2dq8jpdd.js → state-zevbv6wf.js} +9 -9
  341. package/dist/chunks/{tool-tah62rx7.js → state-zgq5ynfz.js} +4 -4
  342. package/dist/chunks/{tool-tt9rk80g.js → state-zkbhzvnx.js} +4 -4
  343. package/dist/chunks/{tool-2kkp9s70.js → state-zmntsdyf.js} +372 -372
  344. package/dist/chunks/{tool-zpdbqgja.js → state-zpdbqgja.js} +1 -1
  345. package/dist/chunks/{tool-44fq2p83.js → state-zwb43w27.js} +3 -3
  346. package/dist/chunks/state-zxk0t9p9.js +265 -0
  347. package/dist/chunks/{tool-g70vkb7s.js → state-zxnyrn6k.js} +22 -22
  348. package/dist/codemode/catalog.js +1 -1
  349. package/dist/codemode/execution.js +3 -3
  350. package/dist/codemode/fetch.js +146 -145
  351. package/dist/codemode/instructions.js +9 -9
  352. package/dist/codemode/tool.js +152 -151
  353. package/dist/command.js +92 -92
  354. package/dist/config/discovery.js +95 -95
  355. package/dist/config/integration.js +1 -1
  356. package/dist/config/managed.js +1 -1
  357. package/dist/config/markdown.js +1 -1
  358. package/dist/config/normalize.js +112 -112
  359. package/dist/config/plugin/agent.js +131 -131
  360. package/dist/config/plugin/command.js +235 -234
  361. package/dist/config/plugin/compaction.js +172 -171
  362. package/dist/config/plugin/compatibility.js +151 -150
  363. package/dist/config/plugin/entry-observer.js +1 -1
  364. package/dist/config/plugin/formatter.js +131 -131
  365. package/dist/config/plugin/image.js +130 -130
  366. package/dist/config/plugin/instruction.js +130 -130
  367. package/dist/config/plugin/location-watcher.js +132 -132
  368. package/dist/config/plugin/mcp.js +139 -139
  369. package/dist/config/plugin/policy.js +130 -130
  370. package/dist/config/plugin/provider.js +130 -130
  371. package/dist/config/plugin/reference.js +132 -132
  372. package/dist/config/plugin/shell.js +132 -132
  373. package/dist/config/plugin/skill-file.js +147 -146
  374. package/dist/config/plugin/skill-scan.js +1 -1
  375. package/dist/config/plugin/skill.js +154 -153
  376. package/dist/config/plugin/snapshot.js +130 -130
  377. package/dist/config/plugin/source.js +132 -132
  378. package/dist/config/plugin/tool-output.js +131 -131
  379. package/dist/config/plugin/websearch.js +131 -131
  380. package/dist/config/plugin/worktree.js +132 -132
  381. package/dist/config/variable.js +1 -1
  382. package/dist/config/watch.js +1 -1
  383. package/dist/config.js +135 -135
  384. package/dist/console-access.js +7 -7
  385. package/dist/credential/sql.js +2 -2
  386. package/dist/credential.js +92 -92
  387. package/dist/database/batch.js +12 -0
  388. package/dist/database/database.js +77 -77
  389. package/dist/database/drizzle/effect-sqlite/driver.js +14 -14
  390. package/dist/database/drizzle/effect-sqlite/index.js +14 -14
  391. package/dist/database/drizzle/effect-sqlite/session.js +11 -11
  392. package/dist/database/drizzle/index.js +15 -15
  393. package/dist/database/drizzle/internal/drizzle-utils.js +1 -1
  394. package/dist/database/drizzle/sqlite-core/effect/count.js +1 -1
  395. package/dist/database/drizzle/sqlite-core/effect/db.js +9 -9
  396. package/dist/database/drizzle/sqlite-core/effect/delete.js +2 -2
  397. package/dist/database/drizzle/sqlite-core/effect/index.js +10 -10
  398. package/dist/database/drizzle/sqlite-core/effect/insert.js +2 -2
  399. package/dist/database/drizzle/sqlite-core/effect/query.js +1 -1
  400. package/dist/database/drizzle/sqlite-core/effect/raw.js +1 -1
  401. package/dist/database/drizzle/sqlite-core/effect/select.js +2 -2
  402. package/dist/database/drizzle/sqlite-core/effect/session.js +10 -10
  403. package/dist/database/drizzle/sqlite-core/effect/update.js +2 -2
  404. package/dist/database/drizzle.js +16 -16
  405. package/dist/database/migration/20260127222353_familiar_lady_ursula.js +1 -1
  406. package/dist/database/migration/20260211171708_add_project_commands.js +1 -1
  407. package/dist/database/migration/20260213144116_wakeful_the_professor.js +1 -1
  408. package/dist/database/migration/20260225215848_workspace.js +1 -1
  409. package/dist/database/migration/20260227213759_add_session_workspace_id.js +1 -1
  410. package/dist/database/migration/20260228203230_blue_harpoon.js +1 -1
  411. package/dist/database/migration/20260303231226_add_workspace_fields.js +1 -1
  412. package/dist/database/migration/20260309230000_move_org_to_state.js +1 -1
  413. package/dist/database/migration/20260312043431_session_message_cursor.js +1 -1
  414. package/dist/database/migration/20260323234822_events.js +1 -1
  415. package/dist/database/migration/20260410174513_workspace-name.js +1 -1
  416. package/dist/database/migration/20260413175956_chief_energizer.js +1 -1
  417. package/dist/database/migration/20260423070820_add_icon_url_override.js +1 -1
  418. package/dist/database/migration/20260427172553_slow_nightmare.js +1 -1
  419. package/dist/database/migration/20260428004200_add_session_path.js +1 -1
  420. package/dist/database/migration/20260501142318_next_venus.js +1 -1
  421. package/dist/database/migration/20260504145000_add_sync_owner.js +1 -1
  422. package/dist/database/migration/20260507164347_add_workspace_time.js +1 -1
  423. package/dist/database/migration/20260510033149_session_usage.js +1 -1
  424. package/dist/database/migration/20260511000411_data_migration_state.js +1 -1
  425. package/dist/database/migration/20260511173437_session-metadata.js +1 -1
  426. package/dist/database/migration/20260601010001_normalize_storage_paths.js +1 -1
  427. package/dist/database/migration/20260601202201_amazing_prowler.js +1 -1
  428. package/dist/database/migration/20260602002951_lowly_union_jack.js +1 -1
  429. package/dist/database/migration/20260602182828_add_project_directories.js +1 -1
  430. package/dist/database/migration/20260603001617_session_message_projection_indexes.js +1 -1
  431. package/dist/database/migration/20260603040000_session_message_projection_order.js +1 -1
  432. package/dist/database/migration/20260603141458_session_input_inbox.js +1 -1
  433. package/dist/database/migration/20260603160727_jittery_ezekiel_stane.js +1 -1
  434. package/dist/database/migration/20260604172448_event_sourced_session_input.js +1 -1
  435. package/dist/database/migration/20260605003541_add_session_context_snapshot.js +1 -1
  436. package/dist/database/migration/20260605042240_add_context_epoch_agent.js +1 -1
  437. package/dist/database/migration/20260611035744_credential.js +1 -1
  438. package/dist/database/migration/20260611192811_lush_chimera.js +1 -1
  439. package/dist/database/migration/20260612174303_project_dir_strategy.js +1 -1
  440. package/dist/database/migration/20260622142730_simplify_session_context_epoch.js +1 -1
  441. package/dist/database/migration/20260622170816_reset_v2_session_state.js +1 -1
  442. package/dist/database/migration/20260622202450_simplify_session_input.js +1 -1
  443. package/dist/database/migration/20260804233008_loose_psylocke.js +1 -1
  444. package/dist/database/migration/20260805200742_import_legacy_credentials.js +1 -1
  445. package/dist/database/migration/20260808023530_workspace_domain.js +1 -1
  446. package/dist/database/migration/20260811161259_execution_claim_attempts.js +1 -1
  447. package/dist/database/migration/20260812181746_session_inbox.js +1 -1
  448. package/dist/database/migration/20260812213948_worktree.js +1 -1
  449. package/dist/database/migration/20260819222447_session_viewed_state.js +1 -1
  450. package/dist/database/migration/20260823191254_nullable_workspace_binding.js +1 -1
  451. package/dist/database/migration/20260910120000_clear_v1_session_permission.js +1 -1
  452. package/dist/database/migration/20260923013825_project_time_active.js +1 -1
  453. package/dist/database/migration/20261007190000_azure_cli_external_credential.js +1 -1
  454. package/dist/database/migration/20261010180456_project_time_archived.js +1 -1
  455. package/dist/database/migration/20261024002554_session_allowance.js +1 -1
  456. package/dist/database/migration/20261024175301_drop_session_allowance.js +1 -1
  457. package/dist/database/migration/20261025123711_blob.js +1 -1
  458. package/dist/database/migration/20261025154125_drop_session_pending.js +1 -1
  459. package/dist/database/migration/20261026223005_schedule.js +1 -1
  460. package/dist/database/migration/20261029002625_session_part.js +1 -1
  461. package/dist/database/migration/20261029073502_session_time_busy.js +1 -1
  462. package/dist/database/migration/20261029165540_schedule_checks.js +1 -1
  463. package/dist/database/migration/20261030054400_job.js +1 -1
  464. package/dist/database/migration.gen.js +60 -60
  465. package/dist/database/migration.js +76 -62
  466. package/dist/database/path.js +2 -2
  467. package/dist/database/schema.gen.js +1 -1
  468. package/dist/database/schema.sql.js +1 -1
  469. package/dist/database/v1-migration.bun.js +100 -100
  470. package/dist/database/v1-migration.js +1 -1
  471. package/dist/effect/app-node-builder.js +438 -437
  472. package/dist/effect/app-node-platform.js +2 -2
  473. package/dist/effect/keyed-mutex.js +3 -3
  474. package/dist/effect/websocket-constructor.js +1 -1
  475. package/dist/environment/driver.js +1 -1
  476. package/dist/environment/environment.js +105 -105
  477. package/dist/environment/exec-defaults.js +2 -2
  478. package/dist/environment/files.js +1 -1
  479. package/dist/environment/index.js +107 -107
  480. package/dist/environment/local.js +2 -2
  481. package/dist/environment/memory.js +2 -2
  482. package/dist/environment/unavailable.js +3 -3
  483. package/dist/event/sql.js +1 -1
  484. package/dist/event-logger.js +81 -81
  485. package/dist/file-access.js +158 -157
  486. package/dist/file-mutation.js +108 -108
  487. package/dist/file-retention.js +1 -1
  488. package/dist/file-write.js +162 -161
  489. package/dist/filesystem/fff.bun.js +2 -2
  490. package/dist/filesystem/fff.js +1 -1
  491. package/dist/filesystem/fff.node.js +2 -2
  492. package/dist/filesystem/fff.workerd.js +2 -2
  493. package/dist/filesystem/file-watch.js +88 -88
  494. package/dist/filesystem/location-watcher-policy.js +6 -6
  495. package/dist/filesystem/location-watcher.js +250 -249
  496. package/dist/filesystem/protected.js +1 -1
  497. package/dist/filesystem/search.js +113 -113
  498. package/dist/filesystem/watcher-binding.js +1 -1
  499. package/dist/filesystem/watcher.js +11 -11
  500. package/dist/filesystem.js +116 -116
  501. package/dist/form.js +89 -89
  502. package/dist/formatter/builtins.js +4 -4
  503. package/dist/formatter.js +100 -100
  504. package/dist/generate.js +118 -118
  505. package/dist/git.js +11 -11
  506. package/dist/github-copilot/chat/convert-to-openai-compatible-chat-messages.js +1 -1
  507. package/dist/github-copilot/chat/get-response-metadata.js +1 -1
  508. package/dist/github-copilot/chat/map-openai-compatible-finish-reason.js +1 -1
  509. package/dist/github-copilot/chat/openai-compatible-chat-language-model.js +7 -7
  510. package/dist/github-copilot/chat/openai-compatible-chat-options.js +1 -1
  511. package/dist/github-copilot/chat/openai-compatible-prepare-tools.js +1 -1
  512. package/dist/github-copilot/copilot-provider.js +17 -17
  513. package/dist/github-copilot/models.js +112 -112
  514. package/dist/github-copilot/openai-compatible-error.js +1 -1
  515. package/dist/github-copilot/responses/convert-to-openai-responses-input.js +1 -1
  516. package/dist/github-copilot/responses/map-openai-responses-finish-reason.js +1 -1
  517. package/dist/github-copilot/responses/openai-error.js +1 -1
  518. package/dist/github-copilot/responses/openai-responses-language-model.js +10 -10
  519. package/dist/github-copilot/responses/openai-responses-prepare-tools.js +6 -6
  520. package/dist/github-copilot/responses/tool/code-interpreter.js +1 -1
  521. package/dist/github-copilot/responses/tool/file-search.js +1 -1
  522. package/dist/github-copilot/responses/tool/image-generation.js +1 -1
  523. package/dist/github-copilot/responses/tool/web-search-preview.js +1 -1
  524. package/dist/github-copilot/responses/tool/web-search.js +1 -1
  525. package/dist/image/notice.js +1 -1
  526. package/dist/image/photon-normalize.js +1 -1
  527. package/dist/image/photon-worker.js +1 -1
  528. package/dist/image/photon.js +4 -4
  529. package/dist/image.js +6 -6
  530. package/dist/instance/service.js +5 -5
  531. package/dist/instance.js +429 -428
  532. package/dist/instruction-discovery.js +97 -97
  533. package/dist/instructions/builtins.js +100 -100
  534. package/dist/instructions/index.js +3 -3
  535. package/dist/integration/connection.js +1 -1
  536. package/dist/integration.js +94 -94
  537. package/dist/job/list.js +5 -5
  538. package/dist/job/recovery.js +2 -2
  539. package/dist/job/sql.js +2 -2
  540. package/dist/job.js +90 -90
  541. package/dist/kv/sql.js +2 -2
  542. package/dist/kv.js +84 -84
  543. package/dist/location-activity.js +177 -176
  544. package/dist/location-lifecycle.js +149 -148
  545. package/dist/location-service-map.js +99 -99
  546. package/dist/location-services.js +426 -425
  547. package/dist/location.js +98 -98
  548. package/dist/managed-policy.js +3 -3
  549. package/dist/mcp/client.js +156 -155
  550. package/dist/mcp/connection.js +104 -104
  551. package/dist/mcp/index.js +122 -122
  552. package/dist/mcp/instructions.js +184 -183
  553. package/dist/mcp/oauth.js +89 -89
  554. package/dist/mcp/socket-client.js +1 -1
  555. package/dist/mcp/stdio.js +155 -154
  556. package/dist/mime.js +1 -1
  557. package/dist/modal/models.js +112 -112
  558. package/dist/model-resolver.js +110 -110
  559. package/dist/model-retry.js +1 -1
  560. package/dist/model.js +109 -109
  561. package/dist/models-dev/v1.js +1 -1
  562. package/dist/models-dev.js +119 -119
  563. package/dist/oauth/page.js +1 -1
  564. package/dist/permission/saved.js +87 -87
  565. package/dist/permission/sql.js +5 -5
  566. package/dist/permission.js +150 -149
  567. package/dist/persistent-pty/binary.bun.js +1 -1
  568. package/dist/persistent-pty/daemon.js +1 -1
  569. package/dist/persistent-pty/index.js +99 -99
  570. package/dist/persistent-pty/pty-binding.js +1 -1
  571. package/dist/persistent-pty.js +86 -86
  572. package/dist/plugin/agent.js +85 -85
  573. package/dist/plugin/command.js +115 -115
  574. package/dist/plugin/goal.js +3 -3
  575. package/dist/plugin/hooks.js +5 -5
  576. package/dist/plugin/host.js +241 -240
  577. package/dist/plugin/identity.js +5 -5
  578. package/dist/plugin/instance.js +5 -5
  579. package/dist/plugin/internal.js +405 -404
  580. package/dist/plugin/mcp-codemode-defaults.js +3 -3
  581. package/dist/plugin/models-dev.js +110 -110
  582. package/dist/plugin/module.js +129 -129
  583. package/dist/plugin/optimize.js +2 -2
  584. package/dist/plugin/plan.js +147 -146
  585. package/dist/plugin/promise.js +1 -1
  586. package/dist/plugin/provider/amazon-bedrock.js +106 -106
  587. package/dist/plugin/provider/azure.js +133 -133
  588. package/dist/plugin/provider/cerebras.js +1 -1
  589. package/dist/plugin/provider/chatgpt.js +133 -133
  590. package/dist/plugin/provider/claude-agent/aisdk.js +117 -117
  591. package/dist/plugin/provider/claude-agent/claude/fork.js +2 -2
  592. package/dist/plugin/provider/claude-agent/claude/io.js +4 -4
  593. package/dist/plugin/provider/claude-agent/claude/probe.js +2 -2
  594. package/dist/plugin/provider/claude-agent/claude/query-options.js +4 -4
  595. package/dist/plugin/provider/claude-agent/claude/sdk.js +1 -1
  596. package/dist/plugin/provider/claude-agent/claude/session.js +4 -4
  597. package/dist/plugin/provider/claude-agent/claude/sessions.js +16 -16
  598. package/dist/plugin/provider/claude-agent/claude/status.js +9 -9
  599. package/dist/plugin/provider/claude-agent/index.js +148 -148
  600. package/dist/plugin/provider/claude-agent/instructions.js +112 -112
  601. package/dist/plugin/provider/claude-agent/integration.js +115 -115
  602. package/dist/plugin/provider/claude-agent/language-model/claude-agent-error.js +3 -3
  603. package/dist/plugin/provider/claude-agent/language-model/claude-agent-language-model.js +7 -7
  604. package/dist/plugin/provider/claude-agent/language-model/convert-claude-stream.js +4 -4
  605. package/dist/plugin/provider/claude-agent/language-model/convert-to-claude-message.js +1 -1
  606. package/dist/plugin/provider/claude-agent/language-model/request-kind.js +1 -1
  607. package/dist/plugin/provider/claude-agent/language-model/system-prompt.js +1 -1
  608. package/dist/plugin/provider/claude-agent/language-model/usage.js +3 -3
  609. package/dist/plugin/provider/claude-agent/provider.js +108 -108
  610. package/dist/plugin/provider/claude-agent/session.js +112 -112
  611. package/dist/plugin/provider/claude-agent/sync/catch-up.js +3 -3
  612. package/dist/plugin/provider/claude-agent/sync/checkpoints.js +2 -2
  613. package/dist/plugin/provider/claude-agent/sync/decide.js +2 -2
  614. package/dist/plugin/provider/claude-agent/sync/fingerprint.js +1 -1
  615. package/dist/plugin/provider/claude-agent/sync/record.js +1 -1
  616. package/dist/plugin/provider/claude-agent/tools/hooks.js +3 -3
  617. package/dist/plugin/provider/claude-agent/tools/names.js +3 -3
  618. package/dist/plugin/provider/claude-agent/tools/pending.js +1 -1
  619. package/dist/plugin/provider/claude-agent/tools/result.js +3 -3
  620. package/dist/plugin/provider/claude-agent/tools/server.js +2 -2
  621. package/dist/plugin/provider/cloudflare-ai-gateway.js +130 -130
  622. package/dist/plugin/provider/cloudflare-workers-ai.js +130 -130
  623. package/dist/plugin/provider/configured.js +126 -126
  624. package/dist/plugin/provider/credential-settings.js +88 -88
  625. package/dist/plugin/provider/databricks.js +1 -1
  626. package/dist/plugin/provider/digitalocean.js +109 -109
  627. package/dist/plugin/provider/dynamic.js +2 -2
  628. package/dist/plugin/provider/github-copilot.js +111 -111
  629. package/dist/plugin/provider/gitlab.js +109 -109
  630. package/dist/plugin/provider/google-vertex.js +127 -127
  631. package/dist/plugin/provider/kilo.js +1 -1
  632. package/dist/plugin/provider/llmgateway.js +89 -89
  633. package/dist/plugin/provider/lmstudio.js +140 -140
  634. package/dist/plugin/provider/local.js +137 -137
  635. package/dist/plugin/provider/modal.js +108 -108
  636. package/dist/plugin/provider/neon.js +1 -1
  637. package/dist/plugin/provider/nvidia.js +1 -1
  638. package/dist/plugin/provider/ollama.js +140 -140
  639. package/dist/plugin/provider/openai-context-caps.js +106 -106
  640. package/dist/plugin/provider/openai.js +133 -133
  641. package/dist/plugin/provider/opencode.js +158 -157
  642. package/dist/plugin/provider/openrouter.js +104 -104
  643. package/dist/plugin/provider/poe.js +90 -90
  644. package/dist/plugin/provider/prompt-cache-key.js +1 -1
  645. package/dist/plugin/provider/refresh.js +87 -87
  646. package/dist/plugin/provider/sap-ai-core.js +104 -104
  647. package/dist/plugin/provider/sdk-factory.js +1 -1
  648. package/dist/plugin/provider/snowflake-cortex.js +131 -131
  649. package/dist/plugin/provider/vllm.js +140 -140
  650. package/dist/plugin/provider/xai.js +104 -104
  651. package/dist/plugin/provider/zenmux.js +1 -1
  652. package/dist/plugin/provider.js +236 -235
  653. package/dist/plugin/sdk.js +81 -81
  654. package/dist/plugin/service.js +3 -3
  655. package/dist/plugin/skill.js +150 -149
  656. package/dist/plugin/source-directory.js +1 -1
  657. package/dist/plugin/supervisor.js +415 -414
  658. package/dist/plugin/tool-input-repair.js +4 -4
  659. package/dist/plugin/update.js +2 -2
  660. package/dist/plugin/vcs/git.js +99 -99
  661. package/dist/plugin/vcs/hg.js +99 -99
  662. package/dist/plugin/verbosity.js +106 -106
  663. package/dist/plugin/warming.js +130 -130
  664. package/dist/plugin/websearch/exa.js +8 -8
  665. package/dist/plugin/websearch/firecrawl.js +9 -9
  666. package/dist/plugin/websearch/index.js +10 -10
  667. package/dist/plugin/websearch/mcp.js +4 -4
  668. package/dist/plugin/websearch/parallel.js +9 -9
  669. package/dist/plugin/websearch/provider.js +1 -1
  670. package/dist/plugin/websearch/tavily.js +5 -5
  671. package/dist/plugin/websearch/tinyfish.js +9 -9
  672. package/dist/plugin.js +246 -245
  673. package/dist/project/icon.js +5 -5
  674. package/dist/project/schema.js +4 -4
  675. package/dist/project/sql.js +4 -4
  676. package/dist/project.js +97 -97
  677. package/dist/provider.js +108 -108
  678. package/dist/pty/protocol.js +1 -1
  679. package/dist/pty/ticket.js +1 -1
  680. package/dist/pty.js +109 -109
  681. package/dist/reference/instructions.js +101 -101
  682. package/dist/reference.js +101 -101
  683. package/dist/repository-cache.js +93 -93
  684. package/dist/repository.js +1 -1
  685. package/dist/ripgrep/binary.js +2 -2
  686. package/dist/ripgrep.js +109 -109
  687. package/dist/rpc.js +99 -99
  688. package/dist/schedule/check.js +246 -245
  689. package/dist/schedule/sql.js +6 -6
  690. package/dist/schedule.js +260 -259
  691. package/dist/schema.js +1 -1
  692. package/dist/session/affinity.js +3 -3
  693. package/dist/session/background.js +1 -1
  694. package/dist/session/blob.js +132 -129
  695. package/dist/session/command.js +85 -85
  696. package/dist/session/compaction.js +174 -173
  697. package/dist/session/context.js +201 -200
  698. package/dist/session/diff.js +101 -101
  699. package/dist/session/environment.js +5 -5
  700. package/dist/session/error.js +3 -3
  701. package/dist/session/event.js +1 -1
  702. package/dist/session/execution/restart.js +244 -243
  703. package/dist/session/execution.js +164 -163
  704. package/dist/session/generate.js +201 -200
  705. package/dist/session/history.js +143 -136
  706. package/dist/session/inbox.js +148 -147
  707. package/dist/session/info.js +3 -3
  708. package/dist/session/instruction-entry.js +90 -90
  709. package/dist/session/instruction-state.js +8 -8
  710. package/dist/session/instructions.js +138 -137
  711. package/dist/session/message-updater.js +2 -2
  712. package/dist/session/message.js +1 -1
  713. package/dist/session/model-request.js +169 -168
  714. package/dist/session/model-transport.js +9 -9
  715. package/dist/session/move.js +168 -167
  716. package/dist/session/projector.js +144 -143
  717. package/dist/session/prompt.js +149 -148
  718. package/dist/session/recent-text.js +1 -1
  719. package/dist/session/revert.js +140 -139
  720. package/dist/session/run-coordinator.js +1 -1
  721. package/dist/session/runner/index.js +3 -3
  722. package/dist/session/runner/llm.js +255 -254
  723. package/dist/session/runner/max-steps.js +1 -1
  724. package/dist/session/runner/model.js +113 -113
  725. package/dist/session/runner/publish-llm-event.js +150 -149
  726. package/dist/session/runner/retry.js +5 -5
  727. package/dist/session/runner/step.js +164 -163
  728. package/dist/session/runner/to-llm-message.js +138 -137
  729. package/dist/session/schema.js +5 -5
  730. package/dist/session/session.js +185 -184
  731. package/dist/session/shell.js +145 -145
  732. package/dist/session/skill.js +150 -149
  733. package/dist/session/sql.js +5 -5
  734. package/dist/session/stats.js +90 -90
  735. package/dist/session/store.js +143 -142
  736. package/dist/session/stored.js +4 -4
  737. package/dist/session/subagent-completion.js +1 -1
  738. package/dist/session/subagent-job.js +230 -229
  739. package/dist/session/system-prompt.js +5 -5
  740. package/dist/session/title.js +203 -202
  741. package/dist/session/to-session-error.js +149 -148
  742. package/dist/session/transfer.js +246 -242
  743. package/dist/session/usage.js +1 -1
  744. package/dist/session.js +236 -235
  745. package/dist/shared-cache.js +5 -5
  746. package/dist/shell/parse.js +6 -6
  747. package/dist/shell/result.js +1 -1
  748. package/dist/shell/scan.js +1 -1
  749. package/dist/shell/select.js +11 -11
  750. package/dist/shell.js +147 -147
  751. package/dist/skill/discovery.js +6 -6
  752. package/dist/skill/instructions.js +150 -149
  753. package/dist/skill.js +155 -154
  754. package/dist/snapshot.js +102 -102
  755. package/dist/state.js +1 -1
  756. package/dist/tool/html-markdown.js +1 -1
  757. package/dist/tool/http-body.js +1 -1
  758. package/dist/tool/mcp.js +179 -178
  759. package/dist/tool/plugin/artifact.js +233 -232
  760. package/dist/tool/plugin/edit.js +164 -163
  761. package/dist/tool/plugin/file-diff.js +1 -1
  762. package/dist/tool/plugin/glob.js +172 -171
  763. package/dist/tool/plugin/grep.js +171 -170
  764. package/dist/tool/plugin/image-generate.js +244 -243
  765. package/dist/tool/plugin/mcp-resource.js +165 -164
  766. package/dist/tool/plugin/opencode.js +164 -163
  767. package/dist/tool/plugin/patch.js +169 -168
  768. package/dist/tool/plugin/question.js +147 -146
  769. package/dist/tool/plugin/read.js +173 -172
  770. package/dist/tool/plugin/schedule.js +252 -251
  771. package/dist/tool/plugin/shell.js +240 -239
  772. package/dist/tool/plugin/skill.js +158 -157
  773. package/dist/tool/plugin/subagent.js +241 -240
  774. package/dist/tool/plugin/todo.js +154 -153
  775. package/dist/tool/plugin/webfetch.js +158 -157
  776. package/dist/tool/plugin/websearch.js +156 -155
  777. package/dist/tool/plugin/write.js +161 -160
  778. package/dist/tool/read-filesystem.js +116 -116
  779. package/dist/tool/runtime.js +1 -1
  780. package/dist/tool/search.js +109 -109
  781. package/dist/tool-output.js +7 -7
  782. package/dist/tool.js +160 -159
  783. package/dist/types/database/batch.d.ts +11 -0
  784. package/dist/types/database/migration.d.ts +5 -2
  785. package/dist/types/session/blob.d.ts +234 -853
  786. package/dist/types/session/history.d.ts +2202 -324
  787. package/dist/types/session/message-updater.d.ts +10 -0
  788. package/dist/usage-limits.js +100 -100
  789. package/dist/util/error-summary.js +1 -1
  790. package/dist/util/git-executable.js +3 -3
  791. package/dist/util/lazy.js +1 -1
  792. package/dist/util/slug.js +1 -1
  793. package/dist/util/token.js +1 -1
  794. package/dist/util/which.js +1 -1
  795. package/dist/util/wildcard.js +1 -1
  796. package/dist/v1/config/agent.js +5 -5
  797. package/dist/v1/config/command.js +3 -3
  798. package/dist/v1/config/mcp.js +4 -4
  799. package/dist/v1/config/migrate.js +105 -105
  800. package/dist/v1/config/permission.js +3 -3
  801. package/dist/v1/config/plugin.js +3 -3
  802. package/dist/v1/config/provider-options.js +1 -1
  803. package/dist/v1/config/provider.js +4 -4
  804. package/dist/variant.js +104 -104
  805. package/dist/vcs/patch.js +1 -1
  806. package/dist/vcs.js +102 -102
  807. package/dist/voice.js +95 -95
  808. package/dist/websearch.js +91 -91
  809. package/dist/wellknown/plugin.js +87 -87
  810. package/dist/wellknown.js +90 -90
  811. package/dist/workspace/driver.js +3 -3
  812. package/dist/workspace/sql.js +1 -1
  813. package/dist/workspace.js +87 -87
  814. package/dist/worktree/directory.js +2 -2
  815. package/dist/worktree/git.js +11 -11
  816. package/dist/worktree/sql.js +5 -5
  817. package/dist/worktree/strategies.js +102 -102
  818. package/dist/worktree.js +113 -113
  819. package/package.json +8 -8
  820. package/dist/chunks/tool-19r7p8qd.js +0 -26
  821. package/dist/chunks/tool-6zjm2phc.js +0 -18
  822. package/dist/chunks/tool-8x4h6gj5.js +0 -265
  823. /package/dist/chunks/{tool-0qkdqm5v.js → state-0qkdqm5v.js} +0 -0
  824. /package/dist/chunks/{tool-0zkw76rk.js → state-0zkw76rk.js} +0 -0
  825. /package/dist/chunks/{tool-108x4f4w.js → state-108x4f4w.js} +0 -0
  826. /package/dist/chunks/{tool-17cy0kzp.js → state-17cy0kzp.js} +0 -0
  827. /package/dist/chunks/{tool-1cnp2v09.js → state-1cnp2v09.js} +0 -0
  828. /package/dist/chunks/{tool-1kah00gy.js → state-1kah00gy.js} +0 -0
  829. /package/dist/chunks/{tool-24dcb14g.js → state-24dcb14g.js} +0 -0
  830. /package/dist/chunks/{tool-2710q6r3.js → state-2710q6r3.js} +0 -0
  831. /package/dist/chunks/{tool-2bv980vf.js → state-2bv980vf.js} +0 -0
  832. /package/dist/chunks/{tool-2c3vjs8z.js → state-2c3vjs8z.js} +0 -0
  833. /package/dist/chunks/{tool-359p4xyc.js → state-359p4xyc.js} +0 -0
  834. /package/dist/chunks/{tool-3af0jn4w.js → state-3af0jn4w.js} +0 -0
  835. /package/dist/chunks/{tool-3asan66x.js → state-3asan66x.js} +0 -0
  836. /package/dist/chunks/{tool-3v8g72cx.js → state-3v8g72cx.js} +0 -0
  837. /package/dist/chunks/{tool-3wcehsnq.js → state-3wcehsnq.js} +0 -0
  838. /package/dist/chunks/{tool-43n2bw4t.js → state-43n2bw4t.js} +0 -0
  839. /package/dist/chunks/{tool-4knz6hnm.js → state-4knz6hnm.js} +0 -0
  840. /package/dist/chunks/{tool-4qk9sjk2.js → state-4qk9sjk2.js} +0 -0
  841. /package/dist/chunks/{tool-4y7fprxs.js → state-4y7fprxs.js} +0 -0
  842. /package/dist/chunks/{tool-53557ph1.js → state-53557ph1.js} +0 -0
  843. /package/dist/chunks/{tool-550bvhaj.js → state-550bvhaj.js} +0 -0
  844. /package/dist/chunks/{tool-5w3e23ze.js → state-5w3e23ze.js} +0 -0
  845. /package/dist/chunks/{tool-6agm2x70.js → state-6agm2x70.js} +0 -0
  846. /package/dist/chunks/{tool-6prwharc.js → state-6prwharc.js} +0 -0
  847. /package/dist/chunks/{tool-6q2bdcd1.js → state-6q2bdcd1.js} +0 -0
  848. /package/dist/chunks/{tool-7akdwqpd.js → state-7akdwqpd.js} +0 -0
  849. /package/dist/chunks/{tool-7m9af43g.js → state-7m9af43g.js} +0 -0
  850. /package/dist/chunks/{tool-822emrt2.js → state-822emrt2.js} +0 -0
  851. /package/dist/chunks/{tool-84wd9syh.js → state-84wd9syh.js} +0 -0
  852. /package/dist/chunks/{tool-88xbtdfr.js → state-88xbtdfr.js} +0 -0
  853. /package/dist/chunks/{tool-8n3pysct.js → state-8n3pysct.js} +0 -0
  854. /package/dist/chunks/{tool-8wj87zfr.js → state-8wj87zfr.js} +0 -0
  855. /package/dist/chunks/{tool-9a4afbnw.js → state-9a4afbnw.js} +0 -0
  856. /package/dist/chunks/{tool-9rqn6x4v.js → state-9rqn6x4v.js} +0 -0
  857. /package/dist/chunks/{tool-a6k6eb26.js → state-a6k6eb26.js} +0 -0
  858. /package/dist/chunks/{tool-af5trqkr.js → state-af5trqkr.js} +0 -0
  859. /package/dist/chunks/{tool-afrmfg78.js → state-afrmfg78.js} +0 -0
  860. /package/dist/chunks/{tool-aqzs7mqg.js → state-aqzs7mqg.js} +0 -0
  861. /package/dist/chunks/{tool-atq7p7m5.js → state-atq7p7m5.js} +0 -0
  862. /package/dist/chunks/{tool-beh6qq61.js → state-beh6qq61.js} +0 -0
  863. /package/dist/chunks/{tool-bhmrqjy3.js → state-bhmrqjy3.js} +0 -0
  864. /package/dist/chunks/{tool-bkyjaxrp.js → state-bkyjaxrp.js} +0 -0
  865. /package/dist/chunks/{tool-bmr6ed5q.js → state-bmr6ed5q.js} +0 -0
  866. /package/dist/chunks/{tool-cf4snx6d.js → state-cf4snx6d.js} +0 -0
  867. /package/dist/chunks/{tool-cqv5kn06.js → state-cqv5kn06.js} +0 -0
  868. /package/dist/chunks/{tool-cvy3z8tj.js → state-cvy3z8tj.js} +0 -0
  869. /package/dist/chunks/{tool-d9fn303g.js → state-d9fn303g.js} +0 -0
  870. /package/dist/chunks/{tool-d9jj8t3e.js → state-d9jj8t3e.js} +0 -0
  871. /package/dist/chunks/{tool-dap0rakb.js → state-dap0rakb.js} +0 -0
  872. /package/dist/chunks/{tool-df08tz66.js → state-df08tz66.js} +0 -0
  873. /package/dist/chunks/{tool-dy18nga0.js → state-dy18nga0.js} +0 -0
  874. /package/dist/chunks/{tool-e5kj55wp.js → state-e5kj55wp.js} +0 -0
  875. /package/dist/chunks/{tool-ean2d8b5.js → state-ean2d8b5.js} +0 -0
  876. /package/dist/chunks/{tool-ec1grn59.js → state-ec1grn59.js} +0 -0
  877. /package/dist/chunks/{tool-emrn6kk6.js → state-emrn6kk6.js} +0 -0
  878. /package/dist/chunks/{tool-f0mxakyp.js → state-f0mxakyp.js} +0 -0
  879. /package/dist/chunks/{tool-f6n9ztr4.js → state-f6n9ztr4.js} +0 -0
  880. /package/dist/chunks/{tool-faypxj3z.js → state-faypxj3z.js} +0 -0
  881. /package/dist/chunks/{tool-fd410y7t.js → state-fd410y7t.js} +0 -0
  882. /package/dist/chunks/{tool-fkpq3x5p.js → state-fkpq3x5p.js} +0 -0
  883. /package/dist/chunks/{tool-g4wezp1m.js → state-g4wezp1m.js} +0 -0
  884. /package/dist/chunks/{tool-g86h250q.js → state-g86h250q.js} +0 -0
  885. /package/dist/chunks/{tool-gebd4c9n.js → state-gebd4c9n.js} +0 -0
  886. /package/dist/chunks/{tool-gftt206x.js → state-gftt206x.js} +0 -0
  887. /package/dist/chunks/{tool-hcxmzztb.js → state-hcxmzztb.js} +0 -0
  888. /package/dist/chunks/{tool-hk9envan.js → state-hk9envan.js} +0 -0
  889. /package/dist/chunks/{tool-j2ntwpah.js → state-j2ntwpah.js} +0 -0
  890. /package/dist/chunks/{tool-j5zkgpj8.js → state-j5zkgpj8.js} +0 -0
  891. /package/dist/chunks/{tool-jjkms2e6.js → state-jjkms2e6.js} +0 -0
  892. /package/dist/chunks/{tool-jr7sbwjy.js → state-jr7sbwjy.js} +0 -0
  893. /package/dist/chunks/{tool-jwfs4k6c.js → state-jwfs4k6c.js} +0 -0
  894. /package/dist/chunks/{tool-jwr30sdr.js → state-jwr30sdr.js} +0 -0
  895. /package/dist/chunks/{tool-jzg6c2d5.js → state-jzg6c2d5.js} +0 -0
  896. /package/dist/chunks/{tool-m18g726c.js → state-m18g726c.js} +0 -0
  897. /package/dist/chunks/{tool-mp448xyj.js → state-mp448xyj.js} +0 -0
  898. /package/dist/chunks/{tool-msx8hqn2.js → state-msx8hqn2.js} +0 -0
  899. /package/dist/chunks/{tool-n05xt0ee.js → state-n05xt0ee.js} +0 -0
  900. /package/dist/chunks/{tool-n3j8tn72.js → state-n3j8tn72.js} +0 -0
  901. /package/dist/chunks/{tool-nh4v3znn.js → state-nh4v3znn.js} +0 -0
  902. /package/dist/chunks/{tool-njntx4h6.js → state-njntx4h6.js} +0 -0
  903. /package/dist/chunks/{tool-p71gwv9c.js → state-p71gwv9c.js} +0 -0
  904. /package/dist/chunks/{tool-q3sfg36h.js → state-q3sfg36h.js} +0 -0
  905. /package/dist/chunks/{tool-q74kybfr.js → state-q74kybfr.js} +0 -0
  906. /package/dist/chunks/{tool-qaymkmh1.js → state-qaymkmh1.js} +0 -0
  907. /package/dist/chunks/{tool-qb87gjwd.js → state-qb87gjwd.js} +0 -0
  908. /package/dist/chunks/{tool-qfa1cgps.js → state-qfa1cgps.js} +0 -0
  909. /package/dist/chunks/{tool-qg3g05ea.js → state-qg3g05ea.js} +0 -0
  910. /package/dist/chunks/{tool-qrg20bc0.js → state-qrg20bc0.js} +0 -0
  911. /package/dist/chunks/{tool-rcb2kzg1.js → state-rcb2kzg1.js} +0 -0
  912. /package/dist/chunks/{tool-sdp7kfr6.js → state-sdp7kfr6.js} +0 -0
  913. /package/dist/chunks/{tool-ssg3fenm.js → state-ssg3fenm.js} +0 -0
  914. /package/dist/chunks/{tool-syrav9an.js → state-syrav9an.js} +0 -0
  915. /package/dist/chunks/{tool-t03h4f5z.js → state-t03h4f5z.js} +0 -0
  916. /package/dist/chunks/{tool-ty7weeps.js → state-ty7weeps.js} +0 -0
  917. /package/dist/chunks/{tool-ve7vex1e.js → state-ve7vex1e.js} +0 -0
  918. /package/dist/chunks/{tool-vtarvj67.js → state-vtarvj67.js} +0 -0
  919. /package/dist/chunks/{tool-w803qqfp.js → state-w803qqfp.js} +0 -0
  920. /package/dist/chunks/{tool-wc3fc9cn.js → state-wc3fc9cn.js} +0 -0
  921. /package/dist/chunks/{tool-wer8tq1h.js → state-wer8tq1h.js} +0 -0
  922. /package/dist/chunks/{tool-wtztk69x.js → state-wtztk69x.js} +0 -0
  923. /package/dist/chunks/{tool-x0ckcb58.js → state-x0ckcb58.js} +0 -0
  924. /package/dist/chunks/{tool-x61499pn.js → state-x61499pn.js} +0 -0
  925. /package/dist/chunks/{tool-y44na4kk.js → state-y44na4kk.js} +0 -0
  926. /package/dist/chunks/{tool-y8f7s663.js → state-y8f7s663.js} +0 -0
  927. /package/dist/chunks/{tool-ygaqb7jw.js → state-ygaqb7jw.js} +0 -0
  928. /package/dist/chunks/{tool-z0h12gs8.js → state-z0h12gs8.js} +0 -0
  929. /package/dist/chunks/{tool-z5v4ffb3.js → state-z5v4ffb3.js} +0 -0
  930. /package/dist/chunks/{tool-z9919s4g.js → state-z9919s4g.js} +0 -0
  931. /package/dist/chunks/{tool-zxpyjp51.js → state-zxpyjp51.js} +0 -0
@@ -1,20 +1,24 @@
1
1
  import {
2
2
  latest2,
3
- Service73
4
- } from "./tool-sgzhenxf.js";
3
+ Service75
4
+ } from "./state-3dbwnewe.js";
5
+ import {
6
+ batches2,
7
+ insertBatches2
8
+ } from "./state-jm70asfg.js";
5
9
  import {
6
10
  BlobTable2,
7
11
  BlobRefTable2
8
- } from "./tool-mb7mbhnz.js";
12
+ } from "./state-8z6m94af.js";
9
13
  import {
10
14
  refHash2,
11
15
  ref2,
12
16
  FileRef2,
13
17
  ToolFileRef2
14
- } from "./tool-prq7xxp2.js";
18
+ } from "./state-fg9p65nk.js";
15
19
  import {
16
20
  __export
17
- } from "./tool-9rqn6x4v.js";
21
+ } from "./state-9rqn6x4v.js";
18
22
 
19
23
  // src/session/blob.ts
20
24
  var exports_blob = {};
@@ -25,6 +29,7 @@ __export(exports_blob, {
25
29
  enabled: () => enabled2,
26
30
  enabledFor: () => enabledFor2,
27
31
  externalize: () => externalize2,
32
+ externalizePart: () => externalizePart2,
28
33
  externalizePayload: () => externalizePayload2,
29
34
  externalizeRow: () => externalizeRow2,
30
35
  hashBytes: () => hashBytes2,
@@ -43,7 +48,7 @@ __export(exports_blob, {
43
48
  syncRefs: () => syncRefs2
44
49
  });
45
50
  import { createHash } from "node:crypto";
46
- import { and, eq, exists, gte, inArray, notExists, notInArray, sql } from "drizzle-orm";
51
+ import { and, eq, exists, gte, inArray, notExists, sql } from "drizzle-orm";
47
52
  import { Cause, Context, Effect, Option, Schema } from "effect";
48
53
  import { map } from "effect/Array";
49
54
  var isFileRef = Schema.is(FileRef2);
@@ -55,12 +60,17 @@ function collect(data, hashes) {
55
60
  if (isFileRef(file))
56
61
  hashes.add(refHash2(file.uri));
57
62
  }
58
- if ("content" in data) {
63
+ if ("content" in data && Array.isArray(data.content)) {
59
64
  for (const part of data.content)
60
65
  for (const item of toolItems(part))
61
66
  if (isToolFileRef(item))
62
67
  hashes.add(refHash2(item.uri));
63
68
  }
69
+ if ("type" in data && data.type === "tool") {
70
+ for (const item of toolItems(data))
71
+ if (isToolFileRef(item))
72
+ hashes.add(refHash2(item.uri));
73
+ }
64
74
  }
65
75
  var unavailable = (mime, name) => `[media unavailable: ${name === undefined ? mime : `${name} (${mime})`}]`;
66
76
  function unavailableFile(file) {
@@ -116,10 +126,9 @@ function rewriteInbox(row, file) {
116
126
  return { ...row, payload: { ...payload, files: payload.files.map(file) } };
117
127
  }
118
128
  var load = Effect.fnUntraced(function* (db, hashes) {
119
- const all = [...hashes];
120
129
  const blobs = new Map;
121
- for (let offset = 0;offset < all.length; offset += 500) {
122
- const found = yield* db.select({ hash: BlobTable2.hash, data: BlobTable2.data }).from(BlobTable2).where(inArray(BlobTable2.hash, all.slice(offset, offset + 500))).all().pipe(Effect.orDie);
130
+ for (const batch of batches2([...hashes], 1)) {
131
+ const found = yield* db.select({ hash: BlobTable2.hash, data: BlobTable2.data }).from(BlobTable2).where(inArray(BlobTable2.hash, batch)).all().pipe(Effect.orDie);
123
132
  for (const blob of found)
124
133
  blobs.set(blob.hash, view(blob.data).toString("base64"));
125
134
  }
@@ -160,9 +169,8 @@ var keepInboxRefs2 = Effect.fnUntraced(function* (db, rows) {
160
169
  });
161
170
  var loadMeta = Effect.fnUntraced(function* (db, hashes) {
162
171
  const meta = new Map;
163
- const all = [...hashes];
164
- for (let offset = 0;offset < all.length; offset += 500) {
165
- const found = yield* db.select({ hash: BlobTable2.hash, bytes: BlobTable2.bytes, width: BlobTable2.width, height: BlobTable2.height }).from(BlobTable2).where(and(inArray(BlobTable2.hash, all.slice(offset, offset + 500)), exists(db.select({ one: sql`1` }).from(BlobRefTable2).where(eq(BlobRefTable2.hash, BlobTable2.hash))))).all().pipe(Effect.orDie);
172
+ for (const batch of batches2([...hashes], 1)) {
173
+ const found = yield* db.select({ hash: BlobTable2.hash, bytes: BlobTable2.bytes, width: BlobTable2.width, height: BlobTable2.height }).from(BlobTable2).where(and(inArray(BlobTable2.hash, batch), exists(db.select({ one: sql`1` }).from(BlobRefTable2).where(eq(BlobRefTable2.hash, BlobTable2.hash))))).all().pipe(Effect.orDie);
166
174
  for (const { hash, ...rest } of found)
167
175
  meta.set(hash, rest);
168
176
  }
@@ -191,7 +199,7 @@ var read4 = Effect.fnUntraced(function* (db, hash) {
191
199
  });
192
200
  var hashBytes2 = (raw) => createHash("sha256").update(raw).digest("hex");
193
201
  var enabled2 = Effect.gen(function* () {
194
- const config = yield* Effect.serviceOption(Service73);
202
+ const config = yield* Effect.serviceOption(Service75);
195
203
  if (Option.isNone(config))
196
204
  return false;
197
205
  return latest2(yield* config.value.entries(), "experimental")?.media_blob === true;
@@ -226,9 +234,8 @@ function toolPartRefs(pending, part) {
226
234
  return { ...part, state: { ...part.state, content: map(content, (item) => toolRef(pending, item)) } };
227
235
  }
228
236
  var save2 = Effect.fnUntraced(function* (db, blobs) {
229
- if (blobs.length === 0)
230
- return;
231
- yield* db.insert(BlobTable2).values([...blobs]).onConflictDoNothing().run().pipe(Effect.orDie);
237
+ for (const batch of insertBatches2(BlobTable2, blobs))
238
+ yield* db.insert(BlobTable2).values(batch).onConflictDoNothing().run().pipe(Effect.orDie);
232
239
  });
233
240
  var externalizePayload2 = Effect.fnUntraced(function* (db, input) {
234
241
  if (input.files === undefined || !(yield* enabled2))
@@ -252,6 +259,16 @@ var externalize2 = Effect.fnUntraced(function* (db, message) {
252
259
  yield* save2(db, [...pending.values()]);
253
260
  return { ...message, content };
254
261
  });
262
+ var externalizePart2 = Effect.fnUntraced(function* (db, part) {
263
+ if (!(yield* enabled2))
264
+ return part;
265
+ const pending = new Map;
266
+ const stored = toolPartRefs(pending, part);
267
+ if (pending.size === 0)
268
+ return part;
269
+ yield* save2(db, [...pending.values()]);
270
+ return stored;
271
+ });
255
272
  var hashesOf = (data) => {
256
273
  const hashes = new Set;
257
274
  collect(data, hashes);
@@ -267,7 +284,7 @@ function storedPartRefs(pending, part) {
267
284
  }
268
285
  function split2(data) {
269
286
  const pending = new Map;
270
- const stored = "files" in data && data.files?.some((file) => !isFileRef(file)) ? { ...data, files: data.files.map((file) => fileRef(pending, file)) } : ("content" in data) ? { ...data, content: data.content.map((part) => storedPartRefs(pending, part)) } : data;
287
+ const stored = "files" in data && data.files?.some((file) => !isFileRef(file)) ? { ...data, files: data.files.map((file) => fileRef(pending, file)) } : ("content" in data) ? { ...data, content: data.content.map((part) => storedPartRefs(pending, part)) } : ("type" in data) && data.type === "tool" ? storedPartRefs(pending, data) : data;
271
288
  const result = pending.size > 0 ? stored : data;
272
289
  return { data: result, moved: pending.size > 0, blobs: [...pending.values()], hashes: hashesOf(result) };
273
290
  }
@@ -282,30 +299,38 @@ var recordRefs2 = Effect.fnUntraced(function* (db, owner, data) {
282
299
  yield* recordHashes2(db, owner, hashesOf(data));
283
300
  });
284
301
  var recordHashes2 = Effect.fnUntraced(function* (db, owner, hashes) {
285
- if (hashes.size === 0)
286
- return;
287
- const found = yield* db.select({ hash: BlobTable2.hash }).from(BlobTable2).where(inArray(BlobTable2.hash, [...hashes])).all().pipe(Effect.orDie);
288
- if (found.length === 0)
289
- return;
290
- yield* db.insert(BlobRefTable2).values(found.map(({ hash }) => ({ session_id: owner.sessionID, message_id: owner.messageID, hash, seq: owner.seq }))).onConflictDoUpdate({
291
- target: [BlobRefTable2.session_id, BlobRefTable2.message_id, BlobRefTable2.hash],
292
- set: { seq: owner.seq }
293
- }).run().pipe(Effect.orDie);
302
+ const found = [];
303
+ for (const batch of batches2([...hashes], 1))
304
+ found.push(...yield* db.select({ hash: BlobTable2.hash }).from(BlobTable2).where(inArray(BlobTable2.hash, batch)).all().pipe(Effect.orDie));
305
+ const refs = found.map(({ hash }) => ({
306
+ session_id: owner.sessionID,
307
+ message_id: owner.messageID,
308
+ hash,
309
+ seq: owner.seq
310
+ }));
311
+ for (const batch of insertBatches2(BlobRefTable2, refs, 1))
312
+ yield* db.insert(BlobRefTable2).values(batch).onConflictDoUpdate({
313
+ target: [BlobRefTable2.session_id, BlobRefTable2.message_id, BlobRefTable2.hash],
314
+ set: { seq: owner.seq }
315
+ }).run().pipe(Effect.orDie);
294
316
  });
295
317
  var syncRefs2 = Effect.fnUntraced(function* (db, owner, data) {
296
318
  yield* recordRefs2(db, owner, data);
297
- const present = [...hashesOf(data)];
319
+ const present = hashesOf(data);
298
320
  const own = [eq(BlobRefTable2.session_id, owner.sessionID), eq(BlobRefTable2.message_id, owner.messageID)];
299
- yield* present.length === 0 ? release(db, ...own) : release(db, ...own, notInArray(BlobRefTable2.hash, present));
321
+ if (present.size === 0)
322
+ return yield* release(db, ...own);
323
+ const stale = (yield* db.select({ hash: BlobRefTable2.hash }).from(BlobRefTable2).where(and(...own)).all().pipe(Effect.orDie)).flatMap((ref) => present.has(ref.hash) ? [] : [ref.hash]);
324
+ for (const batch of batches2(stale, 1, own.length))
325
+ yield* release(db, ...own, inArray(BlobRefTable2.hash, batch));
300
326
  });
301
327
  var release = Effect.fnUntraced(function* (db, ...where) {
302
328
  const released = yield* db.delete(BlobRefTable2).where(and(...where)).returning({ hash: BlobRefTable2.hash }).all().pipe(Effect.orDie);
303
- const hashes = [...new Set(released.map((ref) => ref.hash))];
304
- for (let offset = 0;offset < hashes.length; offset += 500)
305
- yield* db.delete(BlobTable2).where(and(inArray(BlobTable2.hash, hashes.slice(offset, offset + 500)), notExists(db.select({ one: sql`1` }).from(BlobRefTable2).where(eq(BlobRefTable2.hash, BlobTable2.hash))))).run().pipe(Effect.orDie);
329
+ for (const batch of batches2([...new Set(released.map((ref) => ref.hash))], 1))
330
+ yield* db.delete(BlobTable2).where(and(inArray(BlobTable2.hash, batch), notExists(db.select({ one: sql`1` }).from(BlobRefTable2).where(eq(BlobRefTable2.hash, BlobTable2.hash))))).run().pipe(Effect.orDie);
306
331
  });
307
332
  var releaseMessage2 = (db, sessionID, messageID) => release(db, eq(BlobRefTable2.session_id, sessionID), eq(BlobRefTable2.message_id, messageID));
308
333
  var releaseFrom2 = (db, sessionID, seq) => release(db, eq(BlobRefTable2.session_id, sessionID), gte(BlobRefTable2.seq, seq));
309
334
  var releaseSession2 = (db, sessionID) => release(db, eq(BlobRefTable2.session_id, sessionID));
310
335
 
311
- export { hydrate2, hydrateInbox2, keepRefs2, keepInboxRefs2, describe3, read4, hashBytes2, enabled2, enabledFor2, ForkMedia2, save2, externalizePayload2, externalize2, split2, externalizeRow2, recordRefs2, recordHashes2, syncRefs2, releaseMessage2, releaseFrom2, releaseSession2, exports_blob };
336
+ export { hydrate2, hydrateInbox2, keepRefs2, keepInboxRefs2, describe3, read4, hashBytes2, enabled2, enabledFor2, ForkMedia2, save2, externalizePayload2, externalize2, externalizePart2, split2, externalizeRow2, recordRefs2, recordHashes2, syncRefs2, releaseMessage2, releaseFrom2, releaseSession2, exports_blob };
@@ -1,27 +1,27 @@
1
1
  import {
2
2
  Service91
3
- } from "./tool-2r8wnwkh.js";
3
+ } from "./state-sqv6sja0.js";
4
4
  import {
5
- Service42
6
- } from "./tool-4bwthz3m.js";
5
+ Service53
6
+ } from "./state-ceq6pwch.js";
7
7
  import {
8
8
  awaitActivation2
9
- } from "./tool-6zjm2phc.js";
9
+ } from "./state-ev660z6k.js";
10
10
  import {
11
11
  preview2
12
- } from "./tool-wmndttsw.js";
12
+ } from "./state-mq99xgvr.js";
13
13
  import {
14
14
  baseTranscript2
15
- } from "./tool-qxs6496v.js";
15
+ } from "./state-2yg9jg90.js";
16
16
  import {
17
- Service27
18
- } from "./tool-nezv9r4s.js";
17
+ Service30
18
+ } from "./state-k1xhm3vy.js";
19
19
  import {
20
20
  retry2
21
- } from "./tool-wnhgecwx.js";
21
+ } from "./state-wnhgecwx.js";
22
22
  import {
23
23
  __export
24
- } from "./tool-9rqn6x4v.js";
24
+ } from "./state-9rqn6x4v.js";
25
25
 
26
26
  // src/session/generate.ts
27
27
  var exports_generate2 = {};
@@ -32,12 +32,12 @@ __export(exports_generate2, {
32
32
  import { LLMClient, Message } from "@opencode/ai/effect";
33
33
  import { Effect } from "effect";
34
34
  var generate2 = Effect.fn("SessionGenerate.generate")(function* (input) {
35
- const instances = yield* Service42;
35
+ const instances = yield* Service53;
36
36
  const database = yield* Service91;
37
37
  const llm = yield* LLMClient.Service;
38
38
  return yield* Effect.gen(function* () {
39
39
  yield* awaitActivation2;
40
- const context = yield* Service27;
40
+ const context = yield* Service30;
41
41
  const selection = yield* context.select(input.session.id);
42
42
  const model = yield* context.resolveModel(selection.session);
43
43
  const history = yield* preview2(database.db, selection.session.id, selection.instructions, model.ref);
@@ -1,18 +1,18 @@
1
1
  import {
2
2
  Service90
3
- } from "./tool-5r3wrmp5.js";
3
+ } from "./state-dv6nbphe.js";
4
4
  import {
5
- Event18
6
- } from "./tool-3pkw540f.js";
5
+ Event20
6
+ } from "./state-xf3wmjdz.js";
7
7
  import {
8
8
  key2
9
- } from "./tool-6dqyy18z.js";
9
+ } from "./state-6dqyy18z.js";
10
10
  import {
11
11
  interval2
12
- } from "./tool-djadtdmr.js";
12
+ } from "./state-64eehrrp.js";
13
13
  import {
14
14
  __export
15
- } from "./tool-9rqn6x4v.js";
15
+ } from "./state-9rqn6x4v.js";
16
16
 
17
17
  // src/plugin/provider/refresh.ts
18
18
  var exports_refresh = {};
@@ -26,7 +26,7 @@ __export(exports_refresh, {
26
26
  import { Duration, Effect, Equal, Fiber, FiberHandle, Semaphore, Stream } from "effect";
27
27
  var onSwitch2 = (integrationID, effect) => Effect.gen(function* () {
28
28
  const bus = yield* Service90;
29
- yield* bus.subscribe(Event18.Switched).pipe(Stream.filter((event) => event.data.integrationID === integrationID), Stream.runForEach(() => effect), Effect.forkScoped({ startImmediately: true }));
29
+ yield* bus.subscribe(Event20.Switched).pipe(Stream.filter((event) => event.data.integrationID === integrationID), Stream.runForEach(() => effect), Effect.forkScoped({ startImmediately: true }));
30
30
  });
31
31
  var reloadIfChanged2 = (load, reload) => load.pipe(Effect.flatMap((changed) => changed ? reload : Effect.void));
32
32
  var switched2 = (load, apply) => Effect.gen(function* () {
@@ -1,18 +1,18 @@
1
1
  import {
2
2
  webSocketConstructor2
3
- } from "./tool-0ma9gw4f.js";
3
+ } from "./state-0ma9gw4f.js";
4
4
  import {
5
5
  __export
6
- } from "./tool-9rqn6x4v.js";
6
+ } from "./state-9rqn6x4v.js";
7
7
 
8
8
  // src/session/model-transport.ts
9
9
  var exports_model_transport = {};
10
10
  __export(exports_model_transport, {
11
- Service: () => Service34,
11
+ Service: () => Service40,
12
12
  SessionModelTransport: () => exports_model_transport,
13
- layer: () => layer14,
13
+ layer: () => layer18,
14
14
  makeLayer: () => makeLayer2,
15
- node: () => node37
15
+ node: () => node45
16
16
  });
17
17
  import {
18
18
  WebSocketTransport
@@ -33,7 +33,7 @@ var events = Metric.counter("opencode_session_websocket_events_total", {
33
33
  });
34
34
  var metric = (event, attributes = {}) => Metric.update(events.pipe(Metric.withAttributes({ event, ...attributes })), 1);
35
35
 
36
- class Service34 extends Context.Service()("@opencode/SessionModelTransport") {
36
+ class Service40 extends Context.Service()("@opencode/SessionModelTransport") {
37
37
  }
38
38
  var transportError = (message, input) => new AIError({
39
39
  reason: new TransportError({ message, transport: "websocket", ...input })
@@ -57,7 +57,7 @@ var observationFrame = (observation) => {
57
57
  return Effect.fail(observation.error);
58
58
  };
59
59
  var observationTerminal = (observation) => observation.type !== "frame";
60
- var makeLayer2 = (connector) => Layer.effect(Service34, Effect.gen(function* () {
60
+ var makeLayer2 = (connector) => Layer.effect(Service40, Effect.gen(function* () {
61
61
  const scope = yield* Scope.Scope;
62
62
  const states = new Map;
63
63
  const state = (sessionID) => {
@@ -367,11 +367,11 @@ var makeLayer2 = (connector) => Layer.effect(Service34, Effect.gen(function* ()
367
367
  }, { discard: true });
368
368
  });
369
369
  yield* Effect.addFinalizer(() => closeAll);
370
- return Service34.of({ bind, close, closeAll });
370
+ return Service40.of({ bind, close, closeAll });
371
371
  }));
372
- var layer14 = Layer.unwrap(Effect.map(Socket.WebSocketConstructor, (constructor) => makeLayer2({
372
+ var layer18 = Layer.unwrap(Effect.map(Socket.WebSocketConstructor, (constructor) => makeLayer2({
373
373
  open: (input) => WebSocketTransport.open(input).pipe(Effect.provideService(Socket.WebSocketConstructor, constructor))
374
374
  })));
375
- var node37 = makeGlobalNode({ service: Service34, layer: layer14, deps: [webSocketConstructor2] });
375
+ var node45 = makeGlobalNode({ service: Service40, layer: layer18, deps: [webSocketConstructor2] });
376
376
 
377
- export { Service34, makeLayer2, layer14, node37, exports_model_transport };
377
+ export { Service40, makeLayer2, layer18, node45, exports_model_transport };
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  __export
3
- } from "./tool-9rqn6x4v.js";
3
+ } from "./state-9rqn6x4v.js";
4
4
 
5
5
  // src/plugin/provider/claude-agent/sync/fingerprint.ts
6
6
  var exports_fingerprint = {};
@@ -1,14 +1,14 @@
1
1
  import {
2
2
  __export
3
- } from "./tool-9rqn6x4v.js";
3
+ } from "./state-9rqn6x4v.js";
4
4
 
5
5
  // src/plugin/provider/claude-agent/tools/hooks.ts
6
6
  var exports_hooks = {};
7
7
  __export(exports_hooks, {
8
8
  ToolHooks: () => exports_hooks,
9
- make: () => make13
9
+ make: () => make11
10
10
  });
11
- function make13(pending) {
11
+ function make11(pending) {
12
12
  const before = async (input) => {
13
13
  if (input.hook_event_name === "PreToolUse")
14
14
  pending.before(input.tool_use_id, input.tool_name);
@@ -28,4 +28,4 @@ function make13(pending) {
28
28
  };
29
29
  }
30
30
 
31
- export { make13, exports_hooks };
31
+ export { make11, exports_hooks };
@@ -1,27 +1,27 @@
1
1
  import {
2
2
  Service90,
3
3
  node94
4
- } from "./tool-5r3wrmp5.js";
4
+ } from "./state-dv6nbphe.js";
5
5
  import {
6
6
  shutdown2,
7
7
  create4
8
- } from "./tool-40y6dtc2.js";
8
+ } from "./state-40y6dtc2.js";
9
9
  import {
10
10
  key2
11
- } from "./tool-6dqyy18z.js";
11
+ } from "./state-6dqyy18z.js";
12
12
  import {
13
13
  ID17,
14
- Service77,
15
- node80,
16
- Event16
17
- } from "./tool-s9m725b8.js";
14
+ Service82,
15
+ node85,
16
+ Event18
17
+ } from "./state-3rhkght6.js";
18
18
  import {
19
- Service85,
20
- node89
21
- } from "./tool-y3bjyseh.js";
19
+ Service87,
20
+ node91
21
+ } from "./state-gtrj8c21.js";
22
22
  import {
23
23
  __export
24
- } from "./tool-9rqn6x4v.js";
24
+ } from "./state-9rqn6x4v.js";
25
25
 
26
26
  // src/provider.ts
27
27
  var exports_provider5 = {};
@@ -31,13 +31,13 @@ __export(exports_provider5, {
31
31
  Compaction: () => Compaction3,
32
32
  DEFAULT_CHUNK_TIMEOUT_MS: () => DEFAULT_CHUNK_TIMEOUT_MS2,
33
33
  DEFAULT_TIMEOUT_MS: () => DEFAULT_TIMEOUT_MS3,
34
- Event: () => Event15,
34
+ Event: () => Event17,
35
35
  ID: () => ID16,
36
36
  Info: () => Info24,
37
37
  LoadError: () => LoadError3,
38
38
  Provider: () => exports_provider5,
39
39
  Request: () => Request4,
40
- Service: () => Service76,
40
+ Service: () => Service81,
41
41
  Settings: () => Settings2,
42
42
  Transport: () => Transport2,
43
43
  aisdk: () => aisdk2,
@@ -49,7 +49,7 @@ __export(exports_provider5, {
49
49
  mergeOverlay: () => mergeOverlay2,
50
50
  modelSettings: () => modelSettings2,
51
51
  nativeSettings: () => nativeSettings2,
52
- node: () => node79,
52
+ node: () => node84,
53
53
  packageName: () => packageName2,
54
54
  timeout: () => timeout2,
55
55
  timeouts: () => timeouts2
@@ -331,7 +331,7 @@ var Legacy = Schema.StructWithRest(Schema.Struct({
331
331
  var decode = Schema.decodeUnknownSync(Legacy);
332
332
 
333
333
  // src/provider.ts
334
- import { Event as Event15 } from "@opencode/schema/provider";
334
+ import { Event as Event17 } from "@opencode/schema/provider";
335
335
  var ID16 = Provider.ID;
336
336
  var AISDK_PREFIX2 = "aisdk:";
337
337
  var isAISDK2 = (value) => value?.startsWith(AISDK_PREFIX2) ?? false;
@@ -579,7 +579,7 @@ var Transport2 = Provider.Transport;
579
579
  var Settings2 = Provider.Settings;
580
580
  var Info24 = Provider.Info;
581
581
 
582
- class Service76 extends Context.Service()("@opencode/Provider") {
582
+ class Service81 extends Context.Service()("@opencode/Provider") {
583
583
  }
584
584
  var definitions = new WeakMap;
585
585
  function index(providerID, models) {
@@ -592,10 +592,10 @@ function index(providerID, models) {
592
592
  definitions.set(models, indexes);
593
593
  return result;
594
594
  }
595
- var layer = Layer.effect(Service76, Effect2.gen(function* () {
595
+ var layer = Layer.effect(Service81, Effect2.gen(function* () {
596
596
  const bus = yield* Service90;
597
- const integrations = yield* Service77;
598
- const location = yield* Service85;
597
+ const integrations = yield* Service82;
598
+ const location = yield* Service87;
599
599
  const state = create4({
600
600
  name: "provider",
601
601
  initial: () => new Map,
@@ -713,8 +713,8 @@ var layer = Layer.effect(Service76, Effect2.gen(function* () {
713
713
  location: { directory: location.directory, workspaceID: location.workspaceID }
714
714
  });
715
715
  });
716
- yield* bus.subscribe([Event16.Updated, Credential.Event.Switched]).pipe(Stream.runForEach(() => notify), Effect2.forkScoped({ startImmediately: true }));
717
- return Service76.of({
716
+ yield* bus.subscribe([Event18.Updated, Credential.Event.Switched]).pipe(Stream.runForEach(() => notify), Effect2.forkScoped({ startImmediately: true }));
717
+ return Service81.of({
718
718
  transform: state.transform,
719
719
  reload: state.reload,
720
720
  get: Effect2.fn("Provider.get")((id) => Effect2.sync(() => freeze(state.get().get(id)?.provider, true))),
@@ -723,7 +723,7 @@ var layer = Layer.effect(Service76, Effect2.gen(function* () {
723
723
  snapshot
724
724
  });
725
725
  }));
726
- var node79 = makeLocationNode({ service: Service76, layer, deps: [node94, node80, node89] });
726
+ var node84 = makeLocationNode({ service: Service81, layer, deps: [node94, node85, node91] });
727
727
  var importPackage = Effect2.fn("Provider.importPackage")(function* (specifier, entrypoint, load = () => importModule(entrypoint)) {
728
728
  const module = yield* Effect2.tryPromise({
729
729
  try: () => {
@@ -745,4 +745,4 @@ var importPackage = Effect2.fn("Provider.importPackage")(function* (specifier, e
745
745
  return module;
746
746
  });
747
747
 
748
- export { rewrite2, native2, exports_aisdk_native, ID16, AISDK_PREFIX2, isAISDK2, aisdk2, packageName2, LoadError3, builtinPackages2, loadPackage2, nativeSettings2, modelSettings2, DEFAULT_TIMEOUT_MS3, DEFAULT_CHUNK_TIMEOUT_MS2, timeout2, timeouts2, encoding2, mergeOverlay2, mergeHeaders2, Request4, Compaction3, Cache2, Transport2, Settings2, Info24, Service76, node79, exports_provider5, Event15 };
748
+ export { rewrite2, native2, exports_aisdk_native, ID16, AISDK_PREFIX2, isAISDK2, aisdk2, packageName2, LoadError3, builtinPackages2, loadPackage2, nativeSettings2, modelSettings2, DEFAULT_TIMEOUT_MS3, DEFAULT_CHUNK_TIMEOUT_MS2, timeout2, timeouts2, encoding2, mergeOverlay2, mergeHeaders2, Request4, Compaction3, Cache2, Transport2, Settings2, Info24, Service81, node84, exports_provider5, Event17 };
@@ -1,7 +1,7 @@
1
1
  // src/session/schema.ts
2
2
  import * as SessionSchema2 from "@opencode/schema/session";
3
3
  import { Session } from "@opencode/schema/session";
4
- var ID13 = Session.ID;
5
- var Info16 = Session.Info;
4
+ var ID14 = Session.ID;
5
+ var Info22 = Session.Info;
6
6
 
7
- export { ID13, Info16, SessionSchema2 };
7
+ export { ID14, Info22, SessionSchema2 };
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  getTableColumnsRuntime2,
3
3
  orderSelectedFields2
4
- } from "./tool-emrn6kk6.js";
4
+ } from "./state-emrn6kk6.js";
5
5
 
6
6
  // src/database/drizzle/sqlite-core/effect/delete.ts
7
7
  import { applyEffectWrapper } from "drizzle-orm/effect-core/query-effect";
@@ -1,12 +1,12 @@
1
1
  import {
2
2
  __export
3
- } from "./tool-9rqn6x4v.js";
3
+ } from "./state-9rqn6x4v.js";
4
4
 
5
5
  // src/environment/unavailable.ts
6
6
  var exports_unavailable = {};
7
7
  __export(exports_unavailable, {
8
8
  EnvironmentUnavailable: () => exports_unavailable,
9
- layer: () => layer8,
9
+ layer: () => layer6,
10
10
  spawner: () => spawner2
11
11
  });
12
12
  import { Effect, Layer, PlatformError } from "effect";
@@ -17,6 +17,6 @@ var spawner2 = make(() => Effect.fail(PlatformError.systemError({
17
17
  method: "spawn",
18
18
  description: "This location has no execution plane: no workspace is attached and the host cannot spawn processes"
19
19
  })));
20
- var layer8 = Layer.succeed(ChildProcessSpawner, spawner2);
20
+ var layer6 = Layer.succeed(ChildProcessSpawner, spawner2);
21
21
 
22
- export { spawner2, layer8, exports_unavailable };
22
+ export { spawner2, layer6, exports_unavailable };
@@ -1,39 +1,39 @@
1
1
  import {
2
2
  Service90,
3
3
  node94
4
- } from "./tool-5r3wrmp5.js";
4
+ } from "./state-dv6nbphe.js";
5
5
  import {
6
- Service36,
7
- node39
8
- } from "./tool-2s7a5cr8.js";
6
+ Service37,
7
+ node42
8
+ } from "./state-f9hnarx8.js";
9
9
  import {
10
10
  isTextual2
11
- } from "./tool-4pyp9zr9.js";
11
+ } from "./state-4pyp9zr9.js";
12
12
  import {
13
13
  invocation2,
14
14
  CorrectedError2,
15
15
  BlockedError2,
16
- Service66,
17
- node69
18
- } from "./tool-eqkq82nh.js";
16
+ Service71,
17
+ node74
18
+ } from "./state-v157w7rk.js";
19
19
  import {
20
20
  normalizedName2,
21
21
  effectiveName2
22
- } from "./tool-z0h12gs8.js";
22
+ } from "./state-z0h12gs8.js";
23
23
  import {
24
- Service62,
25
- node66
26
- } from "./tool-xr7xm7qf.js";
24
+ Service56,
25
+ node59
26
+ } from "./state-yw8h6eng.js";
27
27
  import {
28
- Service48,
29
- node50
30
- } from "./tool-y4rkeds0.js";
28
+ Service65,
29
+ node68
30
+ } from "./state-b3j5jf8z.js";
31
31
  import {
32
32
  MEDIA_MIMES2
33
- } from "./tool-5eh5vnwa.js";
33
+ } from "./state-bbqav1wc.js";
34
34
  import {
35
35
  __export
36
- } from "./tool-9rqn6x4v.js";
36
+ } from "./state-9rqn6x4v.js";
37
37
 
38
38
  // src/tool/mcp.ts
39
39
  var exports_mcp3 = {};
@@ -41,9 +41,9 @@ __export(exports_mcp3, {
41
41
  McpTool: () => exports_mcp3,
42
42
  Service: () => Service35,
43
43
  layer: () => layer15,
44
- name: () => name16,
44
+ name: () => name15,
45
45
  namespace: () => namespace2,
46
- node: () => node38
46
+ node: () => node40
47
47
  });
48
48
  import { ToolFailure } from "@opencode/ai/effect";
49
49
  import { McpEvent } from "@opencode/schema/mcp-event";
@@ -52,16 +52,16 @@ import { makeLocationNode } from "@opencode/util/effect/app-node";
52
52
  import { extension } from "mime-types";
53
53
  var decodeJson = Schema.decodeUnknownOption(Schema.fromJsonString(Schema.Unknown));
54
54
  var namespace2 = (server) => normalizedName2({ name: server });
55
- var name16 = (server, tool) => effectiveName2({ name: tool, options: { namespace: namespace2(server) } });
55
+ var name15 = (server, tool) => effectiveName2({ name: tool, options: { namespace: namespace2(server) } });
56
56
 
57
57
  class Service35 extends Context.Service()("@opencode/McpTool") {
58
58
  }
59
59
  var layer15 = Layer.effect(Service35, Effect.gen(function* () {
60
- const mcp = yield* Service36;
61
- const tools = yield* Service62;
60
+ const mcp = yield* Service37;
61
+ const tools = yield* Service56;
62
62
  const bus = yield* Service90;
63
- const permission = yield* Service66;
64
- const toolOutput = yield* Service48;
63
+ const permission = yield* Service71;
64
+ const toolOutput = yield* Service65;
65
65
  const lock = Semaphore.makeUnsafe(1);
66
66
  let discovered = [];
67
67
  const initial = yield* lock.withPermit(Effect.gen(function* () {
@@ -76,7 +76,7 @@ var layer15 = Layer.effect(Service35, Effect.gen(function* () {
76
76
  output: tool.outputSchema ?? {},
77
77
  execute: (input, context) => Effect.gen(function* () {
78
78
  yield* permission.assert({
79
- action: name16(tool.server, tool.name),
79
+ action: name15(tool.server, tool.name),
80
80
  resources: ["*"],
81
81
  save: ["*"],
82
82
  metadata: { input: input ?? {} },
@@ -119,7 +119,7 @@ var layer15 = Layer.effect(Service35, Effect.gen(function* () {
119
119
  return new ToolFailure({ message: error.message, error });
120
120
  if (error instanceof CorrectedError2)
121
121
  return new ToolFailure({ message: error.feedback, error });
122
- return new ToolFailure({ message: `Unable to execute ${name16(tool.server, tool.name)}`, error });
122
+ return new ToolFailure({ message: `Unable to execute ${name15(tool.server, tool.name)}`, error });
123
123
  }))
124
124
  });
125
125
  }
@@ -161,10 +161,10 @@ ${bytes.toString("utf8")}` };
161
161
  text: `[Binary resource ${label} (${part.mimeType}, ${bytes.byteLength} bytes) saved to ${file}]`
162
162
  };
163
163
  });
164
- var node38 = makeLocationNode({
164
+ var node40 = makeLocationNode({
165
165
  service: Service35,
166
166
  layer: layer15,
167
- deps: [node66, node39, node94, node69, node50]
167
+ deps: [node59, node42, node94, node74, node68]
168
168
  });
169
169
 
170
- export { namespace2, name16, Service35, layer15, node38, exports_mcp3 };
170
+ export { namespace2, name15, Service35, layer15, node40, exports_mcp3 };