@opencode/core 0.0.0-dev-19839 → 0.0.0-dev-19842

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 (794) hide show
  1. package/dist/account/sql.js +1 -1
  2. package/dist/agent.js +80 -80
  3. package/dist/aisdk-native.js +88 -88
  4. package/dist/aisdk.js +91 -91
  5. package/dist/app.js +9 -9
  6. package/dist/bus.js +68 -68
  7. package/dist/chunks/{worktree-2grvmngk.js → workspace-04y2rkk2.js} +11 -11
  8. package/dist/chunks/{worktree-d2aac7k2.js → workspace-0f9afca0.js} +5 -5
  9. package/dist/chunks/{worktree-n0c6g085.js → workspace-0gptwf17.js} +27 -27
  10. package/dist/chunks/{worktree-2k8khapm.js → workspace-0jwsre1p.js} +5 -5
  11. package/dist/chunks/{worktree-36385fv4.js → workspace-0kkgx1hv.js} +5 -5
  12. package/dist/chunks/{worktree-ks6fp8g0.js → workspace-0me4z1n8.js} +16 -16
  13. package/dist/chunks/{worktree-0paq2nw3.js → workspace-0paq2nw3.js} +1 -1
  14. package/dist/chunks/{worktree-0q0f95c6.js → workspace-0q0f95c6.js} +1 -1
  15. package/dist/chunks/{worktree-bdreqd6y.js → workspace-0qn3s7y6.js} +9 -9
  16. package/dist/chunks/{worktree-ynvr2dvc.js → workspace-0t9d6x9s.js} +22 -22
  17. package/dist/chunks/{worktree-zhsyjq1s.js → workspace-0tgtrx77.js} +13 -13
  18. package/dist/chunks/{worktree-1jcctp8h.js → workspace-11kb2ryy.js} +22 -22
  19. package/dist/chunks/{worktree-n9nnv5bx.js → workspace-17zqg50h.js} +21 -21
  20. package/dist/chunks/{worktree-f2n192rq.js → workspace-1acjjqhc.js} +4 -4
  21. package/dist/chunks/{worktree-26zmw6vg.js → workspace-1b4r2z2j.js} +50 -50
  22. package/dist/chunks/{worktree-1dazxqgg.js → workspace-1dazxqgg.js} +2 -2
  23. package/dist/chunks/{worktree-c9q1sp9w.js → workspace-1s7b1csw.js} +8 -8
  24. package/dist/chunks/{worktree-bwj0s2z3.js → workspace-1v57fm2m.js} +7 -7
  25. package/dist/chunks/{worktree-3errd6sf.js → workspace-1xam1b6j.js} +47 -47
  26. package/dist/chunks/{worktree-8tsdq50x.js → workspace-1y283654.js} +4 -4
  27. package/dist/chunks/{worktree-21r38tys.js → workspace-21r38tys.js} +1 -1
  28. package/dist/chunks/{worktree-2402vzrj.js → workspace-2402vzrj.js} +1 -1
  29. package/dist/chunks/{worktree-09r3zm1x.js → workspace-2438drjd.js} +9 -9
  30. package/dist/chunks/{worktree-t243pvw8.js → workspace-24xg1x4z.js} +16 -16
  31. package/dist/chunks/{worktree-2a5m3afh.js → workspace-2a5m3afh.js} +1 -1
  32. package/dist/chunks/{worktree-7p8zv4r2.js → workspace-2mkhnbvz.js} +22 -22
  33. package/dist/chunks/{worktree-8gyebbke.js → workspace-2sezm37j.js} +6 -6
  34. package/dist/chunks/{worktree-rdrgmjyp.js → workspace-2xmpv3m6.js} +7 -7
  35. package/dist/chunks/{worktree-sj0sw9zb.js → workspace-2znr0nan.js} +32 -32
  36. package/dist/chunks/{worktree-pyj9dmja.js → workspace-31gccvh4.js} +13 -13
  37. package/dist/chunks/{worktree-75xv13tv.js → workspace-342mg198.js} +10 -10
  38. package/dist/chunks/{worktree-pfgvbcn0.js → workspace-347p2yks.js} +9 -9
  39. package/dist/chunks/{worktree-39xar9bx.js → workspace-357e4jec.js} +15 -15
  40. package/dist/chunks/{worktree-5e1anv4t.js → workspace-374v8g3a.js} +19 -19
  41. package/dist/chunks/{worktree-6xwcf1a8.js → workspace-3838ekre.js} +4 -4
  42. package/dist/chunks/{worktree-3fc6dm20.js → workspace-3fc6dm20.js} +1 -1
  43. package/dist/chunks/{worktree-awazhe6z.js → workspace-3fe6bt6f.js} +17 -17
  44. package/dist/chunks/{worktree-3hepkmqq.js → workspace-3hepkmqq.js} +1 -1
  45. package/dist/chunks/{worktree-3smtnn6g.js → workspace-3smtnn6g.js} +1 -1
  46. package/dist/chunks/{worktree-knb7evpn.js → workspace-3tq5qxbk.js} +8 -8
  47. package/dist/chunks/{worktree-3tvqynh2.js → workspace-3tvqynh2.js} +1 -1
  48. package/dist/chunks/{worktree-ywrevtsf.js → workspace-405nw1q2.js} +17 -17
  49. package/dist/chunks/{worktree-2xx7cc67.js → workspace-46kfxrdk.js} +33 -33
  50. package/dist/chunks/{worktree-cyq0b8sg.js → workspace-48nt27tg.js} +17 -17
  51. package/dist/chunks/{worktree-44h5tttr.js → workspace-4dgbcxzg.js} +4 -4
  52. package/dist/chunks/{worktree-r92bbbhx.js → workspace-4ejejf2p.js} +11 -11
  53. package/dist/chunks/{worktree-m55360kq.js → workspace-4m58q416.js} +41 -41
  54. package/dist/chunks/{worktree-hj38q284.js → workspace-4mtpks84.js} +18 -18
  55. package/dist/chunks/{worktree-4m36v5dn.js → workspace-4n7sevkh.js} +21 -21
  56. package/dist/chunks/{worktree-9x09xbgz.js → workspace-4n9bywtw.js} +6 -6
  57. package/dist/chunks/{worktree-56gdpj1q.js → workspace-56gdpj1q.js} +2 -2
  58. package/dist/chunks/{worktree-drwq78ky.js → workspace-57b9ws8p.js} +5 -5
  59. package/dist/chunks/{worktree-57ez7d0k.js → workspace-57ez7d0k.js} +2 -2
  60. package/dist/chunks/{worktree-jrra6jmc.js → workspace-5ah12t62.js} +6 -6
  61. package/dist/chunks/{worktree-5c4hm403.js → workspace-5c4hm403.js} +3 -3
  62. package/dist/chunks/{worktree-5daktx2q.js → workspace-5daktx2q.js} +1 -1
  63. package/dist/chunks/{worktree-qge4gbge.js → workspace-5jv9rtqx.js} +27 -27
  64. package/dist/chunks/{worktree-5k7h9vpf.js → workspace-5smvddr8.js} +23 -23
  65. package/dist/chunks/{worktree-5t3nmthw.js → workspace-5t3nmthw.js} +2 -2
  66. package/dist/chunks/{worktree-br0tr5aq.js → workspace-5xtgfte3.js} +8 -8
  67. package/dist/chunks/{worktree-669tq793.js → workspace-669tq793.js} +1 -1
  68. package/dist/chunks/{worktree-k06dajrc.js → workspace-6as31qen.js} +13 -13
  69. package/dist/chunks/{worktree-awavsj5m.js → workspace-6dev9rqa.js} +3 -3
  70. package/dist/chunks/workspace-6dqdswvk.js +252 -0
  71. package/dist/chunks/{worktree-6msgmcgs.js → workspace-6msgmcgs.js} +1 -1
  72. package/dist/chunks/{worktree-ctf4v5qh.js → workspace-6p1etxq2.js} +7 -7
  73. package/dist/chunks/{worktree-7hqt86v7.js → workspace-6pmq8b1f.js} +43 -43
  74. package/dist/chunks/workspace-6r3amyyd.js +4 -0
  75. package/dist/chunks/{worktree-ddt58ebd.js → workspace-6sc0ns97.js} +11 -11
  76. package/dist/chunks/{worktree-8e1xm2jx.js → workspace-6vdste0b.js} +17 -17
  77. package/dist/chunks/{worktree-r98rf7en.js → workspace-79psx6ha.js} +20 -20
  78. package/dist/chunks/{worktree-7bmhse3q.js → workspace-7bmhse3q.js} +1 -1
  79. package/dist/chunks/{worktree-8nxjb84w.js → workspace-7fpdhx8y.js} +87 -87
  80. package/dist/chunks/{worktree-97z8nx23.js → workspace-7fzvq14v.js} +31 -31
  81. package/dist/chunks/{worktree-ybtbm60b.js → workspace-7nd7t3y6.js} +39 -39
  82. package/dist/chunks/{worktree-2rr20z1w.js → workspace-7pncbcke.js} +4 -4
  83. package/dist/chunks/{worktree-pv1q3n8t.js → workspace-7r3ygdmz.js} +14 -14
  84. package/dist/chunks/{worktree-1j08d619.js → workspace-7t824xx2.js} +18 -18
  85. package/dist/chunks/{worktree-pkwse4rj.js → workspace-7wh8xm2m.js} +15 -15
  86. package/dist/chunks/{worktree-hzq9ckfm.js → workspace-857crm20.js} +17 -17
  87. package/dist/chunks/{worktree-8d7r5vzw.js → workspace-8d7r5vzw.js} +1 -1
  88. package/dist/chunks/{worktree-y31avz63.js → workspace-8kae62x2.js} +3 -3
  89. package/dist/chunks/{worktree-rjh41bnw.js → workspace-8nhzdh16.js} +8 -8
  90. package/dist/chunks/{worktree-kh82he3q.js → workspace-8r0skts4.js} +23 -23
  91. package/dist/chunks/{worktree-hkchw422.js → workspace-8s9gdvz1.js} +13 -13
  92. package/dist/chunks/{worktree-rhn8bjdn.js → workspace-8ycrq1wj.js} +9 -9
  93. package/dist/chunks/{worktree-d4cw493d.js → workspace-8z9aqbjr.js} +4 -4
  94. package/dist/chunks/{worktree-3stbnqm0.js → workspace-90bky85a.js} +37 -37
  95. package/dist/chunks/{worktree-jqtedxjm.js → workspace-9aza1f1x.js} +44 -44
  96. package/dist/chunks/{worktree-nksn1ctm.js → workspace-9btd272k.js} +26 -26
  97. package/dist/chunks/{worktree-346kb89v.js → workspace-9hckxq4k.js} +7 -7
  98. package/dist/chunks/{worktree-0njhf5dz.js → workspace-9n314x6j.js} +15 -15
  99. package/dist/chunks/{worktree-nbcy93d5.js → workspace-9tb0v2yh.js} +68 -68
  100. package/dist/chunks/{worktree-y5df08dr.js → workspace-9yzdvftt.js} +5 -5
  101. package/dist/chunks/{worktree-05tvpv5w.js → workspace-a2m7fzmh.js} +11 -11
  102. package/dist/chunks/{worktree-xpxqhtvz.js → workspace-a414py93.js} +21 -21
  103. package/dist/chunks/{worktree-4jq676mw.js → workspace-a84sqmex.js} +5 -5
  104. package/dist/chunks/{worktree-aaet6srn.js → workspace-aaet6srn.js} +2 -2
  105. package/dist/chunks/{worktree-4jf64xzc.js → workspace-adykyd42.js} +9 -9
  106. package/dist/chunks/{worktree-qwyrfpbr.js → workspace-afps5b8n.js} +2 -2
  107. package/dist/chunks/{worktree-fmkkzw6c.js → workspace-as71pn4z.js} +12 -12
  108. package/dist/chunks/{worktree-a89emqe4.js → workspace-asfqdkpb.js} +162 -162
  109. package/dist/chunks/{worktree-m31hrvtp.js → workspace-avc8n21j.js} +20 -20
  110. package/dist/chunks/{worktree-ez0trfpj.js → workspace-avrvke37.js} +7 -7
  111. package/dist/chunks/{worktree-b6gygkdw.js → workspace-b6gygkdw.js} +2 -2
  112. package/dist/chunks/{worktree-kv9x9mds.js → workspace-b8qvbf28.js} +4 -4
  113. package/dist/chunks/{worktree-d57x1pyx.js → workspace-berxm3qr.js} +7 -7
  114. package/dist/chunks/{worktree-pcvbzdg6.js → workspace-bm5d57fs.js} +27 -27
  115. package/dist/chunks/{worktree-c71ge8jf.js → workspace-bpy2r9c4.js} +11 -11
  116. package/dist/chunks/{worktree-dcvngtvp.js → workspace-bxbnev26.js} +27 -27
  117. package/dist/chunks/{worktree-8c28nkj2.js → workspace-byhenq9m.js} +13 -13
  118. package/dist/chunks/{worktree-g4ap4hkb.js → workspace-c34eff8t.js} +8 -8
  119. package/dist/chunks/{worktree-50x9syx5.js → workspace-c3nqgy48.js} +25 -25
  120. package/dist/chunks/{worktree-87dgkaj8.js → workspace-c7yg1ngd.js} +10 -10
  121. package/dist/chunks/{worktree-jdp0p5sy.js → workspace-ce8etdrj.js} +1 -1
  122. package/dist/chunks/{worktree-ggfrbsvd.js → workspace-cg72rvag.js} +6 -6
  123. package/dist/chunks/{worktree-nea2jzm4.js → workspace-cka6kvq6.js} +2 -2
  124. package/dist/chunks/{worktree-5nvfww89.js → workspace-cn886m9x.js} +9 -9
  125. package/dist/chunks/{worktree-1gayks8f.js → workspace-crekkz1m.js} +18 -18
  126. package/dist/chunks/{worktree-qmqgtz8f.js → workspace-cwa6csj7.js} +9 -9
  127. package/dist/chunks/{worktree-bjn91642.js → workspace-d8nc1xcx.js} +4 -4
  128. package/dist/chunks/{worktree-8gr00jt2.js → workspace-dhtzjjzz.js} +3 -3
  129. package/dist/chunks/{worktree-dj2t23y0.js → workspace-dj2t23y0.js} +2 -2
  130. package/dist/chunks/{worktree-y71avatq.js → workspace-dpkg50ah.js} +4 -4
  131. package/dist/chunks/{worktree-rq75yw12.js → workspace-e1pmkxcv.js} +8 -8
  132. package/dist/chunks/{worktree-zrbcx4wy.js → workspace-e43vk65n.js} +16 -16
  133. package/dist/chunks/{worktree-fp9dkyzv.js → workspace-e624nkeg.js} +30 -30
  134. package/dist/chunks/{worktree-23pqda6t.js → workspace-e6hd9jay.js} +4 -4
  135. package/dist/chunks/{worktree-ef5x83kb.js → workspace-ef5x83kb.js} +1 -1
  136. package/dist/chunks/{worktree-bpsvpgx8.js → workspace-ejevs9sw.js} +17 -17
  137. package/dist/chunks/{worktree-bhhhtnas.js → workspace-ejgp49jg.js} +22 -22
  138. package/dist/chunks/{worktree-bk738gev.js → workspace-ek42fa6x.js} +23 -23
  139. package/dist/chunks/{worktree-g5pg1z3v.js → workspace-epb4w8jv.js} +24 -24
  140. package/dist/chunks/{worktree-erw5rpbs.js → workspace-erw5rpbs.js} +2 -2
  141. package/dist/chunks/{worktree-etq0c3wd.js → workspace-etq0c3wd.js} +1 -1
  142. package/dist/chunks/{worktree-3spkf7qp.js → workspace-f2we9qpp.js} +10 -10
  143. package/dist/chunks/{worktree-b97cbvw3.js → workspace-fch79rh9.js} +1 -1
  144. package/dist/chunks/{worktree-83gabncn.js → workspace-fdc34wrr.js} +24 -24
  145. package/dist/chunks/{worktree-z0hmyh7c.js → workspace-fffkv7qf.js} +26 -26
  146. package/dist/chunks/{worktree-y9v5gkeq.js → workspace-fszp41pp.js} +6 -6
  147. package/dist/chunks/{worktree-b0dgvpy7.js → workspace-fwwk8vbp.js} +9 -9
  148. package/dist/chunks/{worktree-fxbjtjnd.js → workspace-fxbjtjnd.js} +1 -1
  149. package/dist/chunks/{worktree-qvd2vpt5.js → workspace-g3ns9rat.js} +23 -23
  150. package/dist/chunks/{worktree-rjn555ek.js → workspace-g8j4ctvn.js} +5 -5
  151. package/dist/chunks/{worktree-gd4qta3r.js → workspace-gd4qta3r.js} +1 -1
  152. package/dist/chunks/{worktree-135ds6rk.js → workspace-ge7qjysf.js} +14 -14
  153. package/dist/chunks/{worktree-89s1mcqs.js → workspace-gn97k1b0.js} +11 -11
  154. package/dist/chunks/{worktree-hz84tk5e.js → workspace-gv66gg0x.js} +8 -8
  155. package/dist/chunks/{worktree-gv6a8nnw.js → workspace-gv6a8nnw.js} +2 -2
  156. package/dist/chunks/{worktree-qsfdmrhc.js → workspace-gwphwnjy.js} +10 -10
  157. package/dist/chunks/{worktree-eex107wk.js → workspace-h2r7bbkd.js} +8 -8
  158. package/dist/chunks/{worktree-h6vf3j39.js → workspace-h6vf3j39.js} +1 -1
  159. package/dist/chunks/{worktree-91xevwh1.js → workspace-h72e87dw.js} +5 -5
  160. package/dist/chunks/{worktree-12xc1hc8.js → workspace-h7krgpah.js} +11 -11
  161. package/dist/chunks/{worktree-pg2axqyg.js → workspace-hcxmrj2a.js} +11 -11
  162. package/dist/chunks/{worktree-q0r1avd8.js → workspace-hdm3sk1y.js} +37 -37
  163. package/dist/chunks/{worktree-9kpbfwfm.js → workspace-hdm8jbsf.js} +26 -26
  164. package/dist/chunks/{worktree-hdnk95c8.js → workspace-hdnk95c8.js} +2 -2
  165. package/dist/chunks/{worktree-32kkc7q0.js → workspace-hmyzz8y0.js} +17 -17
  166. package/dist/chunks/{worktree-jvmrmb3q.js → workspace-j13v91pw.js} +4 -4
  167. package/dist/chunks/{worktree-xjd2fv1x.js → workspace-j3enmtp4.js} +43 -43
  168. package/dist/chunks/{worktree-79rfjzgm.js → workspace-j4n38w1e.js} +11 -11
  169. package/dist/chunks/{worktree-j56e64zr.js → workspace-j56e64zr.js} +1 -1
  170. package/dist/chunks/{worktree-vmgq4x8b.js → workspace-j699j8bt.js} +2 -2
  171. package/dist/chunks/{worktree-23sxaqwc.js → workspace-j8zzr2am.js} +4 -4
  172. package/dist/chunks/{worktree-vmwh049b.js → workspace-je7c2t6y.js} +6 -6
  173. package/dist/chunks/{worktree-vxrfxpxs.js → workspace-jj1193c7.js} +6 -6
  174. package/dist/chunks/{worktree-2tfmgkzg.js → workspace-jmphe03k.js} +4 -4
  175. package/dist/chunks/{worktree-qj8eh1ht.js → workspace-jw80jp6b.js} +4 -4
  176. package/dist/chunks/{worktree-7d0yyna9.js → workspace-kexq2ab1.js} +8 -8
  177. package/dist/chunks/{worktree-ss2rtpw1.js → workspace-ks40ppne.js} +11 -11
  178. package/dist/chunks/{worktree-5fj6ztyw.js → workspace-kwv0msad.js} +85 -85
  179. package/dist/chunks/{worktree-m0jqrx5p.js → workspace-m0jqrx5p.js} +2 -2
  180. package/dist/chunks/{worktree-3wx5qy6d.js → workspace-m0ned3ze.js} +10 -10
  181. package/dist/chunks/{worktree-m3fdjcah.js → workspace-m3fdjcah.js} +1 -1
  182. package/dist/chunks/{worktree-cph6vb6s.js → workspace-m6v93gq1.js} +22 -22
  183. package/dist/chunks/{worktree-m9w0rfyh.js → workspace-m9w0rfyh.js} +1 -1
  184. package/dist/chunks/{worktree-26k5bknw.js → workspace-mfhfdr54.js} +4 -4
  185. package/dist/chunks/{worktree-hxjj1ytk.js → workspace-mjcsnwzf.js} +298 -298
  186. package/dist/chunks/{worktree-sej8f238.js → workspace-mnfv1s1b.js} +11 -11
  187. package/dist/chunks/{worktree-ndqm9729.js → workspace-mrekswpf.js} +15 -15
  188. package/dist/chunks/{worktree-d96a640y.js → workspace-n5ff45t7.js} +16 -16
  189. package/dist/chunks/{worktree-zjhmce52.js → workspace-n69p783e.js} +1 -1
  190. package/dist/chunks/{worktree-35zpw20s.js → workspace-n882b035.js} +11 -11
  191. package/dist/chunks/{worktree-jhf3jymm.js → workspace-n8dykrk6.js} +6 -6
  192. package/dist/chunks/{worktree-fhs97t90.js → workspace-nscznvay.js} +9 -9
  193. package/dist/chunks/{worktree-k3c624dm.js → workspace-nzks3jc8.js} +3 -3
  194. package/dist/chunks/{worktree-wbtxrwsd.js → workspace-p00q0h88.js} +20 -20
  195. package/dist/chunks/{worktree-tbz0fdvh.js → workspace-p28j5sbe.js} +5 -5
  196. package/dist/chunks/{worktree-nrqt53h4.js → workspace-p79yh7x8.js} +21 -21
  197. package/dist/chunks/{worktree-0et686r7.js → workspace-pg93v6jv.js} +5 -5
  198. package/dist/chunks/{worktree-pjvnvgmy.js → workspace-pjvnvgmy.js} +1 -1
  199. package/dist/chunks/{worktree-5cmxdwv8.js → workspace-pk2244jm.js} +3 -3
  200. package/dist/chunks/{worktree-pknna89w.js → workspace-pknna89w.js} +1 -1
  201. package/dist/chunks/{worktree-bv5fntwv.js → workspace-pm2w02ap.js} +15 -15
  202. package/dist/chunks/{worktree-tx9w5tca.js → workspace-pn3cc07s.js} +8 -8
  203. package/dist/chunks/{worktree-p6fzwed5.js → workspace-pr971s7g.js} +3 -3
  204. package/dist/chunks/{worktree-780m7f13.js → workspace-pxfs15kn.js} +38 -38
  205. package/dist/chunks/{worktree-tz4n1mmd.js → workspace-q5asdkn4.js} +4 -4
  206. package/dist/chunks/{worktree-a46v4e4v.js → workspace-qa3qhgw8.js} +4 -4
  207. package/dist/chunks/{worktree-0w34kcyc.js → workspace-qed8dvxx.js} +9 -9
  208. package/dist/chunks/{worktree-wkfva7bh.js → workspace-qmrp7vx8.js} +22 -22
  209. package/dist/chunks/{worktree-e6hmchc5.js → workspace-qn4ba14w.js} +5 -5
  210. package/dist/chunks/{worktree-qsdy395h.js → workspace-qsdy395h.js} +1 -1
  211. package/dist/chunks/{worktree-25cs5cen.js → workspace-qvb3nf84.js} +8 -8
  212. package/dist/chunks/{worktree-jfqbecxf.js → workspace-qvxdy1p7.js} +3 -3
  213. package/dist/chunks/{worktree-hekpxy8z.js → workspace-qxge5qk3.js} +5 -5
  214. package/dist/chunks/{worktree-mvfsc1pv.js → workspace-r5x6zcsm.js} +3 -3
  215. package/dist/chunks/{worktree-zab19jja.js → workspace-r79m9za8.js} +9 -9
  216. package/dist/chunks/{worktree-g057r8b7.js → workspace-ra0m4r42.js} +6 -6
  217. package/dist/chunks/{worktree-mdjkd3ee.js → workspace-rackk5d8.js} +21 -21
  218. package/dist/chunks/{worktree-gm5vzmqr.js → workspace-rag3edqr.js} +36 -36
  219. package/dist/chunks/workspace-rap9a73h.js +18 -0
  220. package/dist/chunks/{worktree-0vr4ynh9.js → workspace-rdp84m7y.js} +33 -33
  221. package/dist/chunks/{worktree-rdw6cm16.js → workspace-rdw6cm16.js} +1 -1
  222. package/dist/chunks/{worktree-mn85ck47.js → workspace-rfe2qg2a.js} +27 -27
  223. package/dist/chunks/{worktree-twmrfj2d.js → workspace-rk7bc7ed.js} +25 -25
  224. package/dist/chunks/{worktree-ntj434hm.js → workspace-rp7dq0jc.js} +6 -6
  225. package/dist/chunks/{worktree-0e4n6tbr.js → workspace-rpery1mk.js} +9 -9
  226. package/dist/chunks/{worktree-ezy2bptn.js → workspace-rtv6ahp9.js} +8 -8
  227. package/dist/chunks/{worktree-9qwzd11x.js → workspace-rysm8zhq.js} +3 -3
  228. package/dist/chunks/{worktree-xcc1re04.js → workspace-sqkfb9wh.js} +11 -11
  229. package/dist/chunks/{worktree-7ge5j3yy.js → workspace-sv23krr8.js} +26 -26
  230. package/dist/chunks/{worktree-yst3wyvc.js → workspace-svpqbh55.js} +12 -12
  231. package/dist/chunks/{worktree-0v53mg2y.js → workspace-sx1n432n.js} +4 -4
  232. package/dist/chunks/{worktree-qk7sb3fs.js → workspace-t04jp1as.js} +28 -28
  233. package/dist/chunks/{worktree-mc3xbmaq.js → workspace-t0mtj9sp.js} +20 -20
  234. package/dist/chunks/{worktree-rrern9t5.js → workspace-t15k3d3j.js} +37 -37
  235. package/dist/chunks/{worktree-qz8rjx4n.js → workspace-t45trqgm.js} +16 -16
  236. package/dist/chunks/{worktree-eaj1djv9.js → workspace-t550f9t1.js} +8 -8
  237. package/dist/chunks/{worktree-ztf7grp6.js → workspace-ta339n92.js} +12 -12
  238. package/dist/chunks/{worktree-tazgh4e4.js → workspace-tazgh4e4.js} +1 -1
  239. package/dist/chunks/{worktree-tcezcvh9.js → workspace-tcezcvh9.js} +1 -1
  240. package/dist/chunks/{worktree-tdstcens.js → workspace-tdstcens.js} +1 -1
  241. package/dist/chunks/{worktree-b0gk7qzq.js → workspace-te18sgca.js} +17 -17
  242. package/dist/chunks/{worktree-n4b7qefn.js → workspace-tn8p7ecq.js} +14 -14
  243. package/dist/chunks/{worktree-tvtrv512.js → workspace-tvtrv512.js} +1 -1
  244. package/dist/chunks/{worktree-a2wwx1s9.js → workspace-twm8s0v6.js} +25 -25
  245. package/dist/chunks/{worktree-3cfzdc8e.js → workspace-tz2bjj40.js} +5 -5
  246. package/dist/chunks/{worktree-8wvjpm5e.js → workspace-v3ryxckp.js} +42 -42
  247. package/dist/chunks/{worktree-7zs56f9j.js → workspace-vbrdpthe.js} +6 -6
  248. package/dist/chunks/{worktree-mrcbab82.js → workspace-vcryphxd.js} +8 -8
  249. package/dist/chunks/{worktree-veqvce7d.js → workspace-veqvce7d.js} +1 -1
  250. package/dist/chunks/{worktree-y9wbn93n.js → workspace-vmm0d4j2.js} +21 -21
  251. package/dist/chunks/{worktree-m64xvjj1.js → workspace-vrpz8t5t.js} +5 -5
  252. package/dist/chunks/{worktree-vzcthcp8.js → workspace-vzcthcp8.js} +1 -1
  253. package/dist/chunks/{worktree-5g7dqg8p.js → workspace-w118tzke.js} +5 -5
  254. package/dist/chunks/{worktree-gc3cjvmd.js → workspace-w19jy31r.js} +5 -5
  255. package/dist/chunks/{worktree-w3wsvvr9.js → workspace-w3wsvvr9.js} +1 -1
  256. package/dist/chunks/{worktree-m3mk1ymc.js → workspace-w6x78c9c.js} +11 -11
  257. package/dist/chunks/{worktree-hgcakkdy.js → workspace-w8vega6y.js} +4 -4
  258. package/dist/chunks/{worktree-zwnqbtaj.js → workspace-waexrdgv.js} +33 -33
  259. package/dist/chunks/{worktree-wd87259q.js → workspace-wd87259q.js} +1 -1
  260. package/dist/chunks/{worktree-kz2med77.js → workspace-wdh627yk.js} +15 -15
  261. package/dist/chunks/workspace-wjzzwpk8.js +26 -0
  262. package/dist/chunks/{worktree-h6366cww.js → workspace-wssc7tyq.js} +24 -24
  263. package/dist/chunks/{worktree-nrvgxq91.js → workspace-wxg1tfxb.js} +4 -4
  264. package/dist/chunks/{worktree-x1ezjp6w.js → workspace-x1ezjp6w.js} +1 -1
  265. package/dist/chunks/{worktree-p0w9t4nv.js → workspace-x1w6bk3j.js} +18 -18
  266. package/dist/chunks/{worktree-heyyxcdn.js → workspace-x5rn7qjp.js} +20 -20
  267. package/dist/chunks/{worktree-n32egdgz.js → workspace-xam54x1y.js} +22 -22
  268. package/dist/chunks/{worktree-fv3nz7za.js → workspace-xbpzf4zn.js} +11 -11
  269. package/dist/chunks/{worktree-ha48bngf.js → workspace-xhhx516y.js} +4 -4
  270. package/dist/chunks/{worktree-gwzmxzqv.js → workspace-xqq38mk8.js} +31 -31
  271. package/dist/chunks/{worktree-eq8dtg11.js → workspace-xwchxfcw.js} +8 -8
  272. package/dist/chunks/{worktree-y1fvbwt7.js → workspace-y1fvbwt7.js} +1 -1
  273. package/dist/chunks/{worktree-2h5p72nb.js → workspace-y201z2mx.js} +4 -4
  274. package/dist/chunks/{worktree-t2866z93.js → workspace-y7f35ff5.js} +16 -16
  275. package/dist/chunks/{worktree-2xb0rw2k.js → workspace-ydm93f9x.js} +8 -8
  276. package/dist/chunks/{worktree-nrfrnn4g.js → workspace-ydpabj6e.js} +26 -26
  277. package/dist/chunks/{worktree-v4gw1aty.js → workspace-ynpw39jf.js} +24 -24
  278. package/dist/chunks/{worktree-yrhqyw5v.js → workspace-yrhqyw5v.js} +1 -1
  279. package/dist/chunks/{worktree-yrznvahk.js → workspace-yrznvahk.js} +2 -2
  280. package/dist/chunks/{worktree-e8qyrgb1.js → workspace-yt3hy1g9.js} +5 -5
  281. package/dist/chunks/{worktree-z0bkrqjs.js → workspace-z0bkrqjs.js} +1 -1
  282. package/dist/chunks/{worktree-a70mfejk.js → workspace-z0zyb1s8.js} +52 -52
  283. package/dist/chunks/{worktree-ms96e6xa.js → workspace-z1va2kz6.js} +5 -5
  284. package/dist/chunks/{worktree-z63w68vq.js → workspace-z63w68vq.js} +2 -2
  285. package/dist/chunks/{worktree-smxfcp26.js → workspace-zdn3zq9y.js} +9 -9
  286. package/dist/chunks/{worktree-zeh9ct20.js → workspace-zeh9ct20.js} +2 -2
  287. package/dist/chunks/{worktree-v53ttaz3.js → workspace-zq22gkb0.js} +9 -9
  288. package/dist/chunks/{worktree-zr2ceqn5.js → workspace-zr2ceqn5.js} +1 -1
  289. package/dist/chunks/{worktree-zxq2ej10.js → workspace-zxq2ej10.js} +1 -1
  290. package/dist/codemode/catalog.js +1 -1
  291. package/dist/codemode/instructions.js +11 -11
  292. package/dist/codemode/tool.js +3 -3
  293. package/dist/codemode/web.js +1 -1
  294. package/dist/command.js +82 -82
  295. package/dist/config/discovery.js +81 -81
  296. package/dist/config/markdown.js +1 -1
  297. package/dist/config/normalize.js +105 -105
  298. package/dist/config/plugin/agent.js +122 -122
  299. package/dist/config/plugin/command.js +211 -211
  300. package/dist/config/plugin/compaction.js +159 -159
  301. package/dist/config/plugin/compatibility.js +140 -140
  302. package/dist/config/plugin/entry-observer.js +1 -1
  303. package/dist/config/plugin/formatter.js +123 -123
  304. package/dist/config/plugin/image.js +122 -122
  305. package/dist/config/plugin/instruction.js +89 -89
  306. package/dist/config/plugin/location-watcher.js +124 -124
  307. package/dist/config/plugin/mcp.js +129 -129
  308. package/dist/config/plugin/policy.js +122 -122
  309. package/dist/config/plugin/provider.js +122 -122
  310. package/dist/config/plugin/reference.js +124 -124
  311. package/dist/config/plugin/shell.js +122 -122
  312. package/dist/config/plugin/skill-file.js +101 -101
  313. package/dist/config/plugin/skill.js +141 -141
  314. package/dist/config/plugin/snapshot.js +122 -122
  315. package/dist/config/plugin/source.js +123 -123
  316. package/dist/config/plugin/tool-output.js +124 -124
  317. package/dist/config/plugin/websearch.js +121 -121
  318. package/dist/config/plugin/worktree.js +124 -124
  319. package/dist/config/variable.js +3 -3
  320. package/dist/config/watch.js +1 -1
  321. package/dist/config.js +127 -127
  322. package/dist/credential/sql.js +2 -2
  323. package/dist/credential.js +84 -84
  324. package/dist/database/database.js +65 -65
  325. package/dist/database/drizzle/effect-sqlite/driver.js +14 -14
  326. package/dist/database/drizzle/effect-sqlite/index.js +14 -14
  327. package/dist/database/drizzle/effect-sqlite/session.js +11 -11
  328. package/dist/database/drizzle/index.js +15 -15
  329. package/dist/database/drizzle/internal/drizzle-utils.js +1 -1
  330. package/dist/database/drizzle/sqlite-core/effect/count.js +1 -1
  331. package/dist/database/drizzle/sqlite-core/effect/db.js +9 -9
  332. package/dist/database/drizzle/sqlite-core/effect/delete.js +2 -2
  333. package/dist/database/drizzle/sqlite-core/effect/index.js +10 -10
  334. package/dist/database/drizzle/sqlite-core/effect/insert.js +2 -2
  335. package/dist/database/drizzle/sqlite-core/effect/query.js +1 -1
  336. package/dist/database/drizzle/sqlite-core/effect/raw.js +1 -1
  337. package/dist/database/drizzle/sqlite-core/effect/select.js +2 -2
  338. package/dist/database/drizzle/sqlite-core/effect/session.js +10 -10
  339. package/dist/database/drizzle/sqlite-core/effect/update.js +2 -2
  340. package/dist/database/drizzle.js +16 -16
  341. package/dist/database/migration/20260127222353_familiar_lady_ursula.js +1 -1
  342. package/dist/database/migration/20260211171708_add_project_commands.js +1 -1
  343. package/dist/database/migration/20260213144116_wakeful_the_professor.js +1 -1
  344. package/dist/database/migration/20260225215848_workspace.js +1 -1
  345. package/dist/database/migration/20260227213759_add_session_workspace_id.js +1 -1
  346. package/dist/database/migration/20260228203230_blue_harpoon.js +1 -1
  347. package/dist/database/migration/20260303231226_add_workspace_fields.js +1 -1
  348. package/dist/database/migration/20260309230000_move_org_to_state.js +1 -1
  349. package/dist/database/migration/20260312043431_session_message_cursor.js +1 -1
  350. package/dist/database/migration/20260323234822_events.js +1 -1
  351. package/dist/database/migration/20260410174513_workspace-name.js +1 -1
  352. package/dist/database/migration/20260413175956_chief_energizer.js +1 -1
  353. package/dist/database/migration/20260423070820_add_icon_url_override.js +1 -1
  354. package/dist/database/migration/20260427172553_slow_nightmare.js +1 -1
  355. package/dist/database/migration/20260428004200_add_session_path.js +1 -1
  356. package/dist/database/migration/20260501142318_next_venus.js +1 -1
  357. package/dist/database/migration/20260504145000_add_sync_owner.js +1 -1
  358. package/dist/database/migration/20260507164347_add_workspace_time.js +1 -1
  359. package/dist/database/migration/20260510033149_session_usage.js +1 -1
  360. package/dist/database/migration/20260511000411_data_migration_state.js +1 -1
  361. package/dist/database/migration/20260511173437_session-metadata.js +1 -1
  362. package/dist/database/migration/20260601010001_normalize_storage_paths.js +1 -1
  363. package/dist/database/migration/20260601202201_amazing_prowler.js +1 -1
  364. package/dist/database/migration/20260602002951_lowly_union_jack.js +1 -1
  365. package/dist/database/migration/20260602182828_add_project_directories.js +1 -1
  366. package/dist/database/migration/20260603001617_session_message_projection_indexes.js +1 -1
  367. package/dist/database/migration/20260603040000_session_message_projection_order.js +1 -1
  368. package/dist/database/migration/20260603141458_session_input_inbox.js +1 -1
  369. package/dist/database/migration/20260603160727_jittery_ezekiel_stane.js +1 -1
  370. package/dist/database/migration/20260604172448_event_sourced_session_input.js +1 -1
  371. package/dist/database/migration/20260605003541_add_session_context_snapshot.js +1 -1
  372. package/dist/database/migration/20260605042240_add_context_epoch_agent.js +1 -1
  373. package/dist/database/migration/20260611035744_credential.js +1 -1
  374. package/dist/database/migration/20260611192811_lush_chimera.js +1 -1
  375. package/dist/database/migration/20260612174303_project_dir_strategy.js +1 -1
  376. package/dist/database/migration/20260622142730_simplify_session_context_epoch.js +1 -1
  377. package/dist/database/migration/20260622170816_reset_v2_session_state.js +1 -1
  378. package/dist/database/migration/20260622202450_simplify_session_input.js +1 -1
  379. package/dist/database/migration/20260804233008_loose_psylocke.js +1 -1
  380. package/dist/database/migration/20260805200742_import_legacy_credentials.js +1 -1
  381. package/dist/database/migration/20260808023530_workspace_domain.js +1 -1
  382. package/dist/database/migration/20260811161259_execution_claim_attempts.js +1 -1
  383. package/dist/database/migration/20260812181746_session_inbox.js +1 -1
  384. package/dist/database/migration/20260812213948_worktree.js +1 -1
  385. package/dist/database/migration/20260819222447_session_viewed_state.js +1 -1
  386. package/dist/database/migration/20260823191254_nullable_workspace_binding.js +1 -1
  387. package/dist/database/migration/20260910120000_clear_v1_session_permission.js +1 -1
  388. package/dist/database/migration.gen.js +48 -48
  389. package/dist/database/migration.js +50 -50
  390. package/dist/database/path.js +2 -2
  391. package/dist/database/schema.gen.js +1 -1
  392. package/dist/database/schema.sql.js +1 -1
  393. package/dist/database/sqlite.bun.js +1 -1
  394. package/dist/database/sqlite.js +1 -1
  395. package/dist/database/sqlite.node.js +1 -1
  396. package/dist/database/sqlite.workerd.js +1 -1
  397. package/dist/database/v1-migration.bun.js +75 -75
  398. package/dist/database/v1-migration.js +1 -1
  399. package/dist/effect/app-node-builder.js +368 -368
  400. package/dist/effect/app-node-platform.js +2 -2
  401. package/dist/effect/keyed-mutex.js +3 -3
  402. package/dist/effect/websocket-constructor.js +1 -1
  403. package/dist/environment/driver.js +1 -1
  404. package/dist/environment/environment.js +92 -92
  405. package/dist/environment/exec-defaults.js +2 -2
  406. package/dist/environment/files.js +1 -1
  407. package/dist/environment/index.js +94 -94
  408. package/dist/environment/local.js +2 -2
  409. package/dist/environment/memory.js +2 -2
  410. package/dist/environment/unavailable.js +1 -1
  411. package/dist/event/sql.js +1 -1
  412. package/dist/event-logger.js +69 -69
  413. package/dist/file-access.js +103 -103
  414. package/dist/file-mutation.js +93 -93
  415. package/dist/file-retention.js +1 -1
  416. package/dist/file.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/ignore.js +1 -1
  422. package/dist/filesystem/location-watcher-policy.js +6 -6
  423. package/dist/filesystem/location-watcher.js +226 -226
  424. package/dist/filesystem/protected.js +1 -1
  425. package/dist/filesystem/search.js +92 -92
  426. package/dist/filesystem/watcher-binding.js +1 -1
  427. package/dist/filesystem/watcher.js +15 -15
  428. package/dist/filesystem.js +93 -93
  429. package/dist/form.js +81 -81
  430. package/dist/formatter/builtins.js +4 -4
  431. package/dist/formatter.js +86 -86
  432. package/dist/generate.js +104 -104
  433. package/dist/git.js +6 -6
  434. package/dist/github-copilot/chat/convert-to-openai-compatible-chat-messages.js +1 -1
  435. package/dist/github-copilot/chat/get-response-metadata.js +1 -1
  436. package/dist/github-copilot/chat/map-openai-compatible-finish-reason.js +1 -1
  437. package/dist/github-copilot/chat/openai-compatible-chat-language-model.js +7 -7
  438. package/dist/github-copilot/chat/openai-compatible-chat-options.js +1 -1
  439. package/dist/github-copilot/chat/openai-compatible-prepare-tools.js +1 -1
  440. package/dist/github-copilot/copilot-provider.js +17 -17
  441. package/dist/github-copilot/models.js +90 -90
  442. package/dist/github-copilot/openai-compatible-error.js +1 -1
  443. package/dist/github-copilot/responses/convert-to-openai-responses-input.js +1 -1
  444. package/dist/github-copilot/responses/map-openai-responses-finish-reason.js +1 -1
  445. package/dist/github-copilot/responses/openai-error.js +1 -1
  446. package/dist/github-copilot/responses/openai-responses-language-model.js +10 -10
  447. package/dist/github-copilot/responses/openai-responses-prepare-tools.js +6 -6
  448. package/dist/github-copilot/responses/tool/code-interpreter.js +1 -1
  449. package/dist/github-copilot/responses/tool/file-search.js +1 -1
  450. package/dist/github-copilot/responses/tool/image-generation.js +1 -1
  451. package/dist/github-copilot/responses/tool/web-search-preview.js +1 -1
  452. package/dist/github-copilot/responses/tool/web-search.js +1 -1
  453. package/dist/id/id.js +1 -1
  454. package/dist/image/photon.js +2 -2
  455. package/dist/image.js +6 -6
  456. package/dist/instance/service.js +5 -5
  457. package/dist/instance.js +359 -359
  458. package/dist/instruction-discovery.js +84 -84
  459. package/dist/instructions/builtins.js +86 -86
  460. package/dist/instructions/index.js +5 -5
  461. package/dist/integration/connection.js +3 -3
  462. package/dist/integration.js +83 -83
  463. package/dist/job.js +78 -78
  464. package/dist/kv/sql.js +2 -2
  465. package/dist/kv.js +72 -72
  466. package/dist/location-activity.js +131 -131
  467. package/dist/location-lifecycle.js +105 -105
  468. package/dist/location-mutation.js +103 -103
  469. package/dist/location-service-map.js +85 -85
  470. package/dist/location-services.js +356 -356
  471. package/dist/location.js +80 -80
  472. package/dist/mcp/client.js +90 -90
  473. package/dist/mcp/index.js +103 -103
  474. package/dist/mcp/instructions.js +127 -127
  475. package/dist/mcp/oauth.js +77 -77
  476. package/dist/mcp/stdio.js +89 -89
  477. package/dist/mime.js +1 -1
  478. package/dist/modal/models.js +90 -90
  479. package/dist/model-resolver.js +95 -95
  480. package/dist/model.js +99 -99
  481. package/dist/models-dev.js +106 -106
  482. package/dist/oauth/page.js +1 -1
  483. package/dist/permission/saved.js +81 -81
  484. package/dist/permission/sql.js +5 -5
  485. package/dist/permission.js +112 -112
  486. package/dist/persistent-pty/binary.bun.js +1 -1
  487. package/dist/persistent-pty/daemon.js +1 -1
  488. package/dist/persistent-pty/index.js +87 -87
  489. package/dist/persistent-pty/pty-binding.js +1 -1
  490. package/dist/persistent-pty.js +74 -74
  491. package/dist/plugin/agent.js +99 -99
  492. package/dist/plugin/command.js +98 -98
  493. package/dist/plugin/compaction.js +130 -130
  494. package/dist/plugin/hooks.js +5 -5
  495. package/dist/plugin/host.js +217 -217
  496. package/dist/plugin/identity.js +3 -3
  497. package/dist/plugin/instance.js +5 -5
  498. package/dist/plugin/internal.js +330 -330
  499. package/dist/plugin/mcp-codemode-exclusion.js +3 -3
  500. package/dist/plugin/models-dev.js +95 -95
  501. package/dist/plugin/module.js +7 -7
  502. package/dist/plugin/optimize.js +4 -4
  503. package/dist/plugin/plan.js +101 -101
  504. package/dist/plugin/promise.js +1 -1
  505. package/dist/plugin/provider/amazon-bedrock.js +89 -89
  506. package/dist/plugin/provider/azure.js +121 -121
  507. package/dist/plugin/provider/cerebras.js +1 -1
  508. package/dist/plugin/provider/cloudflare-ai-gateway.js +120 -120
  509. package/dist/plugin/provider/cloudflare-workers-ai.js +120 -120
  510. package/dist/plugin/provider/cohere.js +2 -2
  511. package/dist/plugin/provider/configured.js +118 -118
  512. package/dist/plugin/provider/digitalocean.js +92 -92
  513. package/dist/plugin/provider/dynamic.js +2 -2
  514. package/dist/plugin/provider/factory.js +1 -1
  515. package/dist/plugin/provider/gateway.js +2 -2
  516. package/dist/plugin/provider/github-copilot.js +92 -92
  517. package/dist/plugin/provider/gitlab.js +90 -90
  518. package/dist/plugin/provider/google-vertex.js +89 -89
  519. package/dist/plugin/provider/kilo.js +1 -1
  520. package/dist/plugin/provider/llmgateway.js +76 -76
  521. package/dist/plugin/provider/lmstudio.js +121 -121
  522. package/dist/plugin/provider/modal.js +91 -91
  523. package/dist/plugin/provider/nvidia.js +1 -1
  524. package/dist/plugin/provider/ollama.js +121 -121
  525. package/dist/plugin/provider/openai.js +93 -93
  526. package/dist/plugin/provider/opencode.js +92 -92
  527. package/dist/plugin/provider/openrouter.js +90 -90
  528. package/dist/plugin/provider/perplexity.js +2 -2
  529. package/dist/plugin/provider/poe.js +77 -77
  530. package/dist/plugin/provider/prompt-cache-key.js +89 -89
  531. package/dist/plugin/provider/sap-ai-core.js +90 -90
  532. package/dist/plugin/provider/sdk-factory.js +1 -1
  533. package/dist/plugin/provider/snowflake-cortex.js +121 -121
  534. package/dist/plugin/provider/venice.js +2 -2
  535. package/dist/plugin/provider/vercel.js +89 -89
  536. package/dist/plugin/provider/vllm.js +119 -119
  537. package/dist/plugin/provider/xai.js +90 -90
  538. package/dist/plugin/provider/zenmux.js +1 -1
  539. package/dist/plugin/provider.js +158 -158
  540. package/dist/plugin/sdk.js +75 -75
  541. package/dist/plugin/service.js +3 -3
  542. package/dist/plugin/skill.js +138 -138
  543. package/dist/plugin/source-directory.js +1 -1
  544. package/dist/plugin/supervisor.js +347 -347
  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 +85 -85
  548. package/dist/plugin/vcs/hg.js +85 -85
  549. package/dist/plugin/warming.js +120 -120
  550. package/dist/plugin/websearch/exa.js +7 -7
  551. package/dist/plugin/websearch/firecrawl.js +8 -8
  552. package/dist/plugin/websearch/index.js +9 -9
  553. package/dist/plugin/websearch/mcp.js +2 -2
  554. package/dist/plugin/websearch/parallel.js +8 -8
  555. package/dist/plugin/websearch/tavily.js +6 -6
  556. package/dist/plugin/websearch/tinyfish.js +6 -6
  557. package/dist/plugin.js +228 -228
  558. package/dist/project/schema.js +2 -2
  559. package/dist/project/sql.js +4 -4
  560. package/dist/project.js +79 -79
  561. package/dist/provider.js +98 -98
  562. package/dist/pty/protocol.js +1 -1
  563. package/dist/pty/schema.js +3 -3
  564. package/dist/pty/ticket.js +1 -1
  565. package/dist/pty.js +97 -97
  566. package/dist/reference/instructions.js +88 -88
  567. package/dist/reference.js +90 -90
  568. package/dist/repository-cache.js +80 -80
  569. package/dist/repository.js +1 -1
  570. package/dist/ripgrep/binary.js +2 -2
  571. package/dist/ripgrep.js +96 -96
  572. package/dist/rpc.js +85 -85
  573. package/dist/schema.js +1 -1
  574. package/dist/session/command.js +73 -73
  575. package/dist/session/compaction.js +133 -133
  576. package/dist/session/context.js +151 -151
  577. package/dist/session/diff.js +87 -87
  578. package/dist/session/environment.js +5 -5
  579. package/dist/session/error.js +5 -5
  580. package/dist/session/event.js +1 -1
  581. package/dist/session/execution/restart.js +220 -220
  582. package/dist/session/execution.js +125 -125
  583. package/dist/session/generate.js +152 -152
  584. package/dist/session/history.js +13 -13
  585. package/dist/session/inbox.js +85 -85
  586. package/dist/session/info.js +3 -3
  587. package/dist/session/instruction-entry.js +78 -78
  588. package/dist/session/instruction-state.js +8 -8
  589. package/dist/session/instructions.js +96 -96
  590. package/dist/session/message-updater.js +4 -4
  591. package/dist/session/message.js +1 -1
  592. package/dist/session/model-request.js +116 -116
  593. package/dist/session/model-transport.js +7 -7
  594. package/dist/session/move.js +129 -129
  595. package/dist/session/projector.js +85 -85
  596. package/dist/session/prompt.js +104 -104
  597. package/dist/session/provider-context.js +3 -3
  598. package/dist/session/revert.js +89 -89
  599. package/dist/session/run-coordinator.js +3 -3
  600. package/dist/session/runner/index.js +3 -3
  601. package/dist/session/runner/llm.js +230 -230
  602. package/dist/session/runner/max-steps.js +1 -1
  603. package/dist/session/runner/model.js +97 -97
  604. package/dist/session/runner/publish-llm-event.js +3 -3
  605. package/dist/session/runner/retry.js +113 -113
  606. package/dist/session/runner/step.js +123 -123
  607. package/dist/session/runner/to-llm-message.js +2 -2
  608. package/dist/session/schema.js +5 -5
  609. package/dist/session/session.js +171 -171
  610. package/dist/session/shell.js +137 -137
  611. package/dist/session/skill.js +102 -102
  612. package/dist/session/sql.js +5 -5
  613. package/dist/session/stats.js +72 -72
  614. package/dist/session/store.js +86 -86
  615. package/dist/session/subagent-completion.js +1 -1
  616. package/dist/session/subagent-job.js +209 -209
  617. package/dist/session/system-prompt.js +3 -3
  618. package/dist/session/title.js +153 -153
  619. package/dist/session/to-session-error.js +110 -110
  620. package/dist/session/transfer.js +213 -213
  621. package/dist/session/usage.js +1 -1
  622. package/dist/session.js +215 -215
  623. package/dist/shell/parse.js +6 -6
  624. package/dist/shell/result.js +1 -1
  625. package/dist/shell/scan.js +1 -1
  626. package/dist/shell/select.js +13 -13
  627. package/dist/shell.js +139 -139
  628. package/dist/skill/discovery.js +6 -6
  629. package/dist/skill/instructions.js +106 -106
  630. package/dist/skill.js +109 -109
  631. package/dist/snapshot.js +90 -90
  632. package/dist/state.js +1 -1
  633. package/dist/tool/html-markdown.js +1 -1
  634. package/dist/tool/http-body.js +1 -1
  635. package/dist/tool/mcp.js +124 -124
  636. package/dist/tool/plugin/edit.js +117 -117
  637. package/dist/tool/plugin/file-diff.js +1 -1
  638. package/dist/tool/plugin/glob.js +123 -123
  639. package/dist/tool/plugin/grep.js +115 -115
  640. package/dist/tool/plugin/opencode.js +3 -3
  641. package/dist/tool/plugin/patch.js +119 -119
  642. package/dist/tool/plugin/question.js +100 -100
  643. package/dist/tool/plugin/read.js +124 -124
  644. package/dist/tool/plugin/shell.js +214 -214
  645. package/dist/tool/plugin/skill.js +108 -108
  646. package/dist/tool/plugin/subagent.js +218 -218
  647. package/dist/tool/plugin/webfetch.js +109 -109
  648. package/dist/tool/plugin/websearch.js +111 -111
  649. package/dist/tool/plugin/write.js +121 -121
  650. package/dist/tool/read-filesystem.js +99 -99
  651. package/dist/tool/runtime.js +1 -1
  652. package/dist/tool-output.js +8 -8
  653. package/dist/tool.js +14 -14
  654. package/dist/util/error-summary.js +1 -1
  655. package/dist/util/error.js +1 -1
  656. package/dist/util/git-executable.js +2 -2
  657. package/dist/util/iife.js +1 -1
  658. package/dist/util/lazy.js +1 -1
  659. package/dist/util/slug.js +1 -1
  660. package/dist/util/token.js +1 -1
  661. package/dist/util/which.js +1 -1
  662. package/dist/util/wildcard.js +1 -1
  663. package/dist/v1/config/agent.js +5 -5
  664. package/dist/v1/config/attachment.js +4 -4
  665. package/dist/v1/config/command.js +3 -3
  666. package/dist/v1/config/config.js +16 -16
  667. package/dist/v1/config/error.js +2 -2
  668. package/dist/v1/config/formatter.js +3 -3
  669. package/dist/v1/config/layout.js +1 -1
  670. package/dist/v1/config/lsp.js +3 -3
  671. package/dist/v1/config/mcp.js +4 -4
  672. package/dist/v1/config/migrate.js +91 -91
  673. package/dist/v1/config/permission.js +3 -3
  674. package/dist/v1/config/plugin.js +3 -3
  675. package/dist/v1/config/provider-options.js +1 -1
  676. package/dist/v1/config/provider.js +4 -4
  677. package/dist/v1/config/server.js +2 -2
  678. package/dist/v1/config/skills.js +3 -3
  679. package/dist/v1/permission.js +1 -1
  680. package/dist/variant.js +92 -92
  681. package/dist/vcs/patch.js +1 -1
  682. package/dist/vcs.js +88 -88
  683. package/dist/websearch.js +79 -79
  684. package/dist/wellknown/plugin.js +75 -75
  685. package/dist/wellknown.js +78 -78
  686. package/dist/workspace/driver.js +7 -7
  687. package/dist/workspace/sql.js +1 -1
  688. package/dist/workspace.js +79 -79
  689. package/dist/worktree/directory.js +2 -2
  690. package/dist/worktree/git.js +10 -10
  691. package/dist/worktree/sql.js +5 -5
  692. package/dist/worktree/strategies.js +88 -88
  693. package/dist/worktree.js +97 -97
  694. package/package.json +8 -8
  695. package/dist/chunks/worktree-0mesazry.js +0 -4
  696. package/dist/chunks/worktree-1x11rq2a.js +0 -18
  697. package/dist/chunks/worktree-3ewahy0x.js +0 -252
  698. package/dist/chunks/worktree-td9rdqgs.js +0 -26
  699. /package/dist/chunks/{worktree-0qkdqm5v.js → workspace-0qkdqm5v.js} +0 -0
  700. /package/dist/chunks/{worktree-0zkw76rk.js → workspace-0zkw76rk.js} +0 -0
  701. /package/dist/chunks/{worktree-17cy0kzp.js → workspace-17cy0kzp.js} +0 -0
  702. /package/dist/chunks/{worktree-1cnp2v09.js → workspace-1cnp2v09.js} +0 -0
  703. /package/dist/chunks/{worktree-1kg9ymc8.js → workspace-1kg9ymc8.js} +0 -0
  704. /package/dist/chunks/{worktree-24dcb14g.js → workspace-24dcb14g.js} +0 -0
  705. /package/dist/chunks/{worktree-2710q6r3.js → workspace-2710q6r3.js} +0 -0
  706. /package/dist/chunks/{worktree-2axfhc9x.js → workspace-2axfhc9x.js} +0 -0
  707. /package/dist/chunks/{worktree-2c3vjs8z.js → workspace-2c3vjs8z.js} +0 -0
  708. /package/dist/chunks/{worktree-359p4xyc.js → workspace-359p4xyc.js} +0 -0
  709. /package/dist/chunks/{worktree-3asan66x.js → workspace-3asan66x.js} +0 -0
  710. /package/dist/chunks/{worktree-3v8g72cx.js → workspace-3v8g72cx.js} +0 -0
  711. /package/dist/chunks/{worktree-3w5fmr99.js → workspace-3w5fmr99.js} +0 -0
  712. /package/dist/chunks/{worktree-3wcehsnq.js → workspace-3wcehsnq.js} +0 -0
  713. /package/dist/chunks/{worktree-43n2bw4t.js → workspace-43n2bw4t.js} +0 -0
  714. /package/dist/chunks/{worktree-4knz6hnm.js → workspace-4knz6hnm.js} +0 -0
  715. /package/dist/chunks/{worktree-4vcrnpx2.js → workspace-4vcrnpx2.js} +0 -0
  716. /package/dist/chunks/{worktree-4y7fprxs.js → workspace-4y7fprxs.js} +0 -0
  717. /package/dist/chunks/{worktree-53557ph1.js → workspace-53557ph1.js} +0 -0
  718. /package/dist/chunks/{worktree-550bvhaj.js → workspace-550bvhaj.js} +0 -0
  719. /package/dist/chunks/{worktree-5qd3pb7m.js → workspace-5qd3pb7m.js} +0 -0
  720. /package/dist/chunks/{worktree-6prwharc.js → workspace-6prwharc.js} +0 -0
  721. /package/dist/chunks/{worktree-7akdwqpd.js → workspace-7akdwqpd.js} +0 -0
  722. /package/dist/chunks/{worktree-7m9af43g.js → workspace-7m9af43g.js} +0 -0
  723. /package/dist/chunks/{worktree-822emrt2.js → workspace-822emrt2.js} +0 -0
  724. /package/dist/chunks/{worktree-88xbtdfr.js → workspace-88xbtdfr.js} +0 -0
  725. /package/dist/chunks/{worktree-8n3pysct.js → workspace-8n3pysct.js} +0 -0
  726. /package/dist/chunks/{worktree-922hggd3.js → workspace-922hggd3.js} +0 -0
  727. /package/dist/chunks/{worktree-9a4afbnw.js → workspace-9a4afbnw.js} +0 -0
  728. /package/dist/chunks/{worktree-9rqn6x4v.js → workspace-9rqn6x4v.js} +0 -0
  729. /package/dist/chunks/{worktree-a6k6eb26.js → workspace-a6k6eb26.js} +0 -0
  730. /package/dist/chunks/{worktree-af5trqkr.js → workspace-af5trqkr.js} +0 -0
  731. /package/dist/chunks/{worktree-afrmfg78.js → workspace-afrmfg78.js} +0 -0
  732. /package/dist/chunks/{worktree-aqzs7mqg.js → workspace-aqzs7mqg.js} +0 -0
  733. /package/dist/chunks/{worktree-atq7p7m5.js → workspace-atq7p7m5.js} +0 -0
  734. /package/dist/chunks/{worktree-bkyjaxrp.js → workspace-bkyjaxrp.js} +0 -0
  735. /package/dist/chunks/{worktree-bmr6ed5q.js → workspace-bmr6ed5q.js} +0 -0
  736. /package/dist/chunks/{worktree-cf4snx6d.js → workspace-cf4snx6d.js} +0 -0
  737. /package/dist/chunks/{worktree-cvy3z8tj.js → workspace-cvy3z8tj.js} +0 -0
  738. /package/dist/chunks/{worktree-d9fn303g.js → workspace-d9fn303g.js} +0 -0
  739. /package/dist/chunks/{worktree-d9jj8t3e.js → workspace-d9jj8t3e.js} +0 -0
  740. /package/dist/chunks/{worktree-dajrwvna.js → workspace-dajrwvna.js} +0 -0
  741. /package/dist/chunks/{worktree-dap0rakb.js → workspace-dap0rakb.js} +0 -0
  742. /package/dist/chunks/{worktree-df08tz66.js → workspace-df08tz66.js} +0 -0
  743. /package/dist/chunks/{worktree-dy18nga0.js → workspace-dy18nga0.js} +0 -0
  744. /package/dist/chunks/{worktree-e5kj55wp.js → workspace-e5kj55wp.js} +0 -0
  745. /package/dist/chunks/{worktree-e73j6tqm.js → workspace-e73j6tqm.js} +0 -0
  746. /package/dist/chunks/{worktree-ec1grn59.js → workspace-ec1grn59.js} +0 -0
  747. /package/dist/chunks/{worktree-eh3zwz77.js → workspace-eh3zwz77.js} +0 -0
  748. /package/dist/chunks/{worktree-emrn6kk6.js → workspace-emrn6kk6.js} +0 -0
  749. /package/dist/chunks/{worktree-f0mxakyp.js → workspace-f0mxakyp.js} +0 -0
  750. /package/dist/chunks/{worktree-f6n9ztr4.js → workspace-f6n9ztr4.js} +0 -0
  751. /package/dist/chunks/{worktree-faypxj3z.js → workspace-faypxj3z.js} +0 -0
  752. /package/dist/chunks/{worktree-fd410y7t.js → workspace-fd410y7t.js} +0 -0
  753. /package/dist/chunks/{worktree-fxgpk5d8.js → workspace-fxgpk5d8.js} +0 -0
  754. /package/dist/chunks/{worktree-g4wezp1m.js → workspace-g4wezp1m.js} +0 -0
  755. /package/dist/chunks/{worktree-g86h250q.js → workspace-g86h250q.js} +0 -0
  756. /package/dist/chunks/{worktree-gebd4c9n.js → workspace-gebd4c9n.js} +0 -0
  757. /package/dist/chunks/{worktree-gftt206x.js → workspace-gftt206x.js} +0 -0
  758. /package/dist/chunks/{worktree-hjbc5kem.js → workspace-hjbc5kem.js} +0 -0
  759. /package/dist/chunks/{worktree-hk9envan.js → workspace-hk9envan.js} +0 -0
  760. /package/dist/chunks/{worktree-j2ntwpah.js → workspace-j2ntwpah.js} +0 -0
  761. /package/dist/chunks/{worktree-j5zkgpj8.js → workspace-j5zkgpj8.js} +0 -0
  762. /package/dist/chunks/{worktree-jjkms2e6.js → workspace-jjkms2e6.js} +0 -0
  763. /package/dist/chunks/{worktree-jr7sbwjy.js → workspace-jr7sbwjy.js} +0 -0
  764. /package/dist/chunks/{worktree-jwfs4k6c.js → workspace-jwfs4k6c.js} +0 -0
  765. /package/dist/chunks/{worktree-jzg6c2d5.js → workspace-jzg6c2d5.js} +0 -0
  766. /package/dist/chunks/{worktree-mp448xyj.js → workspace-mp448xyj.js} +0 -0
  767. /package/dist/chunks/{worktree-msx8hqn2.js → workspace-msx8hqn2.js} +0 -0
  768. /package/dist/chunks/{worktree-n05xt0ee.js → workspace-n05xt0ee.js} +0 -0
  769. /package/dist/chunks/{worktree-n3j8tn72.js → workspace-n3j8tn72.js} +0 -0
  770. /package/dist/chunks/{worktree-njntx4h6.js → workspace-njntx4h6.js} +0 -0
  771. /package/dist/chunks/{worktree-q3sfg36h.js → workspace-q3sfg36h.js} +0 -0
  772. /package/dist/chunks/{worktree-q74kybfr.js → workspace-q74kybfr.js} +0 -0
  773. /package/dist/chunks/{worktree-qaymkmh1.js → workspace-qaymkmh1.js} +0 -0
  774. /package/dist/chunks/{worktree-qb87gjwd.js → workspace-qb87gjwd.js} +0 -0
  775. /package/dist/chunks/{worktree-qfa1cgps.js → workspace-qfa1cgps.js} +0 -0
  776. /package/dist/chunks/{worktree-qg3g05ea.js → workspace-qg3g05ea.js} +0 -0
  777. /package/dist/chunks/{worktree-qrg20bc0.js → workspace-qrg20bc0.js} +0 -0
  778. /package/dist/chunks/{worktree-rcb2kzg1.js → workspace-rcb2kzg1.js} +0 -0
  779. /package/dist/chunks/{worktree-sdp7kfr6.js → workspace-sdp7kfr6.js} +0 -0
  780. /package/dist/chunks/{worktree-sk3qaz4a.js → workspace-sk3qaz4a.js} +0 -0
  781. /package/dist/chunks/{worktree-ssg3fenm.js → workspace-ssg3fenm.js} +0 -0
  782. /package/dist/chunks/{worktree-twg0f83k.js → workspace-twg0f83k.js} +0 -0
  783. /package/dist/chunks/{worktree-w803qqfp.js → workspace-w803qqfp.js} +0 -0
  784. /package/dist/chunks/{worktree-wc3fc9cn.js → workspace-wc3fc9cn.js} +0 -0
  785. /package/dist/chunks/{worktree-wer8tq1h.js → workspace-wer8tq1h.js} +0 -0
  786. /package/dist/chunks/{worktree-wtztk69x.js → workspace-wtztk69x.js} +0 -0
  787. /package/dist/chunks/{worktree-x0ckcb58.js → workspace-x0ckcb58.js} +0 -0
  788. /package/dist/chunks/{worktree-x61499pn.js → workspace-x61499pn.js} +0 -0
  789. /package/dist/chunks/{worktree-y44na4kk.js → workspace-y44na4kk.js} +0 -0
  790. /package/dist/chunks/{worktree-y8cydn3q.js → workspace-y8cydn3q.js} +0 -0
  791. /package/dist/chunks/{worktree-y8f7s663.js → workspace-y8f7s663.js} +0 -0
  792. /package/dist/chunks/{worktree-ygaqb7jw.js → workspace-ygaqb7jw.js} +0 -0
  793. /package/dist/chunks/{worktree-ym463w8f.js → workspace-ym463w8f.js} +0 -0
  794. /package/dist/chunks/{worktree-z9919s4g.js → workspace-z9919s4g.js} +0 -0
@@ -1,28 +1,28 @@
1
1
  import {
2
2
  lazy2
3
- } from "./worktree-88xbtdfr.js";
3
+ } from "./workspace-88xbtdfr.js";
4
4
  import {
5
5
  load4
6
- } from "./worktree-5qd3pb7m.js";
6
+ } from "./workspace-5qd3pb7m.js";
7
7
  import {
8
8
  __export
9
- } from "./worktree-9rqn6x4v.js";
9
+ } from "./workspace-9rqn6x4v.js";
10
10
 
11
11
  // src/filesystem/watcher.ts
12
12
  var exports_watcher = {};
13
13
  __export(exports_watcher, {
14
- Event: () => Event10,
14
+ Event: () => Event8,
15
15
  Native: () => Native3,
16
- Options: () => Options9,
17
- Service: () => Service56,
16
+ Options: () => Options7,
17
+ Service: () => Service48,
18
18
  Test: () => Test3,
19
19
  Watcher: () => exports_watcher,
20
- configured: () => configured9,
20
+ configured: () => configured6,
21
21
  hasNativeBinding: () => hasNativeBinding2,
22
- layer: () => layer20,
22
+ layer: () => layer18,
23
23
  nativeLayer: () => nativeLayer2,
24
24
  nativeNode: () => nativeNode2,
25
- node: () => node59,
25
+ node: () => node51,
26
26
  testLayer: () => testLayer3
27
27
  });
28
28
  import { createWrapper } from "@parcel/watcher/wrapper.js";
@@ -33,7 +33,7 @@ import { Cause, Context, Effect, Layer, PubSub, RcMap, Schema, Stream } from "ef
33
33
  import { watch } from "node:fs";
34
34
  import path from "path";
35
35
  var SUBSCRIBE_TIMEOUT_MS = 1e4;
36
- var Event10 = { Updated: FileSystem.Event.Changed };
36
+ var Event8 = { Updated: FileSystem.Event.Changed };
37
37
  var watcher = lazy2(() => {
38
38
  try {
39
39
  return createWrapper(load4());
@@ -53,18 +53,18 @@ var hasNativeBinding2 = () => !!watcher();
53
53
 
54
54
  class Native3 extends Context.Service()("@opencode/Watcher/Native") {
55
55
  }
56
- var Options9 = Schema.Struct({
56
+ var Options7 = Schema.Struct({
57
57
  enabled: Schema.optional(Schema.Boolean)
58
58
  });
59
59
 
60
- class Service56 extends Context.Service()("@opencode/Watcher") {
60
+ class Service48 extends Context.Service()("@opencode/Watcher") {
61
61
  }
62
62
 
63
63
  class Test3 extends Context.Service()("@opencode/Watcher/Test") {
64
64
  }
65
- var layer20 = (options) => Layer.effect(Service56, Effect.gen(function* () {
65
+ var layer18 = (options) => Layer.effect(Service48, Effect.gen(function* () {
66
66
  if (options?.enabled === false) {
67
- return Service56.of({ subscribe: () => Effect.succeed(Stream.empty) });
67
+ return Service48.of({ subscribe: () => Effect.succeed(Stream.empty) });
68
68
  }
69
69
  const native = yield* Native3;
70
70
  const watchers = yield* RcMap.make({
@@ -105,7 +105,7 @@ var layer20 = (options) => Layer.effect(Service56, Effect.gen(function* () {
105
105
  return Stream.fromSubscription(subscription);
106
106
  }));
107
107
  });
108
- return Service56.of({ subscribe });
108
+ return Service48.of({ subscribe });
109
109
  }));
110
110
  var testLayer3 = Layer.effectContext(Effect.gen(function* () {
111
111
  const subscriptions = [];
@@ -129,9 +129,9 @@ var testLayer3 = Layer.effectContext(Effect.gen(function* () {
129
129
  };
130
130
  })
131
131
  });
132
- const context = yield* Layer.build(layer20().pipe(Layer.provide(Layer.succeed(Native3, native))));
132
+ const context = yield* Layer.build(layer18().pipe(Layer.provide(Layer.succeed(Native3, native))));
133
133
  const test = Test3.of({
134
- subscribe: Context.get(context, Service56).subscribe,
134
+ subscribe: Context.get(context, Service48).subscribe,
135
135
  emit: (update) => Effect.sync(() => {
136
136
  const target = path.resolve(update.path);
137
137
  active.forEach((matches, publish) => {
@@ -141,7 +141,7 @@ var testLayer3 = Layer.effectContext(Effect.gen(function* () {
141
141
  }),
142
142
  subscriptions: () => Effect.sync(() => [...subscriptions])
143
143
  });
144
- return Context.empty().pipe(Context.add(Service56, test), Context.add(Test3, test));
144
+ return Context.empty().pipe(Context.add(Service48, test), Context.add(Test3, test));
145
145
  }));
146
146
  var nativeLayer2 = Layer.succeed(Native3, Native3.of({
147
147
  subscribe: (input) => {
@@ -164,10 +164,10 @@ var nativeLayer2 = Layer.succeed(Native3, Native3.of({
164
164
  }
165
165
  }));
166
166
  var nativeNode2 = makeGlobalNode({ service: Native3, layer: nativeLayer2, deps: [] });
167
- function configured9(options) {
168
- return makeGlobalNode({ service: Service56, layer: layer20(options), deps: [nativeNode2] });
167
+ function configured6(options) {
168
+ return makeGlobalNode({ service: Service48, layer: layer18(options), deps: [nativeNode2] });
169
169
  }
170
- var node59 = configured9();
170
+ var node51 = configured6();
171
171
  function subscribeDirectory(native, backend, directory, ignore, publish) {
172
172
  if (!native || !backend) {
173
173
  return Effect.logError("watcher backend not supported", { directory, platform: process.platform }).pipe(Effect.as(undefined));
@@ -187,4 +187,4 @@ function subscribeDirectory(native, backend, directory, ignore, publish) {
187
187
  }).pipe(Effect.as(undefined))));
188
188
  }
189
189
 
190
- export { Event10, hasNativeBinding2, Native3, Options9, Service56, Test3, layer20, testLayer3, nativeLayer2, nativeNode2, configured9, node59, exports_watcher };
190
+ export { Event8, hasNativeBinding2, Native3, Options7, Service48, Test3, layer18, testLayer3, nativeLayer2, nativeNode2, configured6, node51, exports_watcher };
@@ -1,23 +1,23 @@
1
1
  import {
2
2
  llmClient2
3
- } from "./worktree-5t3nmthw.js";
3
+ } from "./workspace-5t3nmthw.js";
4
4
  import {
5
5
  Service64,
6
- node68
7
- } from "./worktree-gm5vzmqr.js";
6
+ node66
7
+ } from "./workspace-rag3edqr.js";
8
8
  import {
9
9
  __export
10
- } from "./worktree-9rqn6x4v.js";
10
+ } from "./workspace-9rqn6x4v.js";
11
11
 
12
12
  // src/generate.ts
13
- var exports_generate2 = {};
14
- __export(exports_generate2, {
15
- Generate: () => exports_generate2,
13
+ var exports_generate = {};
14
+ __export(exports_generate, {
15
+ Generate: () => exports_generate,
16
16
  ModelSelectionError: () => ModelSelectionError2,
17
- Service: () => Service63,
18
- UnavailableError: () => UnavailableError3,
19
- layer: () => layer23,
20
- node: () => node67
17
+ Service: () => Service24,
18
+ UnavailableError: () => UnavailableError2,
19
+ layer: () => layer9,
20
+ node: () => node27
21
21
  });
22
22
  import { LLM, LLMClient } from "@opencode/ai";
23
23
  import { Context, Effect, Layer, Schema } from "effect";
@@ -27,15 +27,15 @@ class ModelSelectionError2 extends Schema.TaggedError()("Generate.ModelSelection
27
27
  }) {
28
28
  }
29
29
 
30
- class UnavailableError3 extends Schema.TaggedError()("Generate.UnavailableError", {
30
+ class UnavailableError2 extends Schema.TaggedError()("Generate.UnavailableError", {
31
31
  message: Schema.String,
32
32
  service: Schema.optional(Schema.String)
33
33
  }) {
34
34
  }
35
35
 
36
- class Service63 extends Context.Service()("@opencode/Generate") {
36
+ class Service24 extends Context.Service()("@opencode/Generate") {
37
37
  }
38
- var layer23 = Layer.effect(Service63, Effect.gen(function* () {
38
+ var layer9 = Layer.effect(Service24, Effect.gen(function* () {
39
39
  const llm = yield* LLMClient.Service;
40
40
  const resolver = yield* Service64;
41
41
  const runText = Effect.fn("Generate.text")(function* (input) {
@@ -47,28 +47,28 @@ var layer23 = Layer.effect(Service63, Effect.gen(function* () {
47
47
  "SessionRunnerModel.UnresolvedProviderVariablesError",
48
48
  "SessionRunnerModel.UnsupportedCompactionError"
49
49
  ], (error) => {
50
- const mapped = input.model ? new ModelSelectionError2({ message: error.message }) : new UnavailableError3({ message: error.message, service: error.providerID });
50
+ const mapped = input.model ? new ModelSelectionError2({ message: error.message }) : new UnavailableError2({ message: error.message, service: error.providerID });
51
51
  return Effect.fail(mapped);
52
52
  }));
53
53
  if (!resolved)
54
54
  return yield* new ModelSelectionError2({
55
55
  message: input.model ? `Model unavailable: ${input.model.providerID}/${input.model.id}` : "No model specified and no supported model is available"
56
56
  });
57
- const response = yield* llm.generate(LLM.request({ model: resolved.model, prompt: input.prompt })).pipe(Effect.mapError((error) => new UnavailableError3({
57
+ const response = yield* llm.generate(LLM.request({ model: resolved.model, prompt: input.prompt })).pipe(Effect.mapError((error) => new UnavailableError2({
58
58
  message: error.message,
59
59
  service: resolved.ref.providerID
60
60
  })));
61
61
  return response.text;
62
62
  });
63
- const text = (input) => runText(input).pipe(Effect.catchTag("Integration.Authorization", () => new UnavailableError3({
63
+ const text = (input) => runText(input).pipe(Effect.catchTag("Integration.Authorization", () => new UnavailableError2({
64
64
  message: "Generation credentials are unavailable"
65
65
  })));
66
- return Service63.of({ text });
66
+ return Service24.of({ text });
67
67
  }));
68
- var node67 = makeLocationNode({
69
- service: Service63,
70
- layer: layer23,
71
- deps: [node68, llmClient2]
68
+ var node27 = makeLocationNode({
69
+ service: Service24,
70
+ layer: layer9,
71
+ deps: [node66, llmClient2]
72
72
  });
73
73
 
74
- export { ModelSelectionError2, UnavailableError3, Service63, layer23, node67, exports_generate2 };
74
+ export { ModelSelectionError2, UnavailableError2, Service24, layer9, node27, exports_generate };
@@ -1,30 +1,30 @@
1
1
  import {
2
2
  PositiveInt2
3
- } from "./worktree-922hggd3.js";
3
+ } from "./workspace-922hggd3.js";
4
4
  import {
5
5
  Action2
6
- } from "./worktree-qj8eh1ht.js";
7
- import {
8
- Info12
9
- } from "./worktree-eex107wk.js";
6
+ } from "./workspace-jw80jp6b.js";
10
7
  import {
11
8
  Info16
12
- } from "./worktree-3cfzdc8e.js";
9
+ } from "./workspace-h2r7bbkd.js";
10
+ import {
11
+ Info9
12
+ } from "./workspace-tz2bjj40.js";
13
13
  import {
14
- Info20
15
- } from "./worktree-a46v4e4v.js";
14
+ Info14
15
+ } from "./workspace-qa3qhgw8.js";
16
16
  import {
17
- Info18
18
- } from "./worktree-d2aac7k2.js";
17
+ Info13
18
+ } from "./workspace-0f9afca0.js";
19
19
  import {
20
20
  Spec2
21
- } from "./worktree-2k8khapm.js";
21
+ } from "./workspace-0jwsre1p.js";
22
22
  import {
23
- Info13
24
- } from "./worktree-e6hmchc5.js";
23
+ Info12
24
+ } from "./workspace-qn4ba14w.js";
25
25
  import {
26
- Info11
27
- } from "./worktree-7hqt86v7.js";
26
+ Info8
27
+ } from "./workspace-6pmq8b1f.js";
28
28
  import {
29
29
  migrate2,
30
30
  normalizeAction2,
@@ -33,10 +33,10 @@ import {
33
33
  migrateMcp2,
34
34
  migrateProvider2,
35
35
  providerID2
36
- } from "./worktree-2h5p72nb.js";
36
+ } from "./workspace-y201z2mx.js";
37
37
  import {
38
38
  __export
39
- } from "./worktree-9rqn6x4v.js";
39
+ } from "./workspace-9rqn6x4v.js";
40
40
 
41
41
  // src/config/normalize.ts
42
42
  var exports_normalize = {};
@@ -84,10 +84,10 @@ function normalize2(input) {
84
84
  const encoded = {};
85
85
  unsupportedTopLevel.forEach((key) => unsupportedIfPresent(input, key, [key], diagnostics));
86
86
  const legacySnapshots = own(input, "snapshot") ? decodeEncoded(Schema.Boolean, input.snapshot, ["snapshot"], diagnostics) : undefined;
87
- const legacyUpdate = own(input, "autoupdate") ? decodeValue(Info11.fields.autoupdate, input.autoupdate, ["autoupdate"], diagnostics) : undefined;
87
+ const legacyUpdate = own(input, "autoupdate") ? decodeValue(Info8.fields.autoupdate, input.autoupdate, ["autoupdate"], diagnostics) : undefined;
88
88
  const nativeUpdate = own(input, "update") ? decodeEncoded(Info.fields.update, input.update, ["update"], diagnostics) : undefined;
89
89
  const legacyShare = own(input, "autoshare") ? decodeValue(Schema.Boolean, input.autoshare, ["autoshare"], diagnostics) === true ? "auto" : undefined : undefined;
90
- const legacyMedia = own(input, "attachment") ? decodeValue(Info16, input.attachment, ["attachment"], diagnostics) : undefined;
90
+ const legacyMedia = own(input, "attachment") ? decodeValue(Info9, input.attachment, ["attachment"], diagnostics) : undefined;
91
91
  if (legacyMedia !== undefined) {
92
92
  const migrated = migrate2({ attachment: legacyMedia }).media;
93
93
  if (migrated !== undefined)
@@ -104,7 +104,7 @@ function normalize2(input) {
104
104
  const legacyReferences = decodeMap(input.reference, ConfigReference.Entry, ["reference"], diagnostics, decodeEncoded);
105
105
  const nativeReferences = decodeMap(input.references, ConfigReference.Entry, ["references"], diagnostics, decodeEncoded);
106
106
  mergeMap(encoded, "references", legacyReferences, nativeReferences, isRecord(input.reference) || isRecord(input.references), diagnostics);
107
- const legacyCommands = decodeMap(input.command, Info20, ["command"], diagnostics, decodeValue);
107
+ const legacyCommands = decodeMap(input.command, Info14, ["command"], diagnostics, decodeValue);
108
108
  diagnoseSelectionMap(input.command, ["command"], diagnostics);
109
109
  const migratedCommands = mapValues(legacyCommands, (value) => {
110
110
  const migrated = commands2({ value })?.value;
@@ -112,7 +112,7 @@ function normalize2(input) {
112
112
  });
113
113
  const nativeCommands = decodeMap(input.commands, ConfigCommand.Info, ["commands"], diagnostics, decodeEncoded);
114
114
  mergeMap(encoded, "commands", migratedCommands, nativeCommands, isRecord(input.command) || isRecord(input.commands), diagnostics);
115
- const legacyAgents = mapValues(decodeMap(input.agent, Info12, ["agent"], diagnostics, decodeValue), (value) => canonical(ConfigAgent.Info, migrateAgent2(value)));
115
+ const legacyAgents = mapValues(decodeMap(input.agent, Info16, ["agent"], diagnostics, decodeValue), (value) => canonical(ConfigAgent.Info, migrateAgent2(value)));
116
116
  const legacySmallModel = own(input, "small_model") ? decodeValue(Schema.String, input.small_model, ["small_model"], diagnostics) : undefined;
117
117
  const migratedSmallModel = legacySmallModel ? migrate2({ small_model: legacySmallModel }).agents?.title?.model : undefined;
118
118
  if (legacySmallModel && !migratedSmallModel)
@@ -126,7 +126,7 @@ function normalize2(input) {
126
126
  model: migratedSmallModel,
127
127
  ...legacyAgents.title
128
128
  };
129
- const modeAgents = mapValues(decodeMap(input.mode, Info12, ["mode"], diagnostics, decodeValue), (value) => canonical(ConfigAgent.Info, migrateAgent2({ ...value, mode: "primary" })));
129
+ const modeAgents = mapValues(decodeMap(input.mode, Info16, ["mode"], diagnostics, decodeValue), (value) => canonical(ConfigAgent.Info, migrateAgent2({ ...value, mode: "primary" })));
130
130
  const migratedAgents = mergeMaps(legacyAgents, modeAgents, ["agents"], diagnostics);
131
131
  const nativeAgents = decodeMap(input.agents, ConfigAgent.Info, ["agents"], diagnostics, decodeEncoded);
132
132
  diagnoseAgentUnsupported(input.agent, ["agent"], diagnostics);
@@ -225,7 +225,7 @@ function normalizeMcp(input, encoded, diagnostics) {
225
225
  normalizeMcpTimeout(value, timeout, path, diagnostics);
226
226
  return;
227
227
  }
228
- const server = decodeValue(Info18, value, path, diagnostics);
228
+ const server = decodeValue(Info13, value, path, diagnostics);
229
229
  if (server !== undefined)
230
230
  setOwn(legacyServers, name, canonical(ConfigMCP.Server, migrateMcp2(server)));
231
231
  });
@@ -421,7 +421,7 @@ function migrateProviders(value, diagnostics) {
421
421
  diagnoseProviderUnsupported(raw, path, diagnostics);
422
422
  if (invalidProviderOverlays(raw, path, diagnostics))
423
423
  return [];
424
- const provider = decodeValue(Info13, raw, path, diagnostics);
424
+ const provider = decodeValue(Info12, raw, path, diagnostics);
425
425
  if (provider === undefined)
426
426
  return [];
427
427
  const destination = providerID2(name);
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  SessionEvent2
3
- } from "./worktree-ec1grn59.js";
3
+ } from "./workspace-ec1grn59.js";
4
4
  import {
5
5
  tokens2
6
- } from "./worktree-tdstcens.js";
6
+ } from "./workspace-tdstcens.js";
7
7
 
8
8
  // src/session/runner/publish-llm-event.ts
9
9
  import { Effect, Fiber, Iterable } from "effect";
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  __export
3
- } from "./worktree-9rqn6x4v.js";
3
+ } from "./workspace-9rqn6x4v.js";
4
4
 
5
5
  // src/database/sqlite.ts
6
6
  var exports_sqlite = {};
@@ -1,31 +1,31 @@
1
1
  import {
2
- Service55
3
- } from "./worktree-780m7f13.js";
2
+ Service47
3
+ } from "./workspace-pxfs15kn.js";
4
4
  import {
5
- Service24
6
- } from "./worktree-m55360kq.js";
5
+ Service36
6
+ } from "./workspace-4m58q416.js";
7
7
  import {
8
8
  __export
9
- } from "./worktree-9rqn6x4v.js";
9
+ } from "./workspace-9rqn6x4v.js";
10
10
 
11
11
  // src/config/plugin/mcp.ts
12
12
  var exports_mcp = {};
13
13
  __export(exports_mcp, {
14
14
  ConfigMcpPlugin: () => exports_mcp,
15
- Plugin: () => Plugin24,
15
+ Plugin: () => Plugin21,
16
16
  register: () => register2
17
17
  });
18
18
  import { define } from "@opencode/plugin/effect/plugin";
19
19
  import { Effect, Stream } from "effect";
20
- var Plugin24 = define({
20
+ var Plugin21 = define({
21
21
  id: "opencode.config.mcp",
22
22
  effect: Effect.fn(function* (ctx) {
23
23
  yield* register2(ctx.event.subscribe());
24
24
  })
25
25
  });
26
26
  var register2 = Effect.fn("ConfigMCPPlugin.register")(function* (events) {
27
- const config = yield* Service55;
28
- const mcp = yield* Service24;
27
+ const config = yield* Service47;
28
+ const mcp = yield* Service36;
29
29
  const loaded = { entries: [] };
30
30
  yield* events.pipe(Stream.filter((event) => event.type === "config.updated"), Stream.runForEach(() => config.entries().pipe(Effect.tap((entries) => Effect.sync(() => loaded.entries = entries)), Effect.andThen(mcp.reload()), Effect.catchCause((cause) => Effect.logError("failed to reload MCP config", { cause })))), Effect.ignore, Effect.forkScoped({ startImmediately: true }));
31
31
  loaded.entries = yield* config.entries();
@@ -46,4 +46,4 @@ var register2 = Effect.fn("ConfigMCPPlugin.register")(function* (events) {
46
46
  });
47
47
  });
48
48
 
49
- export { Plugin24, register2, exports_mcp };
49
+ export { Plugin21, register2, exports_mcp };
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  isCheckpoint2,
3
3
  decode2
4
- } from "./worktree-26k5bknw.js";
4
+ } from "./workspace-mfhfdr54.js";
5
5
 
6
6
  // src/session/runner/to-llm-message.ts
7
7
  import {
@@ -4,43 +4,43 @@ import {
4
4
  normalizeContent2,
5
5
  normalizedName2,
6
6
  effectiveName2
7
- } from "./worktree-3w5fmr99.js";
7
+ } from "./workspace-3w5fmr99.js";
8
8
  import {
9
9
  create2,
10
10
  catalog2
11
- } from "./worktree-k3c624dm.js";
11
+ } from "./workspace-nzks3jc8.js";
12
12
  import {
13
13
  create3
14
- } from "./worktree-rdw6cm16.js";
14
+ } from "./workspace-rdw6cm16.js";
15
15
  import {
16
- Service67,
17
- node71
18
- } from "./worktree-zab19jja.js";
16
+ Service75,
17
+ node78
18
+ } from "./workspace-r79m9za8.js";
19
19
  import {
20
- Service78,
21
- node82
22
- } from "./worktree-tx9w5tca.js";
20
+ Service63,
21
+ node65
22
+ } from "./workspace-pn3cc07s.js";
23
23
  import {
24
24
  match2
25
- } from "./worktree-y1fvbwt7.js";
25
+ } from "./workspace-y1fvbwt7.js";
26
26
  import {
27
27
  __export
28
- } from "./worktree-9rqn6x4v.js";
28
+ } from "./workspace-9rqn6x4v.js";
29
29
 
30
30
  // src/tool.ts
31
31
  var exports_tool = {};
32
32
  __export(exports_tool, {
33
33
  CallID: () => CallID2,
34
34
  Content: () => Content3,
35
- Error: () => Error5,
35
+ Error: () => Error4,
36
36
  FileContent: () => FileContent3,
37
37
  RegistrationError: () => RegistrationError2,
38
- Service: () => Service66,
38
+ Service: () => Service44,
39
39
  TextContent: () => TextContent2,
40
40
  Tool: () => exports_tool,
41
- node: () => node70
41
+ node: () => node47
42
42
  });
43
- import { CallID as CallID2, Content as Content3, Error as Error5, FileContent as FileContent3, TextContent as TextContent2 } from "@opencode/schema/tool";
43
+ import { CallID as CallID2, Content as Content3, Error as Error4, FileContent as FileContent3, TextContent as TextContent2 } from "@opencode/schema/tool";
44
44
  import { ToolDefinition } from "@opencode/ai";
45
45
  import { Tool } from "@opencode/schema/tool";
46
46
  import { Context, Effect, Layer, Result, Schema, SchemaIssue } from "effect";
@@ -51,11 +51,11 @@ class RegistrationError2 extends Schema.TaggedError()("Tool.RegistrationError",
51
51
  }) {
52
52
  }
53
53
 
54
- class Service66 extends Context.Service()("@opencode/Tool") {
54
+ class Service44 extends Context.Service()("@opencode/Tool") {
55
55
  }
56
- var layer = Layer.effect(Service66, Effect.gen(function* () {
57
- const hooks = yield* Service78;
58
- const image = yield* Service67;
56
+ var layer = Layer.effect(Service44, Effect.gen(function* () {
57
+ const hooks = yield* Service63;
58
+ const image = yield* Service75;
59
59
  const normalizeImages = Effect.fnUntraced(function* (content) {
60
60
  const normalized = yield* Effect.forEach(content, (item) => {
61
61
  if (item.type !== "file" || !item.mime.startsWith("image/"))
@@ -184,7 +184,7 @@ var layer = Layer.effect(Service66, Effect.gen(function* () {
184
184
  }), { discard: true });
185
185
  }
186
186
  });
187
- return Service66.of({
187
+ return Service44.of({
188
188
  transform: state.transform,
189
189
  reload: state.reload,
190
190
  list: () => Effect.sync(() => Array.from(state.get().tools.values())),
@@ -273,10 +273,10 @@ function namespaceError(name) {
273
273
  return;
274
274
  return new RegistrationError2({ name, message: `Invalid tool namespace: ${JSON.stringify(name)}` });
275
275
  }
276
- var node70 = makeLocationNode({
277
- service: Service66,
276
+ var node47 = makeLocationNode({
277
+ service: Service44,
278
278
  layer,
279
- deps: [node82, node71]
279
+ deps: [node65, node78]
280
280
  });
281
281
 
282
- export { RegistrationError2, Service66, node70, exports_tool, CallID2, Content3, Error5, FileContent3, TextContent2 };
282
+ export { RegistrationError2, Service44, node47, exports_tool, CallID2, Content3, Error4, FileContent3, TextContent2 };
@@ -1,33 +1,33 @@
1
1
  import {
2
2
  key2
3
- } from "./worktree-44h5tttr.js";
3
+ } from "./workspace-4dgbcxzg.js";
4
4
  import {
5
5
  Service82
6
- } from "./worktree-jvmrmb3q.js";
6
+ } from "./workspace-j13v91pw.js";
7
7
  import {
8
8
  OAuth3,
9
- Event17
10
- } from "./worktree-fp9dkyzv.js";
9
+ Event19
10
+ } from "./workspace-e624nkeg.js";
11
11
  import {
12
- ID10,
12
+ ID13,
13
13
  MethodID2
14
- } from "./worktree-mn85ck47.js";
14
+ } from "./workspace-rfe2qg2a.js";
15
15
  import {
16
- ID9,
16
+ ID12,
17
17
  aisdk2,
18
18
  mergeOverlay2,
19
- Service70
20
- } from "./worktree-n0c6g085.js";
19
+ Service71
20
+ } from "./workspace-0gptwf17.js";
21
21
  import {
22
- ID8
23
- } from "./worktree-nrfrnn4g.js";
22
+ ID10
23
+ } from "./workspace-ydpabj6e.js";
24
24
  import {
25
25
  load2,
26
26
  derive2
27
- } from "./worktree-ddt58ebd.js";
27
+ } from "./workspace-6sc0ns97.js";
28
28
  import {
29
29
  useragent2
30
- } from "./worktree-89s1mcqs.js";
30
+ } from "./workspace-gn97k1b0.js";
31
31
 
32
32
  // src/plugin/provider/github-copilot.ts
33
33
  import { Effect, Option, Schema, Semaphore, Stream } from "effect";
@@ -59,7 +59,7 @@ var decodeUser = Schema.decodeUnknownOption(User);
59
59
  var JsonBody = Schema.fromJsonString(Schema.Unknown);
60
60
  var decodeBody = Schema.decodeUnknownOption(JsonBody);
61
61
  var oauth = (app) => ({
62
- integrationID: ID10.make("github-copilot"),
62
+ integrationID: ID13.make("github-copilot"),
63
63
  method: {
64
64
  id: methodID,
65
65
  type: "oauth",
@@ -157,7 +157,7 @@ var oauth = (app) => ({
157
157
  var GithubCopilotPlugin2 = define({
158
158
  id: "opencode.provider.github.copilot",
159
159
  effect: Effect.fn(function* (ctx) {
160
- const providers = yield* Service70;
160
+ const providers = yield* Service71;
161
161
  const bus = yield* Service82;
162
162
  const loading = Semaphore.makeUnsafe(1);
163
163
  const loaded = {};
@@ -173,7 +173,7 @@ var GithubCopilotPlugin2 = define({
173
173
  return;
174
174
  }
175
175
  const url = copilotBaseURL2(credential.metadata) ?? baseURL();
176
- const provider = yield* providers.get(ID9.githubCopilot);
176
+ const provider = yield* providers.get(ID12.githubCopilot);
177
177
  const remote = yield* Effect.tryPromise({
178
178
  try: () => load2(url, {
179
179
  ...provider?.headers,
@@ -194,7 +194,7 @@ var GithubCopilotPlugin2 = define({
194
194
  editor.method.update(oauth(ctx.app));
195
195
  });
196
196
  yield* ctx.provider.transform((evt) => {
197
- const item = evt.get(ID9.githubCopilot);
197
+ const item = evt.get(ID12.githubCopilot);
198
198
  if (!item)
199
199
  return;
200
200
  if (loaded.models) {
@@ -214,17 +214,17 @@ var GithubCopilotPlugin2 = define({
214
214
  }
215
215
  });
216
216
  yield* ctx.model.transform((models) => {
217
- if (models.get(ID9.githubCopilot, ID8.make("gpt-5-chat-latest"))) {
218
- models.update(ID9.githubCopilot, ID8.make("gpt-5-chat-latest"), (model) => {
217
+ if (models.get(ID12.githubCopilot, ID10.make("gpt-5-chat-latest"))) {
218
+ models.update(ID12.githubCopilot, ID10.make("gpt-5-chat-latest"), (model) => {
219
219
  model.enabled = false;
220
220
  });
221
221
  }
222
222
  });
223
223
  const refresh = () => loading.withPermit(load().pipe(Effect.andThen(ctx.provider.reload())));
224
- yield* bus.subscribe(Event17.Switched).pipe(Stream.filter((event) => event.data.integrationID === ID10.make("github-copilot")), Stream.runForEach(refresh), Effect.forkScoped({ startImmediately: true }));
224
+ yield* bus.subscribe(Event19.Switched).pipe(Stream.filter((event) => event.data.integrationID === ID13.make("github-copilot")), Stream.runForEach(refresh), Effect.forkScoped({ startImmediately: true }));
225
225
  yield* refresh().pipe(Effect.forkScoped);
226
226
  yield* ctx.aisdk.hook("sdk", Effect.fn(function* (evt) {
227
- if (evt.model.providerID !== ID9.githubCopilot)
227
+ if (evt.model.providerID !== ID12.githubCopilot)
228
228
  return;
229
229
  if (evt.package !== "@ai-sdk/github-copilot")
230
230
  return;
@@ -233,7 +233,7 @@ var GithubCopilotPlugin2 = define({
233
233
  evt.sdk = mod.createOpenaiCompatible(evt.options);
234
234
  }));
235
235
  yield* ctx.session.hook("model.request", (evt) => Effect.gen(function* () {
236
- if (evt.model.providerID !== ID9.githubCopilot)
236
+ if (evt.model.providerID !== ID12.githubCopilot)
237
237
  return;
238
238
  const session = yield* ctx.session.get({ sessionID: evt.sessionID }).pipe(Effect.orElseSucceed(() => {
239
239
  return;
@@ -243,9 +243,9 @@ var GithubCopilotPlugin2 = define({
243
243
  evt.headers["X-Interaction-Id"] = evt.sessionID;
244
244
  if (interaction !== "conversation-agent")
245
245
  evt.headers["x-initiator"] = "agent";
246
- }), { providerID: ID9.githubCopilot });
246
+ }), { providerID: ID12.githubCopilot });
247
247
  yield* ctx.session.hook("http.request", (evt) => Effect.gen(function* () {
248
- if (evt.model.providerID !== ID9.githubCopilot)
248
+ if (evt.model.providerID !== ID12.githubCopilot)
249
249
  return;
250
250
  const token = evt.request.headers.get("x-api-key");
251
251
  if (!token)
@@ -253,9 +253,9 @@ var GithubCopilotPlugin2 = define({
253
253
  const text = yield* Effect.promise(() => evt.request.clone().text());
254
254
  const body = Option.getOrUndefined(decodeBody(text));
255
255
  applyHeaders(evt.request.headers, token, ctx.app, requestMetadata(evt.request.url, body), true);
256
- }), { providerID: ID9.githubCopilot });
256
+ }), { providerID: ID12.githubCopilot });
257
257
  yield* ctx.aisdk.hook("language", Effect.fn(function* (evt) {
258
- if (evt.model.providerID !== ID9.githubCopilot)
258
+ if (evt.model.providerID !== ID12.githubCopilot)
259
259
  return;
260
260
  if (evt.sdk.responses === undefined && evt.sdk.chat === undefined) {
261
261
  evt.language = evt.sdk.languageModel(evt.model.modelID ?? evt.model.id);