@opencode-ai/core 0.0.0-dev-19196 → 0.0.0-dev-19202

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 (781) hide show
  1. package/dist/account/sql.js +1 -1
  2. package/dist/agent.js +79 -79
  3. package/dist/aisdk-native.js +2 -2
  4. package/dist/aisdk.js +6 -6
  5. package/dist/app.js +9 -9
  6. package/dist/bus.js +67 -67
  7. package/dist/catalog.js +83 -83
  8. package/dist/chunks/{shell-qkar7ddm.js → model-resolver-01q1wmsg.js} +15 -15
  9. package/dist/chunks/{shell-ecqg7bmw.js → model-resolver-04nrqb8q.js} +18 -18
  10. package/dist/chunks/{shell-brg38b3f.js → model-resolver-0ancwgef.js} +5 -5
  11. package/dist/chunks/{shell-fkpvx5pg.js → model-resolver-0bhzd4d6.js} +42 -41
  12. package/dist/chunks/{shell-0e0xafbb.js → model-resolver-0e0xafbb.js} +2 -2
  13. package/dist/chunks/{shell-0paq2nw3.js → model-resolver-0paq2nw3.js} +1 -1
  14. package/dist/chunks/{shell-0q0f95c6.js → model-resolver-0q0f95c6.js} +1 -1
  15. package/dist/chunks/{shell-fe9mb3y1.js → model-resolver-0q56w8vj.js} +10 -10
  16. package/dist/chunks/{shell-6erngkvb.js → model-resolver-0qr0cjqp.js} +33 -33
  17. package/dist/chunks/{shell-0s9ayhjt.js → model-resolver-0s9ayhjt.js} +1 -1
  18. package/dist/chunks/{shell-kkqvv4hs.js → model-resolver-0vcgwdj5.js} +28 -28
  19. package/dist/chunks/{shell-zmjynawk.js → model-resolver-0xd2d7hb.js} +5 -5
  20. package/dist/chunks/{shell-4kjzcy7g.js → model-resolver-0xvppt2q.js} +15 -15
  21. package/dist/chunks/{shell-n3xn0h0f.js → model-resolver-15pjntb5.js} +15 -15
  22. package/dist/chunks/{shell-z8c5n9kb.js → model-resolver-16hj88rm.js} +11 -11
  23. package/dist/chunks/{shell-kyd4za44.js → model-resolver-1bwaarmf.js} +4 -4
  24. package/dist/chunks/{shell-1ct4r87x.js → model-resolver-1ct4r87x.js} +1 -1
  25. package/dist/chunks/{shell-jdnwrjf1.js → model-resolver-1hy241bm.js} +3 -3
  26. package/dist/chunks/{shell-pjy2hnng.js → model-resolver-1mvksd4s.js} +4 -4
  27. package/dist/chunks/{shell-xb5d6gcm.js → model-resolver-1nfczbs6.js} +26 -26
  28. package/dist/chunks/{shell-mg8hyy97.js → model-resolver-1rm0drdm.js} +2 -2
  29. package/dist/chunks/model-resolver-1tymz7y1.js +22 -0
  30. package/dist/chunks/{shell-35kceag9.js → model-resolver-1wj6fe6f.js} +43 -43
  31. package/dist/chunks/{shell-m3fm0fm8.js → model-resolver-1ydgq2r4.js} +5 -5
  32. package/dist/chunks/{shell-v97587cg.js → model-resolver-1zsnv1c7.js} +5 -5
  33. package/dist/chunks/{shell-21r38tys.js → model-resolver-21r38tys.js} +1 -1
  34. package/dist/chunks/{shell-2402vzrj.js → model-resolver-2402vzrj.js} +1 -1
  35. package/dist/chunks/{shell-7pb57fb0.js → model-resolver-25g0a3wm.js} +36 -36
  36. package/dist/chunks/{shell-05mkz72h.js → model-resolver-29vm76e6.js} +20 -20
  37. package/dist/chunks/{shell-29x78va6.js → model-resolver-29x78va6.js} +2 -2
  38. package/dist/chunks/{shell-2a5m3afh.js → model-resolver-2a5m3afh.js} +1 -1
  39. package/dist/chunks/{shell-4t7hsdzk.js → model-resolver-2ejk6t2t.js} +14 -14
  40. package/dist/chunks/{shell-78vzyx6d.js → model-resolver-2gqx3cqb.js} +12 -12
  41. package/dist/chunks/{shell-2ht70gj7.js → model-resolver-2ht70gj7.js} +1 -1
  42. package/dist/chunks/{shell-qgn6gcr1.js → model-resolver-2k8khapm.js} +5 -5
  43. package/dist/chunks/{shell-mmj01rc6.js → model-resolver-2m5rhxa5.js} +6 -6
  44. package/dist/chunks/{shell-enwn0tzc.js → model-resolver-2pgk7vty.js} +2 -2
  45. package/dist/chunks/{shell-p3e4re21.js → model-resolver-2w6bfmvf.js} +1 -1
  46. package/dist/chunks/{shell-8nkz5pt3.js → model-resolver-34rgtrgw.js} +10 -10
  47. package/dist/chunks/{shell-36vsdr69.js → model-resolver-36vsdr69.js} +2 -2
  48. package/dist/chunks/{shell-a6y0jgay.js → model-resolver-3b41mhr3.js} +9 -9
  49. package/dist/chunks/{shell-r99b7fbd.js → model-resolver-3cz2rdwz.js} +11 -11
  50. package/dist/chunks/{shell-3fc6dm20.js → model-resolver-3fc6dm20.js} +1 -1
  51. package/dist/chunks/{shell-417y9pm1.js → model-resolver-3g3bkchr.js} +4 -4
  52. package/dist/chunks/{shell-3hepkmqq.js → model-resolver-3hepkmqq.js} +1 -1
  53. package/dist/chunks/{shell-sxaj9jh7.js → model-resolver-3mrm2hwf.js} +8 -8
  54. package/dist/chunks/{shell-3qzbfqsy.js → model-resolver-3qzbfqsy.js} +2 -2
  55. package/dist/chunks/{shell-3smtnn6g.js → model-resolver-3smtnn6g.js} +1 -1
  56. package/dist/chunks/{shell-3tvqynh2.js → model-resolver-3tvqynh2.js} +1 -1
  57. package/dist/chunks/{shell-nv1z9knr.js → model-resolver-4325r94x.js} +3 -3
  58. package/dist/chunks/{shell-454k5vzh.js → model-resolver-454k5vzh.js} +1 -1
  59. package/dist/chunks/{shell-gfv1e1ds.js → model-resolver-45c840ky.js} +46 -46
  60. package/dist/chunks/{shell-2g7fb4sy.js → model-resolver-4hdyv2zw.js} +6 -6
  61. package/dist/chunks/{shell-6rjzzdxy.js → model-resolver-4kbdx47m.js} +3 -3
  62. package/dist/chunks/{shell-4r2nyarf.js → model-resolver-4r2nyarf.js} +1 -1
  63. package/dist/chunks/{shell-dvxcgtgp.js → model-resolver-52z9exmq.js} +29 -29
  64. package/dist/chunks/{shell-4wt00r3g.js → model-resolver-56293sgk.js} +9 -9
  65. package/dist/chunks/{shell-bmfd242v.js → model-resolver-57smdxt4.js} +20 -20
  66. package/dist/chunks/{shell-5daktx2q.js → model-resolver-5daktx2q.js} +1 -1
  67. package/dist/chunks/{shell-5fmxt4p5.js → model-resolver-5fmxt4p5.js} +1 -1
  68. package/dist/chunks/{shell-5jvc5tg2.js → model-resolver-5jvc5tg2.js} +1 -1
  69. package/dist/chunks/{shell-kv8syyjy.js → model-resolver-5mhvc9ws.js} +15 -15
  70. package/dist/chunks/{shell-xa232ce3.js → model-resolver-5qdzg6f9.js} +17 -17
  71. package/dist/chunks/{shell-jsdxtgmy.js → model-resolver-6926ty5t.js} +8 -8
  72. package/dist/chunks/{shell-fy2metxv.js → model-resolver-6atxajng.js} +84 -84
  73. package/dist/chunks/{shell-00pcw284.js → model-resolver-6bktjyyc.js} +13 -13
  74. package/dist/chunks/{shell-haggcxkj.js → model-resolver-6eq76p0n.js} +9 -9
  75. package/dist/chunks/{shell-c88sz3qs.js → model-resolver-6ks5kqks.js} +16 -16
  76. package/dist/chunks/{shell-eye58hw2.js → model-resolver-6rb05nrd.js} +19 -19
  77. package/dist/chunks/{shell-jphw73by.js → model-resolver-6tt6g98m.js} +20 -20
  78. package/dist/chunks/{shell-g52wq5zw.js → model-resolver-6yj45qfn.js} +4 -4
  79. package/dist/chunks/{shell-711hfp6y.js → model-resolver-711hfp6y.js} +2 -2
  80. package/dist/chunks/{shell-72nftnjy.js → model-resolver-72nftnjy.js} +2 -2
  81. package/dist/chunks/{shell-14s8ve6g.js → model-resolver-768z0hjh.js} +1 -1
  82. package/dist/chunks/{shell-7bmhse3q.js → model-resolver-7bmhse3q.js} +1 -1
  83. package/dist/chunks/{shell-y68jbn75.js → model-resolver-7cm3k2ba.js} +16 -16
  84. package/dist/chunks/{shell-nsw1yxtn.js → model-resolver-7fjq4tnf.js} +18 -18
  85. package/dist/chunks/{shell-ywcb5etp.js → model-resolver-7wxchhek.js} +40 -57
  86. package/dist/chunks/{shell-7yp0j7my.js → model-resolver-7x9n72sf.js} +13 -13
  87. package/dist/chunks/{shell-k37p1w3a.js → model-resolver-84vg3atq.js} +7 -7
  88. package/dist/chunks/{shell-08gqv4wh.js → model-resolver-85mg7hhh.js} +27 -27
  89. package/dist/chunks/{shell-7r4ym1qc.js → model-resolver-8arm59qw.js} +26 -26
  90. package/dist/chunks/{shell-84ws7vk9.js → model-resolver-8b66w0av.js} +31 -31
  91. package/dist/chunks/{shell-d6se384q.js → model-resolver-8bcbmssv.js} +17 -17
  92. package/dist/chunks/{shell-7vcgspzg.js → model-resolver-8na2q2w3.js} +32 -32
  93. package/dist/chunks/{shell-v9mxw17g.js → model-resolver-8rk7xmhz.js} +30 -30
  94. package/dist/chunks/{shell-3w01mqch.js → model-resolver-8vfmqbrd.js} +23 -23
  95. package/dist/chunks/{shell-y2cqme3r.js → model-resolver-93a8yfjt.js} +5 -5
  96. package/dist/chunks/{shell-mtcjf44p.js → model-resolver-97f5v037.js} +4 -4
  97. package/dist/chunks/model-resolver-9ccst39j.js +460 -0
  98. package/dist/chunks/{shell-hay8k9wj.js → model-resolver-9cnab95r.js} +24 -24
  99. package/dist/chunks/{shell-9qm9egsn.js → model-resolver-9qm9egsn.js} +2 -2
  100. package/dist/chunks/{shell-ctd4qdmr.js → model-resolver-9tjsbxxt.js} +4 -4
  101. package/dist/chunks/{shell-7908ykgb.js → model-resolver-9z09jxjk.js} +5 -5
  102. package/dist/chunks/{shell-k0zgeteb.js → model-resolver-a12rb003.js} +21 -21
  103. package/dist/chunks/{shell-2sfwn1pw.js → model-resolver-a75v1xyy.js} +11 -11
  104. package/dist/chunks/{shell-3f9n5hdq.js → model-resolver-a9c7wcwq.js} +12 -12
  105. package/dist/chunks/{shell-aaet6srn.js → model-resolver-aaet6srn.js} +2 -2
  106. package/dist/chunks/{shell-0xzew176.js → model-resolver-agpxhpem.js} +46 -46
  107. package/dist/chunks/{shell-ajtjthsy.js → model-resolver-ajtjthsy.js} +2 -2
  108. package/dist/chunks/{shell-037vejbr.js → model-resolver-amhrny11.js} +14 -14
  109. package/dist/chunks/{shell-bct739vz.js → model-resolver-an7cqtb7.js} +4 -4
  110. package/dist/chunks/{shell-b6gygkdw.js → model-resolver-b6gygkdw.js} +2 -2
  111. package/dist/chunks/{shell-b9wsbatv.js → model-resolver-b9wsbatv.js} +1 -1
  112. package/dist/chunks/{shell-ckv8rq3a.js → model-resolver-bc3eevve.js} +15 -15
  113. package/dist/chunks/{shell-gr7vg3y5.js → model-resolver-bfenx2tw.js} +4 -4
  114. package/dist/chunks/{shell-bsvvsrn1.js → model-resolver-bphmvjfp.js} +5 -5
  115. package/dist/chunks/{shell-7t18mxkv.js → model-resolver-bta0rsxr.js} +3 -3
  116. package/dist/chunks/{shell-42t0dhr4.js → model-resolver-c05z1hzq.js} +7 -7
  117. package/dist/chunks/{shell-d67bzqbb.js → model-resolver-c1pc5gy5.js} +9 -9
  118. package/dist/chunks/{shell-bpyk2zgp.js → model-resolver-c76spgvt.js} +6 -6
  119. package/dist/chunks/{shell-w2fyyd5g.js → model-resolver-cp47cn18.js} +34 -34
  120. package/dist/chunks/{shell-djytekme.js → model-resolver-cvvv77jg.js} +29 -29
  121. package/dist/chunks/{shell-1sfe7ky6.js → model-resolver-d1a1bt21.js} +5 -5
  122. package/dist/chunks/{shell-32wdy755.js → model-resolver-d44mvk5w.js} +6 -6
  123. package/dist/chunks/{shell-d72308c8.js → model-resolver-d72308c8.js} +2 -2
  124. package/dist/chunks/{shell-585qr39b.js → model-resolver-d9hq9bdj.js} +9 -9
  125. package/dist/chunks/{shell-66zzpgw2.js → model-resolver-daj0k9by.js} +37 -37
  126. package/dist/chunks/{shell-qwjbpryz.js → model-resolver-dd6t7n6p.js} +16 -16
  127. package/dist/chunks/{shell-m70sbz6t.js → model-resolver-dhmh7aw6.js} +4 -4
  128. package/dist/chunks/{shell-gp91837t.js → model-resolver-dhsttevq.js} +20 -20
  129. package/dist/chunks/{shell-v63mh1hy.js → model-resolver-dkbgd4kx.js} +11 -11
  130. package/dist/chunks/{shell-ejmkr9z7.js → model-resolver-ds7ysbcx.js} +48 -48
  131. package/dist/chunks/{shell-sfrccsk6.js → model-resolver-ebpav8ht.js} +33 -33
  132. package/dist/chunks/{shell-7sqp221s.js → model-resolver-eg4pr325.js} +10 -10
  133. package/dist/chunks/{shell-wgz7hchk.js → model-resolver-f2gse5fy.js} +6 -6
  134. package/dist/chunks/{shell-n7p3q306.js → model-resolver-f2t11rgb.js} +17 -17
  135. package/dist/chunks/{shell-sykc9y4a.js → model-resolver-fepbnb8j.js} +5 -5
  136. package/dist/chunks/{shell-a46v4e4v.js → model-resolver-fm2qvscf.js} +4 -4
  137. package/dist/chunks/{shell-fxbjtjnd.js → model-resolver-fxbjtjnd.js} +1 -1
  138. package/dist/chunks/{shell-fxypknc8.js → model-resolver-fxypknc8.js} +1 -1
  139. package/dist/chunks/{shell-vtq1wfzg.js → model-resolver-fy6n5twb.js} +4 -4
  140. package/dist/chunks/{shell-1n116cmy.js → model-resolver-fz1pdqz4.js} +9 -9
  141. package/dist/chunks/{shell-fzajb8v1.js → model-resolver-fzs22wv3.js} +12 -12
  142. package/dist/chunks/{shell-fr5cx72t.js → model-resolver-g1qbfqak.js} +81 -81
  143. package/dist/chunks/{shell-k1w98zgr.js → model-resolver-g869pf5g.js} +8 -8
  144. package/dist/chunks/{shell-gd4qta3r.js → model-resolver-gd4qta3r.js} +1 -1
  145. package/dist/chunks/{shell-98fez8vh.js → model-resolver-gfbnzf5x.js} +25 -25
  146. package/dist/chunks/{shell-gqs2vad9.js → model-resolver-gpvbfbv1.js} +15 -15
  147. package/dist/chunks/{shell-zsf5n11x.js → model-resolver-gsfshahz.js} +20 -20
  148. package/dist/chunks/{shell-b4xf332k.js → model-resolver-gt3w77ph.js} +27 -27
  149. package/dist/chunks/{shell-zqyb8yat.js → model-resolver-gww66jkq.js} +22 -22
  150. package/dist/chunks/{shell-ew0tmsyp.js → model-resolver-gxc2v2ks.js} +11 -11
  151. package/dist/chunks/{shell-xjy0arej.js → model-resolver-h4ka1g8b.js} +54 -54
  152. package/dist/chunks/{shell-h6vf3j39.js → model-resolver-h6vf3j39.js} +1 -1
  153. package/dist/chunks/{shell-9cbk0p5b.js → model-resolver-h8f15ghy.js} +32 -32
  154. package/dist/chunks/{shell-21ahhajh.js → model-resolver-haqbnmr5.js} +4 -4
  155. package/dist/chunks/{shell-yd426xvt.js → model-resolver-hdfh4kmr.js} +9 -9
  156. package/dist/chunks/{shell-heyhwy2w.js → model-resolver-heyhwy2w.js} +1 -1
  157. package/dist/chunks/{shell-dyrfwbsh.js → model-resolver-hgwc40d2.js} +21 -21
  158. package/dist/chunks/{shell-hjjb040h.js → model-resolver-hm42kar1.js} +4 -4
  159. package/dist/chunks/{shell-hrvm11jt.js → model-resolver-hrvm11jt.js} +3 -3
  160. package/dist/chunks/{shell-43q760fm.js → model-resolver-jjv4cws2.js} +7 -7
  161. package/dist/chunks/{shell-k2qp0rt7.js → model-resolver-jnmmvqjs.js} +1 -1
  162. package/dist/chunks/{shell-r48p3yav.js → model-resolver-jpwcqcav.js} +1 -1
  163. package/dist/chunks/{shell-9yjbvttw.js → model-resolver-jq2p7hez.js} +25 -25
  164. package/dist/chunks/model-resolver-jqh9b0xq.js +18 -0
  165. package/dist/chunks/{shell-yc67yyny.js → model-resolver-jrr570aw.js} +9 -9
  166. package/dist/chunks/{shell-rca1y2wr.js → model-resolver-jtb47g3a.js} +15 -15
  167. package/dist/chunks/{shell-xhfw6gwk.js → model-resolver-k22h4khz.js} +12 -12
  168. package/dist/chunks/{shell-k4bwy1x5.js → model-resolver-k4bwy1x5.js} +1 -1
  169. package/dist/chunks/{shell-1mrma768.js → model-resolver-ka1d01ec.js} +5 -5
  170. package/dist/chunks/{shell-1s3v4p4d.js → model-resolver-kbfs3jn6.js} +15 -15
  171. package/dist/chunks/{shell-kg06axw8.js → model-resolver-kg06axw8.js} +1 -1
  172. package/dist/chunks/{shell-kvsjn1dr.js → model-resolver-kvsjn1dr.js} +2 -2
  173. package/dist/chunks/{shell-04pvrnvk.js → model-resolver-kwfjfb3x.js} +29 -29
  174. package/dist/chunks/{shell-m9w0rfyh.js → model-resolver-m9w0rfyh.js} +1 -1
  175. package/dist/chunks/{shell-6abnk40k.js → model-resolver-mfqp6xfm.js} +8 -8
  176. package/dist/chunks/{shell-2xs51w6t.js → model-resolver-mh7ehz1v.js} +21 -21
  177. package/dist/chunks/model-resolver-mj9y1f9w.js +193 -0
  178. package/dist/chunks/{shell-aybqrser.js → model-resolver-mrca8mn9.js} +17 -17
  179. package/dist/chunks/{shell-mvfsc1pv.js → model-resolver-mvfsc1pv.js} +1 -1
  180. package/dist/chunks/{shell-myqn1vwn.js → model-resolver-n0qm516r.js} +7 -7
  181. package/dist/chunks/{shell-9sy3m4ps.js → model-resolver-n52wrphd.js} +20 -20
  182. package/dist/chunks/{shell-pxcwkz2f.js → model-resolver-n7z8rwmy.js} +15 -15
  183. package/dist/chunks/{shell-zhrc5y8g.js → model-resolver-n8qe30xq.js} +9 -9
  184. package/dist/chunks/{shell-4xew0z44.js → model-resolver-n9whx688.js} +3 -3
  185. package/dist/chunks/{shell-nhy5jxhy.js → model-resolver-nhy5jxhy.js} +1 -1
  186. package/dist/chunks/{shell-ze4dnq9c.js → model-resolver-nj1fe1jb.js} +4 -4
  187. package/dist/chunks/{shell-g3m9axkp.js → model-resolver-nv1jjwpd.js} +4 -4
  188. package/dist/chunks/{shell-9ap403n6.js → model-resolver-nvecvfg1.js} +34 -34
  189. package/dist/chunks/{shell-06337yqs.js → model-resolver-p3a8ybaq.js} +5 -5
  190. package/dist/chunks/model-resolver-p6v8s9en.js +247 -0
  191. package/dist/chunks/{shell-nmgddbg4.js → model-resolver-pae9v2p1.js} +8 -8
  192. package/dist/chunks/{shell-9gfdxbs4.js → model-resolver-pbk0bgfv.js} +2 -2
  193. package/dist/chunks/{shell-gzbkpp9m.js → model-resolver-pjedbq3k.js} +4 -4
  194. package/dist/chunks/{shell-pjvnvgmy.js → model-resolver-pjvnvgmy.js} +1 -1
  195. package/dist/chunks/{shell-sjn9e3ew.js → model-resolver-pk1prh3n.js} +11 -11
  196. package/dist/chunks/{shell-pknna89w.js → model-resolver-pknna89w.js} +1 -1
  197. package/dist/chunks/{shell-2x7hewgh.js → model-resolver-pmt5dx08.js} +44 -44
  198. package/dist/chunks/{shell-zfnpc7fv.js → model-resolver-pt7wq7x0.js} +1 -1
  199. package/dist/chunks/{shell-44x7fxmt.js → model-resolver-pyj5p63s.js} +10 -10
  200. package/dist/chunks/{shell-vqcnb6e5.js → model-resolver-pzkjnmpb.js} +13 -13
  201. package/dist/chunks/{shell-j1pm0kh5.js → model-resolver-q5kb97vr.js} +11 -11
  202. package/dist/chunks/{shell-cg0d0972.js → model-resolver-q5pkwzxb.js} +15 -15
  203. package/dist/chunks/{shell-kz8th6jy.js → model-resolver-qq0tkz6q.js} +2 -2
  204. package/dist/chunks/{shell-yykyxftz.js → model-resolver-qqmc633y.js} +11 -11
  205. package/dist/chunks/{shell-4c5k13je.js → model-resolver-qs4avvkb.js} +1 -1
  206. package/dist/chunks/{shell-qsdy395h.js → model-resolver-qsdy395h.js} +1 -1
  207. package/dist/chunks/{shell-hmeey3k9.js → model-resolver-qvpg2584.js} +11 -11
  208. package/dist/chunks/{shell-0gaj4617.js → model-resolver-qz49fwgp.js} +4 -4
  209. package/dist/chunks/{shell-1kmw8bw9.js → model-resolver-r67ewn20.js} +8 -8
  210. package/dist/chunks/{shell-r8dhm0tv.js → model-resolver-r8dhm0tv.js} +1 -1
  211. package/dist/chunks/{shell-f2n192rq.js → model-resolver-r8xr0va3.js} +4 -4
  212. package/dist/chunks/{shell-2xph78ty.js → model-resolver-rd9dg6mx.js} +11 -11
  213. package/dist/chunks/{shell-7qtxbs4b.js → model-resolver-rese3z7z.js} +6 -6
  214. package/dist/chunks/{shell-2yk8myve.js → model-resolver-rfwpvx00.js} +41 -41
  215. package/dist/chunks/{shell-80bfyqqz.js → model-resolver-rmgpg45v.js} +24 -24
  216. package/dist/chunks/{shell-hc4b3kyg.js → model-resolver-rvb2zp0m.js} +4 -4
  217. package/dist/chunks/{shell-fcxhebz1.js → model-resolver-rz6a3sbe.js} +22 -22
  218. package/dist/chunks/{shell-5ewtbtr0.js → model-resolver-sb2pm13j.js} +32 -32
  219. package/dist/chunks/{shell-sba4qhjf.js → model-resolver-sba4qhjf.js} +1 -1
  220. package/dist/chunks/{shell-ts3fz7sh.js → model-resolver-sjdwkfxd.js} +32 -32
  221. package/dist/chunks/{shell-fehrn2qm.js → model-resolver-smjktvs8.js} +6 -6
  222. package/dist/chunks/{shell-ysjs28ey.js → model-resolver-smnvvzmt.js} +15 -15
  223. package/dist/chunks/{shell-g47dvf5d.js → model-resolver-t044qcb6.js} +9 -9
  224. package/dist/chunks/{shell-ga1tzhpe.js → model-resolver-t35vvjm0.js} +11 -11
  225. package/dist/chunks/{shell-mek50901.js → model-resolver-t6yc1zyn.js} +6 -6
  226. package/dist/chunks/{shell-tazgh4e4.js → model-resolver-tazgh4e4.js} +1 -1
  227. package/dist/chunks/{shell-vcnd030r.js → model-resolver-tbhhj5cs.js} +15 -15
  228. package/dist/chunks/{shell-tcezcvh9.js → model-resolver-tcezcvh9.js} +1 -1
  229. package/dist/chunks/{shell-y7w5kr51.js → model-resolver-tcfdn8aw.js} +24 -24
  230. package/dist/chunks/{shell-tjykrgmx.js → model-resolver-tjykrgmx.js} +1 -1
  231. package/dist/chunks/{shell-q39pj94r.js → model-resolver-tkb4f2r7.js} +15 -15
  232. package/dist/chunks/{shell-vwvvp157.js → model-resolver-tppvcy65.js} +9 -9
  233. package/dist/chunks/{shell-f086nceb.js → model-resolver-trt9khgc.js} +24 -24
  234. package/dist/chunks/{shell-sh0vnv2k.js → model-resolver-ve9vvn65.js} +18 -18
  235. package/dist/chunks/{shell-vh4awg6g.js → model-resolver-vhpw989j.js} +16 -16
  236. package/dist/chunks/{shell-4b5qqsbn.js → model-resolver-vj55tknd.js} +8 -8
  237. package/dist/chunks/{shell-vn3xvc40.js → model-resolver-vn39pvqa.js} +37 -37
  238. package/dist/chunks/{shell-2r4smnpn.js → model-resolver-vqebmn7g.js} +19 -19
  239. package/dist/chunks/{shell-1xtfawcg.js → model-resolver-vr2m7p38.js} +32 -32
  240. package/dist/chunks/model-resolver-w3vb4krt.js +4 -0
  241. package/dist/chunks/{shell-w3wsvvr9.js → model-resolver-w3wsvvr9.js} +1 -1
  242. package/dist/chunks/{shell-xyxtpgsf.js → model-resolver-w5fe4zgf.js} +23 -23
  243. package/dist/chunks/{shell-r9fqtgme.js → model-resolver-w7krw9hh.js} +10 -10
  244. package/dist/chunks/{shell-gc168ysg.js → model-resolver-w991kqb0.js} +14 -14
  245. package/dist/chunks/{shell-v4r0s993.js → model-resolver-wcav6c40.js} +13 -13
  246. package/dist/chunks/{shell-wd87259q.js → model-resolver-wd87259q.js} +1 -1
  247. package/dist/chunks/{shell-2ty14fk8.js → model-resolver-wfwqxwhj.js} +9 -9
  248. package/dist/chunks/{shell-ky97vkm0.js → model-resolver-wgt7v56c.js} +19 -19
  249. package/dist/chunks/{shell-3wkxvcm2.js → model-resolver-whrpd8wj.js} +5 -5
  250. package/dist/chunks/{shell-x02ksyz9.js → model-resolver-wkm999c9.js} +14 -14
  251. package/dist/chunks/{shell-1a5eqtf0.js → model-resolver-wnhc2w01.js} +16 -16
  252. package/dist/chunks/{shell-0qkbcjwh.js → model-resolver-wr9ysm64.js} +9 -9
  253. package/dist/chunks/{shell-x1ezjp6w.js → model-resolver-x1ezjp6w.js} +1 -1
  254. package/dist/chunks/{shell-aszbaj7g.js → model-resolver-x5da3ets.js} +15 -15
  255. package/dist/chunks/{shell-4192f9pk.js → model-resolver-xaspcyx5.js} +166 -166
  256. package/dist/chunks/{shell-70b0rhqw.js → model-resolver-xb1yhede.js} +15 -15
  257. package/dist/chunks/{shell-gw8yqzg5.js → model-resolver-xd1gj6jr.js} +9 -9
  258. package/dist/chunks/{shell-bvc9822d.js → model-resolver-xf29bhrb.js} +29 -29
  259. package/dist/chunks/{shell-bhmtg2kj.js → model-resolver-xft3xkxh.js} +11 -11
  260. package/dist/chunks/{shell-jjz9kdpw.js → model-resolver-xgb46x83.js} +32 -32
  261. package/dist/chunks/{shell-jzz3abdx.js → model-resolver-xjfjd024.js} +17 -17
  262. package/dist/chunks/{shell-8tbsk23y.js → model-resolver-xr5vwsd4.js} +9 -9
  263. package/dist/chunks/{shell-fk8hrt4z.js → model-resolver-xz4sbw44.js} +54 -54
  264. package/dist/chunks/{shell-y1fvbwt7.js → model-resolver-y1fvbwt7.js} +1 -1
  265. package/dist/chunks/{shell-y71avatq.js → model-resolver-y71avatq.js} +1 -1
  266. package/dist/chunks/{shell-8gfg9fa9.js → model-resolver-y86ghdgz.js} +3 -3
  267. package/dist/chunks/{shell-bb0kg1q4.js → model-resolver-ybnqsmq7.js} +9 -9
  268. package/dist/chunks/{shell-8tzngw7b.js → model-resolver-ye01600q.js} +20 -20
  269. package/dist/chunks/{shell-kk3rr3qh.js → model-resolver-yfbd16n1.js} +5 -5
  270. package/dist/chunks/{shell-9y1phk8d.js → model-resolver-yj3e99fm.js} +1 -1
  271. package/dist/chunks/{shell-93wwsra1.js → model-resolver-ymmafesq.js} +5 -5
  272. package/dist/chunks/{shell-7gfpemw6.js → model-resolver-ypg1pkf2.js} +6 -6
  273. package/dist/chunks/{shell-sraw6zer.js → model-resolver-yvnsnb9v.js} +24 -24
  274. package/dist/chunks/{shell-kryk1pph.js → model-resolver-yzxcxw3p.js} +11 -11
  275. package/dist/chunks/{shell-z1k01bn4.js → model-resolver-z1k01bn4.js} +2 -2
  276. package/dist/chunks/{shell-0ar19swb.js → model-resolver-z3h7hm3n.js} +4 -4
  277. package/dist/chunks/{shell-xaf20by6.js → model-resolver-z79mad95.js} +15 -15
  278. package/dist/chunks/{shell-hzxz3qkz.js → model-resolver-z8jfykz0.js} +10 -10
  279. package/dist/chunks/{shell-7nprwmah.js → model-resolver-z9pdm7mn.js} +43 -43
  280. package/dist/chunks/{shell-6ym5me7r.js → model-resolver-zajwd6at.js} +5 -5
  281. package/dist/chunks/{shell-5mxx68d3.js → model-resolver-zf2pwqth.js} +10 -10
  282. package/dist/chunks/{shell-ya0kqzg7.js → model-resolver-zgza400y.js} +7 -7
  283. package/dist/chunks/{shell-h5wpvtxr.js → model-resolver-zhptab2p.js} +4 -4
  284. package/dist/chunks/{shell-zxq2ej10.js → model-resolver-zxq2ej10.js} +1 -1
  285. package/dist/codemode/catalog.js +1 -1
  286. package/dist/codemode/instructions.js +7 -7
  287. package/dist/codemode/tool.js +2 -2
  288. package/dist/command.js +81 -81
  289. package/dist/config/discovery.js +77 -77
  290. package/dist/config/markdown.js +1 -1
  291. package/dist/config/normalize.js +19 -19
  292. package/dist/config/plugin/agent.js +115 -115
  293. package/dist/config/plugin/command.js +206 -206
  294. package/dist/config/plugin/compaction.js +154 -154
  295. package/dist/config/plugin/entry-observer.js +1 -1
  296. package/dist/config/plugin/formatter.js +117 -117
  297. package/dist/config/plugin/image.js +115 -115
  298. package/dist/config/plugin/instruction.js +85 -85
  299. package/dist/config/plugin/location-watcher.js +115 -115
  300. package/dist/config/plugin/mcp.js +124 -124
  301. package/dist/config/plugin/policy.js +114 -114
  302. package/dist/config/plugin/provider.js +113 -113
  303. package/dist/config/plugin/reference.js +117 -117
  304. package/dist/config/plugin/shell.js +116 -116
  305. package/dist/config/plugin/skill-file.js +96 -96
  306. package/dist/config/plugin/skill.js +133 -133
  307. package/dist/config/plugin/snapshot.js +115 -115
  308. package/dist/config/plugin/source.js +111 -111
  309. package/dist/config/plugin/tool-output.js +117 -117
  310. package/dist/config/plugin/websearch.js +111 -111
  311. package/dist/config/plugin/worktree.js +118 -118
  312. package/dist/config/variable.js +3 -3
  313. package/dist/config/watch.js +1 -1
  314. package/dist/config.js +119 -119
  315. package/dist/credential/sql.js +2 -2
  316. package/dist/credential.js +79 -79
  317. package/dist/database/database.js +64 -64
  318. package/dist/database/drizzle/effect-sqlite/driver.js +12 -12
  319. package/dist/database/drizzle/effect-sqlite/index.js +12 -12
  320. package/dist/database/drizzle/effect-sqlite/session.js +11 -11
  321. package/dist/database/drizzle/index.js +13 -13
  322. package/dist/database/drizzle/internal/drizzle-utils.js +1 -1
  323. package/dist/database/drizzle/sqlite-core/effect/count.js +1 -1
  324. package/dist/database/drizzle/sqlite-core/effect/db.js +9 -9
  325. package/dist/database/drizzle/sqlite-core/effect/delete.js +2 -2
  326. package/dist/database/drizzle/sqlite-core/effect/index.js +10 -10
  327. package/dist/database/drizzle/sqlite-core/effect/insert.js +2 -2
  328. package/dist/database/drizzle/sqlite-core/effect/query.js +1 -1
  329. package/dist/database/drizzle/sqlite-core/effect/raw.js +1 -1
  330. package/dist/database/drizzle/sqlite-core/effect/select.js +2 -2
  331. package/dist/database/drizzle/sqlite-core/effect/session.js +10 -10
  332. package/dist/database/drizzle/sqlite-core/effect/update.js +2 -2
  333. package/dist/database/drizzle.js +14 -14
  334. package/dist/database/migration/20260127222353_familiar_lady_ursula.js +1 -1
  335. package/dist/database/migration/20260211171708_add_project_commands.js +1 -1
  336. package/dist/database/migration/20260213144116_wakeful_the_professor.js +1 -1
  337. package/dist/database/migration/20260225215848_workspace.js +1 -1
  338. package/dist/database/migration/20260227213759_add_session_workspace_id.js +1 -1
  339. package/dist/database/migration/20260228203230_blue_harpoon.js +1 -1
  340. package/dist/database/migration/20260303231226_add_workspace_fields.js +1 -1
  341. package/dist/database/migration/20260309230000_move_org_to_state.js +1 -1
  342. package/dist/database/migration/20260312043431_session_message_cursor.js +1 -1
  343. package/dist/database/migration/20260323234822_events.js +1 -1
  344. package/dist/database/migration/20260410174513_workspace-name.js +1 -1
  345. package/dist/database/migration/20260413175956_chief_energizer.js +1 -1
  346. package/dist/database/migration/20260423070820_add_icon_url_override.js +1 -1
  347. package/dist/database/migration/20260427172553_slow_nightmare.js +1 -1
  348. package/dist/database/migration/20260428004200_add_session_path.js +1 -1
  349. package/dist/database/migration/20260501142318_next_venus.js +1 -1
  350. package/dist/database/migration/20260504145000_add_sync_owner.js +1 -1
  351. package/dist/database/migration/20260507164347_add_workspace_time.js +1 -1
  352. package/dist/database/migration/20260510033149_session_usage.js +1 -1
  353. package/dist/database/migration/20260511000411_data_migration_state.js +1 -1
  354. package/dist/database/migration/20260511173437_session-metadata.js +1 -1
  355. package/dist/database/migration/20260601010001_normalize_storage_paths.js +1 -1
  356. package/dist/database/migration/20260601202201_amazing_prowler.js +1 -1
  357. package/dist/database/migration/20260602002951_lowly_union_jack.js +1 -1
  358. package/dist/database/migration/20260602182828_add_project_directories.js +1 -1
  359. package/dist/database/migration/20260603001617_session_message_projection_indexes.js +1 -1
  360. package/dist/database/migration/20260603040000_session_message_projection_order.js +1 -1
  361. package/dist/database/migration/20260603141458_session_input_inbox.js +1 -1
  362. package/dist/database/migration/20260603160727_jittery_ezekiel_stane.js +1 -1
  363. package/dist/database/migration/20260604172448_event_sourced_session_input.js +1 -1
  364. package/dist/database/migration/20260605003541_add_session_context_snapshot.js +1 -1
  365. package/dist/database/migration/20260605042240_add_context_epoch_agent.js +1 -1
  366. package/dist/database/migration/20260611035744_credential.js +1 -1
  367. package/dist/database/migration/20260611192811_lush_chimera.js +1 -1
  368. package/dist/database/migration/20260612174303_project_dir_strategy.js +1 -1
  369. package/dist/database/migration/20260622142730_simplify_session_context_epoch.js +1 -1
  370. package/dist/database/migration/20260622170816_reset_v2_session_state.js +1 -1
  371. package/dist/database/migration/20260622202450_simplify_session_input.js +1 -1
  372. package/dist/database/migration/20260804233008_loose_psylocke.js +1 -1
  373. package/dist/database/migration/20260805200742_import_legacy_credentials.js +1 -1
  374. package/dist/database/migration/20260808023530_workspace_domain.js +1 -1
  375. package/dist/database/migration/20260811161259_execution_claim_attempts.js +1 -1
  376. package/dist/database/migration/20260812181746_session_inbox.js +1 -1
  377. package/dist/database/migration/20260812213948_worktree.js +1 -1
  378. package/dist/database/migration/20260819222447_session_viewed_state.js +1 -1
  379. package/dist/database/migration/20260823191254_nullable_workspace_binding.js +1 -1
  380. package/dist/database/migration.gen.js +47 -47
  381. package/dist/database/migration.js +49 -49
  382. package/dist/database/path.js +2 -2
  383. package/dist/database/schema.gen.js +1 -1
  384. package/dist/database/schema.sql.js +1 -1
  385. package/dist/database/sqlite.bun.js +1 -1
  386. package/dist/database/sqlite.js +1 -1
  387. package/dist/database/sqlite.node.js +1 -1
  388. package/dist/database/sqlite.workerd.js +1 -1
  389. package/dist/database/v1-migration.bun.js +74 -74
  390. package/dist/database/v1-migration.js +1 -1
  391. package/dist/effect/app-node-builder.js +359 -359
  392. package/dist/effect/app-node-platform.js +2 -2
  393. package/dist/effect/keyed-mutex.js +1 -1
  394. package/dist/effect/websocket-constructor.js +1 -1
  395. package/dist/environment/driver.js +1 -1
  396. package/dist/environment/environment.js +88 -88
  397. package/dist/environment/exec-defaults.js +2 -2
  398. package/dist/environment/files.js +1 -1
  399. package/dist/environment/index.js +90 -90
  400. package/dist/environment/local.js +2 -2
  401. package/dist/environment/memory.js +2 -2
  402. package/dist/environment/unavailable.js +1 -1
  403. package/dist/event/sql.js +1 -1
  404. package/dist/event-logger.js +68 -68
  405. package/dist/file-mutation.js +89 -89
  406. package/dist/file-retention.js +1 -1
  407. package/dist/file.js +1 -1
  408. package/dist/filesystem/fff.bun.js +2 -2
  409. package/dist/filesystem/fff.js +1 -1
  410. package/dist/filesystem/fff.node.js +2 -2
  411. package/dist/filesystem/fff.workerd.js +2 -2
  412. package/dist/filesystem/ignore.js +1 -1
  413. package/dist/filesystem/location-watcher-policy.js +6 -6
  414. package/dist/filesystem/location-watcher.js +219 -219
  415. package/dist/filesystem/protected.js +1 -1
  416. package/dist/filesystem/search.js +99 -99
  417. package/dist/filesystem/watcher-binding.js +1 -1
  418. package/dist/filesystem/watcher.js +15 -15
  419. package/dist/filesystem.js +94 -94
  420. package/dist/form.js +82 -82
  421. package/dist/formatter/builtins.js +2 -2
  422. package/dist/formatter.js +82 -82
  423. package/dist/generate.js +93 -93
  424. package/dist/git.js +7 -7
  425. package/dist/github-copilot/chat/convert-to-openai-compatible-chat-messages.js +1 -1
  426. package/dist/github-copilot/chat/get-response-metadata.js +1 -1
  427. package/dist/github-copilot/chat/map-openai-compatible-finish-reason.js +1 -1
  428. package/dist/github-copilot/chat/openai-compatible-chat-language-model.js +7 -7
  429. package/dist/github-copilot/chat/openai-compatible-chat-options.js +1 -1
  430. package/dist/github-copilot/chat/openai-compatible-prepare-tools.js +1 -1
  431. package/dist/github-copilot/copilot-provider.js +17 -17
  432. package/dist/github-copilot/models.js +7 -7
  433. package/dist/github-copilot/openai-compatible-error.js +1 -1
  434. package/dist/github-copilot/responses/convert-to-openai-responses-input.js +1 -1
  435. package/dist/github-copilot/responses/map-openai-responses-finish-reason.js +1 -1
  436. package/dist/github-copilot/responses/openai-error.js +1 -1
  437. package/dist/github-copilot/responses/openai-responses-language-model.js +10 -10
  438. package/dist/github-copilot/responses/openai-responses-prepare-tools.js +6 -6
  439. package/dist/github-copilot/responses/tool/code-interpreter.js +1 -1
  440. package/dist/github-copilot/responses/tool/file-search.js +1 -1
  441. package/dist/github-copilot/responses/tool/image-generation.js +1 -1
  442. package/dist/github-copilot/responses/tool/web-search-preview.js +1 -1
  443. package/dist/github-copilot/responses/tool/web-search.js +1 -1
  444. package/dist/id/id.js +1 -1
  445. package/dist/image/photon.js +2 -2
  446. package/dist/image.js +6 -6
  447. package/dist/instance/service.js +5 -5
  448. package/dist/instance.js +350 -350
  449. package/dist/instruction-discovery.js +83 -83
  450. package/dist/instructions/builtins.js +82 -82
  451. package/dist/instructions/index.js +3 -3
  452. package/dist/integration/connection.js +1 -1
  453. package/dist/integration.js +86 -86
  454. package/dist/job.js +75 -75
  455. package/dist/kv/sql.js +2 -2
  456. package/dist/kv.js +71 -71
  457. package/dist/location-activity.js +129 -129
  458. package/dist/location-mutation.js +81 -81
  459. package/dist/location-service-map.js +83 -83
  460. package/dist/location-services.js +347 -347
  461. package/dist/location.js +84 -84
  462. package/dist/mcp/client.js +86 -86
  463. package/dist/mcp/index.js +103 -103
  464. package/dist/mcp/instructions.js +121 -121
  465. package/dist/mcp/oauth.js +3 -3
  466. package/dist/mcp/stdio.js +85 -85
  467. package/dist/mime.js +1 -1
  468. package/dist/modal/models.js +7 -7
  469. package/dist/model-resolver.js +86 -86
  470. package/dist/model.js +4 -4
  471. package/dist/models-dev.js +86 -86
  472. package/dist/oauth/page.js +1 -1
  473. package/dist/permission/saved.js +78 -78
  474. package/dist/permission/sql.js +5 -5
  475. package/dist/permission.js +103 -103
  476. package/dist/persistent-pty/binary.bun.js +1 -1
  477. package/dist/persistent-pty/daemon.js +1 -1
  478. package/dist/persistent-pty/index.js +86 -86
  479. package/dist/persistent-pty/pty-binding.js +1 -1
  480. package/dist/persistent-pty.js +73 -73
  481. package/dist/plugin/agent.js +96 -96
  482. package/dist/plugin/command.js +94 -94
  483. package/dist/plugin/hooks.js +5 -5
  484. package/dist/plugin/host.js +212 -212
  485. package/dist/plugin/instance.js +5 -5
  486. package/dist/plugin/internal.js +321 -321
  487. package/dist/plugin/mcp-codemode-exclusion.js +3 -3
  488. package/dist/plugin/models-dev.js +75 -75
  489. package/dist/plugin/module.js +5 -5
  490. package/dist/plugin/optimize.js +2 -2
  491. package/dist/plugin/plan.js +96 -96
  492. package/dist/plugin/promise.js +1 -1
  493. package/dist/plugin/provider/alibaba.js +2 -2
  494. package/dist/plugin/provider/amazon-bedrock.js +2 -2
  495. package/dist/plugin/provider/anthropic.js +2 -2
  496. package/dist/plugin/provider/azure.js +118 -118
  497. package/dist/plugin/provider/cerebras.js +2 -2
  498. package/dist/plugin/provider/cloudflare-ai-gateway.js +117 -117
  499. package/dist/plugin/provider/cloudflare-workers-ai.js +117 -117
  500. package/dist/plugin/provider/cohere.js +2 -2
  501. package/dist/plugin/provider/configured.js +114 -114
  502. package/dist/plugin/provider/dynamic.js +2 -2
  503. package/dist/plugin/provider/factory.js +1 -1
  504. package/dist/plugin/provider/gateway.js +2 -2
  505. package/dist/plugin/provider/github-copilot.js +80 -80
  506. package/dist/plugin/provider/gitlab.js +3 -3
  507. package/dist/plugin/provider/google-vertex.js +2 -2
  508. package/dist/plugin/provider/kilo.js +2 -2
  509. package/dist/plugin/provider/llmgateway.js +76 -76
  510. package/dist/plugin/provider/lmstudio.js +115 -115
  511. package/dist/plugin/provider/mistral.js +2 -2
  512. package/dist/plugin/provider/modal.js +79 -79
  513. package/dist/plugin/provider/nvidia.js +2 -2
  514. package/dist/plugin/provider/ollama.js +117 -117
  515. package/dist/plugin/provider/openai-compatible.js +1 -1
  516. package/dist/plugin/provider/openai.js +78 -78
  517. package/dist/plugin/provider/opencode.js +76 -76
  518. package/dist/plugin/provider/openrouter.js +3 -3
  519. package/dist/plugin/provider/perplexity.js +2 -2
  520. package/dist/plugin/provider/sap-ai-core.js +3 -3
  521. package/dist/plugin/provider/sdk-factory.js +1 -1
  522. package/dist/plugin/provider/snowflake-cortex.js +2 -2
  523. package/dist/plugin/provider/venice.js +2 -2
  524. package/dist/plugin/provider/vercel.js +2 -2
  525. package/dist/plugin/provider/vllm.js +117 -117
  526. package/dist/plugin/provider/xai.js +77 -77
  527. package/dist/plugin/provider/zenmux.js +2 -2
  528. package/dist/plugin/provider.js +155 -155
  529. package/dist/plugin/sdk.js +72 -72
  530. package/dist/plugin/service.js +3 -3
  531. package/dist/plugin/skill.js +132 -132
  532. package/dist/plugin/source-directory.js +1 -1
  533. package/dist/plugin/supervisor.js +336 -336
  534. package/dist/plugin/update.js +6 -6
  535. package/dist/plugin/variant.js +4 -4
  536. package/dist/plugin/vcs/git.js +82 -82
  537. package/dist/plugin/vcs/hg.js +82 -82
  538. package/dist/plugin/warming.js +112 -112
  539. package/dist/plugin/websearch/exa.js +5 -5
  540. package/dist/plugin/websearch/firecrawl.js +8 -8
  541. package/dist/plugin/websearch/index.js +8 -8
  542. package/dist/plugin/websearch/mcp.js +4 -4
  543. package/dist/plugin/websearch/parallel.js +6 -6
  544. package/dist/plugin/websearch/tavily.js +6 -6
  545. package/dist/plugin.js +219 -219
  546. package/dist/project/schema.js +8 -8
  547. package/dist/project/sql.js +4 -4
  548. package/dist/project.js +85 -85
  549. package/dist/provider.js +3 -3
  550. package/dist/pty/protocol.js +1 -1
  551. package/dist/pty/schema.js +3 -3
  552. package/dist/pty/ticket.js +1 -1
  553. package/dist/pty.js +94 -94
  554. package/dist/reference/instructions.js +84 -84
  555. package/dist/reference.js +84 -84
  556. package/dist/repository-cache.js +74 -74
  557. package/dist/repository.js +1 -1
  558. package/dist/ripgrep/binary.js +2 -2
  559. package/dist/ripgrep.js +91 -91
  560. package/dist/rpc.js +77 -77
  561. package/dist/schema.js +1 -1
  562. package/dist/session/command.js +72 -72
  563. package/dist/session/compaction.js +122 -122
  564. package/dist/session/context.js +146 -146
  565. package/dist/session/environment.js +5 -5
  566. package/dist/session/error.js +5 -5
  567. package/dist/session/event.js +1 -1
  568. package/dist/session/execution/restart.js +215 -215
  569. package/dist/session/execution.js +121 -121
  570. package/dist/session/generate.js +147 -147
  571. package/dist/session/history.js +12 -12
  572. package/dist/session/inbox.js +86 -86
  573. package/dist/session/info.js +3 -3
  574. package/dist/session/instruction-entry.js +77 -77
  575. package/dist/session/instruction-state.js +8 -8
  576. package/dist/session/instructions.js +91 -91
  577. package/dist/session/message-updater.js +4 -4
  578. package/dist/session/message.js +1 -1
  579. package/dist/session/model-request.js +110 -110
  580. package/dist/session/model-transport.js +7 -7
  581. package/dist/session/move.js +125 -125
  582. package/dist/session/projector.js +82 -82
  583. package/dist/session/prompt.js +99 -99
  584. package/dist/session/revert.js +85 -85
  585. package/dist/session/run-coordinator.js +3 -3
  586. package/dist/session/runner/index.js +3 -3
  587. package/dist/session/runner/llm.js +224 -224
  588. package/dist/session/runner/max-steps.js +1 -1
  589. package/dist/session/runner/model.js +86 -86
  590. package/dist/session/runner/publish-llm-event.js +3 -3
  591. package/dist/session/runner/retry.js +4 -4
  592. package/dist/session/runner/step.js +120 -120
  593. package/dist/session/runner/to-llm-message.js +1 -1
  594. package/dist/session/schema.js +3 -3
  595. package/dist/session/session.js +168 -168
  596. package/dist/session/shell.js +131 -131
  597. package/dist/session/skill.js +97 -97
  598. package/dist/session/sql.js +5 -5
  599. package/dist/session/stats.js +71 -71
  600. package/dist/session/store.js +84 -84
  601. package/dist/session/subagent-completion.js +1 -1
  602. package/dist/session/subagent-job.js +204 -204
  603. package/dist/session/system-prompt.js +1 -1
  604. package/dist/session/title.js +144 -144
  605. package/dist/session/to-session-error.js +106 -106
  606. package/dist/session/transfer.js +209 -209
  607. package/dist/session/usage.js +1 -1
  608. package/dist/session.js +208 -208
  609. package/dist/shell/parse.js +6 -6
  610. package/dist/shell/result.js +1 -1
  611. package/dist/shell/scan.js +1 -1
  612. package/dist/shell/select.js +11 -11
  613. package/dist/shell.js +133 -133
  614. package/dist/skill/discovery.js +6 -6
  615. package/dist/skill/instructions.js +101 -101
  616. package/dist/skill.js +102 -102
  617. package/dist/snapshot.js +86 -86
  618. package/dist/state.js +1 -1
  619. package/dist/tool/html-markdown.js +1 -1
  620. package/dist/tool/http-body.js +1 -1
  621. package/dist/tool/mcp.js +120 -120
  622. package/dist/tool/plugin/edit.js +114 -114
  623. package/dist/tool/plugin/file-diff.js +1 -1
  624. package/dist/tool/plugin/glob.js +117 -117
  625. package/dist/tool/plugin/grep.js +117 -117
  626. package/dist/tool/plugin/opencode.js +3 -3
  627. package/dist/tool/plugin/patch.js +116 -116
  628. package/dist/tool/plugin/question.js +97 -97
  629. package/dist/tool/plugin/read.js +120 -120
  630. package/dist/tool/plugin/shell.js +205 -205
  631. package/dist/tool/plugin/skill.js +105 -105
  632. package/dist/tool/plugin/subagent.js +207 -207
  633. package/dist/tool/plugin/webfetch.js +104 -104
  634. package/dist/tool/plugin/websearch.js +100 -100
  635. package/dist/tool/plugin/write.js +116 -116
  636. package/dist/tool/read-filesystem.js +96 -96
  637. package/dist/tool/runtime.js +1 -1
  638. package/dist/tool-output.js +8 -8
  639. package/dist/tool.js +13 -13
  640. package/dist/types/plugin/websearch/mcp.d.ts +1 -1
  641. package/dist/types/project/schema.d.ts +1 -0
  642. package/dist/types/project.d.ts +1 -0
  643. package/dist/types/websearch.d.ts +5 -1
  644. package/dist/util/error-summary.js +1 -1
  645. package/dist/util/error.js +1 -1
  646. package/dist/util/iife.js +1 -1
  647. package/dist/util/lazy.js +1 -1
  648. package/dist/util/slug.js +1 -1
  649. package/dist/util/token.js +1 -1
  650. package/dist/util/which.js +1 -1
  651. package/dist/util/wildcard.js +1 -1
  652. package/dist/v1/config/agent.js +5 -5
  653. package/dist/v1/config/attachment.js +4 -4
  654. package/dist/v1/config/command.js +3 -3
  655. package/dist/v1/config/config.js +16 -16
  656. package/dist/v1/config/error.js +2 -2
  657. package/dist/v1/config/formatter.js +3 -3
  658. package/dist/v1/config/layout.js +1 -1
  659. package/dist/v1/config/lsp.js +3 -3
  660. package/dist/v1/config/mcp.js +4 -4
  661. package/dist/v1/config/migrate.js +4 -4
  662. package/dist/v1/config/permission.js +3 -3
  663. package/dist/v1/config/plugin.js +3 -3
  664. package/dist/v1/config/provider-options.js +1 -1
  665. package/dist/v1/config/provider.js +4 -4
  666. package/dist/v1/config/server.js +2 -2
  667. package/dist/v1/config/skills.js +3 -3
  668. package/dist/v1/permission.js +1 -1
  669. package/dist/vcs/patch.js +1 -1
  670. package/dist/vcs.js +85 -85
  671. package/dist/websearch.js +78 -78
  672. package/dist/wellknown/plugin.js +74 -74
  673. package/dist/wellknown.js +77 -77
  674. package/dist/workspace/driver.js +5 -5
  675. package/dist/workspace/sql.js +1 -1
  676. package/dist/workspace.js +78 -78
  677. package/dist/worktree/directory.js +4 -4
  678. package/dist/worktree/git.js +7 -7
  679. package/dist/worktree/refresh.js +337 -337
  680. package/dist/worktree/sql.js +5 -5
  681. package/dist/worktree.js +91 -91
  682. package/package.json +7 -7
  683. package/dist/chunks/shell-7zk4hah4.js +0 -4
  684. package/dist/chunks/shell-8y6r9mz6.js +0 -22
  685. package/dist/chunks/shell-b7pyt6aj.js +0 -460
  686. package/dist/chunks/shell-bgee90x3.js +0 -138
  687. package/dist/chunks/shell-dxj72tfx.js +0 -18
  688. package/dist/chunks/shell-wpc0p36r.js +0 -247
  689. /package/dist/chunks/{shell-0fabt78z.js → model-resolver-0fabt78z.js} +0 -0
  690. /package/dist/chunks/{shell-0qkdqm5v.js → model-resolver-0qkdqm5v.js} +0 -0
  691. /package/dist/chunks/{shell-0zkw76rk.js → model-resolver-0zkw76rk.js} +0 -0
  692. /package/dist/chunks/{shell-17cy0kzp.js → model-resolver-17cy0kzp.js} +0 -0
  693. /package/dist/chunks/{shell-1cnp2v09.js → model-resolver-1cnp2v09.js} +0 -0
  694. /package/dist/chunks/{shell-1kg9ymc8.js → model-resolver-1kg9ymc8.js} +0 -0
  695. /package/dist/chunks/{shell-2710q6r3.js → model-resolver-2710q6r3.js} +0 -0
  696. /package/dist/chunks/{shell-2axfhc9x.js → model-resolver-2axfhc9x.js} +0 -0
  697. /package/dist/chunks/{shell-2c3vjs8z.js → model-resolver-2c3vjs8z.js} +0 -0
  698. /package/dist/chunks/{shell-359p4xyc.js → model-resolver-359p4xyc.js} +0 -0
  699. /package/dist/chunks/{shell-3asan66x.js → model-resolver-3asan66x.js} +0 -0
  700. /package/dist/chunks/{shell-3t738kvx.js → model-resolver-3t738kvx.js} +0 -0
  701. /package/dist/chunks/{shell-3v8g72cx.js → model-resolver-3v8g72cx.js} +0 -0
  702. /package/dist/chunks/{shell-3wcehsnq.js → model-resolver-3wcehsnq.js} +0 -0
  703. /package/dist/chunks/{shell-41nvscxy.js → model-resolver-41nvscxy.js} +0 -0
  704. /package/dist/chunks/{shell-43n2bw4t.js → model-resolver-43n2bw4t.js} +0 -0
  705. /package/dist/chunks/{shell-4knz6hnm.js → model-resolver-4knz6hnm.js} +0 -0
  706. /package/dist/chunks/{shell-4y7fprxs.js → model-resolver-4y7fprxs.js} +0 -0
  707. /package/dist/chunks/{shell-53557ph1.js → model-resolver-53557ph1.js} +0 -0
  708. /package/dist/chunks/{shell-550bvhaj.js → model-resolver-550bvhaj.js} +0 -0
  709. /package/dist/chunks/{shell-6prwharc.js → model-resolver-6prwharc.js} +0 -0
  710. /package/dist/chunks/{shell-7akdwqpd.js → model-resolver-7akdwqpd.js} +0 -0
  711. /package/dist/chunks/{shell-7m9af43g.js → model-resolver-7m9af43g.js} +0 -0
  712. /package/dist/chunks/{shell-822emrt2.js → model-resolver-822emrt2.js} +0 -0
  713. /package/dist/chunks/{shell-88xbtdfr.js → model-resolver-88xbtdfr.js} +0 -0
  714. /package/dist/chunks/{shell-8n3pysct.js → model-resolver-8n3pysct.js} +0 -0
  715. /package/dist/chunks/{shell-982e01ww.js → model-resolver-982e01ww.js} +0 -0
  716. /package/dist/chunks/{shell-9a4afbnw.js → model-resolver-9a4afbnw.js} +0 -0
  717. /package/dist/chunks/{shell-9rqn6x4v.js → model-resolver-9rqn6x4v.js} +0 -0
  718. /package/dist/chunks/{shell-a1tpkmh4.js → model-resolver-a1tpkmh4.js} +0 -0
  719. /package/dist/chunks/{shell-af5trqkr.js → model-resolver-af5trqkr.js} +0 -0
  720. /package/dist/chunks/{shell-afrmfg78.js → model-resolver-afrmfg78.js} +0 -0
  721. /package/dist/chunks/{shell-aqzs7mqg.js → model-resolver-aqzs7mqg.js} +0 -0
  722. /package/dist/chunks/{shell-atq7p7m5.js → model-resolver-atq7p7m5.js} +0 -0
  723. /package/dist/chunks/{shell-bkyjaxrp.js → model-resolver-bkyjaxrp.js} +0 -0
  724. /package/dist/chunks/{shell-bmr6ed5q.js → model-resolver-bmr6ed5q.js} +0 -0
  725. /package/dist/chunks/{shell-cf4snx6d.js → model-resolver-cf4snx6d.js} +0 -0
  726. /package/dist/chunks/{shell-cvy3z8tj.js → model-resolver-cvy3z8tj.js} +0 -0
  727. /package/dist/chunks/{shell-d9fn303g.js → model-resolver-d9fn303g.js} +0 -0
  728. /package/dist/chunks/{shell-d9jj8t3e.js → model-resolver-d9jj8t3e.js} +0 -0
  729. /package/dist/chunks/{shell-dajrwvna.js → model-resolver-dajrwvna.js} +0 -0
  730. /package/dist/chunks/{shell-dap0rakb.js → model-resolver-dap0rakb.js} +0 -0
  731. /package/dist/chunks/{shell-df08tz66.js → model-resolver-df08tz66.js} +0 -0
  732. /package/dist/chunks/{shell-dy18nga0.js → model-resolver-dy18nga0.js} +0 -0
  733. /package/dist/chunks/{shell-e5kj55wp.js → model-resolver-e5kj55wp.js} +0 -0
  734. /package/dist/chunks/{shell-e73j6tqm.js → model-resolver-e73j6tqm.js} +0 -0
  735. /package/dist/chunks/{shell-eh3zwz77.js → model-resolver-eh3zwz77.js} +0 -0
  736. /package/dist/chunks/{shell-emrn6kk6.js → model-resolver-emrn6kk6.js} +0 -0
  737. /package/dist/chunks/{shell-f0mxakyp.js → model-resolver-f0mxakyp.js} +0 -0
  738. /package/dist/chunks/{shell-f6n9ztr4.js → model-resolver-f6n9ztr4.js} +0 -0
  739. /package/dist/chunks/{shell-faypxj3z.js → model-resolver-faypxj3z.js} +0 -0
  740. /package/dist/chunks/{shell-fd410y7t.js → model-resolver-fd410y7t.js} +0 -0
  741. /package/dist/chunks/{shell-fxgpk5d8.js → model-resolver-fxgpk5d8.js} +0 -0
  742. /package/dist/chunks/{shell-g4wezp1m.js → model-resolver-g4wezp1m.js} +0 -0
  743. /package/dist/chunks/{shell-g86h250q.js → model-resolver-g86h250q.js} +0 -0
  744. /package/dist/chunks/{shell-gebd4c9n.js → model-resolver-gebd4c9n.js} +0 -0
  745. /package/dist/chunks/{shell-hk9envan.js → model-resolver-hk9envan.js} +0 -0
  746. /package/dist/chunks/{shell-j2ntwpah.js → model-resolver-j2ntwpah.js} +0 -0
  747. /package/dist/chunks/{shell-j5zkgpj8.js → model-resolver-j5zkgpj8.js} +0 -0
  748. /package/dist/chunks/{shell-j935v87r.js → model-resolver-j935v87r.js} +0 -0
  749. /package/dist/chunks/{shell-jr7sbwjy.js → model-resolver-jr7sbwjy.js} +0 -0
  750. /package/dist/chunks/{shell-jwfs4k6c.js → model-resolver-jwfs4k6c.js} +0 -0
  751. /package/dist/chunks/{shell-jzg6c2d5.js → model-resolver-jzg6c2d5.js} +0 -0
  752. /package/dist/chunks/{shell-mntxs535.js → model-resolver-mntxs535.js} +0 -0
  753. /package/dist/chunks/{shell-mp448xyj.js → model-resolver-mp448xyj.js} +0 -0
  754. /package/dist/chunks/{shell-msx8hqn2.js → model-resolver-msx8hqn2.js} +0 -0
  755. /package/dist/chunks/{shell-n05xt0ee.js → model-resolver-n05xt0ee.js} +0 -0
  756. /package/dist/chunks/{shell-n3j8tn72.js → model-resolver-n3j8tn72.js} +0 -0
  757. /package/dist/chunks/{shell-njntx4h6.js → model-resolver-njntx4h6.js} +0 -0
  758. /package/dist/chunks/{shell-p8qxwesx.js → model-resolver-p8qxwesx.js} +0 -0
  759. /package/dist/chunks/{shell-q3sfg36h.js → model-resolver-q3sfg36h.js} +0 -0
  760. /package/dist/chunks/{shell-q74kybfr.js → model-resolver-q74kybfr.js} +0 -0
  761. /package/dist/chunks/{shell-qaymkmh1.js → model-resolver-qaymkmh1.js} +0 -0
  762. /package/dist/chunks/{shell-qb87gjwd.js → model-resolver-qb87gjwd.js} +0 -0
  763. /package/dist/chunks/{shell-qfa1cgps.js → model-resolver-qfa1cgps.js} +0 -0
  764. /package/dist/chunks/{shell-qrg20bc0.js → model-resolver-qrg20bc0.js} +0 -0
  765. /package/dist/chunks/{shell-rcb2kzg1.js → model-resolver-rcb2kzg1.js} +0 -0
  766. /package/dist/chunks/{shell-sdp7kfr6.js → model-resolver-sdp7kfr6.js} +0 -0
  767. /package/dist/chunks/{shell-se0s1eqw.js → model-resolver-se0s1eqw.js} +0 -0
  768. /package/dist/chunks/{shell-sk3qaz4a.js → model-resolver-sk3qaz4a.js} +0 -0
  769. /package/dist/chunks/{shell-ssg3fenm.js → model-resolver-ssg3fenm.js} +0 -0
  770. /package/dist/chunks/{shell-twg0f83k.js → model-resolver-twg0f83k.js} +0 -0
  771. /package/dist/chunks/{shell-w803qqfp.js → model-resolver-w803qqfp.js} +0 -0
  772. /package/dist/chunks/{shell-wer8tq1h.js → model-resolver-wer8tq1h.js} +0 -0
  773. /package/dist/chunks/{shell-wtztk69x.js → model-resolver-wtztk69x.js} +0 -0
  774. /package/dist/chunks/{shell-x0ckcb58.js → model-resolver-x0ckcb58.js} +0 -0
  775. /package/dist/chunks/{shell-x1b8g1yb.js → model-resolver-x1b8g1yb.js} +0 -0
  776. /package/dist/chunks/{shell-x61499pn.js → model-resolver-x61499pn.js} +0 -0
  777. /package/dist/chunks/{shell-y44na4kk.js → model-resolver-y44na4kk.js} +0 -0
  778. /package/dist/chunks/{shell-y8cydn3q.js → model-resolver-y8cydn3q.js} +0 -0
  779. /package/dist/chunks/{shell-ygaqb7jw.js → model-resolver-ygaqb7jw.js} +0 -0
  780. /package/dist/chunks/{shell-z9919s4g.js → model-resolver-z9919s4g.js} +0 -0
  781. /package/dist/chunks/{shell-zbjnn3ac.js → model-resolver-zbjnn3ac.js} +0 -0
@@ -1,32 +1,32 @@
1
1
  import {
2
2
  useragent2
3
- } from "./shell-hmeey3k9.js";
3
+ } from "./model-resolver-qvpg2584.js";
4
4
  import {
5
5
  Service79
6
- } from "./shell-hjjb040h.js";
6
+ } from "./model-resolver-hm42kar1.js";
7
7
  import {
8
8
  OAuth3,
9
9
  Event19
10
- } from "./shell-zsf5n11x.js";
10
+ } from "./model-resolver-gsfshahz.js";
11
11
  import {
12
- ID16,
12
+ ID9,
13
13
  MethodID2
14
- } from "./shell-xb5d6gcm.js";
14
+ } from "./model-resolver-1nfczbs6.js";
15
15
  import {
16
- ID15,
16
+ ID16,
17
17
  isAISDK2,
18
18
  packageName2,
19
19
  mergeOverlay2
20
- } from "./shell-hc4b3kyg.js";
20
+ } from "./model-resolver-rvb2zp0m.js";
21
21
  import {
22
22
  iife2
23
- } from "./shell-1kg9ymc8.js";
23
+ } from "./model-resolver-1kg9ymc8.js";
24
24
  import {
25
25
  which2
26
- } from "./shell-qaymkmh1.js";
26
+ } from "./model-resolver-qaymkmh1.js";
27
27
  import {
28
28
  configuredSettings2
29
- } from "./shell-43q760fm.js";
29
+ } from "./model-resolver-jjv4cws2.js";
30
30
 
31
31
  // src/plugin/provider/azure.ts
32
32
  import { Clock, Effect, Schema, Semaphore, Stream } from "effect";
@@ -57,7 +57,7 @@ function selectLanguage(sdk, modelID, useChat) {
57
57
  var AzurePlugin2 = define({
58
58
  id: "opencode.provider.azure",
59
59
  effect: Effect.fn(function* (ctx) {
60
- const configured = yield* configuredSettings2(ID15.azure);
60
+ const configured = yield* configuredSettings2(ID16.azure);
61
61
  const processes = yield* AppProcess.Service;
62
62
  const bus = yield* Service79;
63
63
  const tokens = new Map;
@@ -93,13 +93,13 @@ var AzurePlugin2 = define({
93
93
  });
94
94
  yield* ctx.integration.transform((editor) => {
95
95
  editor.method.update({
96
- integrationID: ID15.azure,
96
+ integrationID: ID16.azure,
97
97
  method: { type: "key", label: "API key", form: form() }
98
98
  });
99
99
  if (!available)
100
100
  return;
101
101
  editor.method.update({
102
- integrationID: ID15.azure,
102
+ integrationID: ID16.azure,
103
103
  method: {
104
104
  id: methodID,
105
105
  type: "oauth",
@@ -131,7 +131,7 @@ var AzurePlugin2 = define({
131
131
  });
132
132
  });
133
133
  const load = Effect.fn("AzurePlugin.load")(function* () {
134
- const connection = yield* ctx.integration.connection.active(ID15.azure);
134
+ const connection = yield* ctx.integration.connection.active(ID16.azure);
135
135
  const credential = connection ? yield* ctx.integration.connection.resolve(connection).pipe(Effect.orElseSucceed(() => {
136
136
  return;
137
137
  })) : undefined;
@@ -145,7 +145,7 @@ var AzurePlugin2 = define({
145
145
  yield* load();
146
146
  yield* ctx.catalog.transform((evt) => {
147
147
  for (const item of evt.provider.list()) {
148
- if (item.provider.id !== ID15.azure && packageName2(item.provider.package) !== "@ai-sdk/azure")
148
+ if (item.provider.id !== ID16.azure && packageName2(item.provider.package) !== "@ai-sdk/azure")
149
149
  continue;
150
150
  const resourceName = resolveResourceName(item.provider.settings, loaded.resource);
151
151
  if (resourceName)
@@ -167,11 +167,11 @@ var AzurePlugin2 = define({
167
167
  }
168
168
  });
169
169
  const reload = () => loading.withPermit(load().pipe(Effect.andThen(ctx.catalog.reload())));
170
- yield* bus.subscribe(Event19.Switched).pipe(Stream.filter((event) => event.data.integrationID === ID16.make("azure")), Stream.runForEach(reload), Effect.forkScoped({ startImmediately: true }));
170
+ yield* bus.subscribe(Event19.Switched).pipe(Stream.filter((event) => event.data.integrationID === ID9.make("azure")), Stream.runForEach(reload), Effect.forkScoped({ startImmediately: true }));
171
171
  yield* ctx.session.hook("http.request", (evt) => Effect.gen(function* () {
172
- if (evt.model.providerID !== ID15.azure)
172
+ if (evt.model.providerID !== ID16.azure)
173
173
  return;
174
- const connection = yield* ctx.integration.connection.active(ID15.azure);
174
+ const connection = yield* ctx.integration.connection.active(ID16.azure);
175
175
  const credential = connection ? yield* ctx.integration.connection.resolve(connection).pipe(Effect.orElseSucceed(() => {
176
176
  return;
177
177
  })) : undefined;
@@ -184,11 +184,11 @@ var AzurePlugin2 = define({
184
184
  evt.request.headers.delete("x-api-key");
185
185
  evt.request.headers.set("authorization", `Bearer ${current.access}`);
186
186
  evt.request.headers.set("user-agent", useragent2(ctx.app));
187
- }), { providerID: ID15.azure });
187
+ }), { providerID: ID16.azure });
188
188
  yield* ctx.aisdk.hook("sdk", Effect.fn(function* (evt) {
189
189
  if (evt.package !== "@ai-sdk/azure")
190
190
  return;
191
- if (evt.model.providerID === ID15.azure) {
191
+ if (evt.model.providerID === ID16.azure) {
192
192
  if (!evt.options.resourceName && !evt.options.baseURL && (!isAISDK2(evt.model.package) || typeof evt.model.settings?.baseURL !== "string")) {
193
193
  throw new Error("Azure resource name is missing; set AZURE_RESOURCE_NAME or configure resourceName/baseURL");
194
194
  }
@@ -197,7 +197,7 @@ var AzurePlugin2 = define({
197
197
  evt.sdk = mod.createAzure(evt.options);
198
198
  }));
199
199
  yield* ctx.aisdk.hook("language", Effect.fn(function* (evt) {
200
- if (evt.model.providerID !== ID15.azure)
200
+ if (evt.model.providerID !== ID16.azure)
201
201
  return;
202
202
  evt.language = selectLanguage(evt.sdk, evt.model.modelID ?? evt.model.id, Boolean(evt.options.useCompletionUrls));
203
203
  }));
@@ -0,0 +1,193 @@
1
+ import {
2
+ Service79,
3
+ node84
4
+ } from "./model-resolver-hm42kar1.js";
5
+ import {
6
+ Service76,
7
+ node81
8
+ } from "./model-resolver-w7krw9hh.js";
9
+ import {
10
+ create3
11
+ } from "./model-resolver-kg06axw8.js";
12
+ import {
13
+ __export
14
+ } from "./model-resolver-9rqn6x4v.js";
15
+
16
+ // src/websearch.ts
17
+ var exports_websearch3 = {};
18
+ __export(exports_websearch3, {
19
+ DisabledError: () => DisabledError2,
20
+ Event: () => Event5,
21
+ ID: () => ID3,
22
+ Input: () => Input13,
23
+ Provider: () => Provider2,
24
+ ProviderKey: () => ProviderKey2,
25
+ ProviderNotFoundError: () => ProviderNotFoundError2,
26
+ ProviderRequiredError: () => ProviderRequiredError2,
27
+ RequestError: () => RequestError2,
28
+ Response: () => Response2,
29
+ Result: () => Result2,
30
+ Selection: () => Selection2,
31
+ Service: () => Service20,
32
+ WebSearch: () => exports_websearch3,
33
+ node: () => node24
34
+ });
35
+ import { WebSearch } from "@opencode-ai/schema/websearch";
36
+ import { SessionEvent } from "@opencode-ai/schema/session-event";
37
+ import { Clock, Context, Effect, Layer, Option, Schema, Stream } from "effect";
38
+ import { HttpClientError } from "effect/unstable/http";
39
+ import { makeLocationNode } from "@opencode-ai/util/effect/app-node";
40
+ import { Event as Event5 } from "@opencode-ai/schema/websearch";
41
+ var ID3 = WebSearch.ID;
42
+ var Provider2 = WebSearch.Provider;
43
+ var Input13 = WebSearch.Input;
44
+ var Result2 = WebSearch.Result;
45
+ var Response2 = WebSearch.Response;
46
+ var ProviderKey2 = "websearch:provider";
47
+ var Selection2 = Schema.Union([ID3, Schema.Literal("random"), Schema.Literal(false)]);
48
+
49
+ class ProviderRequiredError2 extends Schema.TaggedError()("WebSearch.ProviderRequired", {}) {
50
+ }
51
+
52
+ class ProviderNotFoundError2 extends Schema.TaggedError()("WebSearch.ProviderNotFound", {
53
+ providerID: ID3
54
+ }) {
55
+ }
56
+
57
+ class DisabledError2 extends Schema.TaggedError()("WebSearch.Disabled", {}) {
58
+ }
59
+
60
+ class RequestError2 extends Schema.TaggedError()("WebSearch.Request", {
61
+ providerID: ID3,
62
+ cause: Schema.Defect()
63
+ }) {
64
+ }
65
+
66
+ class Service20 extends Context.Service()("@opencode/WebSearch") {
67
+ }
68
+ var layer = Layer.effect(Service20, Effect.gen(function* () {
69
+ const bus = yield* Service79;
70
+ const kv = yield* Service76;
71
+ const decodeResults = Schema.decodeUnknownEffect(Schema.Array(Result2));
72
+ const cooldowns = new Map;
73
+ const preferred = new Map;
74
+ yield* Effect.addFinalizer(() => Effect.sync(() => preferred.clear()));
75
+ yield* bus.subscribe([SessionEvent.Deleted, SessionEvent.Moved]).pipe(Stream.runForEach((event) => Effect.sync(() => {
76
+ preferred.delete(event.data.sessionID);
77
+ })), Effect.forkScoped({ startImmediately: true }));
78
+ const state = create3({
79
+ initial: () => ({ providers: new Map }),
80
+ editor: (editor) => ({
81
+ add: (provider) => editor.providers.set(provider.id, provider),
82
+ default: {
83
+ get: () => editor.selection,
84
+ set: (selection) => editor.selection = selection
85
+ }
86
+ }),
87
+ notify: () => bus.publish(WebSearch.Event.Updated, {}).pipe(Effect.asVoid)
88
+ });
89
+ const requireProvider = (providers, providerID) => {
90
+ const provider = providers.get(providerID);
91
+ return provider ? Effect.succeed(provider) : Effect.fail(new ProviderNotFoundError2({ providerID }));
92
+ };
93
+ const selection = Effect.fn("WebSearch.selection")(function* () {
94
+ const data = state.get();
95
+ if (data.selection === false || data.selection === "random" || data.selection && data.providers.has(data.selection))
96
+ return data.selection;
97
+ const stored = yield* kv.get(ProviderKey2);
98
+ const decoded = Schema.decodeUnknownOption(Selection2)(stored);
99
+ if (stored !== undefined && Option.isNone(decoded))
100
+ yield* kv.remove(ProviderKey2);
101
+ return Option.getOrUndefined(decoded);
102
+ });
103
+ const randomProvider = (now, affinity, attempted) => {
104
+ const providers = state.get().providers;
105
+ cooldowns.forEach((cooldown, id) => {
106
+ if (cooldown.until <= now || !providers.has(id))
107
+ cooldowns.delete(id);
108
+ });
109
+ const current = affinity.provider === undefined ? undefined : providers.get(affinity.provider);
110
+ if (current && !cooldowns.has(current.id) && !attempted?.has(current.id))
111
+ return current;
112
+ const available = Array.from(providers.values()).filter((provider) => !cooldowns.has(provider.id) && !attempted?.has(provider.id));
113
+ const provider = available[Math.floor(Math.random() * available.length)];
114
+ if (provider)
115
+ affinity.provider = provider.id;
116
+ return provider;
117
+ };
118
+ const defaultProvider = Effect.fn("WebSearch.default")(function* (choice) {
119
+ if (choice === false)
120
+ return yield* new DisabledError2;
121
+ if (choice === "random") {
122
+ const active = preferred.get(undefined)?.provider;
123
+ return (active === undefined ? undefined : state.get().providers.get(active)) ?? state.get().providers.values().next().value;
124
+ }
125
+ return choice ? state.get().providers.get(choice) : undefined;
126
+ });
127
+ return Service20.of({
128
+ transform: state.transform,
129
+ reload: state.reload,
130
+ providers: Effect.fn("WebSearch.providers")(function* () {
131
+ return Array.from(state.get().providers.values(), (provider) => ({
132
+ id: provider.id,
133
+ name: provider.name
134
+ })).toSorted((a, b) => a.name.localeCompare(b.name));
135
+ }),
136
+ default: Effect.fn("WebSearch.defaultInfo")(function* () {
137
+ const provider = yield* defaultProvider(yield* selection());
138
+ return provider && { id: provider.id, name: provider.name };
139
+ }),
140
+ select: Effect.fn("WebSearch.select")(function* (selection) {
141
+ yield* kv.set(ProviderKey2, selection);
142
+ }),
143
+ query: Effect.fn("WebSearch.query")(function* (input, options) {
144
+ const choice = input.providerID ? undefined : yield* selection();
145
+ let provider = input.providerID ? yield* requireProvider(state.get().providers, input.providerID) : yield* defaultProvider(choice);
146
+ if (!provider)
147
+ return yield* new ProviderRequiredError2;
148
+ const affinity = preferred.get(options?.sessionID) ?? { provider: undefined };
149
+ if (choice === "random") {
150
+ preferred.set(options?.sessionID, affinity);
151
+ provider = randomProvider(yield* Clock.currentTimeMillis, affinity) ?? provider;
152
+ }
153
+ const attempted = new Set;
154
+ while (true) {
155
+ if (options?.onProvider)
156
+ yield* options.onProvider({ id: provider.id, name: provider.name });
157
+ let cooldown = choice === "random" ? cooldowns.get(provider.id) : undefined;
158
+ if (!cooldown || cooldown.until <= (yield* Clock.currentTimeMillis)) {
159
+ attempted.add(provider.id);
160
+ const result = yield* provider.execute({ query: input.query }).pipe(Effect.flatMap(decodeResults), Effect.result);
161
+ if (result._tag === "Success")
162
+ return new Response2({ providerID: provider.id, results: result.success });
163
+ const cause = result.failure;
164
+ const error = new RequestError2({ providerID: provider.id, cause });
165
+ if (choice !== "random" || !HttpClientError.isHttpClientError(cause) || cause.response?.status !== 429)
166
+ return yield* error;
167
+ const now = yield* Clock.currentTimeMillis;
168
+ cooldown = { until: now + cooldownMillis(cause.response.headers["retry-after"], now), error };
169
+ cooldowns.set(provider.id, cooldown);
170
+ }
171
+ provider = randomProvider(yield* Clock.currentTimeMillis, affinity, attempted);
172
+ if (!provider)
173
+ return yield* cooldown.error;
174
+ }
175
+ })
176
+ });
177
+ }));
178
+ function cooldownMillis(value, now) {
179
+ if (!value?.trim())
180
+ return 60000;
181
+ const seconds = Number(value);
182
+ if (Number.isFinite(seconds))
183
+ return seconds >= 0 ? seconds * 1000 : 60000;
184
+ const date = Date.parse(value);
185
+ return Number.isFinite(date) ? Math.max(0, date - now) : 60000;
186
+ }
187
+ var node24 = makeLocationNode({
188
+ service: Service20,
189
+ layer,
190
+ deps: [node84, node81]
191
+ });
192
+
193
+ export { ID3, Provider2, Input13, Result2, Response2, ProviderKey2, Selection2, ProviderRequiredError2, ProviderNotFoundError2, DisabledError2, RequestError2, Service20, node24, exports_websearch3, Event5 };
@@ -1,23 +1,23 @@
1
1
  import {
2
- Service44,
2
+ Service43,
3
3
  node47
4
- } from "./shell-fcxhebz1.js";
4
+ } from "./model-resolver-rz6a3sbe.js";
5
5
  import {
6
6
  Key3,
7
7
  removed2,
8
- make18,
8
+ make20,
9
9
  diffByKey2
10
- } from "./shell-mtcjf44p.js";
10
+ } from "./model-resolver-97f5v037.js";
11
11
  import {
12
12
  __export
13
- } from "./shell-9rqn6x4v.js";
13
+ } from "./model-resolver-9rqn6x4v.js";
14
14
 
15
15
  // src/reference/instructions.ts
16
- var exports_instructions5 = {};
17
- __export(exports_instructions5, {
18
- ReferenceInstructions: () => exports_instructions5,
19
- Service: () => Service32,
20
- node: () => node36
16
+ var exports_instructions3 = {};
17
+ __export(exports_instructions3, {
18
+ ReferenceInstructions: () => exports_instructions3,
19
+ Service: () => Service30,
20
+ node: () => node35
21
21
  });
22
22
  import { makeLocationNode } from "@opencode-ai/util/effect/app-node";
23
23
  import { Context, Effect, Layer, Schema } from "effect";
@@ -57,18 +57,18 @@ var update = (previous, current) => {
57
57
  `);
58
58
  };
59
59
 
60
- class Service32 extends Context.Service()("@opencode/ReferenceInstructions") {
60
+ class Service30 extends Context.Service()("@opencode/ReferenceInstructions") {
61
61
  }
62
- var layer = Layer.effect(Service32, Effect.gen(function* () {
63
- const references = yield* Service44;
64
- return Service32.of({
62
+ var layer = Layer.effect(Service30, Effect.gen(function* () {
63
+ const references = yield* Service43;
64
+ return Service30.of({
65
65
  load: Effect.fn("ReferenceInstructions.load")(function* () {
66
66
  const available = (yield* references.list()).filter((reference) => reference.description !== undefined).map((reference) => ({
67
67
  name: reference.name,
68
68
  path: reference.path,
69
69
  description: reference.description
70
70
  })).toSorted((a, b) => a.name.localeCompare(b.name));
71
- return make18({
71
+ return make20({
72
72
  key: Key3.make("core/reference-guidance"),
73
73
  codec: Schema.toCodecJson(Schema.Array(Summary)),
74
74
  read: Effect.succeed(available.length === 0 ? removed2 : available),
@@ -81,6 +81,6 @@ var layer = Layer.effect(Service32, Effect.gen(function* () {
81
81
  })
82
82
  });
83
83
  }));
84
- var node36 = makeLocationNode({ service: Service32, layer, deps: [node47] });
84
+ var node35 = makeLocationNode({ service: Service30, layer, deps: [node47] });
85
85
 
86
- export { Service32, node36, exports_instructions5 };
86
+ export { Service30, node35, exports_instructions3 };
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  which2
3
- } from "./shell-qaymkmh1.js";
3
+ } from "./model-resolver-qaymkmh1.js";
4
4
 
5
5
  // src/formatter/builtins.ts
6
6
  import { Effect } from "effect";
@@ -1,13 +1,13 @@
1
1
  import {
2
- ID14,
2
+ ID15,
3
3
  Family2
4
- } from "./shell-sxaj9jh7.js";
4
+ } from "./model-resolver-3mrm2hwf.js";
5
5
  import {
6
- Service63
7
- } from "./shell-2yk8myve.js";
6
+ Service67
7
+ } from "./model-resolver-rfwpvx00.js";
8
8
  import {
9
9
  foldSettings2
10
- } from "./shell-43q760fm.js";
10
+ } from "./model-resolver-jjv4cws2.js";
11
11
 
12
12
  // src/plugin/provider/lmstudio.ts
13
13
  import { define } from "@opencode-ai/plugin/effect/plugin";
@@ -36,7 +36,7 @@ function make6(origin = "http://127.0.0.1:1234", interval = "30 seconds") {
36
36
  id: "opencode.provider.lmstudio",
37
37
  effect: Effect.fn(function* (ctx) {
38
38
  const http = HttpClient.filterStatusOk(yield* HttpClient.HttpClient);
39
- const config = yield* Service63;
39
+ const config = yield* Service67;
40
40
  const source = { current: configured(yield* config.entries(), origin) };
41
41
  const loaded = { models: [], hash: "[]" };
42
42
  yield* ctx.integration.transform((integrations) => {
@@ -63,7 +63,7 @@ function make6(origin = "http://127.0.0.1:1234", interval = "30 seconds") {
63
63
  });
64
64
  for (const item of loaded.models) {
65
65
  catalog.model.update(providerID, item.key, (model) => {
66
- model.modelID = ID14.make(item.key);
66
+ model.modelID = ID15.make(item.key);
67
67
  model.name = item.display_name || item.key;
68
68
  model.family = item.architecture ? Family2.make(item.architecture) : undefined;
69
69
  model.capabilities = {
@@ -1,44 +1,44 @@
1
1
  import {
2
- Service40
3
- } from "./shell-2x7hewgh.js";
2
+ Service53
3
+ } from "./model-resolver-pmt5dx08.js";
4
4
  import {
5
5
  MAX_MARKDOWN_BYTES2,
6
6
  convertHTMLToMarkdown2
7
- } from "./shell-a1tpkmh4.js";
7
+ } from "./model-resolver-a1tpkmh4.js";
8
8
  import {
9
9
  collectBoundedResponseBody2
10
- } from "./shell-3v8g72cx.js";
10
+ } from "./model-resolver-3v8g72cx.js";
11
11
  import {
12
12
  __export
13
- } from "./shell-9rqn6x4v.js";
13
+ } from "./model-resolver-9rqn6x4v.js";
14
14
 
15
15
  // src/tool/plugin/webfetch.ts
16
16
  var exports_webfetch = {};
17
17
  __export(exports_webfetch, {
18
18
  DEFAULT_TIMEOUT_SECONDS: () => DEFAULT_TIMEOUT_SECONDS2,
19
- Input: () => Input10,
20
- MAX_RESPONSE_BYTES: () => MAX_RESPONSE_BYTES2,
19
+ Input: () => Input9,
20
+ MAX_RESPONSE_BYTES: () => MAX_RESPONSE_BYTES3,
21
21
  MAX_TIMEOUT_SECONDS: () => MAX_TIMEOUT_SECONDS2,
22
- Plugin: () => Plugin28,
22
+ Plugin: () => Plugin40,
23
23
  WebFetchTool: () => exports_webfetch,
24
24
  convertHTMLToMarkdown: () => convertHTMLToMarkdown2,
25
25
  description: () => description5,
26
26
  extractTextFromHTML: () => extractTextFromHTML2,
27
- name: () => name10
27
+ name: () => name9
28
28
  });
29
29
  import { ToolFailure } from "@opencode-ai/ai";
30
30
  import { Duration, Effect, Schema } from "effect";
31
31
  import { HttpClient, HttpClientRequest, HttpClientResponse } from "effect/unstable/http";
32
32
  import { Parser } from "htmlparser2";
33
- var name10 = "webfetch";
34
- var MAX_RESPONSE_BYTES2 = MAX_MARKDOWN_BYTES2;
33
+ var name9 = "webfetch";
34
+ var MAX_RESPONSE_BYTES3 = MAX_MARKDOWN_BYTES2;
35
35
  var DEFAULT_TIMEOUT_SECONDS2 = 30;
36
36
  var MAX_TIMEOUT_SECONDS2 = 120;
37
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 Input10 = Schema.Struct({
41
+ var Input9 = 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 Input10 = Schema.Struct({
48
48
  var Output = Schema.Struct({
49
49
  url: Schema.String,
50
50
  contentType: Schema.String,
51
- format: Input10.fields.format,
51
+ format: Input9.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 Plugin28 = {
95
+ var Plugin40 = {
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* Service40;
99
+ const permission = yield* Service53;
100
100
  yield* ctx.tool.transform((editor) => editor.add({
101
- name: name10,
101
+ name: name9,
102
102
  options: { codemode: false },
103
103
  description: description5,
104
- input: Input10,
104
+ input: Input9,
105
105
  output: Output,
106
106
  execute: (input, context) => Effect.gen(function* () {
107
107
  yield* Effect.try({
@@ -109,7 +109,7 @@ var Plugin28 = {
109
109
  catch: (error) => error
110
110
  });
111
111
  yield* permission.assert({
112
- action: name10,
112
+ action: name9,
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 { name10, MAX_RESPONSE_BYTES2, DEFAULT_TIMEOUT_SECONDS2, MAX_TIMEOUT_SECONDS2, description5, Input10, Plugin28, extractTextFromHTML2, exports_webfetch };
170
+ export { name9, MAX_RESPONSE_BYTES3, DEFAULT_TIMEOUT_SECONDS2, MAX_TIMEOUT_SECONDS2, description5, Input9, Plugin40, extractTextFromHTML2, exports_webfetch };
@@ -1,27 +1,27 @@
1
1
  import {
2
- ID15,
2
+ ID16,
3
3
  aisdk2,
4
4
  mergeOverlay2
5
- } from "./shell-hc4b3kyg.js";
5
+ } from "./model-resolver-rvb2zp0m.js";
6
6
  import {
7
- ID14,
7
+ ID15,
8
8
  VariantID2,
9
9
  Info28,
10
10
  compatibility2
11
- } from "./shell-sxaj9jh7.js";
11
+ } from "./model-resolver-3mrm2hwf.js";
12
12
  import {
13
13
  __export
14
- } from "./shell-9rqn6x4v.js";
14
+ } from "./model-resolver-9rqn6x4v.js";
15
15
 
16
16
  // src/modal/models.ts
17
- var exports_models2 = {};
18
- __export(exports_models2, {
19
- ModalModels: () => exports_models2,
20
- get: () => get3
17
+ var exports_models = {};
18
+ __export(exports_models, {
19
+ ModalModels: () => exports_models,
20
+ get: () => get2
21
21
  });
22
22
  import { Money } from "@opencode-ai/schema/money";
23
23
  import { Option, Schema } from "effect";
24
- var providerID = ID15.make("modal");
24
+ var providerID = ID16.make("modal");
25
25
  var ReasoningOption = Schema.Struct({
26
26
  type: Schema.Literal("effort"),
27
27
  values: Schema.Array(Schema.NullOr(Schema.String))
@@ -53,7 +53,7 @@ var RemoteModel = Schema.Struct({
53
53
  var Response = Schema.Struct({ data: Schema.Array(Schema.Unknown) });
54
54
  var decodeResponse = Schema.decodeUnknownSync(Response);
55
55
  var decodeModel = Schema.decodeUnknownOption(RemoteModel);
56
- async function get3(baseURL, apiKey, existing) {
56
+ async function get2(baseURL, apiKey, existing) {
57
57
  const response = await fetch(`${baseURL.replace(/\/+$/, "")}/models`, {
58
58
  headers: {
59
59
  Authorization: `Bearer ${apiKey}`
@@ -69,8 +69,8 @@ async function get3(baseURL, apiKey, existing) {
69
69
  const templates = new Map(existing.map((model) => [model.id, model]));
70
70
  const result = new Map;
71
71
  for (const item of remote) {
72
- const template = templates.get(ID14.make(item.base_model_id ?? item.hugging_face_id ?? item.id));
73
- const id = ID14.make(item.id);
72
+ const template = templates.get(ID15.make(item.base_model_id ?? item.hugging_face_id ?? item.id));
73
+ const id = ID15.make(item.id);
74
74
  result.set(id, build(id, item, baseURL, template));
75
75
  }
76
76
  return result;
@@ -91,7 +91,7 @@ function build(id, remote, baseURL, previous) {
91
91
  return Info28.make({
92
92
  ...Info28.default(providerID, id),
93
93
  id,
94
- modelID: ID14.make(remote.id),
94
+ modelID: ID15.make(remote.id),
95
95
  providerID,
96
96
  name: remote.name ?? previous?.name ?? remote.id,
97
97
  family: previous?.family,
@@ -138,4 +138,4 @@ function variants(remote) {
138
138
  return [...seen.values()];
139
139
  }
140
140
 
141
- export { get3, exports_models2 };
141
+ export { get2, exports_models };
@@ -1,30 +1,30 @@
1
1
  import {
2
2
  makeUnsafe2
3
- } from "./shell-y71avatq.js";
3
+ } from "./model-resolver-y71avatq.js";
4
4
  import {
5
5
  __export
6
- } from "./shell-9rqn6x4v.js";
6
+ } from "./model-resolver-9rqn6x4v.js";
7
7
 
8
8
  // src/plugin/update.ts
9
9
  var exports_update = {};
10
10
  __export(exports_update, {
11
11
  PluginUpdate: () => exports_update,
12
- Service: () => Service5,
13
- node: () => node7
12
+ Service: () => Service3,
13
+ node: () => node5
14
14
  });
15
15
  import { Clock, Context, Effect, Exit, Layer, Option, PubSub, Stream } from "effect";
16
16
  import { Npm } from "@opencode-ai/util/npm";
17
17
  import { makeGlobalNode } from "@opencode-ai/util/effect/app-node";
18
18
  var interval = 24 * 60 * 60 * 1000;
19
19
 
20
- class Service5 extends Context.Service()("@opencode/PluginUpdate") {
20
+ class Service3 extends Context.Service()("@opencode/PluginUpdate") {
21
21
  }
22
- var layer = Layer.effect(Service5, Effect.gen(function* () {
22
+ var layer = Layer.effect(Service3, Effect.gen(function* () {
23
23
  const npm = yield* Npm.Service;
24
24
  const locks = makeUnsafe2();
25
25
  const status = new Map;
26
26
  const changes = yield* PubSub.unbounded();
27
- return Service5.of({
27
+ return Service3.of({
28
28
  check: (target, options) => locks.withLock(target)(Effect.gen(function* () {
29
29
  const checkedAt = yield* Clock.currentTimeMillis;
30
30
  const current = status.get(target);
@@ -49,6 +49,6 @@ var layer = Layer.effect(Service5, Effect.gen(function* () {
49
49
  changes: () => Stream.fromPubSub(changes)
50
50
  });
51
51
  }));
52
- var node7 = makeGlobalNode({ service: Service5, layer, deps: [Npm.node] });
52
+ var node5 = makeGlobalNode({ service: Service3, layer, deps: [Npm.node] });
53
53
 
54
- export { Service5, node7, exports_update };
54
+ export { Service3, node5, exports_update };