@opencode/core 0.0.0-dev-1169 → 0.0.0-dev-1179

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 (916) hide show
  1. package/dist/account/sql.js +1 -1
  2. package/dist/agent.js +82 -82
  3. package/dist/aisdk-native.js +1 -1
  4. package/dist/aisdk.js +109 -109
  5. package/dist/app.js +5 -5
  6. package/dist/artifact.js +257 -257
  7. package/dist/bus.js +80 -80
  8. package/dist/chunks/{schema-aj7mw0zk.js → location-034tev2y.js} +2 -2
  9. package/dist/chunks/{schema-pmpqfy7z.js → location-07qnb2a9.js} +32 -32
  10. package/dist/chunks/{schema-mmk0jhxb.js → location-0aekehyv.js} +15 -15
  11. package/dist/chunks/{schema-65g7jm80.js → location-0ekwy2tv.js} +18 -18
  12. package/dist/chunks/{schema-0j7gp832.js → location-0j7gp832.js} +1 -1
  13. package/dist/chunks/{schema-7k5jmvhj.js → location-0m3187re.js} +21 -21
  14. package/dist/chunks/{schema-0ma9gw4f.js → location-0ma9gw4f.js} +2 -2
  15. package/dist/chunks/{schema-9rtfsky6.js → location-0nqcan8y.js} +29 -29
  16. package/dist/chunks/{schema-vgp39c3q.js → location-10f7w4cc.js} +19 -19
  17. package/dist/chunks/{schema-pjf82mvf.js → location-10t768hb.js} +33 -33
  18. package/dist/chunks/{schema-s02m1st8.js → location-18znffw0.js} +29 -29
  19. package/dist/chunks/{schema-1aqsckx4.js → location-1aqsckx4.js} +1 -1
  20. package/dist/chunks/{schema-2hpjgcj7.js → location-1bx6cned.js} +15 -15
  21. package/dist/chunks/{schema-27w5k9zf.js → location-1ep2p91f.js} +2 -2
  22. package/dist/chunks/{schema-9nh708zh.js → location-1m2wk9v5.js} +6 -6
  23. package/dist/chunks/{schema-6a3nme33.js → location-1vj6xvjw.js} +18 -18
  24. package/dist/chunks/{schema-1x2knyw4.js → location-1x2knyw4.js} +1 -1
  25. package/dist/chunks/{schema-1yq9hg58.js → location-1yq9hg58.js} +1 -1
  26. package/dist/chunks/{schema-t9vhjqng.js → location-20h34wnp.js} +16 -16
  27. package/dist/chunks/{schema-etrnj9s7.js → location-233argac.js} +6 -6
  28. package/dist/chunks/{schema-xv3aaf54.js → location-2abzm25x.js} +13 -13
  29. package/dist/chunks/{schema-2fc7eemy.js → location-2fc7eemy.js} +1 -1
  30. package/dist/chunks/{schema-6y4qc4mp.js → location-2h9m3223.js} +14 -14
  31. package/dist/chunks/{schema-f6aj1kd5.js → location-2njzdmfy.js} +15 -15
  32. package/dist/chunks/{schema-2p60zmnr.js → location-2p60zmnr.js} +2 -2
  33. package/dist/chunks/{schema-s1xc4ekk.js → location-2rxv96ss.js} +8 -8
  34. package/dist/chunks/{schema-4zcepfyr.js → location-2y8q1569.js} +4 -4
  35. package/dist/chunks/{schema-a6kay9xz.js → location-2zey878g.js} +8 -8
  36. package/dist/chunks/{schema-1p6p0791.js → location-30m4s9qv.js} +7 -7
  37. package/dist/chunks/{schema-xznbj9qp.js → location-37xrhg99.js} +22 -22
  38. package/dist/chunks/{schema-fq23ffp0.js → location-3drk4kfk.js} +7 -7
  39. package/dist/chunks/{schema-3hepkmqq.js → location-3hepkmqq.js} +1 -1
  40. package/dist/chunks/location-3khabdj8.js +26 -0
  41. package/dist/chunks/{schema-3nnrz6f6.js → location-3nnrz6f6.js} +1 -1
  42. package/dist/chunks/{schema-vz5bqa0f.js → location-3pfs30kn.js} +12 -12
  43. package/dist/chunks/{schema-r17fbvme.js → location-3qgwywyc.js} +4 -4
  44. package/dist/chunks/{schema-2m6srr37.js → location-3sp0ngqj.js} +13 -13
  45. package/dist/chunks/{schema-xneeh6s4.js → location-3vy7qf6d.js} +13 -13
  46. package/dist/chunks/{schema-nstbetgn.js → location-3w8a4vh4.js} +8 -8
  47. package/dist/chunks/{schema-40y6dtc2.js → location-40y6dtc2.js} +1 -1
  48. package/dist/chunks/{schema-44pmzq9c.js → location-44pmzq9c.js} +2 -2
  49. package/dist/chunks/{schema-vtkvgxem.js → location-453w9m5z.js} +14 -14
  50. package/dist/chunks/{schema-6c25bs39.js → location-487t1s35.js} +17 -17
  51. package/dist/chunks/{schema-dsgstd3d.js → location-4b0zbebg.js} +15 -15
  52. package/dist/chunks/{schema-4dx1dgte.js → location-4dx1dgte.js} +1 -1
  53. package/dist/chunks/{schema-4f25tdd0.js → location-4f25tdd0.js} +1 -1
  54. package/dist/chunks/{schema-7a9m1j2x.js → location-4p430f57.js} +8 -8
  55. package/dist/chunks/{schema-4pyp9zr9.js → location-4pyp9zr9.js} +1 -1
  56. package/dist/chunks/{schema-4v008n1t.js → location-4v008n1t.js} +1 -1
  57. package/dist/chunks/{schema-nbbfmg35.js → location-4ydnaq49.js} +9 -9
  58. package/dist/chunks/{schema-pe69sqjx.js → location-51qrcxr9.js} +10 -9
  59. package/dist/chunks/{schema-f0wpasqh.js → location-520q9z14.js} +3 -3
  60. package/dist/chunks/{schema-9wxzp1qr.js → location-54jv2wzs.js} +26 -26
  61. package/dist/chunks/{schema-01h9qvbn.js → location-54mwx2mf.js} +30 -30
  62. package/dist/chunks/{schema-ksd47y91.js → location-5cfgnwdt.js} +30 -30
  63. package/dist/chunks/{schema-0jfy4hkm.js → location-5j27558h.js} +11 -11
  64. package/dist/chunks/{schema-g2183vvk.js → location-5jgktrgx.js} +3 -3
  65. package/dist/chunks/{schema-5m9w47nd.js → location-5m9w47nd.js} +1 -1
  66. package/dist/chunks/{schema-95zwqs5c.js → location-5rd0v6y0.js} +140 -140
  67. package/dist/chunks/{schema-7tfjg757.js → location-5sfzg2cr.js} +12 -12
  68. package/dist/chunks/{schema-qmqqtqcn.js → location-5shjjg2v.js} +3 -3
  69. package/dist/chunks/{schema-626jn072.js → location-5wddjt8m.js} +21 -21
  70. package/dist/chunks/{schema-5whx36p1.js → location-5whx36p1.js} +1 -1
  71. package/dist/chunks/{schema-n5k4x34p.js → location-5yz9twxg.js} +51 -51
  72. package/dist/chunks/{schema-5zpqhmp2.js → location-5zpqhmp2.js} +3 -3
  73. package/dist/chunks/{schema-e2sh8fdv.js → location-627853rm.js} +9 -9
  74. package/dist/chunks/{schema-yts2a8qm.js → location-67wwskyb.js} +4 -4
  75. package/dist/chunks/{schema-963hk181.js → location-68cs06h1.js} +5 -5
  76. package/dist/chunks/{schema-9hjrmeye.js → location-6syc23cm.js} +8 -8
  77. package/dist/chunks/{schema-e5q9zwm8.js → location-6wbggnwm.js} +12 -12
  78. package/dist/chunks/{schema-6y2b864j.js → location-6y2b864j.js} +1 -1
  79. package/dist/chunks/{schema-yyb7x4q2.js → location-6zdnk2ay.js} +34 -34
  80. package/dist/chunks/{schema-054zc0xd.js → location-74pdjgc4.js} +3 -3
  81. package/dist/chunks/{schema-775hqbnd.js → location-775hqbnd.js} +3 -3
  82. package/dist/chunks/{schema-7bmhse3q.js → location-7bmhse3q.js} +1 -1
  83. package/dist/chunks/{schema-cn0khwc2.js → location-7dffjqxb.js} +17 -17
  84. package/dist/chunks/{schema-ync0ket7.js → location-7fx8nsmy.js} +5 -5
  85. package/dist/chunks/{schema-1fqa7gdp.js → location-7n6fyy26.js} +3 -3
  86. package/dist/chunks/{schema-s5jhzpr9.js → location-7nfcbe58.js} +27 -27
  87. package/dist/chunks/{schema-nfdz4xt8.js → location-7nhv6fwk.js} +36 -36
  88. package/dist/chunks/{schema-v8vtkzra.js → location-7t1scbq3.js} +79 -79
  89. package/dist/chunks/{schema-7w2ypzdf.js → location-7w2ypzdf.js} +1 -1
  90. package/dist/chunks/{schema-7weczvnd.js → location-7weczvnd.js} +1 -1
  91. package/dist/chunks/{schema-1awa9fg3.js → location-7xf9shm2.js} +9 -9
  92. package/dist/chunks/{schema-9zf7nxcy.js → location-7z3v8rbt.js} +10 -10
  93. package/dist/chunks/{schema-yj5p50qd.js → location-7zne7j5x.js} +5 -5
  94. package/dist/chunks/{schema-80pdk984.js → location-80pdk984.js} +1 -1
  95. package/dist/chunks/{schema-yhy601mr.js → location-832r0z2t.js} +9 -9
  96. package/dist/chunks/{schema-swtby07c.js → location-834sk437.js} +4 -4
  97. package/dist/chunks/{schema-85jq8dht.js → location-85jq8dht.js} +1 -1
  98. package/dist/chunks/{schema-zk8ezkjv.js → location-8a9mkwdh.js} +8 -8
  99. package/dist/chunks/{schema-8b3vzgkx.js → location-8b3vzgkx.js} +1 -1
  100. package/dist/chunks/{schema-essv7e64.js → location-8djrpyw1.js} +8 -8
  101. package/dist/chunks/{schema-m98552er.js → location-8dvxgptq.js} +2 -2
  102. package/dist/chunks/{schema-32zvh7m8.js → location-8fyfc21t.js} +29 -29
  103. package/dist/chunks/{schema-ca2kttj4.js → location-8hbdfrk8.js} +4 -4
  104. package/dist/chunks/{schema-8kjyvwy5.js → location-8kjyvwy5.js} +1 -1
  105. package/dist/chunks/{schema-37rq3n90.js → location-8nqeb6jh.js} +24 -24
  106. package/dist/chunks/{schema-2gpvmrfd.js → location-8r6kez7m.js} +40 -38
  107. package/dist/chunks/{schema-35jtqnzh.js → location-8s5nypsy.js} +15 -15
  108. package/dist/chunks/{schema-bb3mmwvh.js → location-8sxe6kv8.js} +2 -2
  109. package/dist/chunks/{schema-8wtp7s3z.js → location-8wtp7s3z.js} +1 -1
  110. package/dist/chunks/{schema-s62h8xwa.js → location-8xxagg6y.js} +16 -16
  111. package/dist/chunks/{schema-8zv0xmg5.js → location-8zv0xmg5.js} +1 -1
  112. package/dist/chunks/{schema-sf9y72b7.js → location-90ct6wq4.js} +4 -4
  113. package/dist/chunks/{schema-txgthtwa.js → location-9dxxrkg1.js} +8 -8
  114. package/dist/chunks/{schema-x2199xg7.js → location-9f03aksa.js} +26 -26
  115. package/dist/chunks/{schema-nvrhh2jh.js → location-9fx97vxq.js} +28 -28
  116. package/dist/chunks/{schema-93f9eha0.js → location-9ge0any9.js} +20 -20
  117. package/dist/chunks/{schema-t5zz07dm.js → location-9ghhvxgs.js} +22 -22
  118. package/dist/chunks/{schema-p1tqk3wj.js → location-9n0cta27.js} +3 -3
  119. package/dist/chunks/{schema-3xnqrhgf.js → location-9vzqnq6b.js} +32 -32
  120. package/dist/chunks/{schema-hatv92we.js → location-a5e1wvpv.js} +9 -9
  121. package/dist/chunks/{schema-pet7zff3.js → location-a7gm47h5.js} +16 -16
  122. package/dist/chunks/{schema-894qcq1y.js → location-ang7raqx.js} +59 -59
  123. package/dist/chunks/{schema-00pd6sp3.js → location-avv30etj.js} +8 -8
  124. package/dist/chunks/{schema-3cbjf1nt.js → location-ayjs7tqn.js} +2 -2
  125. package/dist/chunks/{schema-b26ddj6h.js → location-b26ddj6h.js} +4 -4
  126. package/dist/chunks/{schema-b7nkz392.js → location-b7nkz392.js} +1 -1
  127. package/dist/chunks/{schema-bb65ze16.js → location-bb65ze16.js} +3 -3
  128. package/dist/chunks/{schema-3p57dcxh.js → location-bex4xsk5.js} +4 -4
  129. package/dist/chunks/{schema-5n0rnk8e.js → location-bhfd478d.js} +4 -4
  130. package/dist/chunks/{schema-wvp6s5r8.js → location-bq0q5ae9.js} +36 -36
  131. package/dist/chunks/{schema-ar7qhdy9.js → location-brdz3nbr.js} +14 -14
  132. package/dist/chunks/{schema-bstexjd6.js → location-bstexjd6.js} +1 -1
  133. package/dist/chunks/{schema-sswnp1hr.js → location-btyxa42k.js} +15 -15
  134. package/dist/chunks/{schema-by8ty0bx.js → location-by8ty0bx.js} +1 -1
  135. package/dist/chunks/location-c128d798.js +457 -0
  136. package/dist/chunks/{schema-82t6hvvc.js → location-c1k776k8.js} +4 -4
  137. package/dist/chunks/{schema-fc93665r.js → location-c1sfsxsr.js} +8 -8
  138. package/dist/chunks/{schema-0dpgc71n.js → location-ca4281kv.js} +19 -19
  139. package/dist/chunks/{schema-cd40mm2x.js → location-cedjfvec.js} +25 -25
  140. package/dist/chunks/{schema-dszy2cs3.js → location-cr6p4hnc.js} +4 -4
  141. package/dist/chunks/{schema-s5pjjcby.js → location-crf83wvf.js} +9 -9
  142. package/dist/chunks/{schema-6h8vcvjm.js → location-ctmpqb7w.js} +9 -9
  143. package/dist/chunks/{schema-cwrgdav8.js → location-cwrgdav8.js} +2 -2
  144. package/dist/chunks/{schema-djejg4dy.js → location-d0pmvwgf.js} +9 -9
  145. package/dist/chunks/{schema-pmpycxtw.js → location-d4dk6fd1.js} +14 -14
  146. package/dist/chunks/{schema-d4v9tmah.js → location-d4v9tmah.js} +2 -2
  147. package/dist/chunks/{schema-8akjpyn6.js → location-dbatw319.js} +3 -3
  148. package/dist/chunks/{schema-160yv0cs.js → location-ddvn7d3w.js} +8 -8
  149. package/dist/chunks/{schema-7zqxd1dh.js → location-dn2hn5p2.js} +8 -8
  150. package/dist/chunks/{schema-cqmt8zzz.js → location-dsbqjjxc.js} +7 -7
  151. package/dist/chunks/{schema-dt77769w.js → location-dt77769w.js} +1 -1
  152. package/dist/chunks/{schema-hcnkffw2.js → location-e5pdsp4h.js} +11 -11
  153. package/dist/chunks/{schema-28yt5ya3.js → location-e7gstf88.js} +8 -8
  154. package/dist/chunks/{schema-pj4g6jw6.js → location-ekhvmsd2.js} +9 -9
  155. package/dist/chunks/{schema-m8071f4b.js → location-en70vxsw.js} +1 -1
  156. package/dist/chunks/{schema-eqw4pqj1.js → location-eqw4pqj1.js} +2 -2
  157. package/dist/chunks/{schema-12t8q5ww.js → location-eys28pne.js} +23 -23
  158. package/dist/chunks/{schema-p021jaq0.js → location-f4xv0kx9.js} +10 -10
  159. package/dist/chunks/{schema-jpg972ga.js → location-f649f4qw.js} +5 -5
  160. package/dist/chunks/{schema-5cxze2ek.js → location-fcv347h7.js} +20 -20
  161. package/dist/chunks/{schema-h5gm5jf1.js → location-ffvvmdd5.js} +7 -7
  162. package/dist/chunks/{schema-fg9p65nk.js → location-fg9p65nk.js} +2 -2
  163. package/dist/chunks/{schema-ymfq94hg.js → location-fje0em3a.js} +17 -17
  164. package/dist/chunks/{schema-e36kjsvh.js → location-fqf9k8bj.js} +6 -6
  165. package/dist/chunks/{schema-4vhxd4fz.js → location-fyvewnmw.js} +2 -2
  166. package/dist/chunks/{schema-hw67g06k.js → location-g0fycf8m.js} +34 -21
  167. package/dist/chunks/{schema-eestr1ap.js → location-g2mcafwx.js} +11 -11
  168. package/dist/chunks/{schema-k3ggfjkb.js → location-g3nkktaq.js} +2 -2
  169. package/dist/chunks/{schema-0vb5mjcv.js → location-g5s9nrqb.js} +19 -19
  170. package/dist/chunks/{schema-90kfgkgm.js → location-g6eh4kmy.js} +12 -12
  171. package/dist/chunks/{schema-fqpvdrje.js → location-g8317pvp.js} +6 -6
  172. package/dist/chunks/{schema-7357t78n.js → location-g96z14v2.js} +7 -7
  173. package/dist/chunks/{schema-gbjdnr5j.js → location-gbjdnr5j.js} +2 -2
  174. package/dist/chunks/{schema-yrzcpjjp.js → location-ggj4zh1g.js} +34 -34
  175. package/dist/chunks/{schema-ghrv1g9c.js → location-ghrv1g9c.js} +1 -1
  176. package/dist/chunks/{schema-ktck1cjp.js → location-gwyytpcj.js} +6 -6
  177. package/dist/chunks/{schema-87kxp3gn.js → location-gx76kxxn.js} +11 -11
  178. package/dist/chunks/{schema-jg2ygqjd.js → location-h0j0r0ej.js} +8 -8
  179. package/dist/chunks/{schema-7xwq3sd0.js → location-h7bze1ap.js} +6 -6
  180. package/dist/chunks/{schema-bq0ysetc.js → location-hazcdx0a.js} +14 -14
  181. package/dist/chunks/{schema-mkqrt9r1.js → location-hb8jp00h.js} +14 -14
  182. package/dist/chunks/{schema-5c0ay57s.js → location-hced1q2j.js} +4 -4
  183. package/dist/chunks/{schema-7afn9zz1.js → location-hcrwe74w.js} +21 -21
  184. package/dist/chunks/location-hdcjwryz.js +34 -0
  185. package/dist/chunks/{schema-7y3w56wa.js → location-hesc68bg.js} +3 -3
  186. package/dist/chunks/{schema-dnern54h.js → location-hqtkd67t.js} +11 -11
  187. package/dist/chunks/location-hw97mp2c.js +145 -0
  188. package/dist/chunks/{schema-g44npge0.js → location-hwvn16gh.js} +19 -19
  189. package/dist/chunks/{schema-8jv95stc.js → location-j217sy44.js} +6 -6
  190. package/dist/chunks/{schema-pve6n1f6.js → location-j2gp4875.js} +20 -20
  191. package/dist/chunks/{schema-k278m6zw.js → location-j9avjeqn.js} +37 -37
  192. package/dist/chunks/{schema-j9nxzz3g.js → location-j9nxzz3g.js} +3 -3
  193. package/dist/chunks/{schema-ayevjdp6.js → location-jdnvwwde.js} +4 -4
  194. package/dist/chunks/{schema-r6ar04y2.js → location-jh2tgb1s.js} +18 -18
  195. package/dist/chunks/{schema-ae2hmq0b.js → location-jj4ss8qz.js} +24 -24
  196. package/dist/chunks/{schema-jm70asfg.js → location-jm70asfg.js} +1 -1
  197. package/dist/chunks/{schema-4w9c1rv8.js → location-jqzg9pfr.js} +77 -77
  198. package/dist/chunks/{schema-gvah0j30.js → location-jrbvgdj6.js} +9 -9
  199. package/dist/chunks/{schema-1yzf0qyg.js → location-kcw9t9ea.js} +31 -31
  200. package/dist/chunks/{schema-dwwyec8z.js → location-kgmdm1mc.js} +6 -6
  201. package/dist/chunks/{schema-vmqe41cb.js → location-kj9n5bvh.js} +4 -4
  202. package/dist/chunks/{schema-kt3bjfbg.js → location-kt3bjfbg.js} +1 -1
  203. package/dist/chunks/{schema-1zt50wep.js → location-kw6qjj90.js} +12 -12
  204. package/dist/chunks/{schema-kzczzf4v.js → location-kzczzf4v.js} +1 -1
  205. package/dist/chunks/{schema-m1714858.js → location-m1714858.js} +1 -1
  206. package/dist/chunks/{schema-xh9sbx5d.js → location-m8d5br9n.js} +29 -29
  207. package/dist/chunks/{schema-m90tx7mw.js → location-m90tx7mw.js} +1 -1
  208. package/dist/chunks/{schema-m9w0rfyh.js → location-m9w0rfyh.js} +1 -1
  209. package/dist/chunks/{schema-8z6m94af.js → location-mb7mbhnz.js} +3 -3
  210. package/dist/chunks/{schema-bszd1e77.js → location-mbhm97dq.js} +5 -5
  211. package/dist/chunks/{schema-me0dhgxs.js → location-me0dhgxs.js} +1 -1
  212. package/dist/chunks/{schema-qjjf83ye.js → location-mpce7fj6.js} +6 -6
  213. package/dist/chunks/{schema-zxxfjzbm.js → location-ms8w9w9p.js} +7 -7
  214. package/dist/chunks/{schema-msd2a3qm.js → location-msd2a3qm.js} +4 -4
  215. package/dist/chunks/{schema-egv7nm33.js → location-mvzyv7p1.js} +20 -20
  216. package/dist/chunks/{schema-qqan37dg.js → location-mw69dbej.js} +66 -56
  217. package/dist/chunks/{schema-n320gsn2.js → location-n320gsn2.js} +1 -1
  218. package/dist/chunks/{schema-7w972mxx.js → location-nbpfc68v.js} +28 -28
  219. package/dist/chunks/{schema-q4bddqzm.js → location-ndrffskx.js} +12 -12
  220. package/dist/chunks/{schema-83r2q2tc.js → location-nkbgqbmq.js} +28 -28
  221. package/dist/chunks/{schema-ym2hf25x.js → location-nkyv4gy5.js} +9 -9
  222. package/dist/chunks/{schema-wjt8g24f.js → location-nrh4pmd8.js} +42 -42
  223. package/dist/chunks/{schema-kny7n17h.js → location-nszxejq2.js} +46 -46
  224. package/dist/chunks/{schema-34nzn3j8.js → location-nts6hgg5.js} +21 -21
  225. package/dist/chunks/{schema-3gt03n7r.js → location-nw6v9rk5.js} +20 -20
  226. package/dist/chunks/{schema-cb9p0hr3.js → location-nww9qz4b.js} +5 -5
  227. package/dist/chunks/{schema-tamm6359.js → location-nyajycgy.js} +34 -34
  228. package/dist/chunks/{schema-akbak9kn.js → location-p575bqkg.js} +10 -10
  229. package/dist/chunks/{schema-qfbkhxhn.js → location-p6sfwv0d.js} +4 -4
  230. package/dist/chunks/{schema-v1nrzbej.js → location-p9ym6sf6.js} +4 -4
  231. package/dist/chunks/{schema-7tf6362t.js → location-pazav6xj.js} +29 -29
  232. package/dist/chunks/{schema-b6cq1fvz.js → location-pb8daj1x.js} +4 -4
  233. package/dist/chunks/{schema-ns5s5x7n.js → location-pdp6kg1x.js} +10 -10
  234. package/dist/chunks/{schema-zz0y7mj6.js → location-pf5q8n97.js} +20 -20
  235. package/dist/chunks/{schema-z583g8kc.js → location-pjmvzs6b.js} +4 -4
  236. package/dist/chunks/{schema-pknna89w.js → location-pknna89w.js} +1 -1
  237. package/dist/chunks/{schema-y5ken5vs.js → location-ppztpcxx.js} +5 -5
  238. package/dist/chunks/{schema-5xymd101.js → location-pwpfzbzq.js} +12 -12
  239. package/dist/chunks/{schema-229tvxdn.js → location-px7qpgcn.js} +4 -4
  240. package/dist/chunks/{schema-ph6zr0my.js → location-q2nqhswr.js} +22 -22
  241. package/dist/chunks/{schema-pp2hmg1m.js → location-q3kx4bqk.js} +7 -7
  242. package/dist/chunks/{schema-wrfejyj7.js → location-qbkag7ec.js} +11 -11
  243. package/dist/chunks/{schema-ntn2vp5r.js → location-qcdb8wvz.js} +20 -20
  244. package/dist/chunks/{schema-3n8639p5.js → location-qd1ydz3q.js} +23 -23
  245. package/dist/chunks/{schema-j8exsrxy.js → location-qdahr5f4.js} +26 -26
  246. package/dist/chunks/{schema-cce0647p.js → location-qg5v6165.js} +39 -39
  247. package/dist/chunks/{schema-n9g0jqka.js → location-qh9pvwbk.js} +30 -30
  248. package/dist/chunks/{schema-1wdt4fx4.js → location-qjx3z6qm.js} +8 -8
  249. package/dist/chunks/{schema-ep6pe98a.js → location-qk5sk9d1.js} +5 -5
  250. package/dist/chunks/{schema-s85z3cra.js → location-qkc3z5ds.js} +4 -4
  251. package/dist/chunks/{schema-qp7r0hxv.js → location-qp7r0hxv.js} +1 -1
  252. package/dist/chunks/{schema-3ew67rpx.js → location-qtpykmg2.js} +19 -19
  253. package/dist/chunks/location-qwz12hkq.js +16 -0
  254. package/dist/chunks/{schema-djbn8b3v.js → location-r35hstgm.js} +23 -23
  255. package/dist/chunks/{schema-w2eysc6j.js → location-r41sfy63.js} +6 -6
  256. package/dist/chunks/{schema-9rwnj3cf.js → location-r4970t12.js} +21 -21
  257. package/dist/chunks/{schema-87g0g3vw.js → location-r6f883a9.js} +43 -43
  258. package/dist/chunks/{schema-2tkbb2hd.js → location-r972m2ky.js} +20 -20
  259. package/dist/chunks/{schema-7a2p64p0.js → location-r9denkp6.js} +20 -20
  260. package/dist/chunks/{schema-rb9dy4dg.js → location-rb9dy4dg.js} +1 -1
  261. package/dist/chunks/{schema-2p7ww4m4.js → location-rc43dema.js} +35 -35
  262. package/dist/chunks/{schema-yve512cx.js → location-rck93akh.js} +9 -9
  263. package/dist/chunks/{schema-j9x1g365.js → location-re0c2r0c.js} +25 -25
  264. package/dist/chunks/{schema-rgc9cx3e.js → location-rgc9cx3e.js} +2 -2
  265. package/dist/chunks/{schema-94e33dpz.js → location-rj7jtxy8.js} +3 -3
  266. package/dist/chunks/{schema-7c8hwk2v.js → location-rraahxd6.js} +16 -16
  267. package/dist/chunks/{schema-jxw3nqfr.js → location-rva2sgyw.js} +8 -8
  268. package/dist/chunks/{schema-ngrhmx0y.js → location-ryjene5e.js} +34 -34
  269. package/dist/chunks/{schema-ns3f0y8s.js → location-s103wdxn.js} +12 -12
  270. package/dist/chunks/{schema-q0cx4jd1.js → location-s295w65z.js} +9 -9
  271. package/dist/chunks/{schema-jpaeaxj3.js → location-s3cahzjb.js} +10 -10
  272. package/dist/chunks/{schema-fb3jq07n.js → location-s8zafhs6.js} +4 -4
  273. package/dist/chunks/{schema-ynq5d5wj.js → location-sbssw13n.js} +13 -13
  274. package/dist/chunks/{schema-sbya78hr.js → location-sbya78hr.js} +1 -1
  275. package/dist/chunks/{schema-53m7ep8y.js → location-sf64733g.js} +44 -44
  276. package/dist/chunks/{schema-gsm10rjf.js → location-sgt8g3bn.js} +4 -4
  277. package/dist/chunks/{schema-hgzwgvze.js → location-sjjhs5t5.js} +2 -2
  278. package/dist/chunks/{schema-xfk334w4.js → location-sqp3n15g.js} +5 -5
  279. package/dist/chunks/{schema-svcy3p9a.js → location-svcy3p9a.js} +1 -1
  280. package/dist/chunks/{schema-p94p4v4n.js → location-t62dywgn.js} +4 -4
  281. package/dist/chunks/{schema-ba5f9dy2.js → location-tb2mrvc9.js} +4 -4
  282. package/dist/chunks/{schema-tbpn7jtk.js → location-tbpn7jtk.js} +1 -1
  283. package/dist/chunks/{schema-knq5zpdc.js → location-tc7r93jj.js} +8 -8
  284. package/dist/chunks/{schema-tczq8hjw.js → location-tczq8hjw.js} +1 -1
  285. package/dist/chunks/{schema-wgtjsce3.js → location-tfrxry9m.js} +2 -2
  286. package/dist/chunks/{schema-tg7s7b5t.js → location-tg7s7b5t.js} +1 -1
  287. package/dist/chunks/{schema-tr8x705m.js → location-tr8x705m.js} +1 -1
  288. package/dist/chunks/{schema-tvtps2q9.js → location-tvtps2q9.js} +1 -1
  289. package/dist/chunks/{schema-twssxy5n.js → location-twssxy5n.js} +2 -2
  290. package/dist/chunks/{schema-qr8vfs2f.js → location-v0etzcgg.js} +53 -53
  291. package/dist/chunks/{schema-v2r1d0zg.js → location-v2r1d0zg.js} +1 -1
  292. package/dist/chunks/{schema-sgmpg1at.js → location-v5xc4kg7.js} +15 -15
  293. package/dist/chunks/{schema-pkdvs1r0.js → location-v6h1p5ye.js} +5 -5
  294. package/dist/chunks/{schema-55a1w20j.js → location-v7mv4svd.js} +17 -17
  295. package/dist/chunks/{schema-73tv2q91.js → location-v9z6vtxw.js} +8 -8
  296. package/dist/chunks/{schema-y682mywm.js → location-vegs8bg1.js} +10 -10
  297. package/dist/chunks/{schema-zf02ae39.js → location-vgrxzska.js} +29 -29
  298. package/dist/chunks/{schema-vjf35v1f.js → location-vjf35v1f.js} +1 -1
  299. package/dist/chunks/{schema-41ta799d.js → location-vvvpnzd1.js} +4 -4
  300. package/dist/chunks/{schema-7mpsrzpa.js → location-vxjwgjgd.js} +5 -5
  301. package/dist/chunks/{schema-6a3yqv2r.js → location-w0194dze.js} +3 -3
  302. package/dist/chunks/{schema-w3wsvvr9.js → location-w3wsvvr9.js} +1 -1
  303. package/dist/chunks/{schema-wr3re1en.js → location-w687dnns.js} +4 -4
  304. package/dist/chunks/{schema-tmgn3zs9.js → location-w6h8d6n2.js} +21 -21
  305. package/dist/chunks/{schema-w79nt68w.js → location-w79nt68w.js} +1 -1
  306. package/dist/chunks/{schema-wakvkjy4.js → location-wakvkjy4.js} +1 -1
  307. package/dist/chunks/{schema-t2trxbvf.js → location-wasyvcmp.js} +26 -26
  308. package/dist/chunks/{schema-wd87259q.js → location-wd87259q.js} +1 -1
  309. package/dist/chunks/{schema-apvw9r81.js → location-weab279a.js} +11 -11
  310. package/dist/chunks/{schema-nx4vzyjd.js → location-wegkxhrn.js} +2 -2
  311. package/dist/chunks/{schema-2s709x84.js → location-wgvnftve.js} +8 -8
  312. package/dist/chunks/{schema-c7cw818c.js → location-wt99tj4q.js} +5 -5
  313. package/dist/chunks/{schema-nd6a1rw0.js → location-wtv6jfvz.js} +3 -3
  314. package/dist/chunks/{schema-980raww3.js → location-wvpj03x8.js} +12 -12
  315. package/dist/chunks/{schema-x150ncgg.js → location-x150ncgg.js} +2 -2
  316. package/dist/chunks/{schema-jvnqdmg7.js → location-x7ey9rzq.js} +370 -362
  317. package/dist/chunks/{schema-92mnqtsa.js → location-x809x4sb.js} +12 -12
  318. package/dist/chunks/{schema-h1wwt2d4.js → location-x9mgr81e.js} +29 -29
  319. package/dist/chunks/{schema-pfgfzn9w.js → location-xbyghwr8.js} +16 -16
  320. package/dist/chunks/{schema-jh3vmqnb.js → location-xd5x38mr.js} +91 -79
  321. package/dist/chunks/{schema-bfmj02kq.js → location-xd8a83k1.js} +16 -16
  322. package/dist/chunks/{schema-4m48desf.js → location-xdemnhpf.js} +11 -11
  323. package/dist/chunks/{schema-3adw4bt5.js → location-xjbsd7zy.js} +9 -9
  324. package/dist/chunks/{schema-xxschbft.js → location-xjr6c8m4.js} +4 -4
  325. package/dist/chunks/{schema-0ahs07zn.js → location-xmx7xj34.js} +4 -4
  326. package/dist/chunks/{schema-e4shjbcy.js → location-xrte0c5k.js} +19 -19
  327. package/dist/chunks/{schema-qrnbag0z.js → location-xt1t7w4z.js} +31 -31
  328. package/dist/chunks/{schema-hagqs1d2.js → location-xvgdw3tt.js} +21 -21
  329. package/dist/chunks/{schema-9sk33afj.js → location-xz07m27x.js} +6 -6
  330. package/dist/chunks/{schema-y3p3hzkr.js → location-y3p3hzkr.js} +2 -2
  331. package/dist/chunks/{schema-jyqxtn40.js → location-y3w468jq.js} +13 -13
  332. package/dist/chunks/{schema-fcha702q.js → location-y4vwvzm9.js} +15 -15
  333. package/dist/chunks/{schema-pstexa60.js → location-y9742c9s.js} +8 -8
  334. package/dist/chunks/{schema-tqwq9s5x.js → location-ya097w5s.js} +30 -30
  335. package/dist/chunks/{schema-yb20nhc3.js → location-yb20nhc3.js} +1 -1
  336. package/dist/chunks/{schema-yepd7x5v.js → location-yepd7x5v.js} +2 -2
  337. package/dist/chunks/{schema-ed7x67as.js → location-ygjzxj3k.js} +3 -3
  338. package/dist/chunks/{schema-040bqqk0.js → location-yh8nrrbm.js} +1 -1
  339. package/dist/chunks/{schema-0khwxjqg.js → location-yh91mnek.js} +4 -4
  340. package/dist/chunks/{schema-gy85zcy8.js → location-ymsxw2w0.js} +28 -21
  341. package/dist/chunks/{schema-yr705xyq.js → location-yr705xyq.js} +1 -1
  342. package/dist/chunks/{schema-yvtc2x31.js → location-yvtc2x31.js} +1 -1
  343. package/dist/chunks/{schema-bjnxymnv.js → location-yzakgra2.js} +18 -18
  344. package/dist/chunks/{schema-pwm9xzc0.js → location-z46n6vb7.js} +15 -15
  345. package/dist/chunks/location-z8jdt7n2.js +273 -0
  346. package/dist/chunks/{schema-zded71tf.js → location-zded71tf.js} +3 -3
  347. package/dist/chunks/{schema-kad56yks.js → location-zex02exw.js} +17 -17
  348. package/dist/chunks/{schema-q7n78wgf.js → location-zj395kaq.js} +10 -10
  349. package/dist/chunks/{schema-5sq7dtyr.js → location-zv3jqzhg.js} +3 -3
  350. package/dist/codemode/catalog.js +1 -1
  351. package/dist/codemode/execution.js +5 -5
  352. package/dist/codemode/fetch.js +149 -149
  353. package/dist/codemode/instructions.js +9 -9
  354. package/dist/codemode/tool.js +156 -156
  355. package/dist/command.js +94 -94
  356. package/dist/config/discovery.js +95 -95
  357. package/dist/config/integration.js +3 -3
  358. package/dist/config/managed.js +1 -1
  359. package/dist/config/markdown.js +1 -1
  360. package/dist/config/normalize.js +113 -113
  361. package/dist/config/plugin/agent.js +134 -134
  362. package/dist/config/plugin/command.js +245 -245
  363. package/dist/config/plugin/compaction.js +174 -174
  364. package/dist/config/plugin/compatibility.js +154 -154
  365. package/dist/config/plugin/entry-observer.js +1 -1
  366. package/dist/config/plugin/formatter.js +132 -132
  367. package/dist/config/plugin/image.js +131 -131
  368. package/dist/config/plugin/instruction.js +131 -131
  369. package/dist/config/plugin/location-watcher.js +131 -131
  370. package/dist/config/plugin/mcp.js +148 -146
  371. package/dist/config/plugin/policy.js +131 -131
  372. package/dist/config/plugin/provider.js +131 -131
  373. package/dist/config/plugin/reference.js +133 -133
  374. package/dist/config/plugin/shell.js +133 -133
  375. package/dist/config/plugin/skill-file.js +150 -150
  376. package/dist/config/plugin/skill-scan.js +1 -1
  377. package/dist/config/plugin/skill.js +157 -157
  378. package/dist/config/plugin/snapshot.js +131 -131
  379. package/dist/config/plugin/source.js +135 -135
  380. package/dist/config/plugin/tool-output.js +132 -132
  381. package/dist/config/plugin/websearch.js +132 -132
  382. package/dist/config/plugin/worktree.js +133 -133
  383. package/dist/config/variable.js +1 -1
  384. package/dist/config/watch.js +1 -1
  385. package/dist/config.js +126 -126
  386. package/dist/console-access.js +1 -1
  387. package/dist/credential/sql.js +2 -2
  388. package/dist/credential.js +90 -90
  389. package/dist/database/batch.js +1 -1
  390. package/dist/database/database.js +77 -77
  391. package/dist/database/drizzle/effect-sqlite/driver.js +12 -12
  392. package/dist/database/drizzle/effect-sqlite/index.js +12 -12
  393. package/dist/database/drizzle/effect-sqlite/session.js +11 -11
  394. package/dist/database/drizzle/index.js +13 -13
  395. package/dist/database/drizzle/internal/drizzle-utils.js +1 -1
  396. package/dist/database/drizzle/sqlite-core/effect/count.js +1 -1
  397. package/dist/database/drizzle/sqlite-core/effect/db.js +9 -9
  398. package/dist/database/drizzle/sqlite-core/effect/delete.js +2 -2
  399. package/dist/database/drizzle/sqlite-core/effect/index.js +10 -10
  400. package/dist/database/drizzle/sqlite-core/effect/insert.js +2 -2
  401. package/dist/database/drizzle/sqlite-core/effect/query.js +1 -1
  402. package/dist/database/drizzle/sqlite-core/effect/raw.js +1 -1
  403. package/dist/database/drizzle/sqlite-core/effect/select.js +2 -2
  404. package/dist/database/drizzle/sqlite-core/effect/session.js +10 -10
  405. package/dist/database/drizzle/sqlite-core/effect/update.js +2 -2
  406. package/dist/database/drizzle.js +14 -14
  407. package/dist/database/migration/20260127222353_familiar_lady_ursula.js +1 -1
  408. package/dist/database/migration/20260211171708_add_project_commands.js +1 -1
  409. package/dist/database/migration/20260213144116_wakeful_the_professor.js +1 -1
  410. package/dist/database/migration/20260225215848_workspace.js +1 -1
  411. package/dist/database/migration/20260227213759_add_session_workspace_id.js +1 -1
  412. package/dist/database/migration/20260228203230_blue_harpoon.js +1 -1
  413. package/dist/database/migration/20260303231226_add_workspace_fields.js +1 -1
  414. package/dist/database/migration/20260309230000_move_org_to_state.js +1 -1
  415. package/dist/database/migration/20260312043431_session_message_cursor.js +1 -1
  416. package/dist/database/migration/20260323234822_events.js +1 -1
  417. package/dist/database/migration/20260410174513_workspace-name.js +1 -1
  418. package/dist/database/migration/20260413175956_chief_energizer.js +1 -1
  419. package/dist/database/migration/20260423070820_add_icon_url_override.js +1 -1
  420. package/dist/database/migration/20260427172553_slow_nightmare.js +1 -1
  421. package/dist/database/migration/20260428004200_add_session_path.js +1 -1
  422. package/dist/database/migration/20260501142318_next_venus.js +1 -1
  423. package/dist/database/migration/20260504145000_add_sync_owner.js +1 -1
  424. package/dist/database/migration/20260507164347_add_workspace_time.js +1 -1
  425. package/dist/database/migration/20260510033149_session_usage.js +1 -1
  426. package/dist/database/migration/20260511000411_data_migration_state.js +1 -1
  427. package/dist/database/migration/20260511173437_session-metadata.js +1 -1
  428. package/dist/database/migration/20260601010001_normalize_storage_paths.js +1 -1
  429. package/dist/database/migration/20260601202201_amazing_prowler.js +1 -1
  430. package/dist/database/migration/20260602002951_lowly_union_jack.js +1 -1
  431. package/dist/database/migration/20260602182828_add_project_directories.js +1 -1
  432. package/dist/database/migration/20260603001617_session_message_projection_indexes.js +1 -1
  433. package/dist/database/migration/20260603040000_session_message_projection_order.js +1 -1
  434. package/dist/database/migration/20260603141458_session_input_inbox.js +1 -1
  435. package/dist/database/migration/20260603160727_jittery_ezekiel_stane.js +1 -1
  436. package/dist/database/migration/20260604172448_event_sourced_session_input.js +1 -1
  437. package/dist/database/migration/20260605003541_add_session_context_snapshot.js +1 -1
  438. package/dist/database/migration/20260605042240_add_context_epoch_agent.js +1 -1
  439. package/dist/database/migration/20260611035744_credential.js +1 -1
  440. package/dist/database/migration/20260611192811_lush_chimera.js +1 -1
  441. package/dist/database/migration/20260612174303_project_dir_strategy.js +1 -1
  442. package/dist/database/migration/20260622142730_simplify_session_context_epoch.js +1 -1
  443. package/dist/database/migration/20260622170816_reset_v2_session_state.js +1 -1
  444. package/dist/database/migration/20260622202450_simplify_session_input.js +1 -1
  445. package/dist/database/migration/20260804233008_loose_psylocke.js +1 -1
  446. package/dist/database/migration/20260805200742_import_legacy_credentials.js +1 -1
  447. package/dist/database/migration/20260808023530_workspace_domain.js +1 -1
  448. package/dist/database/migration/20260811161259_execution_claim_attempts.js +1 -1
  449. package/dist/database/migration/20260812181746_session_inbox.js +1 -1
  450. package/dist/database/migration/20260812213948_worktree.js +1 -1
  451. package/dist/database/migration/20260819222447_session_viewed_state.js +1 -1
  452. package/dist/database/migration/20260823191254_nullable_workspace_binding.js +1 -1
  453. package/dist/database/migration/20260910120000_clear_v1_session_permission.js +1 -1
  454. package/dist/database/migration/20260923013825_project_time_active.js +1 -1
  455. package/dist/database/migration/20261007190000_azure_cli_external_credential.js +1 -1
  456. package/dist/database/migration/20261010180456_project_time_archived.js +1 -1
  457. package/dist/database/migration/20261024002554_session_allowance.js +1 -1
  458. package/dist/database/migration/20261024175301_drop_session_allowance.js +1 -1
  459. package/dist/database/migration/20261025123711_blob.js +1 -1
  460. package/dist/database/migration/20261025154125_drop_session_pending.js +1 -1
  461. package/dist/database/migration/20261026223005_schedule.js +1 -1
  462. package/dist/database/migration/20261029002625_session_part.js +1 -1
  463. package/dist/database/migration/20261029073502_session_time_busy.js +1 -1
  464. package/dist/database/migration/20261029165540_schedule_checks.js +1 -1
  465. package/dist/database/migration/20261030054400_job.js +1 -1
  466. package/dist/database/migration.gen.js +60 -60
  467. package/dist/database/migration.js +76 -76
  468. package/dist/database/path.js +2 -2
  469. package/dist/database/schema.gen.js +1 -1
  470. package/dist/database/schema.sql.js +1 -1
  471. package/dist/database/v1-migration.bun.js +100 -100
  472. package/dist/effect/app-node-builder.js +443 -439
  473. package/dist/effect/app-node-platform.js +2 -2
  474. package/dist/effect/keyed-mutex.js +1 -1
  475. package/dist/effect/websocket-constructor.js +1 -1
  476. package/dist/environment/driver.js +1 -1
  477. package/dist/environment/environment.js +105 -105
  478. package/dist/environment/exec-defaults.js +2 -2
  479. package/dist/environment/files.js +1 -1
  480. package/dist/environment/index.js +108 -108
  481. package/dist/environment/local.js +2 -2
  482. package/dist/environment/memory.js +2 -2
  483. package/dist/environment/unavailable.js +3 -3
  484. package/dist/event/sql.js +1 -1
  485. package/dist/event-logger.js +81 -81
  486. package/dist/file-access.js +161 -161
  487. package/dist/file-mutation.js +108 -108
  488. package/dist/file-retention.js +1 -1
  489. package/dist/file-write.js +165 -165
  490. package/dist/filesystem/fff.bun.js +2 -2
  491. package/dist/filesystem/fff.js +1 -1
  492. package/dist/filesystem/fff.node.js +2 -2
  493. package/dist/filesystem/fff.workerd.js +2 -2
  494. package/dist/filesystem/file-watch.js +84 -84
  495. package/dist/filesystem/location-watcher-policy.js +6 -6
  496. package/dist/filesystem/location-watcher.js +253 -253
  497. package/dist/filesystem/protected.js +1 -1
  498. package/dist/filesystem/search.js +113 -113
  499. package/dist/filesystem/watcher-binding.js +1 -1
  500. package/dist/filesystem/watcher.js +3 -3
  501. package/dist/filesystem.js +118 -118
  502. package/dist/flag.js +132 -132
  503. package/dist/form.js +87 -87
  504. package/dist/formatter/builtins.js +4 -4
  505. package/dist/formatter.js +100 -100
  506. package/dist/generate.js +121 -121
  507. package/dist/git.js +11 -11
  508. package/dist/github-copilot/models.js +105 -105
  509. package/dist/image/notice.js +1 -1
  510. package/dist/image/photon-normalize.js +1 -1
  511. package/dist/image/photon-worker.js +1 -1
  512. package/dist/image/photon.js +4 -4
  513. package/dist/image.js +6 -6
  514. package/dist/instance/service.js +5 -5
  515. package/dist/instance.js +437 -433
  516. package/dist/instruction-discovery.js +93 -93
  517. package/dist/instructions/builtins.js +100 -100
  518. package/dist/instructions/index.js +3 -3
  519. package/dist/integration/connection.js +1 -1
  520. package/dist/integration.js +94 -94
  521. package/dist/job/list.js +5 -5
  522. package/dist/job/recovery.js +2 -2
  523. package/dist/job/sql.js +2 -2
  524. package/dist/job.js +90 -90
  525. package/dist/kv/sql.js +2 -2
  526. package/dist/kv.js +84 -84
  527. package/dist/location-activity.js +177 -177
  528. package/dist/location-lifecycle.js +154 -154
  529. package/dist/location-service-map.js +97 -97
  530. package/dist/location-services.js +434 -430
  531. package/dist/location.js +98 -98
  532. package/dist/managed-policy.js +3 -3
  533. package/dist/mcp/client.js +170 -502
  534. package/dist/mcp/connection.js +106 -106
  535. package/dist/mcp/index.js +149 -122
  536. package/dist/mcp/instructions.js +190 -190
  537. package/dist/mcp/oauth.js +89 -89
  538. package/dist/mcp/pool.js +112 -112
  539. package/dist/mcp/socket-client.js +1 -1
  540. package/dist/mcp/stdio.js +160 -160
  541. package/dist/mime.js +1 -1
  542. package/dist/modal/models.js +105 -105
  543. package/dist/model-resolver.js +111 -111
  544. package/dist/model-retry.js +1 -1
  545. package/dist/model.js +110 -110
  546. package/dist/models-dev/v1.js +1 -1
  547. package/dist/models-dev.js +118 -118
  548. package/dist/oauth/page.js +1 -1
  549. package/dist/permission/saved.js +83 -83
  550. package/dist/permission/sql.js +5 -5
  551. package/dist/permission.js +147 -147
  552. package/dist/persistent-pty/binary.bun.js +1 -1
  553. package/dist/persistent-pty/daemon.js +1 -1
  554. package/dist/persistent-pty/index.js +101 -101
  555. package/dist/persistent-pty/pty-binding.js +1 -1
  556. package/dist/persistent-pty.js +86 -86
  557. package/dist/plugin/agent.js +87 -87
  558. package/dist/plugin/command.js +146 -119
  559. package/dist/plugin/fork-notice.js +8 -0
  560. package/dist/plugin/goal.js +3 -3
  561. package/dist/plugin/hooks.js +5 -5
  562. package/dist/plugin/host.js +246 -246
  563. package/dist/plugin/identity.js +5 -5
  564. package/dist/plugin/instance.js +5 -5
  565. package/dist/plugin/internal.js +413 -409
  566. package/dist/plugin/mcp-codemode-defaults.js +3 -3
  567. package/dist/plugin/models-dev.js +111 -111
  568. package/dist/plugin/module.js +130 -130
  569. package/dist/plugin/optimize.js +4 -4
  570. package/dist/plugin/plan.js +150 -150
  571. package/dist/plugin/promise.js +1 -1
  572. package/dist/plugin/provider/amazon-bedrock.js +107 -107
  573. package/dist/plugin/provider/azure.js +134 -134
  574. package/dist/plugin/provider/cerebras.js +1 -1
  575. package/dist/plugin/provider/chatgpt.js +134 -134
  576. package/dist/plugin/provider/claude-agent/aisdk.js +116 -116
  577. package/dist/plugin/provider/claude-agent/claude/fork.js +2 -2
  578. package/dist/plugin/provider/claude-agent/claude/io.js +4 -4
  579. package/dist/plugin/provider/claude-agent/claude/probe.js +2 -2
  580. package/dist/plugin/provider/claude-agent/claude/query-options.js +4 -4
  581. package/dist/plugin/provider/claude-agent/claude/sdk.js +1 -1
  582. package/dist/plugin/provider/claude-agent/claude/session.js +4 -4
  583. package/dist/plugin/provider/claude-agent/claude/sessions.js +16 -16
  584. package/dist/plugin/provider/claude-agent/claude/status.js +9 -9
  585. package/dist/plugin/provider/claude-agent/index.js +149 -149
  586. package/dist/plugin/provider/claude-agent/instructions.js +111 -111
  587. package/dist/plugin/provider/claude-agent/integration.js +116 -116
  588. package/dist/plugin/provider/claude-agent/language-model/claude-agent-error.js +3 -3
  589. package/dist/plugin/provider/claude-agent/language-model/claude-agent-language-model.js +7 -7
  590. package/dist/plugin/provider/claude-agent/language-model/convert-claude-stream.js +6 -6
  591. package/dist/plugin/provider/claude-agent/language-model/convert-to-claude-message.js +1 -1
  592. package/dist/plugin/provider/claude-agent/language-model/request-kind.js +1 -1
  593. package/dist/plugin/provider/claude-agent/language-model/system-prompt.js +3 -3
  594. package/dist/plugin/provider/claude-agent/language-model/usage.js +3 -3
  595. package/dist/plugin/provider/claude-agent/provider.js +111 -111
  596. package/dist/plugin/provider/claude-agent/session.js +113 -113
  597. package/dist/plugin/provider/claude-agent/sync/catch-up.js +3 -3
  598. package/dist/plugin/provider/claude-agent/sync/checkpoints.js +2 -2
  599. package/dist/plugin/provider/claude-agent/sync/decide.js +2 -2
  600. package/dist/plugin/provider/claude-agent/sync/fingerprint.js +1 -1
  601. package/dist/plugin/provider/claude-agent/sync/record.js +3 -3
  602. package/dist/plugin/provider/claude-agent/tools/hooks.js +3 -3
  603. package/dist/plugin/provider/claude-agent/tools/names.js +1 -1
  604. package/dist/plugin/provider/claude-agent/tools/pending.js +3 -3
  605. package/dist/plugin/provider/claude-agent/tools/result.js +3 -3
  606. package/dist/plugin/provider/claude-agent/tools/server.js +4 -4
  607. package/dist/plugin/provider/cloudflare-ai-gateway.js +131 -131
  608. package/dist/plugin/provider/cloudflare-workers-ai.js +131 -131
  609. package/dist/plugin/provider/configured.js +127 -127
  610. package/dist/plugin/provider/credential-settings.js +88 -88
  611. package/dist/plugin/provider/databricks.js +1 -1
  612. package/dist/plugin/provider/digitalocean.js +110 -110
  613. package/dist/plugin/provider/dynamic.js +2 -2
  614. package/dist/plugin/provider/github-copilot.js +112 -112
  615. package/dist/plugin/provider/gitlab.js +110 -110
  616. package/dist/plugin/provider/google-vertex.js +128 -128
  617. package/dist/plugin/provider/kilo.js +1 -1
  618. package/dist/plugin/provider/llmgateway.js +89 -89
  619. package/dist/plugin/provider/lmstudio.js +144 -141
  620. package/dist/plugin/provider/local.js +141 -138
  621. package/dist/plugin/provider/modal.js +109 -109
  622. package/dist/plugin/provider/neon.js +1 -1
  623. package/dist/plugin/provider/nvidia.js +1 -1
  624. package/dist/plugin/provider/ollama.js +144 -141
  625. package/dist/plugin/provider/openai-context-caps.js +107 -107
  626. package/dist/plugin/provider/openai.js +136 -136
  627. package/dist/plugin/provider/opencode-watches.js +4 -4
  628. package/dist/plugin/provider/opencode.js +162 -162
  629. package/dist/plugin/provider/openrouter.js +105 -105
  630. package/dist/plugin/provider/poe.js +90 -90
  631. package/dist/plugin/provider/prompt-cache-key.js +1 -1
  632. package/dist/plugin/provider/refresh.js +87 -87
  633. package/dist/plugin/provider/sap-ai-core.js +105 -105
  634. package/dist/plugin/provider/sdk-factory.js +1 -1
  635. package/dist/plugin/provider/snowflake-cortex.js +132 -132
  636. package/dist/plugin/provider/vllm.js +144 -141
  637. package/dist/plugin/provider/xai.js +105 -105
  638. package/dist/plugin/provider/zenmux.js +1 -1
  639. package/dist/plugin/provider.js +240 -240
  640. package/dist/plugin/sdk.js +87 -87
  641. package/dist/plugin/service.js +1 -1
  642. package/dist/plugin/skill.js +153 -153
  643. package/dist/plugin/source-directory.js +1 -1
  644. package/dist/plugin/supervisor.js +421 -417
  645. package/dist/plugin/tool-input-repair.js +4 -4
  646. package/dist/plugin/update.js +6 -6
  647. package/dist/plugin/vcs/git.js +99 -99
  648. package/dist/plugin/vcs/hg.js +99 -99
  649. package/dist/plugin/verbosity.js +107 -107
  650. package/dist/plugin/warming.js +131 -131
  651. package/dist/plugin/websearch/exa.js +6 -6
  652. package/dist/plugin/websearch/firecrawl.js +9 -9
  653. package/dist/plugin/websearch/index.js +10 -10
  654. package/dist/plugin/websearch/mcp.js +4 -4
  655. package/dist/plugin/websearch/parallel.js +9 -9
  656. package/dist/plugin/websearch/provider.js +3 -3
  657. package/dist/plugin/websearch/tavily.js +5 -5
  658. package/dist/plugin/websearch/tinyfish.js +9 -9
  659. package/dist/plugin.js +255 -255
  660. package/dist/project/icon.js +5 -5
  661. package/dist/project/schema.js +4 -4
  662. package/dist/project/sql.js +4 -4
  663. package/dist/project.js +97 -97
  664. package/dist/provider.js +109 -109
  665. package/dist/pty/protocol.js +1 -1
  666. package/dist/pty/ticket.js +1 -1
  667. package/dist/pty.js +113 -113
  668. package/dist/reference/instructions.js +99 -99
  669. package/dist/reference.js +97 -97
  670. package/dist/repository-cache.js +93 -93
  671. package/dist/repository.js +1 -1
  672. package/dist/ripgrep/binary.js +2 -2
  673. package/dist/ripgrep.js +111 -111
  674. package/dist/rpc.js +99 -99
  675. package/dist/schedule/check.js +251 -251
  676. package/dist/schedule/sql.js +6 -6
  677. package/dist/schedule.js +265 -265
  678. package/dist/schema.js +1 -1
  679. package/dist/session/affinity.js +1 -1
  680. package/dist/session/background.js +1 -1
  681. package/dist/session/blob.js +133 -133
  682. package/dist/session/command.js +85 -85
  683. package/dist/session/compaction.js +174 -174
  684. package/dist/session/context.js +206 -206
  685. package/dist/session/diff.js +101 -101
  686. package/dist/session/environment.js +5 -5
  687. package/dist/session/error.js +3 -3
  688. package/dist/session/event.js +1 -1
  689. package/dist/session/execution/restart.js +263 -263
  690. package/dist/session/execution.js +172 -172
  691. package/dist/session/generate.js +208 -208
  692. package/dist/session/history.js +140 -140
  693. package/dist/session/inbox.js +153 -153
  694. package/dist/session/info.js +3 -3
  695. package/dist/session/instruction-entry.js +90 -90
  696. package/dist/session/instruction-state.js +8 -8
  697. package/dist/session/instructions.js +145 -145
  698. package/dist/session/message-updater.js +4 -4
  699. package/dist/session/message.js +1 -1
  700. package/dist/session/model-request.js +172 -172
  701. package/dist/session/model-transport.js +9 -9
  702. package/dist/session/move.js +172 -172
  703. package/dist/session/projector.js +147 -147
  704. package/dist/session/prompt.js +152 -152
  705. package/dist/session/recent-text.js +1 -1
  706. package/dist/session/revert.js +143 -143
  707. package/dist/session/run-coordinator.js +3 -3
  708. package/dist/session/runner/index.js +3 -3
  709. package/dist/session/runner/llm.js +259 -259
  710. package/dist/session/runner/max-steps.js +1 -1
  711. package/dist/session/runner/model.js +113 -113
  712. package/dist/session/runner/publish-llm-event.js +154 -154
  713. package/dist/session/runner/retry.js +5 -5
  714. package/dist/session/runner/step.js +167 -167
  715. package/dist/session/runner/to-llm-message.js +141 -141
  716. package/dist/session/schema.js +1 -1
  717. package/dist/session/session.js +192 -192
  718. package/dist/session/shell.js +149 -149
  719. package/dist/session/skill.js +151 -151
  720. package/dist/session/sql.js +5 -5
  721. package/dist/session/stats.js +85 -85
  722. package/dist/session/store.js +142 -142
  723. package/dist/session/stored.js +2 -2
  724. package/dist/session/subagent-completion.js +1 -1
  725. package/dist/session/subagent-job.js +242 -242
  726. package/dist/session/system-prompt.js +1 -1
  727. package/dist/session/title.js +208 -208
  728. package/dist/session/to-session-error.js +153 -153
  729. package/dist/session/transfer.js +250 -250
  730. package/dist/session/usage.js +1 -1
  731. package/dist/session.js +242 -242
  732. package/dist/shared-cache.js +5 -5
  733. package/dist/shell/parse.js +6 -6
  734. package/dist/shell/result.js +1 -1
  735. package/dist/shell/scan.js +1 -1
  736. package/dist/shell/select.js +15 -15
  737. package/dist/shell.js +151 -151
  738. package/dist/skill/discovery.js +6 -6
  739. package/dist/skill/instructions.js +155 -155
  740. package/dist/skill.js +156 -156
  741. package/dist/snapshot.js +104 -104
  742. package/dist/state.js +1 -1
  743. package/dist/tool/html-markdown.js +1 -1
  744. package/dist/tool/http-body.js +1 -1
  745. package/dist/tool/mcp.js +187 -187
  746. package/dist/tool/plugin/artifact.js +241 -241
  747. package/dist/tool/plugin/edit.js +171 -171
  748. package/dist/tool/plugin/file-diff.js +1 -1
  749. package/dist/tool/plugin/glob.js +175 -175
  750. package/dist/tool/plugin/grep.js +172 -172
  751. package/dist/tool/plugin/image-generate.js +250 -250
  752. package/dist/tool/plugin/mcp-events.js +171 -0
  753. package/dist/tool/plugin/mcp-resource.js +170 -170
  754. package/dist/tool/plugin/opencode.js +167 -167
  755. package/dist/tool/plugin/patch.js +172 -172
  756. package/dist/tool/plugin/question.js +152 -152
  757. package/dist/tool/plugin/read.js +176 -176
  758. package/dist/tool/plugin/schedule.js +257 -257
  759. package/dist/tool/plugin/shell.js +248 -248
  760. package/dist/tool/plugin/skill.js +161 -161
  761. package/dist/tool/plugin/subagent.js +247 -247
  762. package/dist/tool/plugin/todo.js +157 -157
  763. package/dist/tool/plugin/webfetch.js +159 -159
  764. package/dist/tool/plugin/websearch.js +159 -159
  765. package/dist/tool/plugin/write.js +172 -172
  766. package/dist/tool/read-filesystem.js +116 -116
  767. package/dist/tool/runtime.js +1 -1
  768. package/dist/tool/search.js +109 -109
  769. package/dist/tool-output.js +7 -7
  770. package/dist/tool.js +166 -166
  771. package/dist/types/flag.d.ts +2 -2
  772. package/dist/types/instance.d.ts +1 -1
  773. package/dist/types/mcp/client.d.ts +78 -1
  774. package/dist/types/mcp/connection.d.ts +2 -0
  775. package/dist/types/mcp/index.d.ts +4 -1
  776. package/dist/types/mcp/pool.d.ts +1 -0
  777. package/dist/types/plugin/fork-notice.d.ts +2 -0
  778. package/dist/types/plugin/host.d.ts +2 -2
  779. package/dist/types/plugin/provider/lmstudio.d.ts +2 -2
  780. package/dist/types/plugin/provider/local.d.ts +1 -1
  781. package/dist/types/plugin/provider/ollama.d.ts +2 -2
  782. package/dist/types/plugin/provider/vllm.d.ts +2 -2
  783. package/dist/types/schedule/check.d.ts +2 -2
  784. package/dist/types/session/prompt.d.ts +1 -1
  785. package/dist/types/tool/plugin/mcp-events.d.ts +10 -0
  786. package/dist/usage-limits.js +100 -100
  787. package/dist/util/error-summary.js +1 -1
  788. package/dist/util/git-executable.js +3 -3
  789. package/dist/util/lazy.js +1 -1
  790. package/dist/util/slug.js +1 -1
  791. package/dist/util/token.js +1 -1
  792. package/dist/util/which.js +1 -1
  793. package/dist/util/wildcard.js +1 -1
  794. package/dist/v1/config/agent.js +5 -5
  795. package/dist/v1/config/command.js +3 -3
  796. package/dist/v1/config/mcp.js +2 -2
  797. package/dist/v1/config/migrate.js +106 -106
  798. package/dist/v1/config/permission.js +1 -1
  799. package/dist/v1/config/plugin.js +1 -1
  800. package/dist/v1/config/provider-options.js +1 -1
  801. package/dist/v1/config/provider.js +2 -2
  802. package/dist/variant.js +107 -107
  803. package/dist/vcs/patch.js +1 -1
  804. package/dist/vcs.js +102 -102
  805. package/dist/voice.js +97 -97
  806. package/dist/websearch.js +103 -103
  807. package/dist/wellknown/plugin.js +87 -87
  808. package/dist/wellknown.js +90 -90
  809. package/dist/workspace/driver.js +7 -7
  810. package/dist/workspace/sql.js +1 -1
  811. package/dist/workspace.js +93 -93
  812. package/dist/worktree/directory.js +2 -2
  813. package/dist/worktree/git.js +11 -11
  814. package/dist/worktree/sql.js +5 -5
  815. package/dist/worktree/strategies.js +102 -102
  816. package/dist/worktree.js +113 -113
  817. package/package.json +8 -8
  818. package/dist/chunks/schema-n0yx1q4a.js +0 -26
  819. package/dist/chunks/schema-qp3r9mzz.js +0 -273
  820. package/dist/chunks/schema-y32xxt00.js +0 -16
  821. /package/dist/chunks/{schema-0qkdqm5v.js → location-0qkdqm5v.js} +0 -0
  822. /package/dist/chunks/{schema-0zkw76rk.js → location-0zkw76rk.js} +0 -0
  823. /package/dist/chunks/{schema-17cy0kzp.js → location-17cy0kzp.js} +0 -0
  824. /package/dist/chunks/{schema-1cnp2v09.js → location-1cnp2v09.js} +0 -0
  825. /package/dist/chunks/{schema-1kah00gy.js → location-1kah00gy.js} +0 -0
  826. /package/dist/chunks/{schema-24dcb14g.js → location-24dcb14g.js} +0 -0
  827. /package/dist/chunks/{schema-2710q6r3.js → location-2710q6r3.js} +0 -0
  828. /package/dist/chunks/{schema-2c3vjs8z.js → location-2c3vjs8z.js} +0 -0
  829. /package/dist/chunks/{schema-359p4xyc.js → location-359p4xyc.js} +0 -0
  830. /package/dist/chunks/{schema-3v8g72cx.js → location-3v8g72cx.js} +0 -0
  831. /package/dist/chunks/{schema-43n2bw4t.js → location-43n2bw4t.js} +0 -0
  832. /package/dist/chunks/{schema-4knz6hnm.js → location-4knz6hnm.js} +0 -0
  833. /package/dist/chunks/{schema-4qk9sjk2.js → location-4qk9sjk2.js} +0 -0
  834. /package/dist/chunks/{schema-53557ph1.js → location-53557ph1.js} +0 -0
  835. /package/dist/chunks/{schema-5w3e23ze.js → location-5w3e23ze.js} +0 -0
  836. /package/dist/chunks/{schema-6agm2x70.js → location-6agm2x70.js} +0 -0
  837. /package/dist/chunks/{schema-6prwharc.js → location-6prwharc.js} +0 -0
  838. /package/dist/chunks/{schema-6q2bdcd1.js → location-6q2bdcd1.js} +0 -0
  839. /package/dist/chunks/{schema-7akdwqpd.js → location-7akdwqpd.js} +0 -0
  840. /package/dist/chunks/{schema-7m9af43g.js → location-7m9af43g.js} +0 -0
  841. /package/dist/chunks/{schema-7rvsyqjv.js → location-7rvsyqjv.js} +0 -0
  842. /package/dist/chunks/{schema-822emrt2.js → location-822emrt2.js} +0 -0
  843. /package/dist/chunks/{schema-84wd9syh.js → location-84wd9syh.js} +0 -0
  844. /package/dist/chunks/{schema-88xbtdfr.js → location-88xbtdfr.js} +0 -0
  845. /package/dist/chunks/{schema-8n3pysct.js → location-8n3pysct.js} +0 -0
  846. /package/dist/chunks/{schema-8wj87zfr.js → location-8wj87zfr.js} +0 -0
  847. /package/dist/chunks/{schema-9a4afbnw.js → location-9a4afbnw.js} +0 -0
  848. /package/dist/chunks/{schema-9rqn6x4v.js → location-9rqn6x4v.js} +0 -0
  849. /package/dist/chunks/{schema-aqzs7mqg.js → location-aqzs7mqg.js} +0 -0
  850. /package/dist/chunks/{schema-atq7p7m5.js → location-atq7p7m5.js} +0 -0
  851. /package/dist/chunks/{schema-beh6qq61.js → location-beh6qq61.js} +0 -0
  852. /package/dist/chunks/{schema-bkyjaxrp.js → location-bkyjaxrp.js} +0 -0
  853. /package/dist/chunks/{schema-bmr6ed5q.js → location-bmr6ed5q.js} +0 -0
  854. /package/dist/chunks/{schema-cf4snx6d.js → location-cf4snx6d.js} +0 -0
  855. /package/dist/chunks/{schema-cqv5kn06.js → location-cqv5kn06.js} +0 -0
  856. /package/dist/chunks/{schema-cvy3z8tj.js → location-cvy3z8tj.js} +0 -0
  857. /package/dist/chunks/{schema-d9fn303g.js → location-d9fn303g.js} +0 -0
  858. /package/dist/chunks/{schema-d9jj8t3e.js → location-d9jj8t3e.js} +0 -0
  859. /package/dist/chunks/{schema-df08tz66.js → location-df08tz66.js} +0 -0
  860. /package/dist/chunks/{schema-dy18nga0.js → location-dy18nga0.js} +0 -0
  861. /package/dist/chunks/{schema-e5kj55wp.js → location-e5kj55wp.js} +0 -0
  862. /package/dist/chunks/{schema-ean2d8b5.js → location-ean2d8b5.js} +0 -0
  863. /package/dist/chunks/{schema-ec1grn59.js → location-ec1grn59.js} +0 -0
  864. /package/dist/chunks/{schema-emrn6kk6.js → location-emrn6kk6.js} +0 -0
  865. /package/dist/chunks/{schema-f0mxakyp.js → location-f0mxakyp.js} +0 -0
  866. /package/dist/chunks/{schema-f6n9ztr4.js → location-f6n9ztr4.js} +0 -0
  867. /package/dist/chunks/{schema-faypxj3z.js → location-faypxj3z.js} +0 -0
  868. /package/dist/chunks/{schema-fd410y7t.js → location-fd410y7t.js} +0 -0
  869. /package/dist/chunks/{schema-fkpq3x5p.js → location-fkpq3x5p.js} +0 -0
  870. /package/dist/chunks/{schema-g86h250q.js → location-g86h250q.js} +0 -0
  871. /package/dist/chunks/{schema-gebd4c9n.js → location-gebd4c9n.js} +0 -0
  872. /package/dist/chunks/{schema-gftt206x.js → location-gftt206x.js} +0 -0
  873. /package/dist/chunks/{schema-hcxmzztb.js → location-hcxmzztb.js} +0 -0
  874. /package/dist/chunks/{schema-hk9envan.js → location-hk9envan.js} +0 -0
  875. /package/dist/chunks/{schema-j2ntwpah.js → location-j2ntwpah.js} +0 -0
  876. /package/dist/chunks/{schema-jjkms2e6.js → location-jjkms2e6.js} +0 -0
  877. /package/dist/chunks/{schema-jr7sbwjy.js → location-jr7sbwjy.js} +0 -0
  878. /package/dist/chunks/{schema-jwfs4k6c.js → location-jwfs4k6c.js} +0 -0
  879. /package/dist/chunks/{schema-jwr30sdr.js → location-jwr30sdr.js} +0 -0
  880. /package/dist/chunks/{schema-jzg6c2d5.js → location-jzg6c2d5.js} +0 -0
  881. /package/dist/chunks/{schema-m18g726c.js → location-m18g726c.js} +0 -0
  882. /package/dist/chunks/{schema-mp448xyj.js → location-mp448xyj.js} +0 -0
  883. /package/dist/chunks/{schema-msx8hqn2.js → location-msx8hqn2.js} +0 -0
  884. /package/dist/chunks/{schema-n05xt0ee.js → location-n05xt0ee.js} +0 -0
  885. /package/dist/chunks/{schema-n3j8tn72.js → location-n3j8tn72.js} +0 -0
  886. /package/dist/chunks/{schema-nh4v3znn.js → location-nh4v3znn.js} +0 -0
  887. /package/dist/chunks/{schema-njntx4h6.js → location-njntx4h6.js} +0 -0
  888. /package/dist/chunks/{schema-p71gwv9c.js → location-p71gwv9c.js} +0 -0
  889. /package/dist/chunks/{schema-q3sfg36h.js → location-q3sfg36h.js} +0 -0
  890. /package/dist/chunks/{schema-q74kybfr.js → location-q74kybfr.js} +0 -0
  891. /package/dist/chunks/{schema-qb87gjwd.js → location-qb87gjwd.js} +0 -0
  892. /package/dist/chunks/{schema-qfa1cgps.js → location-qfa1cgps.js} +0 -0
  893. /package/dist/chunks/{schema-qg3g05ea.js → location-qg3g05ea.js} +0 -0
  894. /package/dist/chunks/{schema-qrg20bc0.js → location-qrg20bc0.js} +0 -0
  895. /package/dist/chunks/{schema-qtf35215.js → location-qtf35215.js} +0 -0
  896. /package/dist/chunks/{schema-rcb2kzg1.js → location-rcb2kzg1.js} +0 -0
  897. /package/dist/chunks/{schema-sdp7kfr6.js → location-sdp7kfr6.js} +0 -0
  898. /package/dist/chunks/{schema-ssg3fenm.js → location-ssg3fenm.js} +0 -0
  899. /package/dist/chunks/{schema-syrav9an.js → location-syrav9an.js} +0 -0
  900. /package/dist/chunks/{schema-t03h4f5z.js → location-t03h4f5z.js} +0 -0
  901. /package/dist/chunks/{schema-ty7weeps.js → location-ty7weeps.js} +0 -0
  902. /package/dist/chunks/{schema-v2dnd5dt.js → location-v2dnd5dt.js} +0 -0
  903. /package/dist/chunks/{schema-ve7vex1e.js → location-ve7vex1e.js} +0 -0
  904. /package/dist/chunks/{schema-vtarvj67.js → location-vtarvj67.js} +0 -0
  905. /package/dist/chunks/{schema-w803qqfp.js → location-w803qqfp.js} +0 -0
  906. /package/dist/chunks/{schema-wc3fc9cn.js → location-wc3fc9cn.js} +0 -0
  907. /package/dist/chunks/{schema-wer8tq1h.js → location-wer8tq1h.js} +0 -0
  908. /package/dist/chunks/{schema-wtztk69x.js → location-wtztk69x.js} +0 -0
  909. /package/dist/chunks/{schema-x4th4bpe.js → location-x4th4bpe.js} +0 -0
  910. /package/dist/chunks/{schema-y44na4kk.js → location-y44na4kk.js} +0 -0
  911. /package/dist/chunks/{schema-y8f7s663.js → location-y8f7s663.js} +0 -0
  912. /package/dist/chunks/{schema-ygaqb7jw.js → location-ygaqb7jw.js} +0 -0
  913. /package/dist/chunks/{schema-z5v4ffb3.js → location-z5v4ffb3.js} +0 -0
  914. /package/dist/chunks/{schema-z9919s4g.js → location-z9919s4g.js} +0 -0
  915. /package/dist/chunks/{schema-zxpyjp51.js → location-zxpyjp51.js} +0 -0
  916. /package/dist/chunks/{schema-zz5vv3aq.js → location-zz5vv3aq.js} +0 -0
@@ -1,30 +1,30 @@
1
1
  import {
2
2
  toolFailure2
3
- } from "./schema-7rvsyqjv.js";
3
+ } from "./location-7rvsyqjv.js";
4
4
  import {
5
5
  WorktreeError2
6
- } from "./schema-vz5bqa0f.js";
6
+ } from "./location-3pfs30kn.js";
7
7
  import {
8
8
  invocation2,
9
9
  Service74
10
- } from "./schema-s62h8xwa.js";
10
+ } from "./location-8xxagg6y.js";
11
11
  import {
12
- Service50,
12
+ Service71,
13
13
  resolvePath2
14
- } from "./schema-xznbj9qp.js";
14
+ } from "./location-37xrhg99.js";
15
15
  import {
16
16
  DirectoryUnavailableError2
17
- } from "./schema-d4v9tmah.js";
17
+ } from "./location-d4v9tmah.js";
18
18
  import {
19
- Info14,
19
+ Info7,
20
20
  List2,
21
21
  InvalidDirectoryError2,
22
22
  StrategyUnavailableError2,
23
23
  OperationError2
24
- } from "./schema-yyb7x4q2.js";
24
+ } from "./location-6zdnk2ay.js";
25
25
  import {
26
26
  __export
27
- } from "./schema-9rqn6x4v.js";
27
+ } from "./location-9rqn6x4v.js";
28
28
 
29
29
  // src/tool/plugin/opencode.ts
30
30
  var exports_opencode = {};
@@ -32,7 +32,7 @@ __export(exports_opencode, {
32
32
  ModelsInput: () => ModelsInput2,
33
33
  MoveInput: () => MoveInput2,
34
34
  OpenCodeTools: () => exports_opencode,
35
- Plugin: () => Plugin30,
35
+ Plugin: () => Plugin13,
36
36
  RenameInput: () => RenameInput2,
37
37
  WorktreeCreateInput: () => WorktreeCreateInput2,
38
38
  WorktreeRemoveInput: () => WorktreeRemoveInput2
@@ -111,10 +111,10 @@ var ModelsOutput = Schema.Struct({
111
111
  total: Schema.Int.annotate({ description: "Number of matching models across all pages." }),
112
112
  next: Schema.NullOr(Schema.Int).annotate({ description: "Offset of the next page, or null on the last page." })
113
113
  });
114
- var Plugin30 = {
114
+ var Plugin13 = {
115
115
  id: "opencode.tools",
116
116
  effect: Effect.fn("OpenCodeTools.Plugin")(function* (ctx) {
117
- const access = yield* Service50;
117
+ const access = yield* Service71;
118
118
  const permission = yield* Service74;
119
119
  const hook = (event) => Effect.sync(() => {
120
120
  event.system.push(SystemPart.make("When you create a worktree outside the current working directory and intend to use it as your primary working directory, consider using `execute` to call `tools.opencode.session_move` and make the worktree the session's working directory."));
@@ -173,7 +173,7 @@ var Plugin30 = {
173
173
  name: "worktree_create",
174
174
  description: "Create a named worktree. Returns its directory.",
175
175
  input: WorktreeCreateInput2,
176
- output: Info14,
176
+ output: Info7,
177
177
  options: { namespace: "opencode", codemode: true, pinned: true },
178
178
  execute: (input) => ctx.worktree.create({ projectID: ctx.location.project.id, name: input.name }).pipe(Effect.map((output) => ({ output, content: `Created worktree in ${output.directory}.` })), Effect.mapError((error) => new ToolFailure({ message: `Unable to create worktree ${input.name}`, error })))
179
179
  });
@@ -268,4 +268,4 @@ function removeFailure(directory, error) {
268
268
  return `Unable to remove worktree ${directory}.`;
269
269
  }
270
270
 
271
- export { RenameInput2, MoveInput2, WorktreeCreateInput2, WorktreeRemoveInput2, ModelsInput2, Plugin30, exports_opencode };
271
+ export { RenameInput2, MoveInput2, WorktreeCreateInput2, WorktreeRemoveInput2, ModelsInput2, Plugin13, exports_opencode };
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  __export
3
- } from "./schema-9rqn6x4v.js";
3
+ } from "./location-9rqn6x4v.js";
4
4
 
5
5
  // src/repository.ts
6
6
  var exports_repository = {};
@@ -1,23 +1,23 @@
1
1
  import {
2
- Service59,
3
- node61
4
- } from "./schema-r6ar04y2.js";
2
+ Service49,
3
+ node51
4
+ } from "./location-jh2tgb1s.js";
5
5
  import {
6
6
  Key3,
7
7
  removed2,
8
- make33,
8
+ make32,
9
9
  listUpdate2
10
- } from "./schema-p94p4v4n.js";
10
+ } from "./location-t62dywgn.js";
11
11
  import {
12
12
  __export
13
- } from "./schema-9rqn6x4v.js";
13
+ } from "./location-9rqn6x4v.js";
14
14
 
15
15
  // src/reference/instructions.ts
16
16
  var exports_instructions4 = {};
17
17
  __export(exports_instructions4, {
18
18
  ReferenceInstructions: () => exports_instructions4,
19
- Service: () => Service26,
20
- node: () => node30
19
+ Service: () => Service29,
20
+ node: () => node33
21
21
  });
22
22
  import { makeLocationNode } from "@opencode/util/effect/app-node";
23
23
  import { Context, Effect, Layer, Schema } from "effect";
@@ -53,18 +53,18 @@ var update = listUpdate2({
53
53
  }
54
54
  });
55
55
 
56
- class Service26 extends Context.Service()("@opencode/ReferenceInstructions") {
56
+ class Service29 extends Context.Service()("@opencode/ReferenceInstructions") {
57
57
  }
58
- var layer = Layer.effect(Service26, Effect.gen(function* () {
59
- const references = yield* Service59;
60
- return Service26.of({
58
+ var layer = Layer.effect(Service29, Effect.gen(function* () {
59
+ const references = yield* Service49;
60
+ return Service29.of({
61
61
  load: Effect.fn("ReferenceInstructions.load")(function* () {
62
62
  const available = (yield* references.list()).filter((reference) => reference.description !== undefined).map((reference) => ({
63
63
  name: reference.name,
64
64
  path: reference.path,
65
65
  description: reference.description
66
66
  })).toSorted((a, b) => a.name.localeCompare(b.name));
67
- return make33({
67
+ return make32({
68
68
  key: Key3.make("core/reference-guidance"),
69
69
  codec: Schema.toCodecJson(Schema.Array(Summary)),
70
70
  read: Effect.succeed(available.length === 0 ? removed2 : available),
@@ -77,6 +77,6 @@ var layer = Layer.effect(Service26, Effect.gen(function* () {
77
77
  })
78
78
  });
79
79
  }));
80
- var node30 = makeLocationNode({ service: Service26, layer, deps: [node61] });
80
+ var node33 = makeLocationNode({ service: Service29, layer, deps: [node51] });
81
81
 
82
- export { Service26, node30, exports_instructions4 };
82
+ export { Service29, node33, exports_instructions4 };
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  __export
3
- } from "./schema-9rqn6x4v.js";
3
+ } from "./location-9rqn6x4v.js";
4
4
 
5
5
  // src/session/background.ts
6
6
  var exports_background = {};
@@ -0,0 +1,457 @@
1
+ import {
2
+ resolveCwd2,
3
+ make21
4
+ } from "./location-rva2sgyw.js";
5
+ import {
6
+ __export
7
+ } from "./location-9rqn6x4v.js";
8
+
9
+ // src/mcp/client.ts
10
+ var exports_client = {};
11
+ __export(exports_client, {
12
+ ConnectError: () => ConnectError2,
13
+ EventStreamTerminatedError: () => EventStreamTerminatedError2,
14
+ McpClient: () => exports_client,
15
+ NeedsAuthError: () => NeedsAuthError2,
16
+ SessionExpiredError: () => SessionExpiredError2,
17
+ connect: () => connect2
18
+ });
19
+ import { pathToFileURL } from "node:url";
20
+ import {
21
+ Client,
22
+ InsufficientScopeError,
23
+ OAuthError,
24
+ OAuthErrorCode,
25
+ ProtocolError,
26
+ SdkError,
27
+ SdkErrorCode,
28
+ SdkHttpError,
29
+ StreamableHTTPClientTransport,
30
+ UnauthorizedError,
31
+ UnsupportedProtocolVersionError
32
+ } from "@modelcontextprotocol/client";
33
+ import { Cause, Clock, Duration, Effect, Exit, PlatformError, Queue, Schedule, Schema, Stream } from "effect";
34
+ import { isRecord } from "@opencode/util/record";
35
+ var DEFAULT_STARTUP_TIMEOUT = 30000;
36
+ var DEFAULT_CATALOG_TIMEOUT = 30000;
37
+ var DEFAULT_EXECUTION_TIMEOUT = 12 * 60 * 60 * 1000;
38
+ var ATTACHED_EXECUTION_TIMEOUT = 10 * 60 * 1000;
39
+ var TERMINATE_TIMEOUT = 1000;
40
+ var HEADER_MISMATCH = -32020;
41
+ var toError = (error) => error instanceof Error ? error : new Error(String(error));
42
+ var describe = (error) => {
43
+ if (!(error instanceof Error))
44
+ return String(error);
45
+ const detail = error instanceof SdkHttpError ? `HTTP ${error.status}` : !(error instanceof SdkError) && ("code" in error) && typeof error.code === "string" ? error.code : undefined;
46
+ return detail && !error.message.includes(detail) ? `${error.message} (${detail})` : error.message;
47
+ };
48
+ var isTransient = (error) => error instanceof SdkHttpError ? error.status === 408 || error.status === 429 || error.status >= 500 && error.status !== 501 : error instanceof TypeError && ("code" in error);
49
+ var EVENTS = "io.modelcontextprotocol/events";
50
+ var SUBSCRIPTION_ID = "io.modelcontextprotocol/subscriptionId";
51
+ var EVENT_STREAM_IDLE = Duration.seconds(60);
52
+ var EVENT_LIST_PAGES = 100;
53
+ var EventType = Schema.Struct({
54
+ name: Schema.String,
55
+ description: Schema.optional(Schema.String),
56
+ delivery: Schema.optional(Schema.Array(Schema.String)),
57
+ inputSchema: Schema.optional(Schema.Record(Schema.String, Schema.Unknown)),
58
+ payloadSchema: Schema.optional(Schema.Record(Schema.String, Schema.Unknown))
59
+ });
60
+ var EventError = Schema.Struct({ code: Schema.Number, message: Schema.String, data: Schema.optional(Schema.Unknown) });
61
+ var Cursor = Schema.optional(Schema.NullOr(Schema.String));
62
+ var Subscribed = { _meta: Schema.Struct({ [SUBSCRIPTION_ID]: Schema.Union([Schema.String, Schema.Number]) }) };
63
+ var EventList = Schema.toStandardSchemaV1(Schema.Struct({ events: Schema.Array(EventType), nextCursor: Schema.optional(Schema.String) }));
64
+ var StreamResult = Schema.toStandardSchemaV1(Schema.Unknown);
65
+ var ActiveNotification = Schema.toStandardSchemaV1(Schema.Struct({ cursor: Cursor, truncated: Schema.optional(Schema.Boolean), ...Subscribed }));
66
+ var EventNotification = Schema.toStandardSchemaV1(Schema.Struct({
67
+ eventId: Schema.String,
68
+ name: Schema.String,
69
+ timestamp: Schema.String,
70
+ data: Schema.Unknown,
71
+ cursor: Cursor,
72
+ ...Subscribed
73
+ }));
74
+ var HeartbeatNotification = Schema.toStandardSchemaV1(Schema.Struct({ cursor: Cursor, ...Subscribed }));
75
+ var ErrorNotification = Schema.toStandardSchemaV1(Schema.Struct({ error: EventError, ...Subscribed }));
76
+
77
+ class EventStreamTerminatedError2 extends Schema.TaggedError()("MCP.EventStreamTerminatedError", {
78
+ server: Schema.String,
79
+ code: Schema.Number,
80
+ message: Schema.String,
81
+ data: Schema.optional(Schema.Unknown)
82
+ }) {
83
+ }
84
+
85
+ class NeedsAuthError2 extends Schema.TaggedError()("MCP.NeedsAuthError", {
86
+ server: Schema.String,
87
+ message: Schema.String
88
+ }) {
89
+ }
90
+
91
+ class ConnectError2 extends Schema.TaggedError()("MCP.ConnectError", {
92
+ server: Schema.String,
93
+ message: Schema.String,
94
+ answered: Schema.optional(Schema.Boolean)
95
+ }) {
96
+ }
97
+
98
+ class SessionExpiredError2 extends Schema.TaggedError()("MCP.SessionExpiredError", {
99
+ server: Schema.String
100
+ }) {
101
+ get message() {
102
+ return `MCP server session expired: ${this.server}`;
103
+ }
104
+ }
105
+ var connect2 = Effect.fnUntraced(function* (options) {
106
+ const server = options.server;
107
+ const config = options.config;
108
+ const elicitation = options.elicitation;
109
+ const timeout = config.type === "attached" ? { execution: ATTACHED_EXECUTION_TIMEOUT } : config.timeout;
110
+ const protocol = config.type === "attached" ? "legacy" : config.protocol;
111
+ const changed = { tools: () => {}, prompts: () => {}, resources: () => {} };
112
+ const listChanged = (key) => ({
113
+ autoRefresh: false,
114
+ debounceMs: 0,
115
+ onChanged: () => changed[key]()
116
+ });
117
+ const callers = new WeakMap;
118
+ const claim = (signal, input) => {
119
+ if (input.elicitation)
120
+ callers.set(signal, input.elicitation);
121
+ return signal;
122
+ };
123
+ const streams = new Map;
124
+ let lastError;
125
+ const explain = (error) => error instanceof SdkError && error.code === SdkErrorCode.ConnectionClosed && lastError ? `${describe(error)}: ${lastError}` : describe(error);
126
+ const retrying = (what, effect, deadline = Infinity) => Effect.retry(effect, Schedule.max([Schedule.exponential("250 millis", 4), Schedule.recurs(2)]).pipe(Schedule.setInputType(), Schedule.while(({ input, now, duration }) => !isTransient(input) || now + Duration.toMillis(duration) >= deadline ? Effect.succeed(false) : Effect.logWarning(`retrying ${what}`, { server, error: describe(input) }).pipe(Effect.as(true)))));
127
+ const initialize = Effect.fnUntraced(function* (transport) {
128
+ const context = yield* Effect.context();
129
+ const runFork = Effect.runForkWith(context);
130
+ const runPromise = Effect.runPromiseWith(context);
131
+ const client = new Client(options.clientInfo ?? { name: "opencode", version: "unknown" }, {
132
+ capabilities: {
133
+ ...elicitation ? { elicitation: { form: {}, url: {} } } : {},
134
+ ...options.roots === false ? {} : { roots: {} },
135
+ ...options.events ? { extensions: { [EVENTS]: {} } } : {}
136
+ },
137
+ versionNegotiation: negotiation(protocol),
138
+ listChanged: {
139
+ tools: listChanged("tools"),
140
+ prompts: listChanged("prompts"),
141
+ resources: listChanged("resources")
142
+ }
143
+ });
144
+ client.onerror = (error) => {
145
+ if (error.name === "AbortError")
146
+ return;
147
+ lastError = describe(error);
148
+ runFork(Effect.logWarning("mcp transport error", { server, error: lastError }));
149
+ };
150
+ if (options.roots !== false)
151
+ client.setRequestHandler("roots/list", () => ({ roots: [{ uri: pathToFileURL(options.directory).href }] }));
152
+ if (options.events) {
153
+ const subscribed = (params) => streams.get(String(params._meta[SUBSCRIPTION_ID]));
154
+ client.setNotificationHandler("notifications/events/active", { params: ActiveNotification }, (params) => {
155
+ const queue = subscribed(params);
156
+ if (queue)
157
+ Queue.offerUnsafe(queue, {
158
+ type: "active",
159
+ cursor: params.cursor ?? null,
160
+ truncated: params.truncated === true
161
+ });
162
+ });
163
+ client.setNotificationHandler("notifications/events/event", { params: EventNotification }, (params) => {
164
+ const queue = subscribed(params);
165
+ if (queue)
166
+ Queue.offerUnsafe(queue, {
167
+ type: "event",
168
+ eventId: params.eventId,
169
+ name: params.name,
170
+ timestamp: params.timestamp,
171
+ data: params.data,
172
+ cursor: params.cursor ?? null
173
+ });
174
+ });
175
+ client.setNotificationHandler("notifications/events/heartbeat", { params: HeartbeatNotification }, (params) => {
176
+ const queue = subscribed(params);
177
+ if (queue)
178
+ Queue.offerUnsafe(queue, { type: "heartbeat", cursor: params.cursor ?? null });
179
+ });
180
+ client.setNotificationHandler("notifications/events/error", { params: ErrorNotification }, (params) => {
181
+ const queue = subscribed(params);
182
+ if (queue)
183
+ Queue.offerUnsafe(queue, { type: "error", error: params.error });
184
+ });
185
+ client.setNotificationHandler("notifications/events/terminated", { params: ErrorNotification }, (params) => {
186
+ const queue = subscribed(params);
187
+ if (queue)
188
+ Queue.failCauseUnsafe(queue, Cause.fail(new EventStreamTerminatedError2({ server, ...params.error })));
189
+ });
190
+ }
191
+ if (elicitation) {
192
+ client.setRequestHandler("elicitation/create", (request, ctx) => {
193
+ const origin = ctx.mcpReq.origin?.options?.signal;
194
+ const create = (origin && callers.get(origin)) ?? elicitation.create;
195
+ return runPromise(create({ server, params: request.params, signal: ctx.mcpReq.signal }));
196
+ });
197
+ client.setNotificationHandler("notifications/elicitation/complete", (notification) => runPromise(elicitation.complete({ server, elicitationID: notification.params.elicitationId })));
198
+ }
199
+ yield* Effect.tryPromise({
200
+ try: (signal) => client.connect(transport, { timeout: timeout?.startup ?? DEFAULT_STARTUP_TIMEOUT, signal }),
201
+ catch: (error) => error
202
+ }).pipe(Effect.onError(() => Effect.promise(() => transport.close()).pipe(Effect.ignore)));
203
+ return client;
204
+ });
205
+ const session = {
206
+ reported: false
207
+ };
208
+ const failure = (error) => {
209
+ if (error instanceof SessionExpiredError2)
210
+ return error;
211
+ if (!(error instanceof SdkHttpError) || session.transport?.sessionId === undefined)
212
+ return new Error(explain(error));
213
+ const expired = error.status === 404 || error.status === 400 && typeof error.data.text === "string" && error.data.text.includes("Bad Request: Server not initialized");
214
+ if (!expired)
215
+ return new Error(explain(error));
216
+ if (!session.reported) {
217
+ session.reported = true;
218
+ session.expired?.();
219
+ }
220
+ return new SessionExpiredError2({ server });
221
+ };
222
+ const exit = yield* Effect.gen(function* () {
223
+ if (config.type === "attached")
224
+ return yield* initialize(config.transport);
225
+ if (config.type === "local") {
226
+ const [command, ...args] = config.command;
227
+ const transport = yield* make21({
228
+ server,
229
+ command,
230
+ args,
231
+ cwd: resolveCwd2(options.directory, config.cwd),
232
+ environment: {
233
+ ...command === "opencode" ? { BUN_BE_BUN: "1" } : {},
234
+ ...config.environment
235
+ }
236
+ });
237
+ return yield* initialize(transport);
238
+ }
239
+ const { McpOAuth } = yield* Effect.promise(() => import("../mcp/oauth.js"));
240
+ const fetch = yield* McpOAuth.loggedFetch({ server, directory: options.directory });
241
+ const url = new URL(config.url);
242
+ const addedCodemode = config.codemode !== false && !url.searchParams.has("codemode") && !rejectsUnknownQuery(url);
243
+ if (addedCodemode)
244
+ url.searchParams.set("codemode", "false");
245
+ const open = Effect.fnUntraced(function* (url) {
246
+ session.transport = new StreamableHTTPClientTransport(url, {
247
+ requestInit: config.headers ? { headers: config.headers } : undefined,
248
+ authProvider: options.authProvider,
249
+ fetch
250
+ });
251
+ return yield* initialize(session.transport);
252
+ });
253
+ const deadline = (yield* Clock.currentTimeMillis) + (timeout?.startup ?? DEFAULT_STARTUP_TIMEOUT);
254
+ return yield* retrying("MCP connect", open(url).pipe(Effect.catch((error) => {
255
+ if (!addedCodemode || !(error instanceof SdkHttpError) || error.status !== 400 && error.status !== 404)
256
+ return Effect.fail(error);
257
+ return open(new URL(config.url));
258
+ })), deadline);
259
+ }).pipe(Effect.exit);
260
+ if (Exit.isSuccess(exit)) {
261
+ const client = exit.value;
262
+ yield* Effect.addFinalizer(() => Effect.gen(function* () {
263
+ const transport = session.transport;
264
+ client.onerror = undefined;
265
+ if (transport?.sessionId !== undefined && !session.reported)
266
+ yield* Effect.tryPromise({ try: () => transport.terminateSession(), catch: toError }).pipe(Effect.timeoutOrElse({
267
+ duration: TERMINATE_TIMEOUT,
268
+ orElse: () => Effect.fail(new Error(`Timed out after ${TERMINATE_TIMEOUT}ms`))
269
+ }), Effect.tapError((error) => Effect.logWarning("failed to terminate MCP session", { server, error: error.message })), Effect.ignore);
270
+ yield* Effect.tryPromise(() => client.close()).pipe(Effect.ignore);
271
+ }));
272
+ const catalog = { timeout: timeout?.catalog ?? DEFAULT_CATALOG_TIMEOUT };
273
+ const listed = new Map;
274
+ const execution = timeout?.execution ?? DEFAULT_EXECUTION_TIMEOUT;
275
+ const request = (what, run) => Effect.tryPromise({ try: run, catch: failure }).pipe(Effect.tapError((error) => Effect.logWarning(`failed to ${what}`, { server, error: error.message })));
276
+ const list = (what, run) => retrying(what, Effect.tryPromise({ try: run, catch: (error) => error })).pipe(Effect.mapError(failure), Effect.tapError((error) => Effect.logWarning(`failed to ${what}`, { server, error: error.message })));
277
+ const advertised = (capability) => Boolean(client.getServerCapabilities()?.[capability]);
278
+ const connection = {
279
+ modern: client.getProtocolEra() === "modern",
280
+ protocolVersion: client.getNegotiatedProtocolVersion(),
281
+ title: client.getServerVersion()?.title?.trim() || undefined,
282
+ instructions: client.getInstructions()?.trim() || undefined,
283
+ events: options.events && client.getServerCapabilities()?.extensions?.[EVENTS] ? {
284
+ list: Effect.fnUntraced(function* () {
285
+ const events = [];
286
+ let cursor;
287
+ for (let page = 0;page < EVENT_LIST_PAGES; page++) {
288
+ const result = yield* list("list MCP events", (signal) => client.request({ method: "events/list", params: cursor === undefined ? {} : { cursor } }, EventList, {
289
+ ...catalog,
290
+ signal
291
+ }));
292
+ events.push(...result.events);
293
+ cursor = result.nextCursor;
294
+ if (cursor === undefined)
295
+ return events;
296
+ }
297
+ yield* Effect.logWarning("MCP event list has more pages than read", { server, pages: EVENT_LIST_PAGES });
298
+ return events;
299
+ }),
300
+ stream: (input) => Stream.callback((queue) => Effect.gen(function* () {
301
+ yield* Effect.addFinalizer(() => Effect.sync(() => {
302
+ for (const [id, open] of streams)
303
+ if (open === queue)
304
+ streams.delete(id);
305
+ }));
306
+ yield* request("stream MCP events", (signal) => client.request({ method: "events/stream", params: input }, StreamResult, {
307
+ signal,
308
+ timeout: Infinity,
309
+ onRequestId: (id) => streams.set(String(id), queue)
310
+ })).pipe(Effect.matchEffect({
311
+ onFailure: (error) => Queue.fail(queue, error),
312
+ onSuccess: () => Queue.end(queue)
313
+ }), Effect.forkScoped);
314
+ })).pipe(Stream.timeoutOrElse({
315
+ duration: EVENT_STREAM_IDLE,
316
+ orElse: () => Stream.fail(new Error(`MCP server ${server} sent nothing on the event stream for 60 seconds`))
317
+ }))
318
+ } : undefined,
319
+ tools: () => advertised("tools") ? list("list MCP tools", (signal) => client.listTools(undefined, { ...catalog, cacheMode: "bypass", signal })).pipe(Effect.flatMap((result) => {
320
+ const skipped = [];
321
+ const tools = result.tools.flatMap((tool) => {
322
+ const skip = (reason) => {
323
+ skipped.push({ tool: isRecord(tool) ? tool.name : undefined, reason });
324
+ return [];
325
+ };
326
+ if (!isRecord(tool))
327
+ return skip("not an object");
328
+ if (typeof tool.name !== "string" || tool.name === "")
329
+ return skip("name is not a non-empty string");
330
+ if (!isRecord(tool.inputSchema))
331
+ return skip("inputSchema is not an object");
332
+ if (tool.inputSchema.type !== undefined && tool.inputSchema.type !== "object")
333
+ return skip('inputSchema type is not "object"');
334
+ const { properties, required, ...inputSchema } = tool.inputSchema;
335
+ return [
336
+ {
337
+ name: tool.name,
338
+ title: typeof tool.title === "string" ? tool.title : undefined,
339
+ description: typeof tool.description === "string" ? tool.description : undefined,
340
+ inputSchema: {
341
+ ...inputSchema,
342
+ type: "object",
343
+ ...isRecord(properties) ? { properties } : {},
344
+ ...Array.isArray(required) && required.every((key) => typeof key === "string") ? { required } : {}
345
+ },
346
+ outputSchema: isRecord(tool.outputSchema) ? tool.outputSchema : undefined,
347
+ annotations: isRecord(tool.annotations) ? tool.annotations : undefined,
348
+ execution: isRecord(tool.execution) ? tool.execution : undefined,
349
+ _meta: isRecord(tool._meta) ? tool._meta : undefined
350
+ }
351
+ ];
352
+ });
353
+ listed.clear();
354
+ for (const tool of tools)
355
+ listed.set(tool.name, tool);
356
+ return Effect.forEach(skipped, (entry) => Effect.logWarning("skipping invalid MCP tool", { server, ...entry }), { discard: true }).pipe(Effect.as(tools));
357
+ })) : Effect.succeed([]),
358
+ prompts: () => advertised("prompts") ? list("list MCP prompts", (signal) => client.listPrompts(undefined, { ...catalog, signal })).pipe(Effect.map((r) => r.prompts)) : Effect.succeed([]),
359
+ resources: () => advertised("resources") ? list("list MCP resources", (signal) => client.listResources(undefined, { ...catalog, signal })).pipe(Effect.map((r) => r.resources)) : Effect.succeed([]),
360
+ resourceTemplates: () => advertised("resources") ? list("list MCP resource templates", (signal) => client.listResourceTemplates(undefined, { ...catalog, signal })).pipe(Effect.map((r) => r.resourceTemplates)) : Effect.succeed([]),
361
+ readResource: (input) => {
362
+ if (!advertised("resources"))
363
+ return Effect.succeed(undefined);
364
+ return request("read MCP resource", (signal) => client.readResource({ uri: input.uri }, { signal: claim(signal, input), timeout: execution }));
365
+ },
366
+ prompt: (input) => request("get MCP prompt", (signal) => client.getPrompt({ name: input.name, arguments: input.args ?? {} }, { signal: claim(signal, input), timeout: execution })),
367
+ callTool: (input) => {
368
+ const call = Effect.tryPromise({
369
+ try: (signal) => client.callTool({
370
+ name: input.name,
371
+ arguments: input.args ?? {},
372
+ ...input.sessionID === undefined ? {} : { _meta: { "ai.opencode/sessionID": input.sessionID } }
373
+ }, {
374
+ signal: claim(signal, input),
375
+ timeout: execution,
376
+ onprogress: () => {},
377
+ toolDefinition: {
378
+ ...listed.get(input.name) ?? { name: input.name, inputSchema: { type: "object" } },
379
+ outputSchema: undefined
380
+ }
381
+ }),
382
+ catch: (error) => error
383
+ });
384
+ return call.pipe(Effect.catchIf((error) => connection.modern && error instanceof ProtocolError && error.code === HEADER_MISMATCH, () => connection.tools().pipe(Effect.andThen(call))), Effect.mapError(failure), Effect.tapError((error) => Effect.logWarning("failed to call MCP tool", { server, error: error.message })), Effect.map(toCallToolResult));
385
+ },
386
+ onClose: (callback) => {
387
+ client.onclose = () => callback(lastError ? `Connection closed: ${lastError}` : "Connection closed");
388
+ },
389
+ onSessionExpired: (callback) => {
390
+ session.expired = callback;
391
+ },
392
+ onToolsChanged: (callback) => {
393
+ changed.tools = callback;
394
+ },
395
+ onPromptsChanged: (callback) => {
396
+ changed.prompts = callback;
397
+ },
398
+ onResourcesChanged: (callback) => {
399
+ changed.resources = callback;
400
+ }
401
+ };
402
+ return connection;
403
+ }
404
+ const error = Cause.squash(exit.cause);
405
+ if (error instanceof UnauthorizedError || error instanceof InsufficientScopeError)
406
+ return yield* new NeedsAuthError2({ server, message: error.message });
407
+ if (error instanceof UnsupportedProtocolVersionError)
408
+ return yield* new ConnectError2({
409
+ server,
410
+ message: `${error.message}; the server supports ${error.supported.join(", ")}. Set "protocol" for this server to one of those or to "legacy".`
411
+ });
412
+ return yield* new ConnectError2({ server, message: explain(error), answered: !repeats(error) });
413
+ });
414
+ function repeats(error) {
415
+ if (error instanceof SdkError && error.code === SdkErrorCode.EraNegotiationFailed && error.cause !== undefined)
416
+ return repeats(error.cause);
417
+ return error instanceof SdkError && error.code === SdkErrorCode.RequestTimeout || error instanceof SdkHttpError && (error.status === 401 || error.status === 403) || error instanceof OAuthError && error.code === OAuthErrorCode.TemporarilyUnavailable || isTransient(error) || PlatformError.isPlatformError(error);
418
+ }
419
+ function rejectsUnknownQuery(url) {
420
+ if (url.hostname.endsWith(".googleapis.com"))
421
+ return true;
422
+ if (/(^|\.)zohomcp\.[a-z.]+$/.test(url.hostname))
423
+ return true;
424
+ return url.hostname === "localhost" || url.hostname === "[::1]" || /^127(\.\d+){3}$/.test(url.hostname);
425
+ }
426
+ function negotiation(protocol) {
427
+ if (protocol === undefined || protocol === "legacy")
428
+ return;
429
+ if (protocol === "auto")
430
+ return { mode: "auto" };
431
+ return { mode: { pin: protocol } };
432
+ }
433
+ function toCallToolResult(result) {
434
+ return {
435
+ isError: result.isError === true,
436
+ structured: result.structuredContent,
437
+ content: result.content.flatMap((part) => {
438
+ if (part.type === "text")
439
+ return [{ type: "text", text: part.text }];
440
+ if (part.type === "image" || part.type === "audio")
441
+ return [{ type: "media", data: part.data, mimeType: part.mimeType }];
442
+ if (part.type === "resource_link")
443
+ return [{ type: "text", text: part.uri }];
444
+ if (part.type === "resource") {
445
+ const resource = part.resource;
446
+ if ("text" in resource)
447
+ return [{ type: "text", text: resource.text }];
448
+ if ("blob" in resource && resource.mimeType !== undefined)
449
+ return [{ type: "media", data: resource.blob, mimeType: resource.mimeType, uri: resource.uri }];
450
+ return [{ type: "text", text: resource.uri }];
451
+ }
452
+ return [];
453
+ })
454
+ };
455
+ }
456
+
457
+ export { EventStreamTerminatedError2, NeedsAuthError2, ConnectError2, SessionExpiredError2, connect2, exports_client };
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  createLocalProviderPlugin2
3
- } from "./schema-hw67g06k.js";
3
+ } from "./location-g0fycf8m.js";
4
4
 
5
5
  // src/plugin/provider/vllm.ts
6
6
  import { Effect, Schema } from "effect";
@@ -11,7 +11,7 @@ var RemoteModel = Schema.Struct({
11
11
  max_model_len: Schema.NullOr(Schema.Int)
12
12
  });
13
13
  var Response = Schema.Struct({ data: Schema.Array(RemoteModel) });
14
- var make18 = createLocalProviderPlugin2({
14
+ var make17 = createLocalProviderPlugin2({
15
15
  id: "opencode.provider.vllm",
16
16
  providerID,
17
17
  name: "vLLM",
@@ -26,6 +26,6 @@ var make18 = createLocalProviderPlugin2({
26
26
  context: item.max_model_len
27
27
  })
28
28
  });
29
- var VLLMPlugin2 = make18();
29
+ var VLLMPlugin2 = make17();
30
30
 
31
- export { make18, VLLMPlugin2 };
31
+ export { make17, VLLMPlugin2 };