@opencode/core 0.0.0-dev-20297 → 0.0.0-dev-20303

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 (800) hide show
  1. package/dist/account/sql.js +1 -1
  2. package/dist/agent.js +83 -83
  3. package/dist/aisdk-native.js +89 -89
  4. package/dist/aisdk.js +94 -94
  5. package/dist/app.js +9 -9
  6. package/dist/bus.js +73 -73
  7. package/dist/chunks/{vcs-h5vcs21w.js → ripgrep-00bkszwx.js} +23 -23
  8. package/dist/chunks/{vcs-5gwm7s57.js → ripgrep-0939078r.js} +3 -3
  9. package/dist/chunks/{vcs-9jzp6rtr.js → ripgrep-0996nyz8.js} +9 -9
  10. package/dist/chunks/{vcs-kzcxnww5.js → ripgrep-0ahrpcjw.js} +7 -7
  11. package/dist/chunks/{vcs-ymss648d.js → ripgrep-0b5t2wwf.js} +9 -9
  12. package/dist/chunks/{vcs-8jxztqqt.js → ripgrep-0f9afca0.js} +5 -5
  13. package/dist/chunks/{vcs-5k1yf8nh.js → ripgrep-0j9j0cr0.js} +22 -22
  14. package/dist/chunks/{vcs-0paq2nw3.js → ripgrep-0paq2nw3.js} +1 -1
  15. package/dist/chunks/{vcs-0a1dfz7r.js → ripgrep-18qa6r1n.js} +16 -16
  16. package/dist/chunks/{vcs-72f4v86y.js → ripgrep-1d3bftpa.js} +11 -11
  17. package/dist/chunks/{vcs-1dazxqgg.js → ripgrep-1dazxqgg.js} +2 -2
  18. package/dist/chunks/{vcs-pxpwb23y.js → ripgrep-1jd7dvgb.js} +17 -17
  19. package/dist/chunks/{vcs-wr6f3qv2.js → ripgrep-1m0xqqrr.js} +14 -14
  20. package/dist/chunks/{vcs-cf7p89xb.js → ripgrep-1nkg8qc4.js} +12 -12
  21. package/dist/chunks/{vcs-56gdpj1q.js → ripgrep-1ygqh575.js} +9 -9
  22. package/dist/chunks/{vcs-21r38tys.js → ripgrep-21r38tys.js} +1 -1
  23. package/dist/chunks/{vcs-2a5m3afh.js → ripgrep-2a5m3afh.js} +1 -1
  24. package/dist/chunks/{vcs-37sfe3bm.js → ripgrep-2pdg46mn.js} +11 -11
  25. package/dist/chunks/{vcs-zd5bv8nv.js → ripgrep-2qtr0tge.js} +44 -44
  26. package/dist/chunks/{vcs-755ktwre.js → ripgrep-2t95j9c0.js} +24 -24
  27. package/dist/chunks/{vcs-qv52y0kk.js → ripgrep-2x0wkexj.js} +22 -22
  28. package/dist/chunks/{vcs-18296zga.js → ripgrep-2xqghjp6.js} +3 -3
  29. package/dist/chunks/ripgrep-31wx1wqg.js +424 -0
  30. package/dist/chunks/{vcs-rp8jz6x1.js → ripgrep-35agz59w.js} +4 -4
  31. package/dist/chunks/{vcs-vktfeg91.js → ripgrep-37m9xwpn.js} +24 -24
  32. package/dist/chunks/ripgrep-38phvaps.js +252 -0
  33. package/dist/chunks/{vcs-7j156qnj.js → ripgrep-3c4e9bh1.js} +7 -7
  34. package/dist/chunks/{vcs-83ww5tb3.js → ripgrep-3es9bxre.js} +15 -15
  35. package/dist/chunks/{vcs-3fc6dm20.js → ripgrep-3fc6dm20.js} +1 -1
  36. package/dist/chunks/{vcs-3hepkmqq.js → ripgrep-3hepkmqq.js} +1 -1
  37. package/dist/chunks/{vcs-yvshgw5k.js → ripgrep-3kkw8qnw.js} +21 -21
  38. package/dist/chunks/{vcs-983bx4tv.js → ripgrep-3p17jnne.js} +11 -11
  39. package/dist/chunks/{vcs-ng7678yv.js → ripgrep-3skt28fc.js} +3 -3
  40. package/dist/chunks/{vcs-3smtnn6g.js → ripgrep-3smtnn6g.js} +1 -1
  41. package/dist/chunks/{vcs-3tvqynh2.js → ripgrep-3tvqynh2.js} +1 -1
  42. package/dist/chunks/{vcs-4e9nfnk1.js → ripgrep-3v1h8cz5.js} +57 -57
  43. package/dist/chunks/{vcs-3y377wv9.js → ripgrep-3y377wv9.js} +1 -1
  44. package/dist/chunks/{vcs-3zsf4n22.js → ripgrep-3zsf4n22.js} +1 -1
  45. package/dist/chunks/{vcs-6erhv98a.js → ripgrep-4438m4a7.js} +18 -18
  46. package/dist/chunks/{vcs-y8s8f6j8.js → ripgrep-4858gwxg.js} +43 -43
  47. package/dist/chunks/{vcs-1h0nj16t.js → ripgrep-4gr8y5nf.js} +20 -20
  48. package/dist/chunks/{vcs-fhcrmec4.js → ripgrep-4k5pyaj2.js} +10 -10
  49. package/dist/chunks/{vcs-wn21040f.js → ripgrep-4nj6keg1.js} +18 -18
  50. package/dist/chunks/{vcs-w9h9v0y2.js → ripgrep-4pdcrpe9.js} +13 -13
  51. package/dist/chunks/{vcs-54ma36ye.js → ripgrep-54ma36ye.js} +1 -1
  52. package/dist/chunks/{vcs-yavzwk2n.js → ripgrep-552s6kfz.js} +15 -15
  53. package/dist/chunks/{vcs-d9s573fh.js → ripgrep-57ez7d0k.js} +2 -2
  54. package/dist/chunks/{vcs-5daktx2q.js → ripgrep-5daktx2q.js} +1 -1
  55. package/dist/chunks/{vcs-hkagk5ex.js → ripgrep-5frpvc34.js} +2 -2
  56. package/dist/chunks/{vcs-j5r7mnag.js → ripgrep-5gxtf2ep.js} +27 -27
  57. package/dist/chunks/{vcs-q9xmsq5j.js → ripgrep-5hcrxyky.js} +6 -6
  58. package/dist/chunks/{vcs-e3qxr5gk.js → ripgrep-5qd3pb7m.js} +2 -2
  59. package/dist/chunks/{vcs-5t3nmthw.js → ripgrep-5t3nmthw.js} +2 -2
  60. package/dist/chunks/{vcs-6fza0gtm.js → ripgrep-5vqak28j.js} +15 -15
  61. package/dist/chunks/{vcs-3wgpjb8z.js → ripgrep-632bft3r.js} +19 -19
  62. package/dist/chunks/{vcs-669tq793.js → ripgrep-669tq793.js} +1 -1
  63. package/dist/chunks/{vcs-tj141g8h.js → ripgrep-695yb3ne.js} +19 -19
  64. package/dist/chunks/{vcs-rt6eccz9.js → ripgrep-6ejtffh2.js} +19 -19
  65. package/dist/chunks/{vcs-6msgmcgs.js → ripgrep-6msgmcgs.js} +1 -1
  66. package/dist/chunks/{vcs-xat61z3k.js → ripgrep-6ne0j7pm.js} +11 -11
  67. package/dist/chunks/{vcs-73tb2d7t.js → ripgrep-73tb2d7t.js} +1 -1
  68. package/dist/chunks/{vcs-teyc4whj.js → ripgrep-74a0hazz.js} +11 -11
  69. package/dist/chunks/{vcs-7bmhse3q.js → ripgrep-7bmhse3q.js} +1 -1
  70. package/dist/chunks/{vcs-2k8khapm.js → ripgrep-7dqw4kz8.js} +5 -5
  71. package/dist/chunks/{vcs-np4zyaxz.js → ripgrep-7j2mf0b2.js} +8 -8
  72. package/dist/chunks/{vcs-rkj6e36x.js → ripgrep-7y05g5y6.js} +5 -5
  73. package/dist/chunks/{vcs-tcezcvh9.js → ripgrep-89znhe33.js} +4 -4
  74. package/dist/chunks/{vcs-8d7r5vzw.js → ripgrep-8d7r5vzw.js} +1 -1
  75. package/dist/chunks/{vcs-k3g1rb3k.js → ripgrep-8djhgsab.js} +22 -22
  76. package/dist/chunks/{vcs-s8anskx2.js → ripgrep-8epfg41c.js} +8 -8
  77. package/dist/chunks/{vcs-fwv01ez0.js → ripgrep-8gy77n4q.js} +12 -12
  78. package/dist/chunks/{vcs-1djhwe97.js → ripgrep-8jsvkn40.js} +31 -31
  79. package/dist/chunks/{vcs-ndmv45hp.js → ripgrep-8q7cq0y1.js} +3 -3
  80. package/dist/chunks/{vcs-pxkhtqdc.js → ripgrep-8qxm69fb.js} +19 -19
  81. package/dist/chunks/{vcs-eef36fdw.js → ripgrep-8vxvqh3p.js} +23 -23
  82. package/dist/chunks/{vcs-knevfgda.js → ripgrep-8wbxkt1z.js} +4 -4
  83. package/dist/chunks/{vcs-2gqdr94z.js → ripgrep-92z2dgw1.js} +3 -3
  84. package/dist/chunks/{vcs-gfvb90ym.js → ripgrep-94ek1h2f.js} +2 -2
  85. package/dist/chunks/{vcs-3pebang0.js → ripgrep-9gjvwznx.js} +25 -25
  86. package/dist/chunks/{vcs-k8t255qq.js → ripgrep-9tn9hv36.js} +35 -35
  87. package/dist/chunks/{vcs-pgwqr8ee.js → ripgrep-9x50181g.js} +12 -12
  88. package/dist/chunks/ripgrep-9zdhvgqs.js +18 -0
  89. package/dist/chunks/{vcs-62ezrtah.js → ripgrep-a2tjj438.js} +92 -92
  90. package/dist/chunks/{vcs-4acqjqp7.js → ripgrep-aa6tf4fy.js} +22 -22
  91. package/dist/chunks/{vcs-aaet6srn.js → ripgrep-aaet6srn.js} +2 -2
  92. package/dist/chunks/{vcs-x3an4z7c.js → ripgrep-ab4nhn8b.js} +6 -6
  93. package/dist/chunks/{vcs-3vbw7yca.js → ripgrep-ag1tg3gv.js} +32 -32
  94. package/dist/chunks/{vcs-p2etx821.js → ripgrep-amjwwp15.js} +22 -22
  95. package/dist/chunks/{vcs-y5hhwgev.js → ripgrep-ay7z0nzh.js} +13 -13
  96. package/dist/chunks/{vcs-b8d4rmcw.js → ripgrep-b1k697tw.js} +9 -9
  97. package/dist/chunks/{vcs-b6gygkdw.js → ripgrep-b6gygkdw.js} +2 -2
  98. package/dist/chunks/{vcs-keqjy1g6.js → ripgrep-bahgfxtd.js} +26 -26
  99. package/dist/chunks/{vcs-42kdhqse.js → ripgrep-bea85hdf.js} +3 -3
  100. package/dist/chunks/{vcs-cq46pgcx.js → ripgrep-bgxcxs0p.js} +5 -5
  101. package/dist/chunks/{vcs-svaspcxn.js → ripgrep-bhzbay2t.js} +5 -5
  102. package/dist/chunks/{vcs-fzd0b8n6.js → ripgrep-bm4pzggq.js} +21 -21
  103. package/dist/chunks/{vcs-724n6vts.js → ripgrep-bs1d3dhn.js} +3 -3
  104. package/dist/chunks/{vcs-4z58m4b4.js → ripgrep-c35597j6.js} +4 -4
  105. package/dist/chunks/{vcs-54tcyq79.js → ripgrep-ckecvw8r.js} +2 -2
  106. package/dist/chunks/{vcs-v4aesa73.js → ripgrep-ckr8yqr6.js} +5 -5
  107. package/dist/chunks/{vcs-p9kt6re1.js → ripgrep-cx34d9wd.js} +11 -11
  108. package/dist/chunks/{vcs-56dsz7qa.js → ripgrep-cztphjx7.js} +332 -332
  109. package/dist/chunks/{vcs-gx21vd1f.js → ripgrep-d21fb1vq.js} +13 -13
  110. package/dist/chunks/{vcs-f2wfspan.js → ripgrep-d450k981.js} +8 -8
  111. package/dist/chunks/{vcs-5p6nskts.js → ripgrep-d8s5zaak.js} +18 -18
  112. package/dist/chunks/{vcs-q54gewa9.js → ripgrep-d9wxm2fe.js} +8 -8
  113. package/dist/chunks/{vcs-dds4m2b5.js → ripgrep-dc0h2f5m.js} +10 -10
  114. package/dist/chunks/{vcs-h6dd5nj3.js → ripgrep-deajr4zv.js} +11 -11
  115. package/dist/chunks/{vcs-cqtvvg9q.js → ripgrep-dj9sq318.js} +5 -5
  116. package/dist/chunks/{vcs-cwa6csj7.js → ripgrep-djszqvmq.js} +9 -9
  117. package/dist/chunks/{vcs-3s57j9d0.js → ripgrep-dq3vednk.js} +15 -15
  118. package/dist/chunks/{vcs-3cvhxgkj.js → ripgrep-dr2s0fjn.js} +12 -12
  119. package/dist/chunks/{vcs-xfkkasph.js → ripgrep-drwq78ky.js} +4 -4
  120. package/dist/chunks/{vcs-xna4x1sn.js → ripgrep-dtyy8xh0.js} +18 -18
  121. package/dist/chunks/{vcs-76zvcd1g.js → ripgrep-dvs6zpk2.js} +39 -39
  122. package/dist/chunks/{vcs-0876npy8.js → ripgrep-e0rfdckv.js} +13 -13
  123. package/dist/chunks/{vcs-3h8yw40x.js → ripgrep-e4dzh796.js} +9 -9
  124. package/dist/chunks/{vcs-zcws0pck.js → ripgrep-e65wgfyf.js} +9 -9
  125. package/dist/chunks/{vcs-ecfe7b91.js → ripgrep-ecfe7b91.js} +2 -2
  126. package/dist/chunks/{vcs-mcjvxj01.js → ripgrep-eefdys5x.js} +4 -4
  127. package/dist/chunks/{vcs-ef5x83kb.js → ripgrep-ef5x83kb.js} +1 -1
  128. package/dist/chunks/{vcs-8041njv8.js → ripgrep-eqd5gpxy.js} +42 -42
  129. package/dist/chunks/{vcs-etq0c3wd.js → ripgrep-etq0c3wd.js} +1 -1
  130. package/dist/chunks/{vcs-rfd4cgzf.js → ripgrep-f6ejcacf.js} +35 -31
  131. package/dist/chunks/{vcs-bvkd440q.js → ripgrep-f7xy0jcj.js} +15 -15
  132. package/dist/chunks/{vcs-wrb545ka.js → ripgrep-fbxnn3zg.js} +41 -41
  133. package/dist/chunks/{vcs-cw54z5t2.js → ripgrep-febda8v4.js} +15 -15
  134. package/dist/chunks/{vcs-8nqy64kg.js → ripgrep-ff3zzamp.js} +32 -32
  135. package/dist/chunks/{vcs-6j71bdrn.js → ripgrep-fj137pk4.js} +4 -4
  136. package/dist/chunks/{vcs-mdm5j4bj.js → ripgrep-fk34k8b0.js} +84 -84
  137. package/dist/chunks/{vcs-3556dn8t.js → ripgrep-fp2xarvc.js} +1 -1
  138. package/dist/chunks/{vcs-0tqkw5bw.js → ripgrep-fq5zwzwv.js} +18 -18
  139. package/dist/chunks/{vcs-gd4qta3r.js → ripgrep-gd4qta3r.js} +1 -1
  140. package/dist/chunks/{vcs-6e5bh3xz.js → ripgrep-gmfetzq4.js} +27 -27
  141. package/dist/chunks/{vcs-yyb7tjpc.js → ripgrep-gv6a8nnw.js} +2 -2
  142. package/dist/chunks/{vcs-rr7w9yzr.js → ripgrep-gvrdb957.js} +11 -11
  143. package/dist/chunks/{vcs-dsazm5eh.js → ripgrep-h2r7bbkd.js} +9 -9
  144. package/dist/chunks/{vcs-wjrrvf51.js → ripgrep-h3whq8hs.js} +10 -10
  145. package/dist/chunks/{vcs-h6vf3j39.js → ripgrep-h6vf3j39.js} +1 -1
  146. package/dist/chunks/{vcs-ejm60891.js → ripgrep-h93zm1px.js} +7 -7
  147. package/dist/chunks/{vcs-e8qyrgb1.js → ripgrep-hbyhqfhs.js} +5 -5
  148. package/dist/chunks/{vcs-qtf7ajd6.js → ripgrep-hzxzc04q.js} +24 -24
  149. package/dist/chunks/{vcs-j56e64zr.js → ripgrep-j56e64zr.js} +1 -1
  150. package/dist/chunks/{vcs-9z431jrj.js → ripgrep-j6rk38x8.js} +9 -9
  151. package/dist/chunks/{vcs-5v1c364k.js → ripgrep-j726xjcb.js} +28 -28
  152. package/dist/chunks/{vcs-s4cpw0g8.js → ripgrep-je856w56.js} +11 -11
  153. package/dist/chunks/{vcs-grbear6k.js → ripgrep-jkfm4w29.js} +28 -28
  154. package/dist/chunks/{vcs-zffvdhag.js → ripgrep-jpz1sap8.js} +12 -12
  155. package/dist/chunks/{vcs-0z1gmn2q.js → ripgrep-jr0j7mve.js} +6 -6
  156. package/dist/chunks/{vcs-6mg6ac8r.js → ripgrep-jtkxxjqx.js} +14 -14
  157. package/dist/chunks/{vcs-xdk9p2qn.js → ripgrep-jw80jp6b.js} +21 -21
  158. package/dist/chunks/{vcs-b61wnr05.js → ripgrep-jzq9sbf8.js} +38 -38
  159. package/dist/chunks/{vcs-4q8m0zqq.js → ripgrep-k06t1zgt.js} +13 -13
  160. package/dist/chunks/{vcs-gs4tkc79.js → ripgrep-k1qrnqst.js} +8 -8
  161. package/dist/chunks/{vcs-k3c624dm.js → ripgrep-k3c624dm.js} +3 -3
  162. package/dist/chunks/{vcs-bxbtj1qd.js → ripgrep-k40x70x4.js} +8 -8
  163. package/dist/chunks/{vcs-n8c291r7.js → ripgrep-k8e0krnc.js} +9 -9
  164. package/dist/chunks/{vcs-mwfejemj.js → ripgrep-kb333kjr.js} +9 -9
  165. package/dist/chunks/{vcs-7zpeh0yx.js → ripgrep-kb6vbnxp.js} +4 -4
  166. package/dist/chunks/{vcs-1ekk4s7j.js → ripgrep-kcetpk2c.js} +12 -12
  167. package/dist/chunks/{vcs-ptm59064.js → ripgrep-kmjdna7m.js} +48 -48
  168. package/dist/chunks/{vcs-mvn2r3z4.js → ripgrep-m2d0j7c0.js} +9 -9
  169. package/dist/chunks/{vcs-m3fdjcah.js → ripgrep-m3fdjcah.js} +1 -1
  170. package/dist/chunks/{vcs-v0xjps6b.js → ripgrep-m4v4sst7.js} +31 -31
  171. package/dist/chunks/{vcs-1v2b2k63.js → ripgrep-m74y7a9x.js} +14 -14
  172. package/dist/chunks/{vcs-m9w0rfyh.js → ripgrep-m9w0rfyh.js} +1 -1
  173. package/dist/chunks/{vcs-c7h0x4yk.js → ripgrep-mjpfq375.js} +21 -21
  174. package/dist/chunks/{vcs-61zp4wnv.js → ripgrep-mtf32xg9.js} +11 -11
  175. package/dist/chunks/{vcs-njx86ncx.js → ripgrep-mwyh8wfh.js} +27 -27
  176. package/dist/chunks/{vcs-ntmafhxh.js → ripgrep-n0gf5ey7.js} +21 -21
  177. package/dist/chunks/{vcs-86n330eh.js → ripgrep-n1ka8r9d.js} +4 -4
  178. package/dist/chunks/{vcs-tstnsxca.js → ripgrep-n3fk10xz.js} +25 -25
  179. package/dist/chunks/{vcs-axj6q4j4.js → ripgrep-n50qm4s2.js} +49 -49
  180. package/dist/chunks/{vcs-jcs87n6r.js → ripgrep-ngymw408.js} +4 -4
  181. package/dist/chunks/{vcs-ehn7vv3c.js → ripgrep-nhvjymvq.js} +21 -21
  182. package/dist/chunks/{vcs-khxyc70q.js → ripgrep-nn5bpfje.js} +9 -9
  183. package/dist/chunks/{vcs-3y1r2rpt.js → ripgrep-nqfwyc43.js} +8 -8
  184. package/dist/chunks/{vcs-1esepqbd.js → ripgrep-nsth5a41.js} +37 -37
  185. package/dist/chunks/{vcs-44txpx69.js → ripgrep-p97ze781.js} +23 -23
  186. package/dist/chunks/{vcs-8v6pyhej.js → ripgrep-pa8pe2x7.js} +8 -8
  187. package/dist/chunks/{vcs-5sz650yn.js → ripgrep-pf2cvmpq.js} +73 -73
  188. package/dist/chunks/{vcs-pjvnvgmy.js → ripgrep-pjvnvgmy.js} +1 -1
  189. package/dist/chunks/{vcs-pknna89w.js → ripgrep-pknna89w.js} +1 -1
  190. package/dist/chunks/{vcs-9h4501ja.js → ripgrep-pmg28md7.js} +1 -1
  191. package/dist/chunks/{vcs-66j8y0n9.js → ripgrep-pnh2hy2c.js} +23 -23
  192. package/dist/chunks/{vcs-88k66p5t.js → ripgrep-pqcvfzvm.js} +36 -36
  193. package/dist/chunks/{vcs-erwyzksv.js → ripgrep-pttkx1dj.js} +27 -27
  194. package/dist/chunks/{vcs-yqnvcheb.js → ripgrep-pvvafe22.js} +10 -10
  195. package/dist/chunks/ripgrep-pwr21gwd.js +26 -0
  196. package/dist/chunks/{vcs-dda0p7y7.js → ripgrep-px76j0pk.js} +9 -9
  197. package/dist/chunks/{vcs-pjz0zcv2.js → ripgrep-pxvtywqb.js} +11 -11
  198. package/dist/chunks/{vcs-cb6xbnd9.js → ripgrep-q13923st.js} +2 -2
  199. package/dist/chunks/{vcs-3kbhjp3q.js → ripgrep-q1v5hekz.js} +11 -11
  200. package/dist/chunks/{vcs-hh4v7266.js → ripgrep-q26n4fcx.js} +14 -14
  201. package/dist/chunks/{vcs-q2k50tdt.js → ripgrep-q6kv5hce.js} +35 -35
  202. package/dist/chunks/{vcs-j7y1n5ns.js → ripgrep-q9m9wzt0.js} +19 -19
  203. package/dist/chunks/{vcs-40e80s20.js → ripgrep-qa3v0gpg.js} +24 -24
  204. package/dist/chunks/{vcs-44m1ppkf.js → ripgrep-qbv4sgsg.js} +44 -44
  205. package/dist/chunks/{vcs-28nztbsp.js → ripgrep-qcbzzkxa.js} +32 -32
  206. package/dist/chunks/{vcs-jh1zbppd.js → ripgrep-qfchpyts.js} +27 -27
  207. package/dist/chunks/{vcs-n4z35x1w.js → ripgrep-qrgme6ew.js} +9 -9
  208. package/dist/chunks/{vcs-qsdy395h.js → ripgrep-qsdy395h.js} +1 -1
  209. package/dist/chunks/{vcs-szpqyd6h.js → ripgrep-qwhsc8p7.js} +18 -18
  210. package/dist/chunks/{vcs-1fw2a5v8.js → ripgrep-qx1x9vga.js} +22 -22
  211. package/dist/chunks/{vcs-msq4ntpz.js → ripgrep-qzqedjgs.js} +28 -28
  212. package/dist/chunks/{vcs-wc17nh9t.js → ripgrep-r2rgjgj7.js} +33 -33
  213. package/dist/chunks/{vcs-ydgy0jv4.js → ripgrep-r7nsrefv.js} +6 -6
  214. package/dist/chunks/{vcs-ww82v16z.js → ripgrep-r9w59ptg.js} +25 -25
  215. package/dist/chunks/{vcs-rdw6cm16.js → ripgrep-rdw6cm16.js} +1 -1
  216. package/dist/chunks/{vcs-ct913see.js → ripgrep-rk6ps10a.js} +5 -5
  217. package/dist/chunks/{vcs-38adaqc0.js → ripgrep-rkdvqggb.js} +5 -5
  218. package/dist/chunks/{vcs-py3kkmfq.js → ripgrep-rkprpv83.js} +2 -2
  219. package/dist/chunks/{vcs-304ndgye.js → ripgrep-rnk4bdv4.js} +21 -21
  220. package/dist/chunks/{vcs-yr5w62k6.js → ripgrep-rthtq9ap.js} +20 -20
  221. package/dist/chunks/{vcs-hv3dmpp2.js → ripgrep-s5hrj64x.js} +20 -20
  222. package/dist/chunks/{vcs-vqfzq50h.js → ripgrep-sd5f6jdk.js} +6 -6
  223. package/dist/chunks/{vcs-7854zz5a.js → ripgrep-sfpzfcnw.js} +3 -3
  224. package/dist/chunks/{vcs-s1kdbxwg.js → ripgrep-sj415v3s.js} +10 -10
  225. package/dist/chunks/{vcs-7rwqf82v.js → ripgrep-sm965ndy.js} +8 -8
  226. package/dist/chunks/{vcs-3aq2526j.js → ripgrep-srep0201.js} +48 -48
  227. package/dist/chunks/{vcs-4mtvmndk.js → ripgrep-szsbf3na.js} +4 -4
  228. package/dist/chunks/{vcs-rhjbct0v.js → ripgrep-t550f9t1.js} +4 -4
  229. package/dist/chunks/{vcs-70vk70yg.js → ripgrep-t849abxh.js} +5 -5
  230. package/dist/chunks/{vcs-tazgh4e4.js → ripgrep-tazgh4e4.js} +1 -1
  231. package/dist/chunks/{vcs-dyrwyt65.js → ripgrep-tdmq7741.js} +38 -38
  232. package/dist/chunks/{vcs-tdstcens.js → ripgrep-tdstcens.js} +1 -1
  233. package/dist/chunks/{vcs-qbqbaz6q.js → ripgrep-tjedn1bk.js} +4 -4
  234. package/dist/chunks/{vcs-x5es4t48.js → ripgrep-tk70hm4f.js} +33 -33
  235. package/dist/chunks/{vcs-btsrk6c2.js → ripgrep-ts8814z6.js} +16 -16
  236. package/dist/chunks/{vcs-py6tvht3.js → ripgrep-ttpyk6f9.js} +9 -9
  237. package/dist/chunks/{vcs-hn57h045.js → ripgrep-ttqh24zm.js} +4 -4
  238. package/dist/chunks/{vcs-tvtrv512.js → ripgrep-tvtrv512.js} +1 -1
  239. package/dist/chunks/{vcs-ratrq7cm.js → ripgrep-v5dkyp31.js} +4 -4
  240. package/dist/chunks/{vcs-f7sbcs1s.js → ripgrep-v5fx191f.js} +26 -26
  241. package/dist/chunks/{vcs-s9ampnzs.js → ripgrep-v6695139.js} +11 -11
  242. package/dist/chunks/{vcs-4j9evkcm.js → ripgrep-v89pjvzk.js} +8 -8
  243. package/dist/chunks/{vcs-vtg51jxy.js → ripgrep-v9htzwy6.js} +33 -33
  244. package/dist/chunks/{vcs-veqvce7d.js → ripgrep-veqvce7d.js} +1 -1
  245. package/dist/chunks/{vcs-dfe8djrf.js → ripgrep-vncycja5.js} +4 -4
  246. package/dist/chunks/{vcs-vzcthcp8.js → ripgrep-vzcthcp8.js} +1 -1
  247. package/dist/chunks/{vcs-vzs5sf6e.js → ripgrep-vzs5sf6e.js} +1 -1
  248. package/dist/chunks/{vcs-was7srj9.js → ripgrep-w1ad28wa.js} +8 -8
  249. package/dist/chunks/{vcs-84txncab.js → ripgrep-w1eejvng.js} +5 -5
  250. package/dist/chunks/{vcs-5p9dmvg9.js → ripgrep-w2y23yj1.js} +13 -13
  251. package/dist/chunks/{vcs-w3wsvvr9.js → ripgrep-w3wsvvr9.js} +1 -1
  252. package/dist/chunks/{vcs-8vf9p1vn.js → ripgrep-w8wd44rg.js} +21 -21
  253. package/dist/chunks/{vcs-psazpmmj.js → ripgrep-wd3x2cqz.js} +2 -2
  254. package/dist/chunks/{vcs-wd87259q.js → ripgrep-wd87259q.js} +1 -1
  255. package/dist/chunks/{vcs-n62nckym.js → ripgrep-whp3wsjn.js} +11 -11
  256. package/dist/chunks/{vcs-p4q1g30v.js → ripgrep-wj1rks9h.js} +37 -37
  257. package/dist/chunks/{vcs-c8m1ndyk.js → ripgrep-wpzekwss.js} +6 -6
  258. package/dist/chunks/{vcs-dfh0xed5.js → ripgrep-ws6q902r.js} +5 -5
  259. package/dist/chunks/{vcs-bp5zn84r.js → ripgrep-wybk36vp.js} +10 -10
  260. package/dist/chunks/{vcs-x1ezjp6w.js → ripgrep-x1ezjp6w.js} +1 -1
  261. package/dist/chunks/{vcs-bm3qhbmn.js → ripgrep-x591492r.js} +17 -17
  262. package/dist/chunks/{vcs-9f9b48nn.js → ripgrep-x7xnx0we.js} +20 -20
  263. package/dist/chunks/{vcs-xkntkrq7.js → ripgrep-xkntkrq7.js} +2 -2
  264. package/dist/chunks/{vcs-s2ynmxvy.js → ripgrep-xsbrecyh.js} +12 -12
  265. package/dist/chunks/{vcs-8zh4h089.js → ripgrep-xvp1j2dc.js} +5 -5
  266. package/dist/chunks/{vcs-rf0rwq9q.js → ripgrep-y1cgxa56.js} +16 -16
  267. package/dist/chunks/{vcs-y1fvbwt7.js → ripgrep-y1fvbwt7.js} +1 -1
  268. package/dist/chunks/{vcs-y71avatq.js → ripgrep-y71avatq.js} +1 -1
  269. package/dist/chunks/{vcs-7enbc4fp.js → ripgrep-ycg97etn.js} +170 -170
  270. package/dist/chunks/{vcs-293305v0.js → ripgrep-yhc2xmq5.js} +1 -1
  271. package/dist/chunks/{vcs-yp2x3t23.js → ripgrep-yp2x3t23.js} +1 -1
  272. package/dist/chunks/{vcs-yrhqyw5v.js → ripgrep-yrhqyw5v.js} +1 -1
  273. package/dist/chunks/{vcs-s4enseaf.js → ripgrep-yrznvahk.js} +2 -2
  274. package/dist/chunks/{vcs-231222c6.js → ripgrep-ytbta4pq.js} +4 -4
  275. package/dist/chunks/{vcs-qz3g8v3b.js → ripgrep-yxj4ckh3.js} +20 -20
  276. package/dist/chunks/{vcs-wycg3qep.js → ripgrep-yyksnw28.js} +18 -18
  277. package/dist/chunks/{vcs-bjtzbw4r.js → ripgrep-z07pqspn.js} +3 -3
  278. package/dist/chunks/{vcs-z0bkrqjs.js → ripgrep-z0bkrqjs.js} +1 -1
  279. package/dist/chunks/{vcs-8n9ym7bh.js → ripgrep-z1t4ccqy.js} +8 -8
  280. package/dist/chunks/{vcs-29x78va6.js → ripgrep-z63w68vq.js} +6 -6
  281. package/dist/chunks/{vcs-2sv6eqec.js → ripgrep-zbzhtaz8.js} +7 -7
  282. package/dist/chunks/{vcs-z5g6ermd.js → ripgrep-zd5925e4.js} +10 -10
  283. package/dist/chunks/{vcs-rq775frq.js → ripgrep-zeh9ct20.js} +2 -2
  284. package/dist/chunks/{vcs-hk4fmd6v.js → ripgrep-zexvq6re.js} +30 -30
  285. package/dist/chunks/{vcs-hndg17wg.js → ripgrep-zgfpqdce.js} +40 -40
  286. package/dist/chunks/{vcs-y7a3vg46.js → ripgrep-zmyzpzwz.js} +5 -5
  287. package/dist/chunks/{vcs-vrq98xzz.js → ripgrep-zn4xb62a.js} +18 -18
  288. package/dist/chunks/{vcs-zr2ceqn5.js → ripgrep-zr2ceqn5.js} +1 -1
  289. package/dist/chunks/{vcs-9k60352s.js → ripgrep-zrc0yy2v.js} +21 -21
  290. package/dist/chunks/{vcs-n0tq777j.js → ripgrep-zrq8kphx.js} +8 -8
  291. package/dist/chunks/{vcs-2kzd1k6y.js → ripgrep-zwet3d57.js} +27 -27
  292. package/dist/chunks/{vcs-cnj8r2zb.js → ripgrep-zxf6vy87.js} +12 -12
  293. package/dist/chunks/{vcs-zxq2ej10.js → ripgrep-zxq2ej10.js} +1 -1
  294. package/dist/codemode/catalog.js +1 -1
  295. package/dist/codemode/instructions.js +7 -7
  296. package/dist/codemode/tool.js +3 -3
  297. package/dist/codemode/web.js +1 -1
  298. package/dist/command.js +81 -81
  299. package/dist/config/discovery.js +84 -84
  300. package/dist/config/markdown.js +1 -1
  301. package/dist/config/normalize.js +106 -106
  302. package/dist/config/plugin/agent.js +125 -125
  303. package/dist/config/plugin/command.js +215 -215
  304. package/dist/config/plugin/compaction.js +161 -161
  305. package/dist/config/plugin/compatibility.js +141 -141
  306. package/dist/config/plugin/entry-observer.js +1 -1
  307. package/dist/config/plugin/formatter.js +124 -124
  308. package/dist/config/plugin/image.js +123 -123
  309. package/dist/config/plugin/instruction.js +90 -90
  310. package/dist/config/plugin/location-watcher.js +125 -125
  311. package/dist/config/plugin/mcp.js +132 -132
  312. package/dist/config/plugin/policy.js +124 -124
  313. package/dist/config/plugin/provider.js +123 -123
  314. package/dist/config/plugin/reference.js +125 -125
  315. package/dist/config/plugin/shell.js +123 -123
  316. package/dist/config/plugin/skill-file.js +102 -102
  317. package/dist/config/plugin/skill.js +144 -144
  318. package/dist/config/plugin/snapshot.js +123 -123
  319. package/dist/config/plugin/source.js +126 -126
  320. package/dist/config/plugin/tool-output.js +125 -125
  321. package/dist/config/plugin/websearch.js +122 -122
  322. package/dist/config/plugin/worktree.js +125 -125
  323. package/dist/config/variable.js +3 -3
  324. package/dist/config/watch.js +1 -1
  325. package/dist/config.js +124 -124
  326. package/dist/credential/sql.js +2 -2
  327. package/dist/credential.js +81 -81
  328. package/dist/database/database.js +66 -66
  329. package/dist/database/drizzle/effect-sqlite/driver.js +12 -12
  330. package/dist/database/drizzle/effect-sqlite/index.js +12 -12
  331. package/dist/database/drizzle/effect-sqlite/session.js +11 -11
  332. package/dist/database/drizzle/index.js +13 -13
  333. package/dist/database/drizzle/internal/drizzle-utils.js +1 -1
  334. package/dist/database/drizzle/sqlite-core/effect/count.js +1 -1
  335. package/dist/database/drizzle/sqlite-core/effect/db.js +9 -9
  336. package/dist/database/drizzle/sqlite-core/effect/delete.js +2 -2
  337. package/dist/database/drizzle/sqlite-core/effect/index.js +10 -10
  338. package/dist/database/drizzle/sqlite-core/effect/insert.js +2 -2
  339. package/dist/database/drizzle/sqlite-core/effect/query.js +1 -1
  340. package/dist/database/drizzle/sqlite-core/effect/raw.js +1 -1
  341. package/dist/database/drizzle/sqlite-core/effect/select.js +2 -2
  342. package/dist/database/drizzle/sqlite-core/effect/session.js +10 -10
  343. package/dist/database/drizzle/sqlite-core/effect/update.js +2 -2
  344. package/dist/database/drizzle.js +14 -14
  345. package/dist/database/migration/20260127222353_familiar_lady_ursula.js +1 -1
  346. package/dist/database/migration/20260211171708_add_project_commands.js +1 -1
  347. package/dist/database/migration/20260213144116_wakeful_the_professor.js +1 -1
  348. package/dist/database/migration/20260225215848_workspace.js +1 -1
  349. package/dist/database/migration/20260227213759_add_session_workspace_id.js +1 -1
  350. package/dist/database/migration/20260228203230_blue_harpoon.js +1 -1
  351. package/dist/database/migration/20260303231226_add_workspace_fields.js +1 -1
  352. package/dist/database/migration/20260309230000_move_org_to_state.js +1 -1
  353. package/dist/database/migration/20260312043431_session_message_cursor.js +1 -1
  354. package/dist/database/migration/20260323234822_events.js +1 -1
  355. package/dist/database/migration/20260410174513_workspace-name.js +1 -1
  356. package/dist/database/migration/20260413175956_chief_energizer.js +1 -1
  357. package/dist/database/migration/20260423070820_add_icon_url_override.js +1 -1
  358. package/dist/database/migration/20260427172553_slow_nightmare.js +1 -1
  359. package/dist/database/migration/20260428004200_add_session_path.js +1 -1
  360. package/dist/database/migration/20260501142318_next_venus.js +1 -1
  361. package/dist/database/migration/20260504145000_add_sync_owner.js +1 -1
  362. package/dist/database/migration/20260507164347_add_workspace_time.js +1 -1
  363. package/dist/database/migration/20260510033149_session_usage.js +1 -1
  364. package/dist/database/migration/20260511000411_data_migration_state.js +1 -1
  365. package/dist/database/migration/20260511173437_session-metadata.js +1 -1
  366. package/dist/database/migration/20260601010001_normalize_storage_paths.js +1 -1
  367. package/dist/database/migration/20260601202201_amazing_prowler.js +1 -1
  368. package/dist/database/migration/20260602002951_lowly_union_jack.js +1 -1
  369. package/dist/database/migration/20260602182828_add_project_directories.js +1 -1
  370. package/dist/database/migration/20260603001617_session_message_projection_indexes.js +1 -1
  371. package/dist/database/migration/20260603040000_session_message_projection_order.js +1 -1
  372. package/dist/database/migration/20260603141458_session_input_inbox.js +1 -1
  373. package/dist/database/migration/20260603160727_jittery_ezekiel_stane.js +1 -1
  374. package/dist/database/migration/20260604172448_event_sourced_session_input.js +1 -1
  375. package/dist/database/migration/20260605003541_add_session_context_snapshot.js +1 -1
  376. package/dist/database/migration/20260605042240_add_context_epoch_agent.js +1 -1
  377. package/dist/database/migration/20260611035744_credential.js +1 -1
  378. package/dist/database/migration/20260611192811_lush_chimera.js +1 -1
  379. package/dist/database/migration/20260612174303_project_dir_strategy.js +1 -1
  380. package/dist/database/migration/20260622142730_simplify_session_context_epoch.js +1 -1
  381. package/dist/database/migration/20260622170816_reset_v2_session_state.js +1 -1
  382. package/dist/database/migration/20260622202450_simplify_session_input.js +1 -1
  383. package/dist/database/migration/20260804233008_loose_psylocke.js +1 -1
  384. package/dist/database/migration/20260805200742_import_legacy_credentials.js +1 -1
  385. package/dist/database/migration/20260808023530_workspace_domain.js +1 -1
  386. package/dist/database/migration/20260811161259_execution_claim_attempts.js +1 -1
  387. package/dist/database/migration/20260812181746_session_inbox.js +1 -1
  388. package/dist/database/migration/20260812213948_worktree.js +1 -1
  389. package/dist/database/migration/20260819222447_session_viewed_state.js +1 -1
  390. package/dist/database/migration/20260823191254_nullable_workspace_binding.js +1 -1
  391. package/dist/database/migration/20260910120000_clear_v1_session_permission.js +1 -1
  392. package/dist/database/migration/20260923013825_project_time_active.js +1 -1
  393. package/dist/database/migration.gen.js +49 -49
  394. package/dist/database/migration.js +51 -51
  395. package/dist/database/path.js +2 -2
  396. package/dist/database/schema.gen.js +1 -1
  397. package/dist/database/schema.sql.js +1 -1
  398. package/dist/database/sqlite.bun.js +1 -1
  399. package/dist/database/sqlite.js +1 -1
  400. package/dist/database/sqlite.node.js +1 -1
  401. package/dist/database/sqlite.workerd.js +1 -1
  402. package/dist/database/v1-migration.bun.js +76 -76
  403. package/dist/database/v1-migration.js +1 -1
  404. package/dist/effect/app-node-builder.js +372 -371
  405. package/dist/effect/app-node-platform.js +2 -2
  406. package/dist/effect/keyed-mutex.js +1 -1
  407. package/dist/effect/websocket-constructor.js +1 -1
  408. package/dist/environment/driver.js +1 -1
  409. package/dist/environment/environment.js +93 -93
  410. package/dist/environment/exec-defaults.js +2 -2
  411. package/dist/environment/files.js +1 -1
  412. package/dist/environment/index.js +95 -95
  413. package/dist/environment/local.js +2 -2
  414. package/dist/environment/memory.js +2 -2
  415. package/dist/environment/unavailable.js +1 -1
  416. package/dist/event/sql.js +1 -1
  417. package/dist/event-logger.js +74 -74
  418. package/dist/file-access.js +104 -104
  419. package/dist/file-mutation.js +92 -92
  420. package/dist/file-retention.js +1 -1
  421. package/dist/filesystem/fff.bun.js +2 -2
  422. package/dist/filesystem/fff.js +1 -1
  423. package/dist/filesystem/fff.node.js +2 -2
  424. package/dist/filesystem/fff.workerd.js +2 -2
  425. package/dist/filesystem/ignore.js +1 -1
  426. package/dist/filesystem/location-watcher-policy.js +6 -6
  427. package/dist/filesystem/location-watcher.js +228 -228
  428. package/dist/filesystem/protected.js +3 -3
  429. package/dist/filesystem/search.js +103 -103
  430. package/dist/filesystem/watcher-binding.js +3 -3
  431. package/dist/filesystem/watcher.js +13 -13
  432. package/dist/filesystem.js +104 -104
  433. package/dist/form.js +82 -82
  434. package/dist/formatter/builtins.js +2 -2
  435. package/dist/formatter.js +89 -89
  436. package/dist/generate.js +95 -95
  437. package/dist/git.js +10 -10
  438. package/dist/github-copilot/chat/convert-to-openai-compatible-chat-messages.js +1 -1
  439. package/dist/github-copilot/chat/get-response-metadata.js +1 -1
  440. package/dist/github-copilot/chat/map-openai-compatible-finish-reason.js +1 -1
  441. package/dist/github-copilot/chat/openai-compatible-chat-language-model.js +7 -7
  442. package/dist/github-copilot/chat/openai-compatible-chat-options.js +1 -1
  443. package/dist/github-copilot/chat/openai-compatible-prepare-tools.js +1 -1
  444. package/dist/github-copilot/copilot-provider.js +17 -17
  445. package/dist/github-copilot/models.js +99 -99
  446. package/dist/github-copilot/openai-compatible-error.js +1 -1
  447. package/dist/github-copilot/responses/convert-to-openai-responses-input.js +1 -1
  448. package/dist/github-copilot/responses/map-openai-responses-finish-reason.js +1 -1
  449. package/dist/github-copilot/responses/openai-error.js +1 -1
  450. package/dist/github-copilot/responses/openai-responses-language-model.js +10 -10
  451. package/dist/github-copilot/responses/openai-responses-prepare-tools.js +6 -6
  452. package/dist/github-copilot/responses/tool/code-interpreter.js +1 -1
  453. package/dist/github-copilot/responses/tool/file-search.js +1 -1
  454. package/dist/github-copilot/responses/tool/image-generation.js +1 -1
  455. package/dist/github-copilot/responses/tool/web-search-preview.js +1 -1
  456. package/dist/github-copilot/responses/tool/web-search.js +1 -1
  457. package/dist/id/id.js +1 -1
  458. package/dist/image/photon.js +2 -2
  459. package/dist/image.js +6 -6
  460. package/dist/instance/service.js +5 -5
  461. package/dist/instance.js +363 -362
  462. package/dist/instruction-discovery.js +83 -83
  463. package/dist/instructions/builtins.js +87 -87
  464. package/dist/instructions/index.js +3 -3
  465. package/dist/integration/connection.js +1 -1
  466. package/dist/integration.js +85 -85
  467. package/dist/job.js +79 -79
  468. package/dist/kv/sql.js +2 -2
  469. package/dist/kv.js +73 -73
  470. package/dist/location-activity.js +135 -135
  471. package/dist/location-lifecycle.js +107 -107
  472. package/dist/location-service-map.js +86 -86
  473. package/dist/location-services.js +360 -359
  474. package/dist/location.js +85 -85
  475. package/dist/managed-policy.js +5 -5
  476. package/dist/mcp/client.js +91 -91
  477. package/dist/mcp/index.js +99 -99
  478. package/dist/mcp/instructions.js +129 -129
  479. package/dist/mcp/oauth.js +78 -78
  480. package/dist/mcp/stdio.js +90 -90
  481. package/dist/mime.js +1 -1
  482. package/dist/modal/models.js +99 -99
  483. package/dist/model-resolver.js +98 -98
  484. package/dist/model.js +100 -100
  485. package/dist/models-dev.js +99 -99
  486. package/dist/oauth/page.js +1 -1
  487. package/dist/permission/saved.js +78 -78
  488. package/dist/permission/sql.js +5 -5
  489. package/dist/permission.js +111 -111
  490. package/dist/persistent-pty/binary.bun.js +1 -1
  491. package/dist/persistent-pty/daemon.js +1 -1
  492. package/dist/persistent-pty/index.js +74 -74
  493. package/dist/persistent-pty/pty-binding.js +1 -1
  494. package/dist/persistent-pty.js +75 -75
  495. package/dist/plugin/agent.js +104 -104
  496. package/dist/plugin/command.js +102 -102
  497. package/dist/plugin/hooks.js +5 -5
  498. package/dist/plugin/host.js +219 -219
  499. package/dist/plugin/identity.js +3 -3
  500. package/dist/plugin/instance.js +5 -5
  501. package/dist/plugin/internal.js +335 -334
  502. package/dist/plugin/mcp-codemode-defaults.js +3 -3
  503. package/dist/plugin/models-dev.js +96 -96
  504. package/dist/plugin/module.js +7 -7
  505. package/dist/plugin/optimize.js +2 -2
  506. package/dist/plugin/plan.js +102 -102
  507. package/dist/plugin/promise.js +1 -1
  508. package/dist/plugin/provider/amazon-bedrock.js +90 -90
  509. package/dist/plugin/provider/azure.js +122 -122
  510. package/dist/plugin/provider/cerebras.js +1 -1
  511. package/dist/plugin/provider/chatgpt.js +104 -0
  512. package/dist/plugin/provider/cloudflare-ai-gateway.js +120 -120
  513. package/dist/plugin/provider/cloudflare-workers-ai.js +121 -121
  514. package/dist/plugin/provider/cohere.js +2 -2
  515. package/dist/plugin/provider/configured.js +119 -119
  516. package/dist/plugin/provider/digitalocean.js +93 -93
  517. package/dist/plugin/provider/dynamic.js +2 -2
  518. package/dist/plugin/provider/factory.js +1 -1
  519. package/dist/plugin/provider/gateway.js +2 -2
  520. package/dist/plugin/provider/github-copilot.js +95 -95
  521. package/dist/plugin/provider/gitlab.js +93 -93
  522. package/dist/plugin/provider/google-vertex.js +90 -90
  523. package/dist/plugin/provider/kilo.js +1 -1
  524. package/dist/plugin/provider/llmgateway.js +78 -78
  525. package/dist/plugin/provider/lmstudio.js +122 -122
  526. package/dist/plugin/provider/modal.js +92 -92
  527. package/dist/plugin/provider/nvidia.js +1 -1
  528. package/dist/plugin/provider/ollama.js +122 -122
  529. package/dist/plugin/provider/openai.js +93 -93
  530. package/dist/plugin/provider/opencode.js +95 -95
  531. package/dist/plugin/provider/openrouter.js +91 -91
  532. package/dist/plugin/provider/perplexity.js +2 -2
  533. package/dist/plugin/provider/poe.js +79 -79
  534. package/dist/plugin/provider/prompt-cache-key.js +90 -90
  535. package/dist/plugin/provider/sap-ai-core.js +91 -91
  536. package/dist/plugin/provider/sdk-factory.js +1 -1
  537. package/dist/plugin/provider/snowflake-cortex.js +122 -122
  538. package/dist/plugin/provider/venice.js +2 -2
  539. package/dist/plugin/provider/vercel.js +90 -90
  540. package/dist/plugin/provider/vllm.js +122 -122
  541. package/dist/plugin/provider/xai.js +91 -91
  542. package/dist/plugin/provider/zenmux.js +1 -1
  543. package/dist/plugin/provider.js +163 -162
  544. package/dist/plugin/sdk.js +76 -76
  545. package/dist/plugin/service.js +3 -3
  546. package/dist/plugin/skill.js +141 -141
  547. package/dist/plugin/source-directory.js +1 -1
  548. package/dist/plugin/supervisor.js +352 -351
  549. package/dist/plugin/tool-input-repair.js +4 -4
  550. package/dist/plugin/update.js +6 -6
  551. package/dist/plugin/vcs/git.js +86 -86
  552. package/dist/plugin/vcs/hg.js +86 -86
  553. package/dist/plugin/verbosity.js +93 -93
  554. package/dist/plugin/warming.js +121 -121
  555. package/dist/plugin/websearch/exa.js +7 -7
  556. package/dist/plugin/websearch/firecrawl.js +8 -8
  557. package/dist/plugin/websearch/index.js +9 -9
  558. package/dist/plugin/websearch/mcp.js +6 -6
  559. package/dist/plugin/websearch/parallel.js +8 -8
  560. package/dist/plugin/websearch/tavily.js +6 -6
  561. package/dist/plugin/websearch/tinyfish.js +8 -8
  562. package/dist/plugin.js +230 -230
  563. package/dist/project/schema.js +2 -2
  564. package/dist/project/sql.js +4 -4
  565. package/dist/project.js +84 -84
  566. package/dist/provider.js +97 -97
  567. package/dist/pty/protocol.js +1 -1
  568. package/dist/pty/ticket.js +1 -1
  569. package/dist/pty.js +95 -95
  570. package/dist/reference/instructions.js +89 -89
  571. package/dist/reference.js +91 -91
  572. package/dist/repository-cache.js +81 -81
  573. package/dist/repository.js +3 -3
  574. package/dist/ripgrep/binary.js +2 -2
  575. package/dist/ripgrep.js +95 -95
  576. package/dist/rpc.js +86 -86
  577. package/dist/schema.js +1 -1
  578. package/dist/session/affinity.js +1 -1
  579. package/dist/session/command.js +74 -74
  580. package/dist/session/compaction.js +133 -133
  581. package/dist/session/context.js +153 -153
  582. package/dist/session/diff.js +88 -88
  583. package/dist/session/environment.js +5 -5
  584. package/dist/session/error.js +7 -7
  585. package/dist/session/event.js +1 -1
  586. package/dist/session/execution/restart.js +225 -225
  587. package/dist/session/execution.js +128 -128
  588. package/dist/session/generate.js +152 -152
  589. package/dist/session/history.js +15 -15
  590. package/dist/session/inbox.js +88 -88
  591. package/dist/session/info.js +3 -3
  592. package/dist/session/instruction-entry.js +77 -77
  593. package/dist/session/instruction-state.js +8 -8
  594. package/dist/session/instructions.js +97 -97
  595. package/dist/session/message-updater.js +2 -2
  596. package/dist/session/message.js +1 -1
  597. package/dist/session/model-request.js +120 -120
  598. package/dist/session/model-transport.js +9 -9
  599. package/dist/session/move.js +130 -130
  600. package/dist/session/projector.js +86 -86
  601. package/dist/session/prompt.js +105 -105
  602. package/dist/session/provider-context.js +3 -3
  603. package/dist/session/revert.js +90 -90
  604. package/dist/session/run-coordinator.js +1 -1
  605. package/dist/session/runner/index.js +3 -3
  606. package/dist/session/runner/llm.js +232 -232
  607. package/dist/session/runner/max-steps.js +1 -1
  608. package/dist/session/runner/model.js +98 -98
  609. package/dist/session/runner/publish-llm-event.js +3 -3
  610. package/dist/session/runner/retry.js +4 -4
  611. package/dist/session/runner/step.js +124 -124
  612. package/dist/session/runner/to-llm-message.js +2 -2
  613. package/dist/session/schema.js +5 -5
  614. package/dist/session/session.js +172 -172
  615. package/dist/session/shell.js +138 -138
  616. package/dist/session/skill.js +103 -103
  617. package/dist/session/sql.js +5 -5
  618. package/dist/session/stats.js +73 -73
  619. package/dist/session/store.js +85 -85
  620. package/dist/session/subagent-completion.js +1 -1
  621. package/dist/session/subagent-job.js +211 -211
  622. package/dist/session/system-prompt.js +3 -3
  623. package/dist/session/title.js +155 -155
  624. package/dist/session/to-session-error.js +111 -111
  625. package/dist/session/transfer.js +221 -221
  626. package/dist/session/usage.js +1 -1
  627. package/dist/session.js +219 -219
  628. package/dist/shell/parse.js +6 -6
  629. package/dist/shell/result.js +1 -1
  630. package/dist/shell/scan.js +1 -1
  631. package/dist/shell/select.js +15 -15
  632. package/dist/shell.js +140 -140
  633. package/dist/skill/discovery.js +6 -6
  634. package/dist/skill/instructions.js +107 -107
  635. package/dist/skill.js +108 -108
  636. package/dist/snapshot.js +93 -93
  637. package/dist/state.js +1 -1
  638. package/dist/tool/html-markdown.js +1 -1
  639. package/dist/tool/http-body.js +1 -1
  640. package/dist/tool/mcp.js +124 -124
  641. package/dist/tool/plugin/edit.js +114 -114
  642. package/dist/tool/plugin/file-diff.js +1 -1
  643. package/dist/tool/plugin/glob.js +124 -124
  644. package/dist/tool/plugin/grep.js +124 -124
  645. package/dist/tool/plugin/mcp-resource.js +117 -117
  646. package/dist/tool/plugin/opencode.js +3 -3
  647. package/dist/tool/plugin/patch.js +114 -114
  648. package/dist/tool/plugin/question.js +101 -101
  649. package/dist/tool/plugin/read.js +125 -125
  650. package/dist/tool/plugin/shell.js +216 -216
  651. package/dist/tool/plugin/skill.js +107 -107
  652. package/dist/tool/plugin/subagent.js +216 -216
  653. package/dist/tool/plugin/webfetch.js +112 -112
  654. package/dist/tool/plugin/websearch.js +112 -112
  655. package/dist/tool/plugin/write.js +114 -114
  656. package/dist/tool/read-filesystem.js +100 -100
  657. package/dist/tool/runtime.js +1 -1
  658. package/dist/tool-output.js +8 -8
  659. package/dist/tool.js +14 -14
  660. package/dist/types/plugin/provider/chatgpt.d.ts +33 -0
  661. package/dist/util/error-summary.js +1 -1
  662. package/dist/util/error.js +1 -1
  663. package/dist/util/git-executable.js +2 -2
  664. package/dist/util/iife.js +1 -1
  665. package/dist/util/lazy.js +1 -1
  666. package/dist/util/slug.js +1 -1
  667. package/dist/util/token.js +1 -1
  668. package/dist/util/which.js +1 -1
  669. package/dist/util/wildcard.js +1 -1
  670. package/dist/v1/config/agent.js +5 -5
  671. package/dist/v1/config/attachment.js +4 -4
  672. package/dist/v1/config/command.js +3 -3
  673. package/dist/v1/config/config.js +16 -16
  674. package/dist/v1/config/error.js +4 -4
  675. package/dist/v1/config/formatter.js +7 -7
  676. package/dist/v1/config/layout.js +1 -1
  677. package/dist/v1/config/lsp.js +3 -3
  678. package/dist/v1/config/mcp.js +4 -4
  679. package/dist/v1/config/migrate.js +92 -92
  680. package/dist/v1/config/permission.js +7 -7
  681. package/dist/v1/config/plugin.js +3 -3
  682. package/dist/v1/config/provider-options.js +1 -1
  683. package/dist/v1/config/provider.js +4 -4
  684. package/dist/v1/config/server.js +2 -2
  685. package/dist/v1/config/skills.js +3 -3
  686. package/dist/v1/permission.js +1 -1
  687. package/dist/variant.js +93 -93
  688. package/dist/vcs/patch.js +1 -1
  689. package/dist/vcs.js +89 -89
  690. package/dist/websearch.js +80 -80
  691. package/dist/wellknown/plugin.js +76 -76
  692. package/dist/wellknown.js +79 -79
  693. package/dist/workspace/driver.js +5 -5
  694. package/dist/workspace/sql.js +1 -1
  695. package/dist/workspace.js +76 -76
  696. package/dist/worktree/directory.js +2 -2
  697. package/dist/worktree/git.js +10 -10
  698. package/dist/worktree/sql.js +5 -5
  699. package/dist/worktree/strategies.js +89 -89
  700. package/dist/worktree.js +98 -98
  701. package/package.json +9 -8
  702. package/dist/chunks/vcs-5bzc4ph3.js +0 -26
  703. package/dist/chunks/vcs-619r8v3y.js +0 -18
  704. package/dist/chunks/vcs-ryxm5mwn.js +0 -252
  705. /package/dist/chunks/{vcs-0qkdqm5v.js → ripgrep-0qkdqm5v.js} +0 -0
  706. /package/dist/chunks/{vcs-0zkw76rk.js → ripgrep-0zkw76rk.js} +0 -0
  707. /package/dist/chunks/{vcs-17cy0kzp.js → ripgrep-17cy0kzp.js} +0 -0
  708. /package/dist/chunks/{vcs-1cnp2v09.js → ripgrep-1cnp2v09.js} +0 -0
  709. /package/dist/chunks/{vcs-1kg9ymc8.js → ripgrep-1kg9ymc8.js} +0 -0
  710. /package/dist/chunks/{vcs-24dcb14g.js → ripgrep-24dcb14g.js} +0 -0
  711. /package/dist/chunks/{vcs-2710q6r3.js → ripgrep-2710q6r3.js} +0 -0
  712. /package/dist/chunks/{vcs-2axfhc9x.js → ripgrep-2axfhc9x.js} +0 -0
  713. /package/dist/chunks/{vcs-2c3vjs8z.js → ripgrep-2c3vjs8z.js} +0 -0
  714. /package/dist/chunks/{vcs-34c7v6d4.js → ripgrep-34c7v6d4.js} +0 -0
  715. /package/dist/chunks/{vcs-359p4xyc.js → ripgrep-359p4xyc.js} +0 -0
  716. /package/dist/chunks/{vcs-3asan66x.js → ripgrep-3asan66x.js} +0 -0
  717. /package/dist/chunks/{vcs-3v8g72cx.js → ripgrep-3v8g72cx.js} +0 -0
  718. /package/dist/chunks/{vcs-3w5fmr99.js → ripgrep-3w5fmr99.js} +0 -0
  719. /package/dist/chunks/{vcs-3wcehsnq.js → ripgrep-3wcehsnq.js} +0 -0
  720. /package/dist/chunks/{vcs-43n2bw4t.js → ripgrep-43n2bw4t.js} +0 -0
  721. /package/dist/chunks/{vcs-4knz6hnm.js → ripgrep-4knz6hnm.js} +0 -0
  722. /package/dist/chunks/{vcs-4vcrnpx2.js → ripgrep-4vcrnpx2.js} +0 -0
  723. /package/dist/chunks/{vcs-4y7fprxs.js → ripgrep-4y7fprxs.js} +0 -0
  724. /package/dist/chunks/{vcs-53557ph1.js → ripgrep-53557ph1.js} +0 -0
  725. /package/dist/chunks/{vcs-550bvhaj.js → ripgrep-550bvhaj.js} +0 -0
  726. /package/dist/chunks/{vcs-6prwharc.js → ripgrep-6prwharc.js} +0 -0
  727. /package/dist/chunks/{vcs-7akdwqpd.js → ripgrep-7akdwqpd.js} +0 -0
  728. /package/dist/chunks/{vcs-7m9af43g.js → ripgrep-7m9af43g.js} +0 -0
  729. /package/dist/chunks/{vcs-822emrt2.js → ripgrep-822emrt2.js} +0 -0
  730. /package/dist/chunks/{vcs-88xbtdfr.js → ripgrep-88xbtdfr.js} +0 -0
  731. /package/dist/chunks/{vcs-8n3pysct.js → ripgrep-8n3pysct.js} +0 -0
  732. /package/dist/chunks/{vcs-8wj87zfr.js → ripgrep-8wj87zfr.js} +0 -0
  733. /package/dist/chunks/{vcs-922hggd3.js → ripgrep-922hggd3.js} +0 -0
  734. /package/dist/chunks/{vcs-9a4afbnw.js → ripgrep-9a4afbnw.js} +0 -0
  735. /package/dist/chunks/{vcs-9rqn6x4v.js → ripgrep-9rqn6x4v.js} +0 -0
  736. /package/dist/chunks/{vcs-a6k6eb26.js → ripgrep-a6k6eb26.js} +0 -0
  737. /package/dist/chunks/{vcs-af5trqkr.js → ripgrep-af5trqkr.js} +0 -0
  738. /package/dist/chunks/{vcs-afrmfg78.js → ripgrep-afrmfg78.js} +0 -0
  739. /package/dist/chunks/{vcs-aqzs7mqg.js → ripgrep-aqzs7mqg.js} +0 -0
  740. /package/dist/chunks/{vcs-atq7p7m5.js → ripgrep-atq7p7m5.js} +0 -0
  741. /package/dist/chunks/{vcs-bkyjaxrp.js → ripgrep-bkyjaxrp.js} +0 -0
  742. /package/dist/chunks/{vcs-bmr6ed5q.js → ripgrep-bmr6ed5q.js} +0 -0
  743. /package/dist/chunks/{vcs-cf4snx6d.js → ripgrep-cf4snx6d.js} +0 -0
  744. /package/dist/chunks/{vcs-cvy3z8tj.js → ripgrep-cvy3z8tj.js} +0 -0
  745. /package/dist/chunks/{vcs-d9fn303g.js → ripgrep-d9fn303g.js} +0 -0
  746. /package/dist/chunks/{vcs-d9jj8t3e.js → ripgrep-d9jj8t3e.js} +0 -0
  747. /package/dist/chunks/{vcs-dajrwvna.js → ripgrep-dajrwvna.js} +0 -0
  748. /package/dist/chunks/{vcs-dap0rakb.js → ripgrep-dap0rakb.js} +0 -0
  749. /package/dist/chunks/{vcs-df08tz66.js → ripgrep-df08tz66.js} +0 -0
  750. /package/dist/chunks/{vcs-dy18nga0.js → ripgrep-dy18nga0.js} +0 -0
  751. /package/dist/chunks/{vcs-e5kj55wp.js → ripgrep-e5kj55wp.js} +0 -0
  752. /package/dist/chunks/{vcs-e73j6tqm.js → ripgrep-e73j6tqm.js} +0 -0
  753. /package/dist/chunks/{vcs-ec1grn59.js → ripgrep-ec1grn59.js} +0 -0
  754. /package/dist/chunks/{vcs-eh3zwz77.js → ripgrep-eh3zwz77.js} +0 -0
  755. /package/dist/chunks/{vcs-emrn6kk6.js → ripgrep-emrn6kk6.js} +0 -0
  756. /package/dist/chunks/{vcs-f0mxakyp.js → ripgrep-f0mxakyp.js} +0 -0
  757. /package/dist/chunks/{vcs-f6n9ztr4.js → ripgrep-f6n9ztr4.js} +0 -0
  758. /package/dist/chunks/{vcs-faypxj3z.js → ripgrep-faypxj3z.js} +0 -0
  759. /package/dist/chunks/{vcs-fd410y7t.js → ripgrep-fd410y7t.js} +0 -0
  760. /package/dist/chunks/{vcs-fxgpk5d8.js → ripgrep-fxgpk5d8.js} +0 -0
  761. /package/dist/chunks/{vcs-g4wezp1m.js → ripgrep-g4wezp1m.js} +0 -0
  762. /package/dist/chunks/{vcs-g86h250q.js → ripgrep-g86h250q.js} +0 -0
  763. /package/dist/chunks/{vcs-gebd4c9n.js → ripgrep-gebd4c9n.js} +0 -0
  764. /package/dist/chunks/{vcs-gftt206x.js → ripgrep-gftt206x.js} +0 -0
  765. /package/dist/chunks/{vcs-hjbc5kem.js → ripgrep-hjbc5kem.js} +0 -0
  766. /package/dist/chunks/{vcs-hk9envan.js → ripgrep-hk9envan.js} +0 -0
  767. /package/dist/chunks/{vcs-j2ntwpah.js → ripgrep-j2ntwpah.js} +0 -0
  768. /package/dist/chunks/{vcs-j5zkgpj8.js → ripgrep-j5zkgpj8.js} +0 -0
  769. /package/dist/chunks/{vcs-jjkms2e6.js → ripgrep-jjkms2e6.js} +0 -0
  770. /package/dist/chunks/{vcs-jr7sbwjy.js → ripgrep-jr7sbwjy.js} +0 -0
  771. /package/dist/chunks/{vcs-jwfs4k6c.js → ripgrep-jwfs4k6c.js} +0 -0
  772. /package/dist/chunks/{vcs-jzg6c2d5.js → ripgrep-jzg6c2d5.js} +0 -0
  773. /package/dist/chunks/{vcs-mp448xyj.js → ripgrep-mp448xyj.js} +0 -0
  774. /package/dist/chunks/{vcs-msx8hqn2.js → ripgrep-msx8hqn2.js} +0 -0
  775. /package/dist/chunks/{vcs-n05xt0ee.js → ripgrep-n05xt0ee.js} +0 -0
  776. /package/dist/chunks/{vcs-n3j8tn72.js → ripgrep-n3j8tn72.js} +0 -0
  777. /package/dist/chunks/{vcs-njntx4h6.js → ripgrep-njntx4h6.js} +0 -0
  778. /package/dist/chunks/{vcs-q3sfg36h.js → ripgrep-q3sfg36h.js} +0 -0
  779. /package/dist/chunks/{vcs-q74kybfr.js → ripgrep-q74kybfr.js} +0 -0
  780. /package/dist/chunks/{vcs-qaymkmh1.js → ripgrep-qaymkmh1.js} +0 -0
  781. /package/dist/chunks/{vcs-qb87gjwd.js → ripgrep-qb87gjwd.js} +0 -0
  782. /package/dist/chunks/{vcs-qfa1cgps.js → ripgrep-qfa1cgps.js} +0 -0
  783. /package/dist/chunks/{vcs-qg3g05ea.js → ripgrep-qg3g05ea.js} +0 -0
  784. /package/dist/chunks/{vcs-qrg20bc0.js → ripgrep-qrg20bc0.js} +0 -0
  785. /package/dist/chunks/{vcs-rcb2kzg1.js → ripgrep-rcb2kzg1.js} +0 -0
  786. /package/dist/chunks/{vcs-sdp7kfr6.js → ripgrep-sdp7kfr6.js} +0 -0
  787. /package/dist/chunks/{vcs-sk3qaz4a.js → ripgrep-sk3qaz4a.js} +0 -0
  788. /package/dist/chunks/{vcs-ssg3fenm.js → ripgrep-ssg3fenm.js} +0 -0
  789. /package/dist/chunks/{vcs-w803qqfp.js → ripgrep-w803qqfp.js} +0 -0
  790. /package/dist/chunks/{vcs-wc3fc9cn.js → ripgrep-wc3fc9cn.js} +0 -0
  791. /package/dist/chunks/{vcs-wer8tq1h.js → ripgrep-wer8tq1h.js} +0 -0
  792. /package/dist/chunks/{vcs-wtztk69x.js → ripgrep-wtztk69x.js} +0 -0
  793. /package/dist/chunks/{vcs-x0ckcb58.js → ripgrep-x0ckcb58.js} +0 -0
  794. /package/dist/chunks/{vcs-x61499pn.js → ripgrep-x61499pn.js} +0 -0
  795. /package/dist/chunks/{vcs-y44na4kk.js → ripgrep-y44na4kk.js} +0 -0
  796. /package/dist/chunks/{vcs-y8cydn3q.js → ripgrep-y8cydn3q.js} +0 -0
  797. /package/dist/chunks/{vcs-y8f7s663.js → ripgrep-y8f7s663.js} +0 -0
  798. /package/dist/chunks/{vcs-ygaqb7jw.js → ripgrep-ygaqb7jw.js} +0 -0
  799. /package/dist/chunks/{vcs-ym463w8f.js → ripgrep-ym463w8f.js} +0 -0
  800. /package/dist/chunks/{vcs-z9919s4g.js → ripgrep-z9919s4g.js} +0 -0
@@ -2,34 +2,34 @@ import {
2
2
  NotFound2,
3
3
  WrongKind2,
4
4
  Failed2
5
- } from "./vcs-2a5m3afh.js";
6
- import {
7
- Service80
8
- } from "./vcs-hh4v7266.js";
5
+ } from "./ripgrep-2a5m3afh.js";
9
6
  import {
10
7
  Service78
11
- } from "./vcs-40e80s20.js";
8
+ } from "./ripgrep-q26n4fcx.js";
9
+ import {
10
+ Service73
11
+ } from "./ripgrep-qa3v0gpg.js";
12
12
  import {
13
- Service60
14
- } from "./vcs-5p6nskts.js";
13
+ Service48
14
+ } from "./ripgrep-d8s5zaak.js";
15
15
  import {
16
16
  Service18,
17
17
  readText2,
18
18
  syncTextBom2
19
- } from "./vcs-zcws0pck.js";
19
+ } from "./ripgrep-e65wgfyf.js";
20
20
  import {
21
- Service55
22
- } from "./vcs-axj6q4j4.js";
21
+ Service58
22
+ } from "./ripgrep-n50qm4s2.js";
23
23
  import {
24
- Service21,
24
+ Service17,
25
25
  resolvePath2
26
- } from "./vcs-szpqyd6h.js";
26
+ } from "./ripgrep-qwhsc8p7.js";
27
27
  import {
28
28
  fileDiff2
29
- } from "./vcs-6prwharc.js";
29
+ } from "./ripgrep-6prwharc.js";
30
30
  import {
31
31
  __export
32
- } from "./vcs-9rqn6x4v.js";
32
+ } from "./ripgrep-9rqn6x4v.js";
33
33
 
34
34
  // src/tool/plugin/patch.ts
35
35
  var exports_patch = {};
@@ -38,7 +38,7 @@ __export(exports_patch, {
38
38
  Input: () => Input8,
39
39
  Output: () => Output6,
40
40
  PatchTool: () => exports_patch,
41
- Plugin: () => Plugin28,
41
+ Plugin: () => Plugin42,
42
42
  name: () => name8,
43
43
  toModelContent: () => toModelContent4
44
44
  });
@@ -105,15 +105,15 @@ var toModelContent4 = (output) => [
105
105
  ...output.applied.map((item) => `${item.type === "add" ? "A" : item.type === "delete" ? "D" : "M"} ${item.resource}`)
106
106
  ].join(`
107
107
  `);
108
- var Plugin28 = {
108
+ var Plugin42 = {
109
109
  id: "opencode.tool.patch",
110
110
  effect: Effect.fn("PatchTool.Plugin")(function* (ctx) {
111
- const environment = yield* Service78;
112
- const access = yield* Service21;
111
+ const environment = yield* Service73;
112
+ const access = yield* Service17;
113
113
  const fileMutation = yield* Service18;
114
- const formatter = yield* Service60;
115
- const location = yield* Service80;
116
- const permission = yield* Service55;
114
+ const formatter = yield* Service48;
115
+ const location = yield* Service78;
116
+ const permission = yield* Service58;
117
117
  yield* ctx.tool.transform((editor) => editor.add({
118
118
  name: name8,
119
119
  options: { codemode: false, permission: "edit" },
@@ -326,4 +326,4 @@ function trimDiff(diff) {
326
326
  `);
327
327
  }
328
328
 
329
- export { name8, Input8, Applied2, Output6, toModelContent4, Plugin28, exports_patch };
329
+ export { name8, Input8, Applied2, Output6, toModelContent4, Plugin42, exports_patch };
@@ -1,12 +1,12 @@
1
1
  import {
2
2
  makeWithDefaults2
3
- } from "./vcs-42kdhqse.js";
3
+ } from "./ripgrep-bea85hdf.js";
4
4
  import {
5
5
  apply3
6
- } from "./vcs-ng7678yv.js";
6
+ } from "./ripgrep-3skt28fc.js";
7
7
  import {
8
8
  __export
9
- } from "./vcs-9rqn6x4v.js";
9
+ } from "./ripgrep-9rqn6x4v.js";
10
10
 
11
11
  // src/database/database.ts
12
12
  var exports_database = {};
@@ -0,0 +1,424 @@
1
+ import {
2
+ useragent2
3
+ } from "./ripgrep-mtf32xg9.js";
4
+ import {
5
+ Service80
6
+ } from "./ripgrep-kcetpk2c.js";
7
+ import {
8
+ ID14,
9
+ OAuth3,
10
+ Event17,
11
+ Service68
12
+ } from "./ripgrep-gmfetzq4.js";
13
+ import {
14
+ key2
15
+ } from "./ripgrep-3y377wv9.js";
16
+ import {
17
+ ID13,
18
+ MethodID2
19
+ } from "./ripgrep-bahgfxtd.js";
20
+ import {
21
+ ID12,
22
+ mergeOverlay2
23
+ } from "./ripgrep-zexvq6re.js";
24
+ import {
25
+ ID11,
26
+ VariantID2,
27
+ Info24
28
+ } from "./ripgrep-ag1tg3gv.js";
29
+ import {
30
+ success2,
31
+ error2
32
+ } from "./ripgrep-pjvnvgmy.js";
33
+
34
+ // src/plugin/provider/chatgpt.ts
35
+ import { define } from "@opencode/plugin/effect/plugin";
36
+ import { Deferred, Duration, Effect, Option, Schema, Semaphore, Stream } from "effect";
37
+ import { HttpClient, HttpClientRequest, HttpClientResponse } from "effect/unstable/http";
38
+ var registrationClientID = "dynamic_agent_client";
39
+ var agentName = "OpenCode";
40
+ var issuer = "https://auth.openai.com";
41
+ var tokenURL = `${issuer}/api/accounts/oauth/token`;
42
+ var resource = "https://api.openai.com/v1";
43
+ var tokenSharingScope = "chatgpt.tokens.use.direct";
44
+ var providerID = ID12.openai;
45
+ var integrationID = ID13.make("openai");
46
+ var methodID = MethodID2.make("chatgpt-token-sharing");
47
+ var modelCacheKey = (clientID) => `models:${clientID}`;
48
+ var fallbackModels = new Set([
49
+ "gpt-5.5",
50
+ "gpt-5.5-fast",
51
+ "gpt-5.6-luna",
52
+ "gpt-5.6-luna-fast",
53
+ "gpt-5.6-sol",
54
+ "gpt-5.6-sol-fast",
55
+ "gpt-5.6-terra",
56
+ "gpt-5.6-terra-fast",
57
+ "gpt-6-astra",
58
+ "gpt-6-astra-fast"
59
+ ]);
60
+ var nonRetryableSharingCodes = [
61
+ "subscription_sharing_usage_limit_exceeded",
62
+ "subscription_sharing_v2_user_not_eligible",
63
+ "subscription_sharing_unsupported_capability",
64
+ "subscription_sharing_v2_client_not_enabled",
65
+ "subscription_sharing_v2_route_not_supported",
66
+ "subscription_sharing_v2_invalid_user"
67
+ ];
68
+ var RemoteModel = Schema.Struct({
69
+ slug: Schema.String,
70
+ display_name: Schema.String,
71
+ visibility: Schema.String,
72
+ supported_in_api: Schema.Boolean,
73
+ context_window: Schema.Int.check(Schema.isGreaterThan(1)),
74
+ input_modalities: Schema.Array(Schema.String),
75
+ supported_reasoning_levels: Schema.optional(Schema.Array(Schema.Struct({ effort: Schema.String })))
76
+ });
77
+ var RemoteModels = Schema.Struct({ models: Schema.Array(RemoteModel) });
78
+ var decodeCachedModels = Schema.decodeUnknownOption(Schema.Array(RemoteModel));
79
+ var decodeMetadata = Schema.decodeUnknownOption(Schema.Struct({
80
+ clientID: Schema.String,
81
+ scopes: Schema.optional(Schema.Array(Schema.String)),
82
+ models: Schema.optional(Schema.Array(RemoteModel))
83
+ }));
84
+ var signIn = (app, savedClientID, storage) => ({
85
+ integrationID,
86
+ method: {
87
+ id: methodID,
88
+ type: "oauth",
89
+ label: "Sign in with ChatGPT"
90
+ },
91
+ authorize: () => Effect.gen(function* () {
92
+ const storedHostID = yield* storage.get("chatgpt-agent-host-id");
93
+ const hostID = typeof storedHostID === "string" ? storedHostID : `urn:uuid:${crypto.randomUUID()}`;
94
+ if (typeof storedHostID !== "string")
95
+ yield* storage.set("chatgpt-agent-host-id", hostID);
96
+ const pkce = yield* Effect.promise(generatePKCE);
97
+ const state = randomValue();
98
+ const nonce = randomValue();
99
+ const savedID = savedClientID();
100
+ const received = yield* Deferred.make();
101
+ const { createServer } = yield* Effect.promise(() => import("node:http"));
102
+ const server = createServer((request, response) => {
103
+ const url = new URL(request.url ?? "/", "http://127.0.0.1");
104
+ if (url.pathname !== "/auth/callback") {
105
+ response.writeHead(404).end("Not found");
106
+ return;
107
+ }
108
+ const error = url.searchParams.get("error_description") ?? url.searchParams.get("error");
109
+ const authorizationCode = url.searchParams.get("code");
110
+ if (error) {
111
+ Effect.runFork(Deferred.fail(received, new Error(error)));
112
+ response.writeHead(400, { "Content-Type": "text/html" }).end(error2(error, { provider: "ChatGPT" }));
113
+ return;
114
+ }
115
+ if (!authorizationCode || url.searchParams.get("state") !== state) {
116
+ const message = authorizationCode ? "Invalid OAuth state" : "Missing authorization code";
117
+ Effect.runFork(Deferred.fail(received, new Error(message)));
118
+ response.writeHead(400, { "Content-Type": "text/html" }).end(error2(message, { provider: "ChatGPT" }));
119
+ return;
120
+ }
121
+ if (!Effect.runSync(Deferred.succeed(received, {
122
+ code: authorizationCode,
123
+ clientID: url.searchParams.get("client_id") ?? undefined,
124
+ response
125
+ })))
126
+ response.writeHead(409).end("OAuth callback already received");
127
+ });
128
+ const port = yield* listen(server);
129
+ yield* Effect.addFinalizer(() => Effect.sync(() => server.close()));
130
+ const redirect = `http://127.0.0.1:${port}/auth/callback`;
131
+ return {
132
+ mode: "auto",
133
+ url: authorizeURL(redirect, pkce, state, nonce, savedID, hostID),
134
+ instructions: "Complete authorization in your browser. This window will close automatically.",
135
+ callback: Effect.gen(function* () {
136
+ const result = yield* Deferred.await(received);
137
+ const respond = (error) => Effect.sync(() => result.response.writeHead(error ? 400 : 200, { "Content-Type": "text/html" }).end(error ? error2(error, { provider: "ChatGPT" }) : success2({ provider: "ChatGPT" })));
138
+ return yield* Effect.gen(function* () {
139
+ const clientID = result.clientID ?? savedID;
140
+ if (!clientID)
141
+ return yield* Effect.fail(new Error("ChatGPT sign-in did not return a client ID. Connect again."));
142
+ const tokens = yield* exchange(result.code, clientID, redirect, pkce, app);
143
+ if (!tokens.scope?.split(" ").includes(tokenSharingScope))
144
+ return yield* Effect.fail(new Error("ChatGPT sign-in finished without token sharing. Sign in again and allow token sharing, or connect OpenAI with an API key."));
145
+ if (!tokens.id_token)
146
+ return yield* Effect.fail(new Error("ChatGPT sign-in did not return an ID token."));
147
+ yield* verifyIDToken2(tokens.id_token, clientID, nonce);
148
+ return credential(tokens, clientID);
149
+ }).pipe(Effect.tap(() => respond()), Effect.tapError((error) => respond(error instanceof Error ? error.message : "ChatGPT sign-in failed")), Effect.onInterrupt(() => Effect.sync(() => result.response.destroy())));
150
+ })
151
+ };
152
+ }),
153
+ refresh: (value) => refresh(value, app)
154
+ });
155
+ function listen(server) {
156
+ return Effect.callback((resume) => {
157
+ const onError = (error) => resume(Effect.fail(error));
158
+ server.once("error", onError);
159
+ server.listen(0, "127.0.0.1", () => {
160
+ server.off("error", onError);
161
+ const address = server.address();
162
+ if (!address || typeof address === "string")
163
+ return resume(Effect.fail(new Error("Missing OAuth callback port")));
164
+ resume(Effect.succeed(address.port));
165
+ });
166
+ });
167
+ }
168
+ var ChatGPTPlugin2 = define({
169
+ id: "opencode.provider.chatgpt",
170
+ effect: Effect.fn(function* (ctx) {
171
+ const bus = yield* Service80;
172
+ const credentials = yield* Service68;
173
+ const loading = Semaphore.makeUnsafe(1);
174
+ let chatgpt;
175
+ let available;
176
+ let source;
177
+ const load = Effect.fn("ChatGPTPlugin.load")(function* () {
178
+ const previous = key2(source);
179
+ const connection = yield* ctx.integration.connection.active(integrationID);
180
+ const credential = connection ? yield* ctx.integration.connection.resolve(connection).pipe(Effect.orElseSucceed(() => {
181
+ return;
182
+ })) : undefined;
183
+ chatgpt = credential?.type === "oauth" && credential.methodID === methodID ? credential : undefined;
184
+ source = chatgpt ? connection : undefined;
185
+ if (previous !== key2(source)) {
186
+ const metadata = Option.getOrUndefined(decodeMetadata(chatgpt?.metadata));
187
+ const stored = metadata ? yield* ctx.storage.get(modelCacheKey(metadata.clientID)) : undefined;
188
+ available = Option.getOrUndefined(decodeCachedModels(stored));
189
+ }
190
+ });
191
+ yield* ctx.integration.transform((editor) => {
192
+ editor.method.update(signIn(ctx.app, () => Option.getOrUndefined(decodeMetadata(chatgpt?.metadata))?.clientID, ctx.storage));
193
+ });
194
+ yield* Effect.forEach(yield* credentials.list(ID13.make("openai")), (entry) => {
195
+ const value = entry.value;
196
+ if (value.type !== "oauth" || value.methodID !== MethodID2.make("chatgpt-browser"))
197
+ return Effect.void;
198
+ const metadata = Option.getOrUndefined(decodeMetadata(value.metadata));
199
+ if (!metadata)
200
+ return Effect.void;
201
+ return Effect.gen(function* () {
202
+ const saved = yield* ctx.storage.get(modelCacheKey(metadata.clientID));
203
+ if (!Option.isSome(decodeCachedModels(saved)) && metadata.models)
204
+ yield* ctx.storage.set(modelCacheKey(metadata.clientID), metadata.models);
205
+ const { models: _, ...rest } = value.metadata ?? {};
206
+ yield* credentials.update(entry.id, {
207
+ value: OAuth3.make({ ...value, methodID, metadata: rest })
208
+ });
209
+ });
210
+ }, { discard: true });
211
+ yield* load();
212
+ yield* ctx.session.hook("retry", (event) => Effect.sync(() => {
213
+ if (!chatgpt || !nonRetryableSharingCodes.some((code) => event.error.response?.body.includes(code)))
214
+ return;
215
+ event.decision = { retry: false };
216
+ }), { providerID });
217
+ yield* ctx.provider.transform((providers) => {
218
+ const item = providers.get(providerID);
219
+ if (!item)
220
+ return;
221
+ if (!chatgpt || !source)
222
+ return;
223
+ providers.update(providerID, (provider) => {
224
+ provider.settings = mergeOverlay2(provider.settings, {
225
+ baseURL: resource,
226
+ transport: "http",
227
+ compaction: { type: "summary" }
228
+ });
229
+ });
230
+ const updated = providers.get(providerID);
231
+ if (!updated)
232
+ return;
233
+ providers.add({
234
+ info: updated.provider,
235
+ models: available ? deriveModels2(available, Array.from(item.models.values())) : Array.from(item.models.values()).filter((model) => fallbackModels.has(model.id)),
236
+ sourceConnection: source
237
+ });
238
+ });
239
+ yield* ctx.model.transform((models) => {
240
+ for (const model of models.list(providerID)) {
241
+ models.update(model.providerID, model.id, (draft) => {
242
+ if (!chatgpt)
243
+ return;
244
+ draft.settings = { ...draft.settings, compaction: { type: "summary" } };
245
+ if (Schema.is(Schema.Struct({ mode: Schema.Literal("pro") }))(draft.body?.reasoning)) {
246
+ draft.enabled = false;
247
+ return;
248
+ }
249
+ if (available && !available.some((remote) => remote.slug === (draft.modelID ?? draft.id))) {
250
+ draft.enabled = false;
251
+ return;
252
+ }
253
+ draft.cost = [];
254
+ });
255
+ }
256
+ });
257
+ const refreshModels = Effect.fn("ChatGPTPlugin.refreshModels")(function* () {
258
+ const connection = source;
259
+ const credential = connection?.type === "credential" ? (yield* credentials.get(ID14.make(connection.id)))?.value : undefined;
260
+ if (credential?.type !== "oauth" || credential.methodID !== methodID || credential.expires <= Date.now() + 60000)
261
+ return;
262
+ const metadata = Option.getOrUndefined(decodeMetadata(credential.metadata));
263
+ if (!metadata)
264
+ return;
265
+ const models = yield* fetchModels2(credential.access, ctx.app).pipe(Effect.timeout(15000), Effect.catch(() => Effect.logWarning("failed to refresh ChatGPT models").pipe(Effect.as(undefined))));
266
+ if (!models)
267
+ return;
268
+ yield* loading.withPermit(Effect.gen(function* () {
269
+ if (key2(connection) !== key2(source) || key2(connection) !== key2(yield* ctx.integration.connection.active(integrationID)))
270
+ return;
271
+ if (JSON.stringify(models) === JSON.stringify(available))
272
+ return;
273
+ yield* ctx.storage.set(modelCacheKey(metadata.clientID), models);
274
+ available = models;
275
+ yield* ctx.provider.reload();
276
+ }));
277
+ });
278
+ const reload = () => loading.withPermit(load().pipe(Effect.andThen(ctx.provider.reload()))).pipe(Effect.andThen(refreshModels().pipe(Effect.forkScoped, Effect.asVoid)));
279
+ yield* bus.subscribe(Event17.Switched).pipe(Stream.filter((event) => event.data.integrationID === integrationID), Stream.runForEach(reload), Effect.forkScoped({ startImmediately: true }));
280
+ yield* refreshModels().pipe(Effect.forkScoped);
281
+ yield* Effect.sleep(Duration.minutes(15)).pipe(Effect.andThen(refreshModels), Effect.forever, Effect.forkScoped);
282
+ })
283
+ });
284
+ function headers(app) {
285
+ return { "Content-Type": "application/x-www-form-urlencoded", "User-Agent": useragent2(app) };
286
+ }
287
+ function exchange(code, clientID, redirect, pkce, app) {
288
+ return request(tokenURL, {
289
+ method: "POST",
290
+ headers: headers(app),
291
+ body: new URLSearchParams({
292
+ grant_type: "authorization_code",
293
+ client_id: clientID,
294
+ code,
295
+ code_verifier: pkce.verifier,
296
+ redirect_uri: redirect,
297
+ resource
298
+ }).toString()
299
+ });
300
+ }
301
+ function refresh(value, app) {
302
+ return Effect.gen(function* () {
303
+ const metadata = Option.getOrUndefined(decodeMetadata(value.metadata));
304
+ if (!metadata)
305
+ return yield* Effect.fail(new Error("This ChatGPT connection has no registered client ID. Connect again."));
306
+ const tokens = yield* request(tokenURL, {
307
+ method: "POST",
308
+ headers: headers(app),
309
+ body: new URLSearchParams({
310
+ grant_type: "refresh_token",
311
+ client_id: metadata.clientID,
312
+ refresh_token: value.refresh,
313
+ resource
314
+ }).toString()
315
+ });
316
+ return credential(tokens, metadata.clientID, metadata.scopes);
317
+ });
318
+ }
319
+ function fetchModels2(token, app, baseURL = resource) {
320
+ return Effect.gen(function* () {
321
+ const http = HttpClient.filterStatusOk(yield* HttpClient.HttpClient);
322
+ const response = yield* http.execute(HttpClientRequest.get(`${baseURL}/models`).pipe(HttpClientRequest.bearerToken(token), HttpClientRequest.setHeader("User-Agent", useragent2(app))));
323
+ const data = yield* HttpClientResponse.schemaBodyJson(RemoteModels)(response);
324
+ const models = data.models.filter((model) => model.visibility === "list" && model.supported_in_api);
325
+ if (!models.length)
326
+ return yield* Effect.fail(new Error("No ChatGPT models are available for this account."));
327
+ return models;
328
+ });
329
+ }
330
+ function deriveModels2(remote, existing) {
331
+ const byID = new Map(remote.map((model) => [model.slug, model]));
332
+ const known = new Set(existing.map((model) => model.id));
333
+ return [
334
+ ...existing.flatMap((model) => {
335
+ const found = byID.get(model.modelID);
336
+ return found ? [deriveModel(found, model)] : [];
337
+ }),
338
+ ...remote.filter((model) => !known.has(ID11.make(model.slug))).map((model) => deriveModel(model, Info24.default(ID12.openai, ID11.make(model.slug))))
339
+ ];
340
+ }
341
+ function deriveModel(remote, previous) {
342
+ return {
343
+ ...previous,
344
+ name: previous.id === previous.modelID ? remote.display_name : previous.name,
345
+ package: previous.package ?? "@opencode/ai/providers/openai",
346
+ capabilities: {
347
+ ...previous.capabilities,
348
+ input: remote.input_modalities.filter((modality) => modality === "text" || modality === "image")
349
+ },
350
+ variants: [
351
+ ...previous.variants.filter((variant) => typeof variant.settings?.reasoningEffort !== "string"),
352
+ ...(remote.supported_reasoning_levels ?? []).map(({ effort }) => previous.variants.find((variant) => variant.id === effort && variant.settings?.reasoningEffort === effort) ?? { id: VariantID2.make(effort), settings: { reasoningEffort: effort } })
353
+ ],
354
+ limit: { context: remote.context_window, output: previous.limit.output }
355
+ };
356
+ }
357
+ function verifyIDToken2(token, clientID, nonce, jwksURL = new URL(`${issuer}/.well-known/jwks.json`)) {
358
+ return Effect.tryPromise({
359
+ try: async () => {
360
+ const { createRemoteJWKSet, jwtVerify } = await import("jose");
361
+ const { payload } = await jwtVerify(token, createRemoteJWKSet(jwksURL), {
362
+ issuer,
363
+ audience: clientID,
364
+ algorithms: ["RS256"],
365
+ requiredClaims: ["exp", "nonce", "sub"]
366
+ });
367
+ if (typeof payload.sub !== "string" || !payload.sub.trim())
368
+ throw new Error("ID token subject is missing");
369
+ if (payload.nonce !== nonce)
370
+ throw new Error("ID token nonce does not match this sign-in attempt");
371
+ },
372
+ catch: (cause) => new Error("ChatGPT sign-in returned an invalid ID token.", { cause })
373
+ });
374
+ }
375
+ function request(url, init) {
376
+ return Effect.tryPromise({
377
+ try: async (signal) => {
378
+ const response = await fetch(url, { ...init, signal });
379
+ if (!response.ok)
380
+ throw new Error(`Request failed: ${response.status}`);
381
+ return response.json();
382
+ },
383
+ catch: (cause) => cause
384
+ });
385
+ }
386
+ function credential(tokens, clientID, scopes) {
387
+ return OAuth3.make({
388
+ type: "oauth",
389
+ methodID,
390
+ refresh: tokens.refresh_token,
391
+ access: tokens.access_token,
392
+ expires: Date.now() + (tokens.expires_in ?? 3600) * 1000,
393
+ metadata: { clientID, scopes: tokens.scope?.split(" ").filter(Boolean) ?? scopes ?? [] }
394
+ });
395
+ }
396
+ async function generatePKCE() {
397
+ const chars = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-._~";
398
+ const verifier = Array.from(crypto.getRandomValues(new Uint8Array(43)), (byte) => chars[byte % chars.length]).join("");
399
+ const challenge = base64UrlEncode(await crypto.subtle.digest("SHA-256", new TextEncoder().encode(verifier)));
400
+ return { verifier, challenge };
401
+ }
402
+ function randomValue() {
403
+ return base64UrlEncode(crypto.getRandomValues(new Uint8Array(32)).buffer);
404
+ }
405
+ function base64UrlEncode(buffer) {
406
+ return Buffer.from(buffer).toString("base64url");
407
+ }
408
+ function authorizeURL(redirect, pkce, state, nonce, savedID, hostID) {
409
+ return `${issuer}/api/accounts/authorize?${new URLSearchParams({
410
+ client_id: savedID ?? registrationClientID,
411
+ ...savedID ? {} : { agent_name_hint: agentName },
412
+ ext_agent_host_id: hostID,
413
+ response_type: "code",
414
+ redirect_uri: redirect,
415
+ scope: `openid profile email offline_access resource.invoke ${tokenSharingScope}`,
416
+ resource,
417
+ state,
418
+ nonce,
419
+ code_challenge_method: "S256",
420
+ code_challenge: pkce.challenge
421
+ })}`;
422
+ }
423
+
424
+ export { ChatGPTPlugin2, fetchModels2, deriveModels2, verifyIDToken2 };
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  __export
3
- } from "./vcs-9rqn6x4v.js";
3
+ } from "./ripgrep-9rqn6x4v.js";
4
4
 
5
5
  // src/v1/config/lsp.ts
6
6
  var exports_lsp = {};
@@ -8,7 +8,7 @@ __export(exports_lsp, {
8
8
  ConfigLSPV1: () => exports_lsp,
9
9
  Disabled: () => Disabled2,
10
10
  Entry: () => Entry3,
11
- Info: () => Info19,
11
+ Info: () => Info18,
12
12
  builtinServerIds: () => builtinServerIds2,
13
13
  requiresExtensionsForCustomServers: () => requiresExtensionsForCustomServers2
14
14
  });
@@ -79,6 +79,6 @@ var requiresExtensionsForCustomServers2 = Schema.makeFilter((data) => {
79
79
  });
80
80
  return ok ? undefined : "For custom LSP servers, 'extensions' array is required.";
81
81
  });
82
- var Info19 = Schema.Union([Schema.Boolean, Schema.Record(Schema.String, Entry3)]).check(requiresExtensionsForCustomServers2);
82
+ var Info18 = Schema.Union([Schema.Boolean, Schema.Record(Schema.String, Entry3)]).check(requiresExtensionsForCustomServers2);
83
83
 
84
- export { Disabled2, Entry3, builtinServerIds2, requiresExtensionsForCustomServers2, Info19, exports_lsp };
84
+ export { Disabled2, Entry3, builtinServerIds2, requiresExtensionsForCustomServers2, Info18, exports_lsp };
@@ -1,16 +1,16 @@
1
1
  import {
2
- Service83,
3
- node87
4
- } from "./vcs-1ekk4s7j.js";
2
+ Service80,
3
+ node84
4
+ } from "./ripgrep-kcetpk2c.js";
5
5
  import {
6
6
  create3
7
- } from "./vcs-rdw6cm16.js";
7
+ } from "./ripgrep-rdw6cm16.js";
8
8
  import {
9
9
  evaluate2
10
- } from "./vcs-axj6q4j4.js";
10
+ } from "./ripgrep-n50qm4s2.js";
11
11
  import {
12
12
  __export
13
- } from "./vcs-9rqn6x4v.js";
13
+ } from "./ripgrep-9rqn6x4v.js";
14
14
 
15
15
  // src/skill.ts
16
16
  var exports_skill5 = {};
@@ -18,15 +18,15 @@ __export(exports_skill5, {
18
18
  DirectorySource: () => DirectorySource2,
19
19
  EmbeddedSource: () => EmbeddedSource2,
20
20
  Event: () => Event7,
21
- ID: () => ID6,
21
+ ID: () => ID5,
22
22
  Info: () => Info7,
23
23
  Name: () => Name2,
24
- Service: () => Service45,
24
+ Service: () => Service40,
25
25
  Skill: () => exports_skill5,
26
- Source: () => Source3,
26
+ Source: () => Source4,
27
27
  UrlSource: () => UrlSource2,
28
28
  available: () => available2,
29
- node: () => node48,
29
+ node: () => node43,
30
30
  prepare: () => prepare3,
31
31
  toModelOutput: () => toModelOutput3
32
32
  });
@@ -38,9 +38,9 @@ import { Event as Event7 } from "@opencode/schema/skill";
38
38
  var DirectorySource2 = Skill.DirectorySource;
39
39
  var UrlSource2 = Skill.UrlSource;
40
40
  var EmbeddedSource2 = Skill.EmbeddedSource;
41
- var Source3 = Skill.Source;
41
+ var Source4 = Skill.Source;
42
42
  var Info7 = Skill.Info;
43
- var ID6 = Skill.ID;
43
+ var ID5 = Skill.ID;
44
44
  var Name2 = Skill.Name;
45
45
  var available2 = (skills, permissions) => skills.filter((skill) => evaluate2("skill", skill.id, permissions).effect !== "deny");
46
46
  var toModelOutput3 = (skill, files) => {
@@ -71,33 +71,33 @@ var prepare3 = Effect.fn("Skill.prepare")(function* (fs, skill) {
71
71
  };
72
72
  });
73
73
 
74
- class Service45 extends Context.Service()("@opencode/Skill") {
74
+ class Service40 extends Context.Service()("@opencode/Skill") {
75
75
  }
76
- var layer = Layer.effect(Service45, Effect.gen(function* () {
77
- const bus = yield* Service83;
76
+ var layer = Layer.effect(Service40, Effect.gen(function* () {
77
+ const bus = yield* Service80;
78
78
  const state = create3({
79
79
  name: "skill",
80
80
  initial: () => ({ skills: new Map }),
81
81
  editor: (editor) => ({
82
82
  list: () => Array.from(editor.skills.values()),
83
- get: (id) => editor.skills.get(ID6.make(id)),
83
+ get: (id) => editor.skills.get(ID5.make(id)),
84
84
  add: (skill) => {
85
85
  editor.skills.set(skill.id, { ...skill });
86
86
  },
87
87
  update: (id, update) => {
88
- const current = editor.skills.get(ID6.make(id));
88
+ const current = editor.skills.get(ID5.make(id));
89
89
  if (!current)
90
90
  return;
91
91
  update(current);
92
- current.id = ID6.make(id);
92
+ current.id = ID5.make(id);
93
93
  },
94
94
  remove: (id) => {
95
- editor.skills.delete(ID6.make(id));
95
+ editor.skills.delete(ID5.make(id));
96
96
  }
97
97
  }),
98
98
  notify: () => bus.publish(Skill.Event.Updated, {}).pipe(Effect.asVoid)
99
99
  });
100
- return Service45.of({
100
+ return Service40.of({
101
101
  transform: state.transform,
102
102
  reload: state.reload,
103
103
  get: Effect.fn("Skill.get")(function* (id) {
@@ -108,10 +108,10 @@ var layer = Layer.effect(Service45, Effect.gen(function* () {
108
108
  })
109
109
  });
110
110
  }));
111
- var node48 = makeLocationNode({
112
- service: Service45,
111
+ var node43 = makeLocationNode({
112
+ service: Service40,
113
113
  layer,
114
- deps: [node87]
114
+ deps: [node84]
115
115
  });
116
116
 
117
- export { DirectorySource2, UrlSource2, EmbeddedSource2, Source3, Info7, ID6, Name2, available2, toModelOutput3, prepare3, Service45, node48, exports_skill5, Event7 };
117
+ export { DirectorySource2, UrlSource2, EmbeddedSource2, Source4, Info7, ID5, Name2, available2, toModelOutput3, prepare3, Service40, node43, exports_skill5, Event7 };