@opencode/core 0.0.0-dev-19624 → 0.0.0-dev-19625

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 (781) hide show
  1. package/dist/account/sql.js +1 -1
  2. package/dist/agent.js +80 -80
  3. package/dist/aisdk-native.js +88 -88
  4. package/dist/aisdk.js +93 -93
  5. package/dist/app.js +9 -9
  6. package/dist/bus.js +68 -68
  7. package/dist/chunks/{model-resolver-zdjzyrvw.js → state-01c8jd1w.js} +7 -7
  8. package/dist/chunks/{model-resolver-mfhfdr54.js → state-06dxphr1.js} +4 -4
  9. package/dist/chunks/{model-resolver-adefstcf.js → state-0cnr96kf.js} +11 -11
  10. package/dist/chunks/{model-resolver-5887gt1n.js → state-0ejqnpgq.js} +171 -171
  11. package/dist/chunks/{model-resolver-0paq2nw3.js → state-0paq2nw3.js} +1 -1
  12. package/dist/chunks/{model-resolver-0q0f95c6.js → state-0q0f95c6.js} +1 -1
  13. package/dist/chunks/{model-resolver-rtsrdkh6.js → state-0v5c5440.js} +10 -10
  14. package/dist/chunks/{model-resolver-jetrtpqb.js → state-0y8dyykb.js} +16 -16
  15. package/dist/chunks/{model-resolver-tgq28bjx.js → state-0zmtjazh.js} +21 -21
  16. package/dist/chunks/{model-resolver-0mknfjdk.js → state-18zsx4wd.js} +8 -8
  17. package/dist/chunks/{model-resolver-vz8e1ew2.js → state-1brs0x88.js} +27 -27
  18. package/dist/chunks/{model-resolver-v8jfbz3g.js → state-1bvekr7f.js} +6 -6
  19. package/dist/chunks/{model-resolver-13cyde70.js → state-1cr9pyzx.js} +32 -32
  20. package/dist/chunks/{model-resolver-1dazxqgg.js → state-1dazxqgg.js} +2 -2
  21. package/dist/chunks/{model-resolver-3w3j0q5e.js → state-1jxz1f4t.js} +15 -15
  22. package/dist/chunks/{model-resolver-mw2nv40j.js → state-1k33tf3r.js} +10 -10
  23. package/dist/chunks/{model-resolver-jrcdwmcs.js → state-1t5zgxxm.js} +20 -20
  24. package/dist/chunks/{model-resolver-gxajrtvj.js → state-1vxxmenm.js} +6 -6
  25. package/dist/chunks/{model-resolver-1x11rq2a.js → state-1x11rq2a.js} +1 -1
  26. package/dist/chunks/{model-resolver-frva07hn.js → state-1x2m2kns.js} +21 -21
  27. package/dist/chunks/{model-resolver-fyd77bxh.js → state-20ft7gws.js} +25 -25
  28. package/dist/chunks/{model-resolver-21r38tys.js → state-21r38tys.js} +1 -1
  29. package/dist/chunks/{model-resolver-ab9238g2.js → state-23pqda6t.js} +5 -5
  30. package/dist/chunks/{model-resolver-2402vzrj.js → state-2402vzrj.js} +1 -1
  31. package/dist/chunks/{model-resolver-50341da0.js → state-28wkbh4b.js} +11 -11
  32. package/dist/chunks/{model-resolver-2a5m3afh.js → state-2a5m3afh.js} +1 -1
  33. package/dist/chunks/{model-resolver-rwnjbtn0.js → state-2jcx25a3.js} +16 -16
  34. package/dist/chunks/{model-resolver-0erxy7q5.js → state-2t25jzh1.js} +22 -22
  35. package/dist/chunks/{model-resolver-b85pverc.js → state-2z3d3p6x.js} +12 -12
  36. package/dist/chunks/{model-resolver-3bt2kz20.js → state-34crcs6s.js} +25 -25
  37. package/dist/chunks/{model-resolver-q3xkv71r.js → state-36308byx.js} +13 -13
  38. package/dist/chunks/{model-resolver-3fc6dm20.js → state-3fc6dm20.js} +1 -1
  39. package/dist/chunks/{model-resolver-3hepkmqq.js → state-3hepkmqq.js} +1 -1
  40. package/dist/chunks/{model-resolver-jk8r4hg4.js → state-3hzsgabf.js} +13 -13
  41. package/dist/chunks/{model-resolver-4kreg4y2.js → state-3m5b51q1.js} +90 -90
  42. package/dist/chunks/{model-resolver-3tg3qg3s.js → state-3n6sdpxb.js} +4 -4
  43. package/dist/chunks/{model-resolver-3smtnn6g.js → state-3smtnn6g.js} +1 -1
  44. package/dist/chunks/{model-resolver-3tvqynh2.js → state-3tvqynh2.js} +1 -1
  45. package/dist/chunks/{model-resolver-y0tc0hsd.js → state-40ar7v2a.js} +14 -14
  46. package/dist/chunks/{model-resolver-z5wa85ag.js → state-47dkewx0.js} +1 -1
  47. package/dist/chunks/{model-resolver-80nc4spm.js → state-49efg6hh.js} +12 -12
  48. package/dist/chunks/{model-resolver-2twrdw90.js → state-4bszj314.js} +5 -5
  49. package/dist/chunks/{model-resolver-af04s6ss.js → state-4phm5153.js} +5 -5
  50. package/dist/chunks/{model-resolver-1ygqh575.js → state-56gdpj1q.js} +9 -9
  51. package/dist/chunks/{model-resolver-2fgn2we9.js → state-57ez7d0k.js} +9 -9
  52. package/dist/chunks/{model-resolver-7jdzwnm1.js → state-59mgbvjy.js} +37 -37
  53. package/dist/chunks/{model-resolver-aepg8z33.js → state-5avwrfg8.js} +26 -26
  54. package/dist/chunks/{model-resolver-5daktx2q.js → state-5daktx2q.js} +1 -1
  55. package/dist/chunks/{model-resolver-9d28t3h2.js → state-5ptztvq7.js} +5 -5
  56. package/dist/chunks/{model-resolver-5t3nmthw.js → state-5t3nmthw.js} +2 -2
  57. package/dist/chunks/{model-resolver-xqed8619.js → state-5w4tm8f9.js} +11 -11
  58. package/dist/chunks/{model-resolver-qgn6gcr1.js → state-607tc6va.js} +5 -5
  59. package/dist/chunks/{model-resolver-669tq793.js → state-669tq793.js} +1 -1
  60. package/dist/chunks/{model-resolver-47yce66j.js → state-66mxargn.js} +15 -15
  61. package/dist/chunks/{model-resolver-d3tz2ej1.js → state-6dt5d3yy.js} +9 -9
  62. package/dist/chunks/{model-resolver-away93r8.js → state-6fzqmn9v.js} +31 -31
  63. package/dist/chunks/{model-resolver-6msgmcgs.js → state-6msgmcgs.js} +1 -1
  64. package/dist/chunks/{model-resolver-aq5y8b9e.js → state-6qkc0t3x.js} +8 -8
  65. package/dist/chunks/{model-resolver-t0fxg8b9.js → state-78v47nsk.js} +5 -5
  66. package/dist/chunks/{model-resolver-7bmhse3q.js → state-7bmhse3q.js} +1 -1
  67. package/dist/chunks/state-7eaj6nza.js +468 -0
  68. package/dist/chunks/{model-resolver-7dcxm99m.js → state-7egh4y4y.js} +26 -26
  69. package/dist/chunks/state-7g1ww872.js +26 -0
  70. package/dist/chunks/{model-resolver-dabzsmb9.js → state-7h0e1682.js} +18 -18
  71. package/dist/chunks/{model-resolver-38ha70wd.js → state-7hc87grc.js} +32 -32
  72. package/dist/chunks/{model-resolver-bc36thva.js → state-83s880gm.js} +41 -41
  73. package/dist/chunks/{model-resolver-9h4pky5p.js → state-84hf00xv.js} +7 -7
  74. package/dist/chunks/{model-resolver-76j33bwa.js → state-86a9eks8.js} +32 -32
  75. package/dist/chunks/{model-resolver-wyfy9p70.js → state-87k0zb7t.js} +6 -6
  76. package/dist/chunks/{model-resolver-xe1vchrn.js → state-898yeema.js} +18 -18
  77. package/dist/chunks/{model-resolver-dyqrmyzp.js → state-89rgtdwh.js} +6 -6
  78. package/dist/chunks/{model-resolver-tcezcvh9.js → state-89znhe33.js} +4 -4
  79. package/dist/chunks/{model-resolver-56cevs0r.js → state-8bcx3nez.js} +4 -4
  80. package/dist/chunks/{model-resolver-8d7r5vzw.js → state-8d7r5vzw.js} +1 -1
  81. package/dist/chunks/{model-resolver-n07q14gc.js → state-8gzdyzew.js} +20 -20
  82. package/dist/chunks/{model-resolver-dj2t23y0.js → state-8p4f9s12.js} +2 -2
  83. package/dist/chunks/{model-resolver-q7bzmzk3.js → state-8vb6c4g2.js} +47 -47
  84. package/dist/chunks/{model-resolver-xdf7vygc.js → state-8zc3jqwb.js} +24 -24
  85. package/dist/chunks/{model-resolver-n8cx0va0.js → state-936zgkx3.js} +3 -3
  86. package/dist/chunks/{model-resolver-bes7d2ad.js → state-937vk562.js} +4 -4
  87. package/dist/chunks/{model-resolver-mtgfyzt9.js → state-992j9qx1.js} +29 -29
  88. package/dist/chunks/{model-resolver-g608bnp8.js → state-9bw9tdmf.js} +16 -16
  89. package/dist/chunks/{model-resolver-gezs4z4f.js → state-9fgjxmjq.js} +6 -6
  90. package/dist/chunks/{model-resolver-0zpzqjkr.js → state-9hbm8v8j.js} +12 -12
  91. package/dist/chunks/{model-resolver-956r61jq.js → state-9j69pfkk.js} +9 -9
  92. package/dist/chunks/{model-resolver-n936bkhn.js → state-9vqz0pne.js} +12 -12
  93. package/dist/chunks/{model-resolver-5c4hm403.js → state-a1bz86dw.js} +3 -3
  94. package/dist/chunks/{model-resolver-fw2sr2pv.js → state-a1k0n4t5.js} +27 -27
  95. package/dist/chunks/{model-resolver-anvx7hcz.js → state-a3hkj0gm.js} +13 -13
  96. package/dist/chunks/{model-resolver-tgpa0z63.js → state-a3r4dcrj.js} +2 -2
  97. package/dist/chunks/{model-resolver-gs8qb5fn.js → state-a7txqt5m.js} +43 -43
  98. package/dist/chunks/{model-resolver-f3ngv102.js → state-a8bn8zg0.js} +4 -4
  99. package/dist/chunks/{model-resolver-aaet6srn.js → state-aaet6srn.js} +2 -2
  100. package/dist/chunks/{model-resolver-frdfcpkk.js → state-aby1gkpe.js} +15 -15
  101. package/dist/chunks/{model-resolver-89hfccde.js → state-ahhsgd92.js} +16 -16
  102. package/dist/chunks/{model-resolver-c5wz01h2.js → state-ak76n2aw.js} +15 -15
  103. package/dist/chunks/{model-resolver-t71v2ka4.js → state-b29mbqx6.js} +5 -5
  104. package/dist/chunks/{model-resolver-b6gygkdw.js → state-b6gygkdw.js} +2 -2
  105. package/dist/chunks/{model-resolver-dhmh7aw6.js → state-baaqp4zd.js} +4 -4
  106. package/dist/chunks/{model-resolver-kkyytty7.js → state-bk8e4xf7.js} +17 -17
  107. package/dist/chunks/{model-resolver-1qvh69xy.js → state-bqmb9zzv.js} +8 -8
  108. package/dist/chunks/{model-resolver-y98q1xgq.js → state-bqn1h69t.js} +8 -8
  109. package/dist/chunks/{model-resolver-jw46dxtn.js → state-brt4p7q6.js} +3 -3
  110. package/dist/chunks/{model-resolver-t6a2ah85.js → state-bstmf25n.js} +24 -24
  111. package/dist/chunks/{model-resolver-fch79rh9.js → state-bz85s9hh.js} +1 -1
  112. package/dist/chunks/{model-resolver-z580hhtr.js → state-c156ep7e.js} +11 -11
  113. package/dist/chunks/{model-resolver-qnrbpj9b.js → state-c8xqcx36.js} +6 -6
  114. package/dist/chunks/{model-resolver-67k4gcxk.js → state-cemwa943.js} +4 -4
  115. package/dist/chunks/{model-resolver-m0jqrx5p.js → state-cfpkc3c9.js} +2 -2
  116. package/dist/chunks/{model-resolver-5d3x9756.js → state-cjnav3re.js} +53 -53
  117. package/dist/chunks/{model-resolver-7qh570j7.js → state-ckvyy4ff.js} +4 -4
  118. package/dist/chunks/{model-resolver-hzh4basz.js → state-cnvgsmxe.js} +20 -20
  119. package/dist/chunks/{model-resolver-jmphe03k.js → state-cq37gk0t.js} +4 -4
  120. package/dist/chunks/{model-resolver-x3et2xth.js → state-cxv3b682.js} +8 -8
  121. package/dist/chunks/state-d33cb7pa.js +251 -0
  122. package/dist/chunks/{model-resolver-3p50jy0h.js → state-d7s9ww47.js} +18 -18
  123. package/dist/chunks/{model-resolver-7z7az0f5.js → state-d8nc1xcx.js} +4 -4
  124. package/dist/chunks/{model-resolver-me3mgk02.js → state-d9b7h6cw.js} +37 -37
  125. package/dist/chunks/{model-resolver-x0v2vg57.js → state-ddyhp86z.js} +23 -23
  126. package/dist/chunks/{model-resolver-56bnbftg.js → state-dedpvjp1.js} +9 -9
  127. package/dist/chunks/{model-resolver-n8zt5qe2.js → state-dvzdqzst.js} +16 -16
  128. package/dist/chunks/{model-resolver-4gjh4rrg.js → state-dxwen4wn.js} +44 -44
  129. package/dist/chunks/{model-resolver-05nvcser.js → state-e0hkds3t.js} +54 -54
  130. package/dist/chunks/{model-resolver-e5nv3ght.js → state-e5nv3ght.js} +2 -2
  131. package/dist/chunks/{model-resolver-bgxcxs0p.js → state-e6hmchc5.js} +5 -5
  132. package/dist/chunks/{model-resolver-9vq2t1gs.js → state-e80f6ask.js} +22 -22
  133. package/dist/chunks/{model-resolver-ec3p188n.js → state-e8340df8.js} +8 -8
  134. package/dist/chunks/{model-resolver-88ksh428.js → state-e8dtjarm.js} +21 -21
  135. package/dist/chunks/{model-resolver-sxz6gkc3.js → state-edrmdtr5.js} +4 -4
  136. package/dist/chunks/{model-resolver-sf22njts.js → state-eebppvc8.js} +37 -37
  137. package/dist/chunks/{model-resolver-ef5x83kb.js → state-ef5x83kb.js} +1 -1
  138. package/dist/chunks/{model-resolver-v3rr0qnk.js → state-eh458v3w.js} +24 -24
  139. package/dist/chunks/{model-resolver-etq0c3wd.js → state-etq0c3wd.js} +1 -1
  140. package/dist/chunks/{model-resolver-hdnk95c8.js → state-f828m53h.js} +2 -2
  141. package/dist/chunks/{model-resolver-ajt0qmtr.js → state-fa9b5va3.js} +11 -11
  142. package/dist/chunks/{model-resolver-pg99pk3y.js → state-fc9ethwj.js} +4 -4
  143. package/dist/chunks/{model-resolver-pvd6ntgs.js → state-fdtfhvf4.js} +9 -9
  144. package/dist/chunks/{model-resolver-58ppqsv0.js → state-fe1a2b94.js} +49 -49
  145. package/dist/chunks/{model-resolver-ragd31v1.js → state-fj9wbyc8.js} +10 -10
  146. package/dist/chunks/{model-resolver-bby7k7hh.js → state-fjnw3amg.js} +8 -8
  147. package/dist/chunks/{model-resolver-ymeq0df2.js → state-fkdvy3ye.js} +11 -11
  148. package/dist/chunks/{model-resolver-g8atgw3j.js → state-ftdzjz2b.js} +6 -6
  149. package/dist/chunks/{model-resolver-fxbjtjnd.js → state-fxbjtjnd.js} +1 -1
  150. package/dist/chunks/{model-resolver-f5cjs50g.js → state-gayp7ypd.js} +30 -30
  151. package/dist/chunks/{model-resolver-gd4qta3r.js → state-gd4qta3r.js} +1 -1
  152. package/dist/chunks/{model-resolver-j34azf71.js → state-gjv4hb9a.js} +8 -8
  153. package/dist/chunks/{model-resolver-gv6a8nnw.js → state-gv6a8nnw.js} +2 -2
  154. package/dist/chunks/{model-resolver-h03wrkyp.js → state-h03wrkyp.js} +2 -2
  155. package/dist/chunks/{model-resolver-9zzh4kq9.js → state-h4f983qb.js} +22 -22
  156. package/dist/chunks/{model-resolver-4dgbcxzg.js → state-h6r3nrb9.js} +4 -4
  157. package/dist/chunks/{model-resolver-h6vf3j39.js → state-h6vf3j39.js} +1 -1
  158. package/dist/chunks/{model-resolver-cgv57mmc.js → state-hgy1dkmh.js} +10 -10
  159. package/dist/chunks/{model-resolver-1j146x5q.js → state-hjscxttq.js} +25 -25
  160. package/dist/chunks/{model-resolver-ksk58mrq.js → state-hvcdvhf8.js} +32 -32
  161. package/dist/chunks/{model-resolver-xk7wccaw.js → state-hwwcyrqp.js} +38 -38
  162. package/dist/chunks/{model-resolver-bs5rr28p.js → state-j107h3n9.js} +3 -3
  163. package/dist/chunks/{model-resolver-j56e64zr.js → state-j56e64zr.js} +1 -1
  164. package/dist/chunks/{model-resolver-kgfjjf6a.js → state-j6024k5x.js} +11 -11
  165. package/dist/chunks/{model-resolver-pg3x4kqe.js → state-jexxy024.js} +3 -3
  166. package/dist/chunks/{model-resolver-qf7ga1s6.js → state-jey6arge.js} +1 -1
  167. package/dist/chunks/{model-resolver-7xqgs4c2.js → state-jp74hzaz.js} +5 -5
  168. package/dist/chunks/{model-resolver-y8bx4nrt.js → state-jr96nny2.js} +16 -16
  169. package/dist/chunks/{model-resolver-jt9m14re.js → state-jtzy25zk.js} +17 -17
  170. package/dist/chunks/{model-resolver-jta15jv0.js → state-k31m950v.js} +11 -11
  171. package/dist/chunks/{model-resolver-xh37m7r6.js → state-k3bsjs2v.js} +5 -5
  172. package/dist/chunks/{model-resolver-nvhcbejc.js → state-k3va51sp.js} +20 -20
  173. package/dist/chunks/{model-resolver-3pbjq009.js → state-k5kkqdex.js} +8 -8
  174. package/dist/chunks/{model-resolver-twghag3f.js → state-kervakjy.js} +12 -12
  175. package/dist/chunks/{model-resolver-93p64q73.js → state-kg53bg6f.js} +35 -35
  176. package/dist/chunks/{model-resolver-08ecq38n.js → state-kgfwvcqs.js} +19 -19
  177. package/dist/chunks/{model-resolver-j2sw0176.js → state-m2wkxzph.js} +12 -12
  178. package/dist/chunks/{model-resolver-q1fttkg5.js → state-m2z0yx10.js} +9 -9
  179. package/dist/chunks/{model-resolver-2bt6bea8.js → state-m86bnw2c.js} +9 -9
  180. package/dist/chunks/{model-resolver-m9w0rfyh.js → state-m9w0rfyh.js} +1 -1
  181. package/dist/chunks/{model-resolver-40h30d2e.js → state-mps7w25w.js} +12 -12
  182. package/dist/chunks/{model-resolver-h8thwg15.js → state-mweswy2n.js} +18 -18
  183. package/dist/chunks/{model-resolver-3m0v8keb.js → state-n24en66b.js} +32 -32
  184. package/dist/chunks/{model-resolver-qjgpmpt2.js → state-nggt3w8z.js} +5 -5
  185. package/dist/chunks/{model-resolver-e82z9tr0.js → state-nhy5jxhy.js} +7 -7
  186. package/dist/chunks/{model-resolver-502d3ppp.js → state-nmdzht59.js} +10 -10
  187. package/dist/chunks/{model-resolver-pjvnvgmy.js → state-pjvnvgmy.js} +1 -1
  188. package/dist/chunks/{model-resolver-pknna89w.js → state-pknna89w.js} +1 -1
  189. package/dist/chunks/{model-resolver-cdhqsg5m.js → state-pwh0py47.js} +8 -8
  190. package/dist/chunks/{model-resolver-tv8bzv1t.js → state-py2c23wa.js} +16 -16
  191. package/dist/chunks/{model-resolver-x30xw0sc.js → state-q6djktq7.js} +14 -14
  192. package/dist/chunks/{model-resolver-2e8y9zy9.js → state-q7j6jfz6.js} +16 -16
  193. package/dist/chunks/{model-resolver-af4kcksd.js → state-qa4rp7fn.js} +9 -9
  194. package/dist/chunks/{model-resolver-neze0rnk.js → state-qaffs4jm.js} +28 -28
  195. package/dist/chunks/{model-resolver-qsdy395h.js → state-qsdy395h.js} +1 -1
  196. package/dist/chunks/{model-resolver-0qkw0z8d.js → state-r4spvhqj.js} +51 -51
  197. package/dist/chunks/{model-resolver-mhkvc446.js → state-r5x6zcsm.js} +3 -3
  198. package/dist/chunks/{model-resolver-1acjjqhc.js → state-r8xr0va3.js} +4 -4
  199. package/dist/chunks/{model-resolver-r9mregkx.js → state-r9mregkx.js} +2 -2
  200. package/dist/chunks/{model-resolver-rdw6cm16.js → state-rdw6cm16.js} +1 -1
  201. package/dist/chunks/{model-resolver-k9vjcjta.js → state-rex1qj25.js} +24 -24
  202. package/dist/chunks/{model-resolver-btty7p3w.js → state-rg4jwqxj.js} +85 -85
  203. package/dist/chunks/{model-resolver-t550f9t1.js → state-rhjbct0v.js} +4 -4
  204. package/dist/chunks/{model-resolver-300e8nzh.js → state-rrm0bmxa.js} +29 -29
  205. package/dist/chunks/{model-resolver-hwxw7j17.js → state-rwdj6r64.js} +11 -11
  206. package/dist/chunks/{model-resolver-ee0x7daj.js → state-s9tvycjm.js} +9 -9
  207. package/dist/chunks/{model-resolver-0sefqgtv.js → state-sa4z093x.js} +2 -2
  208. package/dist/chunks/{model-resolver-eh5gfzyw.js → state-sfga0tvm.js} +7 -7
  209. package/dist/chunks/{model-resolver-55qn5pqp.js → state-spvae7dy.js} +15 -15
  210. package/dist/chunks/{model-resolver-c4vkqgmy.js → state-spx2bnh9.js} +4 -4
  211. package/dist/chunks/{model-resolver-1032maa7.js → state-sqdca7me.js} +12 -12
  212. package/dist/chunks/{model-resolver-0kac7454.js → state-t3s3wq0q.js} +10 -10
  213. package/dist/chunks/{model-resolver-fgad9zs1.js → state-t7e3d7s2.js} +5 -5
  214. package/dist/chunks/{model-resolver-5q5x7c6y.js → state-t8pps5yz.js} +16 -16
  215. package/dist/chunks/{model-resolver-0v53mg2y.js → state-t9zs3egg.js} +4 -4
  216. package/dist/chunks/{model-resolver-tazgh4e4.js → state-tazgh4e4.js} +1 -1
  217. package/dist/chunks/{model-resolver-tdstcens.js → state-tdstcens.js} +1 -1
  218. package/dist/chunks/{model-resolver-gzfky56a.js → state-thaea3t9.js} +18 -18
  219. package/dist/chunks/{model-resolver-0pjtw5ng.js → state-tmrapw0j.js} +20 -20
  220. package/dist/chunks/{model-resolver-89qakztx.js → state-tvenyyex.js} +5 -5
  221. package/dist/chunks/{model-resolver-tvtrv512.js → state-tvtrv512.js} +1 -1
  222. package/dist/chunks/{model-resolver-xawz5m8n.js → state-tyad6bnf.js} +22 -22
  223. package/dist/chunks/{model-resolver-z1ahc81n.js → state-tzdgdhg5.js} +44 -44
  224. package/dist/chunks/{model-resolver-6e23dps4.js → state-v3j36t2s.js} +9 -9
  225. package/dist/chunks/{model-resolver-3fhgk65j.js → state-v676ynba.js} +9 -9
  226. package/dist/chunks/{model-resolver-n3ev54rj.js → state-v6vt01kk.js} +30 -30
  227. package/dist/chunks/{model-resolver-dbqjqbdf.js → state-vcy4fgke.js} +18 -18
  228. package/dist/chunks/{model-resolver-yhm2n21y.js → state-vd3vzfjc.js} +30 -30
  229. package/dist/chunks/{model-resolver-veqvce7d.js → state-veqvce7d.js} +1 -1
  230. package/dist/chunks/{model-resolver-fkhk4y1m.js → state-vjm8cxw2.js} +24 -24
  231. package/dist/chunks/{model-resolver-cysw23rm.js → state-vjman6x4.js} +10 -10
  232. package/dist/chunks/{model-resolver-de5th1w4.js → state-vky51n64.js} +17 -17
  233. package/dist/chunks/{model-resolver-58cchz3y.js → state-vy8efbby.js} +36 -36
  234. package/dist/chunks/{model-resolver-vzcthcp8.js → state-vzcthcp8.js} +1 -1
  235. package/dist/chunks/{model-resolver-vdbejzap.js → state-w3wfndk6.js} +13 -13
  236. package/dist/chunks/{model-resolver-w3wsvvr9.js → state-w3wsvvr9.js} +1 -1
  237. package/dist/chunks/{model-resolver-kwsqyj6a.js → state-w4p6h1mp.js} +27 -27
  238. package/dist/chunks/{model-resolver-gk0n48rz.js → state-w6q8xqpp.js} +23 -23
  239. package/dist/chunks/{model-resolver-wd87259q.js → state-wd87259q.js} +1 -1
  240. package/dist/chunks/{model-resolver-stppr3m7.js → state-wecqvfcx.js} +11 -11
  241. package/dist/chunks/{model-resolver-e53te25d.js → state-wevxc10v.js} +6 -6
  242. package/dist/chunks/{model-resolver-pcvs4s42.js → state-wf67cbqp.js} +15 -15
  243. package/dist/chunks/{model-resolver-ca9547p7.js → state-wk4mdq5k.js} +13 -13
  244. package/dist/chunks/{model-resolver-0z8c9324.js → state-wmttgrd3.js} +11 -11
  245. package/dist/chunks/{model-resolver-j03x6629.js → state-wqntmxqd.js} +21 -21
  246. package/dist/chunks/{model-resolver-b6tfwsrv.js → state-ws4jrj3s.js} +13 -13
  247. package/dist/chunks/{model-resolver-bscb95cy.js → state-wzg7zq6j.js} +9 -9
  248. package/dist/chunks/{model-resolver-x1ezjp6w.js → state-x1ezjp6w.js} +1 -1
  249. package/dist/chunks/{model-resolver-2a2x9s8s.js → state-x3gyjycy.js} +4 -4
  250. package/dist/chunks/{model-resolver-eg6jxap1.js → state-xbhtvydn.js} +14 -14
  251. package/dist/chunks/{model-resolver-4c8bw516.js → state-xdw78xdg.js} +8 -8
  252. package/dist/chunks/{model-resolver-s8214884.js → state-xesac8hr.js} +5 -5
  253. package/dist/chunks/{model-resolver-hfgb7cv0.js → state-xf8yr4rj.js} +13 -13
  254. package/dist/chunks/{model-resolver-z10et0r2.js → state-xn5a693m.js} +8 -8
  255. package/dist/chunks/{model-resolver-kpa7g2mg.js → state-xp3zd2em.js} +41 -41
  256. package/dist/chunks/{model-resolver-cjdr13sd.js → state-xrrv4szm.js} +8 -8
  257. package/dist/chunks/{model-resolver-jzh1899s.js → state-xx4p9jw3.js} +47 -47
  258. package/dist/chunks/{model-resolver-y1fvbwt7.js → state-y1fvbwt7.js} +1 -1
  259. package/dist/chunks/{model-resolver-xtv2mh4r.js → state-y69ckfyh.js} +3 -3
  260. package/dist/chunks/{model-resolver-dpkg50ah.js → state-y71avatq.js} +4 -4
  261. package/dist/chunks/{model-resolver-nr0ashrr.js → state-yayfkm3a.js} +10 -10
  262. package/dist/chunks/{model-resolver-yby6xn0t.js → state-ybhbtxjg.js} +6 -6
  263. package/dist/chunks/{model-resolver-cw541prr.js → state-yjn491gs.js} +13 -13
  264. package/dist/chunks/{model-resolver-yrhqyw5v.js → state-yrhqyw5v.js} +1 -1
  265. package/dist/chunks/{model-resolver-yrznvahk.js → state-yrznvahk.js} +2 -2
  266. package/dist/chunks/{model-resolver-e0kanx6f.js → state-ys0xwr4p.js} +9 -9
  267. package/dist/chunks/{model-resolver-avt77bbv.js → state-yt84cctg.js} +13 -13
  268. package/dist/chunks/{model-resolver-gbmzg7c6.js → state-yt8tcjwm.js} +22 -22
  269. package/dist/chunks/{model-resolver-9mgkh4de.js → state-yzjv0n59.js} +32 -32
  270. package/dist/chunks/{model-resolver-t597x4d8.js → state-z06fw8bd.js} +11 -11
  271. package/dist/chunks/{model-resolver-z0bkrqjs.js → state-z0bkrqjs.js} +1 -1
  272. package/dist/chunks/{model-resolver-0tmbmzm8.js → state-z25aqp2g.js} +30 -30
  273. package/dist/chunks/{model-resolver-z63w68vq.js → state-z63w68vq.js} +2 -2
  274. package/dist/chunks/{model-resolver-mjfthb8v.js → state-z66esb84.js} +17 -17
  275. package/dist/chunks/{model-resolver-41r8dwtv.js → state-z78rkc6e.js} +16 -16
  276. package/dist/chunks/{model-resolver-3r42cc5z.js → state-zaj5a1yd.js} +18 -18
  277. package/dist/chunks/{model-resolver-34z1s69y.js → state-zbmtd5wr.js} +4 -4
  278. package/dist/chunks/{model-resolver-zeh9ct20.js → state-zeh9ct20.js} +2 -2
  279. package/dist/chunks/{model-resolver-m3zza4qd.js → state-zex37ywk.js} +8 -8
  280. package/dist/chunks/{model-resolver-zr2ceqn5.js → state-zr2ceqn5.js} +1 -1
  281. package/dist/chunks/{model-resolver-zxq2ej10.js → state-zxq2ej10.js} +1 -1
  282. package/dist/chunks/{model-resolver-2ay9edyp.js → state-zzmr1x04.js} +26 -26
  283. package/dist/codemode/catalog.js +1 -1
  284. package/dist/codemode/instructions.js +7 -7
  285. package/dist/codemode/tool.js +2 -2
  286. package/dist/command.js +82 -82
  287. package/dist/config/discovery.js +83 -83
  288. package/dist/config/markdown.js +1 -1
  289. package/dist/config/normalize.js +105 -105
  290. package/dist/config/plugin/agent.js +124 -124
  291. package/dist/config/plugin/command.js +212 -212
  292. package/dist/config/plugin/compaction.js +158 -158
  293. package/dist/config/plugin/compatibility.js +140 -140
  294. package/dist/config/plugin/entry-observer.js +1 -1
  295. package/dist/config/plugin/formatter.js +123 -123
  296. package/dist/config/plugin/image.js +122 -122
  297. package/dist/config/plugin/instruction.js +89 -89
  298. package/dist/config/plugin/location-watcher.js +122 -122
  299. package/dist/config/plugin/mcp.js +131 -131
  300. package/dist/config/plugin/policy.js +122 -122
  301. package/dist/config/plugin/provider.js +122 -122
  302. package/dist/config/plugin/reference.js +124 -124
  303. package/dist/config/plugin/shell.js +122 -122
  304. package/dist/config/plugin/skill-file.js +101 -101
  305. package/dist/config/plugin/skill.js +143 -143
  306. package/dist/config/plugin/snapshot.js +122 -122
  307. package/dist/config/plugin/source.js +125 -125
  308. package/dist/config/plugin/tool-output.js +124 -124
  309. package/dist/config/plugin/websearch.js +121 -121
  310. package/dist/config/plugin/worktree.js +123 -123
  311. package/dist/config/variable.js +3 -3
  312. package/dist/config/watch.js +1 -1
  313. package/dist/config.js +127 -127
  314. package/dist/credential/sql.js +2 -2
  315. package/dist/credential.js +76 -76
  316. package/dist/database/database.js +65 -65
  317. package/dist/database/drizzle/effect-sqlite/driver.js +14 -14
  318. package/dist/database/drizzle/effect-sqlite/index.js +14 -14
  319. package/dist/database/drizzle/effect-sqlite/session.js +11 -11
  320. package/dist/database/drizzle/index.js +15 -15
  321. package/dist/database/drizzle/internal/drizzle-utils.js +1 -1
  322. package/dist/database/drizzle/sqlite-core/effect/count.js +1 -1
  323. package/dist/database/drizzle/sqlite-core/effect/db.js +9 -9
  324. package/dist/database/drizzle/sqlite-core/effect/delete.js +2 -2
  325. package/dist/database/drizzle/sqlite-core/effect/index.js +10 -10
  326. package/dist/database/drizzle/sqlite-core/effect/insert.js +2 -2
  327. package/dist/database/drizzle/sqlite-core/effect/query.js +1 -1
  328. package/dist/database/drizzle/sqlite-core/effect/raw.js +1 -1
  329. package/dist/database/drizzle/sqlite-core/effect/select.js +2 -2
  330. package/dist/database/drizzle/sqlite-core/effect/session.js +10 -10
  331. package/dist/database/drizzle/sqlite-core/effect/update.js +2 -2
  332. package/dist/database/drizzle.js +16 -16
  333. package/dist/database/migration/20260127222353_familiar_lady_ursula.js +1 -1
  334. package/dist/database/migration/20260211171708_add_project_commands.js +1 -1
  335. package/dist/database/migration/20260213144116_wakeful_the_professor.js +1 -1
  336. package/dist/database/migration/20260225215848_workspace.js +1 -1
  337. package/dist/database/migration/20260227213759_add_session_workspace_id.js +1 -1
  338. package/dist/database/migration/20260228203230_blue_harpoon.js +1 -1
  339. package/dist/database/migration/20260303231226_add_workspace_fields.js +1 -1
  340. package/dist/database/migration/20260309230000_move_org_to_state.js +1 -1
  341. package/dist/database/migration/20260312043431_session_message_cursor.js +1 -1
  342. package/dist/database/migration/20260323234822_events.js +1 -1
  343. package/dist/database/migration/20260410174513_workspace-name.js +1 -1
  344. package/dist/database/migration/20260413175956_chief_energizer.js +1 -1
  345. package/dist/database/migration/20260423070820_add_icon_url_override.js +1 -1
  346. package/dist/database/migration/20260427172553_slow_nightmare.js +1 -1
  347. package/dist/database/migration/20260428004200_add_session_path.js +1 -1
  348. package/dist/database/migration/20260501142318_next_venus.js +1 -1
  349. package/dist/database/migration/20260504145000_add_sync_owner.js +1 -1
  350. package/dist/database/migration/20260507164347_add_workspace_time.js +1 -1
  351. package/dist/database/migration/20260510033149_session_usage.js +1 -1
  352. package/dist/database/migration/20260511000411_data_migration_state.js +1 -1
  353. package/dist/database/migration/20260511173437_session-metadata.js +1 -1
  354. package/dist/database/migration/20260601010001_normalize_storage_paths.js +1 -1
  355. package/dist/database/migration/20260601202201_amazing_prowler.js +1 -1
  356. package/dist/database/migration/20260602002951_lowly_union_jack.js +1 -1
  357. package/dist/database/migration/20260602182828_add_project_directories.js +1 -1
  358. package/dist/database/migration/20260603001617_session_message_projection_indexes.js +1 -1
  359. package/dist/database/migration/20260603040000_session_message_projection_order.js +1 -1
  360. package/dist/database/migration/20260603141458_session_input_inbox.js +1 -1
  361. package/dist/database/migration/20260603160727_jittery_ezekiel_stane.js +1 -1
  362. package/dist/database/migration/20260604172448_event_sourced_session_input.js +1 -1
  363. package/dist/database/migration/20260605003541_add_session_context_snapshot.js +1 -1
  364. package/dist/database/migration/20260605042240_add_context_epoch_agent.js +1 -1
  365. package/dist/database/migration/20260611035744_credential.js +1 -1
  366. package/dist/database/migration/20260611192811_lush_chimera.js +1 -1
  367. package/dist/database/migration/20260612174303_project_dir_strategy.js +1 -1
  368. package/dist/database/migration/20260622142730_simplify_session_context_epoch.js +1 -1
  369. package/dist/database/migration/20260622170816_reset_v2_session_state.js +1 -1
  370. package/dist/database/migration/20260622202450_simplify_session_input.js +1 -1
  371. package/dist/database/migration/20260804233008_loose_psylocke.js +1 -1
  372. package/dist/database/migration/20260805200742_import_legacy_credentials.js +1 -1
  373. package/dist/database/migration/20260808023530_workspace_domain.js +1 -1
  374. package/dist/database/migration/20260811161259_execution_claim_attempts.js +1 -1
  375. package/dist/database/migration/20260812181746_session_inbox.js +1 -1
  376. package/dist/database/migration/20260812213948_worktree.js +1 -1
  377. package/dist/database/migration/20260819222447_session_viewed_state.js +1 -1
  378. package/dist/database/migration/20260823191254_nullable_workspace_binding.js +1 -1
  379. package/dist/database/migration/20260910120000_clear_v1_session_permission.js +1 -1
  380. package/dist/database/migration.gen.js +48 -48
  381. package/dist/database/migration.js +50 -50
  382. package/dist/database/path.js +2 -2
  383. package/dist/database/schema.gen.js +1 -1
  384. package/dist/database/schema.sql.js +1 -1
  385. package/dist/database/sqlite.bun.js +1 -1
  386. package/dist/database/sqlite.js +1 -1
  387. package/dist/database/sqlite.node.js +1 -1
  388. package/dist/database/sqlite.workerd.js +1 -1
  389. package/dist/database/v1-migration.bun.js +75 -75
  390. package/dist/database/v1-migration.js +1 -1
  391. package/dist/effect/app-node-builder.js +362 -362
  392. package/dist/effect/app-node-platform.js +2 -2
  393. package/dist/effect/keyed-mutex.js +3 -3
  394. package/dist/effect/websocket-constructor.js +1 -1
  395. package/dist/environment/driver.js +1 -1
  396. package/dist/environment/environment.js +92 -92
  397. package/dist/environment/exec-defaults.js +2 -2
  398. package/dist/environment/files.js +1 -1
  399. package/dist/environment/index.js +94 -94
  400. package/dist/environment/local.js +2 -2
  401. package/dist/environment/memory.js +2 -2
  402. package/dist/environment/unavailable.js +1 -1
  403. package/dist/event/sql.js +1 -1
  404. package/dist/event-logger.js +69 -69
  405. package/dist/file-access.js +103 -103
  406. package/dist/file-mutation.js +93 -93
  407. package/dist/file-retention.js +1 -1
  408. package/dist/file.js +1 -1
  409. package/dist/filesystem/fff.bun.js +2 -2
  410. package/dist/filesystem/fff.js +1 -1
  411. package/dist/filesystem/fff.node.js +2 -2
  412. package/dist/filesystem/fff.workerd.js +2 -2
  413. package/dist/filesystem/ignore.js +1 -1
  414. package/dist/filesystem/location-watcher-policy.js +6 -6
  415. package/dist/filesystem/location-watcher.js +218 -218
  416. package/dist/filesystem/protected.js +3 -3
  417. package/dist/filesystem/search.js +102 -102
  418. package/dist/filesystem/watcher-binding.js +1 -1
  419. package/dist/filesystem/watcher.js +15 -15
  420. package/dist/filesystem.js +107 -107
  421. package/dist/form.js +81 -81
  422. package/dist/formatter/builtins.js +4 -4
  423. package/dist/formatter.js +88 -88
  424. package/dist/generate.js +102 -102
  425. package/dist/git.js +10 -10
  426. package/dist/github-copilot/chat/convert-to-openai-compatible-chat-messages.js +1 -1
  427. package/dist/github-copilot/chat/get-response-metadata.js +1 -1
  428. package/dist/github-copilot/chat/map-openai-compatible-finish-reason.js +1 -1
  429. package/dist/github-copilot/chat/openai-compatible-chat-language-model.js +7 -7
  430. package/dist/github-copilot/chat/openai-compatible-chat-options.js +1 -1
  431. package/dist/github-copilot/chat/openai-compatible-prepare-tools.js +1 -1
  432. package/dist/github-copilot/copilot-provider.js +17 -17
  433. package/dist/github-copilot/models.js +98 -98
  434. package/dist/github-copilot/openai-compatible-error.js +1 -1
  435. package/dist/github-copilot/responses/convert-to-openai-responses-input.js +1 -1
  436. package/dist/github-copilot/responses/map-openai-responses-finish-reason.js +1 -1
  437. package/dist/github-copilot/responses/openai-error.js +1 -1
  438. package/dist/github-copilot/responses/openai-responses-language-model.js +10 -10
  439. package/dist/github-copilot/responses/openai-responses-prepare-tools.js +6 -6
  440. package/dist/github-copilot/responses/tool/code-interpreter.js +1 -1
  441. package/dist/github-copilot/responses/tool/file-search.js +1 -1
  442. package/dist/github-copilot/responses/tool/image-generation.js +1 -1
  443. package/dist/github-copilot/responses/tool/web-search-preview.js +1 -1
  444. package/dist/github-copilot/responses/tool/web-search.js +1 -1
  445. package/dist/id/id.js +1 -1
  446. package/dist/image/photon.js +2 -2
  447. package/dist/image.js +6 -6
  448. package/dist/instance/service.js +5 -5
  449. package/dist/instance.js +353 -353
  450. package/dist/instruction-discovery.js +78 -78
  451. package/dist/instructions/builtins.js +86 -86
  452. package/dist/instructions/index.js +3 -3
  453. package/dist/integration/connection.js +3 -3
  454. package/dist/integration.js +85 -85
  455. package/dist/job.js +78 -78
  456. package/dist/kv/sql.js +2 -2
  457. package/dist/kv.js +72 -72
  458. package/dist/location-activity.js +131 -131
  459. package/dist/location-mutation.js +103 -103
  460. package/dist/location-service-map.js +85 -85
  461. package/dist/location-services.js +350 -350
  462. package/dist/location.js +86 -86
  463. package/dist/mcp/client.js +90 -90
  464. package/dist/mcp/index.js +107 -107
  465. package/dist/mcp/instructions.js +126 -126
  466. package/dist/mcp/oauth.js +77 -77
  467. package/dist/mcp/stdio.js +89 -89
  468. package/dist/mime.js +1 -1
  469. package/dist/modal/models.js +98 -98
  470. package/dist/model-resolver.js +97 -97
  471. package/dist/model.js +99 -99
  472. package/dist/models-dev.js +100 -100
  473. package/dist/oauth/page.js +1 -1
  474. package/dist/permission/saved.js +81 -81
  475. package/dist/permission/sql.js +5 -5
  476. package/dist/permission.js +110 -110
  477. package/dist/persistent-pty/binary.bun.js +1 -1
  478. package/dist/persistent-pty/daemon.js +1 -1
  479. package/dist/persistent-pty/index.js +85 -85
  480. package/dist/persistent-pty/pty-binding.js +1 -1
  481. package/dist/persistent-pty.js +74 -74
  482. package/dist/plugin/agent.js +103 -103
  483. package/dist/plugin/command.js +100 -100
  484. package/dist/plugin/hooks.js +5 -5
  485. package/dist/plugin/host.js +215 -215
  486. package/dist/plugin/instance.js +5 -5
  487. package/dist/plugin/internal.js +324 -324
  488. package/dist/plugin/mcp-codemode-exclusion.js +3 -3
  489. package/dist/plugin/models-dev.js +95 -95
  490. package/dist/plugin/module.js +7 -7
  491. package/dist/plugin/optimize.js +4 -4
  492. package/dist/plugin/plan.js +101 -101
  493. package/dist/plugin/promise.js +1 -1
  494. package/dist/plugin/provider/amazon-bedrock.js +89 -89
  495. package/dist/plugin/provider/azure.js +121 -121
  496. package/dist/plugin/provider/cerebras.js +1 -1
  497. package/dist/plugin/provider/cloudflare-ai-gateway.js +120 -120
  498. package/dist/plugin/provider/cloudflare-workers-ai.js +120 -120
  499. package/dist/plugin/provider/cohere.js +2 -2
  500. package/dist/plugin/provider/configured.js +118 -118
  501. package/dist/plugin/provider/digitalocean.js +92 -92
  502. package/dist/plugin/provider/dynamic.js +2 -2
  503. package/dist/plugin/provider/factory.js +1 -1
  504. package/dist/plugin/provider/gateway.js +2 -2
  505. package/dist/plugin/provider/github-copilot.js +92 -92
  506. package/dist/plugin/provider/gitlab.js +90 -90
  507. package/dist/plugin/provider/google-vertex.js +89 -89
  508. package/dist/plugin/provider/kilo.js +1 -1
  509. package/dist/plugin/provider/llmgateway.js +76 -76
  510. package/dist/plugin/provider/lmstudio.js +121 -121
  511. package/dist/plugin/provider/modal.js +91 -91
  512. package/dist/plugin/provider/nvidia.js +1 -1
  513. package/dist/plugin/provider/ollama.js +121 -121
  514. package/dist/plugin/provider/openai.js +93 -93
  515. package/dist/plugin/provider/opencode.js +92 -92
  516. package/dist/plugin/provider/openrouter.js +90 -90
  517. package/dist/plugin/provider/perplexity.js +2 -2
  518. package/dist/plugin/provider/poe.js +77 -77
  519. package/dist/plugin/provider/sap-ai-core.js +90 -90
  520. package/dist/plugin/provider/sdk-factory.js +1 -1
  521. package/dist/plugin/provider/snowflake-cortex.js +121 -121
  522. package/dist/plugin/provider/venice.js +2 -2
  523. package/dist/plugin/provider/vercel.js +89 -89
  524. package/dist/plugin/provider/vllm.js +121 -121
  525. package/dist/plugin/provider/xai.js +90 -90
  526. package/dist/plugin/provider/zenmux.js +1 -1
  527. package/dist/plugin/provider.js +157 -157
  528. package/dist/plugin/sdk.js +75 -75
  529. package/dist/plugin/service.js +1 -1
  530. package/dist/plugin/skill.js +140 -140
  531. package/dist/plugin/source-directory.js +1 -1
  532. package/dist/plugin/supervisor.js +339 -339
  533. package/dist/plugin/update.js +6 -6
  534. package/dist/plugin/vcs/git.js +85 -85
  535. package/dist/plugin/vcs/hg.js +85 -85
  536. package/dist/plugin/warming.js +120 -120
  537. package/dist/plugin/websearch/exa.js +7 -7
  538. package/dist/plugin/websearch/firecrawl.js +8 -8
  539. package/dist/plugin/websearch/index.js +9 -9
  540. package/dist/plugin/websearch/mcp.js +6 -6
  541. package/dist/plugin/websearch/parallel.js +8 -8
  542. package/dist/plugin/websearch/tavily.js +6 -6
  543. package/dist/plugin/websearch/tinyfish.js +8 -8
  544. package/dist/plugin.js +220 -220
  545. package/dist/project/schema.js +8 -8
  546. package/dist/project/sql.js +4 -4
  547. package/dist/project.js +87 -87
  548. package/dist/provider.js +98 -98
  549. package/dist/pty/protocol.js +1 -1
  550. package/dist/pty/schema.js +1 -1
  551. package/dist/pty/ticket.js +1 -1
  552. package/dist/pty.js +93 -93
  553. package/dist/reference/instructions.js +86 -86
  554. package/dist/reference.js +90 -90
  555. package/dist/repository-cache.js +80 -80
  556. package/dist/repository.js +1 -1
  557. package/dist/ripgrep/binary.js +2 -2
  558. package/dist/ripgrep.js +96 -96
  559. package/dist/rpc.js +85 -85
  560. package/dist/schema.js +1 -1
  561. package/dist/session/command.js +73 -73
  562. package/dist/session/compaction.js +130 -130
  563. package/dist/session/context.js +150 -150
  564. package/dist/session/diff.js +87 -87
  565. package/dist/session/environment.js +5 -5
  566. package/dist/session/error.js +5 -5
  567. package/dist/session/event.js +1 -1
  568. package/dist/session/execution/restart.js +219 -219
  569. package/dist/session/execution.js +125 -125
  570. package/dist/session/generate.js +149 -149
  571. package/dist/session/history.js +13 -13
  572. package/dist/session/inbox.js +89 -89
  573. package/dist/session/info.js +3 -3
  574. package/dist/session/instruction-entry.js +76 -76
  575. package/dist/session/instruction-state.js +8 -8
  576. package/dist/session/instructions.js +96 -96
  577. package/dist/session/message-updater.js +2 -2
  578. package/dist/session/message.js +1 -1
  579. package/dist/session/model-request.js +117 -117
  580. package/dist/session/model-transport.js +9 -9
  581. package/dist/session/move.js +129 -129
  582. package/dist/session/projector.js +85 -85
  583. package/dist/session/prompt.js +104 -104
  584. package/dist/session/provider-context.js +3 -3
  585. package/dist/session/revert.js +89 -89
  586. package/dist/session/run-coordinator.js +3 -3
  587. package/dist/session/runner/index.js +3 -3
  588. package/dist/session/runner/llm.js +225 -225
  589. package/dist/session/runner/max-steps.js +1 -1
  590. package/dist/session/runner/model.js +97 -97
  591. package/dist/session/runner/publish-llm-event.js +3 -3
  592. package/dist/session/runner/retry.js +113 -113
  593. package/dist/session/runner/step.js +122 -122
  594. package/dist/session/runner/to-llm-message.js +2 -2
  595. package/dist/session/schema.js +5 -5
  596. package/dist/session/session.js +169 -169
  597. package/dist/session/shell.js +137 -137
  598. package/dist/session/skill.js +102 -102
  599. package/dist/session/sql.js +5 -5
  600. package/dist/session/stats.js +72 -72
  601. package/dist/session/store.js +86 -86
  602. package/dist/session/subagent-completion.js +1 -1
  603. package/dist/session/subagent-job.js +208 -208
  604. package/dist/session/system-prompt.js +5 -5
  605. package/dist/session/title.js +148 -148
  606. package/dist/session/to-session-error.js +110 -110
  607. package/dist/session/transfer.js +215 -215
  608. package/dist/session/usage.js +1 -1
  609. package/dist/session.js +216 -216
  610. package/dist/shell/parse.js +6 -6
  611. package/dist/shell/result.js +1 -1
  612. package/dist/shell/scan.js +1 -1
  613. package/dist/shell/select.js +11 -11
  614. package/dist/shell.js +139 -139
  615. package/dist/skill/discovery.js +6 -6
  616. package/dist/skill/instructions.js +106 -106
  617. package/dist/skill.js +109 -109
  618. package/dist/snapshot.js +88 -88
  619. package/dist/state.js +1 -1
  620. package/dist/tool/html-markdown.js +1 -1
  621. package/dist/tool/http-body.js +1 -1
  622. package/dist/tool/mcp.js +123 -123
  623. package/dist/tool/plugin/edit.js +119 -119
  624. package/dist/tool/plugin/file-diff.js +1 -1
  625. package/dist/tool/plugin/glob.js +123 -123
  626. package/dist/tool/plugin/grep.js +123 -123
  627. package/dist/tool/plugin/opencode.js +3 -3
  628. package/dist/tool/plugin/patch.js +121 -121
  629. package/dist/tool/plugin/question.js +100 -100
  630. package/dist/tool/plugin/read.js +124 -124
  631. package/dist/tool/plugin/shell.js +213 -213
  632. package/dist/tool/plugin/skill.js +106 -106
  633. package/dist/tool/plugin/subagent.js +217 -217
  634. package/dist/tool/plugin/webfetch.js +111 -111
  635. package/dist/tool/plugin/websearch.js +111 -111
  636. package/dist/tool/plugin/write.js +121 -121
  637. package/dist/tool/read-filesystem.js +99 -99
  638. package/dist/tool/runtime.js +1 -1
  639. package/dist/tool-output.js +8 -8
  640. package/dist/tool.js +13 -13
  641. package/dist/util/error-summary.js +1 -1
  642. package/dist/util/error.js +1 -1
  643. package/dist/util/git-executable.js +2 -2
  644. package/dist/util/iife.js +1 -1
  645. package/dist/util/lazy.js +1 -1
  646. package/dist/util/slug.js +1 -1
  647. package/dist/util/token.js +1 -1
  648. package/dist/util/which.js +1 -1
  649. package/dist/util/wildcard.js +1 -1
  650. package/dist/v1/config/agent.js +5 -5
  651. package/dist/v1/config/attachment.js +4 -4
  652. package/dist/v1/config/command.js +3 -3
  653. package/dist/v1/config/config.js +16 -16
  654. package/dist/v1/config/error.js +2 -2
  655. package/dist/v1/config/formatter.js +7 -7
  656. package/dist/v1/config/layout.js +1 -1
  657. package/dist/v1/config/lsp.js +3 -3
  658. package/dist/v1/config/mcp.js +4 -4
  659. package/dist/v1/config/migrate.js +91 -91
  660. package/dist/v1/config/permission.js +3 -3
  661. package/dist/v1/config/plugin.js +3 -3
  662. package/dist/v1/config/provider-options.js +1 -1
  663. package/dist/v1/config/provider.js +4 -4
  664. package/dist/v1/config/server.js +2 -2
  665. package/dist/v1/config/skills.js +3 -3
  666. package/dist/v1/permission.js +1 -1
  667. package/dist/variant.js +92 -92
  668. package/dist/vcs/patch.js +1 -1
  669. package/dist/vcs.js +88 -88
  670. package/dist/websearch.js +79 -79
  671. package/dist/wellknown/plugin.js +75 -75
  672. package/dist/wellknown.js +80 -80
  673. package/dist/workspace/driver.js +5 -5
  674. package/dist/workspace/sql.js +1 -1
  675. package/dist/workspace.js +79 -79
  676. package/dist/worktree/directory.js +2 -2
  677. package/dist/worktree/git.js +10 -10
  678. package/dist/worktree/refresh.js +340 -340
  679. package/dist/worktree/sql.js +5 -5
  680. package/dist/worktree.js +93 -93
  681. package/package.json +8 -8
  682. package/dist/chunks/model-resolver-365vt7ws.js +0 -26
  683. package/dist/chunks/model-resolver-7cd0656b.js +0 -468
  684. package/dist/chunks/model-resolver-d4wbe6d2.js +0 -251
  685. /package/dist/chunks/{model-resolver-0mesazry.js → state-0mesazry.js} +0 -0
  686. /package/dist/chunks/{model-resolver-0qkdqm5v.js → state-0qkdqm5v.js} +0 -0
  687. /package/dist/chunks/{model-resolver-0zkw76rk.js → state-0zkw76rk.js} +0 -0
  688. /package/dist/chunks/{model-resolver-17cy0kzp.js → state-17cy0kzp.js} +0 -0
  689. /package/dist/chunks/{model-resolver-1cnp2v09.js → state-1cnp2v09.js} +0 -0
  690. /package/dist/chunks/{model-resolver-1kg9ymc8.js → state-1kg9ymc8.js} +0 -0
  691. /package/dist/chunks/{model-resolver-24dcb14g.js → state-24dcb14g.js} +0 -0
  692. /package/dist/chunks/{model-resolver-2710q6r3.js → state-2710q6r3.js} +0 -0
  693. /package/dist/chunks/{model-resolver-2axfhc9x.js → state-2axfhc9x.js} +0 -0
  694. /package/dist/chunks/{model-resolver-2c3vjs8z.js → state-2c3vjs8z.js} +0 -0
  695. /package/dist/chunks/{model-resolver-359p4xyc.js → state-359p4xyc.js} +0 -0
  696. /package/dist/chunks/{model-resolver-3asan66x.js → state-3asan66x.js} +0 -0
  697. /package/dist/chunks/{model-resolver-3v8g72cx.js → state-3v8g72cx.js} +0 -0
  698. /package/dist/chunks/{model-resolver-3w5fmr99.js → state-3w5fmr99.js} +0 -0
  699. /package/dist/chunks/{model-resolver-3wcehsnq.js → state-3wcehsnq.js} +0 -0
  700. /package/dist/chunks/{model-resolver-43n2bw4t.js → state-43n2bw4t.js} +0 -0
  701. /package/dist/chunks/{model-resolver-4knz6hnm.js → state-4knz6hnm.js} +0 -0
  702. /package/dist/chunks/{model-resolver-4vcrnpx2.js → state-4vcrnpx2.js} +0 -0
  703. /package/dist/chunks/{model-resolver-4y7fprxs.js → state-4y7fprxs.js} +0 -0
  704. /package/dist/chunks/{model-resolver-53557ph1.js → state-53557ph1.js} +0 -0
  705. /package/dist/chunks/{model-resolver-550bvhaj.js → state-550bvhaj.js} +0 -0
  706. /package/dist/chunks/{model-resolver-5qd3pb7m.js → state-5qd3pb7m.js} +0 -0
  707. /package/dist/chunks/{model-resolver-6prwharc.js → state-6prwharc.js} +0 -0
  708. /package/dist/chunks/{model-resolver-7akdwqpd.js → state-7akdwqpd.js} +0 -0
  709. /package/dist/chunks/{model-resolver-7m9af43g.js → state-7m9af43g.js} +0 -0
  710. /package/dist/chunks/{model-resolver-822emrt2.js → state-822emrt2.js} +0 -0
  711. /package/dist/chunks/{model-resolver-88xbtdfr.js → state-88xbtdfr.js} +0 -0
  712. /package/dist/chunks/{model-resolver-8n3pysct.js → state-8n3pysct.js} +0 -0
  713. /package/dist/chunks/{model-resolver-922hggd3.js → state-922hggd3.js} +0 -0
  714. /package/dist/chunks/{model-resolver-9a4afbnw.js → state-9a4afbnw.js} +0 -0
  715. /package/dist/chunks/{model-resolver-9rqn6x4v.js → state-9rqn6x4v.js} +0 -0
  716. /package/dist/chunks/{model-resolver-a6k6eb26.js → state-a6k6eb26.js} +0 -0
  717. /package/dist/chunks/{model-resolver-af5trqkr.js → state-af5trqkr.js} +0 -0
  718. /package/dist/chunks/{model-resolver-afrmfg78.js → state-afrmfg78.js} +0 -0
  719. /package/dist/chunks/{model-resolver-aqzs7mqg.js → state-aqzs7mqg.js} +0 -0
  720. /package/dist/chunks/{model-resolver-atq7p7m5.js → state-atq7p7m5.js} +0 -0
  721. /package/dist/chunks/{model-resolver-bkyjaxrp.js → state-bkyjaxrp.js} +0 -0
  722. /package/dist/chunks/{model-resolver-bmr6ed5q.js → state-bmr6ed5q.js} +0 -0
  723. /package/dist/chunks/{model-resolver-cf4snx6d.js → state-cf4snx6d.js} +0 -0
  724. /package/dist/chunks/{model-resolver-cvy3z8tj.js → state-cvy3z8tj.js} +0 -0
  725. /package/dist/chunks/{model-resolver-d9fn303g.js → state-d9fn303g.js} +0 -0
  726. /package/dist/chunks/{model-resolver-d9jj8t3e.js → state-d9jj8t3e.js} +0 -0
  727. /package/dist/chunks/{model-resolver-dajrwvna.js → state-dajrwvna.js} +0 -0
  728. /package/dist/chunks/{model-resolver-dap0rakb.js → state-dap0rakb.js} +0 -0
  729. /package/dist/chunks/{model-resolver-df08tz66.js → state-df08tz66.js} +0 -0
  730. /package/dist/chunks/{model-resolver-dy18nga0.js → state-dy18nga0.js} +0 -0
  731. /package/dist/chunks/{model-resolver-e5kj55wp.js → state-e5kj55wp.js} +0 -0
  732. /package/dist/chunks/{model-resolver-e73j6tqm.js → state-e73j6tqm.js} +0 -0
  733. /package/dist/chunks/{model-resolver-ec1grn59.js → state-ec1grn59.js} +0 -0
  734. /package/dist/chunks/{model-resolver-eh3zwz77.js → state-eh3zwz77.js} +0 -0
  735. /package/dist/chunks/{model-resolver-emrn6kk6.js → state-emrn6kk6.js} +0 -0
  736. /package/dist/chunks/{model-resolver-f0mxakyp.js → state-f0mxakyp.js} +0 -0
  737. /package/dist/chunks/{model-resolver-f6n9ztr4.js → state-f6n9ztr4.js} +0 -0
  738. /package/dist/chunks/{model-resolver-faypxj3z.js → state-faypxj3z.js} +0 -0
  739. /package/dist/chunks/{model-resolver-fd410y7t.js → state-fd410y7t.js} +0 -0
  740. /package/dist/chunks/{model-resolver-fxgpk5d8.js → state-fxgpk5d8.js} +0 -0
  741. /package/dist/chunks/{model-resolver-g4wezp1m.js → state-g4wezp1m.js} +0 -0
  742. /package/dist/chunks/{model-resolver-g86h250q.js → state-g86h250q.js} +0 -0
  743. /package/dist/chunks/{model-resolver-gebd4c9n.js → state-gebd4c9n.js} +0 -0
  744. /package/dist/chunks/{model-resolver-gftt206x.js → state-gftt206x.js} +0 -0
  745. /package/dist/chunks/{model-resolver-hjbc5kem.js → state-hjbc5kem.js} +0 -0
  746. /package/dist/chunks/{model-resolver-hk9envan.js → state-hk9envan.js} +0 -0
  747. /package/dist/chunks/{model-resolver-j2ntwpah.js → state-j2ntwpah.js} +0 -0
  748. /package/dist/chunks/{model-resolver-j5zkgpj8.js → state-j5zkgpj8.js} +0 -0
  749. /package/dist/chunks/{model-resolver-jjkms2e6.js → state-jjkms2e6.js} +0 -0
  750. /package/dist/chunks/{model-resolver-jr7sbwjy.js → state-jr7sbwjy.js} +0 -0
  751. /package/dist/chunks/{model-resolver-jwfs4k6c.js → state-jwfs4k6c.js} +0 -0
  752. /package/dist/chunks/{model-resolver-jzg6c2d5.js → state-jzg6c2d5.js} +0 -0
  753. /package/dist/chunks/{model-resolver-mp448xyj.js → state-mp448xyj.js} +0 -0
  754. /package/dist/chunks/{model-resolver-msx8hqn2.js → state-msx8hqn2.js} +0 -0
  755. /package/dist/chunks/{model-resolver-n05xt0ee.js → state-n05xt0ee.js} +0 -0
  756. /package/dist/chunks/{model-resolver-n3j8tn72.js → state-n3j8tn72.js} +0 -0
  757. /package/dist/chunks/{model-resolver-njntx4h6.js → state-njntx4h6.js} +0 -0
  758. /package/dist/chunks/{model-resolver-q3sfg36h.js → state-q3sfg36h.js} +0 -0
  759. /package/dist/chunks/{model-resolver-q74kybfr.js → state-q74kybfr.js} +0 -0
  760. /package/dist/chunks/{model-resolver-qaymkmh1.js → state-qaymkmh1.js} +0 -0
  761. /package/dist/chunks/{model-resolver-qb87gjwd.js → state-qb87gjwd.js} +0 -0
  762. /package/dist/chunks/{model-resolver-qfa1cgps.js → state-qfa1cgps.js} +0 -0
  763. /package/dist/chunks/{model-resolver-qg3g05ea.js → state-qg3g05ea.js} +0 -0
  764. /package/dist/chunks/{model-resolver-qrg20bc0.js → state-qrg20bc0.js} +0 -0
  765. /package/dist/chunks/{model-resolver-rcb2kzg1.js → state-rcb2kzg1.js} +0 -0
  766. /package/dist/chunks/{model-resolver-sdp7kfr6.js → state-sdp7kfr6.js} +0 -0
  767. /package/dist/chunks/{model-resolver-sk3qaz4a.js → state-sk3qaz4a.js} +0 -0
  768. /package/dist/chunks/{model-resolver-ssg3fenm.js → state-ssg3fenm.js} +0 -0
  769. /package/dist/chunks/{model-resolver-twg0f83k.js → state-twg0f83k.js} +0 -0
  770. /package/dist/chunks/{model-resolver-w803qqfp.js → state-w803qqfp.js} +0 -0
  771. /package/dist/chunks/{model-resolver-wc3fc9cn.js → state-wc3fc9cn.js} +0 -0
  772. /package/dist/chunks/{model-resolver-wer8tq1h.js → state-wer8tq1h.js} +0 -0
  773. /package/dist/chunks/{model-resolver-wtztk69x.js → state-wtztk69x.js} +0 -0
  774. /package/dist/chunks/{model-resolver-x0ckcb58.js → state-x0ckcb58.js} +0 -0
  775. /package/dist/chunks/{model-resolver-x61499pn.js → state-x61499pn.js} +0 -0
  776. /package/dist/chunks/{model-resolver-y44na4kk.js → state-y44na4kk.js} +0 -0
  777. /package/dist/chunks/{model-resolver-y8cydn3q.js → state-y8cydn3q.js} +0 -0
  778. /package/dist/chunks/{model-resolver-y8f7s663.js → state-y8f7s663.js} +0 -0
  779. /package/dist/chunks/{model-resolver-ygaqb7jw.js → state-ygaqb7jw.js} +0 -0
  780. /package/dist/chunks/{model-resolver-ym463w8f.js → state-ym463w8f.js} +0 -0
  781. /package/dist/chunks/{model-resolver-z9919s4g.js → state-z9919s4g.js} +0 -0
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  __export
3
- } from "./model-resolver-9rqn6x4v.js";
3
+ } from "./state-9rqn6x4v.js";
4
4
 
5
5
  // src/config/plugin/entry-observer.ts
6
6
  var exports_entry_observer = {};
@@ -1,37 +1,37 @@
1
1
  import {
2
2
  Service80,
3
3
  node85
4
- } from "./model-resolver-c4vkqgmy.js";
4
+ } from "./state-spx2bnh9.js";
5
5
  import {
6
- Service75,
7
- node79
8
- } from "./model-resolver-jetrtpqb.js";
6
+ Service77,
7
+ node82
8
+ } from "./state-0y8dyykb.js";
9
9
  import {
10
- ID18,
11
- Service79,
12
- node84
13
- } from "./model-resolver-88ksh428.js";
10
+ ID10,
11
+ Service66,
12
+ node71
13
+ } from "./state-e8dtjarm.js";
14
14
  import {
15
- NotFoundError7
16
- } from "./model-resolver-yby6xn0t.js";
15
+ NotFoundError9
16
+ } from "./state-ybhbtxjg.js";
17
17
  import {
18
- Service57,
19
- node60
20
- } from "./model-resolver-x30xw0sc.js";
18
+ Service64,
19
+ node69
20
+ } from "./state-q6djktq7.js";
21
21
  import {
22
22
  match2
23
- } from "./model-resolver-y1fvbwt7.js";
23
+ } from "./state-y1fvbwt7.js";
24
24
  import {
25
- Service56,
26
- node59
27
- } from "./model-resolver-kkyytty7.js";
25
+ Service65,
26
+ node70
27
+ } from "./state-bk8e4xf7.js";
28
28
  import {
29
- Service58,
30
- node61
31
- } from "./model-resolver-aq5y8b9e.js";
29
+ Service67,
30
+ node72
31
+ } from "./state-6qkc0t3x.js";
32
32
  import {
33
33
  __export
34
- } from "./model-resolver-9rqn6x4v.js";
34
+ } from "./state-9rqn6x4v.js";
35
35
 
36
36
  // src/permission.ts
37
37
  var exports_permission2 = {};
@@ -42,30 +42,30 @@ __export(exports_permission2, {
42
42
  CorrectedError: () => CorrectedError2,
43
43
  DeclinedError: () => DeclinedError2,
44
44
  Effect: () => PermissionEffect,
45
- Event: () => Event12,
46
- ID: () => ID7,
47
- NotFoundError: () => NotFoundError6,
45
+ Event: () => Event14,
46
+ ID: () => ID8,
47
+ NotFoundError: () => NotFoundError8,
48
48
  Permission: () => exports_permission2,
49
49
  Reply: () => Reply2,
50
50
  ReplyInput: () => ReplyInput2,
51
51
  Request: () => Request2,
52
52
  Rule: () => Rule3,
53
53
  Ruleset: () => Ruleset2,
54
- Service: () => Service55,
55
- Source: () => Source4,
54
+ Service: () => Service63,
55
+ Source: () => Source5,
56
56
  evaluate: () => evaluate2,
57
57
  merge: () => merge2,
58
- node: () => node58
58
+ node: () => node68
59
59
  });
60
60
  import { makeLocationNode } from "@opencode/util/effect/app-node";
61
61
  import { Context, Deferred, Effect, Layer, Schema } from "effect";
62
62
  import { Permission } from "@opencode/schema/permission";
63
63
  import { Rule as Rule3, Ruleset as Ruleset2 } from "@opencode/schema/permission";
64
- import { Event as Event12 } from "@opencode/schema/permission";
64
+ import { Event as Event14 } from "@opencode/schema/permission";
65
65
  var PermissionEffect = Permission.Effect;
66
66
  var missingAgentPermissions = [{ action: "*", resource: "*", effect: "deny" }];
67
- var ID7 = Permission.ID;
68
- var Source4 = Permission.Source;
67
+ var ID8 = Permission.ID;
68
+ var Source5 = Permission.Source;
69
69
  var RequestFields = {
70
70
  sessionID: Permission.Request.fields.sessionID,
71
71
  action: Permission.Request.fields.action,
@@ -77,17 +77,17 @@ var RequestFields = {
77
77
  var Request2 = Permission.Request;
78
78
  var Reply2 = Permission.Reply;
79
79
  var AssertInput2 = Schema.Struct({
80
- id: ID7.pipe(Schema.optional),
80
+ id: ID8.pipe(Schema.optional),
81
81
  ...RequestFields,
82
- agent: ID18.pipe(Schema.optional)
82
+ agent: ID10.pipe(Schema.optional)
83
83
  }).annotate({ identifier: "Permission.AssertInput" });
84
84
  var ReplyInput2 = Schema.Struct({
85
- requestID: ID7,
85
+ requestID: ID8,
86
86
  reply: Reply2,
87
87
  message: Schema.String.pipe(Schema.optional)
88
88
  }).annotate({ identifier: "Permission.ReplyInput" });
89
89
  var AskResult2 = Schema.Struct({
90
- id: ID7,
90
+ id: ID8,
91
91
  effect: Permission.Effect
92
92
  }).annotate({ identifier: "Permission.AskResult" });
93
93
 
@@ -110,8 +110,8 @@ class BlockedError2 extends Schema.TaggedError()("Permission.BlockedError", {
110
110
  }
111
111
  }
112
112
 
113
- class NotFoundError6 extends Schema.TaggedError()("Permission.NotFoundError", {
114
- requestID: ID7
113
+ class NotFoundError8 extends Schema.TaggedError()("Permission.NotFoundError", {
114
+ requestID: ID8
115
115
  }) {
116
116
  }
117
117
  function evaluate2(action, resource, ...rulesets) {
@@ -125,15 +125,15 @@ function merge2(...rulesets) {
125
125
  return rulesets.flat();
126
126
  }
127
127
 
128
- class Service55 extends Context.Service()("@opencode/Permission") {
128
+ class Service63 extends Context.Service()("@opencode/Permission") {
129
129
  }
130
- var layer = Layer.effect(Service55, Effect.gen(function* () {
130
+ var layer = Layer.effect(Service63, Effect.gen(function* () {
131
131
  const bus = yield* Service80;
132
- const location = yield* Service75;
133
- const agents = yield* Service79;
134
- const sessions = yield* Service57;
135
- const saved = yield* Service56;
136
- const hooks = yield* Service58;
132
+ const location = yield* Service77;
133
+ const agents = yield* Service66;
134
+ const sessions = yield* Service64;
135
+ const saved = yield* Service65;
136
+ const hooks = yield* Service67;
137
137
  const pending = new Map;
138
138
  yield* Effect.addFinalizer(() => Effect.forEach(pending.values(), (item) => Deferred.fail(item.deferred, new DeclinedError2), {
139
139
  discard: true
@@ -150,7 +150,7 @@ var layer = Layer.effect(Service55, Effect.gen(function* () {
150
150
  const configured = Effect.fnUntraced(function* (sessionID, agentID) {
151
151
  const session = yield* sessions.get(sessionID);
152
152
  if (!session)
153
- return yield* new NotFoundError7({ sessionID });
153
+ return yield* new NotFoundError9({ sessionID });
154
154
  const agent = yield* agents.resolve(agentID ?? session.agent);
155
155
  return merge2(agent?.permissions ?? missingAgentPermissions, session.permissions ?? []);
156
156
  });
@@ -180,7 +180,7 @@ var layer = Layer.effect(Service55, Effect.gen(function* () {
180
180
  });
181
181
  function request(input, message) {
182
182
  return {
183
- id: input.id ?? ID7.create(),
183
+ id: input.id ?? ID8.create(),
184
184
  sessionID: input.sessionID,
185
185
  action: input.action,
186
186
  resources: input.resources,
@@ -228,7 +228,7 @@ var layer = Layer.effect(Service55, Effect.gen(function* () {
228
228
  const reply = Effect.fn("Permission.reply")((input) => Effect.uninterruptible(Effect.gen(function* () {
229
229
  const existing = pending.get(input.requestID);
230
230
  if (!existing)
231
- return yield* new NotFoundError6({ requestID: input.requestID });
231
+ return yield* new NotFoundError8({ requestID: input.requestID });
232
232
  yield* bus.publish(Permission.Event.Replied, {
233
233
  sessionID: existing.request.sessionID,
234
234
  requestID: existing.request.id,
@@ -283,12 +283,12 @@ var layer = Layer.effect(Service55, Effect.gen(function* () {
283
283
  const forSession = Effect.fn("Permission.forSession")(function* (sessionID) {
284
284
  return Array.from(pending.values(), (item) => item.request).filter((request) => request.sessionID === sessionID);
285
285
  });
286
- return Service55.of({ ask, assert, reply, get, forSession, list });
286
+ return Service63.of({ ask, assert, reply, get, forSession, list });
287
287
  }));
288
- var node58 = makeLocationNode({
289
- service: Service55,
288
+ var node68 = makeLocationNode({
289
+ service: Service63,
290
290
  layer,
291
- deps: [node85, node79, node84, node60, node59, node61]
291
+ deps: [node85, node82, node71, node69, node70, node72]
292
292
  });
293
293
 
294
- export { PermissionEffect, ID7, Source4, Request2, Reply2, AssertInput2, ReplyInput2, AskResult2, DeclinedError2, CorrectedError2, BlockedError2, NotFoundError6, evaluate2, merge2, Service55, node58, exports_permission2, Rule3, Ruleset2, Event12 };
294
+ export { PermissionEffect, ID8, Source5, Request2, Reply2, AssertInput2, ReplyInput2, AskResult2, DeclinedError2, CorrectedError2, BlockedError2, NotFoundError8, evaluate2, merge2, Service63, node68, exports_permission2, Rule3, Ruleset2, Event14 };
@@ -1,11 +1,11 @@
1
1
  import {
2
2
  which2
3
- } from "./model-resolver-qaymkmh1.js";
3
+ } from "./state-qaymkmh1.js";
4
4
 
5
5
  // src/formatter/builtins.ts
6
6
  import { Effect } from "effect";
7
7
  import { ChildProcess } from "effect/unstable/process";
8
- function make9(input) {
8
+ function make5(input) {
9
9
  const disabled = false;
10
10
  const findExecutable = (name) => which2(name, undefined, input.bin);
11
11
  const findUp = (target) => input.fs.findUp(target, input.directory, input.worktree);
@@ -261,4 +261,4 @@ function isRecord(input) {
261
261
  return Boolean(input && typeof input === "object" && !Array.isArray(input));
262
262
  }
263
263
 
264
- export { make9 };
264
+ export { make5 };
@@ -1,15 +1,15 @@
1
1
  import {
2
2
  __export
3
- } from "./model-resolver-9rqn6x4v.js";
3
+ } from "./state-9rqn6x4v.js";
4
4
 
5
5
  // src/session/run-coordinator.ts
6
6
  var exports_run_coordinator = {};
7
7
  __export(exports_run_coordinator, {
8
8
  SessionRunCoordinator: () => exports_run_coordinator,
9
- make: () => make17
9
+ make: () => make18
10
10
  });
11
11
  import { Deferred, Effect, Fiber, FiberSet } from "effect";
12
- var make17 = (options) => Effect.gen(function* () {
12
+ var make18 = (options) => Effect.gen(function* () {
13
13
  const executions = new Map;
14
14
  const fork = yield* FiberSet.makeRuntime();
15
15
  const loop = (key, execution, force) => Effect.suspend(() => options.drain(key, force, execution.scope)).pipe(Effect.andThen(Effect.suspend(() => {
@@ -89,4 +89,4 @@ var make17 = (options) => Effect.gen(function* () {
89
89
  };
90
90
  });
91
91
 
92
- export { make17, exports_run_coordinator };
92
+ export { make18, exports_run_coordinator };
@@ -1,10 +1,10 @@
1
1
  import {
2
2
  definition2,
3
3
  normalizedName2
4
- } from "./model-resolver-3w5fmr99.js";
4
+ } from "./state-3w5fmr99.js";
5
5
  import {
6
6
  __export
7
- } from "./model-resolver-9rqn6x4v.js";
7
+ } from "./state-9rqn6x4v.js";
8
8
 
9
9
  // src/codemode/tool.ts
10
10
  var exports_tool2 = {};
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  __export
3
- } from "./model-resolver-9rqn6x4v.js";
3
+ } from "./state-9rqn6x4v.js";
4
4
 
5
5
  // src/state.ts
6
6
  var exports_state = {};
@@ -4,43 +4,43 @@ import {
4
4
  normalizeContent2,
5
5
  normalizedName2,
6
6
  effectiveName2
7
- } from "./model-resolver-3w5fmr99.js";
7
+ } from "./state-3w5fmr99.js";
8
8
  import {
9
9
  create2,
10
10
  catalog2
11
- } from "./model-resolver-r9mregkx.js";
11
+ } from "./state-r9mregkx.js";
12
12
  import {
13
13
  create3
14
- } from "./model-resolver-rdw6cm16.js";
14
+ } from "./state-rdw6cm16.js";
15
15
  import {
16
- Service78,
17
- node82
18
- } from "./model-resolver-56bnbftg.js";
16
+ Service45,
17
+ node50
18
+ } from "./state-dedpvjp1.js";
19
19
  import {
20
- Service58,
21
- node61
22
- } from "./model-resolver-aq5y8b9e.js";
20
+ Service67,
21
+ node72
22
+ } from "./state-6qkc0t3x.js";
23
23
  import {
24
24
  match2
25
- } from "./model-resolver-y1fvbwt7.js";
25
+ } from "./state-y1fvbwt7.js";
26
26
  import {
27
27
  __export
28
- } from "./model-resolver-9rqn6x4v.js";
28
+ } from "./state-9rqn6x4v.js";
29
29
 
30
30
  // src/tool.ts
31
31
  var exports_tool = {};
32
32
  __export(exports_tool, {
33
33
  CallID: () => CallID2,
34
- Content: () => Content3,
34
+ Content: () => Content2,
35
35
  Error: () => Error3,
36
36
  FileContent: () => FileContent3,
37
37
  RegistrationError: () => RegistrationError2,
38
- Service: () => Service35,
38
+ Service: () => Service38,
39
39
  TextContent: () => TextContent2,
40
40
  Tool: () => exports_tool,
41
- node: () => node39
41
+ node: () => node42
42
42
  });
43
- import { CallID as CallID2, Content as Content3, Error as Error3, FileContent as FileContent3, TextContent as TextContent2 } from "@opencode/schema/tool";
43
+ import { CallID as CallID2, Content as Content2, Error as Error3, FileContent as FileContent3, TextContent as TextContent2 } from "@opencode/schema/tool";
44
44
  import { ToolDefinition } from "@opencode/ai";
45
45
  import { Tool } from "@opencode/schema/tool";
46
46
  import { Context, Effect, Layer, Result, Schema, SchemaIssue } from "effect";
@@ -51,11 +51,11 @@ class RegistrationError2 extends Schema.TaggedError()("Tool.RegistrationError",
51
51
  }) {
52
52
  }
53
53
 
54
- class Service35 extends Context.Service()("@opencode/Tool") {
54
+ class Service38 extends Context.Service()("@opencode/Tool") {
55
55
  }
56
- var layer = Layer.effect(Service35, Effect.gen(function* () {
57
- const hooks = yield* Service58;
58
- const image = yield* Service78;
56
+ var layer = Layer.effect(Service38, Effect.gen(function* () {
57
+ const hooks = yield* Service67;
58
+ const image = yield* Service45;
59
59
  const normalizeImages = Effect.fnUntraced(function* (content) {
60
60
  const normalized = yield* Effect.forEach(content, (item) => {
61
61
  if (item.type !== "file" || !item.mime.startsWith("image/"))
@@ -180,7 +180,7 @@ var layer = Layer.effect(Service35, Effect.gen(function* () {
180
180
  error: error.message
181
181
  }), { discard: true })
182
182
  });
183
- return Service35.of({
183
+ return Service38.of({
184
184
  transform: state.transform,
185
185
  reload: state.reload,
186
186
  snapshot: Effect.fn("Tool.snapshot")((permissions) => Effect.sync(() => {
@@ -264,10 +264,10 @@ function namespaceError(name) {
264
264
  return;
265
265
  return new RegistrationError2({ name, message: `Invalid tool namespace: ${JSON.stringify(name)}` });
266
266
  }
267
- var node39 = makeLocationNode({
268
- service: Service35,
267
+ var node42 = makeLocationNode({
268
+ service: Service38,
269
269
  layer,
270
- deps: [node61, node82]
270
+ deps: [node72, node50]
271
271
  });
272
272
 
273
- export { RegistrationError2, Service35, node39, exports_tool, CallID2, Content3, Error3, FileContent3, TextContent2 };
273
+ export { RegistrationError2, Service38, node42, exports_tool, CallID2, Content2, Error3, FileContent3, TextContent2 };
@@ -1,118 +1,118 @@
1
1
  import {
2
2
  Service81,
3
3
  node86
4
- } from "./model-resolver-jw46dxtn.js";
4
+ } from "./state-brt4p7q6.js";
5
5
  import {
6
- Service75,
7
- node79
8
- } from "./model-resolver-jetrtpqb.js";
6
+ Service77,
7
+ node82
8
+ } from "./state-0y8dyykb.js";
9
9
  import {
10
10
  VariantID2,
11
11
  Ref2,
12
- Service70,
13
- node74
14
- } from "./model-resolver-yhm2n21y.js";
12
+ Service71,
13
+ node76
14
+ } from "./state-vd3vzfjc.js";
15
15
  import {
16
- ID18,
17
- Service79,
18
- node84
19
- } from "./model-resolver-88ksh428.js";
16
+ ID10,
17
+ Service66,
18
+ node71
19
+ } from "./state-e8dtjarm.js";
20
20
  import {
21
21
  AgentNotFoundError2
22
- } from "./model-resolver-yby6xn0t.js";
22
+ } from "./state-ybhbtxjg.js";
23
23
  import {
24
24
  combine2
25
- } from "./model-resolver-t550f9t1.js";
25
+ } from "./state-rhjbct0v.js";
26
26
  import {
27
27
  provenance2
28
- } from "./model-resolver-mfhfdr54.js";
28
+ } from "./state-06dxphr1.js";
29
29
  import {
30
30
  entriesForRunner2
31
- } from "./model-resolver-cjdr13sd.js";
31
+ } from "./state-xrrv4szm.js";
32
32
  import {
33
- Service57,
34
- node60
35
- } from "./model-resolver-x30xw0sc.js";
33
+ Service64,
34
+ node69
35
+ } from "./state-q6djktq7.js";
36
36
  import {
37
37
  merge2
38
- } from "./model-resolver-0qkw0z8d.js";
38
+ } from "./state-r4spvhqj.js";
39
39
  import {
40
- make14
41
- } from "./model-resolver-80nc4spm.js";
40
+ make13
41
+ } from "./state-49efg6hh.js";
42
42
  import {
43
43
  Service34,
44
44
  node38
45
- } from "./model-resolver-n8zt5qe2.js";
45
+ } from "./state-dvzdqzst.js";
46
46
  import {
47
- Service26,
48
- node31
49
- } from "./model-resolver-5q5x7c6y.js";
47
+ Service23,
48
+ node28
49
+ } from "./state-t8pps5yz.js";
50
50
  import {
51
- Service35,
52
- node39
53
- } from "./model-resolver-k9vjcjta.js";
51
+ Service38,
52
+ node42
53
+ } from "./state-rex1qj25.js";
54
54
  import {
55
- Service29,
56
- node33
57
- } from "./model-resolver-1j146x5q.js";
55
+ Service22,
56
+ node27
57
+ } from "./state-hjscxttq.js";
58
58
  import {
59
- Service24,
60
- node29
61
- } from "./model-resolver-frva07hn.js";
59
+ Service21,
60
+ node26
61
+ } from "./state-1x2m2kns.js";
62
62
  import {
63
- Service25,
64
- node30
65
- } from "./model-resolver-3w3j0q5e.js";
63
+ Service19,
64
+ node24
65
+ } from "./state-1jxz1f4t.js";
66
66
  import {
67
- Service33,
68
- node37
69
- } from "./model-resolver-xe1vchrn.js";
67
+ Service18,
68
+ node23
69
+ } from "./state-898yeema.js";
70
70
  import {
71
- Service28,
72
- node32
73
- } from "./model-resolver-jk8r4hg4.js";
71
+ Service20,
72
+ node25
73
+ } from "./state-3hzsgabf.js";
74
74
  import {
75
- Service30,
76
- node34
77
- } from "./model-resolver-0tmbmzm8.js";
75
+ Service24,
76
+ node29
77
+ } from "./state-z25aqp2g.js";
78
78
  import {
79
- Service48,
80
- node51
81
- } from "./model-resolver-ca9547p7.js";
79
+ Service53,
80
+ node57
81
+ } from "./state-wk4mdq5k.js";
82
82
  import {
83
83
  __export
84
- } from "./model-resolver-9rqn6x4v.js";
84
+ } from "./state-9rqn6x4v.js";
85
85
 
86
86
  // src/session/context.ts
87
87
  var exports_context = {};
88
88
  __export(exports_context, {
89
- Service: () => Service23,
89
+ Service: () => Service17,
90
90
  SessionContext: () => exports_context,
91
- node: () => node28
91
+ node: () => node22
92
92
  });
93
93
  import { Context, Effect, Layer } from "effect";
94
94
  import { makeLocationNode } from "@opencode/util/effect/app-node";
95
- class Service23 extends Context.Service()("@opencode/SessionContext") {
95
+ class Service17 extends Context.Service()("@opencode/SessionContext") {
96
96
  }
97
- var layer = Layer.effect(Service23, Effect.gen(function* () {
98
- const agents = yield* Service79;
99
- const builtins = yield* Service26;
100
- const model = yield* Service70;
97
+ var layer = Layer.effect(Service17, Effect.gen(function* () {
98
+ const agents = yield* Service66;
99
+ const builtins = yield* Service23;
100
+ const model = yield* Service71;
101
101
  const db = (yield* Service81).db;
102
102
  const discovery = yield* Service34;
103
- const entries = yield* Service28;
104
- const location = yield* Service75;
105
- const mcpInstructions = yield* Service24;
106
- const mcpTools = yield* Service29;
107
- const models = yield* Service48;
108
- const request = yield* Service30;
109
- const referenceInstructions = yield* Service25;
110
- const skillInstructions = yield* Service33;
111
- const store = yield* Service57;
112
- const registry = yield* Service35;
103
+ const entries = yield* Service20;
104
+ const location = yield* Service77;
105
+ const mcpInstructions = yield* Service21;
106
+ const mcpTools = yield* Service22;
107
+ const models = yield* Service53;
108
+ const request = yield* Service24;
109
+ const referenceInstructions = yield* Service19;
110
+ const skillInstructions = yield* Service18;
111
+ const store = yield* Service64;
112
+ const registry = yield* Service38;
113
113
  const resolveModel = (session) => models.resolve(session, model.available);
114
114
  const selectTitle = Effect.fn("SessionContext.selectTitle")(function* (session) {
115
- const agent = yield* agents.get(ID18.make("title"));
115
+ const agent = yield* agents.get(ID10.make("title"));
116
116
  if (!agent)
117
117
  return;
118
118
  const primary = yield* resolveModel(session).pipe(Effect.orElseSucceed(() => {
@@ -165,7 +165,7 @@ var layer = Layer.effect(Service23, Effect.gen(function* () {
165
165
  agent: { ...agent, info: agent.info },
166
166
  instructions: combine2([
167
167
  loaded.builtins,
168
- make14(loaded.tools.codeModeCatalog),
168
+ make13(loaded.tools.codeModeCatalog),
169
169
  loaded.discovery,
170
170
  loaded.skills,
171
171
  loaded.references,
@@ -187,29 +187,29 @@ var layer = Layer.effect(Service23, Effect.gen(function* () {
187
187
  tools: selection.tools
188
188
  };
189
189
  });
190
- return Service23.of({ select, load, resolveModel, selectTitle, request });
190
+ return Service17.of({ select, load, resolveModel, selectTitle, request });
191
191
  }));
192
192
  var MINIMAL_REASONING_VARIANTS = ["none", "minimal", "low"].map((id) => VariantID2.make(id));
193
- var node28 = makeLocationNode({
194
- service: Service23,
193
+ var node22 = makeLocationNode({
194
+ service: Service17,
195
195
  layer,
196
196
  deps: [
197
- node84,
198
- node74,
197
+ node71,
198
+ node76,
199
199
  node86,
200
- node31,
200
+ node28,
201
201
  node38,
202
- node32,
203
- node79,
202
+ node25,
203
+ node82,
204
+ node26,
205
+ node27,
206
+ node24,
207
+ node57,
204
208
  node29,
205
- node33,
206
- node30,
207
- node51,
208
- node34,
209
- node60,
210
- node37,
211
- node39
209
+ node69,
210
+ node23,
211
+ node42
212
212
  ]
213
213
  });
214
214
 
215
- export { Service23, node28, exports_context };
215
+ export { Service17, node22, exports_context };
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  __export
3
- } from "./model-resolver-9rqn6x4v.js";
3
+ } from "./state-9rqn6x4v.js";
4
4
 
5
5
  // src/instructions/index.ts
6
6
  var exports_instructions6 = {};
@@ -18,7 +18,7 @@ __export(exports_instructions6, {
18
18
  diffByKey: () => diffByKey2,
19
19
  empty: () => empty3,
20
20
  hash: () => hash2,
21
- make: () => make19,
21
+ make: () => make20,
22
22
  read: () => read3,
23
23
  removed: () => removed2,
24
24
  renderInitial: () => renderInitial2,
@@ -50,7 +50,7 @@ class DuplicateKeyError2 extends Schema.TaggedError()("Instructions.DuplicateKey
50
50
  }
51
51
  }
52
52
  var empty3 = [];
53
- function make19(source) {
53
+ function make20(source) {
54
54
  const decode = Schema.decodeUnknownOption(source.codec);
55
55
  const encode = Schema.encodeSync(source.codec);
56
56
  const initial = (value) => requireText(source.key, "initial", source.render.initial(value));
@@ -193,4 +193,4 @@ function requireText(key, kind, text) {
193
193
  return text;
194
194
  }
195
195
 
196
- export { Key3, Hash2, Values2, Delta2, unavailable3, removed2, InitializationBlocked2, DuplicateKeyError2, empty3, make19, combine2, read3, diff2, renderInitial2, renderUpdate2, hash2, applyHashDelta2, diffByKey2, exports_instructions6 };
196
+ export { Key3, Hash2, Values2, Delta2, unavailable3, removed2, InitializationBlocked2, DuplicateKeyError2, empty3, make20, combine2, read3, diff2, renderInitial2, renderUpdate2, hash2, applyHashDelta2, diffByKey2, exports_instructions6 };