@opencode-ai/core 0.0.0-beta-18600 → 0.0.0-beta-18707

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 (813) hide show
  1. package/dist/account/sql.js +2 -2
  2. package/dist/agent.js +70 -70
  3. package/dist/aisdk-native.js +3 -3
  4. package/dist/aisdk.js +4 -4
  5. package/dist/app.js +2 -2
  6. package/dist/bus.js +68 -68
  7. package/dist/catalog.js +78 -78
  8. package/dist/chunks/{project-02dbfq60.js → model-02dbfq60.js} +1 -1
  9. package/dist/chunks/{project-tgbb2ckq.js → model-02f9w0t0.js} +2 -2
  10. package/dist/chunks/{project-4f5az0e7.js → model-06n7s6mj.js} +3 -3
  11. package/dist/chunks/{project-j0sncrp4.js → model-0d4mk87s.js} +3 -3
  12. package/dist/chunks/{project-mczqbtr0.js → model-0g9hdpj2.js} +11 -11
  13. package/dist/chunks/{project-0kvmztkf.js → model-0kvmztkf.js} +1 -1
  14. package/dist/chunks/model-0nep4fgd.js +34 -0
  15. package/dist/chunks/model-0r5t5x9k.js +120 -0
  16. package/dist/chunks/{project-10p29vm9.js → model-10p29vm9.js} +1 -1
  17. package/dist/chunks/{project-15hpbjb6.js → model-15hpbjb6.js} +1 -1
  18. package/dist/chunks/{project-18pv8fg3.js → model-18pv8fg3.js} +2 -2
  19. package/dist/chunks/{project-cbdh5emr.js → model-19q29b17.js} +3 -3
  20. package/dist/chunks/{project-pm64n062.js → model-19vx63bj.js} +79 -83
  21. package/dist/chunks/{project-n08k8xnm.js → model-1zqcfpgf.js} +9 -9
  22. package/dist/chunks/{project-264e1nfp.js → model-264e1nfp.js} +2 -2
  23. package/dist/chunks/{project-sn6nad9v.js → model-27xtpza2.js} +38 -40
  24. package/dist/chunks/{project-ch59ehxr.js → model-2aabkmaa.js} +3 -3
  25. package/dist/chunks/{project-1wpv42fk.js → model-2b06wqtd.js} +10 -8
  26. package/dist/chunks/{project-2m0hgr65.js → model-2m0hgr65.js} +1 -1
  27. package/dist/chunks/{project-2nmyybe0.js → model-2nmyybe0.js} +1 -1
  28. package/dist/chunks/model-2pd1mgzx.js +95 -0
  29. package/dist/chunks/{project-rjnxxp68.js → model-2vavmvj3.js} +15 -13
  30. package/dist/chunks/{project-w14414t3.js → model-387qgrr4.js} +12 -4
  31. package/dist/chunks/{project-393a352g.js → model-393a352g.js} +2 -2
  32. package/dist/chunks/{project-d37zqxgn.js → model-3afs328y.js} +11 -11
  33. package/dist/chunks/{project-mcmqzvt7.js → model-3ak51ht4.js} +3 -3
  34. package/dist/chunks/{project-3g8vftxb.js → model-3g8vftxb.js} +2 -2
  35. package/dist/chunks/{project-w7b874ta.js → model-3mrq8b6b.js} +3 -3
  36. package/dist/chunks/{project-y5attvn7.js → model-3r017xwm.js} +5 -5
  37. package/dist/chunks/{project-3thh6229.js → model-3thh6229.js} +2 -2
  38. package/dist/chunks/{project-c2dy8s0z.js → model-41hq17d7.js} +7 -7
  39. package/dist/chunks/{project-7khw64yh.js → model-41qzzbpz.js} +3 -2
  40. package/dist/chunks/{project-bqjtetqx.js → model-49h76k6f.js} +90 -90
  41. package/dist/chunks/{project-a7tr07hx.js → model-4fyj40dz.js} +3 -3
  42. package/dist/chunks/{project-8pngjawd.js → model-4h896fer.js} +2 -2
  43. package/dist/chunks/{project-d9wdmbm9.js → model-4j6msas4.js} +3 -3
  44. package/dist/chunks/{project-4zzdwbaz.js → model-4zzdwbaz.js} +2 -2
  45. package/dist/chunks/{project-50jxp3hw.js → model-50jxp3hw.js} +1 -1
  46. package/dist/chunks/{project-63s588jq.js → model-5122ztwm.js} +22 -21
  47. package/dist/chunks/{project-g2nsgnf7.js → model-51jc707v.js} +12 -12
  48. package/dist/chunks/{project-pxfsdh0y.js → model-567fcwrm.js} +6 -6
  49. package/dist/chunks/{project-57ej80dx.js → model-57ej80dx.js} +2 -2
  50. package/dist/chunks/{project-apgan3pt.js → model-57h761nw.js} +7 -6
  51. package/dist/chunks/{project-57tzwnz4.js → model-57tzwnz4.js} +1 -1
  52. package/dist/chunks/{project-58xdvehb.js → model-58xdvehb.js} +1 -1
  53. package/dist/chunks/{project-3gybxysr.js → model-5ese1gdm.js} +36 -36
  54. package/dist/chunks/{project-5fe026tx.js → model-5fe026tx.js} +3 -3
  55. package/dist/chunks/{project-5rs65q6p.js → model-5rs65q6p.js} +1 -1
  56. package/dist/chunks/{project-9wbq8qv2.js → model-5snqn3fs.js} +6 -6
  57. package/dist/chunks/{project-5vcssjzn.js → model-5vcssjzn.js} +1 -1
  58. package/dist/chunks/{project-j5sjtdxs.js → model-60e98a7s.js} +3 -3
  59. package/dist/chunks/{project-6272rtjg.js → model-6272rtjg.js} +1 -1
  60. package/dist/chunks/{project-r9pv5d9a.js → model-6cxkhhme.js} +96 -62
  61. package/dist/chunks/{project-6ky7rqk7.js → model-6ky7rqk7.js} +1 -1
  62. package/dist/chunks/model-6tpset1y.js +203 -0
  63. package/dist/chunks/{project-6wkzvma0.js → model-6wkzvma0.js} +2 -2
  64. package/dist/chunks/{project-a0s5dkct.js → model-7afh56wg.js} +7 -10
  65. package/dist/chunks/{project-f7q7a28y.js → model-7ccgh94t.js} +6 -6
  66. package/dist/chunks/{project-vqt151v9.js → model-7dhnf1ge.js} +5 -5
  67. package/dist/chunks/{project-t16napr0.js → model-7drm3h8s.js} +6 -6
  68. package/dist/chunks/{project-h2h934sz.js → model-7fr2g77j.js} +6 -6
  69. package/dist/chunks/{project-7mrpdsq5.js → model-7mrpdsq5.js} +1 -1
  70. package/dist/chunks/{project-7k160n64.js → model-7td3bv5p.js} +5 -5
  71. package/dist/chunks/{project-pba5amb4.js → model-7tstrtpa.js} +5 -4
  72. package/dist/chunks/{project-7wcmqxrc.js → model-7wcmqxrc.js} +1 -1
  73. package/dist/chunks/{project-anez00x1.js → model-7yjmz42c.js} +94 -86
  74. package/dist/chunks/{project-xtjxhef7.js → model-847cmpaw.js} +2 -2
  75. package/dist/chunks/{project-88g69gay.js → model-865rfa5x.js} +5 -5
  76. package/dist/chunks/{project-12r08axk.js → model-955f6cmy.js} +13 -19
  77. package/dist/chunks/{project-eygmcrvz.js → model-99cbrjnf.js} +5 -5
  78. package/dist/chunks/{project-r0z48jr6.js → model-9bwgbsjv.js} +11 -11
  79. package/dist/chunks/{project-ex7kk1kw.js → model-9emxzqg0.js} +3 -5
  80. package/dist/chunks/{project-9f0rnpkn.js → model-9f0rnpkn.js} +1 -1
  81. package/dist/chunks/{project-p2h03eta.js → model-9w1y4hdv.js} +6 -6
  82. package/dist/chunks/{project-8ptyzv8c.js → model-a2dvn4yw.js} +75 -122
  83. package/dist/chunks/{project-d0ahwm86.js → model-a3jfkbbw.js} +26 -26
  84. package/dist/chunks/model-a7zp47hx.js +31 -0
  85. package/dist/chunks/{project-1mvr5yep.js → model-aykc9wsc.js} +113 -25
  86. package/dist/chunks/{project-c6yz00sq.js → model-azpmwmnh.js} +7 -7
  87. package/dist/chunks/{project-szqzwjp8.js → model-b380beks.js} +14 -14
  88. package/dist/chunks/{project-cg0y8hn9.js → model-b7g40f0s.js} +11 -11
  89. package/dist/chunks/{project-sgh68dve.js → model-ba9h5n2z.js} +18 -18
  90. package/dist/chunks/{project-0xzcm754.js → model-bach7bae.js} +9 -9
  91. package/dist/chunks/{project-bbhffenw.js → model-bbhffenw.js} +3 -3
  92. package/dist/chunks/{project-5sw6s279.js → model-bf12q6k5.js} +3 -3
  93. package/dist/chunks/{project-s9zs8v6y.js → model-bfs3jmy8.js} +12 -12
  94. package/dist/chunks/{project-bh1wr8rq.js → model-bh1wr8rq.js} +2 -2
  95. package/dist/chunks/{project-r5gg458q.js → model-bkvz3zmp.js} +45 -44
  96. package/dist/chunks/{project-dsrkn9fq.js → model-bpwq3t4x.js} +46 -40
  97. package/dist/chunks/{project-byab506k.js → model-byab506k.js} +1 -1
  98. package/dist/chunks/model-bym1j60d.js +129 -0
  99. package/dist/chunks/{project-2tnd1ag8.js → model-c14t2hjy.js} +3 -3
  100. package/dist/chunks/{project-0r1p85sc.js → model-c48mcab4.js} +8 -5
  101. package/dist/chunks/{project-c4wcb9vc.js → model-c4wcb9vc.js} +2 -2
  102. package/dist/chunks/model-c8fhf3ac.js +353 -0
  103. package/dist/chunks/{project-c8ya26sa.js → model-c8ya26sa.js} +2 -2
  104. package/dist/chunks/model-cgqn2mrm.js +147 -0
  105. package/dist/chunks/{project-8s775pjc.js → model-cp386rrn.js} +4 -4
  106. package/dist/chunks/{project-37ng30jt.js → model-cpqd33tw.js} +8 -11
  107. package/dist/chunks/{project-fw21zw5n.js → model-cre7gbc6.js} +11 -11
  108. package/dist/chunks/{project-eyszsgm3.js → model-cswqnh77.js} +14 -14
  109. package/dist/chunks/{project-zy5j9fqq.js → model-cwna1env.js} +7 -7
  110. package/dist/chunks/{project-y85nmh9b.js → model-cz5tjv9w.js} +7 -7
  111. package/dist/chunks/{project-jj3fzgje.js → model-czavxh09.js} +7 -7
  112. package/dist/chunks/{project-d2gk9vpf.js → model-d2gk9vpf.js} +2 -2
  113. package/dist/chunks/{project-d4h7vwhh.js → model-d4h7vwhh.js} +2 -2
  114. package/dist/chunks/{project-dhphtf1x.js → model-dhphtf1x.js} +1 -1
  115. package/dist/chunks/{project-kt491qp2.js → model-dyj7wa6j.js} +14 -14
  116. package/dist/chunks/{project-52cmy8h2.js → model-dym2t83s.js} +3 -3
  117. package/dist/chunks/{project-e1z9a0ts.js → model-e1z9a0ts.js} +2 -2
  118. package/dist/chunks/{project-qhe68xsc.js → model-e6tx6p0e.js} +4 -4
  119. package/dist/chunks/{project-vxb9gyym.js → model-e8wc181f.js} +13 -25
  120. package/dist/chunks/{project-ec8vrfw5.js → model-ec8vrfw5.js} +1 -1
  121. package/dist/chunks/{project-63n18kwk.js → model-ejr52wwy.js} +4 -4
  122. package/dist/chunks/{project-ep35cpen.js → model-ep35cpen.js} +1 -1
  123. package/dist/chunks/{project-djskppfh.js → model-ep8np0m1.js} +4 -4
  124. package/dist/chunks/model-etvrgfqj.js +74 -0
  125. package/dist/chunks/{project-cz0kv403.js → model-evpv8s6p.js} +4 -4
  126. package/dist/chunks/{project-eg3rv469.js → model-f4m2ajrk.js} +4 -4
  127. package/dist/chunks/{project-f9wt0tjw.js → model-f9wt0tjw.js} +2 -2
  128. package/dist/chunks/{project-krsqcmnj.js → model-fex42j86.js} +2 -1
  129. package/dist/chunks/{project-n80x9yrx.js → model-fkf3c53e.js} +64 -15
  130. package/dist/chunks/{project-fm3b2wbt.js → model-fm3b2wbt.js} +2 -2
  131. package/dist/chunks/{project-mxjff6xk.js → model-fvzd795v.js} +4 -4
  132. package/dist/chunks/{project-q52549y3.js → model-fy6682x0.js} +2 -2
  133. package/dist/chunks/{project-a9vdgkgd.js → model-g23fad86.js} +2 -0
  134. package/dist/chunks/{project-fw3c683y.js → model-g3xa637g.js} +2 -2
  135. package/dist/chunks/{project-75h1hfe2.js → model-g5tvq2z7.js} +3 -3
  136. package/dist/chunks/{project-enpg66yn.js → model-g68hwncr.js} +1 -1
  137. package/dist/chunks/{project-ma4zf1fd.js → model-gac5srz8.js} +1 -1
  138. package/dist/chunks/{project-gb1z7yet.js → model-gb1z7yet.js} +2 -2
  139. package/dist/chunks/{project-gcay93cp.js → model-gcay93cp.js} +1 -1
  140. package/dist/chunks/{project-gd2xppx8.js → model-gd2xppx8.js} +1 -1
  141. package/dist/chunks/{project-fhg07p44.js → model-gpfae92y.js} +9 -9
  142. package/dist/chunks/{project-83ba1yz6.js → model-gz9s6gpj.js} +2 -2
  143. package/dist/chunks/{project-dgmzb1tr.js → model-h23qqzyp.js} +32 -34
  144. package/dist/chunks/{project-ntzp27rn.js → model-h2vbrcaa.js} +6 -8
  145. package/dist/chunks/{project-4s2xwh5d.js → model-h5wnyjzw.js} +4 -21
  146. package/dist/chunks/{project-fgyjabww.js → model-h6q26knr.js} +2 -2
  147. package/dist/chunks/{project-h94zdhz8.js → model-h94zdhz8.js} +2 -2
  148. package/dist/chunks/{project-yq1fxjb2.js → model-hd3n7xxs.js} +4 -4
  149. package/dist/chunks/{project-gm95ds07.js → model-hg3gvq1y.js} +15 -11
  150. package/dist/chunks/{project-tcptxgyq.js → model-hgr9y616.js} +1 -3
  151. package/dist/chunks/{project-5fkc1wrz.js → model-hjakqzgh.js} +3 -3
  152. package/dist/chunks/{project-k3my2f3q.js → model-hkp9zjzz.js} +10 -15
  153. package/dist/chunks/{project-hp6rpdnc.js → model-hp6rpdnc.js} +1 -1
  154. package/dist/chunks/{project-0687t5rp.js → model-hxcd35r2.js} +6 -6
  155. package/dist/chunks/{project-5v57kk1r.js → model-hztc25mx.js} +3 -3
  156. package/dist/chunks/{project-zxcy6vhn.js → model-j0feex7e.js} +2 -2
  157. package/dist/chunks/{project-01z9805y.js → model-j0h6vft7.js} +4 -4
  158. package/dist/chunks/{project-f1zz3pak.js → model-j10ydgy9.js} +4 -4
  159. package/dist/chunks/{project-t0msbthe.js → model-j281xcgt.js} +3 -3
  160. package/dist/chunks/{project-tjzkemh8.js → model-j760n82t.js} +3 -3
  161. package/dist/chunks/{project-8t2ap2vm.js → model-j8pa1s6t.js} +10 -10
  162. package/dist/chunks/{project-7d6d29dh.js → model-jzsvqgy6.js} +9 -9
  163. package/dist/chunks/{project-eeta29b7.js → model-k828h0dz.js} +4 -4
  164. package/dist/chunks/{project-hesdqwj7.js → model-keytgzng.js} +6 -6
  165. package/dist/chunks/{project-kg1345f7.js → model-kg1345f7.js} +1 -1
  166. package/dist/chunks/{project-kp1t5rcy.js → model-kp1t5rcy.js} +1 -1
  167. package/dist/chunks/{project-sjgf8zbe.js → model-kr5x83ag.js} +5 -5
  168. package/dist/chunks/{project-bwpyv797.js → model-ks8gtyd5.js} +7 -7
  169. package/dist/chunks/{project-ayrkq19e.js → model-kvhsphac.js} +104 -78
  170. package/dist/chunks/{project-3qv8nf0b.js → model-kww0mg52.js} +1 -1
  171. package/dist/chunks/{project-sag4arrb.js → model-mdperjk5.js} +5 -5
  172. package/dist/chunks/{project-mf0hyk7z.js → model-mf0hyk7z.js} +1 -1
  173. package/dist/chunks/{project-qfwv4tag.js → model-mfzf5b1q.js} +11 -11
  174. package/dist/chunks/{project-brrb2k9c.js → model-mn601gd8.js} +4 -4
  175. package/dist/chunks/{project-mnb85w6b.js → model-mnb85w6b.js} +2 -2
  176. package/dist/chunks/{project-mx048vt2.js → model-mvnt3mgd.js} +5 -7
  177. package/dist/chunks/{project-mxvw03gv.js → model-mxvw03gv.js} +1 -1
  178. package/dist/chunks/{project-vphhr7s2.js → model-mzdc39r5.js} +4 -4
  179. package/dist/chunks/{project-qmbgqwhj.js → model-n45137pn.js} +38 -44
  180. package/dist/chunks/{project-gx0zmkq0.js → model-n6t5c0k6.js} +140 -140
  181. package/dist/chunks/{project-xdgykwbe.js → model-nba1g5tj.js} +12 -12
  182. package/dist/chunks/{project-sdcydb11.js → model-nbw8awg7.js} +3 -3
  183. package/dist/chunks/{project-2knkewgs.js → model-ngz3v23c.js} +3 -3
  184. package/dist/chunks/{project-gtcq6en2.js → model-nh98sf0t.js} +18 -20
  185. package/dist/chunks/{project-awg5d31a.js → model-npwkm078.js} +1 -1
  186. package/dist/chunks/{project-nr76rjj3.js → model-nr76rjj3.js} +2 -2
  187. package/dist/chunks/{project-ns0sdez7.js → model-ns0sdez7.js} +3 -3
  188. package/dist/chunks/{project-nzrjycs5.js → model-nzrjycs5.js} +1 -1
  189. package/dist/chunks/{project-hxw68eqm.js → model-pdyjpm6a.js} +5 -5
  190. package/dist/chunks/{project-pq4b4pqk.js → model-pq4b4pqk.js} +2 -2
  191. package/dist/chunks/{project-917g9tmj.js → model-pr46h17c.js} +6 -8
  192. package/dist/chunks/{project-2wds5nk3.js → model-ps01fcq7.js} +1 -1
  193. package/dist/chunks/model-pwd75nyq.js +405 -0
  194. package/dist/chunks/{project-qxsjpy8c.js → model-pywyq33w.js} +8 -8
  195. package/dist/chunks/{project-jcsmb80n.js → model-pz1bk8bf.js} +2 -2
  196. package/dist/chunks/{project-n79xa5zf.js → model-pzatkvvd.js} +7 -7
  197. package/dist/chunks/{project-27gfv7vw.js → model-q2p1j5t8.js} +5 -5
  198. package/dist/chunks/{project-q606pcse.js → model-q606pcse.js} +3 -3
  199. package/dist/chunks/{project-m55whf0h.js → model-q66tjefk.js} +2 -2
  200. package/dist/chunks/model-q8ep280n.js +33 -0
  201. package/dist/chunks/{project-tpx671s8.js → model-q9vfn5x4.js} +2 -2
  202. package/dist/chunks/{project-qe0d689s.js → model-qe0d689s.js} +2 -2
  203. package/dist/chunks/{project-1cvksg4c.js → model-qert5162.js} +2 -2
  204. package/dist/chunks/{project-r67bz3x8.js → model-qgqfrqw3.js} +13 -13
  205. package/dist/chunks/{project-9nk9mkqn.js → model-qhdy39gn.js} +3 -3
  206. package/dist/chunks/{project-6kmefejb.js → model-qmpdqet2.js} +13 -13
  207. package/dist/chunks/{project-mankezgy.js → model-qwn30307.js} +16 -6
  208. package/dist/chunks/{project-r3k9abhd.js → model-r3k9abhd.js} +2 -2
  209. package/dist/chunks/{project-r9d3d23r.js → model-r9d3d23r.js} +1 -1
  210. package/dist/chunks/{project-rahat93a.js → model-rahat93a.js} +1 -1
  211. package/dist/chunks/{project-0gcqkg3x.js → model-rdqmt1vp.js} +2 -2
  212. package/dist/chunks/{project-qw097fy7.js → model-rgrf8c7p.js} +24 -26
  213. package/dist/chunks/{project-zs1qer6v.js → model-rmjj1pjh.js} +27 -2
  214. package/dist/chunks/{project-gcc0jgqv.js → model-rrbd0qbq.js} +5 -5
  215. package/dist/chunks/{project-s2kjqxd3.js → model-s2kjqxd3.js} +1 -1
  216. package/dist/chunks/{project-s33fw6zm.js → model-s33fw6zm.js} +1 -1
  217. package/dist/chunks/{project-9twaxxs3.js → model-sdcaysy0.js} +5 -5
  218. package/dist/chunks/{project-smpeg8c9.js → model-smpeg8c9.js} +2 -2
  219. package/dist/chunks/{project-sw84ckhj.js → model-sw84ckhj.js} +1 -1
  220. package/dist/chunks/{project-t14kykx1.js → model-t14kykx1.js} +1 -1
  221. package/dist/chunks/{project-qzrmckdd.js → model-t4hd6dfn.js} +4 -4
  222. package/dist/chunks/{project-r13w8t0w.js → model-t683wdge.js} +2 -2
  223. package/dist/chunks/{project-rbnp2c85.js → model-t6ma3p1k.js} +3 -3
  224. package/dist/chunks/{project-thstd87d.js → model-thstd87d.js} +1 -1
  225. package/dist/chunks/{project-tjrfm0xh.js → model-tjrfm0xh.js} +2 -2
  226. package/dist/chunks/{project-1v4q2qp6.js → model-tmq1h0yc.js} +4 -4
  227. package/dist/chunks/{project-v2wshkax.js → model-v2wshkax.js} +1 -1
  228. package/dist/chunks/{project-v80zsxnb.js → model-v80zsxnb.js} +1 -1
  229. package/dist/chunks/{project-v972xay6.js → model-v972xay6.js} +1 -1
  230. package/dist/chunks/{project-v9bfv94f.js → model-v9bfv94f.js} +1 -1
  231. package/dist/chunks/{project-26cqkxws.js → model-vcthhb3r.js} +15 -15
  232. package/dist/chunks/{project-vcwr2vpf.js → model-vcwr2vpf.js} +1 -1
  233. package/dist/chunks/{project-bq1qdn80.js → model-vhefbkee.js} +8 -8
  234. package/dist/chunks/{project-vqbmgfq1.js → model-vqbmgfq1.js} +3 -3
  235. package/dist/chunks/{project-gy9zm4ck.js → model-vwkfg4n5.js} +94 -96
  236. package/dist/chunks/{project-vz89hfgr.js → model-vz89hfgr.js} +1 -1
  237. package/dist/chunks/{project-h12kt9pa.js → model-w385wtt6.js} +2 -2
  238. package/dist/chunks/{project-wbkt8qpj.js → model-wbkt8qpj.js} +1 -1
  239. package/dist/chunks/{project-qxpt6zan.js → model-wf85cm54.js} +17 -17
  240. package/dist/chunks/{project-ssk1zpcb.js → model-wj5aszjk.js} +10 -10
  241. package/dist/chunks/{project-y68gmye4.js → model-wk5ccvwp.js} +19 -17
  242. package/dist/chunks/{project-wmxdh12w.js → model-wmxdh12w.js} +1 -1
  243. package/dist/chunks/{project-1r30nvhb.js → model-wngq0b9r.js} +3 -3
  244. package/dist/chunks/{project-wps8gh8n.js → model-wps8gh8n.js} +2 -2
  245. package/dist/chunks/{project-5cdnkd94.js → model-wq5r9j83.js} +4 -6
  246. package/dist/chunks/{project-hs6h3an3.js → model-x3gnmkmq.js} +58 -58
  247. package/dist/chunks/{project-rgh2fcxw.js → model-x4akg8r5.js} +35 -12
  248. package/dist/chunks/{project-6tmgbn41.js → model-x4s5zyap.js} +51 -35
  249. package/dist/chunks/{project-60xr61qr.js → model-x881kgek.js} +5 -5
  250. package/dist/chunks/{project-x89rah0x.js → model-x89rah0x.js} +1 -1
  251. package/dist/chunks/{project-zn8r3q6e.js → model-x8ejds6g.js} +6 -6
  252. package/dist/chunks/{project-3ngtzkgg.js → model-x8tgsatw.js} +3 -3
  253. package/dist/chunks/{project-xczfw7dq.js → model-xczfw7dq.js} +1 -1
  254. package/dist/chunks/{project-xgv25zxy.js → model-xgv25zxy.js} +1 -1
  255. package/dist/chunks/{project-xj0xhwdw.js → model-xj0xhwdw.js} +1 -1
  256. package/dist/chunks/{project-xwftk1fd.js → model-xwftk1fd.js} +2 -2
  257. package/dist/chunks/{project-xxpvz42q.js → model-xxpvz42q.js} +3 -3
  258. package/dist/chunks/{project-pm12wdxj.js → model-xy3y21dp.js} +2 -2
  259. package/dist/chunks/{project-z1at3hn2.js → model-y0e4v98w.js} +5 -5
  260. package/dist/chunks/{project-y0x38cee.js → model-y0x38cee.js} +1 -1
  261. package/dist/chunks/{project-y198y2ra.js → model-y198y2ra.js} +1 -1
  262. package/dist/chunks/{project-y67x6rf6.js → model-y67x6rf6.js} +1 -1
  263. package/dist/chunks/{project-k2bjf35z.js → model-y9415wjy.js} +14 -14
  264. package/dist/chunks/{project-zy7gs9ta.js → model-ya7dtkd6.js} +11 -11
  265. package/dist/chunks/{project-86t2edmb.js → model-ys131sm2.js} +7 -7
  266. package/dist/chunks/{project-yf0knd5z.js → model-yt02w91s.js} +20 -21
  267. package/dist/chunks/{project-fj3jkv63.js → model-z2m9tgnz.js} +4 -4
  268. package/dist/chunks/{project-4rg3anhc.js → model-z8cvg98n.js} +15 -10
  269. package/dist/chunks/{project-zbqqnp0n.js → model-zbqqnp0n.js} +1 -1
  270. package/dist/chunks/{project-zdkg1k91.js → model-zdkg1k91.js} +1 -1
  271. package/dist/chunks/{project-dmd300cs.js → model-zqfh5k26.js} +15 -14
  272. package/dist/chunks/{project-8xpa4rfs.js → model-zvgnemsv.js} +4 -4
  273. package/dist/chunks/{project-0pepaw2y.js → model-zvhztyp7.js} +26 -34
  274. package/dist/chunks/{project-zxe9jjhn.js → model-zxe9jjhn.js} +2 -2
  275. package/dist/chunks/{project-sg39537v.js → model-zyaamr6c.js} +5 -5
  276. package/dist/codemode/catalog.js +2 -2
  277. package/dist/codemode/instructions.js +4 -4
  278. package/dist/codemode/tool.js +3 -3
  279. package/dist/command.js +70 -70
  280. package/dist/config/markdown.js +2 -2
  281. package/dist/config/normalize.js +20 -20
  282. package/dist/config/plugin/agent.js +132 -132
  283. package/dist/config/plugin/command.js +118 -118
  284. package/dist/config/plugin/compaction.js +146 -146
  285. package/dist/config/plugin/entry-observer.js +114 -114
  286. package/dist/config/plugin/formatter.js +119 -119
  287. package/dist/config/plugin/image.js +131 -131
  288. package/dist/config/plugin/instruction.js +90 -90
  289. package/dist/config/plugin/location-watcher.js +117 -117
  290. package/dist/config/plugin/mcp.js +127 -127
  291. package/dist/config/plugin/policy.js +116 -116
  292. package/dist/config/plugin/provider.js +115 -115
  293. package/dist/config/plugin/reference.js +119 -119
  294. package/dist/config/plugin/shell.js +118 -118
  295. package/dist/config/plugin/skill-file.js +103 -103
  296. package/dist/config/plugin/skill.js +135 -135
  297. package/dist/config/plugin/snapshot.js +117 -117
  298. package/dist/config/plugin/source.js +114 -114
  299. package/dist/config/plugin/tool-output.js +119 -119
  300. package/dist/config/plugin/websearch.js +115 -115
  301. package/dist/config/variable.js +4 -4
  302. package/dist/config.js +113 -113
  303. package/dist/credential/sql.js +3 -3
  304. package/dist/credential.js +71 -71
  305. package/dist/database/database.js +65 -65
  306. package/dist/database/drizzle/effect-sqlite/driver.js +13 -13
  307. package/dist/database/drizzle/effect-sqlite/index.js +13 -13
  308. package/dist/database/drizzle/effect-sqlite/session.js +12 -12
  309. package/dist/database/drizzle/index.js +14 -14
  310. package/dist/database/drizzle/internal/drizzle-utils.js +2 -2
  311. package/dist/database/drizzle/sqlite-core/effect/count.js +2 -2
  312. package/dist/database/drizzle/sqlite-core/effect/db.js +10 -10
  313. package/dist/database/drizzle/sqlite-core/effect/delete.js +3 -3
  314. package/dist/database/drizzle/sqlite-core/effect/index.js +20 -20
  315. package/dist/database/drizzle/sqlite-core/effect/insert.js +3 -3
  316. package/dist/database/drizzle/sqlite-core/effect/query.js +2 -2
  317. package/dist/database/drizzle/sqlite-core/effect/raw.js +2 -2
  318. package/dist/database/drizzle/sqlite-core/effect/select.js +3 -3
  319. package/dist/database/drizzle/sqlite-core/effect/session.js +11 -11
  320. package/dist/database/drizzle/sqlite-core/effect/update.js +3 -3
  321. package/dist/database/drizzle.js +15 -15
  322. package/dist/database/migration/20260127222353_familiar_lady_ursula.js +2 -2
  323. package/dist/database/migration/20260211171708_add_project_commands.js +2 -2
  324. package/dist/database/migration/20260213144116_wakeful_the_professor.js +2 -2
  325. package/dist/database/migration/20260225215848_workspace.js +2 -2
  326. package/dist/database/migration/20260227213759_add_session_workspace_id.js +2 -2
  327. package/dist/database/migration/20260228203230_blue_harpoon.js +2 -2
  328. package/dist/database/migration/20260303231226_add_workspace_fields.js +2 -2
  329. package/dist/database/migration/20260309230000_move_org_to_state.js +2 -2
  330. package/dist/database/migration/20260312043431_session_message_cursor.js +2 -2
  331. package/dist/database/migration/20260323234822_events.js +2 -2
  332. package/dist/database/migration/20260410174513_workspace-name.js +2 -2
  333. package/dist/database/migration/20260413175956_chief_energizer.js +2 -2
  334. package/dist/database/migration/20260423070820_add_icon_url_override.js +2 -2
  335. package/dist/database/migration/20260427172553_slow_nightmare.js +2 -2
  336. package/dist/database/migration/20260428004200_add_session_path.js +2 -2
  337. package/dist/database/migration/20260501142318_next_venus.js +2 -2
  338. package/dist/database/migration/20260504145000_add_sync_owner.js +2 -2
  339. package/dist/database/migration/20260507164347_add_workspace_time.js +2 -2
  340. package/dist/database/migration/20260510033149_session_usage.js +2 -2
  341. package/dist/database/migration/20260511000411_data_migration_state.js +2 -2
  342. package/dist/database/migration/20260511173437_session-metadata.js +2 -2
  343. package/dist/database/migration/20260601010001_normalize_storage_paths.js +2 -2
  344. package/dist/database/migration/20260601202201_amazing_prowler.js +2 -2
  345. package/dist/database/migration/20260602002951_lowly_union_jack.js +2 -2
  346. package/dist/database/migration/20260602182828_add_project_directories.js +2 -2
  347. package/dist/database/migration/20260603001617_session_message_projection_indexes.js +2 -2
  348. package/dist/database/migration/20260603040000_session_message_projection_order.js +2 -2
  349. package/dist/database/migration/20260603141458_session_input_inbox.js +2 -2
  350. package/dist/database/migration/20260603160727_jittery_ezekiel_stane.js +2 -2
  351. package/dist/database/migration/20260604172448_event_sourced_session_input.js +2 -2
  352. package/dist/database/migration/20260605003541_add_session_context_snapshot.js +2 -2
  353. package/dist/database/migration/20260605042240_add_context_epoch_agent.js +2 -2
  354. package/dist/database/migration/20260611035744_credential.js +2 -2
  355. package/dist/database/migration/20260611192811_lush_chimera.js +2 -2
  356. package/dist/database/migration/20260612174303_project_dir_strategy.js +2 -2
  357. package/dist/database/migration/20260622142730_simplify_session_context_epoch.js +2 -2
  358. package/dist/database/migration/20260622170816_reset_v2_session_state.js +2 -2
  359. package/dist/database/migration/20260622202450_simplify_session_input.js +2 -2
  360. package/dist/database/migration/20260804233008_loose_psylocke.js +2 -2
  361. package/dist/database/migration/20260805200742_import_legacy_credentials.js +2 -2
  362. package/dist/database/migration/20260808023530_workspace_domain.js +2 -2
  363. package/dist/database/migration/20260811161259_execution_claim_attempts.js +2 -2
  364. package/dist/database/migration/20260812181746_session_inbox.js +2 -2
  365. package/dist/database/migration/20260812213948_worktree.js +2 -2
  366. package/dist/database/migration/20260819222447_session_viewed_state.js +2 -2
  367. package/dist/database/migration/20260823191254_nullable_workspace_binding.js +2 -2
  368. package/dist/database/migration.gen.js +48 -48
  369. package/dist/database/migration.js +50 -50
  370. package/dist/database/path.js +3 -3
  371. package/dist/database/schema.gen.js +2 -2
  372. package/dist/database/schema.sql.js +2 -2
  373. package/dist/database/sqlite.bun.js +2 -2
  374. package/dist/database/sqlite.js +2 -2
  375. package/dist/database/sqlite.node.js +2 -2
  376. package/dist/database/sqlite.workerd.js +3 -3
  377. package/dist/database/v1-migration.bun.js +171 -174
  378. package/dist/database/v1-migration.js +2 -2
  379. package/dist/database/v1-migration.noop.js +1 -1
  380. package/dist/effect/app-node-builder.js +339 -333
  381. package/dist/effect/app-node-platform.js +3 -3
  382. package/dist/effect/keyed-mutex.js +2 -2
  383. package/dist/effect/websocket-constructor.js +2 -2
  384. package/dist/environment/driver.js +1 -1
  385. package/dist/environment/environment.js +91 -91
  386. package/dist/environment/exec-defaults.js +3 -3
  387. package/dist/environment/files.js +2 -2
  388. package/dist/environment/index.js +93 -93
  389. package/dist/environment/local.js +3 -3
  390. package/dist/environment/memory.js +3 -3
  391. package/dist/environment/unavailable.js +1 -1
  392. package/dist/event/sql.js +2 -2
  393. package/dist/event-logger.js +68 -68
  394. package/dist/file-mutation.js +92 -92
  395. package/dist/file-retention.js +2 -2
  396. package/dist/file.js +2 -2
  397. package/dist/filesystem/fff.bun.js +2 -2
  398. package/dist/filesystem/fff.js +2 -2
  399. package/dist/filesystem/fff.node.js +2 -2
  400. package/dist/filesystem/fff.workerd.js +2 -2
  401. package/dist/filesystem/ignore.js +1 -1
  402. package/dist/filesystem/location-watcher-policy.js +3 -3
  403. package/dist/filesystem/location-watcher.js +313 -309
  404. package/dist/filesystem/protected.js +2 -2
  405. package/dist/filesystem/search.js +96 -96
  406. package/dist/filesystem/watcher-binding.js +2 -2
  407. package/dist/filesystem/watcher.js +4 -4
  408. package/dist/filesystem.js +97 -97
  409. package/dist/form.js +69 -69
  410. package/dist/formatter/builtins.js +3 -3
  411. package/dist/formatter.js +85 -85
  412. package/dist/generate.js +84 -84
  413. package/dist/git.js +5 -5
  414. package/dist/github-copilot/chat/convert-to-openai-compatible-chat-messages.js +2 -2
  415. package/dist/github-copilot/chat/get-response-metadata.js +2 -2
  416. package/dist/github-copilot/chat/map-openai-compatible-finish-reason.js +2 -2
  417. package/dist/github-copilot/chat/openai-compatible-chat-language-model.js +8 -8
  418. package/dist/github-copilot/chat/openai-compatible-chat-options.js +2 -2
  419. package/dist/github-copilot/chat/openai-compatible-prepare-tools.js +2 -2
  420. package/dist/github-copilot/copilot-provider.js +18 -18
  421. package/dist/github-copilot/models.js +4 -4
  422. package/dist/github-copilot/openai-compatible-error.js +2 -2
  423. package/dist/github-copilot/responses/convert-to-openai-responses-input.js +2 -2
  424. package/dist/github-copilot/responses/map-openai-responses-finish-reason.js +2 -2
  425. package/dist/github-copilot/responses/openai-error.js +2 -2
  426. package/dist/github-copilot/responses/openai-responses-language-model.js +11 -11
  427. package/dist/github-copilot/responses/openai-responses-prepare-tools.js +10 -8
  428. package/dist/github-copilot/responses/tool/code-interpreter.js +2 -2
  429. package/dist/github-copilot/responses/tool/file-search.js +2 -2
  430. package/dist/github-copilot/responses/tool/image-generation.js +2 -2
  431. package/dist/github-copilot/responses/tool/web-search-preview.js +2 -2
  432. package/dist/github-copilot/responses/tool/web-search.js +2 -2
  433. package/dist/id/id.js +2 -2
  434. package/dist/image/photon-wasm.bun.js +1 -1
  435. package/dist/image/photon-wasm.node.js +1 -1
  436. package/dist/image/photon-wasm.workerd.js +1 -1
  437. package/dist/image/photon.js +107 -102
  438. package/dist/image.js +99 -99
  439. package/dist/instance.js +338 -332
  440. package/dist/instruction-discovery.js +72 -72
  441. package/dist/instructions/builtins.js +85 -86
  442. package/dist/instructions/index.js +2 -2
  443. package/dist/integration/connection.js +2 -2
  444. package/dist/integration.js +75 -75
  445. package/dist/job.js +72 -72
  446. package/dist/kv/sql.js +3 -3
  447. package/dist/kv.js +68 -68
  448. package/dist/location-activity.js +87 -87
  449. package/dist/location-mutation.js +84 -84
  450. package/dist/location-service-map.js +84 -84
  451. package/dist/location-services.js +339 -333
  452. package/dist/location.js +83 -83
  453. package/dist/mcp/client.js +97 -93
  454. package/dist/mcp/index.js +98 -98
  455. package/dist/mcp/instructions.js +127 -127
  456. package/dist/mcp/oauth.js +2 -2
  457. package/dist/mcp/stdio.js +92 -92
  458. package/dist/mime.js +2 -2
  459. package/dist/model-resolver.js +81 -81
  460. package/dist/model.js +3 -3
  461. package/dist/models-dev.js +75 -75
  462. package/dist/oauth/page.js +2 -2
  463. package/dist/permission/saved.js +71 -84
  464. package/dist/permission/sql.js +6 -6
  465. package/dist/permission.js +100 -100
  466. package/dist/persistent-pty/binary.bun.js +2 -2
  467. package/dist/persistent-pty/binary.node.js +1 -1
  468. package/dist/persistent-pty/binary.workerd.js +1 -1
  469. package/dist/persistent-pty/daemon.js +2 -2
  470. package/dist/persistent-pty/index.js +73 -73
  471. package/dist/persistent-pty/pty-binding.js +2 -2
  472. package/dist/persistent-pty.js +74 -74
  473. package/dist/plugin/agent.js +101 -101
  474. package/dist/plugin/command.js +99 -99
  475. package/dist/plugin/hooks.js +3 -3
  476. package/dist/plugin/host.js +202 -174
  477. package/dist/plugin/instance.js +2 -2
  478. package/dist/plugin/internal.js +307 -302
  479. package/dist/plugin/mcp-codemode-exclusion.js +2 -2
  480. package/dist/plugin/models-dev.js +76 -76
  481. package/dist/plugin/module.js +3 -3
  482. package/dist/plugin/plan.js +101 -101
  483. package/dist/plugin/promise.js +2 -2
  484. package/dist/plugin/provider/alibaba.js +3 -3
  485. package/dist/plugin/provider/amazon-bedrock.js +3 -3
  486. package/dist/plugin/provider/anthropic.js +3 -3
  487. package/dist/plugin/provider/azure.js +123 -123
  488. package/dist/plugin/provider/cerebras.js +3 -3
  489. package/dist/plugin/provider/cloudflare-ai-gateway.js +122 -122
  490. package/dist/plugin/provider/cloudflare-workers-ai.js +122 -122
  491. package/dist/plugin/provider/cohere.js +3 -3
  492. package/dist/plugin/provider/configured.js +119 -119
  493. package/dist/plugin/provider/dynamic.js +3 -3
  494. package/dist/plugin/provider/factory.js +2 -2
  495. package/dist/plugin/provider/gateway.js +3 -3
  496. package/dist/plugin/provider/github-copilot.js +82 -82
  497. package/dist/plugin/provider/gitlab.js +4 -4
  498. package/dist/plugin/provider/google-vertex.js +3 -3
  499. package/dist/plugin/provider/kilo.js +3 -3
  500. package/dist/plugin/provider/llmgateway.js +77 -77
  501. package/dist/plugin/provider/lmstudio.js +120 -120
  502. package/dist/plugin/provider/mistral.js +3 -3
  503. package/dist/plugin/provider/nvidia.js +3 -3
  504. package/dist/plugin/provider/ollama.js +120 -120
  505. package/dist/plugin/provider/openai-compatible.js +2 -2
  506. package/dist/plugin/provider/openai.js +79 -79
  507. package/dist/plugin/provider/opencode.js +93 -93
  508. package/dist/plugin/provider/openrouter.js +4 -4
  509. package/dist/plugin/provider/perplexity.js +3 -3
  510. package/dist/plugin/provider/sap-ai-core.js +4 -4
  511. package/dist/plugin/provider/sdk-factory.js +2 -2
  512. package/dist/plugin/provider/snowflake-cortex.js +3 -3
  513. package/dist/plugin/provider/venice.js +3 -3
  514. package/dist/plugin/provider/vercel.js +3 -3
  515. package/dist/plugin/provider/vllm.js +120 -120
  516. package/dist/plugin/provider/xai.js +78 -78
  517. package/dist/plugin/provider/zenmux.js +3 -3
  518. package/dist/plugin/provider.js +159 -159
  519. package/dist/plugin/runtime.js +190 -162
  520. package/dist/plugin/sdk.js +69 -69
  521. package/dist/plugin/skill.js +133 -133
  522. package/dist/plugin/source-directory.js +2 -2
  523. package/dist/plugin/supervisor-service.js +2 -2
  524. package/dist/plugin/supervisor.js +312 -308
  525. package/dist/plugin/system-prompt.js +2 -2
  526. package/dist/plugin/variant.js +3 -4
  527. package/dist/plugin/vcs/git.js +87 -85
  528. package/dist/plugin/vcs/hg.js +87 -85
  529. package/dist/plugin/warming.js +114 -115
  530. package/dist/plugin/websearch/exa.js +4 -4
  531. package/dist/plugin/websearch/firecrawl.js +5 -5
  532. package/dist/plugin/websearch/index.js +9 -9
  533. package/dist/plugin/websearch/mcp.js +3 -3
  534. package/dist/plugin/websearch/parallel.js +5 -5
  535. package/dist/plugin/websearch/tavily.js +3 -3
  536. package/dist/plugin.js +203 -175
  537. package/dist/project/markers.js +74 -74
  538. package/dist/project/schema.js +3 -3
  539. package/dist/project/sql.js +5 -5
  540. package/dist/project.js +82 -82
  541. package/dist/provider.js +2 -2
  542. package/dist/pty/protocol.js +1 -1
  543. package/dist/pty/pty.bun.js +1 -1
  544. package/dist/pty/pty.node.js +1 -1
  545. package/dist/pty/pty.workerd.js +1 -1
  546. package/dist/pty/schema.js +2 -2
  547. package/dist/pty/ticket.js +2 -70
  548. package/dist/pty.js +89 -89
  549. package/dist/reference/instructions.js +77 -77
  550. package/dist/reference.js +75 -75
  551. package/dist/repository-cache.js +7 -7
  552. package/dist/repository.js +2 -2
  553. package/dist/ripgrep/binary.js +3 -3
  554. package/dist/ripgrep.js +94 -94
  555. package/dist/schema.js +2 -2
  556. package/dist/session/compaction.js +118 -118
  557. package/dist/session/context.js +322 -318
  558. package/dist/session/environment.js +3 -3
  559. package/dist/session/error.js +26 -4
  560. package/dist/session/event.js +2 -2
  561. package/dist/session/execution/restart.js +202 -184
  562. package/dist/session/execution.js +122 -122
  563. package/dist/session/generate-node.js +323 -319
  564. package/dist/session/generate.js +2 -2
  565. package/dist/session/history.js +77 -77
  566. package/dist/session/inbox.js +86 -90
  567. package/dist/session/info.js +4 -4
  568. package/dist/session/instruction-entry.js +73 -73
  569. package/dist/session/instruction-state.js +10 -10
  570. package/dist/session/instructions.js +94 -94
  571. package/dist/session/message-updater.js +4 -4
  572. package/dist/session/message.js +2 -2
  573. package/dist/session/model-request.js +139 -139
  574. package/dist/session/model-transport.js +5 -5
  575. package/dist/session/projector.js +83 -83
  576. package/dist/session/prompt-node.js +320 -0
  577. package/dist/session/prompt.js +130 -0
  578. package/dist/session/revert-node.js +320 -0
  579. package/dist/session/revert.js +100 -95
  580. package/dist/session/run-coordinator.js +2 -2
  581. package/dist/session/runner/index.js +84 -84
  582. package/dist/session/runner/llm.js +328 -324
  583. package/dist/session/runner/max-steps.js +2 -2
  584. package/dist/session/runner/model.js +83 -83
  585. package/dist/session/runner/publish-llm-event.js +4 -4
  586. package/dist/session/runner/retry.js +74 -74
  587. package/dist/session/runner/step.js +148 -148
  588. package/dist/session/runner/to-llm-message.js +2 -2
  589. package/dist/session/schema.js +2 -2
  590. package/dist/session/session.js +181 -0
  591. package/dist/session/sql.js +6 -6
  592. package/dist/session/stats.js +72 -72
  593. package/dist/session/store.js +82 -80
  594. package/dist/session/subagent-completion.js +9 -0
  595. package/dist/session/system-prompt.js +2 -2
  596. package/dist/session/title.js +323 -319
  597. package/dist/session/to-session-error.js +113 -113
  598. package/dist/session/transfer.js +191 -168
  599. package/dist/session/usage.js +2 -2
  600. package/dist/session.js +196 -168
  601. package/dist/shell/parse.js +7 -7
  602. package/dist/shell/parser-wasm.bun.js +1 -1
  603. package/dist/shell/parser-wasm.node.js +1 -1
  604. package/dist/shell/parser-wasm.workerd.js +1 -1
  605. package/dist/shell/result.js +19 -0
  606. package/dist/shell/scan.js +1 -1
  607. package/dist/shell/select.js +4 -4
  608. package/dist/shell.js +132 -99
  609. package/dist/skill/discovery.js +3 -3
  610. package/dist/skill/instructions.js +102 -102
  611. package/dist/skill.js +101 -101
  612. package/dist/snapshot.js +85 -85
  613. package/dist/state.js +2 -2
  614. package/dist/tool/html-markdown.js +2 -2
  615. package/dist/tool/http-body.js +2 -2
  616. package/dist/tool/mcp.js +126 -126
  617. package/dist/tool/plugin/edit.js +113 -113
  618. package/dist/tool/plugin/file-diff.js +2 -2
  619. package/dist/tool/plugin/glob.js +116 -116
  620. package/dist/tool/plugin/grep.js +116 -116
  621. package/dist/tool/plugin/patch.js +113 -113
  622. package/dist/tool/plugin/question.js +102 -102
  623. package/dist/tool/plugin/read.js +119 -119
  624. package/dist/tool/plugin/shell.js +193 -190
  625. package/dist/tool/plugin/skill.js +102 -102
  626. package/dist/tool/plugin/subagent.js +192 -187
  627. package/dist/tool/plugin/webfetch.js +103 -103
  628. package/dist/tool/plugin/websearch.js +105 -105
  629. package/dist/tool/plugin/write.js +113 -113
  630. package/dist/tool/read-filesystem.js +99 -99
  631. package/dist/tool/runtime.js +2 -2
  632. package/dist/tool-output.js +5 -5
  633. package/dist/tool.js +119 -119
  634. package/dist/types/database/drizzle/effect-sqlite/driver.d.ts +7 -7
  635. package/dist/types/database/drizzle/sqlite-core/effect/insert.d.ts +0 -1
  636. package/dist/types/github-copilot/responses/openai-responses-prepare-tools.d.ts +9 -1
  637. package/dist/types/image/photon.d.ts +2 -7
  638. package/dist/types/instance.d.ts +2 -2
  639. package/dist/types/instructions/builtins.d.ts +2 -2
  640. package/dist/types/location-service-map.d.ts +2 -2
  641. package/dist/types/mcp/client.d.ts +3 -0
  642. package/dist/types/mcp/index.d.ts +2 -0
  643. package/dist/types/persistent-pty/index.d.ts +3 -22
  644. package/dist/types/plugin/host.d.ts +9 -19
  645. package/dist/types/plugin/runtime.d.ts +1 -1
  646. package/dist/types/plugin/variant.d.ts +1 -1
  647. package/dist/types/project.d.ts +1 -0
  648. package/dist/types/pty/ticket.d.ts +1 -1
  649. package/dist/types/session/error.d.ts +115 -0
  650. package/dist/types/session/execution.d.ts +2 -0
  651. package/dist/types/session/inbox.d.ts +557 -176
  652. package/dist/types/session/model-request.d.ts +3 -2
  653. package/dist/types/session/prompt-node.d.ts +3 -0
  654. package/dist/types/session/prompt.d.ts +126 -0
  655. package/dist/types/session/revert-node.d.ts +3 -0
  656. package/dist/types/session/revert.d.ts +24 -29
  657. package/dist/types/session/run-coordinator.d.ts +2 -0
  658. package/dist/types/session/runner/model.d.ts +6 -6
  659. package/dist/types/session/runner/publish-llm-event.d.ts +7 -5
  660. package/dist/types/session/runner/retry.d.ts +28 -4
  661. package/dist/types/session/runner/step.d.ts +21 -17
  662. package/dist/types/session/runner/to-llm-message.d.ts +1 -1
  663. package/dist/types/session/session.d.ts +238 -0
  664. package/dist/types/session/store.d.ts +79 -1
  665. package/dist/types/session/subagent-completion.d.ts +10 -0
  666. package/dist/types/session.d.ts +19 -157
  667. package/dist/types/shell/result.d.ts +54 -0
  668. package/dist/types/shell.d.ts +2 -0
  669. package/dist/types/skill.d.ts +1 -1
  670. package/dist/types/vcs.d.ts +12 -4
  671. package/dist/util/array.js +1 -1
  672. package/dist/util/error.js +2 -2
  673. package/dist/util/identifier.js +1 -1
  674. package/dist/util/iife.js +2 -2
  675. package/dist/util/lazy.js +2 -2
  676. package/dist/util/process-lock-ffi.bun.js +1 -1
  677. package/dist/util/process-lock-ffi.node.js +1 -1
  678. package/dist/util/process-lock-ffi.workerd.js +1 -1
  679. package/dist/util/process-lock.js +1 -1
  680. package/dist/util/slug.js +2 -2
  681. package/dist/util/token.js +2 -2
  682. package/dist/util/which.js +2 -2
  683. package/dist/util/wildcard.js +2 -2
  684. package/dist/v1/config/agent.js +4 -4
  685. package/dist/v1/config/attachment.js +3 -3
  686. package/dist/v1/config/command.js +2 -2
  687. package/dist/v1/config/config.js +15 -15
  688. package/dist/v1/config/error.js +3 -3
  689. package/dist/v1/config/formatter.js +2 -2
  690. package/dist/v1/config/layout.js +2 -2
  691. package/dist/v1/config/lsp.js +2 -2
  692. package/dist/v1/config/mcp.js +3 -3
  693. package/dist/v1/config/migrate.js +19 -19
  694. package/dist/v1/config/permission.js +2 -2
  695. package/dist/v1/config/plugin.js +2 -2
  696. package/dist/v1/config/provider-options.js +2 -2
  697. package/dist/v1/config/provider.js +3 -3
  698. package/dist/v1/config/server.js +3 -3
  699. package/dist/v1/config/skills.js +2 -2
  700. package/dist/v1/permission.js +1 -1
  701. package/dist/vcs/patch.js +2 -2
  702. package/dist/vcs.js +91 -87
  703. package/dist/websearch.js +73 -73
  704. package/dist/wellknown/plugin.js +73 -73
  705. package/dist/wellknown.js +72 -72
  706. package/dist/workspace/driver.js +2 -2
  707. package/dist/workspace/sql.js +2 -2
  708. package/dist/workspace.js +69 -69
  709. package/dist/worktree/directory.js +3 -3
  710. package/dist/worktree/git.js +7 -7
  711. package/dist/worktree/sql.js +6 -6
  712. package/dist/worktree.js +87 -87
  713. package/package.json +7 -7
  714. package/dist/chunks/project-7yga2xb3.js +0 -115
  715. package/dist/chunks/project-fb7nfzf2.js +0 -71
  716. package/dist/chunks/project-p2k7bd69.js +0 -924
  717. package/dist/chunks/project-tqf07m3e.js +0 -62
  718. package/dist/chunks/project-vjmn5wwb.js +0 -67
  719. package/dist/config/file.js +0 -128
  720. package/dist/types/config/file.d.ts +0 -17
  721. /package/dist/chunks/{project-0cgt0xh2.js → model-0cgt0xh2.js} +0 -0
  722. /package/dist/chunks/{project-0f48qthw.js → model-0f48qthw.js} +0 -0
  723. /package/dist/chunks/{project-0zz82cjq.js → model-0zz82cjq.js} +0 -0
  724. /package/dist/chunks/{project-1fb7bmpf.js → model-1fb7bmpf.js} +0 -0
  725. /package/dist/chunks/{project-1wcz8fvj.js → model-1wcz8fvj.js} +0 -0
  726. /package/dist/chunks/{project-29n7vfk2.js → model-29n7vfk2.js} +0 -0
  727. /package/dist/chunks/{project-2qdx6zz3.js → model-2qdx6zz3.js} +0 -0
  728. /package/dist/chunks/{project-2xb0r1c6.js → model-2xb0r1c6.js} +0 -0
  729. /package/dist/chunks/{project-39ktntah.js → model-39ktntah.js} +0 -0
  730. /package/dist/chunks/{project-3g3rpp2x.js → model-3g3rpp2x.js} +0 -0
  731. /package/dist/chunks/{project-3w3ybtfd.js → model-3w3ybtfd.js} +0 -0
  732. /package/dist/chunks/{project-47ty4mvs.js → model-47ty4mvs.js} +0 -0
  733. /package/dist/chunks/{project-4b2tz2m9.js → model-4b2tz2m9.js} +0 -0
  734. /package/dist/chunks/{project-5a5ch9ts.js → model-5a5ch9ts.js} +0 -0
  735. /package/dist/chunks/{project-5va1yh78.js → model-5va1yh78.js} +0 -0
  736. /package/dist/chunks/{project-61ek4hj9.js → model-61ek4hj9.js} +0 -0
  737. /package/dist/chunks/{project-69qrqpw0.js → model-69qrqpw0.js} +0 -0
  738. /package/dist/chunks/{project-6zqxzw0a.js → model-6zqxzw0a.js} +0 -0
  739. /package/dist/chunks/{project-7n9qwqk4.js → model-7n9qwqk4.js} +0 -0
  740. /package/dist/chunks/{project-8nn8kqcn.js → model-8nn8kqcn.js} +0 -0
  741. /package/dist/chunks/{project-8rpfd2h6.js → model-8rpfd2h6.js} +0 -0
  742. /package/dist/chunks/{project-8sj3ajy5.js → model-8sj3ajy5.js} +0 -0
  743. /package/dist/chunks/{project-8w9tzfz1.js → model-8w9tzfz1.js} +0 -0
  744. /package/dist/chunks/{project-906y0b6d.js → model-906y0b6d.js} +0 -0
  745. /package/dist/chunks/{project-9dct5xhx.js → model-9dct5xhx.js} +0 -0
  746. /package/dist/chunks/{project-9maxscqf.js → model-9maxscqf.js} +0 -0
  747. /package/dist/chunks/{project-9sdtsapf.js → model-9sdtsapf.js} +0 -0
  748. /package/dist/chunks/{project-a02svayp.js → model-a02svayp.js} +0 -0
  749. /package/dist/chunks/{project-a83yvq99.js → model-a83yvq99.js} +0 -0
  750. /package/dist/chunks/{project-ayevdmef.js → model-ayevdmef.js} +0 -0
  751. /package/dist/chunks/{project-b02txbh8.js → model-b02txbh8.js} +0 -0
  752. /package/dist/chunks/{project-bbqs2y60.js → model-bbqs2y60.js} +0 -0
  753. /package/dist/chunks/{project-bjwj8hwv.js → model-bjwj8hwv.js} +0 -0
  754. /package/dist/chunks/{project-brsh5f65.js → model-brsh5f65.js} +0 -0
  755. /package/dist/chunks/{project-bxdhjb3y.js → model-bxdhjb3y.js} +0 -0
  756. /package/dist/chunks/{project-c77ad0vh.js → model-c77ad0vh.js} +0 -0
  757. /package/dist/chunks/{project-cm67rqy2.js → model-cm67rqy2.js} +0 -0
  758. /package/dist/chunks/{project-df3v2q6j.js → model-df3v2q6j.js} +0 -0
  759. /package/dist/chunks/{project-dhcq6c44.js → model-dhcq6c44.js} +0 -0
  760. /package/dist/chunks/{project-dht5baf0.js → model-dht5baf0.js} +0 -0
  761. /package/dist/chunks/{project-dkmkay92.js → model-dkmkay92.js} +0 -0
  762. /package/dist/chunks/{project-ehj9csmv.js → model-ehj9csmv.js} +0 -0
  763. /package/dist/chunks/{project-em6xpscd.js → model-em6xpscd.js} +0 -0
  764. /package/dist/chunks/{project-emmqknsm.js → model-emmqknsm.js} +0 -0
  765. /package/dist/chunks/{project-ezs3tagn.js → model-ezs3tagn.js} +0 -0
  766. /package/dist/chunks/{project-f14r7hfz.js → model-f14r7hfz.js} +0 -0
  767. /package/dist/chunks/{project-f1jj19e8.js → model-f1jj19e8.js} +0 -0
  768. /package/dist/chunks/{project-f4cp4g4a.js → model-f4cp4g4a.js} +0 -0
  769. /package/dist/chunks/{project-faypg4r1.js → model-faypg4r1.js} +0 -0
  770. /package/dist/chunks/{project-fg7fz4q3.js → model-fg7fz4q3.js} +0 -0
  771. /package/dist/chunks/{project-fgbfdq62.js → model-fgbfdq62.js} +0 -0
  772. /package/dist/chunks/{project-gd5xeqc2.js → model-gd5xeqc2.js} +0 -0
  773. /package/dist/chunks/{project-ghm4673n.js → model-ghm4673n.js} +0 -0
  774. /package/dist/chunks/{project-ghwjy7my.js → model-ghwjy7my.js} +0 -0
  775. /package/dist/chunks/{project-gy500k2r.js → model-gy500k2r.js} +0 -0
  776. /package/dist/chunks/{project-hzeg9cfr.js → model-hzeg9cfr.js} +0 -0
  777. /package/dist/chunks/{project-j07kk359.js → model-j07kk359.js} +0 -0
  778. /package/dist/chunks/{project-j32vdj8r.js → model-j32vdj8r.js} +0 -0
  779. /package/dist/chunks/{project-jqms80b0.js → model-jqms80b0.js} +0 -0
  780. /package/dist/chunks/{project-jve7t217.js → model-jve7t217.js} +0 -0
  781. /package/dist/chunks/{project-k3e42drn.js → model-k3e42drn.js} +0 -0
  782. /package/dist/chunks/{project-k8b45nas.js → model-k8b45nas.js} +0 -0
  783. /package/dist/chunks/{project-kpdbz7gn.js → model-kpdbz7gn.js} +0 -0
  784. /package/dist/chunks/{project-kxy11nzk.js → model-kxy11nzk.js} +0 -0
  785. /package/dist/chunks/{project-kyyqvx4s.js → model-kyyqvx4s.js} +0 -0
  786. /package/dist/chunks/{project-m8cbvarh.js → model-m8cbvarh.js} +0 -0
  787. /package/dist/chunks/{project-ma60vzgv.js → model-ma60vzgv.js} +0 -0
  788. /package/dist/chunks/{project-n3m50c2t.js → model-n3m50c2t.js} +0 -0
  789. /package/dist/chunks/{project-n6ag8q95.js → model-n6ag8q95.js} +0 -0
  790. /package/dist/chunks/{project-nkm1m8dz.js → model-nkm1m8dz.js} +0 -0
  791. /package/dist/chunks/{project-nsc0c3zb.js → model-nsc0c3zb.js} +0 -0
  792. /package/dist/chunks/{project-qaarhjrp.js → model-qaarhjrp.js} +0 -0
  793. /package/dist/chunks/{project-qc167nrn.js → model-qc167nrn.js} +0 -0
  794. /package/dist/chunks/{project-qp95y4jb.js → model-qp95y4jb.js} +0 -0
  795. /package/dist/chunks/{project-r8f4w671.js → model-r8f4w671.js} +0 -0
  796. /package/dist/chunks/{project-rdfev9jy.js → model-rdfev9jy.js} +0 -0
  797. /package/dist/chunks/{project-rvfvac9x.js → model-rvfvac9x.js} +0 -0
  798. /package/dist/chunks/{project-s7whb9gt.js → model-s7whb9gt.js} +0 -0
  799. /package/dist/chunks/{project-se76j685.js → model-se76j685.js} +0 -0
  800. /package/dist/chunks/{project-sem2g21k.js → model-sem2g21k.js} +0 -0
  801. /package/dist/chunks/{project-sp575ygv.js → model-sp575ygv.js} +0 -0
  802. /package/dist/chunks/{project-tmb1f636.js → model-tmb1f636.js} +0 -0
  803. /package/dist/chunks/{project-ttxf0gsy.js → model-ttxf0gsy.js} +0 -0
  804. /package/dist/chunks/{project-tvmhrvfj.js → model-tvmhrvfj.js} +0 -0
  805. /package/dist/chunks/{project-v2adqbbe.js → model-v2adqbbe.js} +0 -0
  806. /package/dist/chunks/{project-vac9eqd2.js → model-vac9eqd2.js} +0 -0
  807. /package/dist/chunks/{project-wj4sxzqa.js → model-wj4sxzqa.js} +0 -0
  808. /package/dist/chunks/{project-wwntjmk1.js → model-wwntjmk1.js} +0 -0
  809. /package/dist/chunks/{project-wyqjaaa5.js → model-wyqjaaa5.js} +0 -0
  810. /package/dist/chunks/{project-x4q807cx.js → model-x4q807cx.js} +0 -0
  811. /package/dist/chunks/{project-yrqrg4vp.js → model-yrqrg4vp.js} +0 -0
  812. /package/dist/chunks/{project-z47nswr2.js → model-z47nswr2.js} +0 -0
  813. /package/dist/chunks/{project-zsf8rs93.js → model-zsf8rs93.js} +0 -0
@@ -1,31 +1,37 @@
1
1
  import {
2
2
  exports_environment as exports_environment2
3
- } from "./project-6ky7rqk7.js";
3
+ } from "./model-6ky7rqk7.js";
4
4
  import {
5
5
  exports_hooks
6
- } from "./project-v2wshkax.js";
6
+ } from "./model-v2wshkax.js";
7
7
  import {
8
8
  SessionSchema
9
- } from "./project-bjwj8hwv.js";
9
+ } from "./model-bjwj8hwv.js";
10
10
  import {
11
- exports_environment1 as exports_environment
12
- } from "./project-0xzcm754.js";
11
+ exports_tool_output
12
+ } from "./model-7ccgh94t.js";
13
13
  import {
14
14
  exports_file_retention
15
- } from "./project-hp6rpdnc.js";
15
+ } from "./model-hp6rpdnc.js";
16
16
  import {
17
- exports_select
18
- } from "./project-bbhffenw.js";
17
+ exports_environment1 as exports_environment
18
+ } from "./model-bach7bae.js";
19
+ import {
20
+ exports_config
21
+ } from "./model-qmpdqet2.js";
19
22
  import {
20
23
  exports_location
21
- } from "./project-pm12wdxj.js";
24
+ } from "./model-xy3y21dp.js";
25
+ import {
26
+ exports_select
27
+ } from "./model-bbhffenw.js";
22
28
  import {
23
29
  exports_bus
24
- } from "./project-gy9zm4ck.js";
30
+ } from "./model-vwkfg4n5.js";
25
31
  import {
26
32
  __export,
27
33
  __require
28
- } from "./project-rvfvac9x.js";
34
+ } from "./model-rvfvac9x.js";
29
35
 
30
36
  // src/shell.ts
31
37
  var exports_shell = {};
@@ -79,49 +85,50 @@ var layer = () => Layer.effect(Service, Effect.gen(function* () {
79
85
  const environment = yield* exports_environment.Service;
80
86
  const hooks = yield* exports_hooks.Service;
81
87
  const environments = yield* exports_environment2.Service;
88
+ const config = yield* exports_config.Service;
82
89
  const context = yield* Effect.context();
83
90
  const runFork = Effect.runForkWith(context);
84
- const sessions = new Map;
91
+ const commands = new Map;
85
92
  const exitOrder = [];
86
93
  const outputDir = path.join(global.data, DIRECTORY, location.project.id);
87
94
  const { mkdir, unlink } = yield* Effect.promise(() => import("fs/promises"));
88
95
  const { createWriteStream, createReadStream } = yield* Effect.promise(() => import("fs"));
89
96
  yield* Effect.promise(() => mkdir(outputDir, { recursive: true }));
90
97
  yield* Effect.addFinalizer(() => Effect.gen(function* () {
91
- for (const session of sessions.values()) {
92
- if (session.timeoutFiber)
93
- yield* Fiber.interrupt(session.timeoutFiber);
94
- yield* Deferred.interrupt(session.done);
98
+ for (const command of commands.values()) {
99
+ if (command.timeoutFiber)
100
+ yield* Fiber.interrupt(command.timeoutFiber);
101
+ yield* Deferred.interrupt(command.done);
95
102
  }
96
- sessions.clear();
103
+ commands.clear();
97
104
  exitOrder.length = 0;
98
105
  }));
99
106
  const require2 = Effect.fnUntraced(function* (id) {
100
- const session = sessions.get(id);
101
- if (!session)
107
+ const command = commands.get(id);
108
+ if (!command)
102
109
  return yield* new NotFoundError({ id });
103
- return session;
110
+ return command;
104
111
  });
105
- const removeSession = Effect.fnUntraced(function* (id) {
106
- const session = sessions.get(id);
112
+ const removeCommand = Effect.fnUntraced(function* (id) {
113
+ const command = commands.get(id);
107
114
  const index = exitOrder.indexOf(id);
108
115
  if (index !== -1)
109
116
  exitOrder.splice(index, 1);
110
- if (!session)
117
+ if (!command)
111
118
  return;
112
- sessions.delete(id);
113
- if (session.timeoutFiber)
114
- yield* Fiber.interrupt(session.timeoutFiber);
115
- yield* Deferred.fail(session.done, new NotFoundError({ id }));
116
- yield* Effect.promise(() => unlink(session.file).catch(() => {}));
119
+ commands.delete(id);
120
+ if (command.timeoutFiber)
121
+ yield* Fiber.interrupt(command.timeoutFiber);
122
+ yield* Deferred.fail(command.done, new NotFoundError({ id }));
123
+ yield* Effect.promise(() => unlink(command.file).catch(() => {}));
117
124
  yield* bus.publish(Shell.Event.Deleted, { id });
118
125
  });
119
126
  const remove = Effect.fn("Shell.remove")(function* (id) {
120
127
  yield* require2(id);
121
- yield* removeSession(id);
128
+ yield* removeCommand(id);
122
129
  });
123
130
  const list = Effect.fn("Shell.list")(function* () {
124
- return Array.from(sessions.values()).filter((session) => session.info.status === "running").map((session) => session.info);
131
+ return Array.from(commands.values()).filter((command) => command.info.status === "running").map((command) => command.info);
125
132
  });
126
133
  const get = Effect.fn("Shell.get")(function* (id) {
127
134
  return (yield* require2(id)).info;
@@ -130,23 +137,23 @@ var layer = () => Layer.effect(Service, Effect.gen(function* () {
130
137
  return yield* Deferred.await((yield* require2(id)).done);
131
138
  });
132
139
  const timeout = Effect.fn("Shell.timeout")(function* (id, duration) {
133
- const session = yield* require2(id);
134
- if (session.info.status !== "running" || !session.timeout)
135
- return session.info;
136
- yield* session.timeout(duration);
137
- return session.info;
140
+ const command = yield* require2(id);
141
+ if (command.info.status !== "running" || !command.timeout)
142
+ return command.info;
143
+ yield* command.timeout(duration);
144
+ return command.info;
138
145
  });
139
146
  const output = Effect.fnUntraced(function* (id, input) {
140
- const session = yield* require2(id);
147
+ const command = yield* require2(id);
141
148
  const cursor = input?.cursor ?? 0;
142
149
  const limit = input?.limit ?? 65536;
143
- if (cursor >= session.size)
144
- return { output: "", cursor: session.size, size: session.size, truncated: false };
150
+ if (cursor >= command.size)
151
+ return { output: "", cursor: command.size, size: command.size, truncated: false };
145
152
  const start = Math.max(0, cursor);
146
- const length = Math.min(limit, session.size - start);
153
+ const length = Math.min(limit, command.size - start);
147
154
  const buffer = Buffer.alloc(length);
148
155
  const bytesRead = yield* Effect.promise(() => new Promise((resolve) => {
149
- const stream = createReadStream(session.file, { start, end: start + length - 1 });
156
+ const stream = createReadStream(command.file, { start, end: start + length - 1 });
150
157
  let offset = 0;
151
158
  stream.on("data", (chunk) => {
152
159
  const bytes = Buffer.from(chunk);
@@ -159,10 +166,33 @@ var layer = () => Layer.effect(Service, Effect.gen(function* () {
159
166
  return {
160
167
  output: buffer.subarray(0, bytesRead).toString("utf8"),
161
168
  cursor: start + bytesRead,
162
- size: session.size,
169
+ size: command.size,
163
170
  truncated: false
164
171
  };
165
172
  });
173
+ const result = Effect.fn("Shell.result")(function* (started) {
174
+ const info = yield* wait(started.id).pipe(Effect.catchTag("Shell.NotFoundError", () => Effect.succeed({ ...started, status: "killed", time: { ...started.time, completed: Date.now() } })));
175
+ const capture = yield* Effect.gen(function* () {
176
+ const limits = exports_config.latest(yield* config.entries(), "tool_output");
177
+ const maxLines = limits?.max_lines ?? exports_tool_output.MAX_LINES;
178
+ const maxBytes = limits?.max_bytes ?? exports_tool_output.MAX_BYTES;
179
+ const latest = yield* output(info.id, { cursor: Number.MAX_SAFE_INTEGER });
180
+ const page = yield* output(info.id, { cursor: Math.max(0, latest.size - maxBytes), limit: maxBytes });
181
+ const lines = page.output.split(`
182
+ `);
183
+ if (page.output.endsWith(`
184
+ `))
185
+ lines.pop();
186
+ const truncated = latest.size > maxBytes || lines.length > maxLines;
187
+ const text = lines.length > maxLines ? lines.slice(-maxLines).join(`
188
+ `) : page.output;
189
+ const notice = truncated ? `
190
+
191
+ [output truncated; full output saved to: ${info.file}]` : "";
192
+ return { output: `${text || "(no output)"}${notice}`, truncated };
193
+ }).pipe(Effect.catchTag("Shell.NotFoundError", () => Effect.succeed(undefined)));
194
+ return { info, capture };
195
+ });
166
196
  const create = Effect.fn("Shell.create")(function* (input, before) {
167
197
  const sessionID = input.metadata?.sessionID;
168
198
  const sessionEnvironment = location.workspaceID === undefined && Schema.is(SessionSchema.ID)(sessionID) ? yield* environments.get(sessionID) : undefined;
@@ -202,7 +232,7 @@ var layer = () => Layer.effect(Service, Effect.gen(function* () {
202
232
  detached: process.platform !== "win32",
203
233
  forceKillAfter: Duration.seconds(3)
204
234
  })).pipe(Effect.mapError((cause) => new AppProcess.AppProcessError({ command: invocation.command, cause })));
205
- const session2 = {
235
+ const command2 = {
206
236
  info: produce(info, (draft) => {
207
237
  draft.pid = handle.pid;
208
238
  }),
@@ -210,12 +240,12 @@ var layer = () => Layer.effect(Service, Effect.gen(function* () {
210
240
  size: 0,
211
241
  done: Deferred.makeUnsafe()
212
242
  };
213
- sessions.set(id, session2);
243
+ commands.set(id, command2);
214
244
  const stream = createWriteStream(file);
215
245
  const outputDone = Latch.makeUnsafe();
216
246
  const pump = handle.all.pipe(Stream.runForEach((chunk) => Effect.sync(() => {
217
247
  stream.write(chunk);
218
- session2.size += chunk.length;
248
+ command2.size += chunk.length;
219
249
  })));
220
250
  runFork(Effect.gen(function* () {
221
251
  yield* pump.pipe(Effect.catch(() => Effect.void));
@@ -229,9 +259,9 @@ var layer = () => Layer.effect(Service, Effect.gen(function* () {
229
259
  stream.once("error", () => resolve());
230
260
  }));
231
261
  const finish = (status, exit, beforeWait = Effect.void) => Effect.gen(function* () {
232
- if (session2.info.status !== "running")
262
+ if (command2.info.status !== "running")
233
263
  return;
234
- session2.info = produce(session2.info, (draft) => {
264
+ command2.info = produce(command2.info, (draft) => {
235
265
  draft.status = status;
236
266
  if (exit !== undefined)
237
267
  draft.exit = exit;
@@ -239,7 +269,7 @@ var layer = () => Layer.effect(Service, Effect.gen(function* () {
239
269
  });
240
270
  yield* beforeWait;
241
271
  yield* outputDone.await;
242
- yield* Deferred.succeed(session2.done, session2.info);
272
+ yield* Deferred.succeed(command2.done, command2.info);
243
273
  yield* bus.publish(Shell.Event.Exited, {
244
274
  id,
245
275
  ...exit !== undefined ? { exit } : {},
@@ -250,29 +280,32 @@ var layer = () => Layer.effect(Service, Effect.gen(function* () {
250
280
  const oldest = exitOrder[0];
251
281
  if (!oldest)
252
282
  break;
253
- yield* removeSession(Shell.ID.make(oldest));
283
+ yield* removeCommand(oldest);
254
284
  }
255
- if (session2.timeoutFiber)
256
- yield* Fiber.interrupt(session2.timeoutFiber);
285
+ const timeoutFiber = command2.timeoutFiber;
286
+ command2.timeout = undefined;
287
+ command2.timeoutFiber = undefined;
288
+ if (timeoutFiber)
289
+ yield* Fiber.interrupt(timeoutFiber);
257
290
  });
258
- session2.timeout = (duration) => Effect.gen(function* () {
259
- if (session2.timeoutFiber)
260
- yield* Fiber.interrupt(session2.timeoutFiber);
261
- session2.timeoutFiber = undefined;
262
- if (duration === 0 || session2.info.status !== "running")
291
+ command2.timeout = (duration) => Effect.gen(function* () {
292
+ if (command2.timeoutFiber)
293
+ yield* Fiber.interrupt(command2.timeoutFiber);
294
+ command2.timeoutFiber = undefined;
295
+ if (duration === 0 || command2.info.status !== "running")
263
296
  return;
264
- session2.timeoutFiber = runFork(Effect.sleep(Duration.millis(duration)).pipe(Effect.flatMap(() => finish("timeout", undefined, handle.kill().pipe(Effect.catch(() => Effect.void))))));
297
+ command2.timeoutFiber = runFork(Effect.sleep(Duration.millis(duration)).pipe(Effect.flatMap(() => finish("timeout", undefined, handle.kill().pipe(Effect.catch(() => Effect.void))))));
265
298
  });
266
- yield* session2.timeout(invocation.timeout);
299
+ yield* command2.timeout(invocation.timeout);
267
300
  runFork(handle.exitCode.pipe(Effect.flatMap((code) => finish("exited", code)), Effect.catch(() => finish("exited"))));
268
301
  yield* bus.publish(Shell.Event.Created, { info });
269
- yield* Deferred.succeed(ready, session2);
270
- yield* Deferred.await(session2.done).pipe(Effect.catch(() => Effect.void));
302
+ yield* Deferred.succeed(ready, command2);
303
+ yield* Deferred.await(command2.done).pipe(Effect.catch(() => Effect.void));
271
304
  })).pipe(Effect.catchTag("AppProcessError", (error) => Deferred.fail(ready, error))));
272
- const session = yield* Deferred.await(ready);
273
- return session.info;
305
+ const command = yield* Deferred.await(ready);
306
+ return command.info;
274
307
  });
275
- return Service.of({ create, list, get, wait, timeout, output, remove });
308
+ return Service.of({ create, list, get, wait, result, timeout, output, remove });
276
309
  }));
277
310
  var node = makeLocationNode({
278
311
  service: Service,
@@ -285,6 +318,7 @@ var node = makeLocationNode({
285
318
  exports_environment.node,
286
319
  exports_hooks.node,
287
320
  exports_environment2.node,
321
+ exports_config.node,
288
322
  cleanupNode
289
323
  ]
290
324
  });
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  __export
3
- } from "./project-rvfvac9x.js";
3
+ } from "./model-rvfvac9x.js";
4
4
 
5
5
  // src/session/environment.ts
6
6
  var exports_environment = {};
@@ -0,0 +1,203 @@
1
+ import {
2
+ exports_supervisor_service
3
+ } from "./model-s33fw6zm.js";
4
+ import {
5
+ exports_skill
6
+ } from "./model-9w1y4hdv.js";
7
+ import {
8
+ AttachmentError,
9
+ SkillNotFoundError
10
+ } from "./model-cgqn2mrm.js";
11
+ import {
12
+ exports_hooks
13
+ } from "./model-v2wshkax.js";
14
+ import {
15
+ exports_mime
16
+ } from "./model-dhphtf1x.js";
17
+ import {
18
+ exports_image
19
+ } from "./model-qert5162.js";
20
+ import {
21
+ __export
22
+ } from "./model-rvfvac9x.js";
23
+
24
+ // src/session/prompt.ts
25
+ var exports_prompt = {};
26
+ __export(exports_prompt, {
27
+ make: () => make,
28
+ layer: () => layer,
29
+ SessionPrompt: () => exports_prompt,
30
+ Service: () => Service
31
+ });
32
+ import { Base64, FileAttachment, Prompt } from "@opencode-ai/schema/prompt";
33
+ import { SessionInbox } from "@opencode-ai/schema/session-inbox";
34
+ import { FSUtil } from "@opencode-ai/util/fs-util";
35
+ import { Context, Effect, Layer } from "effect";
36
+ import path from "path";
37
+ import { fileURLToPath } from "url";
38
+ var make = Effect.fn("SessionPrompt.make")(function* () {
39
+ const fs = yield* FSUtil.Service;
40
+ const plugins = yield* exports_supervisor_service.Service;
41
+ const hooks = yield* exports_hooks.Service;
42
+ const image = yield* exports_image.Service;
43
+ const skillService = yield* exports_skill.Service;
44
+ const prepare = Effect.fn("SessionPrompt.prepare")(function* (request) {
45
+ yield* plugins.flush;
46
+ const event = yield* hooks.trigger("session", "prompt", {
47
+ sessionID: request.sessionID,
48
+ messageID: request.messageID,
49
+ prompt: structuredClone({
50
+ text: request.input.text,
51
+ files: request.input.files?.slice(),
52
+ agents: request.input.agents?.slice(),
53
+ skills: request.input.skills?.slice()
54
+ }),
55
+ metadata: structuredClone(request.input.metadata),
56
+ delivery: request.input.delivery ?? "steer"
57
+ });
58
+ const input = event.prompt;
59
+ const files = input.files ? yield* Effect.forEach(input.files, materializeAttachment, { concurrency: 8 }) : undefined;
60
+ const requested = input.skills;
61
+ const selected = yield* Effect.gen(function* () {
62
+ if (!requested?.length)
63
+ return;
64
+ const prepared = new Map;
65
+ return yield* Effect.forEach(requested, (attachment) => Effect.gen(function* () {
66
+ const name = prepared.get(attachment.id);
67
+ if (name !== undefined)
68
+ return { id: attachment.id, name, mention: attachment.mention };
69
+ const skill = yield* skillService.get(attachment.id);
70
+ if (!skill)
71
+ return yield* new SkillNotFoundError({ skill: attachment.id });
72
+ prepared.set(skill.id, skill.name);
73
+ return {
74
+ id: skill.id,
75
+ name: skill.name,
76
+ text: (yield* exports_skill.prepare(fs, skill).pipe(Effect.orDie)).output,
77
+ mention: attachment.mention
78
+ };
79
+ }));
80
+ });
81
+ return {
82
+ type: "user",
83
+ payload: SessionInbox.UserPayload.make({
84
+ ...Prompt.make({
85
+ text: input.text,
86
+ agents: input.agents,
87
+ files,
88
+ skills: selected?.length ? selected : undefined
89
+ }),
90
+ metadata: event.metadata
91
+ }),
92
+ delivery: SessionInbox.Delivery.make(event.delivery)
93
+ };
94
+ });
95
+ const materializeAttachment = Effect.fn("SessionPrompt.materializeAttachment")(function* (input) {
96
+ const resolved = input.uri.startsWith("data:") ? {
97
+ bytes: yield* decodeDataURL(input.uri),
98
+ source: { type: "inline" },
99
+ start: undefined,
100
+ end: undefined,
101
+ name: undefined,
102
+ mime: undefined
103
+ } : yield* readFileAttachment(input.uri);
104
+ if (resolved.bytes.byteLength > MAX_ATTACHMENT_BYTES)
105
+ return yield* new AttachmentError({
106
+ uri: input.uri,
107
+ message: `Attachment exceeds the ${MAX_ATTACHMENT_BYTES} byte limit: ${input.uri}`
108
+ });
109
+ const mime = resolved.mime ?? exports_mime.detect(resolved.bytes);
110
+ const content = mime === "text/plain" && resolved.start !== undefined ? Buffer.from(Buffer.from(resolved.bytes).toString("utf8").split(`
111
+ `).slice(resolved.start - 1, resolved.end).join(`
112
+ `)) : resolved.bytes;
113
+ const normalized = yield* normalizeImageAttachment(input, Buffer.from(content).toString("base64"), mime);
114
+ return FileAttachment.create({
115
+ data: normalized.data,
116
+ mime: normalized.mime,
117
+ source: resolved.source,
118
+ name: input.name ?? resolved.name,
119
+ description: input.description,
120
+ mention: input.mention
121
+ });
122
+ });
123
+ const normalizeImageAttachment = Effect.fn("SessionPrompt.normalizeImageAttachment")(function* (input, data, mime) {
124
+ if (!mime.startsWith("image/"))
125
+ return { data: Base64.make(data), mime };
126
+ const label = input.name ?? (input.uri.startsWith("data:") ? "inline attachment" : input.uri);
127
+ const content = { uri: label, content: data, encoding: "base64", mime };
128
+ const normalized = yield* image.normalize(label, content).pipe(Effect.catchTag("Image.ResizerUnavailableError", () => Effect.succeed(content)), Effect.mapError((error) => new AttachmentError({ uri: label, message: error.message })));
129
+ return { data: Base64.make(normalized.content), mime: normalized.mime };
130
+ });
131
+ const readFileAttachment = Effect.fn("SessionPrompt.readFileAttachment")(function* (uri) {
132
+ const url = yield* Effect.try({
133
+ try: () => new URL(uri),
134
+ catch: () => new AttachmentError({ uri, message: `Invalid attachment URI: ${uri}` })
135
+ });
136
+ if (url.protocol !== "file:")
137
+ return yield* new AttachmentError({ uri, message: `Unsupported attachment URI: ${uri}` });
138
+ const start = positiveInt(url.searchParams.get("start"));
139
+ const end = positiveInt(url.searchParams.get("end"));
140
+ const target = yield* Effect.try({
141
+ try: () => {
142
+ url.search = "";
143
+ url.hash = "";
144
+ return fileURLToPath(url);
145
+ },
146
+ catch: () => new AttachmentError({ uri, message: `Invalid file URI: ${uri}` })
147
+ });
148
+ const info = yield* fs.stat(target).pipe(Effect.mapError(() => new AttachmentError({ uri, message: `Unable to read attachment: ${uri}` })));
149
+ if (info.type === "Directory") {
150
+ const entries = yield* fs.readDirectoryEntries(target).pipe(Effect.mapError(() => new AttachmentError({ uri, message: `Unable to read attachment: ${uri}` })));
151
+ return {
152
+ bytes: Buffer.from(entries.filter((entry) => entry.type === "file" || entry.type === "directory").sort((a, b) => a.type === b.type ? a.name.localeCompare(b.name) : a.type === "directory" ? -1 : 1).map((entry) => entry.name + (entry.type === "directory" ? path.sep : "")).join(`
153
+ `)),
154
+ source: { type: "uri", uri },
155
+ start: undefined,
156
+ end: undefined,
157
+ name: path.basename(target),
158
+ mime: "application/x-directory"
159
+ };
160
+ }
161
+ if (info.type !== "File")
162
+ return yield* new AttachmentError({ uri, message: `Attachment is not a file: ${uri}` });
163
+ if (Number(info.size) > MAX_ATTACHMENT_BYTES)
164
+ return yield* new AttachmentError({
165
+ uri,
166
+ message: `Attachment exceeds the ${MAX_ATTACHMENT_BYTES} byte limit: ${uri}`
167
+ });
168
+ const bytes = yield* fs.readFile(target).pipe(Effect.mapError(() => new AttachmentError({ uri, message: `Unable to read attachment: ${uri}` })));
169
+ return { bytes, source: { type: "uri", uri }, start, end, name: path.basename(target), mime: undefined };
170
+ });
171
+ return { prepare };
172
+ });
173
+
174
+ class Service extends Context.Service()("@opencode/SessionPrompt") {
175
+ }
176
+ var layer = Layer.effect(Service, make());
177
+ var MAX_ATTACHMENT_BYTES = 20 * 1024 * 1024;
178
+ function decodeDataURL(uri) {
179
+ return Effect.try({
180
+ try: () => {
181
+ const comma = uri.indexOf(",");
182
+ if (comma === -1)
183
+ throw new Error("Invalid data URL");
184
+ const metadata = uri.slice(5, comma);
185
+ const payload = uri.slice(comma + 1);
186
+ if (!metadata.split(";").some((part) => part.toLowerCase() === "base64"))
187
+ return Buffer.from(decodeURIComponent(payload));
188
+ const bytes = Buffer.from(payload, "base64");
189
+ if (bytes.toString("base64") !== payload)
190
+ throw new Error("Non-canonical base64");
191
+ return bytes;
192
+ },
193
+ catch: () => new AttachmentError({ uri, message: "Invalid attachment data URL" })
194
+ });
195
+ }
196
+ function positiveInt(value) {
197
+ if (value === null)
198
+ return;
199
+ const parsed = Number(value);
200
+ return Number.isInteger(parsed) && parsed > 0 ? parsed : undefined;
201
+ }
202
+
203
+ export { make, Service, layer, exports_prompt };
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  exports_state
3
- } from "./project-x89rah0x.js";
3
+ } from "./model-x89rah0x.js";
4
4
  import {
5
5
  __export
6
- } from "./project-rvfvac9x.js";
6
+ } from "./model-rvfvac9x.js";
7
7
 
8
8
  // src/filesystem/location-watcher-policy.ts
9
9
  var exports_location_watcher_policy = {};
@@ -1,21 +1,21 @@
1
1
  import {
2
2
  exports_entry_observer
3
- } from "./project-kp1t5rcy.js";
3
+ } from "./model-kp1t5rcy.js";
4
4
  import {
5
5
  exports_reference
6
- } from "./project-qxsjpy8c.js";
6
+ } from "./model-pywyq33w.js";
7
7
  import {
8
8
  exports_config
9
- } from "./project-6kmefejb.js";
9
+ } from "./model-qmpdqet2.js";
10
10
  import {
11
11
  exports_location
12
- } from "./project-pm12wdxj.js";
12
+ } from "./model-xy3y21dp.js";
13
13
  import {
14
14
  AbsolutePath
15
- } from "./project-j07kk359.js";
15
+ } from "./model-j07kk359.js";
16
16
  import {
17
17
  __export
18
- } from "./project-rvfvac9x.js";
18
+ } from "./model-rvfvac9x.js";
19
19
 
20
20
  // src/config/plugin/reference.ts
21
21
  var exports_reference2 = {};
@@ -35,7 +35,6 @@ var Plugin = define({
35
35
  const global = yield* Global.Service;
36
36
  const loaded = yield* exports_entry_observer.observe(config, ctx.event, ctx.reference.reload());
37
37
  yield* ctx.reference.transform((draft) => {
38
- const entries = new Map;
39
38
  for (const doc of loaded.entries.filter((entry) => entry.type === "document")) {
40
39
  const directory = doc.path ? path.dirname(doc.path) : location.directory;
41
40
  for (const [name, entry] of Object.entries(doc.info.references ?? {})) {
@@ -43,7 +42,7 @@ var Plugin = define({
43
42
  continue;
44
43
  const description = typeof entry === "string" ? undefined : entry.description;
45
44
  const hidden = typeof entry === "string" ? undefined : entry.hidden;
46
- entries.set(name, local(entry) ? exports_reference.LocalSource.make({
45
+ draft.add(name, local(entry) ? exports_reference.LocalSource.make({
47
46
  type: "local",
48
47
  path: AbsolutePath.make(localPath(directory, global.home, typeof entry === "string" ? entry : entry.path)),
49
48
  ...description === undefined ? {} : { description },
@@ -57,8 +56,6 @@ var Plugin = define({
57
56
  }));
58
57
  }
59
58
  }
60
- for (const [name, source] of entries)
61
- draft.add(name, source);
62
59
  });
63
60
  })
64
61
  });
@@ -1,15 +1,15 @@
1
- import {
2
- exports_id
3
- } from "./project-58xdvehb.js";
4
1
  import {
5
2
  exports_file_retention
6
- } from "./project-hp6rpdnc.js";
3
+ } from "./model-hp6rpdnc.js";
4
+ import {
5
+ exports_id
6
+ } from "./model-58xdvehb.js";
7
7
  import {
8
8
  exports_state
9
- } from "./project-x89rah0x.js";
9
+ } from "./model-x89rah0x.js";
10
10
  import {
11
11
  __export
12
- } from "./project-rvfvac9x.js";
12
+ } from "./model-rvfvac9x.js";
13
13
 
14
14
  // src/tool-output.ts
15
15
  var exports_tool_output = {};
@@ -1,12 +1,12 @@
1
- import {
2
- exports_state
3
- } from "./project-x89rah0x.js";
4
1
  import {
5
2
  exports_bus
6
- } from "./project-gy9zm4ck.js";
3
+ } from "./model-vwkfg4n5.js";
4
+ import {
5
+ exports_state
6
+ } from "./model-x89rah0x.js";
7
7
  import {
8
8
  __export
9
- } from "./project-rvfvac9x.js";
9
+ } from "./model-rvfvac9x.js";
10
10
 
11
11
  // src/agent.ts
12
12
  var exports_agent = {};
@@ -1,15 +1,15 @@
1
- import {
2
- exports_integration
3
- } from "./project-pm64n062.js";
4
1
  import {
5
2
  exports_app
6
- } from "./project-50jxp3hw.js";
3
+ } from "./model-50jxp3hw.js";
4
+ import {
5
+ exports_integration
6
+ } from "./model-19vx63bj.js";
7
7
  import {
8
8
  exports_credential
9
- } from "./project-qhe68xsc.js";
9
+ } from "./model-e6tx6p0e.js";
10
10
  import {
11
11
  exports_provider
12
- } from "./project-krsqcmnj.js";
12
+ } from "./model-fex42j86.js";
13
13
 
14
14
  // src/plugin/provider/xai.ts
15
15
  import { define } from "@opencode-ai/plugin/effect/plugin";
@@ -1,15 +1,15 @@
1
- import {
2
- exports_parallel
3
- } from "./project-5fe026tx.js";
4
1
  import {
5
2
  exports_exa
6
- } from "./project-f9wt0tjw.js";
3
+ } from "./model-f9wt0tjw.js";
7
4
  import {
8
5
  exports_tavily
9
- } from "./project-bh1wr8rq.js";
6
+ } from "./model-bh1wr8rq.js";
7
+ import {
8
+ exports_parallel
9
+ } from "./model-5fe026tx.js";
10
10
  import {
11
11
  exports_firecrawl
12
- } from "./project-vqbmgfq1.js";
12
+ } from "./model-vqbmgfq1.js";
13
13
 
14
14
  // src/plugin/websearch/index.ts
15
15
  var WebSearchPlugins = [
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  __export
3
- } from "./project-rvfvac9x.js";
3
+ } from "./model-rvfvac9x.js";
4
4
 
5
5
  // src/oauth/page.ts
6
6
  var exports_page = {};