@opencode-ai/core 0.0.0-next-17317 → 0.0.0-next-17330

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 (719) hide show
  1. package/dist/account/sql.js +2 -2
  2. package/dist/agent.js +80 -80
  3. package/dist/aisdk-native.js +3 -3
  4. package/dist/aisdk.js +4 -4
  5. package/dist/app.js +2 -2
  6. package/dist/bus.js +78 -78
  7. package/dist/catalog.js +87 -87
  8. package/dist/chunks/{app-02dbfq60.js → repository-cache-02dbfq60.js} +1 -1
  9. package/dist/chunks/{app-04kwjb53.js → repository-cache-04kwjb53.js} +2 -2
  10. package/dist/chunks/{app-7emxxpdb.js → repository-cache-09mpk8cy.js} +2 -2
  11. package/dist/chunks/{app-0kvmztkf.js → repository-cache-0kvmztkf.js} +1 -1
  12. package/dist/chunks/{app-z9rpahmp.js → repository-cache-0xjr6h2t.js} +3 -3
  13. package/dist/chunks/{app-10xtr3be.js → repository-cache-10xtr3be.js} +2 -2
  14. package/dist/chunks/{app-2n9rqmbs.js → repository-cache-141wgazf.js} +2 -2
  15. package/dist/chunks/{app-18pv8fg3.js → repository-cache-18pv8fg3.js} +2 -2
  16. package/dist/chunks/{app-1c00jchy.js → repository-cache-1c00jchy.js} +2 -2
  17. package/dist/chunks/{app-1kvtxahz.js → repository-cache-1kvtxahz.js} +1 -1
  18. package/dist/chunks/{app-1xksxgzs.js → repository-cache-1xksxgzs.js} +2 -2
  19. package/dist/chunks/{app-trdaf16b.js → repository-cache-1yhzyp6p.js} +2 -2
  20. package/dist/chunks/{app-25pxtba7.js → repository-cache-25pxtba7.js} +1 -1
  21. package/dist/chunks/{app-6jwxj7fd.js → repository-cache-2mcxzbwe.js} +9 -9
  22. package/dist/chunks/{app-2nmyybe0.js → repository-cache-2nmyybe0.js} +1 -1
  23. package/dist/chunks/{app-5tcqctjx.js → repository-cache-2zsmgn20.js} +19 -19
  24. package/dist/chunks/{app-37rcj8p3.js → repository-cache-37rcj8p3.js} +3 -3
  25. package/dist/chunks/{app-fx310v2s.js → repository-cache-39f4fmnr.js} +6 -6
  26. package/dist/chunks/{app-r1vj02j7.js → repository-cache-3d6b8qzx.js} +11 -11
  27. package/dist/chunks/{app-3mfgaav1.js → repository-cache-3mfgaav1.js} +4 -4
  28. package/dist/chunks/{app-34gtgtfn.js → repository-cache-3nqnjq3t.js} +3 -3
  29. package/dist/chunks/{app-a24q2n56.js → repository-cache-3r8qjtea.js} +8 -8
  30. package/dist/chunks/{app-3thh6229.js → repository-cache-3thh6229.js} +2 -2
  31. package/dist/chunks/{app-3vh42rcr.js → repository-cache-3vh42rcr.js} +2 -2
  32. package/dist/chunks/{app-3w0f1yxt.js → repository-cache-3w0f1yxt.js} +3 -3
  33. package/dist/chunks/{app-0ph8kwa3.js → repository-cache-41daaf98.js} +4 -4
  34. package/dist/chunks/{app-n8an51ay.js → repository-cache-46j7pzg3.js} +3 -3
  35. package/dist/chunks/{app-jjh23j6h.js → repository-cache-4rr9fyye.js} +16 -16
  36. package/dist/chunks/{app-4s2xwh5d.js → repository-cache-4s2xwh5d.js} +3 -3
  37. package/dist/chunks/{app-bqbwc6q4.js → repository-cache-4tftbkea.js} +2 -2
  38. package/dist/chunks/{app-k6bbft4t.js → repository-cache-4tsark0b.js} +8 -8
  39. package/dist/chunks/{app-4zzdwbaz.js → repository-cache-4zzdwbaz.js} +2 -2
  40. package/dist/chunks/{app-a3kqxh9n.js → repository-cache-5092y56s.js} +3 -3
  41. package/dist/chunks/{app-50jxp3hw.js → repository-cache-50jxp3hw.js} +1 -1
  42. package/dist/chunks/{app-52jzav25.js → repository-cache-52jzav25.js} +1 -1
  43. package/dist/chunks/{app-56p2m126.js → repository-cache-56p2m126.js} +1 -1
  44. package/dist/chunks/{app-57tzwnz4.js → repository-cache-57tzwnz4.js} +1 -1
  45. package/dist/chunks/{app-tvczbcs8.js → repository-cache-59dc3gbv.js} +7 -7
  46. package/dist/chunks/{app-rqmqsmfp.js → repository-cache-5g3dnzmr.js} +5 -5
  47. package/dist/chunks/{app-5p2sx24b.js → repository-cache-5p2sx24b.js} +3 -3
  48. package/dist/chunks/{app-5pfeh60c.js → repository-cache-5pfeh60c.js} +2 -2
  49. package/dist/chunks/{app-5rs65q6p.js → repository-cache-5rs65q6p.js} +1 -1
  50. package/dist/chunks/{app-5sgbvx3z.js → repository-cache-5sgbvx3z.js} +2 -2
  51. package/dist/chunks/{app-5fvy871a.js → repository-cache-6628r0j2.js} +4 -4
  52. package/dist/chunks/{app-jsh3djw6.js → repository-cache-68a9fpyg.js} +112 -112
  53. package/dist/chunks/{app-tn7bcc13.js → repository-cache-6eh104vx.js} +6 -6
  54. package/dist/chunks/{app-9792gxzb.js → repository-cache-6gd6rkd0.js} +9 -9
  55. package/dist/chunks/{app-5349rtah.js → repository-cache-6j25n600.js} +9 -9
  56. package/dist/chunks/{app-r6h63zpd.js → repository-cache-6s5h6578.js} +4 -4
  57. package/dist/chunks/{app-6sc9h3ca.js → repository-cache-6sc9h3ca.js} +1 -1
  58. package/dist/chunks/{app-dqpmx9gf.js → repository-cache-6v6a829b.js} +9 -9
  59. package/dist/chunks/{app-jwc5yzxk.js → repository-cache-6w9ct4re.js} +10 -10
  60. package/dist/chunks/{app-706a4azd.js → repository-cache-706a4azd.js} +1 -1
  61. package/dist/chunks/{app-88bv1cm4.js → repository-cache-7crn5s7a.js} +10 -10
  62. package/dist/chunks/{app-cjh9716r.js → repository-cache-7f3tp52f.js} +4 -4
  63. package/dist/chunks/{app-pa35b7j9.js → repository-cache-7h2nn283.js} +3 -3
  64. package/dist/chunks/{app-7mpw7j43.js → repository-cache-7mpw7j43.js} +2 -2
  65. package/dist/chunks/{app-7mrpdsq5.js → repository-cache-7mrpdsq5.js} +1 -1
  66. package/dist/chunks/{app-7wcmqxrc.js → repository-cache-7wcmqxrc.js} +1 -1
  67. package/dist/chunks/{app-n6399r2z.js → repository-cache-84ht765f.js} +5 -5
  68. package/dist/chunks/{app-857g7h76.js → repository-cache-857g7h76.js} +1 -1
  69. package/dist/chunks/{app-88jbfw8z.js → repository-cache-88jbfw8z.js} +2 -2
  70. package/dist/chunks/{app-ajp3rkge.js → repository-cache-8mx9xa89.js} +3 -3
  71. package/dist/chunks/{app-bn5ne79h.js → repository-cache-8pa2gv04.js} +81 -81
  72. package/dist/chunks/{app-824bzxpq.js → repository-cache-8taya4xf.js} +4 -4
  73. package/dist/chunks/{app-kyqwgef4.js → repository-cache-8x99ehfs.js} +4 -4
  74. package/dist/chunks/{app-8ywqk2j9.js → repository-cache-8ywqk2j9.js} +1 -1
  75. package/dist/chunks/{app-tvagj5b1.js → repository-cache-91mm05x8.js} +7 -7
  76. package/dist/chunks/{app-4b723tdv.js → repository-cache-93hmgb4h.js} +5 -5
  77. package/dist/chunks/{app-93qdgxxd.js → repository-cache-93qdgxxd.js} +1 -1
  78. package/dist/chunks/{app-zks6f588.js → repository-cache-97z7an8c.js} +7 -7
  79. package/dist/chunks/{app-999qd968.js → repository-cache-999qd968.js} +1 -1
  80. package/dist/chunks/{app-9f0rnpkn.js → repository-cache-9f0rnpkn.js} +1 -1
  81. package/dist/chunks/{app-7899jtpg.js → repository-cache-9h2jrz7q.js} +30 -30
  82. package/dist/chunks/{app-9q1hedyj.js → repository-cache-9q1hedyj.js} +2 -2
  83. package/dist/chunks/{app-9r0qzhnf.js → repository-cache-9r0qzhnf.js} +2 -2
  84. package/dist/chunks/{app-p2br4b3n.js → repository-cache-9vq364qj.js} +2 -2
  85. package/dist/chunks/{app-m3hyy9g8.js → repository-cache-a2areeyk.js} +2 -2
  86. package/dist/chunks/{app-qw688rwx.js → repository-cache-a3xgesk5.js} +5 -5
  87. package/dist/chunks/{app-a65h300v.js → repository-cache-a65h300v.js} +2 -2
  88. package/dist/chunks/{app-0sbfjcmt.js → repository-cache-aamy9awe.js} +11 -11
  89. package/dist/chunks/{app-zwxmc3bd.js → repository-cache-arxcwz1c.js} +1 -1
  90. package/dist/chunks/{app-a9t6y3xq.js → repository-cache-axp5q191.js} +13 -13
  91. package/dist/chunks/{app-ayfwnm78.js → repository-cache-ayfwnm78.js} +2 -2
  92. package/dist/chunks/{app-41jac2rw.js → repository-cache-b5gcdv56.js} +6 -6
  93. package/dist/chunks/{app-gq675gkp.js → repository-cache-b98qfmjp.js} +5 -5
  94. package/dist/chunks/{app-fq764adj.js → repository-cache-b9y4597k.js} +12 -12
  95. package/dist/chunks/{app-3gdpxg9w.js → repository-cache-bmqesg5j.js} +3 -3
  96. package/dist/chunks/repository-cache-bwad94xr.js +116 -0
  97. package/dist/chunks/{app-byab506k.js → repository-cache-byab506k.js} +1 -1
  98. package/dist/chunks/{app-b9mh38wt.js → repository-cache-bza6gt6f.js} +6 -6
  99. package/dist/chunks/{app-cgvnqv92.js → repository-cache-cgvnqv92.js} +1 -1
  100. package/dist/chunks/{app-qqyxzanw.js → repository-cache-crvgmcnp.js} +16 -16
  101. package/dist/chunks/{app-cz3dkvcz.js → repository-cache-cz3dkvcz.js} +1 -1
  102. package/dist/chunks/{app-d076mabj.js → repository-cache-d076mabj.js} +2 -2
  103. package/dist/chunks/{app-ckssqp0a.js → repository-cache-d53cbyg4.js} +8 -8
  104. package/dist/chunks/{app-d6vvk673.js → repository-cache-d6vvk673.js} +1 -1
  105. package/dist/chunks/{app-ddn74qps.js → repository-cache-ddn74qps.js} +2 -2
  106. package/dist/chunks/{app-dhphtf1x.js → repository-cache-dhphtf1x.js} +1 -1
  107. package/dist/chunks/{app-821zwkre.js → repository-cache-dj1xs53g.js} +7 -7
  108. package/dist/chunks/{app-e1z9a0ts.js → repository-cache-e1z9a0ts.js} +2 -2
  109. package/dist/chunks/{app-njv6rpr7.js → repository-cache-e6n9jwna.js} +9 -9
  110. package/dist/chunks/{app-dqvrt3mh.js → repository-cache-e7eb7pyj.js} +9 -9
  111. package/dist/chunks/{app-z28gthdp.js → repository-cache-e7vptzzv.js} +3 -3
  112. package/dist/chunks/{app-ed4jjjcc.js → repository-cache-ed4jjjcc.js} +2 -2
  113. package/dist/chunks/{app-erj4j75s.js → repository-cache-erj4j75s.js} +1 -1
  114. package/dist/chunks/{app-eyk9wdct.js → repository-cache-eyk9wdct.js} +2 -2
  115. package/dist/chunks/{app-f05p34aa.js → repository-cache-f05p34aa.js} +3 -3
  116. package/dist/chunks/{app-0yvmerbg.js → repository-cache-f7w1jryk.js} +8 -8
  117. package/dist/chunks/{app-fm1nvm5g.js → repository-cache-fm1nvm5g.js} +1 -1
  118. package/dist/chunks/{app-08skwnb9.js → repository-cache-fmr624gh.js} +8 -8
  119. package/dist/chunks/{app-fmyre8m1.js → repository-cache-fmyre8m1.js} +1 -1
  120. package/dist/chunks/{app-7a1epvt6.js → repository-cache-fntptk10.js} +5 -5
  121. package/dist/chunks/{app-3qdtmdys.js → repository-cache-fvvca5k0.js} +6 -6
  122. package/dist/chunks/{app-mqm7ppv4.js → repository-cache-fww6ka0m.js} +5 -5
  123. package/dist/chunks/{app-mevft4d2.js → repository-cache-g3nw6fb0.js} +5 -5
  124. package/dist/chunks/{app-g9yygpzr.js → repository-cache-g9yygpzr.js} +1 -1
  125. package/dist/chunks/{app-gcay93cp.js → repository-cache-gcay93cp.js} +1 -1
  126. package/dist/chunks/{app-gd2xppx8.js → repository-cache-gd2xppx8.js} +1 -1
  127. package/dist/chunks/{app-a9bmtk5v.js → repository-cache-ghgrp5mb.js} +10 -10
  128. package/dist/chunks/{app-gm8kdh5e.js → repository-cache-gm8kdh5e.js} +2 -2
  129. package/dist/chunks/{app-66pzqqqb.js → repository-cache-gzjpz1dq.js} +9 -9
  130. package/dist/chunks/{app-cantjknx.js → repository-cache-h0vgpcjn.js} +5 -5
  131. package/dist/chunks/{app-heq95ef9.js → repository-cache-h6nag1tm.js} +5 -5
  132. package/dist/chunks/{app-h8ecejt5.js → repository-cache-h8ecejt5.js} +1 -1
  133. package/dist/chunks/{app-3pech87g.js → repository-cache-hrdhhck8.js} +13 -13
  134. package/dist/chunks/{app-rnxw5s75.js → repository-cache-hrzrfgqj.js} +4 -4
  135. package/dist/chunks/{app-n7rn4zj5.js → repository-cache-htg18tka.js} +8 -8
  136. package/dist/chunks/{app-t51rfpp7.js → repository-cache-j7rgkvgh.js} +4 -4
  137. package/dist/chunks/{app-8ssvbmmf.js → repository-cache-j83wek79.js} +10 -10
  138. package/dist/chunks/{app-3q0vncgj.js → repository-cache-j89v37ky.js} +5 -5
  139. package/dist/chunks/{app-5d8q6gnq.js → repository-cache-jd18fqwg.js} +3 -3
  140. package/dist/chunks/{app-wnn5g1xh.js → repository-cache-jf0y37v0.js} +4 -4
  141. package/dist/chunks/{app-cnb0pc1j.js → repository-cache-jkv81dxb.js} +5 -5
  142. package/dist/chunks/{app-d8bbt2d1.js → repository-cache-jqfzxg59.js} +52 -52
  143. package/dist/chunks/{app-jgbztvxz.js → repository-cache-jqksw8t0.js} +7 -7
  144. package/dist/chunks/{app-bha9y19b.js → repository-cache-jr4jm25g.js} +6 -6
  145. package/dist/chunks/{app-k80rxen0.js → repository-cache-js3e6gqf.js} +24 -24
  146. package/dist/chunks/{app-jssy2dr3.js → repository-cache-jssy2dr3.js} +2 -2
  147. package/dist/chunks/{app-me4dyqfd.js → repository-cache-k17wrc8y.js} +5 -5
  148. package/dist/chunks/{app-kg1345f7.js → repository-cache-kg1345f7.js} +1 -1
  149. package/dist/chunks/{app-zcyjs0t5.js → repository-cache-kzesxyth.js} +10 -10
  150. package/dist/chunks/{app-m01ryvbe.js → repository-cache-m01ryvbe.js} +1 -1
  151. package/dist/chunks/{app-m0j7p73q.js → repository-cache-m0j7p73q.js} +3 -3
  152. package/dist/chunks/{app-h4rc9vem.js → repository-cache-m2vcjsa4.js} +5 -5
  153. package/dist/chunks/{app-xmy80gxd.js → repository-cache-m9bnr5ec.js} +11 -11
  154. package/dist/chunks/{app-agn74pqn.js → repository-cache-maahekq3.js} +5 -5
  155. package/dist/chunks/{app-mf0hyk7z.js → repository-cache-mf0hyk7z.js} +1 -1
  156. package/dist/chunks/{app-j4a8y1v0.js → repository-cache-mg2pv17x.js} +32 -32
  157. package/dist/chunks/{app-9w6hy71j.js → repository-cache-msbeckph.js} +3 -3
  158. package/dist/chunks/{app-mwceq5am.js → repository-cache-mwceq5am.js} +1 -1
  159. package/dist/chunks/{app-p1adbydn.js → repository-cache-nc836e20.js} +7 -7
  160. package/dist/chunks/{app-nesb2rcz.js → repository-cache-nesb2rcz.js} +2 -2
  161. package/dist/chunks/{app-nr76rjj3.js → repository-cache-nr76rjj3.js} +2 -2
  162. package/dist/chunks/{app-yqnhcm69.js → repository-cache-ns5te58g.js} +28 -24
  163. package/dist/chunks/{app-nv7zjdpe.js → repository-cache-nv7zjdpe.js} +2 -2
  164. package/dist/chunks/{app-nzrjycs5.js → repository-cache-nzrjycs5.js} +1 -1
  165. package/dist/chunks/{app-c6k8g8k7.js → repository-cache-p7wazpn7.js} +4 -4
  166. package/dist/chunks/{app-pfqehjmy.js → repository-cache-pfqehjmy.js} +2 -2
  167. package/dist/chunks/{app-ph1me6ah.js → repository-cache-ph1me6ah.js} +2 -2
  168. package/dist/chunks/{app-s6mxj90h.js → repository-cache-pj2vbezm.js} +13 -13
  169. package/dist/chunks/{app-pq4b4pqk.js → repository-cache-pq4b4pqk.js} +2 -2
  170. package/dist/chunks/{app-f26x8jzg.js → repository-cache-pqxc0f1x.js} +9 -43
  171. package/dist/chunks/{app-prf9bavk.js → repository-cache-prf9bavk.js} +3 -3
  172. package/dist/chunks/{app-abghskf8.js → repository-cache-px6qz68e.js} +3 -3
  173. package/dist/chunks/{app-2r4vrveh.js → repository-cache-pxv8jsqw.js} +3 -3
  174. package/dist/chunks/{app-q4r4pzs4.js → repository-cache-q4r4pzs4.js} +1 -1
  175. package/dist/chunks/{app-d0s9tzcb.js → repository-cache-q85htfq3.js} +8 -2
  176. package/dist/chunks/{app-qe0d689s.js → repository-cache-qe0d689s.js} +2 -2
  177. package/dist/chunks/{app-5gbqv329.js → repository-cache-qnprthpg.js} +4 -4
  178. package/dist/chunks/{app-q8vzn7t4.js → repository-cache-qw2c2z0f.js} +9 -9
  179. package/dist/chunks/{app-r3k9abhd.js → repository-cache-r3k9abhd.js} +2 -2
  180. package/dist/chunks/{app-5jw8v224.js → repository-cache-rg4cb0n6.js} +82 -82
  181. package/dist/chunks/{app-qdkdga7m.js → repository-cache-rjqv38t2.js} +61 -61
  182. package/dist/chunks/{app-m0nzfze3.js → repository-cache-rk0gc5ce.js} +15 -15
  183. package/dist/chunks/{app-rmgfhn2t.js → repository-cache-rmgfhn2t.js} +2 -2
  184. package/dist/chunks/{app-rqswsgbs.js → repository-cache-rqswsgbs.js} +2 -2
  185. package/dist/chunks/{app-rt6yg6j2.js → repository-cache-rt6yg6j2.js} +2 -2
  186. package/dist/chunks/{app-ryap75b3.js → repository-cache-ryap75b3.js} +1 -1
  187. package/dist/chunks/{app-map3fv87.js → repository-cache-ryjby270.js} +3 -3
  188. package/dist/chunks/{app-rkn26eap.js → repository-cache-s3ykfgqh.js} +11 -11
  189. package/dist/chunks/{app-s6by3cc4.js → repository-cache-s6by3cc4.js} +3 -3
  190. package/dist/chunks/{app-s9f13v9h.js → repository-cache-s9f13v9h.js} +1 -1
  191. package/dist/chunks/{app-66jss2y3.js → repository-cache-saxcjhd3.js} +2 -2
  192. package/dist/chunks/{app-ps7cy9yh.js → repository-cache-sh51nj6w.js} +7 -5
  193. package/dist/chunks/{app-w1c5n80y.js → repository-cache-skt0q5rj.js} +6 -6
  194. package/dist/chunks/{app-smpeg8c9.js → repository-cache-smpeg8c9.js} +2 -2
  195. package/dist/chunks/{app-n5mwvj6g.js → repository-cache-sn0zfpmh.js} +12 -4
  196. package/dist/chunks/{app-qyt1de9h.js → repository-cache-sqaazc35.js} +4 -4
  197. package/dist/chunks/{app-wv9c4455.js → repository-cache-sqhwabev.js} +15 -10
  198. package/dist/chunks/{app-eekpctba.js → repository-cache-sw9600ps.js} +11 -11
  199. package/dist/chunks/{app-szax8zgv.js → repository-cache-szax8zgv.js} +2 -2
  200. package/dist/chunks/{app-szjq6xea.js → repository-cache-szjq6xea.js} +2 -2
  201. package/dist/chunks/{app-t2j2ttmx.js → repository-cache-t2j2ttmx.js} +1 -1
  202. package/dist/chunks/{app-tcn24h1d.js → repository-cache-tcn24h1d.js} +1 -1
  203. package/dist/chunks/{app-r3nzktek.js → repository-cache-tcv8hj6g.js} +25 -25
  204. package/dist/chunks/{app-tdm3rp2k.js → repository-cache-tdm3rp2k.js} +1 -1
  205. package/dist/chunks/{app-tenv3kfs.js → repository-cache-tenv3kfs.js} +2 -2
  206. package/dist/chunks/{app-thstd87d.js → repository-cache-thstd87d.js} +1 -1
  207. package/dist/chunks/{app-sy2h18bq.js → repository-cache-tjhdg0sw.js} +12 -9
  208. package/dist/chunks/{app-ts4t4v20.js → repository-cache-ts4t4v20.js} +2 -2
  209. package/dist/chunks/{app-tyh0a1hs.js → repository-cache-tyh0a1hs.js} +3 -3
  210. package/dist/chunks/{app-v972xay6.js → repository-cache-v972xay6.js} +1 -1
  211. package/dist/chunks/{app-v9bfv94f.js → repository-cache-v9bfv94f.js} +1 -1
  212. package/dist/chunks/{app-zyrxys6y.js → repository-cache-vs9h1fxe.js} +6 -6
  213. package/dist/chunks/{app-j2zbpr2j.js → repository-cache-vyex86r2.js} +10 -10
  214. package/dist/chunks/{app-vynn1k31.js → repository-cache-vynn1k31.js} +2 -2
  215. package/dist/chunks/{app-vz89hfgr.js → repository-cache-vz89hfgr.js} +1 -1
  216. package/dist/chunks/{app-tyssacrn.js → repository-cache-wa36z8r8.js} +3 -3
  217. package/dist/chunks/{app-wd268jeg.js → repository-cache-wd268jeg.js} +1 -1
  218. package/dist/chunks/{app-mz2jedcq.js → repository-cache-wddscexe.js} +5 -5
  219. package/dist/chunks/{app-we2zmhe4.js → repository-cache-we2zmhe4.js} +2 -2
  220. package/dist/chunks/{app-gfhy3xxc.js → repository-cache-we5s72km.js} +23 -23
  221. package/dist/chunks/{app-wf37p1a1.js → repository-cache-wf37p1a1.js} +1 -1
  222. package/dist/chunks/{app-y4sxnhrw.js → repository-cache-wgrssa02.js} +7 -7
  223. package/dist/chunks/{app-wmxdh12w.js → repository-cache-wmxdh12w.js} +1 -1
  224. package/dist/chunks/{app-53xf519q.js → repository-cache-wnjnzsav.js} +3 -3
  225. package/dist/chunks/{app-wps8gh8n.js → repository-cache-wps8gh8n.js} +2 -2
  226. package/dist/chunks/{app-wt193r4g.js → repository-cache-wt193r4g.js} +1 -1
  227. package/dist/chunks/{app-xfd1xnk3.js → repository-cache-xfd1xnk3.js} +2 -2
  228. package/dist/chunks/{app-xfrawapx.js → repository-cache-xfrawapx.js} +1 -1
  229. package/dist/chunks/{app-xgv25zxy.js → repository-cache-xgv25zxy.js} +1 -1
  230. package/dist/chunks/{app-j5g5m7ca.js → repository-cache-xjtqh72v.js} +2 -2
  231. package/dist/chunks/{app-fj3fqzqb.js → repository-cache-xq1vkeee.js} +5 -4
  232. package/dist/chunks/{app-xwftk1fd.js → repository-cache-xwftk1fd.js} +2 -2
  233. package/dist/chunks/{app-y0x38cee.js → repository-cache-y0x38cee.js} +1 -1
  234. package/dist/chunks/{app-h3qs1jxq.js → repository-cache-y1agc184.js} +7 -7
  235. package/dist/chunks/{app-dm7mk5x3.js → repository-cache-y56d2anz.js} +4 -4
  236. package/dist/chunks/{app-y67x6rf6.js → repository-cache-y67x6rf6.js} +1 -1
  237. package/dist/chunks/{app-y9gw0wvx.js → repository-cache-y8pkfyr3.js} +3 -3
  238. package/dist/chunks/{app-y8rs54ne.js → repository-cache-y8rs54ne.js} +1 -1
  239. package/dist/chunks/{app-7czsgg7v.js → repository-cache-yjc6jw6n.js} +30 -30
  240. package/dist/chunks/{app-0ap8dsrs.js → repository-cache-yk7rq2cw.js} +3 -3
  241. package/dist/chunks/{app-b0esv13c.js → repository-cache-ywp6nggw.js} +3 -3
  242. package/dist/chunks/{app-n4bfz6fb.js → repository-cache-yydpaacn.js} +17 -17
  243. package/dist/chunks/{app-yz0wm9s3.js → repository-cache-yz0wm9s3.js} +2 -2
  244. package/dist/chunks/{app-pa78n45x.js → repository-cache-z0pptypp.js} +10 -10
  245. package/dist/chunks/{app-kcwh27nh.js → repository-cache-z66vzcey.js} +5 -5
  246. package/dist/chunks/{app-zbqqnp0n.js → repository-cache-zbqqnp0n.js} +1 -1
  247. package/dist/chunks/{app-zdkg1k91.js → repository-cache-zdkg1k91.js} +1 -1
  248. package/dist/chunks/{app-zfxc0ze5.js → repository-cache-zfxc0ze5.js} +1 -1
  249. package/dist/chunks/{app-zsy6j3xa.js → repository-cache-zgqdzfbe.js} +2 -2
  250. package/dist/chunks/{app-rckwcqa1.js → repository-cache-zngq5vh0.js} +18 -18
  251. package/dist/chunks/{app-zthe9zqc.js → repository-cache-zthe9zqc.js} +1 -1
  252. package/dist/chunks/{app-zvvp2xr4.js → repository-cache-zvvp2xr4.js} +3 -3
  253. package/dist/chunks/{app-y1a9w4wq.js → repository-cache-zyetvhst.js} +2 -2
  254. package/dist/codemode/catalog.js +2 -2
  255. package/dist/codemode/instructions.js +4 -4
  256. package/dist/codemode/tool.js +3 -3
  257. package/dist/command.js +128 -119
  258. package/dist/config/markdown.js +2 -2
  259. package/dist/config/normalize.js +20 -20
  260. package/dist/config/plugin/agent.js +129 -129
  261. package/dist/config/plugin/command.js +130 -121
  262. package/dist/config/plugin/instruction.js +85 -85
  263. package/dist/config/plugin/policy.js +110 -110
  264. package/dist/config/plugin/provider.js +109 -109
  265. package/dist/config/plugin/reference.js +113 -113
  266. package/dist/config/plugin/skill-file.js +102 -102
  267. package/dist/config/plugin/skill.js +132 -132
  268. package/dist/config/plugin/source.js +109 -109
  269. package/dist/config/plugin/websearch.js +109 -109
  270. package/dist/config/variable.js +4 -4
  271. package/dist/config.js +108 -108
  272. package/dist/credential/sql.js +3 -3
  273. package/dist/credential.js +68 -68
  274. package/dist/database/database.js +67 -65
  275. package/dist/database/drizzle/effect-sqlite/driver.js +16 -16
  276. package/dist/database/drizzle/effect-sqlite/index.js +19 -17
  277. package/dist/database/drizzle/effect-sqlite/migrator.js +15 -15
  278. package/dist/database/drizzle/effect-sqlite/session.js +18 -16
  279. package/dist/database/drizzle/index.js +21 -19
  280. package/dist/database/drizzle/internal/drizzle-utils.js +2 -2
  281. package/dist/database/drizzle/sqlite-core/effect/count.js +2 -2
  282. package/dist/database/drizzle/sqlite-core/effect/db.js +10 -10
  283. package/dist/database/drizzle/sqlite-core/effect/delete.js +3 -3
  284. package/dist/database/drizzle/sqlite-core/effect/index.js +23 -23
  285. package/dist/database/drizzle/sqlite-core/effect/insert.js +3 -3
  286. package/dist/database/drizzle/sqlite-core/effect/query.js +2 -2
  287. package/dist/database/drizzle/sqlite-core/effect/raw.js +2 -2
  288. package/dist/database/drizzle/sqlite-core/effect/select.js +3 -3
  289. package/dist/database/drizzle/sqlite-core/effect/session.js +14 -14
  290. package/dist/database/drizzle/sqlite-core/effect/update.js +3 -3
  291. package/dist/database/drizzle/up-migrations/effect-sqlite.js +4 -4
  292. package/dist/database/drizzle/up-migrations/sqlite.js +3 -3
  293. package/dist/database/drizzle/up-migrations/utils.js +2 -2
  294. package/dist/database/drizzle.js +22 -20
  295. package/dist/database/migration/20260127222353_familiar_lady_ursula.js +2 -2
  296. package/dist/database/migration/20260211171708_add_project_commands.js +2 -2
  297. package/dist/database/migration/20260213144116_wakeful_the_professor.js +2 -2
  298. package/dist/database/migration/20260225215848_workspace.js +2 -2
  299. package/dist/database/migration/20260227213759_add_session_workspace_id.js +2 -2
  300. package/dist/database/migration/20260228203230_blue_harpoon.js +2 -2
  301. package/dist/database/migration/20260303231226_add_workspace_fields.js +2 -2
  302. package/dist/database/migration/20260309230000_move_org_to_state.js +2 -2
  303. package/dist/database/migration/20260312043431_session_message_cursor.js +2 -2
  304. package/dist/database/migration/20260323234822_events.js +2 -2
  305. package/dist/database/migration/20260410174513_workspace-name.js +2 -2
  306. package/dist/database/migration/20260413175956_chief_energizer.js +2 -2
  307. package/dist/database/migration/20260423070820_add_icon_url_override.js +2 -2
  308. package/dist/database/migration/20260427172553_slow_nightmare.js +2 -2
  309. package/dist/database/migration/20260428004200_add_session_path.js +2 -2
  310. package/dist/database/migration/20260501142318_next_venus.js +2 -2
  311. package/dist/database/migration/20260504145000_add_sync_owner.js +2 -2
  312. package/dist/database/migration/20260507164347_add_workspace_time.js +2 -2
  313. package/dist/database/migration/20260510033149_session_usage.js +2 -2
  314. package/dist/database/migration/20260511000411_data_migration_state.js +2 -2
  315. package/dist/database/migration/20260511173437_session-metadata.js +2 -2
  316. package/dist/database/migration/20260601010001_normalize_storage_paths.js +2 -2
  317. package/dist/database/migration/20260601202201_amazing_prowler.js +2 -2
  318. package/dist/database/migration/20260602002951_lowly_union_jack.js +2 -2
  319. package/dist/database/migration/20260602182828_add_project_directories.js +2 -2
  320. package/dist/database/migration/20260603001617_session_message_projection_indexes.js +2 -2
  321. package/dist/database/migration/20260603040000_session_message_projection_order.js +2 -2
  322. package/dist/database/migration/20260603141458_session_input_inbox.js +2 -2
  323. package/dist/database/migration/20260603160727_jittery_ezekiel_stane.js +2 -2
  324. package/dist/database/migration/20260604172448_event_sourced_session_input.js +2 -2
  325. package/dist/database/migration/20260605003541_add_session_context_snapshot.js +2 -2
  326. package/dist/database/migration/20260605042240_add_context_epoch_agent.js +2 -2
  327. package/dist/database/migration/20260611035744_credential.js +2 -2
  328. package/dist/database/migration/20260611192811_lush_chimera.js +2 -2
  329. package/dist/database/migration/20260612174303_project_dir_strategy.js +2 -2
  330. package/dist/database/migration/20260622142730_simplify_session_context_epoch.js +2 -2
  331. package/dist/database/migration/20260622170816_reset_v2_session_state.js +2 -2
  332. package/dist/database/migration/20260622202450_simplify_session_input.js +2 -2
  333. package/dist/database/migration/20260804233008_loose_psylocke.js +2 -2
  334. package/dist/database/migration/20260805200742_import_legacy_credentials.js +2 -2
  335. package/dist/database/migration/20260808023530_workspace_domain.js +2 -2
  336. package/dist/database/migration/20260811161259_execution_claim_attempts.js +2 -2
  337. package/dist/database/migration.gen.js +44 -44
  338. package/dist/database/migration.js +46 -46
  339. package/dist/database/path.js +3 -3
  340. package/dist/database/schema.gen.js +2 -2
  341. package/dist/database/schema.sql.js +2 -2
  342. package/dist/database/sqlite.bun.js +2 -2
  343. package/dist/database/sqlite.js +2 -2
  344. package/dist/database/sqlite.node.js +2 -2
  345. package/dist/database/sqlite.workerd.js +2 -2
  346. package/dist/database/v1-migration.bun.js +77 -77
  347. package/dist/database/v1-migration.js +2 -2
  348. package/dist/database/v1-migration.noop.js +1 -1
  349. package/dist/effect/app-node-builder.js +310 -309
  350. package/dist/effect/app-node-platform.js +2 -2
  351. package/dist/effect/keyed-mutex.js +2 -2
  352. package/dist/environment/driver.js +1 -1
  353. package/dist/environment/environment.js +84 -84
  354. package/dist/environment/exec-defaults.js +3 -3
  355. package/dist/environment/files.js +2 -2
  356. package/dist/environment/index.js +86 -86
  357. package/dist/environment/local.js +3 -3
  358. package/dist/environment/memory.js +3 -3
  359. package/dist/event/sql.js +2 -2
  360. package/dist/event-logger.js +78 -78
  361. package/dist/file-mutation.js +85 -85
  362. package/dist/file.js +2 -2
  363. package/dist/filesystem/fff.bun.js +2 -2
  364. package/dist/filesystem/fff.js +2 -2
  365. package/dist/filesystem/fff.node.js +2 -2
  366. package/dist/filesystem/fff.workerd.js +22 -0
  367. package/dist/filesystem/ignore.js +1 -1
  368. package/dist/filesystem/location-watcher.js +109 -109
  369. package/dist/filesystem/protected.js +2 -2
  370. package/dist/filesystem/search.js +89 -89
  371. package/dist/filesystem/watcher-binding.js +2 -2
  372. package/dist/filesystem/watcher.js +4 -4
  373. package/dist/filesystem.js +89 -89
  374. package/dist/form.js +79 -79
  375. package/dist/formatter/builtins.js +3 -3
  376. package/dist/formatter.js +111 -111
  377. package/dist/generate.js +92 -92
  378. package/dist/git.js +5 -5
  379. package/dist/github-copilot/chat/convert-to-openai-compatible-chat-messages.js +2 -2
  380. package/dist/github-copilot/chat/get-response-metadata.js +2 -2
  381. package/dist/github-copilot/chat/map-openai-compatible-finish-reason.js +2 -2
  382. package/dist/github-copilot/chat/openai-compatible-chat-language-model.js +8 -8
  383. package/dist/github-copilot/chat/openai-compatible-chat-options.js +2 -2
  384. package/dist/github-copilot/chat/openai-compatible-prepare-tools.js +2 -2
  385. package/dist/github-copilot/copilot-provider.js +19 -19
  386. package/dist/github-copilot/models.js +4 -4
  387. package/dist/github-copilot/openai-compatible-error.js +2 -2
  388. package/dist/github-copilot/responses/convert-to-openai-responses-input.js +3 -3
  389. package/dist/github-copilot/responses/map-openai-responses-finish-reason.js +2 -2
  390. package/dist/github-copilot/responses/openai-error.js +2 -2
  391. package/dist/github-copilot/responses/openai-responses-language-model.js +12 -12
  392. package/dist/github-copilot/responses/openai-responses-prepare-tools.js +7 -7
  393. package/dist/github-copilot/responses/tool/code-interpreter.js +2 -2
  394. package/dist/github-copilot/responses/tool/file-search.js +2 -2
  395. package/dist/github-copilot/responses/tool/image-generation.js +2 -2
  396. package/dist/github-copilot/responses/tool/local-shell.js +2 -2
  397. package/dist/github-copilot/responses/tool/web-search-preview.js +2 -2
  398. package/dist/github-copilot/responses/tool/web-search.js +2 -2
  399. package/dist/id/id.js +2 -2
  400. package/dist/image/photon-wasm.bun.js +1 -1
  401. package/dist/image/photon-wasm.node.js +1 -1
  402. package/dist/image/photon-wasm.workerd.js +7 -0
  403. package/dist/image/photon.js +122 -122
  404. package/dist/image.js +122 -122
  405. package/dist/instruction-discovery.js +81 -81
  406. package/dist/instructions/builtins.js +79 -79
  407. package/dist/instructions/index.js +2 -2
  408. package/dist/integration/connection.js +2 -2
  409. package/dist/integration.js +84 -84
  410. package/dist/job.js +4 -4
  411. package/dist/kv/sql.js +3 -3
  412. package/dist/kv.js +68 -68
  413. package/dist/location-mutation.js +77 -77
  414. package/dist/location-service-map.js +77 -77
  415. package/dist/location-services.js +310 -309
  416. package/dist/location.js +76 -76
  417. package/dist/mcp/client.js +86 -2
  418. package/dist/mcp/index.js +125 -116
  419. package/dist/mcp/instructions.js +153 -152
  420. package/dist/mcp/oauth.js +3 -3
  421. package/dist/mcp/stdio.js +92 -0
  422. package/dist/mime.js +2 -2
  423. package/dist/model-resolver.js +90 -90
  424. package/dist/model.js +3 -3
  425. package/dist/models-dev.js +84 -84
  426. package/dist/oauth/page.js +2 -2
  427. package/dist/permission/saved.js +77 -77
  428. package/dist/permission/sql.js +6 -6
  429. package/dist/permission.js +99 -99
  430. package/dist/plugin/agent.js +100 -100
  431. package/dist/plugin/command.js +77 -77
  432. package/dist/plugin/hooks.js +3 -3
  433. package/dist/plugin/host.js +184 -183
  434. package/dist/plugin/internal.js +270 -269
  435. package/dist/plugin/models-dev.js +85 -85
  436. package/dist/plugin/plan.js +82 -82
  437. package/dist/plugin/promise.js +144 -144
  438. package/dist/plugin/provider/alibaba.js +3 -3
  439. package/dist/plugin/provider/amazon-bedrock.js +3 -3
  440. package/dist/plugin/provider/anthropic.js +3 -3
  441. package/dist/plugin/provider/azure.js +116 -116
  442. package/dist/plugin/provider/cerebras.js +3 -3
  443. package/dist/plugin/provider/cloudflare-ai-gateway.js +117 -117
  444. package/dist/plugin/provider/cloudflare-workers-ai.js +117 -117
  445. package/dist/plugin/provider/cohere.js +3 -3
  446. package/dist/plugin/provider/configured.js +114 -114
  447. package/dist/plugin/provider/deepinfra.js +3 -3
  448. package/dist/plugin/provider/dynamic.js +2 -2
  449. package/dist/plugin/provider/factory.js +2 -2
  450. package/dist/plugin/provider/gateway.js +3 -3
  451. package/dist/plugin/provider/github-copilot.js +91 -91
  452. package/dist/plugin/provider/gitlab.js +4 -4
  453. package/dist/plugin/provider/google-vertex.js +3 -3
  454. package/dist/plugin/provider/groq.js +3 -3
  455. package/dist/plugin/provider/kilo.js +3 -3
  456. package/dist/plugin/provider/llmgateway.js +86 -86
  457. package/dist/plugin/provider/mistral.js +3 -3
  458. package/dist/plugin/provider/nvidia.js +3 -3
  459. package/dist/plugin/provider/openai-compatible.js +2 -2
  460. package/dist/plugin/provider/openai.js +88 -88
  461. package/dist/plugin/provider/opencode.js +101 -101
  462. package/dist/plugin/provider/openrouter.js +4 -4
  463. package/dist/plugin/provider/perplexity.js +3 -3
  464. package/dist/plugin/provider/sap-ai-core.js +3 -3
  465. package/dist/plugin/provider/snowflake-cortex.js +3 -3
  466. package/dist/plugin/provider/togetherai.js +3 -3
  467. package/dist/plugin/provider/venice.js +3 -3
  468. package/dist/plugin/provider/vercel.js +3 -3
  469. package/dist/plugin/provider/xai.js +86 -86
  470. package/dist/plugin/provider/zenmux.js +3 -3
  471. package/dist/plugin/provider.js +152 -152
  472. package/dist/plugin/runtime.js +175 -174
  473. package/dist/plugin/sdk.js +79 -79
  474. package/dist/plugin/skill.js +130 -130
  475. package/dist/plugin/supervisor.js +275 -274
  476. package/dist/plugin/system-prompt.js +2 -2
  477. package/dist/plugin/variant.js +4 -4
  478. package/dist/plugin/warming.js +110 -110
  479. package/dist/plugin/websearch/exa.js +4 -4
  480. package/dist/plugin/websearch/firecrawl.js +5 -5
  481. package/dist/plugin/websearch/index.js +8 -8
  482. package/dist/plugin/websearch/mcp.js +3 -3
  483. package/dist/plugin/websearch/parallel.js +5 -5
  484. package/dist/plugin.js +185 -184
  485. package/dist/project/copy-strategies.js +80 -80
  486. package/dist/project/copy.js +80 -80
  487. package/dist/project/directories.js +71 -71
  488. package/dist/project/schema.js +3 -3
  489. package/dist/project/sql.js +5 -5
  490. package/dist/project.js +75 -75
  491. package/dist/provider.js +2 -2
  492. package/dist/pty/protocol.js +1 -1
  493. package/dist/pty/pty.bun.js +1 -1
  494. package/dist/pty/pty.node.js +1 -1
  495. package/dist/pty/pty.workerd.js +9 -0
  496. package/dist/pty/schema.js +2 -2
  497. package/dist/pty/ticket.js +70 -70
  498. package/dist/pty.js +112 -112
  499. package/dist/question.js +80 -80
  500. package/dist/reference/instructions.js +84 -84
  501. package/dist/reference.js +82 -82
  502. package/dist/repository-cache.js +7 -7
  503. package/dist/repository.js +2 -2
  504. package/dist/ripgrep/binary.js +3 -3
  505. package/dist/ripgrep.js +87 -87
  506. package/dist/schema.js +2 -2
  507. package/dist/session/compaction.js +146 -146
  508. package/dist/session/context.js +283 -282
  509. package/dist/session/error.js +4 -4
  510. package/dist/session/event.js +2 -2
  511. package/dist/session/execution/restart.js +115 -115
  512. package/dist/session/execution.js +115 -115
  513. package/dist/session/generate-node.js +289 -288
  514. package/dist/session/generate.js +2 -2
  515. package/dist/session/history.js +77 -77
  516. package/dist/session/info.js +87 -87
  517. package/dist/session/instruction-entry.js +73 -73
  518. package/dist/session/instruction-state.js +10 -10
  519. package/dist/session/instructions.js +96 -96
  520. package/dist/session/message-updater.js +4 -4
  521. package/dist/session/message.js +2 -2
  522. package/dist/session/model-headers.js +4 -4
  523. package/dist/session/model-http.js +4 -4
  524. package/dist/session/model-request.js +291 -290
  525. package/dist/session/pending.js +83 -83
  526. package/dist/session/projector.js +95 -95
  527. package/dist/session/prompt-cache-diagnostics.js +2 -2
  528. package/dist/session/prompt-cache-key.js +3 -3
  529. package/dist/session/revert.js +114 -114
  530. package/dist/session/run-coordinator.js +2 -2
  531. package/dist/session/runner/index.js +93 -93
  532. package/dist/session/runner/llm.js +299 -298
  533. package/dist/session/runner/max-steps.js +2 -2
  534. package/dist/session/runner/model.js +92 -92
  535. package/dist/session/runner/publish-llm-event.js +4 -4
  536. package/dist/session/runner/retry.js +82 -82
  537. package/dist/session/runner/to-llm-message.js +2 -2
  538. package/dist/session/schema.js +2 -2
  539. package/dist/session/sql.js +6 -6
  540. package/dist/session/store.js +95 -95
  541. package/dist/session/title.js +112 -112
  542. package/dist/session/to-session-error.js +111 -111
  543. package/dist/session/transfer.js +178 -177
  544. package/dist/session/usage.js +2 -2
  545. package/dist/session.js +174 -173
  546. package/dist/shell/parse.js +4 -4
  547. package/dist/shell/parser-wasm.bun.js +1 -1
  548. package/dist/shell/parser-wasm.node.js +1 -1
  549. package/dist/shell/parser-wasm.workerd.js +7 -0
  550. package/dist/shell/select.js +3 -3
  551. package/dist/shell.js +121 -121
  552. package/dist/skill/discovery.js +3 -3
  553. package/dist/skill/instructions.js +101 -101
  554. package/dist/skill.js +100 -100
  555. package/dist/snapshot.js +109 -109
  556. package/dist/state.js +2 -2
  557. package/dist/tool/http-body.js +2 -2
  558. package/dist/tool/mcp.js +152 -151
  559. package/dist/tool/plugin/edit.js +139 -139
  560. package/dist/tool/plugin/file-diff.js +2 -2
  561. package/dist/tool/plugin/glob.js +111 -111
  562. package/dist/tool/plugin/grep.js +111 -111
  563. package/dist/tool/plugin/patch.js +138 -138
  564. package/dist/tool/plugin/question.js +102 -102
  565. package/dist/tool/plugin/read.js +114 -114
  566. package/dist/tool/plugin/shell.js +179 -178
  567. package/dist/tool/plugin/skill.js +101 -101
  568. package/dist/tool/plugin/subagent.js +176 -175
  569. package/dist/tool/plugin/webfetch.js +101 -101
  570. package/dist/tool/plugin/websearch.js +104 -104
  571. package/dist/tool/plugin/write.js +139 -139
  572. package/dist/tool/read-filesystem.js +91 -91
  573. package/dist/tool/runtime.js +2 -2
  574. package/dist/tool-output.js +110 -110
  575. package/dist/tool.js +143 -143
  576. package/dist/types/database/database.d.ts +2 -0
  577. package/dist/types/database/drizzle/effect-sqlite/session.d.ts +10 -0
  578. package/dist/types/filesystem/fff.workerd.d.ts +4 -0
  579. package/dist/types/image/photon-wasm.workerd.d.ts +2 -0
  580. package/dist/types/location-service-map.d.ts +2 -2
  581. package/dist/types/location-services.d.ts +1 -1
  582. package/dist/types/mcp/client.d.ts +7 -2
  583. package/dist/types/mcp/index.d.ts +4 -1
  584. package/dist/types/mcp/stdio.d.ts +29 -0
  585. package/dist/types/plugin/internal.d.ts +3 -3
  586. package/dist/types/plugin/supervisor.d.ts +1 -1
  587. package/dist/types/pty/pty.workerd.d.ts +3 -0
  588. package/dist/types/shell/parser-wasm.workerd.d.ts +5 -0
  589. package/dist/types/util/process-lock-ffi.workerd.d.ts +12 -0
  590. package/dist/util/array.js +1 -1
  591. package/dist/util/binary.js +1 -1
  592. package/dist/util/encode.js +1 -1
  593. package/dist/util/error.js +2 -2
  594. package/dist/util/identifier.js +1 -1
  595. package/dist/util/iife.js +2 -2
  596. package/dist/util/lazy.js +2 -2
  597. package/dist/util/path.js +1 -1
  598. package/dist/util/process-lock-ffi.bun.js +1 -1
  599. package/dist/util/process-lock-ffi.node.js +1 -1
  600. package/dist/util/process-lock-ffi.workerd.js +12 -0
  601. package/dist/util/process-lock.js +1 -1
  602. package/dist/util/retry.js +1 -1
  603. package/dist/util/slug.js +2 -2
  604. package/dist/util/token.js +2 -2
  605. package/dist/util/which.js +2 -2
  606. package/dist/util/wildcard.js +2 -2
  607. package/dist/v1/config/agent.js +4 -4
  608. package/dist/v1/config/attachment.js +3 -3
  609. package/dist/v1/config/command.js +2 -2
  610. package/dist/v1/config/config.js +15 -15
  611. package/dist/v1/config/error.js +3 -3
  612. package/dist/v1/config/formatter.js +2 -2
  613. package/dist/v1/config/layout.js +2 -2
  614. package/dist/v1/config/lsp.js +2 -2
  615. package/dist/v1/config/mcp.js +3 -3
  616. package/dist/v1/config/migrate.js +19 -19
  617. package/dist/v1/config/permission.js +2 -2
  618. package/dist/v1/config/plugin.js +2 -2
  619. package/dist/v1/config/provider-options.js +2 -2
  620. package/dist/v1/config/provider.js +3 -3
  621. package/dist/v1/config/server.js +3 -3
  622. package/dist/v1/config/skills.js +2 -2
  623. package/dist/v1/permission.js +1 -1
  624. package/dist/vcs/git.js +3 -3
  625. package/dist/vcs/hg.js +3 -3
  626. package/dist/vcs/patch.js +2 -2
  627. package/dist/vcs.js +82 -82
  628. package/dist/websearch.js +82 -82
  629. package/dist/wellknown/plugin.js +82 -82
  630. package/dist/wellknown.js +81 -81
  631. package/dist/workspace/driver.js +2 -2
  632. package/dist/workspace/sql.js +2 -2
  633. package/dist/workspace.js +69 -69
  634. package/package.json +12 -7
  635. /package/dist/chunks/{app-0cgt0xh2.js → repository-cache-0cgt0xh2.js} +0 -0
  636. /package/dist/chunks/{app-0f48qthw.js → repository-cache-0f48qthw.js} +0 -0
  637. /package/dist/chunks/{app-0zz82cjq.js → repository-cache-0zz82cjq.js} +0 -0
  638. /package/dist/chunks/{app-1fb7bmpf.js → repository-cache-1fb7bmpf.js} +0 -0
  639. /package/dist/chunks/{app-1wcz8fvj.js → repository-cache-1wcz8fvj.js} +0 -0
  640. /package/dist/chunks/{app-2qdx6zz3.js → repository-cache-2qdx6zz3.js} +0 -0
  641. /package/dist/chunks/{app-3c4nztf9.js → repository-cache-3c4nztf9.js} +0 -0
  642. /package/dist/chunks/{app-3g3rpp2x.js → repository-cache-3g3rpp2x.js} +0 -0
  643. /package/dist/chunks/{app-3q6gbwmd.js → repository-cache-3q6gbwmd.js} +0 -0
  644. /package/dist/chunks/{app-3w3ybtfd.js → repository-cache-3w3ybtfd.js} +0 -0
  645. /package/dist/chunks/{app-47ty4mvs.js → repository-cache-47ty4mvs.js} +0 -0
  646. /package/dist/chunks/{app-4b2tz2m9.js → repository-cache-4b2tz2m9.js} +0 -0
  647. /package/dist/chunks/{app-5a5ch9ts.js → repository-cache-5a5ch9ts.js} +0 -0
  648. /package/dist/chunks/{app-5va1yh78.js → repository-cache-5va1yh78.js} +0 -0
  649. /package/dist/chunks/{app-69qrqpw0.js → repository-cache-69qrqpw0.js} +0 -0
  650. /package/dist/chunks/{app-6jdj5f9n.js → repository-cache-6jdj5f9n.js} +0 -0
  651. /package/dist/chunks/{app-6jtjggv5.js → repository-cache-6jtjggv5.js} +0 -0
  652. /package/dist/chunks/{app-6yt963b8.js → repository-cache-6yt963b8.js} +0 -0
  653. /package/dist/chunks/{app-7n9qwqk4.js → repository-cache-7n9qwqk4.js} +0 -0
  654. /package/dist/chunks/{app-8m0qaa0v.js → repository-cache-8m0qaa0v.js} +0 -0
  655. /package/dist/chunks/{app-8nn8kqcn.js → repository-cache-8nn8kqcn.js} +0 -0
  656. /package/dist/chunks/{app-8sj3ajy5.js → repository-cache-8sj3ajy5.js} +0 -0
  657. /package/dist/chunks/{app-8w9tzfz1.js → repository-cache-8w9tzfz1.js} +0 -0
  658. /package/dist/chunks/{app-906y0b6d.js → repository-cache-906y0b6d.js} +0 -0
  659. /package/dist/chunks/{app-9dct5xhx.js → repository-cache-9dct5xhx.js} +0 -0
  660. /package/dist/chunks/{app-9sdtsapf.js → repository-cache-9sdtsapf.js} +0 -0
  661. /package/dist/chunks/{app-a02svayp.js → repository-cache-a02svayp.js} +0 -0
  662. /package/dist/chunks/{app-a83yvq99.js → repository-cache-a83yvq99.js} +0 -0
  663. /package/dist/chunks/{app-ayevdmef.js → repository-cache-ayevdmef.js} +0 -0
  664. /package/dist/chunks/{app-b02txbh8.js → repository-cache-b02txbh8.js} +0 -0
  665. /package/dist/chunks/{app-bbqs2y60.js → repository-cache-bbqs2y60.js} +0 -0
  666. /package/dist/chunks/{app-brsh5f65.js → repository-cache-brsh5f65.js} +0 -0
  667. /package/dist/chunks/{app-bxdhjb3y.js → repository-cache-bxdhjb3y.js} +0 -0
  668. /package/dist/chunks/{app-c77ad0vh.js → repository-cache-c77ad0vh.js} +0 -0
  669. /package/dist/chunks/{app-cm67rqy2.js → repository-cache-cm67rqy2.js} +0 -0
  670. /package/dist/chunks/{app-d6s8p2vk.js → repository-cache-d6s8p2vk.js} +0 -0
  671. /package/dist/chunks/{app-dbah77c1.js → repository-cache-dbah77c1.js} +0 -0
  672. /package/dist/chunks/{app-df3v2q6j.js → repository-cache-df3v2q6j.js} +0 -0
  673. /package/dist/chunks/{app-dhcq6c44.js → repository-cache-dhcq6c44.js} +0 -0
  674. /package/dist/chunks/{app-dht5baf0.js → repository-cache-dht5baf0.js} +0 -0
  675. /package/dist/chunks/{app-dppgrtwb.js → repository-cache-dppgrtwb.js} +0 -0
  676. /package/dist/chunks/{app-ehj9csmv.js → repository-cache-ehj9csmv.js} +0 -0
  677. /package/dist/chunks/{app-ezs3tagn.js → repository-cache-ezs3tagn.js} +0 -0
  678. /package/dist/chunks/{app-f4cp4g4a.js → repository-cache-f4cp4g4a.js} +0 -0
  679. /package/dist/chunks/{app-f84sxdqn.js → repository-cache-f84sxdqn.js} +0 -0
  680. /package/dist/chunks/{app-faypg4r1.js → repository-cache-faypg4r1.js} +0 -0
  681. /package/dist/chunks/{app-g7k9te92.js → repository-cache-g7k9te92.js} +0 -0
  682. /package/dist/chunks/{app-gd5xeqc2.js → repository-cache-gd5xeqc2.js} +0 -0
  683. /package/dist/chunks/{app-ghm4673n.js → repository-cache-ghm4673n.js} +0 -0
  684. /package/dist/chunks/{app-ghwjy7my.js → repository-cache-ghwjy7my.js} +0 -0
  685. /package/dist/chunks/{app-gy500k2r.js → repository-cache-gy500k2r.js} +0 -0
  686. /package/dist/chunks/{app-hy0hzg1s.js → repository-cache-hy0hzg1s.js} +0 -0
  687. /package/dist/chunks/{app-hzeg9cfr.js → repository-cache-hzeg9cfr.js} +0 -0
  688. /package/dist/chunks/{app-j07kk359.js → repository-cache-j07kk359.js} +0 -0
  689. /package/dist/chunks/{app-jve7t217.js → repository-cache-jve7t217.js} +0 -0
  690. /package/dist/chunks/{app-kpdbz7gn.js → repository-cache-kpdbz7gn.js} +0 -0
  691. /package/dist/chunks/{app-kxy11nzk.js → repository-cache-kxy11nzk.js} +0 -0
  692. /package/dist/chunks/{app-kyyqvx4s.js → repository-cache-kyyqvx4s.js} +0 -0
  693. /package/dist/chunks/{app-m8cbvarh.js → repository-cache-m8cbvarh.js} +0 -0
  694. /package/dist/chunks/{app-ma07p6tt.js → repository-cache-ma07p6tt.js} +0 -0
  695. /package/dist/chunks/{app-ma60vzgv.js → repository-cache-ma60vzgv.js} +0 -0
  696. /package/dist/chunks/{app-n3m50c2t.js → repository-cache-n3m50c2t.js} +0 -0
  697. /package/dist/chunks/{app-nkm1m8dz.js → repository-cache-nkm1m8dz.js} +0 -0
  698. /package/dist/chunks/{app-nsc0c3zb.js → repository-cache-nsc0c3zb.js} +0 -0
  699. /package/dist/chunks/{app-qaarhjrp.js → repository-cache-qaarhjrp.js} +0 -0
  700. /package/dist/chunks/{app-qc167nrn.js → repository-cache-qc167nrn.js} +0 -0
  701. /package/dist/chunks/{app-qp95y4jb.js → repository-cache-qp95y4jb.js} +0 -0
  702. /package/dist/chunks/{app-r8f4w671.js → repository-cache-r8f4w671.js} +0 -0
  703. /package/dist/chunks/{app-rdfev9jy.js → repository-cache-rdfev9jy.js} +0 -0
  704. /package/dist/chunks/{app-rvfvac9x.js → repository-cache-rvfvac9x.js} +0 -0
  705. /package/dist/chunks/{app-s7whb9gt.js → repository-cache-s7whb9gt.js} +0 -0
  706. /package/dist/chunks/{app-se76j685.js → repository-cache-se76j685.js} +0 -0
  707. /package/dist/chunks/{app-sem2g21k.js → repository-cache-sem2g21k.js} +0 -0
  708. /package/dist/chunks/{app-tmb1f636.js → repository-cache-tmb1f636.js} +0 -0
  709. /package/dist/chunks/{app-ttxf0gsy.js → repository-cache-ttxf0gsy.js} +0 -0
  710. /package/dist/chunks/{app-tvmhrvfj.js → repository-cache-tvmhrvfj.js} +0 -0
  711. /package/dist/chunks/{app-v2adqbbe.js → repository-cache-v2adqbbe.js} +0 -0
  712. /package/dist/chunks/{app-wj4sxzqa.js → repository-cache-wj4sxzqa.js} +0 -0
  713. /package/dist/chunks/{app-wwntjmk1.js → repository-cache-wwntjmk1.js} +0 -0
  714. /package/dist/chunks/{app-wx89ywv3.js → repository-cache-wx89ywv3.js} +0 -0
  715. /package/dist/chunks/{app-wyqjaaa5.js → repository-cache-wyqjaaa5.js} +0 -0
  716. /package/dist/chunks/{app-x4q807cx.js → repository-cache-x4q807cx.js} +0 -0
  717. /package/dist/chunks/{app-yrqrg4vp.js → repository-cache-yrqrg4vp.js} +0 -0
  718. /package/dist/chunks/{app-z47nswr2.js → repository-cache-z47nswr2.js} +0 -0
  719. /package/dist/chunks/{app-zsf8rs93.js → repository-cache-zsf8rs93.js} +0 -0
@@ -1,66 +1,66 @@
1
- import {
2
- exports_retry
3
- } from "./app-szjq6xea.js";
4
1
  import {
5
2
  createLLMEventPublisher
6
- } from "./app-9q1hedyj.js";
3
+ } from "./repository-cache-9q1hedyj.js";
7
4
  import {
8
- exports_compaction
9
- } from "./app-gfhy3xxc.js";
5
+ exports_retry
6
+ } from "./repository-cache-szjq6xea.js";
10
7
  import {
11
8
  exports_model_request
12
- } from "./app-5tcqctjx.js";
9
+ } from "./repository-cache-2zsmgn20.js";
13
10
  import {
14
- exports_title
15
- } from "./app-rckwcqa1.js";
11
+ exports_compaction
12
+ } from "./repository-cache-we5s72km.js";
16
13
  import {
17
- exports_usage
18
- } from "./app-8ywqk2j9.js";
14
+ exports_title
15
+ } from "./repository-cache-zngq5vh0.js";
19
16
  import {
20
17
  exports_context
21
- } from "./app-7czsgg7v.js";
18
+ } from "./repository-cache-yjc6jw6n.js";
22
19
  import {
23
- llmClient
24
- } from "./app-m01ryvbe.js";
20
+ exports_usage
21
+ } from "./repository-cache-8ywqk2j9.js";
25
22
  import {
26
23
  exports_tool_output
27
- } from "./app-53xf519q.js";
24
+ } from "./repository-cache-wnjnzsav.js";
28
25
  import {
29
- exports_pending
30
- } from "./app-n7rn4zj5.js";
26
+ llmClient
27
+ } from "./repository-cache-m01ryvbe.js";
31
28
  import {
32
29
  Service
33
- } from "./app-cz3dkvcz.js";
30
+ } from "./repository-cache-cz3dkvcz.js";
31
+ import {
32
+ exports_pending
33
+ } from "./repository-cache-htg18tka.js";
34
34
  import {
35
35
  toSessionError
36
- } from "./app-rqmqsmfp.js";
36
+ } from "./repository-cache-5g3dnzmr.js";
37
37
  import {
38
- exports_store
39
- } from "./app-b9mh38wt.js";
38
+ exports_snapshot
39
+ } from "./repository-cache-h6nag1tm.js";
40
40
  import {
41
- exports_instruction_state
42
- } from "./app-bha9y19b.js";
41
+ exports_store
42
+ } from "./repository-cache-bza6gt6f.js";
43
43
  import {
44
44
  StepFailedError
45
- } from "./app-s6by3cc4.js";
45
+ } from "./repository-cache-s6by3cc4.js";
46
46
  import {
47
- exports_message
48
- } from "./app-25pxtba7.js";
47
+ exports_instruction_state
48
+ } from "./repository-cache-jr4jm25g.js";
49
49
  import {
50
50
  SessionEvent
51
- } from "./app-a83yvq99.js";
51
+ } from "./repository-cache-a83yvq99.js";
52
52
  import {
53
- exports_snapshot
54
- } from "./app-heq95ef9.js";
53
+ exports_message
54
+ } from "./repository-cache-25pxtba7.js";
55
55
  import {
56
56
  exports_bus
57
- } from "./app-dm7mk5x3.js";
57
+ } from "./repository-cache-y56d2anz.js";
58
58
  import {
59
59
  exports_database
60
- } from "./app-n5mwvj6g.js";
60
+ } from "./repository-cache-sn0zfpmh.js";
61
61
  import {
62
62
  __export
63
- } from "./app-rvfvac9x.js";
63
+ } from "./repository-cache-rvfvac9x.js";
64
64
 
65
65
  // src/session/runner/llm.ts
66
66
  var exports_llm = {};
@@ -1,12 +1,12 @@
1
1
  import {
2
2
  CredentialTable
3
- } from "./app-mf0hyk7z.js";
3
+ } from "./repository-cache-mf0hyk7z.js";
4
4
  import {
5
5
  exports_database
6
- } from "./app-n5mwvj6g.js";
6
+ } from "./repository-cache-sn0zfpmh.js";
7
7
  import {
8
8
  __export
9
- } from "./app-rvfvac9x.js";
9
+ } from "./repository-cache-rvfvac9x.js";
10
10
 
11
11
  // src/credential.ts
12
12
  var exports_credential = {};
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  getViewSelectedFieldsRuntime,
3
3
  orderSelectedFields
4
- } from "./app-ma07p6tt.js";
4
+ } from "./repository-cache-ma07p6tt.js";
5
5
 
6
6
  // src/database/drizzle/sqlite-core/effect/select.ts
7
7
  import { applyEffectWrapper } from "drizzle-orm/effect-core/query-effect";
@@ -1,18 +1,18 @@
1
1
  import {
2
2
  exports_tool
3
- } from "./app-0yvmerbg.js";
4
- import {
5
- exports_permission
6
- } from "./app-a9bmtk5v.js";
3
+ } from "./repository-cache-f7w1jryk.js";
7
4
  import {
8
5
  exports_mcp
9
- } from "./app-yqnhcm69.js";
6
+ } from "./repository-cache-ns5te58g.js";
7
+ import {
8
+ exports_permission
9
+ } from "./repository-cache-ghgrp5mb.js";
10
10
  import {
11
11
  exports_bus
12
- } from "./app-dm7mk5x3.js";
12
+ } from "./repository-cache-y56d2anz.js";
13
13
  import {
14
14
  __export
15
- } from "./app-rvfvac9x.js";
15
+ } from "./repository-cache-rvfvac9x.js";
16
16
 
17
17
  // src/tool/mcp.ts
18
18
  var exports_mcp2 = {};
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  ProjectTable
3
- } from "./app-88jbfw8z.js";
3
+ } from "./repository-cache-88jbfw8z.js";
4
4
  import {
5
5
  Timestamps
6
- } from "./app-sem2g21k.js";
6
+ } from "./repository-cache-sem2g21k.js";
7
7
 
8
8
  // src/permission/sql.ts
9
9
  import { sqliteTable, text, uniqueIndex } from "drizzle-orm/sqlite-core";
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  NamedError
3
- } from "./app-hzeg9cfr.js";
3
+ } from "./repository-cache-hzeg9cfr.js";
4
4
  import {
5
5
  __export
6
- } from "./app-rvfvac9x.js";
6
+ } from "./repository-cache-rvfvac9x.js";
7
7
 
8
8
  // src/v1/config/error.ts
9
9
  var exports_error = {};
@@ -1,33 +1,36 @@
1
+ import {
2
+ exports_client
3
+ } from "./repository-cache-pqxc0f1x.js";
1
4
  import {
2
5
  exports_oauth
3
- } from "./app-fj3fqzqb.js";
6
+ } from "./repository-cache-xq1vkeee.js";
4
7
  import {
5
- exports_client
6
- } from "./app-f26x8jzg.js";
8
+ exports_config
9
+ } from "./repository-cache-gzjpz1dq.js";
10
+ import {
11
+ exports_environment1 as exports_environment
12
+ } from "./repository-cache-2mcxzbwe.js";
7
13
  import {
8
14
  exports_integration
9
- } from "./app-tvagj5b1.js";
15
+ } from "./repository-cache-91mm05x8.js";
10
16
  import {
11
17
  exports_form
12
- } from "./app-2n9rqmbs.js";
13
- import {
14
- exports_config
15
- } from "./app-66pzqqqb.js";
18
+ } from "./repository-cache-141wgazf.js";
16
19
  import {
17
20
  exports_credential
18
- } from "./app-9w6hy71j.js";
21
+ } from "./repository-cache-msbeckph.js";
19
22
  import {
20
23
  exports_bus
21
- } from "./app-dm7mk5x3.js";
24
+ } from "./repository-cache-y56d2anz.js";
22
25
  import {
23
26
  exports_location
24
- } from "./app-j5g5m7ca.js";
27
+ } from "./repository-cache-xjtqh72v.js";
25
28
  import {
26
29
  exports_keyed_mutex
27
- } from "./app-0kvmztkf.js";
30
+ } from "./repository-cache-0kvmztkf.js";
28
31
  import {
29
32
  __export
30
- } from "./app-rvfvac9x.js";
33
+ } from "./repository-cache-rvfvac9x.js";
31
34
 
32
35
  // src/mcp/index.ts
33
36
  var exports_mcp = {};
@@ -161,18 +164,19 @@ var Options = Schema.Struct({
161
164
  clientInfo: Schema.optional(Schema.Struct({
162
165
  name: Schema.String,
163
166
  version: Schema.String
164
- }))
167
+ })),
168
+ stdio: Schema.optional(Schema.Boolean)
165
169
  });
166
170
  var layer = (options) => Layer.effect(Service, Effect.gen(function* () {
167
171
  const config = yield* exports_config.Service;
168
172
  const location = yield* exports_location.Service;
173
+ const environment = yield* exports_environment.Service;
169
174
  const bus = yield* exports_bus.Service;
170
175
  const forms = yield* exports_form.Service;
171
176
  const integration = yield* exports_integration.Service;
172
177
  const credentials = yield* exports_credential.Service;
173
- const root = yield* Scope.make();
178
+ const root = yield* Effect.scope;
174
179
  const fork = yield* FiberSet.makeRuntime();
175
- yield* Effect.addFinalizer((exit) => Scope.close(root, exit));
176
180
  const loadConfig = (entries) => {
177
181
  const documents = entries.filter((entry) => entry.type === "document");
178
182
  const timeout = Object.assign({}, ...documents.flatMap((entry) => entry.info.mcp?.timeout ? [entry.info.mcp.timeout] : []));
@@ -362,13 +366,8 @@ var layer = (options) => Layer.effect(Service, Effect.gen(function* () {
362
366
  const watch = (name, entry, connection) => {
363
367
  const live = whenLive(name, entry, connection);
364
368
  connection.onClose(() => live(Effect.gen(function* () {
365
- entry.client = undefined;
366
- entry.tools = undefined;
367
- entry.prompts = undefined;
368
369
  entry.status = { status: "failed", error: "Connection closed" };
369
- yield* bus.publish(McpEvent.ToolsChanged, { server: name }).pipe(Effect.ignore);
370
- yield* bus.publish(McpEvent.ResourcesChanged, { server: name }).pipe(Effect.ignore);
371
- yield* bus.publish(Command.Event.Updated, {}).pipe(Effect.ignore);
370
+ yield* stopServer(name, entry);
372
371
  yield* bus.publish(McpEvent.StatusChanged, { server: name }).pipe(Effect.ignore);
373
372
  })));
374
373
  connection.onLog((message) => fork(serverLog(name, message).pipe(Effect.ignore)));
@@ -394,12 +393,17 @@ var layer = (options) => Layer.effect(Service, Effect.gen(function* () {
394
393
  }
395
394
  };
396
395
  const startServer = (name, entry) => Effect.gen(function* () {
396
+ if (options?.stdio === false && entry.config.type === "local") {
397
+ entry.status = { status: "failed", error: "stdio MCP servers are unavailable in this runtime" };
398
+ yield* bus.publish(McpEvent.StatusChanged, { server: name }).pipe(Effect.ignore);
399
+ return;
400
+ }
397
401
  entry.status = { status: "pending" };
398
402
  yield* bus.publish(McpEvent.StatusChanged, { server: name }).pipe(Effect.ignore);
399
403
  const scope = yield* Scope.fork(root);
400
404
  entry.scope = scope;
401
405
  const authProvider = yield* connectProvider(entry);
402
- const result = yield* exports_client.connect(name, entry.config, location.directory, authProvider, elicitation, options?.clientInfo).pipe(Effect.flatMap((connection) => connection.tools().pipe(Effect.map((tools) => ({ connection, tools })))), Scope.provide(scope), Effect.exit);
406
+ const result = yield* exports_client.connect(name, entry.config, location.directory, authProvider, elicitation, options?.clientInfo).pipe(Effect.flatMap((connection) => connection.tools().pipe(Effect.map((tools) => ({ connection, tools })))), Effect.provideService(exports_environment.Service, environment), Scope.provide(scope), Effect.exit);
403
407
  if (Exit.isSuccess(result)) {
404
408
  entry.client = result.value.connection;
405
409
  entry.tools = result.value.tools.map((def) => toTool(name, entry, def));
@@ -635,7 +639,7 @@ function configured(options) {
635
639
  return makeLocationNode({
636
640
  service: Service,
637
641
  layer: layer(options),
638
- deps: [exports_config.node, exports_location.node, exports_bus.node, exports_form.node, exports_integration.node, exports_credential.node]
642
+ deps: [exports_config.node, exports_location.node, exports_environment.node, exports_bus.node, exports_form.node, exports_integration.node, exports_credential.node]
639
643
  });
640
644
  }
641
645
  var node = configured();
@@ -1,11 +1,11 @@
1
1
  import {
2
2
  buildSQLiteMigrationBackfillStatements,
3
3
  prepareSQLiteMigrationBackfill
4
- } from "./app-6sc9h3ca.js";
4
+ } from "./repository-cache-6sc9h3ca.js";
5
5
  import {
6
6
  GET_VERSION_FOR,
7
7
  MIGRATIONS_TABLE_VERSIONS
8
- } from "./app-f84sxdqn.js";
8
+ } from "./repository-cache-f84sxdqn.js";
9
9
 
10
10
  // src/database/drizzle/up-migrations/effect-sqlite.ts
11
11
  import * as Effect from "effect/Effect";
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  __export
3
- } from "./app-rvfvac9x.js";
3
+ } from "./repository-cache-rvfvac9x.js";
4
4
 
5
5
  // src/v1/config/skills.ts
6
6
  var exports_skills = {};
@@ -1,15 +1,15 @@
1
1
  import {
2
2
  PermissionTable
3
- } from "./app-nesb2rcz.js";
3
+ } from "./repository-cache-nesb2rcz.js";
4
4
  import {
5
5
  exports_project
6
- } from "./app-y4sxnhrw.js";
6
+ } from "./repository-cache-wgrssa02.js";
7
7
  import {
8
8
  exports_database
9
- } from "./app-n5mwvj6g.js";
9
+ } from "./repository-cache-sn0zfpmh.js";
10
10
  import {
11
11
  __export
12
- } from "./app-rvfvac9x.js";
12
+ } from "./repository-cache-rvfvac9x.js";
13
13
 
14
14
  // src/permission/saved.ts
15
15
  var exports_saved = {};
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  createProviderPlugin
3
- } from "./app-0zz82cjq.js";
3
+ } from "./repository-cache-0zz82cjq.js";
4
4
  import {
5
5
  __require
6
- } from "./app-rvfvac9x.js";
6
+ } from "./repository-cache-rvfvac9x.js";
7
7
 
8
8
  // src/plugin/provider/deepinfra.ts
9
9
  var DeepInfraPlugin = createProviderPlugin({
@@ -7,10 +7,10 @@ import {
7
7
  countPatch,
8
8
  deletePatch,
9
9
  emptyPatch
10
- } from "./app-vz89hfgr.js";
10
+ } from "./repository-cache-vz89hfgr.js";
11
11
  import {
12
12
  __export
13
- } from "./app-rvfvac9x.js";
13
+ } from "./repository-cache-rvfvac9x.js";
14
14
 
15
15
  // src/vcs/hg.ts
16
16
  var exports_hg = {};
@@ -1,30 +1,30 @@
1
+ import {
2
+ exports_snapshot
3
+ } from "./repository-cache-h6nag1tm.js";
4
+ import {
5
+ SessionEvent
6
+ } from "./repository-cache-a83yvq99.js";
1
7
  import {
2
8
  SessionMessageTable
3
- } from "./app-zvvp2xr4.js";
9
+ } from "./repository-cache-zvvp2xr4.js";
4
10
  import {
5
11
  exports_message
6
- } from "./app-25pxtba7.js";
7
- import {
8
- SessionEvent
9
- } from "./app-a83yvq99.js";
12
+ } from "./repository-cache-25pxtba7.js";
10
13
  import {
11
14
  exports_schema
12
- } from "./app-y8rs54ne.js";
13
- import {
14
- exports_snapshot
15
- } from "./app-heq95ef9.js";
15
+ } from "./repository-cache-y8rs54ne.js";
16
16
  import {
17
17
  exports_bus
18
- } from "./app-dm7mk5x3.js";
18
+ } from "./repository-cache-y56d2anz.js";
19
19
  import {
20
20
  RelativePath
21
- } from "./app-j07kk359.js";
21
+ } from "./repository-cache-j07kk359.js";
22
22
  import {
23
23
  exports_database
24
- } from "./app-n5mwvj6g.js";
24
+ } from "./repository-cache-sn0zfpmh.js";
25
25
  import {
26
26
  __export
27
- } from "./app-rvfvac9x.js";
27
+ } from "./repository-cache-rvfvac9x.js";
28
28
 
29
29
  // src/session/revert.ts
30
30
  var exports_revert = {};
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  PositiveInt
3
- } from "./app-j07kk359.js";
3
+ } from "./repository-cache-j07kk359.js";
4
4
  import {
5
5
  __export
6
- } from "./app-rvfvac9x.js";
6
+ } from "./repository-cache-rvfvac9x.js";
7
7
 
8
8
  // src/v1/config/server.ts
9
9
  var exports_server = {};
@@ -1,6 +1,9 @@
1
+ import {
2
+ exports_stdio
3
+ } from "./repository-cache-bwad94xr.js";
1
4
  import {
2
5
  __export
3
- } from "./app-rvfvac9x.js";
6
+ } from "./repository-cache-rvfvac9x.js";
4
7
 
5
8
  // src/mcp/client.ts
6
9
  var exports_client = {};
@@ -11,10 +14,8 @@ __export(exports_client, {
11
14
  ConnectError: () => ConnectError
12
15
  });
13
16
  import path from "node:path";
14
- import { execFile } from "node:child_process";
15
17
  import { pathToFileURL } from "node:url";
16
18
  import { Client } from "@modelcontextprotocol/sdk/client/index.js";
17
- import { StdioClientTransport } from "@modelcontextprotocol/sdk/client/stdio.js";
18
19
  import { StreamableHTTPClientTransport } from "@modelcontextprotocol/sdk/client/streamableHttp.js";
19
20
  import { UnauthorizedError } from "@modelcontextprotocol/sdk/client/auth.js";
20
21
  import {
@@ -60,13 +61,12 @@ var connect = Effect.fnUntraced(function* (server, config, directory, authProvid
60
61
  const transport = yield* Effect.gen(function* () {
61
62
  if (config.type === "local") {
62
63
  const [command, ...args] = config.command;
63
- return new StdioClientTransport({
64
+ return yield* exports_stdio.make({
65
+ server,
64
66
  command,
65
67
  args,
66
68
  cwd: config.cwd ? path.resolve(directory, config.cwd) : directory,
67
- stderr: "pipe",
68
- env: {
69
- ...process.env,
69
+ environment: {
70
70
  ...command === "opencode" ? { BUN_BE_BUN: "1" } : {},
71
71
  ...config.environment
72
72
  }
@@ -95,7 +95,7 @@ var connect = Effect.fnUntraced(function* (server, config, directory, authProvid
95
95
  catch: (error2) => error2
96
96
  }).pipe(Effect.exit);
97
97
  if (Exit.isSuccess(exit)) {
98
- yield* Effect.addFinalizer(() => cleanupStdioDescendants(transport).pipe(Effect.andThen(Effect.promise(() => client.close())), Effect.ignore));
98
+ yield* Effect.addFinalizer(() => Effect.promise(() => client.close()).pipe(Effect.ignore));
99
99
  const catalogTimeout = config.timeout?.catalog ?? DEFAULT_CATALOG_TIMEOUT;
100
100
  const executionTimeout = config.timeout?.execution ?? DEFAULT_EXECUTION_TIMEOUT;
101
101
  return {
@@ -241,46 +241,12 @@ var connect = Effect.fnUntraced(function* (server, config, directory, authProvid
241
241
  }
242
242
  };
243
243
  }
244
- yield* cleanupStdioDescendants(transport).pipe(Effect.andThen(Effect.promise(() => transport.close())), Effect.ignore);
244
+ yield* Effect.promise(() => transport.close()).pipe(Effect.ignore);
245
245
  const error = Cause.squash(exit.cause);
246
246
  if (error instanceof UnauthorizedError)
247
247
  return yield* new NeedsAuthError({ server });
248
248
  return yield* new ConnectError({ server, message: error instanceof Error ? error.message : String(error) });
249
249
  });
250
- var cleanupStdioDescendants = (transport) => Effect.gen(function* () {
251
- if (!(transport instanceof StdioClientTransport))
252
- return;
253
- const pid = transport.pid;
254
- if (typeof pid !== "number")
255
- return;
256
- yield* Effect.forEach(yield* descendantPids(pid), (pid2) => Effect.try({
257
- try: () => process.kill(pid2, "SIGTERM"),
258
- catch: () => {
259
- return;
260
- }
261
- }).pipe(Effect.ignore), { discard: true });
262
- });
263
- var descendantPids = Effect.fnUntraced(function* (root) {
264
- if (process.platform === "win32")
265
- return [];
266
- const result = [];
267
- const queue = [root];
268
- for (let index = 0;index < queue.length; index++) {
269
- const parent = queue[index];
270
- if (parent === undefined)
271
- return result;
272
- const children = (yield* childPids(parent)).filter((pid) => !result.includes(pid));
273
- result.push(...children);
274
- queue.push(...children);
275
- }
276
- return result;
277
- });
278
- var childPids = (pid) => Effect.promise(() => new Promise((resolve) => {
279
- execFile("pgrep", ["-P", String(pid)], { encoding: "utf8" }, (_error, stdout) => {
280
- resolve(stdout.split(`
281
- `).map((line) => Number.parseInt(line, 10)).filter((pid2) => Number.isInteger(pid2)));
282
- });
283
- }));
284
250
  async function paginate(list, items) {
285
251
  const collected = [];
286
252
  const seen = new Set;
@@ -1,12 +1,12 @@
1
1
  import {
2
2
  exports_mcp
3
- } from "./app-1c00jchy.js";
3
+ } from "./repository-cache-1c00jchy.js";
4
4
  import {
5
5
  exports_app
6
- } from "./app-50jxp3hw.js";
6
+ } from "./repository-cache-50jxp3hw.js";
7
7
  import {
8
8
  __export
9
- } from "./app-rvfvac9x.js";
9
+ } from "./repository-cache-rvfvac9x.js";
10
10
 
11
11
  // src/plugin/websearch/parallel.ts
12
12
  var exports_parallel = {};
@@ -1,12 +1,12 @@
1
1
  import {
2
2
  llmClient
3
- } from "./app-m01ryvbe.js";
3
+ } from "./repository-cache-m01ryvbe.js";
4
4
  import {
5
5
  exports_model_resolver
6
- } from "./app-8ssvbmmf.js";
6
+ } from "./repository-cache-j83wek79.js";
7
7
  import {
8
8
  __export
9
- } from "./app-rvfvac9x.js";
9
+ } from "./repository-cache-rvfvac9x.js";
10
10
 
11
11
  // src/generate.ts
12
12
  var exports_generate = {};
@@ -1,12 +1,12 @@
1
1
  import {
2
2
  KVTable
3
- } from "./app-wmxdh12w.js";
3
+ } from "./repository-cache-wmxdh12w.js";
4
4
  import {
5
5
  exports_database
6
- } from "./app-n5mwvj6g.js";
6
+ } from "./repository-cache-sn0zfpmh.js";
7
7
  import {
8
8
  __export
9
- } from "./app-rvfvac9x.js";
9
+ } from "./repository-cache-rvfvac9x.js";
10
10
 
11
11
  // src/kv.ts
12
12
  var exports_kv = {};
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  __export
3
- } from "./app-rvfvac9x.js";
3
+ } from "./repository-cache-rvfvac9x.js";
4
4
 
5
5
  // src/instructions/index.ts
6
6
  var exports_instructions = {};
@@ -2,7 +2,7 @@ import {
2
2
  SQLiteEffectPreparedQuery,
3
3
  SQLiteEffectSession,
4
4
  SQLiteEffectTransaction
5
- } from "./app-agn74pqn.js";
5
+ } from "./repository-cache-maahekq3.js";
6
6
 
7
7
  // src/database/drizzle/effect-sqlite/session.ts
8
8
  import * as Context from "effect/Context";
@@ -10,6 +10,10 @@ import * as Effect from "effect/Effect";
10
10
  import * as Exit from "effect/Exit";
11
11
  import * as Scope from "effect/Scope";
12
12
  import { entityKind } from "drizzle-orm/entity";
13
+ function managesTransactionsNatively(client) {
14
+ return client.transactionStatements === false;
15
+ }
16
+
13
17
  class EffectSQLiteSession extends SQLiteEffectSession {
14
18
  client;
15
19
  relations;
@@ -42,6 +46,8 @@ class EffectSQLiteSession extends SQLiteEffectSession {
42
46
  return connection.executeUnprepared(query, [], undefined).pipe(Effect.asVoid);
43
47
  }
44
48
  withTransaction(effect, config) {
49
+ if (managesTransactionsNatively(this.client))
50
+ return this.client.withTransaction(effect);
45
51
  return Effect.uninterruptibleMask((restore) => Effect.withFiber((fiber) => {
46
52
  const services = fiber.context;
47
53
  const connectionOption = Context.getOption(services, this.client.transactionService);
@@ -70,4 +76,4 @@ class EffectSQLiteTransaction extends SQLiteEffectTransaction {
70
76
  transaction = (tx) => this.session.transaction(tx);
71
77
  }
72
78
 
73
- export { EffectSQLiteSession, EffectSQLiteTransaction };
79
+ export { managesTransactionsNatively, EffectSQLiteSession, EffectSQLiteTransaction };
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  createProviderPlugin
3
- } from "./app-0zz82cjq.js";
3
+ } from "./repository-cache-0zz82cjq.js";
4
4
  import {
5
5
  __require
6
- } from "./app-rvfvac9x.js";
6
+ } from "./repository-cache-rvfvac9x.js";
7
7
 
8
8
  // src/plugin/provider/cohere.ts
9
9
  var CoherePlugin = createProviderPlugin({
@@ -1,15 +1,15 @@
1
1
  import {
2
2
  exports_permission
3
- } from "./app-a9bmtk5v.js";
3
+ } from "./repository-cache-ghgrp5mb.js";
4
4
  import {
5
5
  exports_state
6
- } from "./app-wt193r4g.js";
6
+ } from "./repository-cache-wt193r4g.js";
7
7
  import {
8
8
  exports_bus
9
- } from "./app-dm7mk5x3.js";
9
+ } from "./repository-cache-y56d2anz.js";
10
10
  import {
11
11
  __export
12
- } from "./app-rvfvac9x.js";
12
+ } from "./repository-cache-rvfvac9x.js";
13
13
 
14
14
  // src/skill.ts
15
15
  var exports_skill = {};