@opencode/core 0.0.0-dev-479 → 0.0.0-dev-481

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 (915) hide show
  1. package/dist/account/sql.js +1 -1
  2. package/dist/agent.js +92 -92
  3. package/dist/aisdk-native.js +102 -102
  4. package/dist/aisdk.js +108 -108
  5. package/dist/app.js +3 -3
  6. package/dist/artifact.js +247 -246
  7. package/dist/bus.js +80 -80
  8. package/dist/chunks/{plugin-kxwct6tk.js → app-0asq6p20.js} +10 -10
  9. package/dist/chunks/{plugin-0j7gp832.js → app-0j7gp832.js} +1 -1
  10. package/dist/chunks/{plugin-0ma9gw4f.js → app-0ma9gw4f.js} +2 -2
  11. package/dist/chunks/{plugin-qj97zj8m.js → app-0qdw55z7.js} +6 -6
  12. package/dist/chunks/{plugin-s320htan.js → app-0z1kk8n9.js} +8 -8
  13. package/dist/chunks/{plugin-nt1ksxpe.js → app-11pmnyyq.js} +13 -13
  14. package/dist/chunks/{plugin-m4htaz91.js → app-11v4hymh.js} +11 -11
  15. package/dist/chunks/{plugin-zcveajwy.js → app-13aj6xfg.js} +29 -29
  16. package/dist/chunks/{plugin-jxbp2qyt.js → app-13am0myr.js} +59 -59
  17. package/dist/chunks/{plugin-x150ncgg.js → app-19gkfjnk.js} +2 -2
  18. package/dist/chunks/{plugin-7npe92bj.js → app-19w73m0f.js} +11 -11
  19. package/dist/chunks/{plugin-1aqsckx4.js → app-1aqsckx4.js} +1 -1
  20. package/dist/chunks/{plugin-qtf35215.js → app-1njtx4es.js} +3 -3
  21. package/dist/chunks/{plugin-ybws1qgk.js → app-1v2g13eq.js} +4 -4
  22. package/dist/chunks/{plugin-f341sazs.js → app-1vbrkdbs.js} +3 -3
  23. package/dist/chunks/{plugin-1x2knyw4.js → app-1x2knyw4.js} +1 -1
  24. package/dist/chunks/{plugin-fk248ax2.js → app-20mc4p3b.js} +11 -11
  25. package/dist/chunks/{plugin-p2zjxbd0.js → app-23b5bwtt.js} +3 -3
  26. package/dist/chunks/{plugin-n9053ya8.js → app-24sxtq8k.js} +6 -6
  27. package/dist/chunks/{plugin-gmemj5zs.js → app-26wfx3k0.js} +4 -4
  28. package/dist/chunks/{plugin-1ep2p91f.js → app-27w5k9zf.js} +2 -2
  29. package/dist/chunks/{plugin-g1ngm9se.js → app-28ma8gfj.js} +146 -146
  30. package/dist/chunks/{plugin-233argac.js → app-2am13szv.js} +8 -8
  31. package/dist/chunks/{plugin-sbz71ybr.js → app-2cdjxzfg.js} +3 -3
  32. package/dist/chunks/{plugin-hq8qa4db.js → app-2db5e21y.js} +5 -5
  33. package/dist/chunks/{plugin-b1zhhzgv.js → app-2emepb4b.js} +31 -31
  34. package/dist/chunks/{plugin-fhmm688v.js → app-2gd46ww5.js} +31 -31
  35. package/dist/chunks/{plugin-b0grxa7w.js → app-2hg7qvzt.js} +5 -5
  36. package/dist/chunks/{plugin-xmx7xj34.js → app-2kj7f5bg.js} +7 -7
  37. package/dist/chunks/{plugin-n8e9v4vc.js → app-2n05qsag.js} +4 -4
  38. package/dist/chunks/{plugin-s1ba0vj0.js → app-2p60zmnr.js} +2 -2
  39. package/dist/chunks/{plugin-d937xkcq.js → app-2zydp9t3.js} +6 -6
  40. package/dist/chunks/{plugin-y02sr1p4.js → app-33fs0phy.js} +3 -3
  41. package/dist/chunks/{plugin-3992z3jj.js → app-33vee48d.js} +43 -43
  42. package/dist/chunks/{plugin-793zj1sy.js → app-3ab9az2f.js} +11 -11
  43. package/dist/chunks/{plugin-ayjs7tqn.js → app-3cbjf1nt.js} +2 -2
  44. package/dist/chunks/{plugin-nydjq4sd.js → app-3gqs30ps.js} +19 -19
  45. package/dist/chunks/{plugin-3hepkmqq.js → app-3hepkmqq.js} +1 -1
  46. package/dist/chunks/{plugin-0zr7nnmg.js → app-3jqetb86.js} +19 -19
  47. package/dist/chunks/{plugin-dby5vbzt.js → app-3k6see7r.js} +18 -18
  48. package/dist/chunks/{plugin-mcjqta85.js → app-3nmxyean.js} +5 -5
  49. package/dist/chunks/{plugin-3nnrz6f6.js → app-3nnrz6f6.js} +1 -1
  50. package/dist/chunks/{plugin-sswgfrj6.js → app-3xg6wq2g.js} +13 -13
  51. package/dist/chunks/{plugin-40y6dtc2.js → app-40y6dtc2.js} +1 -1
  52. package/dist/chunks/{plugin-40za9wsf.js → app-40za9wsf.js} +2 -2
  53. package/dist/chunks/{plugin-003h9f7h.js → app-43ynt425.js} +30 -30
  54. package/dist/chunks/{plugin-jxd6f16v.js → app-44pmzq9c.js} +2 -2
  55. package/dist/chunks/{plugin-0nce9c54.js → app-45a1n0rj.js} +21 -21
  56. package/dist/chunks/{plugin-3b63hagv.js → app-4am3819x.js} +32 -32
  57. package/dist/chunks/{plugin-4dx1dgte.js → app-4dx1dgte.js} +1 -1
  58. package/dist/chunks/{plugin-4f25tdd0.js → app-4f25tdd0.js} +1 -1
  59. package/dist/chunks/{plugin-12a87htm.js → app-4medx3yc.js} +8 -8
  60. package/dist/chunks/{plugin-sztprh7q.js → app-4pc43vs5.js} +3 -3
  61. package/dist/chunks/{plugin-4pyp9zr9.js → app-4pyp9zr9.js} +1 -1
  62. package/dist/chunks/{plugin-4v008n1t.js → app-4v008n1t.js} +1 -1
  63. package/dist/chunks/{plugin-pvs364j1.js → app-57zkss3n.js} +9 -9
  64. package/dist/chunks/{plugin-csxt3m9f.js → app-5af0c4bz.js} +13 -13
  65. package/dist/chunks/{plugin-5ftq3225.js → app-5ftq3225.js} +2 -2
  66. package/dist/chunks/{plugin-hdms92sz.js → app-5fz99wkv.js} +6 -6
  67. package/dist/chunks/{plugin-5m9w47nd.js → app-5m9w47nd.js} +1 -1
  68. package/dist/chunks/{plugin-5s5vqdc4.js → app-5tgs095n.js} +28 -28
  69. package/dist/chunks/{plugin-t7jftra3.js → app-5tqhmh96.js} +7 -7
  70. package/dist/chunks/{plugin-a19ta31c.js → app-5xfk76mk.js} +78 -78
  71. package/dist/chunks/{plugin-84vrtabg.js → app-5z1m43a3.js} +7 -7
  72. package/dist/chunks/{plugin-3sc7df82.js → app-62beg8mw.js} +25 -25
  73. package/dist/chunks/{plugin-qj94hwma.js → app-62fftzdq.js} +12 -12
  74. package/dist/chunks/{plugin-nt9tcqpf.js → app-6m70gvhx.js} +9 -9
  75. package/dist/chunks/{plugin-4zyss6cy.js → app-6mzrbse0.js} +29 -29
  76. package/dist/chunks/{plugin-58tmp4yv.js → app-6s3jfmgb.js} +11 -11
  77. package/dist/chunks/{plugin-r76ra0tx.js → app-6tvaezwq.js} +3 -3
  78. package/dist/chunks/{plugin-0sa7jxz1.js → app-6xgrzf3v.js} +4 -4
  79. package/dist/chunks/{plugin-dzndmsqs.js → app-71jkfa4r.js} +4 -4
  80. package/dist/chunks/{plugin-6vz3jywf.js → app-722vxske.js} +9 -9
  81. package/dist/chunks/{plugin-czwrbhp2.js → app-750t9xmf.js} +21 -21
  82. package/dist/chunks/{plugin-76cb1hcw.js → app-76cb1hcw.js} +1 -1
  83. package/dist/chunks/{plugin-5ta9hw7a.js → app-76ggf0cd.js} +10 -10
  84. package/dist/chunks/{plugin-7bmhse3q.js → app-7bmhse3q.js} +1 -1
  85. package/dist/chunks/{plugin-3fyd3gy1.js → app-7ey693cm.js} +6 -6
  86. package/dist/chunks/{plugin-7kr66rt3.js → app-7kr66rt3.js} +1 -1
  87. package/dist/chunks/{plugin-mpp1es3r.js → app-7ncdpmyj.js} +9 -9
  88. package/dist/chunks/{plugin-8sxe6kv8.js → app-7qrph824.js} +2 -2
  89. package/dist/chunks/{plugin-3dz8yjj2.js → app-7t9chrae.js} +14 -14
  90. package/dist/chunks/{plugin-7w2ypzdf.js → app-7w2ypzdf.js} +1 -1
  91. package/dist/chunks/{plugin-7weczvnd.js → app-7weczvnd.js} +1 -1
  92. package/dist/chunks/{plugin-m0hzqf10.js → app-7wm6fjb2.js} +6 -6
  93. package/dist/chunks/{plugin-jhheezf7.js → app-7zggx0n1.js} +6 -6
  94. package/dist/chunks/{plugin-80mg3ag8.js → app-80mg3ag8.js} +3 -3
  95. package/dist/chunks/{plugin-bzv7p55q.js → app-82fxv0dw.js} +4 -4
  96. package/dist/chunks/{plugin-yw5tymv7.js → app-847k13tf.js} +11 -11
  97. package/dist/chunks/{plugin-msgw3yfh.js → app-87ef3s8z.js} +32 -32
  98. package/dist/chunks/{plugin-89287pr7.js → app-89287pr7.js} +1 -1
  99. package/dist/chunks/{plugin-8b3vzgkx.js → app-8b3vzgkx.js} +1 -1
  100. package/dist/chunks/{plugin-4d2dtj2f.js → app-8cg7mtm3.js} +4 -4
  101. package/dist/chunks/{plugin-pw9cbn0b.js → app-8dxpscf2.js} +26 -26
  102. package/dist/chunks/{plugin-k56zdrkn.js → app-8fzjfj5n.js} +2 -2
  103. package/dist/chunks/{plugin-z9wgtvaj.js → app-8g403b55.js} +22 -22
  104. package/dist/chunks/{plugin-4k3rcg9y.js → app-8jw7n1ah.js} +9 -9
  105. package/dist/chunks/{plugin-zrgw02gd.js → app-8px3ddj4.js} +4 -4
  106. package/dist/chunks/{plugin-d71f6xpr.js → app-8qbdxarg.js} +26 -26
  107. package/dist/chunks/{plugin-t55cvahq.js → app-8sb7jtsn.js} +9 -9
  108. package/dist/chunks/{plugin-8wtp7s3z.js → app-8wtp7s3z.js} +1 -1
  109. package/dist/chunks/{plugin-mb7mbhnz.js → app-8z6m94af.js} +3 -3
  110. package/dist/chunks/{plugin-hj5ct57v.js → app-90pvm6py.js} +8 -8
  111. package/dist/chunks/{plugin-90zstvax.js → app-90zstvax.js} +1 -1
  112. package/dist/chunks/{plugin-7zpjpnxk.js → app-93n7n3x8.js} +21 -21
  113. package/dist/chunks/{plugin-nn2nd58t.js → app-93xmyh8q.js} +5 -5
  114. package/dist/chunks/{plugin-zd6datdt.js → app-99a9crdx.js} +11 -11
  115. package/dist/chunks/{plugin-t4grjx7g.js → app-9av120cb.js} +17 -17
  116. package/dist/chunks/{plugin-e7stmr9y.js → app-9c645kx6.js} +2 -2
  117. package/dist/chunks/{plugin-c0vscat1.js → app-9cgaya5j.js} +10 -10
  118. package/dist/chunks/{plugin-maw2k4sy.js → app-9hqxgecf.js} +21 -21
  119. package/dist/chunks/app-9kkkhnvp.js +92 -0
  120. package/dist/chunks/{plugin-3y7pxfxj.js → app-9rqhy0gk.js} +7 -7
  121. package/dist/chunks/{plugin-xvek642c.js → app-9vajtycf.js} +12 -12
  122. package/dist/chunks/{plugin-1yepcjym.js → app-9wje21dv.js} +12 -12
  123. package/dist/chunks/{plugin-pcwm73g7.js → app-a1dwv91k.js} +8 -8
  124. package/dist/chunks/{plugin-7nqkf5r1.js → app-a5fx33f2.js} +6 -6
  125. package/dist/chunks/{plugin-rwvswa9y.js → app-ae65egk4.js} +6 -6
  126. package/dist/chunks/{plugin-6jfqrnyk.js → app-af8dd66m.js} +4 -4
  127. package/dist/chunks/{plugin-wvpwprnn.js → app-afwnmwkf.js} +43 -43
  128. package/dist/chunks/{plugin-034tev2y.js → app-aj7mw0zk.js} +2 -2
  129. package/dist/chunks/{plugin-xzk7eqpq.js → app-b37ymw5d.js} +15 -15
  130. package/dist/chunks/{plugin-4gj35b6k.js → app-b3hbd1md.js} +14 -14
  131. package/dist/chunks/{plugin-tehqysmh.js → app-b6s5ycsj.js} +6 -6
  132. package/dist/chunks/{plugin-5nnwax6m.js → app-b6vsg801.js} +5 -5
  133. package/dist/chunks/{plugin-v7npc9v0.js → app-bfmts8p1.js} +8 -8
  134. package/dist/chunks/{plugin-e2y3qpx8.js → app-bg9cnzs0.js} +21 -21
  135. package/dist/chunks/{plugin-zyq2pv4t.js → app-bhfd478d.js} +4 -4
  136. package/dist/chunks/{plugin-qs0ybwet.js → app-bmgv8h6w.js} +12 -12
  137. package/dist/chunks/{plugin-3kyqn81p.js → app-bprvspg8.js} +11 -11
  138. package/dist/chunks/{plugin-bstexjd6.js → app-bstexjd6.js} +1 -1
  139. package/dist/chunks/{plugin-y75me4wg.js → app-catycsjd.js} +11 -11
  140. package/dist/chunks/{plugin-mj8rdz5b.js → app-cfg1rk1c.js} +28 -28
  141. package/dist/chunks/{plugin-yrgx642j.js → app-ck4dpv2q.js} +20 -20
  142. package/dist/chunks/app-cpdsp3va.js +16 -0
  143. package/dist/chunks/{plugin-kxs6tnw8.js → app-cpg2sjfp.js} +21 -21
  144. package/dist/chunks/{plugin-cwrgdav8.js → app-cwrgdav8.js} +2 -2
  145. package/dist/chunks/{plugin-7qp028r2.js → app-czy8szj2.js} +322 -322
  146. package/dist/chunks/{plugin-ja240zvt.js → app-d4by6qpt.js} +11 -11
  147. package/dist/chunks/{plugin-916zt89d.js → app-dbf6dzq1.js} +6 -6
  148. package/dist/chunks/{plugin-ps1gq44e.js → app-dgmx8s6q.js} +9 -9
  149. package/dist/chunks/{plugin-dt77769w.js → app-dt77769w.js} +1 -1
  150. package/dist/chunks/{plugin-xqgz2960.js → app-dv2k300y.js} +26 -26
  151. package/dist/chunks/{plugin-bhvnwa4b.js → app-dztesnfv.js} +17 -17
  152. package/dist/chunks/{plugin-gxwxvs29.js → app-dzws43fd.js} +10 -10
  153. package/dist/chunks/{plugin-e834z07m.js → app-e834z07m.js} +1 -1
  154. package/dist/chunks/{plugin-xgxp23qn.js → app-ead32ctt.js} +4 -4
  155. package/dist/chunks/{plugin-eqw4pqj1.js → app-eqw4pqj1.js} +2 -2
  156. package/dist/chunks/{plugin-zbd22mt1.js → app-erf9fzfw.js} +18 -18
  157. package/dist/chunks/app-essehzfx.js +26 -0
  158. package/dist/chunks/{plugin-fzqwfg67.js → app-f1y0a070.js} +1 -1
  159. package/dist/chunks/{plugin-fpc24hg7.js → app-f5hyk6e9.js} +22 -22
  160. package/dist/chunks/{plugin-m8s6m4f9.js → app-f851hg2k.js} +17 -17
  161. package/dist/chunks/{plugin-b8dt3yzy.js → app-fdtp6zbm.js} +11 -11
  162. package/dist/chunks/{plugin-zqv3715y.js → app-fefx1jcc.js} +3 -3
  163. package/dist/chunks/{plugin-fffv3p7h.js → app-fffv3p7h.js} +1 -1
  164. package/dist/chunks/{plugin-r7r55277.js → app-fhwn87jp.js} +8 -8
  165. package/dist/chunks/{plugin-qsdrkw2j.js → app-fk0rpprw.js} +6 -6
  166. package/dist/chunks/{plugin-tx91wa5k.js → app-g1e2r5aa.js} +4 -4
  167. package/dist/chunks/{plugin-f1hyb445.js → app-g6p4g6mv.js} +25 -25
  168. package/dist/chunks/{plugin-ha11x1pn.js → app-g7mcj942.js} +59 -59
  169. package/dist/chunks/{plugin-hyppwetb.js → app-g8dgshm1.js} +6 -6
  170. package/dist/chunks/{plugin-gbjdnr5j.js → app-gbjdnr5j.js} +2 -2
  171. package/dist/chunks/{plugin-xrxvh75p.js → app-ge0ek74f.js} +28 -28
  172. package/dist/chunks/{plugin-tqfes9er.js → app-ggqsw24s.js} +18 -18
  173. package/dist/chunks/{plugin-1pry3703.js → app-ghkxye21.js} +36 -36
  174. package/dist/chunks/{plugin-96drvzaz.js → app-ghqvcpnh.js} +9 -9
  175. package/dist/chunks/{plugin-08620e8x.js → app-gk56h2xy.js} +16 -16
  176. package/dist/chunks/{plugin-5s7rnpj6.js → app-gkqc8wt9.js} +9 -9
  177. package/dist/chunks/{plugin-d4v9tmah.js → app-gn8tkhbf.js} +2 -2
  178. package/dist/chunks/{plugin-yye3bq51.js → app-gtse556r.js} +3 -3
  179. package/dist/chunks/{plugin-ehrst6qt.js → app-gwz0wrrb.js} +14 -14
  180. package/dist/chunks/{plugin-gxs71cxp.js → app-gxs71cxp.js} +1 -1
  181. package/dist/chunks/{plugin-0mmtzz5j.js → app-h0xhqjby.js} +4 -4
  182. package/dist/chunks/{plugin-243e1pz5.js → app-h2ff2q30.js} +8 -8
  183. package/dist/chunks/{plugin-h9hc66h4.js → app-h9hc66h4.js} +1 -1
  184. package/dist/chunks/{plugin-mqjmkxe2.js → app-hahgtam6.js} +42 -42
  185. package/dist/chunks/{plugin-whnfyxqz.js → app-hetycfaa.js} +43 -43
  186. package/dist/chunks/{plugin-76s20aka.js → app-hfzv1g6g.js} +30 -30
  187. package/dist/chunks/{plugin-hpg1pkwy.js → app-hpg1pkwy.js} +1 -1
  188. package/dist/chunks/{plugin-f2kh68ms.js → app-hxjfpgt3.js} +6 -6
  189. package/dist/chunks/{plugin-hy8c1z76.js → app-hy8c1z76.js} +1 -1
  190. package/dist/chunks/{plugin-sj8a7msy.js → app-hz7a74th.js} +28 -28
  191. package/dist/chunks/{plugin-qt0px9k1.js → app-j06ysx93.js} +14 -14
  192. package/dist/chunks/{plugin-v5t90qh9.js → app-j6z15evp.js} +5 -5
  193. package/dist/chunks/{plugin-wws03c5r.js → app-jhwp234h.js} +5 -5
  194. package/dist/chunks/{plugin-2fywmefk.js → app-jk9ctt2d.js} +27 -27
  195. package/dist/chunks/{plugin-c7yad11g.js → app-jmx08cdn.js} +12 -12
  196. package/dist/chunks/{plugin-q0pszf8t.js → app-js4hvacx.js} +31 -31
  197. package/dist/chunks/{plugin-jtnps1zs.js → app-jtnps1zs.js} +2 -2
  198. package/dist/chunks/{plugin-vza1zfjv.js → app-jy1f4pdx.js} +5 -5
  199. package/dist/chunks/{plugin-r0db2mfd.js → app-jy6h2y3j.js} +16 -16
  200. package/dist/chunks/{plugin-ngp7bjdm.js → app-jyntrgsj.js} +9 -9
  201. package/dist/chunks/{plugin-k3cx6fhe.js → app-k3cx6fhe.js} +1 -1
  202. package/dist/chunks/{plugin-rhmv684b.js → app-k44x9x7y.js} +146 -169
  203. package/dist/chunks/{plugin-0ysbbc3a.js → app-k483zyxw.js} +2 -2
  204. package/dist/chunks/{plugin-xk248cya.js → app-k8bdr0d0.js} +22 -22
  205. package/dist/chunks/{plugin-eav1rnxp.js → app-ka1mq67y.js} +13 -13
  206. package/dist/chunks/{plugin-40d4jecb.js → app-kbsfb6et.js} +1 -1
  207. package/dist/chunks/{plugin-35kq4gbv.js → app-kfd17r3s.js} +7 -7
  208. package/dist/chunks/{plugin-963hk181.js → app-kp2338hr.js} +2 -2
  209. package/dist/chunks/{plugin-dz1sb5rn.js → app-kpfh6gak.js} +20 -20
  210. package/dist/chunks/{plugin-cq1cxh4j.js → app-kse531ts.js} +6 -6
  211. package/dist/chunks/{plugin-kt3bjfbg.js → app-kt3bjfbg.js} +1 -1
  212. package/dist/chunks/{plugin-pahg8g4d.js → app-kz92qt34.js} +9 -9
  213. package/dist/chunks/{plugin-kzczzf4v.js → app-kzczzf4v.js} +1 -1
  214. package/dist/chunks/{plugin-m1714858.js → app-m1714858.js} +1 -1
  215. package/dist/chunks/{plugin-m9w0rfyh.js → app-m9w0rfyh.js} +1 -1
  216. package/dist/chunks/{plugin-nhdvqvpg.js → app-me1613fs.js} +151 -151
  217. package/dist/chunks/{plugin-4h8kjm87.js → app-mgvq6ne3.js} +23 -23
  218. package/dist/chunks/{plugin-ybgghwx2.js → app-mj1xqs5a.js} +31 -31
  219. package/dist/chunks/{plugin-3p8n1y9y.js → app-mxhv6w83.js} +8 -8
  220. package/dist/chunks/{plugin-tvfqhq7x.js → app-n17wdgkv.js} +33 -33
  221. package/dist/chunks/{plugin-wb47rx5c.js → app-n3bkb5q1.js} +8 -8
  222. package/dist/chunks/{plugin-1n3sgxej.js → app-n4k1ey5b.js} +3 -3
  223. package/dist/chunks/{plugin-pfp0mh64.js → app-n8ahjr4j.js} +13 -13
  224. package/dist/chunks/{plugin-xcd5nyq5.js → app-navg70v8.js} +11 -11
  225. package/dist/chunks/{plugin-dwwzshk6.js → app-ndpzex15.js} +14 -14
  226. package/dist/chunks/{plugin-0zbd8xvq.js → app-np51zkq5.js} +29 -29
  227. package/dist/chunks/{plugin-pt4tp1e1.js → app-nr7cqb9h.js} +9 -9
  228. package/dist/chunks/{plugin-6hzvd6ez.js → app-nv1v3ewx.js} +21 -21
  229. package/dist/chunks/{plugin-0v7tspfh.js → app-nv2s17h7.js} +38 -38
  230. package/dist/chunks/{plugin-wegkxhrn.js → app-nx4vzyjd.js} +2 -2
  231. package/dist/chunks/{plugin-jpb5jcq1.js → app-p5w1jxhv.js} +17 -17
  232. package/dist/chunks/{plugin-pknna89w.js → app-pknna89w.js} +1 -1
  233. package/dist/chunks/{plugin-s5n4w658.js → app-pq46x9ny.js} +8 -8
  234. package/dist/chunks/{plugin-wvqnneyz.js → app-prha7nnz.js} +8 -8
  235. package/dist/chunks/{plugin-fg9p65nk.js → app-prq7xxp2.js} +6 -6
  236. package/dist/chunks/{plugin-fgx4vva4.js → app-prwg2e47.js} +4 -4
  237. package/dist/chunks/{plugin-w634rffz.js → app-psbj456r.js} +11 -11
  238. package/dist/chunks/{plugin-61a47rr1.js → app-pyz2pf6w.js} +3 -3
  239. package/dist/chunks/{plugin-q1m0f6c3.js → app-q0ez1hrk.js} +7 -7
  240. package/dist/chunks/{plugin-6a692jyb.js → app-q391cchf.js} +27 -27
  241. package/dist/chunks/{plugin-1pbgpcqw.js → app-q7zpym3n.js} +2 -2
  242. package/dist/chunks/{plugin-36xh6f9c.js → app-q94qz23g.js} +46 -46
  243. package/dist/chunks/{plugin-skm192qe.js → app-q9csfq1d.js} +9 -9
  244. package/dist/chunks/{plugin-sbdaa9p8.js → app-q9qzw55y.js} +6 -6
  245. package/dist/chunks/{plugin-rj7ypc2p.js → app-qczyd0hm.js} +14 -14
  246. package/dist/chunks/{plugin-08xtkz47.js → app-qfwh95mr.js} +13 -13
  247. package/dist/chunks/{plugin-wzfa06mn.js → app-qfz6bxfd.js} +4 -4
  248. package/dist/chunks/{plugin-ysph14gh.js → app-qgk9wbmt.js} +19 -19
  249. package/dist/chunks/app-qmh7vbk2.js +18 -0
  250. package/dist/chunks/{plugin-gh3n7sy5.js → app-qnt4ewtn.js} +4 -4
  251. package/dist/chunks/{plugin-qp7r0hxv.js → app-qp7r0hxv.js} +1 -1
  252. package/dist/chunks/{plugin-1v8n87jg.js → app-qpe5m7rp.js} +11 -11
  253. package/dist/chunks/{plugin-qqvy8y24.js → app-qqvy8y24.js} +1 -1
  254. package/dist/chunks/{plugin-rgnftxgr.js → app-qrkmc1kp.js} +11 -11
  255. package/dist/chunks/{plugin-xv58zx2g.js → app-r17y8811.js} +36 -36
  256. package/dist/chunks/{plugin-rmv7fhs4.js → app-r1fnsf7p.js} +6 -6
  257. package/dist/chunks/{plugin-7ps7a2h1.js → app-r1n0s1ac.js} +16 -16
  258. package/dist/chunks/{plugin-rb9dy4dg.js → app-rb9dy4dg.js} +1 -1
  259. package/dist/chunks/{plugin-z0hqw6m5.js → app-rchz5kjx.js} +4 -4
  260. package/dist/chunks/{plugin-5kfk4j49.js → app-rgzbxrk5.js} +4 -4
  261. package/dist/chunks/{plugin-4yvj4xjq.js → app-rhg1wx68.js} +27 -27
  262. package/dist/chunks/{plugin-c5zvymhv.js → app-rj7j5fvs.js} +4 -4
  263. package/dist/chunks/{plugin-edm37t96.js → app-rnbnz8pk.js} +6 -6
  264. package/dist/chunks/{plugin-rt5dr6hb.js → app-rt5dr6hb.js} +1 -1
  265. package/dist/chunks/{plugin-r0x0111z.js → app-rz032gsk.js} +22 -22
  266. package/dist/chunks/{plugin-9d9b6p64.js → app-s55t9t0j.js} +49 -49
  267. package/dist/chunks/{plugin-56qbqrx1.js → app-s5hy498g.js} +13 -13
  268. package/dist/chunks/{plugin-drw40kyn.js → app-s72x33aq.js} +20 -20
  269. package/dist/chunks/{plugin-atzwqwnx.js → app-s7s2w16j.js} +36 -36
  270. package/dist/chunks/{plugin-sa3fpqfw.js → app-sa3fpqfw.js} +2 -2
  271. package/dist/chunks/{plugin-sbya78hr.js → app-sbya78hr.js} +1 -1
  272. package/dist/chunks/{plugin-504fpne4.js → app-sch7yt7r.js} +19 -19
  273. package/dist/chunks/{plugin-02ng8mn2.js → app-sgfxw3p2.js} +80 -80
  274. package/dist/chunks/{plugin-rcea88yy.js → app-sj4xjt7y.js} +24 -24
  275. package/dist/chunks/{plugin-ccr33psb.js → app-sr8x3p00.js} +20 -20
  276. package/dist/chunks/{plugin-svcy3p9a.js → app-svcy3p9a.js} +1 -1
  277. package/dist/chunks/{plugin-96djdqw5.js → app-szwm4crx.js} +4 -4
  278. package/dist/chunks/{plugin-yf5czeb9.js → app-t0zfenmz.js} +23 -23
  279. package/dist/chunks/{plugin-dgttzt9v.js → app-t4f7c3ht.js} +18 -18
  280. package/dist/chunks/{plugin-n4kz79fk.js → app-t7wtafck.js} +13 -13
  281. package/dist/chunks/{plugin-tczq8hjw.js → app-tczq8hjw.js} +1 -1
  282. package/dist/chunks/{plugin-ka9p5agb.js → app-tkp5adq0.js} +15 -15
  283. package/dist/chunks/{plugin-j376ae4e.js → app-tr8x705m.js} +5 -5
  284. package/dist/chunks/{plugin-01svjha3.js → app-ts7bpkbv.js} +3 -3
  285. package/dist/chunks/{plugin-twssxy5n.js → app-twssxy5n.js} +2 -2
  286. package/dist/chunks/{plugin-w79nt68w.js → app-v0t96s7a.js} +4 -4
  287. package/dist/chunks/{plugin-v2r1d0zg.js → app-v2r1d0zg.js} +1 -1
  288. package/dist/chunks/{plugin-mrk4w3jx.js → app-v7zvx5ny.js} +49 -37
  289. package/dist/chunks/{plugin-p7vhpwh8.js → app-v9ez2kgh.js} +5 -5
  290. package/dist/chunks/{plugin-h0pwkjsk.js → app-vf5rezts.js} +10 -10
  291. package/dist/chunks/{plugin-vjf35v1f.js → app-vjf35v1f.js} +1 -1
  292. package/dist/chunks/{plugin-teav1bzy.js → app-vt4r9rmy.js} +9 -9
  293. package/dist/chunks/{plugin-3mawbxvt.js → app-vyzwj7hv.js} +9 -9
  294. package/dist/chunks/{plugin-3ny17yye.js → app-w0gbs4kg.js} +29 -29
  295. package/dist/chunks/{plugin-w3wsvvr9.js → app-w3wsvvr9.js} +1 -1
  296. package/dist/chunks/{plugin-b6z35kmf.js → app-w687dnns.js} +4 -4
  297. package/dist/chunks/{plugin-t1e2s6vs.js → app-w6adzdws.js} +83 -83
  298. package/dist/chunks/{plugin-wakvkjy4.js → app-wakvkjy4.js} +1 -1
  299. package/dist/chunks/{plugin-qtd6gj7b.js → app-wbqzfeen.js} +17 -17
  300. package/dist/chunks/{plugin-1z4v3b5m.js → app-wd6ygds7.js} +2 -2
  301. package/dist/chunks/{plugin-wd87259q.js → app-wd87259q.js} +1 -1
  302. package/dist/chunks/{plugin-d2dt6bgk.js → app-weahyj5x.js} +5 -5
  303. package/dist/chunks/{plugin-d5t7af91.js → app-wf5k0dcb.js} +27 -27
  304. package/dist/chunks/{plugin-8t99kr38.js → app-wfs84ra6.js} +4 -4
  305. package/dist/chunks/{plugin-xjbsd7zy.js → app-whhbv2ev.js} +9 -9
  306. package/dist/chunks/{plugin-bkkpnb7q.js → app-whq4nd4h.js} +11 -11
  307. package/dist/chunks/{plugin-2ept0w77.js → app-wjnwerxx.js} +22 -22
  308. package/dist/chunks/{plugin-wnhgecwx.js → app-wnhgecwx.js} +1 -1
  309. package/dist/chunks/{plugin-vv64d4rb.js → app-wq1xd5na.js} +11 -11
  310. package/dist/chunks/{plugin-wvr8xscb.js → app-wvr8xscb.js} +1 -1
  311. package/dist/chunks/{plugin-rg4170c0.js → app-wy3njjma.js} +18 -18
  312. package/dist/chunks/{plugin-xv9paqsr.js → app-wyya4zt2.js} +9 -9
  313. package/dist/chunks/{plugin-24yxk1vj.js → app-wyzscbnm.js} +5 -5
  314. package/dist/chunks/{plugin-7w0955b3.js → app-x2eb1s38.js} +16 -16
  315. package/dist/chunks/{plugin-wgh8jmkg.js → app-x2kh5z67.js} +20 -20
  316. package/dist/chunks/{plugin-6n3rv08g.js → app-x48k7f96.js} +11 -11
  317. package/dist/chunks/{plugin-4tzzh3ak.js → app-xavgr0sn.js} +21 -21
  318. package/dist/chunks/{plugin-1ez7h27k.js → app-xfdj8ybq.js} +32 -32
  319. package/dist/chunks/{plugin-4rq2pt6y.js → app-xfssnbs4.js} +17 -17
  320. package/dist/chunks/{plugin-xksw6ev0.js → app-xksw6ev0.js} +1 -1
  321. package/dist/chunks/{plugin-a07zd1hj.js → app-xrj14re7.js} +8 -8
  322. package/dist/chunks/{plugin-j9shjdqa.js → app-xznfvz6c.js} +12 -12
  323. package/dist/chunks/{plugin-517gz7kt.js → app-y3e9w5j4.js} +16 -16
  324. package/dist/chunks/{plugin-20t9t4ks.js → app-y5x79gp6.js} +5 -5
  325. package/dist/chunks/{plugin-xfhmp08x.js → app-y70svyf1.js} +22 -22
  326. package/dist/chunks/{plugin-8rappqr0.js → app-y9dbkkt2.js} +29 -29
  327. package/dist/chunks/{plugin-yb20nhc3.js → app-yb20nhc3.js} +1 -1
  328. package/dist/chunks/{plugin-5e07pmtn.js → app-ydejkx0z.js} +4 -4
  329. package/dist/chunks/{plugin-mqanfb8j.js → app-yef98r2t.js} +3 -3
  330. package/dist/chunks/{plugin-wtheay7g.js → app-yq2mt5qr.js} +3 -3
  331. package/dist/chunks/{plugin-ky596kc3.js → app-yqveydy6.js} +4 -4
  332. package/dist/chunks/{plugin-yr705xyq.js → app-yr705xyq.js} +1 -1
  333. package/dist/chunks/{plugin-y3p3hzkr.js → app-ysampvvb.js} +5 -5
  334. package/dist/chunks/{plugin-yvtc2x31.js → app-yvtc2x31.js} +1 -1
  335. package/dist/chunks/{plugin-sf9y72b7.js → app-z080rjh6.js} +4 -4
  336. package/dist/chunks/{plugin-xjyfcqfe.js → app-z4sah7cn.js} +12 -12
  337. package/dist/chunks/{plugin-mt6gec7v.js → app-z7a53n6z.js} +6 -6
  338. package/dist/chunks/{plugin-ze75qvmd.js → app-ze75qvmd.js} +3 -3
  339. package/dist/chunks/{plugin-dbq0azap.js → app-zkket41r.js} +24 -24
  340. package/dist/chunks/{plugin-kmnzj81a.js → app-zvg8q0fs.js} +3 -3
  341. package/dist/codemode/catalog.js +1 -1
  342. package/dist/codemode/execution.js +5 -5
  343. package/dist/codemode/fetch.js +145 -145
  344. package/dist/codemode/instructions.js +9 -9
  345. package/dist/codemode/tool.js +151 -151
  346. package/dist/command.js +96 -96
  347. package/dist/config/discovery.js +95 -95
  348. package/dist/config/integration.js +3 -3
  349. package/dist/config/managed.js +1 -1
  350. package/dist/config/markdown.js +1 -1
  351. package/dist/config/normalize.js +112 -112
  352. package/dist/config/plugin/agent.js +130 -130
  353. package/dist/config/plugin/command.js +230 -229
  354. package/dist/config/plugin/compaction.js +171 -171
  355. package/dist/config/plugin/compatibility.js +150 -150
  356. package/dist/config/plugin/entry-observer.js +1 -1
  357. package/dist/config/plugin/formatter.js +131 -131
  358. package/dist/config/plugin/image.js +130 -130
  359. package/dist/config/plugin/instruction.js +130 -130
  360. package/dist/config/plugin/location-watcher.js +132 -132
  361. package/dist/config/plugin/mcp.js +138 -137
  362. package/dist/config/plugin/policy.js +130 -130
  363. package/dist/config/plugin/provider.js +130 -130
  364. package/dist/config/plugin/reference.js +132 -132
  365. package/dist/config/plugin/shell.js +130 -130
  366. package/dist/config/plugin/skill-file.js +146 -146
  367. package/dist/config/plugin/skill-scan.js +1 -1
  368. package/dist/config/plugin/skill.js +151 -151
  369. package/dist/config/plugin/snapshot.js +130 -130
  370. package/dist/config/plugin/source.js +133 -133
  371. package/dist/config/plugin/tool-output.js +131 -131
  372. package/dist/config/plugin/websearch.js +129 -129
  373. package/dist/config/plugin/worktree.js +132 -132
  374. package/dist/config/variable.js +1 -1
  375. package/dist/config/watch.js +1 -1
  376. package/dist/config.js +135 -135
  377. package/dist/console-access.js +1 -1
  378. package/dist/credential/sql.js +2 -2
  379. package/dist/credential.js +90 -90
  380. package/dist/database/database.js +77 -77
  381. package/dist/database/drizzle/effect-sqlite/driver.js +14 -14
  382. package/dist/database/drizzle/effect-sqlite/index.js +14 -14
  383. package/dist/database/drizzle/effect-sqlite/session.js +11 -11
  384. package/dist/database/drizzle/index.js +15 -15
  385. package/dist/database/drizzle/internal/drizzle-utils.js +1 -1
  386. package/dist/database/drizzle/sqlite-core/effect/count.js +1 -1
  387. package/dist/database/drizzle/sqlite-core/effect/db.js +9 -9
  388. package/dist/database/drizzle/sqlite-core/effect/delete.js +2 -2
  389. package/dist/database/drizzle/sqlite-core/effect/index.js +10 -10
  390. package/dist/database/drizzle/sqlite-core/effect/insert.js +2 -2
  391. package/dist/database/drizzle/sqlite-core/effect/query.js +1 -1
  392. package/dist/database/drizzle/sqlite-core/effect/raw.js +1 -1
  393. package/dist/database/drizzle/sqlite-core/effect/select.js +2 -2
  394. package/dist/database/drizzle/sqlite-core/effect/session.js +10 -10
  395. package/dist/database/drizzle/sqlite-core/effect/update.js +2 -2
  396. package/dist/database/drizzle.js +16 -16
  397. package/dist/database/migration/20260127222353_familiar_lady_ursula.js +1 -1
  398. package/dist/database/migration/20260211171708_add_project_commands.js +1 -1
  399. package/dist/database/migration/20260213144116_wakeful_the_professor.js +1 -1
  400. package/dist/database/migration/20260225215848_workspace.js +1 -1
  401. package/dist/database/migration/20260227213759_add_session_workspace_id.js +1 -1
  402. package/dist/database/migration/20260228203230_blue_harpoon.js +1 -1
  403. package/dist/database/migration/20260303231226_add_workspace_fields.js +1 -1
  404. package/dist/database/migration/20260309230000_move_org_to_state.js +1 -1
  405. package/dist/database/migration/20260312043431_session_message_cursor.js +1 -1
  406. package/dist/database/migration/20260323234822_events.js +1 -1
  407. package/dist/database/migration/20260410174513_workspace-name.js +1 -1
  408. package/dist/database/migration/20260413175956_chief_energizer.js +1 -1
  409. package/dist/database/migration/20260423070820_add_icon_url_override.js +1 -1
  410. package/dist/database/migration/20260427172553_slow_nightmare.js +1 -1
  411. package/dist/database/migration/20260428004200_add_session_path.js +1 -1
  412. package/dist/database/migration/20260501142318_next_venus.js +1 -1
  413. package/dist/database/migration/20260504145000_add_sync_owner.js +1 -1
  414. package/dist/database/migration/20260507164347_add_workspace_time.js +1 -1
  415. package/dist/database/migration/20260510033149_session_usage.js +1 -1
  416. package/dist/database/migration/20260511000411_data_migration_state.js +1 -1
  417. package/dist/database/migration/20260511173437_session-metadata.js +1 -1
  418. package/dist/database/migration/20260601010001_normalize_storage_paths.js +1 -1
  419. package/dist/database/migration/20260601202201_amazing_prowler.js +1 -1
  420. package/dist/database/migration/20260602002951_lowly_union_jack.js +1 -1
  421. package/dist/database/migration/20260602182828_add_project_directories.js +1 -1
  422. package/dist/database/migration/20260603001617_session_message_projection_indexes.js +1 -1
  423. package/dist/database/migration/20260603040000_session_message_projection_order.js +1 -1
  424. package/dist/database/migration/20260603141458_session_input_inbox.js +1 -1
  425. package/dist/database/migration/20260603160727_jittery_ezekiel_stane.js +1 -1
  426. package/dist/database/migration/20260604172448_event_sourced_session_input.js +1 -1
  427. package/dist/database/migration/20260605003541_add_session_context_snapshot.js +1 -1
  428. package/dist/database/migration/20260605042240_add_context_epoch_agent.js +1 -1
  429. package/dist/database/migration/20260611035744_credential.js +1 -1
  430. package/dist/database/migration/20260611192811_lush_chimera.js +1 -1
  431. package/dist/database/migration/20260612174303_project_dir_strategy.js +1 -1
  432. package/dist/database/migration/20260622142730_simplify_session_context_epoch.js +1 -1
  433. package/dist/database/migration/20260622170816_reset_v2_session_state.js +1 -1
  434. package/dist/database/migration/20260622202450_simplify_session_input.js +1 -1
  435. package/dist/database/migration/20260804233008_loose_psylocke.js +1 -1
  436. package/dist/database/migration/20260805200742_import_legacy_credentials.js +1 -1
  437. package/dist/database/migration/20260808023530_workspace_domain.js +1 -1
  438. package/dist/database/migration/20260811161259_execution_claim_attempts.js +1 -1
  439. package/dist/database/migration/20260812181746_session_inbox.js +1 -1
  440. package/dist/database/migration/20260812213948_worktree.js +1 -1
  441. package/dist/database/migration/20260819222447_session_viewed_state.js +1 -1
  442. package/dist/database/migration/20260823191254_nullable_workspace_binding.js +1 -1
  443. package/dist/database/migration/20260910120000_clear_v1_session_permission.js +1 -1
  444. package/dist/database/migration/20260923013825_project_time_active.js +1 -1
  445. package/dist/database/migration/20261007190000_azure_cli_external_credential.js +1 -1
  446. package/dist/database/migration/20261010180456_project_time_archived.js +1 -1
  447. package/dist/database/migration/20261024002554_session_allowance.js +1 -1
  448. package/dist/database/migration/20261024175301_drop_session_allowance.js +1 -1
  449. package/dist/database/migration/20261025123711_blob.js +1 -1
  450. package/dist/database/migration/20261025154125_drop_session_pending.js +1 -1
  451. package/dist/database/migration/20261026223005_schedule.js +1 -1
  452. package/dist/database/migration/20261029002625_session_part.js +1 -1
  453. package/dist/database/migration/20261029073502_session_time_busy.js +1 -1
  454. package/dist/database/migration/20261029165540_schedule_checks.js +1 -1
  455. package/dist/database/migration/20261030054400_job.js +1 -1
  456. package/dist/database/migration.gen.js +60 -60
  457. package/dist/database/migration.js +62 -62
  458. package/dist/database/path.js +2 -2
  459. package/dist/database/schema.gen.js +1 -1
  460. package/dist/database/schema.sql.js +1 -1
  461. package/dist/database/v1-migration.bun.js +98 -98
  462. package/dist/database/v1-migration.js +1 -1
  463. package/dist/effect/app-node-builder.js +431 -430
  464. package/dist/effect/app-node-platform.js +2 -2
  465. package/dist/effect/keyed-mutex.js +3 -3
  466. package/dist/effect/websocket-constructor.js +1 -1
  467. package/dist/environment/driver.js +1 -1
  468. package/dist/environment/environment.js +106 -106
  469. package/dist/environment/exec-defaults.js +2 -2
  470. package/dist/environment/files.js +1 -1
  471. package/dist/environment/index.js +106 -106
  472. package/dist/environment/local.js +2 -2
  473. package/dist/environment/memory.js +2 -2
  474. package/dist/environment/unavailable.js +3 -3
  475. package/dist/event/sql.js +1 -1
  476. package/dist/event-logger.js +81 -81
  477. package/dist/file-access.js +152 -152
  478. package/dist/file-mutation.js +107 -107
  479. package/dist/file-retention.js +1 -1
  480. package/dist/filesystem/fff.bun.js +2 -2
  481. package/dist/filesystem/fff.js +1 -1
  482. package/dist/filesystem/fff.node.js +2 -2
  483. package/dist/filesystem/fff.workerd.js +2 -2
  484. package/dist/filesystem/file-watch.js +88 -88
  485. package/dist/filesystem/location-watcher-policy.js +6 -6
  486. package/dist/filesystem/location-watcher.js +246 -245
  487. package/dist/filesystem/protected.js +1 -1
  488. package/dist/filesystem/search.js +110 -110
  489. package/dist/filesystem/watcher-binding.js +1 -1
  490. package/dist/filesystem/watcher.js +11 -11
  491. package/dist/filesystem.js +117 -117
  492. package/dist/form.js +91 -91
  493. package/dist/formatter/builtins.js +4 -4
  494. package/dist/formatter.js +100 -100
  495. package/dist/generate.js +118 -118
  496. package/dist/git.js +7 -7
  497. package/dist/github-copilot/chat/convert-to-openai-compatible-chat-messages.js +1 -1
  498. package/dist/github-copilot/chat/get-response-metadata.js +1 -1
  499. package/dist/github-copilot/chat/map-openai-compatible-finish-reason.js +1 -1
  500. package/dist/github-copilot/chat/openai-compatible-chat-language-model.js +7 -7
  501. package/dist/github-copilot/chat/openai-compatible-chat-options.js +1 -1
  502. package/dist/github-copilot/chat/openai-compatible-prepare-tools.js +1 -1
  503. package/dist/github-copilot/copilot-provider.js +17 -17
  504. package/dist/github-copilot/models.js +104 -104
  505. package/dist/github-copilot/openai-compatible-error.js +1 -1
  506. package/dist/github-copilot/responses/convert-to-openai-responses-input.js +1 -1
  507. package/dist/github-copilot/responses/map-openai-responses-finish-reason.js +1 -1
  508. package/dist/github-copilot/responses/openai-error.js +1 -1
  509. package/dist/github-copilot/responses/openai-responses-language-model.js +10 -10
  510. package/dist/github-copilot/responses/openai-responses-prepare-tools.js +6 -6
  511. package/dist/github-copilot/responses/tool/code-interpreter.js +1 -1
  512. package/dist/github-copilot/responses/tool/file-search.js +1 -1
  513. package/dist/github-copilot/responses/tool/image-generation.js +1 -1
  514. package/dist/github-copilot/responses/tool/web-search-preview.js +1 -1
  515. package/dist/github-copilot/responses/tool/web-search.js +1 -1
  516. package/dist/image/notice.js +1 -1
  517. package/dist/image/photon-normalize.js +1 -1
  518. package/dist/image/photon-worker.js +1 -1
  519. package/dist/image/photon.js +4 -4
  520. package/dist/image.js +6 -6
  521. package/dist/instance/service.js +5 -5
  522. package/dist/instance.js +422 -421
  523. package/dist/instruction-discovery.js +97 -97
  524. package/dist/instructions/builtins.js +100 -100
  525. package/dist/instructions/index.js +3 -3
  526. package/dist/integration/connection.js +3 -3
  527. package/dist/integration.js +92 -92
  528. package/dist/job/sql.js +2 -2
  529. package/dist/job.js +88 -88
  530. package/dist/kv/sql.js +2 -2
  531. package/dist/kv.js +84 -84
  532. package/dist/location-activity.js +176 -176
  533. package/dist/location-lifecycle.js +150 -150
  534. package/dist/location-service-map.js +99 -99
  535. package/dist/location-services.js +419 -418
  536. package/dist/location.js +94 -94
  537. package/dist/managed-policy.js +3 -3
  538. package/dist/mcp/client.js +104 -104
  539. package/dist/mcp/connection.js +110 -0
  540. package/dist/mcp/index.js +121 -120
  541. package/dist/mcp/instructions.js +182 -181
  542. package/dist/mcp/oauth.js +86 -86
  543. package/dist/mcp/socket-client.js +1 -1
  544. package/dist/mcp/stdio.js +103 -103
  545. package/dist/mime.js +1 -1
  546. package/dist/modal/models.js +104 -104
  547. package/dist/model-resolver.js +112 -112
  548. package/dist/model-retry.js +1 -1
  549. package/dist/model.js +107 -107
  550. package/dist/models-dev/v1.js +1 -1
  551. package/dist/models-dev.js +113 -113
  552. package/dist/oauth/page.js +1 -1
  553. package/dist/permission/saved.js +93 -93
  554. package/dist/permission/sql.js +5 -5
  555. package/dist/permission.js +153 -153
  556. package/dist/persistent-pty/binary.bun.js +1 -1
  557. package/dist/persistent-pty/daemon.js +1 -1
  558. package/dist/persistent-pty/index.js +97 -97
  559. package/dist/persistent-pty/pty-binding.js +1 -1
  560. package/dist/persistent-pty.js +86 -86
  561. package/dist/plugin/agent.js +85 -85
  562. package/dist/plugin/command.js +112 -111
  563. package/dist/plugin/goal.js +1 -1
  564. package/dist/plugin/hooks.js +5 -5
  565. package/dist/plugin/host.js +237 -236
  566. package/dist/plugin/identity.js +5 -5
  567. package/dist/plugin/instance.js +1 -1
  568. package/dist/plugin/internal.js +398 -397
  569. package/dist/plugin/mcp-codemode-defaults.js +3 -3
  570. package/dist/plugin/models-dev.js +110 -110
  571. package/dist/plugin/module.js +129 -129
  572. package/dist/plugin/optimize.js +4 -4
  573. package/dist/plugin/plan.js +146 -146
  574. package/dist/plugin/promise.js +1 -1
  575. package/dist/plugin/provider/amazon-bedrock.js +104 -104
  576. package/dist/plugin/provider/azure.js +132 -132
  577. package/dist/plugin/provider/cerebras.js +1 -1
  578. package/dist/plugin/provider/chatgpt.js +130 -130
  579. package/dist/plugin/provider/claude-agent/aisdk.js +115 -115
  580. package/dist/plugin/provider/claude-agent/claude/fork.js +2 -2
  581. package/dist/plugin/provider/claude-agent/claude/io.js +4 -4
  582. package/dist/plugin/provider/claude-agent/claude/probe.js +2 -2
  583. package/dist/plugin/provider/claude-agent/claude/query-options.js +4 -4
  584. package/dist/plugin/provider/claude-agent/claude/sdk.js +3 -3
  585. package/dist/plugin/provider/claude-agent/claude/session.js +4 -4
  586. package/dist/plugin/provider/claude-agent/claude/sessions.js +16 -16
  587. package/dist/plugin/provider/claude-agent/claude/status.js +9 -9
  588. package/dist/plugin/provider/claude-agent/index.js +145 -145
  589. package/dist/plugin/provider/claude-agent/instructions.js +112 -112
  590. package/dist/plugin/provider/claude-agent/integration.js +113 -113
  591. package/dist/plugin/provider/claude-agent/language-model/claude-agent-error.js +3 -3
  592. package/dist/plugin/provider/claude-agent/language-model/claude-agent-language-model.js +7 -7
  593. package/dist/plugin/provider/claude-agent/language-model/convert-claude-stream.js +6 -6
  594. package/dist/plugin/provider/claude-agent/language-model/convert-to-claude-message.js +1 -1
  595. package/dist/plugin/provider/claude-agent/language-model/request-kind.js +1 -1
  596. package/dist/plugin/provider/claude-agent/language-model/system-prompt.js +3 -3
  597. package/dist/plugin/provider/claude-agent/language-model/usage.js +3 -3
  598. package/dist/plugin/provider/claude-agent/provider.js +108 -108
  599. package/dist/plugin/provider/claude-agent/session.js +110 -110
  600. package/dist/plugin/provider/claude-agent/sync/catch-up.js +3 -3
  601. package/dist/plugin/provider/claude-agent/sync/checkpoints.js +2 -2
  602. package/dist/plugin/provider/claude-agent/sync/decide.js +2 -2
  603. package/dist/plugin/provider/claude-agent/sync/fingerprint.js +1 -1
  604. package/dist/plugin/provider/claude-agent/sync/record.js +1 -1
  605. package/dist/plugin/provider/claude-agent/tools/hooks.js +3 -3
  606. package/dist/plugin/provider/claude-agent/tools/names.js +1 -1
  607. package/dist/plugin/provider/claude-agent/tools/pending.js +3 -3
  608. package/dist/plugin/provider/claude-agent/tools/result.js +3 -3
  609. package/dist/plugin/provider/claude-agent/tools/server.js +4 -4
  610. package/dist/plugin/provider/cloudflare-ai-gateway.js +128 -128
  611. package/dist/plugin/provider/cloudflare-workers-ai.js +128 -128
  612. package/dist/plugin/provider/configured.js +126 -126
  613. package/dist/plugin/provider/credential-settings.js +85 -85
  614. package/dist/plugin/provider/databricks.js +1 -1
  615. package/dist/plugin/provider/digitalocean.js +108 -108
  616. package/dist/plugin/provider/dynamic.js +2 -2
  617. package/dist/plugin/provider/github-copilot.js +110 -110
  618. package/dist/plugin/provider/gitlab.js +107 -107
  619. package/dist/plugin/provider/google-vertex.js +127 -127
  620. package/dist/plugin/provider/kilo.js +1 -1
  621. package/dist/plugin/provider/llmgateway.js +89 -89
  622. package/dist/plugin/provider/lmstudio.js +139 -139
  623. package/dist/plugin/provider/local.js +136 -136
  624. package/dist/plugin/provider/modal.js +107 -107
  625. package/dist/plugin/provider/neon.js +1 -1
  626. package/dist/plugin/provider/nvidia.js +1 -1
  627. package/dist/plugin/provider/ollama.js +139 -139
  628. package/dist/plugin/provider/openai-context-caps.js +103 -103
  629. package/dist/plugin/provider/openai.js +132 -132
  630. package/dist/plugin/provider/opencode.js +155 -155
  631. package/dist/plugin/provider/openrouter.js +104 -104
  632. package/dist/plugin/provider/poe.js +90 -90
  633. package/dist/plugin/provider/prompt-cache-key.js +1 -1
  634. package/dist/plugin/provider/refresh.js +87 -87
  635. package/dist/plugin/provider/sap-ai-core.js +104 -104
  636. package/dist/plugin/provider/sdk-factory.js +1 -1
  637. package/dist/plugin/provider/snowflake-cortex.js +129 -129
  638. package/dist/plugin/provider/vllm.js +139 -139
  639. package/dist/plugin/provider/xai.js +104 -104
  640. package/dist/plugin/provider/zenmux.js +1 -1
  641. package/dist/plugin/provider.js +234 -234
  642. package/dist/plugin/sdk.js +85 -85
  643. package/dist/plugin/service.js +3 -3
  644. package/dist/plugin/skill.js +145 -145
  645. package/dist/plugin/source-directory.js +1 -1
  646. package/dist/plugin/supervisor.js +408 -407
  647. package/dist/plugin/tool-input-repair.js +2 -2
  648. package/dist/plugin/update.js +6 -6
  649. package/dist/plugin/vcs/git.js +99 -99
  650. package/dist/plugin/vcs/hg.js +99 -99
  651. package/dist/plugin/verbosity.js +106 -106
  652. package/dist/plugin/warming.js +130 -130
  653. package/dist/plugin/websearch/exa.js +7 -7
  654. package/dist/plugin/websearch/firecrawl.js +6 -6
  655. package/dist/plugin/websearch/index.js +9 -9
  656. package/dist/plugin/websearch/mcp.js +2 -2
  657. package/dist/plugin/websearch/parallel.js +8 -8
  658. package/dist/plugin/websearch/tavily.js +6 -6
  659. package/dist/plugin/websearch/tinyfish.js +8 -8
  660. package/dist/plugin.js +248 -247
  661. package/dist/project/icon.js +5 -5
  662. package/dist/project/schema.js +2 -2
  663. package/dist/project/sql.js +4 -4
  664. package/dist/project.js +93 -93
  665. package/dist/provider.js +106 -106
  666. package/dist/pty/protocol.js +1 -1
  667. package/dist/pty/ticket.js +1 -1
  668. package/dist/pty.js +113 -113
  669. package/dist/reference/instructions.js +101 -101
  670. package/dist/reference.js +103 -103
  671. package/dist/repository-cache.js +93 -93
  672. package/dist/repository.js +1 -1
  673. package/dist/ripgrep/binary.js +2 -2
  674. package/dist/ripgrep.js +108 -108
  675. package/dist/rpc.js +99 -99
  676. package/dist/schedule/check.js +242 -241
  677. package/dist/schedule/sql.js +6 -6
  678. package/dist/schedule.js +246 -245
  679. package/dist/schema.js +1 -1
  680. package/dist/session/affinity.js +1 -1
  681. package/dist/session/background.js +1 -1
  682. package/dist/session/blob.js +129 -129
  683. package/dist/session/command.js +85 -85
  684. package/dist/session/compaction.js +173 -173
  685. package/dist/session/context.js +199 -198
  686. package/dist/session/diff.js +101 -101
  687. package/dist/session/environment.js +5 -5
  688. package/dist/session/error.js +5 -5
  689. package/dist/session/event.js +1 -1
  690. package/dist/session/execution/restart.js +240 -239
  691. package/dist/session/execution.js +163 -163
  692. package/dist/session/generate.js +201 -200
  693. package/dist/session/history.js +136 -136
  694. package/dist/session/inbox.js +143 -143
  695. package/dist/session/info.js +3 -3
  696. package/dist/session/instruction-entry.js +86 -86
  697. package/dist/session/instruction-state.js +8 -8
  698. package/dist/session/instructions.js +137 -137
  699. package/dist/session/message-updater.js +4 -4
  700. package/dist/session/message.js +1 -1
  701. package/dist/session/model-request.js +168 -168
  702. package/dist/session/model-transport.js +9 -9
  703. package/dist/session/move.js +165 -165
  704. package/dist/session/projector.js +143 -143
  705. package/dist/session/prompt.js +148 -148
  706. package/dist/session/recent-text.js +1 -1
  707. package/dist/session/revert.js +139 -139
  708. package/dist/session/run-coordinator.js +1 -1
  709. package/dist/session/runner/index.js +3 -3
  710. package/dist/session/runner/llm.js +251 -250
  711. package/dist/session/runner/max-steps.js +1 -1
  712. package/dist/session/runner/model.js +113 -113
  713. package/dist/session/runner/publish-llm-event.js +149 -149
  714. package/dist/session/runner/retry.js +5 -5
  715. package/dist/session/runner/step.js +163 -163
  716. package/dist/session/runner/to-llm-message.js +137 -137
  717. package/dist/session/schema.js +5 -5
  718. package/dist/session/session.js +181 -181
  719. package/dist/session/shell.js +144 -144
  720. package/dist/session/skill.js +147 -147
  721. package/dist/session/sql.js +5 -5
  722. package/dist/session/stats.js +84 -84
  723. package/dist/session/store.js +142 -142
  724. package/dist/session/stored.js +4 -4
  725. package/dist/session/subagent-completion.js +1 -1
  726. package/dist/session/subagent-job.js +230 -229
  727. package/dist/session/system-prompt.js +1 -1
  728. package/dist/session/title.js +203 -202
  729. package/dist/session/to-session-error.js +148 -148
  730. package/dist/session/transfer.js +234 -233
  731. package/dist/session/usage.js +1 -1
  732. package/dist/session.js +236 -235
  733. package/dist/shared-cache.js +5 -5
  734. package/dist/shell/parse.js +6 -6
  735. package/dist/shell/result.js +1 -1
  736. package/dist/shell/scan.js +1 -1
  737. package/dist/shell/select.js +9 -9
  738. package/dist/shell.js +146 -146
  739. package/dist/skill/discovery.js +6 -6
  740. package/dist/skill/instructions.js +149 -149
  741. package/dist/skill.js +156 -156
  742. package/dist/snapshot.js +106 -106
  743. package/dist/state.js +1 -1
  744. package/dist/tool/html-markdown.js +1 -1
  745. package/dist/tool/http-body.js +1 -1
  746. package/dist/tool/mcp.js +179 -178
  747. package/dist/tool/plugin/artifact.js +227 -226
  748. package/dist/tool/plugin/edit.js +164 -164
  749. package/dist/tool/plugin/file-diff.js +1 -1
  750. package/dist/tool/plugin/glob.js +168 -168
  751. package/dist/tool/plugin/grep.js +168 -168
  752. package/dist/tool/plugin/image-generate.js +240 -239
  753. package/dist/tool/plugin/mcp-resource.js +163 -162
  754. package/dist/tool/plugin/opencode.js +161 -161
  755. package/dist/tool/plugin/patch.js +164 -164
  756. package/dist/tool/plugin/question.js +146 -146
  757. package/dist/tool/plugin/read.js +171 -171
  758. package/dist/tool/plugin/schedule.js +248 -247
  759. package/dist/tool/plugin/shell.js +234 -233
  760. package/dist/tool/plugin/skill.js +145 -145
  761. package/dist/tool/plugin/subagent.js +237 -236
  762. package/dist/tool/plugin/todo.js +153 -153
  763. package/dist/tool/plugin/webfetch.js +155 -155
  764. package/dist/tool/plugin/websearch.js +153 -153
  765. package/dist/tool/plugin/write.js +166 -166
  766. package/dist/tool/read-filesystem.js +115 -115
  767. package/dist/tool/runtime.js +1 -1
  768. package/dist/tool-output.js +7 -7
  769. package/dist/tool.js +161 -161
  770. package/dist/types/mcp/connection.d.ts +75 -0
  771. package/dist/types/mcp/index.d.ts +3 -3
  772. package/dist/usage-limits.js +100 -100
  773. package/dist/util/error-summary.js +1 -1
  774. package/dist/util/git-executable.js +3 -3
  775. package/dist/util/lazy.js +1 -1
  776. package/dist/util/slug.js +1 -1
  777. package/dist/util/token.js +1 -1
  778. package/dist/util/which.js +1 -1
  779. package/dist/util/wildcard.js +1 -1
  780. package/dist/v1/config/agent.js +5 -5
  781. package/dist/v1/config/command.js +5 -5
  782. package/dist/v1/config/mcp.js +4 -4
  783. package/dist/v1/config/migrate.js +105 -105
  784. package/dist/v1/config/permission.js +3 -3
  785. package/dist/v1/config/plugin.js +3 -3
  786. package/dist/v1/config/provider-options.js +1 -1
  787. package/dist/v1/config/provider.js +4 -4
  788. package/dist/variant.js +104 -104
  789. package/dist/vcs/patch.js +1 -1
  790. package/dist/vcs.js +102 -102
  791. package/dist/voice.js +99 -99
  792. package/dist/websearch.js +101 -101
  793. package/dist/wellknown/plugin.js +87 -87
  794. package/dist/wellknown.js +92 -92
  795. package/dist/workspace/driver.js +5 -5
  796. package/dist/workspace/sql.js +1 -1
  797. package/dist/workspace.js +93 -93
  798. package/dist/worktree/directory.js +2 -2
  799. package/dist/worktree/git.js +11 -11
  800. package/dist/worktree/sql.js +5 -5
  801. package/dist/worktree/strategies.js +102 -102
  802. package/dist/worktree.js +113 -113
  803. package/package.json +8 -8
  804. package/dist/chunks/plugin-4m6g1g4q.js +0 -16
  805. package/dist/chunks/plugin-7yv5xa0k.js +0 -18
  806. package/dist/chunks/plugin-vfb1yg8m.js +0 -26
  807. /package/dist/chunks/{plugin-0qkdqm5v.js → app-0qkdqm5v.js} +0 -0
  808. /package/dist/chunks/{plugin-0zkw76rk.js → app-0zkw76rk.js} +0 -0
  809. /package/dist/chunks/{plugin-17cy0kzp.js → app-17cy0kzp.js} +0 -0
  810. /package/dist/chunks/{plugin-1cnp2v09.js → app-1cnp2v09.js} +0 -0
  811. /package/dist/chunks/{plugin-1kah00gy.js → app-1kah00gy.js} +0 -0
  812. /package/dist/chunks/{plugin-1pevy3nx.js → app-1pevy3nx.js} +0 -0
  813. /package/dist/chunks/{plugin-24dcb14g.js → app-24dcb14g.js} +0 -0
  814. /package/dist/chunks/{plugin-2710q6r3.js → app-2710q6r3.js} +0 -0
  815. /package/dist/chunks/{plugin-2bv980vf.js → app-2bv980vf.js} +0 -0
  816. /package/dist/chunks/{plugin-2c3vjs8z.js → app-2c3vjs8z.js} +0 -0
  817. /package/dist/chunks/{plugin-359p4xyc.js → app-359p4xyc.js} +0 -0
  818. /package/dist/chunks/{plugin-3asan66x.js → app-3asan66x.js} +0 -0
  819. /package/dist/chunks/{plugin-3v8g72cx.js → app-3v8g72cx.js} +0 -0
  820. /package/dist/chunks/{plugin-3wcehsnq.js → app-3wcehsnq.js} +0 -0
  821. /package/dist/chunks/{plugin-43n2bw4t.js → app-43n2bw4t.js} +0 -0
  822. /package/dist/chunks/{plugin-4knz6hnm.js → app-4knz6hnm.js} +0 -0
  823. /package/dist/chunks/{plugin-4qk9sjk2.js → app-4qk9sjk2.js} +0 -0
  824. /package/dist/chunks/{plugin-4vcrnpx2.js → app-4vcrnpx2.js} +0 -0
  825. /package/dist/chunks/{plugin-4y7fprxs.js → app-4y7fprxs.js} +0 -0
  826. /package/dist/chunks/{plugin-53557ph1.js → app-53557ph1.js} +0 -0
  827. /package/dist/chunks/{plugin-550bvhaj.js → app-550bvhaj.js} +0 -0
  828. /package/dist/chunks/{plugin-5w3e23ze.js → app-5w3e23ze.js} +0 -0
  829. /package/dist/chunks/{plugin-6agm2x70.js → app-6agm2x70.js} +0 -0
  830. /package/dist/chunks/{plugin-6prwharc.js → app-6prwharc.js} +0 -0
  831. /package/dist/chunks/{plugin-6q2bdcd1.js → app-6q2bdcd1.js} +0 -0
  832. /package/dist/chunks/{plugin-7akdwqpd.js → app-7akdwqpd.js} +0 -0
  833. /package/dist/chunks/{plugin-7m9af43g.js → app-7m9af43g.js} +0 -0
  834. /package/dist/chunks/{plugin-822emrt2.js → app-822emrt2.js} +0 -0
  835. /package/dist/chunks/{plugin-84wd9syh.js → app-84wd9syh.js} +0 -0
  836. /package/dist/chunks/{plugin-88xbtdfr.js → app-88xbtdfr.js} +0 -0
  837. /package/dist/chunks/{plugin-8n3pysct.js → app-8n3pysct.js} +0 -0
  838. /package/dist/chunks/{plugin-8wj87zfr.js → app-8wj87zfr.js} +0 -0
  839. /package/dist/chunks/{plugin-9a4afbnw.js → app-9a4afbnw.js} +0 -0
  840. /package/dist/chunks/{plugin-9rqn6x4v.js → app-9rqn6x4v.js} +0 -0
  841. /package/dist/chunks/{plugin-a6k6eb26.js → app-a6k6eb26.js} +0 -0
  842. /package/dist/chunks/{plugin-af5trqkr.js → app-af5trqkr.js} +0 -0
  843. /package/dist/chunks/{plugin-afrmfg78.js → app-afrmfg78.js} +0 -0
  844. /package/dist/chunks/{plugin-aqzs7mqg.js → app-aqzs7mqg.js} +0 -0
  845. /package/dist/chunks/{plugin-atq7p7m5.js → app-atq7p7m5.js} +0 -0
  846. /package/dist/chunks/{plugin-beh6qq61.js → app-beh6qq61.js} +0 -0
  847. /package/dist/chunks/{plugin-bkyjaxrp.js → app-bkyjaxrp.js} +0 -0
  848. /package/dist/chunks/{plugin-bmr6ed5q.js → app-bmr6ed5q.js} +0 -0
  849. /package/dist/chunks/{plugin-cf4snx6d.js → app-cf4snx6d.js} +0 -0
  850. /package/dist/chunks/{plugin-cqv5kn06.js → app-cqv5kn06.js} +0 -0
  851. /package/dist/chunks/{plugin-cvy3z8tj.js → app-cvy3z8tj.js} +0 -0
  852. /package/dist/chunks/{plugin-d9fn303g.js → app-d9fn303g.js} +0 -0
  853. /package/dist/chunks/{plugin-d9jj8t3e.js → app-d9jj8t3e.js} +0 -0
  854. /package/dist/chunks/{plugin-dap0rakb.js → app-dap0rakb.js} +0 -0
  855. /package/dist/chunks/{plugin-dbht28n9.js → app-dbht28n9.js} +0 -0
  856. /package/dist/chunks/{plugin-df08tz66.js → app-df08tz66.js} +0 -0
  857. /package/dist/chunks/{plugin-dy18nga0.js → app-dy18nga0.js} +0 -0
  858. /package/dist/chunks/{plugin-e5kj55wp.js → app-e5kj55wp.js} +0 -0
  859. /package/dist/chunks/{plugin-e73j6tqm.js → app-e73j6tqm.js} +0 -0
  860. /package/dist/chunks/{plugin-ean2d8b5.js → app-ean2d8b5.js} +0 -0
  861. /package/dist/chunks/{plugin-ec1grn59.js → app-ec1grn59.js} +0 -0
  862. /package/dist/chunks/{plugin-eh3zwz77.js → app-eh3zwz77.js} +0 -0
  863. /package/dist/chunks/{plugin-emrn6kk6.js → app-emrn6kk6.js} +0 -0
  864. /package/dist/chunks/{plugin-f0mxakyp.js → app-f0mxakyp.js} +0 -0
  865. /package/dist/chunks/{plugin-f6n9ztr4.js → app-f6n9ztr4.js} +0 -0
  866. /package/dist/chunks/{plugin-faypxj3z.js → app-faypxj3z.js} +0 -0
  867. /package/dist/chunks/{plugin-fd410y7t.js → app-fd410y7t.js} +0 -0
  868. /package/dist/chunks/{plugin-fkpq3x5p.js → app-fkpq3x5p.js} +0 -0
  869. /package/dist/chunks/{plugin-g4wezp1m.js → app-g4wezp1m.js} +0 -0
  870. /package/dist/chunks/{plugin-g86h250q.js → app-g86h250q.js} +0 -0
  871. /package/dist/chunks/{plugin-gebd4c9n.js → app-gebd4c9n.js} +0 -0
  872. /package/dist/chunks/{plugin-gftt206x.js → app-gftt206x.js} +0 -0
  873. /package/dist/chunks/{plugin-hcxmzztb.js → app-hcxmzztb.js} +0 -0
  874. /package/dist/chunks/{plugin-hk9envan.js → app-hk9envan.js} +0 -0
  875. /package/dist/chunks/{plugin-j2ntwpah.js → app-j2ntwpah.js} +0 -0
  876. /package/dist/chunks/{plugin-j5zkgpj8.js → app-j5zkgpj8.js} +0 -0
  877. /package/dist/chunks/{plugin-jjkms2e6.js → app-jjkms2e6.js} +0 -0
  878. /package/dist/chunks/{plugin-jr7sbwjy.js → app-jr7sbwjy.js} +0 -0
  879. /package/dist/chunks/{plugin-jwfs4k6c.js → app-jwfs4k6c.js} +0 -0
  880. /package/dist/chunks/{plugin-jwr30sdr.js → app-jwr30sdr.js} +0 -0
  881. /package/dist/chunks/{plugin-jzg6c2d5.js → app-jzg6c2d5.js} +0 -0
  882. /package/dist/chunks/{plugin-m18g726c.js → app-m18g726c.js} +0 -0
  883. /package/dist/chunks/{plugin-mp448xyj.js → app-mp448xyj.js} +0 -0
  884. /package/dist/chunks/{plugin-msx8hqn2.js → app-msx8hqn2.js} +0 -0
  885. /package/dist/chunks/{plugin-n05xt0ee.js → app-n05xt0ee.js} +0 -0
  886. /package/dist/chunks/{plugin-n3j8tn72.js → app-n3j8tn72.js} +0 -0
  887. /package/dist/chunks/{plugin-nh4v3znn.js → app-nh4v3znn.js} +0 -0
  888. /package/dist/chunks/{plugin-njntx4h6.js → app-njntx4h6.js} +0 -0
  889. /package/dist/chunks/{plugin-p71gwv9c.js → app-p71gwv9c.js} +0 -0
  890. /package/dist/chunks/{plugin-q3sfg36h.js → app-q3sfg36h.js} +0 -0
  891. /package/dist/chunks/{plugin-q74kybfr.js → app-q74kybfr.js} +0 -0
  892. /package/dist/chunks/{plugin-qaymkmh1.js → app-qaymkmh1.js} +0 -0
  893. /package/dist/chunks/{plugin-qb87gjwd.js → app-qb87gjwd.js} +0 -0
  894. /package/dist/chunks/{plugin-qfa1cgps.js → app-qfa1cgps.js} +0 -0
  895. /package/dist/chunks/{plugin-qg3g05ea.js → app-qg3g05ea.js} +0 -0
  896. /package/dist/chunks/{plugin-qrg20bc0.js → app-qrg20bc0.js} +0 -0
  897. /package/dist/chunks/{plugin-rcb2kzg1.js → app-rcb2kzg1.js} +0 -0
  898. /package/dist/chunks/{plugin-sdp7kfr6.js → app-sdp7kfr6.js} +0 -0
  899. /package/dist/chunks/{plugin-ssg3fenm.js → app-ssg3fenm.js} +0 -0
  900. /package/dist/chunks/{plugin-syrav9an.js → app-syrav9an.js} +0 -0
  901. /package/dist/chunks/{plugin-t03h4f5z.js → app-t03h4f5z.js} +0 -0
  902. /package/dist/chunks/{plugin-ty7weeps.js → app-ty7weeps.js} +0 -0
  903. /package/dist/chunks/{plugin-ve7vex1e.js → app-ve7vex1e.js} +0 -0
  904. /package/dist/chunks/{plugin-vtarvj67.js → app-vtarvj67.js} +0 -0
  905. /package/dist/chunks/{plugin-w803qqfp.js → app-w803qqfp.js} +0 -0
  906. /package/dist/chunks/{plugin-wc3fc9cn.js → app-wc3fc9cn.js} +0 -0
  907. /package/dist/chunks/{plugin-wer8tq1h.js → app-wer8tq1h.js} +0 -0
  908. /package/dist/chunks/{plugin-wtztk69x.js → app-wtztk69x.js} +0 -0
  909. /package/dist/chunks/{plugin-x0ckcb58.js → app-x0ckcb58.js} +0 -0
  910. /package/dist/chunks/{plugin-x61499pn.js → app-x61499pn.js} +0 -0
  911. /package/dist/chunks/{plugin-y44na4kk.js → app-y44na4kk.js} +0 -0
  912. /package/dist/chunks/{plugin-y8f7s663.js → app-y8f7s663.js} +0 -0
  913. /package/dist/chunks/{plugin-ygaqb7jw.js → app-ygaqb7jw.js} +0 -0
  914. /package/dist/chunks/{plugin-z5v4ffb3.js → app-z5v4ffb3.js} +0 -0
  915. /package/dist/chunks/{plugin-z9919s4g.js → app-z9919s4g.js} +0 -0
@@ -1,18 +1,18 @@
1
1
  import {
2
2
  AbsolutePath2
3
- } from "./plugin-z5v4ffb3.js";
3
+ } from "./app-z5v4ffb3.js";
4
4
  import {
5
5
  Service90,
6
6
  node93
7
- } from "./plugin-1n3sgxej.js";
7
+ } from "./app-n4k1ey5b.js";
8
8
  import {
9
9
  Service89,
10
10
  node92
11
- } from "./plugin-bzv7p55q.js";
11
+ } from "./app-82fxv0dw.js";
12
12
  import {
13
13
  Service88,
14
14
  node91
15
- } from "./plugin-24yxk1vj.js";
15
+ } from "./app-wyzscbnm.js";
16
16
  import {
17
17
  ID22,
18
18
  Current3,
@@ -20,20 +20,20 @@ import {
20
20
  UpdateInput5,
21
21
  Event21,
22
22
  Vcs3
23
- } from "./plugin-963hk181.js";
23
+ } from "./app-kp2338hr.js";
24
24
  import {
25
25
  ProjectTable2,
26
26
  upsertProject2
27
- } from "./plugin-034tev2y.js";
27
+ } from "./app-aj7mw0zk.js";
28
28
  import {
29
29
  refresh2
30
- } from "./plugin-8sxe6kv8.js";
30
+ } from "./app-7qrph824.js";
31
31
  import {
32
32
  WorktreeTable2
33
- } from "./plugin-ayjs7tqn.js";
33
+ } from "./app-3cbjf1nt.js";
34
34
  import {
35
35
  __export
36
- } from "./plugin-9rqn6x4v.js";
36
+ } from "./app-9rqn6x4v.js";
37
37
 
38
38
  // src/project.ts
39
39
  var exports_project = {};
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  __export
3
- } from "./plugin-9rqn6x4v.js";
3
+ } from "./app-9rqn6x4v.js";
4
4
 
5
5
  // src/session/run-coordinator.ts
6
6
  var exports_run_coordinator = {};
@@ -1,80 +1,70 @@
1
1
  import {
2
2
  makeUnsafe2
3
- } from "./plugin-4d2dtj2f.js";
3
+ } from "./app-8cg7mtm3.js";
4
4
  import {
5
5
  Service89,
6
6
  node92
7
- } from "./plugin-bzv7p55q.js";
7
+ } from "./app-82fxv0dw.js";
8
8
  import {
9
- Event19,
9
+ Event20,
10
10
  Service84,
11
11
  node87
12
- } from "./plugin-xk248cya.js";
12
+ } from "./app-k8bdr0d0.js";
13
13
  import {
14
14
  Service86,
15
15
  node89
16
- } from "./plugin-0ysbbc3a.js";
16
+ } from "./app-k483zyxw.js";
17
17
  import {
18
- Service59,
19
- node61
20
- } from "./plugin-maw2k4sy.js";
18
+ Service62,
19
+ node63
20
+ } from "./app-9hqxgecf.js";
21
21
  import {
22
- ID20,
23
- Service85,
24
- node88
25
- } from "./plugin-wgh8jmkg.js";
22
+ ID19,
23
+ Service83,
24
+ node86
25
+ } from "./app-x2kh5z67.js";
26
26
  import {
27
27
  reconcile2,
28
28
  create4
29
- } from "./plugin-40y6dtc2.js";
29
+ } from "./app-40y6dtc2.js";
30
30
  import {
31
31
  ID18,
32
32
  MethodID2,
33
- Service83,
34
- node86
35
- } from "./plugin-ehrst6qt.js";
33
+ Service82,
34
+ node85
35
+ } from "./app-gwz0wrrb.js";
36
+ import {
37
+ make23
38
+ } from "./app-9kkkhnvp.js";
36
39
  import {
37
40
  __export
38
- } from "./plugin-9rqn6x4v.js";
41
+ } from "./app-9rqn6x4v.js";
39
42
 
40
43
  // src/mcp/index.ts
41
44
  var exports_mcp4 = {};
42
45
  __export(exports_mcp4, {
43
46
  Mcp: () => exports_mcp4,
44
47
  NotFoundError: () => NotFoundError5,
45
- Options: () => Options2,
48
+ Options: () => Options3,
46
49
  PromptsChanged: () => PromptsChanged2,
47
50
  Resource: () => Resource2,
48
51
  ResourceCatalog: () => ResourceCatalog2,
49
52
  ResourceContent: () => ResourceContent2,
50
53
  ResourceTemplate: () => ResourceTemplate2,
51
54
  ServerName: () => ServerName2,
52
- Service: () => Service37,
55
+ Service: () => Service33,
53
56
  Status: () => Status3,
54
57
  ToolCallError: () => ToolCallError2,
55
- configured: () => configured2,
56
- layer: () => layer13,
57
- node: () => node40
58
+ configured: () => configured3,
59
+ layer: () => layer15,
60
+ node: () => node37
58
61
  });
59
62
  import { Mcp } from "@opencode/schema/mcp";
60
63
  import { McpEvent } from "@opencode/schema/mcp-event";
61
64
  import { ephemeral } from "@opencode/schema/event";
62
65
  import { createHash } from "node:crypto";
63
66
  import { isDeepStrictEqual } from "node:util";
64
- import {
65
- Cause,
66
- Clock,
67
- Context,
68
- Effect,
69
- Exit,
70
- FiberSet,
71
- Latch,
72
- Layer,
73
- Schema,
74
- Scope,
75
- Semaphore,
76
- Stream
77
- } from "effect";
67
+ import { Clock, Context, Effect, Exit, FiberSet, Latch, Layer, Schema, Scope, Semaphore, Stream } from "effect";
78
68
  import { makeLocationNode } from "@opencode/util/effect/app-node";
79
69
  import { waitForAbort } from "@opencode/util/process";
80
70
  var ServerName2 = Schema.String.pipe(Schema.brand("MCP.ServerName"));
@@ -118,20 +108,20 @@ var URL_ELICITATION_FIELD_KEY = "elicitation";
118
108
  var endpointLoads = makeUnsafe2();
119
109
  var cloneConfig = (config) => structuredClone(config);
120
110
 
121
- class Service37 extends Context.Service()("@opencode/MCP") {
111
+ class Service33 extends Context.Service()("@opencode/MCP") {
122
112
  }
123
- var Options2 = Schema.Struct({
113
+ var Options3 = Schema.Struct({
124
114
  clientInfo: Schema.optional(Schema.Struct({
125
115
  name: Schema.String,
126
116
  version: Schema.String
127
117
  }))
128
118
  });
129
- var layer13 = (options) => Layer.effect(Service37, Effect.gen(function* () {
119
+ var layer15 = (options) => Layer.effect(Service33, Effect.gen(function* () {
130
120
  const location = yield* Service86;
131
- const environment = yield* Service59;
121
+ const environment = yield* Service62;
132
122
  const bus = yield* Service89;
133
- const forms = yield* Service85;
134
- const integration = yield* Service83;
123
+ const forms = yield* Service83;
124
+ const integration = yield* Service82;
135
125
  const credentials = yield* Service84;
136
126
  const root = yield* Effect.scope;
137
127
  const fork = yield* FiberSet.makeRuntime();
@@ -184,7 +174,7 @@ var layer13 = (options) => Layer.effect(Service37, Effect.gen(function* () {
184
174
  const elicitation = {
185
175
  create: (input) => Effect.gen(function* () {
186
176
  if (input.params.mode === "url") {
187
- const formID = ID20.create();
177
+ const formID = ID19.create();
188
178
  const elicitationID = input.params.elicitationId;
189
179
  const key = elicitationID === undefined ? undefined : input.server + "\x00" + elicitationID;
190
180
  if (key)
@@ -229,30 +219,83 @@ var layer13 = (options) => Layer.effect(Service37, Effect.gen(function* () {
229
219
  yield* forms.reply({ id: formID, answer: { [URL_ELICITATION_FIELD_KEY]: true } }).pipe(Effect.ignore);
230
220
  })
231
221
  };
232
- const toTool = (server, entry, tool) => ({
233
- ...tool,
234
- server,
235
- ...entry.config.codemode === undefined ? {} : { codemode: entry.config.codemode }
236
- });
237
- const refreshTools = (name, entry, connection) => connection.tools().pipe(Effect.map((tools) => {
238
- entry.tools = tools.map((tool) => toTool(name, entry, tool));
239
- }));
240
- const refreshPrompts = (name, entry, connection) => connection.prompts().pipe(Effect.orElseSucceed(() => []), Effect.map((prompts) => {
241
- entry.prompts = prompts.map((prompt) => ({ ...prompt, server: name }));
242
- }), Effect.andThen(bus.publish(PromptsChanged2, { server: name })));
243
- const whenLive = (name, entry, connection) => (effect) => callbacks(Effect.suspend(() => entry.client === connection ? effect : Effect.void).pipe(locks.withLock(name), Effect.ignore));
244
- const recover = (name, entry, connection) => Effect.gen(function* () {
245
- if (entry.client !== connection)
246
- return;
247
- yield* Effect.logInfo("mcp session expired, reconnecting", { server: name });
248
- yield* stopServer(name, entry);
249
- yield* startServer(name, entry);
250
- }).pipe(locks.withLock(name));
251
- const recovering = (name, entry, connection, run) => run(connection).pipe(Effect.catchIf((error) => ("_tag" in error) && error._tag === "MCP.SessionExpiredError", (error) => recover(name, entry, connection).pipe(Effect.flatMap(() => entry.client ? run(entry.client) : Effect.fail(error)))));
252
- const loadCatalog = (name, entry, connection) => recovering(name, entry, connection, (connection) => Effect.all({
253
- resources: connection.resources(),
254
- templates: connection.resourceTemplates().pipe(Effect.orElseSucceed(() => []))
255
- }, { concurrency: "unbounded" })).pipe(Effect.map((catalog) => ResourceCatalog2.make({
222
+ const makeEntry = (name, config, started) => {
223
+ const entry = {
224
+ config,
225
+ status: { status: "pending" },
226
+ startup: Latch.makeUnsafe(),
227
+ attempt: { started, settled: Latch.makeUnsafe() },
228
+ connection: make23({
229
+ name,
230
+ config,
231
+ directory: location.directory,
232
+ clientInfo: options?.clientInfo,
233
+ authProvider: Effect.suspend(() => connectProvider(entry)),
234
+ elicitation,
235
+ environment,
236
+ scope: servers,
237
+ lock: locks.withLock(name),
238
+ handshake: (effect) => config.type === "remote" ? endpointLoads.withLock(config.url)(effect) : effect,
239
+ callbacks,
240
+ fork,
241
+ events: {
242
+ connecting: Effect.gen(function* () {
243
+ if (!entry.attempt || entry.status.status !== "pending")
244
+ entry.attempt = { started: yield* Clock.currentTimeMillis, settled: Latch.makeUnsafe() };
245
+ entry.status = { status: "pending" };
246
+ yield* bus.publish(McpEvent.StatusChanged, { server: name });
247
+ }),
248
+ connected: Effect.gen(function* () {
249
+ entry.status = { status: "connected" };
250
+ yield* Effect.logInfo("mcp connected", { server: name, tools: entry.connection.tools?.length });
251
+ yield* bus.publish(McpEvent.ToolsChanged, { server: name });
252
+ yield* bus.publish(McpEvent.ResourcesChanged, { server: name });
253
+ yield* bus.publish(McpEvent.StatusChanged, { server: name });
254
+ }),
255
+ failed: (failure) => Effect.gen(function* () {
256
+ entry.status = failure;
257
+ yield* Effect.logWarning("mcp connect failed", { server: name, status: entry.status });
258
+ yield* bus.publish(McpEvent.StatusChanged, { server: name });
259
+ }),
260
+ settled: Effect.suspend(() => {
261
+ const attempt = entry.attempt;
262
+ entry.attempt = undefined;
263
+ return (attempt ? attempt.settled.open : Effect.void).pipe(Effect.ensuring(entry.startup.open));
264
+ }),
265
+ stopped: Effect.gen(function* () {
266
+ yield* bus.publish(McpEvent.ToolsChanged, { server: name });
267
+ yield* bus.publish(McpEvent.ResourcesChanged, { server: name });
268
+ yield* bus.publish(PromptsChanged2, { server: name });
269
+ }),
270
+ closed: (reason) => Effect.gen(function* () {
271
+ entry.status = { status: "failed", error: reason };
272
+ yield* entry.connection.stop;
273
+ yield* bus.publish(McpEvent.StatusChanged, { server: name });
274
+ }),
275
+ toolsChanged: Effect.suspend(() => bus.publish(McpEvent.ToolsChanged, { server: name })),
276
+ promptsChanged: Effect.suspend(() => bus.publish(PromptsChanged2, { server: name })),
277
+ resourcesChanged: Effect.suspend(() => bus.publish(McpEvent.ResourcesChanged, { server: name }))
278
+ }
279
+ })
280
+ };
281
+ return entry;
282
+ };
283
+ const serverTools = (name, entry) => {
284
+ const source = entry.connection.tools;
285
+ if (!source)
286
+ return [];
287
+ if (entry.tagged?.source !== source)
288
+ entry.tagged = {
289
+ source,
290
+ tools: source.map((tool) => ({
291
+ ...tool,
292
+ server: name,
293
+ ...entry.config.codemode === undefined ? {} : { codemode: entry.config.codemode }
294
+ }))
295
+ };
296
+ return entry.tagged.tools;
297
+ };
298
+ const toCatalog = (name, catalog) => ResourceCatalog2.make({
256
299
  resources: catalog.resources.map((resource) => Resource2.make({
257
300
  server: name,
258
301
  name: resource.name,
@@ -267,69 +310,9 @@ var layer13 = (options) => Layer.effect(Service37, Effect.gen(function* () {
267
310
  description: template.description,
268
311
  mimeType: template.mimeType
269
312
  }))
270
- })));
271
- const watch = (name, entry, connection) => {
272
- const live = whenLive(name, entry, connection);
273
- connection.onClose((reason) => live(Effect.gen(function* () {
274
- entry.status = { status: "failed", error: reason };
275
- yield* stopServer(name, entry);
276
- yield* bus.publish(McpEvent.StatusChanged, { server: name });
277
- })));
278
- connection.onSessionExpired(() => fork(recover(name, entry, connection)));
279
- connection.onToolsChanged(() => live(refreshTools(name, entry, connection).pipe(Effect.andThen(bus.publish(McpEvent.ToolsChanged, { server: name })))));
280
- connection.onPromptsChanged(() => live(refreshPrompts(name, entry, connection)));
281
- connection.onResourcesChanged(() => live(bus.publish(McpEvent.ResourcesChanged, { server: name })));
282
- };
283
- const startServer = (name, entry) => Effect.gen(function* () {
284
- if (!entry.attempt || entry.status.status !== "pending")
285
- entry.attempt = { started: yield* Clock.currentTimeMillis, settled: Latch.makeUnsafe() };
286
- entry.status = { status: "pending" };
287
- yield* bus.publish(McpEvent.StatusChanged, { server: name });
288
- const scope = yield* Scope.fork(servers);
289
- entry.scope = scope;
290
- const authProvider = yield* connectProvider(entry);
291
- const { McpClient } = yield* Effect.promise(() => import("../mcp/client.js"));
292
- const load = McpClient.connect(name, entry.config, location.directory, authProvider, elicitation, options?.clientInfo).pipe(Effect.flatMap((connection) => connection.tools().pipe(Effect.map((tools) => ({ connection, tools })))), Effect.provideService(Service59, environment), Scope.provide(scope));
293
- const result = yield* (entry.config.type === "remote" ? endpointLoads.withLock(entry.config.url)(load) : load).pipe(Effect.exit);
294
- if (Exit.isSuccess(result)) {
295
- entry.client = result.value.connection;
296
- entry.tools = result.value.tools.map((tool) => toTool(name, entry, tool));
297
- entry.prompts = [];
298
- entry.status = { status: "connected" };
299
- watch(name, entry, result.value.connection);
300
- yield* Effect.logInfo("mcp connected", { server: name, tools: entry.tools.length });
301
- yield* bus.publish(McpEvent.ToolsChanged, { server: name });
302
- yield* bus.publish(McpEvent.ResourcesChanged, { server: name });
303
- yield* bus.publish(McpEvent.StatusChanged, { server: name });
304
- whenLive(name, entry, result.value.connection)(refreshPrompts(name, entry, result.value.connection));
305
- return;
306
- }
307
- yield* Scope.close(scope, Exit.void);
308
- entry.scope = undefined;
309
- const error = Cause.squash(result.cause);
310
- entry.status = error instanceof McpClient.NeedsAuthError ? { status: "needs_auth", error: error.message } : { status: "failed", error: error instanceof Error ? error.message : String(error) };
311
- yield* Effect.logWarning("mcp connect failed", { server: name, status: entry.status });
312
- yield* bus.publish(McpEvent.StatusChanged, { server: name });
313
- }).pipe(Effect.ensuring(Effect.suspend(() => {
314
- const attempt = entry.attempt;
315
- entry.attempt = undefined;
316
- return attempt ? attempt.settled.open : Effect.void;
317
- })), Effect.ensuring(entry.startup.open), Effect.annotateLogs({ server: name, directory: location.directory, connectionID: crypto.randomUUID() }));
318
- const stopServer = Effect.fnUntraced(function* (name, entry) {
319
- const scope = entry.scope;
320
- if (!scope)
321
- return;
322
- entry.scope = undefined;
323
- entry.client = undefined;
324
- entry.tools = undefined;
325
- entry.prompts = undefined;
326
- yield* Scope.close(scope, Exit.void);
327
- yield* bus.publish(McpEvent.ToolsChanged, { server: name });
328
- yield* bus.publish(McpEvent.ResourcesChanged, { server: name });
329
- yield* bus.publish(PromptsChanged2, { server: name });
330
313
  });
331
314
  const disposeServer = Effect.fnUntraced(function* (name, entry) {
332
- yield* stopServer(name, entry);
315
+ yield* entry.connection.stop;
333
316
  if (entry.integrationID)
334
317
  owned.delete(entry.integrationID);
335
318
  if (entry.registration)
@@ -339,12 +322,7 @@ var layer13 = (options) => Layer.effect(Service37, Effect.gen(function* () {
339
322
  const previous = entries.get(name);
340
323
  if (previous)
341
324
  yield* disposeServer(name, previous);
342
- const entry = {
343
- config: serverConfig,
344
- status: { status: "pending" },
345
- startup: Latch.makeUnsafe(),
346
- attempt: { started: yield* Clock.currentTimeMillis, settled: Latch.makeUnsafe() }
347
- };
325
+ const entry = makeEntry(name, serverConfig, yield* Clock.currentTimeMillis);
348
326
  entries.set(name, entry);
349
327
  yield* Effect.gen(function* () {
350
328
  yield* register(name, entry);
@@ -353,7 +331,7 @@ var layer13 = (options) => Layer.effect(Service37, Effect.gen(function* () {
353
331
  yield* bus.publish(McpEvent.StatusChanged, { server: name });
354
332
  return;
355
333
  }
356
- yield* startServer(name, entry);
334
+ yield* entry.connection.start;
357
335
  }).pipe(Effect.ensuring(entry.startup.open));
358
336
  });
359
337
  const removeServer = Effect.fnUntraced(function* (name) {
@@ -395,7 +373,7 @@ var layer13 = (options) => Layer.effect(Service37, Effect.gen(function* () {
395
373
  let closed = false;
396
374
  const result = yield* McpClient.connect(name, { type: "attached", transport }, location.directory, undefined, elicitation, options?.clientInfo).pipe(Effect.tap((connection) => Effect.sync(() => connection.onClose(() => {
397
375
  closed = true;
398
- }))), Effect.flatMap((connection) => connection.tools().pipe(Effect.map((tools) => ({ connection, tools })))), Effect.provideService(Service59, environment), Scope.provide(scope), Effect.onError(() => Scope.close(scope, Exit.void)), Effect.mapError((error) => error instanceof McpClient.ConnectError ? error : new McpClient.ConnectError({ server: name, message: error.message })));
376
+ }))), Effect.flatMap((connection) => connection.tools().pipe(Effect.map((tools) => ({ connection, tools })))), Effect.provideService(Service62, environment), Scope.provide(scope), Effect.onError(() => Scope.close(scope, Exit.void)), Effect.mapError((error) => error instanceof McpClient.ConnectError ? error : new McpClient.ConnectError({ server: name, message: error.message })));
399
377
  const register = Effect.gen(function* () {
400
378
  if (closed) {
401
379
  yield* Scope.close(scope, Exit.void);
@@ -423,12 +401,7 @@ var layer13 = (options) => Layer.effect(Service37, Effect.gen(function* () {
423
401
  if (!applied && entries.size === 0) {
424
402
  const started = yield* Clock.currentTimeMillis;
425
403
  for (const [name, server] of servers) {
426
- entries.set(name, {
427
- config: server,
428
- status: { status: "pending" },
429
- startup: Latch.makeUnsafe(),
430
- attempt: { started, settled: Latch.makeUnsafe() }
431
- });
404
+ entries.set(name, makeEntry(name, server, started));
432
405
  }
433
406
  yield* Effect.forEach(entries, ([name, entry]) => register(name, entry), { discard: true });
434
407
  applied = servers;
@@ -442,7 +415,7 @@ var layer13 = (options) => Layer.effect(Service37, Effect.gen(function* () {
442
415
  fork(Effect.gen(function* () {
443
416
  if (entry.status.status !== "pending")
444
417
  return yield* entry.startup.open;
445
- yield* startServer(name, entry);
418
+ yield* entry.connection.start;
446
419
  }).pipe(locks.withLock(name)));
447
420
  }
448
421
  return;
@@ -472,11 +445,11 @@ var layer13 = (options) => Layer.effect(Service37, Effect.gen(function* () {
472
445
  return;
473
446
  if (entry.status.status === "disabled")
474
447
  return;
475
- yield* stopServer(name, entry);
476
- yield* startServer(name, entry);
448
+ yield* entry.connection.stop;
449
+ yield* entry.connection.start;
477
450
  }).pipe(locks.withLock(name));
478
451
  });
479
- fork(bus.subscribe(Event19.Switched).pipe(Stream.filter((event) => owned.has(event.data.integrationID)), Stream.runForEach((event) => Effect.sync(() => fork(reconnect(event.data.integrationID))))));
452
+ fork(bus.subscribe(Event20.Switched).pipe(Stream.filter((event) => owned.has(event.data.integrationID)), Stream.runForEach((event) => Effect.sync(() => fork(reconnect(event.data.integrationID))))));
480
453
  const state = create4({
481
454
  name: "mcp",
482
455
  initial: () => ({
@@ -502,14 +475,14 @@ var layer13 = (options) => Layer.effect(Service37, Effect.gen(function* () {
502
475
  }),
503
476
  notify: () => reconcile2(root, fork, () => reconcileLock.withPermit(reconcile()))
504
477
  });
505
- return Service37.of({
478
+ return Service33.of({
506
479
  transform: state.transform,
507
480
  reload: state.reload,
508
481
  servers: Effect.fn("MCP.servers")(function* () {
509
482
  return Array.from(entries).toSorted(([a], [b]) => a.localeCompare(b)).map(([name, entry]) => ({
510
483
  name,
511
484
  status: entry.status,
512
- title: entry.client?.title,
485
+ title: entry.connection.client?.title,
513
486
  integrationID: entry.integrationID
514
487
  }));
515
488
  }),
@@ -522,15 +495,15 @@ var layer13 = (options) => Layer.effect(Service37, Effect.gen(function* () {
522
495
  const name = ServerName2.make(server);
523
496
  yield* Effect.gen(function* () {
524
497
  const target = yield* requireServer(name);
525
- yield* stopServer(name, target.entry);
526
- yield* startServer(name, target.entry);
498
+ yield* target.entry.connection.stop;
499
+ yield* target.entry.connection.start;
527
500
  }).pipe(locks.withLock(name));
528
501
  }),
529
502
  disconnect: Effect.fn("MCP.disconnect")(function* (server) {
530
503
  const name = ServerName2.make(server);
531
504
  yield* Effect.gen(function* () {
532
505
  const target = yield* requireServer(name);
533
- yield* stopServer(name, target.entry);
506
+ yield* target.entry.connection.stop;
534
507
  target.entry.status = { status: "disabled" };
535
508
  yield* bus.publish(McpEvent.StatusChanged, { server: name });
536
509
  }).pipe(locks.withLock(name));
@@ -548,7 +521,7 @@ var layer13 = (options) => Layer.effect(Service37, Effect.gen(function* () {
548
521
  const clients = Array.from(attached.values()).flatMap((stack) => stack.at(-1)?.tools ?? []);
549
522
  const shadowed = new Set(clients.map((tool) => `${tool.server}\x00${tool.name}`));
550
523
  return [
551
- ...Array.from(entries.values()).flatMap((entry) => entry.tools ?? []).filter((tool) => !shadowed.has(`${tool.server}\x00${tool.name}`)),
524
+ ...Array.from(entries).flatMap(([name, entry]) => serverTools(name, entry)).filter((tool) => !shadowed.has(`${tool.server}\x00${tool.name}`)),
552
525
  ...clients
553
526
  ].toSorted((a, b) => a.server.localeCompare(b.server) || a.name.localeCompare(b.name));
554
527
  }),
@@ -574,13 +547,14 @@ var layer13 = (options) => Layer.effect(Service37, Effect.gen(function* () {
574
547
  }
575
548
  const target = yield* requireServer(server);
576
549
  yield* target.entry.startup.await;
577
- if (!target.entry.client)
550
+ const connected = target.entry.connection.client;
551
+ if (!connected)
578
552
  return yield* new ToolCallError2({
579
553
  server: target.name,
580
554
  tool: input.name,
581
555
  message: unavailable(target.name, target.entry.status)
582
556
  });
583
- const result = yield* recovering(target.name, target.entry, target.entry.client, (connection) => connection.callTool({ name: input.name, args: input.args, sessionID: input.sessionID })).pipe(Effect.mapError((error) => new ToolCallError2({
557
+ const result = yield* target.entry.connection.recovering(connected, (connection) => connection.callTool({ name: input.name, args: input.args, sessionID: input.sessionID })).pipe(Effect.mapError((error) => new ToolCallError2({
584
558
  server: target.name,
585
559
  tool: input.name,
586
560
  message: `MCP tool "${input.name}" on server "${target.name}" failed: ${error.message}`
@@ -589,21 +563,22 @@ var layer13 = (options) => Layer.effect(Service37, Effect.gen(function* () {
589
563
  }),
590
564
  instructions: Effect.fn("MCP.instructions")(function* () {
591
565
  return Array.from(entries).flatMap(([server, entry]) => {
592
- const instructions = entry.client?.instructions;
566
+ const instructions = entry.connection.client?.instructions;
593
567
  if (!instructions)
594
568
  return [];
595
569
  return [{ server, instructions }];
596
570
  }).toSorted((a, b) => a.server.localeCompare(b.server));
597
571
  }),
598
572
  prompts: Effect.fn("MCP.prompts")(function* () {
599
- return Array.from(entries.values()).flatMap((entry) => entry.prompts ?? []).toSorted((a, b) => a.server.localeCompare(b.server) || a.name.localeCompare(b.name));
573
+ return Array.from(entries).flatMap(([server, entry]) => (entry.connection.prompts ?? []).map((prompt) => ({ ...prompt, server }))).toSorted((a, b) => a.server.localeCompare(b.server) || a.name.localeCompare(b.name));
600
574
  }),
601
575
  prompt: Effect.fn("MCP.prompt")(function* (input) {
602
576
  const target = yield* requireServer(ServerName2.make(input.server));
603
577
  yield* target.entry.startup.await;
604
- if (!target.entry.client)
578
+ const client = target.entry.connection.client;
579
+ if (!client)
605
580
  return;
606
- const result = yield* recovering(target.name, target.entry, target.entry.client, (connection) => connection.prompt({ name: input.name, args: input.args })).pipe(Effect.orElseSucceed(() => {
581
+ const result = yield* target.entry.connection.recovering(client, (connection) => connection.prompt({ name: input.name, args: input.args })).pipe(Effect.orElseSucceed(() => {
607
582
  return;
608
583
  }));
609
584
  if (!result)
@@ -612,22 +587,24 @@ var layer13 = (options) => Layer.effect(Service37, Effect.gen(function* () {
612
587
  }),
613
588
  resourceCatalog: Effect.fn("MCP.resourceCatalog")(function* () {
614
589
  const empty = ResourceCatalog2.make({ resources: [], templates: [] });
615
- const catalogs = yield* Effect.forEach(Array.from(entries), ([name, entry]) => entry.client ? loadCatalog(name, entry, entry.client).pipe(Effect.orElseSucceed(() => empty)) : Effect.succeed(empty), { concurrency: "unbounded" });
590
+ const catalogs = yield* Effect.forEach(Array.from(entries), ([name, entry]) => entry.connection.client ? entry.connection.catalog(entry.connection.client).pipe(Effect.map((catalog) => toCatalog(name, catalog)), Effect.orElseSucceed(() => empty)) : Effect.succeed(empty), { concurrency: "unbounded" });
616
591
  return mergeCatalogs(catalogs);
617
592
  }),
618
593
  resources: Effect.fn("MCP.resources")(function* (input) {
619
594
  const target = yield* requireServer(ServerName2.make(input.server));
620
595
  yield* target.entry.startup.await;
621
- if (!target.entry.client)
596
+ const client = target.entry.connection.client;
597
+ if (!client)
622
598
  return ResourceCatalog2.make({ resources: [], templates: [] });
623
- return mergeCatalogs([yield* loadCatalog(target.name, target.entry, target.entry.client)]);
599
+ return mergeCatalogs([toCatalog(target.name, yield* target.entry.connection.catalog(client))]);
624
600
  }),
625
601
  readResource: Effect.fn("MCP.readResource")(function* (input) {
626
602
  const target = yield* requireServer(ServerName2.make(input.server));
627
603
  yield* target.entry.startup.await;
628
- if (!target.entry.client)
604
+ const client = target.entry.connection.client;
605
+ if (!client)
629
606
  return;
630
- const result = yield* recovering(target.name, target.entry, target.entry.client, (connection) => connection.readResource({ uri: input.uri }));
607
+ const result = yield* target.entry.connection.recovering(client, (connection) => connection.readResource({ uri: input.uri }));
631
608
  if (!result)
632
609
  return;
633
610
  return ResourceContent2.make({
@@ -644,14 +621,14 @@ function mergeCatalogs(catalogs) {
644
621
  templates: catalogs.flatMap((catalog) => catalog.templates).toSorted((a, b) => a.server.localeCompare(b.server) || a.name.localeCompare(b.name) || a.uriTemplate.localeCompare(b.uriTemplate))
645
622
  });
646
623
  }
647
- function configured2(options) {
624
+ function configured3(options) {
648
625
  return makeLocationNode({
649
- service: Service37,
650
- layer: layer13(options),
651
- deps: [node89, node61, node92, node88, node86, node87]
626
+ service: Service33,
627
+ layer: layer15(options),
628
+ deps: [node89, node63, node92, node86, node85, node87]
652
629
  });
653
630
  }
654
- var node40 = configured2();
631
+ var node37 = configured3();
655
632
  function toElicitationField(key, property, required) {
656
633
  const machineTitle = /^(boolean|string|number|integer|array|object)(\s+with\b.*|\s+in\b.*)?$/i;
657
634
  const title = property.title && !machineTitle.test(property.title.trim()) ? property.title : property.description ?? key;
@@ -702,4 +679,4 @@ function toElicitationField(key, property, required) {
702
679
  }
703
680
  }
704
681
 
705
- export { ServerName2, PromptsChanged2, Status3, Resource2, ResourceTemplate2, ResourceCatalog2, ResourceContent2, NotFoundError5, ToolCallError2, Service37, Options2, layer13, configured2, node40, exports_mcp4 };
682
+ export { ServerName2, PromptsChanged2, Status3, Resource2, ResourceTemplate2, ResourceCatalog2, ResourceContent2, NotFoundError5, ToolCallError2, Service33, Options3, layer15, configured3, node37, exports_mcp4 };
@@ -1,10 +1,10 @@
1
1
  import {
2
2
  Service87,
3
3
  node90
4
- } from "./plugin-ngp7bjdm.js";
4
+ } from "./app-jyntrgsj.js";
5
5
  import {
6
6
  __export
7
- } from "./plugin-9rqn6x4v.js";
7
+ } from "./app-9rqn6x4v.js";
8
8
 
9
9
  // src/location.ts
10
10
  var exports_location = {};