@opencode/core 0.0.0-dev-20341 → 0.0.0-dev-20345

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (800) hide show
  1. package/dist/account/sql.js +1 -1
  2. package/dist/agent.js +83 -83
  3. package/dist/aisdk-native.js +89 -89
  4. package/dist/aisdk.js +94 -94
  5. package/dist/app.js +9 -9
  6. package/dist/bus.js +75 -75
  7. package/dist/chunks/{persistent-pty-4hvfhxsc.js → state-0e4jz1n8.js} +17 -17
  8. package/dist/chunks/{persistent-pty-6yfg5v83.js → state-0npnkq69.js} +20 -20
  9. package/dist/chunks/{persistent-pty-0paq2nw3.js → state-0paq2nw3.js} +1 -1
  10. package/dist/chunks/{persistent-pty-ggr88sj4.js → state-0rhrw73v.js} +18 -18
  11. package/dist/chunks/{persistent-pty-k8hpw67k.js → state-0ryd0fps.js} +5 -5
  12. package/dist/chunks/{persistent-pty-jxg7w2yt.js → state-0vpvgsj7.js} +52 -52
  13. package/dist/chunks/{persistent-pty-k2cf7ycz.js → state-0zdym56s.js} +7 -7
  14. package/dist/chunks/{persistent-pty-hnkth8hh.js → state-0zeppm43.js} +7 -7
  15. package/dist/chunks/{persistent-pty-hs14hted.js → state-12xd4ymj.js} +10 -10
  16. package/dist/chunks/{persistent-pty-1dazxqgg.js → state-1dazxqgg.js} +2 -2
  17. package/dist/chunks/{persistent-pty-be3be266.js → state-1eg0141z.js} +3 -3
  18. package/dist/chunks/{persistent-pty-1jyay2fm.js → state-1ejw9j53.js} +27 -27
  19. package/dist/chunks/{persistent-pty-fq1eaaax.js → state-1r786k4f.js} +31 -31
  20. package/dist/chunks/{persistent-pty-9b50t81g.js → state-1wy6918f.js} +8 -8
  21. package/dist/chunks/{persistent-pty-8jyzywxv.js → state-1zgzas4z.js} +36 -36
  22. package/dist/chunks/{persistent-pty-0ymbac85.js → state-216bemhx.js} +30 -30
  23. package/dist/chunks/{persistent-pty-21r38tys.js → state-21r38tys.js} +1 -1
  24. package/dist/chunks/{persistent-pty-z63w68vq.js → state-29x78va6.js} +6 -6
  25. package/dist/chunks/{persistent-pty-2a5m3afh.js → state-2a5m3afh.js} +1 -1
  26. package/dist/chunks/{persistent-pty-20zz1ang.js → state-2angj6gv.js} +12 -12
  27. package/dist/chunks/{persistent-pty-dbkkmbew.js → state-2bgvn5nj.js} +10 -10
  28. package/dist/chunks/{persistent-pty-ygxhnps7.js → state-2e83wwrs.js} +17 -17
  29. package/dist/chunks/{persistent-pty-fw7a63m3.js → state-2q2sbzgs.js} +6 -6
  30. package/dist/chunks/{persistent-pty-mnxyjaz9.js → state-2vhkgxeb.js} +20 -20
  31. package/dist/chunks/{persistent-pty-hr7t50ew.js → state-30pmczq8.js} +13 -13
  32. package/dist/chunks/{persistent-pty-pdrz96x4.js → state-30sh4j22.js} +10 -10
  33. package/dist/chunks/{persistent-pty-ect61mw4.js → state-31gw44a1.js} +10 -10
  34. package/dist/chunks/{persistent-pty-hd8vw2pw.js → state-3556dn8t.js} +1 -1
  35. package/dist/chunks/{persistent-pty-qkt14v07.js → state-36qhr83r.js} +35 -35
  36. package/dist/chunks/{persistent-pty-w936gsj9.js → state-39ad5as0.js} +11 -11
  37. package/dist/chunks/{persistent-pty-kazy0ayh.js → state-3e87262r.js} +1 -1
  38. package/dist/chunks/{persistent-pty-3fc6dm20.js → state-3fc6dm20.js} +1 -1
  39. package/dist/chunks/{persistent-pty-3hepkmqq.js → state-3hepkmqq.js} +1 -1
  40. package/dist/chunks/{persistent-pty-t9zs3egg.js → state-3j8sdtpz.js} +4 -4
  41. package/dist/chunks/{persistent-pty-k5nxbakh.js → state-3k4qtam6.js} +25 -25
  42. package/dist/chunks/{persistent-pty-3smtnn6g.js → state-3smtnn6g.js} +1 -1
  43. package/dist/chunks/{persistent-pty-3tvqynh2.js → state-3tvqynh2.js} +1 -1
  44. package/dist/chunks/{persistent-pty-qy1187xz.js → state-3ywf2fjx.js} +37 -37
  45. package/dist/chunks/{persistent-pty-3zsf4n22.js → state-3zsf4n22.js} +1 -1
  46. package/dist/chunks/{persistent-pty-z4szxkd7.js → state-41k2ygh2.js} +9 -9
  47. package/dist/chunks/{persistent-pty-9qb76avw.js → state-41wzkj33.js} +11 -11
  48. package/dist/chunks/{persistent-pty-jsqbbv53.js → state-4xndpv5p.js} +14 -14
  49. package/dist/chunks/{persistent-pty-4j4tgtq5.js → state-4z58m4b4.js} +4 -4
  50. package/dist/chunks/{persistent-pty-54ma36ye.js → state-54ma36ye.js} +1 -1
  51. package/dist/chunks/{persistent-pty-54tcyq79.js → state-54tcyq79.js} +2 -2
  52. package/dist/chunks/{persistent-pty-mfqp6xfm.js → state-56gdpj1q.js} +6 -6
  53. package/dist/chunks/{persistent-pty-vdphxgnn.js → state-56xa85j2.js} +10 -10
  54. package/dist/chunks/{persistent-pty-4n3sdfe5.js → state-5adcek81.js} +6 -6
  55. package/dist/chunks/{persistent-pty-04wpcwjp.js → state-5d58fczq.js} +17 -17
  56. package/dist/chunks/{persistent-pty-edbn27ge.js → state-5dak2w70.js} +4 -4
  57. package/dist/chunks/{persistent-pty-5daktx2q.js → state-5daktx2q.js} +1 -1
  58. package/dist/chunks/{persistent-pty-jexxy024.js → state-5epte933.js} +3 -3
  59. package/dist/chunks/{persistent-pty-6n8a4jjg.js → state-5fbqftap.js} +16 -16
  60. package/dist/chunks/{persistent-pty-b95vg044.js → state-5mn92tv3.js} +22 -22
  61. package/dist/chunks/{persistent-pty-5t3nmthw.js → state-5t3nmthw.js} +2 -2
  62. package/dist/chunks/{persistent-pty-bw6eqvc2.js → state-662ekzyz.js} +25 -25
  63. package/dist/chunks/{persistent-pty-669tq793.js → state-669tq793.js} +1 -1
  64. package/dist/chunks/{persistent-pty-b0grxa7w.js → state-66r9f6z1.js} +5 -5
  65. package/dist/chunks/{persistent-pty-5xq1sedg.js → state-69vwg8tc.js} +49 -49
  66. package/dist/chunks/{persistent-pty-k8962brh.js → state-6cfd75hy.js} +4 -4
  67. package/dist/chunks/{persistent-pty-6msgmcgs.js → state-6msgmcgs.js} +1 -1
  68. package/dist/chunks/{persistent-pty-8sze2n9a.js → state-6pc27hjz.js} +2 -2
  69. package/dist/chunks/{persistent-pty-4wfraw0w.js → state-6qmvz171.js} +25 -25
  70. package/dist/chunks/{persistent-pty-yt5c9h39.js → state-71mzxbmj.js} +35 -35
  71. package/dist/chunks/{persistent-pty-wp1mqwss.js → state-79n0bxvh.js} +3 -3
  72. package/dist/chunks/{persistent-pty-azexmtne.js → state-7bcnwrvj.js} +3 -3
  73. package/dist/chunks/{persistent-pty-7bmhse3q.js → state-7bmhse3q.js} +1 -1
  74. package/dist/chunks/{persistent-pty-0jwsre1p.js → state-7dqw4kz8.js} +5 -5
  75. package/dist/chunks/{persistent-pty-jgg5903p.js → state-7j9zgq8p.js} +46 -46
  76. package/dist/chunks/{persistent-pty-pqsj7wgp.js → state-80d1yvs7.js} +5 -5
  77. package/dist/chunks/{persistent-pty-0fq9kbe5.js → state-80mb3rs2.js} +14 -14
  78. package/dist/chunks/{persistent-pty-b6sgv4g0.js → state-8159mah8.js} +17 -17
  79. package/dist/chunks/{persistent-pty-57ez7d0k.js → state-81swgkk7.js} +7 -7
  80. package/dist/chunks/{persistent-pty-84txncab.js → state-84txncab.js} +1 -1
  81. package/dist/chunks/{persistent-pty-8d7r5vzw.js → state-8d7r5vzw.js} +1 -1
  82. package/dist/chunks/{persistent-pty-h1s4ax7h.js → state-8e176bsp.js} +13 -13
  83. package/dist/chunks/{persistent-pty-9wncg805.js → state-8nv3jfj1.js} +8 -8
  84. package/dist/chunks/{persistent-pty-dsv4qt6d.js → state-918r00qh.js} +21 -21
  85. package/dist/chunks/{persistent-pty-wbkyxrgf.js → state-92a4ap4w.js} +5 -5
  86. package/dist/chunks/{persistent-pty-5cpzvd3j.js → state-936k06nc.js} +17 -17
  87. package/dist/chunks/{persistent-pty-sd75nvd1.js → state-959s7zb7.js} +18 -18
  88. package/dist/chunks/{persistent-pty-efxgthxc.js → state-9ah7747k.js} +25 -25
  89. package/dist/chunks/{persistent-pty-1fkbnb3h.js → state-9ecan2nc.js} +33 -33
  90. package/dist/chunks/{persistent-pty-3878e13v.js → state-9g40tecy.js} +94 -94
  91. package/dist/chunks/{persistent-pty-31jg3jzd.js → state-9kza3txs.js} +10 -10
  92. package/dist/chunks/{persistent-pty-rsjwp548.js → state-9s372dca.js} +28 -28
  93. package/dist/chunks/state-9sh4wc5j.js +18 -0
  94. package/dist/chunks/{persistent-pty-qkk4yay7.js → state-9tjbveq7.js} +11 -11
  95. package/dist/chunks/{persistent-pty-kyktj0vd.js → state-9vtsvkk2.js} +6 -6
  96. package/dist/chunks/{persistent-pty-ek57zv8b.js → state-9wnq827a.js} +17 -17
  97. package/dist/chunks/{persistent-pty-v4qes6kb.js → state-a2js1e01.js} +17 -17
  98. package/dist/chunks/{persistent-pty-pgp1nwjn.js → state-a2rpfkac.js} +4 -4
  99. package/dist/chunks/{persistent-pty-aaet6srn.js → state-aaet6srn.js} +2 -2
  100. package/dist/chunks/{persistent-pty-vaydq29x.js → state-aevpzszq.js} +45 -45
  101. package/dist/chunks/{persistent-pty-jh34xga3.js → state-afd8vays.js} +6 -6
  102. package/dist/chunks/{persistent-pty-c1m7agks.js → state-avzp3gyq.js} +15 -15
  103. package/dist/chunks/{persistent-pty-mb8ahhxd.js → state-azwp2v3h.js} +44 -44
  104. package/dist/chunks/{persistent-pty-2nes80nj.js → state-b5c7acg6.js} +13 -13
  105. package/dist/chunks/{persistent-pty-zfq801h6.js → state-b65r9e3v.js} +8 -8
  106. package/dist/chunks/{persistent-pty-b6gygkdw.js → state-b6gygkdw.js} +2 -2
  107. package/dist/chunks/{persistent-pty-5jqc7mmh.js → state-bdw8v3mn.js} +48 -48
  108. package/dist/chunks/{persistent-pty-0jnnzt4k.js → state-be59z4hg.js} +36 -36
  109. package/dist/chunks/{persistent-pty-zvxz31za.js → state-be9x6ywh.js} +9 -9
  110. package/dist/chunks/{persistent-pty-bjtzbw4r.js → state-bjtzbw4r.js} +3 -3
  111. package/dist/chunks/{persistent-pty-bjmt3h04.js → state-bnmr3cva.js} +8 -8
  112. package/dist/chunks/{persistent-pty-vz9db08s.js → state-bvjk94fa.js} +4 -4
  113. package/dist/chunks/{persistent-pty-6b79em31.js → state-bwje1fea.js} +18 -18
  114. package/dist/chunks/{persistent-pty-9vjccf17.js → state-ce68aqnt.js} +6 -6
  115. package/dist/chunks/{persistent-pty-880ef89g.js → state-cg3ccyyg.js} +15 -15
  116. package/dist/chunks/{persistent-pty-bp98ntrt.js → state-chtreyd7.js} +24 -24
  117. package/dist/chunks/{persistent-pty-8e7wxhqf.js → state-cjxbqd7h.js} +27 -27
  118. package/dist/chunks/{persistent-pty-g0445xdp.js → state-cmwkp3r5.js} +4 -4
  119. package/dist/chunks/state-cpgb32tx.js +252 -0
  120. package/dist/chunks/{persistent-pty-f9t0t77v.js → state-csmch40z.js} +27 -27
  121. package/dist/chunks/{persistent-pty-djszqvmq.js → state-cwa6csj7.js} +9 -9
  122. package/dist/chunks/{persistent-pty-6nweqnhb.js → state-cz7wr2zz.js} +36 -36
  123. package/dist/chunks/{persistent-pty-51f5btjf.js → state-d1mtykxg.js} +6 -6
  124. package/dist/chunks/{persistent-pty-05hmz687.js → state-d5s62x3z.js} +13 -13
  125. package/dist/chunks/{persistent-pty-9zrtdmhy.js → state-d80ttx72.js} +11 -11
  126. package/dist/chunks/{persistent-pty-zcrspsvn.js → state-ddt2bs9e.js} +4 -4
  127. package/dist/chunks/{persistent-pty-qreq96fy.js → state-dgvwm360.js} +16 -16
  128. package/dist/chunks/{persistent-pty-g8jasmdt.js → state-dhwr7h25.js} +11 -11
  129. package/dist/chunks/{persistent-pty-jwcy2c2z.js → state-dpkg50ah.js} +4 -4
  130. package/dist/chunks/{persistent-pty-xfkkasph.js → state-drwq78ky.js} +4 -4
  131. package/dist/chunks/{persistent-pty-5qd3pb7m.js → state-e3qxr5gk.js} +2 -2
  132. package/dist/chunks/{persistent-pty-ecfe7b91.js → state-ecfe7b91.js} +2 -2
  133. package/dist/chunks/{persistent-pty-fqj9nv8j.js → state-ednp5hmx.js} +5 -5
  134. package/dist/chunks/{persistent-pty-ef5x83kb.js → state-ef5x83kb.js} +1 -1
  135. package/dist/chunks/{persistent-pty-dy5mtzz8.js → state-ef5xe33j.js} +13 -13
  136. package/dist/chunks/{persistent-pty-ng06zct7.js → state-efhbm40n.js} +29 -29
  137. package/dist/chunks/{persistent-pty-5rwf64p2.js → state-ektkda5n.js} +9 -9
  138. package/dist/chunks/{persistent-pty-pcxghkgz.js → state-em3h5ktn.js} +4 -4
  139. package/dist/chunks/{persistent-pty-etq0c3wd.js → state-etq0c3wd.js} +1 -1
  140. package/dist/chunks/{persistent-pty-yabnvfn3.js → state-f2wnd5nk.js} +88 -88
  141. package/dist/chunks/{persistent-pty-b985cns1.js → state-f4b92smv.js} +10 -10
  142. package/dist/chunks/{persistent-pty-84y3cxrg.js → state-fb1tbn8m.js} +16 -16
  143. package/dist/chunks/{persistent-pty-qfqtz2mg.js → state-fd8ad5g5.js} +3 -3
  144. package/dist/chunks/{persistent-pty-rev16gg1.js → state-fhb5ssfr.js} +32 -32
  145. package/dist/chunks/{persistent-pty-eye44qas.js → state-fmcqyzhx.js} +9 -9
  146. package/dist/chunks/{persistent-pty-7j5zvf86.js → state-fmye1ng3.js} +4 -4
  147. package/dist/chunks/{persistent-pty-jhcrq6fy.js → state-fqbcpy34.js} +20 -20
  148. package/dist/chunks/{persistent-pty-2pw9t7y0.js → state-fr0z36kv.js} +18 -18
  149. package/dist/chunks/{persistent-pty-cjdtr2ds.js → state-fsf584xg.js} +33 -33
  150. package/dist/chunks/{persistent-pty-xen1zbvx.js → state-ftr96xex.js} +2 -2
  151. package/dist/chunks/{persistent-pty-wq4zc2h0.js → state-fva3gcq8.js} +29 -29
  152. package/dist/chunks/{persistent-pty-1nzs1dt7.js → state-fvanntqq.js} +6 -6
  153. package/dist/chunks/{persistent-pty-ajdjch6h.js → state-fwwk8vbp.js} +9 -9
  154. package/dist/chunks/{persistent-pty-00vf67kq.js → state-fzdh19fh.js} +9 -9
  155. package/dist/chunks/{persistent-pty-a3r4dcrj.js → state-g97bb4fb.js} +2 -2
  156. package/dist/chunks/{persistent-pty-gd4qta3r.js → state-gd4qta3r.js} +1 -1
  157. package/dist/chunks/{persistent-pty-gfvb90ym.js → state-gfvb90ym.js} +2 -2
  158. package/dist/chunks/{persistent-pty-vv4wkjrp.js → state-gj33z6hv.js} +8 -8
  159. package/dist/chunks/{persistent-pty-3bkzp6nm.js → state-gn4mtd9h.js} +11 -11
  160. package/dist/chunks/{persistent-pty-nyh6yxg3.js → state-grq906mk.js} +21 -21
  161. package/dist/chunks/{persistent-pty-gv6a8nnw.js → state-gv6a8nnw.js} +2 -2
  162. package/dist/chunks/{persistent-pty-46pet8gs.js → state-gwcert61.js} +15 -15
  163. package/dist/chunks/{persistent-pty-xvp1j2dc.js → state-h6b02349.js} +5 -5
  164. package/dist/chunks/{persistent-pty-h6vf3j39.js → state-h6vf3j39.js} +1 -1
  165. package/dist/chunks/{persistent-pty-vwcfpena.js → state-h8n7s2er.js} +9 -9
  166. package/dist/chunks/{persistent-pty-3vb8825b.js → state-hgy5zrac.js} +21 -21
  167. package/dist/chunks/{persistent-pty-981fg1k8.js → state-hwxfv3tc.js} +12 -12
  168. package/dist/chunks/{persistent-pty-fjvydvzm.js → state-j5208yae.js} +4 -4
  169. package/dist/chunks/{persistent-pty-j56e64zr.js → state-j56e64zr.js} +1 -1
  170. package/dist/chunks/{persistent-pty-bdhtmqf5.js → state-j6acr1hx.js} +34 -34
  171. package/dist/chunks/{persistent-pty-k3akrp7q.js → state-jrfyc01p.js} +58 -58
  172. package/dist/chunks/{persistent-pty-2w7feyg1.js → state-jxy46986.js} +11 -11
  173. package/dist/chunks/{persistent-pty-efm7cqaz.js → state-jzbn4sdj.js} +25 -25
  174. package/dist/chunks/{persistent-pty-k3c624dm.js → state-k3c624dm.js} +3 -3
  175. package/dist/chunks/{persistent-pty-nbwqk53a.js → state-k84kd2rq.js} +18 -18
  176. package/dist/chunks/{persistent-pty-72hvh6jh.js → state-krph668c.js} +29 -29
  177. package/dist/chunks/{persistent-pty-m3fdjcah.js → state-m3fdjcah.js} +1 -1
  178. package/dist/chunks/{persistent-pty-7ews3x9x.js → state-m4z5w7fj.js} +43 -43
  179. package/dist/chunks/{persistent-pty-m9w0rfyh.js → state-m9w0rfyh.js} +1 -1
  180. package/dist/chunks/{persistent-pty-x9ate6zv.js → state-mezm2w51.js} +8 -8
  181. package/dist/chunks/{persistent-pty-gdgx11yp.js → state-mjj1bz1p.js} +10 -10
  182. package/dist/chunks/{persistent-pty-dnxkq42g.js → state-mpk0rfs5.js} +4 -4
  183. package/dist/chunks/{persistent-pty-8aaqm6qj.js → state-ms93yq6r.js} +8 -8
  184. package/dist/chunks/{persistent-pty-mhkvc446.js → state-mvfsc1pv.js} +3 -3
  185. package/dist/chunks/{persistent-pty-784hb5j4.js → state-mzywpf3p.js} +4 -4
  186. package/dist/chunks/{persistent-pty-r2cdb093.js → state-n25nhtx9.js} +21 -21
  187. package/dist/chunks/{persistent-pty-v8n97m4h.js → state-n5693fw6.js} +11 -11
  188. package/dist/chunks/{persistent-pty-fdmgm320.js → state-n781nrqq.js} +16 -16
  189. package/dist/chunks/{persistent-pty-rebxb36w.js → state-njqgdpjp.js} +7 -7
  190. package/dist/chunks/{persistent-pty-55zqgwvr.js → state-np3fkp2v.js} +11 -11
  191. package/dist/chunks/{persistent-pty-jk236s1c.js → state-nqt4j4tt.js} +32 -32
  192. package/dist/chunks/{persistent-pty-fhs97t90.js → state-nscznvay.js} +9 -9
  193. package/dist/chunks/{persistent-pty-7hpm9vff.js → state-nwqe4f3s.js} +18 -18
  194. package/dist/chunks/{persistent-pty-hsz3e5dy.js → state-nzhr00nd.js} +24 -24
  195. package/dist/chunks/{persistent-pty-s4df5zxh.js → state-p3fxhk0g.js} +26 -26
  196. package/dist/chunks/state-papj7q52.js +507 -0
  197. package/dist/chunks/{persistent-pty-kb09e3ps.js → state-ph2w6qfe.js} +2 -2
  198. package/dist/chunks/{persistent-pty-pjvnvgmy.js → state-pjvnvgmy.js} +1 -1
  199. package/dist/chunks/{persistent-pty-apbqs3pw.js → state-pk7dtzh7.js} +1 -1
  200. package/dist/chunks/{persistent-pty-pknna89w.js → state-pknna89w.js} +1 -1
  201. package/dist/chunks/{persistent-pty-6vyb99v6.js → state-pmerw669.js} +10 -10
  202. package/dist/chunks/{persistent-pty-psazpmmj.js → state-psazpmmj.js} +2 -2
  203. package/dist/chunks/state-pt6s91j2.js +26 -0
  204. package/dist/chunks/{persistent-pty-8s8r9gf0.js → state-pzsxz3jz.js} +26 -26
  205. package/dist/chunks/{persistent-pty-pknkq1ya.js → state-q5hpy1pp.js} +8 -8
  206. package/dist/chunks/{persistent-pty-h90v2x9d.js → state-qbqbaz6q.js} +4 -4
  207. package/dist/chunks/{persistent-pty-zjasv8zh.js → state-qh8vwz7j.js} +32 -32
  208. package/dist/chunks/{persistent-pty-cjs1c48m.js → state-qjw7q168.js} +13 -13
  209. package/dist/chunks/{persistent-pty-zyrwm43r.js → state-qm865f5x.js} +25 -25
  210. package/dist/chunks/{persistent-pty-pysk3085.js → state-qmhxt3hx.js} +156 -155
  211. package/dist/chunks/{persistent-pty-qsdy395h.js → state-qsdy395h.js} +1 -1
  212. package/dist/chunks/{persistent-pty-xkaxm87r.js → state-qt6sdbsb.js} +9 -9
  213. package/dist/chunks/{persistent-pty-9v2r64bp.js → state-qy3qk6ng.js} +1 -1
  214. package/dist/chunks/{persistent-pty-4p2v91mq.js → state-qzbep2cn.js} +17 -17
  215. package/dist/chunks/{persistent-pty-hgsmh1nh.js → state-r4feqcmh.js} +18 -18
  216. package/dist/chunks/{persistent-pty-aapjkkww.js → state-r7525m21.js} +45 -45
  217. package/dist/chunks/{persistent-pty-rdw6cm16.js → state-rdw6cm16.js} +1 -1
  218. package/dist/chunks/{persistent-pty-yrznvahk.js → state-s4enseaf.js} +2 -2
  219. package/dist/chunks/{persistent-pty-t550f9t1.js → state-s8d7rejh.js} +4 -4
  220. package/dist/chunks/{persistent-pty-55zfesz9.js → state-sexjdqf6.js} +18 -18
  221. package/dist/chunks/{persistent-pty-q63sg9wh.js → state-sr6aw9m2.js} +14 -14
  222. package/dist/chunks/{persistent-pty-p44d8wdy.js → state-sra9araw.js} +5 -5
  223. package/dist/chunks/{persistent-pty-f4xqw7wa.js → state-stjna85r.js} +19 -19
  224. package/dist/chunks/{persistent-pty-wvq7e1s4.js → state-szck5pq9.js} +4 -4
  225. package/dist/chunks/{persistent-pty-a2yvrr1e.js → state-t2f2p2hs.js} +47 -47
  226. package/dist/chunks/{persistent-pty-3efxt51q.js → state-t6hysv17.js} +18 -18
  227. package/dist/chunks/{persistent-pty-m97jxw3r.js → state-t9v8ce90.js} +9 -9
  228. package/dist/chunks/{persistent-pty-vnqycjs3.js → state-taxxrjzd.js} +32 -32
  229. package/dist/chunks/{persistent-pty-tazgh4e4.js → state-tazgh4e4.js} +1 -1
  230. package/dist/chunks/{persistent-pty-89znhe33.js → state-tcezcvh9.js} +4 -4
  231. package/dist/chunks/{persistent-pty-tdstcens.js → state-tdstcens.js} +1 -1
  232. package/dist/chunks/{persistent-pty-0aksezd1.js → state-te6p44we.js} +3 -3
  233. package/dist/chunks/{persistent-pty-2f0bjgcj.js → state-tn0aqsam.js} +5 -5
  234. package/dist/chunks/{persistent-pty-vs8k4vg6.js → state-tq190vwz.js} +27 -27
  235. package/dist/chunks/{persistent-pty-wf2zhhrq.js → state-tvphtg2k.js} +34 -34
  236. package/dist/chunks/{persistent-pty-tvtrv512.js → state-tvtrv512.js} +1 -1
  237. package/dist/chunks/{persistent-pty-2vjymgz4.js → state-txvbd51c.js} +11 -11
  238. package/dist/chunks/{persistent-pty-yxdp53eh.js → state-v2yhmqtv.js} +1 -1
  239. package/dist/chunks/{persistent-pty-zvs730z4.js → state-v79qzs0e.js} +5 -5
  240. package/dist/chunks/{persistent-pty-m3nayt80.js → state-vbga4g3c.js} +8 -8
  241. package/dist/chunks/{persistent-pty-veqvce7d.js → state-veqvce7d.js} +1 -1
  242. package/dist/chunks/{persistent-pty-0cmajtfh.js → state-vje8wz55.js} +24 -24
  243. package/dist/chunks/{persistent-pty-6ypennq8.js → state-vkrdzdkx.js} +43 -43
  244. package/dist/chunks/{persistent-pty-hym2md94.js → state-vr16sjez.js} +12 -12
  245. package/dist/chunks/{persistent-pty-811rfafr.js → state-vrzb7372.js} +28 -28
  246. package/dist/chunks/{persistent-pty-cavr175a.js → state-vsp1fds9.js} +21 -21
  247. package/dist/chunks/{persistent-pty-vzcthcp8.js → state-vzcthcp8.js} +1 -1
  248. package/dist/chunks/{persistent-pty-vzs5sf6e.js → state-vzs5sf6e.js} +1 -1
  249. package/dist/chunks/{persistent-pty-14xhwdvx.js → state-w2q85e14.js} +11 -11
  250. package/dist/chunks/{persistent-pty-w3wsvvr9.js → state-w3wsvvr9.js} +1 -1
  251. package/dist/chunks/{persistent-pty-32tkr9wa.js → state-w74ktcr0.js} +38 -38
  252. package/dist/chunks/{persistent-pty-wd87259q.js → state-wd87259q.js} +1 -1
  253. package/dist/chunks/{persistent-pty-chmcxnpv.js → state-wf98btk2.js} +11 -11
  254. package/dist/chunks/{persistent-pty-64wymc54.js → state-wkrjrqp5.js} +12 -12
  255. package/dist/chunks/{persistent-pty-rhe6q90e.js → state-wm0fnsq3.js} +25 -25
  256. package/dist/chunks/{persistent-pty-mwxvj69v.js → state-wm1tzmrb.js} +29 -29
  257. package/dist/chunks/{persistent-pty-jcenn4a0.js → state-wpk6ae5y.js} +24 -24
  258. package/dist/chunks/{persistent-pty-f1as396s.js → state-wprsb84s.js} +13 -13
  259. package/dist/chunks/{persistent-pty-v2xh51ss.js → state-wsm9s30m.js} +27 -27
  260. package/dist/chunks/{persistent-pty-s7h7at2m.js → state-wywf0jv5.js} +31 -31
  261. package/dist/chunks/{persistent-pty-pmth53f6.js → state-x0e6358b.js} +36 -36
  262. package/dist/chunks/{persistent-pty-42mqjpyj.js → state-x0kfg7bm.js} +15 -15
  263. package/dist/chunks/{persistent-pty-x1ezjp6w.js → state-x1ezjp6w.js} +1 -1
  264. package/dist/chunks/{persistent-pty-nd5pg0jd.js → state-x20r9ngb.js} +15 -15
  265. package/dist/chunks/{persistent-pty-te9eb2ne.js → state-x5zps9n8.js} +23 -23
  266. package/dist/chunks/{persistent-pty-aq6cef94.js → state-x8m5f2m8.js} +12 -12
  267. package/dist/chunks/{persistent-pty-avvhg6ef.js → state-x8t44att.js} +3 -3
  268. package/dist/chunks/{persistent-pty-2h15mtsb.js → state-xhpe18j8.js} +11 -11
  269. package/dist/chunks/{persistent-pty-29cwx4ks.js → state-xk37293j.js} +2 -2
  270. package/dist/chunks/{persistent-pty-dmqcgk4z.js → state-xkntkrq7.js} +5 -5
  271. package/dist/chunks/{persistent-pty-a0ga5595.js → state-xpx5mjk6.js} +11 -11
  272. package/dist/chunks/{persistent-pty-cj0q7yrn.js → state-xrac12dq.js} +32 -32
  273. package/dist/chunks/{persistent-pty-6q8zcy5k.js → state-xx531rrw.js} +11 -11
  274. package/dist/chunks/{persistent-pty-h0n6hth2.js → state-xy0es05p.js} +32 -32
  275. package/dist/chunks/{persistent-pty-75jb4kyn.js → state-y09nxxfn.js} +12 -12
  276. package/dist/chunks/{persistent-pty-y1fvbwt7.js → state-y1fvbwt7.js} +1 -1
  277. package/dist/chunks/{persistent-pty-kt0am480.js → state-y5qxgpje.js} +3 -3
  278. package/dist/chunks/{persistent-pty-yy0dcyjw.js → state-yc6hmas2.js} +5 -5
  279. package/dist/chunks/{persistent-pty-6khx4p0d.js → state-yhs2t3wf.js} +77 -77
  280. package/dist/chunks/{persistent-pty-1v8stjbz.js → state-ykej036m.js} +1 -1
  281. package/dist/chunks/{persistent-pty-yp2x3t23.js → state-yp2x3t23.js} +1 -1
  282. package/dist/chunks/{persistent-pty-yrhqyw5v.js → state-yrhqyw5v.js} +1 -1
  283. package/dist/chunks/{persistent-pty-m142re3c.js → state-yt7aqnvn.js} +24 -24
  284. package/dist/chunks/{persistent-pty-kt98sm59.js → state-yt8vsfev.js} +3 -3
  285. package/dist/chunks/{persistent-pty-z0bkrqjs.js → state-z0bkrqjs.js} +1 -1
  286. package/dist/chunks/{persistent-pty-qxv5x38a.js → state-z4vzmr80.js} +13 -13
  287. package/dist/chunks/{persistent-pty-hn4w1bkj.js → state-z53dzy5k.js} +18 -18
  288. package/dist/chunks/{persistent-pty-s4rskdge.js → state-zbwqc9a9.js} +9 -9
  289. package/dist/chunks/{persistent-pty-zeh9ct20.js → state-zeh9ct20.js} +2 -2
  290. package/dist/chunks/{persistent-pty-new922dw.js → state-zftz6z13.js} +23 -23
  291. package/dist/chunks/{persistent-pty-3fv5zerb.js → state-zfz6p2zn.js} +12 -12
  292. package/dist/chunks/{persistent-pty-zr2ceqn5.js → state-zr2ceqn5.js} +1 -1
  293. package/dist/chunks/{persistent-pty-zxq2ej10.js → state-zxq2ej10.js} +1 -1
  294. package/dist/codemode/catalog.js +1 -1
  295. package/dist/codemode/instructions.js +7 -7
  296. package/dist/codemode/tool.js +3 -3
  297. package/dist/codemode/web.js +1 -1
  298. package/dist/command.js +83 -83
  299. package/dist/config/discovery.js +84 -84
  300. package/dist/config/markdown.js +1 -1
  301. package/dist/config/normalize.js +106 -106
  302. package/dist/config/plugin/agent.js +123 -123
  303. package/dist/config/plugin/command.js +213 -213
  304. package/dist/config/plugin/compaction.js +161 -161
  305. package/dist/config/plugin/compatibility.js +141 -141
  306. package/dist/config/plugin/entry-observer.js +1 -1
  307. package/dist/config/plugin/formatter.js +124 -124
  308. package/dist/config/plugin/image.js +123 -123
  309. package/dist/config/plugin/instruction.js +90 -90
  310. package/dist/config/plugin/location-watcher.js +125 -125
  311. package/dist/config/plugin/mcp.js +130 -130
  312. package/dist/config/plugin/policy.js +124 -124
  313. package/dist/config/plugin/provider.js +123 -123
  314. package/dist/config/plugin/reference.js +125 -125
  315. package/dist/config/plugin/shell.js +125 -125
  316. package/dist/config/plugin/skill-file.js +102 -102
  317. package/dist/config/plugin/skill.js +144 -144
  318. package/dist/config/plugin/snapshot.js +123 -123
  319. package/dist/config/plugin/source.js +126 -126
  320. package/dist/config/plugin/tool-output.js +125 -125
  321. package/dist/config/plugin/websearch.js +124 -124
  322. package/dist/config/plugin/worktree.js +125 -125
  323. package/dist/config/variable.js +3 -3
  324. package/dist/config/watch.js +1 -1
  325. package/dist/config.js +128 -128
  326. package/dist/credential/sql.js +2 -2
  327. package/dist/credential.js +81 -81
  328. package/dist/database/database.js +74 -74
  329. package/dist/database/drizzle/effect-sqlite/driver.js +12 -12
  330. package/dist/database/drizzle/effect-sqlite/index.js +12 -12
  331. package/dist/database/drizzle/effect-sqlite/session.js +11 -11
  332. package/dist/database/drizzle/index.js +13 -13
  333. package/dist/database/drizzle/internal/drizzle-utils.js +1 -1
  334. package/dist/database/drizzle/sqlite-core/effect/count.js +1 -1
  335. package/dist/database/drizzle/sqlite-core/effect/db.js +9 -9
  336. package/dist/database/drizzle/sqlite-core/effect/delete.js +2 -2
  337. package/dist/database/drizzle/sqlite-core/effect/index.js +10 -10
  338. package/dist/database/drizzle/sqlite-core/effect/insert.js +2 -2
  339. package/dist/database/drizzle/sqlite-core/effect/query.js +1 -1
  340. package/dist/database/drizzle/sqlite-core/effect/raw.js +1 -1
  341. package/dist/database/drizzle/sqlite-core/effect/select.js +2 -2
  342. package/dist/database/drizzle/sqlite-core/effect/session.js +10 -10
  343. package/dist/database/drizzle/sqlite-core/effect/update.js +2 -2
  344. package/dist/database/drizzle.js +14 -14
  345. package/dist/database/migration/20260127222353_familiar_lady_ursula.js +1 -1
  346. package/dist/database/migration/20260211171708_add_project_commands.js +1 -1
  347. package/dist/database/migration/20260213144116_wakeful_the_professor.js +1 -1
  348. package/dist/database/migration/20260225215848_workspace.js +1 -1
  349. package/dist/database/migration/20260227213759_add_session_workspace_id.js +1 -1
  350. package/dist/database/migration/20260228203230_blue_harpoon.js +1 -1
  351. package/dist/database/migration/20260303231226_add_workspace_fields.js +1 -1
  352. package/dist/database/migration/20260309230000_move_org_to_state.js +1 -1
  353. package/dist/database/migration/20260312043431_session_message_cursor.js +1 -1
  354. package/dist/database/migration/20260323234822_events.js +1 -1
  355. package/dist/database/migration/20260410174513_workspace-name.js +1 -1
  356. package/dist/database/migration/20260413175956_chief_energizer.js +1 -1
  357. package/dist/database/migration/20260423070820_add_icon_url_override.js +1 -1
  358. package/dist/database/migration/20260427172553_slow_nightmare.js +1 -1
  359. package/dist/database/migration/20260428004200_add_session_path.js +1 -1
  360. package/dist/database/migration/20260501142318_next_venus.js +1 -1
  361. package/dist/database/migration/20260504145000_add_sync_owner.js +1 -1
  362. package/dist/database/migration/20260507164347_add_workspace_time.js +1 -1
  363. package/dist/database/migration/20260510033149_session_usage.js +1 -1
  364. package/dist/database/migration/20260511000411_data_migration_state.js +1 -1
  365. package/dist/database/migration/20260511173437_session-metadata.js +1 -1
  366. package/dist/database/migration/20260601010001_normalize_storage_paths.js +1 -1
  367. package/dist/database/migration/20260601202201_amazing_prowler.js +1 -1
  368. package/dist/database/migration/20260602002951_lowly_union_jack.js +1 -1
  369. package/dist/database/migration/20260602182828_add_project_directories.js +1 -1
  370. package/dist/database/migration/20260603001617_session_message_projection_indexes.js +1 -1
  371. package/dist/database/migration/20260603040000_session_message_projection_order.js +1 -1
  372. package/dist/database/migration/20260603141458_session_input_inbox.js +1 -1
  373. package/dist/database/migration/20260603160727_jittery_ezekiel_stane.js +1 -1
  374. package/dist/database/migration/20260604172448_event_sourced_session_input.js +1 -1
  375. package/dist/database/migration/20260605003541_add_session_context_snapshot.js +1 -1
  376. package/dist/database/migration/20260605042240_add_context_epoch_agent.js +1 -1
  377. package/dist/database/migration/20260611035744_credential.js +1 -1
  378. package/dist/database/migration/20260611192811_lush_chimera.js +1 -1
  379. package/dist/database/migration/20260612174303_project_dir_strategy.js +1 -1
  380. package/dist/database/migration/20260622142730_simplify_session_context_epoch.js +1 -1
  381. package/dist/database/migration/20260622170816_reset_v2_session_state.js +1 -1
  382. package/dist/database/migration/20260622202450_simplify_session_input.js +1 -1
  383. package/dist/database/migration/20260804233008_loose_psylocke.js +1 -1
  384. package/dist/database/migration/20260805200742_import_legacy_credentials.js +1 -1
  385. package/dist/database/migration/20260808023530_workspace_domain.js +1 -1
  386. package/dist/database/migration/20260811161259_execution_claim_attempts.js +1 -1
  387. package/dist/database/migration/20260812181746_session_inbox.js +1 -1
  388. package/dist/database/migration/20260812213948_worktree.js +1 -1
  389. package/dist/database/migration/20260819222447_session_viewed_state.js +1 -1
  390. package/dist/database/migration/20260823191254_nullable_workspace_binding.js +1 -1
  391. package/dist/database/migration/20260910120000_clear_v1_session_permission.js +1 -1
  392. package/dist/database/migration/20260923013825_project_time_active.js +1 -1
  393. package/dist/database/migration.gen.js +49 -49
  394. package/dist/database/migration.js +51 -51
  395. package/dist/database/path.js +2 -2
  396. package/dist/database/schema.gen.js +1 -1
  397. package/dist/database/schema.sql.js +1 -1
  398. package/dist/database/sqlite.bun.js +1 -1
  399. package/dist/database/sqlite.js +1 -1
  400. package/dist/database/sqlite.node.js +1 -1
  401. package/dist/database/sqlite.workerd.js +1 -1
  402. package/dist/database/v1-migration.bun.js +79 -79
  403. package/dist/database/v1-migration.js +1 -1
  404. package/dist/effect/app-node-builder.js +372 -372
  405. package/dist/effect/app-node-platform.js +2 -2
  406. package/dist/effect/keyed-mutex.js +3 -3
  407. package/dist/effect/websocket-constructor.js +1 -1
  408. package/dist/environment/driver.js +1 -1
  409. package/dist/environment/environment.js +93 -93
  410. package/dist/environment/exec-defaults.js +2 -2
  411. package/dist/environment/files.js +1 -1
  412. package/dist/environment/index.js +93 -93
  413. package/dist/environment/local.js +2 -2
  414. package/dist/environment/memory.js +2 -2
  415. package/dist/environment/unavailable.js +1 -1
  416. package/dist/event/sql.js +1 -1
  417. package/dist/event-logger.js +74 -74
  418. package/dist/file-access.js +104 -104
  419. package/dist/file-mutation.js +94 -94
  420. package/dist/file-retention.js +1 -1
  421. package/dist/filesystem/fff.bun.js +2 -2
  422. package/dist/filesystem/fff.js +1 -1
  423. package/dist/filesystem/fff.node.js +2 -2
  424. package/dist/filesystem/fff.workerd.js +2 -2
  425. package/dist/filesystem/ignore.js +1 -1
  426. package/dist/filesystem/location-watcher-policy.js +6 -6
  427. package/dist/filesystem/location-watcher.js +228 -228
  428. package/dist/filesystem/protected.js +3 -3
  429. package/dist/filesystem/search.js +103 -103
  430. package/dist/filesystem/watcher-binding.js +3 -3
  431. package/dist/filesystem/watcher.js +15 -15
  432. package/dist/filesystem.js +108 -108
  433. package/dist/form.js +80 -80
  434. package/dist/formatter/builtins.js +4 -4
  435. package/dist/formatter.js +87 -87
  436. package/dist/generate.js +101 -101
  437. package/dist/git.js +10 -10
  438. package/dist/github-copilot/chat/convert-to-openai-compatible-chat-messages.js +1 -1
  439. package/dist/github-copilot/chat/get-response-metadata.js +1 -1
  440. package/dist/github-copilot/chat/map-openai-compatible-finish-reason.js +1 -1
  441. package/dist/github-copilot/chat/openai-compatible-chat-language-model.js +7 -7
  442. package/dist/github-copilot/chat/openai-compatible-chat-options.js +1 -1
  443. package/dist/github-copilot/chat/openai-compatible-prepare-tools.js +1 -1
  444. package/dist/github-copilot/copilot-provider.js +17 -17
  445. package/dist/github-copilot/models.js +91 -91
  446. package/dist/github-copilot/openai-compatible-error.js +1 -1
  447. package/dist/github-copilot/responses/convert-to-openai-responses-input.js +1 -1
  448. package/dist/github-copilot/responses/map-openai-responses-finish-reason.js +1 -1
  449. package/dist/github-copilot/responses/openai-error.js +1 -1
  450. package/dist/github-copilot/responses/openai-responses-language-model.js +10 -10
  451. package/dist/github-copilot/responses/openai-responses-prepare-tools.js +6 -6
  452. package/dist/github-copilot/responses/tool/code-interpreter.js +1 -1
  453. package/dist/github-copilot/responses/tool/file-search.js +1 -1
  454. package/dist/github-copilot/responses/tool/image-generation.js +1 -1
  455. package/dist/github-copilot/responses/tool/web-search-preview.js +1 -1
  456. package/dist/github-copilot/responses/tool/web-search.js +1 -1
  457. package/dist/id/id.js +1 -1
  458. package/dist/image/photon.js +2 -2
  459. package/dist/image.js +6 -6
  460. package/dist/instance/service.js +5 -5
  461. package/dist/instance.js +363 -363
  462. package/dist/instruction-discovery.js +81 -81
  463. package/dist/instructions/builtins.js +87 -87
  464. package/dist/instructions/index.js +3 -3
  465. package/dist/integration/connection.js +3 -3
  466. package/dist/integration.js +85 -85
  467. package/dist/job.js +79 -79
  468. package/dist/kv/sql.js +2 -2
  469. package/dist/kv.js +73 -73
  470. package/dist/location-activity.js +134 -134
  471. package/dist/location-lifecycle.js +107 -107
  472. package/dist/location-service-map.js +86 -86
  473. package/dist/location-services.js +360 -360
  474. package/dist/location.js +87 -87
  475. package/dist/managed-policy.js +5 -5
  476. package/dist/mcp/client.js +91 -91
  477. package/dist/mcp/index.js +107 -107
  478. package/dist/mcp/instructions.js +129 -129
  479. package/dist/mcp/oauth.js +78 -78
  480. package/dist/mcp/stdio.js +90 -90
  481. package/dist/mime.js +1 -1
  482. package/dist/modal/models.js +91 -91
  483. package/dist/model-resolver.js +96 -96
  484. package/dist/model.js +100 -100
  485. package/dist/models-dev.js +107 -107
  486. package/dist/oauth/page.js +1 -1
  487. package/dist/permission/saved.js +80 -80
  488. package/dist/permission/sql.js +5 -5
  489. package/dist/permission.js +111 -111
  490. package/dist/persistent-pty/binary.bun.js +1 -1
  491. package/dist/persistent-pty/daemon.js +1 -1
  492. package/dist/persistent-pty/index.js +84 -84
  493. package/dist/persistent-pty/pty-binding.js +1 -1
  494. package/dist/persistent-pty.js +75 -75
  495. package/dist/plugin/agent.js +102 -102
  496. package/dist/plugin/command.js +100 -100
  497. package/dist/plugin/hooks.js +5 -5
  498. package/dist/plugin/host.js +219 -219
  499. package/dist/plugin/identity.js +3 -3
  500. package/dist/plugin/instance.js +3 -3
  501. package/dist/plugin/internal.js +335 -335
  502. package/dist/plugin/mcp-codemode-defaults.js +3 -3
  503. package/dist/plugin/models-dev.js +96 -96
  504. package/dist/plugin/module.js +7 -7
  505. package/dist/plugin/optimize.js +2 -2
  506. package/dist/plugin/plan.js +102 -102
  507. package/dist/plugin/promise.js +1 -1
  508. package/dist/plugin/provider/amazon-bedrock.js +90 -90
  509. package/dist/plugin/provider/azure.js +122 -122
  510. package/dist/plugin/provider/cerebras.js +1 -1
  511. package/dist/plugin/provider/chatgpt.js +93 -93
  512. package/dist/plugin/provider/cloudflare-ai-gateway.js +120 -120
  513. package/dist/plugin/provider/cloudflare-workers-ai.js +121 -121
  514. package/dist/plugin/provider/cohere.js +2 -2
  515. package/dist/plugin/provider/configured.js +119 -119
  516. package/dist/plugin/provider/digitalocean.js +93 -93
  517. package/dist/plugin/provider/dynamic.js +2 -2
  518. package/dist/plugin/provider/factory.js +1 -1
  519. package/dist/plugin/provider/gateway.js +2 -2
  520. package/dist/plugin/provider/github-copilot.js +95 -95
  521. package/dist/plugin/provider/gitlab.js +93 -93
  522. package/dist/plugin/provider/google-vertex.js +90 -90
  523. package/dist/plugin/provider/kilo.js +1 -1
  524. package/dist/plugin/provider/llmgateway.js +78 -78
  525. package/dist/plugin/provider/lmstudio.js +122 -122
  526. package/dist/plugin/provider/modal.js +92 -92
  527. package/dist/plugin/provider/nvidia.js +1 -1
  528. package/dist/plugin/provider/ollama.js +122 -122
  529. package/dist/plugin/provider/openai.js +93 -93
  530. package/dist/plugin/provider/opencode.js +95 -95
  531. package/dist/plugin/provider/openrouter.js +91 -91
  532. package/dist/plugin/provider/perplexity.js +2 -2
  533. package/dist/plugin/provider/poe.js +79 -79
  534. package/dist/plugin/provider/prompt-cache-key.js +90 -90
  535. package/dist/plugin/provider/sap-ai-core.js +91 -91
  536. package/dist/plugin/provider/sdk-factory.js +1 -1
  537. package/dist/plugin/provider/snowflake-cortex.js +122 -122
  538. package/dist/plugin/provider/venice.js +2 -2
  539. package/dist/plugin/provider/vercel.js +90 -90
  540. package/dist/plugin/provider/vllm.js +122 -122
  541. package/dist/plugin/provider/xai.js +91 -91
  542. package/dist/plugin/provider/zenmux.js +1 -1
  543. package/dist/plugin/provider.js +163 -163
  544. package/dist/plugin/sdk.js +76 -76
  545. package/dist/plugin/service.js +3 -3
  546. package/dist/plugin/skill.js +141 -141
  547. package/dist/plugin/source-directory.js +1 -1
  548. package/dist/plugin/supervisor.js +354 -354
  549. package/dist/plugin/tool-input-repair.js +4 -4
  550. package/dist/plugin/update.js +6 -6
  551. package/dist/plugin/vcs/git.js +86 -86
  552. package/dist/plugin/vcs/hg.js +86 -86
  553. package/dist/plugin/verbosity.js +93 -93
  554. package/dist/plugin/warming.js +121 -121
  555. package/dist/plugin/websearch/exa.js +5 -5
  556. package/dist/plugin/websearch/firecrawl.js +6 -6
  557. package/dist/plugin/websearch/index.js +9 -9
  558. package/dist/plugin/websearch/mcp.js +4 -4
  559. package/dist/plugin/websearch/parallel.js +8 -8
  560. package/dist/plugin/websearch/tavily.js +4 -4
  561. package/dist/plugin/websearch/tinyfish.js +8 -8
  562. package/dist/plugin.js +228 -228
  563. package/dist/project/schema.js +6 -6
  564. package/dist/project/sql.js +4 -4
  565. package/dist/project.js +88 -88
  566. package/dist/provider.js +97 -97
  567. package/dist/pty/protocol.js +1 -1
  568. package/dist/pty/ticket.js +1 -1
  569. package/dist/pty.js +99 -99
  570. package/dist/reference/instructions.js +89 -89
  571. package/dist/reference.js +91 -91
  572. package/dist/repository-cache.js +81 -81
  573. package/dist/repository.js +1 -1
  574. package/dist/ripgrep/binary.js +2 -2
  575. package/dist/ripgrep.js +97 -97
  576. package/dist/rpc.js +86 -86
  577. package/dist/schema.js +1 -1
  578. package/dist/session/affinity.js +1 -1
  579. package/dist/session/command.js +74 -74
  580. package/dist/session/compaction.js +133 -133
  581. package/dist/session/context.js +153 -153
  582. package/dist/session/diff.js +88 -88
  583. package/dist/session/environment.js +5 -5
  584. package/dist/session/error.js +5 -5
  585. package/dist/session/event.js +1 -1
  586. package/dist/session/execution/restart.js +224 -224
  587. package/dist/session/execution.js +126 -126
  588. package/dist/session/generate.js +152 -152
  589. package/dist/session/history.js +15 -15
  590. package/dist/session/inbox.js +86 -86
  591. package/dist/session/info.js +3 -3
  592. package/dist/session/instruction-entry.js +79 -79
  593. package/dist/session/instruction-state.js +8 -8
  594. package/dist/session/instructions.js +97 -97
  595. package/dist/session/message-updater.js +4 -4
  596. package/dist/session/message.js +1 -1
  597. package/dist/session/model-request.js +120 -120
  598. package/dist/session/model-transport.js +9 -9
  599. package/dist/session/move.js +130 -130
  600. package/dist/session/projector.js +86 -86
  601. package/dist/session/prompt.js +105 -105
  602. package/dist/session/provider-context.js +3 -3
  603. package/dist/session/revert.js +90 -90
  604. package/dist/session/run-coordinator.js +1 -1
  605. package/dist/session/runner/index.js +3 -3
  606. package/dist/session/runner/llm.js +232 -232
  607. package/dist/session/runner/max-steps.js +1 -1
  608. package/dist/session/runner/model.js +98 -98
  609. package/dist/session/runner/publish-llm-event.js +3 -3
  610. package/dist/session/runner/retry.js +4 -4
  611. package/dist/session/runner/step.js +126 -126
  612. package/dist/session/runner/to-llm-message.js +2 -2
  613. package/dist/session/schema.js +5 -5
  614. package/dist/session/session.js +172 -172
  615. package/dist/session/shell.js +138 -138
  616. package/dist/session/skill.js +103 -103
  617. package/dist/session/sql.js +5 -5
  618. package/dist/session/stats.js +75 -75
  619. package/dist/session/store.js +85 -85
  620. package/dist/session/subagent-completion.js +1 -1
  621. package/dist/session/subagent-job.js +211 -211
  622. package/dist/session/system-prompt.js +3 -3
  623. package/dist/session/title.js +157 -157
  624. package/dist/session/to-session-error.js +111 -111
  625. package/dist/session/transfer.js +224 -224
  626. package/dist/session/usage.js +1 -1
  627. package/dist/session.js +219 -219
  628. package/dist/shell/parse.js +6 -6
  629. package/dist/shell/result.js +1 -1
  630. package/dist/shell/scan.js +1 -1
  631. package/dist/shell/select.js +11 -11
  632. package/dist/shell.js +138 -138
  633. package/dist/skill/discovery.js +6 -6
  634. package/dist/skill/instructions.js +105 -105
  635. package/dist/skill.js +112 -112
  636. package/dist/snapshot.js +91 -91
  637. package/dist/state.js +1 -1
  638. package/dist/tool/html-markdown.js +1 -1
  639. package/dist/tool/http-body.js +1 -1
  640. package/dist/tool/mcp.js +128 -128
  641. package/dist/tool/plugin/edit.js +120 -120
  642. package/dist/tool/plugin/file-diff.js +1 -1
  643. package/dist/tool/plugin/glob.js +122 -122
  644. package/dist/tool/plugin/grep.js +124 -124
  645. package/dist/tool/plugin/mcp-resource.js +117 -117
  646. package/dist/tool/plugin/opencode.js +3 -3
  647. package/dist/tool/plugin/patch.js +116 -116
  648. package/dist/tool/plugin/question.js +103 -103
  649. package/dist/tool/plugin/read.js +125 -125
  650. package/dist/tool/plugin/shell.js +218 -218
  651. package/dist/tool/plugin/skill.js +113 -113
  652. package/dist/tool/plugin/subagent.js +220 -220
  653. package/dist/tool/plugin/webfetch.js +110 -110
  654. package/dist/tool/plugin/websearch.js +114 -114
  655. package/dist/tool/plugin/write.js +122 -122
  656. package/dist/tool/read-filesystem.js +100 -100
  657. package/dist/tool/runtime.js +1 -1
  658. package/dist/tool-output.js +8 -8
  659. package/dist/tool.js +16 -16
  660. package/dist/util/error-summary.js +1 -1
  661. package/dist/util/error.js +1 -1
  662. package/dist/util/git-executable.js +2 -2
  663. package/dist/util/iife.js +1 -1
  664. package/dist/util/lazy.js +1 -1
  665. package/dist/util/slug.js +1 -1
  666. package/dist/util/token.js +1 -1
  667. package/dist/util/which.js +1 -1
  668. package/dist/util/wildcard.js +1 -1
  669. package/dist/v1/config/agent.js +7 -7
  670. package/dist/v1/config/attachment.js +4 -4
  671. package/dist/v1/config/command.js +3 -3
  672. package/dist/v1/config/config.js +16 -16
  673. package/dist/v1/config/error.js +4 -4
  674. package/dist/v1/config/formatter.js +3 -3
  675. package/dist/v1/config/layout.js +1 -1
  676. package/dist/v1/config/lsp.js +5 -5
  677. package/dist/v1/config/mcp.js +4 -4
  678. package/dist/v1/config/migrate.js +92 -92
  679. package/dist/v1/config/permission.js +7 -7
  680. package/dist/v1/config/plugin.js +3 -3
  681. package/dist/v1/config/provider-options.js +1 -1
  682. package/dist/v1/config/provider.js +4 -4
  683. package/dist/v1/config/server.js +2 -2
  684. package/dist/v1/config/skills.js +3 -3
  685. package/dist/v1/permission.js +1 -1
  686. package/dist/variant.js +91 -91
  687. package/dist/vcs/patch.js +1 -1
  688. package/dist/vcs.js +87 -87
  689. package/dist/websearch.js +82 -82
  690. package/dist/wellknown/plugin.js +76 -76
  691. package/dist/wellknown.js +81 -81
  692. package/dist/workspace/driver.js +7 -7
  693. package/dist/workspace/sql.js +1 -1
  694. package/dist/workspace.js +80 -80
  695. package/dist/worktree/directory.js +2 -2
  696. package/dist/worktree/git.js +10 -10
  697. package/dist/worktree/sql.js +5 -5
  698. package/dist/worktree/strategies.js +89 -89
  699. package/dist/worktree.js +98 -98
  700. package/package.json +8 -8
  701. package/dist/chunks/persistent-pty-01qtd5dc.js +0 -252
  702. package/dist/chunks/persistent-pty-0ntnwng5.js +0 -507
  703. package/dist/chunks/persistent-pty-6k12j7x1.js +0 -26
  704. package/dist/chunks/persistent-pty-ht5y0zrb.js +0 -18
  705. /package/dist/chunks/{persistent-pty-0qkdqm5v.js → state-0qkdqm5v.js} +0 -0
  706. /package/dist/chunks/{persistent-pty-0zkw76rk.js → state-0zkw76rk.js} +0 -0
  707. /package/dist/chunks/{persistent-pty-17cy0kzp.js → state-17cy0kzp.js} +0 -0
  708. /package/dist/chunks/{persistent-pty-1cnp2v09.js → state-1cnp2v09.js} +0 -0
  709. /package/dist/chunks/{persistent-pty-1kg9ymc8.js → state-1kg9ymc8.js} +0 -0
  710. /package/dist/chunks/{persistent-pty-24dcb14g.js → state-24dcb14g.js} +0 -0
  711. /package/dist/chunks/{persistent-pty-2710q6r3.js → state-2710q6r3.js} +0 -0
  712. /package/dist/chunks/{persistent-pty-2axfhc9x.js → state-2axfhc9x.js} +0 -0
  713. /package/dist/chunks/{persistent-pty-2c3vjs8z.js → state-2c3vjs8z.js} +0 -0
  714. /package/dist/chunks/{persistent-pty-34c7v6d4.js → state-34c7v6d4.js} +0 -0
  715. /package/dist/chunks/{persistent-pty-359p4xyc.js → state-359p4xyc.js} +0 -0
  716. /package/dist/chunks/{persistent-pty-3asan66x.js → state-3asan66x.js} +0 -0
  717. /package/dist/chunks/{persistent-pty-3v8g72cx.js → state-3v8g72cx.js} +0 -0
  718. /package/dist/chunks/{persistent-pty-3w5fmr99.js → state-3w5fmr99.js} +0 -0
  719. /package/dist/chunks/{persistent-pty-3wcehsnq.js → state-3wcehsnq.js} +0 -0
  720. /package/dist/chunks/{persistent-pty-43n2bw4t.js → state-43n2bw4t.js} +0 -0
  721. /package/dist/chunks/{persistent-pty-4knz6hnm.js → state-4knz6hnm.js} +0 -0
  722. /package/dist/chunks/{persistent-pty-4vcrnpx2.js → state-4vcrnpx2.js} +0 -0
  723. /package/dist/chunks/{persistent-pty-4y7fprxs.js → state-4y7fprxs.js} +0 -0
  724. /package/dist/chunks/{persistent-pty-53557ph1.js → state-53557ph1.js} +0 -0
  725. /package/dist/chunks/{persistent-pty-550bvhaj.js → state-550bvhaj.js} +0 -0
  726. /package/dist/chunks/{persistent-pty-6prwharc.js → state-6prwharc.js} +0 -0
  727. /package/dist/chunks/{persistent-pty-7akdwqpd.js → state-7akdwqpd.js} +0 -0
  728. /package/dist/chunks/{persistent-pty-7m9af43g.js → state-7m9af43g.js} +0 -0
  729. /package/dist/chunks/{persistent-pty-822emrt2.js → state-822emrt2.js} +0 -0
  730. /package/dist/chunks/{persistent-pty-88xbtdfr.js → state-88xbtdfr.js} +0 -0
  731. /package/dist/chunks/{persistent-pty-8n3pysct.js → state-8n3pysct.js} +0 -0
  732. /package/dist/chunks/{persistent-pty-8wj87zfr.js → state-8wj87zfr.js} +0 -0
  733. /package/dist/chunks/{persistent-pty-922hggd3.js → state-922hggd3.js} +0 -0
  734. /package/dist/chunks/{persistent-pty-9a4afbnw.js → state-9a4afbnw.js} +0 -0
  735. /package/dist/chunks/{persistent-pty-9rqn6x4v.js → state-9rqn6x4v.js} +0 -0
  736. /package/dist/chunks/{persistent-pty-a6k6eb26.js → state-a6k6eb26.js} +0 -0
  737. /package/dist/chunks/{persistent-pty-af5trqkr.js → state-af5trqkr.js} +0 -0
  738. /package/dist/chunks/{persistent-pty-afrmfg78.js → state-afrmfg78.js} +0 -0
  739. /package/dist/chunks/{persistent-pty-aqzs7mqg.js → state-aqzs7mqg.js} +0 -0
  740. /package/dist/chunks/{persistent-pty-atq7p7m5.js → state-atq7p7m5.js} +0 -0
  741. /package/dist/chunks/{persistent-pty-bkyjaxrp.js → state-bkyjaxrp.js} +0 -0
  742. /package/dist/chunks/{persistent-pty-bmr6ed5q.js → state-bmr6ed5q.js} +0 -0
  743. /package/dist/chunks/{persistent-pty-cf4snx6d.js → state-cf4snx6d.js} +0 -0
  744. /package/dist/chunks/{persistent-pty-cvy3z8tj.js → state-cvy3z8tj.js} +0 -0
  745. /package/dist/chunks/{persistent-pty-d9fn303g.js → state-d9fn303g.js} +0 -0
  746. /package/dist/chunks/{persistent-pty-d9jj8t3e.js → state-d9jj8t3e.js} +0 -0
  747. /package/dist/chunks/{persistent-pty-dajrwvna.js → state-dajrwvna.js} +0 -0
  748. /package/dist/chunks/{persistent-pty-dap0rakb.js → state-dap0rakb.js} +0 -0
  749. /package/dist/chunks/{persistent-pty-df08tz66.js → state-df08tz66.js} +0 -0
  750. /package/dist/chunks/{persistent-pty-dy18nga0.js → state-dy18nga0.js} +0 -0
  751. /package/dist/chunks/{persistent-pty-e5kj55wp.js → state-e5kj55wp.js} +0 -0
  752. /package/dist/chunks/{persistent-pty-e73j6tqm.js → state-e73j6tqm.js} +0 -0
  753. /package/dist/chunks/{persistent-pty-ec1grn59.js → state-ec1grn59.js} +0 -0
  754. /package/dist/chunks/{persistent-pty-eh3zwz77.js → state-eh3zwz77.js} +0 -0
  755. /package/dist/chunks/{persistent-pty-emrn6kk6.js → state-emrn6kk6.js} +0 -0
  756. /package/dist/chunks/{persistent-pty-f0mxakyp.js → state-f0mxakyp.js} +0 -0
  757. /package/dist/chunks/{persistent-pty-f6n9ztr4.js → state-f6n9ztr4.js} +0 -0
  758. /package/dist/chunks/{persistent-pty-faypxj3z.js → state-faypxj3z.js} +0 -0
  759. /package/dist/chunks/{persistent-pty-fd410y7t.js → state-fd410y7t.js} +0 -0
  760. /package/dist/chunks/{persistent-pty-fxgpk5d8.js → state-fxgpk5d8.js} +0 -0
  761. /package/dist/chunks/{persistent-pty-g4wezp1m.js → state-g4wezp1m.js} +0 -0
  762. /package/dist/chunks/{persistent-pty-g86h250q.js → state-g86h250q.js} +0 -0
  763. /package/dist/chunks/{persistent-pty-gebd4c9n.js → state-gebd4c9n.js} +0 -0
  764. /package/dist/chunks/{persistent-pty-gftt206x.js → state-gftt206x.js} +0 -0
  765. /package/dist/chunks/{persistent-pty-hjbc5kem.js → state-hjbc5kem.js} +0 -0
  766. /package/dist/chunks/{persistent-pty-hk9envan.js → state-hk9envan.js} +0 -0
  767. /package/dist/chunks/{persistent-pty-j2ntwpah.js → state-j2ntwpah.js} +0 -0
  768. /package/dist/chunks/{persistent-pty-j5zkgpj8.js → state-j5zkgpj8.js} +0 -0
  769. /package/dist/chunks/{persistent-pty-jjkms2e6.js → state-jjkms2e6.js} +0 -0
  770. /package/dist/chunks/{persistent-pty-jr7sbwjy.js → state-jr7sbwjy.js} +0 -0
  771. /package/dist/chunks/{persistent-pty-jwfs4k6c.js → state-jwfs4k6c.js} +0 -0
  772. /package/dist/chunks/{persistent-pty-jzg6c2d5.js → state-jzg6c2d5.js} +0 -0
  773. /package/dist/chunks/{persistent-pty-mp448xyj.js → state-mp448xyj.js} +0 -0
  774. /package/dist/chunks/{persistent-pty-msx8hqn2.js → state-msx8hqn2.js} +0 -0
  775. /package/dist/chunks/{persistent-pty-n05xt0ee.js → state-n05xt0ee.js} +0 -0
  776. /package/dist/chunks/{persistent-pty-n3j8tn72.js → state-n3j8tn72.js} +0 -0
  777. /package/dist/chunks/{persistent-pty-njntx4h6.js → state-njntx4h6.js} +0 -0
  778. /package/dist/chunks/{persistent-pty-q3sfg36h.js → state-q3sfg36h.js} +0 -0
  779. /package/dist/chunks/{persistent-pty-q74kybfr.js → state-q74kybfr.js} +0 -0
  780. /package/dist/chunks/{persistent-pty-qaymkmh1.js → state-qaymkmh1.js} +0 -0
  781. /package/dist/chunks/{persistent-pty-qb87gjwd.js → state-qb87gjwd.js} +0 -0
  782. /package/dist/chunks/{persistent-pty-qfa1cgps.js → state-qfa1cgps.js} +0 -0
  783. /package/dist/chunks/{persistent-pty-qg3g05ea.js → state-qg3g05ea.js} +0 -0
  784. /package/dist/chunks/{persistent-pty-qrg20bc0.js → state-qrg20bc0.js} +0 -0
  785. /package/dist/chunks/{persistent-pty-rcb2kzg1.js → state-rcb2kzg1.js} +0 -0
  786. /package/dist/chunks/{persistent-pty-sdp7kfr6.js → state-sdp7kfr6.js} +0 -0
  787. /package/dist/chunks/{persistent-pty-sk3qaz4a.js → state-sk3qaz4a.js} +0 -0
  788. /package/dist/chunks/{persistent-pty-ssg3fenm.js → state-ssg3fenm.js} +0 -0
  789. /package/dist/chunks/{persistent-pty-w803qqfp.js → state-w803qqfp.js} +0 -0
  790. /package/dist/chunks/{persistent-pty-wc3fc9cn.js → state-wc3fc9cn.js} +0 -0
  791. /package/dist/chunks/{persistent-pty-wer8tq1h.js → state-wer8tq1h.js} +0 -0
  792. /package/dist/chunks/{persistent-pty-wtztk69x.js → state-wtztk69x.js} +0 -0
  793. /package/dist/chunks/{persistent-pty-x0ckcb58.js → state-x0ckcb58.js} +0 -0
  794. /package/dist/chunks/{persistent-pty-x61499pn.js → state-x61499pn.js} +0 -0
  795. /package/dist/chunks/{persistent-pty-y44na4kk.js → state-y44na4kk.js} +0 -0
  796. /package/dist/chunks/{persistent-pty-y8cydn3q.js → state-y8cydn3q.js} +0 -0
  797. /package/dist/chunks/{persistent-pty-y8f7s663.js → state-y8f7s663.js} +0 -0
  798. /package/dist/chunks/{persistent-pty-ygaqb7jw.js → state-ygaqb7jw.js} +0 -0
  799. /package/dist/chunks/{persistent-pty-ym463w8f.js → state-ym463w8f.js} +0 -0
  800. /package/dist/chunks/{persistent-pty-z9919s4g.js → state-z9919s4g.js} +0 -0
@@ -1,33 +1,33 @@
1
1
  import {
2
- Service83,
3
- node86
4
- } from "./persistent-pty-55zfesz9.js";
2
+ Service80,
3
+ node84
4
+ } from "./state-sexjdqf6.js";
5
5
  import {
6
6
  optional2,
7
7
  statics2
8
- } from "./persistent-pty-922hggd3.js";
8
+ } from "./state-922hggd3.js";
9
9
  import {
10
10
  Ref4,
11
- Service80,
12
- node83
13
- } from "./persistent-pty-84y3cxrg.js";
11
+ Service76,
12
+ node80
13
+ } from "./state-fb1tbn8m.js";
14
14
  import {
15
15
  __export
16
- } from "./persistent-pty-9rqn6x4v.js";
16
+ } from "./state-9rqn6x4v.js";
17
17
 
18
18
  // src/rpc.ts
19
19
  var exports_rpc = {};
20
20
  __export(exports_rpc, {
21
21
  Rpc: () => exports_rpc,
22
- Service: () => Service74,
22
+ Service: () => Service40,
23
23
  define: () => define2,
24
- node: () => node77
24
+ node: () => node42
25
25
  });
26
26
  import { define as define2 } from "@opencode/schema/rpc";
27
27
  import { Event } from "@opencode/schema/event";
28
28
  import { makeLocationNode } from "@opencode/util/effect/app-node";
29
29
  import { Context, Deferred, Effect, JsonSchema, Layer, Schema, SchemaRepresentation, Stream } from "effect";
30
- class Service74 extends Context.Service()("@opencode/Rpc") {
30
+ class Service40 extends Context.Service()("@opencode/Rpc") {
31
31
  }
32
32
 
33
33
  class DeclaredError extends Error {
@@ -39,9 +39,9 @@ class DeclaredError extends Error {
39
39
  this.data = data;
40
40
  }
41
41
  }
42
- var layer = Layer.effect(Service74, Effect.gen(function* () {
43
- const bus = yield* Service83;
44
- const location = yield* Service80;
42
+ var layer = Layer.effect(Service40, Effect.gen(function* () {
43
+ const bus = yield* Service80;
44
+ const location = yield* Service76;
45
45
  const ref = Ref4.make({ directory: location.directory, workspaceID: location.workspaceID });
46
46
  const closed = yield* Deferred.make();
47
47
  const callContext = {
@@ -118,14 +118,14 @@ var layer = Layer.effect(Service74, Effect.gen(function* () {
118
118
  const registered = events.get(name);
119
119
  if (!registered)
120
120
  return Stream.fail(new Error(`Unknown RPC event: ${definition.id}.${name}`));
121
- return bus.subscribe(registered.definition).pipe(Stream.provideService(Service80, location), Stream.mapEffect((payload) => logicalEvent(definition, name, payload, ref)));
121
+ return bus.subscribe(registered.definition).pipe(Stream.provideService(Service76, location), Stream.mapEffect((payload) => logicalEvent(definition, name, payload, ref)));
122
122
  }
123
123
  }
124
124
  };
125
125
  };
126
- return Service74.of({ register, call, client, close: Deferred.succeed(closed, undefined).pipe(Effect.asVoid) });
126
+ return Service40.of({ register, call, client, close: Deferred.succeed(closed, undefined).pipe(Effect.asVoid) });
127
127
  }));
128
- var node77 = makeLocationNode({ service: Service74, layer, deps: [node86, node83] });
128
+ var node42 = makeLocationNode({ service: Service40, layer, deps: [node84, node80] });
129
129
  var fields = {
130
130
  id: Event.ID,
131
131
  created: Schema.Finite,
@@ -210,4 +210,4 @@ var logicalEvent = Effect.fn("Rpc.logicalEvent")(function* (definition, name, pa
210
210
  };
211
211
  });
212
212
 
213
- export { Service74, node77, exports_rpc, define2 };
213
+ export { Service40, node42, exports_rpc, define2 };
@@ -1,51 +1,51 @@
1
1
  import {
2
- ID10,
3
- Service64
4
- } from "./persistent-pty-vs8k4vg6.js";
2
+ ID9,
3
+ Service61
4
+ } from "./state-tq190vwz.js";
5
5
  import {
6
6
  Ref2,
7
- Service59
8
- } from "./persistent-pty-s7h7at2m.js";
7
+ Service71
8
+ } from "./state-wywf0jv5.js";
9
9
  import {
10
10
  latest2,
11
- Service49
12
- } from "./persistent-pty-5xq1sedg.js";
11
+ Service67
12
+ } from "./state-69vwg8tc.js";
13
13
  import {
14
14
  SessionSchema2
15
- } from "./persistent-pty-jexxy024.js";
15
+ } from "./state-5epte933.js";
16
16
  import {
17
- Service45
18
- } from "./persistent-pty-4hvfhxsc.js";
17
+ Service46
18
+ } from "./state-0e4jz1n8.js";
19
19
  import {
20
20
  evaluate2,
21
- Service61
22
- } from "./persistent-pty-jxg7w2yt.js";
21
+ Service58
22
+ } from "./state-0vpvgsj7.js";
23
23
  import {
24
- Service20
25
- } from "./persistent-pty-3878e13v.js";
24
+ Service21
25
+ } from "./state-9g40tecy.js";
26
26
  import {
27
27
  NO_TEXT2
28
- } from "./persistent-pty-x1ezjp6w.js";
28
+ } from "./state-x1ezjp6w.js";
29
29
  import {
30
- make10
31
- } from "./persistent-pty-14xhwdvx.js";
30
+ make5
31
+ } from "./state-w2q85e14.js";
32
32
  import {
33
33
  __export
34
- } from "./persistent-pty-9rqn6x4v.js";
34
+ } from "./state-9rqn6x4v.js";
35
35
 
36
36
  // src/tool/plugin/subagent.ts
37
37
  var exports_subagent = {};
38
38
  __export(exports_subagent, {
39
- Input: () => Input8,
40
- Output: () => Output4,
41
- Plugin: () => Plugin43,
39
+ Input: () => Input10,
40
+ Output: () => Output7,
41
+ Plugin: () => Plugin12,
42
42
  SubagentTool: () => exports_subagent,
43
- description: () => description4,
44
- name: () => name8
43
+ description: () => description5,
44
+ name: () => name10
45
45
  });
46
46
  import { ToolFailure } from "@opencode/ai";
47
47
  import { Effect, Predicate, Schema } from "effect";
48
- var name8 = "subagent";
48
+ var name10 = "subagent";
49
49
  var backgroundResult = (sessionID) => ({
50
50
  sessionID,
51
51
  status: "running",
@@ -56,7 +56,7 @@ var backgroundResult = (sessionID) => ({
56
56
  ].join(`
57
57
  `)
58
58
  });
59
- var Input8 = Schema.Struct({
59
+ var Input10 = Schema.Struct({
60
60
  agent: Schema.String.annotate({
61
61
  description: "The type of specialized agent to use for this task. If the user asks for a subagent by a name that is not one of the available subagents, they most likely mean a model: pick a suitable agent and pass the name through the model parameter instead."
62
62
  }),
@@ -72,12 +72,12 @@ var Input8 = Schema.Struct({
72
72
  description: "Run the subagent in the background and return immediately. You will be notified when it completes. DO NOT sleep, poll, or proactively check on its progress."
73
73
  })
74
74
  });
75
- var Output4 = Schema.Struct({
75
+ var Output7 = Schema.Struct({
76
76
  sessionID: SessionSchema2.ID,
77
77
  status: Schema.Literals(["completed", "running"]),
78
78
  output: Schema.String
79
79
  });
80
- var description4 = [
80
+ var description5 = [
81
81
  "Spawns an agent in a child session to work on the specified task.",
82
82
  "The output includes a sessionID you can pass back later to continue that specific conversation with the subagent.",
83
83
  "New child sessions start with fresh context, so include all relevant context and instructions when you don't pass a sessionID.",
@@ -86,16 +86,16 @@ var description4 = [
86
86
  "Use background only for independent work that can run while you continue elsewhere."
87
87
  ].join(`
88
88
  `);
89
- var Plugin43 = {
89
+ var Plugin12 = {
90
90
  id: "opencode.tool.subagent",
91
91
  effect: Effect.fn("SubagentTool.Plugin")(function* (ctx) {
92
- const sessions = yield* Service20;
93
- const jobs = yield* Service45;
94
- const agents = yield* Service64;
95
- const config = yield* Service49;
96
- const permission = yield* Service61;
97
- const models = yield* Service59;
98
- const subagents = yield* make10;
92
+ const sessions = yield* Service21;
93
+ const jobs = yield* Service46;
94
+ const agents = yield* Service61;
95
+ const config = yield* Service67;
96
+ const permission = yield* Service58;
97
+ const models = yield* Service71;
98
+ const subagents = yield* make5;
99
99
  const resolveModel = Effect.fn("SubagentTool.resolveModel")(function* (input) {
100
100
  const ref = yield* Effect.try({
101
101
  try: () => Ref2.parse(input),
@@ -115,11 +115,11 @@ var Plugin43 = {
115
115
  return ref;
116
116
  });
117
117
  yield* ctx.tool.transform((editor) => editor.add({
118
- name: name8,
118
+ name: name10,
119
119
  options: { codemode: false },
120
- description: description4,
121
- input: Input8,
122
- output: Output4,
120
+ description: description5,
121
+ input: Input10,
122
+ output: Output7,
123
123
  execute: (input, context) => Effect.gen(function* () {
124
124
  const parent = yield* sessions.get(context.sessionID).pipe(Effect.mapError((error) => new ToolFailure({ message: `Parent session not found: ${context.sessionID}`, error })));
125
125
  let current = parent;
@@ -139,7 +139,7 @@ var Plugin43 = {
139
139
  if (agent.mode === "primary")
140
140
  return yield* new ToolFailure({ message: `Agent ${input.agent} cannot run as a subagent` });
141
141
  yield* permission.assert({
142
- action: name8,
142
+ action: name10,
143
143
  resources: [agent.id],
144
144
  save: [agent.id],
145
145
  sessionID: context.sessionID,
@@ -168,7 +168,7 @@ var Plugin43 = {
168
168
  const child = existing ?? (yield* sessions.create({
169
169
  parentID: context.sessionID,
170
170
  title: input.description,
171
- agent: ID10.make(input.agent),
171
+ agent: ID9.make(input.agent),
172
172
  model
173
173
  }).pipe(Effect.mapError((error) => new ToolFailure({ message: `Parent session not found: ${context.sessionID}`, error }))));
174
174
  const background = input.background === true;
@@ -218,7 +218,7 @@ ${output.output}
218
218
  })))
219
219
  })).pipe(Effect.orDie);
220
220
  yield* ctx.tool.hook("execute.before", (event) => Effect.sync(() => {
221
- if (event.tool !== name8 || !Predicate.isObject(event.input))
221
+ if (event.tool !== name10 || !Predicate.isObject(event.input))
222
222
  return;
223
223
  if (event.input.model !== "" && event.input.sessionID !== "")
224
224
  return;
@@ -230,13 +230,13 @@ ${output.output}
230
230
  event.input = input;
231
231
  }));
232
232
  const hook = (event) => Effect.gen(function* () {
233
- const tool = event.tools[name8];
233
+ const tool = event.tools[name10];
234
234
  if (!tool)
235
235
  return;
236
236
  const selected = yield* agents.resolve(event.agent);
237
237
  if (!selected)
238
238
  return;
239
- const available = (yield* agents.list()).filter((agent) => agent.mode !== "primary" && !agent.hidden && evaluate2(name8, agent.id, selected.permissions).effect !== "deny").toSorted((a, b) => a.id.localeCompare(b.id));
239
+ const available = (yield* agents.list()).filter((agent) => agent.mode !== "primary" && !agent.hidden && evaluate2(name10, agent.id, selected.permissions).effect !== "deny").toSorted((a, b) => a.id.localeCompare(b.id));
240
240
  if (available.length === 0)
241
241
  return;
242
242
  tool.description = [
@@ -253,4 +253,4 @@ ${output.output}
253
253
  })
254
254
  };
255
255
 
256
- export { name8, Input8, Output4, description4, Plugin43, exports_subagent };
256
+ export { name10, Input10, Output7, description5, Plugin12, exports_subagent };
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  __export
3
- } from "./persistent-pty-9rqn6x4v.js";
3
+ } from "./state-9rqn6x4v.js";
4
4
 
5
5
  // src/state.ts
6
6
  var exports_state = {};
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  InvalidError2
3
- } from "./persistent-pty-z63w68vq.js";
3
+ } from "./state-29x78va6.js";
4
4
  import {
5
5
  __export
6
- } from "./persistent-pty-9rqn6x4v.js";
6
+ } from "./state-9rqn6x4v.js";
7
7
 
8
8
  // src/config/variable.ts
9
9
  var exports_variable = {};
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  __export
3
- } from "./persistent-pty-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: () => make21,
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 make21(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, make21, combine2, read3, diff2, renderInitial2, renderUpdate2, hash2, applyHashDelta2, diffByKey2, exports_instructions6 };
@@ -1,30 +1,30 @@
1
1
  import {
2
- Service84,
3
- node87
4
- } from "./persistent-pty-880ef89g.js";
2
+ Service81,
3
+ node85
4
+ } from "./state-cg3ccyyg.js";
5
5
  import {
6
6
  EventSequenceTable2,
7
7
  EventTable2
8
- } from "./persistent-pty-2710q6r3.js";
8
+ } from "./state-2710q6r3.js";
9
9
  import {
10
10
  makeUnsafe2
11
- } from "./persistent-pty-jwcy2c2z.js";
11
+ } from "./state-dpkg50ah.js";
12
12
  import {
13
13
  __export
14
- } from "./persistent-pty-9rqn6x4v.js";
14
+ } from "./state-9rqn6x4v.js";
15
15
 
16
16
  // src/bus.ts
17
17
  var exports_bus = {};
18
18
  __export(exports_bus, {
19
19
  Bus: () => exports_bus,
20
20
  InvalidDurableEventError: () => InvalidDurableEventError2,
21
- Service: () => Service83,
22
- configured: () => configured11,
21
+ Service: () => Service80,
22
+ configured: () => configured12,
23
23
  durable: () => durable2,
24
24
  ephemeral: () => ephemeral2,
25
25
  isSynced: () => isSynced2,
26
26
  latestSequence: () => latestSequence2,
27
- node: () => node86,
27
+ node: () => node84,
28
28
  reserveSequence: () => reserveSequence2,
29
29
  versionedType: () => versionedType2
30
30
  });
@@ -76,13 +76,13 @@ var ephemeral2 = Event.ephemeral;
76
76
  var isSynced2 = (item) => item.type === "log.synced";
77
77
  var isDefinition = (input) => !Array.isArray(input);
78
78
 
79
- class Service83 extends Context.Service()("@opencode/Bus") {
79
+ class Service80 extends Context.Service()("@opencode/Bus") {
80
80
  }
81
- function configured11(options) {
81
+ function configured12(options) {
82
82
  return makeGlobalNode({
83
- service: Service83,
84
- deps: [node87],
85
- layer: Layer.effect(Service83, Effect.gen(function* () {
83
+ service: Service80,
84
+ deps: [node85],
85
+ layer: Layer.effect(Service80, Effect.gen(function* () {
86
86
  const { Location } = yield* Effect.promise(() => import("../location.js"));
87
87
  const { SessionTable } = yield* Effect.promise(() => import("../session/sql.js"));
88
88
  const pubsub = {
@@ -93,7 +93,7 @@ function configured11(options) {
93
93
  const projectors = new Map;
94
94
  const listeners = new Array;
95
95
  const durableLocks = makeUnsafe2();
96
- const { db } = yield* Service84;
96
+ const { db } = yield* Service81;
97
97
  const logReadPageSize = options?.logReadPageSize ?? 512;
98
98
  const persist = options?.persist ?? false;
99
99
  const sessions = new Map;
@@ -525,7 +525,7 @@ function configured11(options) {
525
525
  list.push((event) => projector(event));
526
526
  projectors.set(key, list);
527
527
  });
528
- return Service83.of({
528
+ return Service80.of({
529
529
  publish,
530
530
  publishAll,
531
531
  subscribe,
@@ -539,6 +539,6 @@ function configured11(options) {
539
539
  }))
540
540
  });
541
541
  }
542
- var node86 = configured11();
542
+ var node84 = configured12();
543
543
 
544
- export { latestSequence2, reserveSequence2, InvalidDurableEventError2, versionedType2, durable2, ephemeral2, isSynced2, Service83, configured11, node86, exports_bus };
544
+ export { latestSequence2, reserveSequence2, InvalidDurableEventError2, versionedType2, durable2, ephemeral2, isSynced2, Service80, configured12, node84, exports_bus };
@@ -1,29 +1,29 @@
1
1
  import {
2
- Service49
3
- } from "./persistent-pty-5xq1sedg.js";
2
+ Service67
3
+ } from "./state-69vwg8tc.js";
4
4
  import {
5
- Service10
6
- } from "./persistent-pty-djszqvmq.js";
5
+ Service12
6
+ } from "./state-cwa6csj7.js";
7
7
  import {
8
8
  observe2
9
- } from "./persistent-pty-qsdy395h.js";
9
+ } from "./state-qsdy395h.js";
10
10
  import {
11
11
  __export
12
- } from "./persistent-pty-9rqn6x4v.js";
12
+ } from "./state-9rqn6x4v.js";
13
13
 
14
14
  // src/config/plugin/location-watcher.ts
15
- var exports_location_watcher = {};
16
- __export(exports_location_watcher, {
17
- ConfigLocationWatcherPlugin: () => exports_location_watcher,
18
- Plugin: () => Plugin15
15
+ var exports_location_watcher2 = {};
16
+ __export(exports_location_watcher2, {
17
+ ConfigLocationWatcherPlugin: () => exports_location_watcher2,
18
+ Plugin: () => Plugin23
19
19
  });
20
20
  import { define } from "@opencode/plugin/effect/plugin";
21
21
  import { Effect } from "effect";
22
- var Plugin15 = define({
22
+ var Plugin23 = define({
23
23
  id: "opencode.config.location-watcher",
24
24
  effect: Effect.fn(function* (ctx) {
25
- const config = yield* Service49;
26
- const policy = yield* Service10;
25
+ const config = yield* Service67;
26
+ const policy = yield* Service12;
27
27
  const loaded = yield* observe2(config, ctx.event, policy.reload());
28
28
  yield* policy.transform((editor) => {
29
29
  for (const entry of loaded.entries) {
@@ -35,4 +35,4 @@ var Plugin15 = define({
35
35
  })
36
36
  });
37
37
 
38
- export { Plugin15, exports_location_watcher };
38
+ export { Plugin23, exports_location_watcher2 };
@@ -1,15 +1,15 @@
1
1
  import {
2
2
  PositiveInt2
3
- } from "./persistent-pty-922hggd3.js";
3
+ } from "./state-922hggd3.js";
4
4
  import {
5
5
  __export
6
- } from "./persistent-pty-9rqn6x4v.js";
6
+ } from "./state-9rqn6x4v.js";
7
7
 
8
8
  // src/v1/config/mcp.ts
9
9
  var exports_mcp5 = {};
10
10
  __export(exports_mcp5, {
11
11
  ConfigMCPV1: () => exports_mcp5,
12
- Info: () => Info14,
12
+ Info: () => Info21,
13
13
  Local: () => Local2,
14
14
  OAuth: () => OAuth2,
15
15
  Remote: () => Remote2
@@ -64,6 +64,6 @@ var Remote2 = Schema.Struct({
64
64
  description: "Timeout in ms for MCP server requests. Defaults to 5000 (5 seconds) if not specified."
65
65
  })
66
66
  }).annotate({ identifier: "McpRemoteConfig" });
67
- var Info14 = Schema.Union([Local2, Remote2]).annotate({ discriminator: "type" });
67
+ var Info21 = Schema.Union([Local2, Remote2]).annotate({ discriminator: "type" });
68
68
 
69
- export { Local2, OAuth2, Remote2, Info14, exports_mcp5 };
69
+ export { Local2, OAuth2, Remote2, Info21, exports_mcp5 };
@@ -1,10 +1,10 @@
1
1
  import {
2
- Service83,
3
- node86
4
- } from "./persistent-pty-55zfesz9.js";
2
+ Service80,
3
+ node84
4
+ } from "./state-sexjdqf6.js";
5
5
  import {
6
6
  __export
7
- } from "./persistent-pty-9rqn6x4v.js";
7
+ } from "./state-9rqn6x4v.js";
8
8
 
9
9
  // src/form.ts
10
10
  var exports_form = {};
@@ -12,31 +12,31 @@ __export(exports_form, {
12
12
  AlreadyExistsError: () => AlreadyExistsError2,
13
13
  AlreadySettledError: () => AlreadySettledError2,
14
14
  Answer: () => Answer2,
15
- Event: () => Event19,
15
+ Event: () => Event18,
16
16
  Field: () => Field2,
17
17
  Fields: () => Fields2,
18
18
  Form: () => exports_form,
19
19
  ID: () => ID15,
20
- Info: () => Info30,
20
+ Info: () => Info29,
21
21
  InvalidAnswerError: () => InvalidAnswerError2,
22
22
  InvalidFormError: () => InvalidFormError2,
23
- NotFoundError: () => NotFoundError10,
23
+ NotFoundError: () => NotFoundError9,
24
24
  Reply: () => Reply3,
25
- Service: () => Service78,
25
+ Service: () => Service74,
26
26
  State: () => State3,
27
27
  When: () => When2,
28
28
  layer: () => layer24,
29
- node: () => node81,
29
+ node: () => node78,
30
30
  validateAnswer: () => validateAnswer2,
31
31
  validateFields: () => validateFields2
32
32
  });
33
33
  import { Form } from "@opencode/schema/form";
34
34
  import { Cache, Context, Deferred, Duration, Effect, Exit, Layer, Option, Schema } from "effect";
35
35
  import { makeLocationNode } from "@opencode/util/effect/app-node";
36
- import { Event as Event19 } from "@opencode/schema/form";
36
+ import { Event as Event18 } from "@opencode/schema/form";
37
37
  var RETENTION = Duration.minutes(10);
38
38
  var ID15 = Form.ID;
39
- var Info30 = Form.Info;
39
+ var Info29 = Form.Info;
40
40
  var Field2 = Form.Field;
41
41
  var Fields2 = Form.Fields;
42
42
  var When2 = Form.When;
@@ -44,7 +44,7 @@ var State3 = Form.State;
44
44
  var Answer2 = Form.Answer;
45
45
  var Reply3 = Form.Reply;
46
46
 
47
- class NotFoundError10 extends Schema.TaggedError()("Form.NotFoundError", {
47
+ class NotFoundError9 extends Schema.TaggedError()("Form.NotFoundError", {
48
48
  id: ID15
49
49
  }) {
50
50
  get message() {
@@ -79,16 +79,16 @@ class InvalidFormError2 extends Schema.TaggedError()("Form.InvalidFormError", {
79
79
  }) {
80
80
  }
81
81
 
82
- class Service78 extends Context.Service()("@opencode/Form") {
82
+ class Service74 extends Context.Service()("@opencode/Form") {
83
83
  }
84
- var layer24 = Layer.effect(Service78, Effect.gen(function* () {
85
- const bus = yield* Service83;
84
+ var layer24 = Layer.effect(Service74, Effect.gen(function* () {
85
+ const bus = yield* Service80;
86
86
  let closed = false;
87
87
  const forms = yield* Cache.makeWith(() => Effect.die(new Error("Form cache must be used via set/getSuccess, never get")), {
88
88
  capacity: Number.MAX_SAFE_INTEGER,
89
89
  timeToLive: (exit) => Exit.isSuccess(exit) && exit.value.state.status === "pending" ? Duration.infinity : RETENTION
90
90
  });
91
- const requireEntry = Effect.fn("Form.requireEntry")((id) => Cache.getSuccess(forms, id).pipe(Effect.flatMap((entry) => Effect.fromOption(entry, () => new NotFoundError10({ id })))));
91
+ const requireEntry = Effect.fn("Form.requireEntry")((id) => Cache.getSuccess(forms, id).pipe(Effect.flatMap((entry) => Effect.fromOption(entry, () => new NotFoundError9({ id })))));
92
92
  const create = Effect.fn("Form.create")((input) => Effect.uninterruptible(Effect.gen(function* () {
93
93
  const id = input.id ?? ID15.create();
94
94
  const existing = yield* Cache.getSuccess(forms, id);
@@ -162,9 +162,9 @@ var layer24 = Layer.effect(Service78, Effect.gen(function* () {
162
162
  closed = true;
163
163
  }).pipe(Effect.andThen(Cache.values(forms)), Effect.flatMap((entries) => Effect.forEach(Array.from(entries).filter((entry) => entry.state.status === "pending"), (entry) => cancel(entry.form.id).pipe(Effect.ignore), { discard: true })));
164
164
  yield* Effect.addFinalizer(() => close);
165
- return Service78.of({ create, ask, get, list, state, reply, cancel, close });
165
+ return Service74.of({ create, ask, get, list, state, reply, cancel, close });
166
166
  }));
167
- var node81 = makeLocationNode({ service: Service78, layer: layer24, deps: [node86] });
167
+ var node78 = makeLocationNode({ service: Service74, layer: layer24, deps: [node84] });
168
168
  function validateAnswer2(form, answer) {
169
169
  const fields = new Map(form.map((field) => [field.key, field]));
170
170
  for (const key of Object.keys(answer)) {
@@ -316,4 +316,4 @@ function isDateTime(value) {
316
316
  return !Number.isNaN(new Date(value).getTime());
317
317
  }
318
318
 
319
- export { ID15, Info30, Field2, Fields2, When2, State3, Answer2, Reply3, NotFoundError10, AlreadySettledError2, AlreadyExistsError2, InvalidAnswerError2, InvalidFormError2, Service78, layer24, node81, validateAnswer2, validateFields2, exports_form, Event19 };
319
+ export { ID15, Info29, Field2, Fields2, When2, State3, Answer2, Reply3, NotFoundError9, AlreadySettledError2, AlreadyExistsError2, InvalidAnswerError2, InvalidFormError2, Service74, layer24, node78, validateAnswer2, validateFields2, exports_form, Event18 };
@@ -1,15 +1,15 @@
1
1
  import {
2
2
  ps2
3
- } from "./persistent-pty-3efxt51q.js";
3
+ } from "./state-t6hysv17.js";
4
4
  import {
5
5
  lazy2
6
- } from "./persistent-pty-88xbtdfr.js";
6
+ } from "./state-88xbtdfr.js";
7
7
  import {
8
8
  match2
9
- } from "./persistent-pty-y1fvbwt7.js";
9
+ } from "./state-y1fvbwt7.js";
10
10
  import {
11
11
  __export
12
- } from "./persistent-pty-9rqn6x4v.js";
12
+ } from "./state-9rqn6x4v.js";
13
13
 
14
14
  // src/shell/parse.ts
15
15
  var exports_parse = {};