@opencode/core 2.1.1 → 2.1.2

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 (485) hide show
  1. package/dist/agent.js +69 -69
  2. package/dist/aisdk-native.js +74 -74
  3. package/dist/aisdk.js +79 -79
  4. package/dist/app.js +9 -9
  5. package/dist/bus.js +60 -60
  6. package/dist/chunks/{repository-cache-jnk63p10.js → repository-cache-068g2d37.js} +28 -28
  7. package/dist/chunks/{repository-cache-mhdex35g.js → repository-cache-07rqgew6.js} +5 -5
  8. package/dist/chunks/{repository-cache-b2ckp95n.js → repository-cache-09390rf8.js} +13 -13
  9. package/dist/chunks/{repository-cache-b4nzaj04.js → repository-cache-0cg871e2.js} +3 -3
  10. package/dist/chunks/{repository-cache-8d1pd201.js → repository-cache-0cwe34aq.js} +21 -21
  11. package/dist/chunks/{repository-cache-v210v162.js → repository-cache-0javqkgf.js} +7 -7
  12. package/dist/chunks/{repository-cache-6nq3099y.js → repository-cache-0nz7j1v1.js} +1 -1
  13. package/dist/chunks/{repository-cache-94p6wp9x.js → repository-cache-136rxf1v.js} +16 -16
  14. package/dist/chunks/{repository-cache-fbxj9tpm.js → repository-cache-14z3krkx.js} +4 -4
  15. package/dist/chunks/{repository-cache-7303zb1f.js → repository-cache-1bsm6gb2.js} +15 -15
  16. package/dist/chunks/{repository-cache-a0kr73jj.js → repository-cache-1g044nmy.js} +9 -9
  17. package/dist/chunks/{repository-cache-9m35c2r0.js → repository-cache-1hyfwtsr.js} +7 -7
  18. package/dist/chunks/{repository-cache-1ngx28bn.js → repository-cache-1rf4yw31.js} +2 -2
  19. package/dist/chunks/{repository-cache-0vf8bfn5.js → repository-cache-1rj8m5vq.js} +4 -4
  20. package/dist/chunks/{repository-cache-f94wsmf1.js → repository-cache-1sj4xbsw.js} +1 -1
  21. package/dist/chunks/{repository-cache-t5nm1h7p.js → repository-cache-1ycwwje8.js} +38 -38
  22. package/dist/chunks/{repository-cache-qsbh95pa.js → repository-cache-2296e4cw.js} +16 -16
  23. package/dist/chunks/{repository-cache-3hkcw4we.js → repository-cache-23fc6a7j.js} +12 -12
  24. package/dist/chunks/{repository-cache-0vtn597b.js → repository-cache-24ra19qx.js} +19 -19
  25. package/dist/chunks/{repository-cache-ezhy60ay.js → repository-cache-25m6jntb.js} +27 -27
  26. package/dist/chunks/{repository-cache-s5met55r.js → repository-cache-2eegacq4.js} +7 -7
  27. package/dist/chunks/{repository-cache-77d0na5t.js → repository-cache-2ntc19nv.js} +43 -43
  28. package/dist/chunks/{repository-cache-rmtct2jg.js → repository-cache-2r3bm1pf.js} +17 -17
  29. package/dist/chunks/{repository-cache-fww2ha2b.js → repository-cache-3g642jy4.js} +8 -8
  30. package/dist/chunks/{repository-cache-yfdycbsw.js → repository-cache-3ske6nsv.js} +18 -18
  31. package/dist/chunks/{repository-cache-3ns80m0h.js → repository-cache-3wvrfr7w.js} +11 -11
  32. package/dist/chunks/{repository-cache-15e8hpnt.js → repository-cache-3wxjf8vr.js} +8 -8
  33. package/dist/chunks/{repository-cache-63t8kvdx.js → repository-cache-3xcrjpsd.js} +14 -14
  34. package/dist/chunks/{repository-cache-0qb6tpgj.js → repository-cache-41bqvch9.js} +9 -9
  35. package/dist/chunks/{repository-cache-pnf7bv7v.js → repository-cache-4evmdpem.js} +19 -19
  36. package/dist/chunks/{repository-cache-yew0zm8m.js → repository-cache-4m3ygwz0.js} +10 -10
  37. package/dist/chunks/{repository-cache-tza759th.js → repository-cache-4nxvs59q.js} +13 -13
  38. package/dist/chunks/{repository-cache-57myy5jh.js → repository-cache-4xpgt2w9.js} +3 -3
  39. package/dist/chunks/{repository-cache-065m31h9.js → repository-cache-4xtxvh3c.js} +9 -9
  40. package/dist/chunks/{repository-cache-dzxp512b.js → repository-cache-58a6xtee.js} +50 -50
  41. package/dist/chunks/{repository-cache-qmqgtz8f.js → repository-cache-5d607bsg.js} +7 -7
  42. package/dist/chunks/{repository-cache-kqe08t1d.js → repository-cache-5f1cq77a.js} +9 -9
  43. package/dist/chunks/{repository-cache-7vt9yzvg.js → repository-cache-5j9zz1y4.js} +9 -9
  44. package/dist/chunks/{repository-cache-h1schjng.js → repository-cache-5mnspefx.js} +29 -29
  45. package/dist/chunks/{repository-cache-gnrrjsmd.js → repository-cache-5xn7qbr2.js} +16 -14
  46. package/dist/chunks/{repository-cache-wqz8rkkb.js → repository-cache-5xte2yyn.js} +13 -13
  47. package/dist/chunks/{repository-cache-r8tt5pdh.js → repository-cache-60xtzwnm.js} +17 -17
  48. package/dist/chunks/{repository-cache-3fcx2j2w.js → repository-cache-63jfzrme.js} +17 -17
  49. package/dist/chunks/{repository-cache-9hn6k4tm.js → repository-cache-6f890ccd.js} +7 -7
  50. package/dist/chunks/{repository-cache-6kthashm.js → repository-cache-6khagj97.js} +27 -27
  51. package/dist/chunks/{repository-cache-r8qzytx6.js → repository-cache-6nhfh867.js} +6 -6
  52. package/dist/chunks/{repository-cache-py3kkmfq.js → repository-cache-6pc27hjz.js} +5 -5
  53. package/dist/chunks/{repository-cache-v7kdkfkp.js → repository-cache-6qprtkrf.js} +24 -24
  54. package/dist/chunks/{repository-cache-6qn8gjqg.js → repository-cache-6yftxg5c.js} +19 -19
  55. package/dist/chunks/{repository-cache-dv4jvz6s.js → repository-cache-78c4e6ad.js} +19 -19
  56. package/dist/chunks/{repository-cache-kq77jz7h.js → repository-cache-7b2pfqtj.js} +4 -4
  57. package/dist/chunks/{repository-cache-t5gc52ef.js → repository-cache-84cpmds6.js} +22 -22
  58. package/dist/chunks/{repository-cache-w1eejvng.js → repository-cache-84txncab.js} +4 -4
  59. package/dist/chunks/{repository-cache-k9gaxmgh.js → repository-cache-8pvf9cdd.js} +15 -15
  60. package/dist/chunks/{repository-cache-7p9sqgn0.js → repository-cache-8s3pces3.js} +10 -10
  61. package/dist/chunks/{repository-cache-kx8xg74a.js → repository-cache-8s4xtewj.js} +12 -12
  62. package/dist/chunks/{repository-cache-pfhhvb3w.js → repository-cache-8w6fvyhj.js} +1 -1
  63. package/dist/chunks/{repository-cache-3ty6jwen.js → repository-cache-8wmb0r1y.js} +3 -3
  64. package/dist/chunks/{repository-cache-c15zmvx5.js → repository-cache-8xnvw0w1.js} +9 -9
  65. package/dist/chunks/{repository-cache-95tpv30c.js → repository-cache-95hwhe14.js} +13 -13
  66. package/dist/chunks/{repository-cache-wp7khyzv.js → repository-cache-95t8ye7z.js} +39 -39
  67. package/dist/chunks/{repository-cache-8vy56zzm.js → repository-cache-96dnwma2.js} +30 -30
  68. package/dist/chunks/{repository-cache-q0p071b0.js → repository-cache-9bh5q6pj.js} +1 -1
  69. package/dist/chunks/{repository-cache-tgfxvvf8.js → repository-cache-9da6j7qw.js} +12 -12
  70. package/dist/chunks/{repository-cache-vnm2wjz3.js → repository-cache-9f77xx3w.js} +12 -12
  71. package/dist/chunks/{repository-cache-z6c3x22d.js → repository-cache-9hwaqfsw.js} +3 -3
  72. package/dist/chunks/{repository-cache-ewj35nqb.js → repository-cache-9j0x65xk.js} +3 -3
  73. package/dist/chunks/{repository-cache-842mqg42.js → repository-cache-9sr4q53q.js} +9 -9
  74. package/dist/chunks/{repository-cache-t4rnqcab.js → repository-cache-a9vzac7j.js} +5 -5
  75. package/dist/chunks/{repository-cache-w12shgbp.js → repository-cache-acd8cc5y.js} +20 -20
  76. package/dist/chunks/{repository-cache-txwpsv2p.js → repository-cache-am5vmnvv.js} +18 -18
  77. package/dist/chunks/{repository-cache-77a66swy.js → repository-cache-amsnh37f.js} +7 -7
  78. package/dist/chunks/{repository-cache-1ptgpzsy.js → repository-cache-apagrtrt.js} +16 -16
  79. package/dist/chunks/{repository-cache-0fztarvd.js → repository-cache-atj1s5r2.js} +12 -12
  80. package/dist/chunks/{repository-cache-6bq45c98.js → repository-cache-aws4c0c0.js} +19 -19
  81. package/dist/chunks/{repository-cache-c2sed5cq.js → repository-cache-axe3mf62.js} +3 -3
  82. package/dist/chunks/{repository-cache-1ze9gtzp.js → repository-cache-baqyxak2.js} +1 -1
  83. package/dist/chunks/{repository-cache-mn5j6xz9.js → repository-cache-be5vje8s.js} +15 -7
  84. package/dist/chunks/{repository-cache-dmpxat65.js → repository-cache-befx3zey.js} +4 -4
  85. package/dist/chunks/{repository-cache-kf0zwkk2.js → repository-cache-begyvfqb.js} +20 -20
  86. package/dist/chunks/{repository-cache-x7wne18b.js → repository-cache-bf876wkh.js} +10 -10
  87. package/dist/chunks/{repository-cache-4tyzw6xh.js → repository-cache-bkafj4ay.js} +7 -7
  88. package/dist/chunks/{repository-cache-jsg4jcbs.js → repository-cache-bnqg0hxn.js} +3 -3
  89. package/dist/chunks/{repository-cache-hh0jpq4c.js → repository-cache-br622wkd.js} +63 -63
  90. package/dist/chunks/{repository-cache-tzaz3z0t.js → repository-cache-btpxpz9q.js} +4 -4
  91. package/dist/chunks/{repository-cache-dqjdwcmj.js → repository-cache-bzcwmnv3.js} +9 -9
  92. package/dist/chunks/{repository-cache-1ep4rre3.js → repository-cache-bzeyqsqd.js} +3 -3
  93. package/dist/chunks/{repository-cache-yjxqy5ha.js → repository-cache-c02r2nwt.js} +9 -9
  94. package/dist/chunks/{repository-cache-v30mg9q2.js → repository-cache-cbfm0wb6.js} +7 -7
  95. package/dist/chunks/{repository-cache-scqf7y3w.js → repository-cache-cd8v38ms.js} +84 -84
  96. package/dist/chunks/{repository-cache-mx97exft.js → repository-cache-cg5q9ras.js} +30 -30
  97. package/dist/chunks/{repository-cache-8g2mbw9h.js → repository-cache-cmkn1bh9.js} +16 -16
  98. package/dist/chunks/{repository-cache-37cqxn50.js → repository-cache-ctxez2a7.js} +4 -4
  99. package/dist/chunks/{repository-cache-vhwx28nx.js → repository-cache-cz1210nh.js} +18 -13
  100. package/dist/chunks/{repository-cache-6xjvsea3.js → repository-cache-d04ep358.js} +8 -8
  101. package/dist/chunks/{repository-cache-9hzyxvsk.js → repository-cache-d72a72b9.js} +12 -12
  102. package/dist/chunks/{repository-cache-njebe5fw.js → repository-cache-dcdf7gkr.js} +17 -17
  103. package/dist/chunks/{repository-cache-h7q4kewv.js → repository-cache-dh0nadn9.js} +36 -36
  104. package/dist/chunks/{repository-cache-y71avatq.js → repository-cache-dpkg50ah.js} +3 -3
  105. package/dist/chunks/{repository-cache-z86wre2g.js → repository-cache-dqr3pwk6.js} +20 -20
  106. package/dist/chunks/{repository-cache-xfkkasph.js → repository-cache-drwq78ky.js} +3 -3
  107. package/dist/chunks/{repository-cache-rfmm8jvy.js → repository-cache-dsx0mmc6.js} +21 -21
  108. package/dist/chunks/repository-cache-e5ybad6w.js +257 -0
  109. package/dist/chunks/{repository-cache-mk935gd8.js → repository-cache-eg5kq0wk.js} +9 -9
  110. package/dist/chunks/{repository-cache-a75ad8v4.js → repository-cache-ek8edefh.js} +1 -1
  111. package/dist/chunks/{repository-cache-d2qeb4wf.js → repository-cache-ethnw1sn.js} +12 -12
  112. package/dist/chunks/{repository-cache-tfp3dpkf.js → repository-cache-ettmqyzq.js} +2 -2
  113. package/dist/chunks/{repository-cache-na3b46a7.js → repository-cache-ey9nrxd1.js} +19 -19
  114. package/dist/chunks/{repository-cache-8t50b4ww.js → repository-cache-ez5pkgh4.js} +23 -23
  115. package/dist/chunks/{repository-cache-zmy0eq9j.js → repository-cache-ezx2brb0.js} +16 -16
  116. package/dist/chunks/{repository-cache-jargxt5j.js → repository-cache-f31q5wm1.js} +13 -13
  117. package/dist/chunks/{repository-cache-qcy13bhz.js → repository-cache-f8yphcvr.js} +16 -16
  118. package/dist/chunks/{repository-cache-zp864mkb.js → repository-cache-fpen5yq5.js} +20 -20
  119. package/dist/chunks/{repository-cache-1q92ejr7.js → repository-cache-g2qvt889.js} +19 -19
  120. package/dist/chunks/{repository-cache-gp5jn49f.js → repository-cache-g5ngm8f4.js} +28 -28
  121. package/dist/chunks/{repository-cache-gkge597h.js → repository-cache-g90zrjvy.js} +17 -17
  122. package/dist/chunks/{repository-cache-2v5tj3gs.js → repository-cache-gen6sgf1.js} +10 -10
  123. package/dist/chunks/{repository-cache-zx24wvbj.js → repository-cache-gm3f9v0x.js} +4 -4
  124. package/dist/chunks/{repository-cache-fzdrxngq.js → repository-cache-gng93yft.js} +1 -1
  125. package/dist/chunks/{repository-cache-djbskq1b.js → repository-cache-gtdxectv.js} +1 -1
  126. package/dist/chunks/{repository-cache-gec8gq51.js → repository-cache-gxdr2vwe.js} +7 -7
  127. package/dist/chunks/{repository-cache-6e57763q.js → repository-cache-gye9bare.js} +1 -1
  128. package/dist/chunks/{repository-cache-rrymd76b.js → repository-cache-h1g26er5.js} +21 -21
  129. package/dist/chunks/{repository-cache-7z1jx34y.js → repository-cache-hbvyahhm.js} +21 -21
  130. package/dist/chunks/{repository-cache-ek4c2f0v.js → repository-cache-hehc42eq.js} +8 -8
  131. package/dist/chunks/{repository-cache-hjygm116.js → repository-cache-hm1sg1ry.js} +34 -34
  132. package/dist/chunks/{repository-cache-h1f52gh9.js → repository-cache-hnvjv21h.js} +30 -23
  133. package/dist/chunks/{repository-cache-k1jycaz7.js → repository-cache-hspen3n6.js} +24 -24
  134. package/dist/chunks/{repository-cache-6hjx5zpb.js → repository-cache-hwjyn0yt.js} +8 -8
  135. package/dist/chunks/{repository-cache-dzr38x1r.js → repository-cache-j2xqfvk3.js} +9 -9
  136. package/dist/chunks/{repository-cache-nbs22qen.js → repository-cache-jcwtgcwh.js} +3 -3
  137. package/dist/chunks/{repository-cache-fj6qct2w.js → repository-cache-k07nhkpw.js} +37 -37
  138. package/dist/chunks/{repository-cache-zs22chpb.js → repository-cache-k1php5wk.js} +22 -22
  139. package/dist/chunks/{repository-cache-6s242g8e.js → repository-cache-k20z56w2.js} +35 -35
  140. package/dist/chunks/{repository-cache-4prqf89h.js → repository-cache-k2vh0b3r.js} +26 -26
  141. package/dist/chunks/{repository-cache-gpqw730e.js → repository-cache-k4q5zqd4.js} +7 -7
  142. package/dist/chunks/{repository-cache-rpjgfq5s.js → repository-cache-k7myrtme.js} +7 -7
  143. package/dist/chunks/{repository-cache-ms89s1xg.js → repository-cache-k9tkpxn3.js} +144 -144
  144. package/dist/chunks/{repository-cache-s2b0mt3v.js → repository-cache-ka0kb0pp.js} +1 -1
  145. package/dist/chunks/{repository-cache-tdbmj82j.js → repository-cache-kdz0rk07.js} +7 -7
  146. package/dist/chunks/{repository-cache-7jwh32ts.js → repository-cache-ke7rr379.js} +25 -25
  147. package/dist/chunks/{repository-cache-savvjd0x.js → repository-cache-kg7htk1j.js} +46 -24
  148. package/dist/chunks/{repository-cache-vbfgae2j.js → repository-cache-kkp8zx71.js} +3 -3
  149. package/dist/chunks/{repository-cache-5dycw2n2.js → repository-cache-kkq0x60e.js} +8 -8
  150. package/dist/chunks/{repository-cache-2ky2kwtz.js → repository-cache-kp3dd9gy.js} +2 -2
  151. package/dist/chunks/{repository-cache-g2kfam58.js → repository-cache-kvk0xsab.js} +10 -10
  152. package/dist/chunks/{repository-cache-43x4yszk.js → repository-cache-m12bw8xw.js} +14 -14
  153. package/dist/chunks/{repository-cache-exgm3bba.js → repository-cache-mjfbh2zj.js} +12 -12
  154. package/dist/chunks/{repository-cache-0xfcnhey.js → repository-cache-mjxa0fkz.js} +28 -28
  155. package/dist/chunks/{repository-cache-yv2cmth8.js → repository-cache-mk9tkz9j.js} +1 -1
  156. package/dist/chunks/{repository-cache-9v5raxs8.js → repository-cache-mkqa88c4.js} +2 -2
  157. package/dist/chunks/{repository-cache-vhj1m4b0.js → repository-cache-mq56jt1j.js} +22 -22
  158. package/dist/chunks/{repository-cache-sz15zhhw.js → repository-cache-mqqhst8y.js} +3 -3
  159. package/dist/chunks/{repository-cache-x06a86kn.js → repository-cache-mr0cv7ny.js} +15 -15
  160. package/dist/chunks/{repository-cache-dzse07y5.js → repository-cache-mx9vqzsb.js} +5 -5
  161. package/dist/chunks/{repository-cache-j5w7gx2k.js → repository-cache-n196avmr.js} +33 -33
  162. package/dist/chunks/{repository-cache-x4jd4xmr.js → repository-cache-n99h6tw9.js} +31 -31
  163. package/dist/chunks/{repository-cache-21n0xhjn.js → repository-cache-nsxxvcpe.js} +13 -13
  164. package/dist/chunks/{repository-cache-bf4bmw04.js → repository-cache-pk0dmpdf.js} +8 -8
  165. package/dist/chunks/{repository-cache-fncqf4dd.js → repository-cache-psj2x98s.js} +4 -4
  166. package/dist/chunks/{repository-cache-46mephjz.js → repository-cache-pzc1z4et.js} +28 -28
  167. package/dist/chunks/{repository-cache-p7pstqch.js → repository-cache-qd284e96.js} +13 -13
  168. package/dist/chunks/{repository-cache-sxy57xts.js → repository-cache-qd9a1hat.js} +83 -83
  169. package/dist/chunks/{repository-cache-fcrkznn8.js → repository-cache-qgn6gcr1.js} +4 -4
  170. package/dist/chunks/{repository-cache-4wehpdsn.js → repository-cache-qm621tfa.js} +29 -29
  171. package/dist/chunks/{repository-cache-znqen040.js → repository-cache-qrtd1qkj.js} +9 -9
  172. package/dist/chunks/{repository-cache-2577k5af.js → repository-cache-qs0n9k2z.js} +9 -9
  173. package/dist/chunks/{repository-cache-kh81xvt5.js → repository-cache-qy7ffa5a.js} +2 -2
  174. package/dist/chunks/{repository-cache-y50tnaxc.js → repository-cache-qz7vxdk7.js} +8 -8
  175. package/dist/chunks/{repository-cache-r8mc9fw8.js → repository-cache-rbyshrxq.js} +6 -6
  176. package/dist/chunks/{repository-cache-47cwnsyn.js → repository-cache-rjzs5m1z.js} +7 -7
  177. package/dist/chunks/repository-cache-rvyd7pdz.js +517 -0
  178. package/dist/chunks/{repository-cache-g9rqxbv3.js → repository-cache-rw0rmakh.js} +5 -5
  179. package/dist/chunks/{repository-cache-rjf4ffg7.js → repository-cache-rx1rzkp9.js} +16 -16
  180. package/dist/chunks/{repository-cache-brcmb8c2.js → repository-cache-s1aqfa5x.js} +33 -33
  181. package/dist/chunks/repository-cache-s2jpy0bd.js +26 -0
  182. package/dist/chunks/{repository-cache-hfkjwy2f.js → repository-cache-s3ertt83.js} +10 -10
  183. package/dist/chunks/{repository-cache-jaym3td0.js → repository-cache-s7ggtf3y.js} +20 -20
  184. package/dist/chunks/{repository-cache-rhjbct0v.js → repository-cache-s8d7rejh.js} +3 -3
  185. package/dist/chunks/{repository-cache-pmx6p9t5.js → repository-cache-se9m0ate.js} +24 -24
  186. package/dist/chunks/{repository-cache-a3c7ahw6.js → repository-cache-sfjrjc0q.js} +3 -3
  187. package/dist/chunks/{repository-cache-86eqfcce.js → repository-cache-sfy3bb98.js} +7 -7
  188. package/dist/chunks/{repository-cache-gtsbe4v4.js → repository-cache-sq37fes3.js} +8 -8
  189. package/dist/chunks/{repository-cache-e80seqcp.js → repository-cache-sxcaecc0.js} +2 -2
  190. package/dist/chunks/{repository-cache-szwj80cc.js → repository-cache-t1r0yajc.js} +1 -1
  191. package/dist/chunks/{repository-cache-83whknbm.js → repository-cache-t720n0zt.js} +32 -32
  192. package/dist/chunks/{repository-cache-00x4qneg.js → repository-cache-t89fqycx.js} +6 -6
  193. package/dist/chunks/{repository-cache-g5g9rrdp.js → repository-cache-t8z4ntba.js} +7 -7
  194. package/dist/chunks/{repository-cache-c5ggqzvz.js → repository-cache-t95zrypp.js} +8 -8
  195. package/dist/chunks/{repository-cache-h74mnx9x.js → repository-cache-tcxc2yk9.js} +10 -10
  196. package/dist/chunks/{repository-cache-r38tb40c.js → repository-cache-tkt1yh5w.js} +8 -8
  197. package/dist/chunks/{repository-cache-hbb7npd7.js → repository-cache-tt8gc4fv.js} +3 -3
  198. package/dist/chunks/{repository-cache-3rq8r7zt.js → repository-cache-twwrpnjg.js} +13 -13
  199. package/dist/chunks/{repository-cache-a4db0rvv.js → repository-cache-v1vh7s4p.js} +7 -7
  200. package/dist/chunks/{repository-cache-ys5mczsm.js → repository-cache-vbj53afp.js} +7 -7
  201. package/dist/chunks/{repository-cache-1acjjqhc.js → repository-cache-vep9yay1.js} +4 -14
  202. package/dist/chunks/{repository-cache-by5v678g.js → repository-cache-vnkjks7b.js} +4 -4
  203. package/dist/chunks/{repository-cache-f39mejfg.js → repository-cache-vs7zhs8r.js} +12 -12
  204. package/dist/chunks/{repository-cache-hs0qwjvp.js → repository-cache-vsa820f9.js} +31 -31
  205. package/dist/chunks/{repository-cache-5f5dfnyg.js → repository-cache-vzjp43bk.js} +1 -1
  206. package/dist/chunks/{repository-cache-mmfyj663.js → repository-cache-w0cy9m9e.js} +6 -6
  207. package/dist/chunks/{repository-cache-fmnd8f8t.js → repository-cache-w7fj1zb2.js} +7 -7
  208. package/dist/chunks/{repository-cache-z6dhcqsk.js → repository-cache-w94dkyq7.js} +25 -25
  209. package/dist/chunks/{repository-cache-5m84d531.js → repository-cache-wrmbd4ct.js} +6 -6
  210. package/dist/chunks/{repository-cache-4bk9s89f.js → repository-cache-wwh9ddtq.js} +9 -9
  211. package/dist/chunks/{repository-cache-xkrbr206.js → repository-cache-wwkjqs8e.js} +7 -7
  212. package/dist/chunks/{repository-cache-n268d91j.js → repository-cache-x1jjhmsh.js} +13 -13
  213. package/dist/chunks/{repository-cache-ht1p01b4.js → repository-cache-x41h92ne.js} +10 -10
  214. package/dist/chunks/{repository-cache-haz4dce7.js → repository-cache-x51ersaw.js} +15 -15
  215. package/dist/chunks/{repository-cache-y8tjtsy7.js → repository-cache-x98xddc7.js} +8 -8
  216. package/dist/chunks/{repository-cache-gpz4bnby.js → repository-cache-xh38a0x5.js} +1 -1
  217. package/dist/chunks/{repository-cache-knhxpfbp.js → repository-cache-xhbe8e91.js} +14 -14
  218. package/dist/chunks/{repository-cache-yfsa45n4.js → repository-cache-xwgk07kc.js} +30 -30
  219. package/dist/chunks/{repository-cache-pmx89wj9.js → repository-cache-y1yvzwwp.js} +12 -12
  220. package/dist/chunks/{repository-cache-twy8yh4t.js → repository-cache-y642zbcz.js} +21 -21
  221. package/dist/chunks/{repository-cache-a58n7r3a.js → repository-cache-ys3h2zrn.js} +38 -38
  222. package/dist/chunks/{repository-cache-bjx1sjef.js → repository-cache-ywt8jp22.js} +7 -7
  223. package/dist/chunks/{repository-cache-nxhdjhjw.js → repository-cache-z0mn1t4q.js} +41 -41
  224. package/dist/chunks/{repository-cache-8reangzk.js → repository-cache-z1fx9rk1.js} +2 -2
  225. package/dist/chunks/{repository-cache-ps8kb85m.js → repository-cache-za7dxrd4.js} +13 -13
  226. package/dist/chunks/{repository-cache-cgc2saxs.js → repository-cache-zj2b8f8d.js} +24 -24
  227. package/dist/chunks/{repository-cache-baaqp4zd.js → repository-cache-zvt5dnpc.js} +3 -3
  228. package/dist/chunks/{repository-cache-zz6a9he3.js → repository-cache-zzv2xjb0.js} +32 -32
  229. package/dist/codemode/instructions.js +6 -6
  230. package/dist/codemode/tool.js +2 -2
  231. package/dist/command.js +73 -73
  232. package/dist/config/discovery.js +68 -68
  233. package/dist/config/normalize.js +83 -83
  234. package/dist/config/plugin/agent.js +96 -96
  235. package/dist/config/plugin/command.js +176 -176
  236. package/dist/config/plugin/compaction.js +127 -127
  237. package/dist/config/plugin/compatibility.js +110 -110
  238. package/dist/config/plugin/formatter.js +95 -95
  239. package/dist/config/plugin/image.js +94 -94
  240. package/dist/config/plugin/instruction.js +95 -95
  241. package/dist/config/plugin/location-watcher.js +94 -94
  242. package/dist/config/plugin/mcp.js +101 -101
  243. package/dist/config/plugin/policy.js +95 -95
  244. package/dist/config/plugin/provider.js +94 -94
  245. package/dist/config/plugin/reference.js +96 -96
  246. package/dist/config/plugin/shell.js +96 -96
  247. package/dist/config/plugin/skill-file.js +83 -83
  248. package/dist/config/plugin/skill-scan.js +3 -3
  249. package/dist/config/plugin/skill.js +113 -113
  250. package/dist/config/plugin/snapshot.js +94 -94
  251. package/dist/config/plugin/source.js +97 -97
  252. package/dist/config/plugin/tool-output.js +95 -95
  253. package/dist/config/plugin/websearch.js +95 -95
  254. package/dist/config/plugin/worktree.js +96 -96
  255. package/dist/config.js +100 -100
  256. package/dist/credential.js +73 -73
  257. package/dist/database/database.js +58 -58
  258. package/dist/database/drizzle/effect-sqlite/driver.js +9 -9
  259. package/dist/database/drizzle/effect-sqlite/index.js +6 -6
  260. package/dist/database/drizzle/effect-sqlite/session.js +6 -6
  261. package/dist/database/drizzle/index.js +10 -10
  262. package/dist/database/drizzle/sqlite-core/effect/db.js +4 -4
  263. package/dist/database/drizzle/sqlite-core/effect/index.js +2 -2
  264. package/dist/database/drizzle/sqlite-core/effect/session.js +5 -5
  265. package/dist/database/drizzle.js +10 -10
  266. package/dist/database/migration.gen.js +41 -41
  267. package/dist/database/migration.js +43 -43
  268. package/dist/database/v1-migration.bun.js +9 -9
  269. package/dist/effect/app-node-builder.js +235 -235
  270. package/dist/effect/keyed-mutex.js +3 -3
  271. package/dist/environment/environment.js +76 -76
  272. package/dist/environment/index.js +78 -78
  273. package/dist/event-logger.js +10 -10
  274. package/dist/file-access.js +86 -86
  275. package/dist/file-mutation.js +77 -77
  276. package/dist/filesystem/location-watcher-policy.js +5 -5
  277. package/dist/filesystem/location-watcher.js +186 -186
  278. package/dist/filesystem/search.js +84 -84
  279. package/dist/filesystem/watcher.js +13 -13
  280. package/dist/filesystem.js +81 -81
  281. package/dist/form.js +61 -61
  282. package/dist/formatter/builtins.js +3 -3
  283. package/dist/formatter.js +73 -73
  284. package/dist/generate.js +87 -87
  285. package/dist/git.js +8 -8
  286. package/dist/github-copilot/chat/openai-compatible-chat-language-model.js +2 -2
  287. package/dist/github-copilot/copilot-provider.js +3 -3
  288. package/dist/github-copilot/models.js +76 -76
  289. package/dist/github-copilot/responses/openai-responses-language-model.js +7 -7
  290. package/dist/github-copilot/responses/openai-responses-prepare-tools.js +4 -4
  291. package/dist/image/photon.js +1 -1
  292. package/dist/image.js +5 -5
  293. package/dist/instance/service.js +5 -5
  294. package/dist/instance.js +317 -317
  295. package/dist/instruction-discovery.js +74 -74
  296. package/dist/instructions/builtins.js +73 -73
  297. package/dist/instructions/index.js +3 -3
  298. package/dist/integration.js +66 -66
  299. package/dist/job.js +68 -68
  300. package/dist/kv.js +63 -63
  301. package/dist/location-activity.js +104 -77
  302. package/dist/location-lifecycle.js +89 -89
  303. package/dist/location-service-map.js +72 -72
  304. package/dist/location-services.js +316 -316
  305. package/dist/location.js +73 -73
  306. package/dist/managed-policy.js +7 -7
  307. package/dist/mcp/client.js +18 -18
  308. package/dist/mcp/index.js +91 -91
  309. package/dist/mcp/instructions.js +106 -106
  310. package/dist/mcp/oauth.js +14 -14
  311. package/dist/mcp/stdio.js +73 -73
  312. package/dist/modal/models.js +76 -76
  313. package/dist/model-resolver.js +83 -83
  314. package/dist/model.js +87 -87
  315. package/dist/models-dev.js +91 -91
  316. package/dist/permission/saved.js +71 -71
  317. package/dist/permission.js +89 -89
  318. package/dist/persistent-pty/index.js +74 -74
  319. package/dist/persistent-pty.js +62 -62
  320. package/dist/plugin/agent.js +66 -66
  321. package/dist/plugin/command.js +84 -84
  322. package/dist/plugin/hooks.js +5 -5
  323. package/dist/plugin/host.js +179 -179
  324. package/dist/plugin/identity.js +3 -3
  325. package/dist/plugin/instance.js +5 -5
  326. package/dist/plugin/internal.js +291 -291
  327. package/dist/plugin/mcp-codemode-defaults.js +3 -3
  328. package/dist/plugin/models-dev.js +80 -80
  329. package/dist/plugin/module.js +95 -95
  330. package/dist/plugin/optimize.js +4 -4
  331. package/dist/plugin/plan.js +84 -84
  332. package/dist/plugin/provider/amazon-bedrock.js +75 -75
  333. package/dist/plugin/provider/azure.js +95 -95
  334. package/dist/plugin/provider/chatgpt.js +93 -93
  335. package/dist/plugin/provider/cloudflare-ai-gateway.js +92 -92
  336. package/dist/plugin/provider/cloudflare-workers-ai.js +92 -92
  337. package/dist/plugin/provider/configured.js +91 -91
  338. package/dist/plugin/provider/digitalocean.js +77 -77
  339. package/dist/plugin/provider/github-copilot.js +79 -79
  340. package/dist/plugin/provider/gitlab.js +77 -77
  341. package/dist/plugin/provider/google-vertex.js +92 -92
  342. package/dist/plugin/provider/llmgateway.js +67 -67
  343. package/dist/plugin/provider/lmstudio.js +100 -100
  344. package/dist/plugin/provider/local.js +97 -97
  345. package/dist/plugin/provider/modal.js +77 -77
  346. package/dist/plugin/provider/ollama.js +100 -100
  347. package/dist/plugin/provider/openai.js +95 -95
  348. package/dist/plugin/provider/opencode.js +82 -82
  349. package/dist/plugin/provider/openrouter.js +76 -76
  350. package/dist/plugin/provider/poe.js +67 -67
  351. package/dist/plugin/provider/sap-ai-core.js +75 -75
  352. package/dist/plugin/provider/snowflake-cortex.js +93 -93
  353. package/dist/plugin/provider/vercel.js +75 -75
  354. package/dist/plugin/provider/vllm.js +98 -98
  355. package/dist/plugin/provider/xai.js +76 -76
  356. package/dist/plugin/provider.js +136 -136
  357. package/dist/plugin/sdk.js +67 -67
  358. package/dist/plugin/service.js +3 -3
  359. package/dist/plugin/skill.js +110 -110
  360. package/dist/plugin/supervisor.js +306 -306
  361. package/dist/plugin/tool-input-repair.js +3 -3
  362. package/dist/plugin/update.js +6 -6
  363. package/dist/plugin/vcs/git.js +72 -72
  364. package/dist/plugin/vcs/hg.js +72 -72
  365. package/dist/plugin/verbosity.js +78 -78
  366. package/dist/plugin/warming.js +93 -93
  367. package/dist/plugin/websearch/exa.js +6 -6
  368. package/dist/plugin/websearch/firecrawl.js +5 -5
  369. package/dist/plugin/websearch/index.js +8 -8
  370. package/dist/plugin/websearch/mcp.js +5 -5
  371. package/dist/plugin/websearch/parallel.js +7 -7
  372. package/dist/plugin/websearch/tavily.js +6 -6
  373. package/dist/plugin/websearch/tinyfish.js +7 -7
  374. package/dist/plugin.js +186 -186
  375. package/dist/project/schema.js +7 -7
  376. package/dist/project.js +74 -74
  377. package/dist/provider.js +74 -74
  378. package/dist/pty.js +82 -82
  379. package/dist/reference/instructions.js +76 -76
  380. package/dist/reference.js +76 -76
  381. package/dist/repository-cache.js +69 -69
  382. package/dist/repository.js +3 -3
  383. package/dist/ripgrep.js +79 -79
  384. package/dist/rpc.js +72 -72
  385. package/dist/session/command.js +64 -64
  386. package/dist/session/compaction.js +111 -111
  387. package/dist/session/context.js +128 -128
  388. package/dist/session/diff.js +72 -72
  389. package/dist/session/environment.js +3 -3
  390. package/dist/session/error.js +4 -4
  391. package/dist/session/execution/restart.js +110 -110
  392. package/dist/session/execution.js +108 -108
  393. package/dist/session/generate.js +128 -128
  394. package/dist/session/history.js +6 -6
  395. package/dist/session/inbox.js +78 -78
  396. package/dist/session/info.js +2 -2
  397. package/dist/session/instruction-entry.js +66 -66
  398. package/dist/session/instruction-state.js +2 -2
  399. package/dist/session/instructions.js +80 -80
  400. package/dist/session/model-request.js +100 -100
  401. package/dist/session/model-transport.js +7 -7
  402. package/dist/session/move.js +108 -108
  403. package/dist/session/projector.js +72 -72
  404. package/dist/session/prompt.js +87 -87
  405. package/dist/session/revert.js +77 -77
  406. package/dist/session/run-coordinator.js +3 -3
  407. package/dist/session/runner/index.js +3 -3
  408. package/dist/session/runner/llm.js +189 -189
  409. package/dist/session/runner/model.js +83 -83
  410. package/dist/session/runner/publish-llm-event.js +93 -93
  411. package/dist/session/runner/retry.js +4 -4
  412. package/dist/session/runner/step.js +105 -105
  413. package/dist/session/runner/to-llm-message.js +7 -7
  414. package/dist/session/schema.js +5 -5
  415. package/dist/session/session.js +136 -136
  416. package/dist/session/shell.js +105 -105
  417. package/dist/session/skill.js +85 -85
  418. package/dist/session/stats.js +8 -8
  419. package/dist/session/store.js +72 -72
  420. package/dist/session/subagent-job.js +174 -174
  421. package/dist/session/system-prompt.js +3 -3
  422. package/dist/session/title.js +131 -131
  423. package/dist/session/to-session-error.js +92 -92
  424. package/dist/session/transfer.js +107 -107
  425. package/dist/session.js +183 -183
  426. package/dist/shell/parse.js +4 -4
  427. package/dist/shell/select.js +7 -7
  428. package/dist/shell.js +104 -104
  429. package/dist/skill/discovery.js +5 -5
  430. package/dist/skill/instructions.js +87 -87
  431. package/dist/skill.js +94 -94
  432. package/dist/snapshot.js +79 -79
  433. package/dist/tool/mcp.js +103 -103
  434. package/dist/tool/plugin/edit.js +98 -98
  435. package/dist/tool/plugin/glob.js +101 -101
  436. package/dist/tool/plugin/grep.js +101 -101
  437. package/dist/tool/plugin/mcp-resource.js +95 -95
  438. package/dist/tool/plugin/opencode.js +89 -89
  439. package/dist/tool/plugin/patch.js +100 -100
  440. package/dist/tool/plugin/question.js +85 -85
  441. package/dist/tool/plugin/read.js +102 -102
  442. package/dist/tool/plugin/shell.js +176 -176
  443. package/dist/tool/plugin/skill.js +91 -91
  444. package/dist/tool/plugin/subagent.js +177 -177
  445. package/dist/tool/plugin/todo.js +113 -113
  446. package/dist/tool/plugin/webfetch.js +92 -92
  447. package/dist/tool/plugin/websearch.js +96 -96
  448. package/dist/tool/plugin/write.js +98 -98
  449. package/dist/tool/read-filesystem.js +81 -81
  450. package/dist/tool-output.js +5 -5
  451. package/dist/tool.js +11 -11
  452. package/dist/types/job.d.ts +1 -0
  453. package/dist/types/location-activity.d.ts +2 -1
  454. package/dist/types/session/error.d.ts +1 -0
  455. package/dist/types/session/execution.d.ts +2 -5
  456. package/dist/types/session/history.d.ts +10 -0
  457. package/dist/types/session/run-coordinator.d.ts +2 -5
  458. package/dist/types/session/transfer.d.ts +10 -2
  459. package/dist/types/worktree/git.d.ts +3 -3
  460. package/dist/v1/config/agent.js +4 -4
  461. package/dist/v1/config/mcp.js +3 -3
  462. package/dist/v1/config/migrate.js +76 -76
  463. package/dist/v1/config/permission.js +3 -3
  464. package/dist/v1/config/plugin.js +3 -3
  465. package/dist/v1/config/provider.js +3 -3
  466. package/dist/variant.js +78 -78
  467. package/dist/vcs.js +75 -75
  468. package/dist/voice.js +75 -75
  469. package/dist/websearch.js +73 -73
  470. package/dist/wellknown/plugin.js +66 -66
  471. package/dist/wellknown.js +71 -71
  472. package/dist/workspace/driver.js +7 -7
  473. package/dist/workspace.js +70 -70
  474. package/dist/worktree/git.js +7 -7
  475. package/dist/worktree/strategies.js +74 -74
  476. package/dist/worktree.js +80 -80
  477. package/package.json +8 -8
  478. package/dist/chunks/repository-cache-9wrj4pc9.js +0 -257
  479. package/dist/chunks/repository-cache-v061a9c2.js +0 -517
  480. package/dist/chunks/repository-cache-w2nph7ph.js +0 -26
  481. /package/dist/chunks/{repository-cache-x2gnjtg4.js → repository-cache-6b2stqvb.js} +0 -0
  482. /package/dist/chunks/{repository-cache-4v4bfvma.js → repository-cache-6vq97qmv.js} +0 -0
  483. /package/dist/chunks/{repository-cache-7v6vae4w.js → repository-cache-a20pjse5.js} +0 -0
  484. /package/dist/chunks/{repository-cache-bq3hn31g.js → repository-cache-b0b3nmkz.js} +0 -0
  485. /package/dist/chunks/{repository-cache-rd8qctj1.js → repository-cache-hpfdwx7h.js} +0 -0
@@ -1,13 +1,13 @@
1
1
  import {
2
2
  useragent2
3
- } from "./repository-cache-yew0zm8m.js";
3
+ } from "./repository-cache-4m3ygwz0.js";
4
4
  import {
5
5
  Service85
6
- } from "./repository-cache-8reangzk.js";
6
+ } from "./repository-cache-z1fx9rk1.js";
7
7
  import {
8
8
  OAuth3,
9
- Event20
10
- } from "./repository-cache-7jwh32ts.js";
9
+ Event21
10
+ } from "./repository-cache-ke7rr379.js";
11
11
  import {
12
12
  key2
13
13
  } from "./repository-cache-addxnjmp.js";
@@ -15,30 +15,42 @@ import {
15
15
  ID14,
16
16
  MethodID2,
17
17
  AuthorizationError2
18
- } from "./repository-cache-g5g9rrdp.js";
18
+ } from "./repository-cache-t8z4ntba.js";
19
19
  import {
20
- Service14
21
- } from "./repository-cache-fww2ha2b.js";
20
+ Service18
21
+ } from "./repository-cache-3g642jy4.js";
22
22
  import {
23
23
  ID13,
24
24
  mergeOverlay2,
25
25
  mergeHeaders2
26
- } from "./repository-cache-9m35c2r0.js";
26
+ } from "./repository-cache-1hyfwtsr.js";
27
27
  import {
28
28
  mergeCapabilities2
29
- } from "./repository-cache-h1f52gh9.js";
29
+ } from "./repository-cache-hnvjv21h.js";
30
30
  import {
31
31
  supports2,
32
- resolve2
33
- } from "./repository-cache-t4rnqcab.js";
32
+ resolve4
33
+ } from "./repository-cache-a9vzac7j.js";
34
34
  import {
35
- ID4,
36
- Input14,
35
+ ID5,
36
+ Input15,
37
37
  Response2
38
- } from "./repository-cache-8t50b4ww.js";
38
+ } from "./repository-cache-ez5pkgh4.js";
39
39
 
40
40
  // src/plugin/provider/opencode.ts
41
- import { Duration, Effect, Equal, FiberHandle, Option, Schema, SchemaGetter, Scope, Semaphore, Stream } from "effect";
41
+ import {
42
+ Clock,
43
+ Duration,
44
+ Effect,
45
+ Equal,
46
+ FiberHandle,
47
+ Option,
48
+ Schema,
49
+ SchemaGetter,
50
+ Scope,
51
+ Semaphore,
52
+ Stream
53
+ } from "effect";
42
54
  import { define } from "@opencode/plugin/effect/plugin";
43
55
  import { FetchHttpClient, HttpClient, HttpClientRequest, HttpClientResponse } from "effect/http";
44
56
  import { ConfigPolicy } from "@opencode/schema/config/policy";
@@ -61,7 +73,7 @@ var RemotePolicies = Schema.Array(Schema.Unknown).pipe(Schema.decodeTo(Schema.Un
61
73
  var RemoteResponse = Schema.Struct({
62
74
  providers: Schema.Record(Schema.String, ConfigProvider.Info),
63
75
  websearch: Schema.Struct({
64
- providerID: ID4
76
+ providerID: ID5
65
77
  }).pipe(Schema.optional),
66
78
  mcp: Schema.Struct({
67
79
  servers: Schema.Record(Schema.String, Schema.Struct({ ...Mcp.RemoteConfig.fields, auth: Schema.Literal("console").pipe(Schema.optional) }))
@@ -176,16 +188,19 @@ function oauth(http) {
176
188
  var OpencodePlugin2 = define({
177
189
  id: "opencode.provider.opencode",
178
190
  effect: Effect.fn(function* (ctx) {
191
+ const disableFree = ["1", "true"].includes(process.env.OPENCODE_DISABLE_FREE_MODELS?.toLowerCase() ?? "");
179
192
  const bus = yield* Service85;
180
193
  const client = yield* HttpClient.HttpClient;
181
194
  const http = HttpClient.mapRequest(client, HttpClientRequest.setHeader("User-Agent", useragent2(ctx.app)));
182
- const managed = yield* Service14;
195
+ const managed = yield* Service18;
183
196
  const scope = yield* Scope.Scope;
184
197
  const loading = Semaphore.makeUnsafe(1);
185
198
  let snapshot = { config: undefined, connection: undefined, organization: undefined, mcp: undefined };
186
199
  let reported;
187
200
  let explainers = [];
201
+ let checked = Number.NEGATIVE_INFINITY;
188
202
  const load = Effect.fn("OpencodePlugin.load")(function* () {
203
+ checked = yield* Clock.currentTimeMillis;
189
204
  const connection = yield* ctx.integration.connection.active("opencode");
190
205
  if (!connection) {
191
206
  reported = undefined;
@@ -269,7 +284,7 @@ var OpencodePlugin2 = define({
269
284
  providers.models.update(providerID, modelID, (model) => {
270
285
  if (config.capabilities?.reasoning !== undefined)
271
286
  model.variants = [
272
- ...resolve2({ ...model, package: model.package ?? providers.get(providerID)?.provider.package }, supports2(config.capabilities.reasoning))
287
+ ...resolve4({ ...model, package: model.package ?? providers.get(providerID)?.provider.package }, supports2(config.capabilities.reasoning))
273
288
  ];
274
289
  for (const variant of config.variants ?? []) {
275
290
  let existing = model.variants.find((item) => item.id === variant.id);
@@ -310,7 +325,7 @@ var OpencodePlugin2 = define({
310
325
  return;
311
326
  const hasKey = Boolean(process.env.OPENCODE_API_KEY || snapshot.connection || item.provider.settings?.apiKey);
312
327
  providers.update(item.provider.id, (provider) => {
313
- if (!hasKey) {
328
+ if (!hasKey && !disableFree) {
314
329
  provider.activation = "enabled";
315
330
  provider.settings = { ...provider.settings, apiKey: "public" };
316
331
  }
@@ -351,7 +366,7 @@ var OpencodePlugin2 = define({
351
366
  const orgID = typeof metadata?.orgID === "string" ? metadata.orgID : undefined;
352
367
  const token = credential.type === "oauth" ? credential.access : credential.key;
353
368
  const server = yield* normalizeServer(serverUrl(credential));
354
- const request = yield* HttpClientRequest.post(`${server}/api/websearch`).pipe(HttpClientRequest.acceptJson, HttpClientRequest.bearerToken(token), HttpClientRequest.setHeaders(orgID ? { "x-org-id": orgID } : {}), HttpClientRequest.schemaBodyJson(Input14)({
369
+ const request = yield* HttpClientRequest.post(`${server}/api/websearch`).pipe(HttpClientRequest.acceptJson, HttpClientRequest.bearerToken(token), HttpClientRequest.setHeaders(orgID ? { "x-org-id": orgID } : {}), HttpClientRequest.schemaBodyJson(Input15)({
355
370
  query: input.query,
356
371
  providerID: descriptor.providerID
357
372
  }));
@@ -388,11 +403,17 @@ var OpencodePlugin2 = define({
388
403
  });
389
404
  });
390
405
  const refresh = () => loading.withPermit(load().pipe(Effect.andThen(apply)));
391
- const check = () => loading.withPermit(load().pipe(Effect.flatMap((next) => Equal.equals(snapshot, next) ? Effect.void : apply(next))));
406
+ const check = (maxAge = Duration.zero) => loading.withPermit(Effect.gen(function* () {
407
+ if ((yield* Clock.currentTimeMillis) - checked < Duration.toMillis(maxAge))
408
+ return;
409
+ const next = yield* load();
410
+ if (!Equal.equals(snapshot, next))
411
+ yield* apply(next);
412
+ }));
392
413
  const explain = (event) => Effect.gen(function* () {
393
414
  if (event.response.status !== 401 && event.response.status !== 403)
394
415
  return;
395
- yield* check();
416
+ yield* check(Duration.seconds(30));
396
417
  const status = reported;
397
418
  if (!status)
398
419
  return;
@@ -417,7 +438,7 @@ var OpencodePlugin2 = define({
417
438
  onlyIfMissing: true
418
439
  });
419
440
  });
420
- yield* bus.subscribe(Event20.Switched).pipe(Stream.filter((event) => event.data.integrationID === ID14.make("opencode")), Stream.runForEach(() => refresh().pipe(Effect.andThen(poll()))), Effect.forkScoped({ startImmediately: true }));
441
+ yield* bus.subscribe(Event21.Switched).pipe(Stream.filter((event) => event.data.integrationID === ID14.make("opencode")), Stream.runForEach(() => refresh().pipe(Effect.andThen(poll()))), Effect.forkScoped({ startImmediately: true }));
421
442
  yield* poll();
422
443
  })
423
444
  });
@@ -469,7 +490,8 @@ function credentialHeaders(value) {
469
490
  };
470
491
  }
471
492
  function serverUrl(value) {
472
- return typeof value.metadata?.server === "string" ? value.metadata.server : defaultServer;
493
+ const server = typeof value.metadata?.server === "string" ? value.metadata.server : defaultServer;
494
+ return server.replace(/^https:\/\/console\.opencode\.ai(?=\/|$)/, defaultServer);
473
495
  }
474
496
  function withoutCredentials(body) {
475
497
  return body && Object.fromEntries(Object.entries(body).filter(([key]) => !["apiKey", "authToken", "accessToken"].includes(key)));
@@ -6,7 +6,7 @@ import {
6
6
  var exports_identity = {};
7
7
  __export(exports_identity, {
8
8
  IdentityPlugin: () => exports_identity,
9
- Plugin: () => Plugin10,
9
+ Plugin: () => Plugin48,
10
10
  identity: () => identity2
11
11
  });
12
12
  import { SystemPart } from "@opencode/ai";
@@ -22,7 +22,7 @@ function identity2(model) {
22
22
  ].join(`
23
23
  `);
24
24
  }
25
- var Plugin10 = define({
25
+ var Plugin48 = define({
26
26
  id: "opencode.prompt.identity",
27
27
  effect: Effect.fn("IdentityPlugin")(function* (ctx) {
28
28
  const hook = (event) => Effect.gen(function* () {
@@ -35,4 +35,4 @@ var Plugin10 = define({
35
35
  })
36
36
  });
37
37
 
38
- export { identity2, Plugin10, exports_identity };
38
+ export { identity2, Plugin48, exports_identity };
@@ -2,13 +2,13 @@ import {
2
2
  ID13,
3
3
  aisdk2,
4
4
  mergeOverlay2
5
- } from "./repository-cache-9m35c2r0.js";
5
+ } from "./repository-cache-1hyfwtsr.js";
6
6
  import {
7
- ID12,
7
+ ID8,
8
8
  VariantID2,
9
9
  Family2,
10
- Info20
11
- } from "./repository-cache-h1f52gh9.js";
10
+ Info18
11
+ } from "./repository-cache-hnvjv21h.js";
12
12
  import {
13
13
  __export
14
14
  } from "./repository-cache-9rqn6x4v.js";
@@ -94,7 +94,7 @@ function derive2(baseURL, remote, existing) {
94
94
  result.set(id, build(id, current, baseURL, model));
95
95
  }
96
96
  for (const [id, model] of remote) {
97
- const key = ID12.make(id);
97
+ const key = ID8.make(id);
98
98
  if (result.has(key))
99
99
  continue;
100
100
  result.set(key, build(key, model, baseURL));
@@ -118,10 +118,10 @@ function build(id, remote, baseURL, previous) {
118
118
  const usdPerMillion = prices && prices.batch_size > 0 ? 1e4 / prices.batch_size : 0;
119
119
  const version = remote.version.startsWith(`${remote.id}-`) ? remote.version.slice(remote.id.length + 1) : remote.version;
120
120
  const released = previous?.time.released || Date.parse(version);
121
- return Info20.make({
122
- ...Info20.default(ID13.githubCopilot, id),
121
+ return Info18.make({
122
+ ...Info18.default(ID13.githubCopilot, id),
123
123
  id,
124
- modelID: ID12.make(remote.id),
124
+ modelID: ID8.make(remote.id),
125
125
  providerID: ID13.githubCopilot,
126
126
  family: previous?.family ?? Family2.make(remote.capabilities.family),
127
127
  name: previous?.name ?? remote.name,
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  ID13
3
- } from "./repository-cache-9m35c2r0.js";
3
+ } from "./repository-cache-1hyfwtsr.js";
4
4
  import {
5
5
  configuredSettings2
6
- } from "./repository-cache-tzaz3z0t.js";
6
+ } from "./repository-cache-btpxpz9q.js";
7
7
 
8
8
  // src/plugin/provider/cloudflare-ai-gateway.ts
9
9
  import { Effect } from "effect";
@@ -11,8 +11,8 @@ import {
11
11
  // src/shell/select.ts
12
12
  var exports_select = {};
13
13
  __export(exports_select, {
14
- Options: () => Options7,
15
- Service: () => Service59,
14
+ Options: () => Options9,
15
+ Service: () => Service61,
16
16
  ShellSelect: () => exports_select,
17
17
  args: () => args2,
18
18
  configured: () => configured9,
@@ -21,7 +21,7 @@ __export(exports_select, {
21
21
  list: () => list4,
22
22
  login: () => login2,
23
23
  name: () => name16,
24
- node: () => node63,
24
+ node: () => node64,
25
25
  ps: () => ps2,
26
26
  resolve: () => resolve3
27
27
  });
@@ -43,11 +43,11 @@ var META = {
43
43
  sh: { login: true },
44
44
  zsh: { login: true }
45
45
  };
46
- var Options7 = Schema.Struct({
46
+ var Options9 = Schema.Struct({
47
47
  gitbash: Schema.optional(Schema.String)
48
48
  });
49
49
 
50
- class Service59 extends Context.Service()("@opencode/ShellSelect") {
50
+ class Service61 extends Context.Service()("@opencode/ShellSelect") {
51
51
  }
52
52
  function stat(file) {
53
53
  return statSync(file, { throwIfNoEntry: false }) ?? undefined;
@@ -188,7 +188,7 @@ async function list4(options, bin) {
188
188
  const shells = process.platform === "win32" ? win(options, bin) : await unix();
189
189
  return shells.filter((shell) => executable(shell, options, bin)).map((shell) => info(shell, options, bin));
190
190
  }
191
- var layer = (options) => Layer.effect(Service59, Effect.gen(function* () {
191
+ var layer = (options) => Layer.effect(Service61, Effect.gen(function* () {
192
192
  const global = yield* Global.Service;
193
193
  const state = create3({
194
194
  name: "shell-select",
@@ -199,7 +199,7 @@ var layer = (options) => Layer.effect(Service59, Effect.gen(function* () {
199
199
  }
200
200
  })
201
201
  });
202
- return Service59.of({
202
+ return Service61.of({
203
203
  transform: state.transform,
204
204
  reload: state.reload,
205
205
  resolve: (input) => Effect.sync(() => resolve3(input, state.get().shell, options, global.bin)),
@@ -207,8 +207,8 @@ var layer = (options) => Layer.effect(Service59, Effect.gen(function* () {
207
207
  });
208
208
  }));
209
209
  function configured9(options) {
210
- return makeLocationNode({ service: Service59, layer: layer(options), deps: [Global.node] });
210
+ return makeLocationNode({ service: Service61, layer: layer(options), deps: [Global.node] });
211
211
  }
212
- var node63 = configured9();
212
+ var node64 = configured9();
213
213
 
214
- export { Options7, Service59, gitbash2, name16, login2, ps2, args2, environment2, resolve3, list4, configured9, node63, exports_select };
214
+ export { Options9, Service61, gitbash2, name16, login2, ps2, args2, environment2, resolve3, list4, configured9, node64, exports_select };
@@ -1,19 +1,19 @@
1
1
  import {
2
2
  ID11
3
- } from "./repository-cache-wqz8rkkb.js";
3
+ } from "./repository-cache-5xte2yyn.js";
4
4
  import {
5
5
  AbsolutePath2
6
6
  } from "./repository-cache-z5v4ffb3.js";
7
7
  import {
8
- Info11
9
- } from "./repository-cache-5m84d531.js";
8
+ Info14
9
+ } from "./repository-cache-wrmbd4ct.js";
10
10
  import {
11
11
  migrateAgent2
12
- } from "./repository-cache-1ngx28bn.js";
12
+ } from "./repository-cache-1rf4yw31.js";
13
13
  import {
14
14
  latest2,
15
- Service60
16
- } from "./repository-cache-nxhdjhjw.js";
15
+ Service56
16
+ } from "./repository-cache-z0mn1t4q.js";
17
17
  import {
18
18
  parseOption2
19
19
  } from "./repository-cache-8m6m0r52.js";
@@ -22,10 +22,10 @@ import {
22
22
  } from "./repository-cache-9rqn6x4v.js";
23
23
 
24
24
  // src/config/plugin/agent.ts
25
- var exports_agent2 = {};
26
- __export(exports_agent2, {
27
- ConfigAgentPlugin: () => exports_agent2,
28
- Plugin: () => Plugin47
25
+ var exports_agent = {};
26
+ __export(exports_agent, {
27
+ ConfigAgentPlugin: () => exports_agent,
28
+ Plugin: () => Plugin6
29
29
  });
30
30
  import { define } from "@opencode/plugin/effect/plugin";
31
31
  import { Document, Info } from "@opencode/schema/config";
@@ -40,14 +40,14 @@ var legacySources = [
40
40
  ];
41
41
  var sourceDirectories = ["agent", "agents", "mode", "modes"];
42
42
  var decodeAgent = Schema.decodeUnknownOption(ConfigAgent.Info);
43
- var decodeLegacyAgent = Schema.decodeUnknownOption(Info11);
43
+ var decodeLegacyAgent = Schema.decodeUnknownOption(Info14);
44
44
  var decodeConfig = Schema.decodeUnknownOption(Info);
45
45
  var pathActions = ["external_directory", "read", "edit"];
46
46
  var agentKeys = new Set(["variant", ...Object.keys(ConfigAgent.Info.fields)]);
47
- var Plugin47 = define({
47
+ var Plugin6 = define({
48
48
  id: "opencode.config.agent",
49
49
  effect: Effect.fn(function* (ctx) {
50
- const config = yield* Service60;
50
+ const config = yield* Service56;
51
51
  const fs = yield* FSUtil.Service;
52
52
  const global = yield* Global.Service;
53
53
  const loadEntry = Effect.fnUntraced(function* (entry) {
@@ -161,4 +161,4 @@ function decode(file, content) {
161
161
  return new Document({ type: "document", path: AbsolutePath2.make(file.filepath), info });
162
162
  }
163
163
 
164
- export { Plugin47, exports_agent2 };
164
+ export { Plugin6, exports_agent };
@@ -1,10 +1,10 @@
1
1
  import {
2
2
  latest2,
3
- Service60
4
- } from "./repository-cache-nxhdjhjw.js";
3
+ Service56
4
+ } from "./repository-cache-z0mn1t4q.js";
5
5
  import {
6
- Service59
7
- } from "./repository-cache-g2kfam58.js";
6
+ Service61
7
+ } from "./repository-cache-kvk0xsab.js";
8
8
  import {
9
9
  observe2
10
10
  } from "./repository-cache-qsdy395h.js";
@@ -13,18 +13,18 @@ import {
13
13
  } from "./repository-cache-9rqn6x4v.js";
14
14
 
15
15
  // src/config/plugin/shell.ts
16
- var exports_shell2 = {};
17
- __export(exports_shell2, {
18
- ConfigShellPlugin: () => exports_shell2,
19
- Plugin: () => Plugin45
16
+ var exports_shell = {};
17
+ __export(exports_shell, {
18
+ ConfigShellPlugin: () => exports_shell,
19
+ Plugin: () => Plugin17
20
20
  });
21
21
  import { define } from "@opencode/plugin/effect/plugin";
22
22
  import { Effect } from "effect";
23
- var Plugin45 = define({
23
+ var Plugin17 = define({
24
24
  id: "opencode.config.shell",
25
25
  effect: Effect.fn(function* (ctx) {
26
- const config = yield* Service60;
27
- const shell = yield* Service59;
26
+ const config = yield* Service56;
27
+ const shell = yield* Service61;
28
28
  const loaded = yield* observe2(config, ctx.event, shell.reload());
29
29
  yield* shell.transform((editor) => {
30
30
  const configured = latest2(loaded.entries, "shell");
@@ -34,4 +34,4 @@ var Plugin45 = define({
34
34
  })
35
35
  });
36
36
 
37
- export { Plugin45, exports_shell2 };
37
+ export { Plugin17, exports_shell };
@@ -1,34 +1,34 @@
1
1
  import {
2
2
  Service85,
3
3
  node89
4
- } from "./repository-cache-8reangzk.js";
4
+ } from "./repository-cache-z1fx9rk1.js";
5
5
  import {
6
6
  Service80,
7
7
  node84
8
- } from "./repository-cache-djbskq1b.js";
8
+ } from "./repository-cache-gtdxectv.js";
9
9
  import {
10
- Service83,
11
- node87
12
- } from "./repository-cache-wp7khyzv.js";
13
- import {
14
- Ref4,
15
10
  Service82,
16
11
  node86
17
- } from "./repository-cache-k9gaxmgh.js";
12
+ } from "./repository-cache-95t8ye7z.js";
13
+ import {
14
+ Ref4,
15
+ Service81,
16
+ node85
17
+ } from "./repository-cache-8pvf9cdd.js";
18
18
  import {
19
19
  canonical3
20
- } from "./repository-cache-y50tnaxc.js";
20
+ } from "./repository-cache-qz7vxdk7.js";
21
21
  import {
22
22
  SessionEvent2
23
23
  } from "./repository-cache-ec1grn59.js";
24
24
  import {
25
- Service63,
26
- node67
27
- } from "./repository-cache-77d0na5t.js";
25
+ Service73,
26
+ node77
27
+ } from "./repository-cache-2ntc19nv.js";
28
28
  import {
29
- Service19,
30
- node22
31
- } from "./repository-cache-jargxt5j.js";
29
+ Service71,
30
+ node75
31
+ } from "./repository-cache-f31q5wm1.js";
32
32
  import {
33
33
  __export
34
34
  } from "./repository-cache-9rqn6x4v.js";
@@ -37,23 +37,23 @@ import {
37
37
  var exports_location_lifecycle = {};
38
38
  __export(exports_location_lifecycle, {
39
39
  LocationLifecycle: () => exports_location_lifecycle,
40
- Service: () => Service18,
41
- node: () => node21
40
+ Service: () => Service70,
41
+ node: () => node74
42
42
  });
43
43
  import { Context, Deferred, Effect, Layer, Schema } from "effect";
44
44
  import { makeLocationNode } from "@opencode/util/effect/app-node";
45
45
  import { LocationEvent } from "@opencode/schema/location-event";
46
46
  var isSessionEvent = Schema.is(SessionEvent2.Durable);
47
47
 
48
- class Service18 extends Context.Service()("@opencode/LocationLifecycle") {
48
+ class Service70 extends Context.Service()("@opencode/LocationLifecycle") {
49
49
  }
50
- var layer = Layer.effect(Service18, Effect.gen(function* () {
50
+ var layer = Layer.effect(Service70, Effect.gen(function* () {
51
51
  const bus = yield* Service85;
52
- const location = yield* Service82;
53
- const permission = yield* Service63;
52
+ const location = yield* Service81;
53
+ const permission = yield* Service73;
54
54
  const forms = yield* Service80;
55
- const rpc = yield* Service19;
56
- const project = yield* Service83;
55
+ const rpc = yield* Service71;
56
+ const project = yield* Service82;
57
57
  const scope = yield* Effect.scope;
58
58
  yield* project.activate(location.project.id);
59
59
  const unsubscribe = yield* bus.listen((event) => {
@@ -80,15 +80,15 @@ var layer = Layer.effect(Service18, Effect.gen(function* () {
80
80
  });
81
81
  }).pipe(Effect.ensuring(Deferred.succeed(done, undefined)));
82
82
  }).pipe(Effect.uninterruptible);
83
- return Service18.of({
83
+ return Service70.of({
84
84
  isClosed: () => closed,
85
85
  shutdown
86
86
  });
87
87
  }));
88
- var node21 = makeLocationNode({
89
- service: Service18,
88
+ var node74 = makeLocationNode({
89
+ service: Service70,
90
90
  layer,
91
- deps: [node89, node86, node67, node87, node84, node22]
91
+ deps: [node89, node85, node77, node86, node84, node75]
92
92
  });
93
93
 
94
- export { Service18, node21, exports_location_lifecycle };
94
+ export { Service70, node74, exports_location_lifecycle };
@@ -2,7 +2,7 @@ import {
2
2
  SQLiteEffectPreparedQuery2,
3
3
  SQLiteEffectSession2,
4
4
  SQLiteEffectTransaction2
5
- } from "./repository-cache-6nq3099y.js";
5
+ } from "./repository-cache-0nz7j1v1.js";
6
6
 
7
7
  // src/database/drizzle/effect-sqlite/session.ts
8
8
  import * as Context from "effect/Context";
@@ -1,10 +1,10 @@
1
1
  import {
2
2
  OAuth3
3
- } from "./repository-cache-7jwh32ts.js";
3
+ } from "./repository-cache-ke7rr379.js";
4
4
  import {
5
5
  ID14,
6
6
  MethodID2
7
- } from "./repository-cache-g5g9rrdp.js";
7
+ } from "./repository-cache-t8z4ntba.js";
8
8
  import {
9
9
  success2,
10
10
  error2
@@ -1,13 +1,13 @@
1
1
  import {
2
2
  Service85,
3
3
  node89
4
- } from "./repository-cache-8reangzk.js";
4
+ } from "./repository-cache-z1fx9rk1.js";
5
5
  import {
6
6
  create3
7
7
  } from "./repository-cache-rdw6cm16.js";
8
8
  import {
9
9
  evaluate2
10
- } from "./repository-cache-77d0na5t.js";
10
+ } from "./repository-cache-2ntc19nv.js";
11
11
  import {
12
12
  __export
13
13
  } from "./repository-cache-9rqn6x4v.js";
@@ -17,16 +17,16 @@ var exports_skill5 = {};
17
17
  __export(exports_skill5, {
18
18
  DirectorySource: () => DirectorySource2,
19
19
  EmbeddedSource: () => EmbeddedSource2,
20
- Event: () => Event12,
21
- ID: () => ID7,
22
- Info: () => Info16,
20
+ Event: () => Event5,
21
+ ID: () => ID3,
22
+ Info: () => Info5,
23
23
  Name: () => Name2,
24
- Service: () => Service62,
24
+ Service: () => Service34,
25
25
  Skill: () => exports_skill5,
26
- Source: () => Source4,
26
+ Source: () => Source3,
27
27
  UrlSource: () => UrlSource2,
28
28
  available: () => available3,
29
- node: () => node66,
29
+ node: () => node37,
30
30
  prepare: () => prepare3,
31
31
  toModelOutput: () => toModelOutput3
32
32
  });
@@ -35,13 +35,13 @@ import { FSUtil } from "@opencode/util/fs-util";
35
35
  import path from "path";
36
36
  import { Context, Effect, Layer } from "effect";
37
37
  import { Skill } from "@opencode/schema/skill";
38
- import { Event as Event12 } from "@opencode/schema/skill";
38
+ import { Event as Event5 } from "@opencode/schema/skill";
39
39
  var DirectorySource2 = Skill.DirectorySource;
40
40
  var UrlSource2 = Skill.UrlSource;
41
41
  var EmbeddedSource2 = Skill.EmbeddedSource;
42
- var Source4 = Skill.Source;
43
- var Info16 = Skill.Info;
44
- var ID7 = Skill.ID;
42
+ var Source3 = Skill.Source;
43
+ var Info5 = Skill.Info;
44
+ var ID3 = Skill.ID;
45
45
  var Name2 = Skill.Name;
46
46
  var available3 = (skills, permissions) => skills.filter((skill) => evaluate2("skill", skill.id, permissions).effect !== "deny");
47
47
  var toModelOutput3 = (skill, files) => {
@@ -78,33 +78,33 @@ var prepare3 = Effect.fn("Skill.prepare")(function* (fs, skill) {
78
78
  };
79
79
  });
80
80
 
81
- class Service62 extends Context.Service()("@opencode/Skill") {
81
+ class Service34 extends Context.Service()("@opencode/Skill") {
82
82
  }
83
- var layer = Layer.effect(Service62, Effect.gen(function* () {
83
+ var layer = Layer.effect(Service34, Effect.gen(function* () {
84
84
  const bus = yield* Service85;
85
85
  const state = create3({
86
86
  name: "skill",
87
87
  initial: () => ({ skills: new Map }),
88
88
  editor: (editor) => ({
89
89
  list: () => Array.from(editor.skills.values()),
90
- get: (id) => editor.skills.get(ID7.make(id)),
90
+ get: (id) => editor.skills.get(ID3.make(id)),
91
91
  add: (skill) => {
92
92
  editor.skills.set(skill.id, { ...skill });
93
93
  },
94
94
  update: (id, update) => {
95
- const current = editor.skills.get(ID7.make(id));
95
+ const current = editor.skills.get(ID3.make(id));
96
96
  if (!current)
97
97
  return;
98
98
  update(current);
99
- current.id = ID7.make(id);
99
+ current.id = ID3.make(id);
100
100
  },
101
101
  remove: (id) => {
102
- editor.skills.delete(ID7.make(id));
102
+ editor.skills.delete(ID3.make(id));
103
103
  }
104
104
  }),
105
105
  notify: () => bus.publish(Skill.Event.Updated, {}).pipe(Effect.asVoid)
106
106
  });
107
- return Service62.of({
107
+ return Service34.of({
108
108
  transform: state.transform,
109
109
  reload: state.reload,
110
110
  get: Effect.fn("Skill.get")(function* (id) {
@@ -115,10 +115,10 @@ var layer = Layer.effect(Service62, Effect.gen(function* () {
115
115
  })
116
116
  });
117
117
  }));
118
- var node66 = makeLocationNode({
119
- service: Service62,
118
+ var node37 = makeLocationNode({
119
+ service: Service34,
120
120
  layer,
121
121
  deps: [node89]
122
122
  });
123
123
 
124
- export { DirectorySource2, UrlSource2, EmbeddedSource2, Source4, Info16, ID7, Name2, available3, toModelOutput3, prepare3, Service62, node66, exports_skill5, Event12 };
124
+ export { DirectorySource2, UrlSource2, EmbeddedSource2, Source3, Info5, ID3, Name2, available3, toModelOutput3, prepare3, Service34, node37, exports_skill5, Event5 };