@opencode/core 0.0.0-dev-482 → 0.0.0-dev-513

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 (951) hide show
  1. package/dist/account/sql.js +1 -1
  2. package/dist/agent.js +90 -90
  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 +242 -241
  7. package/dist/bus.js +84 -84
  8. package/dist/chunks/{location-7tt9v2zf.js → pty-0023dqyf.js} +37 -41
  9. package/dist/chunks/{location-xjbsd7zy.js → pty-04whjz6n.js} +9 -9
  10. package/dist/chunks/{location-phsdbd2h.js → pty-06x2tb2z.js} +42 -47
  11. package/dist/chunks/{location-6dk0e5c5.js → pty-08bhk29w.js} +80 -87
  12. package/dist/chunks/{location-cpf1ce0h.js → pty-0afnvty9.js} +28 -36
  13. package/dist/chunks/{location-sqjzf8x2.js → pty-0j7gp832.js} +4 -4
  14. package/dist/chunks/{location-1serdbm0.js → pty-0jr76kac.js} +30 -30
  15. package/dist/chunks/{location-0ma9gw4f.js → pty-0ma9gw4f.js} +2 -2
  16. package/dist/chunks/{location-s8wwhb0c.js → pty-0qfwrc6c.js} +13 -10
  17. package/dist/chunks/{location-v8114j4p.js → pty-0te9byq8.js} +41 -62
  18. package/dist/chunks/pty-0zjr29y6.js +86 -0
  19. package/dist/chunks/{location-1aqsckx4.js → pty-1aqsckx4.js} +1 -1
  20. package/dist/chunks/{location-ytjw7m49.js → pty-1er6rw3f.js} +9 -9
  21. package/dist/chunks/{location-nbw5wvhd.js → pty-1fa7jad0.js} +19 -19
  22. package/dist/chunks/{location-c09c9xx3.js → pty-1p367p45.js} +19 -17
  23. package/dist/chunks/pty-1t1eb7kp.js +28 -0
  24. package/dist/chunks/{location-1x2knyw4.js → pty-1x2knyw4.js} +1 -1
  25. package/dist/chunks/pty-208nbn7x.js +16 -0
  26. package/dist/chunks/{location-rrym2d7k.js → pty-24cv518k.js} +9 -9
  27. package/dist/chunks/{location-5kwzkdf2.js → pty-2518a6av.js} +18 -18
  28. package/dist/chunks/{location-1ep2p91f.js → pty-27w5k9zf.js} +2 -2
  29. package/dist/chunks/{location-988q4p70.js → pty-288dktsv.js} +4 -4
  30. package/dist/chunks/{location-9abj58ej.js → pty-28tn5j34.js} +13 -13
  31. package/dist/chunks/{location-9f7zehfv.js → pty-2awgd92s.js} +9 -7
  32. package/dist/chunks/{location-f4y3d2yt.js → pty-2ks6fys2.js} +16 -16
  33. package/dist/chunks/{location-2p60zmnr.js → pty-2p60zmnr.js} +2 -2
  34. package/dist/chunks/{location-k9g0cjwj.js → pty-2rvvwxmf.js} +5 -5
  35. package/dist/chunks/{location-rzgk87mw.js → pty-2tcca9zd.js} +26 -26
  36. package/dist/chunks/{location-38ys11y3.js → pty-2xwkyk0m.js} +5 -5
  37. package/dist/chunks/{location-wq4p4nz0.js → pty-2y6sjp8j.js} +10 -10
  38. package/dist/chunks/{location-x8b2j0eq.js → pty-392kfhz5.js} +9 -9
  39. package/dist/chunks/{location-jget9c6q.js → pty-39w45v6e.js} +11 -11
  40. package/dist/chunks/{location-txkgt4s1.js → pty-3b7wqyfh.js} +107 -127
  41. package/dist/chunks/{location-ayjs7tqn.js → pty-3cbjf1nt.js} +2 -2
  42. package/dist/chunks/{location-5gesekxb.js → pty-3dn304yc.js} +8 -8
  43. package/dist/chunks/{location-tyc6z1sz.js → pty-3fyhdc57.js} +29 -29
  44. package/dist/chunks/{location-3hepkmqq.js → pty-3hepkmqq.js} +1 -1
  45. package/dist/chunks/{location-tmc7xdjs.js → pty-3nnrz6f6.js} +4 -4
  46. package/dist/chunks/{location-add59bdf.js → pty-3wb7g1gt.js} +2 -2
  47. package/dist/chunks/{location-40y6dtc2.js → pty-40y6dtc2.js} +1 -1
  48. package/dist/chunks/{location-44pmzq9c.js → pty-44pmzq9c.js} +2 -2
  49. package/dist/chunks/{location-bdtb8h02.js → pty-488wrreq.js} +15 -15
  50. package/dist/chunks/{location-4dx1dgte.js → pty-4dx1dgte.js} +1 -1
  51. package/dist/chunks/{location-4f25tdd0.js → pty-4f25tdd0.js} +1 -1
  52. package/dist/chunks/{location-4pyp9zr9.js → pty-4pyp9zr9.js} +1 -1
  53. package/dist/chunks/{location-dvn4vb83.js → pty-4r9sfa39.js} +14 -14
  54. package/dist/chunks/{location-fc12czj4.js → pty-4rj068ra.js} +3 -3
  55. package/dist/chunks/{location-dzxh8mds.js → pty-4rv3z8zz.js} +33 -60
  56. package/dist/chunks/{location-4v008n1t.js → pty-4v008n1t.js} +1 -1
  57. package/dist/chunks/{location-vex3khmr.js → pty-50j5ra4n.js} +31 -32
  58. package/dist/chunks/{location-cz3wcpwd.js → pty-55858vys.js} +23 -23
  59. package/dist/chunks/{location-3jcyqs0x.js → pty-55tsekh9.js} +50 -50
  60. package/dist/chunks/{location-ph23jcdx.js → pty-5ar0v554.js} +11 -11
  61. package/dist/chunks/{location-9d2m9w7e.js → pty-5cmp3exa.js} +11 -11
  62. package/dist/chunks/{location-ewa1ec51.js → pty-5gheszdj.js} +6 -14
  63. package/dist/chunks/{location-5m9w47nd.js → pty-5m9w47nd.js} +1 -1
  64. package/dist/chunks/{location-7k96bt42.js → pty-5qs3xxfj.js} +12 -12
  65. package/dist/chunks/{location-rv7pwnv1.js → pty-6095q8tb.js} +33 -30
  66. package/dist/chunks/{location-9xfh3qx1.js → pty-654bsdn4.js} +11 -11
  67. package/dist/chunks/{location-chgv8zg3.js → pty-659k2zkq.js} +2 -2
  68. package/dist/chunks/{location-t8erkws8.js → pty-67zhfnr5.js} +5 -5
  69. package/dist/chunks/{location-0tydawpq.js → pty-6935jb0f.js} +18 -18
  70. package/dist/chunks/{location-xnvebmwh.js → pty-6a8kqfnf.js} +197 -212
  71. package/dist/chunks/{location-q65mdntm.js → pty-6dqyy18z.js} +4 -4
  72. package/dist/chunks/{location-zt6jbzn6.js → pty-6dtfbb2g.js} +25 -33
  73. package/dist/chunks/{location-xdff7p3p.js → pty-6f7774sy.js} +15 -15
  74. package/dist/chunks/{location-sk97y4pa.js → pty-76ek7j69.js} +6 -6
  75. package/dist/chunks/pty-77ehzzh1.js +45 -0
  76. package/dist/chunks/{location-7bmhse3q.js → pty-7bmhse3q.js} +1 -1
  77. package/dist/chunks/{location-vr233qkz.js → pty-7dp4g980.js} +49 -56
  78. package/dist/chunks/{location-9km3nys4.js → pty-7h22etv1.js} +5 -5
  79. package/dist/chunks/{location-hm0x9a2y.js → pty-7nsaabgw.js} +5 -5
  80. package/dist/chunks/{location-tg1vr1qt.js → pty-7tpyp9vw.js} +4 -4
  81. package/dist/chunks/{location-7w2ypzdf.js → pty-7w2ypzdf.js} +1 -1
  82. package/dist/chunks/{location-7weczvnd.js → pty-7weczvnd.js} +1 -1
  83. package/dist/chunks/{location-vkp5tjg3.js → pty-7y5ejeck.js} +75 -75
  84. package/dist/chunks/{location-775hqbnd.js → pty-80mg3ag8.js} +3 -3
  85. package/dist/chunks/{location-89287pr7.js → pty-89287pr7.js} +1 -1
  86. package/dist/chunks/{location-25h84942.js → pty-8b3vzgkx.js} +4 -4
  87. package/dist/chunks/{location-8cg7mtm3.js → pty-8cg7mtm3.js} +1 -1
  88. package/dist/chunks/{location-78z55vz9.js → pty-8n09hdvs.js} +8 -8
  89. package/dist/chunks/{location-r17fbvme.js → pty-8t99kr38.js} +4 -4
  90. package/dist/chunks/{location-rmv7fhs4.js → pty-8wjgamp7.js} +3 -3
  91. package/dist/chunks/{location-8wtp7s3z.js → pty-8wtp7s3z.js} +1 -1
  92. package/dist/chunks/{location-rw9z8c7r.js → pty-8yb9m984.js} +15 -15
  93. package/dist/chunks/{location-ys7rp9j6.js → pty-8ykbxn4t.js} +12 -12
  94. package/dist/chunks/{location-d390zwf3.js → pty-8ykqf5wm.js} +8 -8
  95. package/dist/chunks/{location-mb7mbhnz.js → pty-8z6m94af.js} +3 -3
  96. package/dist/chunks/{location-90zstvax.js → pty-90zstvax.js} +1 -1
  97. package/dist/chunks/{location-vz06f061.js → pty-9bxrat4n.js} +155 -151
  98. package/dist/chunks/{location-3dvadycf.js → pty-9cnt8tq7.js} +16 -17
  99. package/dist/chunks/{location-zzdpwr6m.js → pty-9h0cdvnk.js} +34 -34
  100. package/dist/chunks/{location-1jshsnt4.js → pty-9wenq46a.js} +11 -11
  101. package/dist/chunks/pty-9wydm227.js +69 -0
  102. package/dist/chunks/{location-efd7k9cd.js → pty-ab8ej67z.js} +5 -5
  103. package/dist/chunks/{location-034tev2y.js → pty-aj7mw0zk.js} +2 -2
  104. package/dist/chunks/{location-g5by8gkj.js → pty-ak5gz8d8.js} +6 -6
  105. package/dist/chunks/{location-ac9tw622.js → pty-apk2e2bs.js} +17 -17
  106. package/dist/chunks/{location-bbmkcywa.js → pty-awz4eek6.js} +9 -9
  107. package/dist/chunks/{location-kh9rtkn7.js → pty-ayz3ejvk.js} +57 -66
  108. package/dist/chunks/{location-fgj5a68r.js → pty-b2d6kd10.js} +25 -25
  109. package/dist/chunks/{location-x1bzrmrv.js → pty-b5ppfg7c.js} +67 -31
  110. package/dist/chunks/{location-5nnwax6m.js → pty-b6vsg801.js} +5 -5
  111. package/dist/chunks/{location-bpmnncyw.js → pty-b7q2kk65.js} +22 -33
  112. package/dist/chunks/{location-n2tjkr8q.js → pty-b7xq4dcs.js} +5 -6
  113. package/dist/chunks/pty-b8dwq97p.js +69 -0
  114. package/dist/chunks/{location-8sxe6kv8.js → pty-bb3mmwvh.js} +2 -2
  115. package/dist/chunks/{location-fygak80s.js → pty-be2xj2mn.js} +17 -17
  116. package/dist/chunks/{location-23mg205d.js → pty-bekm5p4a.js} +22 -22
  117. package/dist/chunks/{location-1pevy3nx.js → pty-bhmrqjy3.js} +12 -21
  118. package/dist/chunks/{location-3fqv35td.js → pty-bmy4z589.js} +11 -11
  119. package/dist/chunks/{location-484j8fpd.js → pty-bnr8j2y9.js} +28 -30
  120. package/dist/chunks/{location-vkx30h9m.js → pty-btjprcgw.js} +17 -17
  121. package/dist/chunks/{location-z6cfvfba.js → pty-bv0keema.js} +3 -3
  122. package/dist/chunks/{location-7xxafhkb.js → pty-c0a85cxq.js} +30 -30
  123. package/dist/chunks/{location-805dh4kb.js → pty-c0z0yn58.js} +16 -16
  124. package/dist/chunks/{location-9e6160nv.js → pty-c1gh3vn9.js} +46 -46
  125. package/dist/chunks/{location-nrczc6t4.js → pty-c3p97ra1.js} +22 -22
  126. package/dist/chunks/{location-tenkbk6f.js → pty-c3wwghza.js} +9 -9
  127. package/dist/chunks/{location-3ryz99p0.js → pty-c6x7d2ts.js} +4 -4
  128. package/dist/chunks/{location-bhfd478d.js → pty-cr4rfj9z.js} +4 -4
  129. package/dist/chunks/{location-cwrgdav8.js → pty-cwrgdav8.js} +2 -2
  130. package/dist/chunks/{location-gjzp0g0k.js → pty-cwwdfq61.js} +8 -8
  131. package/dist/chunks/{location-t6fwc9q0.js → pty-czhsb2q6.js} +25 -25
  132. package/dist/chunks/{location-d4v9tmah.js → pty-d4v9tmah.js} +2 -2
  133. package/dist/chunks/{location-rxzbcqxf.js → pty-da6gh99y.js} +2 -2
  134. package/dist/chunks/pty-dm24tqc7.js +42 -0
  135. package/dist/chunks/{location-dt77769w.js → pty-dt77769w.js} +1 -1
  136. package/dist/chunks/{location-vj50rhab.js → pty-e18eb6k2.js} +8 -8
  137. package/dist/chunks/{location-e45fk36t.js → pty-e45fk36t.js} +1 -1
  138. package/dist/chunks/{location-tv15tdwr.js → pty-e6hhhbsa.js} +28 -28
  139. package/dist/chunks/{location-e834z07m.js → pty-e834z07m.js} +1 -1
  140. package/dist/chunks/{location-01pgc6t1.js → pty-ea27ppw6.js} +7 -7
  141. package/dist/chunks/{location-wwa90kkq.js → pty-ea5kk55q.js} +9 -9
  142. package/dist/chunks/{location-swedj7af.js → pty-eab6qpsk.js} +23 -23
  143. package/dist/chunks/{location-xshjxwsy.js → pty-ebys333n.js} +8 -8
  144. package/dist/chunks/{location-eqw4pqj1.js → pty-eqw4pqj1.js} +2 -2
  145. package/dist/chunks/{location-ktsssdpw.js → pty-erfgee4t.js} +28 -28
  146. package/dist/chunks/{location-z3deh3n3.js → pty-etatbea9.js} +30 -30
  147. package/dist/chunks/pty-ezna1kdx.js +18 -0
  148. package/dist/chunks/{location-csmfmyj6.js → pty-f2cwqqap.js} +50 -70
  149. package/dist/chunks/{location-wzzmpzmb.js → pty-f6pp4qky.js} +46 -46
  150. package/dist/chunks/{location-4eqsjcsp.js → pty-f96z8a64.js} +13 -13
  151. package/dist/chunks/{location-nbcpa24h.js → pty-fdn86re1.js} +6 -6
  152. package/dist/chunks/{location-52g8y578.js → pty-fe97g4vx.js} +10 -10
  153. package/dist/chunks/{location-fffv3p7h.js → pty-fffv3p7h.js} +1 -1
  154. package/dist/chunks/{location-3r0vrc21.js → pty-fg52mjqa.js} +7 -7
  155. package/dist/chunks/{location-fg9p65nk.js → pty-fg9p65nk.js} +2 -2
  156. package/dist/chunks/{location-a5m75t4w.js → pty-fmyvpwrx.js} +14 -17
  157. package/dist/chunks/{location-629vq7qf.js → pty-fn274a08.js} +139 -226
  158. package/dist/chunks/{location-jv56tjdv.js → pty-fr031yhe.js} +21 -21
  159. package/dist/chunks/{location-5zvrjgbk.js → pty-frh3mjer.js} +24 -67
  160. package/dist/chunks/{location-zsxzvz5w.js → pty-fvf45ej9.js} +54 -69
  161. package/dist/chunks/{location-gnf80hfn.js → pty-fvwmbxrt.js} +5 -5
  162. package/dist/chunks/{location-4trnm1hn.js → pty-g1h0e984.js} +9 -10
  163. package/dist/chunks/{location-vnjc296t.js → pty-g1x3338p.js} +2 -2
  164. package/dist/chunks/{location-x2h3wh5t.js → pty-g2s3kvm8.js} +33 -36
  165. package/dist/chunks/{location-nd6ydzwa.js → pty-g9y97szr.js} +1 -1
  166. package/dist/chunks/{location-h7xy8a2s.js → pty-gapbp5pm.js} +3 -3
  167. package/dist/chunks/{location-gbjdnr5j.js → pty-gbjdnr5j.js} +2 -2
  168. package/dist/chunks/{location-2sck34ne.js → pty-gd52an9j.js} +23 -23
  169. package/dist/chunks/{location-671yt1fh.js → pty-ge41aakr.js} +20 -20
  170. package/dist/chunks/{location-rktfw7eb.js → pty-gh24x7dt.js} +10 -10
  171. package/dist/chunks/pty-ghrv1g9c.js +38 -0
  172. package/dist/chunks/{location-kbjg1c6q.js → pty-gmn6pm9k.js} +12 -12
  173. package/dist/chunks/{location-1zda8fgz.js → pty-gpqwk5ba.js} +8 -8
  174. package/dist/chunks/{location-8req33qf.js → pty-gqq2rd3z.js} +63 -69
  175. package/dist/chunks/{location-a5hjg2v1.js → pty-h16d3r43.js} +54 -59
  176. package/dist/chunks/{location-hpgfvtnm.js → pty-haj55tp1.js} +18 -18
  177. package/dist/chunks/{location-q08pa1nj.js → pty-hav9640s.js} +23 -23
  178. package/dist/chunks/{location-bvffa3bg.js → pty-hbvmt4xp.js} +4 -4
  179. package/dist/chunks/{location-ynygqj77.js → pty-he6fdh83.js} +4 -4
  180. package/dist/chunks/{location-tdrhngm4.js → pty-he8e2fqg.js} +24 -28
  181. package/dist/chunks/{location-5tc3n98b.js → pty-j1m6936b.js} +32 -32
  182. package/dist/chunks/{location-a0rbws35.js → pty-jbze84ed.js} +31 -39
  183. package/dist/chunks/{location-gyckkmpa.js → pty-jgktxrwk.js} +15 -15
  184. package/dist/chunks/{location-c13b592v.js → pty-jkmfd651.js} +37 -38
  185. package/dist/chunks/{location-wm4pme2q.js → pty-jraeh57d.js} +13 -13
  186. package/dist/chunks/{location-nkhc0b8e.js → pty-jw5816mk.js} +17 -17
  187. package/dist/chunks/{location-8j03m598.js → pty-k07ws8by.js} +6 -6
  188. package/dist/chunks/{location-z5v37w21.js → pty-k46dd5bg.js} +4 -4
  189. package/dist/chunks/{location-vp2t5zgg.js → pty-k634w52t.js} +26 -26
  190. package/dist/chunks/{location-d573hr5k.js → pty-k63t3j85.js} +11 -11
  191. package/dist/chunks/{location-2axvd6s3.js → pty-kazckff2.js} +81 -81
  192. package/dist/chunks/{location-qaxfcnsv.js → pty-kb91f2ce.js} +11 -11
  193. package/dist/chunks/{location-7kr66rt3.js → pty-kh8gdsej.js} +55 -92
  194. package/dist/chunks/{location-cavp24mx.js → pty-kjzwj302.js} +19 -19
  195. package/dist/chunks/{location-0vdywerr.js → pty-knrrsbj9.js} +25 -25
  196. package/dist/chunks/{location-37356421.js → pty-kq3sm1ep.js} +23 -23
  197. package/dist/chunks/{location-kt3bjfbg.js → pty-kt3bjfbg.js} +1 -1
  198. package/dist/chunks/{location-v6cyb2p5.js → pty-kthmjft2.js} +3 -3
  199. package/dist/chunks/{location-mf853z88.js → pty-kv7gpwre.js} +7 -7
  200. package/dist/chunks/{location-3w8s8xp3.js → pty-kvbbjz3k.js} +59 -59
  201. package/dist/chunks/{location-kzczzf4v.js → pty-kzczzf4v.js} +1 -1
  202. package/dist/chunks/{location-m1714858.js → pty-m1714858.js} +1 -1
  203. package/dist/chunks/{location-m9w0rfyh.js → pty-m9w0rfyh.js} +1 -1
  204. package/dist/chunks/{location-nhk04w5x.js → pty-mat0qw5s.js} +21 -21
  205. package/dist/chunks/{location-g2mgh60t.js → pty-mgcjyd9g.js} +18 -18
  206. package/dist/chunks/{location-badf1jx5.js → pty-mpb394t4.js} +41 -53
  207. package/dist/chunks/{location-e3rsyggn.js → pty-mqg1yz44.js} +21 -19
  208. package/dist/chunks/{location-1v2g13eq.js → pty-msd2a3qm.js} +4 -4
  209. package/dist/chunks/{location-43s7a0t3.js → pty-mypzkbjq.js} +17 -17
  210. package/dist/chunks/{location-rbnrb63z.js → pty-n515v1q6.js} +39 -49
  211. package/dist/chunks/{location-gcwte8wz.js → pty-nd7r4c3m.js} +32 -32
  212. package/dist/chunks/{location-k892zkmz.js → pty-nkwvx6n5.js} +21 -21
  213. package/dist/chunks/{location-94e33dpz.js → pty-nt907s04.js} +3 -3
  214. package/dist/chunks/{location-px88z4yq.js → pty-nvwv1dfk.js} +21 -21
  215. package/dist/chunks/{location-eavcrtrz.js → pty-nw314s9d.js} +2 -2
  216. package/dist/chunks/{location-wegkxhrn.js → pty-nx4vzyjd.js} +2 -2
  217. package/dist/chunks/{location-nyxvvj5y.js → pty-nyxvvj5y.js} +1 -1
  218. package/dist/chunks/{location-512tdftc.js → pty-nz5h4cjb.js} +1 -1
  219. package/dist/chunks/{location-1yq9hg58.js → pty-p7vhpwh8.js} +5 -5
  220. package/dist/chunks/{location-xv6tcr0w.js → pty-p85kh4b9.js} +33 -41
  221. package/dist/chunks/{location-50emzza2.js → pty-pkkerzhz.js} +9 -9
  222. package/dist/chunks/{location-pknna89w.js → pty-pknna89w.js} +1 -1
  223. package/dist/chunks/{location-jwaey7ys.js → pty-ppcv2fse.js} +11 -11
  224. package/dist/chunks/{location-1a140ev3.js → pty-prvyngaa.js} +6 -6
  225. package/dist/chunks/{location-0wgmn1kb.js → pty-pwnwjmpk.js} +24 -24
  226. package/dist/chunks/{location-tvzzcc9t.js → pty-pzmcnx89.js} +12 -12
  227. package/dist/chunks/{location-wq4rsx08.js → pty-q187sr27.js} +57 -57
  228. package/dist/chunks/{location-hdreqhvr.js → pty-q53j9prd.js} +3 -3
  229. package/dist/chunks/{location-4k2smf6b.js → pty-q8h8ge1b.js} +3 -3
  230. package/dist/chunks/{location-j6qjs6cp.js → pty-qgxn53r2.js} +37 -39
  231. package/dist/chunks/{location-qj27ec1j.js → pty-qj27ec1j.js} +2 -2
  232. package/dist/chunks/{location-nn2nd58t.js → pty-qk5sk9d1.js} +7 -7
  233. package/dist/chunks/{location-qp7r0hxv.js → pty-qp7r0hxv.js} +1 -1
  234. package/dist/chunks/{location-ytkajd2z.js → pty-qqht4f3t.js} +43 -44
  235. package/dist/chunks/{location-qqvy8y24.js → pty-qqvy8y24.js} +1 -1
  236. package/dist/chunks/{location-bd27wa44.js → pty-qrnhzphe.js} +21 -21
  237. package/dist/chunks/{location-qsdghx1p.js → pty-qsdghx1p.js} +1 -1
  238. package/dist/chunks/{location-mje1y6t4.js → pty-qv4xbp49.js} +7 -7
  239. package/dist/chunks/{location-5enarcya.js → pty-r41sfy63.js} +9 -9
  240. package/dist/chunks/{location-rb9dy4dg.js → pty-rb9dy4dg.js} +1 -1
  241. package/dist/chunks/{location-g3v5zqn8.js → pty-rbvjmsc7.js} +31 -31
  242. package/dist/chunks/{location-0f7kkqtf.js → pty-rcx3bfwc.js} +4 -4
  243. package/dist/chunks/{location-jtnps1zs.js → pty-rgc9cx3e.js} +9 -4
  244. package/dist/chunks/{location-mjhey12a.js → pty-rhc46xz4.js} +11 -11
  245. package/dist/chunks/{location-dg5naf6e.js → pty-rj7j5fvs.js} +4 -4
  246. package/dist/chunks/{location-hyevg830.js → pty-rm3930ch.js} +25 -25
  247. package/dist/chunks/{location-zva2cc2v.js → pty-rqr4sfbw.js} +49 -43
  248. package/dist/chunks/{location-rt5dr6hb.js → pty-rt5dr6hb.js} +1 -1
  249. package/dist/chunks/{location-s2pfznc4.js → pty-s2pfznc4.js} +1 -1
  250. package/dist/chunks/{location-zmh55w6z.js → pty-s5mwnp51.js} +8 -8
  251. package/dist/chunks/{location-2kg89srt.js → pty-s7kyse9r.js} +4 -4
  252. package/dist/chunks/{location-390xskpw.js → pty-s8qtxmzm.js} +19 -4
  253. package/dist/chunks/{location-sa3fpqfw.js → pty-sa3fpqfw.js} +2 -2
  254. package/dist/chunks/{location-sbya78hr.js → pty-sbya78hr.js} +1 -1
  255. package/dist/chunks/{location-sbz71ybr.js → pty-sbz71ybr.js} +1 -1
  256. package/dist/chunks/{location-tfn5dkze.js → pty-scj3yyxn.js} +45 -58
  257. package/dist/chunks/{location-ds54zjme.js → pty-sjtej4jg.js} +5 -5
  258. package/dist/chunks/{location-mv3cjvqe.js → pty-skdkpe37.js} +28 -31
  259. package/dist/chunks/pty-smsep8gg.js +61 -0
  260. package/dist/chunks/{location-6w51fm74.js → pty-snyjxc4r.js} +19 -19
  261. package/dist/chunks/{location-bnzx9dwt.js → pty-sp85y8nd.js} +8 -8
  262. package/dist/chunks/{location-v5kg2n5y.js → pty-srvw3mxg.js} +4 -4
  263. package/dist/chunks/{location-svcy3p9a.js → pty-svcy3p9a.js} +1 -1
  264. package/dist/chunks/{location-mjye3rax.js → pty-sz3tm3gm.js} +52 -52
  265. package/dist/chunks/{location-szwm4crx.js → pty-szwm4crx.js} +4 -4
  266. package/dist/chunks/{location-0q8q98et.js → pty-t41k4f06.js} +16 -16
  267. package/dist/chunks/{location-3sm8rpg8.js → pty-t600mkfg.js} +16 -16
  268. package/dist/chunks/{location-qqf3gkjm.js → pty-t9s2jeab.js} +11 -11
  269. package/dist/chunks/{location-9qqfewpb.js → pty-tb2mrvc9.js} +4 -4
  270. package/dist/chunks/{location-r9w18wee.js → pty-tcyq6bhw.js} +10 -17
  271. package/dist/chunks/{location-tczq8hjw.js → pty-tczq8hjw.js} +1 -1
  272. package/dist/chunks/pty-tfhtby8v.js +26 -0
  273. package/dist/chunks/{location-hv45qt1z.js → pty-tfphs1zq.js} +31 -31
  274. package/dist/chunks/{location-gxs71cxp.js → pty-tg7s7b5t.js} +4 -4
  275. package/dist/chunks/{location-nq8md5pc.js → pty-tgc5wewm.js} +45 -51
  276. package/dist/chunks/{location-d9tv0j4w.js → pty-tnzj1417.js} +8 -8
  277. package/dist/chunks/{location-tr8x705m.js → pty-tr8x705m.js} +1 -1
  278. package/dist/chunks/{location-1nresfvs.js → pty-trbkmgn6.js} +25 -28
  279. package/dist/chunks/pty-tvtps2q9.js +40 -0
  280. package/dist/chunks/{location-twssxy5n.js → pty-twssxy5n.js} +2 -2
  281. package/dist/chunks/{location-v2r1d0zg.js → pty-v2r1d0zg.js} +1 -1
  282. package/dist/chunks/{location-80ebm126.js → pty-v3hpn5wv.js} +17 -17
  283. package/dist/chunks/{location-8vk3va5c.js → pty-vgv0ynd3.js} +15 -15
  284. package/dist/chunks/{location-dxdc95em.js → pty-vh8cf7c0.js} +3 -3
  285. package/dist/chunks/{location-vjf35v1f.js → pty-vjf35v1f.js} +1 -1
  286. package/dist/chunks/{location-ctmpqb7w.js → pty-vq0qa3sh.js} +9 -9
  287. package/dist/chunks/{location-xh5xpxzv.js → pty-vr57n06r.js} +11 -11
  288. package/dist/chunks/{location-d3074txc.js → pty-vsp3v0h1.js} +12 -12
  289. package/dist/chunks/{location-2vytr4qs.js → pty-vwqd7bxt.js} +39 -38
  290. package/dist/chunks/{location-7e31cxcq.js → pty-vyb022hh.js} +25 -25
  291. package/dist/chunks/{location-jy4bs43h.js → pty-w0dbrkjj.js} +32 -26
  292. package/dist/chunks/{location-w3wsvvr9.js → pty-w3wsvvr9.js} +1 -1
  293. package/dist/chunks/{location-wr3re1en.js → pty-w687dnns.js} +4 -4
  294. package/dist/chunks/{location-z838ayja.js → pty-w6zht2k8.js} +2 -2
  295. package/dist/chunks/{location-a42agwqf.js → pty-w96t5dx5.js} +15 -15
  296. package/dist/chunks/{location-wakvkjy4.js → pty-wakvkjy4.js} +1 -1
  297. package/dist/chunks/{location-wd87259q.js → pty-wd87259q.js} +1 -1
  298. package/dist/chunks/{location-6narqht5.js → pty-we1nkpqm.js} +36 -47
  299. package/dist/chunks/{location-fc7r79k5.js → pty-we7ta21m.js} +8 -8
  300. package/dist/chunks/{location-gse8hrf9.js → pty-wedqffd6.js} +9 -9
  301. package/dist/chunks/{location-wnhgecwx.js → pty-wnhgecwx.js} +1 -1
  302. package/dist/chunks/{location-ew5p7j1s.js → pty-wxerkmn2.js} +11 -11
  303. package/dist/chunks/{location-0xqbsrqr.js → pty-wzk0sywq.js} +370 -362
  304. package/dist/chunks/{location-0fcqkqe0.js → pty-x04h5mrv.js} +17 -17
  305. package/dist/chunks/{location-6ss6ngz0.js → pty-x26wqd07.js} +4 -4
  306. package/dist/chunks/{location-3gbdv6d6.js → pty-x29wv32c.js} +48 -56
  307. package/dist/chunks/{location-5pqzpska.js → pty-x4qk82bb.js} +14 -14
  308. package/dist/chunks/{location-bb3pv0r8.js → pty-xad1gvt8.js} +7 -7
  309. package/dist/chunks/{location-kee5eaqe.js → pty-xcx3vbqx.js} +17 -17
  310. package/dist/chunks/{location-gate3zxc.js → pty-xczh4mb3.js} +11 -11
  311. package/dist/chunks/{location-bstexjd6.js → pty-xd9cc171.js} +5 -5
  312. package/dist/chunks/{location-1smrtfhf.js → pty-xf13msbn.js} +47 -47
  313. package/dist/chunks/{location-aza0qgdg.js → pty-xg3etxpz.js} +9 -24
  314. package/dist/chunks/{location-wzjdj14d.js → pty-xj846p5w.js} +10 -10
  315. package/dist/chunks/pty-xjr6c8m4.js +37 -0
  316. package/dist/chunks/{location-brv6mkyx.js → pty-xksw6ev0.js} +4 -4
  317. package/dist/chunks/{location-bfwvr4qd.js → pty-xngq7d9m.js} +84 -84
  318. package/dist/chunks/{location-ghv8rcpm.js → pty-xwkfc1jv.js} +15 -15
  319. package/dist/chunks/{location-yzddgs9q.js → pty-xygagwej.js} +21 -21
  320. package/dist/chunks/{location-hz1m7hmp.js → pty-xygzzjxz.js} +3 -3
  321. package/dist/chunks/{location-xym735jc.js → pty-xym735jc.js} +1 -1
  322. package/dist/chunks/{location-zrm3sqe8.js → pty-xzakt4mt.js} +37 -37
  323. package/dist/chunks/pty-y63cdny4.js +85 -0
  324. package/dist/chunks/{location-k9swty0g.js → pty-y99mgccj.js} +5 -5
  325. package/dist/chunks/{location-yb20nhc3.js → pty-yb20nhc3.js} +1 -1
  326. package/dist/chunks/{location-3t9tbebp.js → pty-ycjen0nk.js} +30 -30
  327. package/dist/chunks/{location-970zrxzb.js → pty-ygqv5g3p.js} +30 -31
  328. package/dist/chunks/{location-m528r48h.js → pty-yh1frphp.js} +4 -4
  329. package/dist/chunks/{location-jx1cej34.js → pty-yhg19nad.js} +16 -16
  330. package/dist/chunks/{location-nrzjm3wv.js → pty-yhqe6hsm.js} +21 -21
  331. package/dist/chunks/{location-5gfssad4.js → pty-yj36cpkw.js} +6 -6
  332. package/dist/chunks/{location-yr705xyq.js → pty-yr705xyq.js} +1 -1
  333. package/dist/chunks/{location-spwvyatr.js → pty-yrx88kft.js} +12 -12
  334. package/dist/chunks/{location-yvtc2x31.js → pty-yvtc2x31.js} +1 -1
  335. package/dist/chunks/{location-0jkcjdkb.js → pty-yw6v6yt8.js} +17 -17
  336. package/dist/chunks/{location-k8zhcgth.js → pty-yx0s3wdh.js} +17 -17
  337. package/dist/chunks/{location-snhk3d40.js → pty-yxaknd5c.js} +32 -32
  338. package/dist/chunks/{location-w9b0ha22.js → pty-yxrmjvdn.js} +114 -147
  339. package/dist/chunks/{location-1cdwtwnn.js → pty-z080rjh6.js} +4 -4
  340. package/dist/chunks/{location-dbht28n9.js → pty-z0h12gs8.js} +3 -2
  341. package/dist/chunks/{location-s3571hbf.js → pty-z51hj4f3.js} +28 -32
  342. package/dist/chunks/{location-zyfhsknv.js → pty-z7881fav.js} +9 -9
  343. package/dist/chunks/{location-0jpvqtke.js → pty-z9fr3t5s.js} +34 -43
  344. package/dist/chunks/{location-j9nxzz3g.js → pty-ze75qvmd.js} +3 -3
  345. package/dist/chunks/{location-bn5c4xpj.js → pty-zmx3s5hb.js} +51 -51
  346. package/dist/chunks/{location-gedds2h4.js → pty-zvcp0hmn.js} +5 -7
  347. package/dist/chunks/{location-4vcrnpx2.js → pty-zxpyjp51.js} +9 -19
  348. package/dist/codemode/catalog.js +1 -1
  349. package/dist/codemode/execution.js +5 -5
  350. package/dist/codemode/fetch.js +145 -145
  351. package/dist/codemode/instructions.js +7 -7
  352. package/dist/codemode/tool.js +151 -151
  353. package/dist/command.js +94 -94
  354. package/dist/config/discovery.js +95 -95
  355. package/dist/config/integration.js +3 -3
  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 +133 -132
  360. package/dist/config/plugin/command.js +234 -232
  361. package/dist/config/plugin/compaction.js +171 -171
  362. package/dist/config/plugin/compatibility.js +150 -150
  363. package/dist/config/plugin/entry-observer.js +6 -2
  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 +143 -142
  369. package/dist/config/plugin/policy.js +130 -130
  370. package/dist/config/plugin/provider.js +132 -132
  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 +146 -146
  374. package/dist/config/plugin/skill-scan.js +1 -1
  375. package/dist/config/plugin/skill.js +153 -153
  376. package/dist/config/plugin/snapshot.js +130 -130
  377. package/dist/config/plugin/source.js +134 -133
  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 +133 -133
  384. package/dist/console-access.js +1 -1
  385. package/dist/credential/sql.js +2 -2
  386. package/dist/credential.js +94 -94
  387. package/dist/database/database.js +81 -81
  388. package/dist/database/drizzle/effect-sqlite/driver.js +12 -12
  389. package/dist/database/drizzle/effect-sqlite/index.js +12 -12
  390. package/dist/database/drizzle/effect-sqlite/session.js +11 -11
  391. package/dist/database/drizzle/index.js +13 -13
  392. package/dist/database/drizzle/internal/drizzle-utils.js +1 -1
  393. package/dist/database/drizzle/sqlite-core/effect/count.js +1 -1
  394. package/dist/database/drizzle/sqlite-core/effect/db.js +9 -9
  395. package/dist/database/drizzle/sqlite-core/effect/delete.js +2 -2
  396. package/dist/database/drizzle/sqlite-core/effect/index.js +10 -10
  397. package/dist/database/drizzle/sqlite-core/effect/insert.js +2 -2
  398. package/dist/database/drizzle/sqlite-core/effect/query.js +1 -1
  399. package/dist/database/drizzle/sqlite-core/effect/raw.js +1 -1
  400. package/dist/database/drizzle/sqlite-core/effect/select.js +2 -2
  401. package/dist/database/drizzle/sqlite-core/effect/session.js +10 -10
  402. package/dist/database/drizzle/sqlite-core/effect/update.js +2 -2
  403. package/dist/database/drizzle.js +14 -14
  404. package/dist/database/migration/20260127222353_familiar_lady_ursula.js +1 -1
  405. package/dist/database/migration/20260211171708_add_project_commands.js +1 -1
  406. package/dist/database/migration/20260213144116_wakeful_the_professor.js +1 -1
  407. package/dist/database/migration/20260225215848_workspace.js +1 -1
  408. package/dist/database/migration/20260227213759_add_session_workspace_id.js +1 -1
  409. package/dist/database/migration/20260228203230_blue_harpoon.js +1 -1
  410. package/dist/database/migration/20260303231226_add_workspace_fields.js +1 -1
  411. package/dist/database/migration/20260309230000_move_org_to_state.js +1 -1
  412. package/dist/database/migration/20260312043431_session_message_cursor.js +1 -1
  413. package/dist/database/migration/20260323234822_events.js +1 -1
  414. package/dist/database/migration/20260410174513_workspace-name.js +1 -1
  415. package/dist/database/migration/20260413175956_chief_energizer.js +1 -1
  416. package/dist/database/migration/20260423070820_add_icon_url_override.js +1 -1
  417. package/dist/database/migration/20260427172553_slow_nightmare.js +1 -1
  418. package/dist/database/migration/20260428004200_add_session_path.js +1 -1
  419. package/dist/database/migration/20260501142318_next_venus.js +1 -1
  420. package/dist/database/migration/20260504145000_add_sync_owner.js +1 -1
  421. package/dist/database/migration/20260507164347_add_workspace_time.js +1 -1
  422. package/dist/database/migration/20260510033149_session_usage.js +1 -1
  423. package/dist/database/migration/20260511000411_data_migration_state.js +1 -1
  424. package/dist/database/migration/20260511173437_session-metadata.js +1 -1
  425. package/dist/database/migration/20260601010001_normalize_storage_paths.js +1 -1
  426. package/dist/database/migration/20260601202201_amazing_prowler.js +1 -1
  427. package/dist/database/migration/20260602002951_lowly_union_jack.js +1 -1
  428. package/dist/database/migration/20260602182828_add_project_directories.js +1 -1
  429. package/dist/database/migration/20260603001617_session_message_projection_indexes.js +1 -1
  430. package/dist/database/migration/20260603040000_session_message_projection_order.js +1 -1
  431. package/dist/database/migration/20260603141458_session_input_inbox.js +1 -1
  432. package/dist/database/migration/20260603160727_jittery_ezekiel_stane.js +1 -1
  433. package/dist/database/migration/20260604172448_event_sourced_session_input.js +1 -1
  434. package/dist/database/migration/20260605003541_add_session_context_snapshot.js +1 -1
  435. package/dist/database/migration/20260605042240_add_context_epoch_agent.js +1 -1
  436. package/dist/database/migration/20260611035744_credential.js +1 -1
  437. package/dist/database/migration/20260611192811_lush_chimera.js +1 -1
  438. package/dist/database/migration/20260612174303_project_dir_strategy.js +1 -1
  439. package/dist/database/migration/20260622142730_simplify_session_context_epoch.js +1 -1
  440. package/dist/database/migration/20260622170816_reset_v2_session_state.js +1 -1
  441. package/dist/database/migration/20260622202450_simplify_session_input.js +1 -1
  442. package/dist/database/migration/20260804233008_loose_psylocke.js +1 -1
  443. package/dist/database/migration/20260805200742_import_legacy_credentials.js +1 -1
  444. package/dist/database/migration/20260808023530_workspace_domain.js +1 -1
  445. package/dist/database/migration/20260811161259_execution_claim_attempts.js +1 -1
  446. package/dist/database/migration/20260812181746_session_inbox.js +1 -1
  447. package/dist/database/migration/20260812213948_worktree.js +1 -1
  448. package/dist/database/migration/20260819222447_session_viewed_state.js +1 -1
  449. package/dist/database/migration/20260823191254_nullable_workspace_binding.js +1 -1
  450. package/dist/database/migration/20260910120000_clear_v1_session_permission.js +1 -1
  451. package/dist/database/migration/20260923013825_project_time_active.js +1 -1
  452. package/dist/database/migration/20261007190000_azure_cli_external_credential.js +1 -1
  453. package/dist/database/migration/20261010180456_project_time_archived.js +1 -1
  454. package/dist/database/migration/20261024002554_session_allowance.js +1 -1
  455. package/dist/database/migration/20261024175301_drop_session_allowance.js +1 -1
  456. package/dist/database/migration/20261025123711_blob.js +1 -1
  457. package/dist/database/migration/20261025154125_drop_session_pending.js +1 -1
  458. package/dist/database/migration/20261026223005_schedule.js +1 -1
  459. package/dist/database/migration/20261029002625_session_part.js +1 -1
  460. package/dist/database/migration/20261029073502_session_time_busy.js +1 -1
  461. package/dist/database/migration/20261029165540_schedule_checks.js +1 -1
  462. package/dist/database/migration/20261030054400_job.js +1 -1
  463. package/dist/database/migration.gen.js +60 -60
  464. package/dist/database/migration.js +62 -62
  465. package/dist/database/path.js +2 -2
  466. package/dist/database/schema.gen.js +1 -1
  467. package/dist/database/schema.sql.js +1 -1
  468. package/dist/database/v1-migration.bun.js +108 -108
  469. package/dist/database/v1-migration.js +1 -1
  470. package/dist/effect/app-node-builder.js +429 -425
  471. package/dist/effect/app-node-platform.js +2 -2
  472. package/dist/effect/keyed-mutex.js +1 -1
  473. package/dist/effect/websocket-constructor.js +1 -1
  474. package/dist/environment/driver.js +1 -1
  475. package/dist/environment/environment.js +107 -108
  476. package/dist/environment/exec-defaults.js +5 -3
  477. package/dist/environment/files.js +1 -1
  478. package/dist/environment/index.js +113 -111
  479. package/dist/environment/local.js +2 -2
  480. package/dist/environment/memory.js +2 -2
  481. package/dist/environment/unavailable.js +3 -3
  482. package/dist/event/sql.js +1 -1
  483. package/dist/event-logger.js +85 -85
  484. package/dist/file-access.js +157 -156
  485. package/dist/file-mutation.js +108 -107
  486. package/dist/file-retention.js +1 -1
  487. package/dist/file-write.js +166 -0
  488. package/dist/filesystem/fff.bun.js +2 -2
  489. package/dist/filesystem/fff.js +1 -1
  490. package/dist/filesystem/fff.node.js +2 -2
  491. package/dist/filesystem/fff.workerd.js +2 -2
  492. package/dist/filesystem/file-watch.js +91 -91
  493. package/dist/filesystem/location-watcher-policy.js +6 -6
  494. package/dist/filesystem/location-watcher.js +247 -246
  495. package/dist/filesystem/protected.js +2 -4
  496. package/dist/filesystem/search.js +115 -114
  497. package/dist/filesystem/watcher-binding.js +1 -1
  498. package/dist/filesystem/watcher.js +9 -9
  499. package/dist/filesystem.js +116 -115
  500. package/dist/form.js +93 -93
  501. package/dist/formatter/builtins.js +2 -2
  502. package/dist/formatter.js +100 -100
  503. package/dist/generate.js +118 -118
  504. package/dist/git.js +11 -11
  505. package/dist/github-copilot/chat/convert-to-openai-compatible-chat-messages.js +1 -1
  506. package/dist/github-copilot/chat/get-response-metadata.js +1 -1
  507. package/dist/github-copilot/chat/map-openai-compatible-finish-reason.js +1 -1
  508. package/dist/github-copilot/chat/openai-compatible-chat-language-model.js +7 -7
  509. package/dist/github-copilot/chat/openai-compatible-chat-options.js +1 -1
  510. package/dist/github-copilot/chat/openai-compatible-prepare-tools.js +1 -1
  511. package/dist/github-copilot/copilot-provider.js +17 -17
  512. package/dist/github-copilot/models.js +112 -112
  513. package/dist/github-copilot/openai-compatible-error.js +1 -1
  514. package/dist/github-copilot/responses/convert-to-openai-responses-input.js +1 -1
  515. package/dist/github-copilot/responses/map-openai-responses-finish-reason.js +1 -1
  516. package/dist/github-copilot/responses/openai-error.js +1 -1
  517. package/dist/github-copilot/responses/openai-responses-language-model.js +10 -10
  518. package/dist/github-copilot/responses/openai-responses-prepare-tools.js +6 -6
  519. package/dist/github-copilot/responses/tool/code-interpreter.js +1 -1
  520. package/dist/github-copilot/responses/tool/file-search.js +1 -1
  521. package/dist/github-copilot/responses/tool/image-generation.js +1 -1
  522. package/dist/github-copilot/responses/tool/web-search-preview.js +1 -1
  523. package/dist/github-copilot/responses/tool/web-search.js +1 -1
  524. package/dist/image/notice.js +3 -3
  525. package/dist/image/photon-normalize.js +1 -1
  526. package/dist/image/photon-worker.js +1 -1
  527. package/dist/image/photon.js +4 -4
  528. package/dist/image.js +6 -6
  529. package/dist/instance/service.js +1 -1
  530. package/dist/instance.js +422 -418
  531. package/dist/instruction-discovery.js +91 -91
  532. package/dist/instructions/builtins.js +100 -100
  533. package/dist/instructions/index.js +5 -3
  534. package/dist/integration/connection.js +3 -3
  535. package/dist/integration.js +100 -100
  536. package/dist/job/sql.js +2 -2
  537. package/dist/job.js +88 -88
  538. package/dist/kv/sql.js +2 -2
  539. package/dist/kv.js +84 -84
  540. package/dist/location-activity.js +174 -174
  541. package/dist/location-lifecycle.js +146 -146
  542. package/dist/location-service-map.js +99 -99
  543. package/dist/location-services.js +423 -419
  544. package/dist/location.js +102 -102
  545. package/dist/managed-policy.js +3 -3
  546. package/dist/mcp/client.js +109 -110
  547. package/dist/mcp/connection.js +106 -105
  548. package/dist/mcp/index.js +120 -119
  549. package/dist/mcp/instructions.js +181 -180
  550. package/dist/mcp/oauth.js +92 -103
  551. package/dist/mcp/socket-client.js +2 -4
  552. package/dist/mcp/stdio.js +104 -103
  553. package/dist/mime.js +1 -1
  554. package/dist/modal/models.js +112 -112
  555. package/dist/model-resolver.js +112 -112
  556. package/dist/model-retry.js +1 -1
  557. package/dist/model.js +113 -113
  558. package/dist/models-dev/v1.js +1 -1
  559. package/dist/models-dev.js +117 -117
  560. package/dist/oauth/page.js +1 -1
  561. package/dist/permission/saved.js +91 -91
  562. package/dist/permission/sql.js +5 -5
  563. package/dist/permission.js +155 -153
  564. package/dist/persistent-pty/binary.bun.js +1 -1
  565. package/dist/persistent-pty/daemon.js +1 -1
  566. package/dist/persistent-pty/index.js +89 -89
  567. package/dist/persistent-pty/pty-binding.js +1 -1
  568. package/dist/persistent-pty.js +86 -86
  569. package/dist/plugin/agent.js +87 -87
  570. package/dist/plugin/command.js +117 -116
  571. package/dist/plugin/goal.js +3 -3
  572. package/dist/plugin/hooks.js +5 -5
  573. package/dist/plugin/host.js +238 -237
  574. package/dist/plugin/identity.js +5 -5
  575. package/dist/plugin/instance.js +3 -3
  576. package/dist/plugin/internal.js +402 -398
  577. package/dist/plugin/mcp-codemode-defaults.js +3 -3
  578. package/dist/plugin/models-dev.js +110 -110
  579. package/dist/plugin/module.js +131 -129
  580. package/dist/plugin/optimize.js +2 -2
  581. package/dist/plugin/plan.js +146 -146
  582. package/dist/plugin/promise.js +1 -1
  583. package/dist/plugin/provider/amazon-bedrock.js +104 -104
  584. package/dist/plugin/provider/azure.js +132 -132
  585. package/dist/plugin/provider/cerebras.js +1 -1
  586. package/dist/plugin/provider/chatgpt.js +130 -130
  587. package/dist/plugin/provider/claude-agent/aisdk.js +117 -117
  588. package/dist/plugin/provider/claude-agent/claude/fork.js +2 -2
  589. package/dist/plugin/provider/claude-agent/claude/io.js +4 -4
  590. package/dist/plugin/provider/claude-agent/claude/probe.js +2 -2
  591. package/dist/plugin/provider/claude-agent/claude/query-options.js +4 -4
  592. package/dist/plugin/provider/claude-agent/claude/sdk.js +1 -1
  593. package/dist/plugin/provider/claude-agent/claude/session.js +4 -4
  594. package/dist/plugin/provider/claude-agent/claude/sessions.js +16 -16
  595. package/dist/plugin/provider/claude-agent/claude/status.js +7 -7
  596. package/dist/plugin/provider/claude-agent/index.js +146 -145
  597. package/dist/plugin/provider/claude-agent/instructions.js +112 -112
  598. package/dist/plugin/provider/claude-agent/integration.js +111 -111
  599. package/dist/plugin/provider/claude-agent/language-model/claude-agent-error.js +3 -3
  600. package/dist/plugin/provider/claude-agent/language-model/claude-agent-language-model.js +7 -7
  601. package/dist/plugin/provider/claude-agent/language-model/convert-claude-stream.js +6 -6
  602. package/dist/plugin/provider/claude-agent/language-model/convert-to-claude-message.js +1 -1
  603. package/dist/plugin/provider/claude-agent/language-model/request-kind.js +1 -1
  604. package/dist/plugin/provider/claude-agent/language-model/system-prompt.js +3 -3
  605. package/dist/plugin/provider/claude-agent/language-model/usage.js +3 -3
  606. package/dist/plugin/provider/claude-agent/provider.js +110 -110
  607. package/dist/plugin/provider/claude-agent/session.js +112 -112
  608. package/dist/plugin/provider/claude-agent/sync/catch-up.js +3 -3
  609. package/dist/plugin/provider/claude-agent/sync/checkpoints.js +2 -2
  610. package/dist/plugin/provider/claude-agent/sync/decide.js +2 -2
  611. package/dist/plugin/provider/claude-agent/sync/fingerprint.js +1 -1
  612. package/dist/plugin/provider/claude-agent/sync/record.js +3 -3
  613. package/dist/plugin/provider/claude-agent/tools/hooks.js +3 -3
  614. package/dist/plugin/provider/claude-agent/tools/names.js +3 -3
  615. package/dist/plugin/provider/claude-agent/tools/pending.js +3 -3
  616. package/dist/plugin/provider/claude-agent/tools/result.js +3 -3
  617. package/dist/plugin/provider/claude-agent/tools/server.js +4 -4
  618. package/dist/plugin/provider/cloudflare-ai-gateway.js +128 -128
  619. package/dist/plugin/provider/cloudflare-workers-ai.js +128 -128
  620. package/dist/plugin/provider/configured.js +126 -126
  621. package/dist/plugin/provider/credential-settings.js +85 -85
  622. package/dist/plugin/provider/databricks.js +1 -1
  623. package/dist/plugin/provider/digitalocean.js +108 -108
  624. package/dist/plugin/provider/dynamic.js +2 -2
  625. package/dist/plugin/provider/github-copilot.js +110 -110
  626. package/dist/plugin/provider/gitlab.js +107 -107
  627. package/dist/plugin/provider/google-vertex.js +127 -127
  628. package/dist/plugin/provider/kilo.js +1 -1
  629. package/dist/plugin/provider/llmgateway.js +89 -89
  630. package/dist/plugin/provider/lmstudio.js +140 -139
  631. package/dist/plugin/provider/local.js +137 -136
  632. package/dist/plugin/provider/modal.js +107 -107
  633. package/dist/plugin/provider/neon.js +1 -1
  634. package/dist/plugin/provider/nvidia.js +1 -1
  635. package/dist/plugin/provider/ollama.js +140 -139
  636. package/dist/plugin/provider/openai-context-caps.js +103 -103
  637. package/dist/plugin/provider/openai.js +130 -130
  638. package/dist/plugin/provider/opencode.js +155 -155
  639. package/dist/plugin/provider/openrouter.js +104 -104
  640. package/dist/plugin/provider/poe.js +90 -90
  641. package/dist/plugin/provider/prompt-cache-key.js +1 -1
  642. package/dist/plugin/provider/refresh.js +87 -87
  643. package/dist/plugin/provider/sap-ai-core.js +104 -104
  644. package/dist/plugin/provider/sdk-factory.js +1 -1
  645. package/dist/plugin/provider/snowflake-cortex.js +129 -129
  646. package/dist/plugin/provider/vllm.js +140 -139
  647. package/dist/plugin/provider/xai.js +104 -104
  648. package/dist/plugin/provider/zenmux.js +1 -1
  649. package/dist/plugin/provider.js +235 -234
  650. package/dist/plugin/sdk.js +85 -85
  651. package/dist/plugin/service.js +3 -3
  652. package/dist/plugin/skill.js +147 -147
  653. package/dist/plugin/source-directory.js +1 -1
  654. package/dist/plugin/supervisor.js +414 -410
  655. package/dist/plugin/tool-input-repair.js +4 -4
  656. package/dist/plugin/update.js +6 -6
  657. package/dist/plugin/vcs/git.js +99 -99
  658. package/dist/plugin/vcs/hg.js +99 -99
  659. package/dist/plugin/verbosity.js +106 -106
  660. package/dist/plugin/warming.js +130 -130
  661. package/dist/plugin/websearch/exa.js +8 -7
  662. package/dist/plugin/websearch/firecrawl.js +9 -8
  663. package/dist/plugin/websearch/index.js +10 -9
  664. package/dist/plugin/websearch/mcp.js +6 -6
  665. package/dist/plugin/websearch/parallel.js +9 -8
  666. package/dist/plugin/websearch/provider.js +8 -0
  667. package/dist/plugin/websearch/tavily.js +5 -4
  668. package/dist/plugin/websearch/tinyfish.js +9 -8
  669. package/dist/plugin.js +247 -246
  670. package/dist/project/icon.js +5 -5
  671. package/dist/project/schema.js +8 -8
  672. package/dist/project/sql.js +4 -4
  673. package/dist/project.js +103 -103
  674. package/dist/provider.js +112 -112
  675. package/dist/pty/protocol.js +1 -1
  676. package/dist/pty/ticket.js +1 -1
  677. package/dist/pty.js +113 -113
  678. package/dist/reference/instructions.js +99 -99
  679. package/dist/reference.js +103 -103
  680. package/dist/repository-cache.js +93 -93
  681. package/dist/repository.js +3 -3
  682. package/dist/ripgrep/binary.js +2 -2
  683. package/dist/ripgrep.js +111 -110
  684. package/dist/rpc.js +99 -99
  685. package/dist/schedule/check.js +243 -242
  686. package/dist/schedule/sql.js +6 -6
  687. package/dist/schedule.js +257 -256
  688. package/dist/schema.js +1 -1
  689. package/dist/session/affinity.js +3 -3
  690. package/dist/session/background.js +1 -1
  691. package/dist/session/blob.js +129 -129
  692. package/dist/session/command.js +85 -85
  693. package/dist/session/compaction.js +173 -173
  694. package/dist/session/context.js +200 -199
  695. package/dist/session/diff.js +101 -101
  696. package/dist/session/environment.js +5 -5
  697. package/dist/session/error.js +3 -3
  698. package/dist/session/event.js +1 -1
  699. package/dist/session/execution/restart.js +245 -244
  700. package/dist/session/execution.js +159 -159
  701. package/dist/session/generate.js +202 -201
  702. package/dist/session/history.js +136 -142
  703. package/dist/session/inbox.js +139 -139
  704. package/dist/session/info.js +3 -3
  705. package/dist/session/instruction-entry.js +90 -90
  706. package/dist/session/instruction-state.js +8 -8
  707. package/dist/session/instructions.js +143 -143
  708. package/dist/session/message-updater.js +4 -4
  709. package/dist/session/message.js +1 -1
  710. package/dist/session/model-request.js +166 -166
  711. package/dist/session/model-transport.js +7 -7
  712. package/dist/session/move.js +165 -165
  713. package/dist/session/projector.js +143 -143
  714. package/dist/session/prompt.js +148 -148
  715. package/dist/session/recent-text.js +1 -1
  716. package/dist/session/revert.js +139 -139
  717. package/dist/session/run-coordinator.js +1 -1
  718. package/dist/session/runner/index.js +1 -1
  719. package/dist/session/runner/llm.js +252 -251
  720. package/dist/session/runner/max-steps.js +1 -1
  721. package/dist/session/runner/model.js +113 -113
  722. package/dist/session/runner/publish-llm-event.js +149 -149
  723. package/dist/session/runner/retry.js +3 -3
  724. package/dist/session/runner/step.js +163 -163
  725. package/dist/session/runner/to-llm-message.js +137 -137
  726. package/dist/session/schema.js +3 -3
  727. package/dist/session/session.js +182 -181
  728. package/dist/session/shell.js +145 -144
  729. package/dist/session/skill.js +149 -149
  730. package/dist/session/sql.js +5 -5
  731. package/dist/session/stats.js +86 -86
  732. package/dist/session/store.js +142 -142
  733. package/dist/session/stored.js +2 -2
  734. package/dist/session/subagent-completion.js +3 -3
  735. package/dist/session/subagent-job.js +231 -230
  736. package/dist/session/system-prompt.js +1 -1
  737. package/dist/session/title.js +204 -203
  738. package/dist/session/to-session-error.js +148 -148
  739. package/dist/session/transfer.js +240 -239
  740. package/dist/session/usage.js +1 -1
  741. package/dist/session.js +233 -232
  742. package/dist/shared-cache.js +1 -1
  743. package/dist/shell/parse.js +6 -6
  744. package/dist/shell/result.js +1 -1
  745. package/dist/shell/scan.js +1 -1
  746. package/dist/shell/select.js +13 -13
  747. package/dist/shell.js +147 -146
  748. package/dist/skill/discovery.js +6 -6
  749. package/dist/skill/instructions.js +151 -151
  750. package/dist/skill.js +154 -154
  751. package/dist/snapshot.js +104 -104
  752. package/dist/state.js +1 -1
  753. package/dist/tool/html-markdown.js +1 -1
  754. package/dist/tool/http-body.js +1 -1
  755. package/dist/tool/mcp.js +180 -179
  756. package/dist/tool/plugin/artifact.js +230 -229
  757. package/dist/tool/plugin/edit.js +167 -164
  758. package/dist/tool/plugin/file-diff.js +1 -1
  759. package/dist/tool/plugin/glob.js +169 -166
  760. package/dist/tool/plugin/grep.js +170 -168
  761. package/dist/tool/plugin/image-generate.js +241 -240
  762. package/dist/tool/plugin/mcp-resource.js +164 -163
  763. package/dist/tool/plugin/opencode.js +163 -161
  764. package/dist/tool/plugin/patch.js +168 -166
  765. package/dist/tool/plugin/question.js +144 -144
  766. package/dist/tool/plugin/read.js +168 -167
  767. package/dist/tool/plugin/schedule.js +249 -248
  768. package/dist/tool/plugin/shell.js +237 -236
  769. package/dist/tool/plugin/skill.js +157 -157
  770. package/dist/tool/plugin/subagent.js +236 -235
  771. package/dist/tool/plugin/todo.js +149 -149
  772. package/dist/tool/plugin/webfetch.js +157 -157
  773. package/dist/tool/plugin/websearch.js +155 -155
  774. package/dist/tool/plugin/write.js +168 -166
  775. package/dist/tool/read-filesystem.js +116 -115
  776. package/dist/tool/runtime.js +5 -3
  777. package/dist/tool/search.js +118 -0
  778. package/dist/tool-output.js +7 -7
  779. package/dist/tool.js +161 -161
  780. package/dist/types/config/plugin/entry-observer.d.ts +15 -0
  781. package/dist/types/environment/exec-defaults.d.ts +3 -1
  782. package/dist/types/environment/index.d.ts +1 -4
  783. package/dist/types/file-write.d.ts +30 -0
  784. package/dist/types/filesystem/protected.d.ts +0 -2
  785. package/dist/types/instance.d.ts +2 -1
  786. package/dist/types/instructions/index.d.ts +16 -0
  787. package/dist/types/mcp/index.d.ts +3 -9
  788. package/dist/types/mcp/oauth.d.ts +1 -44
  789. package/dist/types/permission.d.ts +11 -0
  790. package/dist/types/persistent-pty/daemon.d.ts +10 -16
  791. package/dist/types/persistent-pty/index.d.ts +3 -16
  792. package/dist/types/plugin/host.d.ts +1 -1
  793. package/dist/types/plugin/internal.d.ts +19 -4
  794. package/dist/types/plugin/module.d.ts +13 -6
  795. package/dist/types/plugin/websearch/provider.d.ts +12 -0
  796. package/dist/types/plugin.d.ts +1 -1
  797. package/dist/types/repository-cache.d.ts +1 -1
  798. package/dist/types/session/history.d.ts +1 -304
  799. package/dist/types/session/runner/publish-llm-event.d.ts +0 -1
  800. package/dist/types/tool/plugin/edit.d.ts +2 -3
  801. package/dist/types/tool/plugin/write.d.ts +2 -6
  802. package/dist/types/tool/runtime.d.ts +5 -3
  803. package/dist/types/tool/search.d.ts +9 -0
  804. package/dist/usage-limits.js +98 -98
  805. package/dist/util/error-summary.js +1 -1
  806. package/dist/util/git-executable.js +3 -3
  807. package/dist/util/lazy.js +1 -1
  808. package/dist/util/slug.js +1 -1
  809. package/dist/util/token.js +1 -1
  810. package/dist/util/which.js +1 -1
  811. package/dist/util/wildcard.js +1 -1
  812. package/dist/v1/config/agent.js +5 -5
  813. package/dist/v1/config/command.js +3 -3
  814. package/dist/v1/config/mcp.js +4 -4
  815. package/dist/v1/config/migrate.js +105 -105
  816. package/dist/v1/config/permission.js +3 -3
  817. package/dist/v1/config/plugin.js +3 -3
  818. package/dist/v1/config/provider-options.js +1 -1
  819. package/dist/v1/config/provider.js +6 -6
  820. package/dist/variant.js +104 -104
  821. package/dist/vcs/patch.js +1 -1
  822. package/dist/vcs.js +102 -102
  823. package/dist/voice.js +97 -97
  824. package/dist/websearch.js +93 -93
  825. package/dist/wellknown/plugin.js +87 -87
  826. package/dist/wellknown.js +92 -92
  827. package/dist/workspace/driver.js +7 -7
  828. package/dist/workspace/sql.js +1 -1
  829. package/dist/workspace.js +93 -93
  830. package/dist/worktree/directory.js +2 -2
  831. package/dist/worktree/git.js +11 -11
  832. package/dist/worktree/sql.js +5 -5
  833. package/dist/worktree/strategies.js +102 -102
  834. package/dist/worktree.js +113 -113
  835. package/package.json +9 -9
  836. package/dist/chunks/location-27rfk046.js +0 -105
  837. package/dist/chunks/location-6bshxcsx.js +0 -18
  838. package/dist/chunks/location-76cb1hcw.js +0 -63
  839. package/dist/chunks/location-epzk50yp.js +0 -26
  840. package/dist/chunks/location-hpg1pkwy.js +0 -20
  841. package/dist/chunks/location-j1n85xqv.js +0 -80
  842. package/dist/chunks/location-rz41xnze.js +0 -81
  843. package/dist/chunks/location-w563xz5b.js +0 -80
  844. package/dist/chunks/location-xn7cqzsq.js +0 -16
  845. package/dist/chunks/location-zyne38h8.js +0 -96
  846. /package/dist/chunks/{location-0qkdqm5v.js → pty-0qkdqm5v.js} +0 -0
  847. /package/dist/chunks/{location-0zkw76rk.js → pty-0zkw76rk.js} +0 -0
  848. /package/dist/chunks/{location-17cy0kzp.js → pty-17cy0kzp.js} +0 -0
  849. /package/dist/chunks/{location-1cnp2v09.js → pty-1cnp2v09.js} +0 -0
  850. /package/dist/chunks/{location-1kah00gy.js → pty-1kah00gy.js} +0 -0
  851. /package/dist/chunks/{location-24dcb14g.js → pty-24dcb14g.js} +0 -0
  852. /package/dist/chunks/{location-2710q6r3.js → pty-2710q6r3.js} +0 -0
  853. /package/dist/chunks/{location-2bv980vf.js → pty-2bv980vf.js} +0 -0
  854. /package/dist/chunks/{location-2c3vjs8z.js → pty-2c3vjs8z.js} +0 -0
  855. /package/dist/chunks/{location-359p4xyc.js → pty-359p4xyc.js} +0 -0
  856. /package/dist/chunks/{location-3asan66x.js → pty-3asan66x.js} +0 -0
  857. /package/dist/chunks/{location-3v8g72cx.js → pty-3v8g72cx.js} +0 -0
  858. /package/dist/chunks/{location-3wcehsnq.js → pty-3wcehsnq.js} +0 -0
  859. /package/dist/chunks/{location-43n2bw4t.js → pty-43n2bw4t.js} +0 -0
  860. /package/dist/chunks/{location-4knz6hnm.js → pty-4knz6hnm.js} +0 -0
  861. /package/dist/chunks/{location-4qk9sjk2.js → pty-4qk9sjk2.js} +0 -0
  862. /package/dist/chunks/{location-4y7fprxs.js → pty-4y7fprxs.js} +0 -0
  863. /package/dist/chunks/{location-53557ph1.js → pty-53557ph1.js} +0 -0
  864. /package/dist/chunks/{location-550bvhaj.js → pty-550bvhaj.js} +0 -0
  865. /package/dist/chunks/{location-5w3e23ze.js → pty-5w3e23ze.js} +0 -0
  866. /package/dist/chunks/{location-6agm2x70.js → pty-6agm2x70.js} +0 -0
  867. /package/dist/chunks/{location-6prwharc.js → pty-6prwharc.js} +0 -0
  868. /package/dist/chunks/{location-6q2bdcd1.js → pty-6q2bdcd1.js} +0 -0
  869. /package/dist/chunks/{location-7akdwqpd.js → pty-7akdwqpd.js} +0 -0
  870. /package/dist/chunks/{location-7m9af43g.js → pty-7m9af43g.js} +0 -0
  871. /package/dist/chunks/{location-822emrt2.js → pty-822emrt2.js} +0 -0
  872. /package/dist/chunks/{location-84wd9syh.js → pty-84wd9syh.js} +0 -0
  873. /package/dist/chunks/{location-88xbtdfr.js → pty-88xbtdfr.js} +0 -0
  874. /package/dist/chunks/{location-8n3pysct.js → pty-8n3pysct.js} +0 -0
  875. /package/dist/chunks/{location-8wj87zfr.js → pty-8wj87zfr.js} +0 -0
  876. /package/dist/chunks/{location-9a4afbnw.js → pty-9a4afbnw.js} +0 -0
  877. /package/dist/chunks/{location-9rqn6x4v.js → pty-9rqn6x4v.js} +0 -0
  878. /package/dist/chunks/{location-a6k6eb26.js → pty-a6k6eb26.js} +0 -0
  879. /package/dist/chunks/{location-af5trqkr.js → pty-af5trqkr.js} +0 -0
  880. /package/dist/chunks/{location-afrmfg78.js → pty-afrmfg78.js} +0 -0
  881. /package/dist/chunks/{location-aqzs7mqg.js → pty-aqzs7mqg.js} +0 -0
  882. /package/dist/chunks/{location-atq7p7m5.js → pty-atq7p7m5.js} +0 -0
  883. /package/dist/chunks/{location-beh6qq61.js → pty-beh6qq61.js} +0 -0
  884. /package/dist/chunks/{location-bkyjaxrp.js → pty-bkyjaxrp.js} +0 -0
  885. /package/dist/chunks/{location-bmr6ed5q.js → pty-bmr6ed5q.js} +0 -0
  886. /package/dist/chunks/{location-cf4snx6d.js → pty-cf4snx6d.js} +0 -0
  887. /package/dist/chunks/{location-cqv5kn06.js → pty-cqv5kn06.js} +0 -0
  888. /package/dist/chunks/{location-cvy3z8tj.js → pty-cvy3z8tj.js} +0 -0
  889. /package/dist/chunks/{location-d9fn303g.js → pty-d9fn303g.js} +0 -0
  890. /package/dist/chunks/{location-d9jj8t3e.js → pty-d9jj8t3e.js} +0 -0
  891. /package/dist/chunks/{location-dap0rakb.js → pty-dap0rakb.js} +0 -0
  892. /package/dist/chunks/{location-df08tz66.js → pty-df08tz66.js} +0 -0
  893. /package/dist/chunks/{location-dy18nga0.js → pty-dy18nga0.js} +0 -0
  894. /package/dist/chunks/{location-e5kj55wp.js → pty-e5kj55wp.js} +0 -0
  895. /package/dist/chunks/{location-e73j6tqm.js → pty-e73j6tqm.js} +0 -0
  896. /package/dist/chunks/{location-ean2d8b5.js → pty-ean2d8b5.js} +0 -0
  897. /package/dist/chunks/{location-ec1grn59.js → pty-ec1grn59.js} +0 -0
  898. /package/dist/chunks/{location-eh3zwz77.js → pty-eh3zwz77.js} +0 -0
  899. /package/dist/chunks/{location-emrn6kk6.js → pty-emrn6kk6.js} +0 -0
  900. /package/dist/chunks/{location-f0mxakyp.js → pty-f0mxakyp.js} +0 -0
  901. /package/dist/chunks/{location-f6n9ztr4.js → pty-f6n9ztr4.js} +0 -0
  902. /package/dist/chunks/{location-faypxj3z.js → pty-faypxj3z.js} +0 -0
  903. /package/dist/chunks/{location-fd410y7t.js → pty-fd410y7t.js} +0 -0
  904. /package/dist/chunks/{location-fkpq3x5p.js → pty-fkpq3x5p.js} +0 -0
  905. /package/dist/chunks/{location-g4wezp1m.js → pty-g4wezp1m.js} +0 -0
  906. /package/dist/chunks/{location-g86h250q.js → pty-g86h250q.js} +0 -0
  907. /package/dist/chunks/{location-gebd4c9n.js → pty-gebd4c9n.js} +0 -0
  908. /package/dist/chunks/{location-gftt206x.js → pty-gftt206x.js} +0 -0
  909. /package/dist/chunks/{location-hcxmzztb.js → pty-hcxmzztb.js} +0 -0
  910. /package/dist/chunks/{location-hk9envan.js → pty-hk9envan.js} +0 -0
  911. /package/dist/chunks/{location-j2ntwpah.js → pty-j2ntwpah.js} +0 -0
  912. /package/dist/chunks/{location-j5zkgpj8.js → pty-j5zkgpj8.js} +0 -0
  913. /package/dist/chunks/{location-jjkms2e6.js → pty-jjkms2e6.js} +0 -0
  914. /package/dist/chunks/{location-jr7sbwjy.js → pty-jr7sbwjy.js} +0 -0
  915. /package/dist/chunks/{location-jwfs4k6c.js → pty-jwfs4k6c.js} +0 -0
  916. /package/dist/chunks/{location-jwr30sdr.js → pty-jwr30sdr.js} +0 -0
  917. /package/dist/chunks/{location-jzg6c2d5.js → pty-jzg6c2d5.js} +0 -0
  918. /package/dist/chunks/{location-m18g726c.js → pty-m18g726c.js} +0 -0
  919. /package/dist/chunks/{location-mp448xyj.js → pty-mp448xyj.js} +0 -0
  920. /package/dist/chunks/{location-msx8hqn2.js → pty-msx8hqn2.js} +0 -0
  921. /package/dist/chunks/{location-n05xt0ee.js → pty-n05xt0ee.js} +0 -0
  922. /package/dist/chunks/{location-n3j8tn72.js → pty-n3j8tn72.js} +0 -0
  923. /package/dist/chunks/{location-nh4v3znn.js → pty-nh4v3znn.js} +0 -0
  924. /package/dist/chunks/{location-njntx4h6.js → pty-njntx4h6.js} +0 -0
  925. /package/dist/chunks/{location-p71gwv9c.js → pty-p71gwv9c.js} +0 -0
  926. /package/dist/chunks/{location-q3sfg36h.js → pty-q3sfg36h.js} +0 -0
  927. /package/dist/chunks/{location-q74kybfr.js → pty-q74kybfr.js} +0 -0
  928. /package/dist/chunks/{location-qaymkmh1.js → pty-qaymkmh1.js} +0 -0
  929. /package/dist/chunks/{location-qb87gjwd.js → pty-qb87gjwd.js} +0 -0
  930. /package/dist/chunks/{location-qfa1cgps.js → pty-qfa1cgps.js} +0 -0
  931. /package/dist/chunks/{location-qg3g05ea.js → pty-qg3g05ea.js} +0 -0
  932. /package/dist/chunks/{location-qrg20bc0.js → pty-qrg20bc0.js} +0 -0
  933. /package/dist/chunks/{location-rcb2kzg1.js → pty-rcb2kzg1.js} +0 -0
  934. /package/dist/chunks/{location-sdp7kfr6.js → pty-sdp7kfr6.js} +0 -0
  935. /package/dist/chunks/{location-ssg3fenm.js → pty-ssg3fenm.js} +0 -0
  936. /package/dist/chunks/{location-syrav9an.js → pty-syrav9an.js} +0 -0
  937. /package/dist/chunks/{location-t03h4f5z.js → pty-t03h4f5z.js} +0 -0
  938. /package/dist/chunks/{location-ty7weeps.js → pty-ty7weeps.js} +0 -0
  939. /package/dist/chunks/{location-ve7vex1e.js → pty-ve7vex1e.js} +0 -0
  940. /package/dist/chunks/{location-vtarvj67.js → pty-vtarvj67.js} +0 -0
  941. /package/dist/chunks/{location-w803qqfp.js → pty-w803qqfp.js} +0 -0
  942. /package/dist/chunks/{location-wc3fc9cn.js → pty-wc3fc9cn.js} +0 -0
  943. /package/dist/chunks/{location-wer8tq1h.js → pty-wer8tq1h.js} +0 -0
  944. /package/dist/chunks/{location-wtztk69x.js → pty-wtztk69x.js} +0 -0
  945. /package/dist/chunks/{location-x0ckcb58.js → pty-x0ckcb58.js} +0 -0
  946. /package/dist/chunks/{location-x61499pn.js → pty-x61499pn.js} +0 -0
  947. /package/dist/chunks/{location-y44na4kk.js → pty-y44na4kk.js} +0 -0
  948. /package/dist/chunks/{location-y8f7s663.js → pty-y8f7s663.js} +0 -0
  949. /package/dist/chunks/{location-ygaqb7jw.js → pty-ygaqb7jw.js} +0 -0
  950. /package/dist/chunks/{location-z5v4ffb3.js → pty-z5v4ffb3.js} +0 -0
  951. /package/dist/chunks/{location-z9919s4g.js → pty-z9919s4g.js} +0 -0
@@ -69,23 +69,17 @@ export interface ServerInstructions {
69
69
  readonly server: ServerName;
70
70
  readonly instructions: string;
71
71
  }
72
- /** SDK tool definition tagged with the server that owns it. */
72
+ /** Checked MCP tool definition tagged with the server that owns it. */
73
73
  export type Tool = McpClient.Tool & {
74
74
  readonly server: ServerName;
75
75
  readonly codemode?: boolean;
76
76
  };
77
77
  export type ToolResultContent = McpClient.CallToolContent;
78
- export type ToolResult = McpClient.CallToolResult & {
79
- readonly server: ServerName;
80
- readonly tool: string;
81
- };
78
+ export type ToolResult = McpClient.CallToolResult;
82
79
  export type Prompt = McpClient.Prompt & {
83
80
  readonly server: ServerName;
84
81
  };
85
- export type PromptResult = McpClient.GetPromptResult & {
86
- readonly server: ServerName;
87
- readonly name: string;
88
- };
82
+ export type PromptResult = McpClient.GetPromptResult;
89
83
  export declare const Resource: Schema.Struct<{
90
84
  readonly server: Schema.String;
91
85
  readonly name: Schema.String;
@@ -1,5 +1,5 @@
1
1
  export * as McpOAuth from "./oauth.js";
2
- import { type FetchLike, type OAuthClientProvider, type OAuthDiscoveryState, type StoredOAuthClientInformation, type StoredOAuthTokens } from "@modelcontextprotocol/client";
2
+ import { type FetchLike, type OAuthClientProvider, type StoredOAuthClientInformation } from "@modelcontextprotocol/client";
3
3
  import { Effect } from "effect";
4
4
  import { ConfigMCP } from "@opencode/schema/config/mcp";
5
5
  import { Credential } from "../credential.js";
@@ -10,50 +10,7 @@ export declare const loggedFetch: (fields: {
10
10
  readonly server: string;
11
11
  readonly directory?: string;
12
12
  }) => Effect.Effect<FetchLike, never, never>;
13
- export declare const configuredDiscovery: (input: {
14
- readonly config: typeof ConfigMCP.Remote.Type;
15
- readonly fetchFn: FetchLike;
16
- }) => Promise<OAuthDiscoveryState | undefined>;
17
- export interface Store {
18
- readonly tokens: () => Promise<StoredOAuthTokens | undefined>;
19
- readonly saveTokens: (tokens: StoredOAuthTokens) => Promise<void>;
20
- readonly clientInformation: () => Promise<StoredOAuthClientInformation | undefined>;
21
- readonly saveClientInformation: (info: StoredOAuthClientInformation) => Promise<void>;
22
- readonly codeVerifier: () => Promise<string | undefined>;
23
- readonly saveCodeVerifier: (verifier: string) => Promise<void>;
24
- }
25
- export interface Options {
26
- readonly config: typeof ConfigMCP.Remote.Type;
27
- readonly store: Store;
28
- /** Absent on connect: the provider then refuses to register a client or redirect, ending in needs_auth. */
29
- readonly redirect?: {
30
- readonly url: string;
31
- readonly state: string;
32
- readonly open: (url: URL) => void | Promise<void>;
33
- };
34
- readonly clientMetadataUrl?: string;
35
- readonly discovery?: OAuthDiscoveryState;
36
- readonly invalidate?: OAuthClientProvider["invalidateCredentials"];
37
- }
38
- export declare const provider: (options: Options) => OAuthClientProvider;
39
- export declare const memoryStore: () => Store;
40
13
  export declare const clientFromCredential: (credential: Credential.OAuth) => StoredOAuthClientInformation | undefined;
41
- export declare const toCredential: (input: {
42
- readonly methodID: Integration.MethodID;
43
- readonly serverUrl: string;
44
- readonly tokens: StoredOAuthTokens;
45
- readonly client: StoredOAuthClientInformation | undefined;
46
- }) => {
47
- readonly type: "oauth";
48
- readonly methodID: string & import("effect/Brand").Brand<"Integration.MethodID">;
49
- readonly refresh: string;
50
- readonly access: string;
51
- readonly expires: number;
52
- readonly metadata?: {
53
- readonly [x: string]: unknown;
54
- } | undefined;
55
- };
56
- export declare const toTokens: (credential: Credential.OAuth) => StoredOAuthTokens;
57
14
  export declare const connectProvider: (input: {
58
15
  readonly config: typeof ConfigMCP.Remote.Type;
59
16
  readonly integrationID: Integration.ID;
@@ -1,6 +1,7 @@
1
1
  export * as Permission from "./permission.js";
2
2
  import { Context, Effect, Schema } from "effect";
3
3
  import { Permission } from "@opencode/schema/permission";
4
+ import type { Tool } from "@opencode/schema/tool";
4
5
  import { Agent } from "./agent.js";
5
6
  import { SessionErrors } from "./session/error.js";
6
7
  import { SessionSchema } from "./session/schema.js";
@@ -46,6 +47,16 @@ export interface AssertInput extends Omit<Request, "id" | "message"> {
46
47
  readonly id?: ID;
47
48
  readonly agent?: Agent.ID;
48
49
  }
50
+ /** The requester fields of a permission request made by a tool call. */
51
+ export declare const invocation: (context: Pick<Tool.Context, "sessionID" | "agent" | "messageID" | "id">) => {
52
+ sessionID: string & import("effect/Brand").Brand<"SessionID">;
53
+ agent: string & import("effect/Brand").Brand<"Agent.ID">;
54
+ source: {
55
+ type: "tool";
56
+ messageID: string & import("effect/Brand").Brand<"Session.Message.ID">;
57
+ id: string & import("effect/Brand").Brand<"Tool.CallID">;
58
+ };
59
+ };
49
60
  export interface ReplyInput {
50
61
  readonly requestID: ID;
51
62
  readonly reply: Reply;
@@ -241,6 +241,14 @@ export type StreamEvent = {
241
241
  readonly type: "foreground_process_changed";
242
242
  readonly process: string | null;
243
243
  };
244
+ export type SubscribeInput = {
245
+ readonly cursor: number;
246
+ readonly attachmentID: string;
247
+ readonly role: Role;
248
+ readonly takeover?: boolean;
249
+ readonly onEvent: (event: StreamEvent) => void;
250
+ readonly onEnd: () => void;
251
+ };
244
252
  export type DaemonAttachment = {
245
253
  readonly terminal: WireTerminal;
246
254
  readonly role: Role;
@@ -270,14 +278,7 @@ export interface DaemonTransport {
270
278
  readonly supports: (feature: string) => Effect.Effect<boolean, DaemonError>;
271
279
  readonly shutdown: Effect.Effect<WireResponse | undefined, DaemonError>;
272
280
  readonly handoff: Effect.Effect<Handoff | null, DaemonError>;
273
- readonly subscribe: (id: number, input: {
274
- readonly cursor: number;
275
- readonly attachmentID: string;
276
- readonly role: Role;
277
- readonly takeover?: boolean;
278
- readonly onEvent: (event: StreamEvent) => void;
279
- readonly onEnd: () => void;
280
- }) => Effect.Effect<DaemonAttachment, DaemonError>;
281
+ readonly subscribe: (id: number, input: SubscribeInput) => Effect.Effect<DaemonAttachment, DaemonError>;
281
282
  }
282
283
  export declare const makeDaemonTransport: (root: string, initialID: string, binary?: (() => Promise<string>) | undefined, inherited?: Handoff | undefined) => Effect.Effect<{
283
284
  request: (value: object, shouldStart?: any) => Effect.Effect<{
@@ -809,13 +810,6 @@ export declare const makeDaemonTransport: (root: string, initialID: string, bina
809
810
  ticket: string;
810
811
  expiresAt: number;
811
812
  } | null, DaemonError, never>;
812
- subscribe: (terminalID: number, input: {
813
- readonly cursor: number;
814
- readonly attachmentID: string;
815
- readonly role: Role;
816
- readonly takeover?: boolean;
817
- readonly onEvent: (event: StreamEvent) => void;
818
- readonly onEnd: () => void;
819
- }) => Effect.Effect<DaemonAttachment, DaemonError, never>;
813
+ subscribe: (terminalID: number, input: SubscribeInput) => Effect.Effect<DaemonAttachment, DaemonError, never>;
820
814
  }, DaemonError, import("effect/Scope").Scope>;
821
815
  export {};
@@ -5,7 +5,7 @@ import { Session } from "@opencode/schema/session";
5
5
  import { Bus } from "../bus.js";
6
6
  import { Pty } from "@opencode/schema/pty";
7
7
  import { Global } from "@opencode/util/global";
8
- import { type Role, type StreamEvent } from "./daemon.js";
8
+ import { type DaemonAttachment, type Role, type SubscribeInput } from "./daemon.js";
9
9
  export type { Role, StreamEvent } from "./daemon.js";
10
10
  export { Handoff } from "@opencode/schema/persistent-pty";
11
11
  export { available } from "#persistent-pty-binary";
@@ -26,13 +26,7 @@ export type Attachment = {
26
26
  readonly info: Info;
27
27
  readonly role: Role;
28
28
  readonly generation: number;
29
- readonly replay: {
30
- readonly requestedOffset: number;
31
- readonly availableOffset: number;
32
- readonly endOffset: number;
33
- readonly truncated: boolean;
34
- readonly data: Uint8Array;
35
- };
29
+ readonly replay: DaemonAttachment["replay"];
36
30
  readonly activate: () => void;
37
31
  readonly detach: () => void;
38
32
  };
@@ -82,14 +76,7 @@ export interface Interface {
82
76
  readonly remove: (id: Pty.ID) => Effect.Effect<void, NotFoundError | UnavailableError>;
83
77
  readonly shutdown: () => Effect.Effect<void, UnavailableError>;
84
78
  readonly handoff: () => Effect.Effect<Handoff | null, UnavailableError>;
85
- readonly attach: (id: Pty.ID, input: {
86
- readonly cursor: number;
87
- readonly attachmentID: string;
88
- readonly role: Role;
89
- readonly takeover?: boolean;
90
- readonly onEvent: (event: StreamEvent) => void;
91
- readonly onEnd: () => void;
92
- }) => Effect.Effect<Attachment, NotFoundError | UnavailableError>;
79
+ readonly attach: (id: Pty.ID, input: SubscribeInput) => Effect.Effect<Attachment, NotFoundError | UnavailableError>;
93
80
  }
94
81
  declare const Service_base: Context.ServiceClass<Service, "@opencode/PersistentPty", Interface>;
95
82
  export declare class Service extends Service_base {
@@ -29,6 +29,6 @@ import { Permission } from "../permission.js";
29
29
  import { PluginHooks } from "./hooks.js";
30
30
  import type { Interface } from "../plugin.js";
31
31
  import { LayerNode } from "@opencode/util/effect/layer-node";
32
- export declare const make: (plugin: Pick<Interface, "list">, pluginID?: string | undefined) => Effect.Effect<Plugin.Context, never, Location.Service | Integration.Service | Provider.Service | Model.Service | KV.Service | InstructionEntry.Service | AISDK.Service | PluginHooks.Service | Permission.Service | Mcp.Service | Tool.Service | Reference.Service | Skill.Service | Command.Service | LocationServiceMap.Service | Session.Service | Artifact.Service | Generate.Service | PersistentPty.Service | Rpc.Service | Vcs.Service | WebSearch.Service | WorktreeStrategies.Service | Worktree.Service | Bus.Service | Agent.Service>;
32
+ export declare const make: (plugin: Pick<Interface, "list">, pluginID: string) => Effect.Effect<Plugin.Context, never, Location.Service | Integration.Service | Provider.Service | Model.Service | KV.Service | InstructionEntry.Service | AISDK.Service | PluginHooks.Service | Permission.Service | Mcp.Service | Tool.Service | Reference.Service | Skill.Service | Command.Service | LocationServiceMap.Service | Session.Service | Artifact.Service | Generate.Service | PersistentPty.Service | Rpc.Service | Vcs.Service | WebSearch.Service | WorktreeStrategies.Service | Worktree.Service | Bus.Service | Agent.Service>;
33
33
  export declare const requirements: LayerNode.Graph<Location.Service | Integration.Service | Provider.Service | Model.Service | KV.Service | InstructionEntry.Service | AISDK.Service | PluginHooks.Service | Permission.Service | Mcp.Service | Tool.Service | Reference.Service | Skill.Service | Command.Service | LocationServiceMap.Service | Session.Service | Artifact.Service | Generate.Service | PersistentPty.Service | Rpc.Service | Vcs.Service | WebSearch.Service | WorktreeStrategies.Service | Worktree.Service | Bus.Service | Agent.Service, PersistentPty.UnavailableError, LayerNode.Tag<"global"> | LayerNode.Tag<"location">>;
34
34
  export declare function storage(kv: KV.Interface, pluginID: string): Plugin.Context["storage"];
@@ -17,6 +17,7 @@ import { Bus } from "../bus.js";
17
17
  import { Environment } from "../environment/index.js";
18
18
  import { FileAccess } from "../file-access.js";
19
19
  import { FileMutation } from "../file-mutation.js";
20
+ import { FileWrite } from "../file-write.js";
20
21
  import { Formatter } from "../formatter.js";
21
22
  import { Generate } from "../generate.js";
22
23
  import { Form } from "../form.js";
@@ -53,12 +54,26 @@ import { ReadToolFileSystem } from "../tool/read-filesystem.js";
53
54
  import { Tool } from "../tool.js";
54
55
  import { ToolOutput } from "../tool-output.js";
55
56
  import { WellKnown } from "../wellknown.js";
56
- declare const services: readonly [typeof Agent.Service, typeof Artifact.Service, typeof AppProcess.Service, typeof Provider.Service, typeof Model.Service, typeof Command.Service, typeof Config.Service, typeof Credential.Service, typeof Bus.Service, typeof Environment.Service, typeof FileAccess.Service, typeof FileMutation.Service, typeof Formatter.Service, typeof Generate.Service, typeof LocationWatcherPolicy.Service, typeof FileSystem.Service, typeof FSUtil.Service, typeof Global.Service, Context.Service<HttpClient.HttpClient, HttpClient.HttpClient>, typeof Image.Service, typeof InstructionDiscovery.Service, typeof Integration.Service, typeof Job.Service, typeof KV.Service, typeof import("@opencode/ai/effect").LLMClientService, typeof Location.Service, typeof ModelsDev.Service, typeof Mcp.Service, typeof Npm.Service, typeof Permission.Service, typeof Form.Service, typeof ReadToolFileSystem.Service, typeof Reference.Service, typeof WebSearch.Service, typeof Ripgrep.Service, typeof Schedule.Service, typeof Session.Service, typeof SessionCompaction.Service, typeof SessionInstructions.Service, typeof SubagentJob.Service, typeof SharedCache.Service, typeof Shell.Service, typeof ShellSelect.Service, typeof Snapshot.Service, typeof Skill.Service, typeof SkillDiscovery.Service, typeof Tool.Service, typeof ToolOutput.Service, typeof Watcher.Service, typeof WellKnown.Service, typeof Worktree.Service, typeof WorktreeStrategies.Service];
57
+ declare const services: readonly [typeof Agent.Service, typeof Artifact.Service, typeof AppProcess.Service, typeof Provider.Service, typeof Model.Service, typeof Command.Service, typeof Config.Service, typeof Credential.Service, typeof Bus.Service, typeof Environment.Service, typeof FileAccess.Service, typeof FileMutation.Service, typeof FileWrite.Service, typeof Formatter.Service, typeof Generate.Service, typeof LocationWatcherPolicy.Service, typeof FileSystem.Service, typeof FSUtil.Service, typeof Global.Service, Context.Service<HttpClient.HttpClient, HttpClient.HttpClient>, typeof Image.Service, typeof InstructionDiscovery.Service, typeof Integration.Service, typeof Job.Service, typeof KV.Service, typeof import("@opencode/ai/effect").LLMClientService, typeof Location.Service, typeof ModelsDev.Service, typeof Mcp.Service, typeof Npm.Service, typeof Permission.Service, typeof Form.Service, typeof ReadToolFileSystem.Service, typeof Reference.Service, typeof WebSearch.Service, typeof Ripgrep.Service, typeof Schedule.Service, typeof Session.Service, typeof SessionCompaction.Service, typeof SessionInstructions.Service, typeof SubagentJob.Service, typeof SharedCache.Service, typeof Shell.Service, typeof ShellSelect.Service, typeof Snapshot.Service, typeof Skill.Service, typeof SkillDiscovery.Service, typeof Tool.Service, typeof ToolOutput.Service, typeof Watcher.Service, typeof WellKnown.Service, typeof Worktree.Service, typeof WorktreeStrategies.Service];
57
58
  export type Requirements = Context.Service.Identifier<(typeof services)[number]>;
58
- export declare const requirements: LayerNode.Graph<HttpClient.HttpClient | import("@opencode/ai/effect").LLMClientService | Global.Service | FSUtil.Service | AppProcess.Service | Location.Service | Credential.Service | Watcher.Service | Npm.Service | Form.Service | Integration.Service | Provider.Service | Model.Service | KV.Service | WellKnown.Service | Config.Service | Environment.Service | Ripgrep.Service | FileSystem.Service | Job.Service | Permission.Service | InstructionDiscovery.Service | Mcp.Service | Image.Service | Tool.Service | ToolOutput.Service | ReadToolFileSystem.Service | Reference.Service | Skill.Service | Command.Service | Snapshot.Service | ShellSelect.Service | Shell.Service | Session.Service | Artifact.Service | FileAccess.Service | FileMutation.Service | Formatter.Service | Generate.Service | WebSearch.Service | WorktreeStrategies.Service | Worktree.Service | LocationWatcherPolicy.Service | SessionInstructions.Service | SkillDiscovery.Service | SubagentJob.Service | SessionCompaction.Service | ModelsDev.Service | Schedule.Service | SharedCache.Service | Bus.Service | Agent.Service, FileSystem.DirectoryAccessDeniedError | FileSystem.DirectoryNotFoundError, LayerNode.Tag<"global"> | LayerNode.Tag<"location">>;
59
+ export declare const requirements: LayerNode.Graph<HttpClient.HttpClient | import("@opencode/ai/effect").LLMClientService | Global.Service | FSUtil.Service | AppProcess.Service | Location.Service | Credential.Service | Watcher.Service | Npm.Service | Form.Service | Integration.Service | Provider.Service | Model.Service | KV.Service | WellKnown.Service | Config.Service | Environment.Service | Ripgrep.Service | FileSystem.Service | Job.Service | Permission.Service | InstructionDiscovery.Service | Mcp.Service | Image.Service | Tool.Service | ToolOutput.Service | ReadToolFileSystem.Service | Reference.Service | Skill.Service | Command.Service | Snapshot.Service | ShellSelect.Service | Shell.Service | Session.Service | Artifact.Service | FileAccess.Service | FileMutation.Service | Formatter.Service | FileWrite.Service | Generate.Service | WebSearch.Service | WorktreeStrategies.Service | Worktree.Service | LocationWatcherPolicy.Service | SessionInstructions.Service | SkillDiscovery.Service | SubagentJob.Service | SessionCompaction.Service | ModelsDev.Service | Schedule.Service | SharedCache.Service | Bus.Service | Agent.Service, FileSystem.DirectoryAccessDeniedError | FileSystem.DirectoryNotFoundError, LayerNode.Tag<"global"> | LayerNode.Tag<"location">>;
59
60
  export type InternalPlugin = Plugin<Requirements | Scope.Scope>;
60
61
  export declare const guarded: ReadonlySet<string>;
61
62
  export declare const list: () => Effect.Effect<{
62
- pre: Plugin<Scope.Scope>[];
63
- post: Plugin<Scope.Scope>[];
63
+ pre: {
64
+ id: string;
65
+ effect: (host: import("@opencode/plugin/effect/plugin").Context) => Effect.Effect<void, never, Scope.Scope>;
66
+ revision: string;
67
+ source: {
68
+ type: "builtin";
69
+ };
70
+ }[];
71
+ post: {
72
+ id: string;
73
+ effect: (host: import("@opencode/plugin/effect/plugin").Context) => Effect.Effect<void, never, Scope.Scope>;
74
+ revision: string;
75
+ source: {
76
+ type: "builtin";
77
+ };
78
+ }[];
64
79
  }, never, Requirements>;
@@ -1,4 +1,5 @@
1
1
  export * as PluginModule from "./module.js";
2
+ import { type Source } from "@opencode/schema/plugin";
2
3
  import { Npm } from "@opencode/util/npm";
3
4
  import { Effect, Schema, Stream } from "effect";
4
5
  import type { ConfigPluginSource } from "../config/plugin/source.js";
@@ -37,18 +38,24 @@ export declare const make: () => Effect.Effect<{
37
38
  } | undefined;
38
39
  revision: string;
39
40
  source: {
40
- type: "local";
41
- path: string;
41
+ readonly type: "builtin";
42
42
  } | {
43
- path?: undefined;
44
- type: "package";
45
- target: string;
46
- version?: string | undefined;
43
+ readonly type: "local";
44
+ readonly path: string;
45
+ } | {
46
+ readonly type: "sdk";
47
+ } | {
48
+ readonly type: "package";
49
+ readonly target: string;
50
+ readonly version?: string | undefined;
51
+ readonly outdated?: true | undefined;
52
+ readonly updating?: true | undefined;
47
53
  };
48
54
  effect: (host: import("@opencode/plugin/effect/plugin").Context) => Effect.Effect<void, never, import("effect/Scope").Scope>;
49
55
  }, Npm.InstallFailedError | LoadError | import("@opencode/util/effect-flock").EffectFlock.LockError, Npm.Service>;
50
56
  changes: () => Stream.Stream<void, never, never>;
51
57
  }, never, import("effect/Scope").Scope | Watcher.Service | Config.Service>;
58
+ export declare function source(target: string, version?: string): Source;
52
59
  declare const LoadError_base: Schema.Class<LoadError, Schema.TaggedStruct<"PluginModule.LoadError", {
53
60
  readonly message: Schema.String;
54
61
  readonly cause: Schema.optional<Schema.Defect>;
@@ -0,0 +1,12 @@
1
+ export * as WebSearchProvider from "./provider.js";
2
+ import type { Context } from "@opencode/plugin/effect/plugin";
3
+ import type { Credential } from "@opencode/schema/credential";
4
+ import type { WebSearch } from "@opencode/schema/websearch";
5
+ import { Effect } from "effect";
6
+ /** Registers a web search provider backed by an API key integration with the same ID and name. */
7
+ export declare const register: (ctx: Context, provider: {
8
+ readonly id: string;
9
+ readonly name: string;
10
+ readonly env: string;
11
+ readonly execute: (input: WebSearch.ProviderInput, credential: Credential.Value | undefined) => Effect.Effect<readonly WebSearch.Result[], unknown>;
12
+ }) => Effect.Effect<void, never, import("effect/Scope").Scope>;
@@ -4,5 +4,5 @@ import { Node } from "@opencode/util/effect/app-node";
4
4
  import { LayerNode } from "@opencode/util/effect/layer-node";
5
5
  import type { PersistentPty } from "./persistent-pty.js";
6
6
  import { Service } from "./plugin/service.js";
7
- export { awaitActivation, type Generation, type Interface, Service } from "./plugin/service.js";
7
+ export { awaitActivation, type Failure, type Generation, type Interface, Service } from "./plugin/service.js";
8
8
  export declare const node: LayerNode.Provider<Service, PersistentPty.UnavailableError, typeof Node.tags.values.location>;
@@ -66,7 +66,7 @@ export interface Interface {
66
66
  declare const Service_base: Context.ServiceClass<Service, "@opencode/RepositoryCache", Interface>;
67
67
  export declare class Service extends Service_base {
68
68
  }
69
- export declare function isError(error: unknown): error is Error;
69
+ export declare const isError: (error: unknown) => error is Error;
70
70
  export declare const validateBranch: (branch: string) => Effect.Effect<void, InvalidBranchError, never>;
71
71
  export declare const node: import("@opencode/util/effect/layer-node").Provider<Service, never, import("@opencode/util/effect/layer-node").Tag<"global">>;
72
72
  export * as RepositoryCache from "./repository-cache.js";
@@ -4,208 +4,7 @@ import type { Model } from "@opencode/schema/model";
4
4
  import { MessageDecodeError } from "./error.js";
5
5
  import { SessionMessage } from "./message.js";
6
6
  import { Instructions } from "../instructions/index.js";
7
- import { SessionMessageTable, SessionPartTable } from "./sql.js";
8
- export declare const encodePart: (input: {
9
- readonly type: "tool";
10
- readonly id: string;
11
- readonly name: string;
12
- readonly executed?: boolean | undefined;
13
- readonly native?: {
14
- readonly [x: string]: unknown;
15
- } | undefined;
16
- readonly state: {
17
- readonly status: "streaming";
18
- readonly input: string;
19
- } | {
20
- readonly status: "running";
21
- readonly input: {
22
- readonly [x: string]: unknown;
23
- };
24
- readonly metadata: {
25
- readonly [x: string]: Schema.Json;
26
- };
27
- } | {
28
- readonly status: "completed";
29
- readonly input: {
30
- readonly [x: string]: unknown;
31
- };
32
- readonly content: readonly [{
33
- readonly type: "text";
34
- readonly text: string;
35
- } | {
36
- readonly type: "file";
37
- readonly uri: string;
38
- readonly mime: string;
39
- readonly name?: string | undefined;
40
- }, ...({
41
- readonly type: "text";
42
- readonly text: string;
43
- } | {
44
- readonly type: "file";
45
- readonly uri: string;
46
- readonly mime: string;
47
- readonly name?: string | undefined;
48
- })[]];
49
- readonly metadata?: {
50
- readonly [x: string]: Schema.Json;
51
- } | undefined;
52
- } | {
53
- readonly status: "error";
54
- readonly input: {
55
- readonly [x: string]: unknown;
56
- };
57
- readonly error: {
58
- readonly type: string;
59
- readonly message: string;
60
- readonly status?: number | undefined;
61
- readonly response?: {
62
- readonly body: string;
63
- } | undefined;
64
- readonly retryAfterMs?: number | undefined;
65
- };
66
- readonly content?: readonly [{
67
- readonly type: "text";
68
- readonly text: string;
69
- } | {
70
- readonly type: "file";
71
- readonly uri: string;
72
- readonly mime: string;
73
- readonly name?: string | undefined;
74
- }, ...({
75
- readonly type: "text";
76
- readonly text: string;
77
- } | {
78
- readonly type: "file";
79
- readonly uri: string;
80
- readonly mime: string;
81
- readonly name?: string | undefined;
82
- })[]] | undefined;
83
- readonly metadata?: {
84
- readonly [x: string]: Schema.Json;
85
- } | undefined;
86
- };
87
- readonly time: {
88
- readonly created: import("effect/DateTime").Utc;
89
- readonly ran?: import("effect/DateTime").Utc | undefined;
90
- readonly completed?: import("effect/DateTime").Utc | undefined;
91
- };
92
- } | {
93
- readonly type: "text";
94
- readonly text: string;
95
- readonly native?: {
96
- readonly [x: string]: unknown;
97
- } | undefined;
98
- } | {
99
- readonly type: "reasoning";
100
- readonly text: string;
101
- readonly native?: {
102
- readonly [x: string]: unknown;
103
- } | undefined;
104
- readonly time?: {
105
- readonly created: import("effect/DateTime").Utc;
106
- readonly completed?: import("effect/DateTime").Utc | undefined;
107
- } | undefined;
108
- }, options?: import("effect/SchemaAST").ParseOptions) => {
109
- readonly type: "tool";
110
- readonly id: string;
111
- readonly name: string;
112
- readonly executed?: boolean | undefined;
113
- readonly native?: {
114
- readonly [x: string]: unknown;
115
- } | undefined;
116
- readonly state: {
117
- readonly status: "streaming";
118
- readonly input: string;
119
- } | {
120
- readonly status: "running";
121
- readonly input: {
122
- readonly [x: string]: unknown;
123
- };
124
- readonly metadata: {
125
- readonly [x: string]: Schema.Json;
126
- };
127
- } | {
128
- readonly status: "completed";
129
- readonly input: {
130
- readonly [x: string]: unknown;
131
- };
132
- readonly content: readonly [{
133
- readonly type: "text";
134
- readonly text: string;
135
- } | {
136
- readonly type: "file";
137
- readonly uri: string;
138
- readonly mime: string;
139
- readonly name?: string | undefined;
140
- }, ...({
141
- readonly type: "text";
142
- readonly text: string;
143
- } | {
144
- readonly type: "file";
145
- readonly uri: string;
146
- readonly mime: string;
147
- readonly name?: string | undefined;
148
- })[]];
149
- readonly metadata?: {
150
- readonly [x: string]: Schema.Json;
151
- } | undefined;
152
- } | {
153
- readonly status: "error";
154
- readonly input: {
155
- readonly [x: string]: unknown;
156
- };
157
- readonly error: {
158
- readonly type: string;
159
- readonly message: string;
160
- readonly status?: number | undefined;
161
- readonly response?: {
162
- readonly body: string;
163
- } | undefined;
164
- readonly retryAfterMs?: number | undefined;
165
- };
166
- readonly content?: readonly [{
167
- readonly type: "text";
168
- readonly text: string;
169
- } | {
170
- readonly type: "file";
171
- readonly uri: string;
172
- readonly mime: string;
173
- readonly name?: string | undefined;
174
- }, ...({
175
- readonly type: "text";
176
- readonly text: string;
177
- } | {
178
- readonly type: "file";
179
- readonly uri: string;
180
- readonly mime: string;
181
- readonly name?: string | undefined;
182
- })[]] | undefined;
183
- readonly metadata?: {
184
- readonly [x: string]: Schema.Json;
185
- } | undefined;
186
- };
187
- readonly time: {
188
- readonly created: number;
189
- readonly ran?: number | undefined;
190
- readonly completed?: number | undefined;
191
- };
192
- } | {
193
- readonly type: "text";
194
- readonly text: string;
195
- readonly native?: {
196
- readonly [x: string]: unknown;
197
- } | undefined;
198
- } | {
199
- readonly type: "reasoning";
200
- readonly text: string;
201
- readonly native?: {
202
- readonly [x: string]: unknown;
203
- } | undefined;
204
- readonly time?: {
205
- readonly created: number;
206
- readonly completed?: number | undefined;
207
- } | undefined;
208
- };
7
+ import { SessionMessageTable } from "./sql.js";
209
8
  /**
210
9
  * Which completed compactions bound a history read. Local summaries always do. Native
211
10
  * windows do for model-neutral readers (`latest`), never for the original transcript
@@ -220,7 +19,6 @@ export declare const isNativeCompaction: (message: SessionMessage.Info) => messa
220
19
  };
221
20
  /** A native compaction's window: canonical AI messages, stored as JSON. */
222
21
  export declare const NativeWindow: Schema.toCodecJson<Schema.$Array<typeof Message>>;
223
- export declare const hasInlineContent: (data: typeof SessionMessageTable.$inferSelect.data) => boolean;
224
22
  /**
225
23
  * Puts each assistant row's `session_part` rows into its `data.content`, in ordinal order. Rows without parts keep
226
24
  * their inline content, so legacy rows read unchanged. Runs before blob hydration so media in parts restores too.
@@ -1082,107 +880,6 @@ export declare const withParts: (db: import("../database/drizzle.js").EffectSQLi
1082
880
  time_updated: number;
1083
881
  type: "agent-switched" | "assistant" | "compaction" | "idle" | "location-switched" | "model-switched" | "shell" | "skill" | "synthetic" | "system" | "user";
1084
882
  }[], never, never>;
1085
- export declare const decodePartRowSync: (row: typeof SessionPartTable.$inferSelect) => {
1086
- readonly type: "tool";
1087
- readonly id: string;
1088
- readonly name: string;
1089
- readonly executed?: boolean | undefined;
1090
- readonly native?: {
1091
- readonly [x: string]: unknown;
1092
- } | undefined;
1093
- readonly state: {
1094
- readonly status: "streaming";
1095
- readonly input: string;
1096
- } | {
1097
- readonly status: "running";
1098
- readonly input: {
1099
- readonly [x: string]: unknown;
1100
- };
1101
- readonly metadata: {
1102
- readonly [x: string]: Schema.Json;
1103
- };
1104
- } | {
1105
- readonly status: "completed";
1106
- readonly input: {
1107
- readonly [x: string]: unknown;
1108
- };
1109
- readonly content: readonly [{
1110
- readonly type: "text";
1111
- readonly text: string;
1112
- } | {
1113
- readonly type: "file";
1114
- readonly uri: string;
1115
- readonly mime: string;
1116
- readonly name?: string | undefined;
1117
- }, ...({
1118
- readonly type: "text";
1119
- readonly text: string;
1120
- } | {
1121
- readonly type: "file";
1122
- readonly uri: string;
1123
- readonly mime: string;
1124
- readonly name?: string | undefined;
1125
- })[]];
1126
- readonly metadata?: {
1127
- readonly [x: string]: Schema.Json;
1128
- } | undefined;
1129
- } | {
1130
- readonly status: "error";
1131
- readonly input: {
1132
- readonly [x: string]: unknown;
1133
- };
1134
- readonly error: {
1135
- readonly type: string;
1136
- readonly message: string;
1137
- readonly status?: number | undefined;
1138
- readonly response?: {
1139
- readonly body: string;
1140
- } | undefined;
1141
- readonly retryAfterMs?: number | undefined;
1142
- };
1143
- readonly content?: readonly [{
1144
- readonly type: "text";
1145
- readonly text: string;
1146
- } | {
1147
- readonly type: "file";
1148
- readonly uri: string;
1149
- readonly mime: string;
1150
- readonly name?: string | undefined;
1151
- }, ...({
1152
- readonly type: "text";
1153
- readonly text: string;
1154
- } | {
1155
- readonly type: "file";
1156
- readonly uri: string;
1157
- readonly mime: string;
1158
- readonly name?: string | undefined;
1159
- })[]] | undefined;
1160
- readonly metadata?: {
1161
- readonly [x: string]: Schema.Json;
1162
- } | undefined;
1163
- };
1164
- readonly time: {
1165
- readonly created: import("effect/DateTime").Utc;
1166
- readonly ran?: import("effect/DateTime").Utc | undefined;
1167
- readonly completed?: import("effect/DateTime").Utc | undefined;
1168
- };
1169
- } | {
1170
- readonly type: "text";
1171
- readonly text: string;
1172
- readonly native?: {
1173
- readonly [x: string]: unknown;
1174
- } | undefined;
1175
- } | {
1176
- readonly type: "reasoning";
1177
- readonly text: string;
1178
- readonly native?: {
1179
- readonly [x: string]: unknown;
1180
- } | undefined;
1181
- readonly time?: {
1182
- readonly created: import("effect/DateTime").Utc;
1183
- readonly completed?: import("effect/DateTime").Utc | undefined;
1184
- } | undefined;
1185
- };
1186
883
  export declare const decodeMessageRowSync: (row: typeof SessionMessageTable.$inferSelect) => {
1187
884
  readonly id: string & import("effect/Brand").Brand<"Session.Message.ID">;
1188
885
  readonly metadata?: {
@@ -69,7 +69,6 @@ export declare const createLLMEventPublisher: (bus: Pick<Bus.Interface, "publish
69
69
  } | undefined) => Effect.Effect<void, never, never>;
70
70
  failUnsettledTools: (error: SessionError.Error, scope?: "all" | "hosted" | "uncalled" | undefined) => Effect.Effect<boolean, never, never>;
71
71
  failIncompleteTools: () => Effect.Effect<void, never, never>;
72
- hasProviderError: () => boolean;
73
72
  hasStarted: () => boolean;
74
73
  /** Immutable snapshot of everything recorded for this step so far. */
75
74
  record: () => StepRecord;