@opencode-ai/core 0.0.0-dev-18447 → 0.0.0-dev-18457

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 (758) hide show
  1. package/dist/account/sql.js +2 -2
  2. package/dist/agent.js +70 -70
  3. package/dist/aisdk-native.js +3 -3
  4. package/dist/aisdk.js +4 -4
  5. package/dist/app.js +2 -2
  6. package/dist/bus.js +68 -68
  7. package/dist/catalog.js +78 -78
  8. package/dist/chunks/{persistent-pty-017jr2na.js → image-017jr2na.js} +2 -2
  9. package/dist/chunks/{persistent-pty-02dbfq60.js → image-02dbfq60.js} +1 -1
  10. package/dist/chunks/{persistent-pty-a9663bdg.js → image-0bdebe5v.js} +5 -5
  11. package/dist/chunks/{persistent-pty-0kvmztkf.js → image-0kvmztkf.js} +1 -1
  12. package/dist/chunks/{persistent-pty-ne337p1p.js → image-0sfzy8a2.js} +9 -9
  13. package/dist/chunks/{persistent-pty-qt1vkvn7.js → image-0yn0nwpw.js} +11 -11
  14. package/dist/chunks/{persistent-pty-hceyyyjn.js → image-10djfsk5.js} +11 -11
  15. package/dist/chunks/{persistent-pty-pgz3absj.js → image-11n102c7.js} +8 -8
  16. package/dist/chunks/{persistent-pty-15hpbjb6.js → image-15hpbjb6.js} +1 -1
  17. package/dist/chunks/{persistent-pty-18pv8fg3.js → image-18pv8fg3.js} +2 -2
  18. package/dist/chunks/{persistent-pty-g5a7cdqy.js → image-1fhebsf9.js} +10 -10
  19. package/dist/chunks/{persistent-pty-xgyvsd3w.js → image-1wr8td20.js} +6 -6
  20. package/dist/chunks/{persistent-pty-s15cbbkc.js → image-28x6cnnr.js} +9 -9
  21. package/dist/chunks/{persistent-pty-p91c1aq3.js → image-2d8mr7vn.js} +3 -3
  22. package/dist/chunks/{persistent-pty-s2npdhwj.js → image-2fgb979d.js} +14 -14
  23. package/dist/chunks/{persistent-pty-b09wcfam.js → image-2hhtx3gq.js} +8 -8
  24. package/dist/chunks/image-2k9hzznk.js +126 -0
  25. package/dist/chunks/{persistent-pty-2m0hgr65.js → image-2m0hgr65.js} +1 -1
  26. package/dist/chunks/{persistent-pty-2nmyybe0.js → image-2nmyybe0.js} +1 -1
  27. package/dist/chunks/{persistent-pty-2wds5nk3.js → image-2wds5nk3.js} +1 -1
  28. package/dist/chunks/{persistent-pty-mzp9df4w.js → image-2ybx6wv4.js} +3 -3
  29. package/dist/chunks/{persistent-pty-5mwdx0a3.js → image-32xyr547.js} +10 -11
  30. package/dist/chunks/{persistent-pty-arr2bwhb.js → image-38kjx9xx.js} +5 -5
  31. package/dist/chunks/{persistent-pty-393a352g.js → image-393a352g.js} +2 -2
  32. package/dist/chunks/{persistent-pty-x0x923v8.js → image-3ee4av8d.js} +6 -6
  33. package/dist/chunks/{persistent-pty-3g8vftxb.js → image-3g8vftxb.js} +2 -2
  34. package/dist/chunks/{persistent-pty-3qv8nf0b.js → image-3qv8nf0b.js} +1 -1
  35. package/dist/chunks/{persistent-pty-d8rw1g2b.js → image-3ree9rsd.js} +8 -8
  36. package/dist/chunks/{persistent-pty-vb5885k6.js → image-3t9acz0v.js} +6 -6
  37. package/dist/chunks/{persistent-pty-3thh6229.js → image-3thh6229.js} +2 -2
  38. package/dist/chunks/{persistent-pty-2dhm0s4r.js → image-40vgqq6s.js} +1 -1
  39. package/dist/chunks/{persistent-pty-3h476px9.js → image-44hrnpc0.js} +4 -4
  40. package/dist/chunks/{persistent-pty-xvjzb00f.js → image-4ag6zeqd.js} +11 -11
  41. package/dist/chunks/{persistent-pty-pd15nmck.js → image-4ktwyqe7.js} +7 -7
  42. package/dist/chunks/{persistent-pty-1ag913pn.js → image-4q25xkk6.js} +6 -6
  43. package/dist/chunks/{persistent-pty-ejvcsew2.js → image-4q4gv58a.js} +6 -6
  44. package/dist/chunks/{persistent-pty-4s2xwh5d.js → image-4s2xwh5d.js} +3 -3
  45. package/dist/chunks/{persistent-pty-4zzdwbaz.js → image-4zzdwbaz.js} +2 -2
  46. package/dist/chunks/{persistent-pty-50jxp3hw.js → image-50jxp3hw.js} +1 -1
  47. package/dist/chunks/{persistent-pty-5xvv0z5p.js → image-5200erqg.js} +153 -153
  48. package/dist/chunks/{persistent-pty-cahw3zvy.js → image-55njfc1f.js} +10 -10
  49. package/dist/chunks/{persistent-pty-57tzwnz4.js → image-57tzwnz4.js} +1 -1
  50. package/dist/chunks/{persistent-pty-58xdvehb.js → image-58xdvehb.js} +1 -1
  51. package/dist/chunks/{persistent-pty-5cdnkd94.js → image-5cdnkd94.js} +3 -3
  52. package/dist/chunks/{persistent-pty-5fe026tx.js → image-5fe026tx.js} +3 -3
  53. package/dist/chunks/{persistent-pty-xs5706te.js → image-5hq0kbb2.js} +3 -3
  54. package/dist/chunks/{persistent-pty-mz1efpb0.js → image-5hseqaj6.js} +8 -8
  55. package/dist/chunks/{persistent-pty-ttc79r1y.js → image-5q5255dj.js} +12 -12
  56. package/dist/chunks/{persistent-pty-5rs65q6p.js → image-5rs65q6p.js} +1 -1
  57. package/dist/chunks/{persistent-pty-5vcssjzn.js → image-5vcssjzn.js} +1 -1
  58. package/dist/chunks/{persistent-pty-cs903k8a.js → image-5yw73te1.js} +5 -5
  59. package/dist/chunks/{persistent-pty-5z4zwtb4.js → image-5z4zwtb4.js} +2 -2
  60. package/dist/chunks/{persistent-pty-5v86fwq8.js → image-6190sjwh.js} +9 -9
  61. package/dist/chunks/{persistent-pty-6272rtjg.js → image-6272rtjg.js} +1 -1
  62. package/dist/chunks/{persistent-pty-r51mka8x.js → image-67bec6qm.js} +4 -4
  63. package/dist/chunks/{persistent-pty-4703e0v8.js → image-69qrwdtn.js} +5 -5
  64. package/dist/chunks/{persistent-pty-1dfqx17w.js → image-6g6wn14j.js} +11 -11
  65. package/dist/chunks/{persistent-pty-6ky7rqk7.js → image-6ky7rqk7.js} +1 -1
  66. package/dist/chunks/{persistent-pty-7rz68ghz.js → image-6maxree4.js} +31 -31
  67. package/dist/chunks/{persistent-pty-6wkzvma0.js → image-6wkzvma0.js} +2 -2
  68. package/dist/chunks/{persistent-pty-bwv7b0tj.js → image-6x2vyh6t.js} +3 -3
  69. package/dist/chunks/{persistent-pty-75h1hfe2.js → image-75h1hfe2.js} +2 -2
  70. package/dist/chunks/{persistent-pty-p38fsgnn.js → image-77j9jw9p.js} +5 -5
  71. package/dist/chunks/{persistent-pty-yttrhae3.js → image-7b48rxmy.js} +6 -6
  72. package/dist/chunks/{persistent-pty-f7q7a28y.js → image-7ccgh94t.js} +6 -6
  73. package/dist/chunks/{persistent-pty-29r05n18.js → image-7fc06m7e.js} +4 -4
  74. package/dist/chunks/{persistent-pty-7gqqz1s8.js → image-7gqqz1s8.js} +1 -1
  75. package/dist/chunks/{persistent-pty-7khw64yh.js → image-7khw64yh.js} +1 -1
  76. package/dist/chunks/{persistent-pty-7mrpdsq5.js → image-7mrpdsq5.js} +1 -1
  77. package/dist/chunks/{persistent-pty-s9szm9ex.js → image-7pr6tbt6.js} +2 -2
  78. package/dist/chunks/{persistent-pty-7thnevmq.js → image-7thnevmq.js} +2 -2
  79. package/dist/chunks/{persistent-pty-7wcmqxrc.js → image-7wcmqxrc.js} +1 -1
  80. package/dist/chunks/{persistent-pty-wye4rw9m.js → image-8a7c359h.js} +13 -13
  81. package/dist/chunks/{persistent-pty-w0tbrswq.js → image-8ac17h25.js} +4 -4
  82. package/dist/chunks/{persistent-pty-sbejdffq.js → image-8p9nqbpx.js} +4 -4
  83. package/dist/chunks/{persistent-pty-8pngjawd.js → image-8pngjawd.js} +2 -2
  84. package/dist/chunks/{persistent-pty-8tv6syt7.js → image-8tv6syt7.js} +1 -1
  85. package/dist/chunks/{persistent-pty-3xkm9h0v.js → image-90h9pqka.js} +7 -7
  86. package/dist/chunks/{persistent-pty-58aqa1s8.js → image-949ft1y5.js} +2 -2
  87. package/dist/chunks/{persistent-pty-7hdnkpew.js → image-9e53fjvr.js} +5 -5
  88. package/dist/chunks/{persistent-pty-9f0rnpkn.js → image-9f0rnpkn.js} +1 -1
  89. package/dist/chunks/{persistent-pty-1q3kjqmv.js → image-9g68hbmg.js} +3 -3
  90. package/dist/chunks/{persistent-pty-9c2gzbb2.js → image-9k870wkv.js} +3 -3
  91. package/dist/chunks/{persistent-pty-690yns90.js → image-9ps69azq.js} +11 -11
  92. package/dist/chunks/{persistent-pty-zpvmt0s6.js → image-9y7bby4e.js} +5 -5
  93. package/dist/chunks/{persistent-pty-y58pzssg.js → image-a1c36992.js} +3 -3
  94. package/dist/chunks/{persistent-pty-nk0hzrbv.js → image-a6azsjpd.js} +9 -9
  95. package/dist/chunks/{persistent-pty-xa293h9w.js → image-a7tdx6k6.js} +2 -2
  96. package/dist/chunks/{persistent-pty-my8jc6xh.js → image-aja6frp0.js} +10 -10
  97. package/dist/chunks/{persistent-pty-ndpdgxaf.js → image-aq81d2k8.js} +35 -35
  98. package/dist/chunks/{persistent-pty-pyv7d7h3.js → image-atzz1m5r.js} +7 -7
  99. package/dist/chunks/{persistent-pty-awg5d31a.js → image-awg5d31a.js} +1 -1
  100. package/dist/chunks/image-b18qr5sn.js +304 -0
  101. package/dist/chunks/{persistent-pty-bbhffenw.js → image-bbhffenw.js} +3 -3
  102. package/dist/chunks/{persistent-pty-49j9ze6t.js → image-bftq80pv.js} +5 -5
  103. package/dist/chunks/{persistent-pty-bh1wr8rq.js → image-bh1wr8rq.js} +2 -2
  104. package/dist/chunks/{persistent-pty-bmknfyv0.js → image-bmknfyv0.js} +2 -2
  105. package/dist/chunks/{persistent-pty-byab506k.js → image-byab506k.js} +1 -1
  106. package/dist/chunks/{persistent-pty-pdqh5pmm.js → image-c4m569n3.js} +3 -3
  107. package/dist/chunks/{persistent-pty-c4wcb9vc.js → image-c4wcb9vc.js} +2 -2
  108. package/dist/chunks/{persistent-pty-1ek5x95t.js → image-c845nz40.js} +3 -3
  109. package/dist/chunks/{persistent-pty-c8ya26sa.js → image-c8ya26sa.js} +2 -2
  110. package/dist/chunks/{persistent-pty-9q9jrwsh.js → image-ccg6411k.js} +22 -22
  111. package/dist/chunks/{persistent-pty-y6vn1v9c.js → image-cejdbwa1.js} +4 -4
  112. package/dist/chunks/{persistent-pty-fj9mzd1e.js → image-cgnqf45y.js} +5 -5
  113. package/dist/chunks/{persistent-pty-tp3vwsdr.js → image-chz4wmbg.js} +14 -16
  114. package/dist/chunks/{persistent-pty-sz77k968.js → image-cq10z9wa.js} +2 -2
  115. package/dist/chunks/{persistent-pty-9apx6hyd.js → image-cs2sympd.js} +3 -3
  116. package/dist/chunks/{persistent-pty-v81rwca6.js → image-ctj4erah.js} +91 -91
  117. package/dist/chunks/{persistent-pty-r2qg7086.js → image-czj97zw4.js} +11 -11
  118. package/dist/chunks/{persistent-pty-d2gk9vpf.js → image-d2gk9vpf.js} +2 -2
  119. package/dist/chunks/{persistent-pty-60ak1zc3.js → image-d2mrm06k.js} +4 -4
  120. package/dist/chunks/{persistent-pty-pa9f0rzc.js → image-d2pz9c6t.js} +62 -62
  121. package/dist/chunks/{persistent-pty-d4h7vwhh.js → image-d4h7vwhh.js} +2 -2
  122. package/dist/chunks/{persistent-pty-j4x55qt5.js → image-dbvqqhw0.js} +12 -12
  123. package/dist/chunks/{persistent-pty-3b20b1y8.js → image-dd65bqth.js} +3 -3
  124. package/dist/chunks/{persistent-pty-dhphtf1x.js → image-dhphtf1x.js} +1 -1
  125. package/dist/chunks/{persistent-pty-b8ndhws8.js → image-dtsy0489.js} +2 -2
  126. package/dist/chunks/{persistent-pty-e1z9a0ts.js → image-e1z9a0ts.js} +2 -2
  127. package/dist/chunks/{persistent-pty-ay46cxa6.js → image-e4r6yds8.js} +3 -3
  128. package/dist/chunks/{persistent-pty-ec8vrfw5.js → image-ec8vrfw5.js} +1 -1
  129. package/dist/chunks/{persistent-pty-rvx401a0.js → image-ecft2zb7.js} +8 -8
  130. package/dist/chunks/{persistent-pty-eeta29b7.js → image-eeta29b7.js} +4 -4
  131. package/dist/chunks/{persistent-pty-h3n6hawk.js → image-ef0w08rb.js} +86 -84
  132. package/dist/chunks/{persistent-pty-2wpxfemg.js → image-eneq7qf9.js} +7 -7
  133. package/dist/chunks/{persistent-pty-enpg66yn.js → image-enpg66yn.js} +1 -1
  134. package/dist/chunks/{persistent-pty-e73gxcfa.js → image-f5mj56xc.js} +15 -15
  135. package/dist/chunks/{persistent-pty-f9wt0tjw.js → image-f9wt0tjw.js} +2 -2
  136. package/dist/chunks/{persistent-pty-fb7nfzf2.js → image-fb7nfzf2.js} +3 -3
  137. package/dist/chunks/{persistent-pty-fgyjabww.js → image-fgyjabww.js} +2 -2
  138. package/dist/chunks/{persistent-pty-fm8j5g0a.js → image-fm8j5g0a.js} +3 -3
  139. package/dist/chunks/{persistent-pty-2jfz2kd5.js → image-g1q3adeq.js} +4 -4
  140. package/dist/chunks/{persistent-pty-bm2k0xgy.js → image-g1y1bsae.js} +7 -7
  141. package/dist/chunks/{persistent-pty-61r9p3jr.js → image-g409hbyb.js} +3 -3
  142. package/dist/chunks/{persistent-pty-07b834b7.js → image-g6r9jz3q.js} +10 -10
  143. package/dist/chunks/{persistent-pty-gb1z7yet.js → image-gb1z7yet.js} +2 -2
  144. package/dist/chunks/{persistent-pty-gcay93cp.js → image-gcay93cp.js} +1 -1
  145. package/dist/chunks/{persistent-pty-gd2xppx8.js → image-gd2xppx8.js} +1 -1
  146. package/dist/chunks/{persistent-pty-kadg0arq.js → image-getpa8rr.js} +4 -4
  147. package/dist/chunks/{persistent-pty-apbx05rs.js → image-gh3hadh0.js} +7 -7
  148. package/dist/chunks/{persistent-pty-6j1yr417.js → image-gpkhgqxd.js} +3 -3
  149. package/dist/chunks/{persistent-pty-gpybhmhb.js → image-gpybhmhb.js} +3 -3
  150. package/dist/chunks/{persistent-pty-h12kt9pa.js → image-h12kt9pa.js} +2 -2
  151. package/dist/chunks/{persistent-pty-727y67fw.js → image-h35t92z5.js} +3 -3
  152. package/dist/chunks/{persistent-pty-h94zdhz8.js → image-h94zdhz8.js} +2 -2
  153. package/dist/chunks/{persistent-pty-hajywex7.js → image-hajywex7.js} +2 -2
  154. package/dist/chunks/{persistent-pty-hp6rpdnc.js → image-hp6rpdnc.js} +1 -1
  155. package/dist/chunks/{persistent-pty-nghgd2qz.js → image-htr3eq20.js} +7 -7
  156. package/dist/chunks/{persistent-pty-t5rzsd3w.js → image-hzp8ahqw.js} +5 -5
  157. package/dist/chunks/{persistent-pty-1gw1cv6r.js → image-j34s703g.js} +8 -8
  158. package/dist/chunks/{persistent-pty-4md9fmxa.js → image-janszmv4.js} +40 -40
  159. package/dist/chunks/{persistent-pty-1mjvrq4g.js → image-jv46v1d7.js} +6 -6
  160. package/dist/chunks/{persistent-pty-wjm57ety.js → image-k4p7ys6p.js} +2 -2
  161. package/dist/chunks/{persistent-pty-z7k26zb3.js → image-k8tf0mt1.js} +3 -3
  162. package/dist/chunks/{persistent-pty-tr3h36yr.js → image-ke2r4tg4.js} +4 -4
  163. package/dist/chunks/{persistent-pty-kg1345f7.js → image-kg1345f7.js} +1 -1
  164. package/dist/chunks/{persistent-pty-kgkfyy1j.js → image-kgkfyy1j.js} +2 -2
  165. package/dist/chunks/{persistent-pty-kp1t5rcy.js → image-kp1t5rcy.js} +1 -1
  166. package/dist/chunks/{persistent-pty-krsqcmnj.js → image-krsqcmnj.js} +1 -1
  167. package/dist/chunks/{persistent-pty-kt491qp2.js → image-kt491qp2.js} +3 -3
  168. package/dist/chunks/{persistent-pty-e8852y6g.js → image-kv45z39z.js} +11 -11
  169. package/dist/chunks/{persistent-pty-3yq2m7eq.js → image-m07hr0kj.js} +8 -8
  170. package/dist/chunks/{persistent-pty-awt2tm21.js → image-m0x1q5s4.js} +14 -14
  171. package/dist/chunks/{persistent-pty-nngpcyya.js → image-m2p7pk55.js} +4 -4
  172. package/dist/chunks/{persistent-pty-m55whf0h.js → image-m55whf0h.js} +2 -2
  173. package/dist/chunks/{persistent-pty-rbwmc1pf.js → image-mc7szt01.js} +5 -5
  174. package/dist/chunks/{persistent-pty-mf0hyk7z.js → image-mf0hyk7z.js} +1 -1
  175. package/dist/chunks/{persistent-pty-mnb85w6b.js → image-mnb85w6b.js} +2 -2
  176. package/dist/chunks/{persistent-pty-mxvw03gv.js → image-mxvw03gv.js} +1 -1
  177. package/dist/chunks/{persistent-pty-arsf0b3v.js → image-na3qwf01.js} +5 -5
  178. package/dist/chunks/{persistent-pty-x8cryhgj.js → image-nnhm94s6.js} +5 -5
  179. package/dist/chunks/{persistent-pty-nr76rjj3.js → image-nr76rjj3.js} +2 -2
  180. package/dist/chunks/{persistent-pty-gzq1m5d8.js → image-nxnabqnt.js} +4 -4
  181. package/dist/chunks/{persistent-pty-nzrjycs5.js → image-nzrjycs5.js} +1 -1
  182. package/dist/chunks/{persistent-pty-8d7f8x3r.js → image-pavf576v.js} +2 -2
  183. package/dist/chunks/{persistent-pty-pq4b4pqk.js → image-pq4b4pqk.js} +2 -2
  184. package/dist/chunks/{persistent-pty-mzkapc3f.js → image-q0ktq479.js} +3 -3
  185. package/dist/chunks/{persistent-pty-ntsgcs37.js → image-q1v4dkg3.js} +5 -5
  186. package/dist/chunks/{persistent-pty-q606pcse.js → image-q606pcse.js} +3 -3
  187. package/dist/chunks/{persistent-pty-q9b4qnv8.js → image-q9b4qnv8.js} +2 -2
  188. package/dist/chunks/{persistent-pty-keh8mzvj.js → image-qcpp6212.js} +3 -3
  189. package/dist/chunks/{persistent-pty-qe0d689s.js → image-qe0d689s.js} +2 -2
  190. package/dist/chunks/{persistent-pty-2zy6h53p.js → image-qq41rax2.js} +8 -8
  191. package/dist/chunks/{persistent-pty-thehea1s.js → image-qthy380g.js} +3 -3
  192. package/dist/chunks/{persistent-pty-e236t1rf.js → image-qzg8584d.js} +4 -4
  193. package/dist/chunks/{persistent-pty-r13w8t0w.js → image-r13w8t0w.js} +2 -2
  194. package/dist/chunks/{persistent-pty-r3k9abhd.js → image-r3k9abhd.js} +2 -2
  195. package/dist/chunks/{persistent-pty-0zgnb06m.js → image-r7jhf5tr.js} +2 -2
  196. package/dist/chunks/{persistent-pty-r9d3d23r.js → image-r9d3d23r.js} +1 -1
  197. package/dist/chunks/{persistent-pty-rahat93a.js → image-rahat93a.js} +1 -1
  198. package/dist/chunks/{persistent-pty-rameyvmv.js → image-rameyvmv.js} +1 -1
  199. package/dist/chunks/{persistent-pty-rbnp2c85.js → image-rbnp2c85.js} +3 -3
  200. package/dist/chunks/{persistent-pty-fd7r6j89.js → image-rwdkfmtk.js} +6 -6
  201. package/dist/chunks/{persistent-pty-s33fw6zm.js → image-s33fw6zm.js} +1 -1
  202. package/dist/chunks/{persistent-pty-cta6rrkd.js → image-sad9bgk7.js} +5 -5
  203. package/dist/chunks/{persistent-pty-ac1mjxg3.js → image-scs36c5c.js} +7 -7
  204. package/dist/chunks/{persistent-pty-16xg34f9.js → image-sgbtrv0k.js} +6 -6
  205. package/dist/chunks/{persistent-pty-6g9y9rk2.js → image-sj0h85nf.js} +11 -11
  206. package/dist/chunks/{persistent-pty-smpeg8c9.js → image-smpeg8c9.js} +2 -2
  207. package/dist/chunks/{persistent-pty-sw84ckhj.js → image-sw84ckhj.js} +1 -1
  208. package/dist/chunks/{persistent-pty-t0msbthe.js → image-t0msbthe.js} +3 -3
  209. package/dist/chunks/{persistent-pty-t14kykx1.js → image-t14kykx1.js} +1 -1
  210. package/dist/chunks/{persistent-pty-pxxgeymt.js → image-t5wc1efq.js} +6 -6
  211. package/dist/chunks/{persistent-pty-tcptxgyq.js → image-tcptxgyq.js} +1 -1
  212. package/dist/chunks/{persistent-pty-93fftb67.js → image-tczxwgj9.js} +9 -9
  213. package/dist/chunks/{persistent-pty-tgbb2ckq.js → image-tgbb2ckq.js} +2 -2
  214. package/dist/chunks/{persistent-pty-thstd87d.js → image-thstd87d.js} +1 -1
  215. package/dist/chunks/{persistent-pty-dhgmmyjm.js → image-tkk7h1wq.js} +5 -5
  216. package/dist/chunks/{persistent-pty-aeapwgdj.js → image-tpf20sdp.js} +9 -9
  217. package/dist/chunks/{persistent-pty-7c9ypzer.js → image-ttg6txgx.js} +23 -23
  218. package/dist/chunks/{persistent-pty-txw0c3p3.js → image-txw0c3p3.js} +2 -2
  219. package/dist/chunks/{persistent-pty-v2wshkax.js → image-v2wshkax.js} +1 -1
  220. package/dist/chunks/{persistent-pty-wr24dcv2.js → image-v3yfdn30.js} +4 -4
  221. package/dist/chunks/{persistent-pty-v80zsxnb.js → image-v80zsxnb.js} +1 -1
  222. package/dist/chunks/{persistent-pty-v972xay6.js → image-v972xay6.js} +1 -1
  223. package/dist/chunks/{persistent-pty-v9bfv94f.js → image-v9bfv94f.js} +1 -1
  224. package/dist/chunks/{persistent-pty-vcwr2vpf.js → image-vcwr2vpf.js} +1 -1
  225. package/dist/chunks/{persistent-pty-vqbmgfq1.js → image-vqbmgfq1.js} +3 -3
  226. package/dist/chunks/{persistent-pty-cf5kktd9.js → image-vx778pey.js} +4 -4
  227. package/dist/chunks/{persistent-pty-vz89hfgr.js → image-vz89hfgr.js} +1 -1
  228. package/dist/chunks/{persistent-pty-mwtba5rd.js → image-w6mnf4zw.js} +3 -3
  229. package/dist/chunks/{persistent-pty-j6wph3eb.js → image-wa4zx2mz.js} +3 -3
  230. package/dist/chunks/{persistent-pty-wbkt8qpj.js → image-wbkt8qpj.js} +1 -1
  231. package/dist/chunks/{persistent-pty-wd268jeg.js → image-wd268jeg.js} +1 -1
  232. package/dist/chunks/{persistent-pty-ja5mavxk.js → image-wdnj2v8h.js} +4 -4
  233. package/dist/chunks/{persistent-pty-8znhchna.js → image-wf63h199.js} +6 -6
  234. package/dist/chunks/{persistent-pty-whk0g8cz.js → image-whk0g8cz.js} +4 -4
  235. package/dist/chunks/{persistent-pty-mzdvtgsn.js → image-wm5p831z.js} +7 -7
  236. package/dist/chunks/{persistent-pty-wmxdh12w.js → image-wmxdh12w.js} +1 -1
  237. package/dist/chunks/{persistent-pty-wps8gh8n.js → image-wps8gh8n.js} +2 -2
  238. package/dist/chunks/{persistent-pty-w6dj4taz.js → image-wrhxpwb6.js} +11 -11
  239. package/dist/chunks/{persistent-pty-ntvyjk1e.js → image-wyafnjh5.js} +8 -8
  240. package/dist/chunks/{persistent-pty-53ktg071.js → image-x7xqg5pr.js} +30 -30
  241. package/dist/chunks/{persistent-pty-x89rah0x.js → image-x89rah0x.js} +1 -1
  242. package/dist/chunks/{persistent-pty-tyn9qgae.js → image-xb062x5w.js} +18 -18
  243. package/dist/chunks/{persistent-pty-xczfw7dq.js → image-xczfw7dq.js} +1 -1
  244. package/dist/chunks/{persistent-pty-xgv25zxy.js → image-xgv25zxy.js} +1 -1
  245. package/dist/chunks/{persistent-pty-xj0xhwdw.js → image-xj0xhwdw.js} +1 -1
  246. package/dist/chunks/{persistent-pty-50yj9am7.js → image-xk6wmhee.js} +3 -3
  247. package/dist/chunks/{persistent-pty-0qfz7ft6.js → image-xpfcyqf2.js} +5 -5
  248. package/dist/chunks/{persistent-pty-nf0yxc2f.js → image-xtr3kswt.js} +3 -3
  249. package/dist/chunks/{persistent-pty-8a4wpgdp.js → image-xwbcq578.js} +3 -3
  250. package/dist/chunks/{persistent-pty-xwftk1fd.js → image-xwftk1fd.js} +2 -2
  251. package/dist/chunks/{persistent-pty-xxpvz42q.js → image-xxpvz42q.js} +3 -3
  252. package/dist/chunks/{persistent-pty-y0x38cee.js → image-y0x38cee.js} +1 -1
  253. package/dist/chunks/{persistent-pty-y198y2ra.js → image-y198y2ra.js} +1 -1
  254. package/dist/chunks/{persistent-pty-ax43nnpc.js → image-y583a5xf.js} +4 -4
  255. package/dist/chunks/{persistent-pty-y67x6rf6.js → image-y67x6rf6.js} +1 -1
  256. package/dist/chunks/{persistent-pty-y980s7ka.js → image-y980s7ka.js} +3 -3
  257. package/dist/chunks/{persistent-pty-ybhfpy64.js → image-ybhfpy64.js} +2 -2
  258. package/dist/chunks/{persistent-pty-yf0knd5z.js → image-yf0knd5z.js} +2 -2
  259. package/dist/chunks/image-yzq8arma.js +187 -0
  260. package/dist/chunks/{persistent-pty-w4kvk903.js → image-z0n7aftt.js} +5 -5
  261. package/dist/chunks/{persistent-pty-cwtd0hw6.js → image-z7v42tvh.js} +8 -8
  262. package/dist/chunks/{persistent-pty-zbqqnp0n.js → image-zbqqnp0n.js} +1 -1
  263. package/dist/chunks/{persistent-pty-zdkg1k91.js → image-zdkg1k91.js} +1 -1
  264. package/dist/chunks/{persistent-pty-c1m3dzte.js → image-zfn64hz6.js} +6 -6
  265. package/dist/chunks/{persistent-pty-8bjq0q9d.js → image-zjf8s6qx.js} +58 -58
  266. package/dist/chunks/{persistent-pty-zxcy6vhn.js → image-zxcy6vhn.js} +1 -1
  267. package/dist/chunks/{persistent-pty-zxe9jjhn.js → image-zxe9jjhn.js} +2 -2
  268. package/dist/codemode/catalog.js +2 -2
  269. package/dist/codemode/instructions.js +4 -4
  270. package/dist/codemode/tool.js +3 -3
  271. package/dist/command.js +70 -70
  272. package/dist/config/markdown.js +2 -2
  273. package/dist/config/normalize.js +20 -20
  274. package/dist/config/plugin/agent.js +136 -136
  275. package/dist/config/plugin/command.js +118 -118
  276. package/dist/config/plugin/compaction.js +150 -150
  277. package/dist/config/plugin/entry-observer.js +114 -114
  278. package/dist/config/plugin/formatter.js +119 -119
  279. package/dist/config/plugin/image.js +131 -130
  280. package/dist/config/plugin/instruction.js +90 -90
  281. package/dist/config/plugin/location-watcher.js +117 -117
  282. package/dist/config/plugin/mcp.js +127 -127
  283. package/dist/config/plugin/policy.js +116 -116
  284. package/dist/config/plugin/provider.js +115 -115
  285. package/dist/config/plugin/reference.js +119 -119
  286. package/dist/config/plugin/shell.js +118 -118
  287. package/dist/config/plugin/skill-file.js +109 -109
  288. package/dist/config/plugin/skill.js +139 -139
  289. package/dist/config/plugin/snapshot.js +117 -117
  290. package/dist/config/plugin/source.js +114 -114
  291. package/dist/config/plugin/tool-output.js +119 -119
  292. package/dist/config/plugin/websearch.js +115 -115
  293. package/dist/config/variable.js +4 -4
  294. package/dist/config.js +113 -113
  295. package/dist/credential/sql.js +3 -3
  296. package/dist/credential.js +71 -71
  297. package/dist/database/database.js +65 -65
  298. package/dist/database/drizzle/effect-sqlite/driver.js +13 -13
  299. package/dist/database/drizzle/effect-sqlite/index.js +13 -13
  300. package/dist/database/drizzle/effect-sqlite/session.js +12 -12
  301. package/dist/database/drizzle/index.js +14 -14
  302. package/dist/database/drizzle/internal/drizzle-utils.js +2 -2
  303. package/dist/database/drizzle/sqlite-core/effect/count.js +2 -2
  304. package/dist/database/drizzle/sqlite-core/effect/db.js +10 -10
  305. package/dist/database/drizzle/sqlite-core/effect/delete.js +3 -3
  306. package/dist/database/drizzle/sqlite-core/effect/index.js +18 -18
  307. package/dist/database/drizzle/sqlite-core/effect/insert.js +3 -3
  308. package/dist/database/drizzle/sqlite-core/effect/query.js +2 -2
  309. package/dist/database/drizzle/sqlite-core/effect/raw.js +2 -2
  310. package/dist/database/drizzle/sqlite-core/effect/select.js +3 -3
  311. package/dist/database/drizzle/sqlite-core/effect/session.js +11 -11
  312. package/dist/database/drizzle/sqlite-core/effect/update.js +3 -3
  313. package/dist/database/drizzle.js +15 -15
  314. package/dist/database/migration/20260127222353_familiar_lady_ursula.js +2 -2
  315. package/dist/database/migration/20260211171708_add_project_commands.js +2 -2
  316. package/dist/database/migration/20260213144116_wakeful_the_professor.js +2 -2
  317. package/dist/database/migration/20260225215848_workspace.js +2 -2
  318. package/dist/database/migration/20260227213759_add_session_workspace_id.js +2 -2
  319. package/dist/database/migration/20260228203230_blue_harpoon.js +2 -2
  320. package/dist/database/migration/20260303231226_add_workspace_fields.js +2 -2
  321. package/dist/database/migration/20260309230000_move_org_to_state.js +2 -2
  322. package/dist/database/migration/20260312043431_session_message_cursor.js +2 -2
  323. package/dist/database/migration/20260323234822_events.js +2 -2
  324. package/dist/database/migration/20260410174513_workspace-name.js +2 -2
  325. package/dist/database/migration/20260413175956_chief_energizer.js +2 -2
  326. package/dist/database/migration/20260423070820_add_icon_url_override.js +2 -2
  327. package/dist/database/migration/20260427172553_slow_nightmare.js +2 -2
  328. package/dist/database/migration/20260428004200_add_session_path.js +2 -2
  329. package/dist/database/migration/20260501142318_next_venus.js +2 -2
  330. package/dist/database/migration/20260504145000_add_sync_owner.js +2 -2
  331. package/dist/database/migration/20260507164347_add_workspace_time.js +2 -2
  332. package/dist/database/migration/20260510033149_session_usage.js +2 -2
  333. package/dist/database/migration/20260511000411_data_migration_state.js +2 -2
  334. package/dist/database/migration/20260511173437_session-metadata.js +2 -2
  335. package/dist/database/migration/20260601010001_normalize_storage_paths.js +2 -2
  336. package/dist/database/migration/20260601202201_amazing_prowler.js +2 -2
  337. package/dist/database/migration/20260602002951_lowly_union_jack.js +2 -2
  338. package/dist/database/migration/20260602182828_add_project_directories.js +2 -2
  339. package/dist/database/migration/20260603001617_session_message_projection_indexes.js +2 -2
  340. package/dist/database/migration/20260603040000_session_message_projection_order.js +2 -2
  341. package/dist/database/migration/20260603141458_session_input_inbox.js +2 -2
  342. package/dist/database/migration/20260603160727_jittery_ezekiel_stane.js +2 -2
  343. package/dist/database/migration/20260604172448_event_sourced_session_input.js +2 -2
  344. package/dist/database/migration/20260605003541_add_session_context_snapshot.js +2 -2
  345. package/dist/database/migration/20260605042240_add_context_epoch_agent.js +2 -2
  346. package/dist/database/migration/20260611035744_credential.js +2 -2
  347. package/dist/database/migration/20260611192811_lush_chimera.js +2 -2
  348. package/dist/database/migration/20260612174303_project_dir_strategy.js +2 -2
  349. package/dist/database/migration/20260622142730_simplify_session_context_epoch.js +2 -2
  350. package/dist/database/migration/20260622170816_reset_v2_session_state.js +2 -2
  351. package/dist/database/migration/20260622202450_simplify_session_input.js +2 -2
  352. package/dist/database/migration/20260804233008_loose_psylocke.js +2 -2
  353. package/dist/database/migration/20260805200742_import_legacy_credentials.js +2 -2
  354. package/dist/database/migration/20260808023530_workspace_domain.js +2 -2
  355. package/dist/database/migration/20260811161259_execution_claim_attempts.js +2 -2
  356. package/dist/database/migration/20260812181746_session_inbox.js +2 -2
  357. package/dist/database/migration/20260812213948_worktree.js +2 -2
  358. package/dist/database/migration/20260819222447_session_viewed_state.js +2 -2
  359. package/dist/database/migration/20260823191254_nullable_workspace_binding.js +2 -2
  360. package/dist/database/migration.gen.js +48 -48
  361. package/dist/database/migration.js +50 -50
  362. package/dist/database/path.js +3 -3
  363. package/dist/database/schema.gen.js +2 -2
  364. package/dist/database/schema.sql.js +2 -2
  365. package/dist/database/sqlite.bun.js +2 -2
  366. package/dist/database/sqlite.js +2 -2
  367. package/dist/database/sqlite.node.js +2 -2
  368. package/dist/database/sqlite.workerd.js +2 -2
  369. package/dist/database/v1-migration.bun.js +93 -93
  370. package/dist/database/v1-migration.js +2 -2
  371. package/dist/database/v1-migration.noop.js +1 -1
  372. package/dist/effect/app-node-builder.js +329 -328
  373. package/dist/effect/app-node-platform.js +3 -3
  374. package/dist/effect/keyed-mutex.js +2 -2
  375. package/dist/effect/websocket-constructor.js +2 -2
  376. package/dist/environment/driver.js +1 -1
  377. package/dist/environment/environment.js +91 -91
  378. package/dist/environment/exec-defaults.js +3 -3
  379. package/dist/environment/files.js +2 -2
  380. package/dist/environment/index.js +93 -93
  381. package/dist/environment/local.js +3 -3
  382. package/dist/environment/memory.js +3 -3
  383. package/dist/environment/unavailable.js +1 -1
  384. package/dist/event/sql.js +2 -2
  385. package/dist/event-logger.js +68 -68
  386. package/dist/file-mutation.js +92 -92
  387. package/dist/file-retention.js +2 -2
  388. package/dist/file.js +2 -2
  389. package/dist/filesystem/fff.bun.js +2 -2
  390. package/dist/filesystem/fff.js +2 -2
  391. package/dist/filesystem/fff.node.js +2 -2
  392. package/dist/filesystem/fff.workerd.js +2 -2
  393. package/dist/filesystem/ignore.js +1 -1
  394. package/dist/filesystem/location-watcher-policy.js +3 -3
  395. package/dist/filesystem/location-watcher.js +305 -304
  396. package/dist/filesystem/protected.js +2 -2
  397. package/dist/filesystem/search.js +96 -96
  398. package/dist/filesystem/watcher-binding.js +2 -2
  399. package/dist/filesystem/watcher.js +4 -4
  400. package/dist/filesystem.js +99 -98
  401. package/dist/form.js +69 -69
  402. package/dist/formatter/builtins.js +3 -3
  403. package/dist/formatter.js +85 -85
  404. package/dist/generate.js +84 -84
  405. package/dist/git.js +5 -5
  406. package/dist/github-copilot/chat/convert-to-openai-compatible-chat-messages.js +2 -2
  407. package/dist/github-copilot/chat/get-response-metadata.js +2 -2
  408. package/dist/github-copilot/chat/map-openai-compatible-finish-reason.js +2 -2
  409. package/dist/github-copilot/chat/openai-compatible-chat-language-model.js +8 -8
  410. package/dist/github-copilot/chat/openai-compatible-chat-options.js +2 -2
  411. package/dist/github-copilot/chat/openai-compatible-prepare-tools.js +2 -2
  412. package/dist/github-copilot/copilot-provider.js +18 -18
  413. package/dist/github-copilot/models.js +4 -4
  414. package/dist/github-copilot/openai-compatible-error.js +2 -2
  415. package/dist/github-copilot/responses/convert-to-openai-responses-input.js +2 -2
  416. package/dist/github-copilot/responses/map-openai-responses-finish-reason.js +2 -2
  417. package/dist/github-copilot/responses/openai-error.js +2 -2
  418. package/dist/github-copilot/responses/openai-responses-language-model.js +11 -11
  419. package/dist/github-copilot/responses/openai-responses-prepare-tools.js +7 -7
  420. package/dist/github-copilot/responses/tool/code-interpreter.js +2 -2
  421. package/dist/github-copilot/responses/tool/file-search.js +2 -2
  422. package/dist/github-copilot/responses/tool/image-generation.js +2 -2
  423. package/dist/github-copilot/responses/tool/web-search-preview.js +2 -2
  424. package/dist/github-copilot/responses/tool/web-search.js +2 -2
  425. package/dist/id/id.js +2 -2
  426. package/dist/image/photon-wasm.bun.js +1 -1
  427. package/dist/image/photon-wasm.node.js +1 -1
  428. package/dist/image/photon-wasm.workerd.js +1 -1
  429. package/dist/image/photon.js +99 -98
  430. package/dist/image.js +99 -98
  431. package/dist/instruction-discovery.js +72 -72
  432. package/dist/instructions/builtins.js +86 -86
  433. package/dist/instructions/index.js +2 -2
  434. package/dist/integration/connection.js +2 -2
  435. package/dist/integration.js +75 -75
  436. package/dist/job.js +72 -72
  437. package/dist/kv/sql.js +3 -3
  438. package/dist/kv.js +68 -68
  439. package/dist/location-activity.js +85 -85
  440. package/dist/location-mutation.js +84 -84
  441. package/dist/location-service-map.js +84 -84
  442. package/dist/location-services.js +329 -328
  443. package/dist/location.js +83 -83
  444. package/dist/mcp/client.js +92 -92
  445. package/dist/mcp/index.js +98 -98
  446. package/dist/mcp/instructions.js +130 -129
  447. package/dist/mcp/oauth.js +2 -2
  448. package/dist/mcp/stdio.js +92 -92
  449. package/dist/mime.js +2 -2
  450. package/dist/model-resolver.js +81 -81
  451. package/dist/model.js +3 -3
  452. package/dist/models-dev.js +75 -75
  453. package/dist/oauth/page.js +2 -2
  454. package/dist/permission/saved.js +84 -84
  455. package/dist/permission/sql.js +6 -6
  456. package/dist/permission.js +106 -106
  457. package/dist/persistent-pty/binary.bun.js +2 -2
  458. package/dist/persistent-pty/binary.node.js +1 -1
  459. package/dist/persistent-pty/binary.workerd.js +1 -1
  460. package/dist/persistent-pty/daemon.js +2 -2
  461. package/dist/persistent-pty/index.js +73 -73
  462. package/dist/persistent-pty/pty-binding.js +2 -2
  463. package/dist/persistent-pty.js +73 -73
  464. package/dist/plugin/agent.js +107 -107
  465. package/dist/plugin/command.js +99 -99
  466. package/dist/plugin/hooks.js +3 -3
  467. package/dist/plugin/host.js +172 -171
  468. package/dist/plugin/internal.js +299 -298
  469. package/dist/plugin/mcp-codemode-exclusion.js +2 -2
  470. package/dist/plugin/models-dev.js +76 -76
  471. package/dist/plugin/module.js +3 -3
  472. package/dist/plugin/plan.js +107 -107
  473. package/dist/plugin/promise.js +2 -2
  474. package/dist/plugin/provider/alibaba.js +3 -3
  475. package/dist/plugin/provider/amazon-bedrock.js +3 -3
  476. package/dist/plugin/provider/anthropic.js +3 -3
  477. package/dist/plugin/provider/azure.js +123 -121
  478. package/dist/plugin/provider/cerebras.js +3 -3
  479. package/dist/plugin/provider/cloudflare-ai-gateway.js +122 -122
  480. package/dist/plugin/provider/cloudflare-workers-ai.js +122 -122
  481. package/dist/plugin/provider/cohere.js +3 -3
  482. package/dist/plugin/provider/configured.js +119 -119
  483. package/dist/plugin/provider/dynamic.js +2 -2
  484. package/dist/plugin/provider/factory.js +2 -2
  485. package/dist/plugin/provider/gateway.js +3 -3
  486. package/dist/plugin/provider/github-copilot.js +82 -82
  487. package/dist/plugin/provider/gitlab.js +4 -4
  488. package/dist/plugin/provider/google-vertex.js +3 -3
  489. package/dist/plugin/provider/kilo.js +3 -3
  490. package/dist/plugin/provider/llmgateway.js +77 -77
  491. package/dist/plugin/provider/lmstudio.js +114 -114
  492. package/dist/plugin/provider/mistral.js +3 -3
  493. package/dist/plugin/provider/nvidia.js +3 -3
  494. package/dist/plugin/provider/ollama.js +114 -114
  495. package/dist/plugin/provider/openai-compatible.js +2 -2
  496. package/dist/plugin/provider/openai.js +79 -79
  497. package/dist/plugin/provider/opencode.js +93 -93
  498. package/dist/plugin/provider/openrouter.js +4 -4
  499. package/dist/plugin/provider/perplexity.js +3 -3
  500. package/dist/plugin/provider/sap-ai-core.js +3 -3
  501. package/dist/plugin/provider/snowflake-cortex.js +3 -3
  502. package/dist/plugin/provider/venice.js +3 -3
  503. package/dist/plugin/provider/vercel.js +3 -3
  504. package/dist/plugin/provider/vllm.js +114 -114
  505. package/dist/plugin/provider/xai.js +78 -78
  506. package/dist/plugin/provider/zenmux.js +3 -3
  507. package/dist/plugin/provider.js +158 -157
  508. package/dist/plugin/runtime.js +160 -159
  509. package/dist/plugin/sdk.js +69 -69
  510. package/dist/plugin/skill.js +137 -137
  511. package/dist/plugin/source-directory.js +2 -2
  512. package/dist/plugin/supervisor-service.js +2 -2
  513. package/dist/plugin/supervisor.js +304 -303
  514. package/dist/plugin/system-prompt.js +2 -2
  515. package/dist/plugin/variant.js +4 -4
  516. package/dist/plugin/vcs/git.js +85 -85
  517. package/dist/plugin/vcs/hg.js +85 -85
  518. package/dist/plugin/warming.js +115 -115
  519. package/dist/plugin/websearch/exa.js +4 -4
  520. package/dist/plugin/websearch/firecrawl.js +5 -5
  521. package/dist/plugin/websearch/index.js +9 -9
  522. package/dist/plugin/websearch/mcp.js +3 -3
  523. package/dist/plugin/websearch/parallel.js +5 -5
  524. package/dist/plugin/websearch/tavily.js +3 -3
  525. package/dist/plugin.js +173 -172
  526. package/dist/project/markers.js +74 -74
  527. package/dist/project/schema.js +3 -3
  528. package/dist/project/sql.js +5 -5
  529. package/dist/project.js +82 -82
  530. package/dist/provider.js +2 -2
  531. package/dist/pty/protocol.js +1 -1
  532. package/dist/pty/pty.bun.js +1 -1
  533. package/dist/pty/pty.node.js +1 -1
  534. package/dist/pty/pty.workerd.js +1 -1
  535. package/dist/pty/schema.js +2 -2
  536. package/dist/pty/ticket.js +70 -70
  537. package/dist/pty.js +89 -89
  538. package/dist/reference/instructions.js +77 -77
  539. package/dist/reference.js +75 -75
  540. package/dist/repository-cache.js +7 -7
  541. package/dist/repository.js +2 -2
  542. package/dist/ripgrep/binary.js +3 -3
  543. package/dist/ripgrep.js +94 -94
  544. package/dist/schema.js +2 -2
  545. package/dist/session/compaction.js +122 -122
  546. package/dist/session/context.js +314 -313
  547. package/dist/session/environment.js +3 -3
  548. package/dist/session/error.js +4 -4
  549. package/dist/session/event.js +2 -2
  550. package/dist/session/execution/restart.js +158 -157
  551. package/dist/session/execution.js +126 -126
  552. package/dist/session/generate-node.js +315 -314
  553. package/dist/session/generate.js +2 -2
  554. package/dist/session/history.js +94 -94
  555. package/dist/session/inbox.js +91 -91
  556. package/dist/session/info.js +92 -92
  557. package/dist/session/instruction-entry.js +90 -90
  558. package/dist/session/instruction-state.js +91 -91
  559. package/dist/session/instructions.js +102 -102
  560. package/dist/session/message-updater.js +4 -4
  561. package/dist/session/message.js +2 -2
  562. package/dist/session/model-request.js +140 -139
  563. package/dist/session/model-transport.js +5 -5
  564. package/dist/session/projector.js +101 -101
  565. package/dist/session/prompt-cache-diagnostics.js +2 -2
  566. package/dist/session/revert.js +94 -94
  567. package/dist/session/run-coordinator.js +2 -2
  568. package/dist/session/runner/index.js +84 -84
  569. package/dist/session/runner/llm.js +321 -320
  570. package/dist/session/runner/max-steps.js +2 -2
  571. package/dist/session/runner/model.js +83 -83
  572. package/dist/session/runner/publish-llm-event.js +4 -4
  573. package/dist/session/runner/retry.js +72 -72
  574. package/dist/session/runner/step.js +149 -148
  575. package/dist/session/runner/to-llm-message.js +2 -2
  576. package/dist/session/schema.js +2 -2
  577. package/dist/session/sql.js +87 -87
  578. package/dist/session/stats.js +87 -87
  579. package/dist/session/store.js +101 -101
  580. package/dist/session/system-prompt.js +2 -2
  581. package/dist/session/title.js +315 -314
  582. package/dist/session/to-session-error.js +117 -117
  583. package/dist/session/transfer.js +160 -159
  584. package/dist/session/usage.js +2 -2
  585. package/dist/session.js +158 -157
  586. package/dist/shell/parse.js +6 -6
  587. package/dist/shell/parser-wasm.bun.js +1 -1
  588. package/dist/shell/parser-wasm.node.js +1 -1
  589. package/dist/shell/parser-wasm.workerd.js +1 -1
  590. package/dist/shell/scan.js +1 -1
  591. package/dist/shell/select.js +4 -4
  592. package/dist/shell.js +99 -99
  593. package/dist/skill/discovery.js +3 -3
  594. package/dist/skill/instructions.js +108 -108
  595. package/dist/skill.js +107 -107
  596. package/dist/snapshot.js +85 -85
  597. package/dist/state.js +2 -2
  598. package/dist/tool/html-markdown.js +2 -2
  599. package/dist/tool/http-body.js +2 -2
  600. package/dist/tool/mcp.js +129 -128
  601. package/dist/tool/plugin/edit.js +116 -116
  602. package/dist/tool/plugin/file-diff.js +2 -2
  603. package/dist/tool/plugin/glob.js +119 -118
  604. package/dist/tool/plugin/grep.js +119 -118
  605. package/dist/tool/plugin/patch.js +116 -116
  606. package/dist/tool/plugin/question.js +108 -108
  607. package/dist/tool/plugin/read.js +122 -121
  608. package/dist/tool/plugin/shell.js +188 -187
  609. package/dist/tool/plugin/skill.js +108 -108
  610. package/dist/tool/plugin/subagent.js +185 -184
  611. package/dist/tool/plugin/webfetch.js +109 -109
  612. package/dist/tool/plugin/websearch.js +111 -111
  613. package/dist/tool/plugin/write.js +116 -116
  614. package/dist/tool/read-filesystem.js +99 -98
  615. package/dist/tool/runtime.js +2 -2
  616. package/dist/tool-output.js +5 -5
  617. package/dist/tool.js +122 -121
  618. package/dist/types/filesystem/search.d.ts +1 -1
  619. package/dist/types/github-copilot/responses/openai-error.d.ts +1 -1
  620. package/dist/types/plugin/provider/azure.d.ts +3 -1
  621. package/dist/util/array.js +1 -1
  622. package/dist/util/error.js +2 -2
  623. package/dist/util/identifier.js +1 -1
  624. package/dist/util/iife.js +2 -2
  625. package/dist/util/lazy.js +2 -2
  626. package/dist/util/process-lock-ffi.bun.js +1 -1
  627. package/dist/util/process-lock-ffi.node.js +1 -1
  628. package/dist/util/process-lock-ffi.workerd.js +1 -1
  629. package/dist/util/process-lock.js +1 -1
  630. package/dist/util/slug.js +2 -2
  631. package/dist/util/token.js +2 -2
  632. package/dist/util/which.js +2 -2
  633. package/dist/util/wildcard.js +2 -2
  634. package/dist/v1/config/agent.js +4 -4
  635. package/dist/v1/config/attachment.js +3 -3
  636. package/dist/v1/config/command.js +2 -2
  637. package/dist/v1/config/config.js +15 -15
  638. package/dist/v1/config/error.js +3 -3
  639. package/dist/v1/config/formatter.js +2 -2
  640. package/dist/v1/config/layout.js +2 -2
  641. package/dist/v1/config/lsp.js +2 -2
  642. package/dist/v1/config/mcp.js +3 -3
  643. package/dist/v1/config/migrate.js +19 -19
  644. package/dist/v1/config/permission.js +2 -2
  645. package/dist/v1/config/plugin.js +2 -2
  646. package/dist/v1/config/provider-options.js +2 -2
  647. package/dist/v1/config/provider.js +3 -3
  648. package/dist/v1/config/server.js +3 -3
  649. package/dist/v1/config/skills.js +2 -2
  650. package/dist/v1/permission.js +2 -2
  651. package/dist/vcs/patch.js +2 -2
  652. package/dist/vcs.js +86 -86
  653. package/dist/websearch.js +73 -73
  654. package/dist/wellknown/plugin.js +73 -73
  655. package/dist/wellknown.js +72 -72
  656. package/dist/workspace/driver.js +2 -2
  657. package/dist/workspace/sql.js +2 -2
  658. package/dist/workspace.js +69 -69
  659. package/dist/worktree/directory.js +3 -3
  660. package/dist/worktree/git.js +7 -7
  661. package/dist/worktree/sql.js +6 -6
  662. package/dist/worktree.js +87 -87
  663. package/package.json +8 -8
  664. package/dist/chunks/persistent-pty-4n4jgf0m.js +0 -119
  665. package/dist/chunks/persistent-pty-qasf1q66.js +0 -300
  666. /package/dist/chunks/{persistent-pty-0cgt0xh2.js → image-0cgt0xh2.js} +0 -0
  667. /package/dist/chunks/{persistent-pty-0f48qthw.js → image-0f48qthw.js} +0 -0
  668. /package/dist/chunks/{persistent-pty-0zz82cjq.js → image-0zz82cjq.js} +0 -0
  669. /package/dist/chunks/{persistent-pty-1fb7bmpf.js → image-1fb7bmpf.js} +0 -0
  670. /package/dist/chunks/{persistent-pty-1wcz8fvj.js → image-1wcz8fvj.js} +0 -0
  671. /package/dist/chunks/{persistent-pty-29n7vfk2.js → image-29n7vfk2.js} +0 -0
  672. /package/dist/chunks/{persistent-pty-2qdx6zz3.js → image-2qdx6zz3.js} +0 -0
  673. /package/dist/chunks/{persistent-pty-2xb0r1c6.js → image-2xb0r1c6.js} +0 -0
  674. /package/dist/chunks/{persistent-pty-39ktntah.js → image-39ktntah.js} +0 -0
  675. /package/dist/chunks/{persistent-pty-3g3rpp2x.js → image-3g3rpp2x.js} +0 -0
  676. /package/dist/chunks/{persistent-pty-3p1bsa7m.js → image-3p1bsa7m.js} +0 -0
  677. /package/dist/chunks/{persistent-pty-3q6gbwmd.js → image-3q6gbwmd.js} +0 -0
  678. /package/dist/chunks/{persistent-pty-3w3ybtfd.js → image-3w3ybtfd.js} +0 -0
  679. /package/dist/chunks/{persistent-pty-47ty4mvs.js → image-47ty4mvs.js} +0 -0
  680. /package/dist/chunks/{persistent-pty-4b2tz2m9.js → image-4b2tz2m9.js} +0 -0
  681. /package/dist/chunks/{persistent-pty-5a5ch9ts.js → image-5a5ch9ts.js} +0 -0
  682. /package/dist/chunks/{persistent-pty-5va1yh78.js → image-5va1yh78.js} +0 -0
  683. /package/dist/chunks/{persistent-pty-61ek4hj9.js → image-61ek4hj9.js} +0 -0
  684. /package/dist/chunks/{persistent-pty-69qrqpw0.js → image-69qrqpw0.js} +0 -0
  685. /package/dist/chunks/{persistent-pty-6zqxzw0a.js → image-6zqxzw0a.js} +0 -0
  686. /package/dist/chunks/{persistent-pty-7n9qwqk4.js → image-7n9qwqk4.js} +0 -0
  687. /package/dist/chunks/{persistent-pty-8nn8kqcn.js → image-8nn8kqcn.js} +0 -0
  688. /package/dist/chunks/{persistent-pty-8rpfd2h6.js → image-8rpfd2h6.js} +0 -0
  689. /package/dist/chunks/{persistent-pty-8sj3ajy5.js → image-8sj3ajy5.js} +0 -0
  690. /package/dist/chunks/{persistent-pty-8w9tzfz1.js → image-8w9tzfz1.js} +0 -0
  691. /package/dist/chunks/{persistent-pty-906y0b6d.js → image-906y0b6d.js} +0 -0
  692. /package/dist/chunks/{persistent-pty-9dct5xhx.js → image-9dct5xhx.js} +0 -0
  693. /package/dist/chunks/{persistent-pty-9sdtsapf.js → image-9sdtsapf.js} +0 -0
  694. /package/dist/chunks/{persistent-pty-a02svayp.js → image-a02svayp.js} +0 -0
  695. /package/dist/chunks/{persistent-pty-a83yvq99.js → image-a83yvq99.js} +0 -0
  696. /package/dist/chunks/{persistent-pty-a9vdgkgd.js → image-a9vdgkgd.js} +0 -0
  697. /package/dist/chunks/{persistent-pty-ayevdmef.js → image-ayevdmef.js} +0 -0
  698. /package/dist/chunks/{persistent-pty-b02txbh8.js → image-b02txbh8.js} +0 -0
  699. /package/dist/chunks/{persistent-pty-bbqs2y60.js → image-bbqs2y60.js} +0 -0
  700. /package/dist/chunks/{persistent-pty-bjwj8hwv.js → image-bjwj8hwv.js} +0 -0
  701. /package/dist/chunks/{persistent-pty-brsh5f65.js → image-brsh5f65.js} +0 -0
  702. /package/dist/chunks/{persistent-pty-bxdhjb3y.js → image-bxdhjb3y.js} +0 -0
  703. /package/dist/chunks/{persistent-pty-c77ad0vh.js → image-c77ad0vh.js} +0 -0
  704. /package/dist/chunks/{persistent-pty-cm67rqy2.js → image-cm67rqy2.js} +0 -0
  705. /package/dist/chunks/{persistent-pty-df3v2q6j.js → image-df3v2q6j.js} +0 -0
  706. /package/dist/chunks/{persistent-pty-dhcq6c44.js → image-dhcq6c44.js} +0 -0
  707. /package/dist/chunks/{persistent-pty-dht5baf0.js → image-dht5baf0.js} +0 -0
  708. /package/dist/chunks/{persistent-pty-dkmkay92.js → image-dkmkay92.js} +0 -0
  709. /package/dist/chunks/{persistent-pty-drean1vx.js → image-drean1vx.js} +0 -0
  710. /package/dist/chunks/{persistent-pty-ehj9csmv.js → image-ehj9csmv.js} +0 -0
  711. /package/dist/chunks/{persistent-pty-em6xpscd.js → image-em6xpscd.js} +0 -0
  712. /package/dist/chunks/{persistent-pty-emmqknsm.js → image-emmqknsm.js} +0 -0
  713. /package/dist/chunks/{persistent-pty-ezs3tagn.js → image-ezs3tagn.js} +0 -0
  714. /package/dist/chunks/{persistent-pty-f14r7hfz.js → image-f14r7hfz.js} +0 -0
  715. /package/dist/chunks/{persistent-pty-f4cp4g4a.js → image-f4cp4g4a.js} +0 -0
  716. /package/dist/chunks/{persistent-pty-faypg4r1.js → image-faypg4r1.js} +0 -0
  717. /package/dist/chunks/{persistent-pty-fgbfdq62.js → image-fgbfdq62.js} +0 -0
  718. /package/dist/chunks/{persistent-pty-gd5xeqc2.js → image-gd5xeqc2.js} +0 -0
  719. /package/dist/chunks/{persistent-pty-ghm4673n.js → image-ghm4673n.js} +0 -0
  720. /package/dist/chunks/{persistent-pty-ghwjy7my.js → image-ghwjy7my.js} +0 -0
  721. /package/dist/chunks/{persistent-pty-gy500k2r.js → image-gy500k2r.js} +0 -0
  722. /package/dist/chunks/{persistent-pty-hzeg9cfr.js → image-hzeg9cfr.js} +0 -0
  723. /package/dist/chunks/{persistent-pty-j07kk359.js → image-j07kk359.js} +0 -0
  724. /package/dist/chunks/{persistent-pty-jqms80b0.js → image-jqms80b0.js} +0 -0
  725. /package/dist/chunks/{persistent-pty-jve7t217.js → image-jve7t217.js} +0 -0
  726. /package/dist/chunks/{persistent-pty-k3e42drn.js → image-k3e42drn.js} +0 -0
  727. /package/dist/chunks/{persistent-pty-k8b45nas.js → image-k8b45nas.js} +0 -0
  728. /package/dist/chunks/{persistent-pty-kcacmy5c.js → image-kcacmy5c.js} +0 -0
  729. /package/dist/chunks/{persistent-pty-kpdbz7gn.js → image-kpdbz7gn.js} +0 -0
  730. /package/dist/chunks/{persistent-pty-kxy11nzk.js → image-kxy11nzk.js} +0 -0
  731. /package/dist/chunks/{persistent-pty-kyyqvx4s.js → image-kyyqvx4s.js} +0 -0
  732. /package/dist/chunks/{persistent-pty-m8cbvarh.js → image-m8cbvarh.js} +0 -0
  733. /package/dist/chunks/{persistent-pty-ma60vzgv.js → image-ma60vzgv.js} +0 -0
  734. /package/dist/chunks/{persistent-pty-n3m50c2t.js → image-n3m50c2t.js} +0 -0
  735. /package/dist/chunks/{persistent-pty-nkm1m8dz.js → image-nkm1m8dz.js} +0 -0
  736. /package/dist/chunks/{persistent-pty-nsc0c3zb.js → image-nsc0c3zb.js} +0 -0
  737. /package/dist/chunks/{persistent-pty-qaarhjrp.js → image-qaarhjrp.js} +0 -0
  738. /package/dist/chunks/{persistent-pty-qc167nrn.js → image-qc167nrn.js} +0 -0
  739. /package/dist/chunks/{persistent-pty-qp95y4jb.js → image-qp95y4jb.js} +0 -0
  740. /package/dist/chunks/{persistent-pty-r8f4w671.js → image-r8f4w671.js} +0 -0
  741. /package/dist/chunks/{persistent-pty-rdfev9jy.js → image-rdfev9jy.js} +0 -0
  742. /package/dist/chunks/{persistent-pty-rvfvac9x.js → image-rvfvac9x.js} +0 -0
  743. /package/dist/chunks/{persistent-pty-s7whb9gt.js → image-s7whb9gt.js} +0 -0
  744. /package/dist/chunks/{persistent-pty-se76j685.js → image-se76j685.js} +0 -0
  745. /package/dist/chunks/{persistent-pty-sem2g21k.js → image-sem2g21k.js} +0 -0
  746. /package/dist/chunks/{persistent-pty-sp575ygv.js → image-sp575ygv.js} +0 -0
  747. /package/dist/chunks/{persistent-pty-tmb1f636.js → image-tmb1f636.js} +0 -0
  748. /package/dist/chunks/{persistent-pty-ttxf0gsy.js → image-ttxf0gsy.js} +0 -0
  749. /package/dist/chunks/{persistent-pty-tvmhrvfj.js → image-tvmhrvfj.js} +0 -0
  750. /package/dist/chunks/{persistent-pty-v2adqbbe.js → image-v2adqbbe.js} +0 -0
  751. /package/dist/chunks/{persistent-pty-wj4sxzqa.js → image-wj4sxzqa.js} +0 -0
  752. /package/dist/chunks/{persistent-pty-wwntjmk1.js → image-wwntjmk1.js} +0 -0
  753. /package/dist/chunks/{persistent-pty-wyqjaaa5.js → image-wyqjaaa5.js} +0 -0
  754. /package/dist/chunks/{persistent-pty-x4q807cx.js → image-x4q807cx.js} +0 -0
  755. /package/dist/chunks/{persistent-pty-xt0068v8.js → image-xt0068v8.js} +0 -0
  756. /package/dist/chunks/{persistent-pty-yrqrg4vp.js → image-yrqrg4vp.js} +0 -0
  757. /package/dist/chunks/{persistent-pty-z47nswr2.js → image-z47nswr2.js} +0 -0
  758. /package/dist/chunks/{persistent-pty-zsf8rs93.js → image-zsf8rs93.js} +0 -0
@@ -0,0 +1,304 @@
1
+ import {
2
+ iife
3
+ } from "./image-ehj9csmv.js";
4
+ import {
5
+ configuredSettings
6
+ } from "./image-na3qwf01.js";
7
+ import {
8
+ exports_app
9
+ } from "./image-50jxp3hw.js";
10
+ import {
11
+ exports_integration
12
+ } from "./image-69qrwdtn.js";
13
+ import {
14
+ exports_model
15
+ } from "./image-r13w8t0w.js";
16
+ import {
17
+ exports_credential
18
+ } from "./image-cejdbwa1.js";
19
+ import {
20
+ exports_provider
21
+ } from "./image-krsqcmnj.js";
22
+ import {
23
+ which
24
+ } from "./image-k3e42drn.js";
25
+ import {
26
+ exports_bus
27
+ } from "./image-4q25xkk6.js";
28
+ import {
29
+ __require
30
+ } from "./image-rvfvac9x.js";
31
+
32
+ // src/plugin/provider/azure.ts
33
+ import { readFile } from "node:fs/promises";
34
+ import { homedir } from "node:os";
35
+ import { join } from "node:path";
36
+ import { Clock, Effect, Schema, Semaphore, Stream } from "effect";
37
+ import { ChildProcess } from "effect/unstable/process";
38
+ import { define } from "@opencode-ai/plugin/effect/plugin";
39
+ import { Form } from "@opencode-ai/schema/form";
40
+ import { AppProcess } from "@opencode-ai/util/process";
41
+ var cognitiveScope = "https://cognitiveservices.azure.com/.default";
42
+ var foundryScope = "https://ai.azure.com/.default";
43
+ var methodID = exports_integration.MethodID.make("azure-cli");
44
+ var decodeJSON = Schema.decodeUnknownEffect(Schema.fromJsonString(Schema.Unknown));
45
+ var decodeProfile = Schema.decodeUnknownEffect(Schema.fromJsonString(Schema.Struct({ subscriptions: Schema.Array(Schema.Unknown) })));
46
+ var decodeToken = Schema.decodeUnknownEffect(Schema.Struct({
47
+ accessToken: Schema.NonEmptyString,
48
+ expires_on: Schema.optional(Schema.Number),
49
+ expiresOn: Schema.optional(Schema.NonEmptyString)
50
+ }));
51
+ var decodeAccounts = Schema.decodeUnknownEffect(Schema.Array(Schema.Struct({ name: Schema.NonEmptyString, resourceGroup: Schema.NonEmptyString })));
52
+ var Deployments = Schema.Array(Schema.Struct({
53
+ name: Schema.NonEmptyString,
54
+ properties: Schema.Struct({
55
+ model: Schema.Struct({ name: Schema.NonEmptyString }),
56
+ provisioningState: Schema.NonEmptyString
57
+ })
58
+ }));
59
+ var decodeDeployments = Schema.decodeUnknownEffect(Deployments);
60
+ function selectLanguage(sdk, modelID, useChat) {
61
+ if (useChat && sdk.chat)
62
+ return sdk.chat(modelID);
63
+ if (sdk.responses)
64
+ return sdk.responses(modelID);
65
+ if (sdk.messages)
66
+ return sdk.messages(modelID);
67
+ if (sdk.chat)
68
+ return sdk.chat(modelID);
69
+ return sdk.languageModel(modelID);
70
+ }
71
+ var AzurePlugin = define({
72
+ id: "opencode.provider.azure",
73
+ effect: Effect.fn(function* (ctx) {
74
+ const configured = yield* configuredSettings(exports_provider.ID.azure);
75
+ const processes = yield* AppProcess.Service;
76
+ const bus = yield* exports_bus.Service;
77
+ const tokens = new Map;
78
+ const loading = Semaphore.makeUnsafe(1);
79
+ const loaded = {};
80
+ const command = (args) => processes.run(ChildProcess.make("az", args, { extendEnv: true, stdin: "ignore" }), { timeout: "10 seconds" }).pipe(Effect.flatMap(AppProcess.requireSuccess), Effect.flatMap((result) => decodeJSON(result.stdout.toString("utf8"))));
81
+ const token = Effect.fn("AzurePlugin.token")(function* (scope) {
82
+ const now = yield* Clock.currentTimeMillis;
83
+ const cached = tokens.get(scope);
84
+ if (cached && cached.expires - now > 5 * 60000)
85
+ return cached;
86
+ const result = yield* command(["account", "get-access-token", "--scope", scope, "--output", "json"]).pipe(Effect.flatMap(decodeToken));
87
+ const expires = result.expires_on !== undefined ? result.expires_on * 1000 : Date.parse(result.expiresOn ?? "");
88
+ if (!Number.isFinite(expires))
89
+ return yield* Effect.fail(new Error("Azure CLI returned an invalid token expiration"));
90
+ const refreshed = { access: result.accessToken, expires };
91
+ tokens.set(scope, refreshed);
92
+ return refreshed;
93
+ });
94
+ const available = Boolean(which("az"));
95
+ const signedIn = available ? yield* Effect.tryPromise(() => readFile(join(process.env.AZURE_CONFIG_DIR ?? join(homedir(), ".azure"), "azureProfile.json"), "utf8")).pipe(Effect.flatMap((text) => decodeProfile(text.replace(/^\uFEFF/, ""))), Effect.map((profile) => profile.subscriptions.length > 0), Effect.orElseSucceed(() => false)) : false;
96
+ const accounts = !resolveResourceName(configured) && typeof configured?.baseURL !== "string" && !process.env.AZURE_RESOURCE_GROUP && signedIn ? yield* command(["cognitiveservices", "account", "list", "--output", "json", "--only-show-errors"]).pipe(Effect.flatMap(decodeAccounts), Effect.orElseSucceed(() => [])) : [];
97
+ const form = (select = false) => iife(() => {
98
+ if (resolveResourceName(configured) || typeof configured?.baseURL === "string")
99
+ return;
100
+ return Form.Fields.make([
101
+ {
102
+ type: "string",
103
+ key: "resourceName",
104
+ title: "Enter Azure Resource Name",
105
+ placeholder: "e.g. my-models",
106
+ required: true,
107
+ ...select && accounts.length > 0 ? {
108
+ options: accounts.map((account) => ({
109
+ value: account.name,
110
+ label: account.name,
111
+ description: account.resourceGroup
112
+ })),
113
+ custom: true
114
+ } : {}
115
+ }
116
+ ]);
117
+ });
118
+ yield* ctx.integration.transform((draft) => {
119
+ draft.method.update({
120
+ integrationID: exports_provider.ID.azure,
121
+ method: { type: "key", label: "API key", form: form() }
122
+ });
123
+ if (!available)
124
+ return;
125
+ draft.method.update({
126
+ integrationID: exports_provider.ID.azure,
127
+ method: {
128
+ id: methodID,
129
+ type: "oauth",
130
+ label: "Microsoft Entra ID (Azure CLI)",
131
+ form: form(true)
132
+ },
133
+ authorize: (answer) => Effect.succeed({
134
+ mode: "auto",
135
+ url: "",
136
+ instructions: "Sign in with `az login` before continuing.",
137
+ callback: Effect.gen(function* () {
138
+ const resourceName = typeof answer.resourceName === "string" ? answer.resourceName : resolveResourceName(configured);
139
+ if (!resourceName)
140
+ return yield* Effect.fail(new Error("Azure resource name is required"));
141
+ const current = yield* token(cognitiveScope);
142
+ loaded.resource = resourceName;
143
+ loaded.deployments = yield* discover(resourceName);
144
+ yield* ctx.catalog.reload();
145
+ return exports_credential.OAuth.make({
146
+ type: "oauth",
147
+ methodID,
148
+ access: current.access,
149
+ refresh: "azure-cli",
150
+ expires: current.expires,
151
+ metadata: { resourceName }
152
+ });
153
+ })
154
+ }),
155
+ refresh: (credential) => token(cognitiveScope).pipe(Effect.map((current) => exports_credential.OAuth.make({ ...credential, access: current.access, expires: current.expires })))
156
+ });
157
+ });
158
+ const discover = Effect.fn("AzurePlugin.discover")(function* (resource) {
159
+ return yield* Effect.gen(function* () {
160
+ const group = process.env.AZURE_RESOURCE_GROUP;
161
+ const account = group ? { name: resource, resourceGroup: group } : (accounts.length > 0 ? accounts : yield* command(["cognitiveservices", "account", "list", "--output", "json", "--only-show-errors"]).pipe(Effect.flatMap(decodeAccounts))).find((item) => item.name.toLowerCase() === resource.toLowerCase());
162
+ if (!account)
163
+ return yield* Effect.fail(new Error(`Azure resource "${resource}" was not found in the active subscription`));
164
+ return yield* command([
165
+ "cognitiveservices",
166
+ "account",
167
+ "deployment",
168
+ "list",
169
+ "--name",
170
+ account.name,
171
+ "--resource-group",
172
+ account.resourceGroup,
173
+ "--output",
174
+ "json",
175
+ "--only-show-errors"
176
+ ]).pipe(Effect.flatMap(decodeDeployments));
177
+ }).pipe(Effect.catch((error) => Effect.logWarning("Azure model discovery failed", {
178
+ resource,
179
+ error: error instanceof Error ? error.message : String(error)
180
+ }).pipe(Effect.as(undefined))));
181
+ });
182
+ const load = Effect.fn("AzurePlugin.load")(function* () {
183
+ const connection = yield* ctx.integration.connection.active(exports_provider.ID.azure);
184
+ const credential = connection ? yield* ctx.integration.connection.resolve(connection).pipe(Effect.orElseSucceed(() => {
185
+ return;
186
+ })) : undefined;
187
+ if (credential?.type !== "oauth" || credential.methodID !== methodID) {
188
+ loaded.resource = undefined;
189
+ loaded.deployments = undefined;
190
+ return;
191
+ }
192
+ const resource = typeof credential.metadata?.resourceName === "string" ? credential.metadata.resourceName : undefined;
193
+ loaded.resource = resource;
194
+ loaded.deployments = resource ? yield* discover(resource) : undefined;
195
+ });
196
+ yield* load();
197
+ yield* ctx.catalog.transform((evt) => {
198
+ for (const item of evt.provider.list()) {
199
+ if (item.provider.id !== exports_provider.ID.azure && exports_provider.packageName(item.provider.package) !== "@ai-sdk/azure")
200
+ continue;
201
+ const resourceName = resolveResourceName(item.provider.settings, loaded.resource);
202
+ if (resourceName)
203
+ evt.provider.update(item.provider.id, (provider) => {
204
+ provider.settings = {
205
+ ...provider.settings,
206
+ resourceName,
207
+ ...typeof provider.settings?.baseURL === "string" ? { baseURL: expandResourceName(provider.settings.baseURL, resourceName) } : {}
208
+ };
209
+ });
210
+ if (item.provider.id === exports_provider.ID.azure && loaded.deployments) {
211
+ const existing = Array.from(item.models.values());
212
+ const found = new Map;
213
+ loaded.deployments.forEach((deployment) => {
214
+ if (deployment.properties.provisioningState !== "Succeeded")
215
+ return;
216
+ const model = existing.find((model2) => model2.id.toLowerCase() === deployment.properties.model.name.toLowerCase());
217
+ if (!model)
218
+ return;
219
+ const id = found.has(model.id) ? exports_model.ID.make(deployment.name) : model.id;
220
+ found.set(id, {
221
+ ...model,
222
+ id,
223
+ name: id === model.id ? model.name : `${model.name} (${deployment.name})`,
224
+ modelID: exports_model.ID.make(deployment.name)
225
+ });
226
+ });
227
+ for (const id of Array.from(item.models.keys())) {
228
+ if (!found.has(exports_model.ID.make(id)))
229
+ evt.model.remove(item.provider.id, id);
230
+ }
231
+ for (const [id, model] of found) {
232
+ evt.model.update(item.provider.id, id, (draft) => Object.assign(draft, structuredClone(model)));
233
+ }
234
+ }
235
+ for (const model of item.models.values()) {
236
+ evt.model.update(item.provider.id, model.id, (draft) => {
237
+ if (resourceName && typeof draft.settings?.baseURL === "string")
238
+ draft.settings.baseURL = expandResourceName(draft.settings.baseURL, resolveResourceName(draft.settings, resourceName) ?? resourceName);
239
+ if (responsesWebSocketCapable(item.provider, draft))
240
+ draft.capabilities.responsesWebsockets = true;
241
+ });
242
+ }
243
+ }
244
+ });
245
+ const reload = () => loading.withPermit(load().pipe(Effect.andThen(ctx.catalog.reload())));
246
+ yield* bus.subscribe(exports_credential.Event.Switched).pipe(Stream.filter((event) => event.data.integrationID === exports_integration.ID.make("azure")), Stream.runForEach(reload), Effect.forkScoped({ startImmediately: true }));
247
+ yield* ctx.session.hook("http.request", (evt) => Effect.gen(function* () {
248
+ if (evt.model.providerID !== exports_provider.ID.azure)
249
+ return;
250
+ const connection = yield* ctx.integration.connection.active(exports_provider.ID.azure);
251
+ const credential = connection ? yield* ctx.integration.connection.resolve(connection).pipe(Effect.orElseSucceed(() => {
252
+ return;
253
+ })) : undefined;
254
+ if (credential?.type !== "oauth" || credential.methodID !== methodID)
255
+ return;
256
+ const url = new URL(evt.request.url);
257
+ const scope = url.hostname.endsWith(".services.ai.azure.com") && !url.pathname.startsWith("/models") ? foundryScope : cognitiveScope;
258
+ const current = yield* token(scope).pipe(Effect.orDie);
259
+ evt.request.headers.delete("api-key");
260
+ evt.request.headers.delete("x-api-key");
261
+ evt.request.headers.set("authorization", `Bearer ${current.access}`);
262
+ evt.request.headers.set("user-agent", exports_app.useragent(ctx.app));
263
+ }), { providerID: exports_provider.ID.azure });
264
+ yield* ctx.aisdk.hook("sdk", Effect.fn(function* (evt) {
265
+ if (evt.package !== "@ai-sdk/azure")
266
+ return;
267
+ if (evt.model.providerID === exports_provider.ID.azure) {
268
+ if (!evt.options.resourceName && !evt.options.baseURL && (!exports_provider.isAISDK(evt.model.package) || typeof evt.model.settings?.baseURL !== "string")) {
269
+ throw new Error("Azure resource name is missing; set AZURE_RESOURCE_NAME or configure resourceName/baseURL");
270
+ }
271
+ }
272
+ const mod = yield* Effect.promise(() => import("@ai-sdk/azure"));
273
+ evt.sdk = mod.createAzure(evt.options);
274
+ }));
275
+ yield* ctx.aisdk.hook("language", Effect.fn(function* (evt) {
276
+ if (evt.model.providerID !== exports_provider.ID.azure)
277
+ return;
278
+ evt.language = selectLanguage(evt.sdk, evt.model.modelID ?? evt.model.id, Boolean(evt.options.useCompletionUrls));
279
+ }));
280
+ })
281
+ });
282
+ function resolveResourceName(settings, fallback) {
283
+ const configured = settings?.resourceName;
284
+ if (typeof configured === "string" && configured.trim() !== "")
285
+ return configured;
286
+ return fallback ?? process.env.AZURE_RESOURCE_NAME ?? process.env.AZURE_COGNITIVE_SERVICES_RESOURCE_NAME;
287
+ }
288
+ function expandResourceName(baseURL, resourceName) {
289
+ return baseURL.replaceAll("${AZURE_RESOURCE_NAME}", resourceName).replaceAll("${AZURE_COGNITIVE_SERVICES_RESOURCE_NAME}", resourceName);
290
+ }
291
+ function responsesWebSocketCapable(provider, model) {
292
+ if (exports_provider.packageName(model.package ?? provider.package) !== "@ai-sdk/azure")
293
+ return false;
294
+ const settings = exports_provider.mergeOverlay(provider.settings, model.settings);
295
+ if (settings?.useCompletionUrls === true || settings?.useDeploymentBasedUrls === true)
296
+ return false;
297
+ if (settings?.apiVersion !== undefined && settings.apiVersion !== "v1")
298
+ return false;
299
+ if (typeof settings?.baseURL !== "string")
300
+ return true;
301
+ return /^https:\/\/[^/]+\.openai\.azure\.com(?:\/|$)/i.test(settings.baseURL);
302
+ }
303
+
304
+ export { AzurePlugin };
@@ -1,12 +1,12 @@
1
1
  import {
2
2
  which
3
- } from "./persistent-pty-k3e42drn.js";
3
+ } from "./image-k3e42drn.js";
4
4
  import {
5
5
  exports_state
6
- } from "./persistent-pty-x89rah0x.js";
6
+ } from "./image-x89rah0x.js";
7
7
  import {
8
8
  __export
9
- } from "./persistent-pty-rvfvac9x.js";
9
+ } from "./image-rvfvac9x.js";
10
10
 
11
11
  // src/shell/select.ts
12
12
  var exports_select = {};
@@ -1,12 +1,12 @@
1
- import {
2
- exports_permission
3
- } from "./persistent-pty-1dfqx17w.js";
4
1
  import {
5
2
  exports_form
6
- } from "./persistent-pty-wjm57ety.js";
3
+ } from "./image-k4p7ys6p.js";
4
+ import {
5
+ exports_permission
6
+ } from "./image-6g6wn14j.js";
7
7
  import {
8
8
  __export
9
- } from "./persistent-pty-rvfvac9x.js";
9
+ } from "./image-rvfvac9x.js";
10
10
 
11
11
  // src/tool/plugin/question.ts
12
12
  var exports_question = {};
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  exports_app
3
- } from "./persistent-pty-50jxp3hw.js";
3
+ } from "./image-50jxp3hw.js";
4
4
  import {
5
5
  __export
6
- } from "./persistent-pty-rvfvac9x.js";
6
+ } from "./image-rvfvac9x.js";
7
7
 
8
8
  // src/plugin/websearch/tavily.ts
9
9
  var exports_tavily = {};
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  SessionMessage
3
- } from "./persistent-pty-8rpfd2h6.js";
3
+ } from "./image-8rpfd2h6.js";
4
4
  import {
5
5
  __export
6
- } from "./persistent-pty-rvfvac9x.js";
6
+ } from "./image-rvfvac9x.js";
7
7
 
8
8
  // src/session/message-updater.ts
9
9
  var exports_message_updater = {};
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  __export
3
- } from "./persistent-pty-rvfvac9x.js";
3
+ } from "./image-rvfvac9x.js";
4
4
 
5
5
  // src/database/v1-migration.ts
6
6
  var exports_v1_migration = {};
@@ -1,12 +1,12 @@
1
1
  import {
2
2
  exports_skill
3
- } from "./persistent-pty-kadg0arq.js";
3
+ } from "./image-getpa8rr.js";
4
4
  import {
5
5
  exports_permission
6
- } from "./persistent-pty-1dfqx17w.js";
6
+ } from "./image-6g6wn14j.js";
7
7
  import {
8
8
  __export
9
- } from "./persistent-pty-rvfvac9x.js";
9
+ } from "./image-rvfvac9x.js";
10
10
 
11
11
  // src/tool/plugin/skill.ts
12
12
  var exports_skill2 = {};
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  collectBoundedResponseBody
3
- } from "./persistent-pty-jve7t217.js";
3
+ } from "./image-jve7t217.js";
4
4
  import {
5
5
  __export
6
- } from "./persistent-pty-rvfvac9x.js";
6
+ } from "./image-rvfvac9x.js";
7
7
 
8
8
  // src/plugin/websearch/mcp.ts
9
9
  var exports_mcp = {};
@@ -1,12 +1,12 @@
1
1
  import {
2
2
  llmClient
3
- } from "./persistent-pty-393a352g.js";
3
+ } from "./image-393a352g.js";
4
4
  import {
5
5
  exports_model_resolver
6
- } from "./persistent-pty-aeapwgdj.js";
6
+ } from "./image-tpf20sdp.js";
7
7
  import {
8
8
  __export
9
- } from "./persistent-pty-rvfvac9x.js";
9
+ } from "./image-rvfvac9x.js";
10
10
 
11
11
  // src/generate.ts
12
12
  var exports_generate = {};
@@ -1,10 +1,10 @@
1
1
  import {
2
2
  absoluteArrayColumn,
3
3
  absoluteColumn
4
- } from "./persistent-pty-zbqqnp0n.js";
4
+ } from "./image-zbqqnp0n.js";
5
5
  import {
6
6
  Timestamps
7
- } from "./persistent-pty-sem2g21k.js";
7
+ } from "./image-sem2g21k.js";
8
8
 
9
9
  // src/project/sql.ts
10
10
  import { isNotNull, isNull, ne, or } from "drizzle-orm";
@@ -1,54 +1,54 @@
1
1
  import {
2
2
  exports_message_updater
3
- } from "./persistent-pty-bmknfyv0.js";
4
- import {
5
- exports_inbox
6
- } from "./persistent-pty-rvx401a0.js";
3
+ } from "./image-bmknfyv0.js";
7
4
  import {
8
5
  exports_instruction_entry
9
- } from "./persistent-pty-cf5kktd9.js";
6
+ } from "./image-vx778pey.js";
7
+ import {
8
+ exports_inbox
9
+ } from "./image-ecft2zb7.js";
10
10
  import {
11
11
  Slug
12
- } from "./persistent-pty-df3v2q6j.js";
12
+ } from "./image-df3v2q6j.js";
13
13
  import {
14
14
  exports_instruction_state
15
- } from "./persistent-pty-xgyvsd3w.js";
15
+ } from "./image-1wr8td20.js";
16
16
  import {
17
17
  SessionInboxTable,
18
18
  SessionMessageTable,
19
19
  SessionTable
20
- } from "./persistent-pty-q606pcse.js";
20
+ } from "./image-q606pcse.js";
21
+ import {
22
+ SessionEvent
23
+ } from "./image-a83yvq99.js";
21
24
  import {
22
25
  SessionMessage
23
- } from "./persistent-pty-8rpfd2h6.js";
26
+ } from "./image-8rpfd2h6.js";
27
+ import {
28
+ exports_agent
29
+ } from "./image-qthy380g.js";
24
30
  import {
25
31
  exports_model
26
- } from "./persistent-pty-r13w8t0w.js";
32
+ } from "./image-r13w8t0w.js";
27
33
  import {
28
34
  exports_workspace
29
- } from "./persistent-pty-ntvyjk1e.js";
30
- import {
31
- exports_agent
32
- } from "./persistent-pty-thehea1s.js";
33
- import {
34
- SessionEvent
35
- } from "./persistent-pty-a83yvq99.js";
35
+ } from "./image-wyafnjh5.js";
36
36
  import {
37
37
  ProjectTable
38
- } from "./persistent-pty-c8ya26sa.js";
38
+ } from "./image-c8ya26sa.js";
39
39
  import {
40
40
  AbsolutePath,
41
41
  RelativePath
42
- } from "./persistent-pty-j07kk359.js";
42
+ } from "./image-j07kk359.js";
43
43
  import {
44
44
  exports_bus
45
- } from "./persistent-pty-1ag913pn.js";
45
+ } from "./image-4q25xkk6.js";
46
46
  import {
47
47
  exports_database
48
- } from "./persistent-pty-x8cryhgj.js";
48
+ } from "./image-nnhm94s6.js";
49
49
  import {
50
50
  __export
51
- } from "./persistent-pty-rvfvac9x.js";
51
+ } from "./image-rvfvac9x.js";
52
52
 
53
53
  // src/session/projector.ts
54
54
  var exports_projector = {};
@@ -1,15 +1,15 @@
1
1
  import {
2
2
  CredentialTable
3
- } from "./persistent-pty-mf0hyk7z.js";
3
+ } from "./image-mf0hyk7z.js";
4
4
  import {
5
5
  exports_bus
6
- } from "./persistent-pty-1ag913pn.js";
6
+ } from "./image-4q25xkk6.js";
7
7
  import {
8
8
  exports_database
9
- } from "./persistent-pty-x8cryhgj.js";
9
+ } from "./image-nnhm94s6.js";
10
10
  import {
11
11
  __export
12
- } from "./persistent-pty-rvfvac9x.js";
12
+ } from "./image-rvfvac9x.js";
13
13
 
14
14
  // src/credential.ts
15
15
  var exports_credential = {};
@@ -1,18 +1,18 @@
1
1
  import {
2
2
  exports_markdown
3
- } from "./persistent-pty-7wcmqxrc.js";
3
+ } from "./image-7wcmqxrc.js";
4
4
  import {
5
5
  exports_config
6
- } from "./persistent-pty-wye4rw9m.js";
6
+ } from "./image-8a7c359h.js";
7
7
  import {
8
8
  exports_select
9
- } from "./persistent-pty-bbhffenw.js";
9
+ } from "./image-bbhffenw.js";
10
10
  import {
11
11
  exports_location
12
- } from "./persistent-pty-b8ndhws8.js";
12
+ } from "./image-dtsy0489.js";
13
13
  import {
14
14
  __export
15
- } from "./persistent-pty-rvfvac9x.js";
15
+ } from "./image-rvfvac9x.js";
16
16
 
17
17
  // src/config/plugin/command.ts
18
18
  var exports_command = {};
@@ -1,33 +1,33 @@
1
1
  import {
2
2
  exports_migrate
3
- } from "./persistent-pty-whk0g8cz.js";
3
+ } from "./image-whk0g8cz.js";
4
4
  import {
5
5
  exports_plugin
6
- } from "./persistent-pty-9f0rnpkn.js";
6
+ } from "./image-9f0rnpkn.js";
7
+ import {
8
+ exports_agent
9
+ } from "./image-4s2xwh5d.js";
7
10
  import {
8
11
  exports_mcp
9
- } from "./persistent-pty-e1z9a0ts.js";
12
+ } from "./image-e1z9a0ts.js";
10
13
  import {
11
14
  exports_provider
12
- } from "./persistent-pty-18pv8fg3.js";
15
+ } from "./image-18pv8fg3.js";
13
16
  import {
14
- exports_agent
15
- } from "./persistent-pty-4s2xwh5d.js";
17
+ exports_attachment
18
+ } from "./image-r3k9abhd.js";
16
19
  import {
17
20
  exports_permission
18
- } from "./persistent-pty-v9bfv94f.js";
19
- import {
20
- exports_attachment
21
- } from "./persistent-pty-r3k9abhd.js";
21
+ } from "./image-v9bfv94f.js";
22
22
  import {
23
23
  exports_command
24
- } from "./persistent-pty-thstd87d.js";
24
+ } from "./image-thstd87d.js";
25
25
  import {
26
26
  PositiveInt
27
- } from "./persistent-pty-j07kk359.js";
27
+ } from "./image-j07kk359.js";
28
28
  import {
29
29
  __export
30
- } from "./persistent-pty-rvfvac9x.js";
30
+ } from "./image-rvfvac9x.js";
31
31
 
32
32
  // src/config/normalize.ts
33
33
  var exports_normalize = {};
@@ -36,6 +36,7 @@ __export(exports_normalize, {
36
36
  ConfigNormalize: () => exports_normalize
37
37
  });
38
38
  import { isDeepStrictEqual } from "node:util";
39
+ import { isRecord } from "@opencode-ai/ai/utils/record";
39
40
  import { Option, Schema } from "effect";
40
41
  import { Info } from "@opencode-ai/schema/config";
41
42
  import { ConfigAgent } from "@opencode-ai/schema/config/agent";
@@ -601,9 +602,6 @@ function isDirectLegacyMcp(value) {
601
602
  function isEnabledOnlyMcp(value) {
602
603
  return isRecord(value) && !own(value, "type") && typeof value.enabled === "boolean";
603
604
  }
604
- function isRecord(value) {
605
- return typeof value === "object" && value !== null && !Array.isArray(value);
606
- }
607
605
  function isPlainRecord(value) {
608
606
  if (!isRecord(value))
609
607
  return false;
@@ -1,10 +1,10 @@
1
1
  import {
2
2
  SQLiteEffectDatabase
3
- } from "./persistent-pty-j4x55qt5.js";
3
+ } from "./image-dbvqqhw0.js";
4
4
  import {
5
5
  mapResultRow,
6
6
  resolveNullableObjectPaths
7
- } from "./persistent-pty-k8b45nas.js";
7
+ } from "./image-k8b45nas.js";
8
8
 
9
9
  // src/database/drizzle/sqlite-core/effect/session.ts
10
10
  import * as Cause from "effect/Cause";
@@ -1,12 +1,12 @@
1
1
  import {
2
2
  exports_instructions
3
- } from "./persistent-pty-ec8vrfw5.js";
3
+ } from "./image-ec8vrfw5.js";
4
4
  import {
5
5
  exports_location
6
- } from "./persistent-pty-b8ndhws8.js";
6
+ } from "./image-dtsy0489.js";
7
7
  import {
8
8
  __export
9
- } from "./persistent-pty-rvfvac9x.js";
9
+ } from "./image-rvfvac9x.js";
10
10
 
11
11
  // src/instructions/builtins.ts
12
12
  var exports_builtins = {};