@opencode/core 0.0.0-dev-19424 → 0.0.0-dev-19426

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 (784) hide show
  1. package/dist/account/sql.js +1 -1
  2. package/dist/agent.js +81 -81
  3. package/dist/aisdk-native.js +2 -2
  4. package/dist/aisdk.js +6 -6
  5. package/dist/app.js +7 -7
  6. package/dist/bus.js +67 -67
  7. package/dist/catalog.js +83 -83
  8. package/dist/chunks/{kv-746ykzny.js → persistent-pty-07z0gam2.js} +2 -2
  9. package/dist/chunks/{kv-jpm4m4qz.js → persistent-pty-0c8kwbsp.js} +14 -14
  10. package/dist/chunks/{kv-nmvwhn13.js → persistent-pty-0cc4q6tf.js} +7 -7
  11. package/dist/chunks/{kv-00h50wdp.js → persistent-pty-0e44rvxq.js} +16 -16
  12. package/dist/chunks/{kv-3cwb9jzf.js → persistent-pty-0h54jqbs.js} +8 -8
  13. package/dist/chunks/{kv-ms115ace.js → persistent-pty-0m5hy3yw.js} +33 -33
  14. package/dist/chunks/persistent-pty-0mesazry.js +4 -0
  15. package/dist/chunks/{kv-0paq2nw3.js → persistent-pty-0paq2nw3.js} +1 -1
  16. package/dist/chunks/{kv-0q0f95c6.js → persistent-pty-0q0f95c6.js} +1 -1
  17. package/dist/chunks/{kv-38e0k4m7.js → persistent-pty-159kg1rb.js} +17 -17
  18. package/dist/chunks/{kv-dhp9c77z.js → persistent-pty-1bvxxf6d.js} +9 -9
  19. package/dist/chunks/{kv-1dazxqgg.js → persistent-pty-1dazxqgg.js} +2 -2
  20. package/dist/chunks/{kv-59np5r72.js → persistent-pty-1hxa6pzb.js} +32 -32
  21. package/dist/chunks/{kv-q5c44033.js → persistent-pty-1jzr98sp.js} +11 -11
  22. package/dist/chunks/{kv-rhx683sy.js → persistent-pty-1tq060df.js} +6 -6
  23. package/dist/chunks/{kv-etf02tyd.js → persistent-pty-1ybn2y83.js} +46 -46
  24. package/dist/chunks/{kv-4zrw1ey2.js → persistent-pty-1z0pzthf.js} +2 -2
  25. package/dist/chunks/{kv-2yc7gd2s.js → persistent-pty-21nf8x37.js} +5 -5
  26. package/dist/chunks/{kv-21r38tys.js → persistent-pty-21r38tys.js} +1 -1
  27. package/dist/chunks/{kv-ngypvr0r.js → persistent-pty-21thbrk0.js} +22 -22
  28. package/dist/chunks/{kv-2402vzrj.js → persistent-pty-2402vzrj.js} +1 -1
  29. package/dist/chunks/{kv-z63w68vq.js → persistent-pty-29x78va6.js} +6 -6
  30. package/dist/chunks/{kv-2a5m3afh.js → persistent-pty-2a5m3afh.js} +1 -1
  31. package/dist/chunks/{kv-kyg1cf9a.js → persistent-pty-2hnfpkj9.js} +24 -24
  32. package/dist/chunks/{kv-1dxj08hj.js → persistent-pty-2j1x0myt.js} +12 -9
  33. package/dist/chunks/{kv-1tpb1mvh.js → persistent-pty-2sb6srdd.js} +9 -9
  34. package/dist/chunks/{kv-ayam5bk7.js → persistent-pty-2v34zfk0.js} +13 -13
  35. package/dist/chunks/{kv-3n1sqzs3.js → persistent-pty-2vgrpkws.js} +20 -20
  36. package/dist/chunks/{kv-a46ahx4q.js → persistent-pty-35wxgrz4.js} +8 -8
  37. package/dist/chunks/{kv-s1j1qc5n.js → persistent-pty-3ajmv4vc.js} +27 -27
  38. package/dist/chunks/{kv-3fc6dm20.js → persistent-pty-3fc6dm20.js} +1 -1
  39. package/dist/chunks/{kv-3hepkmqq.js → persistent-pty-3hepkmqq.js} +1 -1
  40. package/dist/chunks/{kv-ve4pfa0n.js → persistent-pty-3j8sdtpz.js} +4 -4
  41. package/dist/chunks/{kv-dfp61b4w.js → persistent-pty-3sapyj2b.js} +15 -15
  42. package/dist/chunks/{kv-3smtnn6g.js → persistent-pty-3smtnn6g.js} +1 -1
  43. package/dist/chunks/{kv-gt0cxfk7.js → persistent-pty-3trbxeqx.js} +1 -1
  44. package/dist/chunks/{kv-3tvqynh2.js → persistent-pty-3tvqynh2.js} +1 -1
  45. package/dist/chunks/{kv-3cfzdc8e.js → persistent-pty-3w2b2yj4.js} +5 -5
  46. package/dist/chunks/{kv-2wfv040v.js → persistent-pty-3zc5jvmt.js} +34 -34
  47. package/dist/chunks/{kv-qek8dtx8.js → persistent-pty-485fr60v.js} +14 -14
  48. package/dist/chunks/{kv-6nj48chv.js → persistent-pty-4vm0hqbg.js} +7 -7
  49. package/dist/chunks/{kv-g3bycevt.js → persistent-pty-55fm1b9t.js} +23 -23
  50. package/dist/chunks/{kv-56gdpj1q.js → persistent-pty-56gdpj1q.js} +2 -2
  51. package/dist/chunks/{kv-3a8br69e.js → persistent-pty-5a5hve6r.js} +20 -20
  52. package/dist/chunks/{kv-5daktx2q.js → persistent-pty-5daktx2q.js} +1 -1
  53. package/dist/chunks/{kv-ns24c9bg.js → persistent-pty-5f411mky.js} +8 -8
  54. package/dist/chunks/{kv-wkz87c8f.js → persistent-pty-5r7wtzhh.js} +16 -16
  55. package/dist/chunks/{kv-k4xgjck9.js → persistent-pty-5t0z2mmn.js} +5 -5
  56. package/dist/chunks/{kv-5t3nmthw.js → persistent-pty-5t3nmthw.js} +2 -2
  57. package/dist/chunks/{kv-zn1bmwc2.js → persistent-pty-612qpymn.js} +15 -15
  58. package/dist/chunks/{kv-xzwpbx9h.js → persistent-pty-64a4x0vc.js} +9 -9
  59. package/dist/chunks/{kv-669tq793.js → persistent-pty-669tq793.js} +1 -1
  60. package/dist/chunks/{kv-cze3kph1.js → persistent-pty-69najtqd.js} +20 -20
  61. package/dist/chunks/{kv-4da4ndpv.js → persistent-pty-6fdj6kdr.js} +4 -4
  62. package/dist/chunks/{kv-q3scgwqb.js → persistent-pty-6feaep00.js} +26 -26
  63. package/dist/chunks/{kv-jdzpss6b.js → persistent-pty-6j8myhdp.js} +4 -4
  64. package/dist/chunks/{kv-53kxs80e.js → persistent-pty-6kvtrg8a.js} +6 -6
  65. package/dist/chunks/{kv-1pzhnd6x.js → persistent-pty-6mgtcd6n.js} +26 -26
  66. package/dist/chunks/{kv-6msgmcgs.js → persistent-pty-6msgmcgs.js} +1 -1
  67. package/dist/chunks/{kv-cq37gk0t.js → persistent-pty-6tt5evqq.js} +4 -4
  68. package/dist/chunks/{kv-71q4at8m.js → persistent-pty-71q4at8m.js} +1 -1
  69. package/dist/chunks/{kv-mf9m2v67.js → persistent-pty-721tb84k.js} +3 -3
  70. package/dist/chunks/{kv-tyd3h2my.js → persistent-pty-72xz0ztc.js} +63 -63
  71. package/dist/chunks/{kv-tnc7m3sd.js → persistent-pty-75q7adw5.js} +16 -16
  72. package/dist/chunks/{kv-g7bvdrx8.js → persistent-pty-771pt6a1.js} +9 -9
  73. package/dist/chunks/{kv-dgj0dq1g.js → persistent-pty-7b15y959.js} +8 -8
  74. package/dist/chunks/{kv-ajpt9055.js → persistent-pty-7ba6wjkk.js} +13 -13
  75. package/dist/chunks/{kv-7bmhse3q.js → persistent-pty-7bmhse3q.js} +1 -1
  76. package/dist/chunks/{kv-qdqjyrmg.js → persistent-pty-7cbt97qs.js} +32 -32
  77. package/dist/chunks/{kv-0jwsre1p.js → persistent-pty-7dqw4kz8.js} +5 -5
  78. package/dist/chunks/{kv-mth1p2w6.js → persistent-pty-7e7r6h4f.js} +11 -11
  79. package/dist/chunks/{kv-8pm72rx8.js → persistent-pty-7hpb1swa.js} +21 -21
  80. package/dist/chunks/{kv-ezymr09y.js → persistent-pty-7rgb98b3.js} +25 -25
  81. package/dist/chunks/{kv-bwtbar9r.js → persistent-pty-7vhhzrrm.js} +6 -6
  82. package/dist/chunks/{kv-zv3e7t68.js → persistent-pty-7wc683m2.js} +2 -2
  83. package/dist/chunks/{kv-fjvydvzm.js → persistent-pty-7yqnf43w.js} +4 -4
  84. package/dist/chunks/{kv-pysvbzwn.js → persistent-pty-7z50rzs6.js} +11 -11
  85. package/dist/chunks/{kv-p2dhp760.js → persistent-pty-7zkd12m7.js} +15 -15
  86. package/dist/chunks/{kv-rk0rec3h.js → persistent-pty-81swgkk7.js} +9 -9
  87. package/dist/chunks/{kv-60gwjc7b.js → persistent-pty-84gm4pzb.js} +13 -13
  88. package/dist/chunks/{kv-c7ecgrk6.js → persistent-pty-84tssp1s.js} +6 -6
  89. package/dist/chunks/{kv-cgy1wfrf.js → persistent-pty-87rksg4x.js} +18 -18
  90. package/dist/chunks/{kv-8d7r5vzw.js → persistent-pty-8d7r5vzw.js} +1 -1
  91. package/dist/chunks/{kv-8p4f9s12.js → persistent-pty-8p4f9s12.js} +2 -2
  92. package/dist/chunks/{kv-vb6rjzph.js → persistent-pty-8xbg7ftz.js} +8 -8
  93. package/dist/chunks/{kv-zerdtc7d.js → persistent-pty-8z17e00v.js} +7 -4
  94. package/dist/chunks/{kv-9cq2d911.js → persistent-pty-915t83ht.js} +5 -5
  95. package/dist/chunks/{kv-p33ejz0k.js → persistent-pty-9gyd2w40.js} +1 -1
  96. package/dist/chunks/{kv-an7jxd2g.js → persistent-pty-9h6x7gyv.js} +12 -12
  97. package/dist/chunks/{kv-5nsrms9d.js → persistent-pty-9k2v62xn.js} +1 -1
  98. package/dist/chunks/{kv-5xgjcnty.js → persistent-pty-9njfg5h4.js} +19 -19
  99. package/dist/chunks/persistent-pty-9r5tkcxt.js +247 -0
  100. package/dist/chunks/{kv-f00zmnq6.js → persistent-pty-9t9a8468.js} +19 -19
  101. package/dist/chunks/{kv-n0jyca30.js → persistent-pty-9vd61c30.js} +16 -16
  102. package/dist/chunks/{kv-92qb1g11.js → persistent-pty-9vqpghck.js} +26 -26
  103. package/dist/chunks/{kv-ce77yd45.js → persistent-pty-9yqcsx6m.js} +17 -17
  104. package/dist/chunks/{kv-a1bz86dw.js → persistent-pty-a1bz86dw.js} +3 -3
  105. package/dist/chunks/{kv-ryr25ayn.js → persistent-pty-a46v4e4v.js} +4 -4
  106. package/dist/chunks/{kv-aaet6srn.js → persistent-pty-aaet6srn.js} +2 -2
  107. package/dist/chunks/{kv-97g1ygwv.js → persistent-pty-aagvkkxy.js} +51 -24
  108. package/dist/chunks/{kv-pp5ngvqa.js → persistent-pty-aahnsagd.js} +15 -15
  109. package/dist/chunks/{kv-ddh9bq48.js → persistent-pty-aavsyw27.js} +24 -24
  110. package/dist/chunks/{kv-qa4rp7fn.js → persistent-pty-af4kcksd.js} +9 -9
  111. package/dist/chunks/{kv-xqvb89x1.js → persistent-pty-akt3csds.js} +11 -11
  112. package/dist/chunks/{kv-jtdqw3ym.js → persistent-pty-andaq6rh.js} +10 -10
  113. package/dist/chunks/{kv-1zbcv06z.js → persistent-pty-atpcpkf0.js} +14 -14
  114. package/dist/chunks/{kv-zawxns8p.js → persistent-pty-avr3wk77.js} +21 -21
  115. package/dist/chunks/{kv-8rvy672g.js → persistent-pty-axdmkq6x.js} +12 -12
  116. package/dist/chunks/{kv-ykczf8eq.js → persistent-pty-b0grxa7w.js} +5 -5
  117. package/dist/chunks/{kv-dbt9anx1.js → persistent-pty-b2v3nqsm.js} +13 -13
  118. package/dist/chunks/{kv-b6gygkdw.js → persistent-pty-b6gygkdw.js} +2 -2
  119. package/dist/chunks/{kv-7n6vh58r.js → persistent-pty-b99w0g26.js} +6 -6
  120. package/dist/chunks/{kv-n3wdcy6w.js → persistent-pty-bby00dsd.js} +8 -8
  121. package/dist/chunks/{kv-37rarmry.js → persistent-pty-bf6dt9pk.js} +16 -16
  122. package/dist/chunks/{kv-smnhxh3e.js → persistent-pty-bgp3qmdj.js} +44 -44
  123. package/dist/chunks/{kv-4mak53xc.js → persistent-pty-bhydgh2x.js} +12 -12
  124. package/dist/chunks/{kv-eng2zwaz.js → persistent-pty-bhzctmd7.js} +18 -18
  125. package/dist/chunks/{kv-hv8a023p.js → persistent-pty-bkrv928p.js} +85 -85
  126. package/dist/chunks/{kv-n1a1eppk.js → persistent-pty-bkxbsem7.js} +24 -24
  127. package/dist/chunks/{kv-qm7jrdpz.js → persistent-pty-bw0vgseb.js} +5 -5
  128. package/dist/chunks/{kv-mtxnhkwr.js → persistent-pty-bwtw07rb.js} +4 -4
  129. package/dist/chunks/{kv-acj51h88.js → persistent-pty-bx134keb.js} +9 -9
  130. package/dist/chunks/{kv-7hf8wdfb.js → persistent-pty-c3t7yrgz.js} +6 -6
  131. package/dist/chunks/{kv-jtgs360h.js → persistent-pty-c6j5rb3b.js} +4 -4
  132. package/dist/chunks/{kv-n78ae22e.js → persistent-pty-c7m75h3c.js} +1 -1
  133. package/dist/chunks/{kv-cfpkc3c9.js → persistent-pty-cfpkc3c9.js} +2 -2
  134. package/dist/chunks/{kv-c47pmwja.js → persistent-pty-cgwhtan4.js} +18 -18
  135. package/dist/chunks/{kv-3tsb3grn.js → persistent-pty-cqyts73c.js} +23 -23
  136. package/dist/chunks/{kv-8j66fgre.js → persistent-pty-cvvekyt1.js} +15 -15
  137. package/dist/chunks/{kv-06x8he3q.js → persistent-pty-cxmh4q5b.js} +4 -4
  138. package/dist/chunks/{kv-mggvtchm.js → persistent-pty-d5yt5jwb.js} +20 -20
  139. package/dist/chunks/{kv-2h9fsx22.js → persistent-pty-d8qpv23y.js} +41 -41
  140. package/dist/chunks/{kv-y71avatq.js → persistent-pty-dpkg50ah.js} +4 -4
  141. package/dist/chunks/{kv-kmp87k0b.js → persistent-pty-dxygqc36.js} +20 -20
  142. package/dist/chunks/{kv-8p12mb28.js → persistent-pty-e8mbapm5.js} +9 -9
  143. package/dist/chunks/{kv-9hkkgm6z.js → persistent-pty-e9x29tk8.js} +8 -8
  144. package/dist/chunks/{kv-cg111ecx.js → persistent-pty-eanp9d5s.js} +37 -37
  145. package/dist/chunks/{kv-htnta4fq.js → persistent-pty-emyaygjm.js} +57 -57
  146. package/dist/chunks/{kv-w5a5ctqr.js → persistent-pty-enc0sym2.js} +18 -18
  147. package/dist/chunks/{kv-1wxb385z.js → persistent-pty-esdnemd6.js} +1 -1
  148. package/dist/chunks/{kv-etq0c3wd.js → persistent-pty-etq0c3wd.js} +1 -1
  149. package/dist/chunks/{kv-6cef7gxv.js → persistent-pty-exnvqzq0.js} +30 -30
  150. package/dist/chunks/{kv-km56xxe6.js → persistent-pty-ez87t20v.js} +41 -41
  151. package/dist/chunks/{kv-f828m53h.js → persistent-pty-f828m53h.js} +2 -2
  152. package/dist/chunks/{kv-ngxaxwdx.js → persistent-pty-f873qhwf.js} +20 -20
  153. package/dist/chunks/{kv-pb1eahw5.js → persistent-pty-fg7rbsd2.js} +11 -11
  154. package/dist/chunks/{kv-99arrvk8.js → persistent-pty-fgcgd4rw.js} +13 -13
  155. package/dist/chunks/{kv-z1qqaahk.js → persistent-pty-fppgezky.js} +25 -25
  156. package/dist/chunks/{kv-jhetwysa.js → persistent-pty-fq1h1v14.js} +3 -3
  157. package/dist/chunks/{kv-1sa7xwmb.js → persistent-pty-fsxrvzy1.js} +8 -8
  158. package/dist/chunks/{kv-fxbjtjnd.js → persistent-pty-fxbjtjnd.js} +1 -1
  159. package/dist/chunks/{kv-rx3d65pp.js → persistent-pty-g22feqm7.js} +9 -9
  160. package/dist/chunks/{kv-gs4jgv05.js → persistent-pty-g246acm2.js} +16 -16
  161. package/dist/chunks/{kv-vyxd7yyr.js → persistent-pty-g2rsct3h.js} +6 -6
  162. package/dist/chunks/{kv-j4hs6c17.js → persistent-pty-g5zzrv8s.js} +15 -15
  163. package/dist/chunks/{kv-gzdthbxm.js → persistent-pty-g6986w1q.js} +21 -21
  164. package/dist/chunks/{kv-36zdpvh2.js → persistent-pty-g7bd3bxh.js} +13 -13
  165. package/dist/chunks/{kv-7bpzgkas.js → persistent-pty-gcaewnb3.js} +6 -6
  166. package/dist/chunks/{kv-gd4qta3r.js → persistent-pty-gd4qta3r.js} +1 -1
  167. package/dist/chunks/{kv-yq9qz7px.js → persistent-pty-ggwxhvn5.js} +22 -22
  168. package/dist/chunks/{kv-se034v8w.js → persistent-pty-gpw9mxzt.js} +34 -34
  169. package/dist/chunks/{kv-hxdev4sf.js → persistent-pty-gq9ysr8h.js} +6 -6
  170. package/dist/chunks/persistent-pty-gqh9qxps.js +462 -0
  171. package/dist/chunks/{kv-rpzdwm4k.js → persistent-pty-grfax6bg.js} +15 -15
  172. package/dist/chunks/{kv-gv6a8nnw.js → persistent-pty-gv6a8nnw.js} +2 -2
  173. package/dist/chunks/{kv-0ahe7yqf.js → persistent-pty-gvcny074.js} +11 -11
  174. package/dist/chunks/{kv-h03wrkyp.js → persistent-pty-h03wrkyp.js} +2 -2
  175. package/dist/chunks/{kv-pwc8zcsq.js → persistent-pty-h15vyfzd.js} +10 -10
  176. package/dist/chunks/{kv-a49m5b8w.js → persistent-pty-h28mzj1y.js} +43 -43
  177. package/dist/chunks/{kv-t8mcaem5.js → persistent-pty-h2gyv3sg.js} +1 -1
  178. package/dist/chunks/{kv-mxdc1gxg.js → persistent-pty-h322wpay.js} +3 -3
  179. package/dist/chunks/{kv-h6vf3j39.js → persistent-pty-h6vf3j39.js} +1 -1
  180. package/dist/chunks/{kv-e3pszgz4.js → persistent-pty-hb21dksg.js} +11 -11
  181. package/dist/chunks/{kv-c8rs41m5.js → persistent-pty-he2978am.js} +15 -15
  182. package/dist/chunks/{kv-4fkjfftk.js → persistent-pty-hj2v5ffq.js} +33 -33
  183. package/dist/chunks/{kv-hjt4xg1x.js → persistent-pty-hjt4xg1x.js} +1 -1
  184. package/dist/chunks/{kv-msq0jde0.js → persistent-pty-hrndf12w.js} +4 -4
  185. package/dist/chunks/persistent-pty-ht5y0zrb.js +18 -0
  186. package/dist/chunks/{kv-r9bmhqfh.js → persistent-pty-hxh4hb0e.js} +17 -17
  187. package/dist/chunks/{kv-2we4m05m.js → persistent-pty-j39pwvkg.js} +6 -6
  188. package/dist/chunks/{kv-j56e64zr.js → persistent-pty-j56e64zr.js} +1 -1
  189. package/dist/chunks/{kv-paphc93g.js → persistent-pty-j935v87r.js} +2 -2
  190. package/dist/chunks/{kv-faxgm9dw.js → persistent-pty-j9jre7ys.js} +169 -169
  191. package/dist/chunks/{kv-fdr8epc3.js → persistent-pty-jbp58yvw.js} +8 -8
  192. package/dist/chunks/{kv-dcxndxgt.js → persistent-pty-jer3sd0r.js} +11 -11
  193. package/dist/chunks/{kv-8qk5ag2a.js → persistent-pty-jk9xsz7x.js} +22 -22
  194. package/dist/chunks/{kv-1t0z6gp5.js → persistent-pty-jvzfedhz.js} +5 -5
  195. package/dist/chunks/{kv-vgzrhrbh.js → persistent-pty-jzpbgybv.js} +20 -20
  196. package/dist/chunks/{kv-h5b4kcx3.js → persistent-pty-k0nnq3t9.js} +6 -6
  197. package/dist/chunks/{kv-d7cpex39.js → persistent-pty-k8g3dj73.js} +37 -37
  198. package/dist/chunks/{kv-kg06axw8.js → persistent-pty-kg06axw8.js} +1 -1
  199. package/dist/chunks/{kv-0tmd09v3.js → persistent-pty-kpgdrxya.js} +9 -9
  200. package/dist/chunks/{kv-fmyvj1jr.js → persistent-pty-kt5w8vxh.js} +10 -10
  201. package/dist/chunks/{kv-9m9mqjsp.js → persistent-pty-m18hwpd1.js} +8 -8
  202. package/dist/chunks/{kv-2bffqe3z.js → persistent-pty-m3s16k4y.js} +11 -11
  203. package/dist/chunks/{kv-5sc37rhn.js → persistent-pty-m4xc242r.js} +15 -15
  204. package/dist/chunks/{kv-dx63s7w1.js → persistent-pty-m5y0j72z.js} +8 -8
  205. package/dist/chunks/{kv-ykhxkcg8.js → persistent-pty-m7vxemcg.js} +11 -11
  206. package/dist/chunks/{kv-gsx0ryk4.js → persistent-pty-m86bnw2c.js} +9 -9
  207. package/dist/chunks/{kv-m9w0rfyh.js → persistent-pty-m9w0rfyh.js} +1 -1
  208. package/dist/chunks/{kv-8nzcwr75.js → persistent-pty-mdkf98yy.js} +5 -5
  209. package/dist/chunks/{kv-7dz17pbv.js → persistent-pty-mge8n18z.js} +5 -5
  210. package/dist/chunks/{kv-mkcjrzeh.js → persistent-pty-mkcjrzeh.js} +1 -1
  211. package/dist/chunks/{kv-byy61sde.js → persistent-pty-mqy9bkz8.js} +4 -4
  212. package/dist/chunks/{kv-en74w496.js → persistent-pty-mrw4weg4.js} +5 -5
  213. package/dist/chunks/{kv-hkfg6fzm.js → persistent-pty-mtft99cd.js} +5 -5
  214. package/dist/chunks/{kv-naw5mfdv.js → persistent-pty-n52fcynn.js} +32 -32
  215. package/dist/chunks/{kv-d8nc1xcx.js → persistent-pty-nw2nz702.js} +4 -4
  216. package/dist/chunks/{kv-keyg98zt.js → persistent-pty-nx4935gj.js} +9 -9
  217. package/dist/chunks/{kv-jywz80j8.js → persistent-pty-nyba91e3.js} +20 -20
  218. package/dist/chunks/{kv-18n0ze07.js → persistent-pty-p9e7n5cp.js} +43 -43
  219. package/dist/chunks/{kv-sp84vggf.js → persistent-pty-pbmjghd7.js} +11 -11
  220. package/dist/chunks/{kv-pjvnvgmy.js → persistent-pty-pjvnvgmy.js} +1 -1
  221. package/dist/chunks/{kv-pknna89w.js → persistent-pty-pknna89w.js} +1 -1
  222. package/dist/chunks/{kv-q8xmfjd1.js → persistent-pty-pps99k3k.js} +25 -25
  223. package/dist/chunks/{kv-43vkjyw7.js → persistent-pty-q34x7630.js} +4 -4
  224. package/dist/chunks/{kv-fypjjzpt.js → persistent-pty-qcahbspj.js} +8 -8
  225. package/dist/chunks/{kv-ff77dtb9.js → persistent-pty-qfd3egxj.js} +7 -7
  226. package/dist/chunks/{kv-g9yme2nt.js → persistent-pty-qjfza5jp.js} +23 -23
  227. package/dist/chunks/{kv-zh3qtny7.js → persistent-pty-qryc0yk4.js} +47 -47
  228. package/dist/chunks/{kv-qsdy395h.js → persistent-pty-qsdy395h.js} +1 -1
  229. package/dist/chunks/{kv-teerhc17.js → persistent-pty-qshadkbd.js} +15 -15
  230. package/dist/chunks/{kv-gc9hrexb.js → persistent-pty-qt3ydrbb.js} +85 -85
  231. package/dist/chunks/{kv-s03wq4a5.js → persistent-pty-qv60t1mv.js} +6 -6
  232. package/dist/chunks/{kv-0w41f5b9.js → persistent-pty-qz2hjw9m.js} +4 -4
  233. package/dist/chunks/{kv-bpqx2qm5.js → persistent-pty-r3meafyq.js} +25 -25
  234. package/dist/chunks/{kv-7yh4e7ss.js → persistent-pty-r5x6zcsm.js} +3 -3
  235. package/dist/chunks/{kv-4mkcvr19.js → persistent-pty-rs226bz6.js} +5 -5
  236. package/dist/chunks/{kv-2hxyrecd.js → persistent-pty-rzn68cdd.js} +9 -9
  237. package/dist/chunks/{kv-88t8dw15.js → persistent-pty-s1htzk4a.js} +24 -24
  238. package/dist/chunks/{kv-yrznvahk.js → persistent-pty-s4enseaf.js} +2 -2
  239. package/dist/chunks/{kv-7ak5pxjh.js → persistent-pty-s51v67se.js} +10 -10
  240. package/dist/chunks/{kv-vpt86awd.js → persistent-pty-s76nk363.js} +12 -12
  241. package/dist/chunks/{kv-rhjbct0v.js → persistent-pty-s8d7rejh.js} +4 -4
  242. package/dist/chunks/{kv-h35ea8xq.js → persistent-pty-smj81yy7.js} +26 -26
  243. package/dist/chunks/{kv-vrbphxwj.js → persistent-pty-stesey4a.js} +4 -4
  244. package/dist/chunks/{kv-rjqst478.js → persistent-pty-t7fdnyc8.js} +18 -18
  245. package/dist/chunks/{kv-vvxf2beg.js → persistent-pty-t8wk4avw.js} +11 -11
  246. package/dist/chunks/persistent-pty-t9b0v4z9.js +22 -0
  247. package/dist/chunks/{kv-tazgh4e4.js → persistent-pty-tazgh4e4.js} +1 -1
  248. package/dist/chunks/{kv-8jw9m7y9.js → persistent-pty-tc9rqwe8.js} +9 -9
  249. package/dist/chunks/{kv-89znhe33.js → persistent-pty-tcezcvh9.js} +4 -4
  250. package/dist/chunks/{kv-tdstcens.js → persistent-pty-tdstcens.js} +1 -1
  251. package/dist/chunks/{kv-f6ne2qfq.js → persistent-pty-tge42xv9.js} +16 -16
  252. package/dist/chunks/{kv-c1xvwngs.js → persistent-pty-tjfw1za4.js} +10 -10
  253. package/dist/chunks/{kv-rz527k5r.js → persistent-pty-ttqfmzkf.js} +2 -2
  254. package/dist/chunks/{kv-tvtrv512.js → persistent-pty-tvtrv512.js} +1 -1
  255. package/dist/chunks/{kv-p1wf2k30.js → persistent-pty-twy35tz0.js} +9 -9
  256. package/dist/chunks/{kv-17gmnacf.js → persistent-pty-tybgdchd.js} +36 -36
  257. package/dist/chunks/{kv-h20mmte8.js → persistent-pty-v8aeq3gs.js} +32 -32
  258. package/dist/chunks/{kv-zxwpk2nb.js → persistent-pty-vabb23s0.js} +1 -1
  259. package/dist/chunks/{kv-veqvce7d.js → persistent-pty-veqvce7d.js} +1 -1
  260. package/dist/chunks/{kv-e6hmchc5.js → persistent-pty-vmq7ehpy.js} +5 -5
  261. package/dist/chunks/{kv-8vdvpqvt.js → persistent-pty-vqyjqhb3.js} +10 -10
  262. package/dist/chunks/{kv-83x6p9kd.js → persistent-pty-vypqtakx.js} +1 -1
  263. package/dist/chunks/{kv-vzcthcp8.js → persistent-pty-vzcthcp8.js} +1 -1
  264. package/dist/chunks/{kv-hv2e1k7y.js → persistent-pty-vze96k0n.js} +4 -4
  265. package/dist/chunks/{kv-w3wsvvr9.js → persistent-pty-w3wsvvr9.js} +1 -1
  266. package/dist/chunks/{kv-hca6cb89.js → persistent-pty-warydmh4.js} +25 -25
  267. package/dist/chunks/{kv-wd87259q.js → persistent-pty-wd87259q.js} +1 -1
  268. package/dist/chunks/{kv-t5ct2jg2.js → persistent-pty-ws70e1ew.js} +32 -32
  269. package/dist/chunks/{kv-8gjcfqer.js → persistent-pty-ww3mwnc7.js} +11 -11
  270. package/dist/chunks/{kv-x1ezjp6w.js → persistent-pty-x1ezjp6w.js} +1 -1
  271. package/dist/chunks/{kv-7575ft8m.js → persistent-pty-x30a5wep.js} +3 -3
  272. package/dist/chunks/{kv-x43y2vfs.js → persistent-pty-x43y2vfs.js} +2 -2
  273. package/dist/chunks/{kv-6xvszb1z.js → persistent-pty-xck95xk4.js} +19 -19
  274. package/dist/chunks/{kv-qj4qdmq9.js → persistent-pty-xrmsdwza.js} +34 -34
  275. package/dist/chunks/{kv-adg3jwd2.js → persistent-pty-xsgnaeym.js} +17 -17
  276. package/dist/chunks/{kv-y1fvbwt7.js → persistent-pty-y1fvbwt7.js} +1 -1
  277. package/dist/chunks/{kv-jr2s9rt4.js → persistent-pty-y20gv630.js} +32 -32
  278. package/dist/chunks/{kv-7sdps93t.js → persistent-pty-yddgxcp4.js} +6 -5
  279. package/dist/chunks/{kv-cp8kyxng.js → persistent-pty-ynnp4yam.js} +11 -11
  280. package/dist/chunks/{kv-1acjjqhc.js → persistent-pty-yp2x3t23.js} +4 -4
  281. package/dist/chunks/{kv-yrhqyw5v.js → persistent-pty-yrhqyw5v.js} +1 -1
  282. package/dist/chunks/{kv-z0bkrqjs.js → persistent-pty-z0bkrqjs.js} +1 -1
  283. package/dist/chunks/{kv-fgg9cgek.js → persistent-pty-zbr6jhfd.js} +24 -24
  284. package/dist/chunks/{kv-zeh9ct20.js → persistent-pty-zeh9ct20.js} +2 -2
  285. package/dist/chunks/{kv-magykp64.js → persistent-pty-zepncfka.js} +21 -21
  286. package/dist/chunks/{kv-zr2ceqn5.js → persistent-pty-zr2ceqn5.js} +1 -1
  287. package/dist/chunks/{kv-ygdd69y8.js → persistent-pty-zss1wv0f.js} +56 -56
  288. package/dist/chunks/{kv-gd3be404.js → persistent-pty-zw5b53zw.js} +43 -43
  289. package/dist/chunks/{kv-zxq2ej10.js → persistent-pty-zxq2ej10.js} +1 -1
  290. package/dist/codemode/catalog.js +1 -1
  291. package/dist/codemode/instructions.js +9 -9
  292. package/dist/codemode/tool.js +2 -2
  293. package/dist/command.js +77 -77
  294. package/dist/config/discovery.js +79 -79
  295. package/dist/config/markdown.js +1 -1
  296. package/dist/config/normalize.js +19 -19
  297. package/dist/config/plugin/agent.js +115 -115
  298. package/dist/config/plugin/command.js +207 -207
  299. package/dist/config/plugin/compaction.js +155 -155
  300. package/dist/config/plugin/entry-observer.js +1 -1
  301. package/dist/config/plugin/formatter.js +117 -117
  302. package/dist/config/plugin/image.js +115 -115
  303. package/dist/config/plugin/instruction.js +85 -85
  304. package/dist/config/plugin/location-watcher.js +115 -115
  305. package/dist/config/plugin/mcp.js +124 -124
  306. package/dist/config/plugin/policy.js +114 -114
  307. package/dist/config/plugin/provider.js +113 -113
  308. package/dist/config/plugin/reference.js +117 -117
  309. package/dist/config/plugin/shell.js +116 -116
  310. package/dist/config/plugin/skill-file.js +97 -97
  311. package/dist/config/plugin/skill.js +134 -134
  312. package/dist/config/plugin/snapshot.js +115 -115
  313. package/dist/config/plugin/source.js +111 -111
  314. package/dist/config/plugin/tool-output.js +117 -117
  315. package/dist/config/plugin/websearch.js +113 -113
  316. package/dist/config/plugin/worktree.js +116 -116
  317. package/dist/config/variable.js +3 -3
  318. package/dist/config/watch.js +1 -1
  319. package/dist/config.js +119 -119
  320. package/dist/credential/sql.js +2 -2
  321. package/dist/credential.js +79 -79
  322. package/dist/database/database.js +64 -64
  323. package/dist/database/drizzle/effect-sqlite/driver.js +14 -14
  324. package/dist/database/drizzle/effect-sqlite/index.js +14 -14
  325. package/dist/database/drizzle/effect-sqlite/session.js +11 -11
  326. package/dist/database/drizzle/index.js +15 -15
  327. package/dist/database/drizzle/internal/drizzle-utils.js +1 -1
  328. package/dist/database/drizzle/sqlite-core/effect/count.js +1 -1
  329. package/dist/database/drizzle/sqlite-core/effect/db.js +9 -9
  330. package/dist/database/drizzle/sqlite-core/effect/delete.js +2 -2
  331. package/dist/database/drizzle/sqlite-core/effect/index.js +10 -10
  332. package/dist/database/drizzle/sqlite-core/effect/insert.js +2 -2
  333. package/dist/database/drizzle/sqlite-core/effect/query.js +1 -1
  334. package/dist/database/drizzle/sqlite-core/effect/raw.js +1 -1
  335. package/dist/database/drizzle/sqlite-core/effect/select.js +2 -2
  336. package/dist/database/drizzle/sqlite-core/effect/session.js +10 -10
  337. package/dist/database/drizzle/sqlite-core/effect/update.js +2 -2
  338. package/dist/database/drizzle.js +16 -16
  339. package/dist/database/migration/20260127222353_familiar_lady_ursula.js +1 -1
  340. package/dist/database/migration/20260211171708_add_project_commands.js +1 -1
  341. package/dist/database/migration/20260213144116_wakeful_the_professor.js +1 -1
  342. package/dist/database/migration/20260225215848_workspace.js +1 -1
  343. package/dist/database/migration/20260227213759_add_session_workspace_id.js +1 -1
  344. package/dist/database/migration/20260228203230_blue_harpoon.js +1 -1
  345. package/dist/database/migration/20260303231226_add_workspace_fields.js +1 -1
  346. package/dist/database/migration/20260309230000_move_org_to_state.js +1 -1
  347. package/dist/database/migration/20260312043431_session_message_cursor.js +1 -1
  348. package/dist/database/migration/20260323234822_events.js +1 -1
  349. package/dist/database/migration/20260410174513_workspace-name.js +1 -1
  350. package/dist/database/migration/20260413175956_chief_energizer.js +1 -1
  351. package/dist/database/migration/20260423070820_add_icon_url_override.js +1 -1
  352. package/dist/database/migration/20260427172553_slow_nightmare.js +1 -1
  353. package/dist/database/migration/20260428004200_add_session_path.js +1 -1
  354. package/dist/database/migration/20260501142318_next_venus.js +1 -1
  355. package/dist/database/migration/20260504145000_add_sync_owner.js +1 -1
  356. package/dist/database/migration/20260507164347_add_workspace_time.js +1 -1
  357. package/dist/database/migration/20260510033149_session_usage.js +1 -1
  358. package/dist/database/migration/20260511000411_data_migration_state.js +1 -1
  359. package/dist/database/migration/20260511173437_session-metadata.js +1 -1
  360. package/dist/database/migration/20260601010001_normalize_storage_paths.js +1 -1
  361. package/dist/database/migration/20260601202201_amazing_prowler.js +1 -1
  362. package/dist/database/migration/20260602002951_lowly_union_jack.js +1 -1
  363. package/dist/database/migration/20260602182828_add_project_directories.js +1 -1
  364. package/dist/database/migration/20260603001617_session_message_projection_indexes.js +1 -1
  365. package/dist/database/migration/20260603040000_session_message_projection_order.js +1 -1
  366. package/dist/database/migration/20260603141458_session_input_inbox.js +1 -1
  367. package/dist/database/migration/20260603160727_jittery_ezekiel_stane.js +1 -1
  368. package/dist/database/migration/20260604172448_event_sourced_session_input.js +1 -1
  369. package/dist/database/migration/20260605003541_add_session_context_snapshot.js +1 -1
  370. package/dist/database/migration/20260605042240_add_context_epoch_agent.js +1 -1
  371. package/dist/database/migration/20260611035744_credential.js +1 -1
  372. package/dist/database/migration/20260611192811_lush_chimera.js +1 -1
  373. package/dist/database/migration/20260612174303_project_dir_strategy.js +1 -1
  374. package/dist/database/migration/20260622142730_simplify_session_context_epoch.js +1 -1
  375. package/dist/database/migration/20260622170816_reset_v2_session_state.js +1 -1
  376. package/dist/database/migration/20260622202450_simplify_session_input.js +1 -1
  377. package/dist/database/migration/20260804233008_loose_psylocke.js +1 -1
  378. package/dist/database/migration/20260805200742_import_legacy_credentials.js +1 -1
  379. package/dist/database/migration/20260808023530_workspace_domain.js +1 -1
  380. package/dist/database/migration/20260811161259_execution_claim_attempts.js +1 -1
  381. package/dist/database/migration/20260812181746_session_inbox.js +1 -1
  382. package/dist/database/migration/20260812213948_worktree.js +1 -1
  383. package/dist/database/migration/20260819222447_session_viewed_state.js +1 -1
  384. package/dist/database/migration/20260823191254_nullable_workspace_binding.js +1 -1
  385. package/dist/database/migration.gen.js +47 -47
  386. package/dist/database/migration.js +49 -49
  387. package/dist/database/path.js +2 -2
  388. package/dist/database/schema.gen.js +1 -1
  389. package/dist/database/schema.sql.js +1 -1
  390. package/dist/database/sqlite.bun.js +1 -1
  391. package/dist/database/sqlite.js +1 -1
  392. package/dist/database/sqlite.node.js +1 -1
  393. package/dist/database/sqlite.workerd.js +1 -1
  394. package/dist/database/v1-migration.bun.js +74 -74
  395. package/dist/database/v1-migration.js +1 -1
  396. package/dist/effect/app-node-builder.js +362 -362
  397. package/dist/effect/app-node-platform.js +2 -2
  398. package/dist/effect/keyed-mutex.js +3 -3
  399. package/dist/effect/websocket-constructor.js +1 -1
  400. package/dist/environment/driver.js +1 -1
  401. package/dist/environment/environment.js +88 -88
  402. package/dist/environment/exec-defaults.js +2 -2
  403. package/dist/environment/files.js +1 -1
  404. package/dist/environment/index.js +90 -90
  405. package/dist/environment/local.js +2 -2
  406. package/dist/environment/memory.js +2 -2
  407. package/dist/environment/unavailable.js +1 -1
  408. package/dist/event/sql.js +1 -1
  409. package/dist/event-logger.js +68 -68
  410. package/dist/file-access.js +99 -99
  411. package/dist/file-mutation.js +89 -89
  412. package/dist/file-retention.js +1 -1
  413. package/dist/file.js +1 -1
  414. package/dist/filesystem/fff.bun.js +2 -2
  415. package/dist/filesystem/fff.js +1 -1
  416. package/dist/filesystem/fff.node.js +2 -2
  417. package/dist/filesystem/fff.workerd.js +2 -2
  418. package/dist/filesystem/ignore.js +1 -1
  419. package/dist/filesystem/location-watcher-policy.js +6 -6
  420. package/dist/filesystem/location-watcher.js +220 -220
  421. package/dist/filesystem/protected.js +3 -3
  422. package/dist/filesystem/search.js +99 -99
  423. package/dist/filesystem/watcher-binding.js +3 -3
  424. package/dist/filesystem/watcher.js +15 -15
  425. package/dist/filesystem.js +100 -100
  426. package/dist/form.js +84 -84
  427. package/dist/formatter/builtins.js +4 -4
  428. package/dist/formatter.js +82 -82
  429. package/dist/generate.js +91 -91
  430. package/dist/git.js +7 -7
  431. package/dist/github-copilot/chat/convert-to-openai-compatible-chat-messages.js +1 -1
  432. package/dist/github-copilot/chat/get-response-metadata.js +1 -1
  433. package/dist/github-copilot/chat/map-openai-compatible-finish-reason.js +1 -1
  434. package/dist/github-copilot/chat/openai-compatible-chat-language-model.js +7 -7
  435. package/dist/github-copilot/chat/openai-compatible-chat-options.js +1 -1
  436. package/dist/github-copilot/chat/openai-compatible-prepare-tools.js +1 -1
  437. package/dist/github-copilot/copilot-provider.js +17 -17
  438. package/dist/github-copilot/models.js +3 -3
  439. package/dist/github-copilot/openai-compatible-error.js +1 -1
  440. package/dist/github-copilot/responses/convert-to-openai-responses-input.js +1 -1
  441. package/dist/github-copilot/responses/map-openai-responses-finish-reason.js +1 -1
  442. package/dist/github-copilot/responses/openai-error.js +1 -1
  443. package/dist/github-copilot/responses/openai-responses-language-model.js +10 -10
  444. package/dist/github-copilot/responses/openai-responses-prepare-tools.js +6 -6
  445. package/dist/github-copilot/responses/tool/code-interpreter.js +1 -1
  446. package/dist/github-copilot/responses/tool/file-search.js +1 -1
  447. package/dist/github-copilot/responses/tool/image-generation.js +1 -1
  448. package/dist/github-copilot/responses/tool/web-search-preview.js +1 -1
  449. package/dist/github-copilot/responses/tool/web-search.js +1 -1
  450. package/dist/id/id.js +1 -1
  451. package/dist/image/photon.js +2 -2
  452. package/dist/image.js +6 -6
  453. package/dist/instance/service.js +5 -5
  454. package/dist/instance.js +353 -353
  455. package/dist/instruction-discovery.js +79 -79
  456. package/dist/instructions/builtins.js +82 -82
  457. package/dist/instructions/index.js +3 -3
  458. package/dist/integration/connection.js +1 -1
  459. package/dist/integration.js +86 -86
  460. package/dist/job.js +75 -75
  461. package/dist/kv/sql.js +2 -2
  462. package/dist/kv.js +71 -71
  463. package/dist/location-activity.js +128 -128
  464. package/dist/location-mutation.js +99 -99
  465. package/dist/location-service-map.js +81 -81
  466. package/dist/location-services.js +350 -350
  467. package/dist/location.js +84 -84
  468. package/dist/mcp/client.js +86 -86
  469. package/dist/mcp/index.js +99 -99
  470. package/dist/mcp/instructions.js +122 -122
  471. package/dist/mcp/oauth.js +3 -3
  472. package/dist/mcp/stdio.js +85 -85
  473. package/dist/mime.js +1 -1
  474. package/dist/modal/models.js +3 -3
  475. package/dist/model-resolver.js +86 -86
  476. package/dist/model.js +6 -6
  477. package/dist/models-dev.js +80 -80
  478. package/dist/oauth/page.js +1 -1
  479. package/dist/permission/saved.js +80 -80
  480. package/dist/permission/sql.js +5 -5
  481. package/dist/permission.js +110 -110
  482. package/dist/persistent-pty/binary.bun.js +1 -1
  483. package/dist/persistent-pty/daemon.js +1 -1
  484. package/dist/persistent-pty/index.js +84 -84
  485. package/dist/persistent-pty/pty-binding.js +1 -1
  486. package/dist/persistent-pty.js +73 -73
  487. package/dist/plugin/agent.js +97 -97
  488. package/dist/plugin/command.js +92 -92
  489. package/dist/plugin/hooks.js +5 -5
  490. package/dist/plugin/host.js +213 -213
  491. package/dist/plugin/instance.js +5 -5
  492. package/dist/plugin/internal.js +324 -324
  493. package/dist/plugin/mcp-codemode-exclusion.js +3 -3
  494. package/dist/plugin/models-dev.js +75 -75
  495. package/dist/plugin/module.js +7 -7
  496. package/dist/plugin/optimize.js +2 -2
  497. package/dist/plugin/plan.js +97 -97
  498. package/dist/plugin/promise.js +1 -1
  499. package/dist/plugin/provider/alibaba.js +2 -2
  500. package/dist/plugin/provider/amazon-bedrock.js +2 -2
  501. package/dist/plugin/provider/anthropic.js +2 -2
  502. package/dist/plugin/provider/azure.js +118 -118
  503. package/dist/plugin/provider/cerebras.js +2 -2
  504. package/dist/plugin/provider/cloudflare-ai-gateway.js +117 -117
  505. package/dist/plugin/provider/cloudflare-workers-ai.js +117 -117
  506. package/dist/plugin/provider/cohere.js +2 -2
  507. package/dist/plugin/provider/configured.js +114 -114
  508. package/dist/plugin/provider/digitalocean.js +79 -79
  509. package/dist/plugin/provider/dynamic.js +2 -2
  510. package/dist/plugin/provider/factory.js +1 -1
  511. package/dist/plugin/provider/gateway.js +2 -2
  512. package/dist/plugin/provider/github-copilot.js +80 -80
  513. package/dist/plugin/provider/gitlab.js +3 -3
  514. package/dist/plugin/provider/google-vertex.js +2 -2
  515. package/dist/plugin/provider/kilo.js +2 -2
  516. package/dist/plugin/provider/llmgateway.js +76 -76
  517. package/dist/plugin/provider/lmstudio.js +117 -117
  518. package/dist/plugin/provider/mistral.js +2 -2
  519. package/dist/plugin/provider/modal.js +79 -79
  520. package/dist/plugin/provider/nvidia.js +2 -2
  521. package/dist/plugin/provider/ollama.js +117 -117
  522. package/dist/plugin/provider/openai-compatible.js +1 -1
  523. package/dist/plugin/provider/openai.js +78 -78
  524. package/dist/plugin/provider/opencode.js +79 -79
  525. package/dist/plugin/provider/openrouter.js +3 -3
  526. package/dist/plugin/provider/perplexity.js +2 -2
  527. package/dist/plugin/provider/poe.js +76 -76
  528. package/dist/plugin/provider/sap-ai-core.js +3 -3
  529. package/dist/plugin/provider/sdk-factory.js +1 -1
  530. package/dist/plugin/provider/snowflake-cortex.js +117 -117
  531. package/dist/plugin/provider/venice.js +2 -2
  532. package/dist/plugin/provider/vercel.js +2 -2
  533. package/dist/plugin/provider/vllm.js +115 -115
  534. package/dist/plugin/provider/xai.js +77 -77
  535. package/dist/plugin/provider/zenmux.js +2 -2
  536. package/dist/plugin/provider.js +158 -158
  537. package/dist/plugin/sdk.js +72 -72
  538. package/dist/plugin/service.js +3 -3
  539. package/dist/plugin/skill.js +131 -131
  540. package/dist/plugin/source-directory.js +1 -1
  541. package/dist/plugin/supervisor.js +339 -339
  542. package/dist/plugin/update.js +6 -6
  543. package/dist/plugin/variant.js +4 -4
  544. package/dist/plugin/vcs/git.js +82 -82
  545. package/dist/plugin/vcs/hg.js +82 -82
  546. package/dist/plugin/warming.js +112 -112
  547. package/dist/plugin/websearch/exa.js +5 -5
  548. package/dist/plugin/websearch/firecrawl.js +8 -8
  549. package/dist/plugin/websearch/index.js +8 -8
  550. package/dist/plugin/websearch/mcp.js +2 -2
  551. package/dist/plugin/websearch/parallel.js +6 -6
  552. package/dist/plugin/websearch/tavily.js +6 -6
  553. package/dist/plugin.js +222 -222
  554. package/dist/project/schema.js +8 -8
  555. package/dist/project/sql.js +4 -4
  556. package/dist/project.js +85 -85
  557. package/dist/provider.js +5 -5
  558. package/dist/pty/protocol.js +1 -1
  559. package/dist/pty/schema.js +3 -3
  560. package/dist/pty/ticket.js +1 -1
  561. package/dist/pty.js +94 -94
  562. package/dist/reference/instructions.js +84 -84
  563. package/dist/reference.js +82 -82
  564. package/dist/repository-cache.js +76 -76
  565. package/dist/repository.js +1 -1
  566. package/dist/ripgrep/binary.js +2 -2
  567. package/dist/ripgrep.js +91 -91
  568. package/dist/rpc.js +81 -81
  569. package/dist/schema.js +1 -1
  570. package/dist/session/command.js +72 -72
  571. package/dist/session/compaction.js +127 -127
  572. package/dist/session/context.js +147 -147
  573. package/dist/session/environment.js +5 -5
  574. package/dist/session/error.js +7 -7
  575. package/dist/session/event.js +1 -1
  576. package/dist/session/execution/restart.js +216 -216
  577. package/dist/session/execution.js +122 -122
  578. package/dist/session/generate.js +148 -148
  579. package/dist/session/history.js +15 -15
  580. package/dist/session/inbox.js +86 -86
  581. package/dist/session/info.js +3 -3
  582. package/dist/session/instruction-entry.js +77 -77
  583. package/dist/session/instruction-state.js +8 -8
  584. package/dist/session/instructions.js +92 -92
  585. package/dist/session/message-updater.js +4 -4
  586. package/dist/session/message.js +1 -1
  587. package/dist/session/model-request.js +113 -113
  588. package/dist/session/model-transport.js +9 -9
  589. package/dist/session/move.js +126 -126
  590. package/dist/session/projector.js +84 -84
  591. package/dist/session/prompt.js +100 -100
  592. package/dist/session/provider-context.js +3 -3
  593. package/dist/session/revert.js +85 -85
  594. package/dist/session/run-coordinator.js +3 -3
  595. package/dist/session/runner/index.js +3 -3
  596. package/dist/session/runner/llm.js +225 -225
  597. package/dist/session/runner/max-steps.js +1 -1
  598. package/dist/session/runner/model.js +86 -86
  599. package/dist/session/runner/publish-llm-event.js +3 -3
  600. package/dist/session/runner/retry.js +110 -110
  601. package/dist/session/runner/step.js +119 -119
  602. package/dist/session/runner/to-llm-message.js +2 -2
  603. package/dist/session/schema.js +5 -5
  604. package/dist/session/session.js +169 -169
  605. package/dist/session/shell.js +131 -131
  606. package/dist/session/skill.js +98 -98
  607. package/dist/session/sql.js +5 -5
  608. package/dist/session/stats.js +71 -71
  609. package/dist/session/store.js +85 -85
  610. package/dist/session/subagent-completion.js +1 -1
  611. package/dist/session/subagent-job.js +205 -205
  612. package/dist/session/system-prompt.js +1 -1
  613. package/dist/session/title.js +149 -149
  614. package/dist/session/to-session-error.js +107 -107
  615. package/dist/session/transfer.js +212 -212
  616. package/dist/session/usage.js +1 -1
  617. package/dist/session.js +211 -211
  618. package/dist/shell/parse.js +6 -6
  619. package/dist/shell/result.js +1 -1
  620. package/dist/shell/scan.js +1 -1
  621. package/dist/shell/select.js +11 -11
  622. package/dist/shell.js +133 -133
  623. package/dist/skill/discovery.js +6 -6
  624. package/dist/skill/instructions.js +102 -102
  625. package/dist/skill.js +103 -103
  626. package/dist/snapshot.js +82 -82
  627. package/dist/state.js +1 -1
  628. package/dist/tool/html-markdown.js +1 -1
  629. package/dist/tool/http-body.js +1 -1
  630. package/dist/tool/mcp.js +119 -119
  631. package/dist/tool/plugin/edit.js +115 -115
  632. package/dist/tool/plugin/file-diff.js +1 -1
  633. package/dist/tool/plugin/glob.js +120 -120
  634. package/dist/tool/plugin/grep.js +118 -118
  635. package/dist/tool/plugin/opencode.js +3 -3
  636. package/dist/tool/plugin/patch.js +115 -115
  637. package/dist/tool/plugin/question.js +98 -98
  638. package/dist/tool/plugin/read.js +121 -121
  639. package/dist/tool/plugin/shell.js +210 -210
  640. package/dist/tool/plugin/skill.js +106 -106
  641. package/dist/tool/plugin/subagent.js +214 -214
  642. package/dist/tool/plugin/webfetch.js +105 -105
  643. package/dist/tool/plugin/websearch.js +107 -107
  644. package/dist/tool/plugin/write.js +117 -117
  645. package/dist/tool/read-filesystem.js +96 -96
  646. package/dist/tool/runtime.js +1 -1
  647. package/dist/tool-output.js +8 -8
  648. package/dist/tool.js +11 -11
  649. package/dist/types/session/model-request.d.ts +3 -3
  650. package/dist/util/error-summary.js +1 -1
  651. package/dist/util/error.js +1 -1
  652. package/dist/util/iife.js +1 -1
  653. package/dist/util/lazy.js +1 -1
  654. package/dist/util/slug.js +1 -1
  655. package/dist/util/token.js +1 -1
  656. package/dist/util/which.js +1 -1
  657. package/dist/util/wildcard.js +1 -1
  658. package/dist/v1/config/agent.js +7 -7
  659. package/dist/v1/config/attachment.js +4 -4
  660. package/dist/v1/config/command.js +3 -3
  661. package/dist/v1/config/config.js +16 -16
  662. package/dist/v1/config/error.js +4 -4
  663. package/dist/v1/config/formatter.js +3 -3
  664. package/dist/v1/config/layout.js +1 -1
  665. package/dist/v1/config/lsp.js +5 -5
  666. package/dist/v1/config/mcp.js +4 -4
  667. package/dist/v1/config/migrate.js +4 -4
  668. package/dist/v1/config/permission.js +7 -7
  669. package/dist/v1/config/plugin.js +3 -3
  670. package/dist/v1/config/provider-options.js +1 -1
  671. package/dist/v1/config/provider.js +4 -4
  672. package/dist/v1/config/server.js +2 -2
  673. package/dist/v1/config/skills.js +3 -3
  674. package/dist/v1/permission.js +1 -1
  675. package/dist/vcs/patch.js +1 -1
  676. package/dist/vcs.js +85 -85
  677. package/dist/websearch.js +82 -82
  678. package/dist/wellknown/plugin.js +72 -72
  679. package/dist/wellknown.js +77 -77
  680. package/dist/workspace/driver.js +5 -5
  681. package/dist/workspace/sql.js +1 -1
  682. package/dist/workspace.js +78 -78
  683. package/dist/worktree/directory.js +2 -2
  684. package/dist/worktree/git.js +5 -5
  685. package/dist/worktree/refresh.js +340 -340
  686. package/dist/worktree/sql.js +5 -5
  687. package/dist/worktree.js +89 -89
  688. package/package.json +8 -8
  689. package/dist/chunks/kv-1bx994hr.js +0 -22
  690. package/dist/chunks/kv-9sh4wc5j.js +0 -18
  691. package/dist/chunks/kv-hr9dp009.js +0 -4
  692. package/dist/chunks/kv-jjgfjw71.js +0 -247
  693. package/dist/chunks/kv-xgzxgv6a.js +0 -462
  694. /package/dist/chunks/{kv-0qkdqm5v.js → persistent-pty-0qkdqm5v.js} +0 -0
  695. /package/dist/chunks/{kv-0zkw76rk.js → persistent-pty-0zkw76rk.js} +0 -0
  696. /package/dist/chunks/{kv-17cy0kzp.js → persistent-pty-17cy0kzp.js} +0 -0
  697. /package/dist/chunks/{kv-1cnp2v09.js → persistent-pty-1cnp2v09.js} +0 -0
  698. /package/dist/chunks/{kv-1kg9ymc8.js → persistent-pty-1kg9ymc8.js} +0 -0
  699. /package/dist/chunks/{kv-2710q6r3.js → persistent-pty-2710q6r3.js} +0 -0
  700. /package/dist/chunks/{kv-2axfhc9x.js → persistent-pty-2axfhc9x.js} +0 -0
  701. /package/dist/chunks/{kv-2c3vjs8z.js → persistent-pty-2c3vjs8z.js} +0 -0
  702. /package/dist/chunks/{kv-359p4xyc.js → persistent-pty-359p4xyc.js} +0 -0
  703. /package/dist/chunks/{kv-3asan66x.js → persistent-pty-3asan66x.js} +0 -0
  704. /package/dist/chunks/{kv-3v8g72cx.js → persistent-pty-3v8g72cx.js} +0 -0
  705. /package/dist/chunks/{kv-3w5fmr99.js → persistent-pty-3w5fmr99.js} +0 -0
  706. /package/dist/chunks/{kv-3wcehsnq.js → persistent-pty-3wcehsnq.js} +0 -0
  707. /package/dist/chunks/{kv-43n2bw4t.js → persistent-pty-43n2bw4t.js} +0 -0
  708. /package/dist/chunks/{kv-4knz6hnm.js → persistent-pty-4knz6hnm.js} +0 -0
  709. /package/dist/chunks/{kv-4vcrnpx2.js → persistent-pty-4vcrnpx2.js} +0 -0
  710. /package/dist/chunks/{kv-4y7fprxs.js → persistent-pty-4y7fprxs.js} +0 -0
  711. /package/dist/chunks/{kv-53557ph1.js → persistent-pty-53557ph1.js} +0 -0
  712. /package/dist/chunks/{kv-550bvhaj.js → persistent-pty-550bvhaj.js} +0 -0
  713. /package/dist/chunks/{kv-6prwharc.js → persistent-pty-6prwharc.js} +0 -0
  714. /package/dist/chunks/{kv-7akdwqpd.js → persistent-pty-7akdwqpd.js} +0 -0
  715. /package/dist/chunks/{kv-7m9af43g.js → persistent-pty-7m9af43g.js} +0 -0
  716. /package/dist/chunks/{kv-822emrt2.js → persistent-pty-822emrt2.js} +0 -0
  717. /package/dist/chunks/{kv-88xbtdfr.js → persistent-pty-88xbtdfr.js} +0 -0
  718. /package/dist/chunks/{kv-8n3pysct.js → persistent-pty-8n3pysct.js} +0 -0
  719. /package/dist/chunks/{kv-922hggd3.js → persistent-pty-922hggd3.js} +0 -0
  720. /package/dist/chunks/{kv-9a4afbnw.js → persistent-pty-9a4afbnw.js} +0 -0
  721. /package/dist/chunks/{kv-9rqn6x4v.js → persistent-pty-9rqn6x4v.js} +0 -0
  722. /package/dist/chunks/{kv-a6k6eb26.js → persistent-pty-a6k6eb26.js} +0 -0
  723. /package/dist/chunks/{kv-af5trqkr.js → persistent-pty-af5trqkr.js} +0 -0
  724. /package/dist/chunks/{kv-afrmfg78.js → persistent-pty-afrmfg78.js} +0 -0
  725. /package/dist/chunks/{kv-aqzs7mqg.js → persistent-pty-aqzs7mqg.js} +0 -0
  726. /package/dist/chunks/{kv-atq7p7m5.js → persistent-pty-atq7p7m5.js} +0 -0
  727. /package/dist/chunks/{kv-bkyjaxrp.js → persistent-pty-bkyjaxrp.js} +0 -0
  728. /package/dist/chunks/{kv-bmr6ed5q.js → persistent-pty-bmr6ed5q.js} +0 -0
  729. /package/dist/chunks/{kv-cf4snx6d.js → persistent-pty-cf4snx6d.js} +0 -0
  730. /package/dist/chunks/{kv-cvy3z8tj.js → persistent-pty-cvy3z8tj.js} +0 -0
  731. /package/dist/chunks/{kv-d9fn303g.js → persistent-pty-d9fn303g.js} +0 -0
  732. /package/dist/chunks/{kv-d9jj8t3e.js → persistent-pty-d9jj8t3e.js} +0 -0
  733. /package/dist/chunks/{kv-dajrwvna.js → persistent-pty-dajrwvna.js} +0 -0
  734. /package/dist/chunks/{kv-dap0rakb.js → persistent-pty-dap0rakb.js} +0 -0
  735. /package/dist/chunks/{kv-df08tz66.js → persistent-pty-df08tz66.js} +0 -0
  736. /package/dist/chunks/{kv-dy18nga0.js → persistent-pty-dy18nga0.js} +0 -0
  737. /package/dist/chunks/{kv-e5kj55wp.js → persistent-pty-e5kj55wp.js} +0 -0
  738. /package/dist/chunks/{kv-e73j6tqm.js → persistent-pty-e73j6tqm.js} +0 -0
  739. /package/dist/chunks/{kv-ec1grn59.js → persistent-pty-ec1grn59.js} +0 -0
  740. /package/dist/chunks/{kv-eh3zwz77.js → persistent-pty-eh3zwz77.js} +0 -0
  741. /package/dist/chunks/{kv-emrn6kk6.js → persistent-pty-emrn6kk6.js} +0 -0
  742. /package/dist/chunks/{kv-f0mxakyp.js → persistent-pty-f0mxakyp.js} +0 -0
  743. /package/dist/chunks/{kv-f6n9ztr4.js → persistent-pty-f6n9ztr4.js} +0 -0
  744. /package/dist/chunks/{kv-faypxj3z.js → persistent-pty-faypxj3z.js} +0 -0
  745. /package/dist/chunks/{kv-fd410y7t.js → persistent-pty-fd410y7t.js} +0 -0
  746. /package/dist/chunks/{kv-fxgpk5d8.js → persistent-pty-fxgpk5d8.js} +0 -0
  747. /package/dist/chunks/{kv-g4wezp1m.js → persistent-pty-g4wezp1m.js} +0 -0
  748. /package/dist/chunks/{kv-g86h250q.js → persistent-pty-g86h250q.js} +0 -0
  749. /package/dist/chunks/{kv-gebd4c9n.js → persistent-pty-gebd4c9n.js} +0 -0
  750. /package/dist/chunks/{kv-gftt206x.js → persistent-pty-gftt206x.js} +0 -0
  751. /package/dist/chunks/{kv-hjbc5kem.js → persistent-pty-hjbc5kem.js} +0 -0
  752. /package/dist/chunks/{kv-hk9envan.js → persistent-pty-hk9envan.js} +0 -0
  753. /package/dist/chunks/{kv-hrnqkpcd.js → persistent-pty-hrnqkpcd.js} +0 -0
  754. /package/dist/chunks/{kv-j2ntwpah.js → persistent-pty-j2ntwpah.js} +0 -0
  755. /package/dist/chunks/{kv-j5zkgpj8.js → persistent-pty-j5zkgpj8.js} +0 -0
  756. /package/dist/chunks/{kv-jr7sbwjy.js → persistent-pty-jr7sbwjy.js} +0 -0
  757. /package/dist/chunks/{kv-jwfs4k6c.js → persistent-pty-jwfs4k6c.js} +0 -0
  758. /package/dist/chunks/{kv-jzg6c2d5.js → persistent-pty-jzg6c2d5.js} +0 -0
  759. /package/dist/chunks/{kv-mp448xyj.js → persistent-pty-mp448xyj.js} +0 -0
  760. /package/dist/chunks/{kv-msx8hqn2.js → persistent-pty-msx8hqn2.js} +0 -0
  761. /package/dist/chunks/{kv-n05xt0ee.js → persistent-pty-n05xt0ee.js} +0 -0
  762. /package/dist/chunks/{kv-n3j8tn72.js → persistent-pty-n3j8tn72.js} +0 -0
  763. /package/dist/chunks/{kv-njntx4h6.js → persistent-pty-njntx4h6.js} +0 -0
  764. /package/dist/chunks/{kv-q3sfg36h.js → persistent-pty-q3sfg36h.js} +0 -0
  765. /package/dist/chunks/{kv-q74kybfr.js → persistent-pty-q74kybfr.js} +0 -0
  766. /package/dist/chunks/{kv-qaymkmh1.js → persistent-pty-qaymkmh1.js} +0 -0
  767. /package/dist/chunks/{kv-qb87gjwd.js → persistent-pty-qb87gjwd.js} +0 -0
  768. /package/dist/chunks/{kv-qfa1cgps.js → persistent-pty-qfa1cgps.js} +0 -0
  769. /package/dist/chunks/{kv-qrg20bc0.js → persistent-pty-qrg20bc0.js} +0 -0
  770. /package/dist/chunks/{kv-rcb2kzg1.js → persistent-pty-rcb2kzg1.js} +0 -0
  771. /package/dist/chunks/{kv-sdp7kfr6.js → persistent-pty-sdp7kfr6.js} +0 -0
  772. /package/dist/chunks/{kv-sk3qaz4a.js → persistent-pty-sk3qaz4a.js} +0 -0
  773. /package/dist/chunks/{kv-ssg3fenm.js → persistent-pty-ssg3fenm.js} +0 -0
  774. /package/dist/chunks/{kv-twg0f83k.js → persistent-pty-twg0f83k.js} +0 -0
  775. /package/dist/chunks/{kv-w803qqfp.js → persistent-pty-w803qqfp.js} +0 -0
  776. /package/dist/chunks/{kv-wer8tq1h.js → persistent-pty-wer8tq1h.js} +0 -0
  777. /package/dist/chunks/{kv-wtztk69x.js → persistent-pty-wtztk69x.js} +0 -0
  778. /package/dist/chunks/{kv-x0ckcb58.js → persistent-pty-x0ckcb58.js} +0 -0
  779. /package/dist/chunks/{kv-x61499pn.js → persistent-pty-x61499pn.js} +0 -0
  780. /package/dist/chunks/{kv-y44na4kk.js → persistent-pty-y44na4kk.js} +0 -0
  781. /package/dist/chunks/{kv-y8cydn3q.js → persistent-pty-y8cydn3q.js} +0 -0
  782. /package/dist/chunks/{kv-ygaqb7jw.js → persistent-pty-ygaqb7jw.js} +0 -0
  783. /package/dist/chunks/{kv-ym463w8f.js → persistent-pty-ym463w8f.js} +0 -0
  784. /package/dist/chunks/{kv-z9919s4g.js → persistent-pty-z9919s4g.js} +0 -0
@@ -1,50 +1,50 @@
1
1
  import {
2
- Service51
3
- } from "./kv-fgg9cgek.js";
2
+ Service71
3
+ } from "./persistent-pty-zbr6jhfd.js";
4
4
  import {
5
5
  AbsolutePath2
6
- } from "./kv-922hggd3.js";
6
+ } from "./persistent-pty-922hggd3.js";
7
7
  import {
8
- Service70
9
- } from "./kv-adg3jwd2.js";
8
+ Service76
9
+ } from "./persistent-pty-xsgnaeym.js";
10
10
  import {
11
- Service50
12
- } from "./kv-18n0ze07.js";
11
+ Service70
12
+ } from "./persistent-pty-p9e7n5cp.js";
13
13
  import {
14
14
  DirectorySource2,
15
15
  UrlSource2,
16
16
  Source4
17
- } from "./kv-f6ne2qfq.js";
17
+ } from "./persistent-pty-tge42xv9.js";
18
18
  import {
19
- Service8
20
- } from "./kv-gsx0ryk4.js";
19
+ Service9
20
+ } from "./persistent-pty-m86bnw2c.js";
21
21
  import {
22
22
  parse2
23
- } from "./kv-0w41f5b9.js";
23
+ } from "./persistent-pty-qz2hjw9m.js";
24
24
  import {
25
25
  __export
26
- } from "./kv-9rqn6x4v.js";
26
+ } from "./persistent-pty-9rqn6x4v.js";
27
27
 
28
28
  // src/config/plugin/skill.ts
29
29
  var exports_skill2 = {};
30
30
  __export(exports_skill2, {
31
31
  ConfigSkillPlugin: () => exports_skill2,
32
- Plugin: () => Plugin27
32
+ Plugin: () => Plugin22
33
33
  });
34
34
  import { define } from "@opencode/plugin/effect/plugin";
35
35
  import { FSUtil } from "@opencode/util/fs-util";
36
36
  import { Global } from "@opencode/util/global";
37
37
  import path from "path";
38
38
  import { Effect, FiberMap, PubSub, Semaphore, Stream } from "effect";
39
- var Plugin27 = define({
39
+ var Plugin22 = define({
40
40
  id: "opencode.config.skill",
41
41
  effect: Effect.fn(function* (ctx) {
42
- const config = yield* Service50;
43
- const discovery = yield* Service8;
42
+ const config = yield* Service70;
43
+ const discovery = yield* Service9;
44
44
  const fs = yield* FSUtil.Service;
45
45
  const global = yield* Global.Service;
46
- const location = yield* Service70;
47
- const watcher = yield* Service51;
46
+ const location = yield* Service76;
47
+ const watcher = yield* Service71;
48
48
  const loaded = {
49
49
  entries: yield* config.entries(),
50
50
  skills: []
@@ -181,4 +181,4 @@ var Plugin27 = define({
181
181
  })
182
182
  });
183
183
 
184
- export { Plugin27, exports_skill2 };
184
+ export { Plugin22, exports_skill2 };
@@ -1,34 +1,34 @@
1
1
  import {
2
2
  Service80
3
- } from "./kv-mxdc1gxg.js";
3
+ } from "./persistent-pty-h322wpay.js";
4
4
  import {
5
5
  Service79
6
- } from "./kv-vrbphxwj.js";
6
+ } from "./persistent-pty-stesey4a.js";
7
7
  import {
8
- Service42
9
- } from "./kv-7n6vh58r.js";
8
+ Service33
9
+ } from "./persistent-pty-b99w0g26.js";
10
10
  import {
11
11
  RelativePath2
12
- } from "./kv-922hggd3.js";
12
+ } from "./persistent-pty-922hggd3.js";
13
13
  import {
14
14
  ID4,
15
- Service48
16
- } from "./kv-gzdthbxm.js";
15
+ Service46
16
+ } from "./persistent-pty-g6986w1q.js";
17
17
  import {
18
18
  SessionEvent2
19
- } from "./kv-ec1grn59.js";
19
+ } from "./persistent-pty-ec1grn59.js";
20
20
  import {
21
21
  SessionMessage2
22
- } from "./kv-gftt206x.js";
22
+ } from "./persistent-pty-gftt206x.js";
23
23
  import {
24
24
  MessageNotFoundError2
25
- } from "./kv-dhp9c77z.js";
25
+ } from "./persistent-pty-1bvxxf6d.js";
26
26
  import {
27
27
  SessionMessageTable2
28
- } from "./kv-a1bz86dw.js";
28
+ } from "./persistent-pty-a1bz86dw.js";
29
29
  import {
30
30
  __export
31
- } from "./kv-9rqn6x4v.js";
31
+ } from "./persistent-pty-9rqn6x4v.js";
32
32
 
33
33
  // src/session/revert.ts
34
34
  var exports_revert = {};
@@ -42,11 +42,11 @@ __export(exports_revert, {
42
42
  import { and, asc, eq, gt } from "drizzle-orm";
43
43
  import { Effect, Schema } from "effect";
44
44
  var stage2 = Effect.fn("SessionRevert.stage")(function* (input) {
45
- const instances = yield* Service42;
45
+ const instances = yield* Service33;
46
46
  const database = yield* Service80;
47
47
  const bus = yield* Service79;
48
48
  return yield* Effect.gen(function* () {
49
- const snapshot = yield* Service48;
49
+ const snapshot = yield* Service46;
50
50
  const original = input.session.revert?.snapshot ? ID4.make(input.session.revert.snapshot) : yield* snapshot.capture();
51
51
  const next = yield* plan(database.db, { sessionID: input.session.id, messageID: input.messageID });
52
52
  const restore = new Map;
@@ -74,10 +74,10 @@ var stage2 = Effect.fn("SessionRevert.stage")(function* (input) {
74
74
  }).pipe(instances.provide(input.session));
75
75
  });
76
76
  var clear2 = Effect.fn("SessionRevert.clear")(function* (session) {
77
- const instances = yield* Service42;
77
+ const instances = yield* Service33;
78
78
  const bus = yield* Service79;
79
79
  yield* Effect.gen(function* () {
80
- const snapshot = yield* Service48;
80
+ const snapshot = yield* Service46;
81
81
  if (!session.revert)
82
82
  return;
83
83
  const original = session.revert.snapshot ? ID4.make(session.revert.snapshot) : undefined;
@@ -1,66 +1,66 @@
1
1
  import {
2
- Service78
3
- } from "./kv-q3scgwqb.js";
2
+ Service63
3
+ } from "./persistent-pty-6feaep00.js";
4
4
  import {
5
- Service53
6
- } from "./kv-htnta4fq.js";
5
+ Service65
6
+ } from "./persistent-pty-emyaygjm.js";
7
7
  import {
8
- ID3,
8
+ ID6,
9
9
  Result2,
10
10
  ProviderRequiredError2,
11
11
  DisabledError2,
12
12
  RequestError2,
13
- Service18
14
- } from "./kv-hca6cb89.js";
13
+ Service50
14
+ } from "./persistent-pty-warydmh4.js";
15
15
  import {
16
16
  __export
17
- } from "./kv-9rqn6x4v.js";
17
+ } from "./persistent-pty-9rqn6x4v.js";
18
18
 
19
19
  // src/tool/plugin/websearch.ts
20
20
  var exports_websearch = {};
21
21
  __export(exports_websearch, {
22
- Input: () => Input3,
22
+ Input: () => Input8,
23
23
  NO_RESULTS: () => NO_RESULTS2,
24
- Plugin: () => Plugin3,
24
+ Plugin: () => Plugin9,
25
25
  WebSearchTool: () => exports_websearch,
26
- description: () => description3,
27
- name: () => name3
26
+ description: () => description4,
27
+ name: () => name8
28
28
  });
29
29
  import { ToolFailure } from "@opencode/ai";
30
30
  import { Effect, Schema, Semaphore } from "effect";
31
31
  import { HttpClientError } from "effect/unstable/http";
32
- var name3 = "websearch";
32
+ var name8 = "websearch";
33
33
  var NO_RESULTS2 = "No search results found. Please try a different query.";
34
34
  var providerSelectionLock = Semaphore.makeUnsafe(1);
35
35
  var httpErrors = new Map([
36
36
  [429, "Web search rate limited (HTTP 429)"],
37
37
  [401, "Web search authentication failed (HTTP 401)"]
38
38
  ]);
39
- var description3 = `Search the web using the user's selected search integration. Use this for current information beyond knowledge cutoff.
39
+ var description4 = `Search the web using the user's selected search integration. Use this for current information beyond knowledge cutoff.
40
40
 
41
41
  The current year is ${new Date().getFullYear()}. Use this year when searching for recent information or current events.`;
42
- var Input3 = Schema.Struct({
42
+ var Input8 = Schema.Struct({
43
43
  query: Schema.String.annotate({ description: "Websearch query" })
44
44
  });
45
45
  var Output = Schema.Struct({
46
- provider: ID3,
46
+ provider: ID6,
47
47
  results: Schema.Array(Result2)
48
48
  });
49
- var Plugin3 = {
49
+ var Plugin9 = {
50
50
  id: "opencode.tool.websearch",
51
51
  effect: Effect.fn("WebSearchTool.Plugin")(function* (ctx) {
52
- const permission = yield* Service53;
53
- const forms = yield* Service78;
54
- const websearch = yield* Service18;
52
+ const permission = yield* Service65;
53
+ const forms = yield* Service63;
54
+ const websearch = yield* Service50;
55
55
  yield* ctx.tool.transform((editor) => editor.add({
56
- name: name3,
56
+ name: name8,
57
57
  options: { codemode: false },
58
- description: description3,
59
- input: Input3,
58
+ description: description4,
59
+ input: Input8,
60
60
  output: Output,
61
61
  execute: (input, context) => Effect.gen(function* () {
62
62
  yield* permission.assert({
63
- action: name3,
63
+ action: name8,
64
64
  resources: [input.query],
65
65
  save: ["*"],
66
66
  metadata: input,
@@ -176,9 +176,9 @@ ${result.content}` : ""}`;
176
176
  yield* ctx.session.hook("context", (event) => Effect.gen(function* () {
177
177
  const disabled = yield* websearch.default().pipe(Effect.as(false), Effect.catchTag("WebSearch.Disabled", () => Effect.succeed(true)));
178
178
  if (disabled)
179
- delete event.tools[name3];
179
+ delete event.tools[name8];
180
180
  }));
181
181
  })
182
182
  };
183
183
 
184
- export { name3, NO_RESULTS2, description3, Input3, Plugin3, exports_websearch };
184
+ export { name8, NO_RESULTS2, description4, Input8, Plugin9, exports_websearch };
@@ -1,31 +1,31 @@
1
1
  import {
2
- ID8
3
- } from "./kv-n1a1eppk.js";
2
+ ID13
3
+ } from "./persistent-pty-bkxbsem7.js";
4
4
  import {
5
5
  AbsolutePath2
6
- } from "./kv-922hggd3.js";
6
+ } from "./persistent-pty-922hggd3.js";
7
7
  import {
8
- Info14
9
- } from "./kv-pb1eahw5.js";
8
+ Info26
9
+ } from "./persistent-pty-fg7rbsd2.js";
10
10
  import {
11
11
  migrateAgent2
12
- } from "./kv-4da4ndpv.js";
12
+ } from "./persistent-pty-6fdj6kdr.js";
13
13
  import {
14
14
  latest2,
15
- Service50
16
- } from "./kv-18n0ze07.js";
15
+ Service70
16
+ } from "./persistent-pty-p9e7n5cp.js";
17
17
  import {
18
18
  parseOption2
19
- } from "./kv-5daktx2q.js";
19
+ } from "./persistent-pty-5daktx2q.js";
20
20
  import {
21
21
  __export
22
- } from "./kv-9rqn6x4v.js";
22
+ } from "./persistent-pty-9rqn6x4v.js";
23
23
 
24
24
  // src/config/plugin/agent.ts
25
25
  var exports_agent = {};
26
26
  __export(exports_agent, {
27
27
  ConfigAgentPlugin: () => exports_agent,
28
- Plugin: () => Plugin22
28
+ Plugin: () => Plugin29
29
29
  });
30
30
  import { define } from "@opencode/plugin/effect/plugin";
31
31
  import { Document, Info } from "@opencode/schema/config";
@@ -40,14 +40,14 @@ var legacySources = [
40
40
  ];
41
41
  var sourceDirectories = ["agent", "agents", "mode", "modes"];
42
42
  var decodeAgent = Schema.decodeUnknownOption(ConfigAgent.Info);
43
- var decodeLegacyAgent = Schema.decodeUnknownOption(Info14);
43
+ var decodeLegacyAgent = Schema.decodeUnknownOption(Info26);
44
44
  var decodeConfig = Schema.decodeUnknownOption(Info);
45
45
  var pathActions = ["external_directory", "read", "edit"];
46
46
  var agentKeys = new Set(["variant", ...Object.keys(ConfigAgent.Info.fields)]);
47
- var Plugin22 = define({
47
+ var Plugin29 = define({
48
48
  id: "opencode.config.agent",
49
49
  effect: Effect.fn(function* (ctx) {
50
- const config = yield* Service50;
50
+ const config = yield* Service70;
51
51
  const fs = yield* FSUtil.Service;
52
52
  const global = yield* Global.Service;
53
53
  const loadEntry = Effect.fnUntraced(function* (entry) {
@@ -76,13 +76,13 @@ var Plugin22 = define({
76
76
  const permissions = expandPermissions(loaded.documents.flatMap((document) => document.info.permissions ?? []), global.home);
77
77
  const configuredDefault = latest2(loaded.documents, "default_agent");
78
78
  if (configuredDefault !== undefined)
79
- editor.default(ID8.make(configuredDefault));
79
+ editor.default(ID13.make(configuredDefault));
80
80
  for (const current of editor.list()) {
81
81
  editor.update(current.id, (agent) => agent.permissions.push(...permissions));
82
82
  }
83
83
  for (const document of loaded.documents) {
84
84
  for (const [id, item] of Object.entries(document.info.agents ?? {})) {
85
- const agentID = ID8.make(id);
85
+ const agentID = ID13.make(id);
86
86
  if (item.disabled) {
87
87
  editor.remove(agentID);
88
88
  continue;
@@ -161,4 +161,4 @@ function decode(file, content) {
161
161
  return new Document({ type: "document", path: AbsolutePath2.make(file.filepath), info });
162
162
  }
163
163
 
164
- export { Plugin22, exports_agent };
164
+ export { Plugin29, exports_agent };
@@ -1,13 +1,13 @@
1
1
  import {
2
2
  directoryColumn2,
3
3
  pathColumn2
4
- } from "./kv-6msgmcgs.js";
4
+ } from "./persistent-pty-6msgmcgs.js";
5
5
  import {
6
6
  Timestamps2
7
- } from "./kv-qfa1cgps.js";
7
+ } from "./persistent-pty-qfa1cgps.js";
8
8
  import {
9
9
  ProjectTable2
10
- } from "./kv-8p4f9s12.js";
10
+ } from "./persistent-pty-8p4f9s12.js";
11
11
 
12
12
  // src/session/sql.ts
13
13
  import { sqliteTable, text, integer, index, primaryKey, real, uniqueIndex } from "drizzle-orm/sqlite-core";
@@ -1,15 +1,15 @@
1
1
  import {
2
2
  __export
3
- } from "./kv-9rqn6x4v.js";
3
+ } from "./persistent-pty-9rqn6x4v.js";
4
4
 
5
5
  // src/v1/config/command.ts
6
6
  var exports_command5 = {};
7
7
  __export(exports_command5, {
8
8
  ConfigCommandV1: () => exports_command5,
9
- Info: () => Info11
9
+ Info: () => Info20
10
10
  });
11
11
  import { Schema } from "effect";
12
- var Info11 = Schema.Struct({
12
+ var Info20 = Schema.Struct({
13
13
  template: Schema.String,
14
14
  description: Schema.optional(Schema.String),
15
15
  agent: Schema.optional(Schema.String),
@@ -18,4 +18,4 @@ var Info11 = Schema.Struct({
18
18
  subtask: Schema.optional(Schema.Boolean)
19
19
  });
20
20
 
21
- export { Info11, exports_command5 };
21
+ export { Info20, exports_command5 };
@@ -2,10 +2,10 @@ import {
2
2
  NotFound2,
3
3
  WrongKind2,
4
4
  Failed2
5
- } from "./kv-2a5m3afh.js";
5
+ } from "./persistent-pty-2a5m3afh.js";
6
6
  import {
7
7
  __export
8
- } from "./kv-9rqn6x4v.js";
8
+ } from "./persistent-pty-9rqn6x4v.js";
9
9
 
10
10
  // src/environment/memory.ts
11
11
  var exports_memory = {};
@@ -1,64 +1,65 @@
1
1
  import {
2
2
  Service80,
3
3
  node85
4
- } from "./kv-mxdc1gxg.js";
4
+ } from "./persistent-pty-h322wpay.js";
5
5
  import {
6
6
  Service79,
7
7
  node84
8
- } from "./kv-vrbphxwj.js";
8
+ } from "./persistent-pty-stesey4a.js";
9
9
  import {
10
10
  llmClient2
11
- } from "./kv-5t3nmthw.js";
11
+ } from "./persistent-pty-5t3nmthw.js";
12
12
  import {
13
13
  SessionEvent2
14
- } from "./kv-ec1grn59.js";
14
+ } from "./persistent-pty-ec1grn59.js";
15
15
  import {
16
16
  provenance2,
17
17
  compatible2,
18
18
  isCheckpoint2,
19
19
  encode2
20
- } from "./kv-msq0jde0.js";
20
+ } from "./persistent-pty-hrndf12w.js";
21
21
  import {
22
- load3
23
- } from "./kv-xqvb89x1.js";
22
+ load2
23
+ } from "./persistent-pty-akt3csds.js";
24
24
  import {
25
25
  create3
26
- } from "./kv-kg06axw8.js";
26
+ } from "./persistent-pty-kg06axw8.js";
27
27
  import {
28
28
  toLLMMessages2
29
- } from "./kv-p33ejz0k.js";
29
+ } from "./persistent-pty-9gyd2w40.js";
30
30
  import {
31
31
  baseTranscript2,
32
32
  unsupportedParts2,
33
33
  boundImages2
34
- } from "./kv-59np5r72.js";
34
+ } from "./persistent-pty-1hxa6pzb.js";
35
35
  import {
36
36
  toSessionError2
37
- } from "./kv-43vkjyw7.js";
37
+ } from "./persistent-pty-q34x7630.js";
38
38
  import {
39
39
  policy2,
40
40
  transient2
41
- } from "./kv-vyxd7yyr.js";
41
+ } from "./persistent-pty-g2rsct3h.js";
42
42
  import {
43
43
  estimate2
44
- } from "./kv-h6vf3j39.js";
44
+ } from "./persistent-pty-h6vf3j39.js";
45
45
  import {
46
+ calculateCost2,
46
47
  record2,
47
48
  add2
48
- } from "./kv-tdstcens.js";
49
+ } from "./persistent-pty-tdstcens.js";
49
50
  import {
50
51
  __export
51
- } from "./kv-9rqn6x4v.js";
52
+ } from "./persistent-pty-9rqn6x4v.js";
52
53
 
53
54
  // src/session/compaction.ts
54
55
  var exports_compaction2 = {};
55
56
  __export(exports_compaction2, {
56
- Service: () => Service7,
57
+ Service: () => Service10,
57
58
  SessionCompaction: () => exports_compaction2,
58
59
  buildPrompt: () => buildPrompt2,
59
60
  estimateTokens: () => estimateTokens2,
60
61
  layer: () => layer6,
61
- node: () => node10,
62
+ node: () => node13,
62
63
  retainUsers: () => retainUsers2,
63
64
  serializeToolContent: () => serializeToolContent2,
64
65
  truncateToolOutput: () => truncateToolOutput2
@@ -124,7 +125,7 @@ var SUMMARY_HEADINGS = SUMMARY_TEMPLATE.split(`
124
125
  `).filter((line) => line.startsWith("##"));
125
126
  var LEGACY_HEADING = "## Additional Context";
126
127
 
127
- class Service7 extends Context.Service()("@opencode/SessionCompaction") {
128
+ class Service10 extends Context.Service()("@opencode/SessionCompaction") {
128
129
  }
129
130
  var hasInputUsage = (message) => message.type === "assistant" && !message.error && message.tokens !== undefined && message.tokens.input + message.tokens.cache.read + message.tokens.cache.write > 0;
130
131
  var estimateTokens2 = (input) => {
@@ -295,7 +296,7 @@ var buildPrompt2 = (update, legacy = false) => {
295
296
  };
296
297
  var hasSummarySection = (summary) => summary.split(`
297
298
  `).some((line) => SUMMARY_HEADINGS.includes(line.trim()));
298
- var layer6 = Layer.effect(Service7, Effect.gen(function* () {
299
+ var layer6 = Layer.effect(Service10, Effect.gen(function* () {
299
300
  const bus = yield* Service79;
300
301
  const llm = yield* LLMClient.Service;
301
302
  const db = (yield* Service80).db;
@@ -323,6 +324,26 @@ var layer6 = Layer.effect(Service7, Effect.gen(function* () {
323
324
  recent,
324
325
  inputID: input.inputID
325
326
  });
327
+ const supplied = Effect.fn("SessionCompaction.supplied")(function* (input, result, recent) {
328
+ const context = input.context;
329
+ const usage = result.tokens ? { tokens: result.tokens, cost: calculateCost2(context.model.cost, result.tokens) } : undefined;
330
+ if (usage)
331
+ yield* bus.publish(SessionEvent2.UsageRecorded, {
332
+ sessionID: context.session.id,
333
+ source: "compaction",
334
+ ...usage
335
+ });
336
+ yield* bus.publish(SessionEvent2.Compaction.Ended, {
337
+ sessionID: context.session.id,
338
+ reason: input.reason,
339
+ model: context.model.ref,
340
+ providerState: result.providerState,
341
+ text: result.summary,
342
+ recent,
343
+ ...usage
344
+ }, { metadata: result.metadata });
345
+ return { status: "completed" };
346
+ });
326
347
  const interrupted = (input) => input.reason === "auto" ? failed({
327
348
  sessionID: input.context.session.id,
328
349
  reason: input.reason,
@@ -352,7 +373,7 @@ var layer6 = Layer.effect(Service7, Effect.gen(function* () {
352
373
  webSocket
353
374
  });
354
375
  };
355
- const original = (sessionID) => load3(db, sessionID, "local").pipe(Effect.orDie);
376
+ const original = (sessionID) => load2(db, sessionID, "local").pipe(Effect.orDie);
356
377
  const recoverLocally = (input) => original(input.context.session.id).pipe(Effect.flatMap((messages) => execute({ ...input, context: { ...input.context, messages } })));
357
378
  const executeProvider = Effect.fn("SessionCompaction.executeProvider")(function* (input) {
358
379
  const context = input.context;
@@ -363,6 +384,10 @@ var layer6 = Layer.effect(Service7, Effect.gen(function* () {
363
384
  error: { type: "provider.unsupported-operation", message }
364
385
  });
365
386
  const prepared = yield* compactionRequest(input, context.messages, [], "session");
387
+ if (prepared.event.result) {
388
+ yield* started(input, "");
389
+ return yield* supplied(input, prepared.event.result, "");
390
+ }
366
391
  const request = prepared.request;
367
392
  const provenance = provenance2(context.model);
368
393
  if (!provenance)
@@ -435,6 +460,8 @@ var layer6 = Layer.effect(Service7, Effect.gen(function* () {
435
460
  const prepared = yield* compactionRequest(input, history.messages, [
436
461
  Message.user(buildPrompt2(previous !== undefined, legacy))
437
462
  ]);
463
+ if (prepared.event.result)
464
+ return yield* supplied(input, prepared.event.result, history.recent);
438
465
  const transient = transient2(yield* policy2(context.session.id), {
439
466
  agent: context.agent.id,
440
467
  model: context.model.ref,
@@ -578,7 +605,7 @@ var layer6 = Layer.effect(Service7, Effect.gen(function* () {
578
605
  }
579
606
  }));
580
607
  });
581
- return Service7.of({
608
+ return Service10.of({
582
609
  transform: state.transform,
583
610
  reload: state.reload,
584
611
  enabled: () => state.get().auto,
@@ -587,10 +614,10 @@ var layer6 = Layer.effect(Service7, Effect.gen(function* () {
587
614
  compactManual
588
615
  });
589
616
  }));
590
- var node10 = makeLocationNode({
591
- service: Service7,
617
+ var node13 = makeLocationNode({
618
+ service: Service10,
592
619
  layer: layer6,
593
620
  deps: [node84, node85, llmClient2]
594
621
  });
595
622
 
596
- export { Service7, estimateTokens2, retainUsers2, truncateToolOutput2, serializeToolContent2, buildPrompt2, layer6, node10, exports_compaction2 };
623
+ export { Service10, estimateTokens2, retainUsers2, truncateToolOutput2, serializeToolContent2, buildPrompt2, layer6, node13, exports_compaction2 };
@@ -1,30 +1,30 @@
1
1
  import {
2
2
  Service79,
3
3
  node84
4
- } from "./kv-vrbphxwj.js";
4
+ } from "./persistent-pty-stesey4a.js";
5
5
  import {
6
6
  create3
7
- } from "./kv-kg06axw8.js";
7
+ } from "./persistent-pty-kg06axw8.js";
8
8
  import {
9
9
  __export
10
- } from "./kv-9rqn6x4v.js";
10
+ } from "./persistent-pty-9rqn6x4v.js";
11
11
 
12
12
  // src/command.ts
13
13
  var exports_command4 = {};
14
14
  __export(exports_command4, {
15
15
  Command: () => exports_command4,
16
- Event: () => Event8,
16
+ Event: () => Event6,
17
17
  ExecutionError: () => ExecutionError2,
18
18
  Info: () => Info7,
19
19
  NotFoundError: () => NotFoundError4,
20
- Service: () => Service46,
21
- layer: () => layer19,
22
- node: () => node50
20
+ Service: () => Service34,
21
+ layer: () => layer16,
22
+ node: () => node37
23
23
  });
24
24
  import { Command } from "@opencode/schema/command";
25
25
  import { makeLocationNode } from "@opencode/util/effect/app-node";
26
26
  import { Context, Effect, Layer, Schema } from "effect";
27
- import { Event as Event8 } from "@opencode/schema/command";
27
+ import { Event as Event6 } from "@opencode/schema/command";
28
28
  var Info7 = Command.Info;
29
29
 
30
30
  class NotFoundError4 extends Schema.TaggedError()("Command.NotFoundError", {
@@ -39,9 +39,9 @@ class ExecutionError2 extends Schema.TaggedError()("Command.ExecutionError", {
39
39
  }) {
40
40
  }
41
41
 
42
- class Service46 extends Context.Service()("@opencode/Command") {
42
+ class Service34 extends Context.Service()("@opencode/Command") {
43
43
  }
44
- var layer19 = Layer.effect(Service46, Effect.gen(function* () {
44
+ var layer16 = Layer.effect(Service34, Effect.gen(function* () {
45
45
  const bus = yield* Service79;
46
46
  const state = create3({
47
47
  name: "command",
@@ -55,7 +55,7 @@ var layer19 = Layer.effect(Service46, Effect.gen(function* () {
55
55
  name: definition.name,
56
56
  description: definition.description
57
57
  });
58
- return Service46.of({
58
+ return Service34.of({
59
59
  reload: state.reload,
60
60
  transform: state.transform,
61
61
  get: Effect.fn("Command.get")((name) => Effect.sync(() => {
@@ -71,9 +71,9 @@ var layer19 = Layer.effect(Service46, Effect.gen(function* () {
71
71
  })
72
72
  });
73
73
  }));
74
- var node50 = makeLocationNode({
75
- service: Service46,
76
- layer: layer19,
74
+ var node37 = makeLocationNode({
75
+ service: Service34,
76
+ layer: layer16,
77
77
  deps: [node84]
78
78
  });
79
79
  function errorMessage(error) {
@@ -86,4 +86,4 @@ function errorMessage(error) {
86
86
  return "Command execution failed";
87
87
  }
88
88
 
89
- export { Info7, NotFoundError4, ExecutionError2, Service46, layer19, node50, exports_command4, Event8 };
89
+ export { Info7, NotFoundError4, ExecutionError2, Service34, layer16, node37, exports_command4, Event6 };