@opencode/core 2.0.27 → 2.0.28

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 (500) hide show
  1. package/dist/agent.js +66 -66
  2. package/dist/aisdk-native.js +66 -66
  3. package/dist/aisdk.js +71 -71
  4. package/dist/app.js +9 -9
  5. package/dist/bus.js +55 -55
  6. package/dist/chunks/{filesystem-eaednpsc.js → filesystem-02hzg919.js} +16 -16
  7. package/dist/chunks/{filesystem-tn22h724.js → filesystem-09ygvw9n.js} +8 -8
  8. package/dist/chunks/{filesystem-jex0hdh0.js → filesystem-0m69c59p.js} +124 -42
  9. package/dist/chunks/{filesystem-52hym6es.js → filesystem-0q6ztsng.js} +34 -34
  10. package/dist/chunks/{filesystem-58rgv5ce.js → filesystem-0sdzw0m1.js} +26 -26
  11. package/dist/chunks/{filesystem-qz7nybpq.js → filesystem-0x07vhym.js} +10 -10
  12. package/dist/chunks/{filesystem-3xq304at.js → filesystem-0z1n3j5c.js} +19 -19
  13. package/dist/chunks/{filesystem-chn727mr.js → filesystem-139mpvga.js} +7 -7
  14. package/dist/chunks/filesystem-18a9s3e7.js +26 -0
  15. package/dist/chunks/filesystem-1z5jn46p.js +253 -0
  16. package/dist/chunks/{filesystem-cp3h7zv6.js → filesystem-20mebfjn.js} +11 -11
  17. package/dist/chunks/{filesystem-krjgrvpb.js → filesystem-234r1ky0.js} +5 -5
  18. package/dist/chunks/{filesystem-277mr6gh.js → filesystem-28n8c4ka.js} +1 -1
  19. package/dist/chunks/{filesystem-a89e0tac.js → filesystem-2k71kv7p.js} +3 -3
  20. package/dist/chunks/{filesystem-0jwsre1p.js → filesystem-2k8khapm.js} +4 -4
  21. package/dist/chunks/{filesystem-rezt1fjs.js → filesystem-2mcy88br.js} +154 -151
  22. package/dist/chunks/{filesystem-kqx1b4hy.js → filesystem-2ryng5r3.js} +1 -1
  23. package/dist/chunks/{filesystem-z5eh1vkz.js → filesystem-315k6hst.js} +15 -15
  24. package/dist/chunks/{filesystem-7wwt250p.js → filesystem-38mdmq5f.js} +82 -82
  25. package/dist/chunks/{filesystem-y15vpdnr.js → filesystem-3b9qt4hj.js} +7 -7
  26. package/dist/chunks/{filesystem-dwatz751.js → filesystem-3fz2a589.js} +4 -4
  27. package/dist/chunks/{filesystem-75yaxqej.js → filesystem-3rj2b0mx.js} +22 -22
  28. package/dist/chunks/{filesystem-c35597j6.js → filesystem-3sj8yt8v.js} +3 -3
  29. package/dist/chunks/{filesystem-xx66htzt.js → filesystem-3xj61p28.js} +29 -29
  30. package/dist/chunks/{filesystem-a7x960be.js → filesystem-426dk71k.js} +10 -10
  31. package/dist/chunks/{filesystem-0jz028se.js → filesystem-42721k3a.js} +13 -13
  32. package/dist/chunks/{filesystem-xq0502x8.js → filesystem-42q5z408.js} +3 -3
  33. package/dist/chunks/{filesystem-cd22zj3n.js → filesystem-47wyv12f.js} +12 -12
  34. package/dist/chunks/{filesystem-b6pj8f6d.js → filesystem-4c2dxef7.js} +14 -14
  35. package/dist/chunks/{filesystem-mqbwmym3.js → filesystem-4g0yx14a.js} +8 -8
  36. package/dist/chunks/filesystem-4h495arh.js +102 -0
  37. package/dist/chunks/{filesystem-qmyze75f.js → filesystem-4kv77ab9.js} +16 -16
  38. package/dist/chunks/{filesystem-3fm12cj0.js → filesystem-4rdhmkj7.js} +7 -7
  39. package/dist/chunks/{filesystem-zp2jr73m.js → filesystem-4wxv1g1t.js} +1 -1
  40. package/dist/chunks/{filesystem-42nthewb.js → filesystem-53rak1ew.js} +1 -1
  41. package/dist/chunks/{filesystem-9bbnj2zh.js → filesystem-58hng72m.js} +3 -3
  42. package/dist/chunks/{filesystem-075nkgpd.js → filesystem-5w9yjztw.js} +1 -1
  43. package/dist/chunks/{filesystem-egftk3gc.js → filesystem-60fs82z5.js} +9 -9
  44. package/dist/chunks/{filesystem-qjke1250.js → filesystem-628nc13m.js} +23 -23
  45. package/dist/chunks/{filesystem-yj5krche.js → filesystem-65v4cnad.js} +11 -11
  46. package/dist/chunks/{filesystem-7nranytg.js → filesystem-6nt2he5f.js} +30 -30
  47. package/dist/chunks/{filesystem-gp94me86.js → filesystem-6xktvksv.js} +9 -9
  48. package/dist/chunks/{filesystem-vw56mdd2.js → filesystem-6y8xypev.js} +6 -6
  49. package/dist/chunks/{filesystem-fs4v6yja.js → filesystem-73n0zeyz.js} +10 -10
  50. package/dist/chunks/{filesystem-wxetx7mh.js → filesystem-75kbjv4y.js} +7 -7
  51. package/dist/chunks/{filesystem-2vvh33eb.js → filesystem-775gj3j1.js} +7 -1
  52. package/dist/chunks/{filesystem-psy0m90e.js → filesystem-7bj0298e.js} +11 -11
  53. package/dist/chunks/{filesystem-bddt2pqj.js → filesystem-7cjfetaf.js} +6 -6
  54. package/dist/chunks/{filesystem-v45b1mqa.js → filesystem-7ha8mbyb.js} +8 -8
  55. package/dist/chunks/{filesystem-85yr590m.js → filesystem-7kmr86m7.js} +29 -29
  56. package/dist/chunks/{filesystem-t63kk2n9.js → filesystem-7mwvqe74.js} +1 -1
  57. package/dist/chunks/{filesystem-qf68ybps.js → filesystem-7q2snjpw.js} +19 -19
  58. package/dist/chunks/{filesystem-kfxykwst.js → filesystem-7t1q934f.js} +8 -8
  59. package/dist/chunks/{filesystem-g6kk69s6.js → filesystem-7w42pd46.js} +8 -8
  60. package/dist/chunks/{filesystem-jh2bfv56.js → filesystem-8004wwfb.js} +18 -18
  61. package/dist/chunks/{filesystem-6hh8tjw2.js → filesystem-8rqycdgd.js} +6 -6
  62. package/dist/chunks/{filesystem-tkfxpf5w.js → filesystem-93b1zj1y.js} +8 -8
  63. package/dist/chunks/{filesystem-dmn46mqv.js → filesystem-9h395ey8.js} +13 -13
  64. package/dist/chunks/{filesystem-5yzzbxa7.js → filesystem-9hn6k4tm.js} +7 -7
  65. package/dist/chunks/{filesystem-a812m1sc.js → filesystem-9s024g5s.js} +5 -5
  66. package/dist/chunks/{filesystem-3c7k6cm5.js → filesystem-9s29ec0q.js} +5 -5
  67. package/dist/chunks/{filesystem-w5j8pc94.js → filesystem-9sdvy6ea.js} +5 -5
  68. package/dist/chunks/{filesystem-e850ppb0.js → filesystem-9sjeq45g.js} +1 -1
  69. package/dist/chunks/{filesystem-nmqm2vvz.js → filesystem-9wfts7m5.js} +14 -14
  70. package/dist/chunks/{filesystem-9zg8t2tr.js → filesystem-a78v4ve5.js} +22 -22
  71. package/dist/chunks/{filesystem-h3s3f80v.js → filesystem-adgawzpd.js} +4 -4
  72. package/dist/chunks/{filesystem-cmdzq1er.js → filesystem-aj2z5ayr.js} +20 -20
  73. package/dist/chunks/{filesystem-h18kbg2g.js → filesystem-aqazz0j8.js} +20 -20
  74. package/dist/chunks/{filesystem-d9xsbmzv.js → filesystem-axkrk270.js} +10 -10
  75. package/dist/chunks/{filesystem-75czp452.js → filesystem-b5s5zk2w.js} +10 -10
  76. package/dist/chunks/{filesystem-8679j8d8.js → filesystem-b6snqm39.js} +11 -9
  77. package/dist/chunks/{filesystem-0rj8zrsn.js → filesystem-b71jh5yt.js} +18 -17
  78. package/dist/chunks/{filesystem-3dreg0vn.js → filesystem-b8h848z5.js} +9 -9
  79. package/dist/chunks/{filesystem-n61013np.js → filesystem-bfegkxfd.js} +6 -6
  80. package/dist/chunks/{filesystem-1ffvrpkg.js → filesystem-bjx1sjef.js} +4 -4
  81. package/dist/chunks/{filesystem-97aeaand.js → filesystem-bmr56wjg.js} +3 -3
  82. package/dist/chunks/{filesystem-tx4skpae.js → filesystem-btv47zes.js} +27 -27
  83. package/dist/chunks/{filesystem-r69zxgc9.js → filesystem-bvv8j0qg.js} +9 -9
  84. package/dist/chunks/{filesystem-b674v2dg.js → filesystem-bx0gyb4h.js} +3 -3
  85. package/dist/chunks/{filesystem-gdq97084.js → filesystem-bxqk5pf5.js} +7 -7
  86. package/dist/chunks/{filesystem-mh1qw9wf.js → filesystem-c1pk8j7t.js} +14 -14
  87. package/dist/chunks/{filesystem-sa8ekw3f.js → filesystem-c8ax2afj.js} +1 -1
  88. package/dist/chunks/{filesystem-8wps0r52.js → filesystem-c8cfwmf0.js} +16 -14
  89. package/dist/chunks/{filesystem-gty1xwv8.js → filesystem-cc09gky1.js} +14 -14
  90. package/dist/chunks/{filesystem-g18ezh2c.js → filesystem-cfkx2x8f.js} +18 -18
  91. package/dist/chunks/{filesystem-45gnhb3v.js → filesystem-cjb3hyea.js} +21 -21
  92. package/dist/chunks/{filesystem-yyy8m62c.js → filesystem-cqwer3tv.js} +19 -19
  93. package/dist/chunks/{filesystem-92hybt7t.js → filesystem-crx3azpj.js} +12 -12
  94. package/dist/chunks/{filesystem-zdbbxb0y.js → filesystem-ct7wq3h5.js} +5 -5
  95. package/dist/chunks/{filesystem-nvjf5yyf.js → filesystem-cv0e3ffa.js} +321 -321
  96. package/dist/chunks/{filesystem-bhzg07mw.js → filesystem-cv0wr4wv.js} +13 -13
  97. package/dist/chunks/{filesystem-30hpp6bd.js → filesystem-d0gnxsps.js} +28 -28
  98. package/dist/chunks/{filesystem-zsa8nsz8.js → filesystem-d77571hn.js} +22 -22
  99. package/dist/chunks/{filesystem-mm2s9j4z.js → filesystem-d8kc7qyj.js} +8 -8
  100. package/dist/chunks/{filesystem-wfk26c6d.js → filesystem-dg29p2pd.js} +13 -13
  101. package/dist/chunks/{filesystem-s3mqqn9k.js → filesystem-dqcpnaex.js} +20 -15
  102. package/dist/chunks/{filesystem-j56e64zr.js → filesystem-dqxsqydv.js} +2 -0
  103. package/dist/chunks/{filesystem-6s1gmk25.js → filesystem-dvb8jg9v.js} +18 -18
  104. package/dist/chunks/{filesystem-gvc0m829.js → filesystem-e0w2vstn.js} +14 -14
  105. package/dist/chunks/{filesystem-517r2k0v.js → filesystem-e1t3mam8.js} +8 -8
  106. package/dist/chunks/{filesystem-wz02ft3p.js → filesystem-e29yd45t.js} +8 -8
  107. package/dist/chunks/{filesystem-vk5e0qsv.js → filesystem-e6464sbd.js} +4 -4
  108. package/dist/chunks/{filesystem-r2z489rp.js → filesystem-e80seqcp.js} +2 -2
  109. package/dist/chunks/{filesystem-jcr0a5xm.js → filesystem-eebh6wmp.js} +30 -30
  110. package/dist/chunks/{filesystem-nbhbhab9.js → filesystem-ehv7knr3.js} +21 -16
  111. package/dist/chunks/{filesystem-kc69xce9.js → filesystem-ej4n91fq.js} +17 -17
  112. package/dist/chunks/{filesystem-x5s67ttw.js → filesystem-ek1kdr8s.js} +25 -25
  113. package/dist/chunks/{filesystem-c1fqxshp.js → filesystem-es1vcfrp.js} +1 -1
  114. package/dist/chunks/{filesystem-avya17qh.js → filesystem-f1bjnzfm.js} +14 -14
  115. package/dist/chunks/{filesystem-1acjjqhc.js → filesystem-f2n192rq.js} +3 -3
  116. package/dist/chunks/{filesystem-amjhxwh3.js → filesystem-f5dbfwc4.js} +4 -4
  117. package/dist/chunks/{filesystem-n59f5cqe.js → filesystem-faat08va.js} +16 -16
  118. package/dist/chunks/{filesystem-jtpxbk3r.js → filesystem-ffk923an.js} +80 -80
  119. package/dist/chunks/{filesystem-qmqgtz8f.js → filesystem-ft3hqk2c.js} +7 -7
  120. package/dist/chunks/{filesystem-hq3c8me3.js → filesystem-fxaymqdw.js} +3 -3
  121. package/dist/chunks/{filesystem-a1fpssew.js → filesystem-fzcmqh9t.js} +41 -92
  122. package/dist/chunks/{filesystem-qr40m89d.js → filesystem-g3wzybmp.js} +15 -15
  123. package/dist/chunks/{filesystem-e77w7m4c.js → filesystem-g5gnrdpy.js} +11 -11
  124. package/dist/chunks/{filesystem-52fe2n6x.js → filesystem-gp9jqd59.js} +4 -4
  125. package/dist/chunks/{filesystem-vfb4jdsz.js → filesystem-gtfaydnj.js} +16 -16
  126. package/dist/chunks/{filesystem-qptcxqn9.js → filesystem-gveanz76.js} +20 -20
  127. package/dist/chunks/{filesystem-31xfzrxg.js → filesystem-h7s7r6s9.js} +3 -3
  128. package/dist/chunks/{filesystem-ndz7w8hx.js → filesystem-h9k3zmfa.js} +14 -14
  129. package/dist/chunks/{filesystem-cjgcse4q.js → filesystem-hcxmzztb.js} +6 -11
  130. package/dist/chunks/{filesystem-shj64zqm.js → filesystem-hddh30xx.js} +8 -8
  131. package/dist/chunks/{filesystem-8y0srtbm.js → filesystem-hgx0r8wb.js} +43 -43
  132. package/dist/chunks/{filesystem-p03r7pt3.js → filesystem-hnb4yx9q.js} +5 -5
  133. package/dist/chunks/{filesystem-tjefdw4f.js → filesystem-hnh8n5n7.js} +9 -9
  134. package/dist/chunks/{filesystem-hfx4ttpe.js → filesystem-hp4earpc.js} +9 -9
  135. package/dist/chunks/{filesystem-x5w8kc5x.js → filesystem-hppj45g6.js} +23 -23
  136. package/dist/chunks/{filesystem-ted6dyzx.js → filesystem-hxdhxhc0.js} +32 -32
  137. package/dist/chunks/{filesystem-x2eytdts.js → filesystem-j72mgbmv.js} +30 -30
  138. package/dist/chunks/{filesystem-8r0rjxx3.js → filesystem-jv0d82ph.js} +41 -41
  139. package/dist/chunks/{filesystem-4dd6559a.js → filesystem-jvz4rjy9.js} +26 -25
  140. package/dist/chunks/{filesystem-jnzzg47p.js → filesystem-k0sjew9s.js} +13 -13
  141. package/dist/chunks/{filesystem-wtsf8rdt.js → filesystem-k7xxzs5q.js} +14 -14
  142. package/dist/chunks/{filesystem-gjacmpd0.js → filesystem-k97zh3d1.js} +7 -7
  143. package/dist/chunks/{filesystem-z3pazvy2.js → filesystem-kdykjer7.js} +14 -14
  144. package/dist/chunks/{filesystem-2q2afj7r.js → filesystem-kjrg4dz2.js} +21 -21
  145. package/dist/chunks/{filesystem-628cnxdp.js → filesystem-kmpk7fbr.js} +16 -16
  146. package/dist/chunks/{filesystem-d6jv500s.js → filesystem-krc3a0yk.js} +2 -2
  147. package/dist/chunks/{filesystem-1k1hwgxp.js → filesystem-ktnh1044.js} +26 -26
  148. package/dist/chunks/{filesystem-hbmg3jd1.js → filesystem-kzk6m8s6.js} +65 -65
  149. package/dist/chunks/{filesystem-rhjt4rsm.js → filesystem-kzxe22pz.js} +1 -1
  150. package/dist/chunks/{filesystem-hehj8e2f.js → filesystem-m30bzzm8.js} +8 -8
  151. package/dist/chunks/{filesystem-58072hz9.js → filesystem-m5jcjszt.js} +3 -3
  152. package/dist/chunks/{filesystem-gk8qb678.js → filesystem-maspj1v3.js} +5 -18
  153. package/dist/chunks/{filesystem-cfrzcmt6.js → filesystem-mddpn92g.js} +24 -24
  154. package/dist/chunks/{filesystem-43fay8tn.js → filesystem-mek16e5d.js} +8 -8
  155. package/dist/chunks/{filesystem-7qtbp6f0.js → filesystem-mrfr3fv8.js} +13 -13
  156. package/dist/chunks/{filesystem-w7mvh2x4.js → filesystem-mwpbc7s8.js} +18 -18
  157. package/dist/chunks/{filesystem-ddg7egp8.js → filesystem-n2bdxpfq.js} +9 -9
  158. package/dist/chunks/{filesystem-zfgdk5x8.js → filesystem-n3yfs7ec.js} +31 -31
  159. package/dist/chunks/{filesystem-8w54sq4a.js → filesystem-n4fsvy2x.js} +18 -18
  160. package/dist/chunks/{filesystem-gacw69ge.js → filesystem-n9kc33re.js} +2 -2
  161. package/dist/chunks/{filesystem-jd655njr.js → filesystem-naas6dry.js} +22 -22
  162. package/dist/chunks/{filesystem-vc6ht4b9.js → filesystem-ng5df8nw.js} +7 -7
  163. package/dist/chunks/{filesystem-xpk7egw8.js → filesystem-njfdx3sy.js} +3 -3
  164. package/dist/chunks/{filesystem-40hy4nm0.js → filesystem-p3m2ynk3.js} +16 -12
  165. package/dist/chunks/{filesystem-h0s8229g.js → filesystem-p42kja40.js} +15 -15
  166. package/dist/chunks/{filesystem-zxe4qb9c.js → filesystem-pb5kndam.js} +31 -24
  167. package/dist/chunks/{filesystem-4w5f3qm5.js → filesystem-pn3cc07s.js} +7 -7
  168. package/dist/chunks/{filesystem-4yh5fkek.js → filesystem-pr4c8k5d.js} +31 -31
  169. package/dist/chunks/{filesystem-q3kzbh51.js → filesystem-q0zsatc3.js} +47 -47
  170. package/dist/chunks/{filesystem-gteqr3kb.js → filesystem-qa6qpaa9.js} +10 -10
  171. package/dist/chunks/{filesystem-45th5jwr.js → filesystem-qc068m1q.js} +4 -4
  172. package/dist/chunks/{filesystem-xtzs4z5v.js → filesystem-qmr691ca.js} +4 -4
  173. package/dist/chunks/{filesystem-cztcbjsk.js → filesystem-qnxbmed8.js} +39 -39
  174. package/dist/chunks/{filesystem-gbtkprqj.js → filesystem-qpdrzbsd.js} +33 -33
  175. package/dist/chunks/{filesystem-y4861qag.js → filesystem-r3fk5851.js} +40 -40
  176. package/dist/chunks/{filesystem-zqpzmbkm.js → filesystem-r9h634c8.js} +2 -2
  177. package/dist/chunks/{filesystem-28mv0yws.js → filesystem-rb70syh1.js} +13 -13
  178. package/dist/chunks/{filesystem-tbqraact.js → filesystem-rdd07134.js} +44 -43
  179. package/dist/chunks/{filesystem-v0t15ase.js → filesystem-rgx5n1kn.js} +4 -4
  180. package/dist/chunks/{filesystem-wn2vj619.js → filesystem-rjtxxem0.js} +5 -5
  181. package/dist/chunks/{filesystem-6pc27hjz.js → filesystem-rkprpv83.js} +4 -4
  182. package/dist/chunks/{filesystem-k76fn4kw.js → filesystem-rpg9c19m.js} +3 -3
  183. package/dist/chunks/{filesystem-6p6bhjzq.js → filesystem-rthc7gf6.js} +10 -10
  184. package/dist/chunks/{filesystem-b3f8fkhc.js → filesystem-scgrse2b.js} +3 -3
  185. package/dist/chunks/{filesystem-jq5272j9.js → filesystem-shnqbm89.js} +18 -18
  186. package/dist/chunks/{filesystem-1pdq80h1.js → filesystem-shy0vwdw.js} +4 -4
  187. package/dist/chunks/{filesystem-6yajptbt.js → filesystem-t3f4tea4.js} +1 -1
  188. package/dist/chunks/{filesystem-hdckhky9.js → filesystem-t5jqnx4m.js} +9 -9
  189. package/dist/chunks/{filesystem-89znhe33.js → filesystem-tcezcvh9.js} +3 -3
  190. package/dist/chunks/{filesystem-p4njbyer.js → filesystem-tfw769rq.js} +9 -9
  191. package/dist/chunks/{filesystem-xw91mmsj.js → filesystem-thnax083.js} +10 -10
  192. package/dist/chunks/{filesystem-rert0e01.js → filesystem-tkb22qbm.js} +1 -1
  193. package/dist/chunks/{filesystem-0paq2nw3.js → filesystem-tm0kqsz3.js} +25 -1
  194. package/dist/chunks/{filesystem-7t7k8w74.js → filesystem-tz35mf6x.js} +7 -7
  195. package/dist/chunks/{filesystem-gccjnz6h.js → filesystem-v0xmac3n.js} +1 -1
  196. package/dist/chunks/{filesystem-ma9a1mz6.js → filesystem-v7s1536z.js} +2 -2
  197. package/dist/chunks/{filesystem-41czef58.js → filesystem-v7z2bvyd.js} +3 -3
  198. package/dist/chunks/{filesystem-nr11xpps.js → filesystem-vbk72xvh.js} +22 -22
  199. package/dist/chunks/{filesystem-sb9d9eyx.js → filesystem-vtbmj6qa.js} +6 -6
  200. package/dist/chunks/{filesystem-05zcap53.js → filesystem-vy98fec5.js} +6 -6
  201. package/dist/chunks/{filesystem-84txncab.js → filesystem-w1eejvng.js} +4 -4
  202. package/dist/chunks/{filesystem-g6yfr6ja.js → filesystem-w39jehkq.js} +3 -3
  203. package/dist/chunks/{filesystem-rzs3gq0x.js → filesystem-w3x9v1nk.js} +7 -7
  204. package/dist/chunks/{filesystem-3y40vn7b.js → filesystem-w40f6bsw.js} +1 -1
  205. package/dist/chunks/{filesystem-dzse07y5.js → filesystem-w5yqftge.js} +5 -5
  206. package/dist/chunks/{filesystem-v7gjr6wa.js → filesystem-wb1x78f5.js} +40 -40
  207. package/dist/chunks/{filesystem-v9rcgtcn.js → filesystem-wd9v2wqs.js} +27 -27
  208. package/dist/chunks/{filesystem-bw78ga2c.js → filesystem-wjj7prxr.js} +9 -0
  209. package/dist/chunks/{filesystem-v15nq2pf.js → filesystem-wm56crqz.js} +67 -40
  210. package/dist/chunks/{filesystem-0nqtnax1.js → filesystem-wne619hj.js} +23 -23
  211. package/dist/chunks/{filesystem-v7q8sg4f.js → filesystem-wpf4st6a.js} +8 -8
  212. package/dist/chunks/{filesystem-x7xmxswz.js → filesystem-ws0htp7c.js} +11 -11
  213. package/dist/chunks/{filesystem-zzbddhc6.js → filesystem-wtwcdvfd.js} +10 -10
  214. package/dist/chunks/{filesystem-mnav64s8.js → filesystem-wwgtjrva.js} +9 -9
  215. package/dist/chunks/{filesystem-hh0yy80h.js → filesystem-xcf4ra81.js} +3 -3
  216. package/dist/chunks/{filesystem-17ahada2.js → filesystem-xey671re.js} +25 -25
  217. package/dist/chunks/{filesystem-ge3tf0hw.js → filesystem-y5x50g1v.js} +22 -22
  218. package/dist/chunks/{filesystem-6ea2fwcg.js → filesystem-y8p3zjbc.js} +5 -5
  219. package/dist/chunks/{filesystem-hhj1gqex.js → filesystem-y9q49zk7.js} +1 -1
  220. package/dist/chunks/{filesystem-e6f2cxsr.js → filesystem-yar3z0vm.js} +14 -14
  221. package/dist/chunks/{filesystem-bwds47ca.js → filesystem-ycge4e7e.js} +3 -3
  222. package/dist/chunks/{filesystem-ykhp3ymj.js → filesystem-yezy7z0k.js} +9 -9
  223. package/dist/chunks/{filesystem-g8xm47b4.js → filesystem-ysasxjy6.js} +9 -9
  224. package/dist/chunks/{filesystem-qwwffz8c.js → filesystem-yw46jfkh.js} +13 -13
  225. package/dist/chunks/{filesystem-x2t9anc7.js → filesystem-z114v3my.js} +17 -17
  226. package/dist/chunks/{filesystem-9zhh23v8.js → filesystem-z2jd07rd.js} +4 -4
  227. package/dist/chunks/{filesystem-njatc343.js → filesystem-z7d7tagb.js} +9 -9
  228. package/dist/chunks/{filesystem-edp2jp4p.js → filesystem-zdqhb26j.js} +2 -2
  229. package/dist/chunks/{filesystem-28b6phvf.js → filesystem-zftfvc0z.js} +5 -5
  230. package/dist/chunks/{filesystem-zxy7mtkf.js → filesystem-zqq8czsd.js} +27 -27
  231. package/dist/chunks/{filesystem-vdfrtany.js → filesystem-zrdk58qt.js} +1 -1
  232. package/dist/chunks/{filesystem-ae5sdhnp.js → filesystem-zrj251rj.js} +20 -20
  233. package/dist/chunks/{filesystem-2r4m1mbx.js → filesystem-zx2dsnbk.js} +29 -29
  234. package/dist/codemode/instructions.js +5 -5
  235. package/dist/command.js +70 -70
  236. package/dist/config/discovery.js +71 -65
  237. package/dist/config/normalize.js +76 -76
  238. package/dist/config/plugin/agent.js +87 -87
  239. package/dist/config/plugin/command.js +169 -169
  240. package/dist/config/plugin/compaction.js +121 -121
  241. package/dist/config/plugin/compatibility.js +103 -103
  242. package/dist/config/plugin/formatter.js +88 -88
  243. package/dist/config/plugin/image.js +87 -87
  244. package/dist/config/plugin/instruction.js +67 -67
  245. package/dist/config/plugin/location-watcher.js +87 -87
  246. package/dist/config/plugin/mcp.js +92 -92
  247. package/dist/config/plugin/policy.js +87 -87
  248. package/dist/config/plugin/provider.js +87 -87
  249. package/dist/config/plugin/reference.js +89 -89
  250. package/dist/config/plugin/shell.js +87 -87
  251. package/dist/config/plugin/skill-file.js +78 -78
  252. package/dist/config/plugin/skill.js +104 -104
  253. package/dist/config/plugin/snapshot.js +87 -87
  254. package/dist/config/plugin/source.js +90 -90
  255. package/dist/config/plugin/tool-output.js +88 -88
  256. package/dist/config/plugin/websearch.js +86 -86
  257. package/dist/config/plugin/worktree.js +89 -89
  258. package/dist/config/watch.js +1 -1
  259. package/dist/config.js +93 -93
  260. package/dist/credential.js +67 -67
  261. package/dist/database/database.js +54 -54
  262. package/dist/database/drizzle/effect-sqlite/driver.js +8 -8
  263. package/dist/database/drizzle/effect-sqlite/index.js +4 -4
  264. package/dist/database/drizzle/effect-sqlite/session.js +7 -7
  265. package/dist/database/drizzle/index.js +9 -9
  266. package/dist/database/drizzle/sqlite-core/effect/db.js +5 -5
  267. package/dist/database/drizzle/sqlite-core/effect/index.js +2 -2
  268. package/dist/database/drizzle/sqlite-core/effect/session.js +6 -6
  269. package/dist/database/drizzle.js +9 -9
  270. package/dist/database/migration.gen.js +38 -38
  271. package/dist/database/migration.js +39 -39
  272. package/dist/database/v1-migration.bun.js +11 -11
  273. package/dist/effect/app-node-builder.js +242 -242
  274. package/dist/effect/app-node-platform.js +1 -1
  275. package/dist/environment/environment.js +70 -70
  276. package/dist/environment/index.js +72 -72
  277. package/dist/environment/unavailable.js +3 -3
  278. package/dist/event-logger.js +9 -9
  279. package/dist/file-access.js +81 -81
  280. package/dist/file-mutation.js +71 -71
  281. package/dist/filesystem/location-watcher-policy.js +5 -5
  282. package/dist/filesystem/location-watcher.js +185 -185
  283. package/dist/filesystem/protected.js +3 -3
  284. package/dist/filesystem/search.js +80 -80
  285. package/dist/filesystem/watcher.js +13 -13
  286. package/dist/filesystem.js +83 -83
  287. package/dist/form.js +62 -62
  288. package/dist/formatter/builtins.js +3 -3
  289. package/dist/formatter.js +67 -67
  290. package/dist/generate.js +79 -79
  291. package/dist/git.js +2 -2
  292. package/dist/github-copilot/chat/openai-compatible-chat-language-model.js +3 -3
  293. package/dist/github-copilot/copilot-provider.js +3 -3
  294. package/dist/github-copilot/models.js +68 -68
  295. package/dist/github-copilot/responses/openai-responses-language-model.js +4 -4
  296. package/dist/github-copilot/responses/openai-responses-prepare-tools.js +2 -2
  297. package/dist/image/photon.js +1 -1
  298. package/dist/image.js +5 -5
  299. package/dist/instance/service.js +5 -5
  300. package/dist/instance.js +312 -312
  301. package/dist/instruction-discovery.js +64 -64
  302. package/dist/instructions/builtins.js +67 -67
  303. package/dist/integration.js +63 -63
  304. package/dist/job.js +64 -64
  305. package/dist/kv.js +59 -59
  306. package/dist/location-activity.js +53 -53
  307. package/dist/location-lifecycle.js +84 -84
  308. package/dist/location-service-map.js +67 -67
  309. package/dist/location-services.js +311 -311
  310. package/dist/location.js +62 -62
  311. package/dist/managed-policy.js +7 -7
  312. package/dist/mcp/client.js +18 -18
  313. package/dist/mcp/index.js +82 -82
  314. package/dist/mcp/instructions.js +97 -97
  315. package/dist/mcp/oauth.js +13 -13
  316. package/dist/mcp/stdio.js +67 -67
  317. package/dist/modal/models.js +68 -68
  318. package/dist/model-resolver.js +75 -75
  319. package/dist/model.js +77 -77
  320. package/dist/models-dev.js +83 -83
  321. package/dist/permission/saved.js +66 -66
  322. package/dist/permission/sql.js +3 -3
  323. package/dist/permission.js +88 -88
  324. package/dist/persistent-pty/index.js +71 -71
  325. package/dist/persistent-pty.js +57 -57
  326. package/dist/plugin/agent.js +59 -59
  327. package/dist/plugin/command.js +73 -73
  328. package/dist/plugin/hooks.js +5 -5
  329. package/dist/plugin/host.js +176 -176
  330. package/dist/plugin/identity.js +3 -3
  331. package/dist/plugin/instance.js +5 -5
  332. package/dist/plugin/internal.js +286 -286
  333. package/dist/plugin/mcp-codemode-defaults.js +3 -3
  334. package/dist/plugin/models-dev.js +72 -72
  335. package/dist/plugin/module.js +85 -85
  336. package/dist/plugin/optimize.js +3 -3
  337. package/dist/plugin/plan.js +79 -79
  338. package/dist/plugin/provider/amazon-bedrock.js +67 -67
  339. package/dist/plugin/provider/azure.js +86 -87
  340. package/dist/plugin/provider/chatgpt.js +91 -69
  341. package/dist/plugin/provider/cloudflare-ai-gateway.js +85 -85
  342. package/dist/plugin/provider/cloudflare-workers-ai.js +85 -85
  343. package/dist/plugin/provider/configured.js +84 -84
  344. package/dist/plugin/provider/databricks.js +1 -1
  345. package/dist/plugin/provider/digitalocean.js +69 -69
  346. package/dist/plugin/provider/github-copilot.js +71 -71
  347. package/dist/plugin/provider/gitlab.js +69 -69
  348. package/dist/plugin/provider/google-vertex.js +85 -85
  349. package/dist/plugin/provider/llmgateway.js +60 -60
  350. package/dist/plugin/provider/lmstudio.js +94 -94
  351. package/dist/plugin/provider/local.js +91 -91
  352. package/dist/plugin/provider/modal.js +69 -69
  353. package/dist/plugin/provider/ollama.js +92 -92
  354. package/dist/plugin/provider/openai.js +93 -70
  355. package/dist/plugin/provider/opencode.js +72 -72
  356. package/dist/plugin/provider/openrouter.js +68 -68
  357. package/dist/plugin/provider/poe.js +60 -60
  358. package/dist/plugin/provider/prompt-cache-key.js +1 -92
  359. package/dist/plugin/provider/sap-ai-core.js +67 -67
  360. package/dist/plugin/provider/snowflake-cortex.js +86 -86
  361. package/dist/plugin/provider/vercel.js +67 -67
  362. package/dist/plugin/provider/vllm.js +94 -94
  363. package/dist/plugin/provider/xai.js +68 -68
  364. package/dist/plugin/provider.js +128 -128
  365. package/dist/plugin/sdk.js +60 -60
  366. package/dist/plugin/service.js +3 -3
  367. package/dist/plugin/skill.js +104 -104
  368. package/dist/plugin/supervisor.js +299 -299
  369. package/dist/plugin/tool-input-repair.js +3 -3
  370. package/dist/plugin/vcs/git.js +66 -66
  371. package/dist/plugin/vcs/hg.js +66 -66
  372. package/dist/plugin/verbosity.js +70 -70
  373. package/dist/plugin/warming.js +86 -86
  374. package/dist/plugin/websearch/exa.js +6 -6
  375. package/dist/plugin/websearch/firecrawl.js +7 -7
  376. package/dist/plugin/websearch/index.js +8 -8
  377. package/dist/plugin/websearch/mcp.js +3 -3
  378. package/dist/plugin/websearch/parallel.js +5 -5
  379. package/dist/plugin/websearch/tavily.js +6 -6
  380. package/dist/plugin/websearch/tinyfish.js +5 -5
  381. package/dist/plugin.js +189 -189
  382. package/dist/project/sql.js +2 -2
  383. package/dist/project.js +61 -61
  384. package/dist/provider.js +82 -78
  385. package/dist/pty.js +78 -78
  386. package/dist/reference/instructions.js +70 -70
  387. package/dist/reference.js +70 -70
  388. package/dist/repository-cache.js +64 -64
  389. package/dist/repository.js +3 -3
  390. package/dist/ripgrep/binary.js +1 -1
  391. package/dist/ripgrep.js +74 -74
  392. package/dist/rpc.js +67 -67
  393. package/dist/session/command.js +59 -59
  394. package/dist/session/compaction.js +100 -100
  395. package/dist/session/context.js +119 -119
  396. package/dist/session/diff.js +67 -67
  397. package/dist/session/environment.js +5 -5
  398. package/dist/session/error.js +4 -4
  399. package/dist/session/execution/restart.js +114 -114
  400. package/dist/session/execution.js +97 -97
  401. package/dist/session/generate.js +120 -120
  402. package/dist/session/history.js +9 -9
  403. package/dist/session/inbox.js +70 -70
  404. package/dist/session/info.js +2 -2
  405. package/dist/session/instruction-entry.js +64 -64
  406. package/dist/session/instruction-state.js +4 -4
  407. package/dist/session/instructions.js +76 -76
  408. package/dist/session/message-updater.js +3 -3
  409. package/dist/session/model-request.js +91 -91
  410. package/dist/session/model-transport.js +8 -8
  411. package/dist/session/move.js +103 -103
  412. package/dist/session/projector.js +68 -68
  413. package/dist/session/prompt.js +81 -81
  414. package/dist/session/provider-context.js +3 -3
  415. package/dist/session/revert.js +68 -68
  416. package/dist/session/run-coordinator.js +3 -3
  417. package/dist/session/runner/index.js +3 -3
  418. package/dist/session/runner/llm.js +187 -187
  419. package/dist/session/runner/model.js +73 -73
  420. package/dist/session/runner/publish-llm-event.js +86 -86
  421. package/dist/session/runner/retry.js +3 -3
  422. package/dist/session/runner/step.js +93 -93
  423. package/dist/session/runner/to-llm-message.js +2 -2
  424. package/dist/session/schema.js +5 -5
  425. package/dist/session/session.js +131 -131
  426. package/dist/session/shell.js +98 -98
  427. package/dist/session/skill.js +80 -80
  428. package/dist/session/sql.js +3 -3
  429. package/dist/session/stats.js +10 -10
  430. package/dist/session/store.js +69 -69
  431. package/dist/session/subagent-job.js +169 -169
  432. package/dist/session/title.js +122 -122
  433. package/dist/session/to-session-error.js +85 -85
  434. package/dist/session/transfer.js +109 -109
  435. package/dist/session.js +177 -177
  436. package/dist/shell/parse.js +2 -2
  437. package/dist/shell/select.js +9 -9
  438. package/dist/shell.js +101 -101
  439. package/dist/skill/discovery.js +5 -5
  440. package/dist/skill/instructions.js +84 -84
  441. package/dist/skill.js +89 -89
  442. package/dist/snapshot.js +71 -71
  443. package/dist/tool/mcp.js +96 -96
  444. package/dist/tool/plugin/edit.js +95 -95
  445. package/dist/tool/plugin/glob.js +100 -100
  446. package/dist/tool/plugin/grep.js +100 -100
  447. package/dist/tool/plugin/mcp-resource.js +90 -90
  448. package/dist/tool/plugin/opencode.js +86 -86
  449. package/dist/tool/plugin/patch.js +97 -97
  450. package/dist/tool/plugin/question.js +78 -78
  451. package/dist/tool/plugin/read.js +100 -100
  452. package/dist/tool/plugin/shell.js +173 -173
  453. package/dist/tool/plugin/skill.js +90 -90
  454. package/dist/tool/plugin/subagent.js +176 -176
  455. package/dist/tool/plugin/webfetch.js +87 -87
  456. package/dist/tool/plugin/websearch.js +87 -87
  457. package/dist/tool/plugin/write.js +95 -95
  458. package/dist/tool/read-filesystem.js +72 -72
  459. package/dist/tool-output.js +5 -5
  460. package/dist/tool.js +11 -11
  461. package/dist/types/agent.d.ts +1 -0
  462. package/dist/types/config/discovery.d.ts +18 -0
  463. package/dist/types/config.d.ts +3 -1
  464. package/dist/types/image/photon.d.ts +2 -2
  465. package/dist/types/model.d.ts +7 -0
  466. package/dist/types/plugin/provider/azure.d.ts +2 -3
  467. package/dist/types/plugin/provider/chatgpt.d.ts +2 -1
  468. package/dist/types/plugin/provider/openai.d.ts +2 -1
  469. package/dist/types/provider.d.ts +30 -1
  470. package/dist/types/v1/config/migrate.d.ts +13 -4
  471. package/dist/types/v1/config/provider-options.d.ts +8 -0
  472. package/dist/v1/config/agent.js +4 -4
  473. package/dist/v1/config/command.js +5 -5
  474. package/dist/v1/config/mcp.js +3 -3
  475. package/dist/v1/config/migrate.js +69 -69
  476. package/dist/v1/config/permission.js +3 -3
  477. package/dist/v1/config/plugin.js +3 -3
  478. package/dist/v1/config/provider-options.js +3 -1
  479. package/dist/v1/config/provider.js +3 -3
  480. package/dist/variant.js +68 -68
  481. package/dist/vcs.js +69 -69
  482. package/dist/websearch.js +66 -66
  483. package/dist/wellknown/plugin.js +61 -61
  484. package/dist/wellknown.js +64 -64
  485. package/dist/workspace/driver.js +5 -5
  486. package/dist/workspace.js +66 -66
  487. package/dist/worktree/git.js +5 -5
  488. package/dist/worktree/sql.js +3 -3
  489. package/dist/worktree/strategies.js +68 -68
  490. package/dist/worktree.js +76 -76
  491. package/package.json +9 -9
  492. package/dist/chunks/filesystem-8p91w73h.js +0 -59
  493. package/dist/chunks/filesystem-g4vk7v1j.js +0 -253
  494. package/dist/chunks/filesystem-zr1cpq3k.js +0 -26
  495. /package/dist/chunks/{filesystem-rj3eygr5.js → filesystem-c41wscbt.js} +0 -0
  496. /package/dist/chunks/{filesystem-xpeshqab.js → filesystem-d9jtx293.js} +0 -0
  497. /package/dist/chunks/{filesystem-0dfv01xh.js → filesystem-ma48de29.js} +0 -0
  498. /package/dist/chunks/{filesystem-2r93mh4x.js → filesystem-svcw9x3w.js} +0 -0
  499. /package/dist/chunks/{filesystem-nnbqx04f.js → filesystem-t8c0xvf3.js} +0 -0
  500. /package/dist/chunks/{filesystem-sy62yj56.js → filesystem-tyts7tda.js} +0 -0
@@ -6,7 +6,7 @@ import {
6
6
  var exports_unavailable = {};
7
7
  __export(exports_unavailable, {
8
8
  EnvironmentUnavailable: () => exports_unavailable,
9
- layer: () => layer5,
9
+ layer: () => layer6,
10
10
  spawner: () => spawner2
11
11
  });
12
12
  import { Effect, Layer, PlatformError } from "effect";
@@ -17,6 +17,6 @@ var spawner2 = make(() => Effect.fail(PlatformError.systemError({
17
17
  method: "spawn",
18
18
  description: "This location has no execution plane: no workspace is attached and the host cannot spawn processes"
19
19
  })));
20
- var layer5 = Layer.succeed(ChildProcessSpawner, spawner2);
20
+ var layer6 = Layer.succeed(ChildProcessSpawner, spawner2);
21
21
 
22
- export { spawner2, layer5, exports_unavailable };
22
+ export { spawner2, layer6, exports_unavailable };
@@ -1,47 +1,41 @@
1
1
  import {
2
2
  useragent2
3
- } from "./filesystem-xw91mmsj.js";
3
+ } from "./filesystem-thnax083.js";
4
4
  import {
5
5
  Service84
6
- } from "./filesystem-vdfrtany.js";
6
+ } from "./filesystem-zrdk58qt.js";
7
7
  import {
8
- ID15,
9
- Event19,
10
- Service78
11
- } from "./filesystem-x5s67ttw.js";
8
+ ID16,
9
+ Event20,
10
+ Service80
11
+ } from "./filesystem-ek1kdr8s.js";
12
12
  import {
13
13
  key2
14
14
  } from "./filesystem-addxnjmp.js";
15
15
  import {
16
16
  ID14,
17
17
  MethodID2
18
- } from "./filesystem-h0s8229g.js";
18
+ } from "./filesystem-p42kja40.js";
19
19
  import {
20
20
  which2
21
21
  } from "./filesystem-qaymkmh1.js";
22
22
  import {
23
- ID8,
24
- Service61
25
- } from "./filesystem-zxe4qb9c.js";
23
+ ID13,
24
+ Service77
25
+ } from "./filesystem-pb5kndam.js";
26
26
  import {
27
- ID7
28
- } from "./filesystem-4dd6559a.js";
29
- import {
30
- iife2
31
- } from "./filesystem-1kg9ymc8.js";
27
+ ID10
28
+ } from "./filesystem-jvz4rjy9.js";
32
29
  import {
33
30
  configuredSettings2
34
- } from "./filesystem-vw56mdd2.js";
31
+ } from "./filesystem-6y8xypev.js";
35
32
 
36
33
  // src/plugin/provider/azure.ts
37
34
  import { Clock, Effect, FiberHandle, Option, Schema, Semaphore, Stream } from "effect";
38
35
  import { HttpClient, HttpClientRequest, HttpClientResponse } from "effect/http";
39
36
  import { ChildProcess } from "effect/process";
40
- import path from "node:path";
41
37
  import { define } from "@opencode/plugin/effect/plugin";
42
38
  import { Form } from "@opencode/schema/form";
43
- import { FSUtil } from "@opencode/util/fs-util";
44
- import { Global } from "@opencode/util/global";
45
39
  import { AppProcess } from "@opencode/util/process";
46
40
  var cognitiveScope = "https://cognitiveservices.azure.com/.default";
47
41
  var foundryScope = "https://ai.azure.com/.default";
@@ -67,14 +61,8 @@ var decodeManagementDeployment = Schema.decodeUnknownOption(Schema.Struct({
67
61
  provisioningState: Schema.String
68
62
  })
69
63
  }));
70
- var ResourceQuery = Schema.Struct({
71
- query: Schema.String,
72
- options: Schema.optional(Schema.Struct({ $top: Schema.Number }))
73
- });
64
+ var ResourceQuery = Schema.Struct({ query: Schema.String });
74
65
  var Resources = Schema.Struct({ data: Schema.Array(Schema.Struct({ id: Schema.NonEmptyString })) });
75
- var ResourceListing = Schema.Struct({ data: Schema.Array(Schema.Unknown) });
76
- var decodeProfile = Schema.decodeUnknownOption(Schema.fromJsonString(Schema.Struct({ subscriptions: Schema.NonEmptyArray(Schema.Unknown) })));
77
- var decodeResourceListing = Schema.decodeUnknownOption(Schema.Struct({ resourceName: Schema.NonEmptyString, resourceGroup: Schema.String, location: Schema.String }));
78
66
  function make7(endpoints = {
79
67
  resource: (name) => `https://${name}.openai.azure.com/openai`,
80
68
  management: "https://management.azure.com"
@@ -82,12 +70,11 @@ function make7(endpoints = {
82
70
  return define({
83
71
  id: "opencode.provider.azure",
84
72
  effect: Effect.fn(function* (ctx) {
85
- const configured = yield* configuredSettings2(ID8.azure);
73
+ const configured = yield* configuredSettings2(ID13.azure);
86
74
  const processes = yield* AppProcess.Service;
87
- const fs = yield* FSUtil.Service;
88
75
  const bus = yield* Service84;
89
- const credentials = yield* Service78;
90
- const providers = yield* Service61;
76
+ const credentials = yield* Service80;
77
+ const providers = yield* Service77;
91
78
  const http = HttpClient.filterStatusOk(yield* HttpClient.HttpClient);
92
79
  const tokens = new Map;
93
80
  const resourceIDs = new Map;
@@ -111,14 +98,13 @@ function make7(endpoints = {
111
98
  const management = (request) => token(managementScope).pipe(Effect.flatMap((current) => http.execute(request.pipe(HttpClientRequest.bearerToken(current.access), HttpClientRequest.acceptJson, HttpClientRequest.setHeader("User-Agent", useragent2(ctx.app))))));
112
99
  const available = Boolean(which2("az"));
113
100
  const configuredResource = Boolean(resolveResourceName(configured) || typeof configured?.baseURL === "string");
114
- const listing = {};
115
101
  yield* ctx.integration.transform((editor) => {
116
102
  editor.method.update({
117
- integrationID: ID8.azure,
103
+ integrationID: ID13.azure,
118
104
  method: { type: "env", names: ["AZURE_API_KEY", "AZURE_COGNITIVE_SERVICES_API_KEY"] }
119
105
  });
120
106
  editor.method.update({
121
- integrationID: ID8.azure,
107
+ integrationID: ID13.azure,
122
108
  method: {
123
109
  type: "key",
124
110
  label: "API key",
@@ -136,7 +122,7 @@ function make7(endpoints = {
136
122
  if (!available)
137
123
  return;
138
124
  editor.method.update({
139
- integrationID: ID8.azure,
125
+ integrationID: ID13.azure,
140
126
  method: {
141
127
  id: methodID,
142
128
  type: "external",
@@ -149,23 +135,15 @@ function make7(endpoints = {
149
135
  placeholder: "e.g. my-models",
150
136
  required: true,
151
137
  pattern: resourcePattern.source,
152
- ...iife2(() => {
153
- if (!listing.resources)
154
- return { description: "Requests use your `az login` session." };
155
- if (listing.resources.length === 0)
156
- return {
157
- description: "No Azure OpenAI or AI Services resources found for your `az login` account."
158
- };
159
- return { custom: true, options: listing.resources };
160
- })
138
+ description: "Enter the name of your Azure OpenAI or AI Services resource."
161
139
  }
162
140
  ])
163
141
  }
164
142
  });
165
143
  });
166
144
  const load = Effect.fn("AzurePlugin.load")(function* () {
167
- const connection = yield* ctx.integration.connection.active(ID8.azure);
168
- 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;
169
147
  return { connection, resource: credentialResource(stored?.value) };
170
148
  });
171
149
  const findResource = Effect.fn("AzurePlugin.findResource")(function* (resource) {
@@ -204,7 +182,7 @@ function make7(endpoints = {
204
182
  }));
205
183
  const discover = Effect.fn("AzurePlugin.discover")(function* () {
206
184
  const connection = loaded.connection;
207
- const settings = (yield* providers.get(ID8.azure))?.settings;
185
+ const settings = (yield* providers.get(ID13.azure))?.settings;
208
186
  const name = loaded.resource ?? resolveResourceName(settings);
209
187
  const url = connection && name !== undefined && resourcePattern.test(name) && typeof settings?.baseURL !== "string" ? `${endpoints.resource(name)}/deployments?api-version=2022-12-01` : undefined;
210
188
  if (loaded.connection !== connection)
@@ -226,11 +204,11 @@ function make7(endpoints = {
226
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))));
227
205
  if (!found)
228
206
  return;
229
- if (loaded.connection !== connection || key2(connection) !== key2(yield* ctx.integration.connection.active(ID8.azure)))
207
+ if (loaded.connection !== connection || key2(connection) !== key2(yield* ctx.integration.connection.active(ID13.azure)))
230
208
  return;
231
209
  if (JSON.stringify(found) === JSON.stringify(loaded.deployments))
232
210
  return;
233
- const catalog = new Map(Array.from((yield* providers.snapshot()).records.get(ID8.azure)?.models.keys() ?? [], (id) => [
211
+ const catalog = new Map(Array.from((yield* providers.snapshot()).records.get(ID13.azure)?.models.keys() ?? [], (id) => [
234
212
  id.toLowerCase(),
235
213
  id
236
214
  ]));
@@ -243,32 +221,11 @@ function make7(endpoints = {
243
221
  yield* ctx.model.reload();
244
222
  });
245
223
  const refresh = () => rebind().pipe(Effect.andThen(FiberHandle.run(discovery, discover())));
246
- const resourceFor = (provider) => provider.id === ID8.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);
247
225
  Object.assign(loaded, yield* load());
248
- const listResources = Effect.fn("AzurePlugin.listResources")(function* () {
249
- const profile = yield* fs.readFileStringSafe(path.join(process.env.AZURE_CONFIG_DIR ?? path.join(Global.Path.home, ".azure"), "azureProfile.json"));
250
- if (Option.isNone(decodeProfile(profile?.replace(/^\uFEFF/, ""))))
251
- return;
252
- const response = yield* HttpClientRequest.post(`${endpoints.management}/providers/Microsoft.ResourceGraph/resources?api-version=2022-10-01`).pipe(HttpClientRequest.schemaBodyJson(ResourceQuery)({ query: resourceListQuery, options: { $top: 1000 } }), Effect.flatMap(management), Effect.flatMap(HttpClientResponse.schemaBodyJson(ResourceListing)), Effect.timeout("10 seconds"));
253
- listing.resources = response.data.flatMap((raw) => {
254
- const item = Option.getOrUndefined(decodeResourceListing(raw));
255
- if (!item || !resourcePattern.test(item.resourceName))
256
- return [];
257
- return [
258
- {
259
- value: item.resourceName,
260
- label: item.resourceName,
261
- description: `${item.resourceGroup} · ${item.location}`
262
- }
263
- ];
264
- });
265
- yield* ctx.integration.reload();
266
- });
267
- if (available && !configuredResource)
268
- yield* listResources().pipe(Effect.catch((cause) => Effect.logDebug("failed to list Azure resources", { cause })), Effect.forkScoped);
269
226
  yield* ctx.provider.transform((evt) => {
270
227
  for (const item of evt.list()) {
271
- if (item.provider.id !== ID8.azure && !item.provider.package.startsWith("@opencode/ai/providers/azure/"))
228
+ if (item.provider.id !== ID13.azure && !item.provider.package.startsWith("@opencode/ai/providers/azure/"))
272
229
  continue;
273
230
  const resourceName = resourceFor(item.provider);
274
231
  const websocket = responsesWebSocketCapable(item.provider);
@@ -283,7 +240,7 @@ function make7(endpoints = {
283
240
  };
284
241
  });
285
242
  }
286
- const item = evt.get(ID8.azure);
243
+ const item = evt.get(ID13.azure);
287
244
  if (!item)
288
245
  return;
289
246
  evt.add({
@@ -294,7 +251,7 @@ function make7(endpoints = {
294
251
  });
295
252
  yield* ctx.model.transform((models) => {
296
253
  for (const item of models.provider.list()) {
297
- if (item.provider.id !== ID8.azure && !item.provider.package.startsWith("@opencode/ai/providers/azure/"))
254
+ if (item.provider.id !== ID13.azure && !item.provider.package.startsWith("@opencode/ai/providers/azure/"))
298
255
  continue;
299
256
  const resourceName = resourceFor(item.provider);
300
257
  for (const model of models.list(item.provider.id)) {
@@ -306,20 +263,20 @@ function make7(endpoints = {
306
263
  }
307
264
  if (!loaded.deployments)
308
265
  return;
309
- const catalog = models.list(ID8.azure);
266
+ const catalog = models.list(ID13.azure);
310
267
  const deployed = deployedModels(loaded.deployments, catalog);
311
268
  for (const model of catalog) {
312
269
  if (!deployed.has(model.id))
313
- models.remove(ID8.azure, model.id);
270
+ models.remove(ID13.azure, model.id);
314
271
  }
315
272
  for (const [id, model] of deployed) {
316
- models.update(ID8.azure, id, (draft) => Object.assign(draft, model));
273
+ models.update(ID13.azure, id, (draft) => Object.assign(draft, model));
317
274
  }
318
275
  });
319
- yield* bus.subscribe(Event19.Switched).pipe(Stream.filter((event) => event.data.integrationID === ID14.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 }));
320
277
  yield* refresh().pipe(Effect.forkScoped);
321
278
  const bearer = Effect.fn("AzurePlugin.bearer")(function* (url) {
322
- const connection = yield* ctx.integration.connection.active(ID8.azure);
279
+ const connection = yield* ctx.integration.connection.active(ID13.azure);
323
280
  const credential = connection ? yield* ctx.integration.connection.resolve(connection).pipe(Effect.orElseSucceed(() => {
324
281
  return;
325
282
  })) : undefined;
@@ -331,7 +288,7 @@ function make7(endpoints = {
331
288
  return `Bearer ${current.access}`;
332
289
  });
333
290
  yield* ctx.session.hook("http.request", (evt) => Effect.gen(function* () {
334
- if (evt.model.providerID !== ID8.azure)
291
+ if (evt.model.providerID !== ID13.azure)
335
292
  return;
336
293
  const authorization = yield* bearer(evt.request.url);
337
294
  if (!authorization)
@@ -340,9 +297,9 @@ function make7(endpoints = {
340
297
  evt.request.headers.delete("x-api-key");
341
298
  evt.request.headers.set("authorization", authorization);
342
299
  evt.request.headers.set("user-agent", useragent2(ctx.app));
343
- }), { providerID: ID8.azure });
300
+ }), { providerID: ID13.azure });
344
301
  yield* ctx.session.hook("experimental.ws.handshake", (evt) => Effect.gen(function* () {
345
- if (evt.model.providerID !== ID8.azure)
302
+ if (evt.model.providerID !== ID13.azure)
346
303
  return;
347
304
  const authorization = yield* bearer(evt.url);
348
305
  if (!authorization)
@@ -351,7 +308,7 @@ function make7(endpoints = {
351
308
  delete evt.headers["x-api-key"];
352
309
  evt.headers.authorization = authorization;
353
310
  evt.headers["user-agent"] = useragent2(ctx.app);
354
- }), { providerID: ID8.azure });
311
+ }), { providerID: ID13.azure });
355
312
  })
356
313
  });
357
314
  }
@@ -369,14 +326,6 @@ function credentialResource(credential) {
369
326
  const resource = credential?.type === "key" ? credential.configuration?.resourceName ?? credential.metadata?.resourceName : credential?.type === "external" && credential.methodID === methodID ? credential.metadata?.resourceName : undefined;
370
327
  return typeof resource === "string" && resource.trim() !== "" ? resource : undefined;
371
328
  }
372
- var resourceListQuery = [
373
- "resources",
374
- "| where type =~ 'microsoft.cognitiveservices/accounts' and kind in~ ('AIServices', 'OpenAI')",
375
- "| extend resourceName = tostring(properties.customSubDomainName)",
376
- "| where isnotempty(resourceName)",
377
- "| project resourceName, resourceGroup, location",
378
- "| order by resourceName asc"
379
- ].join(" ");
380
329
  function resourceQuery(resource) {
381
330
  return [
382
331
  "resources",
@@ -393,11 +342,11 @@ function deployedModels(deployments, catalog) {
393
342
  const model = catalogModel(models, deployment);
394
343
  if (!model)
395
344
  return [];
396
- const id = ID7.make(deployment.name.toLowerCase());
345
+ const id = ID10.make(deployment.name.toLowerCase());
397
346
  const info = {
398
347
  ...structuredClone(model),
399
348
  id,
400
- modelID: ID7.make(deployment.name),
349
+ modelID: ID10.make(deployment.name),
401
350
  name: id === model.id.toLowerCase() ? model.name : `${model.name} (${deployment.name})`
402
351
  };
403
352
  return [[id, info]];
@@ -1,26 +1,26 @@
1
1
  import {
2
- Service45
3
- } from "./filesystem-yyy8m62c.js";
2
+ Service47
3
+ } from "./filesystem-cqwer3tv.js";
4
4
  import {
5
5
  AbsolutePath2
6
6
  } from "./filesystem-z5v4ffb3.js";
7
7
  import {
8
8
  Service81
9
- } from "./filesystem-42nthewb.js";
9
+ } from "./filesystem-53rak1ew.js";
10
10
  import {
11
- Service44
12
- } from "./filesystem-v15nq2pf.js";
11
+ Service46
12
+ } from "./filesystem-wm56crqz.js";
13
13
  import {
14
14
  DirectorySource2,
15
15
  UrlSource2,
16
16
  Source3
17
- } from "./filesystem-nr11xpps.js";
17
+ } from "./filesystem-vbk72xvh.js";
18
18
  import {
19
- Service13
20
- } from "./filesystem-gdq97084.js";
19
+ Service6
20
+ } from "./filesystem-bxqk5pf5.js";
21
21
  import {
22
22
  parse2
23
- } from "./filesystem-xpk7egw8.js";
23
+ } from "./filesystem-njfdx3sy.js";
24
24
  import {
25
25
  __export
26
26
  } from "./filesystem-9rqn6x4v.js";
@@ -29,22 +29,22 @@ import {
29
29
  var exports_skill3 = {};
30
30
  __export(exports_skill3, {
31
31
  ConfigSkillPlugin: () => exports_skill3,
32
- Plugin: () => Plugin39
32
+ Plugin: () => Plugin32
33
33
  });
34
34
  import { define } from "@opencode/plugin/effect/plugin";
35
35
  import { FSUtil } from "@opencode/util/fs-util";
36
36
  import { Global } from "@opencode/util/global";
37
37
  import path from "path";
38
38
  import { Effect, FiberMap, PubSub, Semaphore, Stream } from "effect";
39
- var Plugin39 = define({
39
+ var Plugin32 = define({
40
40
  id: "opencode.config.skill",
41
41
  effect: Effect.fn(function* (ctx) {
42
- const config = yield* Service44;
43
- const discovery = yield* Service13;
42
+ const config = yield* Service46;
43
+ const discovery = yield* Service6;
44
44
  const fs = yield* FSUtil.Service;
45
45
  const global = yield* Global.Service;
46
46
  const location = yield* Service81;
47
- const watcher = yield* Service45;
47
+ const watcher = yield* Service47;
48
48
  const loaded = {
49
49
  entries: yield* config.entries(),
50
50
  skills: []
@@ -176,4 +176,4 @@ var Plugin39 = define({
176
176
  })
177
177
  });
178
178
 
179
- export { Plugin39, exports_skill3 };
179
+ export { Plugin32, exports_skill3 };
@@ -1,18 +1,18 @@
1
1
  import {
2
2
  Service85,
3
3
  node89
4
- } from "./filesystem-zqpzmbkm.js";
4
+ } from "./filesystem-r9h634c8.js";
5
5
  import {
6
6
  SessionTable2,
7
7
  SessionMessageTable2
8
- } from "./filesystem-c1fqxshp.js";
8
+ } from "./filesystem-es1vcfrp.js";
9
9
  import {
10
10
  decodeMessageRow2,
11
11
  load5
12
- } from "./filesystem-krjgrvpb.js";
12
+ } from "./filesystem-234r1ky0.js";
13
13
  import {
14
14
  fromRow2
15
- } from "./filesystem-gccjnz6h.js";
15
+ } from "./filesystem-v0xmac3n.js";
16
16
  import {
17
17
  __export
18
18
  } from "./filesystem-9rqn6x4v.js";
@@ -21,9 +21,9 @@ import {
21
21
  var exports_store = {};
22
22
  __export(exports_store, {
23
23
  ListInput: () => ListInput5,
24
- Service: () => Service71,
24
+ Service: () => Service61,
25
25
  SessionStore: () => exports_store,
26
- node: () => node75
26
+ node: () => node63
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 ListInput5 = Schema.Union([ListDirectoryInput, ListProjectInput, ListAllInput]);
54
54
 
55
- class Service71 extends Context.Service()("@opencode/SessionStore") {
55
+ class Service61 extends Context.Service()("@opencode/SessionStore") {
56
56
  }
57
- var layer = Layer.effect(Service71, Effect.gen(function* () {
57
+ var layer = Layer.effect(Service61, Effect.gen(function* () {
58
58
  const { db } = yield* Service85;
59
- return Service71.of({
59
+ return Service61.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;
@@ -125,6 +125,6 @@ var layer = Layer.effect(Service71, Effect.gen(function* () {
125
125
  })
126
126
  });
127
127
  }));
128
- var node75 = makeGlobalNode({ service: Service71, layer, deps: [node89] });
128
+ var node63 = makeGlobalNode({ service: Service61, layer, deps: [node89] });
129
129
 
130
- export { ListInput5, Service71, node75, exports_store };
130
+ export { ListInput5, Service61, node63, exports_store };
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  Service83
3
- } from "./filesystem-2r93mh4x.js";
3
+ } from "./filesystem-svcw9x3w.js";
4
4
  import {
5
5
  DirectoryUnavailableError2,
6
6
  canonical2
@@ -13,12 +13,12 @@ import {
13
13
  var exports_git2 = {};
14
14
  __export(exports_git2, {
15
15
  WorktreeGit: () => exports_git2,
16
- make: () => make15
16
+ make: () => make19
17
17
  });
18
18
  import { Effect } from "effect";
19
19
  import { Worktree } from "@opencode/schema/worktree";
20
20
  import { FSUtil } from "@opencode/util/fs-util";
21
- var make15 = Effect.gen(function* () {
21
+ var make19 = Effect.gen(function* () {
22
22
  const fs = yield* FSUtil.Service;
23
23
  const git = yield* Service83;
24
24
  return {
@@ -46,4 +46,4 @@ var make15 = Effect.gen(function* () {
46
46
  };
47
47
  });
48
48
 
49
- export { make15, exports_git2 };
49
+ export { make19, exports_git2 };
@@ -4,12 +4,12 @@ import {
4
4
  RelativePath2
5
5
  } from "./filesystem-z5v4ffb3.js";
6
6
  import {
7
- Service65,
8
- node68
9
- } from "./filesystem-n59f5cqe.js";
7
+ Service73,
8
+ node76
9
+ } from "./filesystem-faat08va.js";
10
10
  import {
11
11
  RipgrepBinary2
12
- } from "./filesystem-gk8qb678.js";
12
+ } from "./filesystem-maspj1v3.js";
13
13
  import {
14
14
  __export
15
15
  } from "./filesystem-9rqn6x4v.js";
@@ -17,11 +17,11 @@ import {
17
17
  // src/ripgrep.ts
18
18
  var exports_ripgrep = {};
19
19
  __export(exports_ripgrep, {
20
- Error: () => Error4,
20
+ Error: () => Error2,
21
21
  InvalidPatternError: () => InvalidPatternError2,
22
22
  Ripgrep: () => exports_ripgrep,
23
- Service: () => Service64,
24
- node: () => node67
23
+ Service: () => Service22,
24
+ node: () => node24
25
25
  });
26
26
  import { Context, Effect, Fiber, Layer, Schema, Stream } from "effect";
27
27
  import { ChildProcess } from "effect/process";
@@ -46,7 +46,7 @@ var RawMatch = Schema.Struct({
46
46
  });
47
47
  var decodeJsonRecord = Schema.decodeUnknownEffect(Schema.fromJsonString(Schema.Unknown));
48
48
 
49
- class Error4 extends Schema.TaggedError()("Ripgrep.Error", {
49
+ class Error2 extends Schema.TaggedError()("Ripgrep.Error", {
50
50
  message: Schema.String,
51
51
  cause: Schema.optional(Schema.Defect())
52
52
  }) {
@@ -58,13 +58,13 @@ class InvalidPatternError2 extends Schema.TaggedError()("Ripgrep.InvalidPatternE
58
58
  }) {
59
59
  }
60
60
 
61
- class Service64 extends Context.Service()("@opencode/Ripgrep") {
61
+ class Service22 extends Context.Service()("@opencode/Ripgrep") {
62
62
  }
63
- var failure = (message, cause) => new Error4({ message, cause });
63
+ var failure = (message, cause) => new Error2({ message, cause });
64
64
  var normalizePath = (value) => value.replace(/^(?:\.[\\/])+/u, "").replace(/^[\\/]+/u, "").replaceAll("\\", "/");
65
65
  var isInvalidPattern = (stderr) => stderr.includes("regex parse error") || stderr.includes("error parsing regex");
66
- var layer = Layer.effect(Service64, Effect.gen(function* () {
67
- const environment = yield* Service65;
66
+ var layer = Layer.effect(Service22, Effect.gen(function* () {
67
+ const environment = yield* Service73;
68
68
  const binary = yield* RipgrepBinary2.Service;
69
69
  const run = (input) => {
70
70
  const program = Effect.scoped(Effect.gen(function* () {
@@ -90,9 +90,9 @@ var layer = Layer.effect(Service64, Effect.gen(function* () {
90
90
  return code === 1 ? [] : rows;
91
91
  }));
92
92
  const abortable = input.signal ? program.pipe(Effect.raceFirst(waitForAbort(input.signal))) : program;
93
- return abortable.pipe(Effect.mapError((cause) => cause instanceof Error4 || cause instanceof InvalidPatternError2 ? cause : failure("ripgrep execution failed", cause)));
93
+ return abortable.pipe(Effect.mapError((cause) => cause instanceof Error2 || cause instanceof InvalidPatternError2 ? cause : failure("ripgrep execution failed", cause)));
94
94
  };
95
- return Service64.of({
95
+ return Service22.of({
96
96
  glob: (input) => run({
97
97
  cwd: input.cwd,
98
98
  limit: input.limit,
@@ -175,6 +175,6 @@ var layer = Layer.effect(Service64, Effect.gen(function* () {
175
175
  }))))
176
176
  });
177
177
  }));
178
- var node67 = makeLocationNode({ service: Service64, layer, deps: [node68, RipgrepBinary2.node] });
178
+ var node24 = makeLocationNode({ service: Service22, layer, deps: [node76, RipgrepBinary2.node] });
179
179
 
180
- export { Error4, InvalidPatternError2, Service64, node67, exports_ripgrep };
180
+ export { Error2, InvalidPatternError2, Service22, node24, exports_ripgrep };
@@ -1,6 +1,6 @@
1
1
  import {
2
- Service69
3
- } from "./filesystem-q3kzbh51.js";
2
+ Service59
3
+ } from "./filesystem-q0zsatc3.js";
4
4
  import {
5
5
  MAX_MARKDOWN_BYTES2,
6
6
  convertHTMLToMarkdown2
@@ -16,29 +16,29 @@ import {
16
16
  var exports_webfetch = {};
17
17
  __export(exports_webfetch, {
18
18
  DEFAULT_TIMEOUT_SECONDS: () => DEFAULT_TIMEOUT_SECONDS2,
19
- Input: () => Input6,
20
- MAX_RESPONSE_BYTES: () => MAX_RESPONSE_BYTES2,
19
+ Input: () => Input12,
20
+ MAX_RESPONSE_BYTES: () => MAX_RESPONSE_BYTES3,
21
21
  MAX_TIMEOUT_SECONDS: () => MAX_TIMEOUT_SECONDS2,
22
- Plugin: () => Plugin6,
22
+ Plugin: () => Plugin31,
23
23
  WebFetchTool: () => exports_webfetch,
24
24
  convertHTMLToMarkdown: () => convertHTMLToMarkdown2,
25
- description: () => description4,
25
+ description: () => description5,
26
26
  extractTextFromHTML: () => extractTextFromHTML2,
27
- name: () => name6
27
+ name: () => name12
28
28
  });
29
29
  import { ToolFailure } from "@opencode/ai";
30
30
  import { Duration, Effect, Schema } from "effect";
31
31
  import { HttpClient, HttpClientRequest, HttpClientResponse } from "effect/http";
32
32
  import { Parser } from "htmlparser2";
33
- var name6 = "webfetch";
34
- var MAX_RESPONSE_BYTES2 = MAX_MARKDOWN_BYTES2;
33
+ var name12 = "webfetch";
34
+ var MAX_RESPONSE_BYTES3 = MAX_MARKDOWN_BYTES2;
35
35
  var DEFAULT_TIMEOUT_SECONDS2 = 30;
36
36
  var MAX_TIMEOUT_SECONDS2 = 120;
37
- var description4 = `Fetch content from an HTTP or HTTPS URL and return it as text, markdown, or HTML. Markdown is the default.
37
+ var description5 = `Fetch content from an HTTP or HTTPS URL and return it as text, markdown, or HTML. Markdown is the default.
38
38
 
39
39
  Use a more targeted tool when one is available. This tool is read-only. Large text results may be replaced with a preview while the complete output is retained in managed storage.`;
40
40
  var Timeout = Schema.Finite.check(Schema.isGreaterThan(0), Schema.isLessThanOrEqualTo(MAX_TIMEOUT_SECONDS2));
41
- var Input6 = Schema.Struct({
41
+ var Input12 = Schema.Struct({
42
42
  url: Schema.String.annotate({ description: "The HTTP or HTTPS URL to fetch content from" }),
43
43
  format: Schema.Literals(["text", "markdown", "html"]).annotate({ description: "The format to return the content in. Defaults to markdown." }).pipe(Schema.withDecodingDefaultKey(Effect.succeed("markdown"))),
44
44
  timeout: Schema.optionalKey(Timeout).annotate({
@@ -48,7 +48,7 @@ var Input6 = Schema.Struct({
48
48
  var Output = Schema.Struct({
49
49
  url: Schema.String,
50
50
  contentType: Schema.String,
51
- format: Input6.fields.format,
51
+ format: Input12.fields.format,
52
52
  output: Schema.String
53
53
  });
54
54
  var acceptHeader = (format) => {
@@ -79,7 +79,7 @@ var assertHttpUrl = (url) => {
79
79
  throw new Error("URL must use http:// or https://");
80
80
  };
81
81
  var execute = (http, url, format, userAgent = openCodeUserAgent) => http.execute(request(url, format, userAgent)).pipe(Effect.flatMap(HttpClientResponse.filterStatusOk));
82
- var collectBody = (response) => collectBoundedResponseBody2(response, MAX_RESPONSE_BYTES2, () => new Error(`Response too large (exceeds ${MAX_RESPONSE_BYTES2} byte limit)`));
82
+ var collectBody = (response) => collectBoundedResponseBody2(response, MAX_RESPONSE_BYTES3, () => new Error(`Response too large (exceeds ${MAX_RESPONSE_BYTES3} byte limit)`));
83
83
  var mimeFrom = (contentType) => contentType.split(";", 1)[0]?.trim().toLowerCase() ?? "";
84
84
  var isImageAttachment = (mime) => mime.startsWith("image/") && mime !== "image/svg+xml" && mime !== "image/vnd.fastbidsheet";
85
85
  var isTextualMime = (mime) => !mime || mime.startsWith("text/") || mime === "application/json" || mime.endsWith("+json") || mime === "application/xml" || mime.endsWith("+xml") || mime === "application/javascript" || mime === "application/x-javascript";
@@ -92,16 +92,16 @@ var convert = (content, contentType, format) => {
92
92
  return extractTextFromHTML2(content);
93
93
  return content;
94
94
  };
95
- var Plugin6 = {
95
+ var Plugin31 = {
96
96
  id: "opencode.tool.webfetch",
97
97
  effect: Effect.fn("WebFetchTool.Plugin")(function* (ctx) {
98
98
  const http = yield* HttpClient.HttpClient;
99
- const permission = yield* Service69;
99
+ const permission = yield* Service59;
100
100
  yield* ctx.tool.transform((editor) => editor.add({
101
- name: name6,
101
+ name: name12,
102
102
  options: { codemode: false },
103
- description: description4,
104
- input: Input6,
103
+ description: description5,
104
+ input: Input12,
105
105
  output: Output,
106
106
  execute: (input, context) => Effect.gen(function* () {
107
107
  yield* Effect.try({
@@ -109,7 +109,7 @@ var Plugin6 = {
109
109
  catch: (error) => error
110
110
  });
111
111
  yield* permission.assert({
112
- action: name6,
112
+ action: name12,
113
113
  resources: [input.url],
114
114
  save: ["*"],
115
115
  metadata: input,
@@ -167,4 +167,4 @@ function extractTextFromHTML2(html) {
167
167
  parser.end();
168
168
  return text.trim();
169
169
  }
170
- export { name6, MAX_RESPONSE_BYTES2, DEFAULT_TIMEOUT_SECONDS2, MAX_TIMEOUT_SECONDS2, description4, Input6, Plugin6, extractTextFromHTML2, exports_webfetch };
170
+ export { name12, MAX_RESPONSE_BYTES3, DEFAULT_TIMEOUT_SECONDS2, MAX_TIMEOUT_SECONDS2, description5, Input12, Plugin31, extractTextFromHTML2, exports_webfetch };