@opencode/core 0.0.0-dev-20411 → 0.0.0-dev-20413

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 (800) hide show
  1. package/dist/account/sql.js +1 -1
  2. package/dist/agent.js +83 -83
  3. package/dist/aisdk-native.js +89 -89
  4. package/dist/aisdk.js +94 -94
  5. package/dist/app.js +9 -9
  6. package/dist/bus.js +69 -69
  7. package/dist/chunks/{state-72ncs47m.js → file-retention-0hdcmdbs.js} +13 -13
  8. package/dist/chunks/{state-0paq2nw3.js → file-retention-0paq2nw3.js} +1 -1
  9. package/dist/chunks/{state-p6pb6myx.js → file-retention-0prk7amb.js} +11 -11
  10. package/dist/chunks/{state-88nc53jp.js → file-retention-0w5dwmqh.js} +9 -9
  11. package/dist/chunks/{state-w5w5b0x1.js → file-retention-0w5pfrb8.js} +30 -30
  12. package/dist/chunks/{state-y98g6sym.js → file-retention-183bxref.js} +9 -9
  13. package/dist/chunks/{state-th7m3yq6.js → file-retention-1ad2bkjz.js} +13 -13
  14. package/dist/chunks/{state-pwf60aya.js → file-retention-1bt3x3rh.js} +26 -26
  15. package/dist/chunks/{state-1dazxqgg.js → file-retention-1dazxqgg.js} +2 -2
  16. package/dist/chunks/{state-0gapa1rm.js → file-retention-1q5awywt.js} +5 -5
  17. package/dist/chunks/{state-yhnzz64j.js → file-retention-1qyf5jfy.js} +9 -9
  18. package/dist/chunks/{state-d5dtknkd.js → file-retention-1r826b1r.js} +21 -21
  19. package/dist/chunks/{state-21r38tys.js → file-retention-21r38tys.js} +1 -1
  20. package/dist/chunks/{state-d5j1ks5t.js → file-retention-26qxfzyr.js} +25 -25
  21. package/dist/chunks/{state-e3cpdq35.js → file-retention-28eg4tbx.js} +85 -85
  22. package/dist/chunks/{state-z63w68vq.js → file-retention-29x78va6.js} +6 -6
  23. package/dist/chunks/{state-2a5m3afh.js → file-retention-2a5m3afh.js} +1 -1
  24. package/dist/chunks/{state-e6hd9jay.js → file-retention-2jmaghvr.js} +4 -4
  25. package/dist/chunks/file-retention-2kcvhtye.js +26 -0
  26. package/dist/chunks/{state-y1rn6ejs.js → file-retention-2rdektq1.js} +33 -33
  27. package/dist/chunks/{state-ch69yfhm.js → file-retention-2sttz0y6.js} +25 -25
  28. package/dist/chunks/{state-1syx43pj.js → file-retention-2wvpncj2.js} +17 -17
  29. package/dist/chunks/{state-an5c5367.js → file-retention-38et0t2f.js} +11 -11
  30. package/dist/chunks/{state-3fc6dm20.js → file-retention-3fc6dm20.js} +1 -1
  31. package/dist/chunks/{state-fbv57nyx.js → file-retention-3fq3g97k.js} +4 -4
  32. package/dist/chunks/{state-32ymn5e1.js → file-retention-3gd8hbpt.js} +7 -7
  33. package/dist/chunks/{state-3hepkmqq.js → file-retention-3hepkmqq.js} +1 -1
  34. package/dist/chunks/{state-r2yemdy6.js → file-retention-3j16dv5x.js} +28 -28
  35. package/dist/chunks/{state-1379bkbv.js → file-retention-3sbgz195.js} +12 -12
  36. package/dist/chunks/{state-3smtnn6g.js → file-retention-3smtnn6g.js} +1 -1
  37. package/dist/chunks/{state-3ajzyqzg.js → file-retention-3t69f099.js} +15 -15
  38. package/dist/chunks/{state-3tvqynh2.js → file-retention-3tvqynh2.js} +1 -1
  39. package/dist/chunks/{state-0saa9dh3.js → file-retention-3vzy88am.js} +5 -5
  40. package/dist/chunks/{state-t0fxg8b9.js → file-retention-3w2b2yj4.js} +5 -5
  41. package/dist/chunks/{state-w8hqpfxz.js → file-retention-3w58p52d.js} +45 -45
  42. package/dist/chunks/{state-9afmw3mh.js → file-retention-3ywpkjxb.js} +5 -5
  43. package/dist/chunks/{state-3zsf4n22.js → file-retention-3zsf4n22.js} +1 -1
  44. package/dist/chunks/{state-mj0s41ck.js → file-retention-47prnvtg.js} +19 -19
  45. package/dist/chunks/{state-c1495ybz.js → file-retention-49w8mb30.js} +11 -11
  46. package/dist/chunks/{state-157c2mfw.js → file-retention-4bdj0b3x.js} +16 -16
  47. package/dist/chunks/{state-reeft5kf.js → file-retention-4c1zs4jh.js} +6 -6
  48. package/dist/chunks/{state-6sm5cyvc.js → file-retention-4ehfh5v4.js} +36 -36
  49. package/dist/chunks/{state-axbkptea.js → file-retention-4npc1k28.js} +2 -2
  50. package/dist/chunks/{state-j58c5xyq.js → file-retention-4rt0ga34.js} +9 -9
  51. package/dist/chunks/{state-e6hmchc5.js → file-retention-510m7gjw.js} +5 -5
  52. package/dist/chunks/{state-54ma36ye.js → file-retention-54ma36ye.js} +1 -1
  53. package/dist/chunks/{state-ckecvw8r.js → file-retention-54tcyq79.js} +2 -2
  54. package/dist/chunks/{state-56gdpj1q.js → file-retention-56gdpj1q.js} +2 -2
  55. package/dist/chunks/{state-0eb0nhrg.js → file-retention-5aph6cgz.js} +23 -23
  56. package/dist/chunks/{state-5daktx2q.js → file-retention-5daktx2q.js} +1 -1
  57. package/dist/chunks/{state-3p800b92.js → file-retention-5dp432es.js} +13 -13
  58. package/dist/chunks/{state-xnw0y567.js → file-retention-5hpera63.js} +13 -13
  59. package/dist/chunks/{state-14jhafnq.js → file-retention-5r3fn40h.js} +5 -5
  60. package/dist/chunks/{state-5t3nmthw.js → file-retention-5t3nmthw.js} +2 -2
  61. package/dist/chunks/{state-kqcenne1.js → file-retention-604k1v19.js} +4 -4
  62. package/dist/chunks/{state-ed86crxx.js → file-retention-63r9a438.js} +31 -31
  63. package/dist/chunks/{state-669tq793.js → file-retention-669tq793.js} +1 -1
  64. package/dist/chunks/{state-pyqp92e9.js → file-retention-673p5p04.js} +24 -24
  65. package/dist/chunks/{state-4q6hdv07.js → file-retention-6hr9dd4j.js} +22 -22
  66. package/dist/chunks/{state-xchw37pw.js → file-retention-6hyqwpab.js} +28 -28
  67. package/dist/chunks/{state-6msgmcgs.js → file-retention-6msgmcgs.js} +1 -1
  68. package/dist/chunks/{state-9p874de9.js → file-retention-6v29c6rw.js} +44 -44
  69. package/dist/chunks/{state-t8eapvfw.js → file-retention-6w7yp8rv.js} +20 -20
  70. package/dist/chunks/{state-ajmg8w9c.js → file-retention-6x0h2hvg.js} +5 -5
  71. package/dist/chunks/{state-nhr73ppe.js → file-retention-785q587a.js} +22 -22
  72. package/dist/chunks/{state-7bmhse3q.js → file-retention-7bmhse3q.js} +1 -1
  73. package/dist/chunks/{state-7dqw4kz8.js → file-retention-7dqw4kz8.js} +1 -1
  74. package/dist/chunks/{state-09vwy2yp.js → file-retention-7gh7arkx.js} +29 -29
  75. package/dist/chunks/{state-gs3s1a1g.js → file-retention-7gx041tx.js} +8 -8
  76. package/dist/chunks/{state-c38nnx5e.js → file-retention-7hz65nzk.js} +11 -11
  77. package/dist/chunks/{state-zbbpbgkb.js → file-retention-7jj2x31x.js} +18 -18
  78. package/dist/chunks/{state-hcx0m4b0.js → file-retention-7nxsyqvx.js} +15 -15
  79. package/dist/chunks/{state-zzdarrzq.js → file-retention-7p89ndwn.js} +2 -2
  80. package/dist/chunks/{state-h6b02349.js → file-retention-7pr2hkwv.js} +5 -5
  81. package/dist/chunks/{state-58zcwrv5.js → file-retention-7qt8a9kq.js} +39 -39
  82. package/dist/chunks/{state-4md02mnq.js → file-retention-81m4vrtf.js} +10 -10
  83. package/dist/chunks/{state-90qzwy9b.js → file-retention-81nxh053.js} +3 -3
  84. package/dist/chunks/{state-rtgrbwdh.js → file-retention-83gmqmzf.js} +17 -17
  85. package/dist/chunks/{state-84txncab.js → file-retention-84txncab.js} +1 -1
  86. package/dist/chunks/{state-wd7rpvfq.js → file-retention-84wpmdm5.js} +4 -4
  87. package/dist/chunks/{state-ekyqktmq.js → file-retention-87zac3px.js} +18 -18
  88. package/dist/chunks/{state-xpzvwsxq.js → file-retention-8b17hs0n.js} +3 -3
  89. package/dist/chunks/{state-697fm79x.js → file-retention-8b6wz1s2.js} +4 -4
  90. package/dist/chunks/{state-8d7r5vzw.js → file-retention-8d7r5vzw.js} +1 -1
  91. package/dist/chunks/{state-01emmzys.js → file-retention-8kzx4vte.js} +4 -4
  92. package/dist/chunks/{state-sresy5h2.js → file-retention-8pgmwr3d.js} +3 -3
  93. package/dist/chunks/{state-nzq7ck9f.js → file-retention-8q9myf25.js} +6 -6
  94. package/dist/chunks/{state-grhr41xh.js → file-retention-8t1f3dpa.js} +12 -12
  95. package/dist/chunks/{state-0fdqm06g.js → file-retention-8t2t6w9c.js} +21 -21
  96. package/dist/chunks/{state-1bj6zprj.js → file-retention-8xztjs93.js} +24 -24
  97. package/dist/chunks/{state-cgrq38t5.js → file-retention-9k77dfbh.js} +11 -11
  98. package/dist/chunks/{state-s8d7rejh.js → file-retention-9t7a50xb.js} +4 -4
  99. package/dist/chunks/{state-trhjdbdm.js → file-retention-9tmpzc75.js} +3 -3
  100. package/dist/chunks/{state-hwxd1aqb.js → file-retention-9wv1nt86.js} +24 -24
  101. package/dist/chunks/{state-371xbacx.js → file-retention-9xrdz36j.js} +10 -10
  102. package/dist/chunks/{state-fpreazhg.js → file-retention-a0f3srvg.js} +22 -22
  103. package/dist/chunks/{state-r5x6zcsm.js → file-retention-a1gpj94z.js} +3 -3
  104. package/dist/chunks/{state-yrrz9gz0.js → file-retention-a70jj2gs.js} +11 -11
  105. package/dist/chunks/{state-z16redh0.js → file-retention-a77cxevw.js} +24 -24
  106. package/dist/chunks/{state-gqh620kj.js → file-retention-a86kkad3.js} +18 -18
  107. package/dist/chunks/{state-aaet6srn.js → file-retention-aaet6srn.js} +2 -2
  108. package/dist/chunks/{state-8hskzk87.js → file-retention-ah0yx3gn.js} +18 -18
  109. package/dist/chunks/{state-t2fc4mz5.js → file-retention-at5d07az.js} +4 -4
  110. package/dist/chunks/{state-yxveqtpd.js → file-retention-b4yhpc1p.js} +13 -13
  111. package/dist/chunks/{state-b6gygkdw.js → file-retention-b6gygkdw.js} +2 -2
  112. package/dist/chunks/{state-gs6ejcaj.js → file-retention-b8z7nc94.js} +12 -12
  113. package/dist/chunks/{state-z07pqspn.js → file-retention-bjtzbw4r.js} +3 -3
  114. package/dist/chunks/{state-h4znbszn.js → file-retention-bkqvf6fs.js} +6 -6
  115. package/dist/chunks/{state-espax8zg.js → file-retention-bp8fbaqn.js} +4 -4
  116. package/dist/chunks/{state-2bvep787.js → file-retention-bpd6y3pz.js} +49 -49
  117. package/dist/chunks/file-retention-by5v678g.js +18 -0
  118. package/dist/chunks/{state-vfsag6yk.js → file-retention-byqhze4w.js} +9 -9
  119. package/dist/chunks/{state-d6ypw3gd.js → file-retention-c0y7ws6r.js} +11 -11
  120. package/dist/chunks/{state-29fwyzcd.js → file-retention-c4ndmzdt.js} +43 -43
  121. package/dist/chunks/{state-1qw2fbrj.js → file-retention-c937cp6e.js} +16 -16
  122. package/dist/chunks/{state-mwtfvzf0.js → file-retention-cbtvvn18.js} +11 -11
  123. package/dist/chunks/{state-br0tr5aq.js → file-retention-cmwkp3r5.js} +8 -8
  124. package/dist/chunks/{state-qmqgtz8f.js → file-retention-cwa6csj7.js} +9 -9
  125. package/dist/chunks/{state-bbp8f244.js → file-retention-cyxsw2g2.js} +14 -14
  126. package/dist/chunks/{state-8v48tazp.js → file-retention-d6v3a162.js} +8 -8
  127. package/dist/chunks/{state-96qm4nj4.js → file-retention-d8tf08br.js} +28 -28
  128. package/dist/chunks/{state-hxd37nz4.js → file-retention-da9gkh73.js} +6 -6
  129. package/dist/chunks/{state-mdj04g53.js → file-retention-darsy9g5.js} +11 -11
  130. package/dist/chunks/{state-p9m7b0zj.js → file-retention-dj3h9xk6.js} +20 -20
  131. package/dist/chunks/{state-mpk0rfs5.js → file-retention-dnxkq42g.js} +4 -4
  132. package/dist/chunks/{state-zj0xayy4.js → file-retention-dwc3y9ht.js} +17 -17
  133. package/dist/chunks/{state-4vby096t.js → file-retention-e2s3ef90.js} +11 -11
  134. package/dist/chunks/{state-nppa5595.js → file-retention-e3fd3zdy.js} +17 -17
  135. package/dist/chunks/{state-5qd3pb7m.js → file-retention-e3qxr5gk.js} +2 -2
  136. package/dist/chunks/file-retention-e6yks4dv.js +507 -0
  137. package/dist/chunks/{state-q75415k0.js → file-retention-e7xf0vfk.js} +18 -18
  138. package/dist/chunks/{state-yt0fqk68.js → file-retention-ead3g9p8.js} +5 -5
  139. package/dist/chunks/{state-27tmf2q1.js → file-retention-ed136yjw.js} +10 -10
  140. package/dist/chunks/{state-00x4qneg.js → file-retention-eeaf82dq.js} +8 -8
  141. package/dist/chunks/{state-0jj8ma0e.js → file-retention-eewb0xzh.js} +28 -28
  142. package/dist/chunks/{state-ef5x83kb.js → file-retention-ef5x83kb.js} +1 -1
  143. package/dist/chunks/{state-szmcfww1.js → file-retention-ega78awc.js} +5 -5
  144. package/dist/chunks/{state-54m8g82e.js → file-retention-esnc1zwg.js} +3 -3
  145. package/dist/chunks/{state-etq0c3wd.js → file-retention-etq0c3wd.js} +1 -1
  146. package/dist/chunks/{state-k6ezk3an.js → file-retention-ezdgcbe4.js} +22 -22
  147. package/dist/chunks/{state-ctc7jsd8.js → file-retention-fay1fcb7.js} +4 -4
  148. package/dist/chunks/{state-11jr2j0r.js → file-retention-ftjnkh8h.js} +5 -5
  149. package/dist/chunks/{state-4s41203t.js → file-retention-fzzyxazr.js} +10 -10
  150. package/dist/chunks/{state-dt9bwcd0.js → file-retention-g7vy1yxn.js} +24 -24
  151. package/dist/chunks/{state-gd4qta3r.js → file-retention-gd4qta3r.js} +1 -1
  152. package/dist/chunks/{state-94ek1h2f.js → file-retention-gfvb90ym.js} +2 -2
  153. package/dist/chunks/{state-5a1vmb6m.js → file-retention-gnmw9mec.js} +9 -9
  154. package/dist/chunks/{state-r1ehawk4.js → file-retention-grkp988q.js} +23 -23
  155. package/dist/chunks/{state-eqf7n5z7.js → file-retention-gt1385rn.js} +17 -17
  156. package/dist/chunks/{state-gv6a8nnw.js → file-retention-gv6a8nnw.js} +2 -2
  157. package/dist/chunks/{state-jds3se8a.js → file-retention-gz4kf0bk.js} +10 -10
  158. package/dist/chunks/{state-6df92bz7.js → file-retention-gzqea9dy.js} +5 -5
  159. package/dist/chunks/{state-h6vf3j39.js → file-retention-h6vf3j39.js} +1 -1
  160. package/dist/chunks/{state-490gqbd2.js → file-retention-h8yr3q1k.js} +6 -6
  161. package/dist/chunks/{state-v15w9s4t.js → file-retention-h9m8f1pj.js} +3 -3
  162. package/dist/chunks/{state-4j4tgtq5.js → file-retention-h9wp8z5w.js} +4 -4
  163. package/dist/chunks/{state-za0qyzyq.js → file-retention-hk2p39dt.js} +7 -7
  164. package/dist/chunks/{state-69pvpxfa.js → file-retention-hm7mx02r.js} +12 -12
  165. package/dist/chunks/{state-a11hdz7s.js → file-retention-hp712jvz.js} +36 -36
  166. package/dist/chunks/{state-r5d9sft0.js → file-retention-j0m5ek2k.js} +11 -11
  167. package/dist/chunks/{state-j56e64zr.js → file-retention-j56e64zr.js} +1 -1
  168. package/dist/chunks/{state-55cazk4c.js → file-retention-jby2pxd5.js} +24 -24
  169. package/dist/chunks/{state-fy2929rg.js → file-retention-jf5shw36.js} +8 -8
  170. package/dist/chunks/{state-dknjrr3d.js → file-retention-jkgs367w.js} +7 -7
  171. package/dist/chunks/{state-ys6344d6.js → file-retention-jp3txr2m.js} +11 -11
  172. package/dist/chunks/{state-2n2pm2hg.js → file-retention-jqsmw10b.js} +26 -26
  173. package/dist/chunks/{state-0ydwyph9.js → file-retention-jyq1qfqw.js} +23 -23
  174. package/dist/chunks/{state-6ysrkrkr.js → file-retention-k1qrnqst.js} +8 -8
  175. package/dist/chunks/{state-hejy09km.js → file-retention-k5tgpf5k.js} +8 -8
  176. package/dist/chunks/{state-kbqjp078.js → file-retention-kbqjp078.js} +2 -2
  177. package/dist/chunks/{state-sa3fbgnq.js → file-retention-kesvx9q9.js} +22 -22
  178. package/dist/chunks/{state-3wtbjpw0.js → file-retention-kh12nk63.js} +20 -20
  179. package/dist/chunks/{state-8z86y1bf.js → file-retention-kq3bhg4h.js} +15 -15
  180. package/dist/chunks/{state-97ekwrky.js → file-retention-kqmkntk2.js} +6 -6
  181. package/dist/chunks/{state-0vpw0he7.js → file-retention-kwjbzm93.js} +34 -34
  182. package/dist/chunks/file-retention-m2nxjrdw.js +252 -0
  183. package/dist/chunks/{state-m3fdjcah.js → file-retention-m3fdjcah.js} +1 -1
  184. package/dist/chunks/{state-m58kmhef.js → file-retention-m58kmhef.js} +2 -2
  185. package/dist/chunks/{state-m9w0rfyh.js → file-retention-m9w0rfyh.js} +1 -1
  186. package/dist/chunks/{state-8jrzbwwk.js → file-retention-mexkh0a5.js} +17 -17
  187. package/dist/chunks/{state-j8zzr2am.js → file-retention-mjncxbbh.js} +4 -4
  188. package/dist/chunks/{state-9rfy6ee6.js → file-retention-mm4gadqd.js} +24 -24
  189. package/dist/chunks/{state-tft65gyy.js → file-retention-mxqj1xx5.js} +9 -9
  190. package/dist/chunks/{state-fgyydaws.js → file-retention-mxxj5a1k.js} +17 -17
  191. package/dist/chunks/{state-594yxk57.js → file-retention-n8xrp1qt.js} +43 -43
  192. package/dist/chunks/{state-cmcrkyvs.js → file-retention-nda5myhb.js} +3 -3
  193. package/dist/chunks/{state-8wm6h3ms.js → file-retention-nhgjxb8a.js} +20 -20
  194. package/dist/chunks/{state-69z88nvy.js → file-retention-nmqryx0j.js} +86 -86
  195. package/dist/chunks/{state-vhk0cnae.js → file-retention-nr94q6s0.js} +6 -6
  196. package/dist/chunks/{state-ddv1bfz0.js → file-retention-nsynhr37.js} +25 -25
  197. package/dist/chunks/{state-7w99qc9d.js → file-retention-nvxqht09.js} +3 -3
  198. package/dist/chunks/{state-dpkg50ah.js → file-retention-nxm207yx.js} +4 -4
  199. package/dist/chunks/{state-k3c624dm.js → file-retention-nzks3jc8.js} +3 -3
  200. package/dist/chunks/{state-bcj4p2d9.js → file-retention-p1wser7p.js} +42 -42
  201. package/dist/chunks/{state-48bdb4sw.js → file-retention-p3zpz716.js} +4 -4
  202. package/dist/chunks/{state-vtemzate.js → file-retention-pb3rsh2h.js} +5 -5
  203. package/dist/chunks/{state-hcb2f5gd.js → file-retention-phszxaeg.js} +35 -35
  204. package/dist/chunks/{state-pjvnvgmy.js → file-retention-pjvnvgmy.js} +1 -1
  205. package/dist/chunks/{state-pknna89w.js → file-retention-pknna89w.js} +1 -1
  206. package/dist/chunks/{state-wd3x2cqz.js → file-retention-psazpmmj.js} +2 -2
  207. package/dist/chunks/{state-a9p6np1q.js → file-retention-pvenp6j0.js} +17 -17
  208. package/dist/chunks/{state-x5r2y95v.js → file-retention-pwstt82p.js} +7 -7
  209. package/dist/chunks/{state-f37sca8k.js → file-retention-q0bnh3yx.js} +1 -1
  210. package/dist/chunks/{state-an09x78w.js → file-retention-q2v8njx8.js} +5 -5
  211. package/dist/chunks/{state-zee1rnkq.js → file-retention-q5asdkn4.js} +4 -4
  212. package/dist/chunks/{state-zhqm9fer.js → file-retention-q7t8rb0a.js} +9 -9
  213. package/dist/chunks/{state-f16bkzkb.js → file-retention-qdrq4k6v.js} +6 -6
  214. package/dist/chunks/{state-84zt2byv.js → file-retention-qg0jgkcp.js} +9 -9
  215. package/dist/chunks/{state-rtathh62.js → file-retention-qpbc7zwf.js} +8 -8
  216. package/dist/chunks/{state-qsdy395h.js → file-retention-qsdy395h.js} +1 -1
  217. package/dist/chunks/{state-5xzzmb84.js → file-retention-qtzej36y.js} +177 -177
  218. package/dist/chunks/{state-9emqwk8b.js → file-retention-qvd9ext0.js} +15 -15
  219. package/dist/chunks/{state-4zkmk6jk.js → file-retention-r38xkzfz.js} +27 -27
  220. package/dist/chunks/{state-rdw6cm16.js → file-retention-rdw6cm16.js} +1 -1
  221. package/dist/chunks/{state-rhraev7y.js → file-retention-rhraev7y.js} +1 -1
  222. package/dist/chunks/{state-3cp35e57.js → file-retention-rkqkby3j.js} +11 -11
  223. package/dist/chunks/{state-xnnxw2tq.js → file-retention-rndjza8x.js} +5 -5
  224. package/dist/chunks/{state-r76kpynz.js → file-retention-rrw2m7t9.js} +15 -15
  225. package/dist/chunks/{state-080n5mh9.js → file-retention-rsjawph9.js} +26 -26
  226. package/dist/chunks/{state-th1mg51k.js → file-retention-s1krgghs.js} +5 -5
  227. package/dist/chunks/{state-yrznvahk.js → file-retention-s4enseaf.js} +2 -2
  228. package/dist/chunks/{state-bjckj4ec.js → file-retention-s5tw7wma.js} +17 -17
  229. package/dist/chunks/{state-475fzmnb.js → file-retention-sb7rw6gt.js} +16 -16
  230. package/dist/chunks/{state-6t7r69c0.js → file-retention-sb8j7qk3.js} +44 -44
  231. package/dist/chunks/{state-6qh3dda1.js → file-retention-sy5wxk38.js} +18 -18
  232. package/dist/chunks/{state-j7npn0pv.js → file-retention-sz4k26e8.js} +11 -11
  233. package/dist/chunks/{state-f3ngv102.js → file-retention-t51qk8jz.js} +21 -21
  234. package/dist/chunks/{state-c5885s0q.js → file-retention-t5e8vxk8.js} +9 -9
  235. package/dist/chunks/{state-dvd395e9.js → file-retention-t6m9rje5.js} +10 -10
  236. package/dist/chunks/{state-3wrtxrr4.js → file-retention-t6msp11s.js} +6 -6
  237. package/dist/chunks/{state-kv381fjp.js → file-retention-t6zt577b.js} +12 -12
  238. package/dist/chunks/{state-tazgh4e4.js → file-retention-tazgh4e4.js} +1 -1
  239. package/dist/chunks/{state-tcezcvh9.js → file-retention-tcezcvh9.js} +1 -1
  240. package/dist/chunks/{state-wzq06v2y.js → file-retention-tdg3ts9d.js} +5 -5
  241. package/dist/chunks/{state-tdstcens.js → file-retention-tdstcens.js} +1 -1
  242. package/dist/chunks/{state-pey5f48j.js → file-retention-tj6yas76.js} +1 -1
  243. package/dist/chunks/{state-nng2ktcm.js → file-retention-tqkrwgse.js} +2 -2
  244. package/dist/chunks/{state-py3kkmfq.js → file-retention-ts23464c.js} +4 -4
  245. package/dist/chunks/{state-tvtrv512.js → file-retention-tvtrv512.js} +1 -1
  246. package/dist/chunks/{state-3pkc36ya.js → file-retention-txma93ze.js} +7 -7
  247. package/dist/chunks/{state-qg8bk40g.js → file-retention-v0chj969.js} +20 -20
  248. package/dist/chunks/{state-pc4jk262.js → file-retention-v9ac033v.js} +22 -22
  249. package/dist/chunks/{state-bct739vz.js → file-retention-ve4pfa0n.js} +4 -4
  250. package/dist/chunks/{state-veqvce7d.js → file-retention-veqvce7d.js} +1 -1
  251. package/dist/chunks/{state-5md0szhq.js → file-retention-veyr78dn.js} +48 -48
  252. package/dist/chunks/{state-v4azz40n.js → file-retention-vp505xzp.js} +44 -44
  253. package/dist/chunks/{state-0b1r2e1j.js → file-retention-vrd0pe5g.js} +29 -29
  254. package/dist/chunks/{state-wsb67xeh.js → file-retention-vrfdq27c.js} +15 -15
  255. package/dist/chunks/{state-vzcthcp8.js → file-retention-vzcthcp8.js} +1 -1
  256. package/dist/chunks/{state-vzs5sf6e.js → file-retention-vzs5sf6e.js} +1 -1
  257. package/dist/chunks/{state-xfkkasph.js → file-retention-w19d8598.js} +5 -5
  258. package/dist/chunks/{state-rrcc0zkn.js → file-retention-w3n6ry68.js} +22 -22
  259. package/dist/chunks/{state-w3wsvvr9.js → file-retention-w3wsvvr9.js} +1 -1
  260. package/dist/chunks/{state-wd87259q.js → file-retention-wd87259q.js} +1 -1
  261. package/dist/chunks/{state-7wzqh5r6.js → file-retention-wgsh6p0h.js} +16 -16
  262. package/dist/chunks/{state-4bm5ja14.js → file-retention-wj76ss2k.js} +4 -4
  263. package/dist/chunks/{state-ha0hr9mw.js → file-retention-wkp5gwgf.js} +7 -7
  264. package/dist/chunks/{state-wby16mgw.js → file-retention-wng67cba.js} +5 -5
  265. package/dist/chunks/{state-9wba6fa8.js → file-retention-wvhhphfs.js} +61 -61
  266. package/dist/chunks/{state-x1ezjp6w.js → file-retention-x1ezjp6w.js} +1 -1
  267. package/dist/chunks/{state-s3x09b44.js → file-retention-x1mgw0q2.js} +23 -23
  268. package/dist/chunks/{state-fjmae6zs.js → file-retention-x5c9ynp6.js} +8 -8
  269. package/dist/chunks/{state-zapwe406.js → file-retention-x9fxjrtf.js} +23 -23
  270. package/dist/chunks/{state-8wcrzxjs.js → file-retention-xaw2ksxt.js} +12 -12
  271. package/dist/chunks/{state-pywk7rpr.js → file-retention-xc8ap9ry.js} +13 -13
  272. package/dist/chunks/{state-z8yngj71.js → file-retention-xdathz5z.js} +34 -34
  273. package/dist/chunks/{state-9k8rwqaf.js → file-retention-xfj1qh4f.js} +45 -45
  274. package/dist/chunks/{state-11z4q6e9.js → file-retention-xk67nc8t.js} +26 -26
  275. package/dist/chunks/{state-xkntkrq7.js → file-retention-xkntkrq7.js} +2 -2
  276. package/dist/chunks/{state-se6n7614.js → file-retention-xtjkth6d.js} +10 -10
  277. package/dist/chunks/{state-66fqs2ya.js → file-retention-y15vpdnr.js} +9 -9
  278. package/dist/chunks/{state-y1fvbwt7.js → file-retention-y1fvbwt7.js} +1 -1
  279. package/dist/chunks/{state-5xpznt2d.js → file-retention-y1gke2m2.js} +4 -4
  280. package/dist/chunks/{state-azmpc546.js → file-retention-y2j1wnbx.js} +17 -17
  281. package/dist/chunks/{state-4phvkvd3.js → file-retention-y5wj7v2m.js} +19 -19
  282. package/dist/chunks/{state-gdv4f4rt.js → file-retention-yda243zd.js} +14 -14
  283. package/dist/chunks/{state-62kd59t7.js → file-retention-yh0m0f8z.js} +37 -37
  284. package/dist/chunks/{state-yrhqyw5v.js → file-retention-yrhqyw5v.js} +1 -1
  285. package/dist/chunks/{state-z0bkrqjs.js → file-retention-z0bkrqjs.js} +1 -1
  286. package/dist/chunks/{state-cbfq9x83.js → file-retention-zcsk6m2d.js} +14 -14
  287. package/dist/chunks/{state-z060z1z6.js → file-retention-zdr4thj6.js} +12 -12
  288. package/dist/chunks/{state-zeh9ct20.js → file-retention-zeh9ct20.js} +2 -2
  289. package/dist/chunks/{state-qvrqhjgq.js → file-retention-zn615fw4.js} +32 -32
  290. package/dist/chunks/{state-hd8vw2pw.js → file-retention-znsx74x0.js} +1 -1
  291. package/dist/chunks/{state-zr2ceqn5.js → file-retention-zr2ceqn5.js} +1 -1
  292. package/dist/chunks/{state-zxq2ej10.js → file-retention-zxq2ej10.js} +1 -1
  293. package/dist/chunks/{state-9ktpbv2m.js → file-retention-zycf5mjb.js} +32 -32
  294. package/dist/codemode/catalog.js +1 -1
  295. package/dist/codemode/instructions.js +9 -9
  296. package/dist/codemode/tool.js +3 -3
  297. package/dist/codemode/web.js +1 -1
  298. package/dist/command.js +81 -81
  299. package/dist/config/discovery.js +82 -82
  300. package/dist/config/markdown.js +1 -1
  301. package/dist/config/normalize.js +106 -106
  302. package/dist/config/plugin/agent.js +123 -123
  303. package/dist/config/plugin/command.js +213 -213
  304. package/dist/config/plugin/compaction.js +161 -161
  305. package/dist/config/plugin/compatibility.js +141 -141
  306. package/dist/config/plugin/entry-observer.js +1 -1
  307. package/dist/config/plugin/formatter.js +124 -124
  308. package/dist/config/plugin/image.js +123 -123
  309. package/dist/config/plugin/instruction.js +90 -90
  310. package/dist/config/plugin/location-watcher.js +125 -125
  311. package/dist/config/plugin/mcp.js +130 -130
  312. package/dist/config/plugin/policy.js +124 -124
  313. package/dist/config/plugin/provider.js +123 -123
  314. package/dist/config/plugin/reference.js +125 -125
  315. package/dist/config/plugin/shell.js +123 -123
  316. package/dist/config/plugin/skill-file.js +102 -102
  317. package/dist/config/plugin/skill.js +142 -142
  318. package/dist/config/plugin/snapshot.js +123 -123
  319. package/dist/config/plugin/source.js +124 -124
  320. package/dist/config/plugin/tool-output.js +125 -125
  321. package/dist/config/plugin/websearch.js +122 -122
  322. package/dist/config/plugin/worktree.js +125 -125
  323. package/dist/config/variable.js +3 -3
  324. package/dist/config/watch.js +1 -1
  325. package/dist/config.js +126 -126
  326. package/dist/credential/sql.js +2 -2
  327. package/dist/credential.js +83 -83
  328. package/dist/database/database.js +66 -66
  329. package/dist/database/drizzle/effect-sqlite/driver.js +14 -14
  330. package/dist/database/drizzle/effect-sqlite/index.js +14 -14
  331. package/dist/database/drizzle/effect-sqlite/session.js +11 -11
  332. package/dist/database/drizzle/index.js +15 -15
  333. package/dist/database/drizzle/internal/drizzle-utils.js +1 -1
  334. package/dist/database/drizzle/sqlite-core/effect/count.js +1 -1
  335. package/dist/database/drizzle/sqlite-core/effect/db.js +9 -9
  336. package/dist/database/drizzle/sqlite-core/effect/delete.js +2 -2
  337. package/dist/database/drizzle/sqlite-core/effect/index.js +10 -10
  338. package/dist/database/drizzle/sqlite-core/effect/insert.js +2 -2
  339. package/dist/database/drizzle/sqlite-core/effect/query.js +1 -1
  340. package/dist/database/drizzle/sqlite-core/effect/raw.js +1 -1
  341. package/dist/database/drizzle/sqlite-core/effect/select.js +2 -2
  342. package/dist/database/drizzle/sqlite-core/effect/session.js +10 -10
  343. package/dist/database/drizzle/sqlite-core/effect/update.js +2 -2
  344. package/dist/database/drizzle.js +16 -16
  345. package/dist/database/migration/20260127222353_familiar_lady_ursula.js +1 -1
  346. package/dist/database/migration/20260211171708_add_project_commands.js +1 -1
  347. package/dist/database/migration/20260213144116_wakeful_the_professor.js +1 -1
  348. package/dist/database/migration/20260225215848_workspace.js +1 -1
  349. package/dist/database/migration/20260227213759_add_session_workspace_id.js +1 -1
  350. package/dist/database/migration/20260228203230_blue_harpoon.js +1 -1
  351. package/dist/database/migration/20260303231226_add_workspace_fields.js +1 -1
  352. package/dist/database/migration/20260309230000_move_org_to_state.js +1 -1
  353. package/dist/database/migration/20260312043431_session_message_cursor.js +1 -1
  354. package/dist/database/migration/20260323234822_events.js +1 -1
  355. package/dist/database/migration/20260410174513_workspace-name.js +1 -1
  356. package/dist/database/migration/20260413175956_chief_energizer.js +1 -1
  357. package/dist/database/migration/20260423070820_add_icon_url_override.js +1 -1
  358. package/dist/database/migration/20260427172553_slow_nightmare.js +1 -1
  359. package/dist/database/migration/20260428004200_add_session_path.js +1 -1
  360. package/dist/database/migration/20260501142318_next_venus.js +1 -1
  361. package/dist/database/migration/20260504145000_add_sync_owner.js +1 -1
  362. package/dist/database/migration/20260507164347_add_workspace_time.js +1 -1
  363. package/dist/database/migration/20260510033149_session_usage.js +1 -1
  364. package/dist/database/migration/20260511000411_data_migration_state.js +1 -1
  365. package/dist/database/migration/20260511173437_session-metadata.js +1 -1
  366. package/dist/database/migration/20260601010001_normalize_storage_paths.js +1 -1
  367. package/dist/database/migration/20260601202201_amazing_prowler.js +1 -1
  368. package/dist/database/migration/20260602002951_lowly_union_jack.js +1 -1
  369. package/dist/database/migration/20260602182828_add_project_directories.js +1 -1
  370. package/dist/database/migration/20260603001617_session_message_projection_indexes.js +1 -1
  371. package/dist/database/migration/20260603040000_session_message_projection_order.js +1 -1
  372. package/dist/database/migration/20260603141458_session_input_inbox.js +1 -1
  373. package/dist/database/migration/20260603160727_jittery_ezekiel_stane.js +1 -1
  374. package/dist/database/migration/20260604172448_event_sourced_session_input.js +1 -1
  375. package/dist/database/migration/20260605003541_add_session_context_snapshot.js +1 -1
  376. package/dist/database/migration/20260605042240_add_context_epoch_agent.js +1 -1
  377. package/dist/database/migration/20260611035744_credential.js +1 -1
  378. package/dist/database/migration/20260611192811_lush_chimera.js +1 -1
  379. package/dist/database/migration/20260612174303_project_dir_strategy.js +1 -1
  380. package/dist/database/migration/20260622142730_simplify_session_context_epoch.js +1 -1
  381. package/dist/database/migration/20260622170816_reset_v2_session_state.js +1 -1
  382. package/dist/database/migration/20260622202450_simplify_session_input.js +1 -1
  383. package/dist/database/migration/20260804233008_loose_psylocke.js +1 -1
  384. package/dist/database/migration/20260805200742_import_legacy_credentials.js +1 -1
  385. package/dist/database/migration/20260808023530_workspace_domain.js +1 -1
  386. package/dist/database/migration/20260811161259_execution_claim_attempts.js +1 -1
  387. package/dist/database/migration/20260812181746_session_inbox.js +1 -1
  388. package/dist/database/migration/20260812213948_worktree.js +1 -1
  389. package/dist/database/migration/20260819222447_session_viewed_state.js +1 -1
  390. package/dist/database/migration/20260823191254_nullable_workspace_binding.js +1 -1
  391. package/dist/database/migration/20260910120000_clear_v1_session_permission.js +1 -1
  392. package/dist/database/migration/20260923013825_project_time_active.js +1 -1
  393. package/dist/database/migration.gen.js +49 -49
  394. package/dist/database/migration.js +51 -51
  395. package/dist/database/path.js +2 -2
  396. package/dist/database/schema.gen.js +1 -1
  397. package/dist/database/schema.sql.js +1 -1
  398. package/dist/database/sqlite.bun.js +1 -1
  399. package/dist/database/sqlite.js +1 -1
  400. package/dist/database/sqlite.node.js +1 -1
  401. package/dist/database/sqlite.workerd.js +1 -1
  402. package/dist/database/v1-migration.bun.js +76 -76
  403. package/dist/database/v1-migration.js +1 -1
  404. package/dist/effect/app-node-builder.js +372 -372
  405. package/dist/effect/app-node-platform.js +2 -2
  406. package/dist/effect/keyed-mutex.js +3 -3
  407. package/dist/effect/websocket-constructor.js +1 -1
  408. package/dist/environment/driver.js +1 -1
  409. package/dist/environment/environment.js +93 -93
  410. package/dist/environment/exec-defaults.js +2 -2
  411. package/dist/environment/files.js +1 -1
  412. package/dist/environment/index.js +95 -95
  413. package/dist/environment/local.js +2 -2
  414. package/dist/environment/memory.js +2 -2
  415. package/dist/environment/unavailable.js +1 -1
  416. package/dist/event/sql.js +1 -1
  417. package/dist/event-logger.js +70 -70
  418. package/dist/file-access.js +104 -104
  419. package/dist/file-mutation.js +94 -94
  420. package/dist/file-retention.js +1 -1
  421. package/dist/filesystem/fff.bun.js +2 -2
  422. package/dist/filesystem/fff.js +1 -1
  423. package/dist/filesystem/fff.node.js +2 -2
  424. package/dist/filesystem/fff.workerd.js +2 -2
  425. package/dist/filesystem/ignore.js +1 -1
  426. package/dist/filesystem/location-watcher-policy.js +6 -6
  427. package/dist/filesystem/location-watcher.js +228 -228
  428. package/dist/filesystem/protected.js +1 -1
  429. package/dist/filesystem/search.js +103 -103
  430. package/dist/filesystem/watcher-binding.js +3 -3
  431. package/dist/filesystem/watcher.js +13 -13
  432. package/dist/filesystem.js +106 -106
  433. package/dist/form.js +70 -70
  434. package/dist/formatter/builtins.js +4 -4
  435. package/dist/formatter.js +87 -87
  436. package/dist/generate.js +103 -103
  437. package/dist/git.js +8 -8
  438. package/dist/github-copilot/chat/convert-to-openai-compatible-chat-messages.js +1 -1
  439. package/dist/github-copilot/chat/get-response-metadata.js +1 -1
  440. package/dist/github-copilot/chat/map-openai-compatible-finish-reason.js +1 -1
  441. package/dist/github-copilot/chat/openai-compatible-chat-language-model.js +7 -7
  442. package/dist/github-copilot/chat/openai-compatible-chat-options.js +1 -1
  443. package/dist/github-copilot/chat/openai-compatible-prepare-tools.js +1 -1
  444. package/dist/github-copilot/copilot-provider.js +17 -17
  445. package/dist/github-copilot/models.js +99 -99
  446. package/dist/github-copilot/openai-compatible-error.js +1 -1
  447. package/dist/github-copilot/responses/convert-to-openai-responses-input.js +1 -1
  448. package/dist/github-copilot/responses/map-openai-responses-finish-reason.js +1 -1
  449. package/dist/github-copilot/responses/openai-error.js +1 -1
  450. package/dist/github-copilot/responses/openai-responses-language-model.js +10 -10
  451. package/dist/github-copilot/responses/openai-responses-prepare-tools.js +6 -6
  452. package/dist/github-copilot/responses/tool/code-interpreter.js +1 -1
  453. package/dist/github-copilot/responses/tool/file-search.js +1 -1
  454. package/dist/github-copilot/responses/tool/image-generation.js +1 -1
  455. package/dist/github-copilot/responses/tool/web-search-preview.js +1 -1
  456. package/dist/github-copilot/responses/tool/web-search.js +1 -1
  457. package/dist/id/id.js +1 -1
  458. package/dist/image/photon.js +2 -2
  459. package/dist/image.js +6 -6
  460. package/dist/instance/service.js +5 -5
  461. package/dist/instance.js +363 -363
  462. package/dist/instruction-discovery.js +85 -85
  463. package/dist/instructions/builtins.js +87 -87
  464. package/dist/instructions/index.js +3 -3
  465. package/dist/integration/connection.js +3 -3
  466. package/dist/integration.js +85 -85
  467. package/dist/job.js +79 -79
  468. package/dist/kv/sql.js +2 -2
  469. package/dist/kv.js +73 -73
  470. package/dist/location-activity.js +132 -132
  471. package/dist/location-lifecycle.js +107 -107
  472. package/dist/location-service-map.js +86 -86
  473. package/dist/location-services.js +360 -360
  474. package/dist/location.js +83 -83
  475. package/dist/managed-policy.js +5 -5
  476. package/dist/mcp/client.js +91 -91
  477. package/dist/mcp/index.js +109 -109
  478. package/dist/mcp/instructions.js +129 -129
  479. package/dist/mcp/oauth.js +78 -78
  480. package/dist/mcp/stdio.js +90 -90
  481. package/dist/mime.js +1 -1
  482. package/dist/modal/models.js +99 -99
  483. package/dist/model-resolver.js +98 -98
  484. package/dist/model.js +98 -98
  485. package/dist/models-dev.js +107 -107
  486. package/dist/oauth/page.js +1 -1
  487. package/dist/permission/saved.js +78 -78
  488. package/dist/permission/sql.js +5 -5
  489. package/dist/permission.js +111 -111
  490. package/dist/persistent-pty/binary.bun.js +1 -1
  491. package/dist/persistent-pty/daemon.js +1 -1
  492. package/dist/persistent-pty/index.js +86 -86
  493. package/dist/persistent-pty/pty-binding.js +1 -1
  494. package/dist/persistent-pty.js +75 -75
  495. package/dist/plugin/agent.js +102 -102
  496. package/dist/plugin/command.js +100 -100
  497. package/dist/plugin/hooks.js +5 -5
  498. package/dist/plugin/host.js +219 -219
  499. package/dist/plugin/identity.js +3 -3
  500. package/dist/plugin/instance.js +5 -5
  501. package/dist/plugin/internal.js +335 -335
  502. package/dist/plugin/mcp-codemode-defaults.js +3 -3
  503. package/dist/plugin/models-dev.js +96 -96
  504. package/dist/plugin/module.js +5 -5
  505. package/dist/plugin/optimize.js +2 -2
  506. package/dist/plugin/plan.js +102 -102
  507. package/dist/plugin/promise.js +1 -1
  508. package/dist/plugin/provider/amazon-bedrock.js +90 -90
  509. package/dist/plugin/provider/azure.js +124 -124
  510. package/dist/plugin/provider/cerebras.js +1 -1
  511. package/dist/plugin/provider/chatgpt.js +93 -93
  512. package/dist/plugin/provider/cloudflare-ai-gateway.js +120 -120
  513. package/dist/plugin/provider/cloudflare-workers-ai.js +121 -121
  514. package/dist/plugin/provider/cohere.js +2 -2
  515. package/dist/plugin/provider/configured.js +119 -119
  516. package/dist/plugin/provider/digitalocean.js +93 -93
  517. package/dist/plugin/provider/dynamic.js +2 -2
  518. package/dist/plugin/provider/factory.js +1 -1
  519. package/dist/plugin/provider/gateway.js +2 -2
  520. package/dist/plugin/provider/github-copilot.js +95 -95
  521. package/dist/plugin/provider/gitlab.js +93 -93
  522. package/dist/plugin/provider/google-vertex.js +90 -90
  523. package/dist/plugin/provider/kilo.js +1 -1
  524. package/dist/plugin/provider/llmgateway.js +78 -78
  525. package/dist/plugin/provider/lmstudio.js +122 -122
  526. package/dist/plugin/provider/modal.js +92 -92
  527. package/dist/plugin/provider/nvidia.js +1 -1
  528. package/dist/plugin/provider/ollama.js +122 -122
  529. package/dist/plugin/provider/openai.js +93 -93
  530. package/dist/plugin/provider/opencode.js +95 -95
  531. package/dist/plugin/provider/openrouter.js +91 -91
  532. package/dist/plugin/provider/perplexity.js +2 -2
  533. package/dist/plugin/provider/poe.js +79 -79
  534. package/dist/plugin/provider/prompt-cache-key.js +90 -90
  535. package/dist/plugin/provider/sap-ai-core.js +91 -91
  536. package/dist/plugin/provider/sdk-factory.js +1 -1
  537. package/dist/plugin/provider/snowflake-cortex.js +122 -122
  538. package/dist/plugin/provider/venice.js +2 -2
  539. package/dist/plugin/provider/vercel.js +90 -90
  540. package/dist/plugin/provider/vllm.js +120 -120
  541. package/dist/plugin/provider/xai.js +91 -91
  542. package/dist/plugin/provider/zenmux.js +1 -1
  543. package/dist/plugin/provider.js +163 -163
  544. package/dist/plugin/sdk.js +74 -74
  545. package/dist/plugin/service.js +3 -3
  546. package/dist/plugin/skill.js +139 -139
  547. package/dist/plugin/source-directory.js +1 -1
  548. package/dist/plugin/supervisor.js +352 -352
  549. package/dist/plugin/tool-input-repair.js +2 -2
  550. package/dist/plugin/update.js +6 -6
  551. package/dist/plugin/vcs/git.js +86 -86
  552. package/dist/plugin/vcs/hg.js +86 -86
  553. package/dist/plugin/verbosity.js +91 -91
  554. package/dist/plugin/warming.js +121 -121
  555. package/dist/plugin/websearch/exa.js +7 -7
  556. package/dist/plugin/websearch/firecrawl.js +8 -8
  557. package/dist/plugin/websearch/index.js +9 -9
  558. package/dist/plugin/websearch/mcp.js +2 -2
  559. package/dist/plugin/websearch/parallel.js +8 -8
  560. package/dist/plugin/websearch/tavily.js +4 -4
  561. package/dist/plugin/websearch/tinyfish.js +4 -4
  562. package/dist/plugin.js +226 -226
  563. package/dist/project/schema.js +4 -4
  564. package/dist/project/sql.js +4 -4
  565. package/dist/project.js +82 -82
  566. package/dist/provider.js +97 -97
  567. package/dist/pty/protocol.js +1 -1
  568. package/dist/pty/ticket.js +1 -1
  569. package/dist/pty.js +89 -89
  570. package/dist/reference/instructions.js +89 -89
  571. package/dist/reference.js +91 -91
  572. package/dist/repository-cache.js +81 -81
  573. package/dist/repository.js +1 -1
  574. package/dist/ripgrep/binary.js +2 -2
  575. package/dist/ripgrep.js +97 -97
  576. package/dist/rpc.js +86 -86
  577. package/dist/schema.js +1 -1
  578. package/dist/session/affinity.js +1 -1
  579. package/dist/session/command.js +74 -74
  580. package/dist/session/compaction.js +133 -133
  581. package/dist/session/context.js +153 -153
  582. package/dist/session/diff.js +88 -88
  583. package/dist/session/environment.js +5 -5
  584. package/dist/session/error.js +5 -5
  585. package/dist/session/event.js +1 -1
  586. package/dist/session/execution/restart.js +222 -222
  587. package/dist/session/execution.js +126 -126
  588. package/dist/session/generate.js +152 -152
  589. package/dist/session/history.js +15 -15
  590. package/dist/session/inbox.js +88 -88
  591. package/dist/session/info.js +3 -3
  592. package/dist/session/instruction-entry.js +79 -79
  593. package/dist/session/instruction-state.js +8 -8
  594. package/dist/session/instructions.js +93 -93
  595. package/dist/session/message-updater.js +2 -2
  596. package/dist/session/message.js +1 -1
  597. package/dist/session/model-request.js +118 -118
  598. package/dist/session/model-transport.js +7 -7
  599. package/dist/session/move.js +130 -130
  600. package/dist/session/projector.js +86 -86
  601. package/dist/session/prompt.js +105 -105
  602. package/dist/session/provider-context.js +3 -3
  603. package/dist/session/revert.js +90 -90
  604. package/dist/session/run-coordinator.js +1 -1
  605. package/dist/session/runner/index.js +3 -3
  606. package/dist/session/runner/llm.js +230 -230
  607. package/dist/session/runner/max-steps.js +1 -1
  608. package/dist/session/runner/model.js +98 -98
  609. package/dist/session/runner/publish-llm-event.js +3 -3
  610. package/dist/session/runner/retry.js +4 -4
  611. package/dist/session/runner/step.js +124 -124
  612. package/dist/session/runner/to-llm-message.js +2 -2
  613. package/dist/session/schema.js +5 -5
  614. package/dist/session/session.js +172 -172
  615. package/dist/session/shell.js +138 -138
  616. package/dist/session/skill.js +103 -103
  617. package/dist/session/sql.js +5 -5
  618. package/dist/session/stats.js +73 -73
  619. package/dist/session/store.js +85 -85
  620. package/dist/session/subagent-completion.js +1 -1
  621. package/dist/session/subagent-job.js +211 -211
  622. package/dist/session/system-prompt.js +3 -3
  623. package/dist/session/title.js +151 -151
  624. package/dist/session/to-session-error.js +111 -111
  625. package/dist/session/transfer.js +216 -216
  626. package/dist/session/usage.js +1 -1
  627. package/dist/session.js +217 -217
  628. package/dist/shell/parse.js +6 -6
  629. package/dist/shell/result.js +1 -1
  630. package/dist/shell/scan.js +1 -1
  631. package/dist/shell/select.js +13 -13
  632. package/dist/shell.js +140 -140
  633. package/dist/skill/discovery.js +6 -6
  634. package/dist/skill/instructions.js +107 -107
  635. package/dist/skill.js +110 -110
  636. package/dist/snapshot.js +91 -91
  637. package/dist/state.js +1 -1
  638. package/dist/tool/html-markdown.js +1 -1
  639. package/dist/tool/http-body.js +1 -1
  640. package/dist/tool/mcp.js +126 -126
  641. package/dist/tool/plugin/edit.js +120 -120
  642. package/dist/tool/plugin/file-diff.js +1 -1
  643. package/dist/tool/plugin/glob.js +124 -124
  644. package/dist/tool/plugin/grep.js +120 -120
  645. package/dist/tool/plugin/mcp-resource.js +117 -117
  646. package/dist/tool/plugin/opencode.js +3 -3
  647. package/dist/tool/plugin/patch.js +122 -122
  648. package/dist/tool/plugin/question.js +101 -101
  649. package/dist/tool/plugin/read.js +125 -125
  650. package/dist/tool/plugin/shell.js +216 -216
  651. package/dist/tool/plugin/skill.js +109 -109
  652. package/dist/tool/plugin/subagent.js +220 -220
  653. package/dist/tool/plugin/webfetch.js +108 -108
  654. package/dist/tool/plugin/websearch.js +112 -112
  655. package/dist/tool/plugin/write.js +122 -122
  656. package/dist/tool/read-filesystem.js +100 -100
  657. package/dist/tool/runtime.js +1 -1
  658. package/dist/tool-output.js +8 -8
  659. package/dist/tool.js +16 -16
  660. package/dist/util/error-summary.js +1 -1
  661. package/dist/util/error.js +1 -1
  662. package/dist/util/git-executable.js +2 -2
  663. package/dist/util/iife.js +1 -1
  664. package/dist/util/lazy.js +1 -1
  665. package/dist/util/slug.js +1 -1
  666. package/dist/util/token.js +1 -1
  667. package/dist/util/which.js +1 -1
  668. package/dist/util/wildcard.js +1 -1
  669. package/dist/v1/config/agent.js +7 -7
  670. package/dist/v1/config/attachment.js +4 -4
  671. package/dist/v1/config/command.js +3 -3
  672. package/dist/v1/config/config.js +16 -16
  673. package/dist/v1/config/error.js +4 -4
  674. package/dist/v1/config/formatter.js +3 -3
  675. package/dist/v1/config/layout.js +1 -1
  676. package/dist/v1/config/lsp.js +3 -3
  677. package/dist/v1/config/mcp.js +4 -4
  678. package/dist/v1/config/migrate.js +92 -92
  679. package/dist/v1/config/permission.js +7 -7
  680. package/dist/v1/config/plugin.js +1 -1
  681. package/dist/v1/config/provider-options.js +1 -1
  682. package/dist/v1/config/provider.js +4 -4
  683. package/dist/v1/config/server.js +2 -2
  684. package/dist/v1/config/skills.js +3 -3
  685. package/dist/v1/permission.js +1 -1
  686. package/dist/variant.js +93 -93
  687. package/dist/vcs/patch.js +1 -1
  688. package/dist/vcs.js +87 -87
  689. package/dist/websearch.js +82 -82
  690. package/dist/wellknown/plugin.js +76 -76
  691. package/dist/wellknown.js +81 -81
  692. package/dist/workspace/driver.js +5 -5
  693. package/dist/workspace/sql.js +1 -1
  694. package/dist/workspace.js +80 -80
  695. package/dist/worktree/directory.js +2 -2
  696. package/dist/worktree/git.js +10 -10
  697. package/dist/worktree/sql.js +5 -5
  698. package/dist/worktree/strategies.js +89 -89
  699. package/dist/worktree.js +96 -96
  700. package/package.json +8 -8
  701. package/dist/chunks/state-2dkqpbz0.js +0 -26
  702. package/dist/chunks/state-9zdhvgqs.js +0 -18
  703. package/dist/chunks/state-q56rs717.js +0 -507
  704. package/dist/chunks/state-vsrsd64f.js +0 -252
  705. /package/dist/chunks/{state-0qkdqm5v.js → file-retention-0qkdqm5v.js} +0 -0
  706. /package/dist/chunks/{state-0zkw76rk.js → file-retention-0zkw76rk.js} +0 -0
  707. /package/dist/chunks/{state-17cy0kzp.js → file-retention-17cy0kzp.js} +0 -0
  708. /package/dist/chunks/{state-1cnp2v09.js → file-retention-1cnp2v09.js} +0 -0
  709. /package/dist/chunks/{state-1kg9ymc8.js → file-retention-1kg9ymc8.js} +0 -0
  710. /package/dist/chunks/{state-24dcb14g.js → file-retention-24dcb14g.js} +0 -0
  711. /package/dist/chunks/{state-2710q6r3.js → file-retention-2710q6r3.js} +0 -0
  712. /package/dist/chunks/{state-2axfhc9x.js → file-retention-2axfhc9x.js} +0 -0
  713. /package/dist/chunks/{state-2c3vjs8z.js → file-retention-2c3vjs8z.js} +0 -0
  714. /package/dist/chunks/{state-34c7v6d4.js → file-retention-34c7v6d4.js} +0 -0
  715. /package/dist/chunks/{state-359p4xyc.js → file-retention-359p4xyc.js} +0 -0
  716. /package/dist/chunks/{state-3asan66x.js → file-retention-3asan66x.js} +0 -0
  717. /package/dist/chunks/{state-3v8g72cx.js → file-retention-3v8g72cx.js} +0 -0
  718. /package/dist/chunks/{state-3w5fmr99.js → file-retention-3w5fmr99.js} +0 -0
  719. /package/dist/chunks/{state-3wcehsnq.js → file-retention-3wcehsnq.js} +0 -0
  720. /package/dist/chunks/{state-43n2bw4t.js → file-retention-43n2bw4t.js} +0 -0
  721. /package/dist/chunks/{state-4knz6hnm.js → file-retention-4knz6hnm.js} +0 -0
  722. /package/dist/chunks/{state-4vcrnpx2.js → file-retention-4vcrnpx2.js} +0 -0
  723. /package/dist/chunks/{state-4y7fprxs.js → file-retention-4y7fprxs.js} +0 -0
  724. /package/dist/chunks/{state-53557ph1.js → file-retention-53557ph1.js} +0 -0
  725. /package/dist/chunks/{state-550bvhaj.js → file-retention-550bvhaj.js} +0 -0
  726. /package/dist/chunks/{state-6prwharc.js → file-retention-6prwharc.js} +0 -0
  727. /package/dist/chunks/{state-7akdwqpd.js → file-retention-7akdwqpd.js} +0 -0
  728. /package/dist/chunks/{state-7m9af43g.js → file-retention-7m9af43g.js} +0 -0
  729. /package/dist/chunks/{state-822emrt2.js → file-retention-822emrt2.js} +0 -0
  730. /package/dist/chunks/{state-88xbtdfr.js → file-retention-88xbtdfr.js} +0 -0
  731. /package/dist/chunks/{state-8n3pysct.js → file-retention-8n3pysct.js} +0 -0
  732. /package/dist/chunks/{state-8wj87zfr.js → file-retention-8wj87zfr.js} +0 -0
  733. /package/dist/chunks/{state-922hggd3.js → file-retention-922hggd3.js} +0 -0
  734. /package/dist/chunks/{state-9a4afbnw.js → file-retention-9a4afbnw.js} +0 -0
  735. /package/dist/chunks/{state-9rqn6x4v.js → file-retention-9rqn6x4v.js} +0 -0
  736. /package/dist/chunks/{state-a6k6eb26.js → file-retention-a6k6eb26.js} +0 -0
  737. /package/dist/chunks/{state-af5trqkr.js → file-retention-af5trqkr.js} +0 -0
  738. /package/dist/chunks/{state-afrmfg78.js → file-retention-afrmfg78.js} +0 -0
  739. /package/dist/chunks/{state-aqzs7mqg.js → file-retention-aqzs7mqg.js} +0 -0
  740. /package/dist/chunks/{state-atq7p7m5.js → file-retention-atq7p7m5.js} +0 -0
  741. /package/dist/chunks/{state-bkyjaxrp.js → file-retention-bkyjaxrp.js} +0 -0
  742. /package/dist/chunks/{state-bmr6ed5q.js → file-retention-bmr6ed5q.js} +0 -0
  743. /package/dist/chunks/{state-cf4snx6d.js → file-retention-cf4snx6d.js} +0 -0
  744. /package/dist/chunks/{state-cvy3z8tj.js → file-retention-cvy3z8tj.js} +0 -0
  745. /package/dist/chunks/{state-d9fn303g.js → file-retention-d9fn303g.js} +0 -0
  746. /package/dist/chunks/{state-d9jj8t3e.js → file-retention-d9jj8t3e.js} +0 -0
  747. /package/dist/chunks/{state-dajrwvna.js → file-retention-dajrwvna.js} +0 -0
  748. /package/dist/chunks/{state-dap0rakb.js → file-retention-dap0rakb.js} +0 -0
  749. /package/dist/chunks/{state-df08tz66.js → file-retention-df08tz66.js} +0 -0
  750. /package/dist/chunks/{state-dy18nga0.js → file-retention-dy18nga0.js} +0 -0
  751. /package/dist/chunks/{state-e5kj55wp.js → file-retention-e5kj55wp.js} +0 -0
  752. /package/dist/chunks/{state-e73j6tqm.js → file-retention-e73j6tqm.js} +0 -0
  753. /package/dist/chunks/{state-ec1grn59.js → file-retention-ec1grn59.js} +0 -0
  754. /package/dist/chunks/{state-eh3zwz77.js → file-retention-eh3zwz77.js} +0 -0
  755. /package/dist/chunks/{state-emrn6kk6.js → file-retention-emrn6kk6.js} +0 -0
  756. /package/dist/chunks/{state-f0mxakyp.js → file-retention-f0mxakyp.js} +0 -0
  757. /package/dist/chunks/{state-f6n9ztr4.js → file-retention-f6n9ztr4.js} +0 -0
  758. /package/dist/chunks/{state-faypxj3z.js → file-retention-faypxj3z.js} +0 -0
  759. /package/dist/chunks/{state-fd410y7t.js → file-retention-fd410y7t.js} +0 -0
  760. /package/dist/chunks/{state-fxgpk5d8.js → file-retention-fxgpk5d8.js} +0 -0
  761. /package/dist/chunks/{state-g4wezp1m.js → file-retention-g4wezp1m.js} +0 -0
  762. /package/dist/chunks/{state-g86h250q.js → file-retention-g86h250q.js} +0 -0
  763. /package/dist/chunks/{state-gebd4c9n.js → file-retention-gebd4c9n.js} +0 -0
  764. /package/dist/chunks/{state-gftt206x.js → file-retention-gftt206x.js} +0 -0
  765. /package/dist/chunks/{state-hjbc5kem.js → file-retention-hjbc5kem.js} +0 -0
  766. /package/dist/chunks/{state-hk9envan.js → file-retention-hk9envan.js} +0 -0
  767. /package/dist/chunks/{state-j2ntwpah.js → file-retention-j2ntwpah.js} +0 -0
  768. /package/dist/chunks/{state-j5zkgpj8.js → file-retention-j5zkgpj8.js} +0 -0
  769. /package/dist/chunks/{state-jjkms2e6.js → file-retention-jjkms2e6.js} +0 -0
  770. /package/dist/chunks/{state-jr7sbwjy.js → file-retention-jr7sbwjy.js} +0 -0
  771. /package/dist/chunks/{state-jwfs4k6c.js → file-retention-jwfs4k6c.js} +0 -0
  772. /package/dist/chunks/{state-jzg6c2d5.js → file-retention-jzg6c2d5.js} +0 -0
  773. /package/dist/chunks/{state-mp448xyj.js → file-retention-mp448xyj.js} +0 -0
  774. /package/dist/chunks/{state-msx8hqn2.js → file-retention-msx8hqn2.js} +0 -0
  775. /package/dist/chunks/{state-n05xt0ee.js → file-retention-n05xt0ee.js} +0 -0
  776. /package/dist/chunks/{state-n3j8tn72.js → file-retention-n3j8tn72.js} +0 -0
  777. /package/dist/chunks/{state-njntx4h6.js → file-retention-njntx4h6.js} +0 -0
  778. /package/dist/chunks/{state-q3sfg36h.js → file-retention-q3sfg36h.js} +0 -0
  779. /package/dist/chunks/{state-q74kybfr.js → file-retention-q74kybfr.js} +0 -0
  780. /package/dist/chunks/{state-qaymkmh1.js → file-retention-qaymkmh1.js} +0 -0
  781. /package/dist/chunks/{state-qb87gjwd.js → file-retention-qb87gjwd.js} +0 -0
  782. /package/dist/chunks/{state-qfa1cgps.js → file-retention-qfa1cgps.js} +0 -0
  783. /package/dist/chunks/{state-qg3g05ea.js → file-retention-qg3g05ea.js} +0 -0
  784. /package/dist/chunks/{state-qrg20bc0.js → file-retention-qrg20bc0.js} +0 -0
  785. /package/dist/chunks/{state-rcb2kzg1.js → file-retention-rcb2kzg1.js} +0 -0
  786. /package/dist/chunks/{state-sdp7kfr6.js → file-retention-sdp7kfr6.js} +0 -0
  787. /package/dist/chunks/{state-sk3qaz4a.js → file-retention-sk3qaz4a.js} +0 -0
  788. /package/dist/chunks/{state-ssg3fenm.js → file-retention-ssg3fenm.js} +0 -0
  789. /package/dist/chunks/{state-w803qqfp.js → file-retention-w803qqfp.js} +0 -0
  790. /package/dist/chunks/{state-wc3fc9cn.js → file-retention-wc3fc9cn.js} +0 -0
  791. /package/dist/chunks/{state-wer8tq1h.js → file-retention-wer8tq1h.js} +0 -0
  792. /package/dist/chunks/{state-wtztk69x.js → file-retention-wtztk69x.js} +0 -0
  793. /package/dist/chunks/{state-x0ckcb58.js → file-retention-x0ckcb58.js} +0 -0
  794. /package/dist/chunks/{state-x61499pn.js → file-retention-x61499pn.js} +0 -0
  795. /package/dist/chunks/{state-y44na4kk.js → file-retention-y44na4kk.js} +0 -0
  796. /package/dist/chunks/{state-y8cydn3q.js → file-retention-y8cydn3q.js} +0 -0
  797. /package/dist/chunks/{state-y8f7s663.js → file-retention-y8f7s663.js} +0 -0
  798. /package/dist/chunks/{state-ygaqb7jw.js → file-retention-ygaqb7jw.js} +0 -0
  799. /package/dist/chunks/{state-ym463w8f.js → file-retention-ym463w8f.js} +0 -0
  800. /package/dist/chunks/{state-z9919s4g.js → file-retention-z9919s4g.js} +0 -0
@@ -1,49 +1,49 @@
1
1
  import {
2
2
  typeFollowing2
3
- } from "./state-2a5m3afh.js";
3
+ } from "./file-retention-2a5m3afh.js";
4
4
  import {
5
5
  RelativePath2
6
- } from "./state-922hggd3.js";
6
+ } from "./file-retention-922hggd3.js";
7
7
  import {
8
8
  Service78
9
- } from "./state-za0qyzyq.js";
9
+ } from "./file-retention-hk2p39dt.js";
10
10
  import {
11
- Service58
12
- } from "./state-k6ezk3an.js";
11
+ Service51
12
+ } from "./file-retention-ezdgcbe4.js";
13
13
  import {
14
- Service41
15
- } from "./state-ekyqktmq.js";
14
+ Service19
15
+ } from "./file-retention-87zac3px.js";
16
16
  import {
17
17
  DEFAULT_SEARCH_LIMIT2,
18
18
  DEFAULT_SEARCH_TIMEOUT_MS2,
19
19
  GlobInput2,
20
20
  Entry2
21
- } from "./state-96qm4nj4.js";
21
+ } from "./file-retention-d8tf08br.js";
22
22
  import {
23
- Service65
24
- } from "./state-bcj4p2d9.js";
23
+ Service60
24
+ } from "./file-retention-p1wser7p.js";
25
25
  import {
26
- Service44
27
- } from "./state-157c2mfw.js";
26
+ Service16
27
+ } from "./file-retention-4bdj0b3x.js";
28
28
  import {
29
29
  __export
30
- } from "./state-9rqn6x4v.js";
30
+ } from "./file-retention-9rqn6x4v.js";
31
31
 
32
32
  // src/tool/plugin/glob.ts
33
33
  var exports_glob = {};
34
34
  __export(exports_glob, {
35
35
  GlobTool: () => exports_glob,
36
- Input: () => Input11,
37
- Output: () => Output7,
38
- Plugin: () => Plugin32,
39
- name: () => name11,
40
- toModelContent: () => toModelContent6
36
+ Input: () => Input5,
37
+ Output: () => Output3,
38
+ Plugin: () => Plugin24,
39
+ name: () => name5,
40
+ toModelContent: () => toModelContent3
41
41
  });
42
42
  import { ToolFailure } from "@opencode/ai";
43
43
  import { Effect, Schema } from "effect";
44
44
  import path from "path";
45
- var name11 = "glob";
46
- var Input11 = Schema.Struct({
45
+ var name5 = "glob";
46
+ var Input5 = Schema.Struct({
47
47
  pattern: GlobInput2.fields.pattern.annotate({ description: "Glob pattern to match files against" }),
48
48
  path: Schema.optionalKey(RelativePath2).annotate({
49
49
  description: "Directory to search. Defaults to the current working directory."
@@ -55,35 +55,35 @@ var Input11 = Schema.Struct({
55
55
  description: `Maximum number of matching files to return (default: ${DEFAULT_SEARCH_LIMIT2})`
56
56
  })
57
57
  });
58
- var Output7 = Schema.Array(Entry2);
59
- var toModelContent6 = (entries, truncated = false) => {
58
+ var Output3 = Schema.Array(Entry2);
59
+ var toModelContent3 = (entries, truncated = false) => {
60
60
  const lines = entries.length === 0 ? ["No files found"] : entries.map((item) => item.path);
61
61
  if (truncated)
62
62
  lines.push("", `(Results are truncated: showing first ${entries.length} results. Consider using a more specific path or pattern.)`);
63
63
  return lines.join(`
64
64
  `);
65
65
  };
66
- var Plugin32 = {
66
+ var Plugin24 = {
67
67
  id: "opencode.tool.glob",
68
68
  effect: Effect.fn("GlobTool.Plugin")(function* (ctx) {
69
- const environment = yield* Service58;
70
- const ripgrep = yield* Service41;
69
+ const environment = yield* Service51;
70
+ const ripgrep = yield* Service19;
71
71
  const location = yield* Service78;
72
- const access = yield* Service44;
73
- const permission = yield* Service65;
72
+ const access = yield* Service16;
73
+ const permission = yield* Service60;
74
74
  yield* ctx.tool.transform((editor) => editor.add({
75
- name: name11,
75
+ name: name5,
76
76
  options: { codemode: false },
77
77
  description: 'Search file paths using a glob pattern (examples: "**/*.ts", "src/**/*.tsx").',
78
- input: Input11,
79
- output: Output7,
78
+ input: Input5,
79
+ output: Output3,
80
80
  execute: (input, context) => Effect.gen(function* () {
81
81
  const searchPath = input.path === "undefined" || input.path === "null" ? undefined : input.path;
82
82
  const source = { type: "tool", messageID: context.messageID, id: context.id };
83
83
  const target = yield* access.resolve({ path: searchPath ?? ".", kind: "directory" });
84
84
  yield* access.authorizeExternal([target], context);
85
85
  yield* permission.assert({
86
- action: name11,
86
+ action: name5,
87
87
  resources: [input.pattern],
88
88
  save: ["*"],
89
89
  metadata: {
@@ -118,11 +118,11 @@ var Plugin32 = {
118
118
  return { entries: entries.slice(0, limit), truncated: entries.length > limit };
119
119
  }).pipe(Effect.map((result) => ({
120
120
  output: result.entries,
121
- content: toModelContent6(result.entries.map((entry) => ({ ...entry, path: path.resolve(location.directory, entry.path) })), result.truncated),
121
+ content: toModelContent3(result.entries.map((entry) => ({ ...entry, path: path.resolve(location.directory, entry.path) })), result.truncated),
122
122
  metadata: { count: result.entries.length, truncated: result.truncated }
123
123
  })), Effect.mapError((error) => error instanceof ToolFailure ? error : new ToolFailure({ message: `Unable to find files matching ${input.pattern}`, error })))
124
124
  })).pipe(Effect.orDie);
125
125
  })
126
126
  };
127
127
 
128
- export { name11, Input11, Output7, toModelContent6, Plugin32, exports_glob };
128
+ export { name5, Input5, Output3, toModelContent3, Plugin24, exports_glob };
@@ -1,32 +1,32 @@
1
1
  import {
2
2
  Service83,
3
3
  node87
4
- } from "./state-48bdb4sw.js";
4
+ } from "./file-retention-p3zpz716.js";
5
5
  import {
6
- Service29,
7
- node33
8
- } from "./state-6t7r69c0.js";
6
+ Service35,
7
+ node38
8
+ } from "./file-retention-sb8j7qk3.js";
9
9
  import {
10
- Service65,
11
- node68
12
- } from "./state-bcj4p2d9.js";
10
+ Service60,
11
+ node64
12
+ } from "./file-retention-p1wser7p.js";
13
13
  import {
14
- Service38,
15
- node42
16
- } from "./state-ddv1bfz0.js";
14
+ Service47,
15
+ node51
16
+ } from "./file-retention-nsynhr37.js";
17
17
  import {
18
18
  __export
19
- } from "./state-9rqn6x4v.js";
19
+ } from "./file-retention-9rqn6x4v.js";
20
20
 
21
21
  // src/tool/mcp.ts
22
22
  var exports_mcp3 = {};
23
23
  __export(exports_mcp3, {
24
24
  McpTool: () => exports_mcp3,
25
- Service: () => Service28,
26
- layer: () => layer12,
25
+ Service: () => Service33,
26
+ layer: () => layer13,
27
27
  name: () => name14,
28
28
  namespace: () => namespace2,
29
- node: () => node32
29
+ node: () => node37
30
30
  });
31
31
  import { ToolFailure } from "@opencode/ai";
32
32
  import { McpEvent } from "@opencode/schema/mcp-event";
@@ -35,13 +35,13 @@ import { makeLocationNode } from "@opencode/util/effect/app-node";
35
35
  var namespace2 = (server) => server.replace(/[^a-zA-Z0-9_-]/g, "_");
36
36
  var name14 = (server, tool) => `${namespace2(server)}_${tool.replace(/[^a-zA-Z0-9_-]/g, "_")}`;
37
37
 
38
- class Service28 extends Context.Service()("@opencode/McpTool") {
38
+ class Service33 extends Context.Service()("@opencode/McpTool") {
39
39
  }
40
- var layer12 = Layer.effect(Service28, Effect.gen(function* () {
41
- const mcp = yield* Service29;
42
- const tools = yield* Service38;
40
+ var layer13 = Layer.effect(Service33, Effect.gen(function* () {
41
+ const mcp = yield* Service35;
42
+ const tools = yield* Service47;
43
43
  const bus = yield* Service83;
44
- const permission = yield* Service65;
44
+ const permission = yield* Service60;
45
45
  const lock = Semaphore.makeUnsafe(1);
46
46
  let discovered = [];
47
47
  const initial = yield* lock.withPermit(Effect.gen(function* () {
@@ -118,12 +118,12 @@ var layer12 = Layer.effect(Service28, Effect.gen(function* () {
118
118
  yield* bus.subscribe(McpEvent.ToolsChanged).pipe(Stream.runForEach(() => PubSub.publish(changes, undefined)), Effect.forkScoped({ startImmediately: true }));
119
119
  const updates = yield* PubSub.subscribe(changes);
120
120
  yield* Stream.fromSubscription(updates).pipe(Stream.debounce("100 millis"), Stream.runForEach(() => reconcile), Effect.forkScoped({ startImmediately: true }));
121
- return Service28.of({ flush: Effect.asVoid(Fiber.await(initial)) });
121
+ return Service33.of({ flush: Effect.asVoid(Fiber.await(initial)) });
122
122
  }));
123
- var node32 = makeLocationNode({
124
- service: Service28,
125
- layer: layer12,
126
- deps: [node42, node33, node87, node68]
123
+ var node37 = makeLocationNode({
124
+ service: Service33,
125
+ layer: layer13,
126
+ deps: [node51, node38, node87, node64]
127
127
  });
128
128
 
129
- export { namespace2, name14, Service28, layer12, node32, exports_mcp3 };
129
+ export { namespace2, name14, Service33, layer13, node37, exports_mcp3 };
@@ -1,36 +1,36 @@
1
1
  import {
2
2
  AbsolutePath2
3
- } from "./state-922hggd3.js";
3
+ } from "./file-retention-922hggd3.js";
4
4
  import {
5
5
  Service84,
6
6
  node88
7
- } from "./state-cmcrkyvs.js";
7
+ } from "./file-retention-nda5myhb.js";
8
8
  import {
9
9
  Service83,
10
10
  node87
11
- } from "./state-48bdb4sw.js";
11
+ } from "./file-retention-p3zpz716.js";
12
12
  import {
13
13
  Service80,
14
- node83
15
- } from "./state-fjmae6zs.js";
14
+ node84
15
+ } from "./file-retention-x5c9ynp6.js";
16
16
  import {
17
17
  ID16,
18
18
  Current3,
19
19
  Info32,
20
20
  UpdateInput4,
21
- Event20,
21
+ Event19,
22
22
  Vcs3
23
- } from "./state-ajmg8w9c.js";
23
+ } from "./file-retention-6x0h2hvg.js";
24
24
  import {
25
25
  ProjectTable2,
26
26
  upsertProject2
27
- } from "./state-wd3x2cqz.js";
27
+ } from "./file-retention-psazpmmj.js";
28
28
  import {
29
29
  WorktreeTable2
30
- } from "./state-94ek1h2f.js";
30
+ } from "./file-retention-gfvb90ym.js";
31
31
  import {
32
32
  __export
33
- } from "./state-9rqn6x4v.js";
33
+ } from "./file-retention-9rqn6x4v.js";
34
34
 
35
35
  // src/project.ts
36
36
  var exports_project = {};
@@ -43,7 +43,7 @@ __export(exports_project, {
43
43
  Service: () => Service79,
44
44
  UpdateInput: () => UpdateInput3,
45
45
  Vcs: () => Vcs2,
46
- node: () => node82,
46
+ node: () => node83,
47
47
  root: () => root2
48
48
  });
49
49
  import { Context, Effect, Layer, Schema } from "effect";
@@ -108,7 +108,7 @@ var layer = Layer.effect(Service79, Effect.gen(function* () {
108
108
  if (previous && previous.canonical !== project.canonical && !(yield* fs.exists(previous.canonical).pipe(Effect.orElseSucceed(() => true)))) {
109
109
  const row = yield* db.update(ProjectTable2).set({ worktree: project.canonical }).where(eq(ProjectTable2.id, project.id)).returning().get().pipe(Effect.orDie);
110
110
  if (row)
111
- yield* bus.publish(Event20.Updated, fromRow(row));
111
+ yield* bus.publish(Event19.Updated, fromRow(row));
112
112
  }
113
113
  if (!project.vcs)
114
114
  return project;
@@ -170,7 +170,7 @@ var layer = Layer.effect(Service79, Effect.gen(function* () {
170
170
  if (!row)
171
171
  return yield* new NotFoundError10({ projectID: input.projectID });
172
172
  const project = fromRow(row);
173
- yield* bus.publish(Event20.Updated, project);
173
+ yield* bus.publish(Event19.Updated, project);
174
174
  return project;
175
175
  });
176
176
  const activated = new Map;
@@ -181,7 +181,7 @@ var layer = Layer.effect(Service79, Effect.gen(function* () {
181
181
  activated.set(projectID, now);
182
182
  const row = yield* db.update(ProjectTable2).set({ time_active: now, time_updated: sql`${ProjectTable2.time_updated}` }).where(eq(ProjectTable2.id, projectID)).returning().get().pipe(Effect.orDie);
183
183
  if (row)
184
- yield* bus.publish(Event20.Updated, fromRow(row));
184
+ yield* bus.publish(Event19.Updated, fromRow(row));
185
185
  });
186
186
  const cached = Effect.fnUntraced(function* (dir) {
187
187
  return yield* fs.readFileString(path.join(dir, "opencode")).pipe(Effect.map((value) => value.trim()), Effect.map((value) => value ? ID15.make(value) : undefined), Effect.orElseSucceed(() => {
@@ -284,10 +284,10 @@ var layer = Layer.effect(Service79, Effect.gen(function* () {
284
284
  });
285
285
  return Service79.of({ list, update, activate, resolve });
286
286
  }));
287
- var node82 = makeGlobalNode({
287
+ var node83 = makeGlobalNode({
288
288
  service: Service79,
289
289
  layer,
290
- deps: [node87, node88, FSUtil.node, node83, AppProcess.node]
290
+ deps: [node87, node88, FSUtil.node, node84, AppProcess.node]
291
291
  });
292
292
 
293
- export { ID15, Vcs2, Current2, Info31, UpdateInput3, NotFoundError10, root2, Service79, node82, exports_project };
293
+ export { ID15, Vcs2, Current2, Info31, UpdateInput3, NotFoundError10, root2, Service79, node83, exports_project };
@@ -1,18 +1,18 @@
1
1
  import {
2
2
  useragent2
3
- } from "./state-ys6344d6.js";
3
+ } from "./file-retention-jp3txr2m.js";
4
4
  import {
5
5
  OAuth3,
6
- Service77
7
- } from "./state-xchw37pw.js";
6
+ Service81
7
+ } from "./file-retention-6hyqwpab.js";
8
8
  import {
9
- ID13,
9
+ ID14,
10
10
  MethodID2
11
- } from "./state-dt9bwcd0.js";
11
+ } from "./file-retention-g7vy1yxn.js";
12
12
  import {
13
- ID12,
13
+ ID13,
14
14
  mergeOverlay2
15
- } from "./state-hwxd1aqb.js";
15
+ } from "./file-retention-9wv1nt86.js";
16
16
 
17
17
  // src/plugin/provider/xai.ts
18
18
  import { define } from "@opencode/plugin/effect/plugin";
@@ -24,7 +24,7 @@ var scope = "openid profile email offline_access grok-cli:access api:access";
24
24
  var pollingSafetyMargin = 3000;
25
25
  var browserMethodID = MethodID2.make("browser");
26
26
  var deviceMethodID = MethodID2.make("device");
27
- var providerID = ID12.make("xai");
27
+ var providerID = ID13.make("xai");
28
28
  var Token = Schema.Struct({
29
29
  access_token: Schema.String,
30
30
  refresh_token: Schema.optional(Schema.String),
@@ -44,7 +44,7 @@ var DeviceError = Schema.Struct({
44
44
  });
45
45
  var decodeDeviceError = Schema.decodeUnknownOption(Schema.fromJsonString(DeviceError));
46
46
  var device = (app) => ({
47
- integrationID: ID13.make("xai"),
47
+ integrationID: ID14.make("xai"),
48
48
  method: {
49
49
  id: deviceMethodID,
50
50
  type: "oauth",
@@ -69,8 +69,8 @@ var device = (app) => ({
69
69
  var XAIPlugin2 = define({
70
70
  id: "opencode.provider.xai",
71
71
  effect: Effect.fn(function* (ctx) {
72
- const credentials = yield* Service77;
73
- yield* Effect.forEach(yield* credentials.list(ID13.make("xai")), (credential) => {
72
+ const credentials = yield* Service81;
73
+ yield* Effect.forEach(yield* credentials.list(ID14.make("xai")), (credential) => {
74
74
  if (credential.value.type !== "oauth" || credential.value.methodID !== browserMethodID)
75
75
  return Effect.void;
76
76
  return credentials.update(credential.id, {
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  __export
3
- } from "./state-9rqn6x4v.js";
3
+ } from "./file-retention-9rqn6x4v.js";
4
4
 
5
5
  // src/codemode/catalog.ts
6
6
  var exports_catalog = {};
@@ -1,15 +1,15 @@
1
1
  import {
2
2
  openaiFailedResponseHandler2
3
- } from "./state-550bvhaj.js";
3
+ } from "./file-retention-550bvhaj.js";
4
4
  import {
5
5
  convertToOpenAIResponsesInput2
6
- } from "./state-j5zkgpj8.js";
6
+ } from "./file-retention-j5zkgpj8.js";
7
7
  import {
8
8
  mapOpenAIResponseFinishReason2
9
- } from "./state-3asan66x.js";
9
+ } from "./file-retention-3asan66x.js";
10
10
  import {
11
11
  prepareResponsesTools2
12
- } from "./state-0gapa1rm.js";
12
+ } from "./file-retention-1q5awywt.js";
13
13
 
14
14
  // src/github-copilot/responses/openai-responses-language-model.ts
15
15
  import {
@@ -1,16 +1,16 @@
1
1
  import {
2
2
  SessionMessage2
3
- } from "./state-gftt206x.js";
3
+ } from "./file-retention-gftt206x.js";
4
4
  import {
5
5
  SessionSchema2
6
- } from "./state-7w99qc9d.js";
6
+ } from "./file-retention-nvxqht09.js";
7
7
  import {
8
8
  __export
9
- } from "./state-9rqn6x4v.js";
9
+ } from "./file-retention-9rqn6x4v.js";
10
10
 
11
11
  // src/session/error.ts
12
- var exports_error2 = {};
13
- __export(exports_error2, {
12
+ var exports_error = {};
13
+ __export(exports_error, {
14
14
  AgentNotFoundError: () => AgentNotFoundError2,
15
15
  AttachmentError: () => AttachmentError2,
16
16
  BusyError: () => BusyError2,
@@ -21,7 +21,7 @@ __export(exports_error2, {
21
21
  MessageNotFoundError: () => MessageNotFoundError2,
22
22
  NotFoundError: () => NotFoundError9,
23
23
  PromptConflictError: () => PromptConflictError2,
24
- SessionErrors: () => exports_error2,
24
+ SessionErrors: () => exports_error,
25
25
  SkillNotFoundError: () => SkillNotFoundError2,
26
26
  StepFailedError: () => StepFailedError2,
27
27
  SyntheticConflictError: () => SyntheticConflictError2
@@ -116,4 +116,4 @@ class SkillNotFoundError2 extends Schema.TaggedError()("Session.SkillNotFoundErr
116
116
  }) {
117
117
  }
118
118
 
119
- export { NotFoundError9, MessageNotFoundError2, ForkEmptyError2, MessageDecodeError2, AgentNotFoundError2, StepFailedError2, PromptConflictError2, SyntheticConflictError2, AttachmentError2, CompactionConflictError2, BusyError2, InboxConflictError2, SkillNotFoundError2, exports_error2 };
119
+ export { NotFoundError9, MessageNotFoundError2, ForkEmptyError2, MessageDecodeError2, AgentNotFoundError2, StepFailedError2, PromptConflictError2, SyntheticConflictError2, AttachmentError2, CompactionConflictError2, BusyError2, InboxConflictError2, SkillNotFoundError2, exports_error };
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  Timestamps2
3
- } from "./state-qfa1cgps.js";
3
+ } from "./file-retention-qfa1cgps.js";
4
4
 
5
5
  // src/kv/sql.ts
6
6
  import { sqliteTable, text } from "drizzle-orm/sqlite-core";
@@ -1,68 +1,68 @@
1
1
  import {
2
2
  Service84,
3
3
  node88
4
- } from "./state-cmcrkyvs.js";
4
+ } from "./file-retention-nda5myhb.js";
5
5
  import {
6
6
  Service83,
7
7
  node87
8
- } from "./state-48bdb4sw.js";
8
+ } from "./file-retention-p3zpz716.js";
9
9
  import {
10
10
  llmClient2
11
- } from "./state-5t3nmthw.js";
11
+ } from "./file-retention-5t3nmthw.js";
12
12
  import {
13
13
  create3
14
- } from "./state-rdw6cm16.js";
14
+ } from "./file-retention-rdw6cm16.js";
15
15
  import {
16
16
  estimate2
17
- } from "./state-h6vf3j39.js";
17
+ } from "./file-retention-h6vf3j39.js";
18
18
  import {
19
19
  SessionEvent2
20
- } from "./state-ec1grn59.js";
20
+ } from "./file-retention-ec1grn59.js";
21
21
  import {
22
22
  provenance2,
23
23
  compatible2,
24
24
  isCheckpoint2,
25
25
  encode2
26
- } from "./state-4j4tgtq5.js";
26
+ } from "./file-retention-h9wp8z5w.js";
27
27
  import {
28
- load5
29
- } from "./state-c38nnx5e.js";
28
+ load4
29
+ } from "./file-retention-7hz65nzk.js";
30
30
  import {
31
31
  toLLMMessages2
32
- } from "./state-hd8vw2pw.js";
32
+ } from "./file-retention-znsx74x0.js";
33
33
  import {
34
34
  baseTranscript2,
35
35
  unsupportedParts2,
36
36
  boundImages2,
37
- Service24,
38
- node28
39
- } from "./state-0b1r2e1j.js";
37
+ Service27,
38
+ node30
39
+ } from "./file-retention-vrd0pe5g.js";
40
40
  import {
41
41
  isRetryable2,
42
42
  policy2
43
- } from "./state-h6b02349.js";
43
+ } from "./file-retention-7pr2hkwv.js";
44
44
  import {
45
45
  toSessionError2
46
- } from "./state-szmcfww1.js";
46
+ } from "./file-retention-ega78awc.js";
47
47
  import {
48
48
  calculateCost2,
49
49
  record2,
50
50
  add2
51
- } from "./state-tdstcens.js";
51
+ } from "./file-retention-tdstcens.js";
52
52
  import {
53
53
  __export
54
- } from "./state-9rqn6x4v.js";
54
+ } from "./file-retention-9rqn6x4v.js";
55
55
 
56
56
  // src/session/compaction.ts
57
57
  var exports_compaction2 = {};
58
58
  __export(exports_compaction2, {
59
- Service: () => Service6,
59
+ Service: () => Service8,
60
60
  SessionCompaction: () => exports_compaction2,
61
61
  buildPrompt: () => buildPrompt2,
62
62
  estimateContext: () => estimateContext2,
63
63
  estimatePrompt: () => estimatePrompt2,
64
64
  layer: () => layer6,
65
- node: () => node8,
65
+ node: () => node10,
66
66
  recentUserMessages: () => recentUserMessages2
67
67
  });
68
68
  import {
@@ -78,7 +78,7 @@ import {
78
78
  } from "@opencode/ai";
79
79
  import { makeLocationNode } from "@opencode/util/effect/app-node";
80
80
  import { Context, Effect, Layer, Result, Stream } from "effect";
81
- class Service6 extends Context.Service()("@opencode/SessionCompaction") {
81
+ class Service8 extends Context.Service()("@opencode/SessionCompaction") {
82
82
  }
83
83
  var NOTHING_TO_COMPACT = { error: { type: "compaction.unavailable", message: "Nothing to compact yet" } };
84
84
  var SHRINK_STEPS = [0.7, 0.5, 0.35];
@@ -157,11 +157,11 @@ var buildPrompt2 = (update, legacy = false) => {
157
157
  };
158
158
  var NUDGE = "The previous response did not fill in the required summary template. Do not call tools. Return the summary as text using the exact section headings from the template.";
159
159
  var LEGACY_HEADING = "## Additional Context";
160
- var layer6 = Layer.effect(Service6, Effect.gen(function* () {
160
+ var layer6 = Layer.effect(Service8, Effect.gen(function* () {
161
161
  const bus = yield* Service83;
162
162
  const llm = yield* LLMClient.Service;
163
163
  const db = (yield* Service84).db;
164
- const requests = yield* Service24;
164
+ const requests = yield* Service27;
165
165
  const state = create3({
166
166
  name: "session-compaction",
167
167
  initial: () => ({ auto: true, keep: 15000 }),
@@ -249,7 +249,7 @@ var layer6 = Layer.effect(Service6, Effect.gen(function* () {
249
249
  const send = (request) => {
250
250
  if (LLMClient.canCompact(request, { mechanism: "trigger" })) {
251
251
  return Effect.gen(function* () {
252
- const history = yield* load5(db, context.session.id, "local").pipe(Effect.orDie);
252
+ const history = yield* load4(db, context.session.id, "local").pipe(Effect.orDie);
253
253
  const retained = recentUserMessages2(history, context.model, keep);
254
254
  const response = yield* llm.compact(request, { ...prepared.options, mechanism: "trigger" });
255
255
  return yield* toResult([...retained, Message.assistant(response.checkpoint)], response.usage);
@@ -452,16 +452,16 @@ ${text}`;
452
452
  }, { metadata: outcome.metadata });
453
453
  return { status: "completed" };
454
454
  });
455
- return Service6.of({
455
+ return Service8.of({
456
456
  transform: state.transform,
457
457
  reload: state.reload,
458
458
  compact: (trigger) => compact(trigger).pipe(Effect.onInterrupt(() => trigger.reason === "manual" ? Effect.void : publish(trigger, { error: { type: "compaction.interrupted", message: "Compaction was interrupted" } })), Effect.ensuring(Effect.sync(() => spent.delete(trigger.context.session.id))))
459
459
  });
460
460
  }));
461
- var node8 = makeLocationNode({
462
- service: Service6,
461
+ var node10 = makeLocationNode({
462
+ service: Service8,
463
463
  layer: layer6,
464
- deps: [node87, node88, llmClient2, node28]
464
+ deps: [node87, node88, llmClient2, node30]
465
465
  });
466
466
  var previousCompaction = (messages) => {
467
467
  const [first] = messages;
@@ -666,4 +666,4 @@ var estimateMedia = (mime) => {
666
666
  return 0;
667
667
  };
668
668
 
669
- export { Service6, buildPrompt2, layer6, node8, recentUserMessages2, estimateContext2, estimatePrompt2, exports_compaction2 };
669
+ export { Service8, buildPrompt2, layer6, node10, recentUserMessages2, estimateContext2, estimatePrompt2, exports_compaction2 };
@@ -1,15 +1,15 @@
1
1
  import {
2
2
  cleanup3
3
- } from "./state-gd4qta3r.js";
3
+ } from "./file-retention-gd4qta3r.js";
4
4
  import {
5
5
  ascending2
6
- } from "./state-tvtrv512.js";
6
+ } from "./file-retention-tvtrv512.js";
7
7
  import {
8
8
  create3
9
- } from "./state-rdw6cm16.js";
9
+ } from "./file-retention-rdw6cm16.js";
10
10
  import {
11
11
  __export
12
- } from "./state-9rqn6x4v.js";
12
+ } from "./file-retention-9rqn6x4v.js";
13
13
 
14
14
  // src/tool-output.ts
15
15
  var exports_tool_output2 = {};
@@ -18,9 +18,9 @@ __export(exports_tool_output2, {
18
18
  MAX_BYTES: () => MAX_BYTES2,
19
19
  MAX_LINES: () => MAX_LINES2,
20
20
  RETENTION: () => RETENTION3,
21
- Service: () => Service50,
21
+ Service: () => Service45,
22
22
  ToolOutput: () => exports_tool_output2,
23
- node: () => node54
23
+ node: () => node48
24
24
  });
25
25
  import path from "path";
26
26
  import { Context, Duration, Effect, Layer, Schedule } from "effect";
@@ -32,13 +32,13 @@ var MAX_BYTES2 = 50 * 1024;
32
32
  var RETENTION3 = Duration.days(7);
33
33
  var DIRECTORY3 = "tool-output";
34
34
 
35
- class Service50 extends Context.Service()("@opencode/ToolOutput") {
35
+ class Service45 extends Context.Service()("@opencode/ToolOutput") {
36
36
  }
37
37
  var cleanup = Effect.fn("ToolOutput.cleanup")(function* (fs, directory) {
38
38
  const entries = yield* fs.readDirectory(directory).pipe(Effect.map((entries) => entries.filter((entry) => /^tool_[0-9a-f]{12}/.test(entry))), Effect.orElseSucceed(() => []));
39
39
  yield* cleanup3(fs, entries.map((entry) => path.join(directory, entry)), RETENTION3);
40
40
  });
41
- var layer = Layer.effect(Service50, Effect.gen(function* () {
41
+ var layer = Layer.effect(Service45, Effect.gen(function* () {
42
42
  const fs = yield* FSUtil.Service;
43
43
  const global = yield* Global.Service;
44
44
  const directory = path.join(global.data, DIRECTORY3);
@@ -116,7 +116,7 @@ var layer = Layer.effect(Service50, Effect.gen(function* () {
116
116
  metadata: { ...result.metadata, truncated: true, outputPath: file }
117
117
  };
118
118
  });
119
- return Service50.of({
119
+ return Service45.of({
120
120
  transform: state.transform,
121
121
  reload: state.reload,
122
122
  truncate,
@@ -133,10 +133,10 @@ var cleanupNode = makeGlobalNode({
133
133
  layer: cleanupLayer,
134
134
  deps: [FSUtil.node, Global.node]
135
135
  });
136
- var node54 = makeLocationNode({
137
- service: Service50,
136
+ var node48 = makeLocationNode({
137
+ service: Service45,
138
138
  layer,
139
139
  deps: [FSUtil.node, Global.node, cleanupNode]
140
140
  });
141
141
 
142
- export { MAX_LINES2, MAX_BYTES2, RETENTION3, DIRECTORY3, Service50, node54, exports_tool_output2 };
142
+ export { MAX_LINES2, MAX_BYTES2, RETENTION3, DIRECTORY3, Service45, node48, exports_tool_output2 };
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  __export
3
- } from "./state-9rqn6x4v.js";
3
+ } from "./file-retention-9rqn6x4v.js";
4
4
 
5
5
  // src/mime.ts
6
6
  var exports_mime = {};