@opencode/core 0.0.0-dev-21289 → 0.0.0-dev-21307

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 (796) hide show
  1. package/dist/account/sql.js +1 -1
  2. package/dist/agent.js +83 -83
  3. package/dist/aisdk-native.js +91 -91
  4. package/dist/aisdk.js +96 -96
  5. package/dist/app.js +9 -9
  6. package/dist/bus.js +75 -75
  7. package/dist/chunks/{model-retry-7cx595n2.js → repository-cache-045nn9pc.js} +4 -4
  8. package/dist/chunks/{model-retry-f82ss59t.js → repository-cache-04se7enf.js} +5 -5
  9. package/dist/chunks/{model-retry-j8jw8bvb.js → repository-cache-0ar81yxa.js} +24 -24
  10. package/dist/chunks/{model-retry-461nxmbv.js → repository-cache-0cg871e2.js} +5 -5
  11. package/dist/chunks/{model-retry-fwgra7yh.js → repository-cache-0dq0w1jq.js} +8 -8
  12. package/dist/chunks/{model-retry-1pr61bwh.js → repository-cache-0f8kejsb.js} +20 -20
  13. package/dist/chunks/{model-retry-rhjbct0v.js → repository-cache-0gdmqesm.js} +4 -4
  14. package/dist/chunks/{model-retry-bkb01ez0.js → repository-cache-0rytgdhm.js} +45 -45
  15. package/dist/chunks/{model-retry-0vbcp93d.js → repository-cache-0vbcp93d.js} +2 -2
  16. package/dist/chunks/{model-retry-rf6pfzwp.js → repository-cache-161qchch.js} +1 -1
  17. package/dist/chunks/{model-retry-3hskxyfj.js → repository-cache-1b45vsnf.js} +16 -16
  18. package/dist/chunks/{model-retry-3pw8htx8.js → repository-cache-1d5acrpd.js} +1 -1
  19. package/dist/chunks/{model-retry-ydma693n.js → repository-cache-1n1cqex2.js} +19 -19
  20. package/dist/chunks/{model-retry-zkkxzzm7.js → repository-cache-1n5bn1zm.js} +19 -19
  21. package/dist/chunks/{model-retry-jq37yr04.js → repository-cache-1r08b1ze.js} +11 -11
  22. package/dist/chunks/repository-cache-1x11rq2a.js +18 -0
  23. package/dist/chunks/{model-retry-3htr7rzc.js → repository-cache-1xcax4md.js} +23 -23
  24. package/dist/chunks/{model-retry-ekp1j1b5.js → repository-cache-1yek6bdb.js} +23 -23
  25. package/dist/chunks/{model-retry-t39p8j64.js → repository-cache-20tcdtxb.js} +13 -13
  26. package/dist/chunks/{model-retry-k6jeefta.js → repository-cache-213xhah1.js} +6 -6
  27. package/dist/chunks/{model-retry-qj8x2vxm.js → repository-cache-21fhc1jw.js} +8 -8
  28. package/dist/chunks/{model-retry-13xvemqm.js → repository-cache-2hmm1e15.js} +21 -21
  29. package/dist/chunks/{model-retry-pp4zh5st.js → repository-cache-2kpvexxf.js} +192 -192
  30. package/dist/chunks/{model-retry-tz70ab5q.js → repository-cache-2r2p8fzx.js} +28 -28
  31. package/dist/chunks/{model-retry-nentvqe9.js → repository-cache-2xfc23b2.js} +24 -24
  32. package/dist/chunks/{model-retry-bhey597w.js → repository-cache-314kp7wc.js} +25 -25
  33. package/dist/chunks/{model-retry-jcjcjx0t.js → repository-cache-36ceq5gy.js} +12 -12
  34. package/dist/chunks/{model-retry-cccr210v.js → repository-cache-3cs3gdnf.js} +29 -29
  35. package/dist/chunks/{model-retry-3tnvd6qs.js → repository-cache-3frchmgr.js} +27 -27
  36. package/dist/chunks/{model-retry-s56kzkqb.js → repository-cache-3g0wgjny.js} +25 -25
  37. package/dist/chunks/{model-retry-3hepkmqq.js → repository-cache-3hepkmqq.js} +1 -1
  38. package/dist/chunks/{model-retry-3hwn7j4h.js → repository-cache-3hwn7j4h.js} +2 -2
  39. package/dist/chunks/{model-retry-m6pj9s11.js → repository-cache-3k5zc895.js} +5 -5
  40. package/dist/chunks/{model-retry-9p4ckb4p.js → repository-cache-3mkjzvwp.js} +6 -6
  41. package/dist/chunks/{model-retry-3smtnn6g.js → repository-cache-3smtnn6g.js} +1 -1
  42. package/dist/chunks/{model-retry-3tvqynh2.js → repository-cache-3tvqynh2.js} +1 -1
  43. package/dist/chunks/{model-retry-3zsf4n22.js → repository-cache-3zsf4n22.js} +1 -1
  44. package/dist/chunks/{model-retry-5ze9zbmh.js → repository-cache-4r9nnegq.js} +23 -23
  45. package/dist/chunks/{model-retry-gx4mz6q7.js → repository-cache-4rjz15yc.js} +53 -53
  46. package/dist/chunks/{model-retry-9amv0j2y.js → repository-cache-4xahkvr1.js} +22 -22
  47. package/dist/chunks/{model-retry-eaz4frst.js → repository-cache-4y6kwa1w.js} +14 -14
  48. package/dist/chunks/{model-retry-rr55ymyq.js → repository-cache-52bg0ad9.js} +30 -30
  49. package/dist/chunks/{model-retry-54ma36ye.js → repository-cache-54ma36ye.js} +1 -1
  50. package/dist/chunks/{model-retry-xagp7a1s.js → repository-cache-56chjs90.js} +18 -18
  51. package/dist/chunks/{model-retry-wp3yb7k0.js → repository-cache-593nqyk2.js} +11 -11
  52. package/dist/chunks/{model-retry-m9c6r0nn.js → repository-cache-59m3023s.js} +13 -13
  53. package/dist/chunks/{model-retry-61pea42y.js → repository-cache-5cd6vznj.js} +8 -8
  54. package/dist/chunks/{model-retry-heq5p5e1.js → repository-cache-5d10bvnq.js} +4 -4
  55. package/dist/chunks/{model-retry-5m9w47nd.js → repository-cache-5m9w47nd.js} +1 -1
  56. package/dist/chunks/{model-retry-b724djfs.js → repository-cache-5mv65mph.js} +12 -12
  57. package/dist/chunks/{model-retry-87pge11c.js → repository-cache-5w4193mt.js} +62 -62
  58. package/dist/chunks/{model-retry-m0z9j2xs.js → repository-cache-5zh2xrv1.js} +37 -37
  59. package/dist/chunks/{model-retry-6827pfxn.js → repository-cache-6827pfxn.js} +1 -1
  60. package/dist/chunks/{model-retry-paykg90t.js → repository-cache-68kcj400.js} +32 -32
  61. package/dist/chunks/{model-retry-xjt2m7da.js → repository-cache-69wpfr64.js} +6 -6
  62. package/dist/chunks/{model-retry-1th0nyd1.js → repository-cache-6dg8hvxd.js} +18 -18
  63. package/dist/chunks/{model-retry-cm7k2cvd.js → repository-cache-6mwbv2j4.js} +11 -11
  64. package/dist/chunks/{model-retry-fxjva6qe.js → repository-cache-6t9tjhsk.js} +3 -3
  65. package/dist/chunks/{model-retry-6xb47vfp.js → repository-cache-6xb47vfp.js} +1 -1
  66. package/dist/chunks/{model-retry-jv6mm5r1.js → repository-cache-6yncxzed.js} +11 -11
  67. package/dist/chunks/{model-retry-kjdm35cs.js → repository-cache-6yz0wx8n.js} +5 -5
  68. package/dist/chunks/{model-retry-e4m4ah41.js → repository-cache-76ehfx7y.js} +43 -43
  69. package/dist/chunks/{model-retry-775gj3j1.js → repository-cache-775gj3j1.js} +2 -2
  70. package/dist/chunks/{model-retry-7bmhse3q.js → repository-cache-7bmhse3q.js} +1 -1
  71. package/dist/chunks/{model-retry-fx6hsjqx.js → repository-cache-7cd0cd1q.js} +15 -15
  72. package/dist/chunks/{model-retry-7dqw4kz8.js → repository-cache-7dqw4kz8.js} +1 -1
  73. package/dist/chunks/{model-retry-0svm4j11.js → repository-cache-7ep8m250.js} +11 -11
  74. package/dist/chunks/{model-retry-99wvww9h.js → repository-cache-7sdjsr81.js} +21 -21
  75. package/dist/chunks/{model-retry-mq044fh7.js → repository-cache-7yyqgw31.js} +13 -13
  76. package/dist/chunks/{model-retry-f1kd18ve.js → repository-cache-80gay8fv.js} +4 -4
  77. package/dist/chunks/{model-retry-84txncab.js → repository-cache-84txncab.js} +1 -1
  78. package/dist/chunks/{model-retry-4psrcf1w.js → repository-cache-86m4f4y9.js} +4 -4
  79. package/dist/chunks/repository-cache-87b1qs38.js +517 -0
  80. package/dist/chunks/{model-retry-cv3t9aez.js → repository-cache-8bk6jfgk.js} +11 -11
  81. package/dist/chunks/{model-retry-c4zg4w5q.js → repository-cache-8eb4w425.js} +17 -17
  82. package/dist/chunks/repository-cache-8egray66.js +26 -0
  83. package/dist/chunks/{model-retry-vjh35t9b.js → repository-cache-8hht930z.js} +16 -16
  84. package/dist/chunks/{model-retry-8m6m0r52.js → repository-cache-8m6m0r52.js} +1 -1
  85. package/dist/chunks/{model-retry-8mywswrd.js → repository-cache-8mywswrd.js} +1 -1
  86. package/dist/chunks/{model-retry-dxqvx2bd.js → repository-cache-8qk5d3q5.js} +28 -28
  87. package/dist/chunks/{model-retry-892mrmp0.js → repository-cache-8s4zq5p9.js} +8 -8
  88. package/dist/chunks/{model-retry-197b73fz.js → repository-cache-8xebk442.js} +43 -43
  89. package/dist/chunks/{model-retry-9pf7je19.js → repository-cache-8z19p36t.js} +3 -3
  90. package/dist/chunks/{model-retry-fqqv62af.js → repository-cache-92e46w1f.js} +16 -16
  91. package/dist/chunks/{model-retry-gcsxsjs6.js → repository-cache-92m64p6f.js} +18 -18
  92. package/dist/chunks/{model-retry-7sp0jpsz.js → repository-cache-95ncemsy.js} +9 -9
  93. package/dist/chunks/{model-retry-7fccas0j.js → repository-cache-9fkx84pm.js} +33 -33
  94. package/dist/chunks/{model-retry-s3j5qb0t.js → repository-cache-9mwy3bj8.js} +18 -18
  95. package/dist/chunks/{model-retry-7v6vae4w.js → repository-cache-a20pjse5.js} +3 -3
  96. package/dist/chunks/{model-retry-v7z2bvyd.js → repository-cache-a2rpfkac.js} +4 -4
  97. package/dist/chunks/{model-retry-z3ammv4w.js → repository-cache-abshngws.js} +17 -17
  98. package/dist/chunks/{model-retry-5mrmcz26.js → repository-cache-ahgrg4fe.js} +37 -37
  99. package/dist/chunks/{model-retry-sz6fjq3m.js → repository-cache-atfxxx72.js} +5 -5
  100. package/dist/chunks/{model-retry-v91zw3m9.js → repository-cache-avhvgy5k.js} +14 -14
  101. package/dist/chunks/{model-retry-wn3g4ypj.js → repository-cache-axharnyz.js} +28 -28
  102. package/dist/chunks/{model-retry-ebs8qv75.js → repository-cache-azxbdxcx.js} +10 -10
  103. package/dist/chunks/{model-retry-ktbcyka7.js → repository-cache-b07jp80w.js} +4 -4
  104. package/dist/chunks/{model-retry-km5jseh3.js → repository-cache-b2492xjg.js} +27 -27
  105. package/dist/chunks/{model-retry-120g7207.js → repository-cache-b3pexw4z.js} +5 -5
  106. package/dist/chunks/{model-retry-5c6h6vqc.js → repository-cache-b47jeb7t.js} +9 -9
  107. package/dist/chunks/{model-retry-4n984778.js → repository-cache-b89y6y9w.js} +32 -32
  108. package/dist/chunks/{model-retry-fqyqba4e.js → repository-cache-bb4j8mte.js} +18 -18
  109. package/dist/chunks/{model-retry-wksg1me0.js → repository-cache-bghdg7bn.js} +22 -22
  110. package/dist/chunks/{model-retry-cnn1wj5a.js → repository-cache-bwva9967.js} +47 -47
  111. package/dist/chunks/{model-retry-bzeyqsqd.js → repository-cache-bzeyqsqd.js} +1 -1
  112. package/dist/chunks/{model-retry-c1fqxshp.js → repository-cache-c1fqxshp.js} +3 -3
  113. package/dist/chunks/{model-retry-2k0hjz8m.js → repository-cache-c38fscx1.js} +4 -4
  114. package/dist/chunks/{model-retry-6vmd7p6h.js → repository-cache-c63mpyjp.js} +10 -10
  115. package/dist/chunks/{model-retry-ft3hqk2c.js → repository-cache-c765mh8b.js} +9 -9
  116. package/dist/chunks/{model-retry-pfzgmgqq.js → repository-cache-cyd8k6yp.js} +30 -30
  117. package/dist/chunks/{model-retry-r0ena7ce.js → repository-cache-cyzjpqgc.js} +25 -25
  118. package/dist/chunks/{model-retry-fc3q91nw.js → repository-cache-d0ky7b2n.js} +41 -41
  119. package/dist/chunks/{model-retry-gchapswt.js → repository-cache-d0m33awg.js} +11 -11
  120. package/dist/chunks/{model-retry-ftfbzs9m.js → repository-cache-d4ex4t7m.js} +29 -29
  121. package/dist/chunks/{model-retry-cbrfz1mf.js → repository-cache-d5n8aweh.js} +31 -31
  122. package/dist/chunks/{model-retry-an6q6vkd.js → repository-cache-dn36g5j0.js} +28 -28
  123. package/dist/chunks/{model-retry-qwemz3ha.js → repository-cache-dp622nh3.js} +21 -21
  124. package/dist/chunks/{model-retry-y71avatq.js → repository-cache-dpkg50ah.js} +4 -4
  125. package/dist/chunks/{model-retry-1ze9gtzp.js → repository-cache-dqkkx36v.js} +4 -4
  126. package/dist/chunks/{model-retry-fw7x2wjw.js → repository-cache-drfn6gwd.js} +6 -6
  127. package/dist/chunks/{model-retry-57b9ws8p.js → repository-cache-drwq78ky.js} +5 -5
  128. package/dist/chunks/{model-retry-e3jwh7ys.js → repository-cache-dsc6dxmh.js} +4 -4
  129. package/dist/chunks/{model-retry-2g47h04h.js → repository-cache-e1mscf3d.js} +27 -27
  130. package/dist/chunks/{model-retry-nma959mg.js → repository-cache-e80seqcp.js} +3 -3
  131. package/dist/chunks/{model-retry-eej6y6fw.js → repository-cache-eej6y6fw.js} +2 -2
  132. package/dist/chunks/{model-retry-ef5x83kb.js → repository-cache-ef5x83kb.js} +1 -1
  133. package/dist/chunks/{model-retry-xhhxc1wd.js → repository-cache-f1mpmm74.js} +5 -5
  134. package/dist/chunks/{model-retry-gxfsy275.js → repository-cache-f1qq7sr1.js} +4 -4
  135. package/dist/chunks/{model-retry-67zw56js.js → repository-cache-f78sms3n.js} +32 -32
  136. package/dist/chunks/{model-retry-8h4b0cs1.js → repository-cache-f8k7tqpr.js} +20 -20
  137. package/dist/chunks/{model-retry-fcy631f0.js → repository-cache-fcy631f0.js} +1 -1
  138. package/dist/chunks/{model-retry-kzqw00rs.js → repository-cache-fkkvv55g.js} +16 -16
  139. package/dist/chunks/{model-retry-b27vhd2z.js → repository-cache-fm2qvscf.js} +4 -4
  140. package/dist/chunks/{model-retry-4vk656gf.js → repository-cache-fnkj6y17.js} +11 -11
  141. package/dist/chunks/{model-retry-y3qxx51z.js → repository-cache-frp158f6.js} +9 -9
  142. package/dist/chunks/{model-retry-zsg3hbgq.js → repository-cache-fyv9rghq.js} +3 -3
  143. package/dist/chunks/{model-retry-6xsr5dks.js → repository-cache-g0yf6pzc.js} +32 -32
  144. package/dist/chunks/{model-retry-kvpdra3r.js → repository-cache-g14xsv6s.js} +27 -27
  145. package/dist/chunks/{model-retry-bxqk5pf5.js → repository-cache-g686f6pq.js} +9 -9
  146. package/dist/chunks/{model-retry-mhgn79e1.js → repository-cache-gbx5w9e0.js} +51 -51
  147. package/dist/chunks/{model-retry-gd4qta3r.js → repository-cache-gd4qta3r.js} +1 -1
  148. package/dist/chunks/{model-retry-w3x15rym.js → repository-cache-ggn007s3.js} +24 -24
  149. package/dist/chunks/{model-retry-27dhaw8v.js → repository-cache-ghbjgsw7.js} +41 -41
  150. package/dist/chunks/{model-retry-8npnpzra.js → repository-cache-gy6q8pjn.js} +5 -5
  151. package/dist/chunks/{model-retry-q7gr6qfd.js → repository-cache-h1532brx.js} +31 -31
  152. package/dist/chunks/{model-retry-h6vf3j39.js → repository-cache-h6vf3j39.js} +1 -1
  153. package/dist/chunks/{model-retry-hgz4x7wa.js → repository-cache-hgz4x7wa.js} +1 -1
  154. package/dist/chunks/{model-retry-enbzs98c.js → repository-cache-ht6gncry.js} +15 -15
  155. package/dist/chunks/{model-retry-wj5d0sg5.js → repository-cache-htyafsv3.js} +23 -23
  156. package/dist/chunks/{model-retry-b4ytdsdb.js → repository-cache-hv879400.js} +8 -8
  157. package/dist/chunks/{model-retry-7jdsj2a9.js → repository-cache-hzrfc1p4.js} +3 -3
  158. package/dist/chunks/{model-retry-b2zbab51.js → repository-cache-j2wmg2r4.js} +9 -9
  159. package/dist/chunks/{model-retry-v15gsnts.js → repository-cache-ja1fgew7.js} +50 -50
  160. package/dist/chunks/{model-retry-grv8yzns.js → repository-cache-jwc1ahma.js} +36 -36
  161. package/dist/chunks/{model-retry-2xr9pws4.js → repository-cache-kb4h046s.js} +13 -13
  162. package/dist/chunks/{model-retry-sh9986p4.js → repository-cache-kd5hk5hb.js} +15 -15
  163. package/dist/chunks/{model-retry-4ndyr8vy.js → repository-cache-kg45811x.js} +18 -18
  164. package/dist/chunks/{model-retry-khmqacep.js → repository-cache-khmqacep.js} +1 -1
  165. package/dist/chunks/{model-retry-25yddszk.js → repository-cache-kmj26603.js} +6 -6
  166. package/dist/chunks/{model-retry-4dwf0nmp.js → repository-cache-kvp13sbf.js} +11 -11
  167. package/dist/chunks/{model-retry-kwb1v3vj.js → repository-cache-kwb1v3vj.js} +1 -1
  168. package/dist/chunks/{model-retry-t01qgdv4.js → repository-cache-kxz1hg5v.js} +20 -20
  169. package/dist/chunks/{model-retry-a5mx5mz2.js → repository-cache-m3n8w99j.js} +2 -2
  170. package/dist/chunks/{model-retry-g36mkr7n.js → repository-cache-m5ac8kwq.js} +26 -26
  171. package/dist/chunks/{model-retry-m9w0rfyh.js → repository-cache-m9w0rfyh.js} +1 -1
  172. package/dist/chunks/{model-retry-maspj1v3.js → repository-cache-maspj1v3.js} +1 -1
  173. package/dist/chunks/{model-retry-dvwsp6mb.js → repository-cache-mh32msp7.js} +2 -2
  174. package/dist/chunks/{model-retry-qv0gwb50.js → repository-cache-mj2j2ta6.js} +26 -26
  175. package/dist/chunks/{model-retry-h6n0e19c.js → repository-cache-n0qazxv2.js} +96 -96
  176. package/dist/chunks/{model-retry-315ef24x.js → repository-cache-n2bfkdv4.js} +8 -8
  177. package/dist/chunks/repository-cache-n48d28kv.js +257 -0
  178. package/dist/chunks/{model-retry-f5rb7yq3.js → repository-cache-n882j125.js} +34 -34
  179. package/dist/chunks/{model-retry-v7024ht3.js → repository-cache-ne4p9z9f.js} +14 -14
  180. package/dist/chunks/{model-retry-q8wdfhzq.js → repository-cache-nhf4vs0f.js} +10 -10
  181. package/dist/chunks/{model-retry-5yx9a2ww.js → repository-cache-nqx608f1.js} +8 -8
  182. package/dist/chunks/{model-retry-s0s52qkt.js → repository-cache-ntcd7r2c.js} +15 -15
  183. package/dist/chunks/{model-retry-m4gqpe3z.js → repository-cache-ntm1cgex.js} +19 -19
  184. package/dist/chunks/{model-retry-h896pcm5.js → repository-cache-p7a39gy5.js} +6 -6
  185. package/dist/chunks/{model-retry-yxx1qbg8.js → repository-cache-p8qee5dd.js} +6 -6
  186. package/dist/chunks/{model-retry-9hn6k4tm.js → repository-cache-pa8pe2x7.js} +8 -8
  187. package/dist/chunks/{model-retry-wcgsvnj5.js → repository-cache-pdp9s7c9.js} +8 -8
  188. package/dist/chunks/{model-retry-93x8jgcz.js → repository-cache-pg4vymq4.js} +36 -36
  189. package/dist/chunks/{model-retry-k2gfd0vj.js → repository-cache-pjhexp1d.js} +13 -13
  190. package/dist/chunks/{model-retry-pjvnvgmy.js → repository-cache-pjvnvgmy.js} +1 -1
  191. package/dist/chunks/{model-retry-gysb7t93.js → repository-cache-pjxggghw.js} +92 -92
  192. package/dist/chunks/{model-retry-pknna89w.js → repository-cache-pknna89w.js} +1 -1
  193. package/dist/chunks/{model-retry-zdqemt2t.js → repository-cache-px1ksxsk.js} +17 -17
  194. package/dist/chunks/{model-retry-hc9hnsc9.js → repository-cache-q3s5c4wd.js} +14 -14
  195. package/dist/chunks/{model-retry-gebtr55s.js → repository-cache-q4fmv0xv.js} +5 -5
  196. package/dist/chunks/{model-retry-vkfdnwpx.js → repository-cache-qbqbaz6q.js} +4 -4
  197. package/dist/chunks/{model-retry-mcgfs8g2.js → repository-cache-qdgns3yy.js} +11 -11
  198. package/dist/chunks/{model-retry-dkpq1bsc.js → repository-cache-qeew10aa.js} +22 -22
  199. package/dist/chunks/{model-retry-z2qvtray.js → repository-cache-qh8vdwx1.js} +8 -8
  200. package/dist/chunks/{model-retry-ef28kdsf.js → repository-cache-qj368rjp.js} +11 -11
  201. package/dist/chunks/{model-retry-rv11vn85.js → repository-cache-qkpkhkva.js} +11 -11
  202. package/dist/chunks/{model-retry-qnc92qwc.js → repository-cache-qnc92qwc.js} +1 -1
  203. package/dist/chunks/{model-retry-qsdy395h.js → repository-cache-qsdy395h.js} +1 -1
  204. package/dist/chunks/{model-retry-0wcqedam.js → repository-cache-rccq1xcq.js} +30 -30
  205. package/dist/chunks/{model-retry-rdw6cm16.js → repository-cache-rdw6cm16.js} +1 -1
  206. package/dist/chunks/{model-retry-rert0e01.js → repository-cache-rert0e01.js} +2 -2
  207. package/dist/chunks/{model-retry-rj3eygr5.js → repository-cache-rj3eygr5.js} +2 -2
  208. package/dist/chunks/{model-retry-c3z27sd6.js → repository-cache-rjpvqnxg.js} +9 -9
  209. package/dist/chunks/{model-retry-1p07q0wb.js → repository-cache-rkprpv83.js} +4 -4
  210. package/dist/chunks/{model-retry-73wqhfdm.js → repository-cache-rma03sff.js} +9 -9
  211. package/dist/chunks/{model-retry-vdetfpsp.js → repository-cache-rvjhec0b.js} +23 -23
  212. package/dist/chunks/{model-retry-1trs7s7z.js → repository-cache-ry5vqzb9.js} +18 -18
  213. package/dist/chunks/{model-retry-bx29z6jj.js → repository-cache-s8pfr3sa.js} +22 -22
  214. package/dist/chunks/{model-retry-sa8ekw3f.js → repository-cache-sa8ekw3f.js} +2 -2
  215. package/dist/chunks/{model-retry-n8v5cbt0.js → repository-cache-scnkw924.js} +20 -20
  216. package/dist/chunks/{model-retry-0bw8y30e.js → repository-cache-sd1g7zk7.js} +51 -51
  217. package/dist/chunks/{model-retry-5kzpfxft.js → repository-cache-sd8vqtn7.js} +38 -38
  218. package/dist/chunks/{model-retry-tebr7jg9.js → repository-cache-sfq9t108.js} +20 -20
  219. package/dist/chunks/{model-retry-ffptefkn.js → repository-cache-sjmbs52b.js} +53 -53
  220. package/dist/chunks/{model-retry-qt88z79s.js → repository-cache-srv5nkk5.js} +7 -7
  221. package/dist/chunks/{model-retry-syv4x271.js → repository-cache-syv4x271.js} +1 -1
  222. package/dist/chunks/{model-retry-pm9cq2zg.js → repository-cache-t406dmjj.js} +35 -35
  223. package/dist/chunks/{model-retry-tazgh4e4.js → repository-cache-tazgh4e4.js} +1 -1
  224. package/dist/chunks/{model-retry-tcezcvh9.js → repository-cache-tcezcvh9.js} +1 -1
  225. package/dist/chunks/{model-retry-wn671ba5.js → repository-cache-td613cjm.js} +69 -69
  226. package/dist/chunks/{model-retry-tdstcens.js → repository-cache-tdstcens.js} +1 -1
  227. package/dist/chunks/{model-retry-dxt0ht33.js → repository-cache-thsfkehz.js} +24 -24
  228. package/dist/chunks/{model-retry-tm0kqsz3.js → repository-cache-tm0kqsz3.js} +1 -1
  229. package/dist/chunks/{model-retry-frsszzbj.js → repository-cache-tyhwyzay.js} +14 -14
  230. package/dist/chunks/{model-retry-tyytaxap.js → repository-cache-tyytaxap.js} +1 -1
  231. package/dist/chunks/{model-retry-embw8kgh.js → repository-cache-tz4n1mmd.js} +4 -4
  232. package/dist/chunks/{model-retry-nz56sr1f.js → repository-cache-v13b12ef.js} +5 -5
  233. package/dist/chunks/{model-retry-tx0gtb9m.js → repository-cache-v210v162.js} +9 -9
  234. package/dist/chunks/{model-retry-8yaq5rsp.js → repository-cache-v45pkn04.js} +45 -45
  235. package/dist/chunks/{model-retry-c77dabg0.js → repository-cache-v5ysgbsj.js} +13 -13
  236. package/dist/chunks/{model-retry-v8chhsy3.js → repository-cache-v7h4apfv.js} +11 -11
  237. package/dist/chunks/{model-retry-v7p4zvkq.js → repository-cache-v7p4zvkq.js} +2 -2
  238. package/dist/chunks/{model-retry-eefqbebw.js → repository-cache-v8jthr7x.js} +24 -24
  239. package/dist/chunks/{model-retry-yxwmwsaj.js → repository-cache-vbybff9w.js} +21 -21
  240. package/dist/chunks/{model-retry-7pg7e456.js → repository-cache-vc7fmfhz.js} +12 -12
  241. package/dist/chunks/{model-retry-prx1gbh0.js → repository-cache-vd7s5kxy.js} +5 -5
  242. package/dist/chunks/{model-retry-veqvce7d.js → repository-cache-veqvce7d.js} +1 -1
  243. package/dist/chunks/{model-retry-npr0wz9t.js → repository-cache-vht2c7bf.js} +6 -6
  244. package/dist/chunks/{model-retry-ry6831an.js → repository-cache-vktwk5kv.js} +9 -9
  245. package/dist/chunks/{model-retry-a1hr7aq8.js → repository-cache-vnqzk1gb.js} +3 -3
  246. package/dist/chunks/{model-retry-3dt4tzwg.js → repository-cache-vp0bfksy.js} +2 -2
  247. package/dist/chunks/{model-retry-bhk1rbmp.js → repository-cache-vppn3xvj.js} +32 -32
  248. package/dist/chunks/{model-retry-yg89wztc.js → repository-cache-vpshk9t2.js} +9 -9
  249. package/dist/chunks/{model-retry-tz35mf6x.js → repository-cache-vt8aqadh.js} +5 -5
  250. package/dist/chunks/{model-retry-vzs5sf6e.js → repository-cache-vzs5sf6e.js} +1 -1
  251. package/dist/chunks/{model-retry-0cbhyycw.js → repository-cache-w29cs0xs.js} +17 -17
  252. package/dist/chunks/{model-retry-w3wsvvr9.js → repository-cache-w3wsvvr9.js} +1 -1
  253. package/dist/chunks/{model-retry-hadpnrkv.js → repository-cache-w4twd3tw.js} +23 -23
  254. package/dist/chunks/{model-retry-wd87259q.js → repository-cache-wd87259q.js} +1 -1
  255. package/dist/chunks/{model-retry-re80xzqk.js → repository-cache-wnr41wz0.js} +39 -39
  256. package/dist/chunks/{model-retry-3y377wv9.js → repository-cache-x661k3y3.js} +4 -4
  257. package/dist/chunks/{model-retry-7etyqpkv.js → repository-cache-x91navb3.js} +7 -7
  258. package/dist/chunks/{model-retry-qjch4pc3.js → repository-cache-xaf8j326.js} +15 -15
  259. package/dist/chunks/{model-retry-xe38j9wy.js → repository-cache-xdf0ykp7.js} +25 -25
  260. package/dist/chunks/{model-retry-m3vs2jhj.js → repository-cache-xf58effc.js} +16 -16
  261. package/dist/chunks/{model-retry-7kw0mv8e.js → repository-cache-xhfr7w54.js} +31 -31
  262. package/dist/chunks/{model-retry-snxa7hz3.js → repository-cache-xjqn2mzm.js} +5 -5
  263. package/dist/chunks/{model-retry-qq7kxqk9.js → repository-cache-xn26nr4q.js} +47 -47
  264. package/dist/chunks/{model-retry-scbxxt86.js → repository-cache-xt3a7zk5.js} +23 -23
  265. package/dist/chunks/{model-retry-02w8hjv9.js → repository-cache-xyx20s09.js} +11 -11
  266. package/dist/chunks/{model-retry-n6sdcjf7.js → repository-cache-y0pqx9ee.js} +40 -40
  267. package/dist/chunks/{model-retry-y1fvbwt7.js → repository-cache-y1fvbwt7.js} +1 -1
  268. package/dist/chunks/{model-retry-pq9chy9c.js → repository-cache-y45edm1f.js} +10 -10
  269. package/dist/chunks/{model-retry-fdms3n6w.js → repository-cache-y56ehv6b.js} +9 -9
  270. package/dist/chunks/{model-retry-tcpq0y9r.js → repository-cache-ycy3dsx4.js} +13 -13
  271. package/dist/chunks/{model-retry-wxrr62q2.js → repository-cache-ye1k03a4.js} +11 -11
  272. package/dist/chunks/{model-retry-1acjjqhc.js → repository-cache-yp2x3t23.js} +4 -4
  273. package/dist/chunks/{model-retry-vjtn814f.js → repository-cache-ysasxc1a.js} +11 -11
  274. package/dist/chunks/{model-retry-bjx1sjef.js → repository-cache-ywt8jp22.js} +9 -9
  275. package/dist/chunks/{model-retry-z0bkrqjs.js → repository-cache-z0bkrqjs.js} +1 -1
  276. package/dist/chunks/{model-retry-z18fegx4.js → repository-cache-z18fegx4.js} +1 -1
  277. package/dist/chunks/{model-retry-jcen6etv.js → repository-cache-z3eyvff3.js} +33 -33
  278. package/dist/chunks/{model-retry-zqma82cw.js → repository-cache-z4ev155g.js} +11 -11
  279. package/dist/chunks/{model-retry-qne3fa44.js → repository-cache-z6c3x22d.js} +5 -5
  280. package/dist/chunks/{model-retry-rkmhvsr4.js → repository-cache-z6jgmdqw.js} +30 -30
  281. package/dist/chunks/{model-retry-5fxpne0w.js → repository-cache-zqfakkws.js} +4 -4
  282. package/dist/chunks/{model-retry-zr2ceqn5.js → repository-cache-zr2ceqn5.js} +1 -1
  283. package/dist/chunks/{model-retry-hj389172.js → repository-cache-zt0s3nmc.js} +5 -5
  284. package/dist/chunks/{model-retry-yvvvp4gn.js → repository-cache-zvjhkatg.js} +8 -8
  285. package/dist/chunks/{model-retry-6xymw6hf.js → repository-cache-zxcvat1v.js} +17 -17
  286. package/dist/chunks/{model-retry-zxq2ej10.js → repository-cache-zxq2ej10.js} +1 -1
  287. package/dist/codemode/catalog.js +1 -1
  288. package/dist/codemode/instructions.js +11 -11
  289. package/dist/codemode/tool.js +3 -3
  290. package/dist/codemode/web.js +1 -1
  291. package/dist/command.js +85 -85
  292. package/dist/config/discovery.js +84 -84
  293. package/dist/config/markdown.js +1 -1
  294. package/dist/config/normalize.js +101 -101
  295. package/dist/config/plugin/agent.js +118 -118
  296. package/dist/config/plugin/command.js +208 -208
  297. package/dist/config/plugin/compaction.js +155 -155
  298. package/dist/config/plugin/compatibility.js +135 -135
  299. package/dist/config/plugin/entry-observer.js +1 -1
  300. package/dist/config/plugin/formatter.js +117 -117
  301. package/dist/config/plugin/image.js +116 -116
  302. package/dist/config/plugin/instruction.js +116 -116
  303. package/dist/config/plugin/location-watcher.js +118 -118
  304. package/dist/config/plugin/mcp.js +125 -125
  305. package/dist/config/plugin/policy.js +117 -117
  306. package/dist/config/plugin/provider.js +116 -116
  307. package/dist/config/plugin/reference.js +118 -118
  308. package/dist/config/plugin/shell.js +116 -116
  309. package/dist/config/plugin/skill-file.js +104 -104
  310. package/dist/config/plugin/skill-scan.js +1 -1
  311. package/dist/config/plugin/skill.js +138 -138
  312. package/dist/config/plugin/snapshot.js +116 -116
  313. package/dist/config/plugin/source.js +115 -115
  314. package/dist/config/plugin/tool-output.js +117 -117
  315. package/dist/config/plugin/websearch.js +115 -115
  316. package/dist/config/plugin/worktree.js +118 -118
  317. package/dist/config/variable.js +1 -1
  318. package/dist/config/watch.js +1 -1
  319. package/dist/config.js +121 -121
  320. package/dist/credential/sql.js +2 -2
  321. package/dist/credential.js +85 -85
  322. package/dist/database/database.js +72 -72
  323. package/dist/database/drizzle/effect-sqlite/driver.js +14 -14
  324. package/dist/database/drizzle/effect-sqlite/index.js +14 -14
  325. package/dist/database/drizzle/effect-sqlite/session.js +11 -11
  326. package/dist/database/drizzle/index.js +15 -15
  327. package/dist/database/drizzle/internal/drizzle-utils.js +1 -1
  328. package/dist/database/drizzle/sqlite-core/effect/count.js +1 -1
  329. package/dist/database/drizzle/sqlite-core/effect/db.js +9 -9
  330. package/dist/database/drizzle/sqlite-core/effect/delete.js +2 -2
  331. package/dist/database/drizzle/sqlite-core/effect/index.js +10 -10
  332. package/dist/database/drizzle/sqlite-core/effect/insert.js +2 -2
  333. package/dist/database/drizzle/sqlite-core/effect/query.js +1 -1
  334. package/dist/database/drizzle/sqlite-core/effect/raw.js +1 -1
  335. package/dist/database/drizzle/sqlite-core/effect/select.js +2 -2
  336. package/dist/database/drizzle/sqlite-core/effect/session.js +10 -10
  337. package/dist/database/drizzle/sqlite-core/effect/update.js +2 -2
  338. package/dist/database/drizzle.js +16 -16
  339. package/dist/database/migration/20260127222353_familiar_lady_ursula.js +1 -1
  340. package/dist/database/migration/20260211171708_add_project_commands.js +1 -1
  341. package/dist/database/migration/20260213144116_wakeful_the_professor.js +1 -1
  342. package/dist/database/migration/20260225215848_workspace.js +1 -1
  343. package/dist/database/migration/20260227213759_add_session_workspace_id.js +1 -1
  344. package/dist/database/migration/20260228203230_blue_harpoon.js +1 -1
  345. package/dist/database/migration/20260303231226_add_workspace_fields.js +1 -1
  346. package/dist/database/migration/20260309230000_move_org_to_state.js +1 -1
  347. package/dist/database/migration/20260312043431_session_message_cursor.js +1 -1
  348. package/dist/database/migration/20260323234822_events.js +1 -1
  349. package/dist/database/migration/20260410174513_workspace-name.js +1 -1
  350. package/dist/database/migration/20260413175956_chief_energizer.js +1 -1
  351. package/dist/database/migration/20260423070820_add_icon_url_override.js +1 -1
  352. package/dist/database/migration/20260427172553_slow_nightmare.js +1 -1
  353. package/dist/database/migration/20260428004200_add_session_path.js +1 -1
  354. package/dist/database/migration/20260501142318_next_venus.js +1 -1
  355. package/dist/database/migration/20260504145000_add_sync_owner.js +1 -1
  356. package/dist/database/migration/20260507164347_add_workspace_time.js +1 -1
  357. package/dist/database/migration/20260510033149_session_usage.js +1 -1
  358. package/dist/database/migration/20260511000411_data_migration_state.js +1 -1
  359. package/dist/database/migration/20260511173437_session-metadata.js +1 -1
  360. package/dist/database/migration/20260601010001_normalize_storage_paths.js +1 -1
  361. package/dist/database/migration/20260601202201_amazing_prowler.js +1 -1
  362. package/dist/database/migration/20260602002951_lowly_union_jack.js +1 -1
  363. package/dist/database/migration/20260602182828_add_project_directories.js +1 -1
  364. package/dist/database/migration/20260603001617_session_message_projection_indexes.js +1 -1
  365. package/dist/database/migration/20260603040000_session_message_projection_order.js +1 -1
  366. package/dist/database/migration/20260603141458_session_input_inbox.js +1 -1
  367. package/dist/database/migration/20260603160727_jittery_ezekiel_stane.js +1 -1
  368. package/dist/database/migration/20260604172448_event_sourced_session_input.js +1 -1
  369. package/dist/database/migration/20260605003541_add_session_context_snapshot.js +1 -1
  370. package/dist/database/migration/20260605042240_add_context_epoch_agent.js +1 -1
  371. package/dist/database/migration/20260611035744_credential.js +1 -1
  372. package/dist/database/migration/20260611192811_lush_chimera.js +1 -1
  373. package/dist/database/migration/20260612174303_project_dir_strategy.js +1 -1
  374. package/dist/database/migration/20260622142730_simplify_session_context_epoch.js +1 -1
  375. package/dist/database/migration/20260622170816_reset_v2_session_state.js +1 -1
  376. package/dist/database/migration/20260622202450_simplify_session_input.js +1 -1
  377. package/dist/database/migration/20260804233008_loose_psylocke.js +1 -1
  378. package/dist/database/migration/20260805200742_import_legacy_credentials.js +1 -1
  379. package/dist/database/migration/20260808023530_workspace_domain.js +1 -1
  380. package/dist/database/migration/20260811161259_execution_claim_attempts.js +1 -1
  381. package/dist/database/migration/20260812181746_session_inbox.js +1 -1
  382. package/dist/database/migration/20260812213948_worktree.js +1 -1
  383. package/dist/database/migration/20260819222447_session_viewed_state.js +1 -1
  384. package/dist/database/migration/20260823191254_nullable_workspace_binding.js +1 -1
  385. package/dist/database/migration/20260910120000_clear_v1_session_permission.js +1 -1
  386. package/dist/database/migration/20260923013825_project_time_active.js +1 -1
  387. package/dist/database/migration/20261007190000_azure_cli_external_credential.js +1 -1
  388. package/dist/database/migration/20261010180456_project_time_archived.js +1 -1
  389. package/dist/database/migration.gen.js +51 -51
  390. package/dist/database/migration.js +53 -53
  391. package/dist/database/path.js +2 -2
  392. package/dist/database/schema.gen.js +1 -1
  393. package/dist/database/schema.sql.js +1 -1
  394. package/dist/database/sqlite.bun.js +1 -1
  395. package/dist/database/sqlite.js +1 -1
  396. package/dist/database/sqlite.node.js +1 -1
  397. package/dist/database/sqlite.workerd.js +1 -1
  398. package/dist/database/v1-migration.bun.js +81 -81
  399. package/dist/database/v1-migration.js +1 -1
  400. package/dist/effect/app-node-builder.js +370 -370
  401. package/dist/effect/app-node-platform.js +2 -2
  402. package/dist/effect/keyed-mutex.js +3 -3
  403. package/dist/effect/websocket-constructor.js +1 -1
  404. package/dist/environment/driver.js +1 -1
  405. package/dist/environment/environment.js +95 -95
  406. package/dist/environment/exec-defaults.js +2 -2
  407. package/dist/environment/files.js +1 -1
  408. package/dist/environment/index.js +97 -97
  409. package/dist/environment/local.js +2 -2
  410. package/dist/environment/memory.js +2 -2
  411. package/dist/environment/unavailable.js +1 -1
  412. package/dist/event/sql.js +1 -1
  413. package/dist/event-logger.js +76 -76
  414. package/dist/file-access.js +106 -106
  415. package/dist/file-mutation.js +96 -96
  416. package/dist/file-retention.js +1 -1
  417. package/dist/filesystem/fff.bun.js +2 -2
  418. package/dist/filesystem/fff.js +1 -1
  419. package/dist/filesystem/fff.node.js +2 -2
  420. package/dist/filesystem/fff.workerd.js +2 -2
  421. package/dist/filesystem/location-watcher-policy.js +6 -6
  422. package/dist/filesystem/location-watcher.js +221 -221
  423. package/dist/filesystem/protected.js +1 -1
  424. package/dist/filesystem/search.js +105 -105
  425. package/dist/filesystem/watcher-binding.js +1 -1
  426. package/dist/filesystem/watcher.js +13 -13
  427. package/dist/filesystem.js +108 -108
  428. package/dist/form.js +82 -82
  429. package/dist/formatter/builtins.js +4 -4
  430. package/dist/formatter.js +89 -89
  431. package/dist/generate.js +106 -106
  432. package/dist/git.js +10 -10
  433. package/dist/github-copilot/chat/convert-to-openai-compatible-chat-messages.js +1 -1
  434. package/dist/github-copilot/chat/get-response-metadata.js +1 -1
  435. package/dist/github-copilot/chat/map-openai-compatible-finish-reason.js +1 -1
  436. package/dist/github-copilot/chat/openai-compatible-chat-language-model.js +7 -7
  437. package/dist/github-copilot/chat/openai-compatible-chat-options.js +1 -1
  438. package/dist/github-copilot/chat/openai-compatible-prepare-tools.js +1 -1
  439. package/dist/github-copilot/copilot-provider.js +17 -17
  440. package/dist/github-copilot/models.js +101 -101
  441. package/dist/github-copilot/openai-compatible-error.js +1 -1
  442. package/dist/github-copilot/responses/convert-to-openai-responses-input.js +1 -1
  443. package/dist/github-copilot/responses/map-openai-responses-finish-reason.js +1 -1
  444. package/dist/github-copilot/responses/openai-error.js +1 -1
  445. package/dist/github-copilot/responses/openai-responses-language-model.js +10 -10
  446. package/dist/github-copilot/responses/openai-responses-prepare-tools.js +6 -6
  447. package/dist/github-copilot/responses/tool/code-interpreter.js +1 -1
  448. package/dist/github-copilot/responses/tool/file-search.js +1 -1
  449. package/dist/github-copilot/responses/tool/image-generation.js +1 -1
  450. package/dist/github-copilot/responses/tool/web-search-preview.js +1 -1
  451. package/dist/github-copilot/responses/tool/web-search.js +1 -1
  452. package/dist/image/photon.js +2 -2
  453. package/dist/image.js +6 -6
  454. package/dist/instance/service.js +5 -5
  455. package/dist/instance.js +361 -361
  456. package/dist/instruction-discovery.js +86 -86
  457. package/dist/instructions/builtins.js +89 -89
  458. package/dist/instructions/index.js +3 -3
  459. package/dist/integration/connection.js +3 -3
  460. package/dist/integration.js +91 -91
  461. package/dist/job.js +80 -80
  462. package/dist/kv/sql.js +2 -2
  463. package/dist/kv.js +75 -75
  464. package/dist/location-activity.js +136 -136
  465. package/dist/location-lifecycle.js +105 -105
  466. package/dist/location-service-map.js +88 -88
  467. package/dist/location-services.js +358 -358
  468. package/dist/location.js +91 -91
  469. package/dist/managed-policy.js +8 -8
  470. package/dist/mcp/client.js +93 -93
  471. package/dist/mcp/index.js +111 -111
  472. package/dist/mcp/instructions.js +131 -131
  473. package/dist/mcp/oauth.js +80 -80
  474. package/dist/mcp/stdio.js +92 -92
  475. package/dist/mime.js +1 -1
  476. package/dist/modal/models.js +101 -101
  477. package/dist/model-resolver.js +100 -100
  478. package/dist/model-retry.js +1 -1
  479. package/dist/model.js +100 -100
  480. package/dist/models-dev.js +109 -109
  481. package/dist/oauth/page.js +1 -1
  482. package/dist/permission/saved.js +88 -88
  483. package/dist/permission/sql.js +5 -5
  484. package/dist/permission.js +111 -111
  485. package/dist/persistent-pty/binary.bun.js +1 -1
  486. package/dist/persistent-pty/daemon.js +1 -1
  487. package/dist/persistent-pty/index.js +92 -92
  488. package/dist/persistent-pty/pty-binding.js +1 -1
  489. package/dist/persistent-pty.js +77 -77
  490. package/dist/plugin/agent.js +78 -78
  491. package/dist/plugin/command.js +104 -104
  492. package/dist/plugin/hooks.js +5 -5
  493. package/dist/plugin/host.js +212 -212
  494. package/dist/plugin/identity.js +3 -3
  495. package/dist/plugin/instance.js +5 -5
  496. package/dist/plugin/internal.js +332 -332
  497. package/dist/plugin/mcp-codemode-defaults.js +3 -3
  498. package/dist/plugin/models-dev.js +98 -98
  499. package/dist/plugin/module.js +117 -117
  500. package/dist/plugin/optimize.js +2 -2
  501. package/dist/plugin/plan.js +104 -104
  502. package/dist/plugin/promise.js +1 -1
  503. package/dist/plugin/provider/amazon-bedrock.js +92 -92
  504. package/dist/plugin/provider/azure.js +116 -116
  505. package/dist/plugin/provider/cerebras.js +1 -1
  506. package/dist/plugin/provider/chatgpt.js +116 -116
  507. package/dist/plugin/provider/cloudflare-ai-gateway.js +113 -113
  508. package/dist/plugin/provider/cloudflare-workers-ai.js +114 -114
  509. package/dist/plugin/provider/cohere.js +2 -2
  510. package/dist/plugin/provider/configured.js +112 -112
  511. package/dist/plugin/provider/databricks.js +1 -1
  512. package/dist/plugin/provider/digitalocean.js +95 -95
  513. package/dist/plugin/provider/dynamic.js +2 -2
  514. package/dist/plugin/provider/factory.js +1 -1
  515. package/dist/plugin/provider/github-copilot.js +97 -97
  516. package/dist/plugin/provider/gitlab.js +95 -95
  517. package/dist/plugin/provider/google-vertex.js +113 -113
  518. package/dist/plugin/provider/kilo.js +1 -1
  519. package/dist/plugin/provider/llmgateway.js +80 -80
  520. package/dist/plugin/provider/lmstudio.js +125 -125
  521. package/dist/plugin/provider/local.js +122 -122
  522. package/dist/plugin/provider/modal.js +94 -94
  523. package/dist/plugin/provider/neon.js +1 -1
  524. package/dist/plugin/provider/nvidia.js +1 -1
  525. package/dist/plugin/provider/ollama.js +125 -125
  526. package/dist/plugin/provider/openai.js +116 -116
  527. package/dist/plugin/provider/opencode.js +100 -100
  528. package/dist/plugin/provider/openrouter.js +93 -93
  529. package/dist/plugin/provider/perplexity.js +2 -2
  530. package/dist/plugin/provider/poe.js +81 -81
  531. package/dist/plugin/provider/prompt-cache-key.js +1 -1
  532. package/dist/plugin/provider/sap-ai-core.js +93 -93
  533. package/dist/plugin/provider/sdk-factory.js +1 -1
  534. package/dist/plugin/provider/snowflake-cortex.js +115 -115
  535. package/dist/plugin/provider/vercel.js +92 -92
  536. package/dist/plugin/provider/vllm.js +125 -125
  537. package/dist/plugin/provider/xai.js +93 -93
  538. package/dist/plugin/provider/zenmux.js +1 -1
  539. package/dist/plugin/provider.js +168 -168
  540. package/dist/plugin/sdk.js +78 -78
  541. package/dist/plugin/service.js +3 -3
  542. package/dist/plugin/skill.js +134 -134
  543. package/dist/plugin/source-directory.js +1 -1
  544. package/dist/plugin/supervisor.js +351 -351
  545. package/dist/plugin/tool-input-repair.js +4 -4
  546. package/dist/plugin/update.js +6 -6
  547. package/dist/plugin/vcs/git.js +88 -88
  548. package/dist/plugin/vcs/hg.js +88 -88
  549. package/dist/plugin/verbosity.js +95 -95
  550. package/dist/plugin/warming.js +114 -114
  551. package/dist/plugin/websearch/exa.js +5 -5
  552. package/dist/plugin/websearch/firecrawl.js +6 -6
  553. package/dist/plugin/websearch/index.js +9 -9
  554. package/dist/plugin/websearch/mcp.js +6 -6
  555. package/dist/plugin/websearch/parallel.js +8 -8
  556. package/dist/plugin/websearch/tavily.js +6 -6
  557. package/dist/plugin/websearch/tinyfish.js +6 -6
  558. package/dist/plugin.js +219 -219
  559. package/dist/project/schema.js +8 -8
  560. package/dist/project/sql.js +4 -4
  561. package/dist/project.js +92 -92
  562. package/dist/provider.js +99 -99
  563. package/dist/pty/protocol.js +1 -1
  564. package/dist/pty/ticket.js +1 -1
  565. package/dist/pty.js +101 -101
  566. package/dist/reference/instructions.js +89 -89
  567. package/dist/reference.js +91 -91
  568. package/dist/repository-cache.js +83 -83
  569. package/dist/repository.js +1 -1
  570. package/dist/ripgrep/binary.js +2 -2
  571. package/dist/ripgrep.js +99 -99
  572. package/dist/rpc.js +88 -88
  573. package/dist/schema.js +1 -1
  574. package/dist/session/affinity.js +1 -1
  575. package/dist/session/command.js +76 -76
  576. package/dist/session/compaction.js +134 -134
  577. package/dist/session/context.js +155 -155
  578. package/dist/session/diff.js +90 -90
  579. package/dist/session/environment.js +5 -5
  580. package/dist/session/error.js +5 -5
  581. package/dist/session/event.js +1 -1
  582. package/dist/session/execution/restart.js +218 -218
  583. package/dist/session/execution.js +127 -127
  584. package/dist/session/generate.js +155 -155
  585. package/dist/session/history.js +13 -13
  586. package/dist/session/inbox.js +95 -95
  587. package/dist/session/info.js +3 -3
  588. package/dist/session/instruction-entry.js +81 -81
  589. package/dist/session/instruction-state.js +8 -8
  590. package/dist/session/instructions.js +95 -95
  591. package/dist/session/message-updater.js +4 -4
  592. package/dist/session/message.js +1 -1
  593. package/dist/session/model-request.js +122 -122
  594. package/dist/session/model-transport.js +9 -9
  595. package/dist/session/move.js +131 -131
  596. package/dist/session/projector.js +91 -91
  597. package/dist/session/prompt.js +107 -107
  598. package/dist/session/recent-text.js +1 -1
  599. package/dist/session/revert.js +96 -96
  600. package/dist/session/run-coordinator.js +3 -3
  601. package/dist/session/runner/index.js +3 -3
  602. package/dist/session/runner/llm.js +225 -225
  603. package/dist/session/runner/max-steps.js +1 -1
  604. package/dist/session/runner/model.js +100 -100
  605. package/dist/session/runner/publish-llm-event.js +115 -115
  606. package/dist/session/runner/retry.js +5 -5
  607. package/dist/session/runner/step.js +128 -128
  608. package/dist/session/runner/to-llm-message.js +14 -14
  609. package/dist/session/schema.js +5 -5
  610. package/dist/session/session.js +164 -164
  611. package/dist/session/shell.js +130 -130
  612. package/dist/session/skill.js +105 -105
  613. package/dist/session/sql.js +5 -5
  614. package/dist/session/stats.js +77 -77
  615. package/dist/session/store.js +89 -89
  616. package/dist/session/subagent-completion.js +1 -1
  617. package/dist/session/subagent-job.js +202 -202
  618. package/dist/session/system-prompt.js +3 -3
  619. package/dist/session/title.js +159 -159
  620. package/dist/session/to-session-error.js +113 -113
  621. package/dist/session/transfer.js +217 -217
  622. package/dist/session/usage.js +1 -1
  623. package/dist/session.js +214 -214
  624. package/dist/shell/parse.js +6 -6
  625. package/dist/shell/result.js +1 -1
  626. package/dist/shell/scan.js +1 -1
  627. package/dist/shell/select.js +13 -13
  628. package/dist/shell.js +132 -132
  629. package/dist/skill/discovery.js +6 -6
  630. package/dist/skill/instructions.js +109 -109
  631. package/dist/skill.js +114 -114
  632. package/dist/snapshot.js +93 -93
  633. package/dist/state.js +1 -1
  634. package/dist/tool/html-markdown.js +1 -1
  635. package/dist/tool/http-body.js +1 -1
  636. package/dist/tool/mcp.js +128 -128
  637. package/dist/tool/plugin/edit.js +122 -122
  638. package/dist/tool/plugin/file-diff.js +1 -1
  639. package/dist/tool/plugin/glob.js +122 -122
  640. package/dist/tool/plugin/grep.js +126 -126
  641. package/dist/tool/plugin/mcp-resource.js +119 -119
  642. package/dist/tool/plugin/opencode.js +111 -111
  643. package/dist/tool/plugin/patch.js +124 -124
  644. package/dist/tool/plugin/question.js +105 -105
  645. package/dist/tool/plugin/read.js +127 -127
  646. package/dist/tool/plugin/shell.js +209 -209
  647. package/dist/tool/plugin/skill.js +115 -115
  648. package/dist/tool/plugin/subagent.js +211 -211
  649. package/dist/tool/plugin/todo.js +138 -138
  650. package/dist/tool/plugin/webfetch.js +108 -108
  651. package/dist/tool/plugin/websearch.js +114 -114
  652. package/dist/tool/plugin/write.js +124 -124
  653. package/dist/tool/read-filesystem.js +98 -98
  654. package/dist/tool/runtime.js +1 -1
  655. package/dist/tool-output.js +7 -7
  656. package/dist/tool.js +16 -16
  657. package/dist/util/error-summary.js +1 -1
  658. package/dist/util/error.js +1 -1
  659. package/dist/util/git-executable.js +2 -2
  660. package/dist/util/iife.js +1 -1
  661. package/dist/util/lazy.js +1 -1
  662. package/dist/util/slug.js +1 -1
  663. package/dist/util/token.js +1 -1
  664. package/dist/util/which.js +1 -1
  665. package/dist/util/wildcard.js +1 -1
  666. package/dist/v1/config/agent.js +5 -5
  667. package/dist/v1/config/command.js +3 -3
  668. package/dist/v1/config/error.js +2 -2
  669. package/dist/v1/config/mcp.js +4 -4
  670. package/dist/v1/config/migrate.js +94 -94
  671. package/dist/v1/config/permission.js +3 -3
  672. package/dist/v1/config/plugin.js +1 -1
  673. package/dist/v1/config/provider-options.js +1 -1
  674. package/dist/v1/config/provider.js +4 -4
  675. package/dist/variant.js +93 -93
  676. package/dist/vcs/patch.js +1 -1
  677. package/dist/vcs.js +91 -91
  678. package/dist/voice.js +90 -90
  679. package/dist/websearch.js +86 -86
  680. package/dist/wellknown/plugin.js +78 -78
  681. package/dist/wellknown.js +81 -81
  682. package/dist/workspace/driver.js +7 -7
  683. package/dist/workspace/sql.js +1 -1
  684. package/dist/workspace.js +84 -84
  685. package/dist/worktree/directory.js +2 -2
  686. package/dist/worktree/git.js +10 -10
  687. package/dist/worktree/sql.js +5 -5
  688. package/dist/worktree/strategies.js +91 -91
  689. package/dist/worktree.js +98 -98
  690. package/package.json +8 -8
  691. package/dist/chunks/model-retry-374yendz.js +0 -26
  692. package/dist/chunks/model-retry-9yd845wg.js +0 -517
  693. package/dist/chunks/model-retry-9zdhvgqs.js +0 -18
  694. package/dist/chunks/model-retry-zw8e9rvj.js +0 -257
  695. /package/dist/chunks/{model-retry-0qkdqm5v.js → repository-cache-0qkdqm5v.js} +0 -0
  696. /package/dist/chunks/{model-retry-0zkw76rk.js → repository-cache-0zkw76rk.js} +0 -0
  697. /package/dist/chunks/{model-retry-17cy0kzp.js → repository-cache-17cy0kzp.js} +0 -0
  698. /package/dist/chunks/{model-retry-1cnp2v09.js → repository-cache-1cnp2v09.js} +0 -0
  699. /package/dist/chunks/{model-retry-1kg9ymc8.js → repository-cache-1kg9ymc8.js} +0 -0
  700. /package/dist/chunks/{model-retry-24dcb14g.js → repository-cache-24dcb14g.js} +0 -0
  701. /package/dist/chunks/{model-retry-2710q6r3.js → repository-cache-2710q6r3.js} +0 -0
  702. /package/dist/chunks/{model-retry-2axfhc9x.js → repository-cache-2axfhc9x.js} +0 -0
  703. /package/dist/chunks/{model-retry-2bv980vf.js → repository-cache-2bv980vf.js} +0 -0
  704. /package/dist/chunks/{model-retry-2c3vjs8z.js → repository-cache-2c3vjs8z.js} +0 -0
  705. /package/dist/chunks/{model-retry-359p4xyc.js → repository-cache-359p4xyc.js} +0 -0
  706. /package/dist/chunks/{model-retry-3asan66x.js → repository-cache-3asan66x.js} +0 -0
  707. /package/dist/chunks/{model-retry-3t0ybcrp.js → repository-cache-3t0ybcrp.js} +0 -0
  708. /package/dist/chunks/{model-retry-3v8g72cx.js → repository-cache-3v8g72cx.js} +0 -0
  709. /package/dist/chunks/{model-retry-3wcehsnq.js → repository-cache-3wcehsnq.js} +0 -0
  710. /package/dist/chunks/{model-retry-43n2bw4t.js → repository-cache-43n2bw4t.js} +0 -0
  711. /package/dist/chunks/{model-retry-4knz6hnm.js → repository-cache-4knz6hnm.js} +0 -0
  712. /package/dist/chunks/{model-retry-4vcrnpx2.js → repository-cache-4vcrnpx2.js} +0 -0
  713. /package/dist/chunks/{model-retry-4y7fprxs.js → repository-cache-4y7fprxs.js} +0 -0
  714. /package/dist/chunks/{model-retry-53557ph1.js → repository-cache-53557ph1.js} +0 -0
  715. /package/dist/chunks/{model-retry-550bvhaj.js → repository-cache-550bvhaj.js} +0 -0
  716. /package/dist/chunks/{model-retry-6prwharc.js → repository-cache-6prwharc.js} +0 -0
  717. /package/dist/chunks/{model-retry-6q2bdcd1.js → repository-cache-6q2bdcd1.js} +0 -0
  718. /package/dist/chunks/{model-retry-7akdwqpd.js → repository-cache-7akdwqpd.js} +0 -0
  719. /package/dist/chunks/{model-retry-7m9af43g.js → repository-cache-7m9af43g.js} +0 -0
  720. /package/dist/chunks/{model-retry-822emrt2.js → repository-cache-822emrt2.js} +0 -0
  721. /package/dist/chunks/{model-retry-84wd9syh.js → repository-cache-84wd9syh.js} +0 -0
  722. /package/dist/chunks/{model-retry-88xbtdfr.js → repository-cache-88xbtdfr.js} +0 -0
  723. /package/dist/chunks/{model-retry-8n3pysct.js → repository-cache-8n3pysct.js} +0 -0
  724. /package/dist/chunks/{model-retry-8wj87zfr.js → repository-cache-8wj87zfr.js} +0 -0
  725. /package/dist/chunks/{model-retry-9a4afbnw.js → repository-cache-9a4afbnw.js} +0 -0
  726. /package/dist/chunks/{model-retry-9rqn6x4v.js → repository-cache-9rqn6x4v.js} +0 -0
  727. /package/dist/chunks/{model-retry-a6k6eb26.js → repository-cache-a6k6eb26.js} +0 -0
  728. /package/dist/chunks/{model-retry-af5trqkr.js → repository-cache-af5trqkr.js} +0 -0
  729. /package/dist/chunks/{model-retry-afrmfg78.js → repository-cache-afrmfg78.js} +0 -0
  730. /package/dist/chunks/{model-retry-aqzs7mqg.js → repository-cache-aqzs7mqg.js} +0 -0
  731. /package/dist/chunks/{model-retry-atq7p7m5.js → repository-cache-atq7p7m5.js} +0 -0
  732. /package/dist/chunks/{model-retry-bkyjaxrp.js → repository-cache-bkyjaxrp.js} +0 -0
  733. /package/dist/chunks/{model-retry-bmr6ed5q.js → repository-cache-bmr6ed5q.js} +0 -0
  734. /package/dist/chunks/{model-retry-cf4snx6d.js → repository-cache-cf4snx6d.js} +0 -0
  735. /package/dist/chunks/{model-retry-cvy3z8tj.js → repository-cache-cvy3z8tj.js} +0 -0
  736. /package/dist/chunks/{model-retry-d9fn303g.js → repository-cache-d9fn303g.js} +0 -0
  737. /package/dist/chunks/{model-retry-d9jj8t3e.js → repository-cache-d9jj8t3e.js} +0 -0
  738. /package/dist/chunks/{model-retry-dajrwvna.js → repository-cache-dajrwvna.js} +0 -0
  739. /package/dist/chunks/{model-retry-dap0rakb.js → repository-cache-dap0rakb.js} +0 -0
  740. /package/dist/chunks/{model-retry-df08tz66.js → repository-cache-df08tz66.js} +0 -0
  741. /package/dist/chunks/{model-retry-dy18nga0.js → repository-cache-dy18nga0.js} +0 -0
  742. /package/dist/chunks/{model-retry-e3qxr5gk.js → repository-cache-e3qxr5gk.js} +0 -0
  743. /package/dist/chunks/{model-retry-e5kj55wp.js → repository-cache-e5kj55wp.js} +0 -0
  744. /package/dist/chunks/{model-retry-e73j6tqm.js → repository-cache-e73j6tqm.js} +0 -0
  745. /package/dist/chunks/{model-retry-ec1grn59.js → repository-cache-ec1grn59.js} +0 -0
  746. /package/dist/chunks/{model-retry-eh3zwz77.js → repository-cache-eh3zwz77.js} +0 -0
  747. /package/dist/chunks/{model-retry-emrn6kk6.js → repository-cache-emrn6kk6.js} +0 -0
  748. /package/dist/chunks/{model-retry-f0mxakyp.js → repository-cache-f0mxakyp.js} +0 -0
  749. /package/dist/chunks/{model-retry-f6n9ztr4.js → repository-cache-f6n9ztr4.js} +0 -0
  750. /package/dist/chunks/{model-retry-faypxj3z.js → repository-cache-faypxj3z.js} +0 -0
  751. /package/dist/chunks/{model-retry-fd410y7t.js → repository-cache-fd410y7t.js} +0 -0
  752. /package/dist/chunks/{model-retry-g4wezp1m.js → repository-cache-g4wezp1m.js} +0 -0
  753. /package/dist/chunks/{model-retry-g86h250q.js → repository-cache-g86h250q.js} +0 -0
  754. /package/dist/chunks/{model-retry-gebd4c9n.js → repository-cache-gebd4c9n.js} +0 -0
  755. /package/dist/chunks/{model-retry-gftt206x.js → repository-cache-gftt206x.js} +0 -0
  756. /package/dist/chunks/{model-retry-hcxmzztb.js → repository-cache-hcxmzztb.js} +0 -0
  757. /package/dist/chunks/{model-retry-hk9envan.js → repository-cache-hk9envan.js} +0 -0
  758. /package/dist/chunks/{model-retry-j2ntwpah.js → repository-cache-j2ntwpah.js} +0 -0
  759. /package/dist/chunks/{model-retry-j5zkgpj8.js → repository-cache-j5zkgpj8.js} +0 -0
  760. /package/dist/chunks/{model-retry-jjkms2e6.js → repository-cache-jjkms2e6.js} +0 -0
  761. /package/dist/chunks/{model-retry-jr7sbwjy.js → repository-cache-jr7sbwjy.js} +0 -0
  762. /package/dist/chunks/{model-retry-jwfs4k6c.js → repository-cache-jwfs4k6c.js} +0 -0
  763. /package/dist/chunks/{model-retry-jze0r7bz.js → repository-cache-jze0r7bz.js} +0 -0
  764. /package/dist/chunks/{model-retry-jzg6c2d5.js → repository-cache-jzg6c2d5.js} +0 -0
  765. /package/dist/chunks/{model-retry-m18g726c.js → repository-cache-m18g726c.js} +0 -0
  766. /package/dist/chunks/{model-retry-mp448xyj.js → repository-cache-mp448xyj.js} +0 -0
  767. /package/dist/chunks/{model-retry-msx8hqn2.js → repository-cache-msx8hqn2.js} +0 -0
  768. /package/dist/chunks/{model-retry-n05xt0ee.js → repository-cache-n05xt0ee.js} +0 -0
  769. /package/dist/chunks/{model-retry-n3j8tn72.js → repository-cache-n3j8tn72.js} +0 -0
  770. /package/dist/chunks/{model-retry-njntx4h6.js → repository-cache-njntx4h6.js} +0 -0
  771. /package/dist/chunks/{model-retry-pkyv6v7h.js → repository-cache-pkyv6v7h.js} +0 -0
  772. /package/dist/chunks/{model-retry-pyv0edze.js → repository-cache-pyv0edze.js} +0 -0
  773. /package/dist/chunks/{model-retry-q3sfg36h.js → repository-cache-q3sfg36h.js} +0 -0
  774. /package/dist/chunks/{model-retry-q74kybfr.js → repository-cache-q74kybfr.js} +0 -0
  775. /package/dist/chunks/{model-retry-qaymkmh1.js → repository-cache-qaymkmh1.js} +0 -0
  776. /package/dist/chunks/{model-retry-qb87gjwd.js → repository-cache-qb87gjwd.js} +0 -0
  777. /package/dist/chunks/{model-retry-qfa1cgps.js → repository-cache-qfa1cgps.js} +0 -0
  778. /package/dist/chunks/{model-retry-qg3g05ea.js → repository-cache-qg3g05ea.js} +0 -0
  779. /package/dist/chunks/{model-retry-qrg20bc0.js → repository-cache-qrg20bc0.js} +0 -0
  780. /package/dist/chunks/{model-retry-rcb2kzg1.js → repository-cache-rcb2kzg1.js} +0 -0
  781. /package/dist/chunks/{model-retry-sdp7kfr6.js → repository-cache-sdp7kfr6.js} +0 -0
  782. /package/dist/chunks/{model-retry-ssg3fenm.js → repository-cache-ssg3fenm.js} +0 -0
  783. /package/dist/chunks/{model-retry-ve7vex1e.js → repository-cache-ve7vex1e.js} +0 -0
  784. /package/dist/chunks/{model-retry-w803qqfp.js → repository-cache-w803qqfp.js} +0 -0
  785. /package/dist/chunks/{model-retry-wc3fc9cn.js → repository-cache-wc3fc9cn.js} +0 -0
  786. /package/dist/chunks/{model-retry-wer8tq1h.js → repository-cache-wer8tq1h.js} +0 -0
  787. /package/dist/chunks/{model-retry-wjj7prxr.js → repository-cache-wjj7prxr.js} +0 -0
  788. /package/dist/chunks/{model-retry-wtztk69x.js → repository-cache-wtztk69x.js} +0 -0
  789. /package/dist/chunks/{model-retry-x0ckcb58.js → repository-cache-x0ckcb58.js} +0 -0
  790. /package/dist/chunks/{model-retry-x61499pn.js → repository-cache-x61499pn.js} +0 -0
  791. /package/dist/chunks/{model-retry-y44na4kk.js → repository-cache-y44na4kk.js} +0 -0
  792. /package/dist/chunks/{model-retry-y8f7s663.js → repository-cache-y8f7s663.js} +0 -0
  793. /package/dist/chunks/{model-retry-ygaqb7jw.js → repository-cache-ygaqb7jw.js} +0 -0
  794. /package/dist/chunks/{model-retry-ym463w8f.js → repository-cache-ym463w8f.js} +0 -0
  795. /package/dist/chunks/{model-retry-z5v4ffb3.js → repository-cache-z5v4ffb3.js} +0 -0
  796. /package/dist/chunks/{model-retry-z9919s4g.js → repository-cache-z9919s4g.js} +0 -0
@@ -1,39 +1,39 @@
1
1
  import {
2
2
  key2
3
- } from "./model-retry-3y377wv9.js";
3
+ } from "./repository-cache-x661k3y3.js";
4
4
  import {
5
- Service83
6
- } from "./model-retry-fqqv62af.js";
5
+ Service84
6
+ } from "./repository-cache-92e46w1f.js";
7
7
  import {
8
8
  OAuth3,
9
- Event21
10
- } from "./model-retry-7fccas0j.js";
9
+ Event19
10
+ } from "./repository-cache-9fkx84pm.js";
11
11
  import {
12
- ID16,
12
+ ID13,
13
13
  MethodID2
14
- } from "./model-retry-q7gr6qfd.js";
14
+ } from "./repository-cache-h1532brx.js";
15
15
  import {
16
- ID13,
16
+ ID12,
17
17
  aisdk2,
18
18
  mergeOverlay2,
19
- Service74
20
- } from "./model-retry-cbrfz1mf.js";
19
+ Service76
20
+ } from "./repository-cache-d5n8aweh.js";
21
21
  import {
22
- ID12
23
- } from "./model-retry-rr55ymyq.js";
22
+ ID10
23
+ } from "./repository-cache-52bg0ad9.js";
24
24
  import {
25
- load2,
26
- derive2
27
- } from "./model-retry-9amv0j2y.js";
25
+ load3,
26
+ derive3
27
+ } from "./repository-cache-4xahkvr1.js";
28
28
  import {
29
29
  useragent2
30
- } from "./model-retry-mcgfs8g2.js";
30
+ } from "./repository-cache-qdgns3yy.js";
31
31
  import {
32
- ID10
33
- } from "./model-retry-j8jw8bvb.js";
32
+ ID6
33
+ } from "./repository-cache-0ar81yxa.js";
34
34
  import {
35
35
  get5
36
- } from "./model-retry-54ma36ye.js";
36
+ } from "./repository-cache-54ma36ye.js";
37
37
 
38
38
  // src/plugin/provider/github-copilot.ts
39
39
  import { Effect, Option, Schema, Semaphore, Stream } from "effect";
@@ -65,7 +65,7 @@ var decodeUser = Schema.decodeUnknownOption(User);
65
65
  var JsonBody = Schema.fromJsonString(Schema.Unknown);
66
66
  var decodeBody = Schema.decodeUnknownOption(JsonBody);
67
67
  var oauth = (app) => ({
68
- integrationID: ID16.make("github-copilot"),
68
+ integrationID: ID13.make("github-copilot"),
69
69
  method: {
70
70
  id: methodID,
71
71
  type: "oauth",
@@ -163,8 +163,8 @@ var oauth = (app) => ({
163
163
  var GithubCopilotPlugin2 = define({
164
164
  id: "opencode.provider.github.copilot",
165
165
  effect: Effect.fn(function* (ctx) {
166
- const providers = yield* Service74;
167
- const bus = yield* Service83;
166
+ const providers = yield* Service76;
167
+ const bus = yield* Service84;
168
168
  const loading = Semaphore.makeUnsafe(1);
169
169
  const loaded = {};
170
170
  const load = Effect.fn("GithubCopilotPlugin.load")(function* () {
@@ -180,9 +180,9 @@ var GithubCopilotPlugin2 = define({
180
180
  return;
181
181
  }
182
182
  const url = copilotBaseURL2(credential.metadata) ?? baseURL();
183
- const provider = yield* providers.get(ID13.githubCopilot);
183
+ const provider = yield* providers.get(ID12.githubCopilot);
184
184
  const remote = yield* Effect.tryPromise({
185
- try: () => load2(url, {
185
+ try: () => load3(url, {
186
186
  ...provider?.headers,
187
187
  Authorization: `Bearer ${credential.refresh}`,
188
188
  "User-Agent": useragent2(ctx.app),
@@ -202,13 +202,13 @@ var GithubCopilotPlugin2 = define({
202
202
  editor.method.update(oauth(ctx.app));
203
203
  });
204
204
  yield* ctx.provider.transform((evt) => {
205
- const item = evt.get(ID13.githubCopilot);
205
+ const item = evt.get(ID12.githubCopilot);
206
206
  if (!item)
207
207
  return;
208
208
  if (loaded.models) {
209
209
  evt.add({
210
210
  info: item.provider,
211
- models: Array.from(derive2(loaded.baseURL ?? baseURL(), loaded.models, Array.from(item.models.values())).values()),
211
+ models: Array.from(derive3(loaded.baseURL ?? baseURL(), loaded.models, Array.from(item.models.values())).values()),
212
212
  sourceConnection: loaded.connection
213
213
  });
214
214
  return;
@@ -230,17 +230,17 @@ var GithubCopilotPlugin2 = define({
230
230
  }
231
231
  });
232
232
  yield* ctx.model.transform((models) => {
233
- if (models.get(ID13.githubCopilot, ID12.make("gpt-5-chat-latest"))) {
234
- models.update(ID13.githubCopilot, ID12.make("gpt-5-chat-latest"), (model) => {
233
+ if (models.get(ID12.githubCopilot, ID10.make("gpt-5-chat-latest"))) {
234
+ models.update(ID12.githubCopilot, ID10.make("gpt-5-chat-latest"), (model) => {
235
235
  model.enabled = false;
236
236
  });
237
237
  }
238
238
  });
239
239
  const refresh = () => loading.withPermit(load().pipe(Effect.andThen(ctx.provider.reload())));
240
- yield* bus.subscribe(Event21.Switched).pipe(Stream.filter((event) => event.data.integrationID === ID16.make("github-copilot")), Stream.runForEach(refresh), Effect.forkScoped({ startImmediately: true }));
240
+ yield* bus.subscribe(Event19.Switched).pipe(Stream.filter((event) => event.data.integrationID === ID13.make("github-copilot")), Stream.runForEach(refresh), Effect.forkScoped({ startImmediately: true }));
241
241
  yield* refresh().pipe(Effect.forkScoped);
242
242
  yield* ctx.aisdk.hook("sdk", Effect.fn(function* (evt) {
243
- if (evt.model.providerID !== ID13.githubCopilot)
243
+ if (evt.model.providerID !== ID12.githubCopilot)
244
244
  return;
245
245
  if (evt.package !== "@ai-sdk/github-copilot")
246
246
  return;
@@ -249,7 +249,7 @@ var GithubCopilotPlugin2 = define({
249
249
  evt.sdk = mod.createOpenaiCompatible(evt.options);
250
250
  }));
251
251
  yield* ctx.session.hook("model.request", (evt) => Effect.gen(function* () {
252
- if (evt.model.providerID !== ID13.githubCopilot)
252
+ if (evt.model.providerID !== ID12.githubCopilot)
253
253
  return;
254
254
  const session = yield* ctx.session.get({ sessionID: evt.sessionID }).pipe(Effect.orElseSucceed(() => {
255
255
  return;
@@ -259,13 +259,13 @@ var GithubCopilotPlugin2 = define({
259
259
  evt.headers["X-Interaction-Id"] = session ? get5(session) : evt.sessionID;
260
260
  if (interaction !== "conversation-agent")
261
261
  evt.headers["x-initiator"] = "agent";
262
- }), { providerID: ID13.githubCopilot });
262
+ }), { providerID: ID12.githubCopilot });
263
263
  yield* ctx.session.hook("title", (evt) => Effect.gen(function* () {
264
- if (evt.model.providerID !== ID13.githubCopilot)
264
+ if (evt.model.providerID !== ID12.githubCopilot)
265
265
  return;
266
266
  if (!loaded.baseURL || !loaded.token || !loaded.models)
267
267
  return;
268
- const agent = yield* ctx.agent.get({ agentID: ID10.make("title") }).pipe(Effect.orElseSucceed(() => {
268
+ const agent = yield* ctx.agent.get({ agentID: ID6.make("title") }).pipe(Effect.orElseSucceed(() => {
269
269
  return;
270
270
  }));
271
271
  if (agent?.data.model)
@@ -276,9 +276,9 @@ var GithubCopilotPlugin2 = define({
276
276
  evt.result = yield* utilityTitle2({ baseURL: loaded.baseURL, token: loaded.token, model, app: ctx.app }, evt).pipe(Effect.tapError((cause) => Effect.logDebug("Copilot utility title failed", { model, cause })), Effect.orElseSucceed(() => {
277
277
  return;
278
278
  }));
279
- }), { providerID: ID13.githubCopilot });
279
+ }), { providerID: ID12.githubCopilot });
280
280
  yield* ctx.session.hook("http.request", (evt) => Effect.gen(function* () {
281
- if (evt.model.providerID !== ID13.githubCopilot)
281
+ if (evt.model.providerID !== ID12.githubCopilot)
282
282
  return;
283
283
  const token = evt.request.headers.get("x-api-key");
284
284
  if (!token)
@@ -286,9 +286,9 @@ var GithubCopilotPlugin2 = define({
286
286
  const text = yield* Effect.promise(() => evt.request.clone().text());
287
287
  const body = Option.getOrUndefined(decodeBody(text));
288
288
  applyHeaders(evt.request.headers, token, ctx.app, requestMetadata(evt.request.url, body), true);
289
- }), { providerID: ID13.githubCopilot });
289
+ }), { providerID: ID12.githubCopilot });
290
290
  yield* ctx.aisdk.hook("language", Effect.fn(function* (evt) {
291
- if (evt.model.providerID !== ID13.githubCopilot)
291
+ if (evt.model.providerID !== ID12.githubCopilot)
292
292
  return;
293
293
  if (evt.sdk.responses === undefined && evt.sdk.chat === undefined) {
294
294
  evt.language = evt.sdk.languageModel(evt.model.modelID ?? evt.model.id);
@@ -1,17 +1,17 @@
1
1
  import {
2
- Service83
3
- } from "./model-retry-fqqv62af.js";
2
+ Service84
3
+ } from "./repository-cache-92e46w1f.js";
4
4
  import {
5
- ID18,
6
- Event21,
7
- Service82
8
- } from "./model-retry-7fccas0j.js";
5
+ ID14,
6
+ Event19,
7
+ Service78
8
+ } from "./repository-cache-9fkx84pm.js";
9
9
  import {
10
- ID13
11
- } from "./model-retry-cbrfz1mf.js";
10
+ ID12
11
+ } from "./repository-cache-d5n8aweh.js";
12
12
  import {
13
13
  configuredSettings2
14
- } from "./model-retry-npr0wz9t.js";
14
+ } from "./repository-cache-vht2c7bf.js";
15
15
 
16
16
  // src/plugin/provider/google-vertex.ts
17
17
  import { Effect, Option, Schema, Stream } from "effect";
@@ -41,8 +41,8 @@ var GoogleVertexPlugin2 = define({
41
41
  id: "opencode.provider.google.vertex",
42
42
  effect: Effect.fn(function* (ctx) {
43
43
  const fs = yield* FSUtil.Service;
44
- const credentials = yield* Service82;
45
- const bus = yield* Service83;
44
+ const credentials = yield* Service78;
45
+ const bus = yield* Service84;
46
46
  const read = (file) => fs.readFileStringSafe(file).pipe(Effect.orElseSucceed(() => {
47
47
  return;
48
48
  }));
@@ -51,7 +51,7 @@ var GoogleVertexPlugin2 = define({
51
51
  const configs = (yield* fs.readDirectory(path.join(gcloud, "configurations")).pipe(Effect.orElseSucceed(() => []))).filter((name) => name.startsWith("config_")).toSorted((a, b) => Number(b === active) - Number(a === active) || a.localeCompare(b));
52
52
  const contents = yield* Effect.forEach(configs, (name) => read(path.join(gcloud, "configurations", name)));
53
53
  const adcFile = yield* read(path.join(gcloud, "application_default_credentials.json"));
54
- const configured = (yield* configuredSettings2(ID13.googleVertex)) ?? {};
54
+ const configured = (yield* configuredSettings2(ID12.googleVertex)) ?? {};
55
55
  const projects = Array.from(new Set([
56
56
  resolveProject(configured),
57
57
  ...contents.map((content) => content?.match(/^project\s*=\s*(\S+)/m)?.[1]),
@@ -65,8 +65,8 @@ var GoogleVertexPlugin2 = define({
65
65
  ...contents.flatMap((content) => Array.from((content ?? "").matchAll(/^region\s*=\s*(\S+)/gm), (match) => match[1]))
66
66
  ]));
67
67
  const load = Effect.fn("GoogleVertexPlugin.load")(function* () {
68
- const connection = yield* ctx.integration.connection.active(ID13.googleVertex);
69
- const stored = connection?.type === "credential" ? yield* credentials.get(ID18.make(connection.id)) : undefined;
68
+ const connection = yield* ctx.integration.connection.active(ID12.googleVertex);
69
+ const stored = connection?.type === "credential" ? yield* credentials.get(ID14.make(connection.id)) : undefined;
70
70
  if (stored?.value.type !== "external" || stored.value.methodID !== ADC_METHOD)
71
71
  return {};
72
72
  return { project: stored.value.metadata?.project, location: stored.value.metadata?.location };
@@ -74,15 +74,15 @@ var GoogleVertexPlugin2 = define({
74
74
  const selected = { settings: yield* load() };
75
75
  const settingsFor = (provider) => ({
76
76
  ...provider.settings,
77
- ...(provider.integrationID ?? provider.id) === ID13.googleVertex ? selected.settings : {}
77
+ ...(provider.integrationID ?? provider.id) === ID12.googleVertex ? selected.settings : {}
78
78
  });
79
79
  yield* ctx.integration.transform((editor) => {
80
80
  editor.method.update({
81
- integrationID: ID13.googleVertex,
81
+ integrationID: ID12.googleVertex,
82
82
  method: { type: "env", names: ["GOOGLE_VERTEX_API_KEY"] }
83
83
  });
84
84
  editor.method.update({
85
- integrationID: ID13.googleVertex,
85
+ integrationID: ID12.googleVertex,
86
86
  method: {
87
87
  id: ADC_METHOD,
88
88
  type: "external",
@@ -120,7 +120,7 @@ var GoogleVertexPlugin2 = define({
120
120
  });
121
121
  yield* ctx.provider.transform((evt) => {
122
122
  for (const item of evt.list()) {
123
- if (!item.provider.package.startsWith("@opencode/ai/providers/google-vertex") && !(item.provider.id === ID13.googleVertex && item.provider.package === "@opencode/ai/providers/openai-compatible"))
123
+ if (!item.provider.package.startsWith("@opencode/ai/providers/google-vertex") && !(item.provider.id === ID12.googleVertex && item.provider.package === "@opencode/ai/providers/openai-compatible"))
124
124
  continue;
125
125
  const settings = settingsFor(item.provider);
126
126
  const project = resolveProject(settings);
@@ -139,7 +139,7 @@ var GoogleVertexPlugin2 = define({
139
139
  });
140
140
  yield* ctx.model.transform((models) => {
141
141
  for (const item of models.provider.list()) {
142
- if (!item.provider.package.startsWith("@opencode/ai/providers/google-vertex") && !(item.provider.id === ID13.googleVertex && item.provider.package === "@opencode/ai/providers/openai-compatible"))
142
+ if (!item.provider.package.startsWith("@opencode/ai/providers/google-vertex") && !(item.provider.id === ID12.googleVertex && item.provider.package === "@opencode/ai/providers/openai-compatible"))
143
143
  continue;
144
144
  const settings = settingsFor(item.provider);
145
145
  const project = resolveProject(settings);
@@ -156,7 +156,7 @@ var GoogleVertexPlugin2 = define({
156
156
  }
157
157
  }
158
158
  });
159
- yield* bus.subscribe([Event21.Updated, Event21.Switched]).pipe(Stream.runForEach(() => Effect.gen(function* () {
159
+ yield* bus.subscribe([Event19.Updated, Event19.Switched]).pipe(Stream.runForEach(() => Effect.gen(function* () {
160
160
  const next = yield* load();
161
161
  if (JSON.stringify(next) === JSON.stringify(selected.settings))
162
162
  return;
@@ -1,37 +1,37 @@
1
1
  import {
2
- Service83,
3
- node87
4
- } from "./model-retry-fqqv62af.js";
2
+ Service84,
3
+ node88
4
+ } from "./repository-cache-92e46w1f.js";
5
5
  import {
6
- Service76,
7
- node80
8
- } from "./model-retry-6xymw6hf.js";
6
+ Service82,
7
+ node86
8
+ } from "./repository-cache-zxcvat1v.js";
9
9
  import {
10
- ID10,
11
- Service61,
12
- node65
13
- } from "./model-retry-j8jw8bvb.js";
10
+ ID6,
11
+ Service43,
12
+ node45
13
+ } from "./repository-cache-0ar81yxa.js";
14
14
  import {
15
- NotFoundError9
16
- } from "./model-retry-yxx1qbg8.js";
15
+ NotFoundError4
16
+ } from "./repository-cache-p8qee5dd.js";
17
17
  import {
18
- Service58,
19
- node62
20
- } from "./model-retry-0cbhyycw.js";
18
+ Service41,
19
+ node43
20
+ } from "./repository-cache-w29cs0xs.js";
21
21
  import {
22
22
  match2
23
- } from "./model-retry-y1fvbwt7.js";
23
+ } from "./repository-cache-y1fvbwt7.js";
24
24
  import {
25
- Service59,
26
- node63
27
- } from "./model-retry-ftfbzs9m.js";
25
+ Service42,
26
+ node44
27
+ } from "./repository-cache-d4ex4t7m.js";
28
28
  import {
29
- Service60,
30
- node64
31
- } from "./model-retry-892mrmp0.js";
29
+ Service69,
30
+ node71
31
+ } from "./repository-cache-8s4zq5p9.js";
32
32
  import {
33
33
  __export
34
- } from "./model-retry-9rqn6x4v.js";
34
+ } from "./repository-cache-9rqn6x4v.js";
35
35
 
36
36
  // src/permission.ts
37
37
  var exports_permission = {};
@@ -42,29 +42,29 @@ __export(exports_permission, {
42
42
  CorrectedError: () => CorrectedError2,
43
43
  DeclinedError: () => DeclinedError2,
44
44
  Effect: () => PermissionEffect,
45
- Event: () => Event11,
46
- ID: () => ID8,
47
- NotFoundError: () => NotFoundError8,
45
+ Event: () => Event6,
46
+ ID: () => ID4,
47
+ NotFoundError: () => NotFoundError3,
48
48
  Permission: () => exports_permission,
49
49
  Reply: () => Reply2,
50
50
  ReplyInput: () => ReplyInput2,
51
51
  Request: () => Request2,
52
52
  Rule: () => Rule2,
53
53
  Ruleset: () => Ruleset2,
54
- Service: () => Service57,
54
+ Service: () => Service40,
55
55
  Source: () => Source4,
56
56
  evaluate: () => evaluate2,
57
57
  merge: () => merge2,
58
- node: () => node61
58
+ node: () => node42
59
59
  });
60
60
  import { makeLocationNode } from "@opencode/util/effect/app-node";
61
61
  import { Context, Deferred, Effect, Layer, Schema } from "effect";
62
62
  import { Permission } from "@opencode/schema/permission";
63
63
  import { Rule as Rule2, Ruleset as Ruleset2 } from "@opencode/schema/permission";
64
- import { Event as Event11 } from "@opencode/schema/permission";
64
+ import { Event as Event6 } from "@opencode/schema/permission";
65
65
  var PermissionEffect = Permission.Effect;
66
66
  var missingAgentPermissions = [{ action: "*", resource: "*", effect: "deny" }];
67
- var ID8 = Permission.ID;
67
+ var ID4 = Permission.ID;
68
68
  var Source4 = Permission.Source;
69
69
  var RequestFields = {
70
70
  sessionID: Permission.Request.fields.sessionID,
@@ -77,17 +77,17 @@ var RequestFields = {
77
77
  var Request2 = Permission.Request;
78
78
  var Reply2 = Permission.Reply;
79
79
  var AssertInput2 = Schema.Struct({
80
- id: ID8.pipe(Schema.optional),
80
+ id: ID4.pipe(Schema.optional),
81
81
  ...RequestFields,
82
- agent: ID10.pipe(Schema.optional)
82
+ agent: ID6.pipe(Schema.optional)
83
83
  }).annotate({ identifier: "Permission.AssertInput" });
84
84
  var ReplyInput2 = Schema.Struct({
85
- requestID: ID8,
85
+ requestID: ID4,
86
86
  reply: Reply2,
87
87
  message: Schema.String.pipe(Schema.optional)
88
88
  }).annotate({ identifier: "Permission.ReplyInput" });
89
89
  var AskResult2 = Schema.Struct({
90
- id: ID8,
90
+ id: ID4,
91
91
  effect: Permission.Effect
92
92
  }).annotate({ identifier: "Permission.AskResult" });
93
93
 
@@ -110,8 +110,8 @@ class BlockedError2 extends Schema.TaggedError()("Permission.BlockedError", {
110
110
  }
111
111
  }
112
112
 
113
- class NotFoundError8 extends Schema.TaggedError()("Permission.NotFoundError", {
114
- requestID: ID8
113
+ class NotFoundError3 extends Schema.TaggedError()("Permission.NotFoundError", {
114
+ requestID: ID4
115
115
  }) {
116
116
  }
117
117
  function evaluate2(action, resource, ...rulesets) {
@@ -125,15 +125,15 @@ function merge2(...rulesets) {
125
125
  return rulesets.flat();
126
126
  }
127
127
 
128
- class Service57 extends Context.Service()("@opencode/Permission") {
128
+ class Service40 extends Context.Service()("@opencode/Permission") {
129
129
  }
130
- var layer = Layer.effect(Service57, Effect.gen(function* () {
131
- const bus = yield* Service83;
132
- const location = yield* Service76;
133
- const agents = yield* Service61;
134
- const sessions = yield* Service58;
135
- const saved = yield* Service59;
136
- const hooks = yield* Service60;
130
+ var layer = Layer.effect(Service40, Effect.gen(function* () {
131
+ const bus = yield* Service84;
132
+ const location = yield* Service82;
133
+ const agents = yield* Service43;
134
+ const sessions = yield* Service41;
135
+ const saved = yield* Service42;
136
+ const hooks = yield* Service69;
137
137
  const pending = new Map;
138
138
  let closed = false;
139
139
  const close = Effect.gen(function* () {
@@ -156,7 +156,7 @@ var layer = Layer.effect(Service57, Effect.gen(function* () {
156
156
  const configured = Effect.fnUntraced(function* (sessionID, agentID) {
157
157
  const session = yield* sessions.get(sessionID);
158
158
  if (!session)
159
- return yield* new NotFoundError9({ sessionID });
159
+ return yield* new NotFoundError4({ sessionID });
160
160
  const agent = yield* agents.resolve(agentID ?? session.agent);
161
161
  return merge2(agent?.permissions ?? missingAgentPermissions, session.permissions ?? []);
162
162
  });
@@ -186,7 +186,7 @@ var layer = Layer.effect(Service57, Effect.gen(function* () {
186
186
  });
187
187
  function request(input, message) {
188
188
  return {
189
- id: input.id ?? ID8.create(),
189
+ id: input.id ?? ID4.create(),
190
190
  sessionID: input.sessionID,
191
191
  action: input.action,
192
192
  resources: input.resources,
@@ -211,7 +211,7 @@ var layer = Layer.effect(Service57, Effect.gen(function* () {
211
211
  }));
212
212
  const ask = Effect.fn("Permission.ask")(function* (input) {
213
213
  if (closed)
214
- return { id: input.id ?? ID8.create(), effect: "deny" };
214
+ return { id: input.id ?? ID4.create(), effect: "deny" };
215
215
  const result = yield* evaluateInput(input);
216
216
  const value = request(input, result.message);
217
217
  if (result.effect === "ask")
@@ -242,7 +242,7 @@ var layer = Layer.effect(Service57, Effect.gen(function* () {
242
242
  const reply = Effect.fn("Permission.reply")((input) => Effect.uninterruptible(Effect.gen(function* () {
243
243
  const existing = pending.get(input.requestID);
244
244
  if (!existing)
245
- return yield* new NotFoundError8({ requestID: input.requestID });
245
+ return yield* new NotFoundError3({ requestID: input.requestID });
246
246
  yield* bus.publish(Permission.Event.Replied, {
247
247
  sessionID: existing.request.sessionID,
248
248
  requestID: existing.request.id,
@@ -297,12 +297,12 @@ var layer = Layer.effect(Service57, Effect.gen(function* () {
297
297
  const forSession = Effect.fn("Permission.forSession")(function* (sessionID) {
298
298
  return Array.from(pending.values(), (item) => item.request).filter((request) => request.sessionID === sessionID);
299
299
  });
300
- return Service57.of({ ask, assert, reply, get, forSession, list, close });
300
+ return Service40.of({ ask, assert, reply, get, forSession, list, close });
301
301
  }));
302
- var node61 = makeLocationNode({
303
- service: Service57,
302
+ var node42 = makeLocationNode({
303
+ service: Service40,
304
304
  layer,
305
- deps: [node87, node80, node65, node62, node63, node64]
305
+ deps: [node88, node86, node45, node43, node44, node71]
306
306
  });
307
307
 
308
- export { PermissionEffect, ID8, Source4, Request2, Reply2, AssertInput2, ReplyInput2, AskResult2, DeclinedError2, CorrectedError2, BlockedError2, NotFoundError8, evaluate2, merge2, Service57, node61, exports_permission, Rule2, Ruleset2, Event11 };
308
+ export { PermissionEffect, ID4, Source4, Request2, Reply2, AssertInput2, ReplyInput2, AskResult2, DeclinedError2, CorrectedError2, BlockedError2, NotFoundError3, evaluate2, merge2, Service40, node42, exports_permission, Rule2, Ruleset2, Event6 };
@@ -1,24 +1,24 @@
1
1
  import {
2
2
  SQLiteEffectCountBuilder2
3
- } from "./model-retry-f0mxakyp.js";
3
+ } from "./repository-cache-f0mxakyp.js";
4
4
  import {
5
5
  SQLiteEffectDeleteBase2
6
- } from "./model-retry-w3wsvvr9.js";
6
+ } from "./repository-cache-w3wsvvr9.js";
7
7
  import {
8
8
  SQLiteEffectInsertBuilder2
9
- } from "./model-retry-7bmhse3q.js";
9
+ } from "./repository-cache-7bmhse3q.js";
10
10
  import {
11
11
  SQLiteEffectRelationalQueryBuilder2
12
- } from "./model-retry-cf4snx6d.js";
12
+ } from "./repository-cache-cf4snx6d.js";
13
13
  import {
14
14
  SQLiteEffectRaw2
15
- } from "./model-retry-822emrt2.js";
15
+ } from "./repository-cache-822emrt2.js";
16
16
  import {
17
17
  SQLiteEffectSelectBuilder2
18
- } from "./model-retry-wd87259q.js";
18
+ } from "./repository-cache-wd87259q.js";
19
19
  import {
20
20
  SQLiteEffectUpdateBuilder2
21
- } from "./model-retry-m9w0rfyh.js";
21
+ } from "./repository-cache-m9w0rfyh.js";
22
22
 
23
23
  // src/database/drizzle/sqlite-core/effect/db.ts
24
24
  import { Effect } from "effect";
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  __export
3
- } from "./model-retry-9rqn6x4v.js";
3
+ } from "./repository-cache-9rqn6x4v.js";
4
4
 
5
5
  // src/codemode/web.ts
6
6
  var exports_web = {};
@@ -1,51 +1,51 @@
1
1
  import {
2
2
  typeFollowing2
3
- } from "./model-retry-hgz4x7wa.js";
3
+ } from "./repository-cache-hgz4x7wa.js";
4
4
  import {
5
5
  RelativePath2
6
- } from "./model-retry-z5v4ffb3.js";
6
+ } from "./repository-cache-z5v4ffb3.js";
7
7
  import {
8
- Service76
9
- } from "./model-retry-6xymw6hf.js";
8
+ Service82
9
+ } from "./repository-cache-zxcvat1v.js";
10
10
  import {
11
- Service55
12
- } from "./model-retry-nentvqe9.js";
11
+ Service74
12
+ } from "./repository-cache-2xfc23b2.js";
13
13
  import {
14
14
  InvalidPatternError2,
15
- Service26
16
- } from "./model-retry-fqyqba4e.js";
15
+ Service73
16
+ } from "./repository-cache-bb4j8mte.js";
17
17
  import {
18
18
  DEFAULT_SEARCH_LIMIT2,
19
19
  DEFAULT_SEARCH_TIMEOUT_MS2,
20
20
  GrepInput2,
21
21
  Entry2,
22
22
  Match2
23
- } from "./model-retry-f5rb7yq3.js";
23
+ } from "./repository-cache-n882j125.js";
24
24
  import {
25
- Service57
26
- } from "./model-retry-ffptefkn.js";
25
+ Service40
26
+ } from "./repository-cache-sjmbs52b.js";
27
27
  import {
28
- Service27
29
- } from "./model-retry-s3j5qb0t.js";
28
+ Service16
29
+ } from "./repository-cache-9mwy3bj8.js";
30
30
  import {
31
31
  __export
32
- } from "./model-retry-9rqn6x4v.js";
32
+ } from "./repository-cache-9rqn6x4v.js";
33
33
 
34
34
  // src/tool/plugin/grep.ts
35
35
  var exports_grep = {};
36
36
  __export(exports_grep, {
37
37
  GrepTool: () => exports_grep,
38
- Input: () => Input12,
39
- Output: () => Output8,
40
- Plugin: () => Plugin49,
41
- name: () => name12,
42
- toModelContent: () => toModelContent5
38
+ Input: () => Input3,
39
+ Output: () => Output3,
40
+ Plugin: () => Plugin22,
41
+ name: () => name3,
42
+ toModelContent: () => toModelContent2
43
43
  });
44
44
  import { ToolFailure } from "@opencode/ai";
45
45
  import { Effect, Schema } from "effect";
46
46
  import path from "path";
47
- var name12 = "grep";
48
- var Input12 = Schema.Struct({
47
+ var name3 = "grep";
48
+ var Input3 = Schema.Struct({
49
49
  pattern: GrepInput2.fields.pattern.check(Schema.isMinLength(1, { message: "Pattern must not be empty" })).annotate({
50
50
  description: "Regular expression or literal text to match in file contents."
51
51
  }),
@@ -65,8 +65,8 @@ var Input12 = Schema.Struct({
65
65
  description: `Maximum number of matching lines to return (default: ${DEFAULT_SEARCH_LIMIT2})`
66
66
  })
67
67
  });
68
- var Output8 = Schema.Array(Match2);
69
- var toModelContent5 = (matches, truncated = false) => {
68
+ var Output3 = Schema.Array(Match2);
69
+ var toModelContent2 = (matches, truncated = false) => {
70
70
  const lines = matches.length === 0 ? ["No matches found"] : [`Found ${matches.length} matches`];
71
71
  let current = "";
72
72
  for (const match of matches) {
@@ -83,26 +83,26 @@ var toModelContent5 = (matches, truncated = false) => {
83
83
  return lines.join(`
84
84
  `);
85
85
  };
86
- var Plugin49 = {
86
+ var Plugin22 = {
87
87
  id: "opencode.tool.grep",
88
88
  effect: Effect.fn("GrepTool.Plugin")(function* (ctx) {
89
- const environment = yield* Service55;
90
- const ripgrep = yield* Service26;
91
- const location = yield* Service76;
92
- const access = yield* Service27;
93
- const permission = yield* Service57;
89
+ const environment = yield* Service74;
90
+ const ripgrep = yield* Service73;
91
+ const location = yield* Service82;
92
+ const access = yield* Service16;
93
+ const permission = yield* Service40;
94
94
  yield* ctx.tool.transform((editor) => editor.add({
95
- name: name12,
95
+ name: name3,
96
96
  options: { codemode: false },
97
97
  description: "Search file contents using ripgrep's regular expression syntax or literal text matching. Use it to locate specific code, symbols, or text patterns, and narrow searches with `path` or `include`. Returns matching file paths, line numbers, and line previews.",
98
- input: Input12,
99
- output: Output8,
98
+ input: Input3,
99
+ output: Output3,
100
100
  execute: (input, context) => Effect.gen(function* () {
101
101
  const source = { type: "tool", messageID: context.messageID, id: context.id };
102
102
  const target = yield* access.resolve({ path: input.path ?? "." });
103
103
  yield* access.authorizeExternal([target], context);
104
104
  yield* permission.assert({
105
- action: name12,
105
+ action: name3,
106
106
  resources: [input.pattern],
107
107
  save: ["*"],
108
108
  metadata: {
@@ -144,7 +144,7 @@ var Plugin49 = {
144
144
  return { matches: matches.slice(0, limit), truncated: matches.length > limit };
145
145
  }).pipe(Effect.map((result) => ({
146
146
  output: result.matches,
147
- content: toModelContent5(result.matches.map((match) => ({
147
+ content: toModelContent2(result.matches.map((match) => ({
148
148
  ...match,
149
149
  entry: { ...match.entry, path: path.resolve(location.directory, match.entry.path) }
150
150
  })), result.truncated),
@@ -154,4 +154,4 @@ var Plugin49 = {
154
154
  })
155
155
  };
156
156
 
157
- export { name12, Input12, Output8, toModelContent5, Plugin49, exports_grep };
157
+ export { name3, Input3, Output3, toModelContent2, Plugin22, exports_grep };