@opencode-ai/core 0.0.0-dev-18996 → 0.0.0-dev-18997

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 (782) 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/{ripgrep-0ag03ecw.js → tool-0ag03ecw.js} +2 -2
  9. package/dist/chunks/{ripgrep-atjngknp.js → tool-0c8rkv63.js} +14 -14
  10. package/dist/chunks/{ripgrep-wf7qa8th.js → tool-0gghny7y.js} +32 -32
  11. package/dist/chunks/{ripgrep-0gpahtwn.js → tool-0gpahtwn.js} +2 -2
  12. package/dist/chunks/{ripgrep-tqxs68gv.js → tool-0nfjz3rr.js} +2 -2
  13. package/dist/chunks/{ripgrep-0pc4kdn1.js → tool-0pc4kdn1.js} +2 -2
  14. package/dist/chunks/{ripgrep-0rz7yd7x.js → tool-0rz7yd7x.js} +1 -1
  15. package/dist/chunks/{ripgrep-136c8mz3.js → tool-136c8mz3.js} +3 -3
  16. package/dist/chunks/{ripgrep-xfb3hekn.js → tool-1p2haxa4.js} +3 -3
  17. package/dist/chunks/{ripgrep-0k9nzm2b.js → tool-1ww32adf.js} +1 -1
  18. package/dist/chunks/{ripgrep-zeb4e4mh.js → tool-25fav9bx.js} +9 -9
  19. package/dist/chunks/{ripgrep-264e1nfp.js → tool-264e1nfp.js} +2 -2
  20. package/dist/chunks/{ripgrep-bpfy940g.js → tool-2f626ajh.js} +15 -15
  21. package/dist/chunks/{ripgrep-2qq12ds3.js → tool-2qq12ds3.js} +3 -3
  22. package/dist/chunks/{ripgrep-2sqw2jjm.js → tool-2sqw2jjm.js} +3 -3
  23. package/dist/chunks/tool-2xs53ass.js +60 -0
  24. package/dist/chunks/{ripgrep-326j4s6w.js → tool-326j4s6w.js} +2 -2
  25. package/dist/chunks/{ripgrep-efn363sp.js → tool-37azw53r.js} +6 -6
  26. package/dist/chunks/{ripgrep-3chx3ng6.js → tool-3chx3ng6.js} +1 -1
  27. package/dist/chunks/{ripgrep-3ebhgms6.js → tool-3ebhgms6.js} +3 -3
  28. package/dist/chunks/{ripgrep-3ep0k87g.js → tool-3ep0k87g.js} +3 -3
  29. package/dist/chunks/{ripgrep-e4rnwfqe.js → tool-3hvzrfwf.js} +12 -12
  30. package/dist/chunks/{ripgrep-4nrcq5vt.js → tool-3jp0syc9.js} +6 -6
  31. package/dist/chunks/{ripgrep-3mc1hhwa.js → tool-3mc1hhwa.js} +3 -3
  32. package/dist/chunks/{ripgrep-3tg0cqem.js → tool-3tg0cqem.js} +1 -1
  33. package/dist/chunks/{ripgrep-vhkhv7ha.js → tool-3wn72n86.js} +10 -10
  34. package/dist/chunks/{ripgrep-wwxjq9x9.js → tool-3yy738vv.js} +3 -3
  35. package/dist/chunks/{ripgrep-dyey9v3v.js → tool-40y7w7y5.js} +3 -3
  36. package/dist/chunks/{ripgrep-42zyazrq.js → tool-42zyazrq.js} +1 -1
  37. package/dist/chunks/{ripgrep-6jdfsyr2.js → tool-46jpz8tn.js} +3 -3
  38. package/dist/chunks/{ripgrep-wwrr5shm.js → tool-4c3h8rfq.js} +14 -14
  39. package/dist/chunks/{ripgrep-9drvf8c1.js → tool-4gw4mpvn.js} +10 -10
  40. package/dist/chunks/{ripgrep-xp2hc80t.js → tool-4r2v7xfb.js} +154 -154
  41. package/dist/chunks/{ripgrep-mb2awe6b.js → tool-4rf36tc3.js} +2 -2
  42. package/dist/chunks/{ripgrep-4v6g3p22.js → tool-4v6g3p22.js} +1 -1
  43. package/dist/chunks/{ripgrep-4w0ckvbq.js → tool-4w0ckvbq.js} +3 -3
  44. package/dist/chunks/{ripgrep-4813mzx7.js → tool-508x366r.js} +15 -15
  45. package/dist/chunks/{ripgrep-gwf84xen.js → tool-50cw7zvb.js} +7 -7
  46. package/dist/chunks/{ripgrep-51t2tyks.js → tool-51t2tyks.js} +1 -1
  47. package/dist/chunks/{ripgrep-53jxjgr1.js → tool-53jxjgr1.js} +2 -2
  48. package/dist/chunks/{ripgrep-5b6jrtgb.js → tool-5dcaydx4.js} +5 -5
  49. package/dist/chunks/{ripgrep-5vbk082d.js → tool-5vbk082d.js} +2 -2
  50. package/dist/chunks/{ripgrep-hx0tezfe.js → tool-5vm0jdj9.js} +3 -3
  51. package/dist/chunks/{ripgrep-5y5kqjze.js → tool-5y5kqjze.js} +1 -1
  52. package/dist/chunks/{ripgrep-zhgrncgb.js → tool-616gr0wx.js} +6 -6
  53. package/dist/chunks/{ripgrep-ahm1gs7p.js → tool-663y5b2v.js} +46 -46
  54. package/dist/chunks/{ripgrep-66mds5ht.js → tool-66mds5ht.js} +1 -1
  55. package/dist/chunks/{ripgrep-68yag814.js → tool-68yag814.js} +1 -1
  56. package/dist/chunks/{ripgrep-6a909wmz.js → tool-6a909wmz.js} +2 -2
  57. package/dist/chunks/{ripgrep-6bxzghb6.js → tool-6bxzghb6.js} +1 -1
  58. package/dist/chunks/{ripgrep-qcaarv0w.js → tool-6d38fja3.js} +3 -3
  59. package/dist/chunks/{ripgrep-6hppa3xw.js → tool-6hppa3xw.js} +2 -2
  60. package/dist/chunks/{ripgrep-rrkfeyc1.js → tool-6qjj0m4q.js} +2 -2
  61. package/dist/chunks/{ripgrep-6vbv4je1.js → tool-6vbv4je1.js} +2 -2
  62. package/dist/chunks/{ripgrep-6wsfy4sp.js → tool-6wsfy4sp.js} +2 -2
  63. package/dist/chunks/{ripgrep-x8am67v7.js → tool-6xm7tcj7.js} +5 -5
  64. package/dist/chunks/{ripgrep-qmrak919.js → tool-70ncp6c1.js} +2 -2
  65. package/dist/chunks/{ripgrep-fxrdvbnx.js → tool-73ax3jaa.js} +11 -11
  66. package/dist/chunks/{ripgrep-rv98m6px.js → tool-74jeqw11.js} +7 -7
  67. package/dist/chunks/{ripgrep-htbe5bs0.js → tool-77rwgypr.js} +3 -3
  68. package/dist/chunks/{ripgrep-4kq0p860.js → tool-7jh3zw7n.js} +9 -9
  69. package/dist/chunks/{ripgrep-7myqjfx6.js → tool-7myqjfx6.js} +1 -1
  70. package/dist/chunks/{ripgrep-yjwdjfj0.js → tool-7prkhz8c.js} +2 -2
  71. package/dist/chunks/{ripgrep-45m9a5g1.js → tool-818edp32.js} +3 -3
  72. package/dist/chunks/{ripgrep-89ttfx5q.js → tool-89ttfx5q.js} +2 -2
  73. package/dist/chunks/{ripgrep-8ezmrsyj.js → tool-8ezmrsyj.js} +2 -2
  74. package/dist/chunks/{ripgrep-8manx9kj.js → tool-8manx9kj.js} +2 -2
  75. package/dist/chunks/{ripgrep-8y5vxhk7.js → tool-8y5vxhk7.js} +1 -1
  76. package/dist/chunks/{ripgrep-41d795jd.js → tool-90rbcqcr.js} +3 -3
  77. package/dist/chunks/{ripgrep-sdqd1mry.js → tool-92633kvy.js} +14 -14
  78. package/dist/chunks/{ripgrep-176r80k9.js → tool-99fm67tp.js} +4 -4
  79. package/dist/chunks/{ripgrep-9dbv6hqn.js → tool-9dbv6hqn.js} +2 -2
  80. package/dist/chunks/{ripgrep-kq4y4q06.js → tool-9h62k39y.js} +8 -8
  81. package/dist/chunks/{ripgrep-b9trhhvr.js → tool-9nbt8589.js} +3 -3
  82. package/dist/chunks/{ripgrep-67sywna6.js → tool-9rs6v63p.js} +7 -7
  83. package/dist/chunks/{ripgrep-1vgf3wjd.js → tool-a4hjy20a.js} +2 -2
  84. package/dist/chunks/{ripgrep-a6xqkezx.js → tool-a6xqkezx.js} +1 -1
  85. package/dist/chunks/{ripgrep-8eq730r7.js → tool-a70nwf1w.js} +6 -6
  86. package/dist/chunks/{ripgrep-f2qsavyc.js → tool-ab67dm2x.js} +15 -15
  87. package/dist/chunks/{ripgrep-af42tqdk.js → tool-af42tqdk.js} +2 -2
  88. package/dist/chunks/{ripgrep-wsbjcg82.js → tool-apabp85x.js} +3 -3
  89. package/dist/chunks/{ripgrep-tahaaga8.js → tool-aq4dtsxs.js} +6 -6
  90. package/dist/chunks/{ripgrep-ax34jjm3.js → tool-ax34jjm3.js} +7 -7
  91. package/dist/chunks/{ripgrep-2fjxe68a.js → tool-b3sesy6f.js} +6 -6
  92. package/dist/chunks/{ripgrep-sccqa5z4.js → tool-badkz0rm.js} +4 -4
  93. package/dist/chunks/{ripgrep-frq6e54n.js → tool-bbk505sh.js} +3 -3
  94. package/dist/chunks/{ripgrep-bd2mvb8t.js → tool-bd2mvb8t.js} +2 -2
  95. package/dist/chunks/{ripgrep-bnha4c96.js → tool-bnha4c96.js} +1 -1
  96. package/dist/chunks/{ripgrep-rvnd2zv0.js → tool-brppcdrr.js} +17 -17
  97. package/dist/chunks/{ripgrep-d6j9mvbe.js → tool-bsrgnv1f.js} +20 -20
  98. package/dist/chunks/{ripgrep-c54e84vp.js → tool-c54e84vp.js} +1 -1
  99. package/dist/chunks/{ripgrep-c55cgmsp.js → tool-c55cgmsp.js} +2 -2
  100. package/dist/chunks/{ripgrep-jthx6vab.js → tool-c5hk7zmf.js} +3 -3
  101. package/dist/chunks/{ripgrep-c8ya26sa.js → tool-c8ya26sa.js} +2 -2
  102. package/dist/chunks/{ripgrep-9nm8b6kv.js → tool-ccarkha1.js} +8 -8
  103. package/dist/chunks/{ripgrep-ckcq38kt.js → tool-ckcq38kt.js} +2 -2
  104. package/dist/chunks/{ripgrep-m7fy7rpx.js → tool-cnynrzx4.js} +4 -4
  105. package/dist/chunks/{ripgrep-9rvxagkh.js → tool-czxbt01h.js} +12 -12
  106. package/dist/chunks/{ripgrep-vdd0vmdz.js → tool-d18jsb5c.js} +5 -5
  107. package/dist/chunks/{ripgrep-d4h7vwhh.js → tool-d4h7vwhh.js} +2 -2
  108. package/dist/chunks/{ripgrep-t3xqfdz2.js → tool-da9pshct.js} +4 -4
  109. package/dist/chunks/{ripgrep-yxp17607.js → tool-daxrepdy.js} +10 -10
  110. package/dist/chunks/{ripgrep-hzf0n5qk.js → tool-ddntx4xg.js} +8 -8
  111. package/dist/chunks/{ripgrep-dexm22yg.js → tool-dexm22yg.js} +1 -1
  112. package/dist/chunks/{ripgrep-8mwfkgaw.js → tool-dkxhp46v.js} +2 -2
  113. package/dist/chunks/{ripgrep-vcjhsp7r.js → tool-dpkgw5cr.js} +6 -6
  114. package/dist/chunks/{ripgrep-x5xqe005.js → tool-drthn2kr.js} +3 -3
  115. package/dist/chunks/{ripgrep-dtm6fkaa.js → tool-dtm6fkaa.js} +2 -2
  116. package/dist/chunks/{ripgrep-dyhtrhy2.js → tool-dyhtrhy2.js} +1 -1
  117. package/dist/chunks/{ripgrep-dyrfpcd0.js → tool-dyrfpcd0.js} +1 -1
  118. package/dist/chunks/{ripgrep-e0n16vwa.js → tool-e0n16vwa.js} +2 -2
  119. package/dist/chunks/{ripgrep-tja8j2y8.js → tool-e5vshg0r.js} +5 -5
  120. package/dist/chunks/{ripgrep-fespahpz.js → tool-e60f453f.js} +9 -9
  121. package/dist/chunks/{ripgrep-eb87q0yv.js → tool-eb87q0yv.js} +1 -1
  122. package/dist/chunks/{ripgrep-zp28t7yk.js → tool-ec64mz3c.js} +5 -5
  123. package/dist/chunks/{ripgrep-edxnhgvj.js → tool-edxnhgvj.js} +1 -1
  124. package/dist/chunks/{ripgrep-esv5q40e.js → tool-esv5q40e.js} +1 -1
  125. package/dist/chunks/{ripgrep-etbnsc4s.js → tool-etbnsc4s.js} +2 -2
  126. package/dist/chunks/{ripgrep-ew2f4d89.js → tool-ew2f4d89.js} +4 -4
  127. package/dist/chunks/{ripgrep-mxffryfq.js → tool-ewn5wgp5.js} +9 -9
  128. package/dist/chunks/{ripgrep-z3hrqy8a.js → tool-ez77pq1q.js} +6 -6
  129. package/dist/chunks/{ripgrep-f2nhxfjt.js → tool-f2nhxfjt.js} +2 -2
  130. package/dist/chunks/{ripgrep-qd0brsh5.js → tool-f4tf29yz.js} +6 -6
  131. package/dist/chunks/{ripgrep-f8wvq04h.js → tool-f8wvq04h.js} +1 -1
  132. package/dist/chunks/{ripgrep-nfapca2z.js → tool-f9pzv4b8.js} +6 -6
  133. package/dist/chunks/{ripgrep-sm0e6bhy.js → tool-fcf17szs.js} +9 -9
  134. package/dist/chunks/{ripgrep-7a8bc6ht.js → tool-fmnxesf9.js} +3 -3
  135. package/dist/chunks/{ripgrep-9t1038ec.js → tool-fptaf3g7.js} +4 -4
  136. package/dist/chunks/{ripgrep-fqehnn9p.js → tool-fqehnn9p.js} +2 -2
  137. package/dist/chunks/{ripgrep-dv0zj7fk.js → tool-fsf5ya72.js} +15 -15
  138. package/dist/chunks/{ripgrep-c3g5fj2q.js → tool-g3t8m43p.js} +4 -4
  139. package/dist/chunks/{ripgrep-g9dd0fv6.js → tool-g9dd0fv6.js} +2 -2
  140. package/dist/chunks/{ripgrep-gb1z7yet.js → tool-gb1z7yet.js} +2 -2
  141. package/dist/chunks/{ripgrep-gc513wew.js → tool-gc513wew.js} +2 -2
  142. package/dist/chunks/{ripgrep-grfz4hhj.js → tool-grfz4hhj.js} +1 -1
  143. package/dist/chunks/{ripgrep-10qptxgd.js → tool-gt0macb5.js} +7 -7
  144. package/dist/chunks/{ripgrep-tszp4ekj.js → tool-gvkb6rm5.js} +8 -8
  145. package/dist/chunks/{ripgrep-h01zxzks.js → tool-h01zxzks.js} +4 -4
  146. package/dist/chunks/{ripgrep-9dj5pd8q.js → tool-h27g7z9n.js} +6 -6
  147. package/dist/chunks/{ripgrep-zqyywcy3.js → tool-h33qqm2d.js} +6 -6
  148. package/dist/chunks/{ripgrep-2333dmwb.js → tool-h5s94ycx.js} +5 -5
  149. package/dist/chunks/{ripgrep-1v0hf2gy.js → tool-h658vgf0.js} +2 -2
  150. package/dist/chunks/{ripgrep-6r7rsav3.js → tool-hcgt9g2n.js} +7 -7
  151. package/dist/chunks/{ripgrep-hgr9y616.js → tool-hgr9y616.js} +1 -1
  152. package/dist/chunks/{ripgrep-hpkeh7wf.js → tool-hpkeh7wf.js} +1 -1
  153. package/dist/chunks/{ripgrep-hs51b0fc.js → tool-hs51b0fc.js} +1 -1
  154. package/dist/chunks/{ripgrep-htmhxvv7.js → tool-htmhxvv7.js} +1 -1
  155. package/dist/chunks/{ripgrep-hvydqsq5.js → tool-hvydqsq5.js} +2 -2
  156. package/dist/chunks/{ripgrep-7ezxv4af.js → tool-hx02dr4w.js} +8 -8
  157. package/dist/chunks/{ripgrep-hy5n5jcn.js → tool-hy5n5jcn.js} +1 -1
  158. package/dist/chunks/{ripgrep-hzag9ake.js → tool-hzag9ake.js} +1 -1
  159. package/dist/chunks/{ripgrep-hzwx8p6y.js → tool-hzwx8p6y.js} +1 -1
  160. package/dist/chunks/{ripgrep-j0feex7e.js → tool-j0feex7e.js} +1 -1
  161. package/dist/chunks/{ripgrep-ybsjjmsq.js → tool-j0kyxvzn.js} +5 -5
  162. package/dist/chunks/{ripgrep-sbkc0v7s.js → tool-j0xxj63r.js} +3 -3
  163. package/dist/chunks/{ripgrep-mje6sx4a.js → tool-j6t4k458.js} +3 -3
  164. package/dist/chunks/{ripgrep-jar52fmb.js → tool-jar52fmb.js} +3 -3
  165. package/dist/chunks/{ripgrep-2bewv4ey.js → tool-jm9phj6a.js} +4 -4
  166. package/dist/chunks/{ripgrep-jqhp3fpz.js → tool-jqhp3fpz.js} +2 -2
  167. package/dist/chunks/{ripgrep-jr5m26np.js → tool-jr5m26np.js} +2 -2
  168. package/dist/chunks/{ripgrep-dce1bfc5.js → tool-jtb3ap05.js} +3 -3
  169. package/dist/chunks/{ripgrep-m6z66k75.js → tool-jtf0askg.js} +12 -12
  170. package/dist/chunks/{ripgrep-aav32bqa.js → tool-k25tjeqa.js} +6 -6
  171. package/dist/chunks/{ripgrep-1605kbke.js → tool-k3vrnyvn.js} +10 -10
  172. package/dist/chunks/{ripgrep-sambg1c9.js → tool-k40cej42.js} +48 -82
  173. package/dist/chunks/{ripgrep-k7hkdbw5.js → tool-k7hkdbw5.js} +2 -2
  174. package/dist/chunks/{ripgrep-kq3q54gz.js → tool-kq3q54gz.js} +1 -1
  175. package/dist/chunks/{ripgrep-kr9vgar1.js → tool-kr9vgar1.js} +1 -1
  176. package/dist/chunks/{ripgrep-m3k5wttq.js → tool-m3k5wttq.js} +4 -4
  177. package/dist/chunks/{ripgrep-m6a7zjhr.js → tool-m6a7zjhr.js} +1 -1
  178. package/dist/chunks/{ripgrep-y6e40hgk.js → tool-m6vttwnx.js} +3 -3
  179. package/dist/chunks/{ripgrep-m7jtgrng.js → tool-m7jtgrng.js} +2 -2
  180. package/dist/chunks/{ripgrep-c04gxx5z.js → tool-mcw6znb6.js} +13 -13
  181. package/dist/chunks/{ripgrep-5e8ys0c7.js → tool-mdxpzq8y.js} +5 -5
  182. package/dist/chunks/{ripgrep-7ek5ab74.js → tool-me4w3m8w.js} +9 -9
  183. package/dist/chunks/{ripgrep-mf0hyk7z.js → tool-mf0hyk7z.js} +1 -1
  184. package/dist/chunks/{ripgrep-mnyszbxc.js → tool-mnyszbxc.js} +1 -1
  185. package/dist/chunks/{ripgrep-wp8tr8ms.js → tool-mrpetabh.js} +3 -3
  186. package/dist/chunks/{ripgrep-ps9q8yy6.js → tool-mthy27mn.js} +15 -15
  187. package/dist/chunks/{ripgrep-mv81kt5z.js → tool-mv81kt5z.js} +2 -2
  188. package/dist/chunks/{ripgrep-my53s247.js → tool-my53s247.js} +1 -1
  189. package/dist/chunks/{ripgrep-ngzr6ypz.js → tool-ngzr6ypz.js} +2 -2
  190. package/dist/chunks/{ripgrep-nj6yqve1.js → tool-nj6yqve1.js} +2 -2
  191. package/dist/chunks/{ripgrep-nn16cgj7.js → tool-nn16cgj7.js} +1 -1
  192. package/dist/chunks/{ripgrep-wkkdha61.js → tool-np34kqfp.js} +4 -4
  193. package/dist/chunks/{ripgrep-ntev5d3k.js → tool-ntev5d3k.js} +3 -3
  194. package/dist/chunks/{ripgrep-823mpfpr.js → tool-nwh26h91.js} +10 -10
  195. package/dist/chunks/{ripgrep-0ctqd7et.js → tool-nxapxav8.js} +89 -89
  196. package/dist/chunks/{ripgrep-nz4de5b9.js → tool-nz4de5b9.js} +2 -2
  197. package/dist/chunks/{ripgrep-6xrrragk.js → tool-nznb1f3s.js} +2 -2
  198. package/dist/chunks/{ripgrep-p1m5qwvv.js → tool-p1m5qwvv.js} +1 -1
  199. package/dist/chunks/{ripgrep-p5gyct0y.js → tool-p5gyct0y.js} +1 -1
  200. package/dist/chunks/{ripgrep-g7t4cvrk.js → tool-pa6hb770.js} +4 -4
  201. package/dist/chunks/{ripgrep-dx5fmh73.js → tool-pe87s3se.js} +4 -4
  202. package/dist/chunks/{ripgrep-pk53j7qk.js → tool-pk53j7qk.js} +2 -2
  203. package/dist/chunks/{ripgrep-qtt1f7yf.js → tool-ptbm9ajw.js} +3 -3
  204. package/dist/chunks/{ripgrep-pves38xm.js → tool-pves38xm.js} +2 -2
  205. package/dist/chunks/{ripgrep-w21dct3k.js → tool-pwpvykev.js} +2 -2
  206. package/dist/chunks/{ripgrep-rceqa8d3.js → tool-px5fy12z.js} +7 -7
  207. package/dist/chunks/{ripgrep-r233xqmw.js → tool-pyz6rhr3.js} +5 -5
  208. package/dist/chunks/{ripgrep-0cq705ny.js → tool-q336c04d.js} +4 -4
  209. package/dist/chunks/{ripgrep-q606pcse.js → tool-q606pcse.js} +3 -3
  210. package/dist/chunks/{ripgrep-7t97kqrb.js → tool-qer0405w.js} +13 -13
  211. package/dist/chunks/{ripgrep-qf52r0wh.js → tool-qf52r0wh.js} +1 -1
  212. package/dist/chunks/{ripgrep-qfvp8zq7.js → tool-qfvp8zq7.js} +1 -1
  213. package/dist/chunks/{ripgrep-r9by2sg5.js → tool-qjpvd1qs.js} +6 -6
  214. package/dist/chunks/{ripgrep-3h1nn0sm.js → tool-qp5964mq.js} +2 -2
  215. package/dist/chunks/{ripgrep-04mr1kbv.js → tool-qpgxn38t.js} +5 -5
  216. package/dist/chunks/{ripgrep-qpxzqy01.js → tool-qpxzqy01.js} +1 -1
  217. package/dist/chunks/{ripgrep-qz5gwjr7.js → tool-qz5gwjr7.js} +3 -3
  218. package/dist/chunks/{ripgrep-r7a2r1m6.js → tool-r7a2r1m6.js} +2 -2
  219. package/dist/chunks/{ripgrep-r7z6wjth.js → tool-r7z6wjth.js} +1 -1
  220. package/dist/chunks/{ripgrep-efmaen3j.js → tool-r8wd8cb4.js} +3 -3
  221. package/dist/chunks/{ripgrep-r9d3d23r.js → tool-r9d3d23r.js} +1 -1
  222. package/dist/chunks/{ripgrep-rahat93a.js → tool-rahat93a.js} +1 -1
  223. package/dist/chunks/{ripgrep-y22ty55w.js → tool-rdngsam9.js} +7 -7
  224. package/dist/chunks/{ripgrep-d3aavq7p.js → tool-rj2hrzkv.js} +6 -6
  225. package/dist/chunks/{ripgrep-rr7wbarq.js → tool-rr7wbarq.js} +1 -1
  226. package/dist/chunks/{ripgrep-xrg02cqv.js → tool-rrd4ayzv.js} +6 -6
  227. package/dist/chunks/{ripgrep-mjnk038r.js → tool-rtxdyk4f.js} +5 -5
  228. package/dist/chunks/{ripgrep-2ax5kna0.js → tool-rtyam51d.js} +90 -90
  229. package/dist/chunks/{ripgrep-d3pb9ng0.js → tool-rwmdkmy6.js} +31 -31
  230. package/dist/chunks/{ripgrep-zz1t6cbp.js → tool-s0yna8ad.js} +3 -3
  231. package/dist/chunks/{ripgrep-s32nnj3r.js → tool-s32nnj3r.js} +1 -1
  232. package/dist/chunks/{ripgrep-1xp8c85c.js → tool-s4z3e42m.js} +8 -8
  233. package/dist/chunks/{ripgrep-h5svndmb.js → tool-sr8qhg83.js} +4 -4
  234. package/dist/chunks/{ripgrep-n11y4gaa.js → tool-sres5v6v.js} +5 -5
  235. package/dist/chunks/{ripgrep-jqfxjn4p.js → tool-szxt6w20.js} +4 -4
  236. package/dist/chunks/{ripgrep-ep55bdjp.js → tool-t4td4sde.js} +6 -6
  237. package/dist/chunks/{ripgrep-rwbt5kzd.js → tool-t8qsdtcd.js} +6 -6
  238. package/dist/chunks/tool-t9t544b9.js +38 -0
  239. package/dist/chunks/{ripgrep-wzvrbapk.js → tool-tajp0x9e.js} +24 -24
  240. package/dist/chunks/{ripgrep-1591vnw2.js → tool-trh83sx0.js} +11 -11
  241. package/dist/chunks/{ripgrep-yeh7g5xv.js → tool-v1fq06zy.js} +10 -10
  242. package/dist/chunks/{ripgrep-ge9z9saj.js → tool-v5wnykcn.js} +53 -53
  243. package/dist/chunks/{ripgrep-aqq7me5d.js → tool-v9qxqszp.js} +35 -27
  244. package/dist/chunks/{ripgrep-h7beqx7k.js → tool-v9rtp9t2.js} +4 -4
  245. package/dist/chunks/{ripgrep-vcwr2vpf.js → tool-vcwr2vpf.js} +1 -1
  246. package/dist/chunks/{ripgrep-q6p39g4j.js → tool-vd4vcx3n.js} +4 -4
  247. package/dist/chunks/{ripgrep-w8p7mghm.js → tool-vdcxn2x1.js} +61 -61
  248. package/dist/chunks/{ripgrep-rn1msgkv.js → tool-vg7fmanw.js} +9 -9
  249. package/dist/chunks/{ripgrep-hsx0srpf.js → tool-vpmnhrx5.js} +5 -5
  250. package/dist/chunks/{ripgrep-vynk8zbr.js → tool-vynk8zbr.js} +1 -1
  251. package/dist/chunks/{ripgrep-zpd0pxmk.js → tool-vywzpx0v.js} +10 -10
  252. package/dist/chunks/{ripgrep-zmtc2baj.js → tool-w3kfyrcx.js} +7 -7
  253. package/dist/chunks/{ripgrep-2eecv6wa.js → tool-w4fj57b9.js} +5 -5
  254. package/dist/chunks/{ripgrep-w5r9s7kx.js → tool-w5r9s7kx.js} +1 -1
  255. package/dist/chunks/{ripgrep-wbkt8qpj.js → tool-wbkt8qpj.js} +1 -1
  256. package/dist/chunks/{ripgrep-aby2dfns.js → tool-wd6r93kv.js} +7 -7
  257. package/dist/chunks/{ripgrep-wdqva41w.js → tool-wdqva41w.js} +1 -1
  258. package/dist/chunks/{ripgrep-wf5w4wph.js → tool-wf5w4wph.js} +1 -1
  259. package/dist/chunks/{ripgrep-wmxdh12w.js → tool-wmxdh12w.js} +1 -1
  260. package/dist/chunks/{ripgrep-qgz5v5bm.js → tool-wwwzeg61.js} +4 -4
  261. package/dist/chunks/{ripgrep-x3vb5b1t.js → tool-x3vb5b1t.js} +1 -1
  262. package/dist/chunks/{ripgrep-x4az4y7r.js → tool-x4az4y7r.js} +1 -1
  263. package/dist/chunks/{ripgrep-xdb88cdw.js → tool-xdb88cdw.js} +2 -2
  264. package/dist/chunks/{ripgrep-xe02v0q7.js → tool-xe02v0q7.js} +2 -2
  265. package/dist/chunks/{ripgrep-fa3txzxh.js → tool-xfj0mmd5.js} +8 -8
  266. package/dist/chunks/{ripgrep-nbjh3vz7.js → tool-xrvqwh20.js} +5 -5
  267. package/dist/chunks/{ripgrep-veda7ekx.js → tool-xtbbxnjj.js} +12 -12
  268. package/dist/chunks/{ripgrep-xws7arpm.js → tool-xws7arpm.js} +1 -1
  269. package/dist/chunks/{ripgrep-y515mbwq.js → tool-yx3tv32e.js} +7 -7
  270. package/dist/chunks/{ripgrep-w440ffk4.js → tool-z5tgxg9q.js} +18 -18
  271. package/dist/chunks/{ripgrep-9s8k2xje.js → tool-z68w9j5j.js} +10 -10
  272. package/dist/chunks/{ripgrep-z8c1ty6e.js → tool-z8c1ty6e.js} +1 -1
  273. package/dist/chunks/{ripgrep-5s33ctyn.js → tool-z9anvdnc.js} +4 -4
  274. package/dist/chunks/{ripgrep-zbqqnp0n.js → tool-zbqqnp0n.js} +1 -1
  275. package/dist/chunks/{ripgrep-zr1qjpg2.js → tool-zm8cj3b6.js} +9 -9
  276. package/dist/chunks/{ripgrep-zmbmd7xf.js → tool-zmbmd7xf.js} +2 -2
  277. package/dist/chunks/{ripgrep-zn935gjz.js → tool-zn935gjz.js} +1 -1
  278. package/dist/chunks/{ripgrep-zseh86v1.js → tool-zseh86v1.js} +2 -2
  279. package/dist/chunks/{ripgrep-zyyhrfr9.js → tool-zyyhrfr9.js} +1 -1
  280. package/dist/codemode/catalog.js +2 -2
  281. package/dist/codemode/instructions.js +4 -4
  282. package/dist/codemode/tool.js +4 -4
  283. package/dist/command.js +70 -70
  284. package/dist/config/discovery.js +88 -0
  285. package/dist/config/markdown.js +2 -2
  286. package/dist/config/normalize.js +20 -20
  287. package/dist/config/plugin/agent.js +129 -127
  288. package/dist/config/plugin/command.js +115 -113
  289. package/dist/config/plugin/compaction.js +168 -166
  290. package/dist/config/plugin/entry-observer.js +111 -109
  291. package/dist/config/plugin/formatter.js +116 -114
  292. package/dist/config/plugin/image.js +128 -126
  293. package/dist/config/plugin/instruction.js +85 -85
  294. package/dist/config/plugin/location-watcher.js +114 -112
  295. package/dist/config/plugin/mcp.js +124 -122
  296. package/dist/config/plugin/policy.js +113 -111
  297. package/dist/config/plugin/provider.js +112 -110
  298. package/dist/config/plugin/reference.js +116 -114
  299. package/dist/config/plugin/shell.js +115 -113
  300. package/dist/config/plugin/skill-file.js +98 -98
  301. package/dist/config/plugin/skill.js +132 -130
  302. package/dist/config/plugin/snapshot.js +114 -112
  303. package/dist/config/plugin/source.js +112 -110
  304. package/dist/config/plugin/tool-output.js +116 -114
  305. package/dist/config/plugin/websearch.js +112 -110
  306. package/dist/config/variable.js +4 -4
  307. package/dist/config/watch.js +9 -0
  308. package/dist/config.js +110 -108
  309. package/dist/credential/sql.js +3 -3
  310. package/dist/credential.js +71 -71
  311. package/dist/database/database.js +65 -65
  312. package/dist/database/drizzle/effect-sqlite/driver.js +13 -13
  313. package/dist/database/drizzle/effect-sqlite/index.js +13 -13
  314. package/dist/database/drizzle/effect-sqlite/session.js +12 -12
  315. package/dist/database/drizzle/index.js +14 -14
  316. package/dist/database/drizzle/internal/drizzle-utils.js +2 -2
  317. package/dist/database/drizzle/sqlite-core/effect/count.js +2 -2
  318. package/dist/database/drizzle/sqlite-core/effect/db.js +10 -10
  319. package/dist/database/drizzle/sqlite-core/effect/delete.js +3 -3
  320. package/dist/database/drizzle/sqlite-core/effect/index.js +21 -21
  321. package/dist/database/drizzle/sqlite-core/effect/insert.js +3 -3
  322. package/dist/database/drizzle/sqlite-core/effect/query.js +2 -2
  323. package/dist/database/drizzle/sqlite-core/effect/raw.js +2 -2
  324. package/dist/database/drizzle/sqlite-core/effect/select.js +3 -3
  325. package/dist/database/drizzle/sqlite-core/effect/session.js +11 -11
  326. package/dist/database/drizzle/sqlite-core/effect/update.js +3 -3
  327. package/dist/database/drizzle.js +15 -15
  328. package/dist/database/migration/20260127222353_familiar_lady_ursula.js +2 -2
  329. package/dist/database/migration/20260211171708_add_project_commands.js +2 -2
  330. package/dist/database/migration/20260213144116_wakeful_the_professor.js +2 -2
  331. package/dist/database/migration/20260225215848_workspace.js +2 -2
  332. package/dist/database/migration/20260227213759_add_session_workspace_id.js +2 -2
  333. package/dist/database/migration/20260228203230_blue_harpoon.js +2 -2
  334. package/dist/database/migration/20260303231226_add_workspace_fields.js +2 -2
  335. package/dist/database/migration/20260309230000_move_org_to_state.js +2 -2
  336. package/dist/database/migration/20260312043431_session_message_cursor.js +2 -2
  337. package/dist/database/migration/20260323234822_events.js +2 -2
  338. package/dist/database/migration/20260410174513_workspace-name.js +2 -2
  339. package/dist/database/migration/20260413175956_chief_energizer.js +2 -2
  340. package/dist/database/migration/20260423070820_add_icon_url_override.js +2 -2
  341. package/dist/database/migration/20260427172553_slow_nightmare.js +2 -2
  342. package/dist/database/migration/20260428004200_add_session_path.js +2 -2
  343. package/dist/database/migration/20260501142318_next_venus.js +2 -2
  344. package/dist/database/migration/20260504145000_add_sync_owner.js +2 -2
  345. package/dist/database/migration/20260507164347_add_workspace_time.js +2 -2
  346. package/dist/database/migration/20260510033149_session_usage.js +2 -2
  347. package/dist/database/migration/20260511000411_data_migration_state.js +2 -2
  348. package/dist/database/migration/20260511173437_session-metadata.js +2 -2
  349. package/dist/database/migration/20260601010001_normalize_storage_paths.js +2 -2
  350. package/dist/database/migration/20260601202201_amazing_prowler.js +2 -2
  351. package/dist/database/migration/20260602002951_lowly_union_jack.js +2 -2
  352. package/dist/database/migration/20260602182828_add_project_directories.js +2 -2
  353. package/dist/database/migration/20260603001617_session_message_projection_indexes.js +2 -2
  354. package/dist/database/migration/20260603040000_session_message_projection_order.js +2 -2
  355. package/dist/database/migration/20260603141458_session_input_inbox.js +2 -2
  356. package/dist/database/migration/20260603160727_jittery_ezekiel_stane.js +2 -2
  357. package/dist/database/migration/20260604172448_event_sourced_session_input.js +2 -2
  358. package/dist/database/migration/20260605003541_add_session_context_snapshot.js +2 -2
  359. package/dist/database/migration/20260605042240_add_context_epoch_agent.js +2 -2
  360. package/dist/database/migration/20260611035744_credential.js +2 -2
  361. package/dist/database/migration/20260611192811_lush_chimera.js +2 -2
  362. package/dist/database/migration/20260612174303_project_dir_strategy.js +2 -2
  363. package/dist/database/migration/20260622142730_simplify_session_context_epoch.js +2 -2
  364. package/dist/database/migration/20260622170816_reset_v2_session_state.js +2 -2
  365. package/dist/database/migration/20260622202450_simplify_session_input.js +2 -2
  366. package/dist/database/migration/20260804233008_loose_psylocke.js +2 -2
  367. package/dist/database/migration/20260805200742_import_legacy_credentials.js +2 -2
  368. package/dist/database/migration/20260808023530_workspace_domain.js +2 -2
  369. package/dist/database/migration/20260811161259_execution_claim_attempts.js +2 -2
  370. package/dist/database/migration/20260812181746_session_inbox.js +2 -2
  371. package/dist/database/migration/20260812213948_worktree.js +2 -2
  372. package/dist/database/migration/20260819222447_session_viewed_state.js +2 -2
  373. package/dist/database/migration/20260823191254_nullable_workspace_binding.js +2 -2
  374. package/dist/database/migration.gen.js +48 -48
  375. package/dist/database/migration.js +50 -50
  376. package/dist/database/path.js +3 -3
  377. package/dist/database/schema.gen.js +2 -2
  378. package/dist/database/schema.sql.js +2 -2
  379. package/dist/database/sqlite.bun.js +2 -2
  380. package/dist/database/sqlite.js +2 -2
  381. package/dist/database/sqlite.node.js +2 -2
  382. package/dist/database/sqlite.workerd.js +2 -2
  383. package/dist/database/v1-migration.bun.js +77 -77
  384. package/dist/database/v1-migration.js +2 -2
  385. package/dist/database/v1-migration.noop.js +1 -1
  386. package/dist/effect/app-node-builder.js +344 -342
  387. package/dist/effect/app-node-platform.js +3 -3
  388. package/dist/effect/keyed-mutex.js +2 -2
  389. package/dist/effect/websocket-constructor.js +2 -2
  390. package/dist/environment/driver.js +1 -1
  391. package/dist/environment/environment.js +86 -86
  392. package/dist/environment/exec-defaults.js +3 -3
  393. package/dist/environment/files.js +2 -2
  394. package/dist/environment/index.js +86 -86
  395. package/dist/environment/local.js +3 -3
  396. package/dist/environment/memory.js +3 -3
  397. package/dist/environment/unavailable.js +1 -1
  398. package/dist/event/sql.js +2 -2
  399. package/dist/event-logger.js +68 -68
  400. package/dist/file-mutation.js +87 -87
  401. package/dist/file-retention.js +2 -2
  402. package/dist/file.js +2 -2
  403. package/dist/filesystem/fff.bun.js +2 -2
  404. package/dist/filesystem/fff.js +2 -2
  405. package/dist/filesystem/fff.node.js +2 -2
  406. package/dist/filesystem/fff.workerd.js +2 -2
  407. package/dist/filesystem/ignore.js +1 -1
  408. package/dist/filesystem/location-watcher-policy.js +3 -3
  409. package/dist/filesystem/location-watcher.js +219 -217
  410. package/dist/filesystem/protected.js +2 -2
  411. package/dist/filesystem/search.js +91 -91
  412. package/dist/filesystem/watcher-binding.js +2 -2
  413. package/dist/filesystem/watcher.js +4 -4
  414. package/dist/filesystem.js +92 -92
  415. package/dist/form.js +69 -69
  416. package/dist/formatter/builtins.js +3 -3
  417. package/dist/formatter.js +80 -80
  418. package/dist/generate.js +84 -84
  419. package/dist/git.js +5 -5
  420. package/dist/github-copilot/chat/convert-to-openai-compatible-chat-messages.js +2 -2
  421. package/dist/github-copilot/chat/get-response-metadata.js +2 -2
  422. package/dist/github-copilot/chat/map-openai-compatible-finish-reason.js +2 -2
  423. package/dist/github-copilot/chat/openai-compatible-chat-language-model.js +8 -8
  424. package/dist/github-copilot/chat/openai-compatible-chat-options.js +2 -2
  425. package/dist/github-copilot/chat/openai-compatible-prepare-tools.js +2 -2
  426. package/dist/github-copilot/copilot-provider.js +18 -18
  427. package/dist/github-copilot/models.js +4 -4
  428. package/dist/github-copilot/openai-compatible-error.js +2 -2
  429. package/dist/github-copilot/responses/convert-to-openai-responses-input.js +2 -2
  430. package/dist/github-copilot/responses/map-openai-responses-finish-reason.js +2 -2
  431. package/dist/github-copilot/responses/openai-error.js +2 -2
  432. package/dist/github-copilot/responses/openai-responses-language-model.js +11 -11
  433. package/dist/github-copilot/responses/openai-responses-prepare-tools.js +7 -7
  434. package/dist/github-copilot/responses/tool/code-interpreter.js +2 -2
  435. package/dist/github-copilot/responses/tool/file-search.js +2 -2
  436. package/dist/github-copilot/responses/tool/image-generation.js +2 -2
  437. package/dist/github-copilot/responses/tool/web-search-preview.js +2 -2
  438. package/dist/github-copilot/responses/tool/web-search.js +2 -2
  439. package/dist/id/id.js +2 -2
  440. package/dist/image/photon-wasm.bun.js +1 -1
  441. package/dist/image/photon-wasm.node.js +1 -1
  442. package/dist/image/photon-wasm.workerd.js +1 -1
  443. package/dist/image/photon.js +94 -94
  444. package/dist/image.js +94 -94
  445. package/dist/instance/service.js +2 -2
  446. package/dist/instance.js +343 -341
  447. package/dist/instruction-discovery.js +72 -72
  448. package/dist/instructions/builtins.js +80 -80
  449. package/dist/instructions/index.js +2 -2
  450. package/dist/integration/connection.js +2 -2
  451. package/dist/integration.js +75 -75
  452. package/dist/job.js +72 -72
  453. package/dist/kv/sql.js +3 -3
  454. package/dist/kv.js +68 -68
  455. package/dist/location-activity.js +80 -80
  456. package/dist/location-mutation.js +79 -79
  457. package/dist/location-service-map.js +79 -79
  458. package/dist/location-services.js +344 -342
  459. package/dist/location.js +78 -78
  460. package/dist/mcp/client.js +87 -87
  461. package/dist/mcp/index.js +93 -93
  462. package/dist/mcp/instructions.js +122 -122
  463. package/dist/mcp/oauth.js +2 -2
  464. package/dist/mcp/stdio.js +87 -87
  465. package/dist/mime.js +2 -2
  466. package/dist/model-resolver.js +81 -81
  467. package/dist/model.js +3 -3
  468. package/dist/models-dev.js +75 -75
  469. package/dist/oauth/page.js +2 -2
  470. package/dist/permission/saved.js +71 -71
  471. package/dist/permission/sql.js +6 -6
  472. package/dist/permission.js +95 -95
  473. package/dist/persistent-pty/binary.bun.js +2 -2
  474. package/dist/persistent-pty/binary.node.js +1 -1
  475. package/dist/persistent-pty/binary.workerd.js +1 -1
  476. package/dist/persistent-pty/daemon.js +2 -2
  477. package/dist/persistent-pty/index.js +73 -73
  478. package/dist/persistent-pty/pty-binding.js +2 -2
  479. package/dist/persistent-pty.js +74 -74
  480. package/dist/plugin/agent.js +96 -96
  481. package/dist/plugin/command.js +94 -94
  482. package/dist/plugin/hooks.js +3 -3
  483. package/dist/plugin/host.js +216 -214
  484. package/dist/plugin/instance.js +2 -2
  485. package/dist/plugin/internal.js +315 -313
  486. package/dist/plugin/mcp-codemode-exclusion.js +2 -2
  487. package/dist/plugin/models-dev.js +76 -76
  488. package/dist/plugin/module.js +3 -3
  489. package/dist/plugin/plan.js +96 -96
  490. package/dist/plugin/promise.js +2 -2
  491. package/dist/plugin/provider/alibaba.js +3 -3
  492. package/dist/plugin/provider/amazon-bedrock.js +3 -3
  493. package/dist/plugin/provider/anthropic.js +3 -3
  494. package/dist/plugin/provider/azure.js +120 -118
  495. package/dist/plugin/provider/cerebras.js +3 -3
  496. package/dist/plugin/provider/cloudflare-ai-gateway.js +119 -117
  497. package/dist/plugin/provider/cloudflare-workers-ai.js +119 -117
  498. package/dist/plugin/provider/cohere.js +3 -3
  499. package/dist/plugin/provider/configured.js +116 -114
  500. package/dist/plugin/provider/dynamic.js +3 -3
  501. package/dist/plugin/provider/factory.js +2 -2
  502. package/dist/plugin/provider/gateway.js +3 -3
  503. package/dist/plugin/provider/github-copilot.js +82 -82
  504. package/dist/plugin/provider/gitlab.js +4 -4
  505. package/dist/plugin/provider/google-vertex.js +3 -3
  506. package/dist/plugin/provider/kilo.js +3 -3
  507. package/dist/plugin/provider/llmgateway.js +77 -77
  508. package/dist/plugin/provider/lmstudio.js +117 -115
  509. package/dist/plugin/provider/mistral.js +3 -3
  510. package/dist/plugin/provider/nvidia.js +3 -3
  511. package/dist/plugin/provider/ollama.js +117 -115
  512. package/dist/plugin/provider/openai-compatible.js +2 -2
  513. package/dist/plugin/provider/openai.js +79 -79
  514. package/dist/plugin/provider/opencode.js +77 -77
  515. package/dist/plugin/provider/openrouter.js +4 -4
  516. package/dist/plugin/provider/perplexity.js +3 -3
  517. package/dist/plugin/provider/sap-ai-core.js +4 -4
  518. package/dist/plugin/provider/sdk-factory.js +2 -2
  519. package/dist/plugin/provider/snowflake-cortex.js +3 -3
  520. package/dist/plugin/provider/venice.js +3 -3
  521. package/dist/plugin/provider/vercel.js +3 -3
  522. package/dist/plugin/provider/vllm.js +117 -115
  523. package/dist/plugin/provider/xai.js +78 -78
  524. package/dist/plugin/provider/zenmux.js +3 -3
  525. package/dist/plugin/provider.js +156 -154
  526. package/dist/plugin/sdk.js +69 -69
  527. package/dist/plugin/service.js +2 -2
  528. package/dist/plugin/skill.js +129 -127
  529. package/dist/plugin/source-directory.js +2 -2
  530. package/dist/plugin/supervisor.js +330 -328
  531. package/dist/plugin/system-prompt.js +2 -2
  532. package/dist/plugin/update.js +3 -3
  533. package/dist/plugin/variant.js +3 -3
  534. package/dist/plugin/vcs/git.js +82 -82
  535. package/dist/plugin/vcs/hg.js +82 -82
  536. package/dist/plugin/warming.js +111 -109
  537. package/dist/plugin/websearch/exa.js +4 -4
  538. package/dist/plugin/websearch/firecrawl.js +5 -5
  539. package/dist/plugin/websearch/index.js +9 -9
  540. package/dist/plugin/websearch/mcp.js +3 -3
  541. package/dist/plugin/websearch/parallel.js +5 -5
  542. package/dist/plugin/websearch/tavily.js +3 -3
  543. package/dist/plugin.js +217 -215
  544. package/dist/project/schema.js +3 -3
  545. package/dist/project/sql.js +5 -5
  546. package/dist/project.js +77 -77
  547. package/dist/provider.js +2 -2
  548. package/dist/pty/protocol.js +1 -1
  549. package/dist/pty/pty.bun.js +1 -1
  550. package/dist/pty/pty.node.js +1 -1
  551. package/dist/pty/pty.workerd.js +1 -1
  552. package/dist/pty/schema.js +2 -2
  553. package/dist/pty/ticket.js +2 -2
  554. package/dist/pty.js +84 -84
  555. package/dist/reference/instructions.js +80 -80
  556. package/dist/reference.js +78 -78
  557. package/dist/repository-cache.js +74 -74
  558. package/dist/repository.js +2 -2
  559. package/dist/ripgrep/binary.js +3 -3
  560. package/dist/ripgrep.js +89 -89
  561. package/dist/rpc.js +79 -79
  562. package/dist/schema.js +2 -2
  563. package/dist/session/command.js +73 -73
  564. package/dist/session/compaction.js +138 -138
  565. package/dist/session/context.js +150 -150
  566. package/dist/session/environment.js +3 -3
  567. package/dist/session/error.js +4 -4
  568. package/dist/session/event.js +2 -2
  569. package/dist/session/execution/restart.js +210 -208
  570. package/dist/session/execution.js +117 -117
  571. package/dist/session/generate.js +153 -153
  572. package/dist/session/history.js +77 -77
  573. package/dist/session/inbox.js +77 -77
  574. package/dist/session/info.js +4 -4
  575. package/dist/session/instruction-entry.js +73 -73
  576. package/dist/session/instruction-state.js +10 -10
  577. package/dist/session/instructions.js +89 -89
  578. package/dist/session/message-updater.js +4 -4
  579. package/dist/session/message.js +2 -2
  580. package/dist/session/model-request.js +134 -134
  581. package/dist/session/model-transport.js +5 -5
  582. package/dist/session/move.js +80 -80
  583. package/dist/session/projector.js +83 -83
  584. package/dist/session/prompt.js +115 -115
  585. package/dist/session/revert.js +87 -87
  586. package/dist/session/run-coordinator.js +2 -2
  587. package/dist/session/runner/index.js +84 -84
  588. package/dist/session/runner/llm.js +226 -224
  589. package/dist/session/runner/max-steps.js +2 -2
  590. package/dist/session/runner/model.js +83 -83
  591. package/dist/session/runner/publish-llm-event.js +4 -4
  592. package/dist/session/runner/retry.js +72 -72
  593. package/dist/session/runner/step.js +143 -143
  594. package/dist/session/runner/to-llm-message.js +2 -2
  595. package/dist/session/schema.js +2 -2
  596. package/dist/session/session.js +173 -171
  597. package/dist/session/shell.js +132 -130
  598. package/dist/session/skill.js +99 -99
  599. package/dist/session/sql.js +6 -6
  600. package/dist/session/stats.js +71 -71
  601. package/dist/session/store.js +79 -79
  602. package/dist/session/subagent-completion.js +2 -2
  603. package/dist/session/system-prompt.js +2 -2
  604. package/dist/session/title.js +152 -152
  605. package/dist/session/to-session-error.js +108 -108
  606. package/dist/session/transfer.js +211 -209
  607. package/dist/session/usage.js +2 -2
  608. package/dist/session.js +207 -205
  609. package/dist/shell/parse.js +7 -7
  610. package/dist/shell/parser-wasm.bun.js +1 -1
  611. package/dist/shell/parser-wasm.node.js +1 -1
  612. package/dist/shell/parser-wasm.workerd.js +1 -1
  613. package/dist/shell/result.js +2 -2
  614. package/dist/shell/scan.js +1 -1
  615. package/dist/shell/select.js +4 -4
  616. package/dist/shell.js +129 -127
  617. package/dist/skill/discovery.js +3 -3
  618. package/dist/skill/instructions.js +97 -97
  619. package/dist/skill.js +96 -96
  620. package/dist/snapshot.js +80 -80
  621. package/dist/state.js +2 -2
  622. package/dist/tool/html-markdown.js +2 -2
  623. package/dist/tool/http-body.js +2 -2
  624. package/dist/tool/mcp.js +121 -121
  625. package/dist/tool/plugin/edit.js +108 -108
  626. package/dist/tool/plugin/file-diff.js +2 -2
  627. package/dist/tool/plugin/glob.js +111 -111
  628. package/dist/tool/plugin/grep.js +111 -111
  629. package/dist/tool/plugin/opencode.js +2 -2
  630. package/dist/tool/plugin/patch.js +108 -108
  631. package/dist/tool/plugin/question.js +97 -97
  632. package/dist/tool/plugin/read.js +114 -114
  633. package/dist/tool/plugin/shell.js +210 -208
  634. package/dist/tool/plugin/skill.js +97 -97
  635. package/dist/tool/plugin/subagent.js +209 -207
  636. package/dist/tool/plugin/webfetch.js +98 -98
  637. package/dist/tool/plugin/websearch.js +100 -100
  638. package/dist/tool/plugin/write.js +108 -108
  639. package/dist/tool/read-filesystem.js +94 -94
  640. package/dist/tool/runtime.js +2 -2
  641. package/dist/tool-output.js +5 -5
  642. package/dist/tool.js +114 -114
  643. package/dist/types/config/discovery.d.ts +35 -0
  644. package/dist/types/config/watch.d.ts +11 -0
  645. package/dist/types/filesystem/watcher.d.ts +19 -17
  646. package/dist/util/array.js +1 -1
  647. package/dist/util/error.js +2 -2
  648. package/dist/util/identifier.js +1 -1
  649. package/dist/util/iife.js +2 -2
  650. package/dist/util/lazy.js +2 -2
  651. package/dist/util/process-lock-ffi.bun.js +1 -1
  652. package/dist/util/process-lock-ffi.node.js +1 -1
  653. package/dist/util/process-lock-ffi.workerd.js +1 -1
  654. package/dist/util/process-lock.js +1 -1
  655. package/dist/util/slug.js +2 -2
  656. package/dist/util/token.js +2 -2
  657. package/dist/util/which.js +2 -2
  658. package/dist/util/wildcard.js +2 -2
  659. package/dist/v1/config/agent.js +4 -4
  660. package/dist/v1/config/attachment.js +3 -3
  661. package/dist/v1/config/command.js +2 -2
  662. package/dist/v1/config/config.js +15 -15
  663. package/dist/v1/config/error.js +3 -3
  664. package/dist/v1/config/formatter.js +2 -2
  665. package/dist/v1/config/layout.js +2 -2
  666. package/dist/v1/config/lsp.js +2 -2
  667. package/dist/v1/config/mcp.js +3 -3
  668. package/dist/v1/config/migrate.js +19 -19
  669. package/dist/v1/config/permission.js +2 -2
  670. package/dist/v1/config/plugin.js +2 -2
  671. package/dist/v1/config/provider-options.js +2 -2
  672. package/dist/v1/config/provider.js +3 -3
  673. package/dist/v1/config/server.js +3 -3
  674. package/dist/v1/config/skills.js +2 -2
  675. package/dist/v1/permission.js +1 -1
  676. package/dist/vcs/patch.js +2 -2
  677. package/dist/vcs.js +81 -81
  678. package/dist/websearch.js +73 -73
  679. package/dist/wellknown/plugin.js +73 -73
  680. package/dist/wellknown.js +72 -72
  681. package/dist/workspace/driver.js +2 -2
  682. package/dist/workspace/sql.js +2 -2
  683. package/dist/workspace.js +69 -69
  684. package/dist/worktree/directory.js +3 -3
  685. package/dist/worktree/git.js +7 -7
  686. package/dist/worktree/sql.js +6 -6
  687. package/dist/worktree.js +82 -82
  688. package/package.json +7 -7
  689. /package/dist/chunks/{ripgrep-0cgt0xh2.js → tool-0cgt0xh2.js} +0 -0
  690. /package/dist/chunks/{ripgrep-0f48qthw.js → tool-0f48qthw.js} +0 -0
  691. /package/dist/chunks/{ripgrep-0zz82cjq.js → tool-0zz82cjq.js} +0 -0
  692. /package/dist/chunks/{ripgrep-1fb7bmpf.js → tool-1fb7bmpf.js} +0 -0
  693. /package/dist/chunks/{ripgrep-1wcz8fvj.js → tool-1wcz8fvj.js} +0 -0
  694. /package/dist/chunks/{ripgrep-29n7vfk2.js → tool-29n7vfk2.js} +0 -0
  695. /package/dist/chunks/{ripgrep-2qdx6zz3.js → tool-2qdx6zz3.js} +0 -0
  696. /package/dist/chunks/{ripgrep-2xb0r1c6.js → tool-2xb0r1c6.js} +0 -0
  697. /package/dist/chunks/{ripgrep-39ktntah.js → tool-39ktntah.js} +0 -0
  698. /package/dist/chunks/{ripgrep-3g3rpp2x.js → tool-3g3rpp2x.js} +0 -0
  699. /package/dist/chunks/{ripgrep-3w3ybtfd.js → tool-3w3ybtfd.js} +0 -0
  700. /package/dist/chunks/{ripgrep-47ty4mvs.js → tool-47ty4mvs.js} +0 -0
  701. /package/dist/chunks/{ripgrep-4b2tz2m9.js → tool-4b2tz2m9.js} +0 -0
  702. /package/dist/chunks/{ripgrep-5a5ch9ts.js → tool-5a5ch9ts.js} +0 -0
  703. /package/dist/chunks/{ripgrep-5va1yh78.js → tool-5va1yh78.js} +0 -0
  704. /package/dist/chunks/{ripgrep-61ek4hj9.js → tool-61ek4hj9.js} +0 -0
  705. /package/dist/chunks/{ripgrep-69qrqpw0.js → tool-69qrqpw0.js} +0 -0
  706. /package/dist/chunks/{ripgrep-6zqxzw0a.js → tool-6zqxzw0a.js} +0 -0
  707. /package/dist/chunks/{ripgrep-7n9qwqk4.js → tool-7n9qwqk4.js} +0 -0
  708. /package/dist/chunks/{ripgrep-8nn8kqcn.js → tool-8nn8kqcn.js} +0 -0
  709. /package/dist/chunks/{ripgrep-8rpfd2h6.js → tool-8rpfd2h6.js} +0 -0
  710. /package/dist/chunks/{ripgrep-8sj3ajy5.js → tool-8sj3ajy5.js} +0 -0
  711. /package/dist/chunks/{ripgrep-8w9tzfz1.js → tool-8w9tzfz1.js} +0 -0
  712. /package/dist/chunks/{ripgrep-906y0b6d.js → tool-906y0b6d.js} +0 -0
  713. /package/dist/chunks/{ripgrep-9dct5xhx.js → tool-9dct5xhx.js} +0 -0
  714. /package/dist/chunks/{ripgrep-9maxscqf.js → tool-9maxscqf.js} +0 -0
  715. /package/dist/chunks/{ripgrep-9sdtsapf.js → tool-9sdtsapf.js} +0 -0
  716. /package/dist/chunks/{ripgrep-a02svayp.js → tool-a02svayp.js} +0 -0
  717. /package/dist/chunks/{ripgrep-a83yvq99.js → tool-a83yvq99.js} +0 -0
  718. /package/dist/chunks/{ripgrep-ayevdmef.js → tool-ayevdmef.js} +0 -0
  719. /package/dist/chunks/{ripgrep-b02txbh8.js → tool-b02txbh8.js} +0 -0
  720. /package/dist/chunks/{ripgrep-bbqs2y60.js → tool-bbqs2y60.js} +0 -0
  721. /package/dist/chunks/{ripgrep-bjwj8hwv.js → tool-bjwj8hwv.js} +0 -0
  722. /package/dist/chunks/{ripgrep-brsh5f65.js → tool-brsh5f65.js} +0 -0
  723. /package/dist/chunks/{ripgrep-bxdhjb3y.js → tool-bxdhjb3y.js} +0 -0
  724. /package/dist/chunks/{ripgrep-bybkghrn.js → tool-bybkghrn.js} +0 -0
  725. /package/dist/chunks/{ripgrep-c77ad0vh.js → tool-c77ad0vh.js} +0 -0
  726. /package/dist/chunks/{ripgrep-cm67rqy2.js → tool-cm67rqy2.js} +0 -0
  727. /package/dist/chunks/{ripgrep-df3v2q6j.js → tool-df3v2q6j.js} +0 -0
  728. /package/dist/chunks/{ripgrep-dhcq6c44.js → tool-dhcq6c44.js} +0 -0
  729. /package/dist/chunks/{ripgrep-dht5baf0.js → tool-dht5baf0.js} +0 -0
  730. /package/dist/chunks/{ripgrep-dkmkay92.js → tool-dkmkay92.js} +0 -0
  731. /package/dist/chunks/{ripgrep-ehj9csmv.js → tool-ehj9csmv.js} +0 -0
  732. /package/dist/chunks/{ripgrep-em6xpscd.js → tool-em6xpscd.js} +0 -0
  733. /package/dist/chunks/{ripgrep-emmqknsm.js → tool-emmqknsm.js} +0 -0
  734. /package/dist/chunks/{ripgrep-ezs3tagn.js → tool-ezs3tagn.js} +0 -0
  735. /package/dist/chunks/{ripgrep-f14r7hfz.js → tool-f14r7hfz.js} +0 -0
  736. /package/dist/chunks/{ripgrep-f1jj19e8.js → tool-f1jj19e8.js} +0 -0
  737. /package/dist/chunks/{ripgrep-f4cp4g4a.js → tool-f4cp4g4a.js} +0 -0
  738. /package/dist/chunks/{ripgrep-faypg4r1.js → tool-faypg4r1.js} +0 -0
  739. /package/dist/chunks/{ripgrep-fg7fz4q3.js → tool-fg7fz4q3.js} +0 -0
  740. /package/dist/chunks/{ripgrep-fgbfdq62.js → tool-fgbfdq62.js} +0 -0
  741. /package/dist/chunks/{ripgrep-g23fad86.js → tool-g23fad86.js} +0 -0
  742. /package/dist/chunks/{ripgrep-gd5xeqc2.js → tool-gd5xeqc2.js} +0 -0
  743. /package/dist/chunks/{ripgrep-ghm4673n.js → tool-ghm4673n.js} +0 -0
  744. /package/dist/chunks/{ripgrep-ghwjy7my.js → tool-ghwjy7my.js} +0 -0
  745. /package/dist/chunks/{ripgrep-gy500k2r.js → tool-gy500k2r.js} +0 -0
  746. /package/dist/chunks/{ripgrep-hzeg9cfr.js → tool-hzeg9cfr.js} +0 -0
  747. /package/dist/chunks/{ripgrep-j07kk359.js → tool-j07kk359.js} +0 -0
  748. /package/dist/chunks/{ripgrep-jqms80b0.js → tool-jqms80b0.js} +0 -0
  749. /package/dist/chunks/{ripgrep-jve7t217.js → tool-jve7t217.js} +0 -0
  750. /package/dist/chunks/{ripgrep-k3e42drn.js → tool-k3e42drn.js} +0 -0
  751. /package/dist/chunks/{ripgrep-k8b45nas.js → tool-k8b45nas.js} +0 -0
  752. /package/dist/chunks/{ripgrep-kpdbz7gn.js → tool-kpdbz7gn.js} +0 -0
  753. /package/dist/chunks/{ripgrep-kxy11nzk.js → tool-kxy11nzk.js} +0 -0
  754. /package/dist/chunks/{ripgrep-kyyqvx4s.js → tool-kyyqvx4s.js} +0 -0
  755. /package/dist/chunks/{ripgrep-m8cbvarh.js → tool-m8cbvarh.js} +0 -0
  756. /package/dist/chunks/{ripgrep-ma60vzgv.js → tool-ma60vzgv.js} +0 -0
  757. /package/dist/chunks/{ripgrep-n3m50c2t.js → tool-n3m50c2t.js} +0 -0
  758. /package/dist/chunks/{ripgrep-nkm1m8dz.js → tool-nkm1m8dz.js} +0 -0
  759. /package/dist/chunks/{ripgrep-nsc0c3zb.js → tool-nsc0c3zb.js} +0 -0
  760. /package/dist/chunks/{ripgrep-qaarhjrp.js → tool-qaarhjrp.js} +0 -0
  761. /package/dist/chunks/{ripgrep-qc167nrn.js → tool-qc167nrn.js} +0 -0
  762. /package/dist/chunks/{ripgrep-qp95y4jb.js → tool-qp95y4jb.js} +0 -0
  763. /package/dist/chunks/{ripgrep-r8f4w671.js → tool-r8f4w671.js} +0 -0
  764. /package/dist/chunks/{ripgrep-rdfev9jy.js → tool-rdfev9jy.js} +0 -0
  765. /package/dist/chunks/{ripgrep-s7whb9gt.js → tool-s7whb9gt.js} +0 -0
  766. /package/dist/chunks/{ripgrep-se76j685.js → tool-se76j685.js} +0 -0
  767. /package/dist/chunks/{ripgrep-sem2g21k.js → tool-sem2g21k.js} +0 -0
  768. /package/dist/chunks/{ripgrep-snpn6bap.js → tool-snpn6bap.js} +0 -0
  769. /package/dist/chunks/{ripgrep-sp575ygv.js → tool-sp575ygv.js} +0 -0
  770. /package/dist/chunks/{ripgrep-tmb1f636.js → tool-tmb1f636.js} +0 -0
  771. /package/dist/chunks/{ripgrep-ttxf0gsy.js → tool-ttxf0gsy.js} +0 -0
  772. /package/dist/chunks/{ripgrep-tvmhrvfj.js → tool-tvmhrvfj.js} +0 -0
  773. /package/dist/chunks/{ripgrep-v2adqbbe.js → tool-v2adqbbe.js} +0 -0
  774. /package/dist/chunks/{ripgrep-vac9eqd2.js → tool-vac9eqd2.js} +0 -0
  775. /package/dist/chunks/{ripgrep-vpjkya7h.js → tool-vpjkya7h.js} +0 -0
  776. /package/dist/chunks/{ripgrep-wj4sxzqa.js → tool-wj4sxzqa.js} +0 -0
  777. /package/dist/chunks/{ripgrep-wwntjmk1.js → tool-wwntjmk1.js} +0 -0
  778. /package/dist/chunks/{ripgrep-wyqjaaa5.js → tool-wyqjaaa5.js} +0 -0
  779. /package/dist/chunks/{ripgrep-x4q807cx.js → tool-x4q807cx.js} +0 -0
  780. /package/dist/chunks/{ripgrep-yrqrg4vp.js → tool-yrqrg4vp.js} +0 -0
  781. /package/dist/chunks/{ripgrep-z47nswr2.js → tool-z47nswr2.js} +0 -0
  782. /package/dist/chunks/{ripgrep-zsf8rs93.js → tool-zsf8rs93.js} +0 -0
@@ -1,30 +1,36 @@
1
1
  import {
2
- exports_watcher
3
- } from "./ripgrep-aqq7me5d.js";
2
+ exports_variable
3
+ } from "./tool-6vbv4je1.js";
4
+ import {
5
+ exports_discovery
6
+ } from "./tool-2xs53ass.js";
7
+ import {
8
+ exports_watch
9
+ } from "./tool-t9t544b9.js";
4
10
  import {
5
11
  exports_normalize
6
- } from "./ripgrep-w440ffk4.js";
12
+ } from "./tool-z5tgxg9q.js";
7
13
  import {
8
- exports_variable
9
- } from "./ripgrep-6vbv4je1.js";
14
+ exports_watcher
15
+ } from "./tool-v9qxqszp.js";
10
16
  import {
11
17
  exports_wellknown
12
- } from "./ripgrep-b9trhhvr.js";
13
- import {
14
- exports_credential
15
- } from "./ripgrep-5s33ctyn.js";
18
+ } from "./tool-9nbt8589.js";
16
19
  import {
17
20
  exports_location
18
- } from "./ripgrep-yjwdjfj0.js";
21
+ } from "./tool-7prkhz8c.js";
19
22
  import {
20
- exports_bus
21
- } from "./ripgrep-aav32bqa.js";
23
+ exports_credential
24
+ } from "./tool-z9anvdnc.js";
22
25
  import {
23
26
  AbsolutePath
24
- } from "./ripgrep-j07kk359.js";
27
+ } from "./tool-j07kk359.js";
28
+ import {
29
+ exports_bus
30
+ } from "./tool-k25tjeqa.js";
25
31
  import {
26
32
  __export
27
- } from "./ripgrep-vpjkya7h.js";
33
+ } from "./tool-vpjkya7h.js";
28
34
 
29
35
  // src/config.ts
30
36
  var exports_config = {};
@@ -43,7 +49,7 @@ import { makeLocationNode } from "@opencode-ai/util/effect/app-node";
43
49
  import path from "path";
44
50
  import { isDeepStrictEqual } from "node:util";
45
51
  import { parse } from "jsonc-parser";
46
- import { Context, Effect, Layer, Option, PubSub, Ref, Schema, Semaphore, Stream } from "effect";
52
+ import { Context, Effect, FiberMap, Layer, Option, PubSub, Ref, Schema, Semaphore, Stream } from "effect";
47
53
  import {
48
54
  AgentsDirectory,
49
55
  ClaudeDirectory,
@@ -82,15 +88,12 @@ var testLayer = (initial = []) => Layer.effectContext(Effect.gen(function* () {
82
88
  }));
83
89
  var layer = (options) => Layer.effect(Service, Effect.gen(function* () {
84
90
  const fs = yield* FSUtil.Service;
85
- const global = yield* Global.Service;
86
91
  const location = yield* exports_location.Service;
87
92
  const watcher = yield* exports_watcher.Service;
88
93
  const bus = yield* exports_bus.Service;
89
94
  const credentials = yield* exports_credential.Service;
90
95
  const wellknown = yield* exports_wellknown.Service;
91
- const names = ["opencode.json", "opencode.jsonc"];
92
96
  const reloadLock = Semaphore.makeUnsafe(1);
93
- const fileTargets = new Set;
94
97
  const decodeOptions = { errors: "all", onExcessProperty: "ignore", propertyOrder: "original" };
95
98
  const decodeInfo = Schema.decodeUnknownOption(Info, decodeOptions);
96
99
  const parseInfo = Effect.fn("Config.parseInfo")(function* (text, source) {
@@ -157,56 +160,25 @@ var layer = (options) => Layer.effect(Service, Effect.gen(function* () {
157
160
  });
158
161
  const loadDirectory = Effect.fnUntraced(function* (directory) {
159
162
  return [
160
- ...yield* Effect.forEach(names, (file) => loadFile(path.join(directory, file))).pipe(Effect.map((configs2) => configs2.filter((config) => config !== undefined))),
163
+ ...yield* Effect.forEach(exports_discovery.names, (file) => loadFile(path.join(directory, file))).pipe(Effect.map((configs2) => configs2.filter((config) => config !== undefined))),
161
164
  new Directory({ type: "directory", path: directory })
162
165
  ];
163
166
  });
164
- const discover = Effect.fn("Config.discover")(function* () {
165
- const globalDirectory = AbsolutePath.make(global.config);
166
- const globalAgentsDirectory = AbsolutePath.make(path.join(global.home, ".agents"));
167
- const globalClaudeDirectory = AbsolutePath.make(path.join(global.home, ".claude"));
168
- const globalRoots = yield* Effect.forEach([globalDirectory, globalClaudeDirectory, globalAgentsDirectory], (item) => fs.resolve(item));
169
- const locationIsGlobal = (yield* fs.resolve(location.directory)) === globalRoots[0];
170
- const discovered = locationIsGlobal || options?.project === false ? [] : yield* fs.up({
171
- targets: [".opencode", ".claude", ".agents", ...names.toReversed()],
172
- start: location.directory
173
- }).pipe(Effect.flatMap((items) => Effect.forEach(items, (item) => fs.resolve(item).pipe(Effect.map((resolved) => ({ item, resolved }))))), Effect.orDie);
174
- const globalEnabled = options?.global !== false;
175
- const globalFiles = yield* Effect.forEach(names, (name) => fs.resolve(path.join(globalDirectory, name)));
176
- const visible = discovered.filter(({ resolved }) => globalEnabled ? !globalRoots.includes(resolved) && !globalFiles.includes(resolved) : !globalRoots.some((root) => resolved === root || resolved.startsWith(root + path.sep))).map(({ item }) => item);
177
- const claude = [
178
- ...new Set([
179
- ...globalEnabled && (yield* fs.isDir(globalClaudeDirectory)) ? [globalClaudeDirectory] : [],
180
- ...visible.filter((item) => path.basename(item) === ".claude").toReversed()
181
- ])
182
- ].map((directory) => new ClaudeDirectory({ type: "claude", path: AbsolutePath.make(directory) }));
183
- const agents = [
184
- ...new Set([
185
- ...globalEnabled && (yield* fs.isDir(globalAgentsDirectory)) ? [globalAgentsDirectory] : [],
186
- ...visible.filter((item) => path.basename(item) === ".agents").toReversed()
187
- ])
188
- ].map((directory) => new AgentsDirectory({ type: "agents", path: AbsolutePath.make(directory) }));
189
- const projectDirectories = visible.filter((item) => path.basename(item) === ".opencode").toReversed().map((directory) => AbsolutePath.make(directory));
190
- const directPaths = visible.filter((item) => ![".agents", ".claude", ".opencode"].includes(path.basename(item))).toReversed();
191
- fileTargets.clear();
192
- directPaths.forEach((filepath) => fileTargets.add(AbsolutePath.make(filepath)));
193
- const direct = yield* Effect.forEach(directPaths, (filepath) => loadFile(filepath)).pipe(Effect.orDie, Effect.map((entries) => entries.filter((entry) => entry !== undefined)));
194
- const file = options?.file;
195
- if (file)
196
- fileTargets.add(AbsolutePath.make(path.resolve(file)));
197
- const explicit = file ? yield* loadFile(path.resolve(file)).pipe(Effect.map((config) => config ? [config] : []), Effect.orDie) : [];
167
+ const load = Effect.fn("Config.load")(function* (sources) {
168
+ const direct = yield* Effect.forEach(sources.direct, (filepath) => loadFile(filepath)).pipe(Effect.orDie, Effect.map((entries) => entries.filter((entry) => entry !== undefined)));
169
+ const explicit = sources.explicit ? yield* loadFile(sources.explicit).pipe(Effect.map((config) => config ? [config] : []), Effect.orDie) : [];
198
170
  const content = options?.content !== undefined ? yield* exports_variable.substitute({
199
171
  type: "virtual",
200
172
  source: "OPENCODE_CONFIG_CONTENT",
201
173
  dir: location.directory,
202
174
  text: options.content
203
175
  }).pipe(Effect.flatMap((text) => parseInfo(text, "OPENCODE_CONFIG_CONTENT")), Effect.map((info) => info ? [new Document({ type: "document", info })] : []), Effect.orDie) : [];
204
- const globalSupplementary = globalEnabled ? yield* loadDirectory(globalDirectory).pipe(Effect.orDie) : [];
205
- const projectSupplementary = yield* Effect.forEach(projectDirectories, loadDirectory).pipe(Effect.orDie, Effect.map((entries) => entries.flat()));
176
+ const globalSupplementary = sources.global ? yield* loadDirectory(sources.global).pipe(Effect.orDie) : [];
177
+ const projectSupplementary = yield* Effect.forEach(sources.project.filter((root) => root.present), (root) => loadDirectory(root.path)).pipe(Effect.orDie, Effect.map((entries) => entries.flat()));
206
178
  return [
207
179
  ...yield* loadWellknown().pipe(Effect.orDie),
208
- ...claude,
209
- ...agents,
180
+ ...sources.claude.map((path2) => new ClaudeDirectory({ type: "claude", path: path2 })),
181
+ ...sources.agents.map((path2) => new AgentsDirectory({ type: "agents", path: path2 })),
210
182
  ...globalSupplementary,
211
183
  ...explicit,
212
184
  ...direct,
@@ -214,39 +186,33 @@ var layer = (options) => Layer.effect(Service, Effect.gen(function* () {
214
186
  ...content
215
187
  ];
216
188
  });
217
- const initial = yield* discover();
218
- let configs = initial;
189
+ const initial = yield* exports_discovery.discover(options);
190
+ let configs = yield* load(initial);
219
191
  const updates = yield* PubSub.unbounded();
220
- const ignore = ["node_modules", ".git", "**/{node_modules,.git}/**"];
221
- const watched = new Set;
222
- const reconcile = Effect.fn("Config.reconcileWatches")(function* (entries) {
223
- const directories = entries.flatMap((entry) => entry.type === "directory" ? [entry.path] : []);
224
- const files = [
225
- ...entries.flatMap((entry) => entry.type === "document" && entry.path ? [entry.path] : []),
226
- ...fileTargets
227
- ];
228
- const targets = [
229
- ...directories.map((path2) => ({ path: path2, type: "directory", ignore })),
230
- ...files.filter((file) => !directories.some((directory) => FSUtil.contains(directory, file))).map((path2) => ({ path: path2, type: "file" }))
231
- ];
232
- for (const target of targets) {
233
- const key = JSON.stringify(target);
234
- if (watched.has(key))
235
- continue;
236
- watched.add(key);
237
- const stream = yield* watcher.subscribe(target);
238
- yield* stream.pipe(Stream.runForEach((update) => PubSub.publish(updates, update)), Effect.forkScoped({ startImmediately: true }));
192
+ const reloads = yield* PubSub.sliding(1);
193
+ const requestReload = PubSub.publish(reloads, undefined).pipe(Effect.asVoid);
194
+ const watched = yield* FiberMap.make();
195
+ const reconcile = Effect.fn("Config.reconcileWatches")(function* (sources) {
196
+ const plan = exports_watch.plan(sources);
197
+ for (const key of Array.from(watched, ([key2]) => key2)) {
198
+ if (!plan.has(key))
199
+ yield* FiberMap.remove(watched, key);
200
+ }
201
+ for (const [key, target] of plan) {
202
+ yield* watcher.subscribe(target, requestReload).pipe(Effect.flatMap(Stream.runForEach((update) => PubSub.publish(updates, update).pipe(Effect.andThen(requestReload)))), FiberMap.run(watched, key, { onlyIfMissing: true, startImmediately: true }));
239
203
  }
240
204
  });
241
205
  const reload = Effect.fn("Config.reload")(function* () {
242
- const next = yield* discover();
243
- yield* reconcile(next);
206
+ const sources = yield* exports_discovery.discover(options);
207
+ const next = yield* load(sources);
208
+ yield* reconcile(sources);
244
209
  if (isDeepStrictEqual(configs, next))
245
210
  return;
246
211
  configs = next;
247
212
  yield* bus.publish(Event.Updated, {});
248
213
  }, (effect) => reloadLock.withPermit(effect));
249
- yield* Stream.fromPubSub(updates).pipe(Stream.debounce("100 millis"), Stream.runForEach((update) => reload().pipe(Effect.catchCause((cause) => Effect.logError("failed to reload config", { path: update.path, cause })))), Effect.forkScoped({ startImmediately: true }));
214
+ const pendingReloads = yield* PubSub.subscribe(reloads);
215
+ yield* Stream.fromSubscription(pendingReloads).pipe(Stream.debounce("100 millis"), Stream.runForEach(() => reload().pipe(Effect.catchCause((cause) => Effect.logError("failed to reload config", { cause })))), Effect.forkScoped({ startImmediately: true }));
250
216
  yield* bus.subscribe(exports_credential.Event.Switched).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 }));
251
217
  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 }));
252
218
  yield* Effect.sleep("10 minutes").pipe(Effect.andThen(Effect.suspend(() => {
@@ -258,7 +224,7 @@ var layer = (options) => Layer.effect(Service, Effect.gen(function* () {
258
224
  yield* reload();
259
225
  }).pipe(Effect.catchCause((cause) => Effect.logWarning("failed to refresh wellknown config", { cause })));
260
226
  })), Effect.forever, Effect.forkScoped({ startImmediately: true }));
261
- yield* reconcile(initial);
227
+ yield* reloadLock.withPermit(reconcile(initial));
262
228
  return Service.of({
263
229
  entries: Effect.fnUntraced(function* () {
264
230
  return configs;
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  createProviderPlugin
3
- } from "./ripgrep-0zz82cjq.js";
3
+ } from "./tool-0zz82cjq.js";
4
4
  import {
5
5
  __require
6
- } from "./ripgrep-vpjkya7h.js";
6
+ } from "./tool-vpjkya7h.js";
7
7
 
8
8
  // src/plugin/provider/venice.ts
9
9
  var VenicePlugin = createProviderPlugin({
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  __export
3
- } from "./ripgrep-vpjkya7h.js";
3
+ } from "./tool-vpjkya7h.js";
4
4
 
5
5
  // src/mime.ts
6
6
  var exports_mime = {};
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  __export
3
- } from "./ripgrep-vpjkya7h.js";
3
+ } from "./tool-vpjkya7h.js";
4
4
 
5
5
  // src/session/subagent-completion.ts
6
6
  var exports_subagent_completion = {};
@@ -1,16 +1,16 @@
1
1
  import {
2
2
  InstructionBlobTable,
3
3
  InstructionStateTable
4
- } from "./ripgrep-q606pcse.js";
4
+ } from "./tool-q606pcse.js";
5
5
  import {
6
6
  exports_instructions
7
- } from "./ripgrep-c54e84vp.js";
7
+ } from "./tool-c54e84vp.js";
8
8
  import {
9
9
  SessionEvent
10
- } from "./ripgrep-a83yvq99.js";
10
+ } from "./tool-a83yvq99.js";
11
11
  import {
12
12
  __export
13
- } from "./ripgrep-vpjkya7h.js";
13
+ } from "./tool-vpjkya7h.js";
14
14
 
15
15
  // src/session/instruction-state.ts
16
16
  var exports_instruction_state = {};
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  exports_provider
3
- } from "./ripgrep-68yag814.js";
3
+ } from "./tool-68yag814.js";
4
4
 
5
5
  // src/plugin/provider/kilo.ts
6
6
  import { Effect } from "effect";
@@ -1,12 +1,12 @@
1
1
  import {
2
2
  exports_skill
3
- } from "./ripgrep-176r80k9.js";
3
+ } from "./tool-99fm67tp.js";
4
4
  import {
5
5
  exports_instructions
6
- } from "./ripgrep-c54e84vp.js";
6
+ } from "./tool-c54e84vp.js";
7
7
  import {
8
8
  __export
9
- } from "./ripgrep-vpjkya7h.js";
9
+ } from "./tool-vpjkya7h.js";
10
10
 
11
11
  // src/skill/instructions.ts
12
12
  var exports_instructions2 = {};
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  AbsolutePath
3
- } from "./ripgrep-j07kk359.js";
3
+ } from "./tool-j07kk359.js";
4
4
  import {
5
5
  __export
6
- } from "./ripgrep-vpjkya7h.js";
6
+ } from "./tool-vpjkya7h.js";
7
7
 
8
8
  // src/project/schema.ts
9
9
  var exports_schema = {};
@@ -1,31 +1,31 @@
1
1
  import {
2
2
  exports_integration
3
- } from "./ripgrep-hsx0srpf.js";
3
+ } from "./tool-vpmnhrx5.js";
4
4
  import {
5
5
  exports_form
6
- } from "./ripgrep-mb2awe6b.js";
7
- import {
8
- exports_credential
9
- } from "./ripgrep-5s33ctyn.js";
6
+ } from "./tool-4rf36tc3.js";
10
7
  import {
11
8
  exports_environment1 as exports_environment
12
- } from "./ripgrep-6r7rsav3.js";
13
- import {
14
- exports_state
15
- } from "./ripgrep-dyrfpcd0.js";
9
+ } from "./tool-hcgt9g2n.js";
16
10
  import {
17
11
  exports_location
18
- } from "./ripgrep-yjwdjfj0.js";
12
+ } from "./tool-7prkhz8c.js";
13
+ import {
14
+ exports_credential
15
+ } from "./tool-z9anvdnc.js";
16
+ import {
17
+ exports_state
18
+ } from "./tool-dyrfpcd0.js";
19
19
  import {
20
20
  exports_bus
21
- } from "./ripgrep-aav32bqa.js";
21
+ } from "./tool-k25tjeqa.js";
22
22
  import {
23
23
  exports_keyed_mutex
24
- } from "./ripgrep-66mds5ht.js";
24
+ } from "./tool-66mds5ht.js";
25
25
  import {
26
26
  __export,
27
27
  __require
28
- } from "./ripgrep-vpjkya7h.js";
28
+ } from "./tool-vpjkya7h.js";
29
29
 
30
30
  // src/mcp/index.ts
31
31
  var exports_mcp = {};
@@ -1,12 +1,12 @@
1
- import {
2
- exports_form
3
- } from "./ripgrep-mb2awe6b.js";
4
1
  import {
5
2
  exports_permission
6
- } from "./ripgrep-7t97kqrb.js";
3
+ } from "./tool-qer0405w.js";
4
+ import {
5
+ exports_form
6
+ } from "./tool-4rf36tc3.js";
7
7
  import {
8
8
  __export
9
- } from "./ripgrep-vpjkya7h.js";
9
+ } from "./tool-vpjkya7h.js";
10
10
 
11
11
  // src/tool/plugin/question.ts
12
12
  var exports_question = {};
@@ -1,30 +1,30 @@
1
1
  import {
2
2
  exports_usage
3
- } from "./ripgrep-nn16cgj7.js";
3
+ } from "./tool-nn16cgj7.js";
4
4
  import {
5
5
  exports_context
6
- } from "./ripgrep-wf7qa8th.js";
6
+ } from "./tool-0gghny7y.js";
7
7
  import {
8
8
  llmClient
9
- } from "./ripgrep-326j4s6w.js";
9
+ } from "./tool-326j4s6w.js";
10
10
  import {
11
11
  exports_store
12
- } from "./ripgrep-nbjh3vz7.js";
12
+ } from "./tool-xrvqwh20.js";
13
13
  import {
14
14
  exports_history
15
- } from "./ripgrep-ax34jjm3.js";
15
+ } from "./tool-ax34jjm3.js";
16
16
  import {
17
17
  SessionEvent
18
- } from "./ripgrep-a83yvq99.js";
18
+ } from "./tool-a83yvq99.js";
19
19
  import {
20
20
  exports_bus
21
- } from "./ripgrep-aav32bqa.js";
21
+ } from "./tool-k25tjeqa.js";
22
22
  import {
23
23
  exports_database
24
- } from "./ripgrep-x8am67v7.js";
24
+ } from "./tool-6xm7tcj7.js";
25
25
  import {
26
26
  __export
27
- } from "./ripgrep-vpjkya7h.js";
27
+ } from "./tool-vpjkya7h.js";
28
28
 
29
29
  // src/session/title.ts
30
30
  var exports_title = {};
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  Timestamps
3
- } from "./ripgrep-sem2g21k.js";
3
+ } from "./tool-sem2g21k.js";
4
4
 
5
5
  // src/credential/sql.ts
6
6
  import { integer, sqliteTable, text } from "drizzle-orm/sqlite-core";
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  __export
3
- } from "./ripgrep-vpjkya7h.js";
3
+ } from "./tool-vpjkya7h.js";
4
4
 
5
5
  // src/config/plugin/entry-observer.ts
6
6
  var exports_entry_observer = {};
@@ -1,12 +1,12 @@
1
1
  import {
2
2
  KVTable
3
- } from "./ripgrep-wmxdh12w.js";
3
+ } from "./tool-wmxdh12w.js";
4
4
  import {
5
5
  exports_database
6
- } from "./ripgrep-x8am67v7.js";
6
+ } from "./tool-6xm7tcj7.js";
7
7
  import {
8
8
  __export
9
- } from "./ripgrep-vpjkya7h.js";
9
+ } from "./tool-vpjkya7h.js";
10
10
 
11
11
  // src/kv.ts
12
12
  var exports_kv = {};
@@ -1,39 +1,39 @@
1
1
  import {
2
2
  exports_parse
3
- } from "./ripgrep-4nrcq5vt.js";
3
+ } from "./tool-3jp0syc9.js";
4
4
  import {
5
5
  exports_location_mutation
6
- } from "./ripgrep-wkkdha61.js";
6
+ } from "./tool-np34kqfp.js";
7
7
  import {
8
8
  exports_session
9
- } from "./ripgrep-ahm1gs7p.js";
9
+ } from "./tool-663y5b2v.js";
10
10
  import {
11
11
  exports_job
12
- } from "./ripgrep-zr1qjpg2.js";
12
+ } from "./tool-zm8cj3b6.js";
13
+ import {
14
+ exports_permission
15
+ } from "./tool-qer0405w.js";
13
16
  import {
14
17
  exports_shell
15
- } from "./ripgrep-bpfy940g.js";
18
+ } from "./tool-2f626ajh.js";
16
19
  import {
17
20
  exports_result
18
- } from "./ripgrep-5y5kqjze.js";
19
- import {
20
- exports_select
21
- } from "./ripgrep-2qq12ds3.js";
21
+ } from "./tool-5y5kqjze.js";
22
22
  import {
23
23
  exports_config
24
- } from "./ripgrep-sambg1c9.js";
24
+ } from "./tool-k40cej42.js";
25
25
  import {
26
- exports_permission
27
- } from "./ripgrep-7t97kqrb.js";
26
+ exports_select
27
+ } from "./tool-2qq12ds3.js";
28
28
  import {
29
29
  exports_environment1 as exports_environment
30
- } from "./ripgrep-6r7rsav3.js";
30
+ } from "./tool-hcgt9g2n.js";
31
31
  import {
32
32
  NonNegativeInt
33
- } from "./ripgrep-j07kk359.js";
33
+ } from "./tool-j07kk359.js";
34
34
  import {
35
35
  __export
36
- } from "./ripgrep-vpjkya7h.js";
36
+ } from "./tool-vpjkya7h.js";
37
37
 
38
38
  // src/tool/plugin/shell.ts
39
39
  var exports_shell2 = {};
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  exports_provider
3
- } from "./ripgrep-68yag814.js";
3
+ } from "./tool-68yag814.js";
4
4
  import {
5
5
  __require
6
- } from "./ripgrep-vpjkya7h.js";
6
+ } from "./tool-vpjkya7h.js";
7
7
 
8
8
  // src/plugin/provider/vercel.ts
9
9
  import { Effect } from "effect";
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  __export
3
- } from "./ripgrep-vpjkya7h.js";
3
+ } from "./tool-vpjkya7h.js";
4
4
 
5
5
  // src/plugin/mcp-codemode-exclusion.ts
6
6
  var exports_mcp_codemode_exclusion = {};
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  PositiveInt
3
- } from "./ripgrep-j07kk359.js";
3
+ } from "./tool-j07kk359.js";
4
4
  import {
5
5
  __export
6
- } from "./ripgrep-vpjkya7h.js";
6
+ } from "./tool-vpjkya7h.js";
7
7
 
8
8
  // src/v1/config/attachment.ts
9
9
  var exports_attachment = {};
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  exports_provider
3
- } from "./ripgrep-68yag814.js";
3
+ } from "./tool-68yag814.js";
4
4
  import {
5
5
  __export
6
- } from "./ripgrep-vpjkya7h.js";
6
+ } from "./tool-vpjkya7h.js";
7
7
 
8
8
  // src/aisdk.ts
9
9
  var exports_aisdk = {};
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  __export
3
- } from "./ripgrep-vpjkya7h.js";
3
+ } from "./tool-vpjkya7h.js";
4
4
 
5
5
  // src/session/usage.ts
6
6
  var exports_usage = {};
@@ -1,15 +1,15 @@
1
1
  import {
2
2
  exports_location
3
- } from "./ripgrep-yjwdjfj0.js";
3
+ } from "./tool-7prkhz8c.js";
4
4
  import {
5
5
  exports_project
6
- } from "./ripgrep-1605kbke.js";
6
+ } from "./tool-k3vrnyvn.js";
7
7
  import {
8
8
  AbsolutePath
9
- } from "./ripgrep-j07kk359.js";
9
+ } from "./tool-j07kk359.js";
10
10
  import {
11
11
  __export
12
- } from "./ripgrep-vpjkya7h.js";
12
+ } from "./tool-vpjkya7h.js";
13
13
 
14
14
  // src/location-mutation.ts
15
15
  var exports_location_mutation = {};
@@ -1,12 +1,12 @@
1
1
  import {
2
2
  exports_mcp
3
- } from "./ripgrep-etbnsc4s.js";
3
+ } from "./tool-etbnsc4s.js";
4
4
  import {
5
5
  exports_app
6
- } from "./ripgrep-hs51b0fc.js";
6
+ } from "./tool-hs51b0fc.js";
7
7
  import {
8
8
  __export
9
- } from "./ripgrep-vpjkya7h.js";
9
+ } from "./tool-vpjkya7h.js";
10
10
 
11
11
  // src/plugin/websearch/parallel.ts
12
12
  var exports_parallel = {};
@@ -1,27 +1,27 @@
1
1
  import {
2
2
  exports_location_mutation
3
- } from "./ripgrep-wkkdha61.js";
3
+ } from "./tool-np34kqfp.js";
4
4
  import {
5
5
  exports_filesystem
6
- } from "./ripgrep-jqfxjn4p.js";
7
- import {
8
- exports_permission
9
- } from "./ripgrep-7t97kqrb.js";
6
+ } from "./tool-szxt6w20.js";
10
7
  import {
11
8
  exports_ripgrep
12
- } from "./ripgrep-9t1038ec.js";
9
+ } from "./tool-fptaf3g7.js";
10
+ import {
11
+ exports_permission
12
+ } from "./tool-qer0405w.js";
13
13
  import {
14
14
  exports_environment1 as exports_environment
15
- } from "./ripgrep-6r7rsav3.js";
15
+ } from "./tool-hcgt9g2n.js";
16
16
  import {
17
17
  exports_location
18
- } from "./ripgrep-yjwdjfj0.js";
18
+ } from "./tool-7prkhz8c.js";
19
19
  import {
20
20
  RelativePath
21
- } from "./ripgrep-j07kk359.js";
21
+ } from "./tool-j07kk359.js";
22
22
  import {
23
23
  __export
24
- } from "./ripgrep-vpjkya7h.js";
24
+ } from "./tool-vpjkya7h.js";
25
25
 
26
26
  // src/tool/plugin/grep.ts
27
27
  var exports_grep = {};