@opencode/core 0.0.0-dev-19653 → 0.0.0-dev-19656

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 (787) hide show
  1. package/dist/account/sql.js +1 -1
  2. package/dist/agent.js +78 -78
  3. package/dist/aisdk-native.js +88 -88
  4. package/dist/aisdk.js +93 -93
  5. package/dist/app.js +9 -9
  6. package/dist/bus.js +72 -72
  7. package/dist/chunks/{snapshot-hvxr6sb7.js → agent-03rqc312.js} +15 -15
  8. package/dist/chunks/{snapshot-89q4ger5.js → agent-04dcg5cn.js} +11 -11
  9. package/dist/chunks/{snapshot-9e768ymn.js → agent-06ceef0k.js} +29 -29
  10. package/dist/chunks/{snapshot-aamtrqep.js → agent-0ke265bw.js} +9 -9
  11. package/dist/chunks/{snapshot-0paq2nw3.js → agent-0paq2nw3.js} +1 -1
  12. package/dist/chunks/{snapshot-0q0f95c6.js → agent-0q0f95c6.js} +1 -1
  13. package/dist/chunks/{snapshot-z73n086k.js → agent-0rd7xdya.js} +18 -18
  14. package/dist/chunks/{snapshot-ta2099j2.js → agent-0thzgb1r.js} +47 -47
  15. package/dist/chunks/{snapshot-m0kv6xab.js → agent-15y1k2vj.js} +8 -8
  16. package/dist/chunks/{snapshot-jzcabyfg.js → agent-1691scn4.js} +4 -4
  17. package/dist/chunks/{snapshot-jkw5p48s.js → agent-17m32p6k.js} +4 -4
  18. package/dist/chunks/{snapshot-ar8rz7nx.js → agent-19b18x4a.js} +12 -12
  19. package/dist/chunks/{snapshot-dpz4ks7y.js → agent-1b97564n.js} +5 -5
  20. package/dist/chunks/{snapshot-1dazxqgg.js → agent-1dazxqgg.js} +2 -2
  21. package/dist/chunks/{snapshot-5ddxzgrt.js → agent-1ee03c5q.js} +21 -21
  22. package/dist/chunks/{snapshot-05qwv096.js → agent-1km3efwx.js} +12 -12
  23. package/dist/chunks/{snapshot-218gy5ye.js → agent-1q6dsdf1.js} +5 -5
  24. package/dist/chunks/{snapshot-1ygqh575.js → agent-1ygqh575.js} +2 -2
  25. package/dist/chunks/{snapshot-e80mc8w1.js → agent-20pt1pec.js} +13 -13
  26. package/dist/chunks/{snapshot-21r38tys.js → agent-21r38tys.js} +1 -1
  27. package/dist/chunks/{snapshot-26wn6ybt.js → agent-226m2y9j.js} +304 -304
  28. package/dist/chunks/{snapshot-2402vzrj.js → agent-2402vzrj.js} +1 -1
  29. package/dist/chunks/{snapshot-y9y2zt4e.js → agent-28y9jk0q.js} +26 -26
  30. package/dist/chunks/{snapshot-29x78va6.js → agent-29x78va6.js} +2 -2
  31. package/dist/chunks/{snapshot-jzsegfhb.js → agent-29xvb5bk.js} +4 -4
  32. package/dist/chunks/{snapshot-2a5m3afh.js → agent-2a5m3afh.js} +1 -1
  33. package/dist/chunks/{snapshot-ctvc05cr.js → agent-2abvbcae.js} +17 -17
  34. package/dist/chunks/{snapshot-hb0he38b.js → agent-2qqft60s.js} +8 -8
  35. package/dist/chunks/{snapshot-n36b8xge.js → agent-2xjfx819.js} +27 -27
  36. package/dist/chunks/{snapshot-yehf1tbz.js → agent-3420f81x.js} +12 -12
  37. package/dist/chunks/{snapshot-1y3jj0rs.js → agent-3ddshk2w.js} +23 -23
  38. package/dist/chunks/{snapshot-fcs2b5j4.js → agent-3f9jkvn9.js} +13 -13
  39. package/dist/chunks/{snapshot-3fc6dm20.js → agent-3fc6dm20.js} +1 -1
  40. package/dist/chunks/{snapshot-mqxhjc40.js → agent-3gkjxxq5.js} +44 -44
  41. package/dist/chunks/{snapshot-3hepkmqq.js → agent-3hepkmqq.js} +1 -1
  42. package/dist/chunks/{snapshot-8jrg70p8.js → agent-3qketbyj.js} +22 -22
  43. package/dist/chunks/{snapshot-3smtnn6g.js → agent-3smtnn6g.js} +1 -1
  44. package/dist/chunks/{snapshot-knb7evpn.js → agent-3tq5qxbk.js} +8 -8
  45. package/dist/chunks/{snapshot-3tvqynh2.js → agent-3tvqynh2.js} +1 -1
  46. package/dist/chunks/{snapshot-wsepfvn3.js → agent-404q74aa.js} +5 -5
  47. package/dist/chunks/{snapshot-tzv9gha2.js → agent-43c7dpaz.js} +10 -10
  48. package/dist/chunks/{snapshot-90fr4d2x.js → agent-43fzebs1.js} +20 -20
  49. package/dist/chunks/{snapshot-yzmrefmx.js → agent-45b80evn.js} +34 -34
  50. package/dist/chunks/{snapshot-1th92w80.js → agent-490dwfz5.js} +24 -24
  51. package/dist/chunks/{snapshot-0xezjjjn.js → agent-4a0nv7mx.js} +8 -8
  52. package/dist/chunks/{snapshot-rz3xxe6k.js → agent-4bck9qtc.js} +45 -45
  53. package/dist/chunks/{snapshot-h6r3nrb9.js → agent-4dgbcxzg.js} +4 -4
  54. package/dist/chunks/{snapshot-erzjndax.js → agent-4dspm8g6.js} +26 -26
  55. package/dist/chunks/{snapshot-tar7az88.js → agent-4k9e4dr5.js} +1 -1
  56. package/dist/chunks/{snapshot-0msp93dq.js → agent-4vfazkpg.js} +19 -19
  57. package/dist/chunks/{snapshot-nwha1t5p.js → agent-4z4a8vzz.js} +25 -25
  58. package/dist/chunks/{snapshot-49tdp8w1.js → agent-50j6g97c.js} +23 -23
  59. package/dist/chunks/{snapshot-jmq43bvs.js → agent-50nxck2z.js} +7 -7
  60. package/dist/chunks/{snapshot-6ad4ne84.js → agent-5328v91a.js} +11 -11
  61. package/dist/chunks/{snapshot-drwq78ky.js → agent-57b9ws8p.js} +5 -5
  62. package/dist/chunks/{snapshot-hqymy954.js → agent-59mnm3xm.js} +32 -32
  63. package/dist/chunks/{snapshot-pt64hy19.js → agent-5d40a849.js} +21 -21
  64. package/dist/chunks/{snapshot-5daktx2q.js → agent-5daktx2q.js} +1 -1
  65. package/dist/chunks/{snapshot-fq55hpy7.js → agent-5mm84jf5.js} +44 -44
  66. package/dist/chunks/{snapshot-bh94tj1g.js → agent-5p02sfjf.js} +40 -40
  67. package/dist/chunks/{snapshot-5t3nmthw.js → agent-5t3nmthw.js} +2 -2
  68. package/dist/chunks/{snapshot-6kse8r33.js → agent-5t5sfg6x.js} +2 -2
  69. package/dist/chunks/{snapshot-vkgpxk0m.js → agent-5wpd7yxc.js} +33 -33
  70. package/dist/chunks/{snapshot-g0445xdp.js → agent-5xtgfte3.js} +6 -6
  71. package/dist/chunks/agent-667m8nqw.js +247 -0
  72. package/dist/chunks/{snapshot-669tq793.js → agent-669tq793.js} +1 -1
  73. package/dist/chunks/{snapshot-pddmdwmf.js → agent-690v2809.js} +28 -28
  74. package/dist/chunks/{snapshot-mrfv1e3e.js → agent-6bnv2jj5.js} +40 -40
  75. package/dist/chunks/{snapshot-6msgmcgs.js → agent-6msgmcgs.js} +1 -1
  76. package/dist/chunks/{snapshot-1ysy6ptp.js → agent-6xbty6w5.js} +54 -54
  77. package/dist/chunks/{snapshot-rr2wt9g3.js → agent-70tr3ddm.js} +4 -4
  78. package/dist/chunks/{snapshot-2gygnsh6.js → agent-7b3vjk9x.js} +11 -11
  79. package/dist/chunks/{snapshot-7bmhse3q.js → agent-7bmhse3q.js} +1 -1
  80. package/dist/chunks/{snapshot-7dqw4kz8.js → agent-7dqw4kz8.js} +1 -1
  81. package/dist/chunks/{snapshot-y1ah066v.js → agent-7dvjpfkh.js} +40 -40
  82. package/dist/chunks/{snapshot-ntxwhzte.js → agent-7fwdayb3.js} +28 -28
  83. package/dist/chunks/{snapshot-1yrbrdr0.js → agent-7g876h49.js} +4 -4
  84. package/dist/chunks/{snapshot-argg83d8.js → agent-7qamqe9t.js} +13 -13
  85. package/dist/chunks/{snapshot-jexxy024.js → agent-7w99qc9d.js} +3 -3
  86. package/dist/chunks/{snapshot-xac6wcsk.js → agent-7xskdnmq.js} +33 -33
  87. package/dist/chunks/{snapshot-gp07xrgk.js → agent-7zt7d4qb.js} +5 -5
  88. package/dist/chunks/{snapshot-8d7r5vzw.js → agent-8d7r5vzw.js} +1 -1
  89. package/dist/chunks/{snapshot-njct8jvz.js → agent-8gnjjt4m.js} +16 -16
  90. package/dist/chunks/{snapshot-hst1fhzz.js → agent-8hkd5324.js} +14 -14
  91. package/dist/chunks/{snapshot-j4yjh87y.js → agent-8k7e64tb.js} +33 -33
  92. package/dist/chunks/{snapshot-8p3ra840.js → agent-8kt5ap8m.js} +13 -13
  93. package/dist/chunks/{snapshot-8p4f9s12.js → agent-8p4f9s12.js} +2 -2
  94. package/dist/chunks/{snapshot-vqfzq50h.js → agent-909p1r3q.js} +6 -6
  95. package/dist/chunks/{snapshot-bn8ttp5v.js → agent-92yvrx5s.js} +9 -9
  96. package/dist/chunks/{snapshot-xe6a6y7j.js → agent-9ea5bf9y.js} +45 -45
  97. package/dist/chunks/{snapshot-k5721584.js → agent-9esbgk1q.js} +4 -4
  98. package/dist/chunks/{snapshot-hsj3aajr.js → agent-9hm7ckxt.js} +34 -34
  99. package/dist/chunks/{snapshot-a74266j8.js → agent-9kn12v6r.js} +28 -28
  100. package/dist/chunks/{snapshot-a1bz86dw.js → agent-a1bz86dw.js} +3 -3
  101. package/dist/chunks/{snapshot-q3gzdryb.js → agent-a5zcseag.js} +7 -7
  102. package/dist/chunks/{snapshot-aaet6srn.js → agent-aaet6srn.js} +2 -2
  103. package/dist/chunks/{snapshot-tn0aqsam.js → agent-ag9w8cw1.js} +5 -5
  104. package/dist/chunks/{snapshot-z8kb0hdh.js → agent-ahrt4mg3.js} +14 -14
  105. package/dist/chunks/{snapshot-x8mrydwy.js → agent-ap7xjbkk.js} +11 -11
  106. package/dist/chunks/{snapshot-d2aac7k2.js → agent-avm8jn6n.js} +5 -5
  107. package/dist/chunks/{snapshot-b6gygkdw.js → agent-b6gygkdw.js} +2 -2
  108. package/dist/chunks/{snapshot-0h83wq1x.js → agent-b6mhz6tz.js} +11 -11
  109. package/dist/chunks/{snapshot-pp9p7z27.js → agent-bahyzz28.js} +5 -5
  110. package/dist/chunks/{snapshot-tsm2qp81.js → agent-bsbhabzh.js} +23 -23
  111. package/dist/chunks/agent-by5v678g.js +18 -0
  112. package/dist/chunks/{snapshot-f6h37ngn.js → agent-c1xqpjcq.js} +24 -24
  113. package/dist/chunks/{snapshot-wdn2d5ek.js → agent-c34v49rf.js} +7 -7
  114. package/dist/chunks/{snapshot-b5h975ar.js → agent-c5ecbqg3.js} +21 -21
  115. package/dist/chunks/{snapshot-cfpkc3c9.js → agent-cfpkc3c9.js} +2 -2
  116. package/dist/chunks/{snapshot-cq37gk0t.js → agent-cq37gk0t.js} +4 -4
  117. package/dist/chunks/{snapshot-csf2jhsg.js → agent-csf2jhsg.js} +1 -1
  118. package/dist/chunks/{snapshot-g290m0sn.js → agent-d31erkmn.js} +9 -9
  119. package/dist/chunks/{snapshot-b128nfhh.js → agent-d7d1bws0.js} +5 -5
  120. package/dist/chunks/{snapshot-z896z5cb.js → agent-d9kjva1f.js} +16 -16
  121. package/dist/chunks/{snapshot-0jq9fyba.js → agent-depwzj9d.js} +5 -5
  122. package/dist/chunks/{snapshot-69dycrt6.js → agent-dhp7q7v3.js} +23 -23
  123. package/dist/chunks/{snapshot-gjwgx2c5.js → agent-djszqvmq.js} +9 -9
  124. package/dist/chunks/{snapshot-hfn0tva4.js → agent-dts4zv7m.js} +10 -10
  125. package/dist/chunks/{snapshot-z3nay82g.js → agent-e0r7vjdq.js} +9 -9
  126. package/dist/chunks/{snapshot-qhsabzhs.js → agent-e3tkdgb3.js} +9 -9
  127. package/dist/chunks/{snapshot-3pyz1as7.js → agent-e4d91mqy.js} +13 -13
  128. package/dist/chunks/{snapshot-bndc73cn.js → agent-e5nv3ght.js} +5 -5
  129. package/dist/chunks/{snapshot-drnp37zn.js → agent-e8pqf2r6.js} +3 -3
  130. package/dist/chunks/{snapshot-ef5x83kb.js → agent-ef5x83kb.js} +1 -1
  131. package/dist/chunks/{snapshot-j0wffheb.js → agent-em88cjk6.js} +4 -4
  132. package/dist/chunks/{snapshot-01thgb1n.js → agent-emy9d3t9.js} +89 -89
  133. package/dist/chunks/{snapshot-y22m1gtg.js → agent-enewj7j8.js} +8 -8
  134. package/dist/chunks/{snapshot-73tb2d7t.js → agent-eq1pz5kg.js} +3 -3
  135. package/dist/chunks/{snapshot-etq0c3wd.js → agent-etq0c3wd.js} +1 -1
  136. package/dist/chunks/{snapshot-1ny5n266.js → agent-eyhn4hxz.js} +9 -9
  137. package/dist/chunks/{snapshot-qqcmrm0p.js → agent-f3maxcd1.js} +18 -18
  138. package/dist/chunks/{snapshot-mqs2tvqp.js → agent-f4g9amsa.js} +11 -11
  139. package/dist/chunks/{snapshot-gkkbyfpt.js → agent-f53ep6tn.js} +24 -24
  140. package/dist/chunks/{snapshot-f828m53h.js → agent-f828m53h.js} +2 -2
  141. package/dist/chunks/{snapshot-1md7fgng.js → agent-fdnx06kt.js} +19 -19
  142. package/dist/chunks/{snapshot-st1gh55s.js → agent-fewp7n81.js} +1 -1
  143. package/dist/chunks/{snapshot-hvq2e6yw.js → agent-ffh4trqp.js} +22 -22
  144. package/dist/chunks/{snapshot-dcqsap79.js → agent-fg71mw94.js} +11 -11
  145. package/dist/chunks/{snapshot-bdqrk2vk.js → agent-fjvydvzm.js} +4 -4
  146. package/dist/chunks/{snapshot-qz49fwgp.js → agent-fvanntqq.js} +4 -4
  147. package/dist/chunks/{snapshot-fxbjtjnd.js → agent-fxbjtjnd.js} +1 -1
  148. package/dist/chunks/{snapshot-sv3gqcn4.js → agent-g3mk5m2r.js} +20 -20
  149. package/dist/chunks/{snapshot-aceeg3cp.js → agent-g4nc79f9.js} +27 -27
  150. package/dist/chunks/{snapshot-sd061d7v.js → agent-g504yw0v.js} +13 -13
  151. package/dist/chunks/{snapshot-gd4qta3r.js → agent-gd4qta3r.js} +1 -1
  152. package/dist/chunks/{snapshot-1apne1gy.js → agent-ge28sdr1.js} +41 -41
  153. package/dist/chunks/{snapshot-fn0sks19.js → agent-gmhn0nb6.js} +8 -8
  154. package/dist/chunks/{snapshot-gv6a8nnw.js → agent-gv6a8nnw.js} +2 -2
  155. package/dist/chunks/{snapshot-h03wrkyp.js → agent-h03wrkyp.js} +2 -2
  156. package/dist/chunks/{snapshot-93kcsy4k.js → agent-h1x6nvvy.js} +19 -19
  157. package/dist/chunks/{snapshot-h6vf3j39.js → agent-h6vf3j39.js} +1 -1
  158. package/dist/chunks/{snapshot-kkzntj36.js → agent-hmzbppx1.js} +20 -20
  159. package/dist/chunks/{snapshot-hnr5yq9h.js → agent-hnr5yq9h.js} +2 -2
  160. package/dist/chunks/{snapshot-c877w3g9.js → agent-hpyvjfgv.js} +31 -31
  161. package/dist/chunks/{snapshot-g7jvb7c9.js → agent-hqt53cmn.js} +12 -12
  162. package/dist/chunks/{snapshot-nnq58889.js → agent-hrk3055y.js} +29 -29
  163. package/dist/chunks/{snapshot-wfdf6d3v.js → agent-hxdcka6c.js} +7 -7
  164. package/dist/chunks/{snapshot-j56e64zr.js → agent-j56e64zr.js} +1 -1
  165. package/dist/chunks/{snapshot-bq4csc8x.js → agent-j95zefqq.js} +6 -6
  166. package/dist/chunks/{snapshot-kbvc63j3.js → agent-jhgeqn8m.js} +13 -13
  167. package/dist/chunks/{snapshot-3ap7mgrf.js → agent-jnqd1sj9.js} +11 -11
  168. package/dist/chunks/{snapshot-pcgbtdxm.js → agent-jqj8xz2j.js} +69 -69
  169. package/dist/chunks/{snapshot-h8hzwc5x.js → agent-k8tcs9mq.js} +3 -3
  170. package/dist/chunks/{snapshot-j1cg1qz3.js → agent-k9deztz9.js} +35 -35
  171. package/dist/chunks/{snapshot-7h87z3j8.js → agent-kh6zg86z.js} +15 -15
  172. package/dist/chunks/{snapshot-vq4eqjm7.js → agent-kwkc7t07.js} +5 -5
  173. package/dist/chunks/{snapshot-1ef5mg7v.js → agent-kzbwvv44.js} +3 -3
  174. package/dist/chunks/{snapshot-2336b01z.js → agent-m28tfe1w.js} +8 -8
  175. package/dist/chunks/{snapshot-rhafb4aa.js → agent-m2d0j7c0.js} +8 -8
  176. package/dist/chunks/{snapshot-6rpmvfyt.js → agent-m4hchbvp.js} +11 -11
  177. package/dist/chunks/{snapshot-fwbhsxh7.js → agent-m6bmbwqv.js} +5 -5
  178. package/dist/chunks/{snapshot-phjaars8.js → agent-m7kk9p21.js} +6 -6
  179. package/dist/chunks/{snapshot-m9w0rfyh.js → agent-m9w0rfyh.js} +1 -1
  180. package/dist/chunks/{snapshot-yntgc0th.js → agent-mcdprnzp.js} +20 -20
  181. package/dist/chunks/{snapshot-32mp9n9c.js → agent-mrppahe2.js} +10 -10
  182. package/dist/chunks/{snapshot-akp91e4k.js → agent-mt0vs8zh.js} +13 -13
  183. package/dist/chunks/{snapshot-b5816jtq.js → agent-myd95cny.js} +27 -27
  184. package/dist/chunks/{snapshot-a3r4dcrj.js → agent-nng2ktcm.js} +2 -2
  185. package/dist/chunks/{snapshot-zt79f2av.js → agent-nra498c8.js} +9 -9
  186. package/dist/chunks/{snapshot-7rch35r1.js → agent-nw09vkbm.js} +15 -15
  187. package/dist/chunks/{snapshot-eygb68nf.js → agent-nwtjcqxk.js} +26 -26
  188. package/dist/chunks/{snapshot-awgbw8fq.js → agent-nyjfx1kv.js} +33 -33
  189. package/dist/chunks/{snapshot-69vedpkd.js → agent-p305d6wj.js} +6 -6
  190. package/dist/chunks/{snapshot-bpwjc9wy.js → agent-p3ybbpt6.js} +22 -22
  191. package/dist/chunks/{snapshot-vrvxb7z7.js → agent-p5ggvhgx.js} +15 -15
  192. package/dist/chunks/{snapshot-9mdncq0s.js → agent-p9np192k.js} +20 -20
  193. package/dist/chunks/{snapshot-jbj8jg2f.js → agent-pdgxng95.js} +11 -11
  194. package/dist/chunks/{snapshot-awftjxgk.js → agent-peqae9mq.js} +32 -32
  195. package/dist/chunks/{snapshot-mft8z28a.js → agent-php3kmht.js} +10 -10
  196. package/dist/chunks/{snapshot-pjvnvgmy.js → agent-pjvnvgmy.js} +1 -1
  197. package/dist/chunks/{snapshot-pknna89w.js → agent-pknna89w.js} +1 -1
  198. package/dist/chunks/{snapshot-3wbd4v1a.js → agent-ptm3ksjy.js} +10 -10
  199. package/dist/chunks/agent-q1g6wvts.js +26 -0
  200. package/dist/chunks/{snapshot-2nymxq0b.js → agent-q6fsf166.js} +3 -3
  201. package/dist/chunks/{snapshot-3xm7255b.js → agent-qdytxkjy.js} +10 -10
  202. package/dist/chunks/{snapshot-8vdf1faw.js → agent-qhxszv6x.js} +22 -22
  203. package/dist/chunks/{snapshot-qs001aqx.js → agent-qs001aqx.js} +3 -3
  204. package/dist/chunks/{snapshot-qsdy395h.js → agent-qsdy395h.js} +1 -1
  205. package/dist/chunks/{snapshot-s13g4vm4.js → agent-qx5ggp8a.js} +13 -13
  206. package/dist/chunks/{snapshot-hn75ne8v.js → agent-r3cnrxb5.js} +12 -12
  207. package/dist/chunks/{snapshot-r98e92ep.js → agent-r98e92ep.js} +1 -1
  208. package/dist/chunks/{snapshot-r9mregkx.js → agent-r9mregkx.js} +2 -2
  209. package/dist/chunks/{snapshot-19vf66h0.js → agent-ratrq7cm.js} +4 -4
  210. package/dist/chunks/{snapshot-r86vms50.js → agent-rbde3ccx.js} +17 -17
  211. package/dist/chunks/{snapshot-rdw6cm16.js → agent-rdw6cm16.js} +1 -1
  212. package/dist/chunks/{snapshot-rhjbct0v.js → agent-rhjbct0v.js} +1 -1
  213. package/dist/chunks/{snapshot-10x1vztd.js → agent-rjwtag83.js} +29 -29
  214. package/dist/chunks/{snapshot-2wr5drz2.js → agent-rrppfmy8.js} +8 -8
  215. package/dist/chunks/{snapshot-grmpjd60.js → agent-rwgfe0g6.js} +15 -15
  216. package/dist/chunks/{snapshot-s4enseaf.js → agent-s4enseaf.js} +2 -2
  217. package/dist/chunks/{snapshot-rf80fxgj.js → agent-sfkj0ta1.js} +5 -5
  218. package/dist/chunks/{snapshot-3qd7w4g0.js → agent-sfmbkf7h.js} +17 -17
  219. package/dist/chunks/{snapshot-9e3vcssh.js → agent-shh6fz4q.js} +4 -4
  220. package/dist/chunks/{snapshot-2fvxk96d.js → agent-skgfk90k.js} +12 -12
  221. package/dist/chunks/{snapshot-h2ez88j0.js → agent-sneaqmmr.js} +180 -180
  222. package/dist/chunks/{snapshot-nwbtwnx3.js → agent-sp2dm421.js} +15 -15
  223. package/dist/chunks/{snapshot-rj4axa9p.js → agent-ss0ra2fh.js} +11 -11
  224. package/dist/chunks/{snapshot-bppjq47q.js → agent-stjrd7tw.js} +11 -11
  225. package/dist/chunks/{snapshot-sa73gjsr.js → agent-svxca290.js} +40 -40
  226. package/dist/chunks/{snapshot-w435n5nj.js → agent-sx4z1qtx.js} +26 -26
  227. package/dist/chunks/{snapshot-hsp1havs.js → agent-sy03x2qd.js} +20 -16
  228. package/dist/chunks/{snapshot-fve3v9r5.js → agent-szs7rbym.js} +17 -17
  229. package/dist/chunks/{snapshot-s4emxj9z.js → agent-t2ry16n6.js} +26 -26
  230. package/dist/chunks/{snapshot-sh4v7n8h.js → agent-t4pjtcfc.js} +26 -26
  231. package/dist/chunks/{snapshot-exh8aam3.js → agent-t88bfbcn.js} +15 -15
  232. package/dist/chunks/{snapshot-tazgh4e4.js → agent-tazgh4e4.js} +1 -1
  233. package/dist/chunks/{snapshot-tcezcvh9.js → agent-tcezcvh9.js} +1 -1
  234. package/dist/chunks/{snapshot-tdstcens.js → agent-tdstcens.js} +1 -1
  235. package/dist/chunks/{snapshot-j1198zr5.js → agent-tejgpbca.js} +11 -11
  236. package/dist/chunks/{snapshot-phbzgask.js → agent-tp4d36kw.js} +20 -20
  237. package/dist/chunks/{snapshot-mxv3m5ng.js → agent-tpa31fv1.js} +33 -33
  238. package/dist/chunks/{snapshot-ts2x07a1.js → agent-ts2x07a1.js} +1 -1
  239. package/dist/chunks/{snapshot-tvtrv512.js → agent-tvtrv512.js} +1 -1
  240. package/dist/chunks/{snapshot-wrhfnc47.js → agent-v1q7vfww.js} +6 -6
  241. package/dist/chunks/{snapshot-1fh5hkmz.js → agent-v27f6r8c.js} +8 -8
  242. package/dist/chunks/{snapshot-kebtznj1.js → agent-v64p1xp3.js} +15 -15
  243. package/dist/chunks/{snapshot-mwyy18e8.js → agent-v8twjhnq.js} +17 -17
  244. package/dist/chunks/{snapshot-veqvce7d.js → agent-veqvce7d.js} +1 -1
  245. package/dist/chunks/{snapshot-hpwzmg5q.js → agent-vvjy80af.js} +11 -11
  246. package/dist/chunks/{snapshot-vzcthcp8.js → agent-vzcthcp8.js} +1 -1
  247. package/dist/chunks/{snapshot-w3wsvvr9.js → agent-w3wsvvr9.js} +1 -1
  248. package/dist/chunks/{snapshot-t5emj2h2.js → agent-w4pwpgz1.js} +30 -30
  249. package/dist/chunks/{snapshot-12t47v60.js → agent-w83wqmpf.js} +10 -10
  250. package/dist/chunks/{snapshot-8e1mf62q.js → agent-wa3er6hh.js} +3 -3
  251. package/dist/chunks/{snapshot-wd87259q.js → agent-wd87259q.js} +1 -1
  252. package/dist/chunks/{snapshot-87dr90gt.js → agent-wgvfjze4.js} +3 -3
  253. package/dist/chunks/{snapshot-t594wqmv.js → agent-wkhxp7hv.js} +3 -3
  254. package/dist/chunks/{snapshot-eqmsh7pr.js → agent-wks96j38.js} +9 -9
  255. package/dist/chunks/{snapshot-gyg781zn.js → agent-wt6b1xzk.js} +91 -91
  256. package/dist/chunks/{snapshot-x1ezjp6w.js → agent-x1ezjp6w.js} +1 -1
  257. package/dist/chunks/{snapshot-4da5jyfn.js → agent-x3k1mctg.js} +20 -20
  258. package/dist/chunks/{snapshot-q1c6gfm2.js → agent-x83kfe59.js} +17 -17
  259. package/dist/chunks/{snapshot-7b52g2gd.js → agent-x9new8zm.js} +27 -27
  260. package/dist/chunks/{snapshot-xdk9p2qn.js → agent-xdk9p2qn.js} +1 -1
  261. package/dist/chunks/{snapshot-1jfn0zqb.js → agent-xm1e10md.js} +12 -12
  262. package/dist/chunks/{snapshot-y1fvbwt7.js → agent-y1fvbwt7.js} +1 -1
  263. package/dist/chunks/{snapshot-y1qqcj8h.js → agent-y1qqcj8h.js} +1 -1
  264. package/dist/chunks/{snapshot-y71avatq.js → agent-y71avatq.js} +1 -1
  265. package/dist/chunks/{snapshot-ne3jdqry.js → agent-y8p3zjbc.js} +4 -4
  266. package/dist/chunks/{snapshot-66dcbfb0.js → agent-yffc2t43.js} +23 -23
  267. package/dist/chunks/{snapshot-f2n192rq.js → agent-yp2x3t23.js} +4 -4
  268. package/dist/chunks/{snapshot-yrhqyw5v.js → agent-yrhqyw5v.js} +1 -1
  269. package/dist/chunks/{snapshot-fkwnxpt2.js → agent-ysrx3xjt.js} +3 -3
  270. package/dist/chunks/{snapshot-y742baad.js → agent-ytqahnww.js} +33 -33
  271. package/dist/chunks/{snapshot-rd783k6y.js → agent-yy1v1k0j.js} +14 -14
  272. package/dist/chunks/{snapshot-z0bkrqjs.js → agent-z0bkrqjs.js} +1 -1
  273. package/dist/chunks/{snapshot-5bvcz4p2.js → agent-z186cwwp.js} +25 -25
  274. package/dist/chunks/{snapshot-3trdb5vg.js → agent-z1dfjsvb.js} +14 -14
  275. package/dist/chunks/{snapshot-fdzrfqx5.js → agent-z5eyztyb.js} +12 -12
  276. package/dist/chunks/{snapshot-edb149hz.js → agent-z7seb3kr.js} +4 -4
  277. package/dist/chunks/{snapshot-zeh9ct20.js → agent-zeh9ct20.js} +2 -2
  278. package/dist/chunks/{snapshot-af89ncq8.js → agent-zfc0sx29.js} +16 -16
  279. package/dist/chunks/{snapshot-zr2ceqn5.js → agent-zr2ceqn5.js} +1 -1
  280. package/dist/chunks/{snapshot-hn57h045.js → agent-zvt5dnpc.js} +4 -4
  281. package/dist/chunks/{snapshot-kmbfnqse.js → agent-zw1yk03s.js} +4 -4
  282. package/dist/chunks/{snapshot-zxq2ej10.js → agent-zxq2ej10.js} +1 -1
  283. package/dist/chunks/{snapshot-w2fs4da3.js → agent-zxtwnacm.js} +11 -11
  284. package/dist/chunks/{snapshot-er24ykwd.js → agent-zyr365re.js} +60 -60
  285. package/dist/codemode/catalog.js +1 -1
  286. package/dist/codemode/instructions.js +11 -11
  287. package/dist/codemode/tool.js +2 -2
  288. package/dist/command.js +80 -80
  289. package/dist/config/discovery.js +81 -81
  290. package/dist/config/markdown.js +1 -1
  291. package/dist/config/normalize.js +105 -105
  292. package/dist/config/plugin/agent.js +122 -122
  293. package/dist/config/plugin/command.js +210 -210
  294. package/dist/config/plugin/compaction.js +158 -158
  295. package/dist/config/plugin/compatibility.js +140 -140
  296. package/dist/config/plugin/entry-observer.js +1 -1
  297. package/dist/config/plugin/formatter.js +123 -123
  298. package/dist/config/plugin/image.js +122 -122
  299. package/dist/config/plugin/instruction.js +89 -89
  300. package/dist/config/plugin/location-watcher.js +122 -122
  301. package/dist/config/plugin/mcp.js +129 -129
  302. package/dist/config/plugin/policy.js +122 -122
  303. package/dist/config/plugin/provider.js +122 -122
  304. package/dist/config/plugin/reference.js +124 -124
  305. package/dist/config/plugin/shell.js +124 -124
  306. package/dist/config/plugin/skill-file.js +101 -101
  307. package/dist/config/plugin/skill.js +143 -143
  308. package/dist/config/plugin/snapshot.js +122 -122
  309. package/dist/config/plugin/source.js +125 -125
  310. package/dist/config/plugin/tool-output.js +124 -124
  311. package/dist/config/plugin/websearch.js +123 -123
  312. package/dist/config/plugin/worktree.js +124 -124
  313. package/dist/config/variable.js +3 -3
  314. package/dist/config/watch.js +1 -1
  315. package/dist/config.js +121 -121
  316. package/dist/credential/sql.js +2 -2
  317. package/dist/credential.js +82 -82
  318. package/dist/database/database.js +65 -65
  319. package/dist/database/drizzle/effect-sqlite/driver.js +12 -12
  320. package/dist/database/drizzle/effect-sqlite/index.js +12 -12
  321. package/dist/database/drizzle/effect-sqlite/session.js +11 -11
  322. package/dist/database/drizzle/index.js +13 -13
  323. package/dist/database/drizzle/internal/drizzle-utils.js +1 -1
  324. package/dist/database/drizzle/sqlite-core/effect/count.js +1 -1
  325. package/dist/database/drizzle/sqlite-core/effect/db.js +9 -9
  326. package/dist/database/drizzle/sqlite-core/effect/delete.js +2 -2
  327. package/dist/database/drizzle/sqlite-core/effect/index.js +10 -10
  328. package/dist/database/drizzle/sqlite-core/effect/insert.js +2 -2
  329. package/dist/database/drizzle/sqlite-core/effect/query.js +1 -1
  330. package/dist/database/drizzle/sqlite-core/effect/raw.js +1 -1
  331. package/dist/database/drizzle/sqlite-core/effect/select.js +2 -2
  332. package/dist/database/drizzle/sqlite-core/effect/session.js +10 -10
  333. package/dist/database/drizzle/sqlite-core/effect/update.js +2 -2
  334. package/dist/database/drizzle.js +14 -14
  335. package/dist/database/migration/20260127222353_familiar_lady_ursula.js +1 -1
  336. package/dist/database/migration/20260211171708_add_project_commands.js +1 -1
  337. package/dist/database/migration/20260213144116_wakeful_the_professor.js +1 -1
  338. package/dist/database/migration/20260225215848_workspace.js +1 -1
  339. package/dist/database/migration/20260227213759_add_session_workspace_id.js +1 -1
  340. package/dist/database/migration/20260228203230_blue_harpoon.js +1 -1
  341. package/dist/database/migration/20260303231226_add_workspace_fields.js +1 -1
  342. package/dist/database/migration/20260309230000_move_org_to_state.js +1 -1
  343. package/dist/database/migration/20260312043431_session_message_cursor.js +1 -1
  344. package/dist/database/migration/20260323234822_events.js +1 -1
  345. package/dist/database/migration/20260410174513_workspace-name.js +1 -1
  346. package/dist/database/migration/20260413175956_chief_energizer.js +1 -1
  347. package/dist/database/migration/20260423070820_add_icon_url_override.js +1 -1
  348. package/dist/database/migration/20260427172553_slow_nightmare.js +1 -1
  349. package/dist/database/migration/20260428004200_add_session_path.js +1 -1
  350. package/dist/database/migration/20260501142318_next_venus.js +1 -1
  351. package/dist/database/migration/20260504145000_add_sync_owner.js +1 -1
  352. package/dist/database/migration/20260507164347_add_workspace_time.js +1 -1
  353. package/dist/database/migration/20260510033149_session_usage.js +1 -1
  354. package/dist/database/migration/20260511000411_data_migration_state.js +1 -1
  355. package/dist/database/migration/20260511173437_session-metadata.js +1 -1
  356. package/dist/database/migration/20260601010001_normalize_storage_paths.js +1 -1
  357. package/dist/database/migration/20260601202201_amazing_prowler.js +1 -1
  358. package/dist/database/migration/20260602002951_lowly_union_jack.js +1 -1
  359. package/dist/database/migration/20260602182828_add_project_directories.js +1 -1
  360. package/dist/database/migration/20260603001617_session_message_projection_indexes.js +1 -1
  361. package/dist/database/migration/20260603040000_session_message_projection_order.js +1 -1
  362. package/dist/database/migration/20260603141458_session_input_inbox.js +1 -1
  363. package/dist/database/migration/20260603160727_jittery_ezekiel_stane.js +1 -1
  364. package/dist/database/migration/20260604172448_event_sourced_session_input.js +1 -1
  365. package/dist/database/migration/20260605003541_add_session_context_snapshot.js +1 -1
  366. package/dist/database/migration/20260605042240_add_context_epoch_agent.js +1 -1
  367. package/dist/database/migration/20260611035744_credential.js +1 -1
  368. package/dist/database/migration/20260611192811_lush_chimera.js +1 -1
  369. package/dist/database/migration/20260612174303_project_dir_strategy.js +1 -1
  370. package/dist/database/migration/20260622142730_simplify_session_context_epoch.js +1 -1
  371. package/dist/database/migration/20260622170816_reset_v2_session_state.js +1 -1
  372. package/dist/database/migration/20260622202450_simplify_session_input.js +1 -1
  373. package/dist/database/migration/20260804233008_loose_psylocke.js +1 -1
  374. package/dist/database/migration/20260805200742_import_legacy_credentials.js +1 -1
  375. package/dist/database/migration/20260808023530_workspace_domain.js +1 -1
  376. package/dist/database/migration/20260811161259_execution_claim_attempts.js +1 -1
  377. package/dist/database/migration/20260812181746_session_inbox.js +1 -1
  378. package/dist/database/migration/20260812213948_worktree.js +1 -1
  379. package/dist/database/migration/20260819222447_session_viewed_state.js +1 -1
  380. package/dist/database/migration/20260823191254_nullable_workspace_binding.js +1 -1
  381. package/dist/database/migration/20260910120000_clear_v1_session_permission.js +1 -1
  382. package/dist/database/migration.gen.js +48 -48
  383. package/dist/database/migration.js +50 -50
  384. package/dist/database/path.js +2 -2
  385. package/dist/database/schema.gen.js +1 -1
  386. package/dist/database/schema.sql.js +1 -1
  387. package/dist/database/sqlite.bun.js +1 -1
  388. package/dist/database/sqlite.js +1 -1
  389. package/dist/database/sqlite.node.js +1 -1
  390. package/dist/database/sqlite.workerd.js +1 -1
  391. package/dist/database/v1-migration.bun.js +75 -75
  392. package/dist/database/v1-migration.js +1 -1
  393. package/dist/effect/app-node-builder.js +364 -364
  394. package/dist/effect/app-node-platform.js +2 -2
  395. package/dist/effect/keyed-mutex.js +1 -1
  396. package/dist/effect/websocket-constructor.js +1 -1
  397. package/dist/environment/driver.js +1 -1
  398. package/dist/environment/environment.js +92 -92
  399. package/dist/environment/exec-defaults.js +2 -2
  400. package/dist/environment/files.js +1 -1
  401. package/dist/environment/index.js +94 -94
  402. package/dist/environment/local.js +2 -2
  403. package/dist/environment/memory.js +2 -2
  404. package/dist/environment/unavailable.js +1 -1
  405. package/dist/event/sql.js +1 -1
  406. package/dist/event-logger.js +73 -73
  407. package/dist/file-access.js +99 -99
  408. package/dist/file-mutation.js +93 -93
  409. package/dist/file-retention.js +1 -1
  410. package/dist/file.js +1 -1
  411. package/dist/filesystem/fff.bun.js +2 -2
  412. package/dist/filesystem/fff.js +1 -1
  413. package/dist/filesystem/fff.node.js +2 -2
  414. package/dist/filesystem/fff.workerd.js +2 -2
  415. package/dist/filesystem/ignore.js +1 -1
  416. package/dist/filesystem/location-watcher-policy.js +6 -6
  417. package/dist/filesystem/location-watcher.js +223 -223
  418. package/dist/filesystem/protected.js +1 -1
  419. package/dist/filesystem/search.js +96 -96
  420. package/dist/filesystem/watcher-binding.js +1 -1
  421. package/dist/filesystem/watcher.js +7 -7
  422. package/dist/filesystem.js +101 -101
  423. package/dist/form.js +81 -81
  424. package/dist/formatter/builtins.js +4 -4
  425. package/dist/formatter.js +86 -86
  426. package/dist/generate.js +102 -102
  427. package/dist/git.js +10 -10
  428. package/dist/github-copilot/chat/convert-to-openai-compatible-chat-messages.js +1 -1
  429. package/dist/github-copilot/chat/get-response-metadata.js +1 -1
  430. package/dist/github-copilot/chat/map-openai-compatible-finish-reason.js +1 -1
  431. package/dist/github-copilot/chat/openai-compatible-chat-language-model.js +7 -7
  432. package/dist/github-copilot/chat/openai-compatible-chat-options.js +1 -1
  433. package/dist/github-copilot/chat/openai-compatible-prepare-tools.js +1 -1
  434. package/dist/github-copilot/copilot-provider.js +17 -17
  435. package/dist/github-copilot/models.js +90 -90
  436. package/dist/github-copilot/openai-compatible-error.js +1 -1
  437. package/dist/github-copilot/responses/convert-to-openai-responses-input.js +1 -1
  438. package/dist/github-copilot/responses/map-openai-responses-finish-reason.js +1 -1
  439. package/dist/github-copilot/responses/openai-error.js +1 -1
  440. package/dist/github-copilot/responses/openai-responses-language-model.js +10 -10
  441. package/dist/github-copilot/responses/openai-responses-prepare-tools.js +6 -6
  442. package/dist/github-copilot/responses/tool/code-interpreter.js +1 -1
  443. package/dist/github-copilot/responses/tool/file-search.js +1 -1
  444. package/dist/github-copilot/responses/tool/image-generation.js +1 -1
  445. package/dist/github-copilot/responses/tool/web-search-preview.js +1 -1
  446. package/dist/github-copilot/responses/tool/web-search.js +1 -1
  447. package/dist/id/id.js +1 -1
  448. package/dist/image/photon.js +2 -2
  449. package/dist/image.js +6 -6
  450. package/dist/instance/service.js +5 -5
  451. package/dist/instance.js +355 -355
  452. package/dist/instruction-discovery.js +84 -84
  453. package/dist/instructions/builtins.js +86 -86
  454. package/dist/instructions/index.js +1 -1
  455. package/dist/integration/connection.js +3 -3
  456. package/dist/integration.js +87 -87
  457. package/dist/job.js +78 -78
  458. package/dist/kv/sql.js +2 -2
  459. package/dist/kv.js +72 -72
  460. package/dist/location-activity.js +134 -134
  461. package/dist/location-mutation.js +99 -99
  462. package/dist/location-service-map.js +85 -85
  463. package/dist/location-services.js +352 -352
  464. package/dist/location.js +88 -88
  465. package/dist/mcp/client.js +90 -90
  466. package/dist/mcp/index.js +107 -107
  467. package/dist/mcp/instructions.js +124 -124
  468. package/dist/mcp/oauth.js +77 -77
  469. package/dist/mcp/stdio.js +89 -89
  470. package/dist/mime.js +1 -1
  471. package/dist/modal/models.js +90 -90
  472. package/dist/model-resolver.js +97 -97
  473. package/dist/model.js +99 -99
  474. package/dist/models-dev.js +100 -100
  475. package/dist/oauth/page.js +1 -1
  476. package/dist/permission/saved.js +79 -79
  477. package/dist/permission/sql.js +5 -5
  478. package/dist/permission.js +106 -106
  479. package/dist/persistent-pty/binary.bun.js +1 -1
  480. package/dist/persistent-pty/daemon.js +1 -1
  481. package/dist/persistent-pty/index.js +85 -85
  482. package/dist/persistent-pty/pty-binding.js +1 -1
  483. package/dist/persistent-pty.js +74 -74
  484. package/dist/plugin/agent.js +101 -101
  485. package/dist/plugin/command.js +98 -98
  486. package/dist/plugin/hooks.js +5 -5
  487. package/dist/plugin/host.js +216 -216
  488. package/dist/plugin/identity.js +3 -3
  489. package/dist/plugin/instance.js +3 -3
  490. package/dist/plugin/internal.js +327 -327
  491. package/dist/plugin/mcp-codemode-exclusion.js +3 -3
  492. package/dist/plugin/models-dev.js +95 -95
  493. package/dist/plugin/module.js +7 -7
  494. package/dist/plugin/optimize.js +4 -4
  495. package/dist/plugin/plan.js +101 -101
  496. package/dist/plugin/promise.js +1 -1
  497. package/dist/plugin/provider/amazon-bedrock.js +89 -89
  498. package/dist/plugin/provider/azure.js +121 -121
  499. package/dist/plugin/provider/cerebras.js +1 -1
  500. package/dist/plugin/provider/cloudflare-ai-gateway.js +120 -120
  501. package/dist/plugin/provider/cloudflare-workers-ai.js +120 -120
  502. package/dist/plugin/provider/cohere.js +2 -2
  503. package/dist/plugin/provider/configured.js +118 -118
  504. package/dist/plugin/provider/digitalocean.js +92 -92
  505. package/dist/plugin/provider/dynamic.js +2 -2
  506. package/dist/plugin/provider/factory.js +1 -1
  507. package/dist/plugin/provider/gateway.js +2 -2
  508. package/dist/plugin/provider/github-copilot.js +92 -92
  509. package/dist/plugin/provider/gitlab.js +90 -90
  510. package/dist/plugin/provider/google-vertex.js +89 -89
  511. package/dist/plugin/provider/kilo.js +1 -1
  512. package/dist/plugin/provider/llmgateway.js +76 -76
  513. package/dist/plugin/provider/lmstudio.js +121 -121
  514. package/dist/plugin/provider/modal.js +91 -91
  515. package/dist/plugin/provider/nvidia.js +1 -1
  516. package/dist/plugin/provider/ollama.js +121 -121
  517. package/dist/plugin/provider/openai.js +93 -93
  518. package/dist/plugin/provider/opencode.js +92 -92
  519. package/dist/plugin/provider/openrouter.js +90 -90
  520. package/dist/plugin/provider/perplexity.js +2 -2
  521. package/dist/plugin/provider/poe.js +77 -77
  522. package/dist/plugin/provider/prompt-cache-key.js +89 -89
  523. package/dist/plugin/provider/sap-ai-core.js +90 -90
  524. package/dist/plugin/provider/sdk-factory.js +1 -1
  525. package/dist/plugin/provider/snowflake-cortex.js +121 -121
  526. package/dist/plugin/provider/venice.js +2 -2
  527. package/dist/plugin/provider/vercel.js +89 -89
  528. package/dist/plugin/provider/vllm.js +119 -119
  529. package/dist/plugin/provider/xai.js +90 -90
  530. package/dist/plugin/provider/zenmux.js +1 -1
  531. package/dist/plugin/provider.js +158 -158
  532. package/dist/plugin/sdk.js +75 -75
  533. package/dist/plugin/service.js +3 -3
  534. package/dist/plugin/skill.js +138 -138
  535. package/dist/plugin/source-directory.js +1 -1
  536. package/dist/plugin/supervisor.js +346 -346
  537. package/dist/plugin/update.js +4 -4
  538. package/dist/plugin/vcs/git.js +85 -85
  539. package/dist/plugin/vcs/hg.js +85 -85
  540. package/dist/plugin/warming.js +120 -120
  541. package/dist/plugin/websearch/exa.js +7 -7
  542. package/dist/plugin/websearch/firecrawl.js +8 -8
  543. package/dist/plugin/websearch/index.js +9 -9
  544. package/dist/plugin/websearch/mcp.js +2 -2
  545. package/dist/plugin/websearch/parallel.js +8 -8
  546. package/dist/plugin/websearch/tavily.js +6 -6
  547. package/dist/plugin/websearch/tinyfish.js +8 -8
  548. package/dist/plugin.js +221 -221
  549. package/dist/project/schema.js +8 -8
  550. package/dist/project/sql.js +4 -4
  551. package/dist/project.js +89 -89
  552. package/dist/provider.js +98 -98
  553. package/dist/pty/protocol.js +1 -1
  554. package/dist/pty/schema.js +1 -1
  555. package/dist/pty/ticket.js +1 -1
  556. package/dist/pty.js +93 -93
  557. package/dist/reference/instructions.js +86 -86
  558. package/dist/reference.js +90 -90
  559. package/dist/repository-cache.js +80 -80
  560. package/dist/repository.js +1 -1
  561. package/dist/ripgrep/binary.js +2 -2
  562. package/dist/ripgrep.js +94 -94
  563. package/dist/rpc.js +85 -85
  564. package/dist/schema.js +1 -1
  565. package/dist/session/command.js +73 -73
  566. package/dist/session/compaction.js +132 -132
  567. package/dist/session/context.js +150 -150
  568. package/dist/session/diff.js +87 -87
  569. package/dist/session/environment.js +1 -1
  570. package/dist/session/error.js +5 -5
  571. package/dist/session/event.js +1 -1
  572. package/dist/session/execution/restart.js +222 -222
  573. package/dist/session/execution.js +125 -125
  574. package/dist/session/generate.js +151 -151
  575. package/dist/session/history.js +13 -13
  576. package/dist/session/inbox.js +87 -87
  577. package/dist/session/info.js +3 -3
  578. package/dist/session/instruction-entry.js +78 -78
  579. package/dist/session/instruction-state.js +8 -8
  580. package/dist/session/instructions.js +96 -96
  581. package/dist/session/message-updater.js +4 -4
  582. package/dist/session/message.js +1 -1
  583. package/dist/session/model-request.js +117 -117
  584. package/dist/session/model-transport.js +9 -9
  585. package/dist/session/move.js +129 -129
  586. package/dist/session/projector.js +85 -85
  587. package/dist/session/prompt.js +104 -104
  588. package/dist/session/provider-context.js +1 -1
  589. package/dist/session/revert.js +89 -89
  590. package/dist/session/run-coordinator.js +3 -3
  591. package/dist/session/runner/index.js +3 -3
  592. package/dist/session/runner/llm.js +228 -228
  593. package/dist/session/runner/max-steps.js +1 -1
  594. package/dist/session/runner/model.js +97 -97
  595. package/dist/session/runner/publish-llm-event.js +3 -3
  596. package/dist/session/runner/retry.js +113 -113
  597. package/dist/session/runner/step.js +124 -124
  598. package/dist/session/runner/to-llm-message.js +2 -2
  599. package/dist/session/schema.js +5 -5
  600. package/dist/session/session.js +171 -171
  601. package/dist/session/shell.js +137 -137
  602. package/dist/session/skill.js +102 -102
  603. package/dist/session/sql.js +5 -5
  604. package/dist/session/stats.js +72 -72
  605. package/dist/session/store.js +86 -86
  606. package/dist/session/subagent-completion.js +1 -1
  607. package/dist/session/subagent-job.js +208 -208
  608. package/dist/session/system-prompt.js +3 -3
  609. package/dist/session/title.js +154 -154
  610. package/dist/session/to-session-error.js +110 -110
  611. package/dist/session/transfer.js +218 -218
  612. package/dist/session/usage.js +1 -1
  613. package/dist/session.js +214 -214
  614. package/dist/shell/parse.js +6 -6
  615. package/dist/shell/result.js +1 -1
  616. package/dist/shell/scan.js +1 -1
  617. package/dist/shell/select.js +11 -11
  618. package/dist/shell.js +133 -133
  619. package/dist/skill/discovery.js +4 -4
  620. package/dist/skill/instructions.js +106 -106
  621. package/dist/skill.js +107 -107
  622. package/dist/snapshot.js +88 -88
  623. package/dist/state.js +1 -1
  624. package/dist/tool/html-markdown.js +1 -1
  625. package/dist/tool/http-body.js +1 -1
  626. package/dist/tool/mcp.js +125 -125
  627. package/dist/tool/plugin/edit.js +113 -113
  628. package/dist/tool/plugin/file-diff.js +1 -1
  629. package/dist/tool/plugin/glob.js +123 -123
  630. package/dist/tool/plugin/grep.js +123 -123
  631. package/dist/tool/plugin/opencode.js +3 -3
  632. package/dist/tool/plugin/patch.js +121 -121
  633. package/dist/tool/plugin/question.js +102 -102
  634. package/dist/tool/plugin/read.js +120 -120
  635. package/dist/tool/plugin/shell.js +215 -215
  636. package/dist/tool/plugin/skill.js +112 -112
  637. package/dist/tool/plugin/subagent.js +217 -217
  638. package/dist/tool/plugin/webfetch.js +109 -109
  639. package/dist/tool/plugin/websearch.js +113 -113
  640. package/dist/tool/plugin/write.js +119 -119
  641. package/dist/tool/read-filesystem.js +99 -99
  642. package/dist/tool/runtime.js +1 -1
  643. package/dist/tool-output.js +8 -8
  644. package/dist/tool.js +11 -11
  645. package/dist/types/permission/saved.d.ts +4 -0
  646. package/dist/types/session/history.d.ts +32 -32
  647. package/dist/util/error-summary.js +1 -1
  648. package/dist/util/error.js +1 -1
  649. package/dist/util/git-executable.js +2 -2
  650. package/dist/util/iife.js +1 -1
  651. package/dist/util/lazy.js +1 -1
  652. package/dist/util/slug.js +1 -1
  653. package/dist/util/token.js +1 -1
  654. package/dist/util/which.js +1 -1
  655. package/dist/util/wildcard.js +1 -1
  656. package/dist/v1/config/agent.js +3 -3
  657. package/dist/v1/config/attachment.js +4 -4
  658. package/dist/v1/config/command.js +3 -3
  659. package/dist/v1/config/config.js +14 -14
  660. package/dist/v1/config/error.js +2 -2
  661. package/dist/v1/config/formatter.js +3 -3
  662. package/dist/v1/config/layout.js +1 -1
  663. package/dist/v1/config/lsp.js +3 -3
  664. package/dist/v1/config/mcp.js +4 -4
  665. package/dist/v1/config/migrate.js +91 -91
  666. package/dist/v1/config/permission.js +1 -1
  667. package/dist/v1/config/plugin.js +1 -1
  668. package/dist/v1/config/provider-options.js +1 -1
  669. package/dist/v1/config/provider.js +2 -2
  670. package/dist/v1/config/server.js +2 -2
  671. package/dist/v1/config/skills.js +1 -1
  672. package/dist/v1/permission.js +1 -1
  673. package/dist/variant.js +90 -90
  674. package/dist/vcs/patch.js +1 -1
  675. package/dist/vcs.js +86 -86
  676. package/dist/websearch.js +79 -79
  677. package/dist/wellknown/plugin.js +75 -75
  678. package/dist/wellknown.js +80 -80
  679. package/dist/workspace/driver.js +3 -3
  680. package/dist/workspace/sql.js +1 -1
  681. package/dist/workspace.js +79 -79
  682. package/dist/worktree/directory.js +2 -2
  683. package/dist/worktree/git.js +10 -10
  684. package/dist/worktree/sql.js +5 -5
  685. package/dist/worktree/strategies.js +88 -88
  686. package/dist/worktree.js +95 -95
  687. package/package.json +8 -8
  688. package/dist/chunks/snapshot-5ms05kda.js +0 -247
  689. package/dist/chunks/snapshot-619r8v3y.js +0 -18
  690. package/dist/chunks/snapshot-c4g7evww.js +0 -26
  691. /package/dist/chunks/{snapshot-0mesazry.js → agent-0mesazry.js} +0 -0
  692. /package/dist/chunks/{snapshot-0qkdqm5v.js → agent-0qkdqm5v.js} +0 -0
  693. /package/dist/chunks/{snapshot-0zkw76rk.js → agent-0zkw76rk.js} +0 -0
  694. /package/dist/chunks/{snapshot-17cy0kzp.js → agent-17cy0kzp.js} +0 -0
  695. /package/dist/chunks/{snapshot-1cnp2v09.js → agent-1cnp2v09.js} +0 -0
  696. /package/dist/chunks/{snapshot-1kg9ymc8.js → agent-1kg9ymc8.js} +0 -0
  697. /package/dist/chunks/{snapshot-24dcb14g.js → agent-24dcb14g.js} +0 -0
  698. /package/dist/chunks/{snapshot-2710q6r3.js → agent-2710q6r3.js} +0 -0
  699. /package/dist/chunks/{snapshot-2axfhc9x.js → agent-2axfhc9x.js} +0 -0
  700. /package/dist/chunks/{snapshot-2c3vjs8z.js → agent-2c3vjs8z.js} +0 -0
  701. /package/dist/chunks/{snapshot-359p4xyc.js → agent-359p4xyc.js} +0 -0
  702. /package/dist/chunks/{snapshot-3asan66x.js → agent-3asan66x.js} +0 -0
  703. /package/dist/chunks/{snapshot-3v8g72cx.js → agent-3v8g72cx.js} +0 -0
  704. /package/dist/chunks/{snapshot-3w5fmr99.js → agent-3w5fmr99.js} +0 -0
  705. /package/dist/chunks/{snapshot-3wcehsnq.js → agent-3wcehsnq.js} +0 -0
  706. /package/dist/chunks/{snapshot-43n2bw4t.js → agent-43n2bw4t.js} +0 -0
  707. /package/dist/chunks/{snapshot-4knz6hnm.js → agent-4knz6hnm.js} +0 -0
  708. /package/dist/chunks/{snapshot-4vcrnpx2.js → agent-4vcrnpx2.js} +0 -0
  709. /package/dist/chunks/{snapshot-4y7fprxs.js → agent-4y7fprxs.js} +0 -0
  710. /package/dist/chunks/{snapshot-53557ph1.js → agent-53557ph1.js} +0 -0
  711. /package/dist/chunks/{snapshot-550bvhaj.js → agent-550bvhaj.js} +0 -0
  712. /package/dist/chunks/{snapshot-6prwharc.js → agent-6prwharc.js} +0 -0
  713. /package/dist/chunks/{snapshot-7akdwqpd.js → agent-7akdwqpd.js} +0 -0
  714. /package/dist/chunks/{snapshot-7m9af43g.js → agent-7m9af43g.js} +0 -0
  715. /package/dist/chunks/{snapshot-822emrt2.js → agent-822emrt2.js} +0 -0
  716. /package/dist/chunks/{snapshot-88xbtdfr.js → agent-88xbtdfr.js} +0 -0
  717. /package/dist/chunks/{snapshot-8n3pysct.js → agent-8n3pysct.js} +0 -0
  718. /package/dist/chunks/{snapshot-922hggd3.js → agent-922hggd3.js} +0 -0
  719. /package/dist/chunks/{snapshot-9a4afbnw.js → agent-9a4afbnw.js} +0 -0
  720. /package/dist/chunks/{snapshot-9rqn6x4v.js → agent-9rqn6x4v.js} +0 -0
  721. /package/dist/chunks/{snapshot-a6k6eb26.js → agent-a6k6eb26.js} +0 -0
  722. /package/dist/chunks/{snapshot-af5trqkr.js → agent-af5trqkr.js} +0 -0
  723. /package/dist/chunks/{snapshot-afrmfg78.js → agent-afrmfg78.js} +0 -0
  724. /package/dist/chunks/{snapshot-aqzs7mqg.js → agent-aqzs7mqg.js} +0 -0
  725. /package/dist/chunks/{snapshot-atq7p7m5.js → agent-atq7p7m5.js} +0 -0
  726. /package/dist/chunks/{snapshot-bkyjaxrp.js → agent-bkyjaxrp.js} +0 -0
  727. /package/dist/chunks/{snapshot-bmr6ed5q.js → agent-bmr6ed5q.js} +0 -0
  728. /package/dist/chunks/{snapshot-cf4snx6d.js → agent-cf4snx6d.js} +0 -0
  729. /package/dist/chunks/{snapshot-cvy3z8tj.js → agent-cvy3z8tj.js} +0 -0
  730. /package/dist/chunks/{snapshot-d9fn303g.js → agent-d9fn303g.js} +0 -0
  731. /package/dist/chunks/{snapshot-d9jj8t3e.js → agent-d9jj8t3e.js} +0 -0
  732. /package/dist/chunks/{snapshot-dajrwvna.js → agent-dajrwvna.js} +0 -0
  733. /package/dist/chunks/{snapshot-dap0rakb.js → agent-dap0rakb.js} +0 -0
  734. /package/dist/chunks/{snapshot-df08tz66.js → agent-df08tz66.js} +0 -0
  735. /package/dist/chunks/{snapshot-dy18nga0.js → agent-dy18nga0.js} +0 -0
  736. /package/dist/chunks/{snapshot-e3qxr5gk.js → agent-e3qxr5gk.js} +0 -0
  737. /package/dist/chunks/{snapshot-e5kj55wp.js → agent-e5kj55wp.js} +0 -0
  738. /package/dist/chunks/{snapshot-e73j6tqm.js → agent-e73j6tqm.js} +0 -0
  739. /package/dist/chunks/{snapshot-ec1grn59.js → agent-ec1grn59.js} +0 -0
  740. /package/dist/chunks/{snapshot-eh3zwz77.js → agent-eh3zwz77.js} +0 -0
  741. /package/dist/chunks/{snapshot-emrn6kk6.js → agent-emrn6kk6.js} +0 -0
  742. /package/dist/chunks/{snapshot-f0mxakyp.js → agent-f0mxakyp.js} +0 -0
  743. /package/dist/chunks/{snapshot-f6n9ztr4.js → agent-f6n9ztr4.js} +0 -0
  744. /package/dist/chunks/{snapshot-faypxj3z.js → agent-faypxj3z.js} +0 -0
  745. /package/dist/chunks/{snapshot-fd410y7t.js → agent-fd410y7t.js} +0 -0
  746. /package/dist/chunks/{snapshot-fxgpk5d8.js → agent-fxgpk5d8.js} +0 -0
  747. /package/dist/chunks/{snapshot-g4wezp1m.js → agent-g4wezp1m.js} +0 -0
  748. /package/dist/chunks/{snapshot-g86h250q.js → agent-g86h250q.js} +0 -0
  749. /package/dist/chunks/{snapshot-gebd4c9n.js → agent-gebd4c9n.js} +0 -0
  750. /package/dist/chunks/{snapshot-gftt206x.js → agent-gftt206x.js} +0 -0
  751. /package/dist/chunks/{snapshot-hjbc5kem.js → agent-hjbc5kem.js} +0 -0
  752. /package/dist/chunks/{snapshot-hk9envan.js → agent-hk9envan.js} +0 -0
  753. /package/dist/chunks/{snapshot-j2ntwpah.js → agent-j2ntwpah.js} +0 -0
  754. /package/dist/chunks/{snapshot-j5zkgpj8.js → agent-j5zkgpj8.js} +0 -0
  755. /package/dist/chunks/{snapshot-jjkms2e6.js → agent-jjkms2e6.js} +0 -0
  756. /package/dist/chunks/{snapshot-jr7sbwjy.js → agent-jr7sbwjy.js} +0 -0
  757. /package/dist/chunks/{snapshot-jwfs4k6c.js → agent-jwfs4k6c.js} +0 -0
  758. /package/dist/chunks/{snapshot-jzg6c2d5.js → agent-jzg6c2d5.js} +0 -0
  759. /package/dist/chunks/{snapshot-mp448xyj.js → agent-mp448xyj.js} +0 -0
  760. /package/dist/chunks/{snapshot-msx8hqn2.js → agent-msx8hqn2.js} +0 -0
  761. /package/dist/chunks/{snapshot-n05xt0ee.js → agent-n05xt0ee.js} +0 -0
  762. /package/dist/chunks/{snapshot-n3j8tn72.js → agent-n3j8tn72.js} +0 -0
  763. /package/dist/chunks/{snapshot-njntx4h6.js → agent-njntx4h6.js} +0 -0
  764. /package/dist/chunks/{snapshot-q3sfg36h.js → agent-q3sfg36h.js} +0 -0
  765. /package/dist/chunks/{snapshot-q74kybfr.js → agent-q74kybfr.js} +0 -0
  766. /package/dist/chunks/{snapshot-qaymkmh1.js → agent-qaymkmh1.js} +0 -0
  767. /package/dist/chunks/{snapshot-qb87gjwd.js → agent-qb87gjwd.js} +0 -0
  768. /package/dist/chunks/{snapshot-qfa1cgps.js → agent-qfa1cgps.js} +0 -0
  769. /package/dist/chunks/{snapshot-qg3g05ea.js → agent-qg3g05ea.js} +0 -0
  770. /package/dist/chunks/{snapshot-qrg20bc0.js → agent-qrg20bc0.js} +0 -0
  771. /package/dist/chunks/{snapshot-rcb2kzg1.js → agent-rcb2kzg1.js} +0 -0
  772. /package/dist/chunks/{snapshot-sdp7kfr6.js → agent-sdp7kfr6.js} +0 -0
  773. /package/dist/chunks/{snapshot-sk3qaz4a.js → agent-sk3qaz4a.js} +0 -0
  774. /package/dist/chunks/{snapshot-ssg3fenm.js → agent-ssg3fenm.js} +0 -0
  775. /package/dist/chunks/{snapshot-twg0f83k.js → agent-twg0f83k.js} +0 -0
  776. /package/dist/chunks/{snapshot-w803qqfp.js → agent-w803qqfp.js} +0 -0
  777. /package/dist/chunks/{snapshot-wc3fc9cn.js → agent-wc3fc9cn.js} +0 -0
  778. /package/dist/chunks/{snapshot-wer8tq1h.js → agent-wer8tq1h.js} +0 -0
  779. /package/dist/chunks/{snapshot-wtztk69x.js → agent-wtztk69x.js} +0 -0
  780. /package/dist/chunks/{snapshot-x0ckcb58.js → agent-x0ckcb58.js} +0 -0
  781. /package/dist/chunks/{snapshot-x61499pn.js → agent-x61499pn.js} +0 -0
  782. /package/dist/chunks/{snapshot-y44na4kk.js → agent-y44na4kk.js} +0 -0
  783. /package/dist/chunks/{snapshot-y8cydn3q.js → agent-y8cydn3q.js} +0 -0
  784. /package/dist/chunks/{snapshot-y8f7s663.js → agent-y8f7s663.js} +0 -0
  785. /package/dist/chunks/{snapshot-ygaqb7jw.js → agent-ygaqb7jw.js} +0 -0
  786. /package/dist/chunks/{snapshot-ym463w8f.js → agent-ym463w8f.js} +0 -0
  787. /package/dist/chunks/{snapshot-z9919s4g.js → agent-z9919s4g.js} +0 -0
@@ -1,47 +1,47 @@
1
1
  import {
2
- ID8,
3
- Service53
4
- } from "./snapshot-hvq2e6yw.js";
2
+ ID9,
3
+ Service60
4
+ } from "./agent-ffh4trqp.js";
5
5
  import {
6
6
  latest2,
7
- Service65
8
- } from "./snapshot-mrfv1e3e.js";
7
+ Service64
8
+ } from "./agent-6bnv2jj5.js";
9
9
  import {
10
10
  SessionSchema2
11
- } from "./snapshot-jexxy024.js";
11
+ } from "./agent-7w99qc9d.js";
12
12
  import {
13
- Service46
14
- } from "./snapshot-3qd7w4g0.js";
13
+ Service48
14
+ } from "./agent-sfmbkf7h.js";
15
15
  import {
16
16
  evaluate2,
17
- Service50
18
- } from "./snapshot-rz3xxe6k.js";
17
+ Service52
18
+ } from "./agent-4bck9qtc.js";
19
19
  import {
20
- Service24
21
- } from "./snapshot-gyg781zn.js";
20
+ Service27
21
+ } from "./agent-wt6b1xzk.js";
22
22
  import {
23
23
  NO_TEXT2
24
- } from "./snapshot-x1ezjp6w.js";
24
+ } from "./agent-x1ezjp6w.js";
25
25
  import {
26
- make9
27
- } from "./snapshot-0h83wq1x.js";
26
+ make10
27
+ } from "./agent-b6mhz6tz.js";
28
28
  import {
29
29
  __export
30
- } from "./snapshot-9rqn6x4v.js";
30
+ } from "./agent-9rqn6x4v.js";
31
31
 
32
32
  // src/tool/plugin/subagent.ts
33
33
  var exports_subagent = {};
34
34
  __export(exports_subagent, {
35
- Input: () => Input11,
36
- Output: () => Output7,
37
- Plugin: () => Plugin26,
35
+ Input: () => Input2,
36
+ Output: () => Output2,
37
+ Plugin: () => Plugin35,
38
38
  SubagentTool: () => exports_subagent,
39
- description: () => description5,
40
- name: () => name11
39
+ description: () => description2,
40
+ name: () => name2
41
41
  });
42
42
  import { ToolFailure } from "@opencode/ai";
43
43
  import { Effect, Schema } from "effect";
44
- var name11 = "subagent";
44
+ var name2 = "subagent";
45
45
  var backgroundResult = (sessionID) => ({
46
46
  sessionID,
47
47
  status: "running",
@@ -52,7 +52,7 @@ var backgroundResult = (sessionID) => ({
52
52
  ].join(`
53
53
  `)
54
54
  });
55
- var Input11 = Schema.Struct({
55
+ var Input2 = Schema.Struct({
56
56
  agent: Schema.String.annotate({ description: "The type of specialized agent to use for this task" }),
57
57
  description: Schema.String.annotate({ description: "A short 3-5 word label for the task, displayed to the user" }),
58
58
  prompt: Schema.String.annotate({ description: "The task for the subagent to perform" }),
@@ -63,12 +63,12 @@ var Input11 = Schema.Struct({
63
63
  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."
64
64
  })
65
65
  });
66
- var Output7 = Schema.Struct({
66
+ var Output2 = Schema.Struct({
67
67
  sessionID: SessionSchema2.ID,
68
68
  status: Schema.Literals(["completed", "running"]),
69
69
  output: Schema.String
70
70
  });
71
- var description5 = [
71
+ var description2 = [
72
72
  "Spawns an agent in a child session to work on the specified task.",
73
73
  "The output includes a sessionID you can pass back later to continue that specific conversation with the subagent.",
74
74
  "New child sessions start with fresh context, so include all relevant context and instructions when you don't pass a sessionID.",
@@ -77,21 +77,21 @@ var description5 = [
77
77
  "Use background only for independent work that can run while you continue elsewhere."
78
78
  ].join(`
79
79
  `);
80
- var Plugin26 = {
80
+ var Plugin35 = {
81
81
  id: "opencode.tool.subagent",
82
82
  effect: Effect.fn("SubagentTool.Plugin")(function* (ctx) {
83
- const sessions = yield* Service24;
84
- const jobs = yield* Service46;
85
- const agents = yield* Service53;
86
- const config = yield* Service65;
87
- const permission = yield* Service50;
88
- const subagents = yield* make9;
83
+ const sessions = yield* Service27;
84
+ const jobs = yield* Service48;
85
+ const agents = yield* Service60;
86
+ const config = yield* Service64;
87
+ const permission = yield* Service52;
88
+ const subagents = yield* make10;
89
89
  yield* ctx.tool.transform((editor) => editor.add({
90
- name: name11,
90
+ name: name2,
91
91
  options: { codemode: false },
92
- description: description5,
93
- input: Input11,
94
- output: Output7,
92
+ description: description2,
93
+ input: Input2,
94
+ output: Output2,
95
95
  execute: (input, context) => Effect.gen(function* () {
96
96
  const parent = yield* sessions.get(context.sessionID).pipe(Effect.mapError((error) => new ToolFailure({ message: `Parent session not found: ${context.sessionID}`, error })));
97
97
  let current = parent;
@@ -111,7 +111,7 @@ var Plugin26 = {
111
111
  if (agent.mode === "primary")
112
112
  return yield* new ToolFailure({ message: `Agent ${input.agent} cannot run as a subagent` });
113
113
  yield* permission.assert({
114
- action: name11,
114
+ action: name2,
115
115
  resources: [agent.id],
116
116
  save: [agent.id],
117
117
  sessionID: context.sessionID,
@@ -134,7 +134,7 @@ var Plugin26 = {
134
134
  const child = existing ?? (yield* sessions.create({
135
135
  parentID: context.sessionID,
136
136
  title: input.description,
137
- agent: ID8.make(input.agent),
137
+ agent: ID9.make(input.agent),
138
138
  model
139
139
  }).pipe(Effect.mapError((error) => new ToolFailure({ message: `Parent session not found: ${context.sessionID}`, error }))));
140
140
  const background = input.background === true;
@@ -184,13 +184,13 @@ ${output.output}
184
184
  })))
185
185
  })).pipe(Effect.orDie);
186
186
  const hook = (event) => Effect.gen(function* () {
187
- const tool = event.tools[name11];
187
+ const tool = event.tools[name2];
188
188
  if (!tool)
189
189
  return;
190
190
  const selected = yield* agents.resolve(event.agent);
191
191
  if (!selected)
192
192
  return;
193
- const available = (yield* agents.list()).filter((agent) => agent.mode !== "primary" && !agent.hidden && evaluate2(name11, agent.id, selected.permissions).effect !== "deny").toSorted((a, b) => a.id.localeCompare(b.id));
193
+ const available = (yield* agents.list()).filter((agent) => agent.mode !== "primary" && !agent.hidden && evaluate2(name2, agent.id, selected.permissions).effect !== "deny").toSorted((a, b) => a.id.localeCompare(b.id));
194
194
  if (available.length === 0)
195
195
  return;
196
196
  tool.description = [
@@ -207,4 +207,4 @@ ${output.output}
207
207
  })
208
208
  };
209
209
 
210
- export { name11, Input11, Output7, description5, Plugin26, exports_subagent };
210
+ export { name2, Input2, Output2, description2, Plugin35, exports_subagent };
@@ -1,10 +1,10 @@
1
1
  import {
2
- Service81
3
- } from "./snapshot-fdzrfqx5.js";
2
+ Service80
3
+ } from "./agent-z5eyztyb.js";
4
4
  import {
5
- Service17,
6
- Event3
7
- } from "./snapshot-awftjxgk.js";
5
+ Service18,
6
+ Event4
7
+ } from "./agent-peqae9mq.js";
8
8
 
9
9
  // src/plugin/models-dev.ts
10
10
  import { define } from "@opencode/plugin/effect/plugin";
@@ -29,8 +29,8 @@ var BEDROCK_PROFILE_ONLY_IDS = [
29
29
  var ModelsDevPlugin2 = define({
30
30
  id: "opencode.models.dev",
31
31
  effect: Effect.fn(function* (ctx) {
32
- const modelsDev = yield* Service17;
33
- const bus = yield* Service81;
32
+ const modelsDev = yield* Service18;
33
+ const bus = yield* Service80;
34
34
  const loaded = { data: snapshots(yield* modelsDev.get()) };
35
35
  yield* ctx.integration.transform((integrations) => {
36
36
  for (const provider of loaded.data) {
@@ -59,7 +59,7 @@ var ModelsDevPlugin2 = define({
59
59
  });
60
60
  }
61
61
  });
62
- yield* bus.subscribe(Event3.Refreshed).pipe(Stream.runForEach(() => modelsDev.get().pipe(Effect.tap((data) => Effect.sync(() => loaded.data = snapshots(data))), Effect.andThen(ctx.integration.reload()), Effect.andThen(ctx.provider.reload()))), Effect.forkScoped({ startImmediately: true }));
62
+ yield* bus.subscribe(Event4.Refreshed).pipe(Stream.runForEach(() => modelsDev.get().pipe(Effect.tap((data) => Effect.sync(() => loaded.data = snapshots(data))), Effect.andThen(ctx.integration.reload()), Effect.andThen(ctx.provider.reload()))), Effect.forkScoped({ startImmediately: true }));
63
63
  })
64
64
  });
65
65
  function environmentNames(provider) {
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  AbsolutePath2
3
- } from "./snapshot-922hggd3.js";
3
+ } from "./agent-922hggd3.js";
4
4
  import {
5
5
  __export
6
- } from "./snapshot-9rqn6x4v.js";
6
+ } from "./agent-9rqn6x4v.js";
7
7
 
8
8
  // src/worktree/directory.ts
9
9
  var exports_directory = {};
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  SessionEvent2
3
- } from "./snapshot-ec1grn59.js";
3
+ } from "./agent-ec1grn59.js";
4
4
  import {
5
5
  tokens2
6
- } from "./snapshot-tdstcens.js";
6
+ } from "./agent-tdstcens.js";
7
7
 
8
8
  // src/session/runner/publish-llm-event.ts
9
9
  import { Effect, Fiber, Iterable } from "effect";
@@ -1,18 +1,18 @@
1
1
  import {
2
2
  AbsolutePath2
3
- } from "./snapshot-922hggd3.js";
3
+ } from "./agent-922hggd3.js";
4
4
  import {
5
- Service75
6
- } from "./snapshot-fve3v9r5.js";
5
+ Service76
6
+ } from "./agent-szs7rbym.js";
7
7
  import {
8
8
  Service15
9
- } from "./snapshot-05qwv096.js";
9
+ } from "./agent-1km3efwx.js";
10
10
  import {
11
- Service12
12
- } from "./snapshot-bpwjc9wy.js";
11
+ Service11
12
+ } from "./agent-p3ybbpt6.js";
13
13
  import {
14
14
  NotFound2
15
- } from "./snapshot-2a5m3afh.js";
15
+ } from "./agent-2a5m3afh.js";
16
16
  import {
17
17
  MEDIA_MIMES2,
18
18
  BinaryFileError2,
@@ -23,20 +23,20 @@ import {
23
23
  FileContent2,
24
24
  TextPage2,
25
25
  ListPage2,
26
- Service6
27
- } from "./snapshot-grmpjd60.js";
26
+ Service12
27
+ } from "./agent-rwgfe0g6.js";
28
28
  import {
29
29
  __export
30
- } from "./snapshot-9rqn6x4v.js";
30
+ } from "./agent-9rqn6x4v.js";
31
31
 
32
32
  // src/tool/plugin/read.ts
33
33
  var exports_read = {};
34
34
  __export(exports_read, {
35
35
  Input: () => Input3,
36
- Plugin: () => Plugin17,
36
+ Plugin: () => Plugin36,
37
37
  ReadTool: () => exports_read,
38
38
  name: () => name3,
39
- toModelContent: () => toModelContent3
39
+ toModelContent: () => toModelContent2
40
40
  });
41
41
  import { basename, dirname, join } from "path";
42
42
  import { ToolFailure } from "@opencode/ai";
@@ -55,14 +55,14 @@ var LocationInput = Schema.Struct({
55
55
  });
56
56
  var Input3 = LocationInput;
57
57
  var Output = Schema.Union([FileContent2, TextPage2, ListPage2]);
58
- var Plugin17 = {
58
+ var Plugin36 = {
59
59
  id: "opencode.tool.read",
60
60
  effect: Effect.fn("ReadTool.Plugin")(function* (ctx) {
61
- const reader = yield* Service6;
61
+ const reader = yield* Service12;
62
62
  const access = yield* Service15;
63
- const sessionInstructions = yield* Service12;
63
+ const sessionInstructions = yield* Service11;
64
64
  const fs = yield* FSUtil.Service;
65
- const location = yield* Service75;
65
+ const location = yield* Service76;
66
66
  yield* ctx.tool.transform((editor) => editor.add({
67
67
  name: name3,
68
68
  options: { codemode: false },
@@ -112,7 +112,7 @@ var Plugin17 = {
112
112
  return { output: result.content, path: result.path };
113
113
  }).pipe(Effect.map((result) => ({
114
114
  output: result.output,
115
- content: toModelContent3(result.path, input.offset, result.output),
115
+ content: toModelContent2(result.path, input.offset, result.output),
116
116
  metadata: { truncated: result.output.type === "file" ? false : result.output.truncated }
117
117
  })), Effect.mapError((error) => {
118
118
  if (error instanceof ToolFailure)
@@ -144,7 +144,7 @@ ${suggestions.join(`
144
144
  });
145
145
  })
146
146
  };
147
- var toModelContent3 = (path, offset, output) => {
147
+ var toModelContent2 = (path, offset, output) => {
148
148
  if (output.type === "file" && output.encoding === "base64")
149
149
  return [
150
150
  { type: "text", text: output.mime === "application/pdf" ? "PDF read successfully" : "Image read successfully" },
@@ -180,4 +180,4 @@ var toModelContent3 = (path, offset, output) => {
180
180
  `);
181
181
  };
182
182
 
183
- export { name3, Input3, Plugin17, toModelContent3, exports_read };
183
+ export { name3, Input3, Plugin36, toModelContent2, exports_read };
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  __export
3
- } from "./snapshot-9rqn6x4v.js";
3
+ } from "./agent-9rqn6x4v.js";
4
4
 
5
5
  // src/util/token.ts
6
6
  var exports_token = {};
@@ -1,29 +1,29 @@
1
1
  import {
2
- Service81,
3
- node85
4
- } from "./snapshot-fdzrfqx5.js";
2
+ Service80,
3
+ node84
4
+ } from "./agent-z5eyztyb.js";
5
5
  import {
6
6
  create3
7
- } from "./snapshot-rdw6cm16.js";
7
+ } from "./agent-rdw6cm16.js";
8
8
  import {
9
9
  evaluate2
10
- } from "./snapshot-rz3xxe6k.js";
10
+ } from "./agent-4bck9qtc.js";
11
11
  import {
12
12
  __export
13
- } from "./snapshot-9rqn6x4v.js";
13
+ } from "./agent-9rqn6x4v.js";
14
14
 
15
15
  // src/skill.ts
16
16
  var exports_skill5 = {};
17
17
  __export(exports_skill5, {
18
18
  DirectorySource: () => DirectorySource2,
19
19
  EmbeddedSource: () => EmbeddedSource2,
20
- Event: () => Event9,
20
+ Event: () => Event10,
21
21
  ID: () => ID5,
22
- Info: () => Info9,
22
+ Info: () => Info10,
23
23
  Name: () => Name2,
24
- Service: () => Service48,
24
+ Service: () => Service49,
25
25
  Skill: () => exports_skill5,
26
- Source: () => Source3,
26
+ Source: () => Source4,
27
27
  UrlSource: () => UrlSource2,
28
28
  available: () => available2,
29
29
  node: () => node51,
@@ -34,12 +34,12 @@ import { makeLocationNode } from "@opencode/util/effect/app-node";
34
34
  import path from "path";
35
35
  import { Context, Effect, Layer } from "effect";
36
36
  import { Skill } from "@opencode/schema/skill";
37
- import { Event as Event9 } from "@opencode/schema/skill";
37
+ import { Event as Event10 } from "@opencode/schema/skill";
38
38
  var DirectorySource2 = Skill.DirectorySource;
39
39
  var UrlSource2 = Skill.UrlSource;
40
40
  var EmbeddedSource2 = Skill.EmbeddedSource;
41
- var Source3 = Skill.Source;
42
- var Info9 = Skill.Info;
41
+ var Source4 = Skill.Source;
42
+ var Info10 = Skill.Info;
43
43
  var ID5 = Skill.ID;
44
44
  var Name2 = Skill.Name;
45
45
  var available2 = (skills, agent) => skills.filter((skill) => evaluate2("skill", skill.id, agent.permissions).effect !== "deny");
@@ -71,10 +71,10 @@ var prepare3 = Effect.fn("Skill.prepare")(function* (fs, skill) {
71
71
  };
72
72
  });
73
73
 
74
- class Service48 extends Context.Service()("@opencode/Skill") {
74
+ class Service49 extends Context.Service()("@opencode/Skill") {
75
75
  }
76
- var layer = Layer.effect(Service48, Effect.gen(function* () {
77
- const bus = yield* Service81;
76
+ var layer = Layer.effect(Service49, Effect.gen(function* () {
77
+ const bus = yield* Service80;
78
78
  const state = create3({
79
79
  name: "skill",
80
80
  initial: () => ({ skills: new Map }),
@@ -97,7 +97,7 @@ var layer = Layer.effect(Service48, Effect.gen(function* () {
97
97
  }),
98
98
  notify: () => bus.publish(Skill.Event.Updated, {}).pipe(Effect.asVoid)
99
99
  });
100
- return Service48.of({
100
+ return Service49.of({
101
101
  transform: state.transform,
102
102
  reload: state.reload,
103
103
  get: Effect.fn("Skill.get")(function* (id) {
@@ -109,9 +109,9 @@ var layer = Layer.effect(Service48, Effect.gen(function* () {
109
109
  });
110
110
  }));
111
111
  var node51 = makeLocationNode({
112
- service: Service48,
112
+ service: Service49,
113
113
  layer,
114
- deps: [node85]
114
+ deps: [node84]
115
115
  });
116
116
 
117
- export { DirectorySource2, UrlSource2, EmbeddedSource2, Source3, Info9, ID5, Name2, available2, toModelOutput3, prepare3, Service48, node51, exports_skill5, Event9 };
117
+ export { DirectorySource2, UrlSource2, EmbeddedSource2, Source4, Info10, ID5, Name2, available2, toModelOutput3, prepare3, Service49, node51, exports_skill5, Event10 };
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  PositiveInt2
3
- } from "./snapshot-922hggd3.js";
3
+ } from "./agent-922hggd3.js";
4
4
  import {
5
5
  __export
6
- } from "./snapshot-9rqn6x4v.js";
6
+ } from "./agent-9rqn6x4v.js";
7
7
 
8
8
  // src/v1/config/provider.ts
9
9
  var exports_provider2 = {};
@@ -1,63 +1,63 @@
1
1
  import {
2
2
  Service82,
3
3
  node86
4
- } from "./snapshot-fkwnxpt2.js";
4
+ } from "./agent-ysrx3xjt.js";
5
5
  import {
6
- Service81,
7
- node85
8
- } from "./snapshot-fdzrfqx5.js";
6
+ Service80,
7
+ node84
8
+ } from "./agent-z5eyztyb.js";
9
9
  import {
10
10
  CredentialTable2
11
- } from "./snapshot-pknna89w.js";
11
+ } from "./agent-pknna89w.js";
12
12
  import {
13
13
  from2
14
- } from "./snapshot-0q0f95c6.js";
14
+ } from "./agent-0q0f95c6.js";
15
15
  import {
16
16
  __export
17
- } from "./snapshot-9rqn6x4v.js";
17
+ } from "./agent-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: () => Event20,
24
- ID: () => ID17,
25
- Info: () => Info33,
23
+ Event: () => Event19,
24
+ ID: () => ID15,
25
+ Info: () => Info30,
26
26
  Key: () => Key4,
27
27
  OAuth: () => OAuth3,
28
- Service: () => Service79,
28
+ Service: () => Service73,
29
29
  Value: () => Value2,
30
- node: () => node83
30
+ node: () => node76
31
31
  });
32
32
  import { asc, desc, eq } from "drizzle-orm";
33
33
  import { Cause, Context, Effect, Layer, Schema } from "effect";
34
34
  import { Credential } from "@opencode/schema/credential";
35
35
  import { Integration } from "@opencode/schema/integration";
36
36
  import { makeGlobalNode } from "@opencode/util/effect/app-node";
37
- var ID17 = Credential.ID;
37
+ var ID15 = Credential.ID;
38
38
  var OAuth3 = Credential.OAuth;
39
39
  var Key4 = Credential.Key;
40
40
  var Value2 = Credential.Value;
41
- var Event20 = Credential.Event;
41
+ var Event19 = Credential.Event;
42
42
 
43
- class Info33 extends Schema.Class("Credential.Info")({
44
- id: ID17,
43
+ class Info30 extends Schema.Class("Credential.Info")({
44
+ id: ID15,
45
45
  integrationID: Integration.ID,
46
46
  label: Schema.String,
47
47
  value: Value2
48
48
  }) {
49
49
  }
50
50
 
51
- class Service79 extends Context.Service()("@opencode/Credential") {
51
+ class Service73 extends Context.Service()("@opencode/Credential") {
52
52
  }
53
- var layer = Layer.effect(Service79, Effect.gen(function* () {
53
+ var layer = Layer.effect(Service73, Effect.gen(function* () {
54
54
  const db = (yield* Service82).db;
55
- const bus = yield* Service81;
55
+ const bus = yield* Service80;
56
56
  const decode = Schema.decodeUnknownSync(Value2);
57
57
  const stored = (row) => {
58
58
  if (!row.integration_id)
59
59
  return;
60
- return new Info33({
60
+ return new Info30({
61
61
  id: row.id,
62
62
  integrationID: row.integration_id,
63
63
  label: row.label,
@@ -68,7 +68,7 @@ var layer = Layer.effect(Service79, Effect.gen(function* () {
68
68
  const credential = stored(row);
69
69
  return credential ? [credential] : [];
70
70
  });
71
- return Service79.of({
71
+ return Service73.of({
72
72
  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))),
73
73
  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))),
74
74
  get: Effect.fn("Credential.get")(function* (id) {
@@ -76,8 +76,8 @@ var layer = Layer.effect(Service79, Effect.gen(function* () {
76
76
  return row ? stored(row) : undefined;
77
77
  }),
78
78
  create: Effect.fn("Credential.create")(function* (input) {
79
- const credential = new Info33({
80
- id: ID17.create(),
79
+ const credential = new Info30({
80
+ id: ID15.create(),
81
81
  integrationID: input.integrationID,
82
82
  label: input.label ?? "default",
83
83
  value: input.value
@@ -101,8 +101,8 @@ var layer = Layer.effect(Service79, Effect.gen(function* () {
101
101
  integrationID: credential.integrationID,
102
102
  type: credential.value.type
103
103
  });
104
- yield* bus.publish(Event20.Updated, {}, { global: true });
105
- yield* bus.publish(Event20.Switched, { integrationID: credential.integrationID, credentialID: credential.id }, { global: true });
104
+ yield* bus.publish(Event19.Updated, {}, { global: true });
105
+ yield* bus.publish(Event19.Switched, { integrationID: credential.integrationID, credentialID: credential.id }, { global: true });
106
106
  return credential;
107
107
  }),
108
108
  activate: Effect.fn("Credential.activate")(function* (id) {
@@ -122,7 +122,7 @@ var layer = Layer.effect(Service79, Effect.gen(function* () {
122
122
  })), Effect.orDie);
123
123
  if (integrationID) {
124
124
  yield* Effect.logInfo("credential activated", { integrationID, credentialID: id });
125
- yield* bus.publish(Event20.Switched, { integrationID, credentialID: id }, { global: true });
125
+ yield* bus.publish(Event19.Switched, { integrationID, credentialID: id }, { global: true });
126
126
  }
127
127
  }),
128
128
  update: Effect.fn("Credential.update")(function* (id, updates) {
@@ -154,7 +154,7 @@ var layer = Layer.effect(Service79, Effect.gen(function* () {
154
154
  labelChanged: updates.label !== undefined && updates.label !== credential.label
155
155
  });
156
156
  if (updates.label !== undefined && updates.label !== credential.label)
157
- yield* bus.publish(Event20.Updated, {}, { global: true });
157
+ yield* bus.publish(Event19.Updated, {}, { global: true });
158
158
  }),
159
159
  remove: Effect.fn("Credential.remove")(function* (id) {
160
160
  const removed = yield* db.transaction((tx) => Effect.gen(function* () {
@@ -187,12 +187,12 @@ var layer = Layer.effect(Service79, Effect.gen(function* () {
187
187
  active: removed.switched,
188
188
  ...removed.switched ? { replacementID: removed.credentialID } : {}
189
189
  });
190
- yield* bus.publish(Event20.Updated, {}, { global: true });
190
+ yield* bus.publish(Event19.Updated, {}, { global: true });
191
191
  if (removed.switched)
192
- yield* bus.publish(Event20.Switched, { integrationID: removed.integrationID, credentialID: removed.credentialID }, { global: true });
192
+ yield* bus.publish(Event19.Switched, { integrationID: removed.integrationID, credentialID: removed.credentialID }, { global: true });
193
193
  })
194
194
  });
195
195
  }));
196
- var node83 = makeGlobalNode({ service: Service79, layer, deps: [node86, node85] });
196
+ var node76 = makeGlobalNode({ service: Service73, layer, deps: [node86, node84] });
197
197
 
198
- export { ID17, OAuth3, Key4, Value2, Event20, Info33, Service79, node83, exports_credential };
198
+ export { ID15, OAuth3, Key4, Value2, Event19, Info30, Service73, node76, exports_credential };
@@ -1,15 +1,15 @@
1
1
  import {
2
2
  cleanup3
3
- } from "./snapshot-gd4qta3r.js";
3
+ } from "./agent-gd4qta3r.js";
4
4
  import {
5
5
  ascending2
6
- } from "./snapshot-tvtrv512.js";
6
+ } from "./agent-tvtrv512.js";
7
7
  import {
8
8
  create3
9
- } from "./snapshot-rdw6cm16.js";
9
+ } from "./agent-rdw6cm16.js";
10
10
  import {
11
11
  __export
12
- } from "./snapshot-9rqn6x4v.js";
12
+ } from "./agent-9rqn6x4v.js";
13
13
 
14
14
  // src/tool-output.ts
15
15
  var exports_tool_output2 = {};
@@ -18,9 +18,9 @@ __export(exports_tool_output2, {
18
18
  MAX_BYTES: () => MAX_BYTES2,
19
19
  MAX_LINES: () => MAX_LINES2,
20
20
  RETENTION: () => RETENTION3,
21
- Service: () => Service64,
21
+ Service: () => Service66,
22
22
  ToolOutput: () => exports_tool_output2,
23
- node: () => node67
23
+ node: () => node69
24
24
  });
25
25
  import path from "path";
26
26
  import { Context, Duration, Effect, Layer, Schedule } from "effect";
@@ -32,13 +32,13 @@ var MAX_BYTES2 = 50 * 1024;
32
32
  var RETENTION3 = Duration.days(7);
33
33
  var DIRECTORY3 = "tool-output";
34
34
 
35
- class Service64 extends Context.Service()("@opencode/ToolOutput") {
35
+ class Service66 extends Context.Service()("@opencode/ToolOutput") {
36
36
  }
37
37
  var cleanup = Effect.fn("ToolOutput.cleanup")(function* (fs, directory) {
38
38
  const entries = yield* fs.readDirectory(directory).pipe(Effect.map((entries) => entries.filter((entry) => /^tool_[0-9a-f]{12}/.test(entry))), Effect.orElseSucceed(() => []));
39
39
  yield* cleanup3(fs, entries.map((entry) => path.join(directory, entry)), RETENTION3);
40
40
  });
41
- var layer = Layer.effect(Service64, Effect.gen(function* () {
41
+ var layer = Layer.effect(Service66, Effect.gen(function* () {
42
42
  const fs = yield* FSUtil.Service;
43
43
  const global = yield* Global.Service;
44
44
  const directory = path.join(global.data, DIRECTORY3);
@@ -122,7 +122,7 @@ var layer = Layer.effect(Service64, Effect.gen(function* () {
122
122
  metadata: { ...result.metadata, truncated: true, outputPath: file }
123
123
  };
124
124
  });
125
- return Service64.of({
125
+ return Service66.of({
126
126
  transform: state.transform,
127
127
  reload: state.reload,
128
128
  truncate,
@@ -139,10 +139,10 @@ var cleanupNode = makeGlobalNode({
139
139
  layer: cleanupLayer,
140
140
  deps: [FSUtil.node, Global.node]
141
141
  });
142
- var node67 = makeLocationNode({
143
- service: Service64,
142
+ var node69 = makeLocationNode({
143
+ service: Service66,
144
144
  layer,
145
145
  deps: [FSUtil.node, Global.node, cleanupNode]
146
146
  });
147
147
 
148
- export { MAX_LINES2, MAX_BYTES2, RETENTION3, DIRECTORY3, Service64, node67, exports_tool_output2 };
148
+ export { MAX_LINES2, MAX_BYTES2, RETENTION3, DIRECTORY3, Service66, node69, exports_tool_output2 };