@opencode/core 0.0.0-dev-20981 → 0.0.0-dev-20982

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 (474) hide show
  1. package/dist/agent.js +73 -73
  2. package/dist/aisdk-native.js +71 -71
  3. package/dist/aisdk.js +76 -76
  4. package/dist/app.js +9 -9
  5. package/dist/bus.js +65 -65
  6. package/dist/chunks/{model-zwh4a1ab.js → model-04ym1fwe.js} +5 -5
  7. package/dist/chunks/{model-efwcmd71.js → model-0fjeggm9.js} +9 -9
  8. package/dist/chunks/{model-7j1a6jdx.js → model-0m0wxxk9.js} +18 -18
  9. package/dist/chunks/{model-d8mxpyz7.js → model-0njq27v6.js} +37 -37
  10. package/dist/chunks/{model-cwzd7x1t.js → model-0ppgc59f.js} +4 -4
  11. package/dist/chunks/{model-0nsjxa2x.js → model-13wqnzak.js} +3 -3
  12. package/dist/chunks/{model-w1yg9qkm.js → model-16nrxpzh.js} +16 -16
  13. package/dist/chunks/{model-r2jsz6zh.js → model-1a5352wv.js} +4 -4
  14. package/dist/chunks/{model-v9j8n8rs.js → model-1bwe3qwc.js} +8 -8
  15. package/dist/chunks/{model-x804m9tz.js → model-1dds5gcz.js} +23 -23
  16. package/dist/chunks/{model-7vfd4xz9.js → model-1gpb38yh.js} +5 -5
  17. package/dist/chunks/{model-tzgwpa0q.js → model-1qreg6w5.js} +30 -30
  18. package/dist/chunks/{model-fxaymqdw.js → model-1w2wqhfv.js} +3 -3
  19. package/dist/chunks/{model-t66atx3n.js → model-1wv6ewf4.js} +16 -16
  20. package/dist/chunks/{model-2k71kv7p.js → model-1y283654.js} +3 -3
  21. package/dist/chunks/{model-aq7k84zy.js → model-20zrxk89.js} +12 -12
  22. package/dist/chunks/{model-2h69y2j1.js → model-228yc791.js} +25 -25
  23. package/dist/chunks/{model-cqbr470d.js → model-249n4y23.js} +4 -4
  24. package/dist/chunks/{model-5y480sgp.js → model-2eegacq4.js} +7 -7
  25. package/dist/chunks/{model-t1vvqrnj.js → model-2gft9see.js} +21 -21
  26. package/dist/chunks/{model-fcrkznn8.js → model-2k8khapm.js} +4 -4
  27. package/dist/chunks/{model-810ve36t.js → model-30ezw4dz.js} +20 -20
  28. package/dist/chunks/{model-dw52cd0g.js → model-30x88qrh.js} +3 -3
  29. package/dist/chunks/{model-gd0tnyjc.js → model-3g8j9he4.js} +1 -1
  30. package/dist/chunks/{model-6qyp6q13.js → model-3n54exg3.js} +12 -12
  31. package/dist/chunks/{model-674w987k.js → model-3vhfphj7.js} +32 -32
  32. package/dist/chunks/{model-zxf3xmnj.js → model-3xvck7mv.js} +14 -14
  33. package/dist/chunks/{model-cz1na6pr.js → model-41k1h118.js} +16 -16
  34. package/dist/chunks/{model-87qbasm5.js → model-453djzx7.js} +8 -8
  35. package/dist/chunks/{model-4wytv71p.js → model-4e171ha0.js} +1 -1
  36. package/dist/chunks/{model-dc27vedx.js → model-4kca7kha.js} +25 -25
  37. package/dist/chunks/{model-nng5j9h6.js → model-4p1qn5j9.js} +3 -3
  38. package/dist/chunks/{model-1e0t64bm.js → model-4z3vwhnt.js} +9 -9
  39. package/dist/chunks/{model-svdem9xa.js → model-4zjcfn6g.js} +16 -16
  40. package/dist/chunks/{model-hk9t36gz.js → model-568arzm9.js} +3 -3
  41. package/dist/chunks/{model-h83xjv7f.js → model-57myy5jh.js} +3 -3
  42. package/dist/chunks/{model-vjvcezxg.js → model-5a7z4yxf.js} +8 -8
  43. package/dist/chunks/{model-n7m069ya.js → model-5e81dfca.js} +39 -39
  44. package/dist/chunks/{model-e3qxr5gk.js → model-5qd3pb7m.js} +2 -2
  45. package/dist/chunks/{model-mksqe0jy.js → model-5s0x098x.js} +19 -19
  46. package/dist/chunks/{model-5agp6482.js → model-5xzyc826.js} +26 -26
  47. package/dist/chunks/{model-09cyt2wq.js → model-61sfa1aj.js} +24 -24
  48. package/dist/chunks/{model-m77chmsg.js → model-6897dy4y.js} +8 -8
  49. package/dist/chunks/{model-yyq8xdja.js → model-68yh2fx3.js} +320 -320
  50. package/dist/chunks/{model-mm8a7tkj.js → model-6eadky4a.js} +48 -48
  51. package/dist/chunks/{model-w8038a0g.js → model-6epe09p4.js} +37 -37
  52. package/dist/chunks/{model-da571fjn.js → model-6exrpman.js} +22 -22
  53. package/dist/chunks/{model-a63pq2m6.js → model-6hh0p4jj.js} +9 -9
  54. package/dist/chunks/{model-wgahhr0x.js → model-6kg1vfnr.js} +7 -7
  55. package/dist/chunks/{model-dt5p2gzz.js → model-6nsfmgdp.js} +25 -25
  56. package/dist/chunks/model-6vb0jgt0.js +26 -0
  57. package/dist/chunks/{model-xscv4v2z.js → model-6w1q88cy.js} +7 -7
  58. package/dist/chunks/{model-hsn420a8.js → model-6x53d5fk.js} +13 -13
  59. package/dist/chunks/{model-e29c15sd.js → model-782zrs06.js} +3 -3
  60. package/dist/chunks/{model-11n2fvbk.js → model-79rwpvn4.js} +38 -38
  61. package/dist/chunks/{model-kas6drz3.js → model-7hbcydxm.js} +30 -30
  62. package/dist/chunks/{model-zy3z5mtm.js → model-7j4s1nts.js} +13 -13
  63. package/dist/chunks/{model-k16ggyyw.js → model-7nh8f0wn.js} +26 -26
  64. package/dist/chunks/{model-gsxrv0fy.js → model-7pw8yz1b.js} +9 -9
  65. package/dist/chunks/{model-fe4vsmnr.js → model-7x0qfkxs.js} +9 -9
  66. package/dist/chunks/{model-gwda5h78.js → model-81njmjsm.js} +9 -9
  67. package/dist/chunks/{model-w30whbb5.js → model-866gnewa.js} +12 -12
  68. package/dist/chunks/{model-n5ckd50m.js → model-868thhtj.js} +33 -33
  69. package/dist/chunks/{model-8a6bygkp.js → model-8beabzaw.js} +8 -8
  70. package/dist/chunks/{model-agkn6djb.js → model-8bv2d044.js} +17 -17
  71. package/dist/chunks/{model-wge3n3kq.js → model-8kamc0n0.js} +7 -7
  72. package/dist/chunks/{model-sfk668n4.js → model-8rez7pc9.js} +4 -4
  73. package/dist/chunks/{model-v577e917.js → model-918hk0p8.js} +17 -17
  74. package/dist/chunks/{model-142fkw1n.js → model-97868axb.js} +15 -15
  75. package/dist/chunks/{model-tg4ne0mz.js → model-9dk8dbn0.js} +51 -51
  76. package/dist/chunks/{model-mn4hnxkt.js → model-9jryrv3a.js} +12 -12
  77. package/dist/chunks/{model-nktcn7bv.js → model-9m88xfvv.js} +35 -35
  78. package/dist/chunks/{model-tfpgne2e.js → model-9syxb0r3.js} +10 -10
  79. package/dist/chunks/{model-gsndwzqv.js → model-ac9zsgge.js} +17 -17
  80. package/dist/chunks/{model-x661k3y3.js → model-addxnjmp.js} +3 -3
  81. package/dist/chunks/{model-z5crsmww.js → model-ajzsbz6h.js} +3 -3
  82. package/dist/chunks/{model-2ach13s2.js → model-ap7d67yw.js} +42 -42
  83. package/dist/chunks/{model-dyvsbq8q.js → model-apnwk0zd.js} +10 -10
  84. package/dist/chunks/{model-5gw5nkjt.js → model-aspgww5t.js} +82 -82
  85. package/dist/chunks/{model-kx2n7v0t.js → model-avj7e4e4.js} +10 -10
  86. package/dist/chunks/{model-m82j3vqr.js → model-b1et22ex.js} +26 -26
  87. package/dist/chunks/{model-7z93154z.js → model-b3dw1nxt.js} +21 -21
  88. package/dist/chunks/{model-hs2sc01j.js → model-bcffw6zz.js} +41 -41
  89. package/dist/chunks/{model-rgrzrdjr.js → model-bpxpvztg.js} +22 -22
  90. package/dist/chunks/{model-e5yhdxdz.js → model-bq5355gp.js} +41 -41
  91. package/dist/chunks/{model-cmwkp3r5.js → model-br0tr5aq.js} +7 -7
  92. package/dist/chunks/{model-cxmm8qc0.js → model-bsqtyhzw.js} +27 -27
  93. package/dist/chunks/{model-909p1r3q.js → model-c8bydgjz.js} +5 -5
  94. package/dist/chunks/{model-6w89m9p1.js → model-cazcby7s.js} +19 -19
  95. package/dist/chunks/{model-zswvs50y.js → model-csjk4z4y.js} +17 -17
  96. package/dist/chunks/{model-mxjbaaz4.js → model-dbz9e5sv.js} +20 -20
  97. package/dist/chunks/{model-msyrw4bq.js → model-dd5e861g.js} +4 -4
  98. package/dist/chunks/{model-m5b2t9yd.js → model-dexdmn7s.js} +55 -55
  99. package/dist/chunks/{model-k6zkg7sr.js → model-dhfmk2zr.js} +7 -7
  100. package/dist/chunks/{model-zvt5dnpc.js → model-dhmh7aw6.js} +3 -3
  101. package/dist/chunks/{model-8sgxnewj.js → model-dm0nfydx.js} +8 -8
  102. package/dist/chunks/{model-y71avatq.js → model-dpkg50ah.js} +3 -3
  103. package/dist/chunks/{model-ktgr00t7.js → model-drnf6xwf.js} +1 -1
  104. package/dist/chunks/{model-f6g8pkb4.js → model-dxw5vmgr.js} +16 -16
  105. package/dist/chunks/{model-t9fz1x23.js → model-e01gj4cd.js} +62 -62
  106. package/dist/chunks/{model-r2z489rp.js → model-ed1g29hy.js} +2 -2
  107. package/dist/chunks/{model-nsnm0d77.js → model-efjxf17k.js} +38 -38
  108. package/dist/chunks/{model-y2tp8ndf.js → model-ekw32q82.js} +9 -9
  109. package/dist/chunks/{model-1gh4n1ba.js → model-es9h6wy0.js} +4 -4
  110. package/dist/chunks/{model-xkcm35ep.js → model-exwpqpdy.js} +4 -4
  111. package/dist/chunks/{model-zn6ek04n.js → model-f6fz9g7x.js} +6 -6
  112. package/dist/chunks/{model-z1dnb0jf.js → model-f6j4pfw7.js} +12 -12
  113. package/dist/chunks/{model-4v7qdvcn.js → model-f81tjggh.js} +4 -4
  114. package/dist/chunks/{model-gyksvwm5.js → model-ff251rbv.js} +15 -15
  115. package/dist/chunks/{model-7src2pyj.js → model-fjb8erg1.js} +6 -6
  116. package/dist/chunks/{model-zvk9pegx.js → model-fng1q3a6.js} +34 -34
  117. package/dist/chunks/{model-0996nyz8.js → model-fqcgpcra.js} +8 -8
  118. package/dist/chunks/{model-1rd80ksx.js → model-g5ppxhgr.js} +16 -16
  119. package/dist/chunks/{model-xthmztap.js → model-gj1adh3k.js} +20 -20
  120. package/dist/chunks/{model-z6c3x22d.js → model-gj71zhbs.js} +3 -3
  121. package/dist/chunks/{model-qxcp4ttm.js → model-gs2he756.js} +182 -182
  122. package/dist/chunks/{model-cxkbmgp7.js → model-gtr46jpy.js} +12 -12
  123. package/dist/chunks/{model-hrg0xqaw.js → model-h3cseehx.js} +27 -27
  124. package/dist/chunks/{model-x5wrmng7.js → model-hcv80w8f.js} +9 -9
  125. package/dist/chunks/{model-8kw59tg1.js → model-hh74v2b0.js} +16 -16
  126. package/dist/chunks/{model-gxra9ntr.js → model-hjd8wwja.js} +22 -22
  127. package/dist/chunks/{model-0b5g1ynf.js → model-hkffa77z.js} +1 -1
  128. package/dist/chunks/{model-2ypdw6v4.js → model-hvh251q6.js} +8 -8
  129. package/dist/chunks/{model-605fdbxk.js → model-hz9wj0ed.js} +1 -1
  130. package/dist/chunks/{model-7sr4khpq.js → model-j142m76w.js} +16 -16
  131. package/dist/chunks/{model-q79edn6k.js → model-jcgcvvgv.js} +19 -19
  132. package/dist/chunks/{model-7dmr3qxn.js → model-jj9d5szw.js} +11 -11
  133. package/dist/chunks/{model-6g107h22.js → model-jk540des.js} +1 -1
  134. package/dist/chunks/{model-zm14bp5n.js → model-jmkbrx6z.js} +40 -40
  135. package/dist/chunks/{model-wr9rbap8.js → model-jvjaj5rz.js} +14 -14
  136. package/dist/chunks/{model-xeea7gjf.js → model-jwwy4gf7.js} +5 -5
  137. package/dist/chunks/{model-x076sjt5.js → model-k4h0p2n0.js} +6 -6
  138. package/dist/chunks/{model-2p142bke.js → model-k6fa6tfe.js} +14 -14
  139. package/dist/chunks/{model-11m4y6qd.js → model-k83c78af.js} +26 -26
  140. package/dist/chunks/{model-sddez406.js → model-kkjc9dy5.js} +13 -13
  141. package/dist/chunks/{model-8dt2m3qt.js → model-kvw3mq9v.js} +9 -9
  142. package/dist/chunks/{model-rs6n5dpz.js → model-kx1gjmzp.js} +5 -5
  143. package/dist/chunks/{model-em98dst4.js → model-m0b7pkkd.js} +28 -28
  144. package/dist/chunks/{model-b1a1n7cj.js → model-my4zabxr.js} +3 -3
  145. package/dist/chunks/{model-4z58m4b4.js → model-n1n192bv.js} +3 -3
  146. package/dist/chunks/{model-tdw1jchh.js → model-n5n1zjbv.js} +32 -32
  147. package/dist/chunks/{model-zhspmtmh.js → model-n724kc2b.js} +3 -3
  148. package/dist/chunks/{model-xheas1rx.js → model-n8ja6an3.js} +8 -8
  149. package/dist/chunks/{model-0d7p0p78.js → model-nd7vcjm8.js} +13 -13
  150. package/dist/chunks/{model-kh162zpt.js → model-nf4ty3xq.js} +21 -21
  151. package/dist/chunks/{model-y8k4q3en.js → model-nf63sdyz.js} +19 -19
  152. package/dist/chunks/{model-xsa1hygm.js → model-nfh0qqsf.js} +21 -21
  153. package/dist/chunks/{model-2stkn66k.js → model-nftsbvkz.js} +25 -25
  154. package/dist/chunks/{model-4ybf7fnk.js → model-npyp060g.js} +8 -8
  155. package/dist/chunks/{model-jekssrtq.js → model-npypc4rd.js} +7 -7
  156. package/dist/chunks/{model-h2ssqnba.js → model-p2c1p7fg.js} +4 -4
  157. package/dist/chunks/{model-smdpqrpz.js → model-p3mytphf.js} +22 -22
  158. package/dist/chunks/{model-5z0y4e44.js → model-p7jr90hv.js} +15 -15
  159. package/dist/chunks/{model-0br3sbwn.js → model-pg3d8dpb.js} +3 -3
  160. package/dist/chunks/{model-d7x0sh0y.js → model-phz50fbd.js} +7 -7
  161. package/dist/chunks/{model-2pfz9zj6.js → model-pk4brtys.js} +29 -29
  162. package/dist/chunks/{model-xnv46bg2.js → model-pyz1vfrp.js} +21 -21
  163. package/dist/chunks/{model-0j77ygfz.js → model-q0xm7vwc.js} +4 -4
  164. package/dist/chunks/{model-kaxyez5z.js → model-q2736rqt.js} +17 -17
  165. package/dist/chunks/{model-2qg26xbp.js → model-q504mf2g.js} +2 -2
  166. package/dist/chunks/{model-cekk119z.js → model-q81gz903.js} +3 -3
  167. package/dist/chunks/{model-2mcax4ft.js → model-qbfqzset.js} +12 -12
  168. package/dist/chunks/{model-kbxmpcp5.js → model-qjcj5bxx.js} +9 -9
  169. package/dist/chunks/{model-999bzrsf.js → model-qpzj3qa9.js} +5 -5
  170. package/dist/chunks/{model-k4dt4j6g.js → model-qwsskq9g.js} +20 -20
  171. package/dist/chunks/{model-zqm6kvvn.js → model-qy52ep8z.js} +16 -16
  172. package/dist/chunks/{model-rdza6gx1.js → model-r2a53ztr.js} +13 -13
  173. package/dist/chunks/{model-8vkaqw1w.js → model-r35mg9et.js} +12 -12
  174. package/dist/chunks/{model-f20efee0.js → model-r6734q5n.js} +10 -10
  175. package/dist/chunks/{model-qxhhhvy1.js → model-r6xwq2vk.js} +17 -17
  176. package/dist/chunks/{model-rm6mdncc.js → model-r7ka9ch8.js} +18 -18
  177. package/dist/chunks/{model-sbem282a.js → model-rgqhra37.js} +25 -25
  178. package/dist/chunks/{model-gj4dz15w.js → model-rh2yf6b2.js} +11 -11
  179. package/dist/chunks/{model-stfafkkt.js → model-rpxwryvh.js} +8 -8
  180. package/dist/chunks/{model-9c2gx1av.js → model-rsswyzw7.js} +12 -12
  181. package/dist/chunks/{model-s7ev4p20.js → model-rzn7k92n.js} +2 -2
  182. package/dist/chunks/{model-hpje1asd.js → model-s4q167yz.js} +16 -16
  183. package/dist/chunks/{model-t550f9t1.js → model-s8d7rejh.js} +3 -3
  184. package/dist/chunks/{model-479aec3e.js → model-sffa00cj.js} +26 -26
  185. package/dist/chunks/{model-b8rasqmm.js → model-sfj6zb2f.js} +85 -85
  186. package/dist/chunks/{model-pygwap58.js → model-sjyz1h2d.js} +24 -24
  187. package/dist/chunks/{model-8arnnpza.js → model-sk663hk0.js} +26 -26
  188. package/dist/chunks/{model-nhyne0rh.js → model-sxkxnm8w.js} +4 -4
  189. package/dist/chunks/{model-a2ew8a62.js → model-sxz6gkc3.js} +6 -6
  190. package/dist/chunks/{model-j1mj860n.js → model-tat11k01.js} +7 -7
  191. package/dist/chunks/{model-b22wppy7.js → model-ts98378q.js} +4 -4
  192. package/dist/chunks/{model-1j6m29mr.js → model-txm3e8qz.js} +8 -8
  193. package/dist/chunks/{model-dw5aamzj.js → model-tyawky02.js} +15 -15
  194. package/dist/chunks/{model-6g7e4dd5.js → model-v0es1rhs.js} +5 -5
  195. package/dist/chunks/{model-0f58zsv5.js → model-v9sgcpv9.js} +41 -41
  196. package/dist/chunks/{model-h9v0byjp.js → model-v9vx4ha1.js} +7 -7
  197. package/dist/chunks/{model-neg72jb9.js → model-vbktcqf2.js} +18 -18
  198. package/dist/chunks/{model-jwah6ncg.js → model-vdqx43ex.js} +1 -1
  199. package/dist/chunks/{model-t89fqycx.js → model-vgx6weyf.js} +7 -7
  200. package/dist/chunks/{model-nzep555n.js → model-vpdcaygd.js} +36 -36
  201. package/dist/chunks/{model-jqjtjqm5.js → model-vta2cxva.js} +14 -14
  202. package/dist/chunks/{model-6hernfpx.js → model-vtdgthxf.js} +20 -20
  203. package/dist/chunks/{model-84txncab.js → model-w1eejvng.js} +4 -4
  204. package/dist/chunks/{model-b3f8fkhc.js → model-wecqtg5s.js} +3 -3
  205. package/dist/chunks/{model-yb5kpwm0.js → model-wj5z0n6a.js} +16 -16
  206. package/dist/chunks/{model-pff3x97k.js → model-wk6sqcc5.js} +8 -8
  207. package/dist/chunks/model-wk815h5a.js +253 -0
  208. package/dist/chunks/{model-3aq39rmm.js → model-wr3xabqx.js} +11 -11
  209. package/dist/chunks/{model-x76z1jaq.js → model-wwhqjdsn.js} +16 -16
  210. package/dist/chunks/{model-edr8mr1d.js → model-wwncb6zf.js} +12 -12
  211. package/dist/chunks/{model-gs3mfcxs.js → model-wzf7q3t7.js} +27 -27
  212. package/dist/chunks/{model-s8cdmyqk.js → model-wzvjkcye.js} +17 -17
  213. package/dist/chunks/{model-x4za3xcr.js → model-x04pqkrt.js} +1 -1
  214. package/dist/chunks/{model-c0eqp439.js → model-xea223yn.js} +1 -1
  215. package/dist/chunks/{model-mvp4hync.js → model-xmk3nhga.js} +17 -17
  216. package/dist/chunks/{model-1b2xjh8d.js → model-y9yrahrn.js} +16 -16
  217. package/dist/chunks/{model-bjx1sjef.js → model-ywt8jp22.js} +7 -7
  218. package/dist/chunks/{model-z7tka8yh.js → model-yxebmv17.js} +21 -21
  219. package/dist/chunks/{model-c4ads7bv.js → model-z164wy97.js} +14 -14
  220. package/dist/chunks/{model-b888nyxg.js → model-z1j5fswa.js} +1 -1
  221. package/dist/chunks/{model-f3ttcj74.js → model-z4526mx1.js} +15 -15
  222. package/dist/chunks/{model-22xnzr80.js → model-z5d5yc96.js} +9 -9
  223. package/dist/chunks/{model-t4dv37ma.js → model-zm0hys1r.js} +18 -18
  224. package/dist/chunks/{model-y8y4787y.js → model-zmfgr60r.js} +7 -7
  225. package/dist/chunks/{model-bc32chh7.js → model-zmtn6p76.js} +12 -12
  226. package/dist/chunks/{model-fketk0k4.js → model-znj2jcy4.js} +8 -8
  227. package/dist/chunks/{model-az68kh8z.js → model-zr2nq6gp.js} +1 -1
  228. package/dist/chunks/{model-57w6ys69.js → model-zzdhwppw.js} +45 -45
  229. package/dist/codemode/instructions.js +2 -2
  230. package/dist/command.js +75 -75
  231. package/dist/config/discovery.js +66 -66
  232. package/dist/config/normalize.js +80 -80
  233. package/dist/config/plugin/agent.js +96 -96
  234. package/dist/config/plugin/command.js +177 -177
  235. package/dist/config/plugin/compaction.js +126 -126
  236. package/dist/config/plugin/compatibility.js +111 -111
  237. package/dist/config/plugin/formatter.js +95 -95
  238. package/dist/config/plugin/image.js +94 -94
  239. package/dist/config/plugin/instruction.js +93 -93
  240. package/dist/config/plugin/location-watcher.js +94 -94
  241. package/dist/config/plugin/mcp.js +104 -104
  242. package/dist/config/plugin/policy.js +95 -95
  243. package/dist/config/plugin/provider.js +92 -92
  244. package/dist/config/plugin/reference.js +96 -96
  245. package/dist/config/plugin/shell.js +96 -96
  246. package/dist/config/plugin/skill-file.js +81 -81
  247. package/dist/config/plugin/skill.js +112 -112
  248. package/dist/config/plugin/snapshot.js +94 -94
  249. package/dist/config/plugin/source.js +97 -97
  250. package/dist/config/plugin/tool-output.js +95 -95
  251. package/dist/config/plugin/websearch.js +95 -95
  252. package/dist/config/plugin/worktree.js +95 -95
  253. package/dist/config/variable.js +2 -2
  254. package/dist/config.js +96 -96
  255. package/dist/credential.js +67 -67
  256. package/dist/database/database.js +63 -63
  257. package/dist/database/drizzle/effect-sqlite/driver.js +9 -9
  258. package/dist/database/drizzle/effect-sqlite/index.js +6 -6
  259. package/dist/database/drizzle/effect-sqlite/session.js +6 -6
  260. package/dist/database/drizzle/index.js +10 -10
  261. package/dist/database/drizzle/sqlite-core/effect/db.js +4 -4
  262. package/dist/database/drizzle/sqlite-core/effect/index.js +2 -2
  263. package/dist/database/drizzle/sqlite-core/effect/session.js +5 -5
  264. package/dist/database/drizzle.js +10 -10
  265. package/dist/database/migration.gen.js +40 -40
  266. package/dist/database/migration.js +42 -42
  267. package/dist/database/v1-migration.bun.js +12 -12
  268. package/dist/effect/app-node-builder.js +234 -234
  269. package/dist/effect/keyed-mutex.js +3 -3
  270. package/dist/environment/environment.js +75 -75
  271. package/dist/environment/index.js +80 -80
  272. package/dist/environment/unavailable.js +3 -3
  273. package/dist/event-logger.js +14 -14
  274. package/dist/file-access.js +84 -84
  275. package/dist/file-mutation.js +76 -76
  276. package/dist/filesystem/location-watcher.js +187 -187
  277. package/dist/filesystem/search.js +79 -79
  278. package/dist/filesystem/watcher-binding.js +3 -3
  279. package/dist/filesystem/watcher.js +8 -8
  280. package/dist/filesystem.js +76 -76
  281. package/dist/form.js +66 -66
  282. package/dist/formatter/builtins.js +3 -3
  283. package/dist/formatter.js +71 -71
  284. package/dist/generate.js +83 -83
  285. package/dist/git.js +7 -7
  286. package/dist/github-copilot/chat/openai-compatible-chat-language-model.js +3 -3
  287. package/dist/github-copilot/copilot-provider.js +3 -3
  288. package/dist/github-copilot/models.js +81 -81
  289. package/dist/github-copilot/responses/openai-responses-language-model.js +4 -4
  290. package/dist/github-copilot/responses/openai-responses-prepare-tools.js +2 -2
  291. package/dist/image/photon.js +1 -1
  292. package/dist/image.js +5 -5
  293. package/dist/instance/service.js +5 -5
  294. package/dist/instance.js +317 -317
  295. package/dist/instruction-discovery.js +74 -74
  296. package/dist/instructions/builtins.js +71 -71
  297. package/dist/instructions/index.js +3 -3
  298. package/dist/integration/connection.js +3 -3
  299. package/dist/integration.js +71 -71
  300. package/dist/job.js +65 -65
  301. package/dist/kv.js +62 -62
  302. package/dist/location-activity.js +56 -56
  303. package/dist/location-lifecycle.js +87 -87
  304. package/dist/location-service-map.js +70 -70
  305. package/dist/location-services.js +316 -316
  306. package/dist/location.js +71 -71
  307. package/dist/managed-policy.js +7 -7
  308. package/dist/mcp/client.js +18 -18
  309. package/dist/mcp/index.js +87 -87
  310. package/dist/mcp/instructions.js +107 -107
  311. package/dist/mcp/oauth.js +11 -11
  312. package/dist/mcp/stdio.js +72 -72
  313. package/dist/modal/models.js +81 -81
  314. package/dist/model-resolver.js +80 -80
  315. package/dist/model.js +80 -80
  316. package/dist/models-dev.js +89 -89
  317. package/dist/permission/saved.js +66 -66
  318. package/dist/permission.js +91 -91
  319. package/dist/persistent-pty/index.js +76 -76
  320. package/dist/persistent-pty.js +62 -62
  321. package/dist/plugin/agent.js +66 -66
  322. package/dist/plugin/command.js +84 -84
  323. package/dist/plugin/hooks.js +5 -5
  324. package/dist/plugin/host.js +181 -181
  325. package/dist/plugin/identity.js +3 -3
  326. package/dist/plugin/instance.js +5 -5
  327. package/dist/plugin/internal.js +290 -290
  328. package/dist/plugin/mcp-codemode-defaults.js +3 -3
  329. package/dist/plugin/models-dev.js +78 -78
  330. package/dist/plugin/module.js +95 -95
  331. package/dist/plugin/plan.js +82 -82
  332. package/dist/plugin/provider/amazon-bedrock.js +72 -72
  333. package/dist/plugin/provider/azure.js +95 -95
  334. package/dist/plugin/provider/chatgpt.js +93 -93
  335. package/dist/plugin/provider/cloudflare-ai-gateway.js +92 -92
  336. package/dist/plugin/provider/cloudflare-workers-ai.js +92 -92
  337. package/dist/plugin/provider/configured.js +91 -91
  338. package/dist/plugin/provider/digitalocean.js +74 -74
  339. package/dist/plugin/provider/github-copilot.js +76 -76
  340. package/dist/plugin/provider/gitlab.js +74 -74
  341. package/dist/plugin/provider/google-vertex.js +92 -92
  342. package/dist/plugin/provider/llmgateway.js +66 -66
  343. package/dist/plugin/provider/lmstudio.js +104 -104
  344. package/dist/plugin/provider/local.js +101 -101
  345. package/dist/plugin/provider/modal.js +74 -74
  346. package/dist/plugin/provider/ollama.js +104 -104
  347. package/dist/plugin/provider/openai.js +93 -93
  348. package/dist/plugin/provider/opencode.js +79 -79
  349. package/dist/plugin/provider/openrouter.js +73 -73
  350. package/dist/plugin/provider/poe.js +66 -66
  351. package/dist/plugin/provider/sap-ai-core.js +72 -72
  352. package/dist/plugin/provider/snowflake-cortex.js +93 -93
  353. package/dist/plugin/provider/vercel.js +72 -72
  354. package/dist/plugin/provider/vllm.js +104 -104
  355. package/dist/plugin/provider/xai.js +73 -73
  356. package/dist/plugin/provider.js +138 -138
  357. package/dist/plugin/sdk.js +66 -66
  358. package/dist/plugin/service.js +3 -3
  359. package/dist/plugin/skill.js +112 -112
  360. package/dist/plugin/supervisor.js +307 -307
  361. package/dist/plugin/tool-input-repair.js +3 -3
  362. package/dist/plugin/update.js +6 -6
  363. package/dist/plugin/vcs/git.js +70 -70
  364. package/dist/plugin/vcs/hg.js +70 -70
  365. package/dist/plugin/verbosity.js +75 -75
  366. package/dist/plugin/warming.js +93 -93
  367. package/dist/plugin/websearch/exa.js +6 -6
  368. package/dist/plugin/websearch/firecrawl.js +7 -7
  369. package/dist/plugin/websearch/index.js +8 -8
  370. package/dist/plugin/websearch/mcp.js +5 -5
  371. package/dist/plugin/websearch/parallel.js +7 -7
  372. package/dist/plugin/websearch/tavily.js +6 -6
  373. package/dist/plugin/websearch/tinyfish.js +7 -7
  374. package/dist/plugin.js +194 -194
  375. package/dist/project/schema.js +5 -5
  376. package/dist/project.js +72 -72
  377. package/dist/provider.js +77 -77
  378. package/dist/pty.js +82 -82
  379. package/dist/reference/instructions.js +76 -76
  380. package/dist/reference.js +74 -74
  381. package/dist/repository-cache.js +68 -68
  382. package/dist/repository.js +3 -3
  383. package/dist/ripgrep.js +76 -76
  384. package/dist/rpc.js +70 -70
  385. package/dist/session/command.js +64 -64
  386. package/dist/session/compaction.js +107 -107
  387. package/dist/session/context.js +126 -126
  388. package/dist/session/diff.js +70 -70
  389. package/dist/session/environment.js +5 -5
  390. package/dist/session/error.js +4 -4
  391. package/dist/session/execution/restart.js +116 -116
  392. package/dist/session/execution.js +102 -102
  393. package/dist/session/generate.js +127 -127
  394. package/dist/session/history.js +8 -8
  395. package/dist/session/inbox.js +70 -70
  396. package/dist/session/info.js +2 -2
  397. package/dist/session/instruction-entry.js +63 -63
  398. package/dist/session/instruction-state.js +2 -2
  399. package/dist/session/instructions.js +78 -78
  400. package/dist/session/model-request.js +94 -94
  401. package/dist/session/model-transport.js +5 -5
  402. package/dist/session/move.js +104 -104
  403. package/dist/session/projector.js +68 -68
  404. package/dist/session/prompt.js +85 -85
  405. package/dist/session/provider-context.js +3 -3
  406. package/dist/session/revert.js +71 -71
  407. package/dist/session/runner/index.js +3 -3
  408. package/dist/session/runner/llm.js +189 -189
  409. package/dist/session/runner/model.js +80 -80
  410. package/dist/session/runner/publish-llm-event.js +90 -90
  411. package/dist/session/runner/retry.js +3 -3
  412. package/dist/session/runner/step.js +100 -100
  413. package/dist/session/runner/to-llm-message.js +2 -2
  414. package/dist/session/schema.js +5 -5
  415. package/dist/session/session.js +138 -138
  416. package/dist/session/shell.js +108 -108
  417. package/dist/session/skill.js +83 -83
  418. package/dist/session/stats.js +10 -10
  419. package/dist/session/store.js +69 -69
  420. package/dist/session/subagent-job.js +175 -175
  421. package/dist/session/title.js +123 -123
  422. package/dist/session/to-session-error.js +89 -89
  423. package/dist/session/transfer.js +116 -116
  424. package/dist/session.js +180 -180
  425. package/dist/shell/parse.js +3 -3
  426. package/dist/shell/select.js +11 -11
  427. package/dist/shell.js +111 -111
  428. package/dist/skill/discovery.js +5 -5
  429. package/dist/skill/instructions.js +87 -87
  430. package/dist/skill.js +92 -92
  431. package/dist/snapshot.js +73 -73
  432. package/dist/tool/mcp.js +104 -104
  433. package/dist/tool/plugin/edit.js +99 -99
  434. package/dist/tool/plugin/glob.js +102 -102
  435. package/dist/tool/plugin/grep.js +100 -100
  436. package/dist/tool/plugin/mcp-resource.js +95 -95
  437. package/dist/tool/plugin/opencode.js +87 -87
  438. package/dist/tool/plugin/patch.js +101 -101
  439. package/dist/tool/plugin/question.js +83 -83
  440. package/dist/tool/plugin/read.js +103 -103
  441. package/dist/tool/plugin/shell.js +181 -181
  442. package/dist/tool/plugin/skill.js +91 -91
  443. package/dist/tool/plugin/subagent.js +182 -182
  444. package/dist/tool/plugin/webfetch.js +89 -89
  445. package/dist/tool/plugin/websearch.js +94 -94
  446. package/dist/tool/plugin/write.js +101 -101
  447. package/dist/tool/read-filesystem.js +79 -79
  448. package/dist/tool-output.js +6 -6
  449. package/dist/tool.js +9 -9
  450. package/dist/v1/config/agent.js +6 -6
  451. package/dist/v1/config/command.js +5 -5
  452. package/dist/v1/config/error.js +3 -3
  453. package/dist/v1/config/mcp.js +3 -3
  454. package/dist/v1/config/migrate.js +73 -73
  455. package/dist/v1/config/permission.js +7 -7
  456. package/dist/v1/config/plugin.js +3 -3
  457. package/dist/v1/config/provider.js +3 -3
  458. package/dist/variant.js +73 -73
  459. package/dist/vcs.js +73 -73
  460. package/dist/websearch.js +73 -73
  461. package/dist/wellknown/plugin.js +65 -65
  462. package/dist/wellknown.js +70 -70
  463. package/dist/workspace/driver.js +7 -7
  464. package/dist/workspace.js +71 -71
  465. package/dist/worktree/git.js +4 -4
  466. package/dist/worktree/strategies.js +72 -72
  467. package/dist/worktree.js +80 -80
  468. package/package.json +8 -8
  469. package/dist/chunks/model-fz6md8dw.js +0 -26
  470. package/dist/chunks/model-s3zr8hxy.js +0 -253
  471. /package/dist/chunks/{model-5hx7d1d6.js → model-6xw3seg4.js} +0 -0
  472. /package/dist/chunks/{model-f1q4hcq2.js → model-khxmfjj5.js} +0 -0
  473. /package/dist/chunks/{model-d7hemvnj.js → model-n7gz5fxy.js} +0 -0
  474. /package/dist/chunks/{model-f7ma11rg.js → model-nzs7qp78.js} +0 -0
@@ -3,14 +3,14 @@ import {
3
3
  } from "./model-9rqn6x4v.js";
4
4
 
5
5
  // src/v1/config/permission.ts
6
- var exports_permission2 = {};
7
- __export(exports_permission2, {
6
+ var exports_permission = {};
7
+ __export(exports_permission, {
8
8
  Action: () => Action2,
9
- ConfigPermissionV1: () => exports_permission2,
9
+ ConfigPermissionV1: () => exports_permission,
10
10
  Entries: () => Entries2,
11
- Info: () => Info17,
11
+ Info: () => Info12,
12
12
  Object: () => Object2,
13
- Rule: () => Rule3
13
+ Rule: () => Rule2
14
14
  });
15
15
  import { Schema, SchemaGetter } from "effect";
16
16
  var Action2 = Schema.Literals(["ask", "allow", "deny"]).annotate({ identifier: "PermissionActionConfig" });
@@ -19,13 +19,13 @@ var Entries2 = (value) => Schema.ObjectKeyword.check(Schema.makeFilter((input) =
19
19
  encode: SchemaGetter.transform((entries) => globalThis.Object.fromEntries(entries))
20
20
  }));
21
21
  var Object2 = Entries2(Action2).annotate({ identifier: "PermissionObjectConfig" });
22
- var Rule3 = Schema.Union([Action2, Object2]).annotate({ identifier: "PermissionRuleConfig" });
22
+ var Rule2 = Schema.Union([Action2, Object2]).annotate({ identifier: "PermissionRuleConfig" });
23
23
  var actionOnly = new Set(["question", "websearch", "doom_loop"]);
24
- var Info17 = Schema.Union([Action2, Schema.ObjectKeyword]).pipe(Schema.decodeTo(Entries2(Rule3), {
24
+ var Info12 = Schema.Union([Action2, Schema.ObjectKeyword]).pipe(Schema.decodeTo(Entries2(Rule2), {
25
25
  decode: SchemaGetter.transform((input) => typeof input === "string" ? { "*": input } : input),
26
26
  encode: SchemaGetter.passthrough({ strict: false })
27
27
  })).check(Schema.makeFilter((rules) => rules.every(([key, rule]) => !actionOnly.has(key) || typeof rule === "string"), {
28
28
  expected: "question, websearch, and doom_loop to be ask, allow, or deny"
29
29
  })).annotate({ identifier: "PermissionConfig" });
30
30
 
31
- export { Action2, Entries2, Object2, Rule3, Info17, exports_permission2 };
31
+ export { Action2, Entries2, Object2, Rule2, Info12, exports_permission };
@@ -1,18 +1,18 @@
1
1
  import {
2
- Service85,
3
- node89
4
- } from "./model-edr8mr1d.js";
2
+ Service83,
3
+ node87
4
+ } from "./model-wwncb6zf.js";
5
5
  import {
6
6
  SessionTable2,
7
7
  SessionMessageTable2
8
8
  } from "./model-c1fqxshp.js";
9
9
  import {
10
10
  decodeMessageRow2,
11
- load4
12
- } from "./model-m77chmsg.js";
11
+ load5
12
+ } from "./model-6897dy4y.js";
13
13
  import {
14
14
  fromRow2
15
- } from "./model-ktgr00t7.js";
15
+ } from "./model-drnf6xwf.js";
16
16
  import {
17
17
  __export
18
18
  } from "./model-9rqn6x4v.js";
@@ -21,9 +21,9 @@ import {
21
21
  var exports_store = {};
22
22
  __export(exports_store, {
23
23
  ListInput: () => ListInput4,
24
- Service: () => Service59,
24
+ Service: () => Service65,
25
25
  SessionStore: () => exports_store,
26
- node: () => node61
26
+ node: () => node69
27
27
  });
28
28
  import { and, asc, desc, eq, gt, isNotNull, isNull, like, lt, notInArray, or, sql } from "drizzle-orm";
29
29
  import { Context, Effect, Layer, Schema } from "effect";
@@ -52,11 +52,11 @@ var ListProjectInput = Schema.Struct({
52
52
  var ListAllInput = Schema.Struct(ListInputBase);
53
53
  var ListInput4 = Schema.Union([ListDirectoryInput, ListProjectInput, ListAllInput]);
54
54
 
55
- class Service59 extends Context.Service()("@opencode/SessionStore") {
55
+ class Service65 extends Context.Service()("@opencode/SessionStore") {
56
56
  }
57
- var layer = Layer.effect(Service59, Effect.gen(function* () {
58
- const { db } = yield* Service85;
59
- return Service59.of({
57
+ var layer = Layer.effect(Service65, Effect.gen(function* () {
58
+ const { db } = yield* Service83;
59
+ return Service65.of({
60
60
  get: Effect.fnUntraced(function* (sessionID) {
61
61
  const row = yield* db.select().from(SessionTable2).where(eq(SessionTable2.id, sessionID)).get().pipe(Effect.orDie);
62
62
  return row ? fromRow2(row) : undefined;
@@ -98,7 +98,7 @@ var layer = Layer.effect(Service59, Effect.gen(function* () {
98
98
  const rows = yield* (input.limit === undefined ? query.all() : query.limit(input.limit).all()).pipe(Effect.orDie);
99
99
  return yield* Effect.forEach(direction === "previous" ? rows.toReversed() : rows, decodeMessageRow2);
100
100
  }),
101
- context: Effect.fn("SessionStore.context")((sessionID) => load4(db, sessionID, "latest")),
101
+ context: Effect.fn("SessionStore.context")((sessionID) => load5(db, sessionID, "latest")),
102
102
  message: Effect.fn("SessionStore.message")(function* (messageID) {
103
103
  const row = yield* db.select().from(SessionMessageTable2).where(eq(SessionMessageTable2.id, messageID)).get().pipe(Effect.orDie);
104
104
  return row ? {
@@ -125,6 +125,6 @@ var layer = Layer.effect(Service59, Effect.gen(function* () {
125
125
  })
126
126
  });
127
127
  }));
128
- var node61 = makeGlobalNode({ service: Service59, layer, deps: [node89] });
128
+ var node69 = makeGlobalNode({ service: Service65, layer, deps: [node87] });
129
129
 
130
- export { ListInput4, Service59, node61, exports_store };
130
+ export { ListInput4, Service65, node69, exports_store };
@@ -10,17 +10,17 @@ var exports_schema = {};
10
10
  __export(exports_schema, {
11
11
  Current: () => Current3,
12
12
  Event: () => Event21,
13
- ID: () => ID17,
14
- Info: () => Info28,
13
+ ID: () => ID18,
14
+ Info: () => Info29,
15
15
  ProjectSchema: () => exports_schema,
16
16
  UpdateInput: () => UpdateInput4,
17
17
  Vcs: () => Vcs3
18
18
  });
19
19
  import { Schema } from "effect";
20
20
  import { Project } from "@opencode/schema/project";
21
- var ID17 = Project.ID;
21
+ var ID18 = Project.ID;
22
22
  var Current3 = Project.Current;
23
- var Info28 = Project.Info;
23
+ var Info29 = Project.Info;
24
24
  var UpdateInput4 = Project.UpdateInput;
25
25
  var Event21 = Project.Event;
26
26
  var Vcs3 = Schema.Struct({
@@ -28,4 +28,4 @@ var Vcs3 = Schema.Struct({
28
28
  store: AbsolutePath2
29
29
  });
30
30
 
31
- export { ID17, Current3, Info28, UpdateInput4, Event21, Vcs3, exports_schema };
31
+ export { ID18, Current3, Info29, UpdateInput4, Event21, Vcs3, exports_schema };
@@ -1,34 +1,34 @@
1
1
  import {
2
2
  useragent2
3
- } from "./model-tfpgne2e.js";
3
+ } from "./model-9syxb0r3.js";
4
4
  import {
5
- Service81
6
- } from "./model-zqm6kvvn.js";
5
+ Service82
6
+ } from "./model-qy52ep8z.js";
7
7
  import {
8
- ID15,
8
+ ID16,
9
9
  Event20,
10
10
  Service74
11
- } from "./model-mksqe0jy.js";
11
+ } from "./model-5s0x098x.js";
12
12
  import {
13
13
  key2
14
- } from "./model-x661k3y3.js";
14
+ } from "./model-addxnjmp.js";
15
15
  import {
16
- ID13,
16
+ ID14,
17
17
  MethodID2
18
- } from "./model-rm6mdncc.js";
18
+ } from "./model-r7ka9ch8.js";
19
19
  import {
20
20
  which2
21
21
  } from "./model-qaymkmh1.js";
22
22
  import {
23
- ID12,
23
+ ID13,
24
24
  Service71
25
- } from "./model-kh162zpt.js";
25
+ } from "./model-nf4ty3xq.js";
26
26
  import {
27
- ID11
28
- } from "./model-x804m9tz.js";
27
+ ID12
28
+ } from "./model-1dds5gcz.js";
29
29
  import {
30
30
  configuredSettings2
31
- } from "./model-nhyne0rh.js";
31
+ } from "./model-sxkxnm8w.js";
32
32
 
33
33
  // src/plugin/provider/azure.ts
34
34
  import { Clock, Effect, FiberHandle, Option, Schema, Semaphore, Stream } from "effect";
@@ -63,16 +63,16 @@ var decodeManagementDeployment = Schema.decodeUnknownOption(Schema.Struct({
63
63
  }));
64
64
  var ResourceQuery = Schema.Struct({ query: Schema.String });
65
65
  var Resources = Schema.Struct({ data: Schema.Array(Schema.Struct({ id: Schema.NonEmptyString })) });
66
- function make8(endpoints = {
66
+ function make9(endpoints = {
67
67
  resource: (name) => `https://${name}.openai.azure.com/openai`,
68
68
  management: "https://management.azure.com"
69
69
  }) {
70
70
  return define({
71
71
  id: "opencode.provider.azure",
72
72
  effect: Effect.fn(function* (ctx) {
73
- const configured = yield* configuredSettings2(ID12.azure);
73
+ const configured = yield* configuredSettings2(ID13.azure);
74
74
  const processes = yield* AppProcess.Service;
75
- const bus = yield* Service81;
75
+ const bus = yield* Service82;
76
76
  const credentials = yield* Service74;
77
77
  const providers = yield* Service71;
78
78
  const http = HttpClient.filterStatusOk(yield* HttpClient.HttpClient);
@@ -100,11 +100,11 @@ function make8(endpoints = {
100
100
  const configuredResource = Boolean(resolveResourceName(configured) || typeof configured?.baseURL === "string");
101
101
  yield* ctx.integration.transform((editor) => {
102
102
  editor.method.update({
103
- integrationID: ID12.azure,
103
+ integrationID: ID13.azure,
104
104
  method: { type: "env", names: ["AZURE_API_KEY", "AZURE_COGNITIVE_SERVICES_API_KEY"] }
105
105
  });
106
106
  editor.method.update({
107
- integrationID: ID12.azure,
107
+ integrationID: ID13.azure,
108
108
  method: {
109
109
  type: "key",
110
110
  label: "API key",
@@ -122,7 +122,7 @@ function make8(endpoints = {
122
122
  if (!available)
123
123
  return;
124
124
  editor.method.update({
125
- integrationID: ID12.azure,
125
+ integrationID: ID13.azure,
126
126
  method: {
127
127
  id: methodID,
128
128
  type: "external",
@@ -142,8 +142,8 @@ function make8(endpoints = {
142
142
  });
143
143
  });
144
144
  const load = Effect.fn("AzurePlugin.load")(function* () {
145
- const connection = yield* ctx.integration.connection.active(ID12.azure);
146
- const stored = connection?.type === "credential" ? yield* credentials.get(ID15.make(connection.id)) : undefined;
145
+ const connection = yield* ctx.integration.connection.active(ID13.azure);
146
+ const stored = connection?.type === "credential" ? yield* credentials.get(ID16.make(connection.id)) : undefined;
147
147
  return { connection, resource: credentialResource(stored?.value) };
148
148
  });
149
149
  const findResource = Effect.fn("AzurePlugin.findResource")(function* (resource) {
@@ -182,7 +182,7 @@ function make8(endpoints = {
182
182
  }));
183
183
  const discover = Effect.fn("AzurePlugin.discover")(function* () {
184
184
  const connection = loaded.connection;
185
- const settings = (yield* providers.get(ID12.azure))?.settings;
185
+ const settings = (yield* providers.get(ID13.azure))?.settings;
186
186
  const name = loaded.resource ?? resolveResourceName(settings);
187
187
  const url = connection && name !== undefined && resourcePattern.test(name) && typeof settings?.baseURL !== "string" ? `${endpoints.resource(name)}/deployments?api-version=2022-12-01` : undefined;
188
188
  if (loaded.connection !== connection)
@@ -204,11 +204,11 @@ function make8(endpoints = {
204
204
  const found = yield* deployments(url, name, credential).pipe(Effect.map((list) => list.toSorted((a, b) => a.name.localeCompare(b.name))), Effect.catch((cause) => Effect.logWarning("failed to sync Azure deployments", { cause }).pipe(Effect.as(undefined))));
205
205
  if (!found)
206
206
  return;
207
- if (loaded.connection !== connection || key2(connection) !== key2(yield* ctx.integration.connection.active(ID12.azure)))
207
+ if (loaded.connection !== connection || key2(connection) !== key2(yield* ctx.integration.connection.active(ID13.azure)))
208
208
  return;
209
209
  if (JSON.stringify(found) === JSON.stringify(loaded.deployments))
210
210
  return;
211
- const catalog = new Map(Array.from((yield* providers.snapshot()).records.get(ID12.azure)?.models.keys() ?? [], (id) => [
211
+ const catalog = new Map(Array.from((yield* providers.snapshot()).records.get(ID13.azure)?.models.keys() ?? [], (id) => [
212
212
  id.toLowerCase(),
213
213
  id
214
214
  ]));
@@ -221,11 +221,11 @@ function make8(endpoints = {
221
221
  yield* ctx.model.reload();
222
222
  });
223
223
  const refresh = () => rebind().pipe(Effect.andThen(FiberHandle.run(discovery, discover())));
224
- const resourceFor = (provider) => provider.id === ID12.azure ? loaded.resource ?? resolveResourceName(provider.settings) : resolveResourceName(provider.settings, loaded.resource);
224
+ const resourceFor = (provider) => provider.id === ID13.azure ? loaded.resource ?? resolveResourceName(provider.settings) : resolveResourceName(provider.settings, loaded.resource);
225
225
  Object.assign(loaded, yield* load());
226
226
  yield* ctx.provider.transform((evt) => {
227
227
  for (const item of evt.list()) {
228
- if (item.provider.id !== ID12.azure && !item.provider.package.startsWith("@opencode/ai/providers/azure/"))
228
+ if (item.provider.id !== ID13.azure && !item.provider.package.startsWith("@opencode/ai/providers/azure/"))
229
229
  continue;
230
230
  const resourceName = resourceFor(item.provider);
231
231
  const websocket = responsesWebSocketCapable(item.provider);
@@ -240,7 +240,7 @@ function make8(endpoints = {
240
240
  };
241
241
  });
242
242
  }
243
- const item = evt.get(ID12.azure);
243
+ const item = evt.get(ID13.azure);
244
244
  if (!item)
245
245
  return;
246
246
  evt.add({
@@ -251,7 +251,7 @@ function make8(endpoints = {
251
251
  });
252
252
  yield* ctx.model.transform((models) => {
253
253
  for (const item of models.provider.list()) {
254
- if (item.provider.id !== ID12.azure && !item.provider.package.startsWith("@opencode/ai/providers/azure/"))
254
+ if (item.provider.id !== ID13.azure && !item.provider.package.startsWith("@opencode/ai/providers/azure/"))
255
255
  continue;
256
256
  const resourceName = resourceFor(item.provider);
257
257
  for (const model of models.list(item.provider.id)) {
@@ -263,20 +263,20 @@ function make8(endpoints = {
263
263
  }
264
264
  if (!loaded.deployments)
265
265
  return;
266
- const catalog = models.list(ID12.azure);
266
+ const catalog = models.list(ID13.azure);
267
267
  const deployed = deployedModels(loaded.deployments, catalog);
268
268
  for (const model of catalog) {
269
269
  if (!deployed.has(model.id))
270
- models.remove(ID12.azure, model.id);
270
+ models.remove(ID13.azure, model.id);
271
271
  }
272
272
  for (const [id, model] of deployed) {
273
- models.update(ID12.azure, id, (draft) => Object.assign(draft, model));
273
+ models.update(ID13.azure, id, (draft) => Object.assign(draft, model));
274
274
  }
275
275
  });
276
- yield* bus.subscribe(Event20.Switched).pipe(Stream.filter((event) => event.data.integrationID === ID13.make("azure")), Stream.runForEach(() => refresh()), Effect.forkScoped({ startImmediately: true }));
276
+ yield* bus.subscribe(Event20.Switched).pipe(Stream.filter((event) => event.data.integrationID === ID14.make("azure")), Stream.runForEach(() => refresh()), Effect.forkScoped({ startImmediately: true }));
277
277
  yield* refresh().pipe(Effect.forkScoped);
278
278
  const bearer = Effect.fn("AzurePlugin.bearer")(function* (url) {
279
- const connection = yield* ctx.integration.connection.active(ID12.azure);
279
+ const connection = yield* ctx.integration.connection.active(ID13.azure);
280
280
  const credential = connection ? yield* ctx.integration.connection.resolve(connection).pipe(Effect.orElseSucceed(() => {
281
281
  return;
282
282
  })) : undefined;
@@ -288,7 +288,7 @@ function make8(endpoints = {
288
288
  return `Bearer ${current.access}`;
289
289
  });
290
290
  yield* ctx.session.hook("http.request", (evt) => Effect.gen(function* () {
291
- if (evt.model.providerID !== ID12.azure)
291
+ if (evt.model.providerID !== ID13.azure)
292
292
  return;
293
293
  const authorization = yield* bearer(evt.request.url);
294
294
  if (!authorization)
@@ -297,9 +297,9 @@ function make8(endpoints = {
297
297
  evt.request.headers.delete("x-api-key");
298
298
  evt.request.headers.set("authorization", authorization);
299
299
  evt.request.headers.set("user-agent", useragent2(ctx.app));
300
- }), { providerID: ID12.azure });
300
+ }), { providerID: ID13.azure });
301
301
  yield* ctx.session.hook("experimental.ws.handshake", (evt) => Effect.gen(function* () {
302
- if (evt.model.providerID !== ID12.azure)
302
+ if (evt.model.providerID !== ID13.azure)
303
303
  return;
304
304
  const authorization = yield* bearer(evt.url);
305
305
  if (!authorization)
@@ -308,11 +308,11 @@ function make8(endpoints = {
308
308
  delete evt.headers["x-api-key"];
309
309
  evt.headers.authorization = authorization;
310
310
  evt.headers["user-agent"] = useragent2(ctx.app);
311
- }), { providerID: ID12.azure });
311
+ }), { providerID: ID13.azure });
312
312
  })
313
313
  });
314
314
  }
315
- var AzurePlugin2 = make8();
315
+ var AzurePlugin2 = make9();
316
316
  function resolveResourceName(settings, fallback) {
317
317
  const configured = settings?.resourceName;
318
318
  if (typeof configured === "string" && configured.trim() !== "")
@@ -342,11 +342,11 @@ function deployedModels(deployments, catalog) {
342
342
  const model = catalogModel(models, deployment);
343
343
  if (!model)
344
344
  return [];
345
- const id = ID11.make(deployment.name.toLowerCase());
345
+ const id = ID12.make(deployment.name.toLowerCase());
346
346
  const info = {
347
347
  ...structuredClone(model),
348
348
  id,
349
- modelID: ID11.make(deployment.name),
349
+ modelID: ID12.make(deployment.name),
350
350
  name: id === model.id.toLowerCase() ? model.name : `${model.name} (${deployment.name})`
351
351
  };
352
352
  return [[id, info]];
@@ -368,4 +368,4 @@ function responsesWebSocketCapable(provider) {
368
368
  return /^https:\/\/[^/]+\.openai\.azure\.com(?:\/|$)/i.test(settings.baseURL);
369
369
  }
370
370
 
371
- export { make8, AzurePlugin2 };
371
+ export { make9, AzurePlugin2 };
@@ -1,12 +1,12 @@
1
1
  import {
2
- Service53
3
- } from "./model-479aec3e.js";
2
+ Service61
3
+ } from "./model-sffa00cj.js";
4
4
  import {
5
- Service46
6
- } from "./model-909p1r3q.js";
5
+ Service49
6
+ } from "./model-c8bydgjz.js";
7
7
  import {
8
8
  awaitActivation2
9
- } from "./model-4v7qdvcn.js";
9
+ } from "./model-f81tjggh.js";
10
10
  import {
11
11
  __export
12
12
  } from "./model-9rqn6x4v.js";
@@ -19,8 +19,8 @@ __export(exports_command3, {
19
19
  });
20
20
  import { Effect } from "effect";
21
21
  var execute2 = Effect.fn("SessionCommand.execute")(function* (input) {
22
- const instances = yield* Service46;
23
- const commands = yield* awaitActivation2.pipe(Effect.andThen(Service53), instances.provide(input.session));
22
+ const instances = yield* Service49;
23
+ const commands = yield* awaitActivation2.pipe(Effect.andThen(Service61), instances.provide(input.session));
24
24
  yield* commands.execute({
25
25
  name: input.command,
26
26
  invocation: {
@@ -2,22 +2,22 @@ import {
2
2
  llmClient2
3
3
  } from "./model-775gj3j1.js";
4
4
  import {
5
- Service67,
6
- node69
7
- } from "./model-nsnm0d77.js";
5
+ Service68,
6
+ node72
7
+ } from "./model-efjxf17k.js";
8
8
  import {
9
9
  __export
10
10
  } from "./model-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: () => Service54,
17
+ Service: () => Service18,
18
18
  UnavailableError: () => UnavailableError2,
19
- layer: () => layer20,
20
- node: () => node56
19
+ layer: () => layer11,
20
+ node: () => node21
21
21
  });
22
22
  import { LLM, LLMClient } from "@opencode/ai";
23
23
  import { SessionID } from "@opencode/schema/session-id";
@@ -34,11 +34,11 @@ class UnavailableError2 extends Schema.TaggedError()("Generate.UnavailableError"
34
34
  }) {
35
35
  }
36
36
 
37
- class Service54 extends Context.Service()("@opencode/Generate") {
37
+ class Service18 extends Context.Service()("@opencode/Generate") {
38
38
  }
39
- var layer20 = Layer.effect(Service54, Effect.gen(function* () {
39
+ var layer11 = Layer.effect(Service18, Effect.gen(function* () {
40
40
  const llm = yield* LLMClient.Service;
41
- const resolver = yield* Service67;
41
+ const resolver = yield* Service68;
42
42
  const runText = Effect.fn("Generate.text")(function* (input) {
43
43
  const resolved = yield* resolver.resolve(input.model).pipe(Effect.catchTag([
44
44
  "SessionRunnerModel.VariantUnavailableError",
@@ -68,12 +68,12 @@ var layer20 = Layer.effect(Service54, Effect.gen(function* () {
68
68
  const text = (input) => runText(input).pipe(Effect.catchTag("Integration.Authorization", () => new UnavailableError2({
69
69
  message: "Generation credentials are unavailable"
70
70
  })));
71
- return Service54.of({ text });
71
+ return Service18.of({ text });
72
72
  }));
73
- var node56 = makeLocationNode({
74
- service: Service54,
75
- layer: layer20,
76
- deps: [node69, llmClient2]
73
+ var node21 = makeLocationNode({
74
+ service: Service18,
75
+ layer: layer11,
76
+ deps: [node72, llmClient2]
77
77
  });
78
78
 
79
- export { ModelSelectionError2, UnavailableError2, Service54, layer20, node56, exports_generate2 };
79
+ export { ModelSelectionError2, UnavailableError2, Service18, layer11, node21, exports_generate };
@@ -4,7 +4,7 @@ import {
4
4
  } from "./model-emrn6kk6.js";
5
5
  import {
6
6
  SQLiteEffectDatabase2
7
- } from "./model-d7hemvnj.js";
7
+ } from "./model-n7gz5fxy.js";
8
8
 
9
9
  // src/database/drizzle/sqlite-core/effect/session.ts
10
10
  import * as Cause from "effect/Cause";
@@ -5,18 +5,18 @@ import {
5
5
  // src/session/environment.ts
6
6
  var exports_environment = {};
7
7
  __export(exports_environment, {
8
- Service: () => Service50,
8
+ Service: () => Service55,
9
9
  SessionEnvironment: () => exports_environment,
10
- node: () => node52
10
+ node: () => node58
11
11
  });
12
12
  import { Context, Effect, Layer } from "effect";
13
13
  import { makeGlobalNode } from "@opencode/util/effect/app-node";
14
14
 
15
- class Service50 extends Context.Service()("@opencode/SessionEnvironment") {
15
+ class Service55 extends Context.Service()("@opencode/SessionEnvironment") {
16
16
  }
17
- var layer = Layer.sync(Service50, () => {
17
+ var layer = Layer.sync(Service55, () => {
18
18
  const environments = new Map;
19
- return Service50.of({
19
+ return Service55.of({
20
20
  get: (sessionID) => Effect.sync(() => environments.get(sessionID)),
21
21
  set: (sessionID, variables) => Effect.sync(() => {
22
22
  environments.set(sessionID, { ...variables });
@@ -26,6 +26,6 @@ var layer = Layer.sync(Service50, () => {
26
26
  })
27
27
  });
28
28
  });
29
- var node52 = makeGlobalNode({ service: Service50, layer, deps: [] });
29
+ var node58 = makeGlobalNode({ service: Service55, layer, deps: [] });
30
30
 
31
- export { Service50, node52, exports_environment };
31
+ export { Service55, node58, exports_environment };