@opencode-ai/core 0.0.0-beta-18414 → 0.0.0-beta-18593

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 (826) hide show
  1. package/dist/account/sql.js +2 -2
  2. package/dist/agent.js +70 -70
  3. package/dist/aisdk-native.js +3 -3
  4. package/dist/aisdk.js +4 -4
  5. package/dist/app.js +2 -2
  6. package/dist/bus.js +68 -68
  7. package/dist/catalog.js +78 -78
  8. package/dist/chunks/{tool-02dbfq60.js → persistent-pty-02dbfq60.js} +1 -1
  9. package/dist/chunks/{tool-ykb30cq4.js → persistent-pty-02s8hgfb.js} +5 -5
  10. package/dist/chunks/{tool-f11jbhcb.js → persistent-pty-0687t5rp.js} +7 -7
  11. package/dist/chunks/{tool-scfq11we.js → persistent-pty-0dfzjmdz.js} +26 -26
  12. package/dist/chunks/{tool-7thnevmq.js → persistent-pty-0gcqkg3x.js} +3 -4
  13. package/dist/chunks/{tool-0kvmztkf.js → persistent-pty-0kvmztkf.js} +1 -1
  14. package/dist/chunks/{tool-yncnzy6p.js → persistent-pty-0tya1wfq.js} +3 -3
  15. package/dist/chunks/persistent-pty-0xkrc3c3.js +126 -0
  16. package/dist/chunks/{tool-7gqqz1s8.js → persistent-pty-10p29vm9.js} +2 -2
  17. package/dist/chunks/{tool-vvdjq78e.js → persistent-pty-12pms3sx.js} +5 -6
  18. package/dist/chunks/{tool-999qd968.js → persistent-pty-15hpbjb6.js} +4 -4
  19. package/dist/chunks/{tool-18pv8fg3.js → persistent-pty-18pv8fg3.js} +2 -2
  20. package/dist/chunks/{tool-wcb745wb.js → persistent-pty-1xq8v1tm.js} +4 -4
  21. package/dist/chunks/{tool-7bxmgbqt.js → persistent-pty-22h5xaqn.js} +10 -7
  22. package/dist/chunks/{tool-cb5zxvq2.js → persistent-pty-264e1nfp.js} +16 -27
  23. package/dist/chunks/{tool-bmknfyv0.js → persistent-pty-2knkewgs.js} +5 -5
  24. package/dist/chunks/persistent-pty-2kyxeqh2.js +33 -0
  25. package/dist/chunks/{tool-2m0hgr65.js → persistent-pty-2m0hgr65.js} +1 -1
  26. package/dist/chunks/{tool-2nmyybe0.js → persistent-pty-2nmyybe0.js} +1 -1
  27. package/dist/chunks/{tool-2wds5nk3.js → persistent-pty-2wds5nk3.js} +1 -1
  28. package/dist/chunks/{tool-217z330v.js → persistent-pty-2wsc5t7f.js} +2 -2
  29. package/dist/chunks/{tool-y0a17w9d.js → persistent-pty-318s80v9.js} +4 -4
  30. package/dist/chunks/{tool-c7b2cm7c.js → persistent-pty-31t50p8f.js} +7 -7
  31. package/dist/chunks/{tool-vycjsnjm.js → persistent-pty-37ng30jt.js} +11 -6
  32. package/dist/chunks/{tool-393a352g.js → persistent-pty-393a352g.js} +2 -2
  33. package/dist/chunks/{tool-3g8vftxb.js → persistent-pty-3g8vftxb.js} +2 -2
  34. package/dist/chunks/{tool-h4a7m801.js → persistent-pty-3mn74f4q.js} +21 -24
  35. package/dist/chunks/{tool-3qv8nf0b.js → persistent-pty-3qv8nf0b.js} +1 -1
  36. package/dist/chunks/{tool-h5xzwr1g.js → persistent-pty-3sj8e5dd.js} +6 -6
  37. package/dist/chunks/{tool-3thh6229.js → persistent-pty-3thh6229.js} +2 -2
  38. package/dist/chunks/{tool-25n2gasw.js → persistent-pty-3x0b9mtx.js} +7 -7
  39. package/dist/chunks/{tool-5aac0tby.js → persistent-pty-3xa942qf.js} +10 -10
  40. package/dist/chunks/{tool-3bben81c.js → persistent-pty-4fpv6vze.js} +12 -9
  41. package/dist/chunks/{tool-e39r3b28.js → persistent-pty-4n5anbj9.js} +3 -3
  42. package/dist/chunks/{tool-4s2xwh5d.js → persistent-pty-4s2xwh5d.js} +3 -3
  43. package/dist/chunks/{tool-pts35d3y.js → persistent-pty-4szn0afa.js} +8 -9
  44. package/dist/chunks/{tool-v72crqz7.js → persistent-pty-4vx29khk.js} +4 -4
  45. package/dist/chunks/{tool-4zzdwbaz.js → persistent-pty-4zzdwbaz.js} +2 -2
  46. package/dist/chunks/{tool-50jxp3hw.js → persistent-pty-50jxp3hw.js} +1 -1
  47. package/dist/chunks/{tool-kprre75d.js → persistent-pty-513bkrxw.js} +3 -3
  48. package/dist/chunks/{tool-5z4zwtb4.js → persistent-pty-57ej80dx.js} +6 -5
  49. package/dist/chunks/{tool-57tzwnz4.js → persistent-pty-57tzwnz4.js} +1 -1
  50. package/dist/chunks/{tool-58xdvehb.js → persistent-pty-58xdvehb.js} +1 -1
  51. package/dist/chunks/{tool-chc00mz7.js → persistent-pty-5b7b3wgr.js} +6 -6
  52. package/dist/chunks/{tool-5cdnkd94.js → persistent-pty-5cdnkd94.js} +3 -3
  53. package/dist/chunks/{tool-5fe026tx.js → persistent-pty-5fe026tx.js} +3 -3
  54. package/dist/chunks/{tool-5rs65q6p.js → persistent-pty-5rs65q6p.js} +1 -1
  55. package/dist/chunks/{tool-5vcssjzn.js → persistent-pty-5vcssjzn.js} +1 -1
  56. package/dist/chunks/{tool-6272rtjg.js → persistent-pty-6272rtjg.js} +1 -1
  57. package/dist/chunks/{tool-5drxeftm.js → persistent-pty-68wbtxd0.js} +152 -152
  58. package/dist/chunks/{tool-rp2ch0tc.js → persistent-pty-68ypegzg.js} +3 -3
  59. package/dist/chunks/{tool-cp982web.js → persistent-pty-6d0q94xv.js} +7 -7
  60. package/dist/chunks/{tool-n93x7mqk.js → persistent-pty-6dfpv9a6.js} +3 -3
  61. package/dist/chunks/{tool-6ky7rqk7.js → persistent-pty-6ky7rqk7.js} +1 -1
  62. package/dist/chunks/{tool-t9sv4zem.js → persistent-pty-6nthn2wf.js} +5 -5
  63. package/dist/chunks/{tool-6wkzvma0.js → persistent-pty-6wkzvma0.js} +2 -2
  64. package/dist/chunks/{tool-75h1hfe2.js → persistent-pty-75h1hfe2.js} +2 -2
  65. package/dist/chunks/{tool-d8ve01t0.js → persistent-pty-76wzch5c.js} +43 -48
  66. package/dist/chunks/{tool-2ppgn6ch.js → persistent-pty-7f6z5n6f.js} +4 -4
  67. package/dist/chunks/{tool-pkezspgh.js → persistent-pty-7hq60rpc.js} +11 -11
  68. package/dist/chunks/{tool-7khw64yh.js → persistent-pty-7khw64yh.js} +1 -1
  69. package/dist/chunks/{tool-7mrpdsq5.js → persistent-pty-7mrpdsq5.js} +1 -1
  70. package/dist/chunks/{tool-7wcmqxrc.js → persistent-pty-7wcmqxrc.js} +1 -1
  71. package/dist/chunks/{tool-rameyvmv.js → persistent-pty-83ba1yz6.js} +5 -11
  72. package/dist/chunks/{tool-pcyacrd3.js → persistent-pty-83vcrt0q.js} +6 -6
  73. package/dist/chunks/{tool-5tp8bhe0.js → persistent-pty-854jnr3z.js} +10 -8
  74. package/dist/chunks/{tool-h01rtytj.js → persistent-pty-85s0s238.js} +3 -3
  75. package/dist/chunks/{tool-k7pbmry0.js → persistent-pty-8a0sxteh.js} +13 -14
  76. package/dist/chunks/{tool-jcxfg7j9.js → persistent-pty-8a4hfbqs.js} +9 -8
  77. package/dist/chunks/{tool-8dndtydw.js → persistent-pty-8dqs26x1.js} +4 -4
  78. package/dist/chunks/{tool-negttf37.js → persistent-pty-8hsta5jz.js} +86 -86
  79. package/dist/chunks/{tool-z8gh2y42.js → persistent-pty-8n5xz4y2.js} +4 -4
  80. package/dist/chunks/{tool-8pngjawd.js → persistent-pty-8pngjawd.js} +2 -2
  81. package/dist/chunks/{tool-g64wqzyd.js → persistent-pty-9507whzk.js} +3 -3
  82. package/dist/chunks/{tool-9f0rnpkn.js → persistent-pty-9f0rnpkn.js} +1 -1
  83. package/dist/chunks/{tool-s758z954.js → persistent-pty-9kqpqjvx.js} +2 -2
  84. package/dist/chunks/{tool-3p1bsa7m.js → persistent-pty-9maxscqf.js} +7 -0
  85. package/dist/chunks/{tool-sxpjdhga.js → persistent-pty-9xg84z6j.js} +4 -4
  86. package/dist/chunks/{tool-eek2pnnt.js → persistent-pty-a0ys31qc.js} +12 -12
  87. package/dist/chunks/{tool-dcqm2659.js → persistent-pty-a25nnbkb.js} +33 -87
  88. package/dist/chunks/{tool-r958g7pm.js → persistent-pty-a7xc44k8.js} +4 -4
  89. package/dist/chunks/{tool-merfm3fd.js → persistent-pty-agy32ytt.js} +3 -3
  90. package/dist/chunks/{tool-9ksd5av3.js → persistent-pty-aj1419k0.js} +4 -4
  91. package/dist/chunks/{tool-x33kb18g.js → persistent-pty-aj48n7zh.js} +3 -3
  92. package/dist/chunks/{tool-cpbmr86j.js → persistent-pty-arfafmgx.js} +6 -6
  93. package/dist/chunks/{tool-awg5d31a.js → persistent-pty-awg5d31a.js} +1 -1
  94. package/dist/chunks/{tool-se8395as.js → persistent-pty-ayrkq19e.js} +8 -8
  95. package/dist/chunks/{tool-t4r89bwk.js → persistent-pty-b11hynfv.js} +3 -3
  96. package/dist/chunks/{tool-76jwqfe9.js → persistent-pty-b1rr41z2.js} +8 -8
  97. package/dist/chunks/{tool-d7kshenq.js → persistent-pty-b4gc6pz2.js} +49 -44
  98. package/dist/chunks/{tool-09s1bzmc.js → persistent-pty-b7tctcvf.js} +6 -9
  99. package/dist/chunks/{tool-c03pdk3m.js → persistent-pty-b9k0650j.js} +3 -3
  100. package/dist/chunks/{tool-bbhffenw.js → persistent-pty-bbhffenw.js} +3 -3
  101. package/dist/chunks/{tool-bh1wr8rq.js → persistent-pty-bh1wr8rq.js} +2 -2
  102. package/dist/chunks/{tool-53vhya9m.js → persistent-pty-bk1nj3vy.js} +5 -5
  103. package/dist/chunks/{tool-400rk52g.js → persistent-pty-bm9ah9hr.js} +5 -5
  104. package/dist/chunks/{tool-75wg6agd.js → persistent-pty-by5251yx.js} +19 -17
  105. package/dist/chunks/{tool-byab506k.js → persistent-pty-byab506k.js} +1 -1
  106. package/dist/chunks/{tool-e4n4v60w.js → persistent-pty-bysvf6ep.js} +3 -3
  107. package/dist/chunks/{tool-c4wcb9vc.js → persistent-pty-c4wcb9vc.js} +2 -2
  108. package/dist/chunks/{tool-88jbfw8z.js → persistent-pty-c8ya26sa.js} +4 -4
  109. package/dist/chunks/{tool-02xgq42f.js → persistent-pty-caycsp33.js} +2 -2
  110. package/dist/chunks/{tool-8ebp560e.js → persistent-pty-chdf1j2d.js} +4 -4
  111. package/dist/chunks/{tool-6f8j85qb.js → persistent-pty-ckw7ggwg.js} +13 -13
  112. package/dist/chunks/{tool-b12y280m.js → persistent-pty-cqf8rezx.js} +6 -6
  113. package/dist/chunks/{tool-qfcm9j97.js → persistent-pty-cznxnepa.js} +6 -10
  114. package/dist/chunks/{tool-d2gk9vpf.js → persistent-pty-d2gk9vpf.js} +2 -2
  115. package/dist/chunks/{tool-mtf7yncj.js → persistent-pty-d2k1eqgv.js} +6 -6
  116. package/dist/chunks/{tool-nesb2rcz.js → persistent-pty-d4h7vwhh.js} +2 -2
  117. package/dist/chunks/{tool-2y40pff2.js → persistent-pty-d88p9jy9.js} +6 -6
  118. package/dist/chunks/{tool-dhphtf1x.js → persistent-pty-dhphtf1x.js} +1 -1
  119. package/dist/chunks/{tool-5t37zp3f.js → persistent-pty-dmnn2ttb.js} +19 -13
  120. package/dist/chunks/{tool-cstpqjcj.js → persistent-pty-dssj2s1h.js} +23 -24
  121. package/dist/chunks/{tool-e1z9a0ts.js → persistent-pty-e1z9a0ts.js} +2 -2
  122. package/dist/chunks/{tool-ec8vrfw5.js → persistent-pty-ec8vrfw5.js} +1 -1
  123. package/dist/chunks/{tool-rm0rdhcq.js → persistent-pty-edmk8q4v.js} +7 -9
  124. package/dist/chunks/{tool-eeta29b7.js → persistent-pty-eeta29b7.js} +4 -4
  125. package/dist/chunks/persistent-pty-egt387mf.js +187 -0
  126. package/dist/chunks/{tool-enpg66yn.js → persistent-pty-enpg66yn.js} +1 -1
  127. package/dist/chunks/persistent-pty-ep35cpen.js +32 -0
  128. package/dist/chunks/{tool-hjc64t6x.js → persistent-pty-ext14ctb.js} +50 -74
  129. package/dist/chunks/{tool-amkf47zv.js → persistent-pty-ey12fzze.js} +6 -9
  130. package/dist/chunks/{tool-q693p5za.js → persistent-pty-f01b69za.js} +11 -11
  131. package/dist/chunks/{tool-drean1vx.js → persistent-pty-f1jj19e8.js} +1 -1
  132. package/dist/chunks/{tool-83kkwqqt.js → persistent-pty-f74fncf5.js} +5 -5
  133. package/dist/chunks/{tool-8qrvdwwg.js → persistent-pty-f7q7a28y.js} +6 -6
  134. package/dist/chunks/{tool-f9wt0tjw.js → persistent-pty-f9wt0tjw.js} +2 -2
  135. package/dist/chunks/{tool-fb7nfzf2.js → persistent-pty-fb7nfzf2.js} +3 -3
  136. package/dist/chunks/{tool-7vqcvmjm.js → persistent-pty-fbnkj2ks.js} +9 -9
  137. package/dist/chunks/{tool-n0eq3s1b.js → persistent-pty-fck3954k.js} +7 -7
  138. package/dist/chunks/{tool-fgyjabww.js → persistent-pty-fgyjabww.js} +2 -2
  139. package/dist/chunks/persistent-pty-fm2xjscy.js +304 -0
  140. package/dist/chunks/{tool-ybhfpy64.js → persistent-pty-fm3b2wbt.js} +4 -6
  141. package/dist/chunks/{tool-dfjw0vq8.js → persistent-pty-g01v88ve.js} +12 -13
  142. package/dist/chunks/{tool-2zb0j1mr.js → persistent-pty-g2tg9rrx.js} +1 -1
  143. package/dist/chunks/{tool-mh28new4.js → persistent-pty-gb1z7yet.js} +2 -2
  144. package/dist/chunks/{tool-gcay93cp.js → persistent-pty-gcay93cp.js} +1 -1
  145. package/dist/chunks/{tool-gd2xppx8.js → persistent-pty-gd2xppx8.js} +1 -1
  146. package/dist/chunks/{tool-h12kt9pa.js → persistent-pty-h12kt9pa.js} +2 -2
  147. package/dist/chunks/{tool-248dv4dv.js → persistent-pty-h40g2pf4.js} +5 -5
  148. package/dist/chunks/{tool-p379w5v5.js → persistent-pty-h7dqnnw7.js} +10 -10
  149. package/dist/chunks/{tool-h94zdhz8.js → persistent-pty-h94zdhz8.js} +2 -2
  150. package/dist/chunks/{tool-4qk63h15.js → persistent-pty-hg1dj728.js} +3 -3
  151. package/dist/chunks/{tool-rmm5c85b.js → persistent-pty-hggmzd1z.js} +13 -14
  152. package/dist/chunks/{tool-na96fv1q.js → persistent-pty-hjndjhyq.js} +3 -3
  153. package/dist/chunks/{tool-hp6rpdnc.js → persistent-pty-hp6rpdnc.js} +1 -1
  154. package/dist/chunks/{tool-ey81096p.js → persistent-pty-hs1p9dz7.js} +10 -10
  155. package/dist/chunks/persistent-pty-j32vdj8r.js +16 -0
  156. package/dist/chunks/{tool-ffe33p6j.js → persistent-pty-j39d0gcp.js} +18 -20
  157. package/dist/chunks/{tool-7yfz5d5r.js → persistent-pty-j8t12rx3.js} +17 -9
  158. package/dist/chunks/{tool-b273vq4v.js → persistent-pty-jm9yfqhv.js} +3 -11
  159. package/dist/chunks/{tool-23mx900r.js → persistent-pty-jmn1sgkw.js} +5 -5
  160. package/dist/chunks/{tool-4ya343sq.js → persistent-pty-jmntmgq9.js} +32 -36
  161. package/dist/chunks/{tool-t66bwez3.js → persistent-pty-jn3nfbk7.js} +2 -2
  162. package/dist/chunks/{tool-5y7h4bj8.js → persistent-pty-jp7a1crg.js} +6 -6
  163. package/dist/chunks/{tool-y4v09x0q.js → persistent-pty-jrzh7nr2.js} +4 -4
  164. package/dist/chunks/{tool-ngpnqj2n.js → persistent-pty-ke19p6qk.js} +6 -9
  165. package/dist/chunks/{tool-kg1345f7.js → persistent-pty-kg1345f7.js} +1 -1
  166. package/dist/chunks/{tool-kp1t5rcy.js → persistent-pty-kp1t5rcy.js} +1 -1
  167. package/dist/chunks/{tool-krsqcmnj.js → persistent-pty-krsqcmnj.js} +1 -1
  168. package/dist/chunks/{tool-gpybhmhb.js → persistent-pty-krzvywyt.js} +6 -6
  169. package/dist/chunks/{tool-kt491qp2.js → persistent-pty-kt491qp2.js} +3 -3
  170. package/dist/chunks/{tool-0jn2bqed.js → persistent-pty-kxet89mv.js} +3 -3
  171. package/dist/chunks/{tool-m55whf0h.js → persistent-pty-m55whf0h.js} +2 -2
  172. package/dist/chunks/{tool-c3ehh06a.js → persistent-pty-m6kd9m0n.js} +5 -5
  173. package/dist/chunks/{tool-017jr2na.js → persistent-pty-mankezgy.js} +55 -7
  174. package/dist/chunks/{tool-dp4z5d5v.js → persistent-pty-mctnftah.js} +6 -6
  175. package/dist/chunks/{tool-6mybbghn.js → persistent-pty-mdbd9v7n.js} +11 -11
  176. package/dist/chunks/{tool-mf0hyk7z.js → persistent-pty-mf0hyk7z.js} +1 -1
  177. package/dist/chunks/{tool-1tbh5vd4.js → persistent-pty-mjkw59em.js} +8 -8
  178. package/dist/chunks/{tool-mnb85w6b.js → persistent-pty-mnb85w6b.js} +2 -2
  179. package/dist/chunks/{tool-whk0g8cz.js → persistent-pty-mxjff6xk.js} +10 -5
  180. package/dist/chunks/{tool-mxvw03gv.js → persistent-pty-mxvw03gv.js} +1 -1
  181. package/dist/chunks/{tool-xt0068v8.js → persistent-pty-n6ag8q95.js} +19 -23
  182. package/dist/chunks/{tool-m1wb9dgh.js → persistent-pty-n8twstac.js} +34 -34
  183. package/dist/chunks/{tool-6qnkp1xh.js → persistent-pty-ngph9rhx.js} +13 -13
  184. package/dist/chunks/{tool-nr76rjj3.js → persistent-pty-nr76rjj3.js} +2 -2
  185. package/dist/chunks/{tool-y980s7ka.js → persistent-pty-ns0sdez7.js} +5 -5
  186. package/dist/chunks/{tool-emrme47h.js → persistent-pty-nt76vjs4.js} +6 -6
  187. package/dist/chunks/{tool-nzrjycs5.js → persistent-pty-nzrjycs5.js} +1 -1
  188. package/dist/chunks/{tool-yaw62s0n.js → persistent-pty-p91cgptf.js} +4 -4
  189. package/dist/chunks/{tool-jy183kys.js → persistent-pty-pp6dntfs.js} +7 -7
  190. package/dist/chunks/{tool-pq4b4pqk.js → persistent-pty-pq4b4pqk.js} +2 -2
  191. package/dist/chunks/{tool-bb6xq25h.js → persistent-pty-q1jag6n4.js} +62 -65
  192. package/dist/chunks/{tool-3jshngxf.js → persistent-pty-q22ck3r9.js} +9 -9
  193. package/dist/chunks/{tool-271gqszs.js → persistent-pty-q3p77hqf.js} +9 -14
  194. package/dist/chunks/{tool-ygy0xbqa.js → persistent-pty-q606pcse.js} +3 -3
  195. package/dist/chunks/{tool-cb19ghtj.js → persistent-pty-q6qnq55y.js} +3 -3
  196. package/dist/chunks/{tool-3s135gjm.js → persistent-pty-q6skr8rp.js} +8 -8
  197. package/dist/chunks/{tool-qe0d689s.js → persistent-pty-qe0d689s.js} +2 -2
  198. package/dist/chunks/{tool-r13w8t0w.js → persistent-pty-r13w8t0w.js} +2 -2
  199. package/dist/chunks/{tool-r3k9abhd.js → persistent-pty-r3k9abhd.js} +2 -2
  200. package/dist/chunks/{tool-yde8fdw7.js → persistent-pty-r5b5j3z1.js} +9 -9
  201. package/dist/chunks/{tool-rfbm65k8.js → persistent-pty-r9d3d23r.js} +5 -33
  202. package/dist/chunks/{tool-rahat93a.js → persistent-pty-rahat93a.js} +1 -1
  203. package/dist/chunks/{tool-rbnp2c85.js → persistent-pty-rbnp2c85.js} +3 -3
  204. package/dist/chunks/{tool-c06ff3ts.js → persistent-pty-rjhyt7an.js} +10 -11
  205. package/dist/chunks/{tool-pqe0bsb2.js → persistent-pty-rttzjz69.js} +3 -3
  206. package/dist/chunks/{tool-nr9n2d4p.js → persistent-pty-rywejs85.js} +10 -10
  207. package/dist/chunks/{tool-376q6v3y.js → persistent-pty-rz6kjcfr.js} +10 -10
  208. package/dist/chunks/persistent-pty-s2kjqxd3.js +21 -0
  209. package/dist/chunks/{tool-s33fw6zm.js → persistent-pty-s33fw6zm.js} +1 -1
  210. package/dist/chunks/{tool-5cmc2wkg.js → persistent-pty-shjty0r5.js} +10 -10
  211. package/dist/chunks/{tool-smpeg8c9.js → persistent-pty-smpeg8c9.js} +2 -2
  212. package/dist/chunks/{tool-sw84ckhj.js → persistent-pty-sw84ckhj.js} +1 -1
  213. package/dist/chunks/{tool-t0msbthe.js → persistent-pty-t0msbthe.js} +3 -3
  214. package/dist/chunks/{tool-t14kykx1.js → persistent-pty-t14kykx1.js} +1 -1
  215. package/dist/chunks/{tool-y109krwg.js → persistent-pty-t4x64zgs.js} +8 -16
  216. package/dist/chunks/{tool-gf27j7mb.js → persistent-pty-tayw3q5q.js} +8 -16
  217. package/dist/chunks/{tool-tcptxgyq.js → persistent-pty-tcptxgyq.js} +1 -1
  218. package/dist/chunks/{tool-re1rhra9.js → persistent-pty-tg194hwa.js} +6 -6
  219. package/dist/chunks/{tool-tgbb2ckq.js → persistent-pty-tgbb2ckq.js} +2 -2
  220. package/dist/chunks/{tool-thstd87d.js → persistent-pty-thstd87d.js} +1 -1
  221. package/dist/chunks/{tool-kgkfyy1j.js → persistent-pty-tjrfm0xh.js} +5 -8
  222. package/dist/chunks/{tool-d8s3r721.js → persistent-pty-tpzhmg20.js} +4 -4
  223. package/dist/chunks/{tool-txw0c3p3.js → persistent-pty-tqf07m3e.js} +6 -4
  224. package/dist/chunks/persistent-pty-ttxf0gsy.js +0 -0
  225. package/dist/chunks/{tool-ndg5dzdd.js → persistent-pty-twtt8bhh.js} +3 -3
  226. package/dist/chunks/{tool-v2wshkax.js → persistent-pty-v2wshkax.js} +1 -1
  227. package/dist/chunks/{tool-v80zsxnb.js → persistent-pty-v80zsxnb.js} +1 -1
  228. package/dist/chunks/{tool-v972xay6.js → persistent-pty-v972xay6.js} +1 -1
  229. package/dist/chunks/{tool-v9bfv94f.js → persistent-pty-v9bfv94f.js} +1 -1
  230. package/dist/chunks/{tool-kcacmy5c.js → persistent-pty-vac9eqd2.js} +1 -5
  231. package/dist/chunks/{tool-vcwr2vpf.js → persistent-pty-vcwr2vpf.js} +1 -1
  232. package/dist/chunks/{tool-e7m167yz.js → persistent-pty-vh1dz6e7.js} +19 -11
  233. package/dist/chunks/{tool-w52cyf08.js → persistent-pty-vjsse407.js} +2 -2
  234. package/dist/chunks/{tool-vqbmgfq1.js → persistent-pty-vqbmgfq1.js} +3 -3
  235. package/dist/chunks/{tool-hszm49c7.js → persistent-pty-vqha1kn3.js} +10 -10
  236. package/dist/chunks/{tool-88d62dqj.js → persistent-pty-vyrk4dbp.js} +42 -44
  237. package/dist/chunks/{tool-vz89hfgr.js → persistent-pty-vz89hfgr.js} +1 -1
  238. package/dist/chunks/{tool-a66h3var.js → persistent-pty-w4aa5eza.js} +9 -9
  239. package/dist/chunks/{tool-ay9jepqf.js → persistent-pty-w6dbrh59.js} +19 -19
  240. package/dist/chunks/{tool-t11m5yr4.js → persistent-pty-wa3apvnh.js} +4 -4
  241. package/dist/chunks/{tool-wbkt8qpj.js → persistent-pty-wbkt8qpj.js} +1 -1
  242. package/dist/chunks/persistent-pty-we6kp80b.js +234 -0
  243. package/dist/chunks/{tool-wmxdh12w.js → persistent-pty-wmxdh12w.js} +1 -1
  244. package/dist/chunks/{tool-pqjwk9ze.js → persistent-pty-wpak3cn2.js} +3 -3
  245. package/dist/chunks/{tool-wps8gh8n.js → persistent-pty-wps8gh8n.js} +2 -2
  246. package/dist/chunks/{tool-gfdah46y.js → persistent-pty-wr6wwww9.js} +21 -22
  247. package/dist/chunks/{tool-pr2pekfr.js → persistent-pty-wskcpn5r.js} +15 -15
  248. package/dist/chunks/{tool-5h6b115z.js → persistent-pty-ww589d89.js} +48 -8
  249. package/dist/chunks/{tool-x89rah0x.js → persistent-pty-x89rah0x.js} +1 -1
  250. package/dist/chunks/{tool-xczfw7dq.js → persistent-pty-xczfw7dq.js} +1 -1
  251. package/dist/chunks/{tool-xgv25zxy.js → persistent-pty-xgv25zxy.js} +1 -1
  252. package/dist/chunks/{tool-p8fr6x1v.js → persistent-pty-xj0xhwdw.js} +2 -2
  253. package/dist/chunks/{tool-ef9y63ry.js → persistent-pty-xkdg511d.js} +3 -3
  254. package/dist/chunks/{tool-d6sk6h82.js → persistent-pty-xqzpjgmh.js} +57 -63
  255. package/dist/chunks/{tool-xwftk1fd.js → persistent-pty-xwftk1fd.js} +2 -2
  256. package/dist/chunks/{tool-xxpvz42q.js → persistent-pty-xxpvz42q.js} +3 -3
  257. package/dist/chunks/{tool-y0x38cee.js → persistent-pty-y0x38cee.js} +1 -1
  258. package/dist/chunks/{tool-y198y2ra.js → persistent-pty-y198y2ra.js} +1 -1
  259. package/dist/chunks/{tool-y67x6rf6.js → persistent-pty-y67x6rf6.js} +1 -1
  260. package/dist/chunks/{tool-q70gvhbx.js → persistent-pty-y85nmh9b.js} +9 -9
  261. package/dist/chunks/{tool-s2dmwbat.js → persistent-pty-ybp6xw39.js} +7 -7
  262. package/dist/chunks/{tool-3331j5hn.js → persistent-pty-yd381zvh.js} +19 -23
  263. package/dist/chunks/{tool-yf0knd5z.js → persistent-pty-yf0knd5z.js} +2 -2
  264. package/dist/chunks/{tool-hd8q5g8p.js → persistent-pty-ym92bbkh.js} +8 -5
  265. package/dist/chunks/{tool-axj9zjcw.js → persistent-pty-yq3dvva9.js} +4 -4
  266. package/dist/chunks/{tool-157r81nd.js → persistent-pty-yx19m5fk.js} +8 -8
  267. package/dist/chunks/{tool-h2mftgr1.js → persistent-pty-z3cp4eqm.js} +14 -9
  268. package/dist/chunks/{tool-9cn9z662.js → persistent-pty-z6p4m7fm.js} +33 -33
  269. package/dist/chunks/{tool-zbqqnp0n.js → persistent-pty-zbqqnp0n.js} +1 -1
  270. package/dist/chunks/{tool-zdkg1k91.js → persistent-pty-zdkg1k91.js} +1 -1
  271. package/dist/chunks/{tool-njstbtdj.js → persistent-pty-zggp0jtk.js} +61 -61
  272. package/dist/chunks/{tool-q9b4qnv8.js → persistent-pty-zs1qer6v.js} +7 -11
  273. package/dist/chunks/{tool-zxcy6vhn.js → persistent-pty-zxcy6vhn.js} +1 -1
  274. package/dist/chunks/{tool-zxe9jjhn.js → persistent-pty-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 +70 -70
  279. package/dist/config/file.js +128 -0
  280. package/dist/config/markdown.js +2 -2
  281. package/dist/config/normalize.js +20 -20
  282. package/dist/config/plugin/agent.js +132 -136
  283. package/dist/config/plugin/command.js +118 -118
  284. package/dist/config/plugin/compaction.js +146 -150
  285. package/dist/config/plugin/entry-observer.js +114 -114
  286. package/dist/config/plugin/formatter.js +119 -119
  287. package/dist/config/plugin/image.js +131 -130
  288. package/dist/config/plugin/instruction.js +90 -90
  289. package/dist/config/plugin/location-watcher.js +117 -117
  290. package/dist/config/plugin/mcp.js +128 -128
  291. package/dist/config/plugin/policy.js +116 -116
  292. package/dist/config/plugin/provider.js +115 -115
  293. package/dist/config/plugin/reference.js +119 -119
  294. package/dist/config/plugin/shell.js +118 -118
  295. package/dist/config/plugin/skill-file.js +103 -109
  296. package/dist/config/plugin/skill.js +135 -139
  297. package/dist/config/plugin/snapshot.js +117 -117
  298. package/dist/config/plugin/source.js +114 -114
  299. package/dist/config/plugin/tool-output.js +119 -119
  300. package/dist/config/plugin/websearch.js +115 -115
  301. package/dist/config/variable.js +4 -4
  302. package/dist/config.js +113 -115
  303. package/dist/credential/sql.js +3 -3
  304. package/dist/credential.js +71 -71
  305. package/dist/database/database.js +65 -65
  306. package/dist/database/drizzle/effect-sqlite/driver.js +13 -13
  307. package/dist/database/drizzle/effect-sqlite/index.js +13 -13
  308. package/dist/database/drizzle/effect-sqlite/session.js +12 -12
  309. package/dist/database/drizzle/index.js +14 -14
  310. package/dist/database/drizzle/internal/drizzle-utils.js +2 -2
  311. package/dist/database/drizzle/sqlite-core/effect/count.js +2 -2
  312. package/dist/database/drizzle/sqlite-core/effect/db.js +10 -10
  313. package/dist/database/drizzle/sqlite-core/effect/delete.js +3 -3
  314. package/dist/database/drizzle/sqlite-core/effect/index.js +18 -18
  315. package/dist/database/drizzle/sqlite-core/effect/insert.js +3 -3
  316. package/dist/database/drizzle/sqlite-core/effect/query.js +2 -2
  317. package/dist/database/drizzle/sqlite-core/effect/raw.js +2 -2
  318. package/dist/database/drizzle/sqlite-core/effect/select.js +3 -3
  319. package/dist/database/drizzle/sqlite-core/effect/session.js +11 -11
  320. package/dist/database/drizzle/sqlite-core/effect/update.js +3 -3
  321. package/dist/database/drizzle.js +15 -15
  322. package/dist/database/migration/20260127222353_familiar_lady_ursula.js +2 -2
  323. package/dist/database/migration/20260211171708_add_project_commands.js +2 -2
  324. package/dist/database/migration/20260213144116_wakeful_the_professor.js +2 -2
  325. package/dist/database/migration/20260225215848_workspace.js +2 -2
  326. package/dist/database/migration/20260227213759_add_session_workspace_id.js +2 -2
  327. package/dist/database/migration/20260228203230_blue_harpoon.js +2 -2
  328. package/dist/database/migration/20260303231226_add_workspace_fields.js +2 -2
  329. package/dist/database/migration/20260309230000_move_org_to_state.js +2 -2
  330. package/dist/database/migration/20260312043431_session_message_cursor.js +2 -2
  331. package/dist/database/migration/20260323234822_events.js +2 -2
  332. package/dist/database/migration/20260410174513_workspace-name.js +2 -2
  333. package/dist/database/migration/20260413175956_chief_energizer.js +2 -2
  334. package/dist/database/migration/20260423070820_add_icon_url_override.js +2 -2
  335. package/dist/database/migration/20260427172553_slow_nightmare.js +2 -2
  336. package/dist/database/migration/20260428004200_add_session_path.js +2 -2
  337. package/dist/database/migration/20260501142318_next_venus.js +2 -2
  338. package/dist/database/migration/20260504145000_add_sync_owner.js +2 -2
  339. package/dist/database/migration/20260507164347_add_workspace_time.js +2 -2
  340. package/dist/database/migration/20260510033149_session_usage.js +2 -2
  341. package/dist/database/migration/20260511000411_data_migration_state.js +2 -2
  342. package/dist/database/migration/20260511173437_session-metadata.js +2 -2
  343. package/dist/database/migration/20260601010001_normalize_storage_paths.js +2 -2
  344. package/dist/database/migration/20260601202201_amazing_prowler.js +2 -2
  345. package/dist/database/migration/20260602002951_lowly_union_jack.js +2 -2
  346. package/dist/database/migration/20260602182828_add_project_directories.js +2 -2
  347. package/dist/database/migration/20260603001617_session_message_projection_indexes.js +2 -2
  348. package/dist/database/migration/20260603040000_session_message_projection_order.js +2 -2
  349. package/dist/database/migration/20260603141458_session_input_inbox.js +2 -2
  350. package/dist/database/migration/20260603160727_jittery_ezekiel_stane.js +2 -2
  351. package/dist/database/migration/20260604172448_event_sourced_session_input.js +2 -2
  352. package/dist/database/migration/20260605003541_add_session_context_snapshot.js +2 -2
  353. package/dist/database/migration/20260605042240_add_context_epoch_agent.js +2 -2
  354. package/dist/database/migration/20260611035744_credential.js +2 -2
  355. package/dist/database/migration/20260611192811_lush_chimera.js +2 -2
  356. package/dist/database/migration/20260612174303_project_dir_strategy.js +2 -2
  357. package/dist/database/migration/20260622142730_simplify_session_context_epoch.js +2 -2
  358. package/dist/database/migration/20260622170816_reset_v2_session_state.js +2 -2
  359. package/dist/database/migration/20260622202450_simplify_session_input.js +2 -2
  360. package/dist/database/migration/20260804233008_loose_psylocke.js +2 -2
  361. package/dist/database/migration/20260805200742_import_legacy_credentials.js +2 -2
  362. package/dist/database/migration/20260808023530_workspace_domain.js +2 -2
  363. package/dist/database/migration/20260811161259_execution_claim_attempts.js +2 -2
  364. package/dist/database/migration/20260812181746_session_inbox.js +2 -2
  365. package/dist/database/migration/20260812213948_worktree.js +2 -2
  366. package/dist/database/migration/20260819222447_session_viewed_state.js +2 -2
  367. package/dist/database/migration/20260823191254_nullable_workspace_binding.js +2 -2
  368. package/dist/database/migration.gen.js +48 -48
  369. package/dist/database/migration.js +50 -50
  370. package/dist/database/path.js +3 -3
  371. package/dist/database/schema.gen.js +2 -2
  372. package/dist/database/schema.sql.js +2 -2
  373. package/dist/database/sqlite.bun.js +2 -2
  374. package/dist/database/sqlite.js +2 -2
  375. package/dist/database/sqlite.node.js +2 -2
  376. package/dist/database/sqlite.workerd.js +2 -2
  377. package/dist/database/v1-migration.bun.js +77 -93
  378. package/dist/database/v1-migration.js +2 -2
  379. package/dist/database/v1-migration.noop.js +1 -1
  380. package/dist/effect/app-node-builder.js +333 -328
  381. package/dist/effect/app-node-platform.js +3 -3
  382. package/dist/effect/keyed-mutex.js +2 -2
  383. package/dist/effect/websocket-constructor.js +2 -2
  384. package/dist/environment/driver.js +1 -1
  385. package/dist/environment/environment.js +91 -91
  386. package/dist/environment/exec-defaults.js +3 -3
  387. package/dist/environment/files.js +2 -2
  388. package/dist/environment/index.js +93 -93
  389. package/dist/environment/local.js +3 -3
  390. package/dist/environment/memory.js +3 -3
  391. package/dist/environment/unavailable.js +1 -1
  392. package/dist/event/sql.js +2 -2
  393. package/dist/event-logger.js +68 -68
  394. package/dist/file-mutation.js +92 -92
  395. package/dist/file-retention.js +2 -2
  396. package/dist/file.js +2 -2
  397. package/dist/filesystem/fff.bun.js +2 -2
  398. package/dist/filesystem/fff.js +2 -2
  399. package/dist/filesystem/fff.node.js +2 -2
  400. package/dist/filesystem/fff.workerd.js +2 -2
  401. package/dist/filesystem/ignore.js +1 -1
  402. package/dist/filesystem/location-watcher-policy.js +3 -3
  403. package/dist/filesystem/location-watcher.js +309 -304
  404. package/dist/filesystem/protected.js +2 -2
  405. package/dist/filesystem/search.js +96 -96
  406. package/dist/filesystem/watcher-binding.js +2 -2
  407. package/dist/filesystem/watcher.js +4 -4
  408. package/dist/filesystem.js +99 -98
  409. package/dist/form.js +69 -69
  410. package/dist/formatter/builtins.js +3 -3
  411. package/dist/formatter.js +85 -85
  412. package/dist/generate.js +84 -84
  413. package/dist/git.js +5 -5
  414. package/dist/github-copilot/chat/convert-to-openai-compatible-chat-messages.js +2 -2
  415. package/dist/github-copilot/chat/get-response-metadata.js +2 -2
  416. package/dist/github-copilot/chat/map-openai-compatible-finish-reason.js +2 -2
  417. package/dist/github-copilot/chat/openai-compatible-chat-language-model.js +8 -8
  418. package/dist/github-copilot/chat/openai-compatible-chat-options.js +2 -2
  419. package/dist/github-copilot/chat/openai-compatible-prepare-tools.js +2 -2
  420. package/dist/github-copilot/copilot-provider.js +18 -18
  421. package/dist/github-copilot/models.js +4 -4
  422. package/dist/github-copilot/openai-compatible-error.js +2 -2
  423. package/dist/github-copilot/responses/convert-to-openai-responses-input.js +2 -2
  424. package/dist/github-copilot/responses/map-openai-responses-finish-reason.js +2 -2
  425. package/dist/github-copilot/responses/openai-error.js +2 -2
  426. package/dist/github-copilot/responses/openai-responses-language-model.js +11 -11
  427. package/dist/github-copilot/responses/openai-responses-prepare-tools.js +7 -7
  428. package/dist/github-copilot/responses/tool/code-interpreter.js +2 -2
  429. package/dist/github-copilot/responses/tool/file-search.js +2 -2
  430. package/dist/github-copilot/responses/tool/image-generation.js +2 -2
  431. package/dist/github-copilot/responses/tool/web-search-preview.js +2 -2
  432. package/dist/github-copilot/responses/tool/web-search.js +2 -2
  433. package/dist/id/id.js +2 -2
  434. package/dist/image/photon-wasm.bun.js +1 -1
  435. package/dist/image/photon-wasm.node.js +1 -1
  436. package/dist/image/photon-wasm.workerd.js +1 -1
  437. package/dist/image/photon.js +99 -98
  438. package/dist/image.js +99 -98
  439. package/dist/instance.js +341 -0
  440. package/dist/instruction-discovery.js +72 -72
  441. package/dist/instructions/builtins.js +86 -86
  442. package/dist/instructions/index.js +2 -2
  443. package/dist/integration/connection.js +2 -2
  444. package/dist/integration.js +75 -75
  445. package/dist/job.js +72 -72
  446. package/dist/kv/sql.js +3 -3
  447. package/dist/kv.js +68 -68
  448. package/dist/location-activity.js +85 -85
  449. package/dist/location-mutation.js +87 -85
  450. package/dist/location-service-map.js +84 -84
  451. package/dist/location-services.js +334 -331
  452. package/dist/location.js +83 -83
  453. package/dist/mcp/client.js +96 -107
  454. package/dist/mcp/index.js +99 -99
  455. package/dist/mcp/instructions.js +127 -129
  456. package/dist/mcp/oauth.js +5 -13
  457. package/dist/mcp/stdio.js +93 -93
  458. package/dist/mime.js +2 -2
  459. package/dist/model-resolver.js +81 -81
  460. package/dist/model.js +3 -3
  461. package/dist/models-dev.js +75 -75
  462. package/dist/oauth/page.js +2 -2
  463. package/dist/permission/saved.js +84 -84
  464. package/dist/permission/sql.js +6 -6
  465. package/dist/permission.js +100 -106
  466. package/dist/persistent-pty/binary.bun.js +6 -6
  467. package/dist/persistent-pty/binary.node.js +1 -1
  468. package/dist/persistent-pty/binary.workerd.js +1 -1
  469. package/dist/persistent-pty/daemon.js +2 -2
  470. package/dist/persistent-pty/index.js +73 -73
  471. package/dist/persistent-pty/pty-binding.js +2 -2
  472. package/dist/persistent-pty.js +74 -73
  473. package/dist/plugin/agent.js +101 -107
  474. package/dist/plugin/command.js +99 -99
  475. package/dist/plugin/hooks.js +3 -3
  476. package/dist/plugin/host.js +174 -171
  477. package/dist/plugin/instance.js +13 -0
  478. package/dist/plugin/internal.js +302 -298
  479. package/dist/plugin/mcp-codemode-exclusion.js +3 -3
  480. package/dist/plugin/models-dev.js +76 -76
  481. package/dist/plugin/module.js +3 -3
  482. package/dist/plugin/plan.js +101 -107
  483. package/dist/plugin/promise.js +2 -2
  484. package/dist/plugin/provider/alibaba.js +3 -3
  485. package/dist/plugin/provider/amazon-bedrock.js +3 -3
  486. package/dist/plugin/provider/anthropic.js +3 -3
  487. package/dist/plugin/provider/azure.js +123 -121
  488. package/dist/plugin/provider/cerebras.js +3 -3
  489. package/dist/plugin/provider/cloudflare-ai-gateway.js +122 -122
  490. package/dist/plugin/provider/cloudflare-workers-ai.js +122 -122
  491. package/dist/plugin/provider/cohere.js +3 -3
  492. package/dist/plugin/provider/configured.js +122 -120
  493. package/dist/plugin/provider/dynamic.js +3 -2
  494. package/dist/plugin/provider/factory.js +2 -2
  495. package/dist/plugin/provider/gateway.js +3 -3
  496. package/dist/plugin/provider/github-copilot.js +82 -82
  497. package/dist/plugin/provider/gitlab.js +4 -4
  498. package/dist/plugin/provider/google-vertex.js +3 -3
  499. package/dist/plugin/provider/kilo.js +3 -3
  500. package/dist/plugin/provider/llmgateway.js +77 -77
  501. package/dist/plugin/provider/lmstudio.js +120 -114
  502. package/dist/plugin/provider/mistral.js +3 -3
  503. package/dist/plugin/provider/nvidia.js +3 -3
  504. package/dist/plugin/provider/ollama.js +120 -114
  505. package/dist/plugin/provider/openai-compatible.js +2 -2
  506. package/dist/plugin/provider/openai.js +79 -79
  507. package/dist/plugin/provider/opencode.js +93 -93
  508. package/dist/plugin/provider/openrouter.js +4 -4
  509. package/dist/plugin/provider/perplexity.js +3 -3
  510. package/dist/plugin/provider/sap-ai-core.js +4 -3
  511. package/dist/plugin/provider/sdk-factory.js +7 -0
  512. package/dist/plugin/provider/snowflake-cortex.js +3 -3
  513. package/dist/plugin/provider/venice.js +3 -3
  514. package/dist/plugin/provider/vercel.js +3 -3
  515. package/dist/plugin/provider/vllm.js +120 -114
  516. package/dist/plugin/provider/xai.js +78 -78
  517. package/dist/plugin/provider/zenmux.js +3 -3
  518. package/dist/plugin/provider.js +159 -157
  519. package/dist/plugin/runtime.js +162 -159
  520. package/dist/plugin/sdk.js +69 -69
  521. package/dist/plugin/skill.js +133 -137
  522. package/dist/plugin/source-directory.js +2 -2
  523. package/dist/plugin/supervisor-service.js +2 -2
  524. package/dist/plugin/supervisor.js +308 -303
  525. package/dist/plugin/system-prompt.js +2 -2
  526. package/dist/plugin/variant.js +4 -4
  527. package/dist/plugin/vcs/git.js +85 -85
  528. package/dist/plugin/vcs/hg.js +85 -85
  529. package/dist/plugin/warming.js +115 -115
  530. package/dist/plugin/websearch/exa.js +4 -4
  531. package/dist/plugin/websearch/firecrawl.js +5 -5
  532. package/dist/plugin/websearch/index.js +9 -9
  533. package/dist/plugin/websearch/mcp.js +3 -3
  534. package/dist/plugin/websearch/parallel.js +5 -5
  535. package/dist/plugin/websearch/tavily.js +3 -3
  536. package/dist/plugin.js +175 -172
  537. package/dist/project/markers.js +74 -74
  538. package/dist/project/schema.js +3 -3
  539. package/dist/project/sql.js +5 -5
  540. package/dist/project.js +82 -82
  541. package/dist/provider.js +2 -2
  542. package/dist/pty/protocol.js +1 -1
  543. package/dist/pty/pty.bun.js +1 -1
  544. package/dist/pty/pty.node.js +3 -3
  545. package/dist/pty/pty.workerd.js +1 -1
  546. package/dist/pty/schema.js +2 -2
  547. package/dist/pty/ticket.js +70 -70
  548. package/dist/pty.js +89 -89
  549. package/dist/reference/instructions.js +77 -77
  550. package/dist/reference.js +75 -75
  551. package/dist/repository-cache.js +7 -7
  552. package/dist/repository.js +2 -2
  553. package/dist/ripgrep/binary.js +3 -3
  554. package/dist/ripgrep.js +94 -94
  555. package/dist/schema.js +2 -2
  556. package/dist/session/compaction.js +118 -122
  557. package/dist/session/context.js +318 -313
  558. package/dist/session/environment.js +3 -3
  559. package/dist/session/error.js +4 -4
  560. package/dist/session/event.js +2 -2
  561. package/dist/session/execution/restart.js +165 -164
  562. package/dist/session/execution.js +122 -126
  563. package/dist/session/generate-node.js +319 -314
  564. package/dist/session/generate.js +2 -2
  565. package/dist/session/history.js +77 -94
  566. package/dist/session/inbox.js +77 -91
  567. package/dist/session/info.js +4 -92
  568. package/dist/session/instruction-entry.js +73 -90
  569. package/dist/session/instruction-state.js +10 -91
  570. package/dist/session/instructions.js +94 -102
  571. package/dist/session/message-updater.js +4 -4
  572. package/dist/session/message.js +2 -2
  573. package/dist/session/model-request.js +139 -139
  574. package/dist/session/model-transport.js +5 -5
  575. package/dist/session/projector.js +83 -101
  576. package/dist/session/revert.js +90 -94
  577. package/dist/session/run-coordinator.js +2 -2
  578. package/dist/session/runner/index.js +84 -84
  579. package/dist/session/runner/llm.js +324 -320
  580. package/dist/session/runner/max-steps.js +2 -2
  581. package/dist/session/runner/model.js +83 -83
  582. package/dist/session/runner/publish-llm-event.js +4 -4
  583. package/dist/session/runner/retry.js +72 -72
  584. package/dist/session/runner/step.js +151 -149
  585. package/dist/session/runner/to-llm-message.js +2 -2
  586. package/dist/session/schema.js +2 -2
  587. package/dist/session/sql.js +6 -87
  588. package/dist/session/stats.js +78 -94
  589. package/dist/session/store.js +79 -101
  590. package/dist/session/system-prompt.js +2 -2
  591. package/dist/session/title.js +319 -314
  592. package/dist/session/to-session-error.js +113 -117
  593. package/dist/session/transfer.js +162 -160
  594. package/dist/session/usage.js +2 -2
  595. package/dist/session.js +157 -157
  596. package/dist/shell/parse.js +7 -6
  597. package/dist/shell/parser-wasm.bun.js +1 -1
  598. package/dist/shell/parser-wasm.node.js +1 -1
  599. package/dist/shell/parser-wasm.workerd.js +1 -1
  600. package/dist/shell/scan.js +1 -1
  601. package/dist/shell/select.js +4 -4
  602. package/dist/shell.js +99 -99
  603. package/dist/skill/discovery.js +3 -3
  604. package/dist/skill/instructions.js +102 -108
  605. package/dist/skill.js +101 -107
  606. package/dist/snapshot.js +85 -85
  607. package/dist/state.js +2 -2
  608. package/dist/tool/html-markdown.js +2 -2
  609. package/dist/tool/http-body.js +2 -2
  610. package/dist/tool/mcp.js +126 -128
  611. package/dist/tool/plugin/edit.js +113 -116
  612. package/dist/tool/plugin/file-diff.js +2 -2
  613. package/dist/tool/plugin/glob.js +116 -118
  614. package/dist/tool/plugin/grep.js +116 -118
  615. package/dist/tool/plugin/patch.js +113 -116
  616. package/dist/tool/plugin/question.js +102 -108
  617. package/dist/tool/plugin/read.js +119 -121
  618. package/dist/tool/plugin/shell.js +190 -187
  619. package/dist/tool/plugin/skill.js +102 -108
  620. package/dist/tool/plugin/subagent.js +187 -184
  621. package/dist/tool/plugin/webfetch.js +103 -109
  622. package/dist/tool/plugin/websearch.js +105 -111
  623. package/dist/tool/plugin/write.js +113 -116
  624. package/dist/tool/read-filesystem.js +101 -98
  625. package/dist/tool/runtime.js +7 -3
  626. package/dist/tool-output.js +5 -5
  627. package/dist/tool.js +119 -121
  628. package/dist/types/config/file.d.ts +17 -0
  629. package/dist/types/config/plugin/mcp.d.ts +4 -4
  630. package/dist/types/config.d.ts +1 -9
  631. package/dist/types/filesystem/search.d.ts +1 -1
  632. package/dist/types/github-copilot/responses/openai-error.d.ts +1 -1
  633. package/dist/types/instance.d.ts +58 -0
  634. package/dist/types/instruction-discovery.d.ts +2 -0
  635. package/dist/types/location-mutation.d.ts +9 -5
  636. package/dist/types/location-service-map.d.ts +2 -2
  637. package/dist/types/location-services.d.ts +3 -48
  638. package/dist/types/location.d.ts +3 -1
  639. package/dist/types/mcp/client.d.ts +20 -20
  640. package/dist/types/mcp/index.d.ts +1 -1
  641. package/dist/types/mcp/instructions.d.ts +2 -2
  642. package/dist/types/mcp/oauth.d.ts +1 -1
  643. package/dist/types/mcp/stdio.d.ts +1 -1
  644. package/dist/types/model.d.ts +14 -2
  645. package/dist/types/persistent-pty/daemon.d.ts +108 -0
  646. package/dist/types/persistent-pty/index.d.ts +2 -1
  647. package/dist/types/plugin/command.d.ts +2 -2
  648. package/dist/types/plugin/host.d.ts +10 -6
  649. package/dist/types/plugin/instance.d.ts +27 -0
  650. package/dist/types/plugin/internal.d.ts +4 -4
  651. package/dist/types/plugin/mcp-codemode-exclusion.d.ts +1 -1
  652. package/dist/types/plugin/provider/azure.d.ts +3 -1
  653. package/dist/types/plugin/provider/configured.d.ts +5 -0
  654. package/dist/types/plugin/provider/sdk-factory.d.ts +3 -0
  655. package/dist/types/plugin/runtime.d.ts +7 -5
  656. package/dist/types/plugin/supervisor.d.ts +2 -1
  657. package/dist/types/project/markers.d.ts +3 -1
  658. package/dist/types/project.d.ts +3 -1
  659. package/dist/types/pty/pty.node.d.ts +2 -1
  660. package/dist/types/schema.d.ts +1 -1
  661. package/dist/types/session/info.d.ts +1 -1
  662. package/dist/types/session/message-updater.d.ts +11 -11
  663. package/dist/types/session/runner/publish-llm-event.d.ts +1 -183
  664. package/dist/types/session/runner/step.d.ts +124 -1
  665. package/dist/types/session/schema.d.ts +1 -0
  666. package/dist/types/session/sql.d.ts +3 -1
  667. package/dist/types/session/transfer.d.ts +1 -0
  668. package/dist/types/session/usage.d.ts +1 -1
  669. package/dist/types/session.d.ts +3 -2
  670. package/dist/types/tool/mcp.d.ts +2 -2
  671. package/dist/types/tool/plugin/edit.d.ts +2 -2
  672. package/dist/types/tool/plugin/glob.d.ts +2 -2
  673. package/dist/types/tool/plugin/grep.d.ts +2 -2
  674. package/dist/types/tool/plugin/patch.d.ts +2 -2
  675. package/dist/types/tool/plugin/question.d.ts +2 -2
  676. package/dist/types/tool/plugin/read.d.ts +2 -2
  677. package/dist/types/tool/plugin/shell.d.ts +2 -2
  678. package/dist/types/tool/plugin/skill.d.ts +2 -2
  679. package/dist/types/tool/plugin/subagent.d.ts +2 -2
  680. package/dist/types/tool/plugin/webfetch.d.ts +2 -2
  681. package/dist/types/tool/plugin/websearch.d.ts +2 -2
  682. package/dist/types/tool/plugin/write.d.ts +2 -2
  683. package/dist/types/tool/read-filesystem.d.ts +1 -0
  684. package/dist/types/tool/runtime.d.ts +2 -0
  685. package/dist/types/v1/config/migrate.d.ts +2 -2
  686. package/dist/types/workspace/driver.d.ts +2 -2
  687. package/dist/types/workspace.d.ts +2 -2
  688. package/dist/util/array.js +1 -1
  689. package/dist/util/error.js +2 -2
  690. package/dist/util/identifier.js +1 -1
  691. package/dist/util/iife.js +2 -2
  692. package/dist/util/lazy.js +2 -2
  693. package/dist/util/process-lock-ffi.bun.js +1 -1
  694. package/dist/util/process-lock-ffi.node.js +1 -1
  695. package/dist/util/process-lock-ffi.workerd.js +1 -1
  696. package/dist/util/process-lock.js +1 -1
  697. package/dist/util/slug.js +2 -2
  698. package/dist/util/token.js +2 -2
  699. package/dist/util/which.js +2 -2
  700. package/dist/util/wildcard.js +2 -2
  701. package/dist/v1/config/agent.js +4 -4
  702. package/dist/v1/config/attachment.js +3 -3
  703. package/dist/v1/config/command.js +2 -2
  704. package/dist/v1/config/config.js +15 -15
  705. package/dist/v1/config/error.js +3 -3
  706. package/dist/v1/config/formatter.js +2 -2
  707. package/dist/v1/config/layout.js +2 -2
  708. package/dist/v1/config/lsp.js +2 -2
  709. package/dist/v1/config/mcp.js +3 -3
  710. package/dist/v1/config/migrate.js +19 -19
  711. package/dist/v1/config/permission.js +2 -2
  712. package/dist/v1/config/plugin.js +2 -2
  713. package/dist/v1/config/provider-options.js +2 -2
  714. package/dist/v1/config/provider.js +3 -3
  715. package/dist/v1/config/server.js +3 -3
  716. package/dist/v1/config/skills.js +2 -2
  717. package/dist/v1/permission.js +43 -7
  718. package/dist/vcs/patch.js +2 -2
  719. package/dist/vcs.js +86 -86
  720. package/dist/websearch.js +73 -73
  721. package/dist/wellknown/plugin.js +73 -73
  722. package/dist/wellknown.js +72 -72
  723. package/dist/workspace/driver.js +2 -2
  724. package/dist/workspace/sql.js +2 -2
  725. package/dist/workspace.js +69 -69
  726. package/dist/worktree/directory.js +3 -3
  727. package/dist/worktree/git.js +7 -7
  728. package/dist/worktree/sql.js +6 -6
  729. package/dist/worktree.js +87 -87
  730. package/package.json +11 -11
  731. package/dist/chunks/tool-3q6gbwmd.js +0 -26
  732. package/dist/chunks/tool-8tv6syt7.js +0 -46
  733. package/dist/chunks/tool-c35fsjgg.js +0 -119
  734. package/dist/chunks/tool-nt13qee2.js +0 -231
  735. package/dist/chunks/tool-s8xxtbar.js +0 -300
  736. package/dist/chunks/tool-wd268jeg.js +0 -83
  737. package/dist/session/prompt-cache-diagnostics.js +0 -11
  738. package/dist/types/session/prompt-cache-diagnostics.d.ts +0 -29
  739. /package/dist/chunks/{tool-0cgt0xh2.js → persistent-pty-0cgt0xh2.js} +0 -0
  740. /package/dist/chunks/{tool-0f48qthw.js → persistent-pty-0f48qthw.js} +0 -0
  741. /package/dist/chunks/{tool-0zz82cjq.js → persistent-pty-0zz82cjq.js} +0 -0
  742. /package/dist/chunks/{tool-1fb7bmpf.js → persistent-pty-1fb7bmpf.js} +0 -0
  743. /package/dist/chunks/{tool-1wcz8fvj.js → persistent-pty-1wcz8fvj.js} +0 -0
  744. /package/dist/chunks/{tool-29n7vfk2.js → persistent-pty-29n7vfk2.js} +0 -0
  745. /package/dist/chunks/{tool-2qdx6zz3.js → persistent-pty-2qdx6zz3.js} +0 -0
  746. /package/dist/chunks/{tool-2xb0r1c6.js → persistent-pty-2xb0r1c6.js} +0 -0
  747. /package/dist/chunks/{tool-39ktntah.js → persistent-pty-39ktntah.js} +0 -0
  748. /package/dist/chunks/{tool-3g3rpp2x.js → persistent-pty-3g3rpp2x.js} +0 -0
  749. /package/dist/chunks/{tool-3w3ybtfd.js → persistent-pty-3w3ybtfd.js} +0 -0
  750. /package/dist/chunks/{tool-47ty4mvs.js → persistent-pty-47ty4mvs.js} +0 -0
  751. /package/dist/chunks/{tool-4b2tz2m9.js → persistent-pty-4b2tz2m9.js} +0 -0
  752. /package/dist/chunks/{tool-5a5ch9ts.js → persistent-pty-5a5ch9ts.js} +0 -0
  753. /package/dist/chunks/{tool-5va1yh78.js → persistent-pty-5va1yh78.js} +0 -0
  754. /package/dist/chunks/{tool-61ek4hj9.js → persistent-pty-61ek4hj9.js} +0 -0
  755. /package/dist/chunks/{tool-69qrqpw0.js → persistent-pty-69qrqpw0.js} +0 -0
  756. /package/dist/chunks/{tool-6zqxzw0a.js → persistent-pty-6zqxzw0a.js} +0 -0
  757. /package/dist/chunks/{tool-7n9qwqk4.js → persistent-pty-7n9qwqk4.js} +0 -0
  758. /package/dist/chunks/{tool-8nn8kqcn.js → persistent-pty-8nn8kqcn.js} +0 -0
  759. /package/dist/chunks/{tool-8rpfd2h6.js → persistent-pty-8rpfd2h6.js} +0 -0
  760. /package/dist/chunks/{tool-8sj3ajy5.js → persistent-pty-8sj3ajy5.js} +0 -0
  761. /package/dist/chunks/{tool-8w9tzfz1.js → persistent-pty-8w9tzfz1.js} +0 -0
  762. /package/dist/chunks/{tool-906y0b6d.js → persistent-pty-906y0b6d.js} +0 -0
  763. /package/dist/chunks/{tool-9dct5xhx.js → persistent-pty-9dct5xhx.js} +0 -0
  764. /package/dist/chunks/{tool-9sdtsapf.js → persistent-pty-9sdtsapf.js} +0 -0
  765. /package/dist/chunks/{tool-a02svayp.js → persistent-pty-a02svayp.js} +0 -0
  766. /package/dist/chunks/{tool-a83yvq99.js → persistent-pty-a83yvq99.js} +0 -0
  767. /package/dist/chunks/{tool-a9vdgkgd.js → persistent-pty-a9vdgkgd.js} +0 -0
  768. /package/dist/chunks/{tool-ayevdmef.js → persistent-pty-ayevdmef.js} +0 -0
  769. /package/dist/chunks/{tool-b02txbh8.js → persistent-pty-b02txbh8.js} +0 -0
  770. /package/dist/chunks/{tool-bbqs2y60.js → persistent-pty-bbqs2y60.js} +0 -0
  771. /package/dist/chunks/{tool-bjwj8hwv.js → persistent-pty-bjwj8hwv.js} +0 -0
  772. /package/dist/chunks/{tool-brsh5f65.js → persistent-pty-brsh5f65.js} +0 -0
  773. /package/dist/chunks/{tool-bxdhjb3y.js → persistent-pty-bxdhjb3y.js} +0 -0
  774. /package/dist/chunks/{tool-c77ad0vh.js → persistent-pty-c77ad0vh.js} +0 -0
  775. /package/dist/chunks/{tool-cm67rqy2.js → persistent-pty-cm67rqy2.js} +0 -0
  776. /package/dist/chunks/{tool-df3v2q6j.js → persistent-pty-df3v2q6j.js} +0 -0
  777. /package/dist/chunks/{tool-dhcq6c44.js → persistent-pty-dhcq6c44.js} +0 -0
  778. /package/dist/chunks/{tool-dht5baf0.js → persistent-pty-dht5baf0.js} +0 -0
  779. /package/dist/chunks/{tool-dkmkay92.js → persistent-pty-dkmkay92.js} +0 -0
  780. /package/dist/chunks/{tool-ehj9csmv.js → persistent-pty-ehj9csmv.js} +0 -0
  781. /package/dist/chunks/{tool-em6xpscd.js → persistent-pty-em6xpscd.js} +0 -0
  782. /package/dist/chunks/{tool-emmqknsm.js → persistent-pty-emmqknsm.js} +0 -0
  783. /package/dist/chunks/{tool-ezs3tagn.js → persistent-pty-ezs3tagn.js} +0 -0
  784. /package/dist/chunks/{tool-f14r7hfz.js → persistent-pty-f14r7hfz.js} +0 -0
  785. /package/dist/chunks/{tool-f4cp4g4a.js → persistent-pty-f4cp4g4a.js} +0 -0
  786. /package/dist/chunks/{tool-faypg4r1.js → persistent-pty-faypg4r1.js} +0 -0
  787. /package/dist/chunks/{tool-ttxf0gsy.js → persistent-pty-fg7fz4q3.js} +0 -0
  788. /package/dist/chunks/{tool-fgbfdq62.js → persistent-pty-fgbfdq62.js} +0 -0
  789. /package/dist/chunks/{tool-gd5xeqc2.js → persistent-pty-gd5xeqc2.js} +0 -0
  790. /package/dist/chunks/{tool-ghm4673n.js → persistent-pty-ghm4673n.js} +0 -0
  791. /package/dist/chunks/{tool-ghwjy7my.js → persistent-pty-ghwjy7my.js} +0 -0
  792. /package/dist/chunks/{tool-gy500k2r.js → persistent-pty-gy500k2r.js} +0 -0
  793. /package/dist/chunks/{tool-hzeg9cfr.js → persistent-pty-hzeg9cfr.js} +0 -0
  794. /package/dist/chunks/{tool-j07kk359.js → persistent-pty-j07kk359.js} +0 -0
  795. /package/dist/chunks/{tool-jqms80b0.js → persistent-pty-jqms80b0.js} +0 -0
  796. /package/dist/chunks/{tool-jve7t217.js → persistent-pty-jve7t217.js} +0 -0
  797. /package/dist/chunks/{tool-k3e42drn.js → persistent-pty-k3e42drn.js} +0 -0
  798. /package/dist/chunks/{tool-k8b45nas.js → persistent-pty-k8b45nas.js} +0 -0
  799. /package/dist/chunks/{tool-kpdbz7gn.js → persistent-pty-kpdbz7gn.js} +0 -0
  800. /package/dist/chunks/{tool-kxy11nzk.js → persistent-pty-kxy11nzk.js} +0 -0
  801. /package/dist/chunks/{tool-kyyqvx4s.js → persistent-pty-kyyqvx4s.js} +0 -0
  802. /package/dist/chunks/{tool-m8cbvarh.js → persistent-pty-m8cbvarh.js} +0 -0
  803. /package/dist/chunks/{tool-ma60vzgv.js → persistent-pty-ma60vzgv.js} +0 -0
  804. /package/dist/chunks/{tool-n3m50c2t.js → persistent-pty-n3m50c2t.js} +0 -0
  805. /package/dist/chunks/{tool-nkm1m8dz.js → persistent-pty-nkm1m8dz.js} +0 -0
  806. /package/dist/chunks/{tool-nsc0c3zb.js → persistent-pty-nsc0c3zb.js} +0 -0
  807. /package/dist/chunks/{tool-qaarhjrp.js → persistent-pty-qaarhjrp.js} +0 -0
  808. /package/dist/chunks/{tool-qc167nrn.js → persistent-pty-qc167nrn.js} +0 -0
  809. /package/dist/chunks/{tool-qp95y4jb.js → persistent-pty-qp95y4jb.js} +0 -0
  810. /package/dist/chunks/{tool-r8f4w671.js → persistent-pty-r8f4w671.js} +0 -0
  811. /package/dist/chunks/{tool-rdfev9jy.js → persistent-pty-rdfev9jy.js} +0 -0
  812. /package/dist/chunks/{tool-rvfvac9x.js → persistent-pty-rvfvac9x.js} +0 -0
  813. /package/dist/chunks/{tool-s7whb9gt.js → persistent-pty-s7whb9gt.js} +0 -0
  814. /package/dist/chunks/{tool-se76j685.js → persistent-pty-se76j685.js} +0 -0
  815. /package/dist/chunks/{tool-sem2g21k.js → persistent-pty-sem2g21k.js} +0 -0
  816. /package/dist/chunks/{tool-sp575ygv.js → persistent-pty-sp575ygv.js} +0 -0
  817. /package/dist/chunks/{tool-tmb1f636.js → persistent-pty-tmb1f636.js} +0 -0
  818. /package/dist/chunks/{tool-tvmhrvfj.js → persistent-pty-tvmhrvfj.js} +0 -0
  819. /package/dist/chunks/{tool-v2adqbbe.js → persistent-pty-v2adqbbe.js} +0 -0
  820. /package/dist/chunks/{tool-wj4sxzqa.js → persistent-pty-wj4sxzqa.js} +0 -0
  821. /package/dist/chunks/{tool-wwntjmk1.js → persistent-pty-wwntjmk1.js} +0 -0
  822. /package/dist/chunks/{tool-wyqjaaa5.js → persistent-pty-wyqjaaa5.js} +0 -0
  823. /package/dist/chunks/{tool-x4q807cx.js → persistent-pty-x4q807cx.js} +0 -0
  824. /package/dist/chunks/{tool-yrqrg4vp.js → persistent-pty-yrqrg4vp.js} +0 -0
  825. /package/dist/chunks/{tool-z47nswr2.js → persistent-pty-z47nswr2.js} +0 -0
  826. /package/dist/chunks/{tool-zsf8rs93.js → persistent-pty-zsf8rs93.js} +0 -0
@@ -1,30 +1,30 @@
1
1
  import {
2
2
  exports_store
3
- } from "./tool-53vhya9m.js";
3
+ } from "./persistent-pty-bk1nj3vy.js";
4
4
  import {
5
5
  exports_error
6
- } from "./tool-fb7nfzf2.js";
7
- import {
8
- exports_saved
9
- } from "./tool-2ppgn6ch.js";
6
+ } from "./persistent-pty-fb7nfzf2.js";
10
7
  import {
11
8
  exports_wildcard
12
- } from "./tool-y67x6rf6.js";
9
+ } from "./persistent-pty-y67x6rf6.js";
13
10
  import {
14
- exports_agent
15
- } from "./tool-kprre75d.js";
11
+ exports_saved
12
+ } from "./persistent-pty-7f6z5n6f.js";
16
13
  import {
17
14
  exports_hooks
18
- } from "./tool-v2wshkax.js";
15
+ } from "./persistent-pty-v2wshkax.js";
16
+ import {
17
+ exports_agent
18
+ } from "./persistent-pty-513bkrxw.js";
19
19
  import {
20
20
  exports_location
21
- } from "./tool-2y40pff2.js";
21
+ } from "./persistent-pty-d88p9jy9.js";
22
22
  import {
23
23
  exports_bus
24
- } from "./tool-8dndtydw.js";
24
+ } from "./persistent-pty-8dqs26x1.js";
25
25
  import {
26
26
  __export
27
- } from "./tool-rvfvac9x.js";
27
+ } from "./persistent-pty-rvfvac9x.js";
28
28
 
29
29
  // src/permission.ts
30
30
  var exports_permission = {};
@@ -159,7 +159,7 @@ var layer = Layer.effect(Service, Effect.gen(function* () {
159
159
  return { effect: "deny", rules };
160
160
  const all = [...rules, ...yield* savedRules()];
161
161
  const effects = input.resources.map((resource) => evaluate(input.action, resource, all).effect);
162
- const effect = effects.includes("deny") ? "deny" : effects.includes("ask") ? "ask" : "allow";
162
+ const effect = effects.includes("ask") ? "ask" : "allow";
163
163
  const event = yield* hooks.trigger("permission", "evaluate", {
164
164
  sessionID: input.sessionID,
165
165
  agent: input.agent,
@@ -1,22 +1,22 @@
1
1
  import {
2
2
  ID
3
- } from "./tool-tvmhrvfj.js";
3
+ } from "./persistent-pty-tvmhrvfj.js";
4
4
  import {
5
5
  lazy
6
- } from "./tool-8w9tzfz1.js";
6
+ } from "./persistent-pty-8w9tzfz1.js";
7
7
  import {
8
8
  exports_select
9
- } from "./tool-bbhffenw.js";
9
+ } from "./persistent-pty-bbhffenw.js";
10
10
  import {
11
11
  exports_location
12
- } from "./tool-2y40pff2.js";
12
+ } from "./persistent-pty-d88p9jy9.js";
13
13
  import {
14
14
  exports_bus
15
- } from "./tool-8dndtydw.js";
15
+ } from "./persistent-pty-8dqs26x1.js";
16
16
  import {
17
17
  __export,
18
18
  __require
19
- } from "./tool-rvfvac9x.js";
19
+ } from "./persistent-pty-rvfvac9x.js";
20
20
 
21
21
  // src/pty.ts
22
22
  var exports_pty = {};
@@ -1,15 +1,15 @@
1
1
  import {
2
- convertToOpenAIResponsesInput
3
- } from "./tool-kcacmy5c.js";
2
+ mapOpenAIResponseFinishReason
3
+ } from "./persistent-pty-m8cbvarh.js";
4
4
  import {
5
5
  prepareResponsesTools
6
- } from "./tool-p379w5v5.js";
6
+ } from "./persistent-pty-h7dqnnw7.js";
7
7
  import {
8
- mapOpenAIResponseFinishReason
9
- } from "./tool-m8cbvarh.js";
8
+ convertToOpenAIResponsesInput
9
+ } from "./persistent-pty-vac9eqd2.js";
10
10
  import {
11
11
  openaiFailedResponseHandler
12
- } from "./tool-r8f4w671.js";
12
+ } from "./persistent-pty-r8f4w671.js";
13
13
 
14
14
  // src/github-copilot/responses/openai-responses-language-model.ts
15
15
  import {
@@ -662,7 +662,6 @@ class OpenAIResponsesLanguageModel {
662
662
  if (isResponseOutputItemAddedChunk(value)) {
663
663
  if (value.item.type === "function_call") {
664
664
  ongoingToolCalls[value.output_index] = {
665
- toolName: value.item.name,
666
665
  toolCallId: value.item.call_id
667
666
  };
668
667
  controller.enqueue({
@@ -672,7 +671,6 @@ class OpenAIResponsesLanguageModel {
672
671
  });
673
672
  } else if (value.item.type === "web_search_call") {
674
673
  ongoingToolCalls[value.output_index] = {
675
- toolName: webSearchToolName ?? "web_search",
676
674
  toolCallId: value.item.id
677
675
  };
678
676
  controller.enqueue({
@@ -682,7 +680,6 @@ class OpenAIResponsesLanguageModel {
682
680
  });
683
681
  } else if (value.item.type === "computer_call") {
684
682
  ongoingToolCalls[value.output_index] = {
685
- toolName: "computer_use",
686
683
  toolCallId: value.item.id
687
684
  };
688
685
  controller.enqueue({
@@ -692,7 +689,6 @@ class OpenAIResponsesLanguageModel {
692
689
  });
693
690
  } else if (value.item.type === "code_interpreter_call") {
694
691
  ongoingToolCalls[value.output_index] = {
695
- toolName: "code_interpreter",
696
692
  toolCallId: value.item.id,
697
693
  codeInterpreter: {
698
694
  containerId: value.item.container_id
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  InvalidError
3
- } from "./tool-nr76rjj3.js";
3
+ } from "./persistent-pty-nr76rjj3.js";
4
4
  import {
5
5
  __export
6
- } from "./tool-rvfvac9x.js";
6
+ } from "./persistent-pty-rvfvac9x.js";
7
7
 
8
8
  // src/config/variable.ts
9
9
  var exports_variable = {};
@@ -1,15 +1,15 @@
1
- import {
2
- exports_form
3
- } from "./tool-b273vq4v.js";
4
1
  import {
5
2
  exports_websearch
6
- } from "./tool-re1rhra9.js";
3
+ } from "./persistent-pty-tg194hwa.js";
7
4
  import {
8
5
  exports_permission
9
- } from "./tool-6f8j85qb.js";
6
+ } from "./persistent-pty-ckw7ggwg.js";
7
+ import {
8
+ exports_form
9
+ } from "./persistent-pty-jm9yfqhv.js";
10
10
  import {
11
11
  __export
12
- } from "./tool-rvfvac9x.js";
12
+ } from "./persistent-pty-rvfvac9x.js";
13
13
 
14
14
  // src/tool/plugin/websearch.ts
15
15
  var exports_websearch2 = {};
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  ProjectTable
3
- } from "./tool-88jbfw8z.js";
3
+ } from "./persistent-pty-c8ya26sa.js";
4
4
  import {
5
5
  Timestamps
6
- } from "./tool-sem2g21k.js";
6
+ } from "./persistent-pty-sem2g21k.js";
7
7
 
8
8
  // src/permission/sql.ts
9
9
  import { sqliteTable, text, uniqueIndex } from "drizzle-orm/sqlite-core";
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  exports_project
3
- } from "./tool-gfdah46y.js";
3
+ } from "./persistent-pty-wr6wwww9.js";
4
4
  import {
5
5
  __export
6
- } from "./tool-rvfvac9x.js";
6
+ } from "./persistent-pty-rvfvac9x.js";
7
7
 
8
8
  // src/location.ts
9
9
  var exports_location = {};
@@ -23,9 +23,9 @@ import { makeLocationNode, tags } from "@opencode-ai/util/effect/app-node";
23
23
  class Service extends Context.Service()("@opencode/Location") {
24
24
  }
25
25
  var node = LayerNode.unbound(Service, tags.values.location);
26
- var layer = (ref) => Layer.effect(Service, Effect.gen(function* () {
26
+ var layer = (ref, options) => Layer.effect(Service, Effect.gen(function* () {
27
27
  const project = yield* exports_project.Service;
28
- const resolved = yield* project.resolve(ref.directory);
28
+ const resolved = yield* project.resolve(ref.directory, options);
29
29
  return Service.of({
30
30
  directory: ref.directory,
31
31
  workspaceID: ref.workspaceID,
@@ -34,9 +34,9 @@ var layer = (ref) => Layer.effect(Service, Effect.gen(function* () {
34
34
  vcsBackend: resolved.vcsBackend
35
35
  });
36
36
  }));
37
- var boundNode = (ref) => makeLocationNode({
37
+ var boundNode = (ref, options) => makeLocationNode({
38
38
  service: Service,
39
- layer: layer(ref),
39
+ layer: layer(ref, options),
40
40
  deps: [exports_project.node]
41
41
  });
42
42
 
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  __export
3
- } from "./tool-rvfvac9x.js";
3
+ } from "./persistent-pty-rvfvac9x.js";
4
4
 
5
5
  // src/mime.ts
6
6
  var exports_mime = {};
@@ -1,27 +1,30 @@
1
+ import {
2
+ exports_instance
3
+ } from "./persistent-pty-ep35cpen.js";
1
4
  import {
2
5
  exports_internal
3
- } from "./tool-5drxeftm.js";
6
+ } from "./persistent-pty-68wbtxd0.js";
4
7
  import {
5
8
  exports_source
6
- } from "./tool-c3ehh06a.js";
9
+ } from "./persistent-pty-m6kd9m0n.js";
7
10
  import {
8
11
  exports_plugin
9
- } from "./tool-d8ve01t0.js";
12
+ } from "./persistent-pty-76wzch5c.js";
10
13
  import {
11
14
  Service
12
- } from "./tool-s33fw6zm.js";
13
- import {
14
- exports_module
15
- } from "./tool-75h1hfe2.js";
15
+ } from "./persistent-pty-s33fw6zm.js";
16
16
  import {
17
17
  exports_sdk
18
- } from "./tool-02xgq42f.js";
18
+ } from "./persistent-pty-caycsp33.js";
19
+ import {
20
+ exports_module
21
+ } from "./persistent-pty-75h1hfe2.js";
19
22
  import {
20
23
  exports_bus
21
- } from "./tool-8dndtydw.js";
24
+ } from "./persistent-pty-8dqs26x1.js";
22
25
  import {
23
26
  __export
24
- } from "./tool-rvfvac9x.js";
27
+ } from "./persistent-pty-rvfvac9x.js";
25
28
 
26
29
  // src/plugin/supervisor.ts
27
30
  var exports_supervisor = {};
@@ -85,6 +88,7 @@ var resolve = Effect.fn("PluginSupervisor.resolve")(function* (pre, post, operat
85
88
  var layer = Layer.effect(Service, Effect.gen(function* () {
86
89
  const registry = yield* exports_plugin.Service;
87
90
  const sdk = yield* exports_sdk.Service;
91
+ const instance = yield* exports_instance.Service;
88
92
  const sources = yield* exports_source.Service;
89
93
  const bus = yield* exports_bus.Service;
90
94
  const ready = yield* Latch.make();
@@ -93,7 +97,8 @@ var layer = Layer.effect(Service, Effect.gen(function* () {
93
97
  const internal = yield* exports_internal.list();
94
98
  const pre = [
95
99
  ...internal.pre.map((plugin) => ({ ...plugin, version: "internal", source: { type: "builtin" } })),
96
- ...sdk.all()
100
+ ...sdk.all(),
101
+ ...instance.all()
97
102
  ];
98
103
  const post = internal.post.map((plugin) => ({
99
104
  ...plugin,
@@ -110,15 +115,16 @@ var layer = Layer.effect(Service, Effect.gen(function* () {
110
115
  return observed;
111
116
  })));
112
117
  yield* Stream.concat(Stream.succeed(0), updates).pipe(Stream.buffer({ capacity: 1, strategy: "sliding" }), Stream.debounce("100 millis"), Stream.runForEach((target) => Effect.gen(function* () {
113
- yield* activate();
118
+ yield* activate().pipe(Effect.catchCause((cause) => Effect.logError("failed to reload plugins", { cause })));
114
119
  if (observed === target)
115
120
  yield* ready.open;
116
- }).pipe(Effect.catchCause((cause) => Effect.logError("failed to reload plugins", { cause })))), Effect.forkScoped({ startImmediately: true }));
121
+ })), Effect.forkScoped({ startImmediately: true }));
117
122
  return Service.of({ flush: ready.await });
118
123
  }));
119
124
  var nodeDeps = [
120
125
  exports_plugin.node,
121
126
  exports_sdk.node,
127
+ exports_instance.node,
122
128
  exports_source.node,
123
129
  exports_bus.node,
124
130
  Npm.node,
@@ -1,39 +1,39 @@
1
1
  import {
2
2
  exports_runner
3
- } from "./tool-2m0hgr65.js";
3
+ } from "./persistent-pty-2m0hgr65.js";
4
4
  import {
5
5
  exports_run_coordinator
6
- } from "./tool-7khw64yh.js";
6
+ } from "./persistent-pty-7khw64yh.js";
7
7
  import {
8
8
  exports_inbox
9
- } from "./tool-se8395as.js";
9
+ } from "./persistent-pty-ayrkq19e.js";
10
10
  import {
11
11
  toSessionError
12
- } from "./tool-wcb745wb.js";
12
+ } from "./persistent-pty-1xq8v1tm.js";
13
13
  import {
14
14
  exports_job
15
- } from "./tool-376q6v3y.js";
15
+ } from "./persistent-pty-rz6kjcfr.js";
16
+ import {
17
+ exports_location_service_map
18
+ } from "./persistent-pty-zdkg1k91.js";
16
19
  import {
17
20
  exports_store
18
- } from "./tool-53vhya9m.js";
21
+ } from "./persistent-pty-bk1nj3vy.js";
19
22
  import {
20
23
  UserInterruptedError
21
- } from "./tool-fb7nfzf2.js";
22
- import {
23
- exports_location_service_map
24
- } from "./tool-zdkg1k91.js";
24
+ } from "./persistent-pty-fb7nfzf2.js";
25
25
  import {
26
26
  SessionEvent
27
- } from "./tool-a83yvq99.js";
27
+ } from "./persistent-pty-a83yvq99.js";
28
28
  import {
29
29
  exports_bus
30
- } from "./tool-8dndtydw.js";
30
+ } from "./persistent-pty-8dqs26x1.js";
31
31
  import {
32
32
  exports_database
33
- } from "./tool-merfm3fd.js";
33
+ } from "./persistent-pty-agy32ytt.js";
34
34
  import {
35
35
  __export
36
- } from "./tool-rvfvac9x.js";
36
+ } from "./persistent-pty-rvfvac9x.js";
37
37
 
38
38
  // src/session/execution.ts
39
39
  var exports_execution = {};
@@ -72,17 +72,16 @@ var layer = Layer.effect(Service, Effect.gen(function* () {
72
72
  const releaseOnCommit = (sessionID) => ({
73
73
  commit: () => store.release(sessionID)
74
74
  });
75
- function drain(sessionID, force, continuation, promotable = "input") {
76
- return Effect.gen(function* () {
77
- const session = yield* store.get(sessionID);
78
- if (!session)
79
- return yield* Effect.die(new Error(`Session not found: ${sessionID}`));
80
- const result = yield* exports_runner.Service.use((runner) => runner.drain({ sessionID, force, continuation, promotable })).pipe(Effect.provide(locations.get(session.location)), Effect.tapCause((cause) => Cause.hasInterruptsOnly(cause) ? Effect.void : Effect.logError("Failed to drain Session", cause).pipe(Effect.annotateLogs({ sessionID }))));
81
- if (result._tag === "Complete")
82
- return;
83
- return yield* drain(sessionID, false, result.continuation, promotable);
75
+ const drain = Effect.fnUntraced(function* (sessionID, force, continuation, promotable = "input") {
76
+ const session = yield* store.get(sessionID);
77
+ if (!session)
78
+ return yield* Effect.die(new Error(`Session not found: ${sessionID}`));
79
+ const result = yield* exports_runner.Service.use((runner) => runner.drain({ sessionID, force, continuation, promotable })).pipe(Effect.provide(locations.get(session.location)), Effect.tapCause((cause) => Cause.hasInterruptsOnly(cause) ? Effect.void : Effect.logError("Failed to drain Session", cause).pipe(Effect.annotateLogs({ sessionID }))));
80
+ return yield* exports_runner.DrainResult.$match(result, {
81
+ Complete: () => Effect.void,
82
+ Moved: (result2) => drain(sessionID, false, result2.continuation, promotable)
84
83
  });
85
- }
84
+ });
86
85
  const coordinator = yield* exports_run_coordinator.make({
87
86
  started: (sessionID) => reportLifecycle(sessionID, bus.publish(SessionEvent.Execution.Started, { sessionID }, claimOnCommit(sessionID))),
88
87
  drain: (sessionID, force, promotable) => drain(sessionID, force, undefined, promotable),
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  PositiveInt
3
- } from "./tool-j07kk359.js";
3
+ } from "./persistent-pty-j07kk359.js";
4
4
  import {
5
5
  __export
6
- } from "./tool-rvfvac9x.js";
6
+ } from "./persistent-pty-rvfvac9x.js";
7
7
 
8
8
  // src/v1/config/mcp.ts
9
9
  var exports_mcp = {};
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  __export
3
- } from "./tool-rvfvac9x.js";
3
+ } from "./persistent-pty-rvfvac9x.js";
4
4
 
5
5
  // src/instructions/index.ts
6
6
  var exports_instructions = {};
@@ -1,15 +1,15 @@
1
1
  import {
2
2
  exports_mcp
3
- } from "./tool-88d62dqj.js";
3
+ } from "./persistent-pty-vyrk4dbp.js";
4
4
  import {
5
5
  exports_location
6
- } from "./tool-2y40pff2.js";
6
+ } from "./persistent-pty-d88p9jy9.js";
7
7
  import {
8
8
  exports_bus
9
- } from "./tool-8dndtydw.js";
9
+ } from "./persistent-pty-8dqs26x1.js";
10
10
  import {
11
11
  __export
12
- } from "./tool-rvfvac9x.js";
12
+ } from "./persistent-pty-rvfvac9x.js";
13
13
 
14
14
  // src/plugin/command.ts
15
15
  var exports_command = {};
@@ -174,7 +174,7 @@ Use best judgement when processing input.
174
174
  Use these to inform your review:
175
175
 
176
176
  - **Explore agent** - Find how existing code handles similar problems. Check patterns, conventions, and prior art before claiming something doesn't fit.
177
- - **Exa Code Context** - Verify correct usage of libraries/APIs before flagging something as wrong.
177
+ - **Available documentation and code-search tools** - Verify correct usage of libraries/APIs before flagging something as wrong.
178
178
  - **Web Search** - Research best practices if you're unsure about a pattern.
179
179
 
180
180
  If you're uncertain about something and can't verify it with these tools, say "I'm not sure about X" rather than flagging it as a definite issue.
@@ -227,13 +227,11 @@ var Plugin = define({
227
227
  name: mcpCommandName(prompt.server, prompt.name),
228
228
  description: prompt.description,
229
229
  execute: (input) => Effect.gen(function* () {
230
+ const args = parseArguments(input.prompt.text);
230
231
  const result = yield* mcp.prompt({
231
232
  server: prompt.server,
232
233
  name: prompt.name,
233
- args: Object.fromEntries((prompt.arguments ?? []).map((argument, index) => [
234
- argument.name,
235
- parseArguments(input.prompt.text)[index] ?? ""
236
- ]))
234
+ args: Object.fromEntries((prompt.arguments ?? []).map((argument, index) => [argument.name, args[index] ?? ""]))
237
235
  });
238
236
  if (!result)
239
237
  return yield* Effect.fail(new Error(`MCP prompt not found: ${prompt.server}:${prompt.name}`));
@@ -1,15 +1,15 @@
1
1
  import {
2
2
  exports_repository
3
- } from "./tool-y198y2ra.js";
3
+ } from "./persistent-pty-y198y2ra.js";
4
4
  import {
5
5
  exports_git
6
- } from "./tool-kt491qp2.js";
6
+ } from "./persistent-pty-kt491qp2.js";
7
7
  import {
8
8
  AbsolutePath
9
- } from "./tool-j07kk359.js";
9
+ } from "./persistent-pty-j07kk359.js";
10
10
  import {
11
11
  __export
12
- } from "./tool-rvfvac9x.js";
12
+ } from "./persistent-pty-rvfvac9x.js";
13
13
 
14
14
  // src/repository-cache.ts
15
15
  var exports_repository_cache = {};
@@ -0,0 +1,187 @@
1
+ import {
2
+ exports_protected
3
+ } from "./persistent-pty-kg1345f7.js";
4
+ import {
5
+ exports_ripgrep
6
+ } from "./persistent-pty-p91cgptf.js";
7
+ import {
8
+ exports_location
9
+ } from "./persistent-pty-d88p9jy9.js";
10
+ import {
11
+ RelativePath
12
+ } from "./persistent-pty-j07kk359.js";
13
+ import {
14
+ __export
15
+ } from "./persistent-pty-rvfvac9x.js";
16
+
17
+ // src/filesystem/search.ts
18
+ var exports_search = {};
19
+ __export(exports_search, {
20
+ ripgrepLayer: () => ripgrepLayer,
21
+ node: () => node,
22
+ layer: () => layer,
23
+ fffLayer: () => fffLayer,
24
+ configured: () => configured,
25
+ Service: () => Service,
26
+ Options: () => Options,
27
+ FileSystemSearch: () => exports_search
28
+ });
29
+ import { makeLocationNode } from "@opencode-ai/util/effect/app-node";
30
+ import path from "path";
31
+ import { Clock, Context, Deferred, Duration, Effect, Layer, Schema, Scope } from "effect";
32
+ import { Fff } from "#fff";
33
+ import fuzzysort from "fuzzysort";
34
+ import { FileSystem } from "@opencode-ai/schema/filesystem";
35
+ var Options = Schema.Struct({
36
+ fff: Schema.optional(Schema.Boolean)
37
+ });
38
+
39
+ class Service extends Context.Service()("@opencode/FileSystem/Search") {
40
+ }
41
+ var REFRESH_INTERVAL = Duration.toMillis("10 seconds");
42
+ function emptyIndex() {
43
+ return { files: new Map, directories: new Map };
44
+ }
45
+ function search(index, input) {
46
+ const items = input.type === "file" ? Array.from(index.files.values()) : input.type === "directory" ? Array.from(index.directories.values()) : [...index.files.values(), ...index.directories.values()];
47
+ const result = fuzzysort.go(input.query, items, { limit: input.limit ?? 50 });
48
+ fuzzysort.cleanup();
49
+ return result.map((item) => {
50
+ const relative = item.target;
51
+ const type = relative.endsWith(path.sep) ? "directory" : "file";
52
+ return FileSystem.Entry.make({
53
+ path: RelativePath.make(relative),
54
+ type
55
+ });
56
+ });
57
+ }
58
+ var ripgrepLayer = Layer.effect(Service, Effect.gen(function* () {
59
+ const location = yield* exports_location.Service;
60
+ const ripgrep = yield* exports_ripgrep.Service;
61
+ const scope = yield* Scope.Scope;
62
+ const clock = yield* Clock.Clock;
63
+ const home = exports_protected.isHome(location.directory);
64
+ let index = emptyIndex();
65
+ let initialized = false;
66
+ let settledAt = Number.NEGATIVE_INFINITY;
67
+ let refreshing;
68
+ const scan = Effect.gen(function* () {
69
+ const next = emptyIndex();
70
+ const previous = index;
71
+ if (!initialized)
72
+ index = next;
73
+ yield* ripgrep.find({
74
+ cwd: location.directory,
75
+ pattern: "*",
76
+ limit: location.vcs && !home ? Number.MAX_SAFE_INTEGER : 1e5,
77
+ exclude: home ? [...exports_protected.names()].map((name) => `${name}/**`) : undefined,
78
+ onEntry: (entry) => Effect.sync(() => {
79
+ next.files.set(entry.path, previous.files.get(entry.path) ?? fuzzysort.prepare(entry.path));
80
+ const parts = entry.path.split("/");
81
+ parts.slice(0, -1).forEach((_, offset) => {
82
+ const directory = parts.slice(0, offset + 1).join("/") + path.sep;
83
+ if (!next.directories.has(directory))
84
+ next.directories.set(directory, previous.directories.get(directory) ?? fuzzysort.prepare(directory));
85
+ });
86
+ })
87
+ });
88
+ index = next;
89
+ initialized = true;
90
+ }).pipe(Effect.orDie);
91
+ const refresh = Effect.suspend(() => {
92
+ if (refreshing)
93
+ return initialized ? Effect.void : Deferred.await(refreshing);
94
+ if (initialized && clock.currentTimeMillisUnsafe() < settledAt + REFRESH_INTERVAL)
95
+ return Effect.void;
96
+ const attempt = Deferred.makeUnsafe();
97
+ refreshing = attempt;
98
+ return scan.pipe(Effect.onExit((exit) => Effect.sync(() => {
99
+ settledAt = clock.currentTimeMillisUnsafe();
100
+ if (refreshing === attempt)
101
+ refreshing = undefined;
102
+ Deferred.doneUnsafe(attempt, exit);
103
+ })), Effect.forkIn(scope), Effect.flatMap(() => initialized ? Effect.void : Deferred.await(attempt)));
104
+ });
105
+ return Service.of({
106
+ find: (input) => Effect.gen(function* () {
107
+ yield* refresh;
108
+ return search(index, input);
109
+ })
110
+ });
111
+ }));
112
+ var fffLayer = Layer.effect(Service, Effect.gen(function* () {
113
+ const location = yield* exports_location.Service;
114
+ const result = yield* Effect.try({
115
+ try: () => Fff.create({
116
+ basePath: location.directory,
117
+ aiMode: true,
118
+ disableMmapCache: true,
119
+ disableContentIndexing: true
120
+ }),
121
+ catch: (cause) => cause
122
+ }).pipe(Effect.catch((error) => Effect.logWarning("failed to initialize fff", { error }).pipe(Effect.as(undefined))));
123
+ if (!result?.ok) {
124
+ if (result)
125
+ yield* Effect.logWarning("failed to initialize fff", { error: result.error });
126
+ return Service.of({
127
+ find: () => Effect.succeed([])
128
+ });
129
+ }
130
+ yield* Effect.addFinalizer(() => Effect.sync(() => result.value.destroy()));
131
+ return Service.of({
132
+ find: (input) => Effect.sync(() => {
133
+ const options = { pageIndex: 0, pageSize: input.limit ?? 50 };
134
+ const items = (() => {
135
+ if (input.type === "file") {
136
+ const found2 = result.value.fileSearch(input.query.trim(), options);
137
+ if (!found2.ok)
138
+ throw found2.error;
139
+ return found2.value.items.map((item, index) => ({
140
+ path: item.relativePath,
141
+ type: "file",
142
+ score: found2.value.scores[index]?.total ?? 0
143
+ }));
144
+ }
145
+ if (input.type === "directory") {
146
+ const found2 = result.value.directorySearch(input.query.trim(), options);
147
+ if (!found2.ok)
148
+ throw found2.error;
149
+ return found2.value.items.map((item, index) => ({
150
+ path: item.relativePath,
151
+ type: "directory",
152
+ score: found2.value.scores[index]?.total ?? 0
153
+ }));
154
+ }
155
+ const found = result.value.mixedSearch(input.query.trim(), options);
156
+ if (!found.ok)
157
+ throw found.error;
158
+ return found.value.items.map((item, index) => ({
159
+ path: item.item.relativePath,
160
+ type: item.type,
161
+ score: found.value.scores[index]?.total ?? 0
162
+ }));
163
+ })();
164
+ return items.sort((a, b) => b.score - a.score || a.path.length - b.path.length).map((item) => {
165
+ const relative = item.path.replaceAll("\\", "/").replace(/\/$/, "");
166
+ return FileSystem.Entry.make({
167
+ path: RelativePath.make(relative + (item.type === "directory" ? path.sep : "")),
168
+ type: item.type
169
+ });
170
+ });
171
+ })
172
+ });
173
+ }));
174
+ var layer = (options) => Layer.unwrap(Effect.gen(function* () {
175
+ const location = yield* exports_location.Service;
176
+ if (location.workspaceID)
177
+ return ripgrepLayer;
178
+ if (options?.fff === false || options?.fff === undefined && process.platform === "win32" || !Fff.available())
179
+ return ripgrepLayer;
180
+ return location.vcs && !exports_protected.isHome(location.directory) ? fffLayer : ripgrepLayer;
181
+ }));
182
+ function configured(options) {
183
+ return makeLocationNode({ service: Service, layer: layer(options), deps: [exports_location.node, exports_ripgrep.node] });
184
+ }
185
+ var node = configured();
186
+
187
+ export { Options, Service, ripgrepLayer, fffLayer, layer, configured, node, exports_search };