@opencode/core 0.0.0-dev-20829 → 0.0.0-dev-20830

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 (788) hide show
  1. package/dist/account/sql.js +1 -1
  2. package/dist/agent.js +83 -83
  3. package/dist/aisdk-native.js +91 -91
  4. package/dist/aisdk.js +96 -96
  5. package/dist/app.js +9 -9
  6. package/dist/bus.js +71 -71
  7. package/dist/chunks/{pty-tsf8s7tw.js → state-0557p3be.js} +31 -31
  8. package/dist/chunks/{pty-zmhzecev.js → state-0cg871e2.js} +5 -5
  9. package/dist/chunks/{pty-4wp3e6bz.js → state-0dfgejyr.js} +8 -8
  10. package/dist/chunks/{pty-2k8khapm.js → state-0jwsre1p.js} +5 -5
  11. package/dist/chunks/{pty-djsf3ra4.js → state-0nafeyy2.js} +17 -17
  12. package/dist/chunks/{pty-0paq2nw3.js → state-0paq2nw3.js} +1 -1
  13. package/dist/chunks/{pty-b674v2dg.js → state-0r3c1bmw.js} +5 -5
  14. package/dist/chunks/{pty-3h6fbjms.js → state-0sakkys5.js} +10 -10
  15. package/dist/chunks/{pty-0vbcp93d.js → state-0vbcp93d.js} +2 -2
  16. package/dist/chunks/{pty-pdz1473m.js → state-0ww3hhrw.js} +4 -4
  17. package/dist/chunks/{pty-qcya3rg4.js → state-11ca2t5k.js} +46 -46
  18. package/dist/chunks/{pty-y94gemam.js → state-171hx01y.js} +15 -15
  19. package/dist/chunks/{pty-yp2x3t23.js → state-1acjjqhc.js} +4 -4
  20. package/dist/chunks/{pty-pdc17wm4.js → state-1hrrgg86.js} +326 -326
  21. package/dist/chunks/{pty-az7915bh.js → state-1jpgqh2z.js} +20 -20
  22. package/dist/chunks/{pty-819j0yj5.js → state-1msdpkf3.js} +23 -23
  23. package/dist/chunks/{pty-1rh4yqvv.js → state-1nzh38e4.js} +9 -9
  24. package/dist/chunks/{pty-803mzads.js → state-1p1kcw92.js} +8 -8
  25. package/dist/chunks/{pty-fzep1s2p.js → state-1v5f3sf1.js} +13 -13
  26. package/dist/chunks/{pty-9m0tzg6a.js → state-1xzgq0dt.js} +17 -17
  27. package/dist/chunks/{pty-s9435745.js → state-1yceajqh.js} +24 -24
  28. package/dist/chunks/{pty-508e6s6p.js → state-24myjta5.js} +6 -6
  29. package/dist/chunks/{pty-8fqzmfzp.js → state-29c6hkck.js} +8 -8
  30. package/dist/chunks/{pty-vqwz5fgy.js → state-2fr77vvd.js} +25 -25
  31. package/dist/chunks/{pty-3qddgp4y.js → state-2j0vym9z.js} +24 -24
  32. package/dist/chunks/{pty-fqtvmpfq.js → state-2ktf0ed2.js} +8 -8
  33. package/dist/chunks/{pty-c84f5e61.js → state-2p5arddx.js} +13 -13
  34. package/dist/chunks/{pty-ngvyj94h.js → state-2qhyej25.js} +21 -21
  35. package/dist/chunks/{pty-m329mjby.js → state-2r93mh4x.js} +5 -5
  36. package/dist/chunks/{pty-2vvh33eb.js → state-2vvh33eb.js} +2 -2
  37. package/dist/chunks/{pty-5e3qmt7f.js → state-2wy3czpc.js} +1 -1
  38. package/dist/chunks/{pty-kr6f0vqs.js → state-2zxcz0hw.js} +25 -25
  39. package/dist/chunks/{pty-8ppnx5kq.js → state-35rvysyk.js} +6 -6
  40. package/dist/chunks/{pty-p0anqt4a.js → state-36n3adjp.js} +35 -35
  41. package/dist/chunks/{pty-3fc6dm20.js → state-3fc6dm20.js} +1 -1
  42. package/dist/chunks/{pty-3hepkmqq.js → state-3hepkmqq.js} +1 -1
  43. package/dist/chunks/{pty-3hwn7j4h.js → state-3hwn7j4h.js} +2 -2
  44. package/dist/chunks/{pty-3smtnn6g.js → state-3smtnn6g.js} +1 -1
  45. package/dist/chunks/{pty-3tvqynh2.js → state-3tvqynh2.js} +1 -1
  46. package/dist/chunks/{pty-9qgy8jr1.js → state-3y03j49s.js} +9 -9
  47. package/dist/chunks/{pty-kxkrnkd5.js → state-3yqqv8dh.js} +37 -37
  48. package/dist/chunks/{pty-3zsf4n22.js → state-3zsf4n22.js} +1 -1
  49. package/dist/chunks/{pty-281xas1t.js → state-42y89c4e.js} +20 -20
  50. package/dist/chunks/{pty-x24b9x88.js → state-4g85bg4y.js} +20 -20
  51. package/dist/chunks/{pty-0vygd7f8.js → state-4gbdxvwm.js} +17 -17
  52. package/dist/chunks/{pty-yj1m88h6.js → state-4tm360fx.js} +11 -11
  53. package/dist/chunks/{pty-4ts7tf6z.js → state-4ts7tf6z.js} +2 -2
  54. package/dist/chunks/{pty-a9vjqg87.js → state-4v653aq5.js} +4 -4
  55. package/dist/chunks/{pty-qazrcecv.js → state-50jyrsbn.js} +17 -17
  56. package/dist/chunks/{pty-6q9eydss.js → state-51wkfrt1.js} +5 -5
  57. package/dist/chunks/{pty-r94pvvab.js → state-54ma36ye.js} +4 -4
  58. package/dist/chunks/{pty-ev663pnx.js → state-58peq4z0.js} +3 -3
  59. package/dist/chunks/{pty-k1zym2rk.js → state-5av0yrf2.js} +23 -23
  60. package/dist/chunks/{pty-f3zadn6b.js → state-5jsc8r4j.js} +11 -11
  61. package/dist/chunks/{pty-5m9w47nd.js → state-5m9w47nd.js} +1 -1
  62. package/dist/chunks/{pty-gskmna2p.js → state-5zrs708t.js} +20 -20
  63. package/dist/chunks/{pty-drnf6xwf.js → state-63db42yp.js} +2 -2
  64. package/dist/chunks/{pty-jf6x9176.js → state-6ee6mja4.js} +11 -11
  65. package/dist/chunks/{pty-6xb47vfp.js → state-6xb47vfp.js} +1 -1
  66. package/dist/chunks/{pty-q2v8m3fk.js → state-6xpm1twa.js} +10 -10
  67. package/dist/chunks/{pty-5xfmpj1j.js → state-72cj47zm.js} +8 -8
  68. package/dist/chunks/{pty-75ejmma1.js → state-72xps0ff.js} +28 -28
  69. package/dist/chunks/{pty-rqjzxqxs.js → state-77nza94r.js} +13 -13
  70. package/dist/chunks/{pty-7bmhse3q.js → state-7bmhse3q.js} +1 -1
  71. package/dist/chunks/{pty-32tw229e.js → state-7mtsxbrk.js} +17 -17
  72. package/dist/chunks/{pty-pnzf6mjf.js → state-7zt5x37y.js} +1 -1
  73. package/dist/chunks/{pty-7twrzkxr.js → state-82qb1t6x.js} +22 -22
  74. package/dist/chunks/{pty-62gtt4vs.js → state-83exb234.js} +26 -26
  75. package/dist/chunks/{pty-g8yq79xy.js → state-83tfp6t6.js} +17 -17
  76. package/dist/chunks/{pty-nfs59v65.js → state-8472ey6f.js} +29 -29
  77. package/dist/chunks/{pty-w1eejvng.js → state-84txncab.js} +5 -5
  78. package/dist/chunks/{pty-r44wx0p4.js → state-87bedf94.js} +11 -11
  79. package/dist/chunks/{pty-3pq4wa5c.js → state-88xma3a9.js} +11 -11
  80. package/dist/chunks/{pty-tcezcvh9.js → state-89znhe33.js} +4 -4
  81. package/dist/chunks/{pty-hpfvhvya.js → state-8aaqm6qj.js} +8 -8
  82. package/dist/chunks/{pty-wjtb6svr.js → state-8enzew06.js} +34 -34
  83. package/dist/chunks/{pty-8m6m0r52.js → state-8m6m0r52.js} +1 -1
  84. package/dist/chunks/{pty-7fkffz83.js → state-8sze2n9a.js} +8 -8
  85. package/dist/chunks/{pty-pzfg0ztk.js → state-8v02gd0t.js} +11 -11
  86. package/dist/chunks/{pty-j09zfasm.js → state-91qna3x0.js} +3 -3
  87. package/dist/chunks/{pty-n8xxfej3.js → state-944h6gfv.js} +29 -29
  88. package/dist/chunks/{pty-na80sj88.js → state-9a7pyw65.js} +30 -30
  89. package/dist/chunks/{pty-fqq9xsk7.js → state-9bm5c0md.js} +19 -19
  90. package/dist/chunks/{pty-0f36crf5.js → state-9bxt77bv.js} +54 -54
  91. package/dist/chunks/{pty-thtzhryg.js → state-9f40cav3.js} +12 -12
  92. package/dist/chunks/{pty-s08bddtt.js → state-9ndy2hht.js} +15 -15
  93. package/dist/chunks/{pty-mxcn0d43.js → state-9qd4mbdw.js} +71 -71
  94. package/dist/chunks/{pty-34dz50e5.js → state-9rbc7h43.js} +16 -16
  95. package/dist/chunks/state-9zdhvgqs.js +18 -0
  96. package/dist/chunks/{pty-sdmzpsns.js → state-a0x3wzs7.js} +31 -31
  97. package/dist/chunks/{pty-dxx87avg.js → state-a5ah3nzf.js} +23 -23
  98. package/dist/chunks/{pty-axbkptea.js → state-a7e5kesa.js} +2 -2
  99. package/dist/chunks/{pty-k1y0s7m5.js → state-adnxhg2x.js} +34 -34
  100. package/dist/chunks/{pty-7g19e4tp.js → state-adrw5mdv.js} +85 -85
  101. package/dist/chunks/{pty-vynmhvtw.js → state-ahqtxjpt.js} +13 -13
  102. package/dist/chunks/{pty-fd80m7p3.js → state-ayty09pp.js} +34 -34
  103. package/dist/chunks/{pty-re8fv4z8.js → state-b3d5k4tq.js} +11 -11
  104. package/dist/chunks/{pty-3s8fpsh7.js → state-b7ag9snz.js} +42 -42
  105. package/dist/chunks/{pty-gwkq74jr.js → state-b7e85k7b.js} +26 -26
  106. package/dist/chunks/{pty-0cnykqaq.js → state-b8zqr6yd.js} +11 -11
  107. package/dist/chunks/{pty-736mwy1a.js → state-b96c8sgz.js} +45 -45
  108. package/dist/chunks/{pty-zjm5cem5.js → state-bgvakscb.js} +15 -15
  109. package/dist/chunks/{pty-4qb8ma89.js → state-bh3znjnz.js} +28 -28
  110. package/dist/chunks/{pty-dxep3sqh.js → state-bxkmvfck.js} +26 -26
  111. package/dist/chunks/{pty-rj3eygr5.js → state-c41wscbt.js} +2 -2
  112. package/dist/chunks/{pty-5d607bsg.js → state-c765mh8b.js} +9 -9
  113. package/dist/chunks/{pty-sa8ekw3f.js → state-c8ax2afj.js} +2 -2
  114. package/dist/chunks/{pty-h64c4a83.js → state-ccx2wqdd.js} +8 -8
  115. package/dist/chunks/{pty-jvcn2d3z.js → state-cfnx7scx.js} +50 -50
  116. package/dist/chunks/{pty-g8e6zt8f.js → state-cfyzhaat.js} +11 -11
  117. package/dist/chunks/{pty-jbt4rr2d.js → state-cg9scsxc.js} +44 -44
  118. package/dist/chunks/{pty-gnp9y88q.js → state-ckxmgpbg.js} +21 -21
  119. package/dist/chunks/{pty-fzd7gkan.js → state-cnv8w6dz.js} +88 -88
  120. package/dist/chunks/{pty-mrhpe6wz.js → state-cwmk4gds.js} +7 -7
  121. package/dist/chunks/{pty-g7g2pdja.js → state-cyzep8tn.js} +4 -4
  122. package/dist/chunks/{pty-d5h7yrcx.js → state-d2m5w5xb.js} +43 -43
  123. package/dist/chunks/{pty-62g730j6.js → state-d5nwps6r.js} +4 -4
  124. package/dist/chunks/{pty-mxvxcxwy.js → state-db2wf4at.js} +4 -4
  125. package/dist/chunks/{pty-32cjn77w.js → state-dfam6ca0.js} +7 -7
  126. package/dist/chunks/{pty-7e6328vk.js → state-djj1n09f.js} +7 -7
  127. package/dist/chunks/{pty-af1eyefv.js → state-dp1z867b.js} +27 -27
  128. package/dist/chunks/{pty-3zg7z3bw.js → state-dyabj6q8.js} +13 -13
  129. package/dist/chunks/{pty-ebqxd2ph.js → state-e5wg3wb1.js} +21 -21
  130. package/dist/chunks/{pty-razh9zgp.js → state-e6g20vae.js} +16 -16
  131. package/dist/chunks/{pty-1gpb38yh.js → state-e8vwfchq.js} +6 -6
  132. package/dist/chunks/{pty-s8d7rejh.js → state-eaj1djv9.js} +6 -6
  133. package/dist/chunks/{pty-ryr25ayn.js → state-edrmdtr5.js} +7 -7
  134. package/dist/chunks/{pty-eej6y6fw.js → state-eej6y6fw.js} +2 -2
  135. package/dist/chunks/{pty-ef5x83kb.js → state-ef5x83kb.js} +1 -1
  136. package/dist/chunks/{pty-61r3a0pq.js → state-efpar2mq.js} +3 -3
  137. package/dist/chunks/state-ej0jrn3e.js +26 -0
  138. package/dist/chunks/{pty-3rqkssp8.js → state-emzsebxx.js} +8 -8
  139. package/dist/chunks/{pty-c1fqxshp.js → state-es1vcfrp.js} +3 -3
  140. package/dist/chunks/{pty-3pkc36ya.js → state-esc9b6cf.js} +7 -7
  141. package/dist/chunks/{pty-rwa6rxfx.js → state-f06gwrsq.js} +8 -8
  142. package/dist/chunks/{pty-816wh8nz.js → state-f80x16a8.js} +13 -13
  143. package/dist/chunks/{pty-28rwbfbs.js → state-fbw9agv5.js} +29 -29
  144. package/dist/chunks/{pty-8bzfeptx.js → state-fdqap5k5.js} +176 -176
  145. package/dist/chunks/{pty-m2ca2kay.js → state-ftz7pznp.js} +10 -10
  146. package/dist/chunks/{pty-wze0qs61.js → state-gaabptfq.js} +23 -23
  147. package/dist/chunks/{pty-gd4qta3r.js → state-gd4qta3r.js} +1 -1
  148. package/dist/chunks/{pty-688cz1j9.js → state-ghhxwymr.js} +10 -10
  149. package/dist/chunks/{pty-ma48de29.js → state-ghrzdqqx.js} +5 -5
  150. package/dist/chunks/{pty-1qxv4gah.js → state-ghsw8zx7.js} +13 -13
  151. package/dist/chunks/{pty-gk8qb678.js → state-gk8qb678.js} +1 -1
  152. package/dist/chunks/{pty-kf5rw7j4.js → state-gtx4ax2e.js} +48 -48
  153. package/dist/chunks/{pty-yrcj3v3g.js → state-gw7cjrad.js} +4 -4
  154. package/dist/chunks/{pty-jtgbyr4a.js → state-h40gvhgm.js} +22 -22
  155. package/dist/chunks/{pty-h6vf3j39.js → state-h6vf3j39.js} +1 -1
  156. package/dist/chunks/{pty-h7s7r6s9.js → state-h7s7r6s9.js} +2 -2
  157. package/dist/chunks/{pty-rrcp1k08.js → state-h93dctaq.js} +11 -11
  158. package/dist/chunks/{pty-s17w1n1e.js → state-h986hd8g.js} +20 -20
  159. package/dist/chunks/{pty-c2z82zd3.js → state-hazngtky.js} +4 -4
  160. package/dist/chunks/{pty-dys7k0s0.js → state-hcv80w8f.js} +8 -8
  161. package/dist/chunks/{pty-ynnr5y5c.js → state-hd86p3k8.js} +4 -4
  162. package/dist/chunks/{pty-nyczhf3x.js → state-hdn8e5hd.js} +4 -4
  163. package/dist/chunks/{pty-g3er6je0.js → state-hdxgsgcv.js} +5 -5
  164. package/dist/chunks/{pty-hgz4x7wa.js → state-hgz4x7wa.js} +1 -1
  165. package/dist/chunks/{pty-kne8f3cn.js → state-hn57h045.js} +4 -4
  166. package/dist/chunks/{pty-j56e64zr.js → state-j56e64zr.js} +1 -1
  167. package/dist/chunks/{pty-jzg6w2y0.js → state-j9z6me7c.js} +9 -9
  168. package/dist/chunks/{pty-vkp0w3yf.js → state-jjneh92f.js} +14 -14
  169. package/dist/chunks/{pty-3fbg59cn.js → state-jjw261ry.js} +13 -13
  170. package/dist/chunks/{pty-6ma4rgg5.js → state-jnft9wxv.js} +8 -8
  171. package/dist/chunks/{pty-5n9cp24j.js → state-jqd3eecq.js} +9 -9
  172. package/dist/chunks/{pty-tbr92r1g.js → state-jqpbgzsk.js} +10 -10
  173. package/dist/chunks/{pty-w0y00tyh.js → state-jvmjd6nh.js} +17 -17
  174. package/dist/chunks/{pty-gn2rf22p.js → state-jznafckq.js} +11 -11
  175. package/dist/chunks/{pty-835y4q1g.js → state-k0b9ft2z.js} +11 -11
  176. package/dist/chunks/{pty-cyfy6ny6.js → state-k6dq7md3.js} +20 -20
  177. package/dist/chunks/{pty-gjscf0hp.js → state-k8ktzaxx.js} +14 -14
  178. package/dist/chunks/{pty-s0c7z8s7.js → state-k9jq8a9f.js} +24 -24
  179. package/dist/chunks/{pty-e920mvbt.js → state-kg8sbxbz.js} +23 -23
  180. package/dist/chunks/{pty-khmqacep.js → state-khmqacep.js} +1 -1
  181. package/dist/chunks/{pty-a89e0tac.js → state-kkp8zx71.js} +4 -4
  182. package/dist/chunks/{pty-4zyzs0ed.js → state-krdw763r.js} +38 -38
  183. package/dist/chunks/{pty-s8qr3ezm.js → state-krjewr0x.js} +31 -31
  184. package/dist/chunks/{pty-0xcfrkz9.js → state-krmj6tzy.js} +20 -20
  185. package/dist/chunks/{pty-7ssckh79.js → state-m3gr93j5.js} +14 -14
  186. package/dist/chunks/{pty-drmqggy3.js → state-m93cgr6s.js} +3 -3
  187. package/dist/chunks/{pty-m9w0rfyh.js → state-m9w0rfyh.js} +1 -1
  188. package/dist/chunks/{pty-5315f502.js → state-mnvbn3nr.js} +6 -6
  189. package/dist/chunks/{pty-ngjdjm4k.js → state-mxwkr8w2.js} +12 -12
  190. package/dist/chunks/{pty-z2sr2ytx.js → state-n5my2xp1.js} +15 -15
  191. package/dist/chunks/{pty-2n79zsqk.js → state-n8axfj05.js} +5 -5
  192. package/dist/chunks/{pty-nrekvyfh.js → state-ndkkganb.js} +22 -22
  193. package/dist/chunks/{pty-33gphc4y.js → state-nh7hmz05.js} +5 -5
  194. package/dist/chunks/{pty-pxj76zhh.js → state-ny5dcp87.js} +27 -27
  195. package/dist/chunks/{pty-vh716j4k.js → state-nza4bhrq.js} +8 -8
  196. package/dist/chunks/{pty-1ajx6rf5.js → state-pa8pe2x7.js} +8 -8
  197. package/dist/chunks/{pty-dcy4apwd.js → state-pdhsfkgt.js} +11 -11
  198. package/dist/chunks/{pty-bxqk5pf5.js → state-phz50fbd.js} +9 -9
  199. package/dist/chunks/{pty-pjvnvgmy.js → state-pjvnvgmy.js} +1 -1
  200. package/dist/chunks/{pty-pknna89w.js → state-pknna89w.js} +1 -1
  201. package/dist/chunks/{pty-4rd96g3b.js → state-px6rtfw4.js} +16 -16
  202. package/dist/chunks/{pty-hkffa77z.js → state-pyg4v0b6.js} +4 -4
  203. package/dist/chunks/{pty-mzw0q7vr.js → state-pz9yt98x.js} +9 -9
  204. package/dist/chunks/{pty-q0xm7vwc.js → state-q0xm7vwc.js} +2 -2
  205. package/dist/chunks/{pty-jefh3zb1.js → state-qjcd7mbq.js} +19 -19
  206. package/dist/chunks/{pty-qnc92qwc.js → state-qnc92qwc.js} +1 -1
  207. package/dist/chunks/{pty-9q77khpg.js → state-qp0mnk5r.js} +5 -5
  208. package/dist/chunks/{pty-pey5f48j.js → state-qp1byhys.js} +1 -1
  209. package/dist/chunks/{pty-qsdy395h.js → state-qsdy395h.js} +1 -1
  210. package/dist/chunks/{pty-m632hd4m.js → state-qv34d5f9.js} +13 -13
  211. package/dist/chunks/{pty-j7d1263c.js → state-r02hbddp.js} +18 -18
  212. package/dist/chunks/{pty-g2x3q6j9.js → state-r96659h9.js} +37 -37
  213. package/dist/chunks/{pty-6dp5gy92.js → state-rc1szs54.js} +6 -6
  214. package/dist/chunks/{pty-xbt9ga98.js → state-rccpv2ye.js} +18 -18
  215. package/dist/chunks/{pty-rdw6cm16.js → state-rdw6cm16.js} +1 -1
  216. package/dist/chunks/{pty-4rt7dqfm.js → state-rg9sha5m.js} +7 -7
  217. package/dist/chunks/{pty-dffyxrs7.js → state-rjjk3vjj.js} +19 -19
  218. package/dist/chunks/{pty-v68v43a8.js → state-rpgyk1wb.js} +16 -16
  219. package/dist/chunks/{pty-extdh6e7.js → state-rxg074bj.js} +22 -22
  220. package/dist/chunks/{pty-f2mw6jyj.js → state-s5qxm7c2.js} +11 -11
  221. package/dist/chunks/{pty-r6pqh68g.js → state-sc2t89x6.js} +12 -12
  222. package/dist/chunks/{pty-my4zabxr.js → state-ss358qx3.js} +3 -3
  223. package/dist/chunks/{pty-e80seqcp.js → state-sxcaecc0.js} +3 -3
  224. package/dist/chunks/{pty-syv4x271.js → state-syv4x271.js} +1 -1
  225. package/dist/chunks/{pty-k4ek9np0.js → state-t2y7bdcw.js} +18 -18
  226. package/dist/chunks/{pty-sh68mvxb.js → state-t8neg7x7.js} +33 -33
  227. package/dist/chunks/{pty-tazgh4e4.js → state-tazgh4e4.js} +1 -1
  228. package/dist/chunks/{pty-tdstcens.js → state-tdstcens.js} +1 -1
  229. package/dist/chunks/{pty-rert0e01.js → state-tkb22qbm.js} +2 -2
  230. package/dist/chunks/{pty-yak2w91k.js → state-tvwsnpay.js} +5 -5
  231. package/dist/chunks/{pty-waskdk5r.js → state-txm3e8qz.js} +4 -4
  232. package/dist/chunks/{pty-tyytaxap.js → state-tyytaxap.js} +1 -1
  233. package/dist/chunks/{pty-v0es1rhs.js → state-v0es1rhs.js} +2 -2
  234. package/dist/chunks/{pty-v7p4zvkq.js → state-v7p4zvkq.js} +2 -2
  235. package/dist/chunks/{pty-6h6xfm99.js → state-vbv3keym.js} +11 -11
  236. package/dist/chunks/{pty-veqvce7d.js → state-veqvce7d.js} +1 -1
  237. package/dist/chunks/{pty-mx9vqzsb.js → state-vqfzq50h.js} +6 -6
  238. package/dist/chunks/{pty-cnhye612.js → state-vv5tc97j.js} +2 -2
  239. package/dist/chunks/{pty-1dmh880y.js → state-vvdwz8bp.js} +4 -4
  240. package/dist/chunks/{pty-vzs5sf6e.js → state-vzs5sf6e.js} +1 -1
  241. package/dist/chunks/{pty-1sheza49.js → state-vztm24v3.js} +43 -43
  242. package/dist/chunks/{pty-1pxz8ven.js → state-w39jehkq.js} +5 -5
  243. package/dist/chunks/{pty-es811akx.js → state-w3ajezp3.js} +14 -14
  244. package/dist/chunks/{pty-w3wsvvr9.js → state-w3wsvvr9.js} +1 -1
  245. package/dist/chunks/{pty-0hbbthgq.js → state-w88g6rmw.js} +5 -5
  246. package/dist/chunks/{pty-82ayfpam.js → state-w8zb7k19.js} +11 -11
  247. package/dist/chunks/{pty-wd87259q.js → state-wd87259q.js} +1 -1
  248. package/dist/chunks/{pty-xrpg47n6.js → state-wjqb2vp5.js} +9 -9
  249. package/dist/chunks/{pty-s1sr5m6z.js → state-wm17x2yg.js} +15 -15
  250. package/dist/chunks/{pty-rwc2pc3v.js → state-wrt27mz2.js} +11 -11
  251. package/dist/chunks/{pty-efbe88xk.js → state-wtdq1xvb.js} +18 -18
  252. package/dist/chunks/{pty-gncde6fa.js → state-wzkn9px2.js} +6 -6
  253. package/dist/chunks/{pty-xkb1khsr.js → state-x119eg88.js} +30 -30
  254. package/dist/chunks/{pty-nv00r1cz.js → state-x1hcexjc.js} +3 -3
  255. package/dist/chunks/{pty-5zkvyedw.js → state-x372j2ps.js} +27 -27
  256. package/dist/chunks/{pty-d57w54x3.js → state-x39s0e6k.js} +16 -16
  257. package/dist/chunks/{pty-kj20kd1j.js → state-x4adhrm2.js} +43 -43
  258. package/dist/chunks/{pty-p8aeyc23.js → state-x52x10kp.js} +25 -25
  259. package/dist/chunks/{pty-hnym75r4.js → state-x63y8anf.js} +4 -4
  260. package/dist/chunks/{pty-qz98z2ah.js → state-xbg4wfgw.js} +9 -9
  261. package/dist/chunks/{pty-qqeeq2t9.js → state-xfkkasph.js} +7 -7
  262. package/dist/chunks/{pty-v01rw2zy.js → state-xjk7skpn.js} +23 -23
  263. package/dist/chunks/{pty-ks0ccrx6.js → state-xsmtq4qf.js} +8 -8
  264. package/dist/chunks/{pty-py0hhzem.js → state-xw7yq2vg.js} +32 -32
  265. package/dist/chunks/{pty-y1fvbwt7.js → state-y1fvbwt7.js} +1 -1
  266. package/dist/chunks/state-y2yc1hmv.js +253 -0
  267. package/dist/chunks/{pty-6rm5yzkt.js → state-y5rf7nzv.js} +4 -4
  268. package/dist/chunks/{pty-dpkg50ah.js → state-y71avatq.js} +4 -4
  269. package/dist/chunks/{pty-3f2jm17j.js → state-ybtjykms.js} +11 -11
  270. package/dist/chunks/{pty-pwzbey2q.js → state-yknhy38n.js} +50 -50
  271. package/dist/chunks/{pty-a053vxgn.js → state-ykry54sk.js} +30 -30
  272. package/dist/chunks/{pty-h6ztf8yp.js → state-ywszk2jg.js} +5 -5
  273. package/dist/chunks/{pty-wjr9rjd7.js → state-ywt8jp22.js} +6 -6
  274. package/dist/chunks/{pty-z0bkrqjs.js → state-z0bkrqjs.js} +1 -1
  275. package/dist/chunks/{pty-s80jrect.js → state-z0xmsghh.js} +22 -22
  276. package/dist/chunks/{pty-2kpekj74.js → state-z3a8mnsb.js} +45 -45
  277. package/dist/chunks/{pty-9xf5g41x.js → state-z88250gw.js} +26 -26
  278. package/dist/chunks/{pty-2rqksdxh.js → state-z89zfw7h.js} +28 -28
  279. package/dist/chunks/{pty-ypeaesjs.js → state-zcwza7b0.js} +6 -6
  280. package/dist/chunks/{pty-k3m00qb7.js → state-zj4r7vbk.js} +3 -3
  281. package/dist/chunks/{pty-zr2ceqn5.js → state-zr2ceqn5.js} +1 -1
  282. package/dist/chunks/{pty-9p8g6ccm.js → state-zx4tn7qt.js} +3 -3
  283. package/dist/chunks/{pty-zxq2ej10.js → state-zxq2ej10.js} +1 -1
  284. package/dist/chunks/{pty-scgrse2b.js → state-zyk1yjk8.js} +5 -5
  285. package/dist/codemode/catalog.js +1 -1
  286. package/dist/codemode/instructions.js +7 -7
  287. package/dist/codemode/tool.js +3 -3
  288. package/dist/codemode/web.js +1 -1
  289. package/dist/command.js +87 -87
  290. package/dist/config/discovery.js +86 -86
  291. package/dist/config/markdown.js +1 -1
  292. package/dist/config/normalize.js +101 -101
  293. package/dist/config/plugin/agent.js +118 -118
  294. package/dist/config/plugin/command.js +207 -207
  295. package/dist/config/plugin/compaction.js +156 -156
  296. package/dist/config/plugin/compatibility.js +136 -136
  297. package/dist/config/plugin/entry-observer.js +1 -1
  298. package/dist/config/plugin/formatter.js +119 -119
  299. package/dist/config/plugin/image.js +118 -118
  300. package/dist/config/plugin/instruction.js +92 -92
  301. package/dist/config/plugin/location-watcher.js +118 -118
  302. package/dist/config/plugin/mcp.js +125 -125
  303. package/dist/config/plugin/policy.js +119 -119
  304. package/dist/config/plugin/provider.js +118 -118
  305. package/dist/config/plugin/reference.js +120 -120
  306. package/dist/config/plugin/shell.js +118 -118
  307. package/dist/config/plugin/skill-file.js +104 -104
  308. package/dist/config/plugin/skill.js +137 -137
  309. package/dist/config/plugin/snapshot.js +118 -118
  310. package/dist/config/plugin/source.js +121 -121
  311. package/dist/config/plugin/tool-output.js +119 -119
  312. package/dist/config/plugin/websearch.js +117 -117
  313. package/dist/config/plugin/worktree.js +120 -120
  314. package/dist/config/variable.js +3 -3
  315. package/dist/config/watch.js +1 -1
  316. package/dist/config.js +123 -123
  317. package/dist/credential/sql.js +2 -2
  318. package/dist/credential.js +87 -87
  319. package/dist/database/database.js +68 -68
  320. package/dist/database/drizzle/effect-sqlite/driver.js +14 -14
  321. package/dist/database/drizzle/effect-sqlite/index.js +14 -14
  322. package/dist/database/drizzle/effect-sqlite/session.js +11 -11
  323. package/dist/database/drizzle/index.js +15 -15
  324. package/dist/database/drizzle/internal/drizzle-utils.js +1 -1
  325. package/dist/database/drizzle/sqlite-core/effect/count.js +1 -1
  326. package/dist/database/drizzle/sqlite-core/effect/db.js +9 -9
  327. package/dist/database/drizzle/sqlite-core/effect/delete.js +2 -2
  328. package/dist/database/drizzle/sqlite-core/effect/index.js +10 -10
  329. package/dist/database/drizzle/sqlite-core/effect/insert.js +2 -2
  330. package/dist/database/drizzle/sqlite-core/effect/query.js +1 -1
  331. package/dist/database/drizzle/sqlite-core/effect/raw.js +1 -1
  332. package/dist/database/drizzle/sqlite-core/effect/select.js +2 -2
  333. package/dist/database/drizzle/sqlite-core/effect/session.js +10 -10
  334. package/dist/database/drizzle/sqlite-core/effect/update.js +2 -2
  335. package/dist/database/drizzle.js +16 -16
  336. package/dist/database/migration/20260127222353_familiar_lady_ursula.js +1 -1
  337. package/dist/database/migration/20260211171708_add_project_commands.js +1 -1
  338. package/dist/database/migration/20260213144116_wakeful_the_professor.js +1 -1
  339. package/dist/database/migration/20260225215848_workspace.js +1 -1
  340. package/dist/database/migration/20260227213759_add_session_workspace_id.js +1 -1
  341. package/dist/database/migration/20260228203230_blue_harpoon.js +1 -1
  342. package/dist/database/migration/20260303231226_add_workspace_fields.js +1 -1
  343. package/dist/database/migration/20260309230000_move_org_to_state.js +1 -1
  344. package/dist/database/migration/20260312043431_session_message_cursor.js +1 -1
  345. package/dist/database/migration/20260323234822_events.js +1 -1
  346. package/dist/database/migration/20260410174513_workspace-name.js +1 -1
  347. package/dist/database/migration/20260413175956_chief_energizer.js +1 -1
  348. package/dist/database/migration/20260423070820_add_icon_url_override.js +1 -1
  349. package/dist/database/migration/20260427172553_slow_nightmare.js +1 -1
  350. package/dist/database/migration/20260428004200_add_session_path.js +1 -1
  351. package/dist/database/migration/20260501142318_next_venus.js +1 -1
  352. package/dist/database/migration/20260504145000_add_sync_owner.js +1 -1
  353. package/dist/database/migration/20260507164347_add_workspace_time.js +1 -1
  354. package/dist/database/migration/20260510033149_session_usage.js +1 -1
  355. package/dist/database/migration/20260511000411_data_migration_state.js +1 -1
  356. package/dist/database/migration/20260511173437_session-metadata.js +1 -1
  357. package/dist/database/migration/20260601010001_normalize_storage_paths.js +1 -1
  358. package/dist/database/migration/20260601202201_amazing_prowler.js +1 -1
  359. package/dist/database/migration/20260602002951_lowly_union_jack.js +1 -1
  360. package/dist/database/migration/20260602182828_add_project_directories.js +1 -1
  361. package/dist/database/migration/20260603001617_session_message_projection_indexes.js +1 -1
  362. package/dist/database/migration/20260603040000_session_message_projection_order.js +1 -1
  363. package/dist/database/migration/20260603141458_session_input_inbox.js +1 -1
  364. package/dist/database/migration/20260603160727_jittery_ezekiel_stane.js +1 -1
  365. package/dist/database/migration/20260604172448_event_sourced_session_input.js +1 -1
  366. package/dist/database/migration/20260605003541_add_session_context_snapshot.js +1 -1
  367. package/dist/database/migration/20260605042240_add_context_epoch_agent.js +1 -1
  368. package/dist/database/migration/20260611035744_credential.js +1 -1
  369. package/dist/database/migration/20260611192811_lush_chimera.js +1 -1
  370. package/dist/database/migration/20260612174303_project_dir_strategy.js +1 -1
  371. package/dist/database/migration/20260622142730_simplify_session_context_epoch.js +1 -1
  372. package/dist/database/migration/20260622170816_reset_v2_session_state.js +1 -1
  373. package/dist/database/migration/20260622202450_simplify_session_input.js +1 -1
  374. package/dist/database/migration/20260804233008_loose_psylocke.js +1 -1
  375. package/dist/database/migration/20260805200742_import_legacy_credentials.js +1 -1
  376. package/dist/database/migration/20260808023530_workspace_domain.js +1 -1
  377. package/dist/database/migration/20260811161259_execution_claim_attempts.js +1 -1
  378. package/dist/database/migration/20260812181746_session_inbox.js +1 -1
  379. package/dist/database/migration/20260812213948_worktree.js +1 -1
  380. package/dist/database/migration/20260819222447_session_viewed_state.js +1 -1
  381. package/dist/database/migration/20260823191254_nullable_workspace_binding.js +1 -1
  382. package/dist/database/migration/20260910120000_clear_v1_session_permission.js +1 -1
  383. package/dist/database/migration/20260923013825_project_time_active.js +1 -1
  384. package/dist/database/migration/20261007190000_azure_cli_external_credential.js +1 -1
  385. package/dist/database/migration/20261010180456_project_time_archived.js +1 -1
  386. package/dist/database/migration.gen.js +51 -51
  387. package/dist/database/migration.js +53 -53
  388. package/dist/database/path.js +2 -2
  389. package/dist/database/schema.gen.js +1 -1
  390. package/dist/database/schema.sql.js +1 -1
  391. package/dist/database/sqlite.bun.js +1 -1
  392. package/dist/database/sqlite.js +1 -1
  393. package/dist/database/sqlite.node.js +1 -1
  394. package/dist/database/sqlite.workerd.js +1 -1
  395. package/dist/database/v1-migration.bun.js +78 -78
  396. package/dist/database/v1-migration.js +1 -1
  397. package/dist/effect/app-node-builder.js +368 -368
  398. package/dist/effect/app-node-platform.js +2 -2
  399. package/dist/effect/keyed-mutex.js +3 -3
  400. package/dist/effect/websocket-constructor.js +1 -1
  401. package/dist/environment/driver.js +1 -1
  402. package/dist/environment/environment.js +95 -95
  403. package/dist/environment/exec-defaults.js +2 -2
  404. package/dist/environment/files.js +1 -1
  405. package/dist/environment/index.js +95 -95
  406. package/dist/environment/local.js +2 -2
  407. package/dist/environment/memory.js +2 -2
  408. package/dist/environment/unavailable.js +1 -1
  409. package/dist/event/sql.js +1 -1
  410. package/dist/event-logger.js +72 -72
  411. package/dist/file-access.js +106 -106
  412. package/dist/file-mutation.js +96 -96
  413. package/dist/file-retention.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/location-watcher-policy.js +6 -6
  419. package/dist/filesystem/location-watcher.js +216 -216
  420. package/dist/filesystem/protected.js +3 -3
  421. package/dist/filesystem/search.js +105 -105
  422. package/dist/filesystem/watcher-binding.js +1 -1
  423. package/dist/filesystem/watcher.js +13 -13
  424. package/dist/filesystem.js +108 -108
  425. package/dist/form.js +88 -88
  426. package/dist/formatter/builtins.js +4 -4
  427. package/dist/formatter.js +89 -89
  428. package/dist/generate.js +107 -107
  429. package/dist/git.js +6 -6
  430. package/dist/github-copilot/chat/convert-to-openai-compatible-chat-messages.js +1 -1
  431. package/dist/github-copilot/chat/get-response-metadata.js +1 -1
  432. package/dist/github-copilot/chat/map-openai-compatible-finish-reason.js +1 -1
  433. package/dist/github-copilot/chat/openai-compatible-chat-language-model.js +7 -7
  434. package/dist/github-copilot/chat/openai-compatible-chat-options.js +1 -1
  435. package/dist/github-copilot/chat/openai-compatible-prepare-tools.js +1 -1
  436. package/dist/github-copilot/copilot-provider.js +17 -17
  437. package/dist/github-copilot/models.js +101 -101
  438. package/dist/github-copilot/openai-compatible-error.js +1 -1
  439. package/dist/github-copilot/responses/convert-to-openai-responses-input.js +1 -1
  440. package/dist/github-copilot/responses/map-openai-responses-finish-reason.js +1 -1
  441. package/dist/github-copilot/responses/openai-error.js +1 -1
  442. package/dist/github-copilot/responses/openai-responses-language-model.js +10 -10
  443. package/dist/github-copilot/responses/openai-responses-prepare-tools.js +6 -6
  444. package/dist/github-copilot/responses/tool/code-interpreter.js +1 -1
  445. package/dist/github-copilot/responses/tool/file-search.js +1 -1
  446. package/dist/github-copilot/responses/tool/image-generation.js +1 -1
  447. package/dist/github-copilot/responses/tool/web-search-preview.js +1 -1
  448. package/dist/github-copilot/responses/tool/web-search.js +1 -1
  449. package/dist/image/photon.js +2 -2
  450. package/dist/image.js +6 -6
  451. package/dist/instance/service.js +5 -5
  452. package/dist/instance.js +359 -359
  453. package/dist/instruction-discovery.js +85 -85
  454. package/dist/instructions/builtins.js +89 -89
  455. package/dist/instructions/index.js +3 -3
  456. package/dist/integration/connection.js +3 -3
  457. package/dist/integration.js +89 -89
  458. package/dist/job.js +78 -78
  459. package/dist/kv/sql.js +2 -2
  460. package/dist/kv.js +75 -75
  461. package/dist/location-activity.js +133 -133
  462. package/dist/location-lifecycle.js +109 -109
  463. package/dist/location-service-map.js +88 -88
  464. package/dist/location-services.js +356 -356
  465. package/dist/location.js +83 -83
  466. package/dist/managed-policy.js +8 -8
  467. package/dist/mcp/client.js +93 -93
  468. package/dist/mcp/index.js +111 -111
  469. package/dist/mcp/instructions.js +131 -131
  470. package/dist/mcp/oauth.js +80 -80
  471. package/dist/mcp/stdio.js +92 -92
  472. package/dist/mime.js +1 -1
  473. package/dist/modal/models.js +101 -101
  474. package/dist/model-resolver.js +100 -100
  475. package/dist/model.js +104 -104
  476. package/dist/models-dev.js +109 -109
  477. package/dist/oauth/page.js +1 -1
  478. package/dist/permission/saved.js +84 -84
  479. package/dist/permission/sql.js +5 -5
  480. package/dist/permission.js +117 -117
  481. package/dist/persistent-pty/binary.bun.js +1 -1
  482. package/dist/persistent-pty/daemon.js +1 -1
  483. package/dist/persistent-pty/index.js +86 -86
  484. package/dist/persistent-pty/pty-binding.js +1 -1
  485. package/dist/persistent-pty.js +77 -77
  486. package/dist/plugin/agent.js +76 -76
  487. package/dist/plugin/command.js +102 -102
  488. package/dist/plugin/hooks.js +5 -5
  489. package/dist/plugin/host.js +213 -213
  490. package/dist/plugin/identity.js +3 -3
  491. package/dist/plugin/instance.js +5 -5
  492. package/dist/plugin/internal.js +331 -331
  493. package/dist/plugin/mcp-codemode-defaults.js +3 -3
  494. package/dist/plugin/models-dev.js +98 -98
  495. package/dist/plugin/module.js +119 -119
  496. package/dist/plugin/optimize.js +4 -4
  497. package/dist/plugin/plan.js +104 -104
  498. package/dist/plugin/promise.js +1 -1
  499. package/dist/plugin/provider/amazon-bedrock.js +92 -92
  500. package/dist/plugin/provider/azure.js +119 -119
  501. package/dist/plugin/provider/cerebras.js +1 -1
  502. package/dist/plugin/provider/chatgpt.js +96 -96
  503. package/dist/plugin/provider/cloudflare-ai-gateway.js +115 -115
  504. package/dist/plugin/provider/cloudflare-workers-ai.js +116 -116
  505. package/dist/plugin/provider/cohere.js +2 -2
  506. package/dist/plugin/provider/configured.js +114 -114
  507. package/dist/plugin/provider/databricks.js +1 -1
  508. package/dist/plugin/provider/digitalocean.js +95 -95
  509. package/dist/plugin/provider/dynamic.js +2 -2
  510. package/dist/plugin/provider/factory.js +1 -1
  511. package/dist/plugin/provider/github-copilot.js +97 -97
  512. package/dist/plugin/provider/gitlab.js +95 -95
  513. package/dist/plugin/provider/google-vertex.js +115 -115
  514. package/dist/plugin/provider/kilo.js +1 -1
  515. package/dist/plugin/provider/llmgateway.js +80 -80
  516. package/dist/plugin/provider/lmstudio.js +127 -127
  517. package/dist/plugin/provider/local.js +124 -124
  518. package/dist/plugin/provider/modal.js +94 -94
  519. package/dist/plugin/provider/neon.js +1 -1
  520. package/dist/plugin/provider/nvidia.js +1 -1
  521. package/dist/plugin/provider/ollama.js +127 -127
  522. package/dist/plugin/provider/openai.js +97 -97
  523. package/dist/plugin/provider/opencode.js +99 -99
  524. package/dist/plugin/provider/openrouter.js +93 -93
  525. package/dist/plugin/provider/perplexity.js +2 -2
  526. package/dist/plugin/provider/poe.js +81 -81
  527. package/dist/plugin/provider/prompt-cache-key.js +92 -92
  528. package/dist/plugin/provider/sap-ai-core.js +93 -93
  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/vercel.js +92 -92
  532. package/dist/plugin/provider/vllm.js +127 -127
  533. package/dist/plugin/provider/xai.js +93 -93
  534. package/dist/plugin/provider/zenmux.js +1 -1
  535. package/dist/plugin/provider.js +169 -169
  536. package/dist/plugin/sdk.js +78 -78
  537. package/dist/plugin/service.js +3 -3
  538. package/dist/plugin/skill.js +136 -136
  539. package/dist/plugin/source-directory.js +1 -1
  540. package/dist/plugin/supervisor.js +350 -350
  541. package/dist/plugin/tool-input-repair.js +4 -4
  542. package/dist/plugin/update.js +6 -6
  543. package/dist/plugin/vcs/git.js +88 -88
  544. package/dist/plugin/vcs/hg.js +88 -88
  545. package/dist/plugin/verbosity.js +95 -95
  546. package/dist/plugin/warming.js +116 -116
  547. package/dist/plugin/websearch/exa.js +7 -7
  548. package/dist/plugin/websearch/firecrawl.js +6 -6
  549. package/dist/plugin/websearch/index.js +9 -9
  550. package/dist/plugin/websearch/mcp.js +4 -4
  551. package/dist/plugin/websearch/parallel.js +8 -8
  552. package/dist/plugin/websearch/tavily.js +6 -6
  553. package/dist/plugin/websearch/tinyfish.js +8 -8
  554. package/dist/plugin.js +222 -222
  555. package/dist/project/schema.js +2 -2
  556. package/dist/project/sql.js +4 -4
  557. package/dist/project.js +82 -82
  558. package/dist/provider.js +103 -103
  559. package/dist/pty/protocol.js +1 -1
  560. package/dist/pty/ticket.js +1 -1
  561. package/dist/pty.js +101 -101
  562. package/dist/reference/instructions.js +89 -89
  563. package/dist/reference.js +93 -93
  564. package/dist/repository-cache.js +83 -83
  565. package/dist/repository.js +3 -3
  566. package/dist/ripgrep/binary.js +2 -2
  567. package/dist/ripgrep.js +99 -99
  568. package/dist/rpc.js +88 -88
  569. package/dist/schema.js +1 -1
  570. package/dist/session/affinity.js +3 -3
  571. package/dist/session/command.js +76 -76
  572. package/dist/session/compaction.js +137 -137
  573. package/dist/session/context.js +155 -155
  574. package/dist/session/diff.js +90 -90
  575. package/dist/session/environment.js +5 -5
  576. package/dist/session/error.js +5 -5
  577. package/dist/session/event.js +1 -1
  578. package/dist/session/execution/restart.js +216 -216
  579. package/dist/session/execution.js +129 -129
  580. package/dist/session/generate.js +156 -156
  581. package/dist/session/history.js +13 -13
  582. package/dist/session/inbox.js +90 -90
  583. package/dist/session/info.js +3 -3
  584. package/dist/session/instruction-entry.js +79 -79
  585. package/dist/session/instruction-state.js +8 -8
  586. package/dist/session/instructions.js +99 -99
  587. package/dist/session/message-updater.js +2 -2
  588. package/dist/session/message.js +1 -1
  589. package/dist/session/model-request.js +122 -122
  590. package/dist/session/model-transport.js +9 -9
  591. package/dist/session/move.js +131 -131
  592. package/dist/session/projector.js +88 -88
  593. package/dist/session/prompt.js +107 -107
  594. package/dist/session/provider-context.js +3 -3
  595. package/dist/session/revert.js +92 -92
  596. package/dist/session/run-coordinator.js +3 -3
  597. package/dist/session/runner/index.js +3 -3
  598. package/dist/session/runner/llm.js +226 -226
  599. package/dist/session/runner/max-steps.js +1 -1
  600. package/dist/session/runner/model.js +100 -100
  601. package/dist/session/runner/publish-llm-event.js +115 -115
  602. package/dist/session/runner/retry.js +4 -4
  603. package/dist/session/runner/step.js +127 -127
  604. package/dist/session/runner/to-llm-message.js +2 -2
  605. package/dist/session/schema.js +5 -5
  606. package/dist/session/session.js +166 -166
  607. package/dist/session/shell.js +132 -132
  608. package/dist/session/skill.js +107 -107
  609. package/dist/session/sql.js +5 -5
  610. package/dist/session/stats.js +75 -75
  611. package/dist/session/store.js +89 -89
  612. package/dist/session/subagent-completion.js +1 -1
  613. package/dist/session/subagent-job.js +207 -207
  614. package/dist/session/system-prompt.js +5 -5
  615. package/dist/session/title.js +159 -159
  616. package/dist/session/to-session-error.js +113 -113
  617. package/dist/session/transfer.js +209 -209
  618. package/dist/session/usage.js +1 -1
  619. package/dist/session.js +215 -215
  620. package/dist/shell/parse.js +6 -6
  621. package/dist/shell/result.js +1 -1
  622. package/dist/shell/scan.js +1 -1
  623. package/dist/shell/select.js +13 -13
  624. package/dist/shell.js +134 -134
  625. package/dist/skill/discovery.js +6 -6
  626. package/dist/skill/instructions.js +109 -109
  627. package/dist/skill.js +114 -114
  628. package/dist/snapshot.js +95 -95
  629. package/dist/state.js +1 -1
  630. package/dist/tool/html-markdown.js +1 -1
  631. package/dist/tool/http-body.js +1 -1
  632. package/dist/tool/mcp.js +130 -130
  633. package/dist/tool/plugin/edit.js +120 -120
  634. package/dist/tool/plugin/file-diff.js +1 -1
  635. package/dist/tool/plugin/glob.js +124 -124
  636. package/dist/tool/plugin/grep.js +126 -126
  637. package/dist/tool/plugin/mcp-resource.js +119 -119
  638. package/dist/tool/plugin/opencode.js +111 -111
  639. package/dist/tool/plugin/patch.js +124 -124
  640. package/dist/tool/plugin/question.js +105 -105
  641. package/dist/tool/plugin/read.js +127 -127
  642. package/dist/tool/plugin/shell.js +210 -210
  643. package/dist/tool/plugin/skill.js +115 -115
  644. package/dist/tool/plugin/subagent.js +214 -214
  645. package/dist/tool/plugin/webfetch.js +114 -114
  646. package/dist/tool/plugin/websearch.js +114 -114
  647. package/dist/tool/plugin/write.js +124 -124
  648. package/dist/tool/read-filesystem.js +102 -102
  649. package/dist/tool/runtime.js +1 -1
  650. package/dist/tool-output.js +7 -7
  651. package/dist/tool.js +16 -16
  652. package/dist/util/error-summary.js +1 -1
  653. package/dist/util/error.js +1 -1
  654. package/dist/util/git-executable.js +2 -2
  655. package/dist/util/iife.js +1 -1
  656. package/dist/util/lazy.js +1 -1
  657. package/dist/util/slug.js +1 -1
  658. package/dist/util/token.js +1 -1
  659. package/dist/util/which.js +1 -1
  660. package/dist/util/wildcard.js +1 -1
  661. package/dist/v1/config/agent.js +5 -5
  662. package/dist/v1/config/command.js +5 -5
  663. package/dist/v1/config/error.js +2 -2
  664. package/dist/v1/config/mcp.js +4 -4
  665. package/dist/v1/config/migrate.js +94 -94
  666. package/dist/v1/config/permission.js +3 -3
  667. package/dist/v1/config/plugin.js +3 -3
  668. package/dist/v1/config/provider-options.js +1 -1
  669. package/dist/v1/config/provider.js +4 -4
  670. package/dist/variant.js +95 -95
  671. package/dist/vcs/patch.js +1 -1
  672. package/dist/vcs.js +91 -91
  673. package/dist/websearch.js +84 -84
  674. package/dist/wellknown/plugin.js +76 -76
  675. package/dist/wellknown.js +81 -81
  676. package/dist/workspace/driver.js +7 -7
  677. package/dist/workspace/sql.js +1 -1
  678. package/dist/workspace.js +84 -84
  679. package/dist/worktree/directory.js +2 -2
  680. package/dist/worktree/git.js +8 -8
  681. package/dist/worktree/sql.js +5 -5
  682. package/dist/worktree/strategies.js +91 -91
  683. package/dist/worktree.js +98 -98
  684. package/package.json +8 -8
  685. package/dist/chunks/pty-882ve7ed.js +0 -253
  686. package/dist/chunks/pty-gb9jrr1j.js +0 -26
  687. package/dist/chunks/pty-qc068m1q.js +0 -18
  688. /package/dist/chunks/{pty-0qkdqm5v.js → state-0qkdqm5v.js} +0 -0
  689. /package/dist/chunks/{pty-0zkw76rk.js → state-0zkw76rk.js} +0 -0
  690. /package/dist/chunks/{pty-17cy0kzp.js → state-17cy0kzp.js} +0 -0
  691. /package/dist/chunks/{pty-1cnp2v09.js → state-1cnp2v09.js} +0 -0
  692. /package/dist/chunks/{pty-1kg9ymc8.js → state-1kg9ymc8.js} +0 -0
  693. /package/dist/chunks/{pty-24dcb14g.js → state-24dcb14g.js} +0 -0
  694. /package/dist/chunks/{pty-2710q6r3.js → state-2710q6r3.js} +0 -0
  695. /package/dist/chunks/{pty-2axfhc9x.js → state-2axfhc9x.js} +0 -0
  696. /package/dist/chunks/{pty-2bv980vf.js → state-2bv980vf.js} +0 -0
  697. /package/dist/chunks/{pty-2c3vjs8z.js → state-2c3vjs8z.js} +0 -0
  698. /package/dist/chunks/{pty-359p4xyc.js → state-359p4xyc.js} +0 -0
  699. /package/dist/chunks/{pty-3asan66x.js → state-3asan66x.js} +0 -0
  700. /package/dist/chunks/{pty-3t0ybcrp.js → state-3t0ybcrp.js} +0 -0
  701. /package/dist/chunks/{pty-3v8g72cx.js → state-3v8g72cx.js} +0 -0
  702. /package/dist/chunks/{pty-3wcehsnq.js → state-3wcehsnq.js} +0 -0
  703. /package/dist/chunks/{pty-43n2bw4t.js → state-43n2bw4t.js} +0 -0
  704. /package/dist/chunks/{pty-4knz6hnm.js → state-4knz6hnm.js} +0 -0
  705. /package/dist/chunks/{pty-4vcrnpx2.js → state-4vcrnpx2.js} +0 -0
  706. /package/dist/chunks/{pty-4y7fprxs.js → state-4y7fprxs.js} +0 -0
  707. /package/dist/chunks/{pty-53557ph1.js → state-53557ph1.js} +0 -0
  708. /package/dist/chunks/{pty-550bvhaj.js → state-550bvhaj.js} +0 -0
  709. /package/dist/chunks/{pty-5qd3pb7m.js → state-5qd3pb7m.js} +0 -0
  710. /package/dist/chunks/{pty-6prwharc.js → state-6prwharc.js} +0 -0
  711. /package/dist/chunks/{pty-6q2bdcd1.js → state-6q2bdcd1.js} +0 -0
  712. /package/dist/chunks/{pty-7akdwqpd.js → state-7akdwqpd.js} +0 -0
  713. /package/dist/chunks/{pty-7m9af43g.js → state-7m9af43g.js} +0 -0
  714. /package/dist/chunks/{pty-822emrt2.js → state-822emrt2.js} +0 -0
  715. /package/dist/chunks/{pty-84wd9syh.js → state-84wd9syh.js} +0 -0
  716. /package/dist/chunks/{pty-88xbtdfr.js → state-88xbtdfr.js} +0 -0
  717. /package/dist/chunks/{pty-8n3pysct.js → state-8n3pysct.js} +0 -0
  718. /package/dist/chunks/{pty-8wj87zfr.js → state-8wj87zfr.js} +0 -0
  719. /package/dist/chunks/{pty-9a4afbnw.js → state-9a4afbnw.js} +0 -0
  720. /package/dist/chunks/{pty-9rqn6x4v.js → state-9rqn6x4v.js} +0 -0
  721. /package/dist/chunks/{pty-a6k6eb26.js → state-a6k6eb26.js} +0 -0
  722. /package/dist/chunks/{pty-af5trqkr.js → state-af5trqkr.js} +0 -0
  723. /package/dist/chunks/{pty-afrmfg78.js → state-afrmfg78.js} +0 -0
  724. /package/dist/chunks/{pty-aqzs7mqg.js → state-aqzs7mqg.js} +0 -0
  725. /package/dist/chunks/{pty-atq7p7m5.js → state-atq7p7m5.js} +0 -0
  726. /package/dist/chunks/{pty-bkyjaxrp.js → state-bkyjaxrp.js} +0 -0
  727. /package/dist/chunks/{pty-bmr6ed5q.js → state-bmr6ed5q.js} +0 -0
  728. /package/dist/chunks/{pty-bw78ga2c.js → state-bw78ga2c.js} +0 -0
  729. /package/dist/chunks/{pty-cf4snx6d.js → state-cf4snx6d.js} +0 -0
  730. /package/dist/chunks/{pty-cvy3z8tj.js → state-cvy3z8tj.js} +0 -0
  731. /package/dist/chunks/{pty-d9fn303g.js → state-d9fn303g.js} +0 -0
  732. /package/dist/chunks/{pty-d9jj8t3e.js → state-d9jj8t3e.js} +0 -0
  733. /package/dist/chunks/{pty-dajrwvna.js → state-dajrwvna.js} +0 -0
  734. /package/dist/chunks/{pty-dap0rakb.js → state-dap0rakb.js} +0 -0
  735. /package/dist/chunks/{pty-df08tz66.js → state-df08tz66.js} +0 -0
  736. /package/dist/chunks/{pty-dy18nga0.js → state-dy18nga0.js} +0 -0
  737. /package/dist/chunks/{pty-e5kj55wp.js → state-e5kj55wp.js} +0 -0
  738. /package/dist/chunks/{pty-e73j6tqm.js → state-e73j6tqm.js} +0 -0
  739. /package/dist/chunks/{pty-ec1grn59.js → state-ec1grn59.js} +0 -0
  740. /package/dist/chunks/{pty-eh3zwz77.js → state-eh3zwz77.js} +0 -0
  741. /package/dist/chunks/{pty-emrn6kk6.js → state-emrn6kk6.js} +0 -0
  742. /package/dist/chunks/{pty-f0mxakyp.js → state-f0mxakyp.js} +0 -0
  743. /package/dist/chunks/{pty-f6n9ztr4.js → state-f6n9ztr4.js} +0 -0
  744. /package/dist/chunks/{pty-faypxj3z.js → state-faypxj3z.js} +0 -0
  745. /package/dist/chunks/{pty-fd410y7t.js → state-fd410y7t.js} +0 -0
  746. /package/dist/chunks/{pty-g4wezp1m.js → state-g4wezp1m.js} +0 -0
  747. /package/dist/chunks/{pty-g86h250q.js → state-g86h250q.js} +0 -0
  748. /package/dist/chunks/{pty-gebd4c9n.js → state-gebd4c9n.js} +0 -0
  749. /package/dist/chunks/{pty-gftt206x.js → state-gftt206x.js} +0 -0
  750. /package/dist/chunks/{pty-hk9envan.js → state-hk9envan.js} +0 -0
  751. /package/dist/chunks/{pty-j2ntwpah.js → state-j2ntwpah.js} +0 -0
  752. /package/dist/chunks/{pty-j5zkgpj8.js → state-j5zkgpj8.js} +0 -0
  753. /package/dist/chunks/{pty-jjkms2e6.js → state-jjkms2e6.js} +0 -0
  754. /package/dist/chunks/{pty-jr7sbwjy.js → state-jr7sbwjy.js} +0 -0
  755. /package/dist/chunks/{pty-jwfs4k6c.js → state-jwfs4k6c.js} +0 -0
  756. /package/dist/chunks/{pty-jze0r7bz.js → state-jze0r7bz.js} +0 -0
  757. /package/dist/chunks/{pty-jzg6c2d5.js → state-jzg6c2d5.js} +0 -0
  758. /package/dist/chunks/{pty-m18g726c.js → state-m18g726c.js} +0 -0
  759. /package/dist/chunks/{pty-mp448xyj.js → state-mp448xyj.js} +0 -0
  760. /package/dist/chunks/{pty-msx8hqn2.js → state-msx8hqn2.js} +0 -0
  761. /package/dist/chunks/{pty-n05xt0ee.js → state-n05xt0ee.js} +0 -0
  762. /package/dist/chunks/{pty-n3j8tn72.js → state-n3j8tn72.js} +0 -0
  763. /package/dist/chunks/{pty-njntx4h6.js → state-njntx4h6.js} +0 -0
  764. /package/dist/chunks/{pty-pkyv6v7h.js → state-pkyv6v7h.js} +0 -0
  765. /package/dist/chunks/{pty-pyv0edze.js → state-pyv0edze.js} +0 -0
  766. /package/dist/chunks/{pty-q3sfg36h.js → state-q3sfg36h.js} +0 -0
  767. /package/dist/chunks/{pty-q74kybfr.js → state-q74kybfr.js} +0 -0
  768. /package/dist/chunks/{pty-qaymkmh1.js → state-qaymkmh1.js} +0 -0
  769. /package/dist/chunks/{pty-qb87gjwd.js → state-qb87gjwd.js} +0 -0
  770. /package/dist/chunks/{pty-qfa1cgps.js → state-qfa1cgps.js} +0 -0
  771. /package/dist/chunks/{pty-qg3g05ea.js → state-qg3g05ea.js} +0 -0
  772. /package/dist/chunks/{pty-qrg20bc0.js → state-qrg20bc0.js} +0 -0
  773. /package/dist/chunks/{pty-rcb2kzg1.js → state-rcb2kzg1.js} +0 -0
  774. /package/dist/chunks/{pty-sdp7kfr6.js → state-sdp7kfr6.js} +0 -0
  775. /package/dist/chunks/{pty-ssg3fenm.js → state-ssg3fenm.js} +0 -0
  776. /package/dist/chunks/{pty-ve7vex1e.js → state-ve7vex1e.js} +0 -0
  777. /package/dist/chunks/{pty-w803qqfp.js → state-w803qqfp.js} +0 -0
  778. /package/dist/chunks/{pty-wc3fc9cn.js → state-wc3fc9cn.js} +0 -0
  779. /package/dist/chunks/{pty-wer8tq1h.js → state-wer8tq1h.js} +0 -0
  780. /package/dist/chunks/{pty-wtztk69x.js → state-wtztk69x.js} +0 -0
  781. /package/dist/chunks/{pty-x0ckcb58.js → state-x0ckcb58.js} +0 -0
  782. /package/dist/chunks/{pty-x61499pn.js → state-x61499pn.js} +0 -0
  783. /package/dist/chunks/{pty-y44na4kk.js → state-y44na4kk.js} +0 -0
  784. /package/dist/chunks/{pty-y8f7s663.js → state-y8f7s663.js} +0 -0
  785. /package/dist/chunks/{pty-ygaqb7jw.js → state-ygaqb7jw.js} +0 -0
  786. /package/dist/chunks/{pty-ym463w8f.js → state-ym463w8f.js} +0 -0
  787. /package/dist/chunks/{pty-z5v4ffb3.js → state-z5v4ffb3.js} +0 -0
  788. /package/dist/chunks/{pty-z9919s4g.js → state-z9919s4g.js} +0 -0
@@ -1,12 +1,12 @@
1
1
  import {
2
2
  SessionEvent2
3
- } from "./pty-ec1grn59.js";
3
+ } from "./state-ec1grn59.js";
4
4
  import {
5
5
  tokens2
6
- } from "./pty-tdstcens.js";
6
+ } from "./state-tdstcens.js";
7
7
  import {
8
8
  contentFilterError2
9
- } from "./pty-0hbbthgq.js";
9
+ } from "./state-w88g6rmw.js";
10
10
 
11
11
  // src/session/runner/publish-llm-event.ts
12
12
  import { Effect, Fiber, Iterable } from "effect";
@@ -1,46 +1,46 @@
1
1
  import {
2
2
  Service81
3
- } from "./pty-cnhye612.js";
3
+ } from "./state-vv5tc97j.js";
4
4
  import {
5
- Service67
6
- } from "./pty-ebqxd2ph.js";
5
+ Service64
6
+ } from "./state-e5wg3wb1.js";
7
7
  import {
8
- Service16,
8
+ Service54,
9
9
  readText2,
10
10
  syncTextBom2
11
- } from "./pty-c84f5e61.js";
11
+ } from "./state-2p5arddx.js";
12
12
  import {
13
- Service15
14
- } from "./pty-f3zadn6b.js";
13
+ Service36
14
+ } from "./state-5jsc8r4j.js";
15
15
  import {
16
- Service60
17
- } from "./pty-0f36crf5.js";
16
+ Service76
17
+ } from "./state-9bxt77bv.js";
18
18
  import {
19
- Service17,
19
+ Service59,
20
20
  resolvePath2
21
- } from "./pty-s1sr5m6z.js";
21
+ } from "./state-wm17x2yg.js";
22
22
  import {
23
23
  fileDiff2
24
- } from "./pty-6prwharc.js";
24
+ } from "./state-6prwharc.js";
25
25
  import {
26
26
  __export
27
- } from "./pty-9rqn6x4v.js";
27
+ } from "./state-9rqn6x4v.js";
28
28
 
29
29
  // src/tool/plugin/edit.ts
30
30
  var exports_edit = {};
31
31
  __export(exports_edit, {
32
32
  EditTool: () => exports_edit,
33
- Input: () => Input4,
33
+ Input: () => Input5,
34
34
  Output: () => Output4,
35
- Plugin: () => Plugin39,
36
- name: () => name4
35
+ Plugin: () => Plugin23,
36
+ name: () => name5
37
37
  });
38
38
  import { ToolFailure } from "@opencode/ai";
39
39
  import { FileDiff } from "@opencode/schema/file-diff";
40
40
  import { Bom } from "@opencode/util/bom";
41
41
  import { Effect, Schema } from "effect";
42
- var name4 = "edit";
43
- var Input4 = Schema.Struct({
42
+ var name5 = "edit";
43
+ var Input5 = Schema.Struct({
44
44
  path: Schema.String.annotate({
45
45
  description: "File to edit"
46
46
  }),
@@ -103,20 +103,20 @@ var findLineOccurrences = (content, search) => {
103
103
  return result;
104
104
  }, []);
105
105
  };
106
- var Plugin39 = {
106
+ var Plugin23 = {
107
107
  id: "opencode.tool.edit",
108
108
  effect: Effect.fn("EditTool.Plugin")(function* (ctx) {
109
- const access = yield* Service17;
110
- const fileMutation = yield* Service16;
111
- const environment = yield* Service67;
112
- const formatter = yield* Service15;
109
+ const access = yield* Service59;
110
+ const fileMutation = yield* Service54;
111
+ const environment = yield* Service64;
112
+ const formatter = yield* Service36;
113
113
  const location = yield* Service81;
114
- const permission = yield* Service60;
114
+ const permission = yield* Service76;
115
115
  yield* ctx.tool.transform((editor) => editor.add({
116
- name: name4,
116
+ name: name5,
117
117
  options: { codemode: false, permission: "edit" },
118
118
  description: "Edit the contents of a file by finding and replacing exact text. When editing text from Read output, preserve the exact indentation (tabs or spaces) and omit the line-number prefix, such as `1: `. Never include the prefix in oldString or newString. The edit fails if oldString is not found. By default, oldString must identify a UNIQUE location. Multiple matches FAIL unless replaceAll is true. Add more surrounding context to disambiguate, or set replaceAll to true to replace every occurrence. Use replaceAll when the change should apply to every occurrence, such as renaming a variable.",
119
- input: Input4,
119
+ input: Input5,
120
120
  output: Output4,
121
121
  execute: (input, context) => {
122
122
  return Effect.gen(function* () {
@@ -194,4 +194,4 @@ var Plugin39 = {
194
194
  })
195
195
  };
196
196
 
197
- export { name4, Input4, Output4, Plugin39, exports_edit };
197
+ export { name5, Input5, Output4, Plugin23, exports_edit };
@@ -1,29 +1,29 @@
1
1
  import {
2
- Service77
3
- } from "./pty-1rh4yqvv.js";
2
+ Service46
3
+ } from "./state-1nzh38e4.js";
4
4
  import {
5
- Service45
6
- } from "./pty-mx9vqzsb.js";
5
+ Service41
6
+ } from "./state-vqfzq50h.js";
7
7
  import {
8
8
  detect2
9
- } from "./pty-3smtnn6g.js";
9
+ } from "./state-3smtnn6g.js";
10
10
  import {
11
11
  awaitActivation2
12
- } from "./pty-qc068m1q.js";
12
+ } from "./state-9zdhvgqs.js";
13
13
  import {
14
- Service76
15
- } from "./pty-fqtvmpfq.js";
14
+ Service80
15
+ } from "./state-2ktf0ed2.js";
16
16
  import {
17
17
  AttachmentError2,
18
18
  SkillNotFoundError2
19
- } from "./pty-1gpb38yh.js";
19
+ } from "./state-e8vwfchq.js";
20
20
  import {
21
21
  prepare3,
22
- Service48
23
- } from "./pty-s0c7z8s7.js";
22
+ Service55
23
+ } from "./state-k9jq8a9f.js";
24
24
  import {
25
25
  __export
26
- } from "./pty-9rqn6x4v.js";
26
+ } from "./state-9rqn6x4v.js";
27
27
 
28
28
  // src/session/prompt.ts
29
29
  var exports_prompt = {};
@@ -39,10 +39,10 @@ import path from "path";
39
39
  import { fileURLToPath } from "url";
40
40
  var prepare2 = Effect.fn("SessionPrompt.prepare")(function* (request) {
41
41
  const fs = yield* FSUtil.Service;
42
- const instances = yield* Service45;
42
+ const instances = yield* Service41;
43
43
  return yield* Effect.gen(function* () {
44
44
  yield* awaitActivation2;
45
- const hooks = yield* Service76;
45
+ const hooks = yield* Service80;
46
46
  const event = yield* hooks.trigger("session", "prompt", {
47
47
  sessionID: request.session.id,
48
48
  messageID: request.messageID,
@@ -61,7 +61,7 @@ var prepare2 = Effect.fn("SessionPrompt.prepare")(function* (request) {
61
61
  const selected = yield* Effect.gen(function* () {
62
62
  if (!requested?.length)
63
63
  return;
64
- const skillService = yield* Service48;
64
+ const skillService = yield* Service55;
65
65
  const prepared = new Map;
66
66
  return yield* Effect.forEach(requested, (attachment) => Effect.gen(function* () {
67
67
  const name = prepared.get(attachment.id);
@@ -126,7 +126,7 @@ var materializeAttachment = Effect.fn("SessionPrompt.materializeAttachment")(fun
126
126
  var normalizeImageAttachment = Effect.fn("SessionPrompt.normalizeImageAttachment")(function* (input, data, mime) {
127
127
  if (!mime.startsWith("image/"))
128
128
  return { data: Base64.make(data), mime };
129
- const image = yield* Service77;
129
+ const image = yield* Service46;
130
130
  const label = attachmentLabel(input);
131
131
  const content = { uri: label, content: data, encoding: "base64", mime };
132
132
  const normalized = yield* image.normalize(label, content).pipe(Effect.catchTag("Image.ResizerUnavailableError", () => Effect.succeed(content)), Effect.mapError((error) => new AttachmentError2({ uri: label, message: error.message })));
@@ -1,56 +1,56 @@
1
1
  import {
2
2
  Service84,
3
3
  node88
4
- } from "./pty-1dmh880y.js";
4
+ } from "./state-vvdwz8bp.js";
5
5
  import {
6
- Event18,
7
- Service71,
8
- node75
9
- } from "./pty-xkb1khsr.js";
6
+ Event17,
7
+ Service74,
8
+ node78
9
+ } from "./state-x119eg88.js";
10
10
  import {
11
- Service56,
12
- node59
13
- } from "./pty-281xas1t.js";
11
+ Service52,
12
+ node54
13
+ } from "./state-42y89c4e.js";
14
14
  import {
15
15
  AbsolutePath2
16
- } from "./pty-z5v4ffb3.js";
16
+ } from "./state-z5v4ffb3.js";
17
17
  import {
18
18
  Service81,
19
19
  node85
20
- } from "./pty-cnhye612.js";
20
+ } from "./state-vv5tc97j.js";
21
21
  import {
22
22
  substitute2
23
- } from "./pty-4ts7tf6z.js";
23
+ } from "./state-4ts7tf6z.js";
24
24
  import {
25
25
  normalize2
26
- } from "./pty-32tw229e.js";
26
+ } from "./state-7mtsxbrk.js";
27
27
  import {
28
- names4,
28
+ names3,
29
29
  discover3
30
- } from "./pty-rwa6rxfx.js";
30
+ } from "./state-f06gwrsq.js";
31
31
  import {
32
32
  plan2
33
- } from "./pty-j56e64zr.js";
33
+ } from "./state-j56e64zr.js";
34
34
  import {
35
- Service58,
36
- Event10,
37
- node61
38
- } from "./pty-efbe88xk.js";
35
+ Service53,
36
+ Event8,
37
+ node55
38
+ } from "./state-wtdq1xvb.js";
39
39
  import {
40
40
  __export
41
- } from "./pty-9rqn6x4v.js";
41
+ } from "./state-9rqn6x4v.js";
42
42
 
43
43
  // src/config.ts
44
44
  var exports_config = {};
45
45
  __export(exports_config, {
46
46
  Config: () => exports_config,
47
- Options: () => Options6,
48
- Service: () => Service55,
47
+ Options: () => Options5,
48
+ Service: () => Service51,
49
49
  Test: () => Test2,
50
- configured: () => configured7,
50
+ configured: () => configured5,
51
51
  latest: () => latest2,
52
- layer: () => layer24,
53
- node: () => node58,
52
+ layer: () => layer18,
53
+ node: () => node53,
54
54
  testLayer: () => testLayer2
55
55
  });
56
56
  import { makeLocationNode } from "@opencode/util/effect/app-node";
@@ -64,14 +64,14 @@ import { Global } from "@opencode/util/global";
64
64
  function latest2(entries, key) {
65
65
  return entries.findLast((entry) => entry.type === "document" && entry.info[key] !== undefined)?.info[key];
66
66
  }
67
- var Options6 = Schema.Struct({
67
+ var Options5 = Schema.Struct({
68
68
  project: Schema.optional(Schema.Boolean),
69
69
  global: Schema.optional(Schema.Boolean),
70
70
  file: Schema.optional(Schema.String),
71
71
  content: Schema.optional(Schema.String)
72
72
  });
73
73
 
74
- class Service55 extends Context.Service()("@opencode/Config") {
74
+ class Service51 extends Context.Service()("@opencode/Config") {
75
75
  }
76
76
 
77
77
  class Test2 extends Context.Service()("@opencode/Config/Test") {
@@ -89,16 +89,16 @@ var testLayer2 = (initial = [], compatibility = {
89
89
  setEntries: (next) => Ref.set(entries, next),
90
90
  emitChange: (update) => PubSub.publish(updates, update).pipe(Effect.asVoid)
91
91
  });
92
- return Context.empty().pipe(Context.add(Service55, service), Context.add(Test2, service));
92
+ return Context.empty().pipe(Context.add(Service51, service), Context.add(Test2, service));
93
93
  }));
94
- var layer24 = (options) => Layer.effect(Service55, Effect.gen(function* () {
94
+ var layer18 = (options) => Layer.effect(Service51, Effect.gen(function* () {
95
95
  const fs = yield* FSUtil.Service;
96
96
  const location = yield* Service81;
97
- const watcher = yield* Service56;
97
+ const watcher = yield* Service52;
98
98
  const bus = yield* Service84;
99
- const credentials = yield* Service71;
99
+ const credentials = yield* Service74;
100
100
  const globalService = yield* Global.Service;
101
- const wellknown = yield* Service58;
101
+ const wellknown = yield* Service53;
102
102
  const reloadLock = Semaphore.makeUnsafe(1);
103
103
  const updateLock = Semaphore.makeUnsafe(1);
104
104
  const decodeOptions = { errors: "all", onExcessProperty: "ignore" };
@@ -163,7 +163,7 @@ var layer24 = (options) => Layer.effect(Service55, Effect.gen(function* () {
163
163
  });
164
164
  const loadDirectory = Effect.fnUntraced(function* (directory) {
165
165
  return [
166
- ...yield* Effect.forEach(names4, (file) => loadFile(path.join(directory, file))).pipe(Effect.map((configs) => configs.filter((config) => config !== undefined))),
166
+ ...yield* Effect.forEach(names3, (file) => loadFile(path.join(directory, file))).pipe(Effect.map((configs) => configs.filter((config) => config !== undefined))),
167
167
  new Directory({ type: "directory", path: directory })
168
168
  ];
169
169
  });
@@ -217,8 +217,8 @@ var layer24 = (options) => Layer.effect(Service55, Effect.gen(function* () {
217
217
  }, (effect) => reloadLock.withPermit(effect));
218
218
  const pendingReloads = yield* PubSub.subscribe(reloads);
219
219
  yield* Stream.fromSubscription(pendingReloads).pipe(Stream.debounce("100 millis"), Stream.runForEach(() => reload().pipe(Effect.catchCause((cause) => Effect.logError("failed to reload config", { cause })))), Effect.forkScoped({ startImmediately: true }));
220
- yield* bus.subscribe(Event18.Switched).pipe(Stream.filterEffect((event) => wellknown.entries().pipe(Effect.map((entries) => entries.some((entry) => entry.integrationID === event.data.integrationID)), Effect.orElseSucceed(() => false))), Stream.runForEach(() => reload().pipe(Effect.catchCause((cause) => Effect.logError("failed to reload wellknown config", { cause })))), Effect.forkScoped({ startImmediately: true }));
221
- yield* bus.subscribe(Event10.Updated).pipe(Stream.runForEach(() => reload().pipe(Effect.catchCause((cause) => Effect.logError("failed to reload wellknown sources", { cause })))), Effect.forkScoped({ startImmediately: true }));
220
+ yield* bus.subscribe(Event17.Switched).pipe(Stream.filterEffect((event) => wellknown.entries().pipe(Effect.map((entries) => entries.some((entry) => entry.integrationID === event.data.integrationID)), Effect.orElseSucceed(() => false))), Stream.runForEach(() => reload().pipe(Effect.catchCause((cause) => Effect.logError("failed to reload wellknown config", { cause })))), Effect.forkScoped({ startImmediately: true }));
221
+ yield* bus.subscribe(Event8.Updated).pipe(Stream.runForEach(() => reload().pipe(Effect.catchCause((cause) => Effect.logError("failed to reload wellknown sources", { cause })))), Effect.forkScoped({ startImmediately: true }));
222
222
  yield* Effect.sleep("10 minutes").pipe(Effect.andThen(Effect.suspend(() => {
223
223
  if (!wellknown.snapshot().length)
224
224
  return Effect.void;
@@ -231,7 +231,7 @@ var layer24 = (options) => Layer.effect(Service55, Effect.gen(function* () {
231
231
  yield* reloadLock.withPermit(reconcile(initial));
232
232
  const update = Effect.fn("Config.update")(function* (patch) {
233
233
  const directory = initial.global ?? AbsolutePath2.make(globalService.config);
234
- const candidates = names4.map((name) => path.join(directory, name));
234
+ const candidates = names3.map((name) => path.join(directory, name));
235
235
  const filepath = (yield* Effect.filter(candidates, fs.isFile)).at(-1) ?? path.join(directory, "opencode.jsonc");
236
236
  const text = (yield* fs.readFileStringSafe(filepath)) ?? `{}
237
237
  `;
@@ -246,7 +246,7 @@ var layer24 = (options) => Layer.effect(Service55, Effect.gen(function* () {
246
246
  `);
247
247
  yield* requestReload;
248
248
  }, (effect) => updateLock.withPermit(effect));
249
- return Service55.of({
249
+ return Service51.of({
250
250
  entries: Effect.fnUntraced(function* () {
251
251
  return configs;
252
252
  }),
@@ -258,13 +258,13 @@ var layer24 = (options) => Layer.effect(Service55, Effect.gen(function* () {
258
258
  update
259
259
  });
260
260
  }));
261
- function configured7(options) {
261
+ function configured5(options) {
262
262
  return makeLocationNode({
263
- service: Service55,
264
- layer: layer24(options),
265
- deps: [node59, node88, FSUtil.node, Global.node, node85, node75, node61]
263
+ service: Service51,
264
+ layer: layer18(options),
265
+ deps: [node54, node88, FSUtil.node, Global.node, node85, node78, node55]
266
266
  });
267
267
  }
268
- var node58 = configured7();
268
+ var node53 = configured5();
269
269
 
270
- export { latest2, Options6, Service55, Test2, testLayer2, layer24, configured7, node58, exports_config };
270
+ export { latest2, Options5, Service51, Test2, testLayer2, layer18, configured5, node53, exports_config };
@@ -1,23 +1,23 @@
1
1
  import {
2
2
  llmClient2
3
- } from "./pty-2vvh33eb.js";
3
+ } from "./state-2vvh33eb.js";
4
4
  import {
5
- Service51,
6
- node54
7
- } from "./pty-2kpekj74.js";
5
+ Service57,
6
+ node59
7
+ } from "./state-z3a8mnsb.js";
8
8
  import {
9
9
  __export
10
- } from "./pty-9rqn6x4v.js";
10
+ } from "./state-9rqn6x4v.js";
11
11
 
12
12
  // src/generate.ts
13
- var exports_generate = {};
14
- __export(exports_generate, {
15
- Generate: () => exports_generate,
13
+ var exports_generate2 = {};
14
+ __export(exports_generate2, {
15
+ Generate: () => exports_generate2,
16
16
  ModelSelectionError: () => ModelSelectionError2,
17
- Service: () => Service21,
18
- UnavailableError: () => UnavailableError2,
19
- layer: () => layer10,
20
- node: () => node24
17
+ Service: () => Service56,
18
+ UnavailableError: () => UnavailableError3,
19
+ layer: () => layer20,
20
+ node: () => node58
21
21
  });
22
22
  import { LLM, LLMClient } from "@opencode/ai";
23
23
  import { SessionID } from "@opencode/schema/session-id";
@@ -28,17 +28,17 @@ class ModelSelectionError2 extends Schema.TaggedError()("Generate.ModelSelection
28
28
  }) {
29
29
  }
30
30
 
31
- class UnavailableError2 extends Schema.TaggedError()("Generate.UnavailableError", {
31
+ class UnavailableError3 extends Schema.TaggedError()("Generate.UnavailableError", {
32
32
  message: Schema.String,
33
33
  service: Schema.optional(Schema.String)
34
34
  }) {
35
35
  }
36
36
 
37
- class Service21 extends Context.Service()("@opencode/Generate") {
37
+ class Service56 extends Context.Service()("@opencode/Generate") {
38
38
  }
39
- var layer10 = Layer.effect(Service21, Effect.gen(function* () {
39
+ var layer20 = Layer.effect(Service56, Effect.gen(function* () {
40
40
  const llm = yield* LLMClient.Service;
41
- const resolver = yield* Service51;
41
+ const resolver = yield* Service57;
42
42
  const runText = Effect.fn("Generate.text")(function* (input) {
43
43
  const resolved = yield* resolver.resolve(input.model).pipe(Effect.catchTag([
44
44
  "SessionRunnerModel.VariantUnavailableError",
@@ -48,7 +48,7 @@ var layer10 = Layer.effect(Service21, Effect.gen(function* () {
48
48
  "SessionRunnerModel.UnresolvedProviderVariablesError",
49
49
  "SessionRunnerModel.UnsupportedCompactionError"
50
50
  ], (error) => {
51
- const mapped = input.model ? new ModelSelectionError2({ message: error.message }) : new UnavailableError2({ message: error.message, service: error.providerID });
51
+ const mapped = input.model ? new ModelSelectionError2({ message: error.message }) : new UnavailableError3({ message: error.message, service: error.providerID });
52
52
  return Effect.fail(mapped);
53
53
  }));
54
54
  if (!resolved)
@@ -59,21 +59,21 @@ var layer10 = Layer.effect(Service21, Effect.gen(function* () {
59
59
  model: resolved.model,
60
60
  prompt: input.prompt,
61
61
  http: { headers: { "x-opencode-session": SessionID.create() } }
62
- })).pipe(Effect.mapError((error) => new UnavailableError2({
62
+ })).pipe(Effect.mapError((error) => new UnavailableError3({
63
63
  message: error.message,
64
64
  service: resolved.ref.providerID
65
65
  })));
66
66
  return response.text;
67
67
  });
68
- const text = (input) => runText(input).pipe(Effect.catchTag("Integration.Authorization", () => new UnavailableError2({
68
+ const text = (input) => runText(input).pipe(Effect.catchTag("Integration.Authorization", () => new UnavailableError3({
69
69
  message: "Generation credentials are unavailable"
70
70
  })));
71
- return Service21.of({ text });
71
+ return Service56.of({ text });
72
72
  }));
73
- var node24 = makeLocationNode({
74
- service: Service21,
75
- layer: layer10,
76
- deps: [node54, llmClient2]
73
+ var node58 = makeLocationNode({
74
+ service: Service56,
75
+ layer: layer20,
76
+ deps: [node59, llmClient2]
77
77
  });
78
78
 
79
- export { ModelSelectionError2, UnavailableError2, Service21, layer10, node24, exports_generate };
79
+ export { ModelSelectionError2, UnavailableError3, Service56, layer20, node58, exports_generate2 };
@@ -1,17 +1,17 @@
1
1
  import {
2
2
  provider2,
3
3
  model2
4
- } from "./pty-0paq2nw3.js";
4
+ } from "./state-0paq2nw3.js";
5
5
  import {
6
6
  aisdk2
7
- } from "./pty-28rwbfbs.js";
7
+ } from "./state-fbw9agv5.js";
8
8
  import {
9
9
  Capabilities2,
10
10
  compatibility2
11
- } from "./pty-nfs59v65.js";
11
+ } from "./state-8472ey6f.js";
12
12
  import {
13
13
  __export
14
- } from "./pty-9rqn6x4v.js";
14
+ } from "./state-9rqn6x4v.js";
15
15
 
16
16
  // src/v1/config/migrate.ts
17
17
  var exports_migrate = {};
@@ -1,17 +1,17 @@
1
1
  import {
2
2
  Ref4
3
- } from "./pty-cnhye612.js";
3
+ } from "./state-vv5tc97j.js";
4
4
  import {
5
5
  __export
6
- } from "./pty-9rqn6x4v.js";
6
+ } from "./state-9rqn6x4v.js";
7
7
 
8
8
  // src/location-service-map.ts
9
9
  var exports_location_service_map = {};
10
10
  __export(exports_location_service_map, {
11
11
  LocationServiceMap: () => exports_location_service_map,
12
- Service: () => Service80,
12
+ Service: () => Service44,
13
13
  canonical: () => canonical3,
14
- node: () => node84,
14
+ node: () => node46,
15
15
  reload: () => reload2
16
16
  });
17
17
  import { Context, Effect, Exit, Layer, RcMap } from "effect";
@@ -19,14 +19,14 @@ import { LayerNode } from "@opencode/util/effect/layer-node";
19
19
  import { Node } from "@opencode/util/effect/app-node";
20
20
  import { AbsolutePath } from "@opencode/schema/schema";
21
21
  import path from "path";
22
- class Service80 extends Context.Service()("@opencode/example/LocationServiceMap") {
22
+ class Service44 extends Context.Service()("@opencode/example/LocationServiceMap") {
23
23
  static get(ref) {
24
- return Layer.unwrap(Effect.map(Service80, (locations) => locations.get(ref)));
24
+ return Layer.unwrap(Effect.map(Service44, (locations) => locations.get(ref)));
25
25
  }
26
26
  }
27
- var node84 = LayerNode.unbound(Service80, Node.tags.values.global);
27
+ var node46 = LayerNode.unbound(Service44, Node.tags.values.global);
28
28
  var reload2 = Effect.fn("LocationServiceMap.reload")(function* () {
29
- const locations = yield* Service80;
29
+ const locations = yield* Service44;
30
30
  const refs = Array.from(yield* RcMap.keys(locations.rcMap));
31
31
  yield* Effect.forEach(refs, (ref) => locations.invalidate(ref), {
32
32
  discard: true,
@@ -45,4 +45,4 @@ function canonical3(ref) {
45
45
  });
46
46
  }
47
47
 
48
- export { Service80, node84, reload2, canonical3, exports_location_service_map };
48
+ export { Service44, node46, reload2, canonical3, exports_location_service_map };
@@ -1,13 +1,13 @@
1
1
  import {
2
2
  __export
3
- } from "./pty-9rqn6x4v.js";
3
+ } from "./state-9rqn6x4v.js";
4
4
 
5
5
  // src/session/system-prompt.ts
6
6
  var exports_system_prompt = {};
7
7
  __export(exports_system_prompt, {
8
8
  SessionSystemPrompt: () => exports_system_prompt,
9
- make: () => make13,
10
- render: () => render2
9
+ make: () => make15,
10
+ render: () => render3
11
11
  });
12
12
 
13
13
  // src/session/runner/prompt/system.txt
@@ -29,10 +29,10 @@ var system_default = `You are an AI agent running in OpenCode, a coding agent ha
29
29
  `;
30
30
 
31
31
  // src/session/system-prompt.ts
32
- function make13(tools) {
33
- return render2(system_default, tools);
32
+ function make15(tools) {
33
+ return render3(system_default, tools);
34
34
  }
35
- function render2(prompt, tools) {
35
+ function render3(prompt, tools) {
36
36
  const instructions = [];
37
37
  if (tools.includes("shell")) {
38
38
  instructions.push("- Prefer dedicated tools over shell commands; fall back to the shell when a tool cannot do what you need.", "- Do not chain shell commands with separators like `echo \"====\";` or `printf '---'`; the output becomes noisy in a way that makes the user's side of the conversation worse.");
@@ -47,4 +47,4 @@ function render2(prompt, tools) {
47
47
  `));
48
48
  }
49
49
 
50
- export { make13, render2, exports_system_prompt };
50
+ export { make15, render3, exports_system_prompt };
@@ -1,31 +1,31 @@
1
1
  import {
2
- Key3,
2
+ Key4,
3
3
  removed2,
4
4
  make21,
5
5
  diffByKey2
6
- } from "./pty-s8d7rejh.js";
6
+ } from "./state-eaj1djv9.js";
7
7
  import {
8
8
  evaluate2
9
- } from "./pty-0f36crf5.js";
9
+ } from "./state-9bxt77bv.js";
10
10
  import {
11
- Service40,
12
- node43
13
- } from "./pty-kf5rw7j4.js";
11
+ Service29,
12
+ node33
13
+ } from "./state-gtx4ax2e.js";
14
14
  import {
15
15
  namespace2,
16
- name14
17
- } from "./pty-n8xxfej3.js";
16
+ name13
17
+ } from "./state-944h6gfv.js";
18
18
  import {
19
19
  __export
20
- } from "./pty-9rqn6x4v.js";
20
+ } from "./state-9rqn6x4v.js";
21
21
 
22
22
  // src/mcp/instructions.ts
23
- var exports_instructions3 = {};
24
- __export(exports_instructions3, {
25
- McpInstructions: () => exports_instructions3,
26
- Service: () => Service38,
27
- layer: () => layer16,
28
- node: () => node41
23
+ var exports_instructions2 = {};
24
+ __export(exports_instructions2, {
25
+ McpInstructions: () => exports_instructions2,
26
+ Service: () => Service22,
27
+ layer: () => layer10,
28
+ node: () => node26
29
29
  });
30
30
  import { makeLocationNode } from "@opencode/util/effect/app-node";
31
31
  import { Context, Effect, Layer, Schema } from "effect";
@@ -61,14 +61,14 @@ var update = (previous, current) => {
61
61
  `);
62
62
  };
63
63
 
64
- class Service38 extends Context.Service()("@opencode/McpInstructions") {
64
+ class Service22 extends Context.Service()("@opencode/McpInstructions") {
65
65
  }
66
- var layer16 = Layer.effect(Service38, Effect.gen(function* () {
67
- const mcp = yield* Service40;
68
- return Service38.of({
66
+ var layer10 = Layer.effect(Service22, Effect.gen(function* () {
67
+ const mcp = yield* Service29;
68
+ return Service22.of({
69
69
  load: Effect.fn("McpInstructions.load")(function* (permissions) {
70
70
  const source = (value) => make21({
71
- key: Key3.make("core/mcp-guidance"),
71
+ key: Key4.make("core/mcp-guidance"),
72
72
  codec: Schema.toCodecJson(Schema.Array(Summary)),
73
73
  read: Effect.succeed(value),
74
74
  render: {
@@ -86,7 +86,7 @@ var layer16 = Layer.effect(Service38, Effect.gen(function* () {
86
86
  const codemode = owned[0]?.codemode !== false;
87
87
  if (codemode && !canExecute)
88
88
  return [];
89
- if (!owned.some((tool) => evaluate2(name14(tool.server, tool.name), "*", permissions).effect !== "deny"))
89
+ if (!owned.some((tool) => evaluate2(name13(tool.server, tool.name), "*", permissions).effect !== "deny"))
90
90
  return [];
91
91
  return [
92
92
  codemode ? { server: item.server, instructions: item.instructions } : { server: item.server, instructions: item.instructions, codemode: false }
@@ -96,6 +96,6 @@ var layer16 = Layer.effect(Service38, Effect.gen(function* () {
96
96
  })
97
97
  });
98
98
  }));
99
- var node41 = makeLocationNode({ service: Service38, layer: layer16, deps: [node43] });
99
+ var node26 = makeLocationNode({ service: Service22, layer: layer10, deps: [node33] });
100
100
 
101
- export { Service38, layer16, node41, exports_instructions3 };
101
+ export { Service22, layer10, node26, exports_instructions2 };