@opencode/core 2.0.7 → 2.0.9

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 (814) hide show
  1. package/dist/account/sql.js +1 -1
  2. package/dist/agent.js +80 -80
  3. package/dist/aisdk-native.js +88 -88
  4. package/dist/aisdk.js +93 -93
  5. package/dist/app.js +9 -9
  6. package/dist/bus.js +72 -72
  7. package/dist/chunks/{integration-e2hjzebn.js → tool-06x8he3q.js} +4 -4
  8. package/dist/chunks/{integration-hnv6c5tt.js → tool-07kta9gz.js} +5 -5
  9. package/dist/chunks/{integration-wgz7hchk.js → tool-08ed4zmw.js} +6 -6
  10. package/dist/chunks/{integration-t09rmbfd.js → tool-0e14c09c.js} +37 -38
  11. package/dist/chunks/{integration-ab9238g2.js → tool-0ft9cg2j.js} +6 -6
  12. package/dist/chunks/{integration-60438fy7.js → tool-0gpvppac.js} +14 -14
  13. package/dist/chunks/{integration-fjmxef0p.js → tool-0mb99r4j.js} +11 -11
  14. package/dist/chunks/{integration-0paq2nw3.js → tool-0paq2nw3.js} +1 -1
  15. package/dist/chunks/{integration-0q0f95c6.js → tool-0q0f95c6.js} +1 -1
  16. package/dist/chunks/{integration-bh0zzf2s.js → tool-0t9wd588.js} +8 -8
  17. package/dist/chunks/{integration-jdksn0k6.js → tool-0tkwk172.js} +23 -23
  18. package/dist/chunks/{integration-zkf5jky9.js → tool-133y1x9c.js} +5 -5
  19. package/dist/chunks/{integration-qf3ebkzx.js → tool-13kry10e.js} +9 -9
  20. package/dist/chunks/{integration-grt2chjq.js → tool-197ae9n4.js} +76 -76
  21. package/dist/chunks/{integration-1dazxqgg.js → tool-1dazxqgg.js} +2 -2
  22. package/dist/chunks/{integration-yf4y1y8p.js → tool-1n6jm1r8.js} +15 -15
  23. package/dist/chunks/{integration-hgytqh36.js → tool-1q4w1hkk.js} +13 -13
  24. package/dist/chunks/{integration-1jb3t5y8.js → tool-1rf9k0bb.js} +44 -44
  25. package/dist/chunks/{integration-361zbcwc.js → tool-1tx6fftr.js} +11 -11
  26. package/dist/chunks/{integration-ha2e1a5y.js → tool-1y3ke0et.js} +16 -16
  27. package/dist/chunks/{integration-ctv3sctt.js → tool-1yee1wsw.js} +5 -5
  28. package/dist/chunks/{integration-mfqp6xfm.js → tool-1ygqh575.js} +6 -6
  29. package/dist/chunks/{integration-21r38tys.js → tool-21r38tys.js} +1 -1
  30. package/dist/chunks/{integration-3wh0psgk.js → tool-22yzgjh2.js} +29 -29
  31. package/dist/chunks/{integration-6h73sxmp.js → tool-2402vzrj.js} +5 -5
  32. package/dist/chunks/{integration-a89e0tac.js → tool-277eer69.js} +4 -4
  33. package/dist/chunks/{integration-by3dbgkm.js → tool-27arm9z1.js} +5 -5
  34. package/dist/chunks/{integration-9n92wg39.js → tool-2849xt8w.js} +11 -11
  35. package/dist/chunks/{integration-2a5m3afh.js → tool-2a5m3afh.js} +1 -1
  36. package/dist/chunks/{integration-aawn6y2n.js → tool-2a8ctrw4.js} +28 -28
  37. package/dist/chunks/{integration-fjhejfvr.js → tool-2g2cd18n.js} +32 -32
  38. package/dist/chunks/{integration-qzes1frq.js → tool-2g7ehmrk.js} +7 -7
  39. package/dist/chunks/{integration-fp13m9d9.js → tool-2gch173w.js} +38 -38
  40. package/dist/chunks/{integration-wxfef5f7.js → tool-2s87feef.js} +23 -23
  41. package/dist/chunks/{integration-cwa6csj7.js → tool-2sejkfem.js} +9 -9
  42. package/dist/chunks/tool-2vmydbdw.js +39 -0
  43. package/dist/chunks/{integration-y3htf95n.js → tool-3cbaeney.js} +3 -3
  44. package/dist/chunks/{integration-3fc6dm20.js → tool-3fc6dm20.js} +1 -1
  45. package/dist/chunks/{integration-3hepkmqq.js → tool-3hepkmqq.js} +1 -1
  46. package/dist/chunks/tool-3j9bgvtg.js +123 -0
  47. package/dist/chunks/{integration-5jg9j8z5.js → tool-3mtxmfhx.js} +36 -36
  48. package/dist/chunks/{integration-3smtnn6g.js → tool-3smtnn6g.js} +1 -1
  49. package/dist/chunks/{integration-3tvqynh2.js → tool-3tvqynh2.js} +1 -1
  50. package/dist/chunks/{integration-g98kts4v.js → tool-42djxevb.js} +54 -49
  51. package/dist/chunks/{integration-63gwy3f0.js → tool-4chvkj0g.js} +27 -27
  52. package/dist/chunks/{integration-30846h32.js → tool-4e8vs6eh.js} +8 -8
  53. package/dist/chunks/{integration-dzbr64j7.js → tool-4gtpy403.js} +20 -20
  54. package/dist/chunks/{integration-4n9c6g4h.js → tool-4k6nnmrf.js} +30 -30
  55. package/dist/chunks/{integration-by9h9y0p.js → tool-4n9mx8v3.js} +29 -29
  56. package/dist/chunks/{integration-s40zj2kv.js → tool-4vjsat8t.js} +20 -20
  57. package/dist/chunks/{integration-7b01gr93.js → tool-57m9tgf1.js} +13 -13
  58. package/dist/chunks/{integration-mfhfdr54.js → tool-5c0f1prt.js} +4 -4
  59. package/dist/chunks/{integration-a1bz86dw.js → tool-5c4hm403.js} +3 -3
  60. package/dist/chunks/{integration-89vjf07m.js → tool-5d17xbav.js} +5 -5
  61. package/dist/chunks/{integration-5daktx2q.js → tool-5daktx2q.js} +1 -1
  62. package/dist/chunks/{integration-bgxcxs0p.js → tool-5e19p4dw.js} +5 -5
  63. package/dist/chunks/{integration-0v53mg2y.js → tool-5q02cxx3.js} +4 -4
  64. package/dist/chunks/{integration-y3egp4dd.js → tool-5rbeskxf.js} +9 -9
  65. package/dist/chunks/{integration-ag2gfn9f.js → tool-5rdsaqrf.js} +5 -5
  66. package/dist/chunks/{integration-5t3nmthw.js → tool-5t3nmthw.js} +2 -2
  67. package/dist/chunks/{integration-zqsm83yf.js → tool-5y430q9n.js} +11 -11
  68. package/dist/chunks/{integration-mnaavyqg.js → tool-5y6wgat7.js} +47 -47
  69. package/dist/chunks/{integration-bscb95cy.js → tool-5yeq06a0.js} +9 -9
  70. package/dist/chunks/{integration-5xtgfte3.js → tool-5yzzbxa7.js} +8 -8
  71. package/dist/chunks/{integration-mx4e50pb.js → tool-60hfzj8m.js} +4 -4
  72. package/dist/chunks/{integration-669tq793.js → tool-669tq793.js} +1 -1
  73. package/dist/chunks/{integration-y6f0p4jw.js → tool-6bsje7ws.js} +3 -3
  74. package/dist/chunks/{integration-71xbqxp3.js → tool-6gc9zjjv.js} +12 -12
  75. package/dist/chunks/{integration-h71w788e.js → tool-6hjx5zpb.js} +9 -9
  76. package/dist/chunks/{integration-6msgmcgs.js → tool-6msgmcgs.js} +1 -1
  77. package/dist/chunks/{integration-75ks8wpd.js → tool-6nma5gxg.js} +10 -10
  78. package/dist/chunks/{integration-0ja9hz8h.js → tool-7037ptb2.js} +27 -27
  79. package/dist/chunks/{integration-r5x6zcsm.js → tool-73tb2d7t.js} +3 -3
  80. package/dist/chunks/{integration-jtazzn7t.js → tool-76p4c97e.js} +12 -12
  81. package/dist/chunks/{integration-qj0280db.js → tool-77m2y8gv.js} +12 -20
  82. package/dist/chunks/{integration-cwa84xdc.js → tool-7a4dnpr3.js} +40 -40
  83. package/dist/chunks/{integration-7bmhse3q.js → tool-7bmhse3q.js} +1 -1
  84. package/dist/chunks/{integration-b5y8n1e6.js → tool-7gyssj7x.js} +21 -21
  85. package/dist/chunks/{integration-f6ekd8xv.js → tool-7ngem68y.js} +3 -3
  86. package/dist/chunks/{integration-gv9r9ztf.js → tool-7nm0hg1a.js} +26 -26
  87. package/dist/chunks/{integration-s1yskcg0.js → tool-88wb8vtq.js} +26 -26
  88. package/dist/chunks/{integration-cq37gk0t.js → tool-89smrnyf.js} +4 -4
  89. package/dist/chunks/{integration-zpnb0y11.js → tool-8b03w2b6.js} +51 -51
  90. package/dist/chunks/{integration-nn34bpja.js → tool-8cpww9tf.js} +6 -6
  91. package/dist/chunks/{integration-8d7r5vzw.js → tool-8d7r5vzw.js} +1 -1
  92. package/dist/chunks/{integration-31vv3fx1.js → tool-8eg130jy.js} +11 -11
  93. package/dist/chunks/{integration-3vp2enxy.js → tool-8rras65h.js} +15 -15
  94. package/dist/chunks/{integration-ngnbq9bc.js → tool-8szgh749.js} +4 -4
  95. package/dist/chunks/{integration-tj7ekckq.js → tool-8t1mk3vk.js} +50 -50
  96. package/dist/chunks/{integration-ts4smcrt.js → tool-8vvqba33.js} +14 -14
  97. package/dist/chunks/{integration-whsap9g4.js → tool-91f0wncr.js} +14 -12
  98. package/dist/chunks/{integration-r2tzf22e.js → tool-9ebbd7jr.js} +8 -8
  99. package/dist/chunks/{integration-dw76zyaf.js → tool-9endzh9e.js} +16 -16
  100. package/dist/chunks/{integration-n72gnw9z.js → tool-9hd1jrv7.js} +10 -10
  101. package/dist/chunks/{integration-wx2t9nyy.js → tool-9pr9fbrd.js} +23 -23
  102. package/dist/chunks/{integration-9ydd6pgk.js → tool-9thxh3x6.js} +7 -7
  103. package/dist/chunks/{integration-qxrjxyb1.js → tool-a012ky48.js} +10 -10
  104. package/dist/chunks/{integration-n7gd6fv3.js → tool-a9jc8qdz.js} +10 -10
  105. package/dist/chunks/{integration-aaet6srn.js → tool-aaet6srn.js} +2 -2
  106. package/dist/chunks/{integration-717hbd2e.js → tool-adffrgan.js} +18 -18
  107. package/dist/chunks/{integration-c96f455v.js → tool-afmcrv4e.js} +11 -11
  108. package/dist/chunks/{integration-4tem132z.js → tool-ar0mpfen.js} +16 -16
  109. package/dist/chunks/tool-az58nsbk.js +26 -0
  110. package/dist/chunks/{integration-2mja353d.js → tool-b1syqa90.js} +8 -8
  111. package/dist/chunks/{integration-b6gygkdw.js → tool-b6gygkdw.js} +2 -2
  112. package/dist/chunks/{integration-1svwp2zq.js → tool-b71trcwb.js} +15 -15
  113. package/dist/chunks/{integration-d2aac7k2.js → tool-bhj4y43k.js} +5 -5
  114. package/dist/chunks/{integration-xbxrvfar.js → tool-c7hpn42k.js} +17 -17
  115. package/dist/chunks/{integration-02sqwze2.js → tool-cap3n08w.js} +22 -22
  116. package/dist/chunks/{integration-jw80jp6b.js → tool-cavr175a.js} +4 -4
  117. package/dist/chunks/{integration-06j1jany.js → tool-cb2k1f8p.js} +20 -20
  118. package/dist/chunks/{integration-8ybgfkrt.js → tool-czgzge8y.js} +8 -8
  119. package/dist/chunks/{integration-5q352ksx.js → tool-d0syxqaf.js} +3 -3
  120. package/dist/chunks/{integration-2g1kg6mf.js → tool-d8dkarbn.js} +14 -14
  121. package/dist/chunks/{integration-xxhb4jr7.js → tool-d9s573fh.js} +9 -9
  122. package/dist/chunks/{integration-7539fxrp.js → tool-dc0tp24d.js} +5 -5
  123. package/dist/chunks/{integration-8bnawm75.js → tool-dcjp3a2d.js} +31 -31
  124. package/dist/chunks/{integration-tv8kvtrg.js → tool-df3x4kde.js} +15 -15
  125. package/dist/chunks/{integration-8p4f9s12.js → tool-dj2t23y0.js} +2 -2
  126. package/dist/chunks/{integration-tv6v1fw0.js → tool-dqmvjehx.js} +20 -20
  127. package/dist/chunks/{integration-qqeeq2t9.js → tool-drwq78ky.js} +7 -7
  128. package/dist/chunks/{integration-shkdv626.js → tool-drz214yv.js} +25 -23
  129. package/dist/chunks/{integration-rhmz26db.js → tool-dssw6a44.js} +23 -23
  130. package/dist/chunks/{integration-2cse4yyr.js → tool-dwktjsma.js} +1 -1
  131. package/dist/chunks/{integration-yhmfm09s.js → tool-dz1mzf7h.js} +25 -25
  132. package/dist/chunks/{integration-1ksm7rsz.js → tool-e1ddjrnd.js} +33 -33
  133. package/dist/chunks/{integration-s12geb02.js → tool-e1hrzsan.js} +12 -12
  134. package/dist/chunks/{integration-d892zs75.js → tool-e7q4x2ep.js} +23 -23
  135. package/dist/chunks/{integration-ayfk1h0n.js → tool-e7vjfaw8.js} +91 -91
  136. package/dist/chunks/{integration-4f6d0pew.js → tool-ebdw14y1.js} +25 -24
  137. package/dist/chunks/{integration-ef5x83kb.js → tool-ef5x83kb.js} +1 -1
  138. package/dist/chunks/{integration-gvvdpzqz.js → tool-ek2qcn6v.js} +5 -5
  139. package/dist/chunks/{integration-3jqnyahm.js → tool-epap41sx.js} +4 -4
  140. package/dist/chunks/{integration-c73rdsyt.js → tool-eq68chpb.js} +9 -9
  141. package/dist/chunks/{integration-erw5rpbs.js → tool-erw5rpbs.js} +2 -2
  142. package/dist/chunks/{integration-etq0c3wd.js → tool-etq0c3wd.js} +1 -1
  143. package/dist/chunks/{integration-1acjjqhc.js → tool-f2n192rq.js} +4 -4
  144. package/dist/chunks/{integration-fhs97t90.js → tool-f7j90zp2.js} +9 -9
  145. package/dist/chunks/{integration-424g7dr0.js → tool-f8ekkhd9.js} +46 -46
  146. package/dist/chunks/{integration-hyfj73c0.js → tool-fcy52zm3.js} +47 -47
  147. package/dist/chunks/{integration-b09hzw3k.js → tool-ff0svapt.js} +2 -2
  148. package/dist/chunks/{integration-zqx8wcya.js → tool-fkjmw100.js} +8 -8
  149. package/dist/chunks/{integration-wsh21s13.js → tool-fnkqs40h.js} +33 -33
  150. package/dist/chunks/{integration-xsgk3b13.js → tool-fsbk27r1.js} +9 -9
  151. package/dist/chunks/{integration-fxbjtjnd.js → tool-fxbjtjnd.js} +1 -1
  152. package/dist/chunks/{integration-ts74b2aa.js → tool-gbag256c.js} +28 -28
  153. package/dist/chunks/{integration-gd4qta3r.js → tool-gd4qta3r.js} +1 -1
  154. package/dist/chunks/{integration-fkvr2bf4.js → tool-gnrgb9v9.js} +15 -15
  155. package/dist/chunks/tool-gyce5qg1.js +18 -0
  156. package/dist/chunks/{integration-fepr4w5j.js → tool-h2t4955r.js} +21 -21
  157. package/dist/chunks/{integration-t7hd99dg.js → tool-h5msn5dz.js} +14 -14
  158. package/dist/chunks/{integration-5mtzsd3b.js → tool-h6r3nrb9.js} +4 -4
  159. package/dist/chunks/{integration-h6vf3j39.js → tool-h6vf3j39.js} +1 -1
  160. package/dist/chunks/{integration-f828m53h.js → tool-hdnk95c8.js} +2 -2
  161. package/dist/chunks/{integration-3e9gt9pq.js → tool-hxsyww7z.js} +26 -22
  162. package/dist/chunks/{integration-h2r7bbkd.js → tool-hzfzrbn9.js} +8 -8
  163. package/dist/chunks/{integration-j56e64zr.js → tool-j56e64zr.js} +1 -1
  164. package/dist/chunks/{integration-xgghj434.js → tool-jd6wf3ec.js} +6 -6
  165. package/dist/chunks/{integration-3wqt5zad.js → tool-jd81wks2.js} +35 -35
  166. package/dist/chunks/{integration-zeh3qhes.js → tool-jm3kmfpd.js} +43 -43
  167. package/dist/chunks/{integration-6cv9b742.js → tool-jn4t2z3d.js} +4 -4
  168. package/dist/chunks/{integration-1wbhvsa0.js → tool-kcrds6bj.js} +24 -24
  169. package/dist/chunks/{integration-t96h8vn6.js → tool-krc9qdj7.js} +35 -35
  170. package/dist/chunks/{integration-cfpkc3c9.js → tool-m0jqrx5p.js} +2 -2
  171. package/dist/chunks/{integration-d25378pd.js → tool-m32ek0sw.js} +4 -4
  172. package/dist/chunks/{integration-m3fdjcah.js → tool-m3fdjcah.js} +1 -1
  173. package/dist/chunks/{integration-m9w0rfyh.js → tool-m9w0rfyh.js} +1 -1
  174. package/dist/chunks/{integration-ch54p1a9.js → tool-mh3xs90e.js} +28 -28
  175. package/dist/chunks/{integration-ght2kap4.js → tool-n24pcqxv.js} +8 -8
  176. package/dist/chunks/{integration-k06s6pez.js → tool-n3mc6yaw.js} +28 -28
  177. package/dist/chunks/{integration-t0fxg8b9.js → tool-n4pqkaym.js} +5 -5
  178. package/dist/chunks/{integration-sz7h0m66.js → tool-nccpag2r.js} +25 -25
  179. package/dist/chunks/{integration-d51kj8va.js → tool-nj8fcevf.js} +17 -17
  180. package/dist/chunks/{integration-kxx7k9ny.js → tool-nr25fmgm.js} +27 -27
  181. package/dist/chunks/{integration-wk3yr6fy.js → tool-ns0n9ww9.js} +22 -22
  182. package/dist/chunks/{integration-0g7z141f.js → tool-nt9apy23.js} +12 -12
  183. package/dist/chunks/{integration-xfwam4t6.js → tool-nwgfxwxy.js} +22 -22
  184. package/dist/chunks/{integration-nzks3jc8.js → tool-nzks3jc8.js} +3 -3
  185. package/dist/chunks/{integration-p28j5sbe.js → tool-p28j5sbe.js} +2 -2
  186. package/dist/chunks/{integration-hzds88te.js → tool-p6q10aaw.js} +62 -31
  187. package/dist/chunks/{integration-xcm9a8eq.js → tool-pb77jvd0.js} +10 -10
  188. package/dist/chunks/{integration-036p5t1s.js → tool-pcfkrm12.js} +4 -4
  189. package/dist/chunks/{integration-b8szb91g.js → tool-pf6xmb6f.js} +9 -9
  190. package/dist/chunks/{integration-984xje6x.js → tool-phc8pspp.js} +3 -3
  191. package/dist/chunks/{integration-pjvnvgmy.js → tool-pjvnvgmy.js} +1 -1
  192. package/dist/chunks/{integration-pknna89w.js → tool-pknna89w.js} +1 -1
  193. package/dist/chunks/{integration-qgrcs4vk.js → tool-pwf27gkd.js} +11 -11
  194. package/dist/chunks/{integration-m023722w.js → tool-py5ms06j.js} +27 -27
  195. package/dist/chunks/{integration-xtg1xd5n.js → tool-qbp86h8m.js} +91 -91
  196. package/dist/chunks/{integration-an5bmsq0.js → tool-qc9kn75m.js} +8 -8
  197. package/dist/chunks/{integration-qbatz9s3.js → tool-qecsarb4.js} +28 -28
  198. package/dist/chunks/{integration-tdf9xhep.js → tool-qf41qe2n.js} +19 -16
  199. package/dist/chunks/{integration-7dqw4kz8.js → tool-qgn6gcr1.js} +5 -5
  200. package/dist/chunks/{integration-f35xt7k7.js → tool-qnc1epre.js} +11 -11
  201. package/dist/chunks/{integration-fwdrt8y0.js → tool-qqcjb6jx.js} +42 -33
  202. package/dist/chunks/{integration-7v9j4tg8.js → tool-qr7xcjfz.js} +18 -18
  203. package/dist/chunks/{integration-qsdy395h.js → tool-qsdy395h.js} +1 -1
  204. package/dist/chunks/{integration-x2ehjnaf.js → tool-qzwv76tp.js} +6 -6
  205. package/dist/chunks/{integration-bp376hr7.js → tool-r2m639zq.js} +9 -9
  206. package/dist/chunks/{integration-99a1yfw0.js → tool-r6qdpshk.js} +13 -13
  207. package/dist/chunks/{integration-03e5bnrk.js → tool-r9s1vmbv.js} +11 -11
  208. package/dist/chunks/{integration-zq6stcrg.js → tool-rav9e4bf.js} +5 -5
  209. package/dist/chunks/tool-rdf0737w.js +252 -0
  210. package/dist/chunks/{integration-rdw6cm16.js → tool-rdw6cm16.js} +1 -1
  211. package/dist/chunks/{integration-w6yx7at2.js → tool-rq1pz7qt.js} +30 -30
  212. package/dist/chunks/{integration-zeh9ct20.js → tool-rq775frq.js} +2 -2
  213. package/dist/chunks/{integration-bcxedjzd.js → tool-rx6gygm6.js} +3 -3
  214. package/dist/chunks/{integration-j2sam9jv.js → tool-rx871m47.js} +2 -2
  215. package/dist/chunks/{integration-egjdmc9a.js → tool-rxerzcr3.js} +44 -44
  216. package/dist/chunks/{integration-jthw9jrm.js → tool-s4fep8mk.js} +18 -15
  217. package/dist/chunks/{integration-rhjbct0v.js → tool-s8d7rejh.js} +4 -4
  218. package/dist/chunks/{integration-qcwz4p84.js → tool-sd3ysec1.js} +48 -49
  219. package/dist/chunks/{integration-bje2awg5.js → tool-skq2eby0.js} +18 -18
  220. package/dist/chunks/{integration-1x4zaxp7.js → tool-sr2ca446.js} +1 -1
  221. package/dist/chunks/{integration-wpm2rk0p.js → tool-stag65f9.js} +8 -8
  222. package/dist/chunks/{integration-7ejxwnn2.js → tool-t0e82vdg.js} +19 -19
  223. package/dist/chunks/{integration-wk7afg2y.js → tool-t15tae8c.js} +28 -28
  224. package/dist/chunks/{integration-4z9gzs34.js → tool-t183he7n.js} +17 -17
  225. package/dist/chunks/{integration-efwc84nf.js → tool-t6rnym7v.js} +14 -14
  226. package/dist/chunks/{integration-tazgh4e4.js → tool-tazgh4e4.js} +1 -1
  227. package/dist/chunks/{integration-tcezcvh9.js → tool-tcezcvh9.js} +1 -1
  228. package/dist/chunks/{integration-tdstcens.js → tool-tdstcens.js} +1 -1
  229. package/dist/chunks/{integration-n1nc45vm.js → tool-tjmwbj5k.js} +16 -16
  230. package/dist/chunks/{integration-6hh8tjw2.js → tool-tkmwgdpd.js} +7 -7
  231. package/dist/chunks/{integration-dw8gz3mq.js → tool-tqf8vx6a.js} +13 -13
  232. package/dist/chunks/{integration-tvtrv512.js → tool-tvtrv512.js} +1 -1
  233. package/dist/chunks/{integration-bfsnneva.js → tool-v6kqcv79.js} +15 -15
  234. package/dist/chunks/{integration-mvef3yxd.js → tool-v8z2wyq8.js} +32 -32
  235. package/dist/chunks/{integration-ex9wjj40.js → tool-vbyfx3mn.js} +24 -24
  236. package/dist/chunks/{integration-nej4p9g1.js → tool-vcev46jt.js} +28 -28
  237. package/dist/chunks/{integration-veqvce7d.js → tool-veqvce7d.js} +1 -1
  238. package/dist/chunks/{integration-pjgwjwxs.js → tool-vgc515rw.js} +11 -11
  239. package/dist/chunks/{integration-x0jthw69.js → tool-vh7phyy0.js} +43 -43
  240. package/dist/chunks/{integration-tx47f3yx.js → tool-vppzcqrc.js} +15 -15
  241. package/dist/chunks/{integration-9gea571p.js → tool-vqfzq50h.js} +6 -6
  242. package/dist/chunks/{integration-awhm4hzw.js → tool-vs9wvdae.js} +188 -187
  243. package/dist/chunks/{integration-jx3wypgw.js → tool-vsbgd8f5.js} +27 -27
  244. package/dist/chunks/{integration-7yd8qa94.js → tool-vwgz8d7g.js} +8 -8
  245. package/dist/chunks/{integration-hynrrzr9.js → tool-vy03e0d7.js} +18 -18
  246. package/dist/chunks/{integration-vzcthcp8.js → tool-vzcthcp8.js} +1 -1
  247. package/dist/chunks/{integration-m2ygz4rv.js → tool-vzt7w0x1.js} +18 -18
  248. package/dist/chunks/tool-vzyzcn29.js +65 -0
  249. package/dist/chunks/{integration-yybj5cwe.js → tool-w1tdvvt2.js} +9 -9
  250. package/dist/chunks/{integration-w3wsvvr9.js → tool-w3wsvvr9.js} +1 -1
  251. package/dist/chunks/{integration-hsrp58xj.js → tool-w6ertran.js} +13 -13
  252. package/dist/chunks/{integration-wd87259q.js → tool-wd87259q.js} +1 -1
  253. package/dist/chunks/{integration-es74qn32.js → tool-wt8nwjmt.js} +6 -6
  254. package/dist/chunks/{integration-gsw5hfjj.js → tool-ww5k9hxf.js} +24 -24
  255. package/dist/chunks/{integration-e7190871.js → tool-wyd4vgvd.js} +17 -17
  256. package/dist/chunks/{integration-5d5383gp.js → tool-x0511brf.js} +4 -4
  257. package/dist/chunks/{integration-x1ezjp6w.js → tool-x1ezjp6w.js} +1 -1
  258. package/dist/chunks/{integration-ptz1vvyt.js → tool-x6z1bn3h.js} +32 -32
  259. package/dist/chunks/{integration-bk2n1gvf.js → tool-xg0cet8h.js} +32 -32
  260. package/dist/chunks/{integration-07kph379.js → tool-xhtw6jf1.js} +3 -3
  261. package/dist/chunks/{integration-ndx5r91v.js → tool-xn17ps4b.js} +3 -3
  262. package/dist/chunks/tool-xr88f9g7.js +492 -0
  263. package/dist/chunks/{integration-69z0jng6.js → tool-xxh17bsg.js} +11 -11
  264. package/dist/chunks/{integration-y1fvbwt7.js → tool-y1fvbwt7.js} +1 -1
  265. package/dist/chunks/{integration-jrpnwa23.js → tool-y1swv0f0.js} +5 -5
  266. package/dist/chunks/{integration-drmyzd20.js → tool-y5pzn50y.js} +32 -32
  267. package/dist/chunks/{integration-y71avatq.js → tool-y71avatq.js} +1 -1
  268. package/dist/chunks/{integration-qtzk0ftm.js → tool-ye73daeg.js} +20 -20
  269. package/dist/chunks/{integration-qj7wvw4x.js → tool-yp1xsd17.js} +43 -43
  270. package/dist/chunks/{integration-ps9hb5ct.js → tool-yravmt5v.js} +11 -11
  271. package/dist/chunks/{integration-yrhqyw5v.js → tool-yrhqyw5v.js} +1 -1
  272. package/dist/chunks/{integration-yrznvahk.js → tool-yrznvahk.js} +2 -2
  273. package/dist/chunks/{integration-g49fastt.js → tool-yxjvheq8.js} +18 -17
  274. package/dist/chunks/{integration-gv6a8nnw.js → tool-yyb7tjpc.js} +2 -2
  275. package/dist/chunks/{integration-z0bkrqjs.js → tool-z0bkrqjs.js} +1 -1
  276. package/dist/chunks/{integration-z63w68vq.js → tool-z63w68vq.js} +2 -2
  277. package/dist/chunks/{integration-7drzedwa.js → tool-z80n829h.js} +47 -47
  278. package/dist/chunks/{integration-pqt18mke.js → tool-z89cezv7.js} +6 -6
  279. package/dist/chunks/{integration-wm4ff12p.js → tool-zdetck8p.js} +59 -59
  280. package/dist/chunks/{integration-fch79rh9.js → tool-zhq6vg7a.js} +1 -1
  281. package/dist/chunks/{integration-6hs98t9x.js → tool-zk0g89ph.js} +13 -13
  282. package/dist/chunks/{integration-gamnghgg.js → tool-zpks96xd.js} +13 -13
  283. package/dist/chunks/{integration-zr2ceqn5.js → tool-zr2ceqn5.js} +1 -1
  284. package/dist/chunks/{integration-w0t5mfte.js → tool-zwfjdtpq.js} +25 -25
  285. package/dist/chunks/{integration-7t1qjft4.js → tool-zxcbkvg1.js} +18 -18
  286. package/dist/chunks/{integration-zxq2ej10.js → tool-zxq2ej10.js} +1 -1
  287. package/dist/chunks/{integration-ck69dtv7.js → tool-zy1jay2k.js} +4 -4
  288. package/dist/chunks/{integration-vgn02gcn.js → tool-zz2gaj37.js} +24 -24
  289. package/dist/codemode/catalog.js +1 -1
  290. package/dist/codemode/instructions.js +9 -9
  291. package/dist/codemode/tool.js +3 -3
  292. package/dist/codemode/web.js +1 -1
  293. package/dist/command.js +84 -84
  294. package/dist/config/discovery.js +81 -81
  295. package/dist/config/markdown.js +1 -1
  296. package/dist/config/normalize.js +105 -105
  297. package/dist/config/plugin/agent.js +124 -124
  298. package/dist/config/plugin/command.js +213 -213
  299. package/dist/config/plugin/compaction.js +161 -161
  300. package/dist/config/plugin/compatibility.js +140 -140
  301. package/dist/config/plugin/entry-observer.js +1 -1
  302. package/dist/config/plugin/formatter.js +123 -123
  303. package/dist/config/plugin/image.js +122 -122
  304. package/dist/config/plugin/instruction.js +89 -89
  305. package/dist/config/plugin/location-watcher.js +124 -124
  306. package/dist/config/plugin/mcp.js +131 -131
  307. package/dist/config/plugin/policy.js +122 -122
  308. package/dist/config/plugin/provider.js +122 -122
  309. package/dist/config/plugin/reference.js +124 -124
  310. package/dist/config/plugin/shell.js +124 -124
  311. package/dist/config/plugin/skill-file.js +101 -101
  312. package/dist/config/plugin/skill.js +143 -143
  313. package/dist/config/plugin/snapshot.js +122 -122
  314. package/dist/config/plugin/source.js +125 -125
  315. package/dist/config/plugin/tool-output.js +124 -124
  316. package/dist/config/plugin/websearch.js +123 -123
  317. package/dist/config/plugin/worktree.js +124 -124
  318. package/dist/config/variable.js +3 -3
  319. package/dist/config/watch.js +1 -1
  320. package/dist/config.js +127 -127
  321. package/dist/credential/sql.js +2 -2
  322. package/dist/credential.js +80 -80
  323. package/dist/database/database.js +69 -69
  324. package/dist/database/drizzle/effect-sqlite/driver.js +12 -12
  325. package/dist/database/drizzle/effect-sqlite/index.js +12 -12
  326. package/dist/database/drizzle/effect-sqlite/session.js +11 -11
  327. package/dist/database/drizzle/index.js +13 -13
  328. package/dist/database/drizzle/internal/drizzle-utils.js +1 -1
  329. package/dist/database/drizzle/sqlite-core/effect/count.js +1 -1
  330. package/dist/database/drizzle/sqlite-core/effect/db.js +9 -9
  331. package/dist/database/drizzle/sqlite-core/effect/delete.js +2 -2
  332. package/dist/database/drizzle/sqlite-core/effect/index.js +10 -10
  333. package/dist/database/drizzle/sqlite-core/effect/insert.js +2 -2
  334. package/dist/database/drizzle/sqlite-core/effect/query.js +1 -1
  335. package/dist/database/drizzle/sqlite-core/effect/raw.js +1 -1
  336. package/dist/database/drizzle/sqlite-core/effect/select.js +2 -2
  337. package/dist/database/drizzle/sqlite-core/effect/session.js +10 -10
  338. package/dist/database/drizzle/sqlite-core/effect/update.js +2 -2
  339. package/dist/database/drizzle.js +14 -14
  340. package/dist/database/migration/20260127222353_familiar_lady_ursula.js +1 -1
  341. package/dist/database/migration/20260211171708_add_project_commands.js +1 -1
  342. package/dist/database/migration/20260213144116_wakeful_the_professor.js +1 -1
  343. package/dist/database/migration/20260225215848_workspace.js +1 -1
  344. package/dist/database/migration/20260227213759_add_session_workspace_id.js +1 -1
  345. package/dist/database/migration/20260228203230_blue_harpoon.js +1 -1
  346. package/dist/database/migration/20260303231226_add_workspace_fields.js +1 -1
  347. package/dist/database/migration/20260309230000_move_org_to_state.js +1 -1
  348. package/dist/database/migration/20260312043431_session_message_cursor.js +1 -1
  349. package/dist/database/migration/20260323234822_events.js +1 -1
  350. package/dist/database/migration/20260410174513_workspace-name.js +1 -1
  351. package/dist/database/migration/20260413175956_chief_energizer.js +1 -1
  352. package/dist/database/migration/20260423070820_add_icon_url_override.js +1 -1
  353. package/dist/database/migration/20260427172553_slow_nightmare.js +1 -1
  354. package/dist/database/migration/20260428004200_add_session_path.js +1 -1
  355. package/dist/database/migration/20260501142318_next_venus.js +1 -1
  356. package/dist/database/migration/20260504145000_add_sync_owner.js +1 -1
  357. package/dist/database/migration/20260507164347_add_workspace_time.js +1 -1
  358. package/dist/database/migration/20260510033149_session_usage.js +1 -1
  359. package/dist/database/migration/20260511000411_data_migration_state.js +1 -1
  360. package/dist/database/migration/20260511173437_session-metadata.js +1 -1
  361. package/dist/database/migration/20260601010001_normalize_storage_paths.js +1 -1
  362. package/dist/database/migration/20260601202201_amazing_prowler.js +1 -1
  363. package/dist/database/migration/20260602002951_lowly_union_jack.js +1 -1
  364. package/dist/database/migration/20260602182828_add_project_directories.js +1 -1
  365. package/dist/database/migration/20260603001617_session_message_projection_indexes.js +1 -1
  366. package/dist/database/migration/20260603040000_session_message_projection_order.js +1 -1
  367. package/dist/database/migration/20260603141458_session_input_inbox.js +1 -1
  368. package/dist/database/migration/20260603160727_jittery_ezekiel_stane.js +1 -1
  369. package/dist/database/migration/20260604172448_event_sourced_session_input.js +1 -1
  370. package/dist/database/migration/20260605003541_add_session_context_snapshot.js +1 -1
  371. package/dist/database/migration/20260605042240_add_context_epoch_agent.js +1 -1
  372. package/dist/database/migration/20260611035744_credential.js +1 -1
  373. package/dist/database/migration/20260611192811_lush_chimera.js +1 -1
  374. package/dist/database/migration/20260612174303_project_dir_strategy.js +1 -1
  375. package/dist/database/migration/20260622142730_simplify_session_context_epoch.js +1 -1
  376. package/dist/database/migration/20260622170816_reset_v2_session_state.js +1 -1
  377. package/dist/database/migration/20260622202450_simplify_session_input.js +1 -1
  378. package/dist/database/migration/20260804233008_loose_psylocke.js +1 -1
  379. package/dist/database/migration/20260805200742_import_legacy_credentials.js +1 -1
  380. package/dist/database/migration/20260808023530_workspace_domain.js +1 -1
  381. package/dist/database/migration/20260811161259_execution_claim_attempts.js +1 -1
  382. package/dist/database/migration/20260812181746_session_inbox.js +1 -1
  383. package/dist/database/migration/20260812213948_worktree.js +1 -1
  384. package/dist/database/migration/20260819222447_session_viewed_state.js +1 -1
  385. package/dist/database/migration/20260823191254_nullable_workspace_binding.js +1 -1
  386. package/dist/database/migration/20260910120000_clear_v1_session_permission.js +1 -1
  387. package/dist/database/migration.gen.js +48 -48
  388. package/dist/database/migration.js +50 -50
  389. package/dist/database/path.js +2 -2
  390. package/dist/database/schema.gen.js +1 -1
  391. package/dist/database/schema.sql.js +1 -1
  392. package/dist/database/sqlite.bun.js +1 -1
  393. package/dist/database/sqlite.js +1 -1
  394. package/dist/database/sqlite.node.js +1 -1
  395. package/dist/database/sqlite.workerd.js +1 -1
  396. package/dist/database/v1-migration.bun.js +78 -78
  397. package/dist/database/v1-migration.js +1 -1
  398. package/dist/effect/app-node-builder.js +368 -366
  399. package/dist/effect/app-node-platform.js +2 -2
  400. package/dist/effect/keyed-mutex.js +1 -1
  401. package/dist/effect/websocket-constructor.js +1 -1
  402. package/dist/environment/driver.js +1 -1
  403. package/dist/environment/environment.js +92 -92
  404. package/dist/environment/exec-defaults.js +2 -2
  405. package/dist/environment/files.js +1 -1
  406. package/dist/environment/index.js +94 -94
  407. package/dist/environment/local.js +2 -2
  408. package/dist/environment/memory.js +2 -2
  409. package/dist/environment/unavailable.js +1 -1
  410. package/dist/event/sql.js +1 -1
  411. package/dist/event-logger.js +73 -73
  412. package/dist/file-access.js +103 -103
  413. package/dist/file-mutation.js +93 -93
  414. package/dist/file-retention.js +1 -1
  415. package/dist/file.js +1 -1
  416. package/dist/filesystem/fff.bun.js +2 -2
  417. package/dist/filesystem/fff.js +1 -1
  418. package/dist/filesystem/fff.node.js +2 -2
  419. package/dist/filesystem/fff.workerd.js +2 -2
  420. package/dist/filesystem/ignore.js +1 -1
  421. package/dist/filesystem/location-watcher-policy.js +6 -6
  422. package/dist/filesystem/location-watcher.js +226 -226
  423. package/dist/filesystem/protected.js +1 -1
  424. package/dist/filesystem/search.js +102 -102
  425. package/dist/filesystem/watcher-binding.js +1 -1
  426. package/dist/filesystem/watcher.js +15 -15
  427. package/dist/filesystem.js +101 -101
  428. package/dist/form.js +79 -79
  429. package/dist/formatter/builtins.js +4 -4
  430. package/dist/formatter.js +88 -88
  431. package/dist/generate.js +102 -102
  432. package/dist/git.js +10 -10
  433. package/dist/github-copilot/chat/convert-to-openai-compatible-chat-messages.js +1 -1
  434. package/dist/github-copilot/chat/get-response-metadata.js +1 -1
  435. package/dist/github-copilot/chat/map-openai-compatible-finish-reason.js +1 -1
  436. package/dist/github-copilot/chat/openai-compatible-chat-language-model.js +7 -7
  437. package/dist/github-copilot/chat/openai-compatible-chat-options.js +1 -1
  438. package/dist/github-copilot/chat/openai-compatible-prepare-tools.js +1 -1
  439. package/dist/github-copilot/copilot-provider.js +17 -17
  440. package/dist/github-copilot/models.js +90 -90
  441. package/dist/github-copilot/openai-compatible-error.js +1 -1
  442. package/dist/github-copilot/responses/convert-to-openai-responses-input.js +1 -1
  443. package/dist/github-copilot/responses/map-openai-responses-finish-reason.js +1 -1
  444. package/dist/github-copilot/responses/openai-error.js +1 -1
  445. package/dist/github-copilot/responses/openai-responses-language-model.js +10 -10
  446. package/dist/github-copilot/responses/openai-responses-prepare-tools.js +6 -6
  447. package/dist/github-copilot/responses/tool/code-interpreter.js +1 -1
  448. package/dist/github-copilot/responses/tool/file-search.js +1 -1
  449. package/dist/github-copilot/responses/tool/image-generation.js +1 -1
  450. package/dist/github-copilot/responses/tool/web-search-preview.js +1 -1
  451. package/dist/github-copilot/responses/tool/web-search.js +1 -1
  452. package/dist/id/id.js +1 -1
  453. package/dist/image/photon.js +2 -2
  454. package/dist/image.js +6 -6
  455. package/dist/instance/service.js +5 -5
  456. package/dist/instance.js +359 -357
  457. package/dist/instruction-discovery.js +84 -84
  458. package/dist/instructions/builtins.js +86 -86
  459. package/dist/instructions/index.js +3 -3
  460. package/dist/integration/connection.js +3 -3
  461. package/dist/integration.js +85 -85
  462. package/dist/job.js +76 -76
  463. package/dist/kv/sql.js +2 -2
  464. package/dist/kv.js +72 -72
  465. package/dist/location-activity.js +134 -134
  466. package/dist/location-lifecycle.js +105 -105
  467. package/dist/location-mutation.js +103 -103
  468. package/dist/location-service-map.js +85 -85
  469. package/dist/location-services.js +356 -354
  470. package/dist/location.js +88 -88
  471. package/dist/mcp/client.js +90 -90
  472. package/dist/mcp/index.js +103 -103
  473. package/dist/mcp/instructions.js +123 -123
  474. package/dist/mcp/oauth.js +77 -77
  475. package/dist/mcp/stdio.js +89 -89
  476. package/dist/mime.js +1 -1
  477. package/dist/modal/models.js +90 -90
  478. package/dist/model-resolver.js +97 -97
  479. package/dist/model.js +101 -101
  480. package/dist/models-dev.js +106 -106
  481. package/dist/oauth/page.js +1 -1
  482. package/dist/permission/saved.js +79 -79
  483. package/dist/permission/sql.js +5 -5
  484. package/dist/permission.js +108 -108
  485. package/dist/persistent-pty/binary.bun.js +1 -1
  486. package/dist/persistent-pty/daemon.js +1 -1
  487. package/dist/persistent-pty/index.js +85 -85
  488. package/dist/persistent-pty/pty-binding.js +1 -1
  489. package/dist/persistent-pty.js +74 -74
  490. package/dist/plugin/agent.js +103 -103
  491. package/dist/plugin/command.js +100 -100
  492. package/dist/plugin/compaction.js +135 -0
  493. package/dist/plugin/hooks.js +5 -5
  494. package/dist/plugin/host.js +217 -217
  495. package/dist/plugin/identity.js +3 -3
  496. package/dist/plugin/instance.js +5 -5
  497. package/dist/plugin/internal.js +330 -328
  498. package/dist/plugin/mcp-codemode-exclusion.js +3 -3
  499. package/dist/plugin/models-dev.js +95 -95
  500. package/dist/plugin/module.js +7 -7
  501. package/dist/plugin/optimize.js +4 -4
  502. package/dist/plugin/plan.js +101 -101
  503. package/dist/plugin/promise.js +1 -1
  504. package/dist/plugin/provider/amazon-bedrock.js +89 -89
  505. package/dist/plugin/provider/azure.js +121 -121
  506. package/dist/plugin/provider/cerebras.js +1 -1
  507. package/dist/plugin/provider/cloudflare-ai-gateway.js +120 -120
  508. package/dist/plugin/provider/cloudflare-workers-ai.js +120 -120
  509. package/dist/plugin/provider/cohere.js +2 -2
  510. package/dist/plugin/provider/configured.js +118 -118
  511. package/dist/plugin/provider/digitalocean.js +92 -92
  512. package/dist/plugin/provider/dynamic.js +2 -2
  513. package/dist/plugin/provider/factory.js +1 -1
  514. package/dist/plugin/provider/gateway.js +2 -2
  515. package/dist/plugin/provider/github-copilot.js +92 -92
  516. package/dist/plugin/provider/gitlab.js +90 -90
  517. package/dist/plugin/provider/google-vertex.js +89 -89
  518. package/dist/plugin/provider/kilo.js +1 -1
  519. package/dist/plugin/provider/llmgateway.js +76 -76
  520. package/dist/plugin/provider/lmstudio.js +121 -121
  521. package/dist/plugin/provider/modal.js +91 -91
  522. package/dist/plugin/provider/nvidia.js +1 -1
  523. package/dist/plugin/provider/ollama.js +121 -121
  524. package/dist/plugin/provider/openai.js +93 -93
  525. package/dist/plugin/provider/opencode.js +92 -92
  526. package/dist/plugin/provider/openrouter.js +90 -90
  527. package/dist/plugin/provider/perplexity.js +2 -2
  528. package/dist/plugin/provider/poe.js +77 -77
  529. package/dist/plugin/provider/prompt-cache-key.js +89 -89
  530. package/dist/plugin/provider/sap-ai-core.js +90 -90
  531. package/dist/plugin/provider/sdk-factory.js +1 -1
  532. package/dist/plugin/provider/snowflake-cortex.js +121 -121
  533. package/dist/plugin/provider/venice.js +2 -2
  534. package/dist/plugin/provider/vercel.js +89 -89
  535. package/dist/plugin/provider/vllm.js +121 -121
  536. package/dist/plugin/provider/xai.js +90 -90
  537. package/dist/plugin/provider/zenmux.js +1 -1
  538. package/dist/plugin/provider.js +158 -158
  539. package/dist/plugin/sdk.js +75 -75
  540. package/dist/plugin/service.js +3 -3
  541. package/dist/plugin/skill.js +140 -140
  542. package/dist/plugin/source-directory.js +1 -1
  543. package/dist/plugin/supervisor.js +349 -347
  544. package/dist/plugin/tool-input-repair.js +9 -0
  545. package/dist/plugin/update.js +6 -6
  546. package/dist/plugin/vcs/git.js +85 -85
  547. package/dist/plugin/vcs/hg.js +85 -85
  548. package/dist/plugin/warming.js +120 -120
  549. package/dist/plugin/websearch/exa.js +5 -5
  550. package/dist/plugin/websearch/firecrawl.js +6 -6
  551. package/dist/plugin/websearch/index.js +9 -9
  552. package/dist/plugin/websearch/mcp.js +4 -4
  553. package/dist/plugin/websearch/parallel.js +8 -8
  554. package/dist/plugin/websearch/tavily.js +6 -6
  555. package/dist/plugin/websearch/tinyfish.js +8 -8
  556. package/dist/plugin.js +224 -224
  557. package/dist/project/schema.js +8 -8
  558. package/dist/project/sql.js +4 -4
  559. package/dist/project.js +89 -89
  560. package/dist/provider.js +104 -98
  561. package/dist/pty/protocol.js +1 -1
  562. package/dist/pty/schema.js +1 -1
  563. package/dist/pty/ticket.js +1 -1
  564. package/dist/pty.js +87 -87
  565. package/dist/reference/instructions.js +88 -88
  566. package/dist/reference.js +90 -90
  567. package/dist/repository-cache.js +80 -80
  568. package/dist/repository.js +3 -3
  569. package/dist/ripgrep/binary.js +2 -2
  570. package/dist/ripgrep.js +94 -94
  571. package/dist/rpc.js +85 -85
  572. package/dist/schema.js +1 -1
  573. package/dist/session/command.js +73 -73
  574. package/dist/session/compaction.js +135 -135
  575. package/dist/session/context.js +151 -151
  576. package/dist/session/diff.js +87 -87
  577. package/dist/session/environment.js +5 -5
  578. package/dist/session/error.js +3 -3
  579. package/dist/session/event.js +1 -1
  580. package/dist/session/execution/restart.js +223 -223
  581. package/dist/session/execution.js +127 -127
  582. package/dist/session/generate.js +152 -152
  583. package/dist/session/history.js +13 -13
  584. package/dist/session/inbox.js +89 -89
  585. package/dist/session/info.js +3 -3
  586. package/dist/session/instruction-entry.js +76 -76
  587. package/dist/session/instruction-state.js +8 -8
  588. package/dist/session/instructions.js +96 -96
  589. package/dist/session/message-updater.js +2 -2
  590. package/dist/session/message.js +1 -1
  591. package/dist/session/model-request.js +118 -118
  592. package/dist/session/model-transport.js +9 -9
  593. package/dist/session/move.js +129 -129
  594. package/dist/session/projector.js +85 -85
  595. package/dist/session/prompt.js +104 -104
  596. package/dist/session/provider-context.js +3 -3
  597. package/dist/session/revert.js +89 -89
  598. package/dist/session/run-coordinator.js +3 -3
  599. package/dist/session/runner/index.js +3 -3
  600. package/dist/session/runner/llm.js +230 -230
  601. package/dist/session/runner/max-steps.js +1 -1
  602. package/dist/session/runner/model.js +97 -97
  603. package/dist/session/runner/publish-llm-event.js +3 -3
  604. package/dist/session/runner/retry.js +113 -113
  605. package/dist/session/runner/step.js +125 -125
  606. package/dist/session/runner/to-llm-message.js +2 -2
  607. package/dist/session/schema.js +5 -5
  608. package/dist/session/session.js +169 -169
  609. package/dist/session/shell.js +137 -137
  610. package/dist/session/skill.js +102 -102
  611. package/dist/session/sql.js +5 -5
  612. package/dist/session/stats.js +74 -74
  613. package/dist/session/store.js +84 -84
  614. package/dist/session/subagent-completion.js +1 -1
  615. package/dist/session/subagent-job.js +209 -209
  616. package/dist/session/system-prompt.js +5 -5
  617. package/dist/session/title.js +155 -155
  618. package/dist/session/to-session-error.js +110 -110
  619. package/dist/session/transfer.js +222 -222
  620. package/dist/session/usage.js +1 -1
  621. package/dist/session.js +213 -213
  622. package/dist/shell/parse.js +6 -6
  623. package/dist/shell/result.js +1 -1
  624. package/dist/shell/scan.js +1 -1
  625. package/dist/shell/select.js +13 -13
  626. package/dist/shell.js +139 -139
  627. package/dist/skill/discovery.js +6 -6
  628. package/dist/skill/instructions.js +104 -104
  629. package/dist/skill.js +111 -111
  630. package/dist/snapshot.js +92 -92
  631. package/dist/state.js +1 -1
  632. package/dist/tool/html-markdown.js +1 -1
  633. package/dist/tool/http-body.js +1 -1
  634. package/dist/tool/mcp.js +124 -124
  635. package/dist/tool/plugin/edit.js +119 -119
  636. package/dist/tool/plugin/file-diff.js +1 -1
  637. package/dist/tool/plugin/glob.js +123 -123
  638. package/dist/tool/plugin/grep.js +117 -117
  639. package/dist/tool/plugin/opencode.js +3 -3
  640. package/dist/tool/plugin/patch.js +121 -121
  641. package/dist/tool/plugin/question.js +102 -102
  642. package/dist/tool/plugin/read.js +124 -124
  643. package/dist/tool/plugin/shell.js +216 -216
  644. package/dist/tool/plugin/skill.js +112 -112
  645. package/dist/tool/plugin/subagent.js +210 -210
  646. package/dist/tool/plugin/webfetch.js +107 -107
  647. package/dist/tool/plugin/websearch.js +113 -113
  648. package/dist/tool/plugin/write.js +121 -121
  649. package/dist/tool/read-filesystem.js +99 -99
  650. package/dist/tool/runtime.js +1 -1
  651. package/dist/tool-output.js +8 -8
  652. package/dist/tool.js +14 -14
  653. package/dist/types/agent.d.ts +14 -1
  654. package/dist/types/aisdk.d.ts +5 -5
  655. package/dist/types/config/plugin/command.d.ts +1 -1
  656. package/dist/types/instance.d.ts +1 -1
  657. package/dist/types/job.d.ts +3 -0
  658. package/dist/types/model-resolver.d.ts +7 -6
  659. package/dist/types/model.d.ts +46 -14
  660. package/dist/types/plugin/compaction.d.ts +3 -0
  661. package/dist/types/plugin/internal.d.ts +2 -2
  662. package/dist/types/plugin/provider/configured.d.ts +2 -6
  663. package/dist/types/plugin/tool-input-repair.d.ts +2 -0
  664. package/dist/types/provider.d.ts +66 -15
  665. package/dist/types/session/compaction.d.ts +16 -1
  666. package/dist/types/session/execution/restart.d.ts +1 -1
  667. package/dist/types/session/history.d.ts +8 -8
  668. package/dist/types/tool/plugin/shell.d.ts +1 -1
  669. package/dist/types/tool/plugin/subagent.d.ts +1 -1
  670. package/dist/types/tool.d.ts +3 -0
  671. package/dist/types/v1/config/migrate.d.ts +24 -20
  672. package/dist/util/error-summary.js +1 -1
  673. package/dist/util/error.js +1 -1
  674. package/dist/util/git-executable.js +2 -2
  675. package/dist/util/iife.js +1 -1
  676. package/dist/util/lazy.js +1 -1
  677. package/dist/util/slug.js +1 -1
  678. package/dist/util/token.js +1 -1
  679. package/dist/util/which.js +1 -1
  680. package/dist/util/wildcard.js +1 -1
  681. package/dist/v1/config/agent.js +5 -5
  682. package/dist/v1/config/attachment.js +4 -4
  683. package/dist/v1/config/command.js +5 -5
  684. package/dist/v1/config/config.js +16 -16
  685. package/dist/v1/config/error.js +2 -2
  686. package/dist/v1/config/formatter.js +7 -7
  687. package/dist/v1/config/layout.js +1 -1
  688. package/dist/v1/config/lsp.js +5 -5
  689. package/dist/v1/config/mcp.js +4 -4
  690. package/dist/v1/config/migrate.js +91 -91
  691. package/dist/v1/config/permission.js +3 -3
  692. package/dist/v1/config/plugin.js +3 -3
  693. package/dist/v1/config/provider-options.js +1 -1
  694. package/dist/v1/config/provider.js +4 -4
  695. package/dist/v1/config/server.js +2 -2
  696. package/dist/v1/config/skills.js +3 -3
  697. package/dist/v1/permission.js +1 -1
  698. package/dist/variant.js +92 -92
  699. package/dist/vcs/patch.js +1 -1
  700. package/dist/vcs.js +88 -88
  701. package/dist/websearch.js +79 -79
  702. package/dist/wellknown/plugin.js +75 -75
  703. package/dist/wellknown.js +80 -80
  704. package/dist/workspace/driver.js +7 -7
  705. package/dist/workspace/sql.js +1 -1
  706. package/dist/workspace.js +79 -79
  707. package/dist/worktree/directory.js +2 -2
  708. package/dist/worktree/git.js +10 -10
  709. package/dist/worktree/sql.js +5 -5
  710. package/dist/worktree/strategies.js +88 -88
  711. package/dist/worktree.js +95 -95
  712. package/package.json +8 -8
  713. package/dist/chunks/integration-0jswa73q.js +0 -26
  714. package/dist/chunks/integration-0p29q02t.js +0 -65
  715. package/dist/chunks/integration-4v7qdvcn.js +0 -18
  716. package/dist/chunks/integration-fnc9qs28.js +0 -252
  717. package/dist/chunks/integration-y324smtr.js +0 -478
  718. /package/dist/chunks/{integration-0mesazry.js → tool-0mesazry.js} +0 -0
  719. /package/dist/chunks/{integration-0qkdqm5v.js → tool-0qkdqm5v.js} +0 -0
  720. /package/dist/chunks/{integration-0zkw76rk.js → tool-0zkw76rk.js} +0 -0
  721. /package/dist/chunks/{integration-17cy0kzp.js → tool-17cy0kzp.js} +0 -0
  722. /package/dist/chunks/{integration-1cnp2v09.js → tool-1cnp2v09.js} +0 -0
  723. /package/dist/chunks/{integration-1kg9ymc8.js → tool-1kg9ymc8.js} +0 -0
  724. /package/dist/chunks/{integration-24dcb14g.js → tool-24dcb14g.js} +0 -0
  725. /package/dist/chunks/{integration-2710q6r3.js → tool-2710q6r3.js} +0 -0
  726. /package/dist/chunks/{integration-2axfhc9x.js → tool-2axfhc9x.js} +0 -0
  727. /package/dist/chunks/{integration-2c3vjs8z.js → tool-2c3vjs8z.js} +0 -0
  728. /package/dist/chunks/{integration-359p4xyc.js → tool-359p4xyc.js} +0 -0
  729. /package/dist/chunks/{integration-3asan66x.js → tool-3asan66x.js} +0 -0
  730. /package/dist/chunks/{integration-3v8g72cx.js → tool-3v8g72cx.js} +0 -0
  731. /package/dist/chunks/{integration-3w5fmr99.js → tool-3w5fmr99.js} +0 -0
  732. /package/dist/chunks/{integration-3wcehsnq.js → tool-3wcehsnq.js} +0 -0
  733. /package/dist/chunks/{integration-43n2bw4t.js → tool-43n2bw4t.js} +0 -0
  734. /package/dist/chunks/{integration-4knz6hnm.js → tool-4knz6hnm.js} +0 -0
  735. /package/dist/chunks/{integration-4vcrnpx2.js → tool-4vcrnpx2.js} +0 -0
  736. /package/dist/chunks/{integration-4y7fprxs.js → tool-4y7fprxs.js} +0 -0
  737. /package/dist/chunks/{integration-53557ph1.js → tool-53557ph1.js} +0 -0
  738. /package/dist/chunks/{integration-550bvhaj.js → tool-550bvhaj.js} +0 -0
  739. /package/dist/chunks/{integration-5qd3pb7m.js → tool-5qd3pb7m.js} +0 -0
  740. /package/dist/chunks/{integration-6prwharc.js → tool-6prwharc.js} +0 -0
  741. /package/dist/chunks/{integration-7akdwqpd.js → tool-7akdwqpd.js} +0 -0
  742. /package/dist/chunks/{integration-7m9af43g.js → tool-7m9af43g.js} +0 -0
  743. /package/dist/chunks/{integration-822emrt2.js → tool-822emrt2.js} +0 -0
  744. /package/dist/chunks/{integration-88xbtdfr.js → tool-88xbtdfr.js} +0 -0
  745. /package/dist/chunks/{integration-8n3pysct.js → tool-8n3pysct.js} +0 -0
  746. /package/dist/chunks/{integration-922hggd3.js → tool-922hggd3.js} +0 -0
  747. /package/dist/chunks/{integration-9a4afbnw.js → tool-9a4afbnw.js} +0 -0
  748. /package/dist/chunks/{integration-9rqn6x4v.js → tool-9rqn6x4v.js} +0 -0
  749. /package/dist/chunks/{integration-a6k6eb26.js → tool-a6k6eb26.js} +0 -0
  750. /package/dist/chunks/{integration-af5trqkr.js → tool-af5trqkr.js} +0 -0
  751. /package/dist/chunks/{integration-afrmfg78.js → tool-afrmfg78.js} +0 -0
  752. /package/dist/chunks/{integration-aqzs7mqg.js → tool-aqzs7mqg.js} +0 -0
  753. /package/dist/chunks/{integration-atq7p7m5.js → tool-atq7p7m5.js} +0 -0
  754. /package/dist/chunks/{integration-bkyjaxrp.js → tool-bkyjaxrp.js} +0 -0
  755. /package/dist/chunks/{integration-bmr6ed5q.js → tool-bmr6ed5q.js} +0 -0
  756. /package/dist/chunks/{integration-cf4snx6d.js → tool-cf4snx6d.js} +0 -0
  757. /package/dist/chunks/{integration-cvy3z8tj.js → tool-cvy3z8tj.js} +0 -0
  758. /package/dist/chunks/{integration-d9fn303g.js → tool-d9fn303g.js} +0 -0
  759. /package/dist/chunks/{integration-d9jj8t3e.js → tool-d9jj8t3e.js} +0 -0
  760. /package/dist/chunks/{integration-dajrwvna.js → tool-dajrwvna.js} +0 -0
  761. /package/dist/chunks/{integration-dap0rakb.js → tool-dap0rakb.js} +0 -0
  762. /package/dist/chunks/{integration-df08tz66.js → tool-df08tz66.js} +0 -0
  763. /package/dist/chunks/{integration-dy18nga0.js → tool-dy18nga0.js} +0 -0
  764. /package/dist/chunks/{integration-e5kj55wp.js → tool-e5kj55wp.js} +0 -0
  765. /package/dist/chunks/{integration-e73j6tqm.js → tool-e73j6tqm.js} +0 -0
  766. /package/dist/chunks/{integration-ec1grn59.js → tool-ec1grn59.js} +0 -0
  767. /package/dist/chunks/{integration-eh3zwz77.js → tool-eh3zwz77.js} +0 -0
  768. /package/dist/chunks/{integration-emrn6kk6.js → tool-emrn6kk6.js} +0 -0
  769. /package/dist/chunks/{integration-f0mxakyp.js → tool-f0mxakyp.js} +0 -0
  770. /package/dist/chunks/{integration-f6n9ztr4.js → tool-f6n9ztr4.js} +0 -0
  771. /package/dist/chunks/{integration-faypxj3z.js → tool-faypxj3z.js} +0 -0
  772. /package/dist/chunks/{integration-fd410y7t.js → tool-fd410y7t.js} +0 -0
  773. /package/dist/chunks/{integration-fxgpk5d8.js → tool-fxgpk5d8.js} +0 -0
  774. /package/dist/chunks/{integration-g4wezp1m.js → tool-g4wezp1m.js} +0 -0
  775. /package/dist/chunks/{integration-g86h250q.js → tool-g86h250q.js} +0 -0
  776. /package/dist/chunks/{integration-gebd4c9n.js → tool-gebd4c9n.js} +0 -0
  777. /package/dist/chunks/{integration-gftt206x.js → tool-gftt206x.js} +0 -0
  778. /package/dist/chunks/{integration-hjbc5kem.js → tool-hjbc5kem.js} +0 -0
  779. /package/dist/chunks/{integration-hk9envan.js → tool-hk9envan.js} +0 -0
  780. /package/dist/chunks/{integration-j2ntwpah.js → tool-j2ntwpah.js} +0 -0
  781. /package/dist/chunks/{integration-j5zkgpj8.js → tool-j5zkgpj8.js} +0 -0
  782. /package/dist/chunks/{integration-jjkms2e6.js → tool-jjkms2e6.js} +0 -0
  783. /package/dist/chunks/{integration-jr7sbwjy.js → tool-jr7sbwjy.js} +0 -0
  784. /package/dist/chunks/{integration-jwfs4k6c.js → tool-jwfs4k6c.js} +0 -0
  785. /package/dist/chunks/{integration-jzg6c2d5.js → tool-jzg6c2d5.js} +0 -0
  786. /package/dist/chunks/{integration-mp448xyj.js → tool-mp448xyj.js} +0 -0
  787. /package/dist/chunks/{integration-msx8hqn2.js → tool-msx8hqn2.js} +0 -0
  788. /package/dist/chunks/{integration-n05xt0ee.js → tool-n05xt0ee.js} +0 -0
  789. /package/dist/chunks/{integration-n3j8tn72.js → tool-n3j8tn72.js} +0 -0
  790. /package/dist/chunks/{integration-njntx4h6.js → tool-njntx4h6.js} +0 -0
  791. /package/dist/chunks/{integration-q3sfg36h.js → tool-q3sfg36h.js} +0 -0
  792. /package/dist/chunks/{integration-q74kybfr.js → tool-q74kybfr.js} +0 -0
  793. /package/dist/chunks/{integration-qaymkmh1.js → tool-qaymkmh1.js} +0 -0
  794. /package/dist/chunks/{integration-qb87gjwd.js → tool-qb87gjwd.js} +0 -0
  795. /package/dist/chunks/{integration-qfa1cgps.js → tool-qfa1cgps.js} +0 -0
  796. /package/dist/chunks/{integration-qg3g05ea.js → tool-qg3g05ea.js} +0 -0
  797. /package/dist/chunks/{integration-qrg20bc0.js → tool-qrg20bc0.js} +0 -0
  798. /package/dist/chunks/{integration-rcb2kzg1.js → tool-rcb2kzg1.js} +0 -0
  799. /package/dist/chunks/{integration-sdp7kfr6.js → tool-sdp7kfr6.js} +0 -0
  800. /package/dist/chunks/{integration-sk3qaz4a.js → tool-sk3qaz4a.js} +0 -0
  801. /package/dist/chunks/{integration-ssg3fenm.js → tool-ssg3fenm.js} +0 -0
  802. /package/dist/chunks/{integration-twg0f83k.js → tool-twg0f83k.js} +0 -0
  803. /package/dist/chunks/{integration-w803qqfp.js → tool-w803qqfp.js} +0 -0
  804. /package/dist/chunks/{integration-wc3fc9cn.js → tool-wc3fc9cn.js} +0 -0
  805. /package/dist/chunks/{integration-wer8tq1h.js → tool-wer8tq1h.js} +0 -0
  806. /package/dist/chunks/{integration-wtztk69x.js → tool-wtztk69x.js} +0 -0
  807. /package/dist/chunks/{integration-x0ckcb58.js → tool-x0ckcb58.js} +0 -0
  808. /package/dist/chunks/{integration-x61499pn.js → tool-x61499pn.js} +0 -0
  809. /package/dist/chunks/{integration-y44na4kk.js → tool-y44na4kk.js} +0 -0
  810. /package/dist/chunks/{integration-y8cydn3q.js → tool-y8cydn3q.js} +0 -0
  811. /package/dist/chunks/{integration-y8f7s663.js → tool-y8f7s663.js} +0 -0
  812. /package/dist/chunks/{integration-ygaqb7jw.js → tool-ygaqb7jw.js} +0 -0
  813. /package/dist/chunks/{integration-ym463w8f.js → tool-ym463w8f.js} +0 -0
  814. /package/dist/chunks/{integration-z9919s4g.js → tool-z9919s4g.js} +0 -0
@@ -51,7 +51,7 @@ import { ToolOutput } from "./tool-output.js";
51
51
  import { Vcs } from "./vcs.js";
52
52
  export * as Instance from "./instance.js";
53
53
  export { Service, node, type Interface } from "./instance/service.js";
54
- export declare const graph: LayerNode.Graph<Location.Service | Agent.Service | Form.Service | Integration.Service | Provider.Service | Model.Service | AISDK.Service | Command.Service | Config.Service | ModelResolver.Service | SessionRunnerModel.Service | PluginHooks.Service | Permission.Service | Environment.Service | FileSystemSearch.Service | FileSystem.Service | Image.Service | Tool.Service | FileAccess.Service | FileMutation.Service | Formatter.Service | Generate.Service | ShellSelect.Service | LocationLifecycle.Service | Rpc.Service | Reference.Service | WebSearch.Service | Plugin.Service | InstancePlugins.Service | WorktreeStrategies.Service | Mcp.Service | ReadToolFileSystem.Service | SessionInstructions.Service | Shell.Service | Skill.Service | InstructionDiscovery.Service | SessionCompaction.Service | Snapshot.Service | ToolOutput.Service | Pty.Service | InstructionBuiltIns.Service | SkillInstructions.Service | ReferenceInstructions.Service | InstructionEntry.Service | McpTool.Service | SessionTitle.Service | SessionContext.Service | import("./session/runner/index.js").Service | Vcs.Service | LocationWatcher.Service, import("./persistent-pty/index.js").UnavailableError, LayerNode.Tag<"location">>;
54
+ export declare const graph: LayerNode.Graph<Location.Service | Agent.Service | Form.Service | Integration.Service | Provider.Service | Model.Service | AISDK.Service | Command.Service | Config.Service | ModelResolver.Service | SessionRunnerModel.Service | PluginHooks.Service | Permission.Service | Environment.Service | FileSystemSearch.Service | FileSystem.Service | Image.Service | Tool.Service | FileAccess.Service | FileMutation.Service | Formatter.Service | Generate.Service | ShellSelect.Service | LocationLifecycle.Service | Rpc.Service | Reference.Service | WebSearch.Service | Plugin.Service | InstancePlugins.Service | WorktreeStrategies.Service | Mcp.Service | InstructionDiscovery.Service | ReadToolFileSystem.Service | SessionCompaction.Service | SessionInstructions.Service | Shell.Service | Snapshot.Service | Skill.Service | ToolOutput.Service | Pty.Service | InstructionBuiltIns.Service | SkillInstructions.Service | ReferenceInstructions.Service | InstructionEntry.Service | McpTool.Service | SessionTitle.Service | SessionContext.Service | import("./session/runner/index.js").Service | Vcs.Service | LocationWatcher.Service, import("./persistent-pty/index.js").UnavailableError, LayerNode.Tag<"location">>;
55
55
  export type Services = LayerNode.Output<typeof graph>;
56
56
  export type Error = Layer.Error<ReturnType<typeof layer>>;
57
57
  export interface Options {
@@ -98,6 +98,9 @@ export declare class Service extends Service_base {
98
98
  /**
99
99
  * Makes one scoped, process-local registry. Explicitly recoverable background
100
100
  * work also owns a durable notification marker until its notification is admitted.
101
+ * Unconsumed results survive the start-to-wait handoff. Foreground block/cancel
102
+ * and non-recoverable wait results enter a 25-entry consumed history. Recoverable
103
+ * wait results stay available for background registration and acknowledgment.
101
104
  */
102
105
  export declare const make: Effect.Effect<Interface, never, Scope.Scope | KV.Service>;
103
106
  export declare const node: import("@opencode/util/effect/layer-node").Provider<Service, never, import("@opencode/util/effect/layer-node").Tag<"global">>;
@@ -5,6 +5,7 @@ import { AISDK } from "./aisdk.js";
5
5
  import { Credential } from "./credential.js";
6
6
  import { Integration } from "./integration.js";
7
7
  import { Capabilities, Info, Model, Ref, VariantID } from "./model.js";
8
+ import type { RuntimeInfo } from "./model.js";
8
9
  import { Npm } from "@opencode/util/npm";
9
10
  import { Provider } from "./provider.js";
10
11
  declare const VariantUnavailableError_base: Schema.Class<VariantUnavailableError, Schema.TaggedStruct<"SessionRunnerModel.VariantUnavailableError", {
@@ -146,10 +147,10 @@ export interface Resolved {
146
147
  readonly cost: Info["cost"];
147
148
  /** Catalog token limits used by Core for context management. */
148
149
  readonly limit: Info["limit"];
149
- /** Model policy overrides the provider policy; omitted means local compaction. */
150
- readonly compaction?: Info["compaction"];
151
- /** Model transport overrides the provider transport; omitted means HTTP. */
152
- readonly transport?: Info["transport"];
150
+ /** Model policy overrides the provider policy; omitted means summary compaction. */
151
+ readonly compaction?: Provider.Compaction;
152
+ /** Provider transport policy; omitted means HTTP. */
153
+ readonly transport?: Provider.Transport;
153
154
  }
154
155
  export interface Interface {
155
156
  readonly resolve: (requested?: Ref) => Effect.Effect<Resolved | undefined, Error>;
@@ -161,9 +162,9 @@ export declare class Service extends Service_base {
161
162
  export declare const withVariant: (model: Info, variantID: VariantID | undefined) => Effect.Effect<Info, VariantUnavailableError>;
162
163
  export interface Dependencies {
163
164
  readonly loadPackage?: (specifier: string) => Effect.Effect<Provider.ProviderPackage, Provider.LoadError>;
164
- readonly loadAISDK?: (model: Info) => Effect.Effect<LanguageModel, AISDK.InitError>;
165
+ readonly loadAISDK?: (model: RuntimeInfo) => Effect.Effect<LanguageModel, AISDK.InitError>;
165
166
  }
166
- export declare const fromCatalogModel: (model: Info, credential?: Credential.Value, dependencies?: Dependencies) => Effect.Effect<LanguageModel, UnsupportedPackageError | ModelConfigurationError | ModelInitializationError | UnresolvedProviderVariablesError | UnsupportedCompactionError>;
167
+ export declare const fromCatalogModel: (model: RuntimeInfo, credential?: Credential.Value, dependencies?: Dependencies) => Effect.Effect<LanguageModel, UnsupportedPackageError | ModelConfigurationError | ModelInitializationError | UnresolvedProviderVariablesError | UnsupportedCompactionError>;
167
168
  export declare const resolveModel: (model: Info, variant: VariantID | undefined, credential?: Credential.Value, dependencies?: Dependencies) => Effect.Effect<LanguageModel<{
168
169
  readonly [x: string]: unknown;
169
170
  }, import("@opencode/ai/route").CompactionOperations | undefined>, VariantUnavailableError | UnsupportedPackageError | ModelConfigurationError | ModelInitializationError | UnresolvedProviderVariablesError | UnsupportedCompactionError, never>;
@@ -92,7 +92,27 @@ export declare const Info: import("effect/Schema").Struct<{
92
92
  };
93
93
  };
94
94
  readonly variants: import("effect/Schema").$Array<import("effect/Schema").Struct<{
95
- readonly settings: import("effect/Schema").decodeTo<import("effect/Schema").optional<import("effect/Schema").toType<import("effect/Schema").$Record<import("effect/Schema").String, import("effect/Schema").Any>>>, import("effect/Schema").optionalKey<import("effect/Schema").$Record<import("effect/Schema").String, import("effect/Schema").Any>>, never, never>;
95
+ readonly settings: import("effect/Schema").decodeTo<import("effect/Schema").optional<import("effect/Schema").toType<import("effect/Schema").StructWithRest<import("effect/Schema").Struct<{
96
+ readonly compaction: import("effect/Schema").decodeTo<import("effect/Schema").optional<import("effect/Schema").toType<import("effect/Schema").Union<readonly [import("effect/Schema").Struct<{
97
+ readonly type: import("effect/Schema").Literal<"summary">;
98
+ }>, import("effect/Schema").Struct<{
99
+ readonly type: import("effect/Schema").Literal<"native">;
100
+ }>]>>>, import("effect/Schema").optionalKey<import("effect/Schema").Union<readonly [import("effect/Schema").Struct<{
101
+ readonly type: import("effect/Schema").Literal<"summary">;
102
+ }>, import("effect/Schema").Struct<{
103
+ readonly type: import("effect/Schema").Literal<"native">;
104
+ }>]>>, never, never>;
105
+ }>, readonly [import("effect/Schema").$Record<import("effect/Schema").String, import("effect/Schema").Any>]>>>, import("effect/Schema").optionalKey<import("effect/Schema").StructWithRest<import("effect/Schema").Struct<{
106
+ readonly compaction: import("effect/Schema").decodeTo<import("effect/Schema").optional<import("effect/Schema").toType<import("effect/Schema").Union<readonly [import("effect/Schema").Struct<{
107
+ readonly type: import("effect/Schema").Literal<"summary">;
108
+ }>, import("effect/Schema").Struct<{
109
+ readonly type: import("effect/Schema").Literal<"native">;
110
+ }>]>>>, import("effect/Schema").optionalKey<import("effect/Schema").Union<readonly [import("effect/Schema").Struct<{
111
+ readonly type: import("effect/Schema").Literal<"summary">;
112
+ }>, import("effect/Schema").Struct<{
113
+ readonly type: import("effect/Schema").Literal<"native">;
114
+ }>]>>, never, never>;
115
+ }>, readonly [import("effect/Schema").$Record<import("effect/Schema").String, import("effect/Schema").Any>]>>, never, never>;
96
116
  readonly headers: import("effect/Schema").decodeTo<import("effect/Schema").optional<import("effect/Schema").toType<import("effect/Schema").$Record<import("effect/Schema").String, import("effect/Schema").String>>>, import("effect/Schema").optionalKey<import("effect/Schema").$Record<import("effect/Schema").String, import("effect/Schema").String>>, never, never>;
97
117
  readonly body: import("effect/Schema").decodeTo<import("effect/Schema").optional<import("effect/Schema").toType<import("effect/Schema").$Record<import("effect/Schema").String, import("effect/Schema").Any>>>, import("effect/Schema").optionalKey<import("effect/Schema").$Record<import("effect/Schema").String, import("effect/Schema").Any>>, never, never>;
98
118
  readonly id: import("effect/Schema").brand<import("effect/Schema").String, "Model.VariantID">;
@@ -130,7 +150,27 @@ export declare const Info: import("effect/Schema").Struct<{
130
150
  readonly input: import("effect/Schema").decodeTo<import("effect/Schema").optional<import("effect/Schema").toType<import("effect/Schema").Int>>, import("effect/Schema").optionalKey<import("effect/Schema").Int>, never, never>;
131
151
  readonly output: import("effect/Schema").Int;
132
152
  }>;
133
- readonly settings: import("effect/Schema").decodeTo<import("effect/Schema").optional<import("effect/Schema").toType<import("effect/Schema").$Record<import("effect/Schema").String, import("effect/Schema").Any>>>, import("effect/Schema").optionalKey<import("effect/Schema").$Record<import("effect/Schema").String, import("effect/Schema").Any>>, never, never>;
153
+ readonly settings: import("effect/Schema").decodeTo<import("effect/Schema").optional<import("effect/Schema").toType<import("effect/Schema").StructWithRest<import("effect/Schema").Struct<{
154
+ readonly compaction: import("effect/Schema").decodeTo<import("effect/Schema").optional<import("effect/Schema").toType<import("effect/Schema").Union<readonly [import("effect/Schema").Struct<{
155
+ readonly type: import("effect/Schema").Literal<"summary">;
156
+ }>, import("effect/Schema").Struct<{
157
+ readonly type: import("effect/Schema").Literal<"native">;
158
+ }>]>>>, import("effect/Schema").optionalKey<import("effect/Schema").Union<readonly [import("effect/Schema").Struct<{
159
+ readonly type: import("effect/Schema").Literal<"summary">;
160
+ }>, import("effect/Schema").Struct<{
161
+ readonly type: import("effect/Schema").Literal<"native">;
162
+ }>]>>, never, never>;
163
+ }>, readonly [import("effect/Schema").$Record<import("effect/Schema").String, import("effect/Schema").Any>]>>>, import("effect/Schema").optionalKey<import("effect/Schema").StructWithRest<import("effect/Schema").Struct<{
164
+ readonly compaction: import("effect/Schema").decodeTo<import("effect/Schema").optional<import("effect/Schema").toType<import("effect/Schema").Union<readonly [import("effect/Schema").Struct<{
165
+ readonly type: import("effect/Schema").Literal<"summary">;
166
+ }>, import("effect/Schema").Struct<{
167
+ readonly type: import("effect/Schema").Literal<"native">;
168
+ }>]>>>, import("effect/Schema").optionalKey<import("effect/Schema").Union<readonly [import("effect/Schema").Struct<{
169
+ readonly type: import("effect/Schema").Literal<"summary">;
170
+ }>, import("effect/Schema").Struct<{
171
+ readonly type: import("effect/Schema").Literal<"native">;
172
+ }>]>>, never, never>;
173
+ }>, readonly [import("effect/Schema").$Record<import("effect/Schema").String, import("effect/Schema").Any>]>>, never, never>;
134
174
  readonly headers: import("effect/Schema").decodeTo<import("effect/Schema").optional<import("effect/Schema").toType<import("effect/Schema").$Record<import("effect/Schema").String, import("effect/Schema").String>>>, import("effect/Schema").optionalKey<import("effect/Schema").$Record<import("effect/Schema").String, import("effect/Schema").String>>, never, never>;
135
175
  readonly body: import("effect/Schema").decodeTo<import("effect/Schema").optional<import("effect/Schema").toType<import("effect/Schema").$Record<import("effect/Schema").String, import("effect/Schema").Any>>>, import("effect/Schema").optionalKey<import("effect/Schema").$Record<import("effect/Schema").String, import("effect/Schema").Any>>, never, never>;
136
176
  readonly id: import("effect/Schema").brand<import("effect/Schema").String, "Model.ID">;
@@ -191,18 +231,6 @@ export declare const Info: import("effect/Schema").Struct<{
191
231
  readonly supportsPromptCacheKey: import("effect/Schema").decodeTo<import("effect/Schema").optional<import("effect/Schema").toType<import("effect/Schema").Boolean>>, import("effect/Schema").optionalKey<import("effect/Schema").Boolean>, never, never>;
192
232
  }>>, never, never>;
193
233
  readonly package: import("effect/Schema").decodeTo<import("effect/Schema").optional<import("effect/Schema").toType<import("effect/Schema").String>>, import("effect/Schema").optionalKey<import("effect/Schema").String>, never, never>;
194
- readonly compaction: import("effect/Schema").decodeTo<import("effect/Schema").optional<import("effect/Schema").toType<import("effect/Schema").Union<readonly [import("effect/Schema").Struct<{
195
- readonly mode: import("effect/Schema").Literal<"local">;
196
- }>, import("effect/Schema").Struct<{
197
- readonly mode: import("effect/Schema").Literal<"provider">;
198
- readonly threshold: import("effect/Schema").decodeTo<import("effect/Schema").optional<import("effect/Schema").toType<import("effect/Schema").Int>>, import("effect/Schema").optionalKey<import("effect/Schema").Int>, never, never>;
199
- }>]>>>, import("effect/Schema").optionalKey<import("effect/Schema").Union<readonly [import("effect/Schema").Struct<{
200
- readonly mode: import("effect/Schema").Literal<"local">;
201
- }>, import("effect/Schema").Struct<{
202
- readonly mode: import("effect/Schema").Literal<"provider">;
203
- readonly threshold: import("effect/Schema").decodeTo<import("effect/Schema").optional<import("effect/Schema").toType<import("effect/Schema").Int>>, import("effect/Schema").optionalKey<import("effect/Schema").Int>, never, never>;
204
- }>]>>, never, never>;
205
- readonly transport: import("effect/Schema").decodeTo<import("effect/Schema").optional<import("effect/Schema").toType<import("effect/Schema").Literals<readonly ["http", "websocket"]>>>, import("effect/Schema").optionalKey<import("effect/Schema").Literals<readonly ["http", "websocket"]>>, never, never>;
206
234
  }> & {
207
235
  default: (providerID: import("@opencode/schema/provider").ID, id: Model.ID) => {
208
236
  id: string & import("effect/Brand").Brand<"Model.ID">;
@@ -228,6 +256,10 @@ export declare const Info: import("effect/Schema").Struct<{
228
256
  };
229
257
  };
230
258
  export type Info = Model.Info;
259
+ /** Effective provider and model settings used only while constructing a runtime model. */
260
+ export type RuntimeInfo = Omit<Info, "settings"> & {
261
+ readonly settings?: Provider.Settings;
262
+ };
231
263
  export type MutableInfo = DeepMutable<Info>;
232
264
  export { Event } from "@opencode/schema/model";
233
265
  export interface Editor {
@@ -0,0 +1,3 @@
1
+ export * as NativeCompactionPlugin from "./compaction.js";
2
+ import { SessionCompaction } from "../session/compaction.js";
3
+ export declare const Plugin: import("@opencode/plugin/effect/plugin").Plugin<import("effect/Scope").Scope | import("@opencode/ai").LLMClientService | SessionCompaction.Service>;
@@ -48,9 +48,9 @@ import { ReadToolFileSystem } from "../tool/read-filesystem.js";
48
48
  import { Tool } from "../tool.js";
49
49
  import { ToolOutput } from "../tool-output.js";
50
50
  import { WellKnown } from "../wellknown.js";
51
- declare const services: readonly [typeof Agent.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 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 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 Session.Service, typeof SessionCompaction.Service, typeof SessionInstructions.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];
51
+ declare const services: readonly [typeof Agent.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 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").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 Session.Service, typeof SessionCompaction.Service, typeof SessionInstructions.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];
52
52
  export type Requirements = Context.Service.Identifier<(typeof services)[number]>;
53
- export declare const requirements: LayerNode.Graph<Global.Service | HttpClient.HttpClient | FSUtil.Service | AppProcess.Service | Bus.Service | Location.Service | Agent.Service | Npm.Service | Credential.Service | Form.Service | Integration.Service | Provider.Service | Model.Service | Command.Service | Watcher.Service | KV.Service | WellKnown.Service | Config.Service | Permission.Service | Environment.Service | Ripgrep.Service | FileSystem.Service | Image.Service | Tool.Service | FileAccess.Service | FileMutation.Service | Formatter.Service | ShellSelect.Service | Reference.Service | WebSearch.Service | WorktreeStrategies.Service | Mcp.Service | ModelsDev.Service | ReadToolFileSystem.Service | SessionInstructions.Service | Session.Service | Job.Service | Shell.Service | Skill.Service | LocationWatcherPolicy.Service | InstructionDiscovery.Service | SessionCompaction.Service | Snapshot.Service | SkillDiscovery.Service | ToolOutput.Service | Worktree.Service, never, LayerNode.Tag<"global"> | LayerNode.Tag<"location">>;
53
+ export declare const requirements: LayerNode.Graph<Global.Service | HttpClient.HttpClient | FSUtil.Service | AppProcess.Service | Bus.Service | Location.Service | Agent.Service | import("@opencode/ai").LLMClientService | Npm.Service | Credential.Service | Form.Service | Integration.Service | Provider.Service | Model.Service | Command.Service | Watcher.Service | KV.Service | WellKnown.Service | Config.Service | Permission.Service | Environment.Service | Ripgrep.Service | FileSystem.Service | Image.Service | Tool.Service | FileAccess.Service | FileMutation.Service | Formatter.Service | ShellSelect.Service | Reference.Service | WebSearch.Service | WorktreeStrategies.Service | Mcp.Service | ModelsDev.Service | LocationWatcherPolicy.Service | InstructionDiscovery.Service | Job.Service | ReadToolFileSystem.Service | Session.Service | SessionCompaction.Service | SessionInstructions.Service | Shell.Service | Snapshot.Service | Skill.Service | SkillDiscovery.Service | ToolOutput.Service | Worktree.Service, never, LayerNode.Tag<"global"> | LayerNode.Tag<"location">>;
54
54
  export type InternalPlugin = Plugin<Requirements | Scope.Scope>;
55
55
  export declare const list: () => Effect.Effect<{
56
56
  pre: Plugin<Scope.Scope>[];
@@ -1,9 +1,5 @@
1
1
  import { Effect } from "effect";
2
2
  import type { Entry } from "@opencode/schema/config";
3
3
  import { Provider } from "../../provider.js";
4
- export declare const configuredSettings: (id: string & import("effect/Brand").Brand<"Provider.ID">) => Effect.Effect<{
5
- readonly [x: string]: any;
6
- } | undefined, never, Provider.Service>;
7
- export declare function foldSettings(entries: readonly Entry[], id: string, initial: Provider.Settings | undefined): {
8
- readonly [x: string]: any;
9
- } | undefined;
4
+ export declare const configuredSettings: (id: string & import("effect/Brand").Brand<"Provider.ID">) => Effect.Effect<Record<string, import("effect/Schema").Json> | undefined, never, Provider.Service>;
5
+ export declare function foldSettings(entries: readonly Entry[], id: string, initial: Provider.Settings | undefined): Record<string, import("effect/Schema").Json> | undefined;
@@ -0,0 +1,2 @@
1
+ export * as ToolInputRepairPlugin from "./tool-input-repair.js";
2
+ export declare const Plugin: import("@opencode/plugin/effect/plugin").Plugin<import("effect/Scope").Scope>;
@@ -39,20 +39,83 @@ export declare const loadPackage: (input: string, npm?: Npm.Interface | undefine
39
39
  readonly [x: string]: unknown;
40
40
  }, import("@opencode/ai/route").CompactionOperations | undefined>, LoadError, never>;
41
41
  export declare function nativeSettings(settings: Settings): Settings;
42
+ export declare function modelSettings(settings: Settings | undefined): {
43
+ readonly [x: string]: any;
44
+ } | undefined;
42
45
  export declare function mergeOverlay(base: Readonly<Record<string, unknown>> | undefined, overlay: Readonly<Record<string, unknown>> | undefined): Record<string, Json> | undefined;
43
46
  export declare function mergeHeaders(base: Readonly<Record<string, string>> | undefined, overlay: Readonly<Record<string, string>> | undefined): {
44
47
  [k: string]: string;
45
48
  } | undefined;
46
49
  export declare const Request: Schema.Struct<{
47
- readonly settings: Schema.withConstructorDefault<Schema.$Record<Schema.String, Schema.Any>>;
50
+ readonly settings: Schema.withConstructorDefault<Schema.StructWithRest<Schema.Struct<{
51
+ readonly timeout: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Union<readonly [Schema.Finite, Schema.Literal<false>]>>>, Schema.optionalKey<Schema.Union<readonly [Schema.Finite, Schema.Literal<false>]>>, never, never>;
52
+ readonly chunkTimeout: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Finite>>, Schema.optionalKey<Schema.Finite>, never, never>;
53
+ readonly compaction: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Union<readonly [Schema.Struct<{
54
+ readonly type: Schema.Literal<"summary">;
55
+ }>, Schema.Struct<{
56
+ readonly type: Schema.Literal<"native">;
57
+ }>]>>>, Schema.optionalKey<Schema.Union<readonly [Schema.Struct<{
58
+ readonly type: Schema.Literal<"summary">;
59
+ }>, Schema.Struct<{
60
+ readonly type: Schema.Literal<"native">;
61
+ }>]>>, never, never>;
62
+ readonly transport: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Literals<readonly ["http", "websocket"]>>>, Schema.optionalKey<Schema.Literals<readonly ["http", "websocket"]>>, never, never>;
63
+ }>, readonly [Schema.$Record<Schema.String, Schema.Any>]>>;
48
64
  readonly headers: Schema.$Record<Schema.String, Schema.String>;
49
65
  readonly body: Schema.$Record<Schema.String, Schema.Any>;
50
66
  }>;
51
67
  export type Request = Provider.Request;
52
- export declare const Settings: Schema.$Record<Schema.String, Schema.Any>;
68
+ export declare const Compaction: Schema.Union<readonly [Schema.Struct<{
69
+ readonly type: Schema.Literal<"summary">;
70
+ }>, Schema.Struct<{
71
+ readonly type: Schema.Literal<"native">;
72
+ }>]>;
73
+ export type Compaction = Provider.Compaction;
74
+ export declare const Transport: Schema.Literals<readonly ["http", "websocket"]>;
75
+ export type Transport = Provider.Transport;
76
+ export declare const Settings: Schema.StructWithRest<Schema.Struct<{
77
+ readonly timeout: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Union<readonly [Schema.Finite, Schema.Literal<false>]>>>, Schema.optionalKey<Schema.Union<readonly [Schema.Finite, Schema.Literal<false>]>>, never, never>;
78
+ readonly chunkTimeout: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Finite>>, Schema.optionalKey<Schema.Finite>, never, never>;
79
+ readonly compaction: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Union<readonly [Schema.Struct<{
80
+ readonly type: Schema.Literal<"summary">;
81
+ }>, Schema.Struct<{
82
+ readonly type: Schema.Literal<"native">;
83
+ }>]>>>, Schema.optionalKey<Schema.Union<readonly [Schema.Struct<{
84
+ readonly type: Schema.Literal<"summary">;
85
+ }>, Schema.Struct<{
86
+ readonly type: Schema.Literal<"native">;
87
+ }>]>>, never, never>;
88
+ readonly transport: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Literals<readonly ["http", "websocket"]>>>, Schema.optionalKey<Schema.Literals<readonly ["http", "websocket"]>>, never, never>;
89
+ }>, readonly [Schema.$Record<Schema.String, Schema.Any>]>;
53
90
  export type Settings = Provider.Settings;
54
91
  export declare const Info: Schema.Struct<{
55
- readonly settings: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Any>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Any>>, never, never>;
92
+ readonly settings: Schema.decodeTo<Schema.optional<Schema.toType<Schema.StructWithRest<Schema.Struct<{
93
+ readonly timeout: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Union<readonly [Schema.Finite, Schema.Literal<false>]>>>, Schema.optionalKey<Schema.Union<readonly [Schema.Finite, Schema.Literal<false>]>>, never, never>;
94
+ readonly chunkTimeout: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Finite>>, Schema.optionalKey<Schema.Finite>, never, never>;
95
+ readonly compaction: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Union<readonly [Schema.Struct<{
96
+ readonly type: Schema.Literal<"summary">;
97
+ }>, Schema.Struct<{
98
+ readonly type: Schema.Literal<"native">;
99
+ }>]>>>, Schema.optionalKey<Schema.Union<readonly [Schema.Struct<{
100
+ readonly type: Schema.Literal<"summary">;
101
+ }>, Schema.Struct<{
102
+ readonly type: Schema.Literal<"native">;
103
+ }>]>>, never, never>;
104
+ readonly transport: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Literals<readonly ["http", "websocket"]>>>, Schema.optionalKey<Schema.Literals<readonly ["http", "websocket"]>>, never, never>;
105
+ }>, readonly [Schema.$Record<Schema.String, Schema.Any>]>>>, Schema.optionalKey<Schema.StructWithRest<Schema.Struct<{
106
+ readonly timeout: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Union<readonly [Schema.Finite, Schema.Literal<false>]>>>, Schema.optionalKey<Schema.Union<readonly [Schema.Finite, Schema.Literal<false>]>>, never, never>;
107
+ readonly chunkTimeout: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Finite>>, Schema.optionalKey<Schema.Finite>, never, never>;
108
+ readonly compaction: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Union<readonly [Schema.Struct<{
109
+ readonly type: Schema.Literal<"summary">;
110
+ }>, Schema.Struct<{
111
+ readonly type: Schema.Literal<"native">;
112
+ }>]>>>, Schema.optionalKey<Schema.Union<readonly [Schema.Struct<{
113
+ readonly type: Schema.Literal<"summary">;
114
+ }>, Schema.Struct<{
115
+ readonly type: Schema.Literal<"native">;
116
+ }>]>>, never, never>;
117
+ readonly transport: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Literals<readonly ["http", "websocket"]>>>, Schema.optionalKey<Schema.Literals<readonly ["http", "websocket"]>>, never, never>;
118
+ }>, readonly [Schema.$Record<Schema.String, Schema.Any>]>>, never, never>;
56
119
  readonly headers: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.String>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.String>>, never, never>;
57
120
  readonly body: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Any>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Any>>, never, never>;
58
121
  readonly id: Schema.brand<Schema.String, "Provider.ID"> & {
@@ -97,18 +160,6 @@ export declare const Info: Schema.Struct<{
97
160
  readonly name: Schema.String;
98
161
  readonly activation: Schema.Literals<readonly ["auto", "enabled", "disabled"]>;
99
162
  readonly package: Schema.String;
100
- readonly compaction: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Union<readonly [Schema.Struct<{
101
- readonly mode: Schema.Literal<"local">;
102
- }>, Schema.Struct<{
103
- readonly mode: Schema.Literal<"provider">;
104
- readonly threshold: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Int>>, Schema.optionalKey<Schema.Int>, never, never>;
105
- }>]>>>, Schema.optionalKey<Schema.Union<readonly [Schema.Struct<{
106
- readonly mode: Schema.Literal<"local">;
107
- }>, Schema.Struct<{
108
- readonly mode: Schema.Literal<"provider">;
109
- readonly threshold: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Int>>, Schema.optionalKey<Schema.Int>, never, never>;
110
- }>]>>, never, never>;
111
- readonly transport: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Literals<readonly ["http", "websocket"]>>>, Schema.optionalKey<Schema.Literals<readonly ["http", "websocket"]>>, never, never>;
112
163
  }> & {
113
164
  empty: (id: Provider.ID) => Provider.Info;
114
165
  };
@@ -1,5 +1,6 @@
1
1
  export * as SessionCompaction from "./compaction.js";
2
- import { Message } from "@opencode/ai";
2
+ import { AIError, LLMRequest, Message, type Usage } from "@opencode/ai";
3
+ import type { StreamOptions } from "@opencode/ai/route";
3
4
  import { Context, Effect, Layer } from "effect";
4
5
  import { Bus } from "../bus.js";
5
6
  import { Database } from "../database/database.js";
@@ -16,8 +17,22 @@ export type Settings = {
16
17
  buffer: number;
17
18
  tokens: number;
18
19
  };
20
+ export type NativeInput = {
21
+ readonly request: LLMRequest;
22
+ readonly options: StreamOptions;
23
+ /** Whole, real user messages within the retained-token allowance, for checkpoint-only mechanisms. */
24
+ readonly retained: Effect.Effect<ReadonlyArray<Message>>;
25
+ };
26
+ export type NativeResult = {
27
+ readonly replacement: ReadonlyArray<Message>;
28
+ readonly usage?: Usage;
29
+ };
30
+ /** Returns the provider's replacement window, or `undefined` when this strategy has no mechanism for the route. */
31
+ export type NativeStrategy = (input: NativeInput) => Effect.Effect<NativeResult, AIError> | undefined;
19
32
  export type Editor = {
20
33
  configure: (settings: Partial<Settings>) => void;
34
+ /** Later registrations take precedence. */
35
+ native: (strategy: NativeStrategy) => void;
21
36
  };
22
37
  export type AutoInput = {
23
38
  readonly context: SessionContext.Loaded;
@@ -44,5 +44,5 @@ declare const Service_base: Context.ServiceClass<Service, "@opencode/SessionRest
44
44
  */
45
45
  export declare class Service extends Service_base {
46
46
  }
47
- export declare const layer: (options?: Options) => Layer.Layer<Service, never, Bus.Service | SessionStore.Service | Session.Service | Job.Service | SessionExecution.Service>;
47
+ export declare const layer: (options?: Options) => Layer.Layer<Service, never, Bus.Service | SessionStore.Service | Job.Service | Session.Service | SessionExecution.Service>;
48
48
  export declare const node: import("@opencode/util/effect/layer-node").Provider<Service, never, import("@opencode/util/effect/layer-node").Tag<"global">>;
@@ -324,8 +324,8 @@ export declare const decodeMessageRow: (row: typeof SessionMessageTable.$inferSe
324
324
  readonly time: {
325
325
  readonly created: import("effect/DateTime").Utc;
326
326
  };
327
- readonly reason: "auto" | "manual";
328
327
  readonly summary: string;
328
+ readonly reason: "auto" | "manual";
329
329
  readonly recent: string;
330
330
  readonly metadata?: {
331
331
  readonly [x: string]: unknown;
@@ -337,8 +337,8 @@ export declare const decodeMessageRow: (row: typeof SessionMessageTable.$inferSe
337
337
  readonly time: {
338
338
  readonly created: import("effect/DateTime").Utc;
339
339
  };
340
- readonly reason: "auto" | "manual";
341
340
  readonly summary: string;
341
+ readonly reason: "auto" | "manual";
342
342
  readonly recent: string;
343
343
  readonly metadata?: {
344
344
  readonly [x: string]: unknown;
@@ -722,8 +722,8 @@ export declare const load: (db: import("../database/drizzle.js").EffectSQLiteDat
722
722
  readonly time: {
723
723
  readonly created: import("effect/DateTime").Utc;
724
724
  };
725
- readonly reason: "auto" | "manual";
726
725
  readonly summary: string;
726
+ readonly reason: "auto" | "manual";
727
727
  readonly recent: string;
728
728
  readonly metadata?: {
729
729
  readonly [x: string]: unknown;
@@ -735,8 +735,8 @@ export declare const load: (db: import("../database/drizzle.js").EffectSQLiteDat
735
735
  readonly time: {
736
736
  readonly created: import("effect/DateTime").Utc;
737
737
  };
738
- readonly reason: "auto" | "manual";
739
738
  readonly summary: string;
739
+ readonly reason: "auto" | "manual";
740
740
  readonly recent: string;
741
741
  readonly metadata?: {
742
742
  readonly [x: string]: unknown;
@@ -1124,8 +1124,8 @@ export declare const entriesForRunner: (db: import("../database/drizzle.js").Eff
1124
1124
  readonly time: {
1125
1125
  readonly created: import("effect/DateTime").Utc;
1126
1126
  };
1127
- readonly reason: "auto" | "manual";
1128
1127
  readonly summary: string;
1128
+ readonly reason: "auto" | "manual";
1129
1129
  readonly recent: string;
1130
1130
  readonly metadata?: {
1131
1131
  readonly [x: string]: unknown;
@@ -1137,8 +1137,8 @@ export declare const entriesForRunner: (db: import("../database/drizzle.js").Eff
1137
1137
  readonly time: {
1138
1138
  readonly created: import("effect/DateTime").Utc;
1139
1139
  };
1140
- readonly reason: "auto" | "manual";
1141
1140
  readonly summary: string;
1141
+ readonly reason: "auto" | "manual";
1142
1142
  readonly recent: string;
1143
1143
  readonly metadata?: {
1144
1144
  readonly [x: string]: unknown;
@@ -1526,8 +1526,8 @@ export declare const preview: (db: import("../database/drizzle.js").EffectSQLite
1526
1526
  readonly time: {
1527
1527
  readonly created: import("effect/DateTime").Utc;
1528
1528
  };
1529
- readonly reason: "auto" | "manual";
1530
1529
  readonly summary: string;
1530
+ readonly reason: "auto" | "manual";
1531
1531
  readonly recent: string;
1532
1532
  readonly metadata?: {
1533
1533
  readonly [x: string]: unknown;
@@ -1539,8 +1539,8 @@ export declare const preview: (db: import("../database/drizzle.js").EffectSQLite
1539
1539
  readonly time: {
1540
1540
  readonly created: import("effect/DateTime").Utc;
1541
1541
  };
1542
- readonly reason: "auto" | "manual";
1543
1542
  readonly summary: string;
1543
+ readonly reason: "auto" | "manual";
1544
1544
  readonly recent: string;
1545
1545
  readonly metadata?: {
1546
1546
  readonly [x: string]: unknown;
@@ -19,5 +19,5 @@ export declare const Input: Schema.Struct<{
19
19
  }>;
20
20
  export declare const Plugin: {
21
21
  id: string;
22
- effect: (ctx: Context) => Effect.Effect<void, never, Scope.Scope | Config.Service | Permission.Service | Environment.Service | FileAccess.Service | ShellSelect.Service | Session.Service | Job.Service | Shell.Service>;
22
+ effect: (ctx: Context) => Effect.Effect<void, never, Scope.Scope | Config.Service | Permission.Service | Environment.Service | FileAccess.Service | ShellSelect.Service | Job.Service | Session.Service | Shell.Service>;
23
23
  };
@@ -30,5 +30,5 @@ export declare const Output: Schema.Struct<{
30
30
  export declare const description: string;
31
31
  export declare const Plugin: {
32
32
  id: string;
33
- effect: (ctx: Context) => Effect.Effect<void, never, import("effect/Scope").Scope | Agent.Service | Model.Service | Config.Service | Permission.Service | Session.Service | Job.Service>;
33
+ effect: (ctx: Context) => Effect.Effect<void, never, import("effect/Scope").Scope | Agent.Service | Model.Service | Config.Service | Permission.Service | Job.Service | Session.Service>;
34
34
  };
@@ -29,6 +29,9 @@ export interface Editor {
29
29
  readonly remove: (id: string) => void;
30
30
  }
31
31
  export interface Interface extends State.Transformable<Editor> {
32
+ readonly list: () => Effect.Effect<ReadonlyArray<Tool.Info & {
33
+ readonly id: string;
34
+ }>>;
32
35
  readonly snapshot: (permissions?: Permission.Ruleset) => Effect.Effect<Snapshot>;
33
36
  }
34
37
  /** A local execution result after hooks and content normalization. */
@@ -116,14 +116,14 @@ export declare function migrate(info: typeof ConfigV1.Info.Type): {
116
116
  readonly auth_server_metadata_url?: string | undefined;
117
117
  } | undefined;
118
118
  readonly disabled?: boolean | undefined;
119
- readonly headers?: {
120
- readonly [x: string]: string;
121
- } | undefined;
122
119
  readonly timeout?: {
123
120
  readonly startup?: number | undefined;
124
121
  readonly catalog?: number | undefined;
125
122
  readonly execution?: number | undefined;
126
123
  } | undefined;
124
+ readonly headers?: {
125
+ readonly [x: string]: string;
126
+ } | undefined;
127
127
  readonly protocol?: "auto" | "legacy" | "2026-07-28" | undefined;
128
128
  readonly codemode?: boolean | undefined;
129
129
  };
@@ -141,7 +141,15 @@ export declare function migrate(info: typeof ConfigV1.Info.Type): {
141
141
  readonly canonical?: string | undefined;
142
142
  readonly env?: readonly string[] | undefined;
143
143
  readonly settings?: {
144
- readonly [x: string]: Schema.Json;
144
+ readonly [x: string]: Schema.Json | undefined;
145
+ readonly timeout?: number | false | undefined;
146
+ readonly chunkTimeout?: number | undefined;
147
+ readonly compaction?: {
148
+ readonly type: "summary";
149
+ } | {
150
+ readonly type: "native";
151
+ } | undefined;
152
+ readonly transport?: "http" | "websocket" | undefined;
145
153
  } | undefined;
146
154
  readonly headers?: {
147
155
  readonly [x: string]: string;
@@ -149,20 +157,18 @@ export declare function migrate(info: typeof ConfigV1.Info.Type): {
149
157
  readonly body?: {
150
158
  readonly [x: string]: Schema.Json;
151
159
  } | undefined;
152
- readonly compaction?: {
153
- readonly mode: "local";
154
- } | {
155
- readonly mode: "provider";
156
- readonly threshold?: number | undefined;
157
- } | undefined;
158
- readonly transport?: "http" | "websocket" | undefined;
159
160
  readonly package?: string | undefined;
160
161
  readonly models?: {
161
162
  readonly [x: string]: {
162
163
  readonly name?: string | undefined;
163
164
  readonly disabled?: boolean | undefined;
164
165
  readonly settings?: {
165
- readonly [x: string]: Schema.Json;
166
+ readonly [x: string]: Schema.Json | undefined;
167
+ readonly compaction?: {
168
+ readonly type: "summary";
169
+ } | {
170
+ readonly type: "native";
171
+ } | undefined;
166
172
  } | undefined;
167
173
  readonly headers?: {
168
174
  readonly [x: string]: string;
@@ -170,13 +176,6 @@ export declare function migrate(info: typeof ConfigV1.Info.Type): {
170
176
  readonly body?: {
171
177
  readonly [x: string]: Schema.Json;
172
178
  } | undefined;
173
- readonly compaction?: {
174
- readonly mode: "local";
175
- } | {
176
- readonly mode: "provider";
177
- readonly threshold?: number | undefined;
178
- } | undefined;
179
- readonly transport?: "http" | "websocket" | undefined;
180
179
  readonly package?: string | undefined;
181
180
  readonly family?: string | undefined;
182
181
  readonly compatibility?: {
@@ -190,7 +189,12 @@ export declare function migrate(info: typeof ConfigV1.Info.Type): {
190
189
  readonly variants?: readonly {
191
190
  readonly id: string;
192
191
  readonly settings?: {
193
- readonly [x: string]: Schema.Json;
192
+ readonly [x: string]: Schema.Json | undefined;
193
+ readonly compaction?: {
194
+ readonly type: "summary";
195
+ } | {
196
+ readonly type: "native";
197
+ } | undefined;
194
198
  } | undefined;
195
199
  readonly headers?: {
196
200
  readonly [x: string]: string;
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  from2,
3
3
  exports_error_summary
4
- } from "../chunks/integration-0q0f95c6.js";
4
+ } from "../chunks/tool-0q0f95c6.js";
5
5
  export {
6
6
  exports_error_summary as ErrorSummary,
7
7
  from2 as from
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  NamedError2
3
- } from "../chunks/integration-2axfhc9x.js";
3
+ } from "../chunks/tool-2axfhc9x.js";
4
4
  export {
5
5
  NamedError2 as NamedError
6
6
  };
@@ -1,8 +1,8 @@
1
1
  import {
2
2
  resolveGitExecutable2,
3
3
  gitExecutable2
4
- } from "../chunks/integration-ef5x83kb.js";
5
- import"../chunks/integration-qaymkmh1.js";
4
+ } from "../chunks/tool-ef5x83kb.js";
5
+ import"../chunks/tool-qaymkmh1.js";
6
6
  export {
7
7
  gitExecutable2 as gitExecutable,
8
8
  resolveGitExecutable2 as resolveGitExecutable
package/dist/util/iife.js CHANGED
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  iife2
3
- } from "../chunks/integration-1kg9ymc8.js";
3
+ } from "../chunks/tool-1kg9ymc8.js";
4
4
  export {
5
5
  iife2 as iife
6
6
  };
package/dist/util/lazy.js CHANGED
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  lazy2
3
- } from "../chunks/integration-88xbtdfr.js";
3
+ } from "../chunks/tool-88xbtdfr.js";
4
4
  export {
5
5
  lazy2 as lazy
6
6
  };
package/dist/util/slug.js CHANGED
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  Slug2
3
- } from "../chunks/integration-gebd4c9n.js";
3
+ } from "../chunks/tool-gebd4c9n.js";
4
4
  export {
5
5
  Slug2 as Slug
6
6
  };
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  estimate2,
3
3
  exports_token
4
- } from "../chunks/integration-h6vf3j39.js";
4
+ } from "../chunks/tool-h6vf3j39.js";
5
5
  export {
6
6
  exports_token as Token,
7
7
  estimate2 as estimate