@opencode/core 0.0.0-dev-21676 → 0.0.0-dev-21677

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 (792) hide show
  1. package/dist/account/sql.js +1 -1
  2. package/dist/agent.js +85 -85
  3. package/dist/aisdk-native.js +91 -91
  4. package/dist/aisdk.js +97 -97
  5. package/dist/app.js +9 -9
  6. package/dist/bus.js +75 -75
  7. package/dist/chunks/{shell-0421tmwc.js → state-0421tmwc.js} +2 -2
  8. package/dist/chunks/{shell-ctdwq0jb.js → state-044qwh7v.js} +18 -18
  9. package/dist/chunks/{shell-yrab93vt.js → state-073kka4g.js} +19 -19
  10. package/dist/chunks/{shell-8fzmkc5d.js → state-07sd7cjb.js} +11 -11
  11. package/dist/chunks/{shell-pd641wyg.js → state-0gwh7h4t.js} +43 -43
  12. package/dist/chunks/{shell-1w59jp7z.js → state-0z6vy9th.js} +5 -5
  13. package/dist/chunks/{shell-9kfzqwtx.js → state-12qba4r3.js} +17 -17
  14. package/dist/chunks/{shell-cs7yvevk.js → state-14k2p94z.js} +6 -6
  15. package/dist/chunks/{shell-ta9qyare.js → state-14kme7tc.js} +33 -33
  16. package/dist/chunks/{shell-b5za93j9.js → state-16cjxvjr.js} +46 -46
  17. package/dist/chunks/{shell-4nfcmvhk.js → state-16tzwtzk.js} +18 -18
  18. package/dist/chunks/{shell-x4vc4qa8.js → state-172kwg3m.js} +15 -15
  19. package/dist/chunks/{shell-r9mr2fx2.js → state-1915y0wf.js} +14 -14
  20. package/dist/chunks/{shell-b3nb49ay.js → state-1bvftq1p.js} +13 -13
  21. package/dist/chunks/{shell-4e2nnt3c.js → state-1j60aste.js} +19 -19
  22. package/dist/chunks/{shell-dzwp3hcx.js → state-1myz4yam.js} +5 -5
  23. package/dist/chunks/{shell-wed5rh1m.js → state-1rfxem6r.js} +13 -13
  24. package/dist/chunks/{shell-1x2knyw4.js → state-1x2knyw4.js} +1 -1
  25. package/dist/chunks/{shell-5zrxpy3q.js → state-1yq9hg58.js} +5 -5
  26. package/dist/chunks/{shell-52apm2b7.js → state-1zryh94y.js} +12 -12
  27. package/dist/chunks/{shell-4b27svsp.js → state-2128mz7a.js} +48 -48
  28. package/dist/chunks/{shell-cybp101z.js → state-26rstsyj.js} +6 -6
  29. package/dist/chunks/{shell-1ep2p91f.js → state-27w5k9zf.js} +2 -2
  30. package/dist/chunks/state-2dkjcnxp.js +18 -0
  31. package/dist/chunks/{shell-wpjr39xp.js → state-2jta7gtx.js} +24 -24
  32. package/dist/chunks/{shell-2z1j29yd.js → state-2z1j29yd.js} +1 -1
  33. package/dist/chunks/{shell-4b4byd6t.js → state-330ptwd3.js} +331 -331
  34. package/dist/chunks/{shell-0k149xew.js → state-35gjm3y2.js} +3 -3
  35. package/dist/chunks/{shell-tb7p4ryh.js → state-35y8wyjz.js} +8 -8
  36. package/dist/chunks/{shell-ayjs7tqn.js → state-3cbjf1nt.js} +2 -2
  37. package/dist/chunks/{shell-3hepkmqq.js → state-3hepkmqq.js} +1 -1
  38. package/dist/chunks/{shell-ydpx6gyr.js → state-3jbgv2q6.js} +8 -8
  39. package/dist/chunks/{shell-3nnrz6f6.js → state-3nnrz6f6.js} +1 -1
  40. package/dist/chunks/{shell-y1hjbq0d.js → state-3vfjjjh8.js} +11 -11
  41. package/dist/chunks/{shell-40ttsd7n.js → state-3y5c7d8s.js} +47 -47
  42. package/dist/chunks/{shell-wn8cs04e.js → state-3zwfmt1r.js} +11 -11
  43. package/dist/chunks/{shell-w2eysc6j.js → state-40za9wsf.js} +9 -9
  44. package/dist/chunks/{shell-s9dwmje5.js → state-43znyb7f.js} +21 -21
  45. package/dist/chunks/{shell-1rarfw9s.js → state-44m02g6g.js} +32 -32
  46. package/dist/chunks/{shell-e145p2ha.js → state-49cvc3c9.js} +4 -4
  47. package/dist/chunks/{shell-te93dn38.js → state-49rs4jgp.js} +9 -9
  48. package/dist/chunks/{shell-mcszswe1.js → state-4dbr8w8g.js} +154 -154
  49. package/dist/chunks/{shell-wmy22jry.js → state-4jkzeynr.js} +23 -23
  50. package/dist/chunks/{shell-fbjqxkhq.js → state-4skqtp9p.js} +8 -8
  51. package/dist/chunks/{shell-4v008n1t.js → state-4v008n1t.js} +1 -1
  52. package/dist/chunks/{shell-3xqr0t2x.js → state-4vswmwyp.js} +35 -35
  53. package/dist/chunks/{shell-4xvmh7wp.js → state-4xvmh7wp.js} +3 -3
  54. package/dist/chunks/{shell-syjgkag2.js → state-4xy1pe9v.js} +18 -18
  55. package/dist/chunks/{shell-xccgq3qx.js → state-5292rdv0.js} +15 -15
  56. package/dist/chunks/{shell-vkfaa8pw.js → state-52y2wpbm.js} +9 -9
  57. package/dist/chunks/{shell-fa903x7f.js → state-56n8k00e.js} +17 -17
  58. package/dist/chunks/{shell-y7y0w8zn.js → state-5dy8ae48.js} +16 -16
  59. package/dist/chunks/{shell-5m9w47nd.js → state-5m9w47nd.js} +1 -1
  60. package/dist/chunks/{shell-ypzxf1by.js → state-5prd5q9g.js} +10 -10
  61. package/dist/chunks/{shell-f9jmr95f.js → state-5rya34s6.js} +24 -24
  62. package/dist/chunks/{shell-6n2c9nvr.js → state-617k3a07.js} +36 -36
  63. package/dist/chunks/{shell-xes9mfxx.js → state-67vajddp.js} +35 -35
  64. package/dist/chunks/{shell-d1x9sp18.js → state-697v9084.js} +13 -13
  65. package/dist/chunks/{shell-5h69x8yw.js → state-6bt41jr7.js} +13 -13
  66. package/dist/chunks/{shell-6esdw8yj.js → state-6esdw8yj.js} +1 -1
  67. package/dist/chunks/{shell-2z9d2exz.js → state-6g7wb8pj.js} +9 -9
  68. package/dist/chunks/{shell-6pjqjmy2.js → state-6pjqjmy2.js} +1 -1
  69. package/dist/chunks/{shell-pqyj7c3t.js → state-6q7w75th.js} +18 -18
  70. package/dist/chunks/{shell-gv59wj6b.js → state-6r7v16zt.js} +41 -41
  71. package/dist/chunks/{shell-76cb1hcw.js → state-76cb1hcw.js} +1 -1
  72. package/dist/chunks/{shell-xtxrze2j.js → state-77vk6v4z.js} +9 -9
  73. package/dist/chunks/{shell-revj3tw3.js → state-7b2q1d31.js} +38 -38
  74. package/dist/chunks/{shell-7bmhse3q.js → state-7bmhse3q.js} +1 -1
  75. package/dist/chunks/{shell-pyab3nm0.js → state-7k31ezqp.js} +12 -12
  76. package/dist/chunks/{shell-89tdhaej.js → state-7pbzmqpv.js} +2 -2
  77. package/dist/chunks/{shell-szcyxb54.js → state-7q9q1gy8.js} +7 -7
  78. package/dist/chunks/{shell-7w2ypzdf.js → state-7w2ypzdf.js} +1 -1
  79. package/dist/chunks/{shell-8pqzhdc3.js → state-85e2d6ej.js} +4 -4
  80. package/dist/chunks/{shell-2ah0g8wp.js → state-8cbvmr14.js} +5 -5
  81. package/dist/chunks/{shell-18pk5v5f.js → state-8g0yjqch.js} +47 -47
  82. package/dist/chunks/{shell-qjgzc4b4.js → state-8jztxfpf.js} +4 -4
  83. package/dist/chunks/{shell-jxf43kwy.js → state-8k817ta6.js} +6 -6
  84. package/dist/chunks/{shell-9g4cv0f3.js → state-8k8s1td8.js} +5 -5
  85. package/dist/chunks/{shell-8wtp7s3z.js → state-8wtp7s3z.js} +1 -1
  86. package/dist/chunks/{shell-495kryxw.js → state-8x5fa4pj.js} +13 -13
  87. package/dist/chunks/{shell-h5qan5zz.js → state-8ykqf5wm.js} +11 -11
  88. package/dist/chunks/{shell-kxa065gd.js → state-914jfpmk.js} +5 -5
  89. package/dist/chunks/{shell-91rj84md.js → state-91rj84md.js} +1 -1
  90. package/dist/chunks/{shell-bnjf1eky.js → state-93xm1b5s.js} +4 -4
  91. package/dist/chunks/{shell-bqrhmwq8.js → state-9d31p0t1.js} +30 -30
  92. package/dist/chunks/{shell-6w0nd92w.js → state-9f8ska64.js} +32 -32
  93. package/dist/chunks/{shell-bsrm4kv0.js → state-9nkjg9qd.js} +6 -6
  94. package/dist/chunks/{shell-bqwdyg2t.js → state-9r0x1bva.js} +2 -2
  95. package/dist/chunks/{shell-w0e5dcpe.js → state-a4bn6z71.js} +86 -86
  96. package/dist/chunks/{shell-034tev2y.js → state-aj7mw0zk.js} +2 -2
  97. package/dist/chunks/{shell-f5t8t5m7.js → state-ajd7a4ft.js} +20 -20
  98. package/dist/chunks/{shell-bjb78nd5.js → state-ancq0kt2.js} +25 -25
  99. package/dist/chunks/{shell-k18xgkct.js → state-aq0ejh1v.js} +29 -29
  100. package/dist/chunks/{shell-0q39ew5d.js → state-aw3jaa69.js} +184 -184
  101. package/dist/chunks/{shell-efacwc3z.js → state-axjjc5wn.js} +4 -4
  102. package/dist/chunks/{shell-gjp1trbb.js → state-ayw644re.js} +16 -16
  103. package/dist/chunks/{shell-b0mv4wxm.js → state-b0mv4wxm.js} +2 -2
  104. package/dist/chunks/{shell-xdq354nz.js → state-b5120fys.js} +6 -6
  105. package/dist/chunks/{shell-5nnwax6m.js → state-b6vsg801.js} +5 -5
  106. package/dist/chunks/{shell-a13nhj24.js → state-bjhzkqyk.js} +4 -4
  107. package/dist/chunks/{shell-bstexjd6.js → state-bstexjd6.js} +1 -1
  108. package/dist/chunks/{shell-rf4jwcas.js → state-c22sd85a.js} +24 -24
  109. package/dist/chunks/{shell-c3cfh5w6.js → state-c3cfh5w6.js} +2 -2
  110. package/dist/chunks/{shell-mtkfycnh.js → state-c9t2ty9q.js} +4 -4
  111. package/dist/chunks/{shell-kdxgykmr.js → state-cc3fa17z.js} +6 -6
  112. package/dist/chunks/{shell-0q213vj2.js → state-cfkc8wvf.js} +4 -4
  113. package/dist/chunks/{shell-tngq8s39.js → state-ct0qct1p.js} +29 -29
  114. package/dist/chunks/{shell-ceq71z2s.js → state-d1d7qngs.js} +33 -33
  115. package/dist/chunks/{shell-sfkj0ta1.js → state-d1r5081s.js} +5 -5
  116. package/dist/chunks/{shell-rm20pgxh.js → state-d47qntqb.js} +14 -14
  117. package/dist/chunks/{shell-d4v9tmah.js → state-d4v9tmah.js} +2 -2
  118. package/dist/chunks/{shell-wd6msta3.js → state-dbdfhpvc.js} +8 -8
  119. package/dist/chunks/{shell-afmnpta1.js → state-dbmp929s.js} +5 -5
  120. package/dist/chunks/{shell-y5nnnm2j.js → state-dc38nx3a.js} +20 -20
  121. package/dist/chunks/{shell-gdc8gtm1.js → state-dek4cct4.js} +25 -25
  122. package/dist/chunks/{shell-8rp0m0m0.js → state-dgmfjgtz.js} +1 -1
  123. package/dist/chunks/{shell-0a71s41t.js → state-dj5majz4.js} +11 -11
  124. package/dist/chunks/{shell-tgrj2fed.js → state-dkm83r25.js} +43 -43
  125. package/dist/chunks/{shell-0gka690g.js → state-dkq45v8d.js} +6 -6
  126. package/dist/chunks/{shell-4zqkcf57.js → state-dmq3ym5w.js} +2 -2
  127. package/dist/chunks/{shell-998yhzzq.js → state-dvj9ct8m.js} +3 -3
  128. package/dist/chunks/{shell-jentk5nx.js → state-dwh0pt33.js} +23 -23
  129. package/dist/chunks/{shell-5qd3pb7m.js → state-e3qxr5gk.js} +2 -2
  130. package/dist/chunks/{shell-9p9xqj3m.js → state-e5dqjz6v.js} +8 -8
  131. package/dist/chunks/{shell-hx6gesf1.js → state-e71bb87j.js} +8 -8
  132. package/dist/chunks/{shell-e834z07m.js → state-e834z07m.js} +1 -1
  133. package/dist/chunks/{shell-3vwgbyw7.js → state-e8w4nwgj.js} +11 -11
  134. package/dist/chunks/{shell-hecd99m2.js → state-ec2dc8dw.js} +1 -1
  135. package/dist/chunks/{shell-v40bhpkf.js → state-ee9c368m.js} +12 -12
  136. package/dist/chunks/{shell-ef5x83kb.js → state-ef5x83kb.js} +1 -1
  137. package/dist/chunks/{shell-cfmjsj78.js → state-eh870njm.js} +23 -23
  138. package/dist/chunks/{shell-0v3xvz1q.js → state-en0q6wa2.js} +50 -50
  139. package/dist/chunks/{shell-ha4hgd8e.js → state-eqmkrg1f.js} +21 -21
  140. package/dist/chunks/{shell-hvzv56hn.js → state-eqr22vcz.js} +34 -34
  141. package/dist/chunks/{shell-c9fgk02w.js → state-err1h8pn.js} +46 -46
  142. package/dist/chunks/{shell-fvc4bqe2.js → state-es3s6s73.js} +5 -5
  143. package/dist/chunks/{shell-8k8atbvj.js → state-esj00h2k.js} +28 -28
  144. package/dist/chunks/{shell-81rwv4vy.js → state-ezbq2hxf.js} +3 -3
  145. package/dist/chunks/{shell-axmn5kjp.js → state-f4ng6gb6.js} +70 -70
  146. package/dist/chunks/{shell-c3g877z7.js → state-f4q3f8d1.js} +19 -19
  147. package/dist/chunks/{shell-fffv3p7h.js → state-fffv3p7h.js} +1 -1
  148. package/dist/chunks/{shell-j9v24vp1.js → state-fv3nkzgx.js} +18 -18
  149. package/dist/chunks/{shell-6dj066xs.js → state-fwm6gfkk.js} +11 -11
  150. package/dist/chunks/{shell-s85z3cra.js → state-fwp9mfc9.js} +4 -4
  151. package/dist/chunks/{shell-30xq731m.js → state-fy6jsj22.js} +6 -6
  152. package/dist/chunks/{shell-g5h9c0rr.js → state-g5h9c0rr.js} +2 -2
  153. package/dist/chunks/{shell-a4j9f8bt.js → state-gcn4eed3.js} +11 -11
  154. package/dist/chunks/{shell-20nwq5j7.js → state-gczz9yj9.js} +10 -10
  155. package/dist/chunks/{shell-bx6xdp1z.js → state-gn44pbev.js} +20 -20
  156. package/dist/chunks/{shell-f9nf7jc4.js → state-h24qrdq3.js} +13 -13
  157. package/dist/chunks/{shell-f82ybqrx.js → state-h5mfmrme.js} +5 -5
  158. package/dist/chunks/{shell-27037k44.js → state-haf5xzvt.js} +24 -24
  159. package/dist/chunks/{shell-th8jc8p0.js → state-hcgm01z1.js} +11 -11
  160. package/dist/chunks/{shell-5x4mtra2.js → state-hgk34cm5.js} +14 -14
  161. package/dist/chunks/{shell-ry17vq2q.js → state-hvcnescj.js} +7 -7
  162. package/dist/chunks/{shell-j113cymg.js → state-j113cymg.js} +1 -1
  163. package/dist/chunks/{shell-ybyct7vf.js → state-jcn8ehqj.js} +20 -20
  164. package/dist/chunks/{shell-gcf8bw3p.js → state-jgdcf8mk.js} +56 -56
  165. package/dist/chunks/{shell-cx0xwsw9.js → state-k1na0zkx.js} +26 -26
  166. package/dist/chunks/{shell-k4ggaqy8.js → state-k5yr72j3.js} +34 -34
  167. package/dist/chunks/{shell-k814nvkf.js → state-k814nvkf.js} +1 -1
  168. package/dist/chunks/{shell-kt2gry7f.js → state-k9b99h6a.js} +13 -13
  169. package/dist/chunks/{shell-t7e9twk7.js → state-kgtnj03x.js} +19 -19
  170. package/dist/chunks/{shell-cyeygnsd.js → state-kk6mskxb.js} +8 -8
  171. package/dist/chunks/{shell-j2a3kw55.js → state-kkfb8c0y.js} +14 -14
  172. package/dist/chunks/{shell-aeqacknm.js → state-kr19zgz3.js} +9 -9
  173. package/dist/chunks/{shell-qb45pfqr.js → state-ksn4rs0j.js} +37 -37
  174. package/dist/chunks/{shell-35s6a6dm.js → state-m0rn1g2h.js} +8 -8
  175. package/dist/chunks/{shell-m1714858.js → state-m1714858.js} +1 -1
  176. package/dist/chunks/{shell-vmfhgzt5.js → state-m37sd98t.js} +4 -4
  177. package/dist/chunks/{shell-7zt9x3hf.js → state-m3ssbqdv.js} +20 -20
  178. package/dist/chunks/{shell-074n756q.js → state-m5bvs3x7.js} +22 -22
  179. package/dist/chunks/{shell-j6r0nxf6.js → state-m9168hv5.js} +32 -32
  180. package/dist/chunks/{shell-m9w0rfyh.js → state-m9w0rfyh.js} +1 -1
  181. package/dist/chunks/{shell-maspj1v3.js → state-maspj1v3.js} +1 -1
  182. package/dist/chunks/{shell-tfhekx6w.js → state-mkh464f3.js} +15 -15
  183. package/dist/chunks/{shell-79vtmvb8.js → state-mpcws20e.js} +32 -32
  184. package/dist/chunks/{shell-99dgtdd3.js → state-msrrdpv7.js} +28 -28
  185. package/dist/chunks/{shell-tasvem1v.js → state-mt3ysty9.js} +6 -6
  186. package/dist/chunks/{shell-n0p0277s.js → state-n0p0277s.js} +1 -1
  187. package/dist/chunks/{shell-nah043kf.js → state-nah043kf.js} +1 -1
  188. package/dist/chunks/{shell-6dvkpyc2.js → state-nbyn5sh0.js} +3 -3
  189. package/dist/chunks/{shell-hsphd179.js → state-ncagyvky.js} +11 -11
  190. package/dist/chunks/{shell-gawdr880.js → state-njsbtr8g.js} +14 -14
  191. package/dist/chunks/{shell-sjrghj3a.js → state-nkh6rh9e.js} +12 -12
  192. package/dist/chunks/{shell-ss358qx3.js → state-nvxqht09.js} +3 -3
  193. package/dist/chunks/{shell-b5z61bee.js → state-nz16ptw2.js} +5 -5
  194. package/dist/chunks/{shell-p015t6z3.js → state-p015t6z3.js} +2 -2
  195. package/dist/chunks/{shell-jx89vj1k.js → state-pc1v25hk.js} +3 -3
  196. package/dist/chunks/{shell-0v6bwa58.js → state-pgz5fff2.js} +23 -23
  197. package/dist/chunks/{shell-fcngkh0c.js → state-phfzhb8b.js} +20 -20
  198. package/dist/chunks/{shell-pknna89w.js → state-pknna89w.js} +1 -1
  199. package/dist/chunks/{shell-t12sb919.js → state-prtgnnd9.js} +30 -30
  200. package/dist/chunks/{shell-v4sbtd6b.js → state-psdm5k4e.js} +30 -30
  201. package/dist/chunks/{shell-3f6nh3fm.js → state-q036w687.js} +11 -11
  202. package/dist/chunks/{shell-yz8d3crg.js → state-q0m6jj65.js} +22 -22
  203. package/dist/chunks/{shell-ny4bcy2e.js → state-q18facvz.js} +1 -1
  204. package/dist/chunks/{shell-b2rkyjcn.js → state-q9dgbjd9.js} +7 -7
  205. package/dist/chunks/{shell-9hz3fran.js → state-q9gvrhhm.js} +23 -23
  206. package/dist/chunks/{shell-ey9szsmw.js → state-qcdew78b.js} +21 -21
  207. package/dist/chunks/{shell-53zfzs41.js → state-qdz8jb55.js} +11 -11
  208. package/dist/chunks/{shell-099mgyan.js → state-qek2023v.js} +30 -30
  209. package/dist/chunks/{shell-wmjzvx4b.js → state-qqg9c0kv.js} +4 -4
  210. package/dist/chunks/{shell-x0ra2npf.js → state-qzjk3zq0.js} +11 -11
  211. package/dist/chunks/{shell-r0yr0wbs.js → state-r0yr0wbs.js} +1 -1
  212. package/dist/chunks/{shell-9zxsqdn3.js → state-r8dac9hr.js} +29 -29
  213. package/dist/chunks/{shell-cd1jdth3.js → state-r9x1a239.js} +8 -8
  214. package/dist/chunks/{shell-rb9dy4dg.js → state-rb9dy4dg.js} +1 -1
  215. package/dist/chunks/{shell-hbg8agq7.js → state-rerepda3.js} +11 -11
  216. package/dist/chunks/{shell-1bprt56t.js → state-rt3cvzdv.js} +4 -4
  217. package/dist/chunks/{shell-rt5dr6hb.js → state-rt5dr6hb.js} +1 -1
  218. package/dist/chunks/{shell-sn2bmg30.js → state-s27kve8r.js} +9 -9
  219. package/dist/chunks/{shell-1exqj9pt.js → state-s2x7krsf.js} +11 -11
  220. package/dist/chunks/{shell-tfmz659n.js → state-s5kcmw61.js} +2 -2
  221. package/dist/chunks/{shell-wyrx21ay.js → state-s7ea1dqv.js} +5 -5
  222. package/dist/chunks/{shell-12pj2cn2.js → state-s7hry362.js} +88 -88
  223. package/dist/chunks/{shell-qv7y9773.js → state-s7kyse9r.js} +9 -9
  224. package/dist/chunks/{shell-ervpxwtf.js → state-sa0dwrka.js} +12 -12
  225. package/dist/chunks/{shell-1j6cffe2.js → state-sg11w837.js} +20 -20
  226. package/dist/chunks/{shell-c7j93mmt.js → state-sj5xbg4q.js} +8 -8
  227. package/dist/chunks/{shell-dvz1915h.js → state-smz3qfre.js} +20 -20
  228. package/dist/chunks/{shell-sqjzf8x2.js → state-sqjzf8x2.js} +1 -1
  229. package/dist/chunks/{shell-hj6y046f.js → state-srpk9j1a.js} +23 -23
  230. package/dist/chunks/{shell-5rsk1nq8.js → state-st7p3hwb.js} +2 -2
  231. package/dist/chunks/{shell-ammt9wv8.js → state-syh9frb4.js} +31 -31
  232. package/dist/chunks/{shell-trc09wwy.js → state-sz2ee4nr.js} +26 -26
  233. package/dist/chunks/{shell-83y10q5s.js → state-tc25ehwb.js} +13 -13
  234. package/dist/chunks/{shell-10jw5ygn.js → state-tc831k31.js} +25 -25
  235. package/dist/chunks/{shell-tczq8hjw.js → state-tczq8hjw.js} +1 -1
  236. package/dist/chunks/{shell-ydsespw1.js → state-tg1vr1qt.js} +8 -8
  237. package/dist/chunks/{shell-zsm4q6zj.js → state-thtr5m16.js} +34 -34
  238. package/dist/chunks/{shell-tw8zr1ps.js → state-tw8zr1ps.js} +1 -1
  239. package/dist/chunks/{shell-0wrn680p.js → state-twe99j6z.js} +43 -43
  240. package/dist/chunks/{shell-twv2r8f4.js → state-twv2r8f4.js} +2 -2
  241. package/dist/chunks/{shell-v2r1d0zg.js → state-v2r1d0zg.js} +1 -1
  242. package/dist/chunks/{shell-nkpw7cy5.js → state-v32krhk0.js} +4 -4
  243. package/dist/chunks/{shell-5qgzfdx6.js → state-v38w2q2a.js} +19 -19
  244. package/dist/chunks/{shell-ed0mtxnh.js → state-v3ntmnn8.js} +21 -21
  245. package/dist/chunks/{shell-hc7ans2w.js → state-v82fj2wn.js} +3 -3
  246. package/dist/chunks/{shell-vd3b3yk9.js → state-vd3b3yk9.js} +1 -1
  247. package/dist/chunks/{shell-veqvce7d.js → state-veqvce7d.js} +1 -1
  248. package/dist/chunks/{shell-0tzmkv2e.js → state-vm2jz6zq.js} +15 -15
  249. package/dist/chunks/{shell-czrdzzab.js → state-vqd344gs.js} +11 -11
  250. package/dist/chunks/{shell-vrcsa8qx.js → state-vrcsa8qx.js} +2 -2
  251. package/dist/chunks/{shell-p6xjr4s7.js → state-vrd3ahjy.js} +23 -23
  252. package/dist/chunks/{shell-f1e7k22r.js → state-vtxf8xbz.js} +4 -4
  253. package/dist/chunks/{shell-gt5g569e.js → state-vw0xqtsc.js} +35 -35
  254. package/dist/chunks/{shell-3sywvchv.js → state-vywg2bcd.js} +23 -23
  255. package/dist/chunks/state-w0dmea0f.js +26 -0
  256. package/dist/chunks/{shell-pg605kec.js → state-w3vrex7x.js} +12 -12
  257. package/dist/chunks/{shell-w3wsvvr9.js → state-w3wsvvr9.js} +1 -1
  258. package/dist/chunks/{shell-0pv52n9j.js → state-w60hkx9t.js} +12 -12
  259. package/dist/chunks/{shell-wakvkjy4.js → state-wakvkjy4.js} +1 -1
  260. package/dist/chunks/{shell-wd87259q.js → state-wd87259q.js} +1 -1
  261. package/dist/chunks/{shell-gv55t52j.js → state-wr1xkt7e.js} +28 -28
  262. package/dist/chunks/{shell-wr3re1en.js → state-wr3re1en.js} +1 -1
  263. package/dist/chunks/{shell-9kh0htnp.js → state-xaknme5b.js} +16 -16
  264. package/dist/chunks/{shell-2jdqz29y.js → state-xavhsc1g.js} +14 -14
  265. package/dist/chunks/{shell-e00z28p8.js → state-xcq2y651.js} +16 -16
  266. package/dist/chunks/{shell-msft5056.js → state-xed0bk1y.js} +26 -26
  267. package/dist/chunks/{shell-pjxmvhc5.js → state-xfgh3jy3.js} +24 -24
  268. package/dist/chunks/{shell-xd25kzce.js → state-xhqrarz2.js} +9 -9
  269. package/dist/chunks/{shell-fjfaey98.js → state-xrdxc1gc.js} +39 -39
  270. package/dist/chunks/{shell-750jpgf2.js → state-xrsvkqaj.js} +27 -27
  271. package/dist/chunks/{shell-052hgm15.js → state-xyygv393.js} +1 -1
  272. package/dist/chunks/{shell-qq321qph.js → state-y0zshknz.js} +5 -5
  273. package/dist/chunks/{shell-nsqj0y1h.js → state-y5bgxahe.js} +25 -25
  274. package/dist/chunks/{shell-yb20nhc3.js → state-yb20nhc3.js} +1 -1
  275. package/dist/chunks/{shell-91vv7ayb.js → state-yfwy0123.js} +21 -21
  276. package/dist/chunks/{shell-wafjmk08.js → state-yh1v4sg4.js} +1 -1
  277. package/dist/chunks/{shell-t75rajx1.js → state-yhgkr2m9.js} +45 -45
  278. package/dist/chunks/{shell-1r91ydea.js → state-yr9cnj92.js} +4 -4
  279. package/dist/chunks/{shell-0vgge0e4.js → state-yws5p2hn.js} +21 -21
  280. package/dist/chunks/{shell-8cf452yy.js → state-yzq7xqav.js} +15 -15
  281. package/dist/chunks/{shell-z0bkrqjs.js → state-z0bkrqjs.js} +1 -1
  282. package/dist/chunks/{shell-z38nccrw.js → state-z38nccrw.js} +1 -1
  283. package/dist/chunks/{shell-19pped8k.js → state-z3zsr4pa.js} +15 -15
  284. package/dist/chunks/{shell-e3hyx3wp.js → state-z6vkvca5.js} +9 -9
  285. package/dist/chunks/{shell-88kypjvy.js → state-zfyb5tr4.js} +4 -4
  286. package/dist/chunks/{shell-zkg84ctx.js → state-zkg84ctx.js} +1 -1
  287. package/dist/chunks/{shell-c57tq9x6.js → state-zsyhkwp4.js} +14 -14
  288. package/dist/chunks/{shell-dx4aek7k.js → state-zztrcv6s.js} +6 -6
  289. package/dist/codemode/catalog.js +1 -1
  290. package/dist/codemode/instructions.js +9 -9
  291. package/dist/codemode/tool.js +3 -3
  292. package/dist/codemode/web.js +1 -1
  293. package/dist/command.js +85 -85
  294. package/dist/config/discovery.js +84 -84
  295. package/dist/config/markdown.js +1 -1
  296. package/dist/config/normalize.js +101 -101
  297. package/dist/config/plugin/agent.js +118 -118
  298. package/dist/config/plugin/command.js +214 -214
  299. package/dist/config/plugin/compaction.js +155 -155
  300. package/dist/config/plugin/compatibility.js +135 -135
  301. package/dist/config/plugin/entry-observer.js +1 -1
  302. package/dist/config/plugin/formatter.js +117 -117
  303. package/dist/config/plugin/image.js +116 -116
  304. package/dist/config/plugin/instruction.js +116 -116
  305. package/dist/config/plugin/location-watcher.js +116 -116
  306. package/dist/config/plugin/mcp.js +125 -125
  307. package/dist/config/plugin/policy.js +117 -117
  308. package/dist/config/plugin/provider.js +116 -116
  309. package/dist/config/plugin/reference.js +118 -118
  310. package/dist/config/plugin/shell.js +116 -116
  311. package/dist/config/plugin/skill-file.js +104 -104
  312. package/dist/config/plugin/skill-scan.js +1 -1
  313. package/dist/config/plugin/skill.js +138 -138
  314. package/dist/config/plugin/snapshot.js +116 -116
  315. package/dist/config/plugin/source.js +119 -119
  316. package/dist/config/plugin/tool-output.js +117 -117
  317. package/dist/config/plugin/websearch.js +115 -115
  318. package/dist/config/plugin/worktree.js +118 -118
  319. package/dist/config/variable.js +1 -1
  320. package/dist/config/watch.js +1 -1
  321. package/dist/config.js +121 -121
  322. package/dist/credential/sql.js +2 -2
  323. package/dist/credential.js +87 -87
  324. package/dist/database/database.js +72 -72
  325. package/dist/database/drizzle/effect-sqlite/driver.js +14 -14
  326. package/dist/database/drizzle/effect-sqlite/index.js +14 -14
  327. package/dist/database/drizzle/effect-sqlite/session.js +11 -11
  328. package/dist/database/drizzle/index.js +15 -15
  329. package/dist/database/drizzle/internal/drizzle-utils.js +1 -1
  330. package/dist/database/drizzle/sqlite-core/effect/count.js +1 -1
  331. package/dist/database/drizzle/sqlite-core/effect/db.js +9 -9
  332. package/dist/database/drizzle/sqlite-core/effect/delete.js +2 -2
  333. package/dist/database/drizzle/sqlite-core/effect/index.js +10 -10
  334. package/dist/database/drizzle/sqlite-core/effect/insert.js +2 -2
  335. package/dist/database/drizzle/sqlite-core/effect/query.js +1 -1
  336. package/dist/database/drizzle/sqlite-core/effect/raw.js +1 -1
  337. package/dist/database/drizzle/sqlite-core/effect/select.js +2 -2
  338. package/dist/database/drizzle/sqlite-core/effect/session.js +10 -10
  339. package/dist/database/drizzle/sqlite-core/effect/update.js +2 -2
  340. package/dist/database/drizzle.js +16 -16
  341. package/dist/database/migration/20260127222353_familiar_lady_ursula.js +1 -1
  342. package/dist/database/migration/20260211171708_add_project_commands.js +1 -1
  343. package/dist/database/migration/20260213144116_wakeful_the_professor.js +1 -1
  344. package/dist/database/migration/20260225215848_workspace.js +1 -1
  345. package/dist/database/migration/20260227213759_add_session_workspace_id.js +1 -1
  346. package/dist/database/migration/20260228203230_blue_harpoon.js +1 -1
  347. package/dist/database/migration/20260303231226_add_workspace_fields.js +1 -1
  348. package/dist/database/migration/20260309230000_move_org_to_state.js +1 -1
  349. package/dist/database/migration/20260312043431_session_message_cursor.js +1 -1
  350. package/dist/database/migration/20260323234822_events.js +1 -1
  351. package/dist/database/migration/20260410174513_workspace-name.js +1 -1
  352. package/dist/database/migration/20260413175956_chief_energizer.js +1 -1
  353. package/dist/database/migration/20260423070820_add_icon_url_override.js +1 -1
  354. package/dist/database/migration/20260427172553_slow_nightmare.js +1 -1
  355. package/dist/database/migration/20260428004200_add_session_path.js +1 -1
  356. package/dist/database/migration/20260501142318_next_venus.js +1 -1
  357. package/dist/database/migration/20260504145000_add_sync_owner.js +1 -1
  358. package/dist/database/migration/20260507164347_add_workspace_time.js +1 -1
  359. package/dist/database/migration/20260510033149_session_usage.js +1 -1
  360. package/dist/database/migration/20260511000411_data_migration_state.js +1 -1
  361. package/dist/database/migration/20260511173437_session-metadata.js +1 -1
  362. package/dist/database/migration/20260601010001_normalize_storage_paths.js +1 -1
  363. package/dist/database/migration/20260601202201_amazing_prowler.js +1 -1
  364. package/dist/database/migration/20260602002951_lowly_union_jack.js +1 -1
  365. package/dist/database/migration/20260602182828_add_project_directories.js +1 -1
  366. package/dist/database/migration/20260603001617_session_message_projection_indexes.js +1 -1
  367. package/dist/database/migration/20260603040000_session_message_projection_order.js +1 -1
  368. package/dist/database/migration/20260603141458_session_input_inbox.js +1 -1
  369. package/dist/database/migration/20260603160727_jittery_ezekiel_stane.js +1 -1
  370. package/dist/database/migration/20260604172448_event_sourced_session_input.js +1 -1
  371. package/dist/database/migration/20260605003541_add_session_context_snapshot.js +1 -1
  372. package/dist/database/migration/20260605042240_add_context_epoch_agent.js +1 -1
  373. package/dist/database/migration/20260611035744_credential.js +1 -1
  374. package/dist/database/migration/20260611192811_lush_chimera.js +1 -1
  375. package/dist/database/migration/20260612174303_project_dir_strategy.js +1 -1
  376. package/dist/database/migration/20260622142730_simplify_session_context_epoch.js +1 -1
  377. package/dist/database/migration/20260622170816_reset_v2_session_state.js +1 -1
  378. package/dist/database/migration/20260622202450_simplify_session_input.js +1 -1
  379. package/dist/database/migration/20260804233008_loose_psylocke.js +1 -1
  380. package/dist/database/migration/20260805200742_import_legacy_credentials.js +1 -1
  381. package/dist/database/migration/20260808023530_workspace_domain.js +1 -1
  382. package/dist/database/migration/20260811161259_execution_claim_attempts.js +1 -1
  383. package/dist/database/migration/20260812181746_session_inbox.js +1 -1
  384. package/dist/database/migration/20260812213948_worktree.js +1 -1
  385. package/dist/database/migration/20260819222447_session_viewed_state.js +1 -1
  386. package/dist/database/migration/20260823191254_nullable_workspace_binding.js +1 -1
  387. package/dist/database/migration/20260910120000_clear_v1_session_permission.js +1 -1
  388. package/dist/database/migration/20260923013825_project_time_active.js +1 -1
  389. package/dist/database/migration/20261007190000_azure_cli_external_credential.js +1 -1
  390. package/dist/database/migration/20261010180456_project_time_archived.js +1 -1
  391. package/dist/database/migration.gen.js +51 -51
  392. package/dist/database/migration.js +53 -53
  393. package/dist/database/path.js +2 -2
  394. package/dist/database/schema.gen.js +1 -1
  395. package/dist/database/schema.sql.js +1 -1
  396. package/dist/database/sqlite.bun.js +1 -1
  397. package/dist/database/sqlite.js +1 -1
  398. package/dist/database/sqlite.node.js +1 -1
  399. package/dist/database/sqlite.workerd.js +1 -1
  400. package/dist/database/v1-migration.bun.js +90 -90
  401. package/dist/database/v1-migration.js +1 -1
  402. package/dist/effect/app-node-builder.js +370 -370
  403. package/dist/effect/app-node-platform.js +2 -2
  404. package/dist/effect/keyed-mutex.js +3 -3
  405. package/dist/effect/websocket-constructor.js +1 -1
  406. package/dist/environment/driver.js +1 -1
  407. package/dist/environment/environment.js +95 -95
  408. package/dist/environment/exec-defaults.js +2 -2
  409. package/dist/environment/files.js +1 -1
  410. package/dist/environment/index.js +97 -97
  411. package/dist/environment/local.js +2 -2
  412. package/dist/environment/memory.js +2 -2
  413. package/dist/environment/unavailable.js +1 -1
  414. package/dist/event/sql.js +1 -1
  415. package/dist/event-logger.js +76 -76
  416. package/dist/file-access.js +106 -106
  417. package/dist/file-mutation.js +96 -96
  418. package/dist/file-retention.js +1 -1
  419. package/dist/filesystem/fff.bun.js +2 -2
  420. package/dist/filesystem/fff.js +1 -1
  421. package/dist/filesystem/fff.node.js +2 -2
  422. package/dist/filesystem/fff.workerd.js +2 -2
  423. package/dist/filesystem/location-watcher-policy.js +2 -2
  424. package/dist/filesystem/location-watcher.js +221 -221
  425. package/dist/filesystem/protected.js +1 -1
  426. package/dist/filesystem/search.js +101 -101
  427. package/dist/filesystem/watcher-binding.js +3 -3
  428. package/dist/filesystem/watcher.js +11 -11
  429. package/dist/filesystem.js +104 -104
  430. package/dist/form.js +86 -86
  431. package/dist/formatter/builtins.js +4 -4
  432. package/dist/formatter.js +89 -89
  433. package/dist/generate.js +107 -107
  434. package/dist/git.js +10 -10
  435. package/dist/github-copilot/chat/convert-to-openai-compatible-chat-messages.js +1 -1
  436. package/dist/github-copilot/chat/get-response-metadata.js +1 -1
  437. package/dist/github-copilot/chat/map-openai-compatible-finish-reason.js +1 -1
  438. package/dist/github-copilot/chat/openai-compatible-chat-language-model.js +7 -7
  439. package/dist/github-copilot/chat/openai-compatible-chat-options.js +1 -1
  440. package/dist/github-copilot/chat/openai-compatible-prepare-tools.js +1 -1
  441. package/dist/github-copilot/copilot-provider.js +17 -17
  442. package/dist/github-copilot/models.js +93 -93
  443. package/dist/github-copilot/openai-compatible-error.js +1 -1
  444. package/dist/github-copilot/responses/convert-to-openai-responses-input.js +1 -1
  445. package/dist/github-copilot/responses/map-openai-responses-finish-reason.js +1 -1
  446. package/dist/github-copilot/responses/openai-error.js +1 -1
  447. package/dist/github-copilot/responses/openai-responses-language-model.js +10 -10
  448. package/dist/github-copilot/responses/openai-responses-prepare-tools.js +6 -6
  449. package/dist/github-copilot/responses/tool/code-interpreter.js +1 -1
  450. package/dist/github-copilot/responses/tool/file-search.js +1 -1
  451. package/dist/github-copilot/responses/tool/image-generation.js +1 -1
  452. package/dist/github-copilot/responses/tool/web-search-preview.js +1 -1
  453. package/dist/github-copilot/responses/tool/web-search.js +1 -1
  454. package/dist/image/photon.js +2 -2
  455. package/dist/image.js +4 -4
  456. package/dist/instance/service.js +5 -5
  457. package/dist/instance.js +361 -361
  458. package/dist/instruction-discovery.js +80 -80
  459. package/dist/instructions/builtins.js +89 -89
  460. package/dist/instructions/index.js +5 -5
  461. package/dist/integration/connection.js +3 -3
  462. package/dist/integration.js +89 -89
  463. package/dist/job.js +80 -80
  464. package/dist/kv/sql.js +2 -2
  465. package/dist/kv.js +75 -75
  466. package/dist/location-activity.js +159 -159
  467. package/dist/location-lifecycle.js +109 -109
  468. package/dist/location-service-map.js +88 -88
  469. package/dist/location-services.js +358 -358
  470. package/dist/location.js +83 -83
  471. package/dist/managed-policy.js +8 -8
  472. package/dist/mcp/client.js +93 -93
  473. package/dist/mcp/index.js +107 -107
  474. package/dist/mcp/instructions.js +140 -140
  475. package/dist/mcp/oauth.js +80 -80
  476. package/dist/mcp/socket-client.js +1 -1
  477. package/dist/mcp/stdio.js +92 -92
  478. package/dist/mime.js +1 -1
  479. package/dist/modal/models.js +93 -93
  480. package/dist/model-resolver.js +101 -101
  481. package/dist/model-retry.js +1 -1
  482. package/dist/model.js +102 -102
  483. package/dist/models-dev.js +105 -105
  484. package/dist/oauth/page.js +1 -1
  485. package/dist/permission/saved.js +84 -84
  486. package/dist/permission/sql.js +5 -5
  487. package/dist/permission.js +121 -121
  488. package/dist/persistent-pty/binary.bun.js +1 -1
  489. package/dist/persistent-pty/daemon.js +1 -1
  490. package/dist/persistent-pty/index.js +92 -92
  491. package/dist/persistent-pty/pty-binding.js +1 -1
  492. package/dist/persistent-pty.js +77 -77
  493. package/dist/plugin/agent.js +78 -78
  494. package/dist/plugin/command.js +104 -104
  495. package/dist/plugin/hooks.js +5 -5
  496. package/dist/plugin/host.js +218 -218
  497. package/dist/plugin/identity.js +3 -3
  498. package/dist/plugin/instance.js +5 -5
  499. package/dist/plugin/internal.js +333 -333
  500. package/dist/plugin/mcp-codemode-defaults.js +3 -3
  501. package/dist/plugin/models-dev.js +98 -98
  502. package/dist/plugin/module.js +115 -115
  503. package/dist/plugin/optimize.js +4 -4
  504. package/dist/plugin/plan.js +104 -104
  505. package/dist/plugin/promise.js +1 -1
  506. package/dist/plugin/provider/amazon-bedrock.js +92 -92
  507. package/dist/plugin/provider/azure.js +116 -116
  508. package/dist/plugin/provider/cerebras.js +1 -1
  509. package/dist/plugin/provider/chatgpt.js +116 -116
  510. package/dist/plugin/provider/cloudflare-ai-gateway.js +113 -113
  511. package/dist/plugin/provider/cloudflare-workers-ai.js +113 -113
  512. package/dist/plugin/provider/cohere.js +2 -2
  513. package/dist/plugin/provider/configured.js +112 -112
  514. package/dist/plugin/provider/databricks.js +1 -1
  515. package/dist/plugin/provider/digitalocean.js +95 -95
  516. package/dist/plugin/provider/dynamic.js +2 -2
  517. package/dist/plugin/provider/factory.js +1 -1
  518. package/dist/plugin/provider/github-copilot.js +97 -97
  519. package/dist/plugin/provider/gitlab.js +95 -95
  520. package/dist/plugin/provider/google-vertex.js +113 -113
  521. package/dist/plugin/provider/kilo.js +1 -1
  522. package/dist/plugin/provider/llmgateway.js +80 -80
  523. package/dist/plugin/provider/lmstudio.js +123 -123
  524. package/dist/plugin/provider/local.js +122 -122
  525. package/dist/plugin/provider/modal.js +94 -94
  526. package/dist/plugin/provider/neon.js +1 -1
  527. package/dist/plugin/provider/nvidia.js +1 -1
  528. package/dist/plugin/provider/ollama.js +123 -123
  529. package/dist/plugin/provider/openai-context-caps.js +92 -92
  530. package/dist/plugin/provider/openai.js +118 -118
  531. package/dist/plugin/provider/opencode.js +103 -103
  532. package/dist/plugin/provider/openrouter.js +93 -93
  533. package/dist/plugin/provider/perplexity.js +2 -2
  534. package/dist/plugin/provider/poe.js +81 -81
  535. package/dist/plugin/provider/prompt-cache-key.js +1 -1
  536. package/dist/plugin/provider/sap-ai-core.js +93 -93
  537. package/dist/plugin/provider/sdk-factory.js +1 -1
  538. package/dist/plugin/provider/snowflake-cortex.js +115 -115
  539. package/dist/plugin/provider/vercel.js +92 -92
  540. package/dist/plugin/provider/vllm.js +123 -123
  541. package/dist/plugin/provider/xai.js +93 -93
  542. package/dist/plugin/provider/zenmux.js +1 -1
  543. package/dist/plugin/provider.js +171 -171
  544. package/dist/plugin/sdk.js +78 -78
  545. package/dist/plugin/service.js +3 -3
  546. package/dist/plugin/skill.js +134 -134
  547. package/dist/plugin/source-directory.js +1 -1
  548. package/dist/plugin/supervisor.js +348 -348
  549. package/dist/plugin/tool-input-repair.js +4 -4
  550. package/dist/plugin/update.js +2 -2
  551. package/dist/plugin/vcs/git.js +88 -88
  552. package/dist/plugin/vcs/hg.js +88 -88
  553. package/dist/plugin/verbosity.js +95 -95
  554. package/dist/plugin/warming.js +114 -114
  555. package/dist/plugin/websearch/exa.js +7 -7
  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 +6 -6
  559. package/dist/plugin/websearch/parallel.js +8 -8
  560. package/dist/plugin/websearch/tavily.js +6 -6
  561. package/dist/plugin/websearch/tinyfish.js +8 -8
  562. package/dist/plugin.js +229 -229
  563. package/dist/project/schema.js +2 -2
  564. package/dist/project/sql.js +4 -4
  565. package/dist/project.js +82 -82
  566. package/dist/provider.js +103 -103
  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 +91 -91
  571. package/dist/reference.js +93 -93
  572. package/dist/repository-cache.js +83 -83
  573. package/dist/repository.js +1 -1
  574. package/dist/ripgrep/binary.js +2 -2
  575. package/dist/ripgrep.js +99 -99
  576. package/dist/rpc.js +88 -88
  577. package/dist/schema.js +1 -1
  578. package/dist/session/affinity.js +1 -1
  579. package/dist/session/command.js +76 -76
  580. package/dist/session/compaction.js +134 -134
  581. package/dist/session/context.js +164 -164
  582. package/dist/session/diff.js +90 -90
  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 +128 -128
  588. package/dist/session/generate.js +164 -164
  589. package/dist/session/history.js +15 -15
  590. package/dist/session/inbox.js +95 -95
  591. package/dist/session/info.js +3 -3
  592. package/dist/session/instruction-entry.js +81 -81
  593. package/dist/session/instruction-state.js +8 -8
  594. package/dist/session/instructions.js +99 -99
  595. package/dist/session/message-updater.js +4 -4
  596. package/dist/session/message.js +1 -1
  597. package/dist/session/model-request.js +122 -122
  598. package/dist/session/model-transport.js +9 -9
  599. package/dist/session/move.js +128 -128
  600. package/dist/session/projector.js +89 -89
  601. package/dist/session/prompt.js +107 -107
  602. package/dist/session/recent-text.js +1 -1
  603. package/dist/session/revert.js +96 -96
  604. package/dist/session/run-coordinator.js +3 -3
  605. package/dist/session/runner/index.js +3 -3
  606. package/dist/session/runner/llm.js +229 -229
  607. package/dist/session/runner/max-steps.js +1 -1
  608. package/dist/session/runner/model.js +101 -101
  609. package/dist/session/runner/publish-llm-event.js +116 -116
  610. package/dist/session/runner/retry.js +5 -5
  611. package/dist/session/runner/step.js +128 -128
  612. package/dist/session/runner/to-llm-message.js +14 -14
  613. package/dist/session/schema.js +5 -5
  614. package/dist/session/session.js +165 -165
  615. package/dist/session/shell.js +130 -130
  616. package/dist/session/skill.js +105 -105
  617. package/dist/session/sql.js +5 -5
  618. package/dist/session/stats.js +77 -77
  619. package/dist/session/store.js +87 -87
  620. package/dist/session/subagent-completion.js +1 -1
  621. package/dist/session/subagent-job.js +212 -212
  622. package/dist/session/system-prompt.js +3 -3
  623. package/dist/session/title.js +168 -168
  624. package/dist/session/to-session-error.js +114 -114
  625. package/dist/session/transfer.js +220 -220
  626. package/dist/session/usage.js +1 -1
  627. package/dist/session.js +216 -216
  628. package/dist/shell/parse.js +6 -6
  629. package/dist/shell/result.js +1 -1
  630. package/dist/shell/scan.js +1 -1
  631. package/dist/shell/select.js +13 -13
  632. package/dist/shell.js +132 -132
  633. package/dist/skill/discovery.js +2 -2
  634. package/dist/skill/instructions.js +109 -109
  635. package/dist/skill.js +116 -116
  636. package/dist/snapshot.js +93 -93
  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 +139 -139
  641. package/dist/tool/plugin/edit.js +122 -122
  642. package/dist/tool/plugin/file-diff.js +1 -1
  643. package/dist/tool/plugin/glob.js +120 -120
  644. package/dist/tool/plugin/grep.js +124 -124
  645. package/dist/tool/plugin/mcp-resource.js +126 -126
  646. package/dist/tool/plugin/opencode.js +111 -111
  647. package/dist/tool/plugin/patch.js +124 -124
  648. package/dist/tool/plugin/question.js +107 -107
  649. package/dist/tool/plugin/read.js +127 -127
  650. package/dist/tool/plugin/shell.js +215 -215
  651. package/dist/tool/plugin/skill.js +115 -115
  652. package/dist/tool/plugin/subagent.js +219 -219
  653. package/dist/tool/plugin/todo.js +138 -138
  654. package/dist/tool/plugin/webfetch.js +113 -113
  655. package/dist/tool/plugin/websearch.js +114 -114
  656. package/dist/tool/plugin/write.js +118 -118
  657. package/dist/tool/read-filesystem.js +104 -104
  658. package/dist/tool/runtime.js +1 -1
  659. package/dist/tool-output.js +7 -7
  660. package/dist/tool.js +12 -12
  661. package/dist/util/error-summary.js +1 -1
  662. package/dist/util/git-executable.js +2 -2
  663. package/dist/util/lazy.js +1 -1
  664. package/dist/util/slug.js +1 -1
  665. package/dist/util/token.js +1 -1
  666. package/dist/util/which.js +1 -1
  667. package/dist/util/wildcard.js +1 -1
  668. package/dist/v1/config/agent.js +7 -7
  669. package/dist/v1/config/command.js +3 -3
  670. package/dist/v1/config/mcp.js +4 -4
  671. package/dist/v1/config/migrate.js +94 -94
  672. package/dist/v1/config/permission.js +7 -7
  673. package/dist/v1/config/plugin.js +3 -3
  674. package/dist/v1/config/provider-options.js +1 -1
  675. package/dist/v1/config/provider.js +4 -4
  676. package/dist/variant.js +93 -93
  677. package/dist/vcs/patch.js +1 -1
  678. package/dist/vcs.js +91 -91
  679. package/dist/voice.js +90 -90
  680. package/dist/websearch.js +86 -86
  681. package/dist/wellknown/plugin.js +78 -78
  682. package/dist/wellknown.js +83 -83
  683. package/dist/workspace/driver.js +5 -5
  684. package/dist/workspace/sql.js +1 -1
  685. package/dist/workspace.js +84 -84
  686. package/dist/worktree/directory.js +2 -2
  687. package/dist/worktree/git.js +10 -10
  688. package/dist/worktree/sql.js +5 -5
  689. package/dist/worktree/strategies.js +91 -91
  690. package/dist/worktree.js +100 -100
  691. package/package.json +8 -8
  692. package/dist/chunks/shell-2mqgqhm8.js +0 -26
  693. package/dist/chunks/shell-d77dj7jw.js +0 -18
  694. /package/dist/chunks/{shell-0qkdqm5v.js → state-0qkdqm5v.js} +0 -0
  695. /package/dist/chunks/{shell-0zkw76rk.js → state-0zkw76rk.js} +0 -0
  696. /package/dist/chunks/{shell-17cy0kzp.js → state-17cy0kzp.js} +0 -0
  697. /package/dist/chunks/{shell-1cnp2v09.js → state-1cnp2v09.js} +0 -0
  698. /package/dist/chunks/{shell-24dcb14g.js → state-24dcb14g.js} +0 -0
  699. /package/dist/chunks/{shell-2710q6r3.js → state-2710q6r3.js} +0 -0
  700. /package/dist/chunks/{shell-2bv980vf.js → state-2bv980vf.js} +0 -0
  701. /package/dist/chunks/{shell-2c3vjs8z.js → state-2c3vjs8z.js} +0 -0
  702. /package/dist/chunks/{shell-359p4xyc.js → state-359p4xyc.js} +0 -0
  703. /package/dist/chunks/{shell-3asan66x.js → state-3asan66x.js} +0 -0
  704. /package/dist/chunks/{shell-3v8g72cx.js → state-3v8g72cx.js} +0 -0
  705. /package/dist/chunks/{shell-3wcehsnq.js → state-3wcehsnq.js} +0 -0
  706. /package/dist/chunks/{shell-43n2bw4t.js → state-43n2bw4t.js} +0 -0
  707. /package/dist/chunks/{shell-4knz6hnm.js → state-4knz6hnm.js} +0 -0
  708. /package/dist/chunks/{shell-4vcrnpx2.js → state-4vcrnpx2.js} +0 -0
  709. /package/dist/chunks/{shell-4y7fprxs.js → state-4y7fprxs.js} +0 -0
  710. /package/dist/chunks/{shell-53557ph1.js → state-53557ph1.js} +0 -0
  711. /package/dist/chunks/{shell-550bvhaj.js → state-550bvhaj.js} +0 -0
  712. /package/dist/chunks/{shell-5fjb7ams.js → state-5fjb7ams.js} +0 -0
  713. /package/dist/chunks/{shell-6prwharc.js → state-6prwharc.js} +0 -0
  714. /package/dist/chunks/{shell-6q2bdcd1.js → state-6q2bdcd1.js} +0 -0
  715. /package/dist/chunks/{shell-7akdwqpd.js → state-7akdwqpd.js} +0 -0
  716. /package/dist/chunks/{shell-7m9af43g.js → state-7m9af43g.js} +0 -0
  717. /package/dist/chunks/{shell-822emrt2.js → state-822emrt2.js} +0 -0
  718. /package/dist/chunks/{shell-84wd9syh.js → state-84wd9syh.js} +0 -0
  719. /package/dist/chunks/{shell-88xbtdfr.js → state-88xbtdfr.js} +0 -0
  720. /package/dist/chunks/{shell-8n3pysct.js → state-8n3pysct.js} +0 -0
  721. /package/dist/chunks/{shell-8wj87zfr.js → state-8wj87zfr.js} +0 -0
  722. /package/dist/chunks/{shell-9a4afbnw.js → state-9a4afbnw.js} +0 -0
  723. /package/dist/chunks/{shell-9rqn6x4v.js → state-9rqn6x4v.js} +0 -0
  724. /package/dist/chunks/{shell-a058387c.js → state-a058387c.js} +0 -0
  725. /package/dist/chunks/{shell-a6k6eb26.js → state-a6k6eb26.js} +0 -0
  726. /package/dist/chunks/{shell-af5trqkr.js → state-af5trqkr.js} +0 -0
  727. /package/dist/chunks/{shell-afrmfg78.js → state-afrmfg78.js} +0 -0
  728. /package/dist/chunks/{shell-aqzs7mqg.js → state-aqzs7mqg.js} +0 -0
  729. /package/dist/chunks/{shell-atq7p7m5.js → state-atq7p7m5.js} +0 -0
  730. /package/dist/chunks/{shell-bkyjaxrp.js → state-bkyjaxrp.js} +0 -0
  731. /package/dist/chunks/{shell-bmr6ed5q.js → state-bmr6ed5q.js} +0 -0
  732. /package/dist/chunks/{shell-cf4snx6d.js → state-cf4snx6d.js} +0 -0
  733. /package/dist/chunks/{shell-cvy3z8tj.js → state-cvy3z8tj.js} +0 -0
  734. /package/dist/chunks/{shell-d9fn303g.js → state-d9fn303g.js} +0 -0
  735. /package/dist/chunks/{shell-d9jj8t3e.js → state-d9jj8t3e.js} +0 -0
  736. /package/dist/chunks/{shell-dajrwvna.js → state-dajrwvna.js} +0 -0
  737. /package/dist/chunks/{shell-dap0rakb.js → state-dap0rakb.js} +0 -0
  738. /package/dist/chunks/{shell-df08tz66.js → state-df08tz66.js} +0 -0
  739. /package/dist/chunks/{shell-dy18nga0.js → state-dy18nga0.js} +0 -0
  740. /package/dist/chunks/{shell-e5kj55wp.js → state-e5kj55wp.js} +0 -0
  741. /package/dist/chunks/{shell-e73j6tqm.js → state-e73j6tqm.js} +0 -0
  742. /package/dist/chunks/{shell-ec1grn59.js → state-ec1grn59.js} +0 -0
  743. /package/dist/chunks/{shell-eh3zwz77.js → state-eh3zwz77.js} +0 -0
  744. /package/dist/chunks/{shell-emrn6kk6.js → state-emrn6kk6.js} +0 -0
  745. /package/dist/chunks/{shell-f0mxakyp.js → state-f0mxakyp.js} +0 -0
  746. /package/dist/chunks/{shell-f6n9ztr4.js → state-f6n9ztr4.js} +0 -0
  747. /package/dist/chunks/{shell-faypxj3z.js → state-faypxj3z.js} +0 -0
  748. /package/dist/chunks/{shell-fd410y7t.js → state-fd410y7t.js} +0 -0
  749. /package/dist/chunks/{shell-g4wezp1m.js → state-g4wezp1m.js} +0 -0
  750. /package/dist/chunks/{shell-g86h250q.js → state-g86h250q.js} +0 -0
  751. /package/dist/chunks/{shell-gebd4c9n.js → state-gebd4c9n.js} +0 -0
  752. /package/dist/chunks/{shell-gftt206x.js → state-gftt206x.js} +0 -0
  753. /package/dist/chunks/{shell-hcxmzztb.js → state-hcxmzztb.js} +0 -0
  754. /package/dist/chunks/{shell-hk9envan.js → state-hk9envan.js} +0 -0
  755. /package/dist/chunks/{shell-j2ntwpah.js → state-j2ntwpah.js} +0 -0
  756. /package/dist/chunks/{shell-j5zkgpj8.js → state-j5zkgpj8.js} +0 -0
  757. /package/dist/chunks/{shell-jjkms2e6.js → state-jjkms2e6.js} +0 -0
  758. /package/dist/chunks/{shell-jr7sbwjy.js → state-jr7sbwjy.js} +0 -0
  759. /package/dist/chunks/{shell-jwfs4k6c.js → state-jwfs4k6c.js} +0 -0
  760. /package/dist/chunks/{shell-jze0r7bz.js → state-jze0r7bz.js} +0 -0
  761. /package/dist/chunks/{shell-jzg6c2d5.js → state-jzg6c2d5.js} +0 -0
  762. /package/dist/chunks/{shell-m18g726c.js → state-m18g726c.js} +0 -0
  763. /package/dist/chunks/{shell-mp448xyj.js → state-mp448xyj.js} +0 -0
  764. /package/dist/chunks/{shell-msx8hqn2.js → state-msx8hqn2.js} +0 -0
  765. /package/dist/chunks/{shell-n05xt0ee.js → state-n05xt0ee.js} +0 -0
  766. /package/dist/chunks/{shell-n3j8tn72.js → state-n3j8tn72.js} +0 -0
  767. /package/dist/chunks/{shell-njntx4h6.js → state-njntx4h6.js} +0 -0
  768. /package/dist/chunks/{shell-pkyv6v7h.js → state-pkyv6v7h.js} +0 -0
  769. /package/dist/chunks/{shell-q3sfg36h.js → state-q3sfg36h.js} +0 -0
  770. /package/dist/chunks/{shell-q74kybfr.js → state-q74kybfr.js} +0 -0
  771. /package/dist/chunks/{shell-qaymkmh1.js → state-qaymkmh1.js} +0 -0
  772. /package/dist/chunks/{shell-qb87gjwd.js → state-qb87gjwd.js} +0 -0
  773. /package/dist/chunks/{shell-qfa1cgps.js → state-qfa1cgps.js} +0 -0
  774. /package/dist/chunks/{shell-qg3g05ea.js → state-qg3g05ea.js} +0 -0
  775. /package/dist/chunks/{shell-qrg20bc0.js → state-qrg20bc0.js} +0 -0
  776. /package/dist/chunks/{shell-rcb2kzg1.js → state-rcb2kzg1.js} +0 -0
  777. /package/dist/chunks/{shell-sdp7kfr6.js → state-sdp7kfr6.js} +0 -0
  778. /package/dist/chunks/{shell-ssg3fenm.js → state-ssg3fenm.js} +0 -0
  779. /package/dist/chunks/{shell-ve7vex1e.js → state-ve7vex1e.js} +0 -0
  780. /package/dist/chunks/{shell-w803qqfp.js → state-w803qqfp.js} +0 -0
  781. /package/dist/chunks/{shell-wc3fc9cn.js → state-wc3fc9cn.js} +0 -0
  782. /package/dist/chunks/{shell-wer8tq1h.js → state-wer8tq1h.js} +0 -0
  783. /package/dist/chunks/{shell-wjj7prxr.js → state-wjj7prxr.js} +0 -0
  784. /package/dist/chunks/{shell-wtztk69x.js → state-wtztk69x.js} +0 -0
  785. /package/dist/chunks/{shell-x0ckcb58.js → state-x0ckcb58.js} +0 -0
  786. /package/dist/chunks/{shell-x61499pn.js → state-x61499pn.js} +0 -0
  787. /package/dist/chunks/{shell-y44na4kk.js → state-y44na4kk.js} +0 -0
  788. /package/dist/chunks/{shell-y8f7s663.js → state-y8f7s663.js} +0 -0
  789. /package/dist/chunks/{shell-ygaqb7jw.js → state-ygaqb7jw.js} +0 -0
  790. /package/dist/chunks/{shell-ym463w8f.js → state-ym463w8f.js} +0 -0
  791. /package/dist/chunks/{shell-z5v4ffb3.js → state-z5v4ffb3.js} +0 -0
  792. /package/dist/chunks/{shell-z9919s4g.js → state-z9919s4g.js} +0 -0
@@ -1,29 +1,29 @@
1
1
  import {
2
2
  ephemeral2,
3
- Service85,
4
- node89
5
- } from "./shell-e00z28p8.js";
3
+ Service84,
4
+ node88
5
+ } from "./state-xcq2y651.js";
6
6
  import {
7
- Service74,
8
- node78
9
- } from "./shell-d1x9sp18.js";
7
+ Service73,
8
+ node77
9
+ } from "./state-697v9084.js";
10
10
  import {
11
11
  __export
12
- } from "./shell-9rqn6x4v.js";
12
+ } from "./state-9rqn6x4v.js";
13
13
 
14
14
  // src/wellknown.ts
15
15
  var exports_wellknown = {};
16
16
  __export(exports_wellknown, {
17
17
  Auth: () => Auth2,
18
18
  Config: () => Config2,
19
- Event: () => Event9,
19
+ Event: () => Event14,
20
20
  Manifest: () => Manifest2,
21
21
  RemoteConfig: () => RemoteConfig2,
22
- Service: () => Service63,
22
+ Service: () => Service72,
23
23
  WellKnown: () => exports_wellknown,
24
24
  inspect: () => inspect2,
25
- node: () => node67,
26
- resolve: () => resolve3
25
+ node: () => node76,
26
+ resolve: () => resolve4
27
27
  });
28
28
  import { Integration } from "@opencode/schema/integration";
29
29
  import { Context, Effect, Layer, Ref, Schema, Semaphore } from "effect";
@@ -46,9 +46,9 @@ var Manifest2 = Schema.Struct({
46
46
  remote_config: Schema.optional(RemoteConfig2)
47
47
  }).annotate({ identifier: "WellKnown.Manifest" });
48
48
 
49
- class Service63 extends Context.Service()("@opencode/WellKnown") {
49
+ class Service72 extends Context.Service()("@opencode/WellKnown") {
50
50
  }
51
- var Event9 = {
51
+ var Event14 = {
52
52
  Updated: ephemeral2({ type: "wellknown.updated", schema: {} })
53
53
  };
54
54
  var requestTimeout = "15 seconds";
@@ -57,7 +57,7 @@ var inspect2 = Effect.fn("WellKnown.inspect")(function* (origin) {
57
57
  const http = HttpClient.filterStatusOk(yield* HttpClient.HttpClient);
58
58
  return yield* http.execute(HttpClientRequest.get(url).pipe(HttpClientRequest.acceptJson)).pipe(Effect.flatMap(HttpClientResponse.schemaBodyJson(Manifest2)), Effect.timeout(requestTimeout), Effect.mapError((cause) => new Error(`Failed to load wellknown manifest from ${url}`, { cause })));
59
59
  });
60
- var resolve3 = Effect.fn("WellKnown.resolve")(function* (input) {
60
+ var resolve4 = Effect.fn("WellKnown.resolve")(function* (input) {
61
61
  const manifest = yield* inspect2(input.origin);
62
62
  return yield* resolveEntry({ origin: input.origin, integrationID: Integration.ID.make(input.origin.replace(/\/+$/, "")), manifest }, input.variables ?? {});
63
63
  });
@@ -79,10 +79,10 @@ var Sources = Schema.Array(Schema.String);
79
79
  var manifestKey = (origin) => `wellknown:manifest:${origin}`;
80
80
  var configKey = (origin) => `wellknown:config:${origin}`;
81
81
  var Configs = Schema.Array(Config2);
82
- var layer = Layer.effect(Service63, Effect.gen(function* () {
82
+ var layer = Layer.effect(Service72, Effect.gen(function* () {
83
83
  const http = yield* HttpClient.HttpClient;
84
- const kv = yield* Service74;
85
- const bus = yield* Service85;
84
+ const kv = yield* Service73;
85
+ const bus = yield* Service84;
86
86
  const cache = yield* Ref.make(new Map);
87
87
  const lock = Semaphore.makeUnsafe(1);
88
88
  const loadEntry = Effect.fn("WellKnown.loadEntry")(function* (origin) {
@@ -113,10 +113,10 @@ var layer = Layer.effect(Service63, Effect.gen(function* () {
113
113
  if (!changed)
114
114
  return false;
115
115
  yield* Ref.set(cache, next);
116
- yield* bus.publish(Event9.Updated, {}, { global: true });
116
+ yield* bus.publish(Event14.Updated, {}, { global: true });
117
117
  return true;
118
118
  }, (effect) => lock.withPermit(effect));
119
- return Service63.of({
119
+ return Service72.of({
120
120
  entries: load,
121
121
  snapshot: () => Array.from(Ref.getUnsafe(cache).values()),
122
122
  refresh,
@@ -129,7 +129,7 @@ var layer = Layer.effect(Service63, Effect.gen(function* () {
129
129
  const origins = Schema.is(Sources)(sources) ? sources : [];
130
130
  yield* kv.set(sourcesKey, Array.from(new Set([...origins, origin])));
131
131
  yield* Ref.update(cache, (current) => new Map(current).set(origin, entry));
132
- yield* bus.publish(Event9.Updated, {}, { global: true });
132
+ yield* bus.publish(Event14.Updated, {}, { global: true });
133
133
  return entry;
134
134
  }, (effect, _value) => lock.withPermit(effect)),
135
135
  remove: Effect.fn("WellKnown.remove")(function* (value) {
@@ -144,7 +144,7 @@ var layer = Layer.effect(Service63, Effect.gen(function* () {
144
144
  next.delete(origin);
145
145
  return next;
146
146
  });
147
- yield* bus.publish(Event9.Updated, {}, { global: true });
147
+ yield* bus.publish(Event14.Updated, {}, { global: true });
148
148
  }, (effect, _value) => lock.withPermit(effect)),
149
149
  resolve: Effect.fn("WellKnown.resolveEntry")(function* (entry, variables) {
150
150
  const configs = yield* resolveEntry(entry, variables).pipe(Effect.provideService(HttpClient.HttpClient, http));
@@ -157,6 +157,6 @@ var layer = Layer.effect(Service63, Effect.gen(function* () {
157
157
  })
158
158
  });
159
159
  }));
160
- var node67 = makeGlobalNode({ service: Service63, layer, deps: [httpClient, node78, node89] });
160
+ var node76 = makeGlobalNode({ service: Service72, layer, deps: [httpClient, node77, node88] });
161
161
 
162
- export { Auth2, RemoteConfig2, Config2, Manifest2, Service63, Event9, inspect2, resolve3, node67, exports_wellknown };
162
+ export { Auth2, RemoteConfig2, Config2, Manifest2, Service72, Event14, inspect2, resolve4, node76, exports_wellknown };
@@ -1,21 +1,21 @@
1
1
  import {
2
2
  call2
3
- } from "./shell-w2eysc6j.js";
3
+ } from "./state-40za9wsf.js";
4
4
  import {
5
5
  __export
6
- } from "./shell-9rqn6x4v.js";
6
+ } from "./state-9rqn6x4v.js";
7
7
 
8
8
  // src/plugin/websearch/exa.ts
9
9
  var exports_exa = {};
10
10
  __export(exports_exa, {
11
- Plugin: () => Plugin39,
11
+ Plugin: () => Plugin9,
12
12
  WebSearchExa: () => exports_exa,
13
- endpoint: () => endpoint4
13
+ endpoint: () => endpoint6
14
14
  });
15
15
  import { define } from "@opencode/plugin/effect/plugin";
16
16
  import { Effect, Schema } from "effect";
17
17
  import { HttpClient } from "effect/http";
18
- var endpoint4 = "https://mcp.exa.ai/mcp";
18
+ var endpoint6 = "https://mcp.exa.ai/mcp";
19
19
  var McpInput = Schema.Struct({
20
20
  query: Schema.String,
21
21
  numResults: Schema.Number.pipe(Schema.optional)
@@ -27,7 +27,7 @@ var McpOutput = Schema.Struct({
27
27
  _meta: Schema.Struct({ searchTime: Schema.Number }).pipe(Schema.optional)
28
28
  }))
29
29
  });
30
- var Plugin39 = define({
30
+ var Plugin9 = define({
31
31
  id: "opencode.websearch.exa",
32
32
  effect: Effect.fn("WebSearchExa.Plugin")(function* (ctx) {
33
33
  const http = yield* HttpClient.HttpClient;
@@ -49,7 +49,7 @@ var Plugin39 = define({
49
49
  execute: (input) => Effect.gen(function* () {
50
50
  const connection = yield* ctx.integration.connection.active("exa");
51
51
  const credential = connection ? yield* ctx.integration.connection.resolve(connection) : undefined;
52
- const url = new URL(endpoint4);
52
+ const url = new URL(endpoint6);
53
53
  if (credential?.type === "key")
54
54
  url.searchParams.set("exaApiKey", credential.key);
55
55
  const result = yield* call2(http, url.toString(), "web_search_exa", { input: McpInput, output: McpOutput }, { query: input.query, numResults: 8 });
@@ -80,4 +80,4 @@ function parseResults(text) {
80
80
  });
81
81
  }
82
82
 
83
- export { endpoint4, Plugin39, exports_exa };
83
+ export { endpoint6, Plugin9, exports_exa };
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  __export
3
- } from "./shell-9rqn6x4v.js";
3
+ } from "./state-9rqn6x4v.js";
4
4
 
5
5
  // src/plugin/promise.ts
6
6
  var exports_promise = {};
@@ -1,34 +1,34 @@
1
- import {
2
- Service86,
3
- node90
4
- } from "./shell-3f6nh3fm.js";
5
1
  import {
6
2
  Service85,
7
3
  node89
8
- } from "./shell-e00z28p8.js";
4
+ } from "./state-q036w687.js";
5
+ import {
6
+ Service84,
7
+ node88
8
+ } from "./state-xcq2y651.js";
9
9
  import {
10
10
  CredentialTable2
11
- } from "./shell-pknna89w.js";
11
+ } from "./state-pknna89w.js";
12
12
  import {
13
13
  from2
14
- } from "./shell-m1714858.js";
14
+ } from "./state-m1714858.js";
15
15
  import {
16
16
  __export
17
- } from "./shell-9rqn6x4v.js";
17
+ } from "./state-9rqn6x4v.js";
18
18
 
19
19
  // src/credential.ts
20
20
  var exports_credential = {};
21
21
  __export(exports_credential, {
22
22
  Credential: () => exports_credential,
23
- Event: () => Event13,
23
+ Event: () => Event18,
24
24
  External: () => External2,
25
- ID: () => ID9,
26
- Info: () => Info20,
27
- Key: () => Key3,
25
+ ID: () => ID15,
26
+ Info: () => Info25,
27
+ Key: () => Key4,
28
28
  OAuth: () => OAuth3,
29
- Service: () => Service67,
29
+ Service: () => Service80,
30
30
  Value: () => Value2,
31
- node: () => node71
31
+ node: () => node84
32
32
  });
33
33
  import { asc, desc, eq } from "drizzle-orm";
34
34
  import { Cause, Context, Effect, Layer, Schema } from "effect";
@@ -36,31 +36,31 @@ import { Credential } from "@opencode/schema/credential";
36
36
  import { CredentialLegacy } from "@opencode/schema/credential-legacy";
37
37
  import { Integration } from "@opencode/schema/integration";
38
38
  import { makeGlobalNode } from "@opencode/util/effect/app-node";
39
- var ID9 = Credential.ID;
39
+ var ID15 = Credential.ID;
40
40
  var OAuth3 = Credential.OAuth;
41
- var Key3 = Credential.Key;
41
+ var Key4 = Credential.Key;
42
42
  var External2 = Credential.External;
43
43
  var Value2 = Credential.Value;
44
- var Event13 = Credential.Event;
44
+ var Event18 = Credential.Event;
45
45
 
46
- class Info20 extends Schema.Class("Credential.Info")({
47
- id: ID9,
46
+ class Info25 extends Schema.Class("Credential.Info")({
47
+ id: ID15,
48
48
  integrationID: Integration.ID,
49
49
  label: Schema.String,
50
50
  value: Value2
51
51
  }) {
52
52
  }
53
53
 
54
- class Service67 extends Context.Service()("@opencode/Credential") {
54
+ class Service80 extends Context.Service()("@opencode/Credential") {
55
55
  }
56
- var layer = Layer.effect(Service67, Effect.gen(function* () {
57
- const db = (yield* Service86).db;
58
- const bus = yield* Service85;
56
+ var layer = Layer.effect(Service80, Effect.gen(function* () {
57
+ const db = (yield* Service85).db;
58
+ const bus = yield* Service84;
59
59
  const decode = Schema.decodeUnknownSync(CredentialLegacy.Value);
60
60
  const stored = (row) => {
61
61
  if (!row.integration_id)
62
62
  return;
63
- return new Info20({
63
+ return new Info25({
64
64
  id: row.id,
65
65
  integrationID: row.integration_id,
66
66
  label: row.label,
@@ -71,7 +71,7 @@ var layer = Layer.effect(Service67, Effect.gen(function* () {
71
71
  const credential = stored(row);
72
72
  return credential ? [credential] : [];
73
73
  });
74
- return Service67.of({
74
+ return Service80.of({
75
75
  all: Effect.fn("Credential.all")(() => db.select().from(CredentialTable2).orderBy(asc(CredentialTable2.active), asc(CredentialTable2.time_created), asc(CredentialTable2.id)).all().pipe(Effect.orDie, Effect.map(storedRows))),
76
76
  list: Effect.fn("Credential.list")((integrationID) => db.select().from(CredentialTable2).where(eq(CredentialTable2.integration_id, integrationID)).orderBy(asc(CredentialTable2.active), asc(CredentialTable2.time_created), asc(CredentialTable2.id)).all().pipe(Effect.orDie, Effect.map(storedRows))),
77
77
  get: Effect.fn("Credential.get")(function* (id) {
@@ -79,8 +79,8 @@ var layer = Layer.effect(Service67, Effect.gen(function* () {
79
79
  return row ? stored(row) : undefined;
80
80
  }),
81
81
  create: Effect.fn("Credential.create")(function* (input) {
82
- const credential = new Info20({
83
- id: input.id ?? ID9.create(),
82
+ const credential = new Info25({
83
+ id: input.id ?? ID15.create(),
84
84
  integrationID: input.integrationID,
85
85
  label: input.label ?? "default",
86
86
  value: input.value
@@ -111,9 +111,9 @@ var layer = Layer.effect(Service67, Effect.gen(function* () {
111
111
  type: credential.value.type,
112
112
  active: activated
113
113
  });
114
- yield* bus.publish(Event13.Updated, {}, { global: true });
114
+ yield* bus.publish(Event18.Updated, {}, { global: true });
115
115
  if (activated)
116
- yield* bus.publish(Event13.Switched, { integrationID: credential.integrationID, credentialID: credential.id }, { global: true });
116
+ yield* bus.publish(Event18.Switched, { integrationID: credential.integrationID, credentialID: credential.id }, { global: true });
117
117
  return credential;
118
118
  }),
119
119
  activate: Effect.fn("Credential.activate")(function* (id) {
@@ -133,7 +133,7 @@ var layer = Layer.effect(Service67, Effect.gen(function* () {
133
133
  })), Effect.orDie);
134
134
  if (integrationID) {
135
135
  yield* Effect.logInfo("credential activated", { integrationID, credentialID: id });
136
- yield* bus.publish(Event13.Switched, { integrationID, credentialID: id }, { global: true });
136
+ yield* bus.publish(Event18.Switched, { integrationID, credentialID: id }, { global: true });
137
137
  }
138
138
  }),
139
139
  update: Effect.fn("Credential.update")(function* (id, updates) {
@@ -165,7 +165,7 @@ var layer = Layer.effect(Service67, Effect.gen(function* () {
165
165
  labelChanged: updates.label !== undefined && updates.label !== credential.label
166
166
  });
167
167
  if (updates.label !== undefined && updates.label !== credential.label)
168
- yield* bus.publish(Event13.Updated, {}, { global: true });
168
+ yield* bus.publish(Event18.Updated, {}, { global: true });
169
169
  }),
170
170
  remove: Effect.fn("Credential.remove")(function* (id) {
171
171
  const removed = yield* db.transaction((tx) => Effect.gen(function* () {
@@ -198,12 +198,12 @@ var layer = Layer.effect(Service67, Effect.gen(function* () {
198
198
  active: removed.switched,
199
199
  ...removed.switched ? { replacementID: removed.credentialID } : {}
200
200
  });
201
- yield* bus.publish(Event13.Updated, {}, { global: true });
201
+ yield* bus.publish(Event18.Updated, {}, { global: true });
202
202
  if (removed.switched)
203
- yield* bus.publish(Event13.Switched, { integrationID: removed.integrationID, credentialID: removed.credentialID }, { global: true });
203
+ yield* bus.publish(Event18.Switched, { integrationID: removed.integrationID, credentialID: removed.credentialID }, { global: true });
204
204
  })
205
205
  });
206
206
  }));
207
- var node71 = makeGlobalNode({ service: Service67, layer, deps: [node90, node89] });
207
+ var node84 = makeGlobalNode({ service: Service80, layer, deps: [node89, node88] });
208
208
 
209
- export { ID9, OAuth3, Key3, External2, Value2, Event13, Info20, Service67, node71, exports_credential };
209
+ export { ID15, OAuth3, Key4, External2, Value2, Event18, Info25, Service80, node84, exports_credential };
@@ -1,14 +1,14 @@
1
1
  import {
2
2
  definition2,
3
3
  normalizedName2
4
- } from "./shell-5fjb7ams.js";
4
+ } from "./state-5fjb7ams.js";
5
5
  import {
6
6
  extension2,
7
7
  display2
8
- } from "./shell-91rj84md.js";
8
+ } from "./state-91rj84md.js";
9
9
  import {
10
10
  __export
11
- } from "./shell-9rqn6x4v.js";
11
+ } from "./state-9rqn6x4v.js";
12
12
 
13
13
  // src/codemode/tool.ts
14
14
  var exports_tool2 = {};
@@ -1,24 +1,24 @@
1
1
  import {
2
2
  PositiveInt2
3
- } from "./shell-z5v4ffb3.js";
3
+ } from "./state-z5v4ffb3.js";
4
4
  import {
5
5
  Action2
6
- } from "./shell-qv7y9773.js";
6
+ } from "./state-s7kyse9r.js";
7
7
  import {
8
- Info14
9
- } from "./shell-h5qan5zz.js";
8
+ Info17
9
+ } from "./state-8ykqf5wm.js";
10
10
  import {
11
- Info13
12
- } from "./shell-wmjzvx4b.js";
11
+ Info16
12
+ } from "./state-qqg9c0kv.js";
13
13
  import {
14
- Info11
15
- } from "./shell-fvc4bqe2.js";
14
+ Info19
15
+ } from "./state-es3s6s73.js";
16
16
  import {
17
17
  Spec2
18
- } from "./shell-5zrxpy3q.js";
18
+ } from "./state-1yq9hg58.js";
19
19
  import {
20
- Info12
21
- } from "./shell-afmnpta1.js";
20
+ Info20
21
+ } from "./state-dbmp929s.js";
22
22
  import {
23
23
  normalizeAction2,
24
24
  migrateAgent2,
@@ -28,10 +28,10 @@ import {
28
28
  migrateMcp2,
29
29
  migrateProvider2,
30
30
  providerID2
31
- } from "./shell-f1e7k22r.js";
31
+ } from "./state-vtxf8xbz.js";
32
32
  import {
33
33
  __export
34
- } from "./shell-9rqn6x4v.js";
34
+ } from "./state-9rqn6x4v.js";
35
35
 
36
36
  // src/config/normalize.ts
37
37
  var exports_normalize = {};
@@ -98,12 +98,12 @@ function normalize2(input) {
98
98
  const legacyReferences = decodeMap(input.reference, ConfigReference.Entry, ["reference"], diagnostics, decodeEncoded);
99
99
  const nativeReferences = decodeMap(input.references, ConfigReference.Entry, ["references"], diagnostics, decodeEncoded);
100
100
  mergeMap(encoded, "references", legacyReferences, nativeReferences, isRecord(input.reference) || isRecord(input.references), diagnostics);
101
- const legacyCommands = decodeMap(input.command, Info13, ["command"], diagnostics, decodeValue);
101
+ const legacyCommands = decodeMap(input.command, Info16, ["command"], diagnostics, decodeValue);
102
102
  diagnoseSelectionMap(input.command, ["command"], diagnostics);
103
103
  const migratedCommands = mapValues(legacyCommands, (value) => canonical(ConfigCommand.Info, migrateCommand2(value)));
104
104
  const nativeCommands = decodeMap(input.commands, ConfigCommand.Info, ["commands"], diagnostics, decodeEncoded);
105
105
  mergeMap(encoded, "commands", migratedCommands, nativeCommands, isRecord(input.command) || isRecord(input.commands), diagnostics);
106
- const legacyAgents = mapValues(decodeMap(input.agent, Info14, ["agent"], diagnostics, decodeValue), (value) => canonical(ConfigAgent.Info, migrateAgent2(value)));
106
+ const legacyAgents = mapValues(decodeMap(input.agent, Info17, ["agent"], diagnostics, decodeValue), (value) => canonical(ConfigAgent.Info, migrateAgent2(value)));
107
107
  const legacySmallModel = own(input, "small_model") ? decodeValue(Schema.String, input.small_model, ["small_model"], diagnostics) : undefined;
108
108
  const migratedSmallModel = modelSelection2(legacySmallModel);
109
109
  if (legacySmallModel && !migratedSmallModel)
@@ -117,7 +117,7 @@ function normalize2(input) {
117
117
  model: migratedSmallModel,
118
118
  ...legacyAgents.title
119
119
  };
120
- const modeAgents = mapValues(decodeMap(input.mode, Info14, ["mode"], diagnostics, decodeValue), (value) => canonical(ConfigAgent.Info, migrateAgent2({ ...value, mode: "primary" })));
120
+ const modeAgents = mapValues(decodeMap(input.mode, Info17, ["mode"], diagnostics, decodeValue), (value) => canonical(ConfigAgent.Info, migrateAgent2({ ...value, mode: "primary" })));
121
121
  const migratedAgents = mergeMaps(legacyAgents, modeAgents, ["agents"], diagnostics);
122
122
  const nativeAgents = decodeMap(input.agents, ConfigAgent.Info, ["agents"], diagnostics, decodeEncoded);
123
123
  diagnoseAgentUnsupported(input.agent, ["agent"], diagnostics);
@@ -219,7 +219,7 @@ function normalizeMcp(input, encoded, diagnostics) {
219
219
  normalizeMcpTimeout(typeof value === "number" ? migrateMcpTimeout2(value) : value, timeout, path, diagnostics);
220
220
  return;
221
221
  }
222
- const server = decodeValue(Info11, value, path, diagnostics);
222
+ const server = decodeValue(Info19, value, path, diagnostics);
223
223
  if (server !== undefined)
224
224
  setOwn(legacyServers, name, canonical(ConfigMCP.Server, migrateMcp2(server)));
225
225
  });
@@ -440,7 +440,7 @@ function migrateProviders(value, diagnostics) {
440
440
  diagnoseProviderUnsupported(raw, path, diagnostics);
441
441
  if (invalidProviderOverlays(raw, path, diagnostics))
442
442
  return [];
443
- const provider = decodeValue(Info12, raw, path, diagnostics);
443
+ const provider = decodeValue(Info20, raw, path, diagnostics);
444
444
  if (provider === undefined)
445
445
  return [];
446
446
  const destination = providerID2(name);
@@ -1,25 +1,25 @@
1
1
  import {
2
2
  WorktreeError2
3
- } from "./shell-0pv52n9j.js";
3
+ } from "./state-w60hkx9t.js";
4
4
  import {
5
- Service77
6
- } from "./shell-gcf8bw3p.js";
5
+ Service53
6
+ } from "./state-jgdcf8mk.js";
7
7
  import {
8
- Service48
9
- } from "./shell-tfhekx6w.js";
8
+ Service17
9
+ } from "./state-mkh464f3.js";
10
10
  import {
11
11
  DirectoryUnavailableError2
12
- } from "./shell-d4v9tmah.js";
12
+ } from "./state-d4v9tmah.js";
13
13
  import {
14
- Info21,
14
+ Info5,
15
15
  List2,
16
16
  InvalidDirectoryError2,
17
17
  StrategyUnavailableError2,
18
18
  OperationError2
19
- } from "./shell-fjfaey98.js";
19
+ } from "./state-xrdxc1gc.js";
20
20
  import {
21
21
  __export
22
- } from "./shell-9rqn6x4v.js";
22
+ } from "./state-9rqn6x4v.js";
23
23
 
24
24
  // src/tool/plugin/opencode.ts
25
25
  var exports_opencode = {};
@@ -27,7 +27,7 @@ __export(exports_opencode, {
27
27
  ModelsInput: () => ModelsInput2,
28
28
  MoveInput: () => MoveInput2,
29
29
  OpenCodeTools: () => exports_opencode,
30
- Plugin: () => Plugin31,
30
+ Plugin: () => Plugin49,
31
31
  RenameInput: () => RenameInput2,
32
32
  WorktreeCreateInput: () => WorktreeCreateInput2,
33
33
  WorktreeRemoveInput: () => WorktreeRemoveInput2
@@ -97,11 +97,11 @@ var ModelsOutput = Schema.Struct({
97
97
  total: Schema.Int.annotate({ description: "Number of matching models across all pages." }),
98
98
  next: Schema.NullOr(Schema.Int).annotate({ description: "Offset of the next page, or null on the last page." })
99
99
  });
100
- var Plugin31 = {
100
+ var Plugin49 = {
101
101
  id: "opencode.tools",
102
102
  effect: Effect.fn("OpenCodeTools.Plugin")(function* (ctx) {
103
- const access = yield* Service48;
104
- const permission = yield* Service77;
103
+ const access = yield* Service17;
104
+ const permission = yield* Service53;
105
105
  const hook = (event) => Effect.sync(() => {
106
106
  event.system.push(SystemPart.make("When you create a worktree outside the current working directory and intend to use it as your primary working directory, consider using `execute` to call `tools.opencode.session_move` and make the worktree the session's working directory."));
107
107
  });
@@ -153,7 +153,7 @@ var Plugin31 = {
153
153
  name: "worktree_create",
154
154
  description: "Create a named worktree. Returns its directory.",
155
155
  input: WorktreeCreateInput2,
156
- output: Info21,
156
+ output: Info5,
157
157
  options: { namespace: "opencode", codemode: true, pinned: true },
158
158
  execute: (input) => ctx.worktree.create({ projectID: ctx.location.project.id, name: input.name }).pipe(Effect.map((output) => ({ output, content: `Created worktree in ${output.directory}.` })), Effect.mapError((error) => new ToolFailure({ message: `Unable to create worktree ${input.name}`, error })))
159
159
  });
@@ -250,4 +250,4 @@ function removeFailure(directory, error) {
250
250
  return `Unable to remove worktree ${directory}.`;
251
251
  }
252
252
 
253
- export { RenameInput2, MoveInput2, WorktreeCreateInput2, WorktreeRemoveInput2, ModelsInput2, Plugin31, exports_opencode };
253
+ export { RenameInput2, MoveInput2, WorktreeCreateInput2, WorktreeRemoveInput2, ModelsInput2, Plugin49, exports_opencode };
@@ -1,13 +1,13 @@
1
1
  import {
2
- Service85
3
- } from "./shell-e00z28p8.js";
2
+ Service84
3
+ } from "./state-xcq2y651.js";
4
4
  import {
5
5
  supportsText2
6
- } from "./shell-79vtmvb8.js";
6
+ } from "./state-mpcws20e.js";
7
7
  import {
8
- Service15,
9
- Event2
10
- } from "./shell-hvzv56hn.js";
8
+ Service20,
9
+ Event3
10
+ } from "./state-eqr22vcz.js";
11
11
 
12
12
  // src/plugin/models-dev.ts
13
13
  import { define } from "@opencode/plugin/effect/plugin";
@@ -38,8 +38,8 @@ var BEDROCK_PROFILE_ONLY_IDS = [
38
38
  var ModelsDevPlugin2 = define({
39
39
  id: "opencode.models.dev",
40
40
  effect: Effect.fn(function* (ctx) {
41
- const modelsDev = yield* Service15;
42
- const bus = yield* Service85;
41
+ const modelsDev = yield* Service20;
42
+ const bus = yield* Service84;
43
43
  const loaded = { data: snapshots(yield* modelsDev.get()) };
44
44
  yield* ctx.integration.transform((integrations) => {
45
45
  for (const provider of loaded.data) {
@@ -72,7 +72,7 @@ var ModelsDevPlugin2 = define({
72
72
  loaded.data = snapshots(data);
73
73
  return ctx.integration.reload().pipe(Effect.andThen(ctx.provider.reload()));
74
74
  };
75
- yield* bus.subscribe(Event2.Refreshed).pipe(Stream.runForEach(() => modelsDev.get().pipe(Effect.flatMap(apply))), Effect.forkScoped({ startImmediately: true }));
75
+ yield* bus.subscribe(Event3.Refreshed).pipe(Stream.runForEach(() => modelsDev.get().pipe(Effect.flatMap(apply))), Effect.forkScoped({ startImmediately: true }));
76
76
  const latest = yield* modelsDev.get();
77
77
  if (snapshots(latest) !== loaded.data)
78
78
  yield* apply(latest);
@@ -1,34 +1,34 @@
1
1
  import {
2
2
  useragent2
3
- } from "./shell-x0ra2npf.js";
3
+ } from "./state-qzjk3zq0.js";
4
4
  import {
5
- Service85
6
- } from "./shell-e00z28p8.js";
5
+ Service84
6
+ } from "./state-xcq2y651.js";
7
7
  import {
8
8
  OAuth3,
9
- Event13
10
- } from "./shell-3xqr0t2x.js";
9
+ Event18
10
+ } from "./state-4vswmwyp.js";
11
11
  import {
12
- ID8,
12
+ ID14,
13
13
  MethodID2
14
- } from "./shell-ta9qyare.js";
14
+ } from "./state-14kme7tc.js";
15
15
  import {
16
- ID7
17
- } from "./shell-1rarfw9s.js";
16
+ ID13
17
+ } from "./state-44m02g6g.js";
18
18
  import {
19
- ID6,
19
+ ID12,
20
20
  Family2
21
- } from "./shell-79vtmvb8.js";
21
+ } from "./state-mpcws20e.js";
22
22
  import {
23
23
  bootstrap2
24
- } from "./shell-yb20nhc3.js";
24
+ } from "./state-yb20nhc3.js";
25
25
 
26
26
  // src/plugin/provider/digitalocean.ts
27
27
  import { define } from "@opencode/plugin/effect/plugin";
28
28
  import { Clock, Deferred, Effect, Option, Schema, Semaphore, Stream } from "effect";
29
29
  import { HttpClient, HttpClientRequest, HttpClientResponse } from "effect/http";
30
- var providerID = ID7.make("digitalocean");
31
- var integrationID = ID8.make("digitalocean");
30
+ var providerID = ID13.make("digitalocean");
31
+ var integrationID = ID14.make("digitalocean");
32
32
  var methodID = MethodID2.make("browser");
33
33
  var clientID = "b1a6c5158156caac821fd1b30253ca8acb52454a48fa744420e41889cb589f82";
34
34
  var authorizeEndpoint = "https://cloud.digitalocean.com/v1/oauth/authorize";
@@ -116,7 +116,7 @@ var oauth = {
116
116
  var DigitalOceanPlugin2 = define({
117
117
  id: "opencode.provider.digitalocean",
118
118
  effect: Effect.fn(function* (ctx) {
119
- const bus = yield* Service85;
119
+ const bus = yield* Service84;
120
120
  const http = HttpClient.filterStatusOk(yield* HttpClient.HttpClient);
121
121
  const loading = Semaphore.makeUnsafe(1);
122
122
  const loaded = { routers: [] };
@@ -148,7 +148,7 @@ var DigitalOceanPlugin2 = define({
148
148
  return;
149
149
  for (const router of loaded.routers) {
150
150
  const id = `router:${router.name}`;
151
- if (evt.get(providerID)?.models.has(ID6.make(id)))
151
+ if (evt.get(providerID)?.models.has(ID12.make(id)))
152
152
  continue;
153
153
  evt.models.update(providerID, id, (draft) => {
154
154
  draft.name = router.name;
@@ -159,7 +159,7 @@ var DigitalOceanPlugin2 = define({
159
159
  }
160
160
  });
161
161
  const refresh = () => loading.withPermit(load().pipe(Effect.andThen(ctx.provider.reload())));
162
- yield* bus.subscribe(Event13.Switched).pipe(Stream.filter((event) => event.data.integrationID === integrationID), Stream.runForEach(refresh), Effect.forkScoped({ startImmediately: true }));
162
+ yield* bus.subscribe(Event18.Switched).pipe(Stream.filter((event) => event.data.integrationID === integrationID), Stream.runForEach(refresh), Effect.forkScoped({ startImmediately: true }));
163
163
  yield* refresh().pipe(Effect.forkScoped);
164
164
  })
165
165
  });