@opencode-ai/core 0.0.0-beta-17823 → 0.0.0-beta-17898

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 +73 -72
  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 +71 -70
  7. package/dist/catalog.js +81 -80
  8. package/dist/chunks/{bus-02dbfq60.js → shell-02dbfq60.js} +1 -1
  9. package/dist/chunks/{bus-qp4w20e0.js → shell-02s4hv33.js} +7 -7
  10. package/dist/chunks/{bus-0b17sr9d.js → shell-0b17sr9d.js} +2 -2
  11. package/dist/chunks/{bus-n0pq9mwy.js → shell-0bmdcyan.js} +8 -14
  12. package/dist/chunks/{bus-0kvmztkf.js → shell-0kvmztkf.js} +1 -1
  13. package/dist/chunks/{bus-cake6fs9.js → shell-0rn5nyg1.js} +5 -5
  14. package/dist/chunks/{bus-xd2xkk7n.js → shell-0v6jcyd7.js} +4 -5
  15. package/dist/chunks/{bus-n744begs.js → shell-0vem89v9.js} +4 -4
  16. package/dist/chunks/{bus-n2w8fz38.js → shell-0vgt3zn6.js} +2 -2
  17. package/dist/chunks/{bus-18pv8fg3.js → shell-18pv8fg3.js} +2 -2
  18. package/dist/chunks/{bus-wh0zhxcg.js → shell-1a3a2s70.js} +2 -2
  19. package/dist/chunks/{bus-gwj8nfkp.js → shell-1geabwjm.js} +8 -8
  20. package/dist/chunks/{bus-kyy2az1w.js → shell-1pzxdzrs.js} +5 -5
  21. package/dist/chunks/{bus-md8xze4k.js → shell-1yr8gs1w.js} +7 -7
  22. package/dist/chunks/{bus-4hc8axh8.js → shell-209jfnqy.js} +67 -35
  23. package/dist/chunks/{bus-sgvnccme.js → shell-220t9fan.js} +12 -21
  24. package/dist/chunks/{bus-25pxtba7.js → shell-25pxtba7.js} +1 -1
  25. package/dist/chunks/{bus-2nmyybe0.js → shell-2nmyybe0.js} +1 -1
  26. package/dist/chunks/{bus-9bpmq09z.js → shell-2r0r061q.js} +91 -87
  27. package/dist/chunks/{bus-2akqrmqf.js → shell-2ya5073c.js} +1 -1
  28. package/dist/chunks/{bus-t2ccr6s6.js → shell-2zf7hxjt.js} +4 -4
  29. package/dist/chunks/{bus-q33mk6d8.js → shell-3172p7em.js} +12 -10
  30. package/dist/chunks/{bus-gp1p5nz4.js → shell-37e9hbzs.js} +2 -2
  31. package/dist/chunks/{bus-gn16fasc.js → shell-3bffppe7.js} +4 -4
  32. package/dist/chunks/{bus-7xm5mbbb.js → shell-3d1t6jqf.js} +3 -3
  33. package/dist/chunks/{bus-3g8vftxb.js → shell-3g8vftxb.js} +2 -2
  34. package/dist/chunks/{bus-atc09b0q.js → shell-3gsv1x0v.js} +2 -2
  35. package/dist/chunks/{bus-cgfda2sn.js → shell-3pnhr3n3.js} +6 -6
  36. package/dist/chunks/{bus-2m10tm2s.js → shell-3rj19b10.js} +5 -5
  37. package/dist/chunks/{bus-3thh6229.js → shell-3thh6229.js} +2 -2
  38. package/dist/chunks/{bus-rcvvhx6c.js → shell-3yyz51tb.js} +20 -16
  39. package/dist/chunks/{bus-8hssvxkg.js → shell-4amsmytf.js} +16 -17
  40. package/dist/chunks/{bus-ck1pqn60.js → shell-4fk52cm2.js} +25 -17
  41. package/dist/chunks/{bus-48wxp1m2.js → shell-4j7te1s0.js} +3 -3
  42. package/dist/chunks/{bus-4s2xwh5d.js → shell-4s2xwh5d.js} +3 -3
  43. package/dist/chunks/{bus-4zzdwbaz.js → shell-4zzdwbaz.js} +2 -2
  44. package/dist/chunks/{bus-2krkn5gv.js → shell-5068qe83.js} +8 -8
  45. package/dist/chunks/{bus-50jxp3hw.js → shell-50jxp3hw.js} +1 -1
  46. package/dist/chunks/{bus-fjtxtbhx.js → shell-50qcmj3d.js} +3 -3
  47. package/dist/chunks/{bus-57tzwnz4.js → shell-57tzwnz4.js} +1 -1
  48. package/dist/chunks/{bus-tcn24h1d.js → shell-58xdvehb.js} +2 -3
  49. package/dist/chunks/{bus-trb1bzw9.js → shell-5ae01h8y.js} +8 -8
  50. package/dist/chunks/{bus-prf9bavk.js → shell-5fe026tx.js} +3 -3
  51. package/dist/chunks/{bus-f8knj356.js → shell-5fyhynta.js} +2 -2
  52. package/dist/chunks/{bus-pqtsv9by.js → shell-5gx46sa4.js} +9 -9
  53. package/dist/chunks/{bus-j9hz4v7z.js → shell-5kq8mnd6.js} +7 -7
  54. package/dist/chunks/{bus-5rs65q6p.js → shell-5rs65q6p.js} +1 -1
  55. package/dist/chunks/{bus-tqvcb8j8.js → shell-5s07m6n6.js} +8 -6
  56. package/dist/chunks/{bus-5vcssjzn.js → shell-5vcssjzn.js} +1 -1
  57. package/dist/chunks/{bus-95jpn1bs.js → shell-5xj4z3ke.js} +4 -4
  58. package/dist/chunks/{bus-p0zqjz05.js → shell-5xrsrne4.js} +3 -3
  59. package/dist/chunks/{bus-ceh687qc.js → shell-63kqc3ew.js} +16 -14
  60. package/dist/chunks/{bus-ph1me6ah.js → shell-65re92qg.js} +6 -4
  61. package/dist/chunks/{bus-wxb49pcv.js → shell-66zj4vqt.js} +84 -83
  62. package/dist/chunks/{bus-05egcjvj.js → shell-6bfns177.js} +7 -7
  63. package/dist/chunks/{bus-46kxywyk.js → shell-6ex42xv3.js} +11 -11
  64. package/dist/chunks/{bus-4qce6znw.js → shell-6js9hgcv.js} +10 -16
  65. package/dist/chunks/{bus-6ky7rqk7.js → shell-6ky7rqk7.js} +1 -1
  66. package/dist/chunks/{bus-pksqhf5j.js → shell-6nx0wney.js} +17 -14
  67. package/dist/chunks/{bus-6q0m15b3.js → shell-6q0m15b3.js} +1 -1
  68. package/dist/chunks/{bus-5yea2tah.js → shell-6x98y149.js} +2 -2
  69. package/dist/chunks/shell-6zqxzw0a.js +15 -0
  70. package/dist/chunks/{bus-phkhjjkz.js → shell-711fwhe7.js} +13 -13
  71. package/dist/chunks/{bus-73eahnvp.js → shell-790va5tj.js} +6 -7
  72. package/dist/chunks/{bus-e3pt0j5y.js → shell-79bydzg6.js} +28 -22
  73. package/dist/chunks/{bus-9thznc6f.js → shell-7g91x1tk.js} +4 -4
  74. package/dist/chunks/{bus-7gqqz1s8.js → shell-7gqqz1s8.js} +1 -1
  75. package/dist/chunks/{bus-rxf53ctm.js → shell-7hjwv14r.js} +5 -5
  76. package/dist/chunks/{bus-7mrpdsq5.js → shell-7mrpdsq5.js} +1 -1
  77. package/dist/chunks/{bus-wbddvyfn.js → shell-7p61v8vq.js} +9 -7
  78. package/dist/chunks/{bus-3ewxjzxn.js → shell-7v6y1nab.js} +2 -2
  79. package/dist/chunks/{bus-7wcmqxrc.js → shell-7wcmqxrc.js} +1 -1
  80. package/dist/chunks/{bus-pey90rx3.js → shell-7zgwmfba.js} +5 -5
  81. package/dist/chunks/{bus-gn83211g.js → shell-8283he2p.js} +10 -10
  82. package/dist/chunks/{bus-m8eb5ktf.js → shell-830zsmcx.js} +8 -8
  83. package/dist/chunks/{bus-88jbfw8z.js → shell-88jbfw8z.js} +2 -2
  84. package/dist/chunks/{bus-hsyk7kfz.js → shell-8bkmtpp6.js} +5 -5
  85. package/dist/chunks/{bus-rt6yg6j2.js → shell-8bqpm1yy.js} +3 -3
  86. package/dist/chunks/{bus-3r3ecpec.js → shell-8dgyzkg7.js} +10 -11
  87. package/dist/chunks/{bus-bmweayxc.js → shell-8gp1tmat.js} +3 -3
  88. package/dist/chunks/{bus-tg6hejda.js → shell-8jdp4exx.js} +5 -5
  89. package/dist/chunks/{bus-dwn7kn0q.js → shell-8kvb3kpz.js} +66 -66
  90. package/dist/chunks/{bus-8v47shgf.js → shell-8v47shgf.js} +2 -2
  91. package/dist/chunks/{bus-9cey77cq.js → shell-8vxc42m8.js} +8 -8
  92. package/dist/chunks/{bus-999qd968.js → shell-999qd968.js} +1 -1
  93. package/dist/chunks/{bus-9f0rnpkn.js → shell-9f0rnpkn.js} +1 -1
  94. package/dist/chunks/{bus-0em3xb1n.js → shell-9hjs539m.js} +44 -44
  95. package/dist/chunks/{bus-ven12e56.js → shell-9jn94c6e.js} +8 -8
  96. package/dist/chunks/{bus-v332cd3m.js → shell-9nyzp4f1.js} +9 -9
  97. package/dist/chunks/{bus-gz765asg.js → shell-9p8mhgdp.js} +1 -1
  98. package/dist/chunks/{bus-qn7g8h3c.js → shell-9qdbbtgt.js} +4 -4
  99. package/dist/chunks/{bus-nzn9vp0h.js → shell-a0mjc8jk.js} +10 -10
  100. package/dist/chunks/{bus-m8mm853q.js → shell-as6g1q19.js} +10 -10
  101. package/dist/chunks/{bus-ayfwnm78.js → shell-ayfwnm78.js} +2 -2
  102. package/dist/chunks/{bus-zjvgdt9p.js → shell-b7hsw5bk.js} +22 -38
  103. package/dist/chunks/{bus-vyw6gc2g.js → shell-bbnsnjbg.js} +10 -8
  104. package/dist/chunks/{bus-wrfx3tf4.js → shell-bdecp8h7.js} +3 -3
  105. package/dist/chunks/{bus-dyz5q1tb.js → shell-bh1wr8rq.js} +3 -6
  106. package/dist/chunks/{bus-tr2j01af.js → shell-bm0vvenf.js} +7 -5
  107. package/dist/chunks/{bus-byab506k.js → shell-byab506k.js} +1 -1
  108. package/dist/chunks/{bus-1c00jchy.js → shell-c4wcb9vc.js} +3 -3
  109. package/dist/chunks/{bus-e24rm1tf.js → shell-c6gknnhe.js} +2 -2
  110. package/dist/chunks/{bus-0b6ye7sf.js → shell-c9tk9ghs.js} +3 -3
  111. package/dist/chunks/{bus-d9a0aqm5.js → shell-cbhevk0s.js} +22 -22
  112. package/dist/chunks/{bus-7q3nz0jj.js → shell-cef6zhn8.js} +20 -16
  113. package/dist/chunks/{bus-qw06pdhp.js → shell-ck5pgha0.js} +1 -1
  114. package/dist/chunks/{bus-19e1vard.js → shell-cke3skfe.js} +3 -7
  115. package/dist/chunks/{bus-r2sj0wvy.js → shell-cr9jqwwg.js} +8 -8
  116. package/dist/chunks/{bus-nk6yb8jk.js → shell-cve546b2.js} +2 -2
  117. package/dist/chunks/{bus-cz3dkvcz.js → shell-cz3dkvcz.js} +1 -1
  118. package/dist/chunks/{bus-eyk9wdct.js → shell-d2gk9vpf.js} +4 -5
  119. package/dist/chunks/{bus-23pj99w1.js → shell-dc9xj4bb.js} +5 -5
  120. package/dist/chunks/{bus-tchczry9.js → shell-detf2h18.js} +3 -3
  121. package/dist/chunks/{bus-2h2vssdq.js → shell-dh1w6wm7.js} +2 -2
  122. package/dist/chunks/{bus-dhphtf1x.js → shell-dhphtf1x.js} +1 -1
  123. package/dist/chunks/{bus-sfbv6a2b.js → shell-djkt4gex.js} +4 -6
  124. package/dist/chunks/{bus-hq5052b7.js → shell-djr9ryes.js} +146 -146
  125. package/dist/chunks/{bus-5f5thcby.js → shell-dq6pq1ha.js} +8 -8
  126. package/dist/chunks/{bus-7yf7nmr6.js → shell-dqw471kr.js} +2 -2
  127. package/dist/chunks/{bus-cpzngvr9.js → shell-dspx55rh.js} +8 -8
  128. package/dist/chunks/{bus-943bxw84.js → shell-dtg1kwd0.js} +5 -5
  129. package/dist/chunks/{bus-1h0r72pv.js → shell-dyrphakh.js} +11 -17
  130. package/dist/chunks/{bus-y9esm2mp.js → shell-dz79bk2h.js} +7 -7
  131. package/dist/chunks/{bus-e1z9a0ts.js → shell-e1z9a0ts.js} +2 -2
  132. package/dist/chunks/{bus-mkpz73zj.js → shell-eatng4rc.js} +5 -5
  133. package/dist/chunks/{bus-e93xz9yp.js → shell-ebgg8pbd.js} +17 -18
  134. package/dist/chunks/{bus-ec8vrfw5.js → shell-ec8vrfw5.js} +1 -1
  135. package/dist/chunks/{bus-cwdq890m.js → shell-ee4agh14.js} +31 -31
  136. package/dist/chunks/{bus-zkkkcc8p.js → shell-epzxjdf4.js} +4 -4
  137. package/dist/chunks/{bus-erj4j75s.js → shell-erj4j75s.js} +1 -1
  138. package/dist/chunks/{bus-v9sqx51q.js → shell-evpp5e4j.js} +8 -8
  139. package/dist/chunks/{bus-tenv3kfs.js → shell-f9wt0tjw.js} +2 -2
  140. package/dist/chunks/{bus-t30cm89f.js → shell-ffskttry.js} +8 -8
  141. package/dist/chunks/{bus-5hnhk0jf.js → shell-fjp8t082.js} +4 -4
  142. package/dist/chunks/{bus-27v6rhsm.js → shell-fwpmn9q0.js} +8 -8
  143. package/dist/chunks/{bus-8k08086v.js → shell-g7t6p8r2.js} +1 -1
  144. package/dist/chunks/{bus-g9yygpzr.js → shell-g9yygpzr.js} +1 -1
  145. package/dist/chunks/{bus-veg0dp2c.js → shell-gbwgaky4.js} +29 -29
  146. package/dist/chunks/{bus-gcay93cp.js → shell-gcay93cp.js} +1 -1
  147. package/dist/chunks/{bus-gd2xppx8.js → shell-gd2xppx8.js} +1 -1
  148. package/dist/chunks/{bus-fqxzsdmq.js → shell-gg8gy1ab.js} +2 -2
  149. package/dist/chunks/{bus-ng2qt8pw.js → shell-ggms6fy6.js} +6 -6
  150. package/dist/chunks/{bus-ra765m8n.js → shell-gqqtsjcv.js} +17 -17
  151. package/dist/chunks/{bus-3ahf14k8.js → shell-grtsyap5.js} +4 -4
  152. package/dist/chunks/{bus-73a2hz0p.js → shell-h29hc4c4.js} +12 -12
  153. package/dist/chunks/{bus-x6ts3ckt.js → shell-hf9sg3ah.js} +11 -11
  154. package/dist/chunks/{bus-zqh29h4g.js → shell-hhxt27np.js} +2 -3
  155. package/dist/chunks/{bus-wb4dbzpz.js → shell-hp6rpdnc.js} +5 -3
  156. package/dist/chunks/{bus-d0r2hzy0.js → shell-jf35ek5b.js} +2 -2
  157. package/dist/chunks/{bus-fk3tzmrv.js → shell-jh4hd405.js} +18 -22
  158. package/dist/chunks/{bus-jssy2dr3.js → shell-jssy2dr3.js} +2 -2
  159. package/dist/chunks/{bus-f9et6cts.js → shell-k2b2gvsk.js} +26 -5
  160. package/dist/chunks/{bus-g7k9te92.js → shell-k3e42drn.js} +1 -2
  161. package/dist/chunks/{bus-xg45bpe0.js → shell-k3gd1d7h.js} +23 -25
  162. package/dist/chunks/{bus-g5d54sdx.js → shell-k42t1tha.js} +2 -2
  163. package/dist/chunks/{bus-dq22jep7.js → shell-k99zwphc.js} +34 -21
  164. package/dist/chunks/{bus-dcprj0dg.js → shell-kdqcfxa2.js} +97 -70
  165. package/dist/chunks/{bus-kg1345f7.js → shell-kg1345f7.js} +1 -1
  166. package/dist/chunks/shell-kp1t5rcy.js +20 -0
  167. package/dist/chunks/{bus-as47syxa.js → shell-kth9w0ve.js} +11 -11
  168. package/dist/chunks/{bus-mcq6xj16.js → shell-me73t37g.js} +13 -11
  169. package/dist/chunks/{bus-mf0hyk7z.js → shell-mf0hyk7z.js} +1 -1
  170. package/dist/chunks/{bus-d1vv73bz.js → shell-mfng8748.js} +4 -4
  171. package/dist/chunks/{bus-mh28new4.js → shell-mh28new4.js} +2 -2
  172. package/dist/chunks/{bus-mnb85w6b.js → shell-mnb85w6b.js} +2 -2
  173. package/dist/chunks/{bus-7vtcgg65.js → shell-mvvavdgv.js} +1 -1
  174. package/dist/chunks/{bus-mwceq5am.js → shell-mwceq5am.js} +1 -1
  175. package/dist/chunks/{bus-mxvw03gv.js → shell-mxvw03gv.js} +1 -1
  176. package/dist/chunks/{bus-egasbfm0.js → shell-myy7gz76.js} +3 -3
  177. package/dist/chunks/{bus-19qgjfzv.js → shell-nbnrtycc.js} +2 -2
  178. package/dist/chunks/{bus-80ngqr8j.js → shell-ncafer7e.js} +8 -8
  179. package/dist/chunks/{bus-a3p3qcfz.js → shell-nd5ktsh6.js} +2 -2
  180. package/dist/chunks/{bus-nesb2rcz.js → shell-nesb2rcz.js} +2 -2
  181. package/dist/chunks/{bus-brqpbqpa.js → shell-nmp3pq73.js} +3 -3
  182. package/dist/chunks/{bus-nr76rjj3.js → shell-nr76rjj3.js} +2 -2
  183. package/dist/chunks/{bus-qgt32wwf.js → shell-nrkas8zm.js} +4 -4
  184. package/dist/chunks/{bus-nzrjycs5.js → shell-nzrjycs5.js} +1 -1
  185. package/dist/chunks/{bus-r1kmqz8y.js → shell-p06h0yv1.js} +4 -4
  186. package/dist/chunks/{bus-p27xxkqg.js → shell-p27xxkqg.js} +3 -3
  187. package/dist/chunks/{bus-pfqehjmy.js → shell-pfqehjmy.js} +2 -2
  188. package/dist/chunks/{bus-pq4b4pqk.js → shell-pq4b4pqk.js} +2 -2
  189. package/dist/chunks/{bus-jqkpryhn.js → shell-q07sa4nq.js} +4 -4
  190. package/dist/chunks/{bus-z5d5bw72.js → shell-q3qn6wst.js} +12 -11
  191. package/dist/chunks/{bus-3jcy51m6.js → shell-q7m7y7bp.js} +50 -38
  192. package/dist/chunks/{bus-kc4zdy65.js → shell-qc773rax.js} +2 -2
  193. package/dist/chunks/{bus-qe0d689s.js → shell-qe0d689s.js} +2 -2
  194. package/dist/chunks/{bus-f2kz495y.js → shell-qhdqjp31.js} +7 -8
  195. package/dist/chunks/{bus-jyf48vpz.js → shell-qqq259pr.js} +1 -1
  196. package/dist/chunks/{bus-r3k9abhd.js → shell-r3k9abhd.js} +2 -2
  197. package/dist/chunks/{bus-h8ecejt5.js → shell-rahat93a.js} +1 -1
  198. package/dist/chunks/{bus-c0h8k03q.js → shell-rcxbxw6h.js} +20 -21
  199. package/dist/chunks/{bus-7vdhadbr.js → shell-rd2h700y.js} +8 -6
  200. package/dist/chunks/{bus-706a4azd.js → shell-rfbm65k8.js} +1 -1
  201. package/dist/chunks/{bus-jt4wm1df.js → shell-rn9r0ddn.js} +2 -2
  202. package/dist/chunks/{bus-ryap75b3.js → shell-ryap75b3.js} +1 -1
  203. package/dist/chunks/{bus-d88ta3k5.js → shell-s0fr47ba.js} +8 -8
  204. package/dist/chunks/{bus-s33fw6zm.js → shell-s33fw6zm.js} +1 -1
  205. package/dist/chunks/{bus-ftqx1cne.js → shell-s3mcfgz8.js} +8 -13
  206. package/dist/chunks/{bus-e9yfe4g9.js → shell-s4hn1693.js} +11 -9
  207. package/dist/chunks/{bus-x2c0q89n.js → shell-s80cews2.js} +8 -8
  208. package/dist/chunks/{bus-xvphkvkz.js → shell-sd4w0449.js} +10 -10
  209. package/dist/chunks/{bus-1mxyy099.js → shell-skx0sgf9.js} +11 -11
  210. package/dist/chunks/{bus-smpeg8c9.js → shell-smpeg8c9.js} +2 -2
  211. package/dist/chunks/{bus-sw84ckhj.js → shell-sw84ckhj.js} +1 -1
  212. package/dist/chunks/{bus-dman5pj0.js → shell-swj2q685.js} +120 -132
  213. package/dist/chunks/{bus-t14kykx1.js → shell-t14kykx1.js} +1 -1
  214. package/dist/chunks/{bus-t066q9hw.js → shell-tb33ng7x.js} +2 -2
  215. package/dist/chunks/{bus-thstd87d.js → shell-thstd87d.js} +1 -1
  216. package/dist/chunks/{bus-b25zdeh7.js → shell-tjjf1q77.js} +1 -1
  217. package/dist/chunks/{bus-n11z769x.js → shell-tr7n7mhv.js} +3 -3
  218. package/dist/chunks/{bus-x8pw55re.js → shell-tr9ydts7.js} +3 -3
  219. package/dist/chunks/{bus-0v9t0j92.js → shell-txnw2tq4.js} +15 -15
  220. package/dist/chunks/{bus-v2wshkax.js → shell-v2wshkax.js} +1 -1
  221. package/dist/chunks/{bus-v80zsxnb.js → shell-v80zsxnb.js} +1 -1
  222. package/dist/chunks/{bus-v972xay6.js → shell-v972xay6.js} +1 -1
  223. package/dist/chunks/{bus-v9bfv94f.js → shell-v9bfv94f.js} +1 -1
  224. package/dist/chunks/{bus-96x57j49.js → shell-v9hhvee2.js} +5 -5
  225. package/dist/chunks/{bus-55ypd0k6.js → shell-vkt6dm0r.js} +10 -10
  226. package/dist/chunks/{bus-f05p34aa.js → shell-vqbmgfq1.js} +3 -3
  227. package/dist/chunks/{bus-eacxen1d.js → shell-vt9scczg.js} +8 -8
  228. package/dist/chunks/{bus-w7shx321.js → shell-vvsfcjpt.js} +3 -3
  229. package/dist/chunks/{bus-vz89hfgr.js → shell-vz89hfgr.js} +1 -1
  230. package/dist/chunks/{bus-vd085d0a.js → shell-w91mqgsg.js} +21 -25
  231. package/dist/chunks/{bus-xhs8426p.js → shell-w9hyvhqs.js} +11 -11
  232. package/dist/chunks/{bus-qyzajttf.js → shell-w9y74cg7.js} +7 -7
  233. package/dist/chunks/{bus-bx2a89z7.js → shell-wba0ce2b.js} +21 -17
  234. package/dist/chunks/{bus-wd268jeg.js → shell-wd268jeg.js} +1 -1
  235. package/dist/chunks/{bus-anf7mnj5.js → shell-wdfzfg1a.js} +21 -25
  236. package/dist/chunks/{bus-wmxdh12w.js → shell-wmxdh12w.js} +1 -1
  237. package/dist/chunks/{bus-mye11gf8.js → shell-wpdkgnmd.js} +6 -4
  238. package/dist/chunks/{bus-wps8gh8n.js → shell-wps8gh8n.js} +2 -2
  239. package/dist/chunks/{bus-3jxrc0qq.js → shell-wr6834ek.js} +3 -3
  240. package/dist/chunks/{bus-eceszhsw.js → shell-wwz56m5j.js} +7 -7
  241. package/dist/chunks/{bus-6k923qe9.js → shell-wyd1zrpn.js} +12 -13
  242. package/dist/chunks/{bus-704hbswx.js → shell-x3rvp8nk.js} +4 -4
  243. package/dist/chunks/{bus-xczfw7dq.js → shell-xczfw7dq.js} +1 -1
  244. package/dist/chunks/{bus-ste2kqtd.js → shell-xf8gbxer.js} +6 -6
  245. package/dist/chunks/{bus-xgv25zxy.js → shell-xgv25zxy.js} +1 -1
  246. package/dist/chunks/{bus-vw66b17v.js → shell-xhcmemw8.js} +13 -13
  247. package/dist/chunks/{bus-tc8t62xv.js → shell-xnxgs5ba.js} +5 -5
  248. package/dist/chunks/{bus-zgz5w7jt.js → shell-xrdjjnxd.js} +12 -12
  249. package/dist/chunks/{bus-xhz3jyrc.js → shell-xt0068v8.js} +4 -6
  250. package/dist/chunks/{bus-xwftk1fd.js → shell-xwftk1fd.js} +2 -2
  251. package/dist/chunks/{bus-xxpvz42q.js → shell-xxpvz42q.js} +3 -3
  252. package/dist/chunks/{bus-pd67jw04.js → shell-xyyp9mnn.js} +3 -3
  253. package/dist/chunks/{bus-y0x38cee.js → shell-y0x38cee.js} +1 -1
  254. package/dist/chunks/{bus-y198y2ra.js → shell-y198y2ra.js} +1 -1
  255. package/dist/chunks/{bus-awwx6pea.js → shell-y4edq2wm.js} +9 -9
  256. package/dist/chunks/{bus-wcv7f5r5.js → shell-y6666dnd.js} +3 -3
  257. package/dist/chunks/{bus-y67x6rf6.js → shell-y67x6rf6.js} +1 -1
  258. package/dist/chunks/{bus-y8rs54ne.js → shell-y8rs54ne.js} +1 -1
  259. package/dist/chunks/{bus-y980s7ka.js → shell-y980s7ka.js} +3 -3
  260. package/dist/chunks/{bus-a65h300v.js → shell-ybhfpy64.js} +5 -3
  261. package/dist/chunks/{bus-6dssp8bm.js → shell-yck38qmc.js} +38 -38
  262. package/dist/chunks/{bus-yf0knd5z.js → shell-yf0knd5z.js} +2 -2
  263. package/dist/chunks/{bus-bs3z4wp1.js → shell-yfgc2fgs.js} +26 -21
  264. package/dist/chunks/{bus-2te62yba.js → shell-yga5vyw3.js} +6 -6
  265. package/dist/chunks/{bus-9d2xhdr4.js → shell-ygy0xbqa.js} +6 -3
  266. package/dist/chunks/{bus-ded9e5ma.js → shell-z24ajzga.js} +31 -33
  267. package/dist/chunks/{bus-rnqjp4cw.js → shell-z7rsfd7z.js} +3 -3
  268. package/dist/chunks/{bus-ecxv0vtt.js → shell-z8fm0r70.js} +3 -0
  269. package/dist/chunks/{bus-zbqqnp0n.js → shell-zbqqnp0n.js} +1 -1
  270. package/dist/chunks/{bus-zdkg1k91.js → shell-zdkg1k91.js} +1 -1
  271. package/dist/chunks/{bus-51y8ay1x.js → shell-zdv7yvrc.js} +37 -39
  272. package/dist/chunks/{bus-zfxc0ze5.js → shell-zfxc0ze5.js} +1 -1
  273. package/dist/chunks/{bus-4tmgtgw2.js → shell-zg2xmf9j.js} +5 -5
  274. package/dist/chunks/{bus-zxe9jjhn.js → shell-zxe9jjhn.js} +2 -2
  275. package/dist/codemode/catalog.js +2 -2
  276. package/dist/codemode/instructions.js +4 -4
  277. package/dist/codemode/tool.js +3 -3
  278. package/dist/command.js +99 -98
  279. package/dist/config/markdown.js +2 -2
  280. package/dist/config/normalize.js +20 -20
  281. package/dist/config/plugin/agent.js +132 -131
  282. package/dist/config/plugin/command.js +129 -128
  283. package/dist/config/plugin/compaction.js +168 -170
  284. package/dist/config/plugin/entry-observer.js +119 -0
  285. package/dist/config/plugin/formatter.js +117 -115
  286. package/dist/config/plugin/image.js +128 -126
  287. package/dist/config/plugin/instruction.js +88 -87
  288. package/dist/config/plugin/location-watcher.js +115 -113
  289. package/dist/config/plugin/mcp.js +125 -124
  290. package/dist/config/plugin/policy.js +114 -112
  291. package/dist/config/plugin/provider.js +113 -111
  292. package/dist/config/plugin/reference.js +117 -115
  293. package/dist/config/plugin/shell.js +116 -114
  294. package/dist/config/plugin/skill-file.js +105 -104
  295. package/dist/config/plugin/skill.js +135 -134
  296. package/dist/config/plugin/snapshot.js +115 -113
  297. package/dist/config/plugin/source.js +112 -111
  298. package/dist/config/plugin/tool-output.js +117 -115
  299. package/dist/config/plugin/websearch.js +113 -111
  300. package/dist/config/variable.js +4 -4
  301. package/dist/config.js +111 -110
  302. package/dist/credential/sql.js +3 -3
  303. package/dist/credential.js +71 -70
  304. package/dist/database/database.js +68 -67
  305. package/dist/database/drizzle/effect-sqlite/driver.js +16 -16
  306. package/dist/database/drizzle/effect-sqlite/index.js +16 -16
  307. package/dist/database/drizzle/effect-sqlite/migrator.js +15 -15
  308. package/dist/database/drizzle/effect-sqlite/session.js +15 -15
  309. package/dist/database/drizzle/index.js +18 -18
  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 +21 -21
  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 +14 -14
  320. package/dist/database/drizzle/sqlite-core/effect/update.js +3 -3
  321. package/dist/database/drizzle/up-migrations/effect-sqlite.js +4 -4
  322. package/dist/database/drizzle/up-migrations/sqlite.js +2 -2
  323. package/dist/database/drizzle/up-migrations/utils.js +2 -2
  324. package/dist/database/drizzle.js +19 -19
  325. package/dist/database/migration/20260127222353_familiar_lady_ursula.js +2 -2
  326. package/dist/database/migration/20260211171708_add_project_commands.js +2 -2
  327. package/dist/database/migration/20260213144116_wakeful_the_professor.js +2 -2
  328. package/dist/database/migration/20260225215848_workspace.js +2 -2
  329. package/dist/database/migration/20260227213759_add_session_workspace_id.js +2 -2
  330. package/dist/database/migration/20260228203230_blue_harpoon.js +2 -2
  331. package/dist/database/migration/20260303231226_add_workspace_fields.js +2 -2
  332. package/dist/database/migration/20260309230000_move_org_to_state.js +2 -2
  333. package/dist/database/migration/20260312043431_session_message_cursor.js +2 -2
  334. package/dist/database/migration/20260323234822_events.js +2 -2
  335. package/dist/database/migration/20260410174513_workspace-name.js +2 -2
  336. package/dist/database/migration/20260413175956_chief_energizer.js +2 -2
  337. package/dist/database/migration/20260423070820_add_icon_url_override.js +2 -2
  338. package/dist/database/migration/20260427172553_slow_nightmare.js +2 -2
  339. package/dist/database/migration/20260428004200_add_session_path.js +2 -2
  340. package/dist/database/migration/20260501142318_next_venus.js +2 -2
  341. package/dist/database/migration/20260504145000_add_sync_owner.js +2 -2
  342. package/dist/database/migration/20260507164347_add_workspace_time.js +2 -2
  343. package/dist/database/migration/20260510033149_session_usage.js +2 -2
  344. package/dist/database/migration/20260511000411_data_migration_state.js +2 -2
  345. package/dist/database/migration/20260511173437_session-metadata.js +2 -2
  346. package/dist/database/migration/20260601010001_normalize_storage_paths.js +2 -2
  347. package/dist/database/migration/20260601202201_amazing_prowler.js +2 -2
  348. package/dist/database/migration/20260602002951_lowly_union_jack.js +2 -2
  349. package/dist/database/migration/20260602182828_add_project_directories.js +2 -2
  350. package/dist/database/migration/20260603001617_session_message_projection_indexes.js +2 -2
  351. package/dist/database/migration/20260603040000_session_message_projection_order.js +2 -2
  352. package/dist/database/migration/20260603141458_session_input_inbox.js +2 -2
  353. package/dist/database/migration/20260603160727_jittery_ezekiel_stane.js +2 -2
  354. package/dist/database/migration/20260604172448_event_sourced_session_input.js +2 -2
  355. package/dist/database/migration/20260605003541_add_session_context_snapshot.js +2 -2
  356. package/dist/database/migration/20260605042240_add_context_epoch_agent.js +2 -2
  357. package/dist/database/migration/20260611035744_credential.js +2 -2
  358. package/dist/database/migration/20260611192811_lush_chimera.js +2 -2
  359. package/dist/database/migration/20260612174303_project_dir_strategy.js +2 -2
  360. package/dist/database/migration/20260622142730_simplify_session_context_epoch.js +2 -2
  361. package/dist/database/migration/20260622170816_reset_v2_session_state.js +2 -2
  362. package/dist/database/migration/20260622202450_simplify_session_input.js +2 -2
  363. package/dist/database/migration/20260804233008_loose_psylocke.js +2 -2
  364. package/dist/database/migration/20260805200742_import_legacy_credentials.js +2 -2
  365. package/dist/database/migration/20260808023530_workspace_domain.js +2 -2
  366. package/dist/database/migration/20260811161259_execution_claim_attempts.js +2 -2
  367. package/dist/database/migration/20260812181746_session_inbox.js +2 -2
  368. package/dist/database/migration/20260812213948_worktree.js +2 -2
  369. package/dist/database/migration/20260819222447_session_viewed_state.js +7 -0
  370. package/dist/database/migration.gen.js +47 -46
  371. package/dist/database/migration.js +49 -48
  372. package/dist/database/path.js +3 -3
  373. package/dist/database/schema.gen.js +2 -2
  374. package/dist/database/schema.sql.js +2 -2
  375. package/dist/database/sqlite.bun.js +2 -2
  376. package/dist/database/sqlite.js +2 -2
  377. package/dist/database/sqlite.node.js +2 -2
  378. package/dist/database/sqlite.workerd.js +4 -24
  379. package/dist/database/v1-migration.bun.js +84 -83
  380. package/dist/database/v1-migration.js +2 -2
  381. package/dist/database/v1-migration.noop.js +1 -1
  382. package/dist/effect/app-node-builder.js +334 -338
  383. package/dist/effect/app-node-platform.js +3 -3
  384. package/dist/effect/keyed-mutex.js +2 -2
  385. package/dist/effect/websocket-constructor.js +2 -2
  386. package/dist/environment/driver.js +1 -1
  387. package/dist/environment/environment.js +89 -88
  388. package/dist/environment/exec-defaults.js +3 -3
  389. package/dist/environment/files.js +2 -2
  390. package/dist/environment/index.js +91 -90
  391. package/dist/environment/local.js +3 -3
  392. package/dist/environment/memory.js +3 -3
  393. package/dist/environment/unavailable.js +1 -1
  394. package/dist/event/sql.js +2 -2
  395. package/dist/event-logger.js +73 -72
  396. package/dist/file-mutation.js +90 -89
  397. package/dist/file-retention.js +2 -2
  398. package/dist/file.js +2 -2
  399. package/dist/filesystem/fff.bun.js +2 -2
  400. package/dist/filesystem/fff.js +2 -2
  401. package/dist/filesystem/fff.node.js +2 -2
  402. package/dist/filesystem/fff.workerd.js +2 -2
  403. package/dist/filesystem/ignore.js +1 -1
  404. package/dist/filesystem/location-watcher-policy.js +3 -3
  405. package/dist/filesystem/location-watcher.js +304 -305
  406. package/dist/filesystem/protected.js +2 -2
  407. package/dist/filesystem/search.js +94 -93
  408. package/dist/filesystem/watcher-binding.js +2 -2
  409. package/dist/filesystem/watcher.js +4 -4
  410. package/dist/filesystem.js +94 -93
  411. package/dist/form.js +72 -71
  412. package/dist/formatter/builtins.js +3 -3
  413. package/dist/formatter.js +83 -82
  414. package/dist/generate.js +87 -86
  415. package/dist/git.js +5 -5
  416. package/dist/github-copilot/chat/convert-to-openai-compatible-chat-messages.js +2 -2
  417. package/dist/github-copilot/chat/get-response-metadata.js +2 -2
  418. package/dist/github-copilot/chat/map-openai-compatible-finish-reason.js +2 -2
  419. package/dist/github-copilot/chat/openai-compatible-chat-language-model.js +8 -8
  420. package/dist/github-copilot/chat/openai-compatible-chat-options.js +2 -2
  421. package/dist/github-copilot/chat/openai-compatible-prepare-tools.js +2 -2
  422. package/dist/github-copilot/copilot-provider.js +21 -21
  423. package/dist/github-copilot/models.js +4 -4
  424. package/dist/github-copilot/openai-compatible-error.js +2 -2
  425. package/dist/github-copilot/responses/convert-to-openai-responses-input.js +3 -3
  426. package/dist/github-copilot/responses/map-openai-responses-finish-reason.js +2 -2
  427. package/dist/github-copilot/responses/openai-error.js +2 -2
  428. package/dist/github-copilot/responses/openai-responses-language-model.js +12 -12
  429. package/dist/github-copilot/responses/openai-responses-prepare-tools.js +7 -7
  430. package/dist/github-copilot/responses/tool/code-interpreter.js +2 -2
  431. package/dist/github-copilot/responses/tool/file-search.js +2 -2
  432. package/dist/github-copilot/responses/tool/image-generation.js +2 -2
  433. package/dist/github-copilot/responses/tool/local-shell.js +2 -2
  434. package/dist/github-copilot/responses/tool/web-search-preview.js +2 -2
  435. package/dist/github-copilot/responses/tool/web-search.js +2 -2
  436. package/dist/id/id.js +2 -2
  437. package/dist/image/photon-wasm.bun.js +1 -1
  438. package/dist/image/photon-wasm.node.js +1 -1
  439. package/dist/image/photon-wasm.workerd.js +1 -1
  440. package/dist/image/photon.js +96 -95
  441. package/dist/image.js +96 -95
  442. package/dist/instruction-discovery.js +75 -74
  443. package/dist/instructions/builtins.js +84 -83
  444. package/dist/instructions/index.js +2 -2
  445. package/dist/integration/connection.js +2 -2
  446. package/dist/integration.js +78 -77
  447. package/dist/job.js +4 -4
  448. package/dist/kv/sql.js +3 -3
  449. package/dist/kv.js +71 -70
  450. package/dist/location-mutation.js +82 -81
  451. package/dist/location-service-map.js +82 -81
  452. package/dist/location-services.js +329 -331
  453. package/dist/location.js +81 -80
  454. package/dist/mcp/client.js +98 -96
  455. package/dist/mcp/index.js +96 -95
  456. package/dist/mcp/instructions.js +126 -125
  457. package/dist/mcp/oauth.js +5 -4
  458. package/dist/mcp/stdio.js +90 -89
  459. package/dist/mime.js +2 -2
  460. package/dist/model-resolver.js +84 -83
  461. package/dist/model.js +3 -3
  462. package/dist/models-dev.js +78 -77
  463. package/dist/oauth/page.js +2 -2
  464. package/dist/permission/saved.js +82 -81
  465. package/dist/permission/sql.js +6 -6
  466. package/dist/permission.js +102 -101
  467. package/dist/plugin/agent.js +103 -102
  468. package/dist/plugin/command.js +82 -81
  469. package/dist/plugin/hooks.js +3 -3
  470. package/dist/plugin/host.js +165 -163
  471. package/dist/plugin/internal.js +298 -299
  472. package/dist/plugin/mcp-codemode-exclusion.js +2 -2
  473. package/dist/plugin/models-dev.js +79 -78
  474. package/dist/plugin/plan.js +108 -107
  475. package/dist/plugin/promise.js +2 -2
  476. package/dist/plugin/provider/alibaba.js +3 -3
  477. package/dist/plugin/provider/amazon-bedrock.js +3 -3
  478. package/dist/plugin/provider/anthropic.js +3 -3
  479. package/dist/plugin/provider/azure.js +119 -118
  480. package/dist/plugin/provider/cerebras.js +3 -3
  481. package/dist/plugin/provider/cloudflare-ai-gateway.js +120 -119
  482. package/dist/plugin/provider/cloudflare-workers-ai.js +120 -119
  483. package/dist/plugin/provider/cohere.js +3 -3
  484. package/dist/plugin/provider/configured.js +117 -116
  485. package/dist/plugin/provider/deepinfra.js +3 -3
  486. package/dist/plugin/provider/dynamic.js +2 -2
  487. package/dist/plugin/provider/factory.js +2 -2
  488. package/dist/plugin/provider/gateway.js +3 -3
  489. package/dist/plugin/provider/github-copilot.js +85 -84
  490. package/dist/plugin/provider/gitlab.js +4 -4
  491. package/dist/plugin/provider/google-vertex.js +3 -3
  492. package/dist/plugin/provider/groq.js +3 -3
  493. package/dist/plugin/provider/kilo.js +3 -3
  494. package/dist/plugin/provider/llmgateway.js +80 -79
  495. package/dist/plugin/provider/lmstudio.js +112 -111
  496. package/dist/plugin/provider/mistral.js +3 -3
  497. package/dist/plugin/provider/nvidia.js +3 -3
  498. package/dist/plugin/provider/ollama.js +112 -111
  499. package/dist/plugin/provider/openai-compatible.js +2 -2
  500. package/dist/plugin/provider/openai.js +82 -81
  501. package/dist/plugin/provider/opencode.js +96 -95
  502. package/dist/plugin/provider/openrouter.js +4 -4
  503. package/dist/plugin/provider/perplexity.js +3 -3
  504. package/dist/plugin/provider/sap-ai-core.js +3 -3
  505. package/dist/plugin/provider/snowflake-cortex.js +3 -3
  506. package/dist/plugin/provider/togetherai.js +3 -3
  507. package/dist/plugin/provider/venice.js +3 -3
  508. package/dist/plugin/provider/vercel.js +3 -3
  509. package/dist/plugin/provider/vllm.js +112 -111
  510. package/dist/plugin/provider/xai.js +81 -80
  511. package/dist/plugin/provider/zenmux.js +3 -3
  512. package/dist/plugin/provider.js +158 -157
  513. package/dist/plugin/runtime.js +154 -152
  514. package/dist/plugin/sdk.js +72 -71
  515. package/dist/plugin/skill.js +133 -132
  516. package/dist/plugin/supervisor-service.js +2 -2
  517. package/dist/plugin/supervisor.js +303 -304
  518. package/dist/plugin/system-prompt.js +2 -2
  519. package/dist/plugin/variant.js +4 -4
  520. package/dist/plugin/warming.js +113 -112
  521. package/dist/plugin/websearch/exa.js +4 -4
  522. package/dist/plugin/websearch/firecrawl.js +5 -5
  523. package/dist/plugin/websearch/index.js +9 -9
  524. package/dist/plugin/websearch/mcp.js +3 -3
  525. package/dist/plugin/websearch/parallel.js +5 -5
  526. package/dist/plugin/websearch/tavily.js +3 -3
  527. package/dist/plugin.js +166 -164
  528. package/dist/project/schema.js +3 -3
  529. package/dist/project/sql.js +5 -5
  530. package/dist/project.js +80 -79
  531. package/dist/provider.js +2 -2
  532. package/dist/pty/protocol.js +1 -1
  533. package/dist/pty/pty.bun.js +1 -1
  534. package/dist/pty/pty.node.js +1 -1
  535. package/dist/pty/pty.workerd.js +1 -1
  536. package/dist/pty/schema.js +2 -2
  537. package/dist/pty/ticket.js +73 -72
  538. package/dist/pty.js +87 -86
  539. package/dist/reference/instructions.js +80 -79
  540. package/dist/reference.js +78 -77
  541. package/dist/repository-cache.js +7 -7
  542. package/dist/repository.js +2 -2
  543. package/dist/ripgrep/binary.js +3 -3
  544. package/dist/ripgrep.js +92 -91
  545. package/dist/schema.js +2 -2
  546. package/dist/session/compaction.js +140 -143
  547. package/dist/session/context.js +310 -312
  548. package/dist/session/environment.js +3 -3
  549. package/dist/session/error.js +4 -4
  550. package/dist/session/event.js +2 -2
  551. package/dist/session/execution/restart.js +118 -117
  552. package/dist/session/execution.js +118 -117
  553. package/dist/session/generate-node.js +311 -313
  554. package/dist/session/generate.js +2 -2
  555. package/dist/session/history.js +82 -79
  556. package/dist/session/inbox.js +80 -79
  557. package/dist/session/info.js +90 -89
  558. package/dist/session/instruction-entry.js +83 -76
  559. package/dist/session/instruction-state.js +10 -10
  560. package/dist/session/instructions.js +99 -98
  561. package/dist/session/message-updater.js +4 -4
  562. package/dist/session/message.js +2 -2
  563. package/dist/session/model-request.js +136 -139
  564. package/dist/session/model-transport.js +5 -5
  565. package/dist/session/projector.js +93 -91
  566. package/dist/session/prompt-cache-diagnostics.js +2 -2
  567. package/dist/session/revert.js +88 -87
  568. package/dist/session/run-coordinator.js +2 -2
  569. package/dist/session/runner/index.js +87 -86
  570. package/dist/session/runner/llm.js +316 -318
  571. package/dist/session/runner/max-steps.js +2 -2
  572. package/dist/session/runner/model.js +86 -85
  573. package/dist/session/runner/publish-llm-event.js +4 -4
  574. package/dist/session/runner/retry.js +75 -74
  575. package/dist/session/runner/to-llm-message.js +2 -2
  576. package/dist/session/schema.js +2 -2
  577. package/dist/session/sql.js +6 -6
  578. package/dist/session/store.js +98 -97
  579. package/dist/session/system-prompt.js +2 -2
  580. package/dist/session/title.js +138 -141
  581. package/dist/session/to-session-error.js +113 -112
  582. package/dist/session/transfer.js +170 -159
  583. package/dist/session/usage.js +2 -2
  584. package/dist/session.js +155 -151
  585. package/dist/shell/parse.js +5 -5
  586. package/dist/shell/parser-wasm.bun.js +1 -1
  587. package/dist/shell/parser-wasm.node.js +1 -1
  588. package/dist/shell/parser-wasm.workerd.js +1 -1
  589. package/dist/{chunks/index-8jqmqb92.js → shell/scan.js} +6 -6
  590. package/dist/shell/select.js +4 -4
  591. package/dist/shell.js +97 -96
  592. package/dist/skill/discovery.js +3 -3
  593. package/dist/skill/instructions.js +104 -103
  594. package/dist/skill.js +103 -102
  595. package/dist/snapshot.js +83 -82
  596. package/dist/state.js +2 -2
  597. package/dist/tool/html-markdown.js +2 -2
  598. package/dist/tool/http-body.js +2 -2
  599. package/dist/tool/mcp.js +125 -124
  600. package/dist/tool/plugin/edit.js +112 -111
  601. package/dist/tool/plugin/file-diff.js +2 -2
  602. package/dist/tool/plugin/glob.js +114 -113
  603. package/dist/tool/plugin/grep.js +114 -113
  604. package/dist/tool/plugin/patch.js +112 -111
  605. package/dist/tool/plugin/question.js +104 -103
  606. package/dist/tool/plugin/read.js +117 -116
  607. package/dist/tool/plugin/shell.js +184 -182
  608. package/dist/tool/plugin/skill.js +104 -103
  609. package/dist/tool/plugin/subagent.js +181 -179
  610. package/dist/tool/plugin/webfetch.js +105 -104
  611. package/dist/tool/plugin/websearch.js +107 -106
  612. package/dist/tool/plugin/write.js +112 -111
  613. package/dist/tool/read-filesystem.js +96 -95
  614. package/dist/tool/runtime.js +2 -2
  615. package/dist/tool-output.js +5 -5
  616. package/dist/tool.js +118 -117
  617. package/dist/types/config/plugin/entry-observer.d.ts +7 -0
  618. package/dist/types/database/migration/20260819222447_session_viewed_state.d.ts +3 -0
  619. package/dist/types/location-service-map.d.ts +2 -2
  620. package/dist/types/location-services.d.ts +1 -1
  621. package/dist/types/plugin/host.d.ts +26 -25
  622. package/dist/types/plugin/sdk.d.ts +1 -1
  623. package/dist/types/plugin.d.ts +2 -1
  624. package/dist/types/session/history.d.ts +345 -0
  625. package/dist/types/session/instruction-entry.d.ts +20 -0
  626. package/dist/types/session/model-request.d.ts +1 -1
  627. package/dist/types/session/schema.d.ts +3 -0
  628. package/dist/types/session/sql.d.ts +50 -1
  629. package/dist/types/session/transfer.d.ts +3 -0
  630. package/dist/types/session.d.ts +20 -11
  631. package/dist/types/shell/scan.d.ts +17 -0
  632. package/dist/types/skill.d.ts +1 -1
  633. package/dist/types/state.d.ts +4 -0
  634. package/dist/util/array.js +1 -1
  635. package/dist/util/error.js +2 -2
  636. package/dist/util/identifier.js +1 -1
  637. package/dist/util/iife.js +2 -2
  638. package/dist/util/lazy.js +2 -2
  639. package/dist/util/process-lock-ffi.bun.js +1 -1
  640. package/dist/util/process-lock-ffi.node.js +1 -1
  641. package/dist/util/process-lock-ffi.workerd.js +1 -1
  642. package/dist/util/process-lock.js +2 -3
  643. package/dist/util/slug.js +2 -2
  644. package/dist/util/token.js +2 -2
  645. package/dist/util/which.js +2 -2
  646. package/dist/util/wildcard.js +2 -2
  647. package/dist/v1/config/agent.js +4 -4
  648. package/dist/v1/config/attachment.js +3 -3
  649. package/dist/v1/config/command.js +2 -2
  650. package/dist/v1/config/config.js +15 -15
  651. package/dist/v1/config/error.js +3 -3
  652. package/dist/v1/config/formatter.js +2 -2
  653. package/dist/v1/config/layout.js +2 -2
  654. package/dist/v1/config/lsp.js +2 -2
  655. package/dist/v1/config/mcp.js +3 -3
  656. package/dist/v1/config/migrate.js +19 -19
  657. package/dist/v1/config/permission.js +2 -2
  658. package/dist/v1/config/plugin.js +2 -2
  659. package/dist/v1/config/provider-options.js +2 -2
  660. package/dist/v1/config/provider.js +3 -3
  661. package/dist/v1/config/server.js +3 -3
  662. package/dist/v1/config/skills.js +2 -2
  663. package/dist/v1/permission.js +1 -1
  664. package/dist/vcs/git.js +3 -3
  665. package/dist/vcs/hg.js +3 -3
  666. package/dist/vcs/patch.js +2 -2
  667. package/dist/vcs.js +85 -84
  668. package/dist/websearch.js +76 -75
  669. package/dist/wellknown/plugin.js +76 -75
  670. package/dist/wellknown.js +75 -74
  671. package/dist/workspace/driver.js +2 -2
  672. package/dist/workspace/sql.js +2 -2
  673. package/dist/workspace.js +72 -71
  674. package/dist/worktree/directory.js +3 -3
  675. package/dist/worktree/git.js +7 -7
  676. package/dist/worktree/sql.js +6 -6
  677. package/dist/worktree.js +85 -84
  678. package/package.json +9 -10
  679. package/dist/chunks/bus-1xksxgzs.js +0 -24
  680. package/dist/chunks/bus-52jzav25.js +0 -13
  681. package/dist/chunks/bus-93qdgxxd.js +0 -30
  682. package/dist/chunks/bus-vxz5qdmp.js +0 -31
  683. package/dist/session/model-headers.js +0 -11
  684. package/dist/session/model-hook.js +0 -11
  685. package/dist/session/model-http.js +0 -11
  686. package/dist/session/prompt-cache-key.js +0 -10
  687. package/dist/types/session/model-headers.d.ts +0 -12
  688. package/dist/types/session/model-hook.d.ts +0 -12
  689. package/dist/types/session/model-http.d.ts +0 -11
  690. package/dist/types/session/prompt-cache-key.d.ts +0 -3
  691. /package/dist/chunks/{bus-0cgt0xh2.js → shell-0cgt0xh2.js} +0 -0
  692. /package/dist/chunks/{bus-0f48qthw.js → shell-0f48qthw.js} +0 -0
  693. /package/dist/chunks/{bus-0zz82cjq.js → shell-0zz82cjq.js} +0 -0
  694. /package/dist/chunks/{bus-1fb7bmpf.js → shell-1fb7bmpf.js} +0 -0
  695. /package/dist/chunks/{bus-1wcz8fvj.js → shell-1wcz8fvj.js} +0 -0
  696. /package/dist/chunks/{bus-2qdx6zz3.js → shell-2qdx6zz3.js} +0 -0
  697. /package/dist/chunks/{bus-3c4nztf9.js → shell-3c4nztf9.js} +0 -0
  698. /package/dist/chunks/{bus-3g3rpp2x.js → shell-3g3rpp2x.js} +0 -0
  699. /package/dist/chunks/{bus-3q6gbwmd.js → shell-3q6gbwmd.js} +0 -0
  700. /package/dist/chunks/{bus-3w3ybtfd.js → shell-3w3ybtfd.js} +0 -0
  701. /package/dist/chunks/{bus-47ty4mvs.js → shell-47ty4mvs.js} +0 -0
  702. /package/dist/chunks/{bus-4b2tz2m9.js → shell-4b2tz2m9.js} +0 -0
  703. /package/dist/chunks/{bus-4zg0gww9.js → shell-4zg0gww9.js} +0 -0
  704. /package/dist/chunks/{bus-5a5ch9ts.js → shell-5a5ch9ts.js} +0 -0
  705. /package/dist/chunks/{bus-5va1yh78.js → shell-5va1yh78.js} +0 -0
  706. /package/dist/chunks/{bus-69qrqpw0.js → shell-69qrqpw0.js} +0 -0
  707. /package/dist/chunks/{bus-6yt963b8.js → shell-6yt963b8.js} +0 -0
  708. /package/dist/chunks/{bus-7n9qwqk4.js → shell-7n9qwqk4.js} +0 -0
  709. /package/dist/chunks/{bus-8nn8kqcn.js → shell-8nn8kqcn.js} +0 -0
  710. /package/dist/chunks/{bus-8sj3ajy5.js → shell-8sj3ajy5.js} +0 -0
  711. /package/dist/chunks/{bus-8w9tzfz1.js → shell-8w9tzfz1.js} +0 -0
  712. /package/dist/chunks/{bus-906y0b6d.js → shell-906y0b6d.js} +0 -0
  713. /package/dist/chunks/{bus-9dct5xhx.js → shell-9dct5xhx.js} +0 -0
  714. /package/dist/chunks/{bus-9sdtsapf.js → shell-9sdtsapf.js} +0 -0
  715. /package/dist/chunks/{bus-a02svayp.js → shell-a02svayp.js} +0 -0
  716. /package/dist/chunks/{bus-a83yvq99.js → shell-a83yvq99.js} +0 -0
  717. /package/dist/chunks/{bus-aqg9wnx6.js → shell-aqg9wnx6.js} +0 -0
  718. /package/dist/chunks/{bus-ayevdmef.js → shell-ayevdmef.js} +0 -0
  719. /package/dist/chunks/{bus-b02txbh8.js → shell-b02txbh8.js} +0 -0
  720. /package/dist/chunks/{bus-bbqs2y60.js → shell-bbqs2y60.js} +0 -0
  721. /package/dist/chunks/{bus-brsh5f65.js → shell-brsh5f65.js} +0 -0
  722. /package/dist/chunks/{bus-bxdhjb3y.js → shell-bxdhjb3y.js} +0 -0
  723. /package/dist/chunks/{bus-c77ad0vh.js → shell-c77ad0vh.js} +0 -0
  724. /package/dist/chunks/{bus-cm67rqy2.js → shell-cm67rqy2.js} +0 -0
  725. /package/dist/chunks/{bus-dbah77c1.js → shell-dbah77c1.js} +0 -0
  726. /package/dist/chunks/{bus-df3v2q6j.js → shell-df3v2q6j.js} +0 -0
  727. /package/dist/chunks/{bus-dhcq6c44.js → shell-dhcq6c44.js} +0 -0
  728. /package/dist/chunks/{bus-dht5baf0.js → shell-dht5baf0.js} +0 -0
  729. /package/dist/chunks/{bus-dkmkay92.js → shell-dkmkay92.js} +0 -0
  730. /package/dist/chunks/{bus-ehj9csmv.js → shell-ehj9csmv.js} +0 -0
  731. /package/dist/chunks/{bus-em6xpscd.js → shell-em6xpscd.js} +0 -0
  732. /package/dist/chunks/{bus-emmqknsm.js → shell-emmqknsm.js} +0 -0
  733. /package/dist/chunks/{bus-ezs3tagn.js → shell-ezs3tagn.js} +0 -0
  734. /package/dist/chunks/{bus-f14r7hfz.js → shell-f14r7hfz.js} +0 -0
  735. /package/dist/chunks/{bus-f4cp4g4a.js → shell-f4cp4g4a.js} +0 -0
  736. /package/dist/chunks/{bus-f84sxdqn.js → shell-f84sxdqn.js} +0 -0
  737. /package/dist/chunks/{bus-faypg4r1.js → shell-faypg4r1.js} +0 -0
  738. /package/dist/chunks/{bus-gd5xeqc2.js → shell-gd5xeqc2.js} +0 -0
  739. /package/dist/chunks/{bus-ghm4673n.js → shell-ghm4673n.js} +0 -0
  740. /package/dist/chunks/{bus-ghwjy7my.js → shell-ghwjy7my.js} +0 -0
  741. /package/dist/chunks/{bus-gy500k2r.js → shell-gy500k2r.js} +0 -0
  742. /package/dist/chunks/{bus-hzeg9cfr.js → shell-hzeg9cfr.js} +0 -0
  743. /package/dist/chunks/{bus-j07kk359.js → shell-j07kk359.js} +0 -0
  744. /package/dist/chunks/{bus-jve7t217.js → shell-jve7t217.js} +0 -0
  745. /package/dist/chunks/{bus-kpdbz7gn.js → shell-kpdbz7gn.js} +0 -0
  746. /package/dist/chunks/{bus-kxy11nzk.js → shell-kxy11nzk.js} +0 -0
  747. /package/dist/chunks/{bus-kyyqvx4s.js → shell-kyyqvx4s.js} +0 -0
  748. /package/dist/chunks/{bus-m8cbvarh.js → shell-m8cbvarh.js} +0 -0
  749. /package/dist/chunks/{bus-ma07p6tt.js → shell-ma07p6tt.js} +0 -0
  750. /package/dist/chunks/{bus-ma60vzgv.js → shell-ma60vzgv.js} +0 -0
  751. /package/dist/chunks/{bus-n3m50c2t.js → shell-n3m50c2t.js} +0 -0
  752. /package/dist/chunks/{bus-nkm1m8dz.js → shell-nkm1m8dz.js} +0 -0
  753. /package/dist/chunks/{bus-nsc0c3zb.js → shell-nsc0c3zb.js} +0 -0
  754. /package/dist/chunks/{bus-qaarhjrp.js → shell-qaarhjrp.js} +0 -0
  755. /package/dist/chunks/{bus-qc167nrn.js → shell-qc167nrn.js} +0 -0
  756. /package/dist/chunks/{bus-qp95y4jb.js → shell-qp95y4jb.js} +0 -0
  757. /package/dist/chunks/{bus-r8f4w671.js → shell-r8f4w671.js} +0 -0
  758. /package/dist/chunks/{bus-rdfev9jy.js → shell-rdfev9jy.js} +0 -0
  759. /package/dist/chunks/{bus-rvfvac9x.js → shell-rvfvac9x.js} +0 -0
  760. /package/dist/chunks/{bus-s7whb9gt.js → shell-s7whb9gt.js} +0 -0
  761. /package/dist/chunks/{bus-se76j685.js → shell-se76j685.js} +0 -0
  762. /package/dist/chunks/{bus-sem2g21k.js → shell-sem2g21k.js} +0 -0
  763. /package/dist/chunks/{bus-tmb1f636.js → shell-tmb1f636.js} +0 -0
  764. /package/dist/chunks/{bus-ttxf0gsy.js → shell-ttxf0gsy.js} +0 -0
  765. /package/dist/chunks/{bus-tvmhrvfj.js → shell-tvmhrvfj.js} +0 -0
  766. /package/dist/chunks/{bus-v2adqbbe.js → shell-v2adqbbe.js} +0 -0
  767. /package/dist/chunks/{bus-vkvb1sb3.js → shell-vkvb1sb3.js} +0 -0
  768. /package/dist/chunks/{bus-wj4sxzqa.js → shell-wj4sxzqa.js} +0 -0
  769. /package/dist/chunks/{bus-wwntjmk1.js → shell-wwntjmk1.js} +0 -0
  770. /package/dist/chunks/{bus-wyqjaaa5.js → shell-wyqjaaa5.js} +0 -0
  771. /package/dist/chunks/{bus-x4q807cx.js → shell-x4q807cx.js} +0 -0
  772. /package/dist/chunks/{bus-yrqrg4vp.js → shell-yrqrg4vp.js} +0 -0
  773. /package/dist/chunks/{bus-z47nswr2.js → shell-z47nswr2.js} +0 -0
  774. /package/dist/chunks/{bus-zsf8rs93.js → shell-zsf8rs93.js} +0 -0
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  createProviderPlugin
3
- } from "./bus-0zz82cjq.js";
3
+ } from "./shell-0zz82cjq.js";
4
4
  import {
5
5
  __require
6
- } from "./bus-rvfvac9x.js";
6
+ } from "./shell-rvfvac9x.js";
7
7
 
8
8
  // src/plugin/provider/perplexity.ts
9
9
  var PerplexityPlugin = createProviderPlugin({
@@ -1,12 +1,12 @@
1
1
  import {
2
2
  exports_permission
3
- } from "./bus-6k923qe9.js";
3
+ } from "./shell-wyd1zrpn.js";
4
4
  import {
5
5
  exports_agent
6
- } from "./bus-n11z769x.js";
6
+ } from "./shell-tr7n7mhv.js";
7
7
  import {
8
8
  __export
9
- } from "./bus-rvfvac9x.js";
9
+ } from "./shell-rvfvac9x.js";
10
10
 
11
11
  // src/plugin/agent.ts
12
12
  var exports_agent2 = {};
@@ -1,18 +1,18 @@
1
- import {
2
- configuredSettings
3
- } from "./bus-rnqjp4cw.js";
4
1
  import {
5
2
  iife
6
- } from "./bus-ehj9csmv.js";
3
+ } from "./shell-ehj9csmv.js";
4
+ import {
5
+ configuredSettings
6
+ } from "./shell-z7rsfd7z.js";
7
7
  import {
8
8
  exports_app
9
- } from "./bus-50jxp3hw.js";
9
+ } from "./shell-50jxp3hw.js";
10
10
  import {
11
11
  exports_provider
12
- } from "./bus-sfbv6a2b.js";
12
+ } from "./shell-djkt4gex.js";
13
13
  import {
14
14
  __require
15
- } from "./bus-rvfvac9x.js";
15
+ } from "./shell-rvfvac9x.js";
16
16
 
17
17
  // src/plugin/provider/cloudflare-ai-gateway.ts
18
18
  import os from "os";
@@ -1,27 +1,27 @@
1
+ import {
2
+ exports_wildcard
3
+ } from "./shell-y67x6rf6.js";
1
4
  import {
2
5
  exports_store
3
- } from "./bus-n0pq9mwy.js";
6
+ } from "./shell-0bmdcyan.js";
4
7
  import {
5
8
  exports_error
6
- } from "./bus-p27xxkqg.js";
9
+ } from "./shell-p27xxkqg.js";
7
10
  import {
8
11
  exports_saved
9
- } from "./bus-pey90rx3.js";
10
- import {
11
- exports_wildcard
12
- } from "./bus-y67x6rf6.js";
12
+ } from "./shell-7zgwmfba.js";
13
13
  import {
14
14
  exports_agent
15
- } from "./bus-n11z769x.js";
15
+ } from "./shell-tr7n7mhv.js";
16
16
  import {
17
17
  exports_location
18
- } from "./bus-19qgjfzv.js";
18
+ } from "./shell-nbnrtycc.js";
19
19
  import {
20
20
  exports_bus
21
- } from "./bus-ded9e5ma.js";
21
+ } from "./shell-z24ajzga.js";
22
22
  import {
23
23
  __export
24
- } from "./bus-rvfvac9x.js";
24
+ } from "./shell-rvfvac9x.js";
25
25
 
26
26
  // src/permission.ts
27
27
  var exports_permission = {};
@@ -252,11 +252,10 @@ var layer = Layer.effect(Service, Effect.gen(function* () {
252
252
  return;
253
253
  const rememberedRules = yield* savedRules();
254
254
  for (const [id, item] of pending) {
255
- const input2 = { ...item.request };
256
- const rules = yield* configured(item.request.sessionID, item.agent).pipe(Effect.catchTag("Session.NotFoundError", () => Effect.succeed(undefined)));
255
+ const rules = yield* configured(item.request.sessionID, item.agent).pipe(Effect.catchTag("Session.NotFoundError", () => Effect.undefined));
257
256
  if (!rules)
258
257
  continue;
259
- if (denied(input2, rules))
258
+ if (denied(item.request, rules))
260
259
  continue;
261
260
  const effective = [...rules, ...rememberedRules];
262
261
  if (!item.request.resources.every((resource) => evaluate(item.request.action, resource, effective).effect === "allow"))
@@ -1,15 +1,15 @@
1
1
  import {
2
2
  exports_permission
3
- } from "./bus-6k923qe9.js";
3
+ } from "./shell-wyd1zrpn.js";
4
4
  import {
5
5
  exports_state
6
- } from "./bus-f2kz495y.js";
6
+ } from "./shell-qhdqjp31.js";
7
7
  import {
8
8
  exports_bus
9
- } from "./bus-ded9e5ma.js";
9
+ } from "./shell-z24ajzga.js";
10
10
  import {
11
11
  __export
12
- } from "./bus-rvfvac9x.js";
12
+ } from "./shell-rvfvac9x.js";
13
13
 
14
14
  // src/skill.ts
15
15
  var exports_skill = {};
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  __export
3
- } from "./bus-rvfvac9x.js";
3
+ } from "./shell-rvfvac9x.js";
4
4
 
5
5
  // src/environment/files.ts
6
6
  var exports_files = {};
@@ -1,15 +1,15 @@
1
- import {
2
- configuredSettings
3
- } from "./bus-rnqjp4cw.js";
4
1
  import {
5
2
  iife
6
- } from "./bus-ehj9csmv.js";
3
+ } from "./shell-ehj9csmv.js";
4
+ import {
5
+ configuredSettings
6
+ } from "./shell-z7rsfd7z.js";
7
7
  import {
8
8
  exports_provider
9
- } from "./bus-sfbv6a2b.js";
9
+ } from "./shell-djkt4gex.js";
10
10
  import {
11
11
  __require
12
- } from "./bus-rvfvac9x.js";
12
+ } from "./shell-rvfvac9x.js";
13
13
 
14
14
  // src/plugin/provider/azure.ts
15
15
  import { Effect } from "effect";
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  __export
3
- } from "./bus-rvfvac9x.js";
3
+ } from "./shell-rvfvac9x.js";
4
4
 
5
5
  // src/session/generate.ts
6
6
  var exports_generate = {};
@@ -1,33 +1,33 @@
1
1
  import {
2
2
  exports_migrate
3
- } from "./bus-zkkkcc8p.js";
3
+ } from "./shell-epzxjdf4.js";
4
+ import {
5
+ exports_plugin
6
+ } from "./shell-9f0rnpkn.js";
4
7
  import {
5
8
  exports_mcp
6
- } from "./bus-e1z9a0ts.js";
9
+ } from "./shell-e1z9a0ts.js";
7
10
  import {
8
11
  exports_provider
9
- } from "./bus-18pv8fg3.js";
12
+ } from "./shell-18pv8fg3.js";
10
13
  import {
11
14
  exports_command
12
- } from "./bus-thstd87d.js";
15
+ } from "./shell-thstd87d.js";
13
16
  import {
14
17
  exports_attachment
15
- } from "./bus-r3k9abhd.js";
18
+ } from "./shell-r3k9abhd.js";
16
19
  import {
17
20
  exports_agent
18
- } from "./bus-4s2xwh5d.js";
21
+ } from "./shell-4s2xwh5d.js";
19
22
  import {
20
23
  exports_permission
21
- } from "./bus-v9bfv94f.js";
22
- import {
23
- exports_plugin
24
- } from "./bus-9f0rnpkn.js";
24
+ } from "./shell-v9bfv94f.js";
25
25
  import {
26
26
  PositiveInt
27
- } from "./bus-j07kk359.js";
27
+ } from "./shell-j07kk359.js";
28
28
  import {
29
29
  __export
30
- } from "./bus-rvfvac9x.js";
30
+ } from "./shell-rvfvac9x.js";
31
31
 
32
32
  // src/config/normalize.ts
33
33
  var exports_normalize = {};
@@ -611,7 +611,7 @@ function isPlainRecord(value) {
611
611
  return prototype === Object.prototype || prototype === null;
612
612
  }
613
613
  function own(value, key) {
614
- return Object.prototype.hasOwnProperty.call(value, key);
614
+ return Object.hasOwn(value, key);
615
615
  }
616
616
  function setOwn(value, key, item) {
617
617
  Object.defineProperty(value, key, { value: item, enumerable: true, configurable: true, writable: true });
@@ -1,12 +1,12 @@
1
- import {
2
- exports_location
3
- } from "./bus-19qgjfzv.js";
4
1
  import {
5
2
  exports_state
6
- } from "./bus-f2kz495y.js";
3
+ } from "./shell-qhdqjp31.js";
4
+ import {
5
+ exports_location
6
+ } from "./shell-nbnrtycc.js";
7
7
  import {
8
8
  __export
9
- } from "./bus-rvfvac9x.js";
9
+ } from "./shell-rvfvac9x.js";
10
10
 
11
11
  // src/formatter.ts
12
12
  var exports_formatter = {};
@@ -1,27 +1,27 @@
1
1
  import {
2
- exports_sdk
3
- } from "./bus-7yf7nmr6.js";
2
+ exports_promise
3
+ } from "./shell-5vcssjzn.js";
4
4
  import {
5
5
  exports_internal
6
- } from "./bus-hq5052b7.js";
7
- import {
8
- exports_promise
9
- } from "./bus-5vcssjzn.js";
6
+ } from "./shell-djr9ryes.js";
10
7
  import {
11
8
  exports_source
12
- } from "./bus-23pj99w1.js";
9
+ } from "./shell-dc9xj4bb.js";
10
+ import {
11
+ exports_sdk
12
+ } from "./shell-dqw471kr.js";
13
13
  import {
14
14
  exports_plugin
15
- } from "./bus-cwdq890m.js";
15
+ } from "./shell-ee4agh14.js";
16
16
  import {
17
17
  Service
18
- } from "./bus-s33fw6zm.js";
18
+ } from "./shell-s33fw6zm.js";
19
19
  import {
20
20
  exports_bus
21
- } from "./bus-ded9e5ma.js";
21
+ } from "./shell-z24ajzga.js";
22
22
  import {
23
23
  __export
24
- } from "./bus-rvfvac9x.js";
24
+ } from "./shell-rvfvac9x.js";
25
25
 
26
26
  // src/plugin/supervisor.ts
27
27
  var exports_supervisor = {};
@@ -92,7 +92,7 @@ var resolve = Effect.fn("PluginSupervisor.resolve")(function* (pre, post, operat
92
92
  return {
93
93
  plugins: [
94
94
  ...pre.filter((plugin) => enabled.has(plugin.id)),
95
- ...Array.from(packages.values()).filter((plugin) => enabled.has(plugin.id)),
95
+ ...[...packages.values()].filter((plugin) => enabled.has(plugin.id)),
96
96
  ...post.filter((plugin) => enabled.has(plugin.id))
97
97
  ],
98
98
  failures: [...failures.values()]
@@ -86,10 +86,11 @@ function convertHTMLToMarkdown(html) {
86
86
  outputBytes -= encoder.encode(value).byteLength;
87
87
  return value;
88
88
  };
89
+ const quotePrefix = () => "> ".repeat(Math.min(8, quoteDepth));
89
90
  const prefixQuote = () => {
90
91
  if (!needsQuotePrefix || quoteDepth === 0 || activeCell)
91
92
  return;
92
- append(`${"> ".repeat(Math.min(8, quoteDepth))}`);
93
+ append(quotePrefix());
93
94
  needsQuotePrefix = false;
94
95
  };
95
96
  const flushSpace = () => {
@@ -206,10 +207,7 @@ function convertHTMLToMarkdown(html) {
206
207
  block();
207
208
  const prefix = `${fence}${code.language ?? ""}
208
209
  `;
209
- const quote = quoteDepth > 0 ? `${"> ".repeat(Math.min(8, quoteDepth))}` : "";
210
- const closing = `${code.text.endsWith(`
211
- `) ? "" : `
212
- `}${fence}`;
210
+ const quote = quoteDepth > 0 ? quotePrefix() : "";
213
211
  let payload = code.text;
214
212
  for (;; ) {
215
213
  const candidate = `${prefix}${payload}${payload.endsWith(`
@@ -609,7 +607,7 @@ function convertHTMLToMarkdown(html) {
609
607
  block();
610
608
  }
611
609
  if (!table.fallback && rectangular) {
612
- const prefix = `${quoteDepth > 0 ? `${"> ".repeat(Math.min(8, quoteDepth))}` : ""}${pendingIndent}`;
610
+ const prefix = `${quoteDepth > 0 ? quotePrefix() : ""}${pendingIndent}`;
613
611
  pendingIndent = "";
614
612
  append(`${prefix}| ${table.rows[0].join(" | ")} |
615
613
  ${prefix}|${" --- |".repeat(width)}`);
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  createProviderPlugin
3
- } from "./bus-0zz82cjq.js";
3
+ } from "./shell-0zz82cjq.js";
4
4
  import {
5
5
  __require
6
- } from "./bus-rvfvac9x.js";
6
+ } from "./shell-rvfvac9x.js";
7
7
 
8
8
  // src/plugin/provider/venice.ts
9
9
  var VenicePlugin = createProviderPlugin({
@@ -1,12 +1,12 @@
1
1
  import {
2
2
  exports_catalog
3
- } from "./bus-57tzwnz4.js";
3
+ } from "./shell-57tzwnz4.js";
4
4
  import {
5
5
  exports_instructions
6
- } from "./bus-ec8vrfw5.js";
6
+ } from "./shell-ec8vrfw5.js";
7
7
  import {
8
8
  __export
9
- } from "./bus-rvfvac9x.js";
9
+ } from "./shell-rvfvac9x.js";
10
10
 
11
11
  // src/codemode/instructions.ts
12
12
  var exports_instructions2 = {};
@@ -1,12 +1,12 @@
1
1
  import {
2
2
  exports_wellknown
3
- } from "./bus-z5d5bw72.js";
3
+ } from "./shell-q3qn6wst.js";
4
4
  import {
5
5
  exports_bus
6
- } from "./bus-ded9e5ma.js";
6
+ } from "./shell-z24ajzga.js";
7
7
  import {
8
8
  __export
9
- } from "./bus-rvfvac9x.js";
9
+ } from "./shell-rvfvac9x.js";
10
10
 
11
11
  // src/wellknown/plugin.ts
12
12
  var exports_plugin = {};
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  __export
3
- } from "./bus-rvfvac9x.js";
3
+ } from "./shell-rvfvac9x.js";
4
4
 
5
5
  // src/v1/config/provider-options.ts
6
6
  var exports_provider_options = {};
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  __export
3
- } from "./bus-rvfvac9x.js";
3
+ } from "./shell-rvfvac9x.js";
4
4
 
5
5
  // src/repository.ts
6
6
  var exports_repository = {};
@@ -1,12 +1,15 @@
1
1
  import {
2
- exports_tool_output
3
- } from "./bus-qp4w20e0.js";
2
+ exports_entry_observer
3
+ } from "./shell-kp1t5rcy.js";
4
4
  import {
5
5
  exports_config
6
- } from "./bus-6dssp8bm.js";
6
+ } from "./shell-yck38qmc.js";
7
+ import {
8
+ exports_tool_output
9
+ } from "./shell-02s4hv33.js";
7
10
  import {
8
11
  __export
9
- } from "./bus-rvfvac9x.js";
12
+ } from "./shell-rvfvac9x.js";
10
13
 
11
14
  // src/config/plugin/tool-output.ts
12
15
  var exports_tool_output2 = {};
@@ -15,16 +18,13 @@ __export(exports_tool_output2, {
15
18
  ConfigToolOutputPlugin: () => exports_tool_output2
16
19
  });
17
20
  import { define } from "@opencode-ai/plugin/effect/plugin";
18
- import { Effect, Stream } from "effect";
21
+ import { Effect } from "effect";
19
22
  var Plugin = define({
20
23
  id: "opencode.config.tool-output",
21
24
  effect: Effect.fn(function* (ctx) {
22
25
  const config = yield* exports_config.Service;
23
26
  const output = yield* exports_tool_output.Service;
24
- const loaded = { entries: yield* config.entries() };
25
- const reload = config.entries().pipe(Effect.tap((entries) => Effect.sync(() => loaded.entries = entries)), Effect.andThen(output.reload()));
26
- yield* ctx.event.subscribe().pipe(Stream.filter((event) => event.type === "config.updated"), Stream.runForEach(() => reload), Effect.forkScoped({ startImmediately: true }));
27
- loaded.entries = yield* config.entries();
27
+ const loaded = yield* exports_entry_observer.observe(config, ctx.event, output.reload());
28
28
  yield* output.transform((draft) => {
29
29
  const configured = exports_config.latest(loaded.entries, "tool_output");
30
30
  if (!configured)
@@ -1,12 +1,12 @@
1
1
  import {
2
2
  exports_skill
3
- } from "./bus-704hbswx.js";
3
+ } from "./shell-x3rvp8nk.js";
4
4
  import {
5
5
  exports_permission
6
- } from "./bus-6k923qe9.js";
6
+ } from "./shell-wyd1zrpn.js";
7
7
  import {
8
8
  __export
9
- } from "./bus-rvfvac9x.js";
9
+ } from "./shell-rvfvac9x.js";
10
10
 
11
11
  // src/tool/plugin/skill.ts
12
12
  var exports_skill2 = {};
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  __export
3
- } from "./bus-rvfvac9x.js";
3
+ } from "./shell-rvfvac9x.js";
4
4
 
5
5
  // src/util/wildcard.ts
6
6
  var exports_wildcard = {};
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  __export
3
- } from "./bus-rvfvac9x.js";
3
+ } from "./shell-rvfvac9x.js";
4
4
 
5
5
  // src/session/schema.ts
6
6
  var exports_schema = {};
@@ -1,12 +1,12 @@
1
1
  import {
2
2
  load
3
- } from "./bus-dkmkay92.js";
3
+ } from "./shell-dkmkay92.js";
4
4
  import {
5
5
  lazy
6
- } from "./bus-8w9tzfz1.js";
6
+ } from "./shell-8w9tzfz1.js";
7
7
  import {
8
8
  __export
9
- } from "./bus-rvfvac9x.js";
9
+ } from "./shell-rvfvac9x.js";
10
10
 
11
11
  // src/filesystem/watcher.ts
12
12
  var exports_watcher = {};
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  AbsolutePath
3
- } from "./bus-j07kk359.js";
3
+ } from "./shell-j07kk359.js";
4
4
  import {
5
5
  __export
6
- } from "./bus-rvfvac9x.js";
6
+ } from "./shell-rvfvac9x.js";
7
7
 
8
8
  // src/skill/discovery.ts
9
9
  var exports_discovery = {};
@@ -112,7 +112,9 @@ var layer = Layer.effect(Service, Effect.gen(function* () {
112
112
  return [{ skill, root, versionFile, files }];
113
113
  }), ({ skill, root, versionFile, files }) => Effect.gen(function* () {
114
114
  const version = skill.version;
115
- const current = version === undefined ? undefined : yield* fs.readFileStringSafe(versionFile).pipe(Effect.catch(() => Effect.succeed(undefined)));
115
+ const current = version === undefined ? undefined : yield* fs.readFileStringSafe(versionFile).pipe(Effect.orElseSucceed(() => {
116
+ return;
117
+ }));
116
118
  if (version === undefined || current === version) {
117
119
  yield* Effect.forEach(files, (file) => download(file.url, file.destination), {
118
120
  concurrency: fileConcurrency,
@@ -1,30 +1,30 @@
1
- import {
2
- exports_normalize
3
- } from "./bus-vw66b17v.js";
4
1
  import {
5
2
  exports_watcher
6
- } from "./bus-y980s7ka.js";
3
+ } from "./shell-y980s7ka.js";
7
4
  import {
8
5
  exports_variable
9
- } from "./bus-eyk9wdct.js";
6
+ } from "./shell-d2gk9vpf.js";
7
+ import {
8
+ exports_normalize
9
+ } from "./shell-xhcmemw8.js";
10
10
  import {
11
11
  exports_credential
12
- } from "./bus-4qce6znw.js";
12
+ } from "./shell-6js9hgcv.js";
13
13
  import {
14
14
  exports_wellknown
15
- } from "./bus-z5d5bw72.js";
15
+ } from "./shell-q3qn6wst.js";
16
16
  import {
17
17
  exports_location
18
- } from "./bus-19qgjfzv.js";
18
+ } from "./shell-nbnrtycc.js";
19
19
  import {
20
20
  AbsolutePath
21
- } from "./bus-j07kk359.js";
21
+ } from "./shell-j07kk359.js";
22
22
  import {
23
23
  exports_bus
24
- } from "./bus-ded9e5ma.js";
24
+ } from "./shell-z24ajzga.js";
25
25
  import {
26
26
  __export
27
- } from "./bus-rvfvac9x.js";
27
+ } from "./shell-rvfvac9x.js";
28
28
 
29
29
  // src/config.ts
30
30
  var exports_config = {};
@@ -56,10 +56,11 @@ import {
56
56
  Event
57
57
  } from "@opencode-ai/schema/config";
58
58
  import { Integration } from "@opencode-ai/schema/integration";
59
+ import { isRecord } from "@opencode-ai/ai/utils/record";
59
60
  import { FSUtil } from "@opencode-ai/util/fs-util";
60
61
  import { Global } from "@opencode-ai/util/global";
61
62
  function latest(entries, key) {
62
- return entries.filter((entry) => entry.type === "document").findLast((entry) => entry.info[key] !== undefined)?.info[key];
63
+ return entries.findLast((entry) => entry.type === "document" && entry.info[key] !== undefined)?.info[key];
63
64
  }
64
65
 
65
66
  class UpdateError extends Schema.TaggedError()("Config.UpdateError", {
@@ -155,25 +156,26 @@ var layer = (options) => Layer.effect(Service, Effect.gen(function* () {
155
156
  return;
156
157
  return new Document({ type: "document", path: AbsolutePath.make(filepath), info });
157
158
  });
159
+ const loadWellknownEntry = Effect.fnUntraced(function* (entry) {
160
+ const auth = entry.manifest.auth;
161
+ if (!auth)
162
+ return [];
163
+ const credential = (yield* credentials.list(entry.integrationID)).findLast((credential2) => credential2.value.type === "key");
164
+ if (!credential || credential.value.type !== "key")
165
+ return [];
166
+ const variables = { [auth.env]: credential.value.key };
167
+ const configs2 = yield* wellknown.resolve(entry, variables).pipe(Effect.catch(() => Effect.logWarning("failed to load wellknown config", { source: entry.origin }).pipe(Effect.as([]))));
168
+ return yield* Effect.forEach(configs2, (config) => exports_variable.substitute({
169
+ type: "virtual",
170
+ source: entry.origin,
171
+ dir: entry.origin,
172
+ text: JSON.stringify(config),
173
+ env: variables
174
+ }).pipe(Effect.flatMap((text) => parseInfo(text, entry.origin)), Effect.map((info) => info ? new Document({ type: "document", info }) : undefined))).pipe(Effect.map((documents) => documents.filter((document) => document !== undefined)));
175
+ });
158
176
  const loadWellknown = Effect.fn("Config.loadWellknown")(function* () {
159
177
  const entries = yield* wellknown.entries().pipe(Effect.catch((error) => Effect.logWarning("failed to discover wellknown config", { error }).pipe(Effect.as([]))));
160
- return yield* Effect.forEach(entries, (entry) => Effect.gen(function* () {
161
- const auth = entry.manifest.auth;
162
- if (!auth)
163
- return [];
164
- const credential = (yield* credentials.list(entry.integrationID)).findLast((credential2) => credential2.value.type === "key");
165
- if (!credential || credential.value.type !== "key")
166
- return [];
167
- const variables = { [auth.env]: credential.value.key };
168
- const configs2 = yield* wellknown.resolve(entry, variables).pipe(Effect.catch(() => Effect.logWarning("failed to load wellknown config", { source: entry.origin }).pipe(Effect.as([]))));
169
- return yield* Effect.forEach(configs2, (config) => exports_variable.substitute({
170
- type: "virtual",
171
- source: entry.origin,
172
- dir: entry.origin,
173
- text: JSON.stringify(config),
174
- env: variables
175
- }).pipe(Effect.flatMap((text) => parseInfo(text, entry.origin)), Effect.map((info) => info ? new Document({ type: "document", info }) : undefined))).pipe(Effect.map((documents) => documents.filter((document) => document !== undefined)));
176
- })).pipe(Effect.map((documents) => documents.flat()));
178
+ return yield* Effect.forEach(entries, loadWellknownEntry).pipe(Effect.map((documents) => documents.flat()));
177
179
  });
178
180
  const loadDirectory = Effect.fnUntraced(function* (directory) {
179
181
  return [
@@ -265,7 +267,7 @@ var layer = (options) => Layer.effect(Service, Effect.gen(function* () {
265
267
  yield* bus.publish(Event.Updated, {});
266
268
  })));
267
269
  yield* Stream.fromPubSub(updates).pipe(Stream.debounce("100 millis"), Stream.runForEach((update2) => reload().pipe(Effect.catchCause((cause) => Effect.logError("failed to reload config", { path: update2.path, cause })))), Effect.forkScoped({ startImmediately: true }));
268
- yield* bus.subscribe(Integration.Event.ConnectionUpdated).pipe(Stream.filterEffect((event) => wellknown.entries().pipe(Effect.map((entries) => entries.some((entry) => entry.integrationID === event.data.integrationID)), Effect.catch(() => Effect.succeed(false)))), Stream.runForEach(() => reload().pipe(Effect.catchCause((cause) => Effect.logError("failed to reload wellknown config", { cause })))), Effect.forkScoped({ startImmediately: true }));
270
+ yield* bus.subscribe(Integration.Event.ConnectionUpdated).pipe(Stream.filterEffect((event) => wellknown.entries().pipe(Effect.map((entries) => entries.some((entry) => entry.integrationID === event.data.integrationID)), Effect.orElseSucceed(() => false))), Stream.runForEach(() => reload().pipe(Effect.catchCause((cause) => Effect.logError("failed to reload wellknown config", { cause })))), Effect.forkScoped({ startImmediately: true }));
269
271
  yield* bus.subscribe(exports_wellknown.Event.Updated).pipe(Stream.runForEach(() => reload().pipe(Effect.catchCause((cause) => Effect.logError("failed to reload wellknown sources", { cause })))), Effect.forkScoped({ startImmediately: true }));
270
272
  yield* Effect.sleep("10 minutes").pipe(Effect.andThen(Effect.suspend(() => {
271
273
  if (!wellknown.snapshot().length)
@@ -318,15 +320,13 @@ var node = configured();
318
320
  function changes(before, after, path2 = []) {
319
321
  if (Object.is(before, after))
320
322
  return [];
321
- if (before !== null && after !== null && typeof before === "object" && typeof after === "object" && !Array.isArray(before) && !Array.isArray(after)) {
322
- const previous = before;
323
- const next = after;
324
- return [...new Set([...Object.keys(previous), ...Object.keys(next)])].flatMap((key) => {
325
- if (!(key in next))
323
+ if (isRecord(before) && isRecord(after)) {
324
+ return [...new Set([...Object.keys(before), ...Object.keys(after)])].flatMap((key) => {
325
+ if (!(key in after))
326
326
  return [{ path: [...path2, key], value: undefined }];
327
- if (!(key in previous))
328
- return [{ path: [...path2, key], value: next[key] }];
329
- return changes(previous[key], next[key], [...path2, key]);
327
+ if (!(key in before))
328
+ return [{ path: [...path2, key], value: after[key] }];
329
+ return changes(before[key], after[key], [...path2, key]);
330
330
  });
331
331
  }
332
332
  return [{ path: path2, value: after }];
@@ -2,10 +2,10 @@ import {
2
2
  Failed,
3
3
  NotFound,
4
4
  WrongKind
5
- } from "./bus-xczfw7dq.js";
5
+ } from "./shell-xczfw7dq.js";
6
6
  import {
7
7
  __export
8
- } from "./bus-rvfvac9x.js";
8
+ } from "./shell-rvfvac9x.js";
9
9
 
10
10
  // src/environment/memory.ts
11
11
  var exports_memory = {};