@opencode-ai/core 0.0.0-beta-18045 → 0.0.0-beta-18135

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 (774) hide show
  1. package/dist/account/sql.js +2 -2
  2. package/dist/agent.js +74 -74
  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 +72 -72
  7. package/dist/catalog.js +82 -82
  8. package/dist/chunks/{bus-02dbfq60.js → command-02dbfq60.js} +1 -1
  9. package/dist/chunks/{bus-swbxkzfg.js → command-084s09rb.js} +13 -13
  10. package/dist/chunks/{bus-0b17sr9d.js → command-0b17sr9d.js} +2 -2
  11. package/dist/chunks/{bus-5pea93sw.js → command-0c81gdfy.js} +65 -65
  12. package/dist/chunks/{bus-0kvmztkf.js → command-0kvmztkf.js} +1 -1
  13. package/dist/chunks/{bus-0vgt3zn6.js → command-0vgt3zn6.js} +2 -2
  14. package/dist/chunks/{bus-wapgt0te.js → command-186h828f.js} +3 -3
  15. package/dist/chunks/{bus-5d55tz08.js → command-187s1d59.js} +7 -7
  16. package/dist/chunks/{bus-18pv8fg3.js → command-18pv8fg3.js} +2 -2
  17. package/dist/chunks/{bus-mbf7dvsv.js → command-19nk26qg.js} +6 -6
  18. package/dist/chunks/{bus-1a3a2s70.js → command-1a3a2s70.js} +2 -2
  19. package/dist/chunks/{bus-swj2q685.js → command-1b390eyt.js} +31 -31
  20. package/dist/chunks/{bus-zzqqpkab.js → command-1h3ykf80.js} +3 -3
  21. package/dist/chunks/{bus-6ywbh8t3.js → command-1sh6xqr3.js} +11 -11
  22. package/dist/chunks/{bus-s0mwny8t.js → command-1tfhyadg.js} +3 -3
  23. package/dist/chunks/{bus-3hcvr5kf.js → command-20chrrtw.js} +3 -3
  24. package/dist/chunks/{bus-1rvveaws.js → command-25y5xk2x.js} +3 -3
  25. package/dist/chunks/{bus-4dw7d8ch.js → command-26mr2kr0.js} +3 -3
  26. package/dist/chunks/{bus-8frt7aj4.js → command-2ab7tn2m.js} +14 -14
  27. package/dist/chunks/{bus-722ne8b3.js → command-2cc57nya.js} +7 -7
  28. package/dist/chunks/{bus-fpqfp52h.js → command-2gz55kat.js} +4 -4
  29. package/dist/chunks/{bus-2nmyybe0.js → command-2nmyybe0.js} +1 -1
  30. package/dist/chunks/{bus-d6mb80w2.js → command-2x9yg6q3.js} +10 -10
  31. package/dist/chunks/{bus-5zvmnsws.js → command-2xcg0wxz.js} +4 -4
  32. package/dist/chunks/{bus-2ya5073c.js → command-2ya5073c.js} +1 -1
  33. package/dist/chunks/{bus-xe0rr21e.js → command-2ywmj6e1.js} +4 -4
  34. package/dist/chunks/{bus-2zf7hxjt.js → command-2zf7hxjt.js} +2 -2
  35. package/dist/chunks/{bus-j4m36aps.js → command-34eyhhd1.js} +2 -2
  36. package/dist/chunks/{bus-37e9hbzs.js → command-37e9hbzs.js} +2 -2
  37. package/dist/chunks/{bus-6c8bts3k.js → command-38v6f6kj.js} +3 -3
  38. package/dist/chunks/{bus-3d1t6jqf.js → command-3d1t6jqf.js} +3 -3
  39. package/dist/chunks/{bus-3g8vftxb.js → command-3g8vftxb.js} +2 -2
  40. package/dist/chunks/{bus-3gsv1x0v.js → command-3gsv1x0v.js} +2 -2
  41. package/dist/chunks/{bus-yvza0c7r.js → command-3jm7ecfq.js} +10 -10
  42. package/dist/chunks/{bus-3thh6229.js → command-3thh6229.js} +2 -2
  43. package/dist/chunks/{bus-v8v1epwn.js → command-421c8qya.js} +14 -14
  44. package/dist/chunks/{bus-mm5e59bq.js → command-47tgsctd.js} +10 -10
  45. package/dist/chunks/{bus-4j7te1s0.js → command-4j7te1s0.js} +2 -2
  46. package/dist/chunks/{bus-4s2xwh5d.js → command-4s2xwh5d.js} +3 -3
  47. package/dist/chunks/{bus-sn0scgqj.js → command-4s869d6q.js} +3 -3
  48. package/dist/chunks/{bus-4zzdwbaz.js → command-4zzdwbaz.js} +2 -2
  49. package/dist/chunks/{bus-50jxp3hw.js → command-50jxp3hw.js} +1 -1
  50. package/dist/chunks/{bus-50qcmj3d.js → command-50qcmj3d.js} +2 -2
  51. package/dist/chunks/{bus-q1er0q3c.js → command-51kaw9qq.js} +24 -24
  52. package/dist/chunks/{bus-57tzwnz4.js → command-57tzwnz4.js} +1 -1
  53. package/dist/chunks/{bus-58xdvehb.js → command-58xdvehb.js} +1 -1
  54. package/dist/chunks/{bus-nhjwrg2h.js → command-5f3y96p3.js} +4 -4
  55. package/dist/chunks/{bus-5fe026tx.js → command-5fe026tx.js} +3 -3
  56. package/dist/chunks/{bus-1my5bbyb.js → command-5gacbgds.js} +9 -9
  57. package/dist/chunks/{bus-k60er779.js → command-5q2prs5z.js} +11 -11
  58. package/dist/chunks/{bus-5rs65q6p.js → command-5rs65q6p.js} +1 -1
  59. package/dist/chunks/{bus-5vcssjzn.js → command-5vcssjzn.js} +1 -1
  60. package/dist/chunks/{bus-5xrsrne4.js → command-5xrsrne4.js} +3 -3
  61. package/dist/chunks/{bus-as9v73s9.js → command-5zz6czbj.js} +9 -9
  62. package/dist/chunks/{bus-65re92qg.js → command-65re92qg.js} +2 -2
  63. package/dist/chunks/{bus-nh057wty.js → command-66mdaj17.js} +15 -15
  64. package/dist/chunks/{bus-bk9100qx.js → command-6a4fqxwb.js} +5 -5
  65. package/dist/chunks/{bus-45fdmj54.js → command-6jrj0nbj.js} +4 -4
  66. package/dist/chunks/{bus-6ky7rqk7.js → command-6ky7rqk7.js} +1 -1
  67. package/dist/chunks/{bus-6q0m15b3.js → command-6q0m15b3.js} +1 -1
  68. package/dist/chunks/{bus-6x98y149.js → command-6x98y149.js} +2 -2
  69. package/dist/chunks/{bus-fktyr2n5.js → command-6xqh5wsq.js} +7 -7
  70. package/dist/chunks/{bus-s6m66ndb.js → command-6z60fgy5.js} +145 -145
  71. package/dist/chunks/{bus-3fdw4ek3.js → command-78d88dst.js} +12 -12
  72. package/dist/chunks/{bus-34rq3hna.js → command-7fr2g77j.js} +7 -7
  73. package/dist/chunks/{bus-7gqqz1s8.js → command-7gqqz1s8.js} +1 -1
  74. package/dist/chunks/{bus-81gd7d42.js → command-7khw64yh.js} +5 -5
  75. package/dist/chunks/{bus-7mrpdsq5.js → command-7mrpdsq5.js} +1 -1
  76. package/dist/chunks/{bus-kzyehkzm.js → command-7r6c8avb.js} +2 -2
  77. package/dist/chunks/{bus-7wcmqxrc.js → command-7wcmqxrc.js} +1 -1
  78. package/dist/chunks/{bus-88jbfw8z.js → command-88jbfw8z.js} +2 -2
  79. package/dist/chunks/{bus-8bqpm1yy.js → command-8bqpm1yy.js} +2 -2
  80. package/dist/chunks/{bus-8gp1tmat.js → command-8gp1tmat.js} +3 -3
  81. package/dist/chunks/command-8rpfd2h6.js +6 -0
  82. package/dist/chunks/{bus-8v47shgf.js → command-8v47shgf.js} +2 -2
  83. package/dist/chunks/{bus-8xwpcmsm.js → command-8wddjqvy.js} +2 -2
  84. package/dist/chunks/{bus-swfr3ksy.js → command-92tg5r9r.js} +4 -4
  85. package/dist/chunks/{bus-999qd968.js → command-999qd968.js} +1 -1
  86. package/dist/chunks/{bus-9f0rnpkn.js → command-9f0rnpkn.js} +1 -1
  87. package/dist/chunks/{bus-xsjzssdp.js → command-9ge2xk3j.js} +3 -3
  88. package/dist/chunks/{bus-9p8mhgdp.js → command-9p8mhgdp.js} +1 -1
  89. package/dist/chunks/{bus-z8kjwp9a.js → command-a0dsway0.js} +5 -5
  90. package/dist/chunks/{bus-3c2zy2bv.js → command-a18c335t.js} +2 -2
  91. package/dist/chunks/{bus-n9xzs8x9.js → command-anfy3fdp.js} +3 -3
  92. package/dist/chunks/{bus-1yqnav5d.js → command-anvjw0dq.js} +8 -8
  93. package/dist/chunks/{bus-ayfwnm78.js → command-ayfwnm78.js} +2 -2
  94. package/dist/chunks/{bus-b7hsw5bk.js → command-b7hsw5bk.js} +3 -3
  95. package/dist/chunks/{bus-h88t3w36.js → command-befgjvdq.js} +6 -6
  96. package/dist/chunks/{bus-bh1wr8rq.js → command-bh1wr8rq.js} +2 -2
  97. package/dist/chunks/command-bjwj8hwv.js +7 -0
  98. package/dist/chunks/{bus-3a54j7wv.js → command-bs3tz4tn.js} +12 -12
  99. package/dist/chunks/{bus-v8ws60t6.js → command-bt58pxgg.js} +11 -11
  100. package/dist/chunks/{bus-byab506k.js → command-byab506k.js} +1 -1
  101. package/dist/chunks/{bus-c4wcb9vc.js → command-c4wcb9vc.js} +2 -2
  102. package/dist/chunks/{bus-fkahetf8.js → command-c8thj90a.js} +5 -5
  103. package/dist/chunks/{bus-c9tk9ghs.js → command-c9tk9ghs.js} +2 -2
  104. package/dist/chunks/{bus-8494fymj.js → command-ca8vj00g.js} +3 -3
  105. package/dist/chunks/{bus-nezwgav7.js → command-cc0cfbke.js} +6 -6
  106. package/dist/chunks/{bus-rs94f8hf.js → command-cd2xmm9v.js} +84 -9
  107. package/dist/chunks/{bus-3dcz2keg.js → command-ck1vdjcm.js} +8 -8
  108. package/dist/chunks/{bus-cke3skfe.js → command-cke3skfe.js} +3 -3
  109. package/dist/chunks/{bus-yv6792ck.js → command-cm2zc4r8.js} +10 -10
  110. package/dist/chunks/{bus-cve546b2.js → command-cve546b2.js} +2 -2
  111. package/dist/chunks/{bus-cz3dkvcz.js → command-cz3dkvcz.js} +1 -1
  112. package/dist/chunks/{bus-d2gk9vpf.js → command-d2gk9vpf.js} +2 -2
  113. package/dist/chunks/{bus-hsvca4pj.js → command-d80qjeqb.js} +3 -3
  114. package/dist/chunks/{bus-bkccxfds.js → command-dcy9zxd2.js} +41 -41
  115. package/dist/chunks/{bus-dhphtf1x.js → command-dhphtf1x.js} +1 -1
  116. package/dist/chunks/{bus-djkt4gex.js → command-djkt4gex.js} +1 -1
  117. package/dist/chunks/{bus-jyzv8k0f.js → command-dspndmwc.js} +4 -4
  118. package/dist/chunks/{bus-dyrphakh.js → command-dyrphakh.js} +2 -2
  119. package/dist/chunks/{bus-e1z9a0ts.js → command-e1z9a0ts.js} +2 -2
  120. package/dist/chunks/{bus-ec8vrfw5.js → command-ec8vrfw5.js} +1 -1
  121. package/dist/chunks/{bus-y54z0hcn.js → command-egsx2664.js} +14 -14
  122. package/dist/chunks/{bus-8yjeabye.js → command-emc9yn8v.js} +86 -86
  123. package/dist/chunks/{bus-fcnbc1an.js → command-emrt7sh4.js} +2 -2
  124. package/dist/chunks/{bus-epzxjdf4.js → command-epzxjdf4.js} +4 -4
  125. package/dist/chunks/{bus-b7f5yvwv.js → command-ezyk2zhe.js} +3 -3
  126. package/dist/chunks/{bus-wsyd5q4e.js → command-f0k6czdk.js} +19 -18
  127. package/dist/chunks/{bus-ztjk4rav.js → command-f11jbhcb.js} +6 -6
  128. package/dist/chunks/{bus-em4b3d6r.js → command-f5xpp0pa.js} +4 -4
  129. package/dist/chunks/{bus-f9wt0tjw.js → command-f9wt0tjw.js} +2 -2
  130. package/dist/chunks/{bus-p27xxkqg.js → command-fb7nfzf2.js} +10 -10
  131. package/dist/chunks/{bus-fg5qk6ys.js → command-fjaqswg7.js} +5 -5
  132. package/dist/chunks/{bus-9dbg8kyd.js → command-fvy7jwx4.js} +8 -8
  133. package/dist/chunks/{bus-31c0xcye.js → command-fx8j14af.js} +5 -5
  134. package/dist/chunks/{bus-h225chz5.js → command-g18vxs3n.js} +19 -19
  135. package/dist/chunks/{bus-rh1d44bg.js → command-g6w5a7mx.js} +10 -10
  136. package/dist/chunks/{bus-g7t6p8r2.js → command-g7t6p8r2.js} +1 -1
  137. package/dist/chunks/{bus-seebpf84.js → command-gb2jarg7.js} +88 -106
  138. package/dist/chunks/{bus-gcay93cp.js → command-gcay93cp.js} +1 -1
  139. package/dist/chunks/{bus-gd2xppx8.js → command-gd2xppx8.js} +1 -1
  140. package/dist/chunks/{bus-gg8gy1ab.js → command-gg8gy1ab.js} +2 -2
  141. package/dist/chunks/{bus-v1avw3rq.js → command-grqxxn72.js} +37 -37
  142. package/dist/chunks/{bus-bcbkc347.js → command-h5amf94f.js} +3 -3
  143. package/dist/chunks/{bus-hhxt27np.js → command-hhxt27np.js} +2 -2
  144. package/dist/chunks/{bus-tw7cm8wt.js → command-hke91305.js} +6 -6
  145. package/dist/chunks/{bus-dz3ghfqp.js → command-hnmnew4k.js} +4 -4
  146. package/dist/chunks/command-hnr6zapz.js +165 -0
  147. package/dist/chunks/{bus-hp6rpdnc.js → command-hp6rpdnc.js} +1 -1
  148. package/dist/chunks/command-hrfpcm59.js +88 -0
  149. package/dist/chunks/{bus-8bkmtpp6.js → command-hsyk7kfz.js} +5 -5
  150. package/dist/chunks/{bus-dp431mnz.js → command-hzw6pm20.js} +89 -89
  151. package/dist/chunks/{bus-cmzg82ap.js → command-j922ggzd.js} +4 -4
  152. package/dist/chunks/{bus-jssy2dr3.js → command-jssy2dr3.js} +2 -2
  153. package/dist/chunks/{bus-gapyjyhc.js → command-jx8spea3.js} +16 -16
  154. package/dist/chunks/{bus-k42t1tha.js → command-k42t1tha.js} +2 -2
  155. package/dist/chunks/{bus-3xezymdr.js → command-k52hzb13.js} +3 -3
  156. package/dist/chunks/{bus-kg1345f7.js → command-kg1345f7.js} +1 -1
  157. package/dist/chunks/{bus-tkfemzgn.js → command-kgpcdf6y.js} +12 -12
  158. package/dist/chunks/{bus-nhg59fjp.js → command-kjkf9ay5.js} +3 -3
  159. package/dist/chunks/{bus-1f2etsg1.js → command-kk2jxj37.js} +2 -2
  160. package/dist/chunks/{bus-kp1t5rcy.js → command-kp1t5rcy.js} +1 -1
  161. package/dist/chunks/{bus-tqx3n4fx.js → command-matpf2zn.js} +17 -17
  162. package/dist/chunks/{bus-q5vrqvjm.js → command-mbc9yv9r.js} +20 -18
  163. package/dist/chunks/{bus-mf0hyk7z.js → command-mf0hyk7z.js} +1 -1
  164. package/dist/chunks/{bus-v70tf05p.js → command-mfwtn9mp.js} +3 -3
  165. package/dist/chunks/{bus-mh28new4.js → command-mh28new4.js} +2 -2
  166. package/dist/chunks/{bus-s6gbq8g6.js → command-mn4844e7.js} +5 -5
  167. package/dist/chunks/{bus-mnb85w6b.js → command-mnb85w6b.js} +2 -2
  168. package/dist/chunks/{bus-mxvw03gv.js → command-mxvw03gv.js} +1 -1
  169. package/dist/chunks/{bus-27knmh55.js → command-n99zy8br.js} +5 -5
  170. package/dist/chunks/{bus-nesb2rcz.js → command-nesb2rcz.js} +2 -2
  171. package/dist/chunks/{bus-yr09scdj.js → command-nna1y931.js} +12 -12
  172. package/dist/chunks/{bus-nr76rjj3.js → command-nr76rjj3.js} +2 -2
  173. package/dist/chunks/{bus-nrkas8zm.js → command-nrkas8zm.js} +3 -3
  174. package/dist/chunks/{bus-zjp8gek7.js → command-nrmfvbx5.js} +7 -7
  175. package/dist/chunks/{bus-q5s9zcfq.js → command-nyb9c5vw.js} +8 -8
  176. package/dist/chunks/{bus-c84ccdx3.js → command-nzq3qrwx.js} +4 -4
  177. package/dist/chunks/{bus-nzrjycs5.js → command-nzrjycs5.js} +1 -1
  178. package/dist/chunks/{bus-qzmv6v9x.js → command-p77pt74v.js} +6 -6
  179. package/dist/chunks/{bus-m9xjm706.js → command-pa8smy93.js} +28 -28
  180. package/dist/chunks/{bus-pfqehjmy.js → command-pfqehjmy.js} +2 -2
  181. package/dist/chunks/{bus-pq4b4pqk.js → command-pq4b4pqk.js} +2 -2
  182. package/dist/chunks/{bus-q07sa4nq.js → command-q07sa4nq.js} +4 -4
  183. package/dist/chunks/{bus-08a95evd.js → command-q4yf9dra.js} +3 -3
  184. package/dist/chunks/{bus-phg8qt30.js → command-q7ev6hpr.js} +4 -4
  185. package/dist/chunks/{bus-qe0d689s.js → command-qe0d689s.js} +2 -2
  186. package/dist/chunks/{bus-0fe7be85.js → command-qfy0jzxs.js} +7 -7
  187. package/dist/chunks/{bus-jk15jpp9.js → command-qg5v8z3w.js} +3 -3
  188. package/dist/chunks/{bus-qhdqjp31.js → command-qhdqjp31.js} +1 -1
  189. package/dist/chunks/{bus-wjjx2yvv.js → command-qntxb5xp.js} +6 -6
  190. package/dist/chunks/{bus-zhypegf3.js → command-qpzn09p6.js} +4 -4
  191. package/dist/chunks/{bus-b2ssj2jj.js → command-qt403yrd.js} +1 -1
  192. package/dist/chunks/{bus-5pdtengv.js → command-qv3e3p9j.js} +9 -9
  193. package/dist/chunks/{bus-gtjwcdve.js → command-qx1mgrgy.js} +4 -4
  194. package/dist/chunks/{bus-a5c6zab3.js → command-qzgg9v17.js} +6 -6
  195. package/dist/chunks/{bus-rk2fwffr.js → command-qzgwa2da.js} +3 -3
  196. package/dist/chunks/{bus-r3k9abhd.js → command-r3k9abhd.js} +2 -2
  197. package/dist/chunks/{bus-mwgtffnj.js → command-r9262ye5.js} +6 -6
  198. package/dist/chunks/{bus-rahat93a.js → command-rahat93a.js} +1 -1
  199. package/dist/chunks/{bus-82c48gcn.js → command-rcvmstq2.js} +26 -26
  200. package/dist/chunks/{bus-9745eg2j.js → command-rfb5peps.js} +4 -4
  201. package/dist/chunks/{bus-rfbm65k8.js → command-rfbm65k8.js} +1 -1
  202. package/dist/chunks/{bus-rn9r0ddn.js → command-rn9r0ddn.js} +2 -2
  203. package/dist/chunks/{bus-hp3wmpny.js → command-rskp06ws.js} +3 -3
  204. package/dist/chunks/{bus-rvfvac9x.js → command-rvfvac9x.js} +2 -1
  205. package/dist/chunks/{bus-yspcmshy.js → command-rzkyjvh5.js} +33 -33
  206. package/dist/chunks/{bus-s33fw6zm.js → command-s33fw6zm.js} +1 -1
  207. package/dist/chunks/{bus-s4hn1693.js → command-s4hn1693.js} +2 -2
  208. package/dist/chunks/{bus-121geqwt.js → command-s60gx27m.js} +8 -8
  209. package/dist/chunks/{bus-smpeg8c9.js → command-smpeg8c9.js} +2 -2
  210. package/dist/chunks/{bus-sw84ckhj.js → command-sw84ckhj.js} +1 -1
  211. package/dist/chunks/{bus-t14kykx1.js → command-t14kykx1.js} +1 -1
  212. package/dist/chunks/{bus-f93dc6cj.js → command-t2ywvygp.js} +7 -7
  213. package/dist/chunks/{bus-qtdw4gt5.js → command-t38tkyea.js} +14 -14
  214. package/dist/chunks/{bus-tb33ng7x.js → command-tb33ng7x.js} +2 -2
  215. package/dist/chunks/{bus-tcptxgyq.js → command-tcptxgyq.js} +1 -1
  216. package/dist/chunks/{bus-thstd87d.js → command-thstd87d.js} +1 -1
  217. package/dist/chunks/{bus-tjjf1q77.js → command-tjjf1q77.js} +1 -1
  218. package/dist/chunks/{bus-zq5p7tgz.js → command-v1097whv.js} +17 -17
  219. package/dist/chunks/{bus-vg6pnh1s.js → command-v2c91ytn.js} +17 -17
  220. package/dist/chunks/{bus-v2wshkax.js → command-v2wshkax.js} +1 -1
  221. package/dist/chunks/{bus-frzkrsqs.js → command-v5y54ks3.js} +3 -3
  222. package/dist/chunks/{bus-v80zsxnb.js → command-v80zsxnb.js} +1 -1
  223. package/dist/chunks/{bus-v972xay6.js → command-v972xay6.js} +1 -1
  224. package/dist/chunks/{bus-v9bfv94f.js → command-v9bfv94f.js} +1 -1
  225. package/dist/chunks/{bus-vcwr2vpf.js → command-vcwr2vpf.js} +1 -1
  226. package/dist/chunks/{bus-cgg960kk.js → command-vm183rhw.js} +10 -10
  227. package/dist/chunks/{bus-zkrynr22.js → command-vmm871r4.js} +5 -5
  228. package/dist/chunks/{bus-vqbmgfq1.js → command-vqbmgfq1.js} +3 -3
  229. package/dist/chunks/{bus-y81fyym6.js → command-vw64thy4.js} +10 -10
  230. package/dist/chunks/{bus-vz89hfgr.js → command-vz89hfgr.js} +1 -1
  231. package/dist/chunks/{bus-2j53mag0.js → command-vzgjeb6c.js} +7 -7
  232. package/dist/chunks/{bus-hnvvb0vp.js → command-w03b68sa.js} +3 -3
  233. package/dist/chunks/{bus-p4v6168q.js → command-w092gfcp.js} +7 -7
  234. package/dist/chunks/{bus-qxjezvty.js → command-w63gszjt.js} +47 -16
  235. package/dist/chunks/{bus-wbkt8qpj.js → command-wbkt8qpj.js} +1 -1
  236. package/dist/chunks/{bus-wd268jeg.js → command-wd268jeg.js} +1 -1
  237. package/dist/chunks/{bus-pm94t5de.js → command-wgmwbrrp.js} +44 -17
  238. package/dist/chunks/{bus-ask1bcd0.js → command-wm8jk8m7.js} +7 -7
  239. package/dist/chunks/{bus-wmxdh12w.js → command-wmxdh12w.js} +1 -1
  240. package/dist/chunks/{bus-wps8gh8n.js → command-wps8gh8n.js} +2 -2
  241. package/dist/chunks/{bus-y7ctke35.js → command-x26cj7vy.js} +11 -11
  242. package/dist/chunks/{bus-m103j73a.js → command-x8a0pw1h.js} +13 -13
  243. package/dist/chunks/{bus-q8dzc0dp.js → command-xbxag8se.js} +1 -1
  244. package/dist/chunks/{bus-xczfw7dq.js → command-xczfw7dq.js} +1 -1
  245. package/dist/chunks/{bus-xgv25zxy.js → command-xgv25zxy.js} +1 -1
  246. package/dist/chunks/{bus-erehwzzg.js → command-xpavdmps.js} +4 -4
  247. package/dist/chunks/{bus-sgfv0p7t.js → command-xqknmwxx.js} +4 -4
  248. package/dist/chunks/{bus-xwftk1fd.js → command-xwftk1fd.js} +2 -2
  249. package/dist/chunks/{bus-xxpvz42q.js → command-xxpvz42q.js} +3 -3
  250. package/dist/chunks/{bus-y0x38cee.js → command-y0x38cee.js} +1 -1
  251. package/dist/chunks/{bus-y198y2ra.js → command-y198y2ra.js} +1 -1
  252. package/dist/chunks/{bus-y67x6rf6.js → command-y67x6rf6.js} +1 -1
  253. package/dist/chunks/{bus-zb278k8y.js → command-y83178ka.js} +8 -6
  254. package/dist/chunks/{bus-y980s7ka.js → command-y980s7ka.js} +3 -3
  255. package/dist/chunks/{bus-ybhfpy64.js → command-ybhfpy64.js} +2 -2
  256. package/dist/chunks/{bus-yf0knd5z.js → command-yf0knd5z.js} +2 -2
  257. package/dist/chunks/{bus-ygy0xbqa.js → command-ygy0xbqa.js} +3 -3
  258. package/dist/chunks/{bus-qxe0mg4c.js → command-yjhy2gb3.js} +12 -12
  259. package/dist/chunks/{bus-vqz2tgg0.js → command-ywkhe08r.js} +6 -6
  260. package/dist/chunks/{bus-275g2r26.js → command-ywpwqh2x.js} +8 -8
  261. package/dist/chunks/{bus-gbshbb1z.js → command-z01qxr6b.js} +6 -6
  262. package/dist/chunks/{bus-da0p7850.js → command-z4d88atk.js} +12 -12
  263. package/dist/chunks/{bus-zbqqnp0n.js → command-zbqqnp0n.js} +1 -1
  264. package/dist/chunks/{bus-zdkg1k91.js → command-zdkg1k91.js} +1 -1
  265. package/dist/chunks/{bus-wksqq8qz.js → command-zfpw1n6t.js} +9 -9
  266. package/dist/chunks/{bus-08ftw3he.js → command-zw6rs0eb.js} +4 -4
  267. package/dist/chunks/{bus-zxcy6vhn.js → command-zxcy6vhn.js} +1 -1
  268. package/dist/chunks/{bus-zxe9jjhn.js → command-zxe9jjhn.js} +2 -2
  269. package/dist/codemode/catalog.js +2 -2
  270. package/dist/codemode/instructions.js +4 -4
  271. package/dist/codemode/tool.js +3 -3
  272. package/dist/command.js +78 -102
  273. package/dist/config/markdown.js +2 -2
  274. package/dist/config/normalize.js +20 -20
  275. package/dist/config/plugin/agent.js +133 -133
  276. package/dist/config/plugin/command.js +117 -130
  277. package/dist/config/plugin/compaction.js +169 -169
  278. package/dist/config/plugin/entry-observer.js +113 -113
  279. package/dist/config/plugin/formatter.js +118 -118
  280. package/dist/config/plugin/image.js +129 -129
  281. package/dist/config/plugin/instruction.js +89 -89
  282. package/dist/config/plugin/location-watcher.js +116 -116
  283. package/dist/config/plugin/mcp.js +126 -126
  284. package/dist/config/plugin/policy.js +115 -115
  285. package/dist/config/plugin/provider.js +114 -114
  286. package/dist/config/plugin/reference.js +118 -118
  287. package/dist/config/plugin/shell.js +117 -117
  288. package/dist/config/plugin/skill-file.js +106 -106
  289. package/dist/config/plugin/skill.js +136 -136
  290. package/dist/config/plugin/snapshot.js +116 -116
  291. package/dist/config/plugin/source.js +113 -113
  292. package/dist/config/plugin/tool-output.js +118 -118
  293. package/dist/config/plugin/websearch.js +114 -114
  294. package/dist/config/variable.js +4 -4
  295. package/dist/config.js +112 -112
  296. package/dist/credential/sql.js +3 -3
  297. package/dist/credential.js +72 -72
  298. package/dist/database/database.js +69 -69
  299. package/dist/database/drizzle/effect-sqlite/driver.js +16 -16
  300. package/dist/database/drizzle/effect-sqlite/index.js +16 -16
  301. package/dist/database/drizzle/effect-sqlite/migrator.js +15 -15
  302. package/dist/database/drizzle/effect-sqlite/session.js +15 -15
  303. package/dist/database/drizzle/index.js +20 -20
  304. package/dist/database/drizzle/internal/drizzle-utils.js +2 -2
  305. package/dist/database/drizzle/sqlite-core/effect/count.js +2 -2
  306. package/dist/database/drizzle/sqlite-core/effect/db.js +10 -10
  307. package/dist/database/drizzle/sqlite-core/effect/delete.js +3 -3
  308. package/dist/database/drizzle/sqlite-core/effect/index.js +21 -21
  309. package/dist/database/drizzle/sqlite-core/effect/insert.js +3 -3
  310. package/dist/database/drizzle/sqlite-core/effect/query.js +2 -2
  311. package/dist/database/drizzle/sqlite-core/effect/raw.js +2 -2
  312. package/dist/database/drizzle/sqlite-core/effect/select.js +3 -3
  313. package/dist/database/drizzle/sqlite-core/effect/session.js +14 -14
  314. package/dist/database/drizzle/sqlite-core/effect/update.js +3 -3
  315. package/dist/database/drizzle/up-migrations/effect-sqlite.js +4 -4
  316. package/dist/database/drizzle/up-migrations/sqlite.js +2 -2
  317. package/dist/database/drizzle/up-migrations/utils.js +2 -2
  318. package/dist/database/drizzle.js +21 -21
  319. package/dist/database/migration/20260127222353_familiar_lady_ursula.js +2 -2
  320. package/dist/database/migration/20260211171708_add_project_commands.js +2 -2
  321. package/dist/database/migration/20260213144116_wakeful_the_professor.js +2 -2
  322. package/dist/database/migration/20260225215848_workspace.js +2 -2
  323. package/dist/database/migration/20260227213759_add_session_workspace_id.js +2 -2
  324. package/dist/database/migration/20260228203230_blue_harpoon.js +2 -2
  325. package/dist/database/migration/20260303231226_add_workspace_fields.js +2 -2
  326. package/dist/database/migration/20260309230000_move_org_to_state.js +2 -2
  327. package/dist/database/migration/20260312043431_session_message_cursor.js +2 -2
  328. package/dist/database/migration/20260323234822_events.js +2 -2
  329. package/dist/database/migration/20260410174513_workspace-name.js +2 -2
  330. package/dist/database/migration/20260413175956_chief_energizer.js +2 -2
  331. package/dist/database/migration/20260423070820_add_icon_url_override.js +2 -2
  332. package/dist/database/migration/20260427172553_slow_nightmare.js +2 -2
  333. package/dist/database/migration/20260428004200_add_session_path.js +2 -2
  334. package/dist/database/migration/20260501142318_next_venus.js +2 -2
  335. package/dist/database/migration/20260504145000_add_sync_owner.js +2 -2
  336. package/dist/database/migration/20260507164347_add_workspace_time.js +2 -2
  337. package/dist/database/migration/20260510033149_session_usage.js +2 -2
  338. package/dist/database/migration/20260511000411_data_migration_state.js +2 -2
  339. package/dist/database/migration/20260511173437_session-metadata.js +2 -2
  340. package/dist/database/migration/20260601010001_normalize_storage_paths.js +2 -2
  341. package/dist/database/migration/20260601202201_amazing_prowler.js +2 -2
  342. package/dist/database/migration/20260602002951_lowly_union_jack.js +2 -2
  343. package/dist/database/migration/20260602182828_add_project_directories.js +2 -2
  344. package/dist/database/migration/20260603001617_session_message_projection_indexes.js +2 -2
  345. package/dist/database/migration/20260603040000_session_message_projection_order.js +2 -2
  346. package/dist/database/migration/20260603141458_session_input_inbox.js +2 -2
  347. package/dist/database/migration/20260603160727_jittery_ezekiel_stane.js +2 -2
  348. package/dist/database/migration/20260604172448_event_sourced_session_input.js +2 -2
  349. package/dist/database/migration/20260605003541_add_session_context_snapshot.js +2 -2
  350. package/dist/database/migration/20260605042240_add_context_epoch_agent.js +2 -2
  351. package/dist/database/migration/20260611035744_credential.js +2 -2
  352. package/dist/database/migration/20260611192811_lush_chimera.js +2 -2
  353. package/dist/database/migration/20260612174303_project_dir_strategy.js +2 -2
  354. package/dist/database/migration/20260622142730_simplify_session_context_epoch.js +2 -2
  355. package/dist/database/migration/20260622170816_reset_v2_session_state.js +2 -2
  356. package/dist/database/migration/20260622202450_simplify_session_input.js +2 -2
  357. package/dist/database/migration/20260804233008_loose_psylocke.js +2 -2
  358. package/dist/database/migration/20260805200742_import_legacy_credentials.js +2 -2
  359. package/dist/database/migration/20260808023530_workspace_domain.js +2 -2
  360. package/dist/database/migration/20260811161259_execution_claim_attempts.js +2 -2
  361. package/dist/database/migration/20260812181746_session_inbox.js +2 -2
  362. package/dist/database/migration/20260812213948_worktree.js +2 -2
  363. package/dist/database/migration/20260819222447_session_viewed_state.js +2 -2
  364. package/dist/database/migration/20260823191254_nullable_workspace_binding.js +2 -2
  365. package/dist/database/migration.gen.js +48 -48
  366. package/dist/database/migration.js +50 -50
  367. package/dist/database/path.js +3 -3
  368. package/dist/database/schema.gen.js +2 -2
  369. package/dist/database/schema.sql.js +2 -2
  370. package/dist/database/sqlite.bun.js +2 -2
  371. package/dist/database/sqlite.js +2 -2
  372. package/dist/database/sqlite.node.js +2 -2
  373. package/dist/database/sqlite.workerd.js +2 -2
  374. package/dist/database/v1-migration.bun.js +89 -89
  375. package/dist/database/v1-migration.js +2 -2
  376. package/dist/database/v1-migration.noop.js +1 -1
  377. package/dist/effect/app-node-builder.js +330 -330
  378. package/dist/effect/app-node-platform.js +3 -3
  379. package/dist/effect/keyed-mutex.js +2 -2
  380. package/dist/effect/websocket-constructor.js +2 -2
  381. package/dist/environment/driver.js +1 -1
  382. package/dist/environment/environment.js +90 -90
  383. package/dist/environment/exec-defaults.js +3 -3
  384. package/dist/environment/files.js +2 -2
  385. package/dist/environment/index.js +92 -92
  386. package/dist/environment/local.js +3 -3
  387. package/dist/environment/memory.js +3 -3
  388. package/dist/environment/unavailable.js +1 -1
  389. package/dist/event/sql.js +2 -2
  390. package/dist/event-logger.js +72 -72
  391. package/dist/file-mutation.js +91 -91
  392. package/dist/file-retention.js +2 -2
  393. package/dist/file.js +2 -2
  394. package/dist/filesystem/fff.bun.js +2 -2
  395. package/dist/filesystem/fff.js +2 -2
  396. package/dist/filesystem/fff.node.js +2 -2
  397. package/dist/filesystem/fff.workerd.js +2 -2
  398. package/dist/filesystem/ignore.js +1 -1
  399. package/dist/filesystem/location-watcher-policy.js +3 -3
  400. package/dist/filesystem/location-watcher.js +305 -305
  401. package/dist/filesystem/protected.js +2 -2
  402. package/dist/filesystem/search.js +95 -95
  403. package/dist/filesystem/watcher-binding.js +2 -2
  404. package/dist/filesystem/watcher.js +4 -4
  405. package/dist/filesystem.js +95 -95
  406. package/dist/form.js +73 -73
  407. package/dist/formatter/builtins.js +3 -3
  408. package/dist/formatter.js +84 -84
  409. package/dist/generate.js +88 -88
  410. package/dist/git.js +5 -5
  411. package/dist/github-copilot/chat/convert-to-openai-compatible-chat-messages.js +2 -2
  412. package/dist/github-copilot/chat/get-response-metadata.js +2 -2
  413. package/dist/github-copilot/chat/map-openai-compatible-finish-reason.js +2 -2
  414. package/dist/github-copilot/chat/openai-compatible-chat-language-model.js +8 -8
  415. package/dist/github-copilot/chat/openai-compatible-chat-options.js +2 -2
  416. package/dist/github-copilot/chat/openai-compatible-prepare-tools.js +2 -2
  417. package/dist/github-copilot/copilot-provider.js +20 -20
  418. package/dist/github-copilot/models.js +4 -4
  419. package/dist/github-copilot/openai-compatible-error.js +2 -2
  420. package/dist/github-copilot/responses/convert-to-openai-responses-input.js +2 -2
  421. package/dist/github-copilot/responses/map-openai-responses-finish-reason.js +2 -2
  422. package/dist/github-copilot/responses/openai-error.js +2 -2
  423. package/dist/github-copilot/responses/openai-responses-language-model.js +11 -11
  424. package/dist/github-copilot/responses/openai-responses-prepare-tools.js +7 -7
  425. package/dist/github-copilot/responses/tool/code-interpreter.js +2 -2
  426. package/dist/github-copilot/responses/tool/file-search.js +2 -2
  427. package/dist/github-copilot/responses/tool/image-generation.js +2 -2
  428. package/dist/github-copilot/responses/tool/web-search-preview.js +2 -2
  429. package/dist/github-copilot/responses/tool/web-search.js +2 -2
  430. package/dist/id/id.js +2 -2
  431. package/dist/image/photon-wasm.bun.js +1 -1
  432. package/dist/image/photon-wasm.node.js +1 -1
  433. package/dist/image/photon-wasm.workerd.js +1 -1
  434. package/dist/image/photon.js +97 -97
  435. package/dist/image.js +97 -97
  436. package/dist/instruction-discovery.js +76 -76
  437. package/dist/instructions/builtins.js +85 -85
  438. package/dist/instructions/index.js +2 -2
  439. package/dist/integration/connection.js +2 -2
  440. package/dist/integration.js +79 -79
  441. package/dist/job.js +4 -4
  442. package/dist/kv/sql.js +3 -3
  443. package/dist/kv.js +72 -72
  444. package/dist/location-activity.js +86 -86
  445. package/dist/location-mutation.js +83 -83
  446. package/dist/location-service-map.js +83 -83
  447. package/dist/location-services.js +330 -330
  448. package/dist/location.js +82 -82
  449. package/dist/mcp/client.js +91 -91
  450. package/dist/mcp/index.js +99 -97
  451. package/dist/mcp/instructions.js +127 -127
  452. package/dist/mcp/oauth.js +2 -2
  453. package/dist/mcp/stdio.js +91 -91
  454. package/dist/mime.js +2 -2
  455. package/dist/model-resolver.js +85 -85
  456. package/dist/model.js +3 -3
  457. package/dist/models-dev.js +79 -79
  458. package/dist/oauth/page.js +2 -2
  459. package/dist/permission/saved.js +83 -83
  460. package/dist/permission/sql.js +6 -6
  461. package/dist/permission.js +103 -103
  462. package/dist/plugin/agent.js +104 -104
  463. package/dist/plugin/command.js +98 -83
  464. package/dist/plugin/hooks.js +3 -3
  465. package/dist/plugin/host.js +166 -166
  466. package/dist/plugin/internal.js +299 -299
  467. package/dist/plugin/mcp-codemode-exclusion.js +2 -2
  468. package/dist/plugin/models-dev.js +80 -80
  469. package/dist/plugin/plan.js +104 -104
  470. package/dist/plugin/promise.js +2 -2
  471. package/dist/plugin/provider/alibaba.js +3 -3
  472. package/dist/plugin/provider/amazon-bedrock.js +3 -3
  473. package/dist/plugin/provider/anthropic.js +3 -3
  474. package/dist/plugin/provider/azure.js +120 -120
  475. package/dist/plugin/provider/cerebras.js +3 -3
  476. package/dist/plugin/provider/cloudflare-ai-gateway.js +121 -121
  477. package/dist/plugin/provider/cloudflare-workers-ai.js +121 -121
  478. package/dist/plugin/provider/cohere.js +3 -3
  479. package/dist/plugin/provider/configured.js +118 -118
  480. package/dist/plugin/provider/deepinfra.js +3 -3
  481. package/dist/plugin/provider/dynamic.js +2 -2
  482. package/dist/plugin/provider/factory.js +2 -2
  483. package/dist/plugin/provider/gateway.js +3 -3
  484. package/dist/plugin/provider/github-copilot.js +86 -86
  485. package/dist/plugin/provider/gitlab.js +4 -4
  486. package/dist/plugin/provider/google-vertex.js +3 -3
  487. package/dist/plugin/provider/groq.js +3 -3
  488. package/dist/plugin/provider/kilo.js +3 -3
  489. package/dist/plugin/provider/llmgateway.js +81 -81
  490. package/dist/plugin/provider/lmstudio.js +113 -113
  491. package/dist/plugin/provider/mistral.js +3 -3
  492. package/dist/plugin/provider/nvidia.js +3 -3
  493. package/dist/plugin/provider/ollama.js +113 -113
  494. package/dist/plugin/provider/openai-compatible.js +2 -2
  495. package/dist/plugin/provider/openai.js +83 -83
  496. package/dist/plugin/provider/opencode.js +97 -97
  497. package/dist/plugin/provider/openrouter.js +4 -4
  498. package/dist/plugin/provider/perplexity.js +3 -3
  499. package/dist/plugin/provider/sap-ai-core.js +3 -3
  500. package/dist/plugin/provider/snowflake-cortex.js +3 -3
  501. package/dist/plugin/provider/togetherai.js +3 -3
  502. package/dist/plugin/provider/venice.js +3 -3
  503. package/dist/plugin/provider/vercel.js +3 -3
  504. package/dist/plugin/provider/vllm.js +113 -113
  505. package/dist/plugin/provider/xai.js +82 -82
  506. package/dist/plugin/provider/zenmux.js +3 -3
  507. package/dist/plugin/provider.js +159 -159
  508. package/dist/plugin/runtime.js +155 -155
  509. package/dist/plugin/sdk.js +73 -73
  510. package/dist/plugin/skill.js +134 -134
  511. package/dist/plugin/supervisor-service.js +2 -2
  512. package/dist/plugin/supervisor.js +304 -304
  513. package/dist/plugin/system-prompt.js +2 -2
  514. package/dist/plugin/variant.js +4 -4
  515. package/dist/plugin/warming.js +114 -114
  516. package/dist/plugin/websearch/exa.js +4 -4
  517. package/dist/plugin/websearch/firecrawl.js +5 -5
  518. package/dist/plugin/websearch/index.js +9 -9
  519. package/dist/plugin/websearch/mcp.js +3 -3
  520. package/dist/plugin/websearch/parallel.js +5 -5
  521. package/dist/plugin/websearch/tavily.js +3 -3
  522. package/dist/plugin.js +167 -167
  523. package/dist/project/schema.js +3 -3
  524. package/dist/project/sql.js +5 -5
  525. package/dist/project.js +81 -81
  526. package/dist/provider.js +2 -2
  527. package/dist/pty/protocol.js +1 -1
  528. package/dist/pty/pty.bun.js +1 -1
  529. package/dist/pty/pty.node.js +1 -1
  530. package/dist/pty/pty.workerd.js +1 -1
  531. package/dist/pty/schema.js +2 -2
  532. package/dist/pty/ticket.js +74 -74
  533. package/dist/pty.js +88 -88
  534. package/dist/reference/instructions.js +81 -81
  535. package/dist/reference.js +79 -79
  536. package/dist/repository-cache.js +7 -7
  537. package/dist/repository.js +2 -2
  538. package/dist/ripgrep/binary.js +3 -3
  539. package/dist/ripgrep.js +93 -93
  540. package/dist/schema.js +2 -2
  541. package/dist/session/compaction.js +141 -141
  542. package/dist/session/context.js +311 -311
  543. package/dist/session/environment.js +3 -3
  544. package/dist/session/error.js +4 -4
  545. package/dist/session/event.js +2 -2
  546. package/dist/session/execution/restart.js +119 -119
  547. package/dist/session/execution.js +119 -119
  548. package/dist/session/generate-node.js +312 -312
  549. package/dist/session/generate.js +2 -2
  550. package/dist/session/history.js +81 -81
  551. package/dist/session/inbox.js +81 -81
  552. package/dist/session/info.js +91 -91
  553. package/dist/session/instruction-entry.js +77 -77
  554. package/dist/session/instruction-state.js +10 -10
  555. package/dist/session/instructions.js +100 -100
  556. package/dist/session/message-updater.js +4 -4
  557. package/dist/session/message.js +4 -4
  558. package/dist/session/model-request.js +137 -137
  559. package/dist/session/model-transport.js +5 -5
  560. package/dist/session/projector.js +94 -94
  561. package/dist/session/prompt-cache-diagnostics.js +2 -2
  562. package/dist/session/revert.js +89 -89
  563. package/dist/session/run-coordinator.js +2 -2
  564. package/dist/session/runner/index.js +88 -88
  565. package/dist/session/runner/llm.js +317 -317
  566. package/dist/session/runner/max-steps.js +2 -2
  567. package/dist/session/runner/model.js +87 -87
  568. package/dist/session/runner/publish-llm-event.js +4 -4
  569. package/dist/session/runner/retry.js +76 -76
  570. package/dist/session/runner/to-llm-message.js +2 -2
  571. package/dist/session/schema.js +4 -4
  572. package/dist/session/sql.js +6 -6
  573. package/dist/session/stats.js +375 -0
  574. package/dist/session/store.js +99 -99
  575. package/dist/session/system-prompt.js +2 -2
  576. package/dist/session/title.js +139 -139
  577. package/dist/session/to-session-error.js +114 -114
  578. package/dist/session/transfer.js +159 -160
  579. package/dist/session/usage.js +2 -2
  580. package/dist/session.js +155 -156
  581. package/dist/shell/parse.js +5 -5
  582. package/dist/shell/parser-wasm.bun.js +1 -1
  583. package/dist/shell/parser-wasm.node.js +1 -1
  584. package/dist/shell/parser-wasm.workerd.js +1 -1
  585. package/dist/shell/scan.js +1 -1
  586. package/dist/shell/select.js +4 -4
  587. package/dist/shell.js +98 -98
  588. package/dist/skill/discovery.js +3 -3
  589. package/dist/skill/instructions.js +105 -105
  590. package/dist/skill.js +104 -104
  591. package/dist/snapshot.js +84 -84
  592. package/dist/state.js +2 -2
  593. package/dist/tool/html-markdown.js +2 -2
  594. package/dist/tool/http-body.js +2 -2
  595. package/dist/tool/mcp.js +126 -126
  596. package/dist/tool/plugin/edit.js +113 -113
  597. package/dist/tool/plugin/file-diff.js +2 -2
  598. package/dist/tool/plugin/glob.js +115 -115
  599. package/dist/tool/plugin/grep.js +115 -115
  600. package/dist/tool/plugin/patch.js +113 -113
  601. package/dist/tool/plugin/question.js +105 -105
  602. package/dist/tool/plugin/read.js +118 -118
  603. package/dist/tool/plugin/shell.js +185 -185
  604. package/dist/tool/plugin/skill.js +105 -105
  605. package/dist/tool/plugin/subagent.js +182 -182
  606. package/dist/tool/plugin/webfetch.js +106 -106
  607. package/dist/tool/plugin/websearch.js +108 -108
  608. package/dist/tool/plugin/write.js +113 -113
  609. package/dist/tool/read-filesystem.js +97 -97
  610. package/dist/tool/runtime.js +2 -2
  611. package/dist/tool-output.js +5 -5
  612. package/dist/tool.js +119 -119
  613. package/dist/types/command.d.ts +23 -65
  614. package/dist/types/config/plugin/command.d.ts +4 -1
  615. package/dist/types/config/plugin/mcp.d.ts +2 -2
  616. package/dist/types/config/plugin/shell.d.ts +1 -1
  617. package/dist/types/location-service-map.d.ts +2 -2
  618. package/dist/types/location-services.d.ts +1 -1
  619. package/dist/types/mcp/index.d.ts +37 -0
  620. package/dist/types/mime.d.ts +1 -1
  621. package/dist/types/plugin/command.d.ts +3 -1
  622. package/dist/types/plugin/host.d.ts +12 -14
  623. package/dist/types/plugin/internal.d.ts +3 -3
  624. package/dist/types/plugin/supervisor.d.ts +1 -1
  625. package/dist/types/session/execution.d.ts +3 -2
  626. package/dist/types/session/message.d.ts +1 -1
  627. package/dist/types/session/revert.d.ts +2 -2
  628. package/dist/types/session/run-coordinator.d.ts +3 -2
  629. package/dist/types/session/schema.d.ts +1 -1
  630. package/dist/types/session/sql.d.ts +2 -2
  631. package/dist/types/session/stats.d.ts +82 -0
  632. package/dist/types/session.d.ts +3 -7
  633. package/dist/types/tool/plugin/shell.d.ts +1 -1
  634. package/dist/types/v1/config/migrate.d.ts +9 -9
  635. package/dist/types/workspace.d.ts +16 -2
  636. package/dist/util/array.js +1 -1
  637. package/dist/util/error.js +2 -2
  638. package/dist/util/identifier.js +1 -1
  639. package/dist/util/iife.js +2 -2
  640. package/dist/util/lazy.js +2 -2
  641. package/dist/util/process-lock-ffi.bun.js +1 -1
  642. package/dist/util/process-lock-ffi.node.js +1 -1
  643. package/dist/util/process-lock-ffi.workerd.js +1 -1
  644. package/dist/util/process-lock.js +1 -1
  645. package/dist/util/slug.js +2 -2
  646. package/dist/util/token.js +2 -2
  647. package/dist/util/which.js +2 -2
  648. package/dist/util/wildcard.js +2 -2
  649. package/dist/v1/config/agent.js +4 -4
  650. package/dist/v1/config/attachment.js +3 -3
  651. package/dist/v1/config/command.js +2 -2
  652. package/dist/v1/config/config.js +15 -15
  653. package/dist/v1/config/error.js +3 -3
  654. package/dist/v1/config/formatter.js +2 -2
  655. package/dist/v1/config/layout.js +2 -2
  656. package/dist/v1/config/lsp.js +2 -2
  657. package/dist/v1/config/mcp.js +3 -3
  658. package/dist/v1/config/migrate.js +19 -19
  659. package/dist/v1/config/permission.js +2 -2
  660. package/dist/v1/config/plugin.js +2 -2
  661. package/dist/v1/config/provider-options.js +2 -2
  662. package/dist/v1/config/provider.js +3 -3
  663. package/dist/v1/config/server.js +3 -3
  664. package/dist/v1/config/skills.js +2 -2
  665. package/dist/v1/permission.js +1 -1
  666. package/dist/vcs/git.js +3 -3
  667. package/dist/vcs/hg.js +3 -3
  668. package/dist/vcs/patch.js +2 -2
  669. package/dist/vcs.js +86 -86
  670. package/dist/websearch.js +77 -77
  671. package/dist/wellknown/plugin.js +77 -77
  672. package/dist/wellknown.js +76 -76
  673. package/dist/workspace/driver.js +2 -2
  674. package/dist/workspace/sql.js +2 -2
  675. package/dist/workspace.js +76 -74
  676. package/dist/worktree/directory.js +3 -3
  677. package/dist/worktree/git.js +7 -7
  678. package/dist/worktree/sql.js +6 -6
  679. package/dist/worktree.js +86 -86
  680. package/package.json +7 -7
  681. package/dist/chunks/bus-25pxtba7.js +0 -13
  682. package/dist/chunks/bus-b669x930.js +0 -93
  683. package/dist/chunks/bus-nvph9q40.js +0 -210
  684. package/dist/chunks/bus-y8rs54ne.js +0 -16
  685. /package/dist/chunks/{bus-0cgt0xh2.js → command-0cgt0xh2.js} +0 -0
  686. /package/dist/chunks/{bus-0f48qthw.js → command-0f48qthw.js} +0 -0
  687. /package/dist/chunks/{bus-0zz82cjq.js → command-0zz82cjq.js} +0 -0
  688. /package/dist/chunks/{bus-1fb7bmpf.js → command-1fb7bmpf.js} +0 -0
  689. /package/dist/chunks/{bus-1wcz8fvj.js → command-1wcz8fvj.js} +0 -0
  690. /package/dist/chunks/{bus-2qdx6zz3.js → command-2qdx6zz3.js} +0 -0
  691. /package/dist/chunks/{bus-39ktntah.js → command-39ktntah.js} +0 -0
  692. /package/dist/chunks/{bus-3g3rpp2x.js → command-3g3rpp2x.js} +0 -0
  693. /package/dist/chunks/{bus-3q6gbwmd.js → command-3q6gbwmd.js} +0 -0
  694. /package/dist/chunks/{bus-3w3ybtfd.js → command-3w3ybtfd.js} +0 -0
  695. /package/dist/chunks/{bus-47ty4mvs.js → command-47ty4mvs.js} +0 -0
  696. /package/dist/chunks/{bus-4b2tz2m9.js → command-4b2tz2m9.js} +0 -0
  697. /package/dist/chunks/{bus-4zg0gww9.js → command-4zg0gww9.js} +0 -0
  698. /package/dist/chunks/{bus-5a5ch9ts.js → command-5a5ch9ts.js} +0 -0
  699. /package/dist/chunks/{bus-5va1yh78.js → command-5va1yh78.js} +0 -0
  700. /package/dist/chunks/{bus-61ek4hj9.js → command-61ek4hj9.js} +0 -0
  701. /package/dist/chunks/{bus-69qrqpw0.js → command-69qrqpw0.js} +0 -0
  702. /package/dist/chunks/{bus-6yt963b8.js → command-6yt963b8.js} +0 -0
  703. /package/dist/chunks/{bus-6zqxzw0a.js → command-6zqxzw0a.js} +0 -0
  704. /package/dist/chunks/{bus-7n9qwqk4.js → command-7n9qwqk4.js} +0 -0
  705. /package/dist/chunks/{bus-8nn8kqcn.js → command-8nn8kqcn.js} +0 -0
  706. /package/dist/chunks/{bus-8sj3ajy5.js → command-8sj3ajy5.js} +0 -0
  707. /package/dist/chunks/{bus-8w9tzfz1.js → command-8w9tzfz1.js} +0 -0
  708. /package/dist/chunks/{bus-906y0b6d.js → command-906y0b6d.js} +0 -0
  709. /package/dist/chunks/{bus-9dct5xhx.js → command-9dct5xhx.js} +0 -0
  710. /package/dist/chunks/{bus-9sdtsapf.js → command-9sdtsapf.js} +0 -0
  711. /package/dist/chunks/{bus-a02svayp.js → command-a02svayp.js} +0 -0
  712. /package/dist/chunks/{bus-a83yvq99.js → command-a83yvq99.js} +0 -0
  713. /package/dist/chunks/{bus-aqg9wnx6.js → command-aqg9wnx6.js} +0 -0
  714. /package/dist/chunks/{bus-ayevdmef.js → command-ayevdmef.js} +0 -0
  715. /package/dist/chunks/{bus-b02txbh8.js → command-b02txbh8.js} +0 -0
  716. /package/dist/chunks/{bus-bbqs2y60.js → command-bbqs2y60.js} +0 -0
  717. /package/dist/chunks/{bus-brsh5f65.js → command-brsh5f65.js} +0 -0
  718. /package/dist/chunks/{bus-bxdhjb3y.js → command-bxdhjb3y.js} +0 -0
  719. /package/dist/chunks/{bus-c77ad0vh.js → command-c77ad0vh.js} +0 -0
  720. /package/dist/chunks/{bus-ck5pgha0.js → command-ck5pgha0.js} +0 -0
  721. /package/dist/chunks/{bus-cm67rqy2.js → command-cm67rqy2.js} +0 -0
  722. /package/dist/chunks/{bus-df3v2q6j.js → command-df3v2q6j.js} +0 -0
  723. /package/dist/chunks/{bus-dhcq6c44.js → command-dhcq6c44.js} +0 -0
  724. /package/dist/chunks/{bus-dht5baf0.js → command-dht5baf0.js} +0 -0
  725. /package/dist/chunks/{bus-dkmkay92.js → command-dkmkay92.js} +0 -0
  726. /package/dist/chunks/{bus-ehj9csmv.js → command-ehj9csmv.js} +0 -0
  727. /package/dist/chunks/{bus-em6xpscd.js → command-em6xpscd.js} +0 -0
  728. /package/dist/chunks/{bus-emmqknsm.js → command-emmqknsm.js} +0 -0
  729. /package/dist/chunks/{bus-ezs3tagn.js → command-ezs3tagn.js} +0 -0
  730. /package/dist/chunks/{bus-f14r7hfz.js → command-f14r7hfz.js} +0 -0
  731. /package/dist/chunks/{bus-f4cp4g4a.js → command-f4cp4g4a.js} +0 -0
  732. /package/dist/chunks/{bus-f84sxdqn.js → command-f84sxdqn.js} +0 -0
  733. /package/dist/chunks/{bus-faypg4r1.js → command-faypg4r1.js} +0 -0
  734. /package/dist/chunks/{bus-fgbfdq62.js → command-fgbfdq62.js} +0 -0
  735. /package/dist/chunks/{bus-gd5xeqc2.js → command-gd5xeqc2.js} +0 -0
  736. /package/dist/chunks/{bus-ghm4673n.js → command-ghm4673n.js} +0 -0
  737. /package/dist/chunks/{bus-ghwjy7my.js → command-ghwjy7my.js} +0 -0
  738. /package/dist/chunks/{bus-gy500k2r.js → command-gy500k2r.js} +0 -0
  739. /package/dist/chunks/{bus-hzeg9cfr.js → command-hzeg9cfr.js} +0 -0
  740. /package/dist/chunks/{bus-j07kk359.js → command-j07kk359.js} +0 -0
  741. /package/dist/chunks/{bus-jf35ek5b.js → command-jf35ek5b.js} +0 -0
  742. /package/dist/chunks/{bus-jve7t217.js → command-jve7t217.js} +0 -0
  743. /package/dist/chunks/{bus-k3e42drn.js → command-k3e42drn.js} +0 -0
  744. /package/dist/chunks/{bus-k8b45nas.js → command-k8b45nas.js} +0 -0
  745. /package/dist/chunks/{bus-kcacmy5c.js → command-kcacmy5c.js} +0 -0
  746. /package/dist/chunks/{bus-kpdbz7gn.js → command-kpdbz7gn.js} +0 -0
  747. /package/dist/chunks/{bus-kxy11nzk.js → command-kxy11nzk.js} +0 -0
  748. /package/dist/chunks/{bus-kyyqvx4s.js → command-kyyqvx4s.js} +0 -0
  749. /package/dist/chunks/{bus-m8cbvarh.js → command-m8cbvarh.js} +0 -0
  750. /package/dist/chunks/{bus-ma60vzgv.js → command-ma60vzgv.js} +0 -0
  751. /package/dist/chunks/{bus-n3m50c2t.js → command-n3m50c2t.js} +0 -0
  752. /package/dist/chunks/{bus-nkm1m8dz.js → command-nkm1m8dz.js} +0 -0
  753. /package/dist/chunks/{bus-nsc0c3zb.js → command-nsc0c3zb.js} +0 -0
  754. /package/dist/chunks/{bus-qaarhjrp.js → command-qaarhjrp.js} +0 -0
  755. /package/dist/chunks/{bus-qc167nrn.js → command-qc167nrn.js} +0 -0
  756. /package/dist/chunks/{bus-qp95y4jb.js → command-qp95y4jb.js} +0 -0
  757. /package/dist/chunks/{bus-r8f4w671.js → command-r8f4w671.js} +0 -0
  758. /package/dist/chunks/{bus-rdfev9jy.js → command-rdfev9jy.js} +0 -0
  759. /package/dist/chunks/{bus-s7whb9gt.js → command-s7whb9gt.js} +0 -0
  760. /package/dist/chunks/{bus-se76j685.js → command-se76j685.js} +0 -0
  761. /package/dist/chunks/{bus-sem2g21k.js → command-sem2g21k.js} +0 -0
  762. /package/dist/chunks/{bus-tmb1f636.js → command-tmb1f636.js} +0 -0
  763. /package/dist/chunks/{bus-ttxf0gsy.js → command-ttxf0gsy.js} +0 -0
  764. /package/dist/chunks/{bus-tvmhrvfj.js → command-tvmhrvfj.js} +0 -0
  765. /package/dist/chunks/{bus-v2adqbbe.js → command-v2adqbbe.js} +0 -0
  766. /package/dist/chunks/{bus-vkvb1sb3.js → command-vkvb1sb3.js} +0 -0
  767. /package/dist/chunks/{bus-wj4sxzqa.js → command-wj4sxzqa.js} +0 -0
  768. /package/dist/chunks/{bus-wwntjmk1.js → command-wwntjmk1.js} +0 -0
  769. /package/dist/chunks/{bus-wyqjaaa5.js → command-wyqjaaa5.js} +0 -0
  770. /package/dist/chunks/{bus-x4q807cx.js → command-x4q807cx.js} +0 -0
  771. /package/dist/chunks/{bus-xt0068v8.js → command-xt0068v8.js} +0 -0
  772. /package/dist/chunks/{bus-yrqrg4vp.js → command-yrqrg4vp.js} +0 -0
  773. /package/dist/chunks/{bus-z47nswr2.js → command-z47nswr2.js} +0 -0
  774. /package/dist/chunks/{bus-zsf8rs93.js → command-zsf8rs93.js} +0 -0
@@ -0,0 +1,165 @@
1
+ import {
2
+ exports_markdown
3
+ } from "./command-7wcmqxrc.js";
4
+ import {
5
+ exports_config
6
+ } from "./command-x8a0pw1h.js";
7
+ import {
8
+ exports_select
9
+ } from "./command-cke3skfe.js";
10
+ import {
11
+ exports_location
12
+ } from "./command-emrt7sh4.js";
13
+ import {
14
+ __export
15
+ } from "./command-rvfvac9x.js";
16
+
17
+ // src/config/plugin/command.ts
18
+ var exports_command = {};
19
+ __export(exports_command, {
20
+ Plugin: () => Plugin,
21
+ ConfigCommandPlugin: () => exports_command
22
+ });
23
+ import { define } from "@opencode-ai/plugin/effect/plugin";
24
+ import { Agent } from "@opencode-ai/schema/agent";
25
+ import { ConfigCommand } from "@opencode-ai/schema/config/command";
26
+ import { Model } from "@opencode-ai/schema/model";
27
+ import { Provider } from "@opencode-ai/schema/provider";
28
+ import { AppProcess } from "@opencode-ai/util/process";
29
+ import path from "path";
30
+ import { Effect, Option, Schema, Stream } from "effect";
31
+ import { ChildProcess } from "effect/unstable/process";
32
+ import { FSUtil } from "@opencode-ai/util/fs-util";
33
+ var decodeCommand = Schema.decodeUnknownOption(ConfigCommand.Info);
34
+ var Plugin = define({
35
+ id: "opencode.config.command",
36
+ effect: Effect.fn(function* (ctx) {
37
+ const config = yield* exports_config.Service;
38
+ const fs = yield* FSUtil.Service;
39
+ const loadEntry = Effect.fnUntraced(function* (entry) {
40
+ if (entry.type === "document")
41
+ return [{ commands: entry.info.commands }];
42
+ if (entry.type !== "directory")
43
+ return [];
44
+ const commands = yield* loadDirectory(fs, entry.path);
45
+ return [{ commands: Object.fromEntries(commands.map((command) => [command.name, command.info])) }];
46
+ });
47
+ const location = yield* exports_location.Service;
48
+ const processes = yield* AppProcess.Service;
49
+ const shell = yield* exports_select.Service;
50
+ const load = Effect.fn("ConfigCommandPlugin.load")(function* () {
51
+ return yield* Effect.forEach(yield* config.entries(), loadEntry).pipe(Effect.map((documents) => documents.flat()));
52
+ });
53
+ const loaded = { documents: [] };
54
+ const reload = load().pipe(Effect.tap((documents) => Effect.sync(() => loaded.documents = documents)), Effect.andThen(ctx.command.reload()));
55
+ const sourceChanges = config.changes().pipe(Stream.filterEffect((update) => Effect.map(config.entries(), (entries) => isCommandSource(entries, update.path))));
56
+ const configUpdates = ctx.event.subscribe().pipe(Stream.filter((event) => event.type === "config.updated"));
57
+ yield* Stream.merge(sourceChanges, configUpdates).pipe(Stream.debounce("100 millis"), Stream.runForEach(() => reload), Effect.forkScoped({ startImmediately: true }));
58
+ loaded.documents = yield* load();
59
+ yield* ctx.command.transform((draft) => {
60
+ for (const document of loaded.documents) {
61
+ for (const [name, command] of Object.entries(document.commands ?? {})) {
62
+ draft.add({
63
+ name,
64
+ description: command.description,
65
+ execute: (input) => Effect.gen(function* () {
66
+ const agent = command.agent === undefined ? undefined : Agent.ID.make(command.agent);
67
+ const commandAgent = yield* Effect.gen(function* () {
68
+ if (agent === undefined)
69
+ return;
70
+ const session = yield* ctx.session.get({ sessionID: input.sessionID });
71
+ if (session.agent !== agent)
72
+ yield* ctx.session.switchAgent({ sessionID: input.sessionID, agent });
73
+ return (yield* ctx.agent.get({ agentID: agent })).data;
74
+ });
75
+ const model = command.model === undefined ? commandAgent?.model : {
76
+ id: Model.ID.make(command.model.model),
77
+ providerID: Provider.ID.make(command.model.providerID),
78
+ ...command.model.variant === undefined ? {} : { variant: Model.VariantID.make(command.model.variant) }
79
+ };
80
+ if (model !== undefined)
81
+ yield* ctx.session.switchModel({ sessionID: input.sessionID, model });
82
+ yield* ctx.session.prompt({
83
+ ...input.prompt,
84
+ sessionID: input.sessionID,
85
+ text: yield* evaluateTemplate(command.template, input.prompt.text, {
86
+ config,
87
+ location,
88
+ processes,
89
+ shell
90
+ }),
91
+ delivery: input.delivery
92
+ });
93
+ }).pipe(Effect.asVoid)
94
+ });
95
+ }
96
+ }
97
+ });
98
+ })
99
+ });
100
+ var sourceDirectories = ["command", "commands"];
101
+ function isCommandSource(entries, file) {
102
+ return entries.some((entry) => entry.type === "directory" && sourceDirectories.some((name) => FSUtil.contains(path.join(entry.path, name), file)));
103
+ }
104
+ function loadDirectory(fs, directory) {
105
+ return Effect.gen(function* () {
106
+ const files = yield* fs.scan("{command,commands}/**/*.md", { cwd: directory, absolute: true, dot: true, symlink: true }).pipe(Effect.orElseSucceed(() => []));
107
+ return yield* Effect.forEach(files.toSorted(), (filepath) => fs.readFileStringSafe(filepath).pipe(Effect.map((content) => content === undefined ? undefined : decode(directory, filepath, content)), Effect.orElseSucceed(() => {
108
+ return;
109
+ }))).pipe(Effect.map((commands) => commands.filter((command) => command !== undefined)));
110
+ });
111
+ }
112
+ function decode(directory, filepath, content) {
113
+ const markdown = exports_markdown.parseOption(content);
114
+ if (!markdown)
115
+ return;
116
+ const info = Option.getOrUndefined(decodeCommand({ ...markdown.data, template: markdown.content.trim() }));
117
+ if (!info)
118
+ return;
119
+ return {
120
+ name: path.relative(directory, filepath).replaceAll("\\", "/").replace(/^(command|commands)\//, "").replace(/\.md$/, ""),
121
+ info
122
+ };
123
+ }
124
+ function evaluateTemplate(template, input, services) {
125
+ return Effect.gen(function* () {
126
+ const args = parseArguments(input);
127
+ const placeholders = template.match(placeholderRegex) ?? [];
128
+ const last = Math.max(0, ...placeholders.map((item) => Number(item.slice(1))));
129
+ const expanded = template.replaceAll(placeholderRegex, (_, index) => {
130
+ const position = Number(index);
131
+ const argIndex = position - 1;
132
+ if (argIndex >= args.length)
133
+ return "";
134
+ if (position === last)
135
+ return args.slice(argIndex).join(" ");
136
+ return args[argIndex];
137
+ });
138
+ const withArguments = expanded.replaceAll("$ARGUMENTS", input);
139
+ const text = placeholders.length === 0 && !template.includes("$ARGUMENTS") && input.trim() ? `${withArguments}
140
+
141
+ ${input}`.trim() : withArguments.trim();
142
+ const matches = Array.from(text.matchAll(shellRegex));
143
+ if (matches.length === 0)
144
+ return text;
145
+ const shell = yield* services.shell.preferred();
146
+ const outputs = yield* Effect.forEach(matches, (match) => {
147
+ const source = match[1] ?? "";
148
+ return services.processes.run(ChildProcess.make(shell, exports_select.args(shell, source), {
149
+ cwd: services.location.directory,
150
+ stdin: "ignore"
151
+ }), { combineOutput: true }).pipe(Effect.map((result) => (result.output ?? Buffer.concat([result.stdout, result.stderr])).toString("utf8")), Effect.mapError((error) => new Error(`Shell interpolation failed for ${JSON.stringify(source)}: ${error.message}`)));
152
+ }, { concurrency: 2 });
153
+ const iterator = outputs[Symbol.iterator]();
154
+ return text.replace(shellRegex, () => iterator.next().value ?? "");
155
+ });
156
+ }
157
+ function parseArguments(input) {
158
+ return (input.match(argsRegex) ?? []).map((arg) => arg.replace(quoteTrimRegex, ""));
159
+ }
160
+ var argsRegex = /(?:\[Image\s+\d+\]|"[^"]*"|'[^']*'|[^\s"']+)/gi;
161
+ var placeholderRegex = /\$(\d+)/g;
162
+ var quoteTrimRegex = /^["']|["']$/g;
163
+ var shellRegex = /!`([^`]+)`/g;
164
+
165
+ export { Plugin, exports_command };
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  __export
3
- } from "./bus-rvfvac9x.js";
3
+ } from "./command-rvfvac9x.js";
4
4
 
5
5
  // src/file-retention.ts
6
6
  var exports_file_retention = {};
@@ -0,0 +1,88 @@
1
+ import {
2
+ exports_state
3
+ } from "./command-qhdqjp31.js";
4
+ import {
5
+ exports_bus
6
+ } from "./command-q7ev6hpr.js";
7
+ import {
8
+ __export
9
+ } from "./command-rvfvac9x.js";
10
+
11
+ // src/command.ts
12
+ var exports_command = {};
13
+ __export(exports_command, {
14
+ node: () => node,
15
+ layer: () => layer,
16
+ Service: () => Service,
17
+ NotFoundError: () => NotFoundError,
18
+ Info: () => Info,
19
+ ExecutionError: () => ExecutionError,
20
+ Event: () => Event,
21
+ Command: () => exports_command
22
+ });
23
+ import { Command } from "@opencode-ai/schema/command";
24
+ import { makeLocationNode } from "@opencode-ai/util/effect/app-node";
25
+ import { Context, Effect, Layer, Schema } from "effect";
26
+ import { Event } from "@opencode-ai/schema/command";
27
+ var Info = Command.Info;
28
+
29
+ class NotFoundError extends Schema.TaggedError()("Command.NotFoundError", {
30
+ command: Schema.String,
31
+ message: Schema.String
32
+ }) {
33
+ }
34
+
35
+ class ExecutionError extends Schema.TaggedError()("Command.ExecutionError", {
36
+ command: Schema.String,
37
+ message: Schema.String
38
+ }) {
39
+ }
40
+
41
+ class Service extends Context.Service()("@opencode/Command") {
42
+ }
43
+ var layer = Layer.effect(Service, Effect.gen(function* () {
44
+ const bus = yield* exports_bus.Service;
45
+ const state = exports_state.create({
46
+ name: "command",
47
+ initial: () => new Map,
48
+ draft: (draft) => ({
49
+ add: (definition) => draft.set(definition.name, definition)
50
+ }),
51
+ finalize: () => bus.publish(Command.Event.Updated, {}).pipe(Effect.asVoid)
52
+ });
53
+ const info = (definition) => Info.make({
54
+ name: definition.name,
55
+ description: definition.description
56
+ });
57
+ return Service.of({
58
+ reload: state.reload,
59
+ transform: state.transform,
60
+ get: Effect.fn("Command.get")((name) => Effect.sync(() => {
61
+ const definition = state.get().get(name);
62
+ return definition ? info(definition) : undefined;
63
+ })),
64
+ list: Effect.fn("Command.list")(() => Effect.sync(() => Array.from(state.get().values(), info))),
65
+ execute: Effect.fn("Command.execute")(function* (input) {
66
+ const definition = state.get().get(input.name);
67
+ if (!definition)
68
+ return yield* new NotFoundError({ command: input.name, message: `Command not found: ${input.name}` });
69
+ return yield* definition.execute(input.invocation).pipe(Effect.tapError((error) => Effect.logError("command execution failed", { command: input.name, error })), Effect.mapError((error) => new ExecutionError({ command: input.name, message: errorMessage(error) })));
70
+ })
71
+ });
72
+ }));
73
+ var node = makeLocationNode({
74
+ service: Service,
75
+ layer,
76
+ deps: [exports_bus.node]
77
+ });
78
+ function errorMessage(error) {
79
+ if (error instanceof Error)
80
+ return error.message;
81
+ if (typeof error === "string")
82
+ return error;
83
+ if (error && typeof error === "object" && "message" in error && typeof error.message === "string")
84
+ return error.message;
85
+ return "Command execution failed";
86
+ }
87
+
88
+ export { Info, NotFoundError, ExecutionError, Service, layer, node, exports_command, Event };
@@ -1,11 +1,11 @@
1
- import {
2
- GET_VERSION_FOR,
3
- MIGRATIONS_TABLE_VERSIONS
4
- } from "./bus-f84sxdqn.js";
5
1
  import {
6
2
  buildSQLiteMigrationBackfillStatements,
7
3
  prepareSQLiteMigrationBackfill
8
- } from "./bus-4zg0gww9.js";
4
+ } from "./command-4zg0gww9.js";
5
+ import {
6
+ GET_VERSION_FOR,
7
+ MIGRATIONS_TABLE_VERSIONS
8
+ } from "./command-f84sxdqn.js";
9
9
 
10
10
  // src/database/drizzle/up-migrations/effect-sqlite.ts
11
11
  import * as Effect from "effect/Effect";
@@ -1,141 +1,141 @@
1
1
  import {
2
- _20260211171708_add_project_commands_default
3
- } from "./bus-wwntjmk1.js";
2
+ _20260413175956_chief_energizer_default
3
+ } from "./command-x4q807cx.js";
4
4
  import {
5
- _20260507164347_add_workspace_time_default
6
- } from "./bus-se76j685.js";
5
+ _20260309230000_move_org_to_state_default
6
+ } from "./command-n3m50c2t.js";
7
7
  import {
8
- _20260427172553_slow_nightmare_default
9
- } from "./bus-9sdtsapf.js";
8
+ _20260601202201_amazing_prowler_default
9
+ } from "./command-906y0b6d.js";
10
10
  import {
11
- _20260228203230_blue_harpoon_default
12
- } from "./bus-gd5xeqc2.js";
11
+ _20260312043431_session_message_cursor_default
12
+ } from "./command-z47nswr2.js";
13
13
  import {
14
- _20260611035744_credential_default
15
- } from "./bus-ayevdmef.js";
14
+ _20260611192811_lush_chimera_default
15
+ } from "./command-ghm4673n.js";
16
16
  import {
17
- _20260603001617_session_message_projection_indexes_default
18
- } from "./bus-wyqjaaa5.js";
17
+ _20260228203230_blue_harpoon_default
18
+ } from "./command-gd5xeqc2.js";
19
19
  import {
20
- _20260622202450_simplify_session_input_default
21
- } from "./bus-v2adqbbe.js";
20
+ _20260427172553_slow_nightmare_default
21
+ } from "./command-9sdtsapf.js";
22
22
  import {
23
- _20260819222447_session_viewed_state_default
24
- } from "./bus-6zqxzw0a.js";
23
+ _20260323234822_events_default
24
+ } from "./command-tmb1f636.js";
25
25
  import {
26
- _20260603141458_session_input_inbox_default
27
- } from "./bus-8nn8kqcn.js";
26
+ _20260504145000_add_sync_owner_default
27
+ } from "./command-ma60vzgv.js";
28
28
  import {
29
29
  _20260805200742_import_legacy_credentials_default
30
- } from "./bus-vkvb1sb3.js";
31
- import {
32
- _20260501142318_next_venus_default
33
- } from "./bus-nsc0c3zb.js";
30
+ } from "./command-vkvb1sb3.js";
34
31
  import {
35
32
  _20260603040000_session_message_projection_order_default
36
- } from "./bus-yrqrg4vp.js";
33
+ } from "./command-yrqrg4vp.js";
37
34
  import {
38
35
  _20260804233008_loose_psylocke_default
39
- } from "./bus-f14r7hfz.js";
36
+ } from "./command-f14r7hfz.js";
40
37
  import {
41
- _20260225215848_workspace_default
42
- } from "./bus-9dct5xhx.js";
38
+ _20260507164347_add_workspace_time_default
39
+ } from "./command-se76j685.js";
43
40
  import {
44
- _20260309230000_move_org_to_state_default
45
- } from "./bus-n3m50c2t.js";
41
+ _20260812213948_worktree_default
42
+ } from "./command-em6xpscd.js";
46
43
  import {
47
- _20260611192811_lush_chimera_default
48
- } from "./bus-ghm4673n.js";
44
+ _20260511173437_session_metadata_default
45
+ } from "./command-1fb7bmpf.js";
49
46
  import {
50
- _20260410174513_workspace_name_default
51
- } from "./bus-6yt963b8.js";
47
+ _20260811161259_execution_claim_attempts_default
48
+ } from "./command-kyyqvx4s.js";
52
49
  import {
53
- _20260823191254_nullable_workspace_binding_default
54
- } from "./bus-fgbfdq62.js";
50
+ _20260611035744_credential_default
51
+ } from "./command-ayevdmef.js";
55
52
  import {
56
- _20260605003541_add_session_context_snapshot_default
57
- } from "./bus-5va1yh78.js";
53
+ _20260812181746_session_inbox_default
54
+ } from "./command-emmqknsm.js";
58
55
  import {
59
- _20260227213759_add_session_workspace_id_default
60
- } from "./bus-dhcq6c44.js";
56
+ _20260511000411_data_migration_state_default
57
+ } from "./command-47ty4mvs.js";
61
58
  import {
62
- _20260510033149_session_usage_default
63
- } from "./bus-8sj3ajy5.js";
59
+ _20260808023530_workspace_domain_default
60
+ } from "./command-cm67rqy2.js";
64
61
  import {
65
- _20260504145000_add_sync_owner_default
66
- } from "./bus-ma60vzgv.js";
62
+ _20260303231226_add_workspace_fields_default
63
+ } from "./command-3g3rpp2x.js";
67
64
  import {
68
- _20260604172448_event_sourced_session_input_default
69
- } from "./bus-ghwjy7my.js";
65
+ _20260211171708_add_project_commands_default
66
+ } from "./command-wwntjmk1.js";
70
67
  import {
71
- _20260213144116_wakeful_the_professor_default
72
- } from "./bus-nkm1m8dz.js";
68
+ _20260622170816_reset_v2_session_state_default
69
+ } from "./command-f4cp4g4a.js";
73
70
  import {
74
- _20260603160727_jittery_ezekiel_stane_default
75
- } from "./bus-2qdx6zz3.js";
71
+ _20260605042240_add_context_epoch_agent_default
72
+ } from "./command-qp95y4jb.js";
76
73
  import {
77
- _20260312043431_session_message_cursor_default
78
- } from "./bus-z47nswr2.js";
74
+ _20260602002951_lowly_union_jack_default
75
+ } from "./command-kxy11nzk.js";
79
76
  import {
80
- _20260601010001_normalize_storage_paths_default
81
- } from "./bus-dht5baf0.js";
77
+ _20260603141458_session_input_inbox_default
78
+ } from "./command-8nn8kqcn.js";
82
79
  import {
83
- _20260602182828_add_project_directories_default
84
- } from "./bus-b02txbh8.js";
80
+ _20260127222353_familiar_lady_ursula_default
81
+ } from "./command-3w3ybtfd.js";
85
82
  import {
86
- _20260511173437_session_metadata_default
87
- } from "./bus-1fb7bmpf.js";
83
+ _20260225215848_workspace_default
84
+ } from "./command-9dct5xhx.js";
88
85
  import {
89
- _20260622170816_reset_v2_session_state_default
90
- } from "./bus-f4cp4g4a.js";
86
+ _20260823191254_nullable_workspace_binding_default
87
+ } from "./command-fgbfdq62.js";
91
88
  import {
92
- _20260423070820_add_icon_url_override_default
93
- } from "./bus-kpdbz7gn.js";
89
+ _20260605003541_add_session_context_snapshot_default
90
+ } from "./command-5va1yh78.js";
94
91
  import {
95
- _20260605042240_add_context_epoch_agent_default
96
- } from "./bus-qp95y4jb.js";
92
+ _20260428004200_add_session_path_default
93
+ } from "./command-faypg4r1.js";
97
94
  import {
98
- _20260511000411_data_migration_state_default
99
- } from "./bus-47ty4mvs.js";
95
+ _20260603001617_session_message_projection_indexes_default
96
+ } from "./command-wyqjaaa5.js";
100
97
  import {
101
98
  _20260622142730_simplify_session_context_epoch_default
102
- } from "./bus-69qrqpw0.js";
99
+ } from "./command-69qrqpw0.js";
103
100
  import {
104
- _20260303231226_add_workspace_fields_default
105
- } from "./bus-3g3rpp2x.js";
101
+ _20260213144116_wakeful_the_professor_default
102
+ } from "./command-nkm1m8dz.js";
106
103
  import {
107
- _20260811161259_execution_claim_attempts_default
108
- } from "./bus-kyyqvx4s.js";
104
+ _20260622202450_simplify_session_input_default
105
+ } from "./command-v2adqbbe.js";
109
106
  import {
110
- _20260323234822_events_default
111
- } from "./bus-tmb1f636.js";
107
+ _20260604172448_event_sourced_session_input_default
108
+ } from "./command-ghwjy7my.js";
112
109
  import {
113
- _20260413175956_chief_energizer_default
114
- } from "./bus-x4q807cx.js";
110
+ _20260819222447_session_viewed_state_default
111
+ } from "./command-6zqxzw0a.js";
115
112
  import {
116
- _20260127222353_familiar_lady_ursula_default
117
- } from "./bus-3w3ybtfd.js";
113
+ _20260423070820_add_icon_url_override_default
114
+ } from "./command-kpdbz7gn.js";
118
115
  import {
119
- _20260428004200_add_session_path_default
120
- } from "./bus-faypg4r1.js";
116
+ _20260612174303_project_dir_strategy_default
117
+ } from "./command-qc167nrn.js";
121
118
  import {
122
- _20260812213948_worktree_default
123
- } from "./bus-em6xpscd.js";
119
+ _20260601010001_normalize_storage_paths_default
120
+ } from "./command-dht5baf0.js";
124
121
  import {
125
- _20260812181746_session_inbox_default
126
- } from "./bus-emmqknsm.js";
122
+ _20260410174513_workspace_name_default
123
+ } from "./command-6yt963b8.js";
127
124
  import {
128
- _20260612174303_project_dir_strategy_default
129
- } from "./bus-qc167nrn.js";
125
+ _20260510033149_session_usage_default
126
+ } from "./command-8sj3ajy5.js";
130
127
  import {
131
- _20260808023530_workspace_domain_default
132
- } from "./bus-cm67rqy2.js";
128
+ _20260501142318_next_venus_default
129
+ } from "./command-nsc0c3zb.js";
133
130
  import {
134
- _20260602002951_lowly_union_jack_default
135
- } from "./bus-kxy11nzk.js";
131
+ _20260603160727_jittery_ezekiel_stane_default
132
+ } from "./command-2qdx6zz3.js";
136
133
  import {
137
- _20260601202201_amazing_prowler_default
138
- } from "./bus-906y0b6d.js";
134
+ _20260602182828_add_project_directories_default
135
+ } from "./command-b02txbh8.js";
136
+ import {
137
+ _20260227213759_add_session_workspace_id_default
138
+ } from "./command-dhcq6c44.js";
139
139
 
140
140
  // src/database/migration.gen.ts
141
141
  var migrations = [
@@ -1,15 +1,15 @@
1
1
  import {
2
2
  exports_entry_observer
3
- } from "./bus-kp1t5rcy.js";
3
+ } from "./command-kp1t5rcy.js";
4
4
  import {
5
5
  exports_config
6
- } from "./bus-m103j73a.js";
6
+ } from "./command-x8a0pw1h.js";
7
7
  import {
8
8
  exports_provider
9
- } from "./bus-djkt4gex.js";
9
+ } from "./command-djkt4gex.js";
10
10
  import {
11
11
  __export
12
- } from "./bus-rvfvac9x.js";
12
+ } from "./command-rvfvac9x.js";
13
13
 
14
14
  // src/config/plugin/provider.ts
15
15
  var exports_provider2 = {};
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  createProviderPlugin
3
- } from "./bus-0zz82cjq.js";
3
+ } from "./command-0zz82cjq.js";
4
4
  import {
5
5
  __require
6
- } from "./bus-rvfvac9x.js";
6
+ } from "./command-rvfvac9x.js";
7
7
 
8
8
  // src/plugin/provider/togetherai.ts
9
9
  var TogetherAIPlugin = createProviderPlugin({
@@ -1,30 +1,30 @@
1
1
  import {
2
- exports_message
3
- } from "./bus-25pxtba7.js";
2
+ SessionMessage
3
+ } from "./command-8rpfd2h6.js";
4
4
  import {
5
5
  SessionMessageTable
6
- } from "./bus-ygy0xbqa.js";
6
+ } from "./command-ygy0xbqa.js";
7
7
  import {
8
- SessionEvent
9
- } from "./bus-a83yvq99.js";
8
+ exports_snapshot
9
+ } from "./command-187s1d59.js";
10
10
  import {
11
- exports_schema
12
- } from "./bus-y8rs54ne.js";
11
+ SessionSchema
12
+ } from "./command-bjwj8hwv.js";
13
13
  import {
14
- exports_snapshot
15
- } from "./bus-5d55tz08.js";
14
+ SessionEvent
15
+ } from "./command-a83yvq99.js";
16
16
  import {
17
17
  RelativePath
18
- } from "./bus-j07kk359.js";
18
+ } from "./command-j07kk359.js";
19
19
  import {
20
20
  exports_bus
21
- } from "./bus-phg8qt30.js";
21
+ } from "./command-q7ev6hpr.js";
22
22
  import {
23
23
  exports_database
24
- } from "./bus-bk9100qx.js";
24
+ } from "./command-6a4fqxwb.js";
25
25
  import {
26
26
  __export
27
- } from "./bus-rvfvac9x.js";
27
+ } from "./command-rvfvac9x.js";
28
28
 
29
29
  // src/session/revert.ts
30
30
  var exports_revert = {};
@@ -38,8 +38,8 @@ __export(exports_revert, {
38
38
  import { and, asc, eq, gt } from "drizzle-orm";
39
39
  import { Effect, Schema } from "effect";
40
40
  class MessageNotFoundError extends Schema.TaggedError()("Session.MessageNotFoundError", {
41
- sessionID: exports_schema.ID,
42
- messageID: exports_message.ID
41
+ sessionID: SessionSchema.ID,
42
+ messageID: SessionMessage.ID
43
43
  }) {
44
44
  }
45
45
  var plan = Effect.fn("SessionRevert.plan")(function* (input) {
@@ -48,7 +48,7 @@ var plan = Effect.fn("SessionRevert.plan")(function* (input) {
48
48
  if (!boundary)
49
49
  return yield* new MessageNotFoundError(input);
50
50
  const rows = yield* db.select().from(SessionMessageTable).where(and(eq(SessionMessageTable.session_id, input.sessionID), eq(SessionMessageTable.type, "assistant"), gt(SessionMessageTable.seq, boundary.seq))).orderBy(asc(SessionMessageTable.seq)).all().pipe(Effect.orDie);
51
- const decode = Schema.decodeUnknownEffect(exports_message.Info);
51
+ const decode = Schema.decodeUnknownEffect(SessionMessage.Info);
52
52
  const files = new Map;
53
53
  for (const row of rows) {
54
54
  const message = yield* decode({ ...row.data, id: row.id, type: row.type }).pipe(Effect.orDie);
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  WebSocketConstructor
3
- } from "./bus-ck5pgha0.js";
3
+ } from "./command-ck5pgha0.js";
4
4
  import {
5
5
  __export
6
- } from "./bus-rvfvac9x.js";
6
+ } from "./command-rvfvac9x.js";
7
7
 
8
8
  // src/effect/app-node-platform.ts
9
9
  var exports_app_node_platform = {};
@@ -1,12 +1,12 @@
1
1
  import {
2
2
  exports_environment1 as exports_environment
3
- } from "./bus-5pdtengv.js";
3
+ } from "./command-qv3e3p9j.js";
4
4
  import {
5
5
  exports_keyed_mutex
6
- } from "./bus-0kvmztkf.js";
6
+ } from "./command-0kvmztkf.js";
7
7
  import {
8
8
  __export
9
- } from "./bus-rvfvac9x.js";
9
+ } from "./command-rvfvac9x.js";
10
10
 
11
11
  // src/file-mutation.ts
12
12
  var exports_file_mutation = {};
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  __export
3
- } from "./bus-rvfvac9x.js";
3
+ } from "./command-rvfvac9x.js";
4
4
 
5
5
  // src/filesystem/protected.ts
6
6
  var exports_protected = {};