@opencode-ai/core 0.0.0-next-17403 → 0.0.0-next-17430

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 (741) hide show
  1. package/dist/account/sql.js +2 -2
  2. package/dist/agent.js +72 -71
  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 +70 -69
  7. package/dist/catalog.js +80 -79
  8. package/dist/chunks/{file-02dbfq60.js → location-mutation-02dbfq60.js} +1 -1
  9. package/dist/chunks/{file-04kwjb53.js → location-mutation-04kwjb53.js} +2 -2
  10. package/dist/chunks/{file-5h7b67x4.js → location-mutation-04t2zee8.js} +2 -2
  11. package/dist/chunks/location-mutation-0brv01ad.js +49 -0
  12. package/dist/chunks/{file-ffwyrq4f.js → location-mutation-0d1fy242.js} +3 -3
  13. package/dist/chunks/{file-hzcp77hd.js → location-mutation-0frekq84.js} +4 -4
  14. package/dist/chunks/{file-yq3qvvc0.js → location-mutation-0ftgkncw.js} +19 -20
  15. package/dist/chunks/{file-gtmsfgej.js → location-mutation-0hd32y2v.js} +2 -2
  16. package/dist/chunks/{file-0kvmztkf.js → location-mutation-0kvmztkf.js} +1 -1
  17. package/dist/chunks/{file-0r325ptc.js → location-mutation-0r325ptc.js} +2 -2
  18. package/dist/chunks/{file-k24ym88j.js → location-mutation-0r823fba.js} +5 -5
  19. package/dist/chunks/{file-b1205z0m.js → location-mutation-0vsj68r5.js} +4 -4
  20. package/dist/chunks/{file-10xtr3be.js → location-mutation-10xtr3be.js} +2 -2
  21. package/dist/chunks/{file-epr59vh3.js → location-mutation-125t8n5e.js} +2 -2
  22. package/dist/chunks/{file-18pv8fg3.js → location-mutation-18pv8fg3.js} +2 -2
  23. package/dist/chunks/{file-1c00jchy.js → location-mutation-1c00jchy.js} +2 -2
  24. package/dist/chunks/{file-fzt78a2e.js → location-mutation-1hheb5wa.js} +3 -3
  25. package/dist/chunks/{file-1kvtxahz.js → location-mutation-1kvtxahz.js} +1 -1
  26. package/dist/chunks/{file-1xksxgzs.js → location-mutation-1xksxgzs.js} +2 -2
  27. package/dist/chunks/{file-9qhx1q0s.js → location-mutation-1xqbk91z.js} +8 -8
  28. package/dist/chunks/{file-25pxtba7.js → location-mutation-25pxtba7.js} +1 -1
  29. package/dist/chunks/{file-qe29gfxk.js → location-mutation-2hdgz33f.js} +8 -8
  30. package/dist/chunks/{file-1j6sm257.js → location-mutation-2hv0exgv.js} +19 -19
  31. package/dist/chunks/{file-2m0g72hh.js → location-mutation-2m0g72hh.js} +1 -1
  32. package/dist/chunks/{file-whdt0xgm.js → location-mutation-2n0gcgrs.js} +5 -5
  33. package/dist/chunks/{file-2nmyybe0.js → location-mutation-2nmyybe0.js} +1 -1
  34. package/dist/chunks/{file-z98ygq6h.js → location-mutation-2raxx5kq.js} +14 -14
  35. package/dist/chunks/{file-qpxjj5fe.js → location-mutation-34tb0anc.js} +8 -8
  36. package/dist/chunks/{file-w5haq628.js → location-mutation-36y0ktj1.js} +25 -25
  37. package/dist/chunks/{file-37rcj8p3.js → location-mutation-37rcj8p3.js} +3 -3
  38. package/dist/chunks/{file-je3y3jh3.js → location-mutation-3b1fswre.js} +4 -4
  39. package/dist/chunks/{file-wsvrv759.js → location-mutation-3c4ted42.js} +2 -2
  40. package/dist/chunks/{file-3e69n02a.js → location-mutation-3e69n02a.js} +3 -3
  41. package/dist/chunks/{file-x7r4ry9d.js → location-mutation-3g101c70.js} +4 -4
  42. package/dist/chunks/{file-21rsh1dw.js → location-mutation-3g7f11td.js} +10 -10
  43. package/dist/chunks/{file-3mfgaav1.js → location-mutation-3mfgaav1.js} +4 -4
  44. package/dist/chunks/{file-nwdbh955.js → location-mutation-3pmhp4vf.js} +2 -2
  45. package/dist/chunks/{file-3thh6229.js → location-mutation-3thh6229.js} +2 -2
  46. package/dist/chunks/{file-3vh42rcr.js → location-mutation-3vh42rcr.js} +2 -2
  47. package/dist/chunks/{file-3w0f1yxt.js → location-mutation-3w0f1yxt.js} +3 -3
  48. package/dist/chunks/{file-myfsnmxq.js → location-mutation-41tyvzhk.js} +2 -2
  49. package/dist/chunks/{file-ek6pkfvs.js → location-mutation-47kkmjdz.js} +13 -13
  50. package/dist/chunks/{file-4seewwjc.js → location-mutation-4ehync6t.js} +29 -34
  51. package/dist/chunks/{file-60tcngwc.js → location-mutation-4fwscp80.js} +7 -7
  52. package/dist/chunks/{file-06c3hbpw.js → location-mutation-4s2x3fer.js} +8 -8
  53. package/dist/chunks/{file-4s2xwh5d.js → location-mutation-4s2xwh5d.js} +3 -3
  54. package/dist/chunks/{file-d3xxf7rh.js → location-mutation-4t2p9scn.js} +10 -10
  55. package/dist/chunks/{file-04fhvk4h.js → location-mutation-4vtx7cev.js} +6 -6
  56. package/dist/chunks/{file-4zzdwbaz.js → location-mutation-4zzdwbaz.js} +2 -2
  57. package/dist/chunks/{file-50jxp3hw.js → location-mutation-50jxp3hw.js} +1 -1
  58. package/dist/chunks/{file-52jzav25.js → location-mutation-52jzav25.js} +1 -1
  59. package/dist/chunks/{file-t68bqjdv.js → location-mutation-540j0gfy.js} +3 -3
  60. package/dist/chunks/{file-56p2m126.js → location-mutation-56p2m126.js} +1 -1
  61. package/dist/chunks/{file-57tzwnz4.js → location-mutation-57tzwnz4.js} +1 -1
  62. package/dist/chunks/{file-sb0z03rs.js → location-mutation-59bcz2pr.js} +10 -10
  63. package/dist/chunks/{file-5gcdyz0j.js → location-mutation-5gcdyz0j.js} +4 -4
  64. package/dist/chunks/{file-r181tj8c.js → location-mutation-5nh5hezc.js} +10 -10
  65. package/dist/chunks/{file-5p2sx24b.js → location-mutation-5p2sx24b.js} +3 -3
  66. package/dist/chunks/{file-5pfeh60c.js → location-mutation-5pfeh60c.js} +2 -2
  67. package/dist/chunks/{file-5rs65q6p.js → location-mutation-5rs65q6p.js} +1 -1
  68. package/dist/chunks/{file-5sgbvx3z.js → location-mutation-5sgbvx3z.js} +2 -2
  69. package/dist/chunks/location-mutation-61kbpxak.js +252 -0
  70. package/dist/chunks/{file-q50btfg8.js → location-mutation-64jjq47w.js} +13 -13
  71. package/dist/chunks/{file-m1kg34f8.js → location-mutation-68x2vr81.js} +28 -28
  72. package/dist/chunks/{file-ajdmexs0.js → location-mutation-6gnb35n6.js} +60 -60
  73. package/dist/chunks/{file-agatm6vw.js → location-mutation-6j3axpbw.js} +27 -27
  74. package/dist/chunks/{file-rcfw24gw.js → location-mutation-6rkf06x9.js} +3 -3
  75. package/dist/chunks/{file-6sc9h3ca.js → location-mutation-6sc9h3ca.js} +1 -1
  76. package/dist/chunks/{file-706a4azd.js → location-mutation-706a4azd.js} +1 -1
  77. package/dist/chunks/{file-56r190jv.js → location-mutation-753v6vp3.js} +8 -8
  78. package/dist/chunks/{file-74fq3cfj.js → location-mutation-78fah0z2.js} +4 -4
  79. package/dist/chunks/{file-099wjcm7.js → location-mutation-7jcjw3aq.js} +3 -3
  80. package/dist/chunks/{file-7mrpdsq5.js → location-mutation-7mrpdsq5.js} +1 -1
  81. package/dist/chunks/{file-7wcmqxrc.js → location-mutation-7wcmqxrc.js} +1 -1
  82. package/dist/chunks/{file-857g7h76.js → location-mutation-857g7h76.js} +1 -1
  83. package/dist/chunks/{file-88jbfw8z.js → location-mutation-88jbfw8z.js} +2 -2
  84. package/dist/chunks/{file-gm8kdh5e.js → location-mutation-8v47shgf.js} +3 -9
  85. package/dist/chunks/{file-82q3fqf6.js → location-mutation-8v70s6ab.js} +3 -3
  86. package/dist/chunks/location-mutation-8vhzxx5g.js +25 -0
  87. package/dist/chunks/{file-8ywqk2j9.js → location-mutation-8ywqk2j9.js} +1 -1
  88. package/dist/chunks/{file-93qdgxxd.js → location-mutation-93qdgxxd.js} +1 -1
  89. package/dist/chunks/{file-zdpmb5x8.js → location-mutation-96r5thkw.js} +7 -7
  90. package/dist/chunks/{file-999qd968.js → location-mutation-999qd968.js} +1 -1
  91. package/dist/chunks/{file-52pf4f5y.js → location-mutation-9a17mjm1.js} +10 -10
  92. package/dist/chunks/{file-9d2xhdr4.js → location-mutation-9d2xhdr4.js} +3 -3
  93. package/dist/chunks/{file-9f0rnpkn.js → location-mutation-9f0rnpkn.js} +1 -1
  94. package/dist/chunks/{file-ew2nsy16.js → location-mutation-9hkg5kd0.js} +90 -86
  95. package/dist/chunks/{file-5fvy871a.js → location-mutation-9q0jhgvd.js} +6 -6
  96. package/dist/chunks/{file-9q1hedyj.js → location-mutation-9q1hedyj.js} +2 -2
  97. package/dist/chunks/{file-9r0qzhnf.js → location-mutation-9r0qzhnf.js} +2 -2
  98. package/dist/chunks/{file-wcn5x42d.js → location-mutation-a1rjphzg.js} +2 -2
  99. package/dist/chunks/{file-hqcvr4pq.js → location-mutation-a5wmgav8.js} +15 -15
  100. package/dist/chunks/{file-a65h300v.js → location-mutation-a65h300v.js} +2 -2
  101. package/dist/chunks/{file-m059dh9g.js → location-mutation-arz1ps0t.js} +24 -24
  102. package/dist/chunks/{file-ayfwnm78.js → location-mutation-ayfwnm78.js} +2 -2
  103. package/dist/chunks/{file-6mkabcbx.js → location-mutation-b0mbejr1.js} +1 -1
  104. package/dist/chunks/{file-bxwqh45t.js → location-mutation-b9h1f4dj.js} +30 -30
  105. package/dist/chunks/{file-x5mvbkbt.js → location-mutation-bqqx0tzx.js} +8 -8
  106. package/dist/chunks/{file-1a5z6bwx.js → location-mutation-bw2d55k2.js} +2 -2
  107. package/dist/chunks/{file-byab506k.js → location-mutation-byab506k.js} +1 -1
  108. package/dist/chunks/{file-xq5g3gjg.js → location-mutation-byapkyxa.js} +7 -7
  109. package/dist/chunks/{file-kbfzcbvy.js → location-mutation-bzdn223g.js} +5 -5
  110. package/dist/chunks/{file-cgvnqv92.js → location-mutation-cgvnqv92.js} +1 -1
  111. package/dist/chunks/{file-as13d7jp.js → location-mutation-cnjn67jn.js} +8 -4
  112. package/dist/chunks/{file-88s0dgdc.js → location-mutation-csnfef6e.js} +8 -8
  113. package/dist/chunks/{file-699y0wfg.js → location-mutation-cyc4yvfk.js} +3 -3
  114. package/dist/chunks/{file-cz3dkvcz.js → location-mutation-cz3dkvcz.js} +1 -1
  115. package/dist/chunks/{file-d076mabj.js → location-mutation-d076mabj.js} +2 -2
  116. package/dist/chunks/{file-my4a0tz0.js → location-mutation-d6jrwgq9.js} +10 -10
  117. package/dist/chunks/{file-7mqnjm5g.js → location-mutation-d6vgw2a8.js} +5 -5
  118. package/dist/chunks/{file-d6vvk673.js → location-mutation-d6vvk673.js} +1 -1
  119. package/dist/chunks/{file-ddn74qps.js → location-mutation-ddn74qps.js} +2 -2
  120. package/dist/chunks/{file-16eg45cq.js → location-mutation-dgjrfg3r.js} +9 -9
  121. package/dist/chunks/{file-dhphtf1x.js → location-mutation-dhphtf1x.js} +1 -1
  122. package/dist/chunks/{file-k7px6p1j.js → location-mutation-djcms1h8.js} +5 -5
  123. package/dist/chunks/{file-a2j6wc1m.js → location-mutation-ds2n1rwg.js} +87 -88
  124. package/dist/chunks/{file-e1z9a0ts.js → location-mutation-e1z9a0ts.js} +2 -2
  125. package/dist/chunks/{file-jkrm4ad7.js → location-mutation-ecxv0vtt.js} +10 -0
  126. package/dist/chunks/{file-ed4jjjcc.js → location-mutation-ed4jjjcc.js} +2 -2
  127. package/dist/chunks/{file-jdqyj7wg.js → location-mutation-ef6yet2x.js} +3 -3
  128. package/dist/chunks/location-mutation-em6xpscd.js +35 -0
  129. package/dist/chunks/{file-nhv9h1t5.js → location-mutation-en0xy9gf.js} +7 -7
  130. package/dist/chunks/{file-erj4j75s.js → location-mutation-erj4j75s.js} +1 -1
  131. package/dist/chunks/{file-eyk9wdct.js → location-mutation-eyk9wdct.js} +2 -2
  132. package/dist/chunks/{file-3r07cnyb.js → location-mutation-eynva1vt.js} +4 -4
  133. package/dist/chunks/{file-m0s62zhg.js → location-mutation-ezdcc31m.js} +9 -9
  134. package/dist/chunks/{file-f05p34aa.js → location-mutation-f05p34aa.js} +3 -3
  135. package/dist/chunks/{file-fm1nvm5g.js → location-mutation-fm1nvm5g.js} +1 -1
  136. package/dist/chunks/{file-fk4yarb0.js → location-mutation-fmfg4dfa.js} +7 -7
  137. package/dist/chunks/{file-fmyre8m1.js → location-mutation-fmyre8m1.js} +1 -1
  138. package/dist/chunks/{file-nd15qks4.js → location-mutation-fyf1y3p4.js} +8 -8
  139. package/dist/chunks/{file-0cgwng91.js → location-mutation-g64ww8jz.js} +5 -5
  140. package/dist/chunks/{file-5wm2dksb.js → location-mutation-g6tw2wts.js} +4 -4
  141. package/dist/chunks/{file-g9yygpzr.js → location-mutation-g9yygpzr.js} +1 -1
  142. package/dist/chunks/{file-gcay93cp.js → location-mutation-gcay93cp.js} +1 -1
  143. package/dist/chunks/{file-gd2xppx8.js → location-mutation-gd2xppx8.js} +1 -1
  144. package/dist/chunks/{file-h8ecejt5.js → location-mutation-h8ecejt5.js} +1 -1
  145. package/dist/chunks/{file-8nwtst08.js → location-mutation-h90cytwx.js} +6 -6
  146. package/dist/chunks/{file-j2z43mps.js → location-mutation-hcewn7yc.js} +3 -3
  147. package/dist/chunks/{file-hkse6vtj.js → location-mutation-hx586e8c.js} +9 -9
  148. package/dist/chunks/location-mutation-j1x99epj.js +1022 -0
  149. package/dist/chunks/{file-p6y5138g.js → location-mutation-j4vd37kq.js} +14 -14
  150. package/dist/chunks/{file-kqpvkp9c.js → location-mutation-j6db3kpr.js} +6 -6
  151. package/dist/chunks/{file-s87aan9s.js → location-mutation-jccmgrt1.js} +13 -13
  152. package/dist/chunks/{file-ngff2d33.js → location-mutation-jjyvhwzc.js} +1 -1
  153. package/dist/chunks/{file-jssy2dr3.js → location-mutation-jssy2dr3.js} +2 -2
  154. package/dist/chunks/{file-n23a2b6z.js → location-mutation-jz4dr5fs.js} +3 -3
  155. package/dist/chunks/{file-c28j3fgz.js → location-mutation-karq4m2g.js} +8 -8
  156. package/dist/chunks/{file-f9c6f2tj.js → location-mutation-kb4hzjkb.js} +9 -9
  157. package/dist/chunks/{file-kcwh27nh.js → location-mutation-kcwh27nh.js} +3 -3
  158. package/dist/chunks/{file-kg1345f7.js → location-mutation-kg1345f7.js} +1 -1
  159. package/dist/chunks/{file-re7fg789.js → location-mutation-khwhzsbc.js} +3 -3
  160. package/dist/chunks/{file-x76ytg7n.js → location-mutation-kv1bkwfy.js} +4 -4
  161. package/dist/chunks/{file-m01ryvbe.js → location-mutation-m01ryvbe.js} +1 -1
  162. package/dist/chunks/{file-zvvqrm9j.js → location-mutation-m1a1hezg.js} +8 -8
  163. package/dist/chunks/{file-mf0hyk7z.js → location-mutation-mf0hyk7z.js} +1 -1
  164. package/dist/chunks/location-mutation-mh28new4.js +17 -0
  165. package/dist/chunks/{file-6ny9qv71.js → location-mutation-mhv1kjkc.js} +2 -2
  166. package/dist/chunks/{file-pev1jjfq.js → location-mutation-mm9ph8xs.js} +10 -10
  167. package/dist/chunks/{file-dg389w8c.js → location-mutation-mqjfxy6k.js} +34 -32
  168. package/dist/chunks/{file-9bfkaaey.js → location-mutation-mvnm9zw2.js} +6 -6
  169. package/dist/chunks/{file-mwceq5am.js → location-mutation-mwceq5am.js} +1 -1
  170. package/dist/chunks/{file-ezatpk0p.js → location-mutation-n6x25y5w.js} +42 -20
  171. package/dist/chunks/{file-knch8gq3.js → location-mutation-n8nwk0yn.js} +6 -6
  172. package/dist/chunks/{file-nesb2rcz.js → location-mutation-nesb2rcz.js} +2 -2
  173. package/dist/chunks/{file-nr76rjj3.js → location-mutation-nr76rjj3.js} +2 -2
  174. package/dist/chunks/{file-nv7zjdpe.js → location-mutation-nv7zjdpe.js} +2 -2
  175. package/dist/chunks/{file-nzrjycs5.js → location-mutation-nzrjycs5.js} +1 -1
  176. package/dist/chunks/{file-yn1hcdhn.js → location-mutation-p1ndb1ng.js} +19 -19
  177. package/dist/chunks/{file-pfqehjmy.js → location-mutation-pfqehjmy.js} +2 -2
  178. package/dist/chunks/{file-ph1me6ah.js → location-mutation-ph1me6ah.js} +2 -2
  179. package/dist/chunks/{file-dpr2gw0q.js → location-mutation-pmk17571.js} +12 -12
  180. package/dist/chunks/{file-pq4b4pqk.js → location-mutation-pq4b4pqk.js} +2 -2
  181. package/dist/chunks/{file-prf9bavk.js → location-mutation-prf9bavk.js} +3 -3
  182. package/dist/chunks/{file-q4r4pzs4.js → location-mutation-q4r4pzs4.js} +1 -1
  183. package/dist/chunks/{file-dsax7ex2.js → location-mutation-qcrc8pqp.js} +3 -3
  184. package/dist/chunks/{file-qe0d689s.js → location-mutation-qe0d689s.js} +2 -2
  185. package/dist/chunks/{file-8mc0j7z9.js → location-mutation-qk93sxrf.js} +3 -3
  186. package/dist/chunks/{file-f498y0cd.js → location-mutation-qs8s5cph.js} +14 -14
  187. package/dist/chunks/{file-j3k1mby6.js → location-mutation-r25d42v2.js} +9 -9
  188. package/dist/chunks/{file-r3k9abhd.js → location-mutation-r3k9abhd.js} +2 -2
  189. package/dist/chunks/{file-spj6bbpr.js → location-mutation-r5fy7jaj.js} +7 -7
  190. package/dist/chunks/{file-rqswsgbs.js → location-mutation-rqswsgbs.js} +2 -2
  191. package/dist/chunks/{file-rt6yg6j2.js → location-mutation-rt6yg6j2.js} +2 -2
  192. package/dist/chunks/{file-ryap75b3.js → location-mutation-ryap75b3.js} +1 -1
  193. package/dist/chunks/{file-qzd0yz0t.js → location-mutation-s4grnc9c.js} +2 -2
  194. package/dist/chunks/{file-s6by3cc4.js → location-mutation-s6by3cc4.js} +3 -3
  195. package/dist/chunks/{file-s9f13v9h.js → location-mutation-s9f13v9h.js} +1 -1
  196. package/dist/chunks/{file-smpeg8c9.js → location-mutation-smpeg8c9.js} +2 -2
  197. package/dist/chunks/{file-8c7fbazd.js → location-mutation-sqc4mbth.js} +3 -3
  198. package/dist/chunks/{file-szax8zgv.js → location-mutation-szax8zgv.js} +2 -2
  199. package/dist/chunks/{file-szjq6xea.js → location-mutation-szjq6xea.js} +2 -2
  200. package/dist/chunks/{file-t2j2ttmx.js → location-mutation-t2j2ttmx.js} +1 -1
  201. package/dist/chunks/{file-tcn24h1d.js → location-mutation-tcn24h1d.js} +1 -1
  202. package/dist/chunks/{file-tenv3kfs.js → location-mutation-tenv3kfs.js} +2 -2
  203. package/dist/chunks/{file-thstd87d.js → location-mutation-thstd87d.js} +1 -1
  204. package/dist/chunks/{file-ts4t4v20.js → location-mutation-ts4t4v20.js} +2 -2
  205. package/dist/chunks/{file-cs7xdwz4.js → location-mutation-tst25v8q.js} +11 -11
  206. package/dist/chunks/{file-tyh0a1hs.js → location-mutation-tyh0a1hs.js} +3 -3
  207. package/dist/chunks/{file-d1tntka9.js → location-mutation-v0g6bhw5.js} +4 -4
  208. package/dist/chunks/{file-pthvd50e.js → location-mutation-v2mmxxct.js} +9 -9
  209. package/dist/chunks/{file-v972xay6.js → location-mutation-v972xay6.js} +1 -1
  210. package/dist/chunks/{file-v9bfv94f.js → location-mutation-v9bfv94f.js} +1 -1
  211. package/dist/chunks/{file-c9jmxy9r.js → location-mutation-vbef7eh6.js} +10 -10
  212. package/dist/chunks/{file-jxr968m5.js → location-mutation-vgxq4rwz.js} +27 -16
  213. package/dist/chunks/{file-vynn1k31.js → location-mutation-vynn1k31.js} +2 -2
  214. package/dist/chunks/{file-vz89hfgr.js → location-mutation-vz89hfgr.js} +1 -1
  215. package/dist/chunks/{file-qj2eh82a.js → location-mutation-w5qc46y3.js} +5 -5
  216. package/dist/chunks/{file-3ws22bxm.js → location-mutation-wan5jy23.js} +32 -10
  217. package/dist/chunks/{file-wd268jeg.js → location-mutation-wd268jeg.js} +1 -1
  218. package/dist/chunks/{file-we2zmhe4.js → location-mutation-we2zmhe4.js} +2 -2
  219. package/dist/chunks/{file-b0gc5gc4.js → location-mutation-wf2b4nse.js} +7 -7
  220. package/dist/chunks/{file-wf37p1a1.js → location-mutation-wf37p1a1.js} +1 -1
  221. package/dist/chunks/{file-gym540kj.js → location-mutation-whywamfh.js} +10 -10
  222. package/dist/chunks/{file-bf1spywk.js → location-mutation-wjkswe73.js} +3 -3
  223. package/dist/chunks/{file-wmxdh12w.js → location-mutation-wmxdh12w.js} +1 -1
  224. package/dist/chunks/{file-wps8gh8n.js → location-mutation-wps8gh8n.js} +2 -2
  225. package/dist/chunks/{file-wt193r4g.js → location-mutation-wt193r4g.js} +1 -1
  226. package/dist/chunks/{file-vnxy6gek.js → location-mutation-x5y972rn.js} +7 -7
  227. package/dist/chunks/{file-v1wjczmx.js → location-mutation-x7qpnwtz.js} +18 -18
  228. package/dist/chunks/{file-xn9zgn7q.js → location-mutation-x8rs9ht6.js} +11 -11
  229. package/dist/chunks/{file-xfd1xnk3.js → location-mutation-xfd1xnk3.js} +2 -2
  230. package/dist/chunks/{file-xfrawapx.js → location-mutation-xfrawapx.js} +1 -1
  231. package/dist/chunks/{file-xgv25zxy.js → location-mutation-xgv25zxy.js} +1 -1
  232. package/dist/chunks/{file-89xgxbta.js → location-mutation-xh32hk89.js} +2 -2
  233. package/dist/chunks/location-mutation-xhz3jyrc.js +674 -0
  234. package/dist/chunks/{file-xq1vkeee.js → location-mutation-xq1vkeee.js} +2 -2
  235. package/dist/chunks/{file-zkw93360.js → location-mutation-xs439e4m.js} +5 -5
  236. package/dist/chunks/{file-xwftk1fd.js → location-mutation-xwftk1fd.js} +2 -2
  237. package/dist/chunks/{file-4pj9r35m.js → location-mutation-y0h0ays1.js} +5 -5
  238. package/dist/chunks/{file-y0x38cee.js → location-mutation-y0x38cee.js} +1 -1
  239. package/dist/chunks/{file-y3haz9xp.js → location-mutation-y5k63rkj.js} +56 -56
  240. package/dist/chunks/{file-y67x6rf6.js → location-mutation-y67x6rf6.js} +1 -1
  241. package/dist/chunks/{file-y8rs54ne.js → location-mutation-y8rs54ne.js} +1 -1
  242. package/dist/chunks/{file-k6vwd7kr.js → location-mutation-y980s7ka.js} +5 -5
  243. package/dist/chunks/{file-jann6xtr.js → location-mutation-yd9b12c5.js} +9 -18
  244. package/dist/chunks/{file-xyy9q1qk.js → location-mutation-yh0w3p42.js} +3 -3
  245. package/dist/chunks/{file-pea3nhwj.js → location-mutation-yh2ps9fk.js} +7 -7
  246. package/dist/chunks/{file-n7fc11e4.js → location-mutation-ys5ebwvd.js} +33 -33
  247. package/dist/chunks/{file-zv2xrqy4.js → location-mutation-ytkjjj9h.js} +8 -8
  248. package/dist/chunks/{file-sqg3c206.js → location-mutation-yvxhf1xv.js} +4 -4
  249. package/dist/chunks/{file-sr3gq9h2.js → location-mutation-yy8pjdz2.js} +113 -113
  250. package/dist/chunks/{file-yz0wm9s3.js → location-mutation-yz0wm9s3.js} +2 -2
  251. package/dist/chunks/{file-7n4s3vap.js → location-mutation-z9ywtz8k.js} +2 -2
  252. package/dist/chunks/{file-zbqqnp0n.js → location-mutation-zbqqnp0n.js} +1 -1
  253. package/dist/chunks/{file-zdkg1k91.js → location-mutation-zdkg1k91.js} +1 -1
  254. package/dist/chunks/{file-zfxc0ze5.js → location-mutation-zfxc0ze5.js} +1 -1
  255. package/dist/chunks/{file-5hy0t314.js → location-mutation-zstfrfkx.js} +3 -3
  256. package/dist/chunks/{file-zthe9zqc.js → location-mutation-zthe9zqc.js} +1 -1
  257. package/dist/chunks/{file-c8p0xtv5.js → location-mutation-zwb0c8qn.js} +7 -7
  258. package/dist/chunks/{file-as8pbtrg.js → location-mutation-zwmvj6m4.js} +10 -10
  259. package/dist/codemode/catalog.js +2 -2
  260. package/dist/codemode/instructions.js +4 -4
  261. package/dist/codemode/tool.js +3 -3
  262. package/dist/command.js +130 -129
  263. package/dist/config/markdown.js +2 -2
  264. package/dist/config/normalize.js +20 -20
  265. package/dist/config/plugin/agent.js +131 -130
  266. package/dist/config/plugin/command.js +132 -131
  267. package/dist/config/plugin/instruction.js +87 -86
  268. package/dist/config/plugin/policy.js +112 -111
  269. package/dist/config/plugin/provider.js +111 -110
  270. package/dist/config/plugin/reference.js +115 -114
  271. package/dist/config/plugin/skill-file.js +104 -103
  272. package/dist/config/plugin/skill.js +134 -133
  273. package/dist/config/plugin/source.js +111 -110
  274. package/dist/config/plugin/websearch.js +111 -110
  275. package/dist/config/variable.js +4 -4
  276. package/dist/config.js +110 -109
  277. package/dist/credential/sql.js +3 -3
  278. package/dist/credential.js +70 -69
  279. package/dist/database/database.js +67 -66
  280. package/dist/database/drizzle/effect-sqlite/driver.js +16 -16
  281. package/dist/database/drizzle/effect-sqlite/index.js +16 -16
  282. package/dist/database/drizzle/effect-sqlite/migrator.js +15 -15
  283. package/dist/database/drizzle/effect-sqlite/session.js +15 -15
  284. package/dist/database/drizzle/index.js +18 -18
  285. package/dist/database/drizzle/internal/drizzle-utils.js +2 -2
  286. package/dist/database/drizzle/sqlite-core/effect/count.js +2 -2
  287. package/dist/database/drizzle/sqlite-core/effect/db.js +10 -10
  288. package/dist/database/drizzle/sqlite-core/effect/delete.js +3 -3
  289. package/dist/database/drizzle/sqlite-core/effect/index.js +23 -23
  290. package/dist/database/drizzle/sqlite-core/effect/insert.js +3 -3
  291. package/dist/database/drizzle/sqlite-core/effect/query.js +2 -2
  292. package/dist/database/drizzle/sqlite-core/effect/raw.js +2 -2
  293. package/dist/database/drizzle/sqlite-core/effect/select.js +3 -3
  294. package/dist/database/drizzle/sqlite-core/effect/session.js +14 -14
  295. package/dist/database/drizzle/sqlite-core/effect/update.js +3 -3
  296. package/dist/database/drizzle/up-migrations/effect-sqlite.js +4 -4
  297. package/dist/database/drizzle/up-migrations/sqlite.js +3 -3
  298. package/dist/database/drizzle/up-migrations/utils.js +2 -2
  299. package/dist/database/drizzle.js +19 -19
  300. package/dist/database/migration/20260127222353_familiar_lady_ursula.js +2 -2
  301. package/dist/database/migration/20260211171708_add_project_commands.js +2 -2
  302. package/dist/database/migration/20260213144116_wakeful_the_professor.js +2 -2
  303. package/dist/database/migration/20260225215848_workspace.js +2 -2
  304. package/dist/database/migration/20260227213759_add_session_workspace_id.js +2 -2
  305. package/dist/database/migration/20260228203230_blue_harpoon.js +2 -2
  306. package/dist/database/migration/20260303231226_add_workspace_fields.js +2 -2
  307. package/dist/database/migration/20260309230000_move_org_to_state.js +2 -2
  308. package/dist/database/migration/20260312043431_session_message_cursor.js +2 -2
  309. package/dist/database/migration/20260323234822_events.js +2 -2
  310. package/dist/database/migration/20260410174513_workspace-name.js +2 -2
  311. package/dist/database/migration/20260413175956_chief_energizer.js +2 -2
  312. package/dist/database/migration/20260423070820_add_icon_url_override.js +2 -2
  313. package/dist/database/migration/20260427172553_slow_nightmare.js +2 -2
  314. package/dist/database/migration/20260428004200_add_session_path.js +2 -2
  315. package/dist/database/migration/20260501142318_next_venus.js +2 -2
  316. package/dist/database/migration/20260504145000_add_sync_owner.js +2 -2
  317. package/dist/database/migration/20260507164347_add_workspace_time.js +2 -2
  318. package/dist/database/migration/20260510033149_session_usage.js +2 -2
  319. package/dist/database/migration/20260511000411_data_migration_state.js +2 -2
  320. package/dist/database/migration/20260511173437_session-metadata.js +2 -2
  321. package/dist/database/migration/20260601010001_normalize_storage_paths.js +2 -2
  322. package/dist/database/migration/20260601202201_amazing_prowler.js +2 -2
  323. package/dist/database/migration/20260602002951_lowly_union_jack.js +2 -2
  324. package/dist/database/migration/20260602182828_add_project_directories.js +2 -2
  325. package/dist/database/migration/20260603001617_session_message_projection_indexes.js +2 -2
  326. package/dist/database/migration/20260603040000_session_message_projection_order.js +2 -2
  327. package/dist/database/migration/20260603141458_session_input_inbox.js +2 -2
  328. package/dist/database/migration/20260603160727_jittery_ezekiel_stane.js +2 -2
  329. package/dist/database/migration/20260604172448_event_sourced_session_input.js +2 -2
  330. package/dist/database/migration/20260605003541_add_session_context_snapshot.js +2 -2
  331. package/dist/database/migration/20260605042240_add_context_epoch_agent.js +2 -2
  332. package/dist/database/migration/20260611035744_credential.js +2 -2
  333. package/dist/database/migration/20260611192811_lush_chimera.js +2 -2
  334. package/dist/database/migration/20260612174303_project_dir_strategy.js +2 -2
  335. package/dist/database/migration/20260622142730_simplify_session_context_epoch.js +2 -2
  336. package/dist/database/migration/20260622170816_reset_v2_session_state.js +2 -2
  337. package/dist/database/migration/20260622202450_simplify_session_input.js +2 -2
  338. package/dist/database/migration/20260804233008_loose_psylocke.js +2 -2
  339. package/dist/database/migration/20260805200742_import_legacy_credentials.js +2 -2
  340. package/dist/database/migration/20260808023530_workspace_domain.js +2 -2
  341. package/dist/database/migration/20260811161259_execution_claim_attempts.js +2 -2
  342. package/dist/database/migration/20260812181746_session_inbox.js +2 -2
  343. package/dist/database/migration/20260812213948_worktree.js +7 -0
  344. package/dist/database/migration.gen.js +46 -45
  345. package/dist/database/migration.js +48 -47
  346. package/dist/database/path.js +3 -3
  347. package/dist/database/schema.gen.js +2 -2
  348. package/dist/database/schema.sql.js +2 -2
  349. package/dist/database/sqlite.bun.js +2 -2
  350. package/dist/database/sqlite.js +2 -2
  351. package/dist/database/sqlite.node.js +2 -2
  352. package/dist/database/sqlite.workerd.js +2 -2
  353. package/dist/database/v1-migration.bun.js +80 -79
  354. package/dist/database/v1-migration.js +2 -2
  355. package/dist/database/v1-migration.noop.js +1 -1
  356. package/dist/effect/app-node-builder.js +315 -311
  357. package/dist/effect/app-node-platform.js +2 -2
  358. package/dist/effect/keyed-mutex.js +2 -2
  359. package/dist/environment/driver.js +1 -1
  360. package/dist/environment/environment.js +88 -87
  361. package/dist/environment/exec-defaults.js +3 -3
  362. package/dist/environment/files.js +2 -2
  363. package/dist/environment/index.js +88 -87
  364. package/dist/environment/local.js +3 -3
  365. package/dist/environment/memory.js +3 -3
  366. package/dist/environment/unavailable.js +1 -1
  367. package/dist/event/sql.js +2 -2
  368. package/dist/event-logger.js +70 -69
  369. package/dist/file-mutation.js +89 -88
  370. package/dist/file.js +2 -2
  371. package/dist/filesystem/fff.bun.js +2 -2
  372. package/dist/filesystem/fff.js +2 -2
  373. package/dist/filesystem/fff.node.js +2 -2
  374. package/dist/filesystem/fff.workerd.js +2 -2
  375. package/dist/filesystem/ignore.js +1 -1
  376. package/dist/filesystem/location-watcher.js +111 -110
  377. package/dist/filesystem/protected.js +2 -2
  378. package/dist/filesystem/search.js +93 -92
  379. package/dist/filesystem/watcher-binding.js +2 -2
  380. package/dist/filesystem/watcher.js +4 -4
  381. package/dist/filesystem.js +93 -92
  382. package/dist/form.js +71 -70
  383. package/dist/formatter/builtins.js +3 -3
  384. package/dist/formatter.js +113 -112
  385. package/dist/generate.js +85 -84
  386. package/dist/git.js +5 -5
  387. package/dist/github-copilot/chat/convert-to-openai-compatible-chat-messages.js +2 -2
  388. package/dist/github-copilot/chat/get-response-metadata.js +2 -2
  389. package/dist/github-copilot/chat/map-openai-compatible-finish-reason.js +2 -2
  390. package/dist/github-copilot/chat/openai-compatible-chat-language-model.js +8 -8
  391. package/dist/github-copilot/chat/openai-compatible-chat-options.js +2 -2
  392. package/dist/github-copilot/chat/openai-compatible-prepare-tools.js +2 -2
  393. package/dist/github-copilot/copilot-provider.js +19 -19
  394. package/dist/github-copilot/models.js +4 -4
  395. package/dist/github-copilot/openai-compatible-error.js +2 -2
  396. package/dist/github-copilot/responses/convert-to-openai-responses-input.js +3 -3
  397. package/dist/github-copilot/responses/map-openai-responses-finish-reason.js +2 -2
  398. package/dist/github-copilot/responses/openai-error.js +2 -2
  399. package/dist/github-copilot/responses/openai-responses-language-model.js +12 -12
  400. package/dist/github-copilot/responses/openai-responses-prepare-tools.js +7 -7
  401. package/dist/github-copilot/responses/tool/code-interpreter.js +2 -2
  402. package/dist/github-copilot/responses/tool/file-search.js +2 -2
  403. package/dist/github-copilot/responses/tool/image-generation.js +2 -2
  404. package/dist/github-copilot/responses/tool/local-shell.js +2 -2
  405. package/dist/github-copilot/responses/tool/web-search-preview.js +2 -2
  406. package/dist/github-copilot/responses/tool/web-search.js +2 -2
  407. package/dist/id/id.js +2 -2
  408. package/dist/image/photon-wasm.bun.js +1 -1
  409. package/dist/image/photon-wasm.node.js +1 -1
  410. package/dist/image/photon-wasm.workerd.js +1 -1
  411. package/dist/image/photon.js +124 -123
  412. package/dist/image.js +124 -123
  413. package/dist/instruction-discovery.js +74 -73
  414. package/dist/instructions/builtins.js +83 -82
  415. package/dist/instructions/index.js +2 -2
  416. package/dist/integration/connection.js +2 -2
  417. package/dist/integration.js +77 -76
  418. package/dist/job.js +4 -4
  419. package/dist/kv/sql.js +3 -3
  420. package/dist/kv.js +70 -69
  421. package/dist/location-mutation.js +81 -80
  422. package/dist/location-service-map.js +81 -80
  423. package/dist/location-services.js +315 -311
  424. package/dist/location.js +80 -79
  425. package/dist/mcp/client.js +90 -89
  426. package/dist/mcp/index.js +127 -126
  427. package/dist/mcp/instructions.js +155 -154
  428. package/dist/mcp/oauth.js +3 -3
  429. package/dist/mcp/stdio.js +89 -88
  430. package/dist/mime.js +2 -2
  431. package/dist/model-resolver.js +83 -82
  432. package/dist/model.js +3 -3
  433. package/dist/models-dev.js +77 -76
  434. package/dist/oauth/page.js +2 -2
  435. package/dist/permission/saved.js +81 -80
  436. package/dist/permission/sql.js +6 -6
  437. package/dist/permission.js +101 -100
  438. package/dist/plugin/agent.js +102 -101
  439. package/dist/plugin/command.js +81 -80
  440. package/dist/plugin/hooks.js +3 -3
  441. package/dist/plugin/host.js +186 -185
  442. package/dist/plugin/internal.js +273 -271
  443. package/dist/plugin/models-dev.js +78 -77
  444. package/dist/plugin/plan.js +74 -73
  445. package/dist/plugin/promise.js +146 -145
  446. package/dist/plugin/provider/alibaba.js +3 -3
  447. package/dist/plugin/provider/amazon-bedrock.js +3 -3
  448. package/dist/plugin/provider/anthropic.js +3 -3
  449. package/dist/plugin/provider/azure.js +118 -117
  450. package/dist/plugin/provider/cerebras.js +3 -3
  451. package/dist/plugin/provider/cloudflare-ai-gateway.js +119 -118
  452. package/dist/plugin/provider/cloudflare-workers-ai.js +119 -118
  453. package/dist/plugin/provider/cohere.js +3 -3
  454. package/dist/plugin/provider/configured.js +116 -115
  455. package/dist/plugin/provider/deepinfra.js +3 -3
  456. package/dist/plugin/provider/dynamic.js +2 -2
  457. package/dist/plugin/provider/factory.js +2 -2
  458. package/dist/plugin/provider/gateway.js +3 -3
  459. package/dist/plugin/provider/github-copilot.js +84 -83
  460. package/dist/plugin/provider/gitlab.js +4 -4
  461. package/dist/plugin/provider/google-vertex.js +3 -3
  462. package/dist/plugin/provider/groq.js +3 -3
  463. package/dist/plugin/provider/kilo.js +3 -3
  464. package/dist/plugin/provider/llmgateway.js +79 -78
  465. package/dist/plugin/provider/mistral.js +3 -3
  466. package/dist/plugin/provider/nvidia.js +3 -3
  467. package/dist/plugin/provider/openai-compatible.js +2 -2
  468. package/dist/plugin/provider/openai.js +81 -80
  469. package/dist/plugin/provider/opencode.js +95 -94
  470. package/dist/plugin/provider/openrouter.js +4 -4
  471. package/dist/plugin/provider/perplexity.js +3 -3
  472. package/dist/plugin/provider/sap-ai-core.js +3 -3
  473. package/dist/plugin/provider/snowflake-cortex.js +3 -3
  474. package/dist/plugin/provider/togetherai.js +3 -3
  475. package/dist/plugin/provider/venice.js +3 -3
  476. package/dist/plugin/provider/vercel.js +3 -3
  477. package/dist/plugin/provider/xai.js +79 -78
  478. package/dist/plugin/provider/zenmux.js +3 -3
  479. package/dist/plugin/provider.js +154 -153
  480. package/dist/plugin/runtime.js +177 -176
  481. package/dist/plugin/sdk.js +71 -70
  482. package/dist/plugin/skill.js +132 -131
  483. package/dist/plugin/supervisor.js +278 -276
  484. package/dist/plugin/system-prompt.js +2 -2
  485. package/dist/plugin/variant.js +4 -4
  486. package/dist/plugin/warming.js +112 -111
  487. package/dist/plugin/websearch/exa.js +4 -4
  488. package/dist/plugin/websearch/firecrawl.js +5 -5
  489. package/dist/plugin/websearch/index.js +8 -8
  490. package/dist/plugin/websearch/mcp.js +3 -3
  491. package/dist/plugin/websearch/parallel.js +5 -5
  492. package/dist/plugin.js +187 -186
  493. package/dist/project/schema.js +3 -9
  494. package/dist/project/sql.js +5 -5
  495. package/dist/project.js +79 -84
  496. package/dist/provider.js +2 -2
  497. package/dist/pty/protocol.js +1 -1
  498. package/dist/pty/pty.bun.js +1 -1
  499. package/dist/pty/pty.node.js +1 -1
  500. package/dist/pty/pty.workerd.js +1 -1
  501. package/dist/pty/schema.js +2 -2
  502. package/dist/pty/ticket.js +72 -71
  503. package/dist/pty.js +114 -113
  504. package/dist/question.js +72 -71
  505. package/dist/reference/instructions.js +79 -78
  506. package/dist/reference.js +77 -76
  507. package/dist/repository-cache.js +7 -7
  508. package/dist/repository.js +2 -2
  509. package/dist/ripgrep/binary.js +3 -3
  510. package/dist/ripgrep.js +91 -90
  511. package/dist/schema.js +2 -2
  512. package/dist/session/compaction.js +148 -147
  513. package/dist/session/context.js +286 -284
  514. package/dist/session/error.js +4 -4
  515. package/dist/session/event.js +2 -2
  516. package/dist/session/execution/restart.js +117 -116
  517. package/dist/session/execution.js +117 -116
  518. package/dist/session/generate-node.js +292 -290
  519. package/dist/session/generate.js +2 -2
  520. package/dist/session/history.js +79 -78
  521. package/dist/session/inbox.js +79 -78
  522. package/dist/session/info.js +89 -88
  523. package/dist/session/instruction-entry.js +75 -74
  524. package/dist/session/instruction-state.js +10 -10
  525. package/dist/session/instructions.js +98 -97
  526. package/dist/session/message-updater.js +4 -4
  527. package/dist/session/message.js +2 -2
  528. package/dist/session/model-headers.js +4 -4
  529. package/dist/session/model-http.js +4 -4
  530. package/dist/session/model-request.js +294 -292
  531. package/dist/session/projector.js +91 -90
  532. package/dist/session/prompt-cache-diagnostics.js +2 -2
  533. package/dist/session/prompt-cache-key.js +3 -3
  534. package/dist/session/revert.js +116 -115
  535. package/dist/session/run-coordinator.js +2 -2
  536. package/dist/session/runner/index.js +86 -85
  537. package/dist/session/runner/llm.js +302 -300
  538. package/dist/session/runner/max-steps.js +2 -2
  539. package/dist/session/runner/model.js +85 -84
  540. package/dist/session/runner/publish-llm-event.js +4 -4
  541. package/dist/session/runner/retry.js +74 -73
  542. package/dist/session/runner/to-llm-message.js +2 -2
  543. package/dist/session/schema.js +2 -2
  544. package/dist/session/sql.js +6 -6
  545. package/dist/session/store.js +97 -96
  546. package/dist/session/title.js +114 -113
  547. package/dist/session/to-session-error.js +113 -112
  548. package/dist/session/transfer.js +181 -180
  549. package/dist/session/usage.js +2 -2
  550. package/dist/session.js +176 -175
  551. package/dist/shell/parse.js +4 -4
  552. package/dist/shell/select.js +3 -3
  553. package/dist/shell.js +123 -122
  554. package/dist/skill/discovery.js +3 -3
  555. package/dist/skill/instructions.js +103 -102
  556. package/dist/skill.js +102 -101
  557. package/dist/snapshot.js +111 -110
  558. package/dist/state.js +2 -2
  559. package/dist/tool/html-markdown.js +9 -0
  560. package/dist/tool/http-body.js +2 -2
  561. package/dist/tool/mcp.js +154 -153
  562. package/dist/tool/plugin/edit.js +141 -140
  563. package/dist/tool/plugin/file-diff.js +2 -2
  564. package/dist/tool/plugin/glob.js +113 -112
  565. package/dist/tool/plugin/grep.js +113 -112
  566. package/dist/tool/plugin/patch.js +140 -139
  567. package/dist/tool/plugin/question.js +104 -103
  568. package/dist/tool/plugin/read.js +116 -115
  569. package/dist/tool/plugin/shell.js +181 -180
  570. package/dist/tool/plugin/skill.js +103 -102
  571. package/dist/tool/plugin/subagent.js +178 -177
  572. package/dist/tool/plugin/webfetch.js +106 -103
  573. package/dist/tool/plugin/websearch.js +106 -105
  574. package/dist/tool/plugin/write.js +141 -140
  575. package/dist/tool/read-filesystem.js +95 -94
  576. package/dist/tool/runtime.js +2 -2
  577. package/dist/tool-output.js +112 -111
  578. package/dist/tool.js +145 -144
  579. package/dist/types/database/migration/20260812213948_worktree.d.ts +3 -0
  580. package/dist/types/location-service-map.d.ts +2 -2
  581. package/dist/types/location-services.d.ts +1 -2
  582. package/dist/types/permission.d.ts +10 -8
  583. package/dist/types/project/schema.d.ts +0 -16
  584. package/dist/types/project/sql.d.ts +1 -0
  585. package/dist/types/project.d.ts +0 -17
  586. package/dist/types/shell/parse.d.ts +17 -1
  587. package/dist/types/tool/html-markdown.d.ts +2 -0
  588. package/dist/types/tool/plugin/webfetch.d.ts +2 -1
  589. package/dist/types/worktree/directory.d.ts +9 -0
  590. package/dist/types/worktree/git.d.ts +22 -0
  591. package/dist/types/worktree/sql.d.ts +71 -0
  592. package/dist/types/worktree.d.ts +310 -0
  593. package/dist/util/array.js +1 -1
  594. package/dist/util/binary.js +1 -1
  595. package/dist/util/encode.js +1 -1
  596. package/dist/util/error.js +2 -2
  597. package/dist/util/identifier.js +1 -1
  598. package/dist/util/iife.js +2 -2
  599. package/dist/util/lazy.js +2 -2
  600. package/dist/util/path.js +1 -1
  601. package/dist/util/process-lock-ffi.bun.js +1 -1
  602. package/dist/util/process-lock-ffi.node.js +1 -1
  603. package/dist/util/process-lock-ffi.workerd.js +1 -1
  604. package/dist/util/process-lock.js +1 -1
  605. package/dist/util/retry.js +1 -1
  606. package/dist/util/slug.js +2 -2
  607. package/dist/util/token.js +2 -2
  608. package/dist/util/which.js +2 -2
  609. package/dist/util/wildcard.js +2 -2
  610. package/dist/v1/config/agent.js +4 -4
  611. package/dist/v1/config/attachment.js +3 -3
  612. package/dist/v1/config/command.js +2 -2
  613. package/dist/v1/config/config.js +15 -15
  614. package/dist/v1/config/error.js +3 -3
  615. package/dist/v1/config/formatter.js +2 -2
  616. package/dist/v1/config/layout.js +2 -2
  617. package/dist/v1/config/lsp.js +2 -2
  618. package/dist/v1/config/mcp.js +3 -3
  619. package/dist/v1/config/migrate.js +19 -19
  620. package/dist/v1/config/permission.js +2 -2
  621. package/dist/v1/config/plugin.js +2 -2
  622. package/dist/v1/config/provider-options.js +2 -2
  623. package/dist/v1/config/provider.js +3 -3
  624. package/dist/v1/config/server.js +3 -3
  625. package/dist/v1/config/skills.js +2 -2
  626. package/dist/v1/permission.js +1 -1
  627. package/dist/vcs/git.js +3 -3
  628. package/dist/vcs/hg.js +3 -3
  629. package/dist/vcs/patch.js +2 -2
  630. package/dist/vcs.js +84 -83
  631. package/dist/websearch.js +75 -74
  632. package/dist/wellknown/plugin.js +75 -74
  633. package/dist/wellknown.js +74 -73
  634. package/dist/workspace/driver.js +2 -2
  635. package/dist/workspace/sql.js +2 -2
  636. package/dist/workspace.js +71 -70
  637. package/dist/worktree/directory.js +12 -0
  638. package/dist/worktree/git.js +14 -0
  639. package/dist/worktree/sql.js +11 -0
  640. package/dist/worktree.js +130 -0
  641. package/package.json +8 -18
  642. package/dist/chunks/file-0tymthn6.js +0 -239
  643. package/dist/chunks/file-7mpw7j43.js +0 -287
  644. package/dist/chunks/file-j5dc019g.js +0 -77
  645. package/dist/project/copy-strategies.js +0 -86
  646. package/dist/project/copy.js +0 -120
  647. package/dist/project/directories.js +0 -89
  648. package/dist/shell/parser-wasm.bun.js +0 -10
  649. package/dist/shell/parser-wasm.node.js +0 -13
  650. package/dist/shell/parser-wasm.workerd.js +0 -7
  651. package/dist/types/project/copy-strategies.d.ts +0 -24
  652. package/dist/types/project/copy.d.ts +0 -96
  653. package/dist/types/project/directories.d.ts +0 -49
  654. package/dist/types/shell/parser-wasm.bun.d.ts +0 -5
  655. package/dist/types/shell/parser-wasm.node.d.ts +0 -5
  656. package/dist/types/shell/parser-wasm.workerd.d.ts +0 -5
  657. /package/dist/chunks/{file-0cgt0xh2.js → location-mutation-0cgt0xh2.js} +0 -0
  658. /package/dist/chunks/{file-0f48qthw.js → location-mutation-0f48qthw.js} +0 -0
  659. /package/dist/chunks/{file-0zz82cjq.js → location-mutation-0zz82cjq.js} +0 -0
  660. /package/dist/chunks/{file-1fb7bmpf.js → location-mutation-1fb7bmpf.js} +0 -0
  661. /package/dist/chunks/{file-1wcz8fvj.js → location-mutation-1wcz8fvj.js} +0 -0
  662. /package/dist/chunks/{file-2qdx6zz3.js → location-mutation-2qdx6zz3.js} +0 -0
  663. /package/dist/chunks/{file-3c4nztf9.js → location-mutation-3c4nztf9.js} +0 -0
  664. /package/dist/chunks/{file-3g3rpp2x.js → location-mutation-3g3rpp2x.js} +0 -0
  665. /package/dist/chunks/{file-3q6gbwmd.js → location-mutation-3q6gbwmd.js} +0 -0
  666. /package/dist/chunks/{file-3w3ybtfd.js → location-mutation-3w3ybtfd.js} +0 -0
  667. /package/dist/chunks/{file-47ty4mvs.js → location-mutation-47ty4mvs.js} +0 -0
  668. /package/dist/chunks/{file-4b2tz2m9.js → location-mutation-4b2tz2m9.js} +0 -0
  669. /package/dist/chunks/{file-5a5ch9ts.js → location-mutation-5a5ch9ts.js} +0 -0
  670. /package/dist/chunks/{file-5va1yh78.js → location-mutation-5va1yh78.js} +0 -0
  671. /package/dist/chunks/{file-69qrqpw0.js → location-mutation-69qrqpw0.js} +0 -0
  672. /package/dist/chunks/{file-6jtjggv5.js → location-mutation-6jtjggv5.js} +0 -0
  673. /package/dist/chunks/{file-6yt963b8.js → location-mutation-6yt963b8.js} +0 -0
  674. /package/dist/chunks/{file-7n9qwqk4.js → location-mutation-7n9qwqk4.js} +0 -0
  675. /package/dist/chunks/{file-8m0qaa0v.js → location-mutation-8m0qaa0v.js} +0 -0
  676. /package/dist/chunks/{file-8nn8kqcn.js → location-mutation-8nn8kqcn.js} +0 -0
  677. /package/dist/chunks/{file-8sj3ajy5.js → location-mutation-8sj3ajy5.js} +0 -0
  678. /package/dist/chunks/{file-8w9tzfz1.js → location-mutation-8w9tzfz1.js} +0 -0
  679. /package/dist/chunks/{file-906y0b6d.js → location-mutation-906y0b6d.js} +0 -0
  680. /package/dist/chunks/{file-9dct5xhx.js → location-mutation-9dct5xhx.js} +0 -0
  681. /package/dist/chunks/{file-9sdtsapf.js → location-mutation-9sdtsapf.js} +0 -0
  682. /package/dist/chunks/{file-a02svayp.js → location-mutation-a02svayp.js} +0 -0
  683. /package/dist/chunks/{file-a83yvq99.js → location-mutation-a83yvq99.js} +0 -0
  684. /package/dist/chunks/{file-ayevdmef.js → location-mutation-ayevdmef.js} +0 -0
  685. /package/dist/chunks/{file-b02txbh8.js → location-mutation-b02txbh8.js} +0 -0
  686. /package/dist/chunks/{file-bbqs2y60.js → location-mutation-bbqs2y60.js} +0 -0
  687. /package/dist/chunks/{file-brsh5f65.js → location-mutation-brsh5f65.js} +0 -0
  688. /package/dist/chunks/{file-bxdhjb3y.js → location-mutation-bxdhjb3y.js} +0 -0
  689. /package/dist/chunks/{file-c77ad0vh.js → location-mutation-c77ad0vh.js} +0 -0
  690. /package/dist/chunks/{file-cm67rqy2.js → location-mutation-cm67rqy2.js} +0 -0
  691. /package/dist/chunks/{file-d6s8p2vk.js → location-mutation-d6s8p2vk.js} +0 -0
  692. /package/dist/chunks/{file-dbah77c1.js → location-mutation-dbah77c1.js} +0 -0
  693. /package/dist/chunks/{file-df3v2q6j.js → location-mutation-df3v2q6j.js} +0 -0
  694. /package/dist/chunks/{file-dhcq6c44.js → location-mutation-dhcq6c44.js} +0 -0
  695. /package/dist/chunks/{file-dht5baf0.js → location-mutation-dht5baf0.js} +0 -0
  696. /package/dist/chunks/{file-dkmkay92.js → location-mutation-dkmkay92.js} +0 -0
  697. /package/dist/chunks/{file-dppgrtwb.js → location-mutation-dppgrtwb.js} +0 -0
  698. /package/dist/chunks/{file-ehj9csmv.js → location-mutation-ehj9csmv.js} +0 -0
  699. /package/dist/chunks/{file-emmqknsm.js → location-mutation-emmqknsm.js} +0 -0
  700. /package/dist/chunks/{file-ezs3tagn.js → location-mutation-ezs3tagn.js} +0 -0
  701. /package/dist/chunks/{file-f4cp4g4a.js → location-mutation-f4cp4g4a.js} +0 -0
  702. /package/dist/chunks/{file-f84sxdqn.js → location-mutation-f84sxdqn.js} +0 -0
  703. /package/dist/chunks/{file-faypg4r1.js → location-mutation-faypg4r1.js} +0 -0
  704. /package/dist/chunks/{file-g7k9te92.js → location-mutation-g7k9te92.js} +0 -0
  705. /package/dist/chunks/{file-gd5xeqc2.js → location-mutation-gd5xeqc2.js} +0 -0
  706. /package/dist/chunks/{file-ghm4673n.js → location-mutation-ghm4673n.js} +0 -0
  707. /package/dist/chunks/{file-ghwjy7my.js → location-mutation-ghwjy7my.js} +0 -0
  708. /package/dist/chunks/{file-gy500k2r.js → location-mutation-gy500k2r.js} +0 -0
  709. /package/dist/chunks/{file-hzeg9cfr.js → location-mutation-hzeg9cfr.js} +0 -0
  710. /package/dist/chunks/{file-j07kk359.js → location-mutation-j07kk359.js} +0 -0
  711. /package/dist/chunks/{file-jve7t217.js → location-mutation-jve7t217.js} +0 -0
  712. /package/dist/chunks/{file-kpdbz7gn.js → location-mutation-kpdbz7gn.js} +0 -0
  713. /package/dist/chunks/{file-kxy11nzk.js → location-mutation-kxy11nzk.js} +0 -0
  714. /package/dist/chunks/{file-kyyqvx4s.js → location-mutation-kyyqvx4s.js} +0 -0
  715. /package/dist/chunks/{file-m8cbvarh.js → location-mutation-m8cbvarh.js} +0 -0
  716. /package/dist/chunks/{file-ma07p6tt.js → location-mutation-ma07p6tt.js} +0 -0
  717. /package/dist/chunks/{file-ma60vzgv.js → location-mutation-ma60vzgv.js} +0 -0
  718. /package/dist/chunks/{file-n3m50c2t.js → location-mutation-n3m50c2t.js} +0 -0
  719. /package/dist/chunks/{file-nkm1m8dz.js → location-mutation-nkm1m8dz.js} +0 -0
  720. /package/dist/chunks/{file-nsc0c3zb.js → location-mutation-nsc0c3zb.js} +0 -0
  721. /package/dist/chunks/{file-qaarhjrp.js → location-mutation-qaarhjrp.js} +0 -0
  722. /package/dist/chunks/{file-qc167nrn.js → location-mutation-qc167nrn.js} +0 -0
  723. /package/dist/chunks/{file-qp95y4jb.js → location-mutation-qp95y4jb.js} +0 -0
  724. /package/dist/chunks/{file-r8f4w671.js → location-mutation-r8f4w671.js} +0 -0
  725. /package/dist/chunks/{file-rdfev9jy.js → location-mutation-rdfev9jy.js} +0 -0
  726. /package/dist/chunks/{file-rvfvac9x.js → location-mutation-rvfvac9x.js} +0 -0
  727. /package/dist/chunks/{file-s7whb9gt.js → location-mutation-s7whb9gt.js} +0 -0
  728. /package/dist/chunks/{file-se76j685.js → location-mutation-se76j685.js} +0 -0
  729. /package/dist/chunks/{file-sem2g21k.js → location-mutation-sem2g21k.js} +0 -0
  730. /package/dist/chunks/{file-tmb1f636.js → location-mutation-tmb1f636.js} +0 -0
  731. /package/dist/chunks/{file-ttxf0gsy.js → location-mutation-ttxf0gsy.js} +0 -0
  732. /package/dist/chunks/{file-tvmhrvfj.js → location-mutation-tvmhrvfj.js} +0 -0
  733. /package/dist/chunks/{file-v2adqbbe.js → location-mutation-v2adqbbe.js} +0 -0
  734. /package/dist/chunks/{file-wj4sxzqa.js → location-mutation-wj4sxzqa.js} +0 -0
  735. /package/dist/chunks/{file-wwntjmk1.js → location-mutation-wwntjmk1.js} +0 -0
  736. /package/dist/chunks/{file-wx89ywv3.js → location-mutation-wx89ywv3.js} +0 -0
  737. /package/dist/chunks/{file-wyqjaaa5.js → location-mutation-wyqjaaa5.js} +0 -0
  738. /package/dist/chunks/{file-x4q807cx.js → location-mutation-x4q807cx.js} +0 -0
  739. /package/dist/chunks/{file-yrqrg4vp.js → location-mutation-yrqrg4vp.js} +0 -0
  740. /package/dist/chunks/{file-z47nswr2.js → location-mutation-z47nswr2.js} +0 -0
  741. /package/dist/chunks/{file-zsf8rs93.js → location-mutation-zsf8rs93.js} +0 -0
@@ -1,15 +1,15 @@
1
1
  import {
2
2
  exports_location
3
- } from "./file-wcn5x42d.js";
3
+ } from "./location-mutation-a1rjphzg.js";
4
4
  import {
5
5
  exports_project
6
- } from "./file-4seewwjc.js";
6
+ } from "./location-mutation-4ehync6t.js";
7
7
  import {
8
8
  AbsolutePath
9
- } from "./file-j07kk359.js";
9
+ } from "./location-mutation-j07kk359.js";
10
10
  import {
11
11
  __export
12
- } from "./file-rvfvac9x.js";
12
+ } from "./location-mutation-rvfvac9x.js";
13
13
 
14
14
  // src/location-mutation.ts
15
15
  var exports_location_mutation = {};
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  exports_config
3
- } from "./file-hqcvr4pq.js";
3
+ } from "./location-mutation-a5wmgav8.js";
4
4
  import {
5
5
  __export
6
- } from "./file-rvfvac9x.js";
6
+ } from "./location-mutation-rvfvac9x.js";
7
7
 
8
8
  // src/plugin/warming.ts
9
9
  var exports_warming = {};
@@ -1,12 +1,12 @@
1
1
  import {
2
2
  exports_firecrawl
3
- } from "./file-f05p34aa.js";
3
+ } from "./location-mutation-f05p34aa.js";
4
4
  import {
5
5
  exports_exa
6
- } from "./file-tenv3kfs.js";
6
+ } from "./location-mutation-tenv3kfs.js";
7
7
  import {
8
8
  exports_parallel
9
- } from "./file-prf9bavk.js";
9
+ } from "./location-mutation-prf9bavk.js";
10
10
 
11
11
  // src/plugin/websearch/index.ts
12
12
  var WebSearchPlugins = [exports_exa.Plugin, exports_firecrawl.Plugin, exports_parallel.Plugin];
@@ -1,15 +1,15 @@
1
1
  import {
2
2
  exports_permission
3
- } from "./file-dg389w8c.js";
3
+ } from "./location-mutation-mqjfxy6k.js";
4
4
  import {
5
5
  exports_state
6
- } from "./file-wt193r4g.js";
6
+ } from "./location-mutation-wt193r4g.js";
7
7
  import {
8
8
  exports_bus
9
- } from "./file-knch8gq3.js";
9
+ } from "./location-mutation-n8nwk0yn.js";
10
10
  import {
11
11
  __export
12
- } from "./file-rvfvac9x.js";
12
+ } from "./location-mutation-rvfvac9x.js";
13
13
 
14
14
  // src/skill.ts
15
15
  var exports_skill = {};
@@ -1,27 +1,27 @@
1
1
  import {
2
2
  exports_skill_file
3
- } from "./file-b1205z0m.js";
3
+ } from "./location-mutation-0vsj68r5.js";
4
4
  import {
5
5
  exports_discovery
6
- } from "./file-a65h300v.js";
6
+ } from "./location-mutation-a65h300v.js";
7
+ import {
8
+ exports_skill
9
+ } from "./location-mutation-3g101c70.js";
7
10
  import {
8
11
  exports_config
9
- } from "./file-hqcvr4pq.js";
12
+ } from "./location-mutation-a5wmgav8.js";
10
13
  import {
11
14
  exports_watcher
12
- } from "./file-k6vwd7kr.js";
13
- import {
14
- exports_skill
15
- } from "./file-x7r4ry9d.js";
15
+ } from "./location-mutation-y980s7ka.js";
16
16
  import {
17
17
  exports_location
18
- } from "./file-wcn5x42d.js";
18
+ } from "./location-mutation-a1rjphzg.js";
19
19
  import {
20
20
  AbsolutePath
21
- } from "./file-j07kk359.js";
21
+ } from "./location-mutation-j07kk359.js";
22
22
  import {
23
23
  __export
24
- } from "./file-rvfvac9x.js";
24
+ } from "./location-mutation-rvfvac9x.js";
25
25
 
26
26
  // src/config/plugin/skill.ts
27
27
  var exports_skill2 = {};
@@ -1,15 +1,15 @@
1
1
  import {
2
2
  exports_provider_options
3
- } from "./file-y0x38cee.js";
3
+ } from "./location-mutation-y0x38cee.js";
4
4
  import {
5
5
  exports_model
6
- } from "./file-xfd1xnk3.js";
6
+ } from "./location-mutation-xfd1xnk3.js";
7
7
  import {
8
8
  exports_provider
9
- } from "./file-d6vvk673.js";
9
+ } from "./location-mutation-d6vvk673.js";
10
10
  import {
11
11
  __export
12
- } from "./file-rvfvac9x.js";
12
+ } from "./location-mutation-rvfvac9x.js";
13
13
 
14
14
  // src/v1/config/migrate.ts
15
15
  var exports_migrate = {};
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  exports_location
3
- } from "./file-wcn5x42d.js";
3
+ } from "./location-mutation-a1rjphzg.js";
4
4
  import {
5
5
  __export
6
- } from "./file-rvfvac9x.js";
6
+ } from "./location-mutation-rvfvac9x.js";
7
7
 
8
8
  // src/plugin/command.ts
9
9
  var exports_command = {};
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  createProviderPlugin
3
- } from "./file-0zz82cjq.js";
3
+ } from "./location-mutation-0zz82cjq.js";
4
4
  import {
5
5
  __require
6
- } from "./file-rvfvac9x.js";
6
+ } from "./location-mutation-rvfvac9x.js";
7
7
 
8
8
  // src/plugin/provider/mistral.ts
9
9
  var MistralPlugin = createProviderPlugin({
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  exports_model
3
- } from "./file-xfd1xnk3.js";
3
+ } from "./location-mutation-xfd1xnk3.js";
4
4
  import {
5
5
  exports_provider
6
- } from "./file-d6vvk673.js";
6
+ } from "./location-mutation-d6vvk673.js";
7
7
 
8
8
  // src/plugin/provider/openrouter.ts
9
9
  import { Effect } from "effect";
@@ -1,12 +1,12 @@
1
1
  import {
2
2
  exports_app
3
- } from "./file-50jxp3hw.js";
3
+ } from "./location-mutation-50jxp3hw.js";
4
4
  import {
5
5
  exports_provider
6
- } from "./file-d6vvk673.js";
6
+ } from "./location-mutation-d6vvk673.js";
7
7
  import {
8
8
  __require
9
- } from "./file-rvfvac9x.js";
9
+ } from "./location-mutation-rvfvac9x.js";
10
10
 
11
11
  // src/plugin/provider/gitlab.ts
12
12
  import os from "os";
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  exports_bus
3
- } from "./file-knch8gq3.js";
3
+ } from "./location-mutation-n8nwk0yn.js";
4
4
  import {
5
5
  __export
6
- } from "./file-rvfvac9x.js";
6
+ } from "./location-mutation-rvfvac9x.js";
7
7
 
8
8
  // src/plugin/sdk.ts
9
9
  var exports_sdk = {};
@@ -1,24 +1,24 @@
1
1
  import {
2
- SQLiteEffectRaw
3
- } from "./file-s7whb9gt.js";
4
- import {
5
- SQLiteEffectRelationalQueryBuilder
6
- } from "./file-bxdhjb3y.js";
2
+ SQLiteEffectUpdateBuilder
3
+ } from "./location-mutation-zfxc0ze5.js";
7
4
  import {
8
5
  SQLiteEffectCountBuilder
9
- } from "./file-0f48qthw.js";
6
+ } from "./location-mutation-0f48qthw.js";
10
7
  import {
11
- SQLiteEffectInsertBuilder
12
- } from "./file-erj4j75s.js";
8
+ SQLiteEffectRelationalQueryBuilder
9
+ } from "./location-mutation-bxdhjb3y.js";
10
+ import {
11
+ SQLiteEffectSelectBuilder
12
+ } from "./location-mutation-mwceq5am.js";
13
13
  import {
14
14
  SQLiteEffectDeleteBase
15
- } from "./file-g9yygpzr.js";
15
+ } from "./location-mutation-g9yygpzr.js";
16
16
  import {
17
- SQLiteEffectUpdateBuilder
18
- } from "./file-zfxc0ze5.js";
17
+ SQLiteEffectRaw
18
+ } from "./location-mutation-s7whb9gt.js";
19
19
  import {
20
- SQLiteEffectSelectBuilder
21
- } from "./file-mwceq5am.js";
20
+ SQLiteEffectInsertBuilder
21
+ } from "./location-mutation-erj4j75s.js";
22
22
 
23
23
  // src/database/drizzle/sqlite-core/effect/db.ts
24
24
  import { Effect } from "effect";
@@ -1,28 +1,28 @@
1
1
  import {
2
- exports_directories
3
- } from "./file-j5dc019g.js";
2
+ WorktreeTable
3
+ } from "./location-mutation-mh28new4.js";
4
4
  import {
5
5
  exports_schema
6
- } from "./file-gm8kdh5e.js";
6
+ } from "./location-mutation-8v47shgf.js";
7
7
  import {
8
8
  ProjectTable,
9
9
  upsertProject
10
- } from "./file-88jbfw8z.js";
11
- import {
12
- exports_git
13
- } from "./file-kcwh27nh.js";
14
- import {
15
- AbsolutePath
16
- } from "./file-j07kk359.js";
10
+ } from "./location-mutation-88jbfw8z.js";
17
11
  import {
18
12
  exports_bus
19
- } from "./file-knch8gq3.js";
13
+ } from "./location-mutation-n8nwk0yn.js";
20
14
  import {
21
15
  exports_database
22
- } from "./file-099wjcm7.js";
16
+ } from "./location-mutation-7jcjw3aq.js";
17
+ import {
18
+ exports_git
19
+ } from "./location-mutation-kcwh27nh.js";
20
+ import {
21
+ AbsolutePath
22
+ } from "./location-mutation-j07kk359.js";
23
23
  import {
24
24
  __export
25
- } from "./file-rvfvac9x.js";
25
+ } from "./location-mutation-rvfvac9x.js";
26
26
 
27
27
  // src/project.ts
28
28
  var exports_project = {};
@@ -34,16 +34,13 @@ __export(exports_project, {
34
34
  Project: () => exports_project,
35
35
  Info: () => Info,
36
36
  ID: () => ID,
37
- Directory: () => Directory,
38
- DirectoriesInput: () => DirectoriesInput,
39
- Directories: () => Directories,
40
37
  Current: () => Current
41
38
  });
42
39
  import { Context, Effect, Layer } from "effect";
43
40
  import { ChildProcess } from "effect/unstable/process";
44
- import { asc, desc } from "drizzle-orm";
41
+ import { and, asc, desc, eq } from "drizzle-orm";
45
42
  import path from "path";
46
- import { Event } from "@opencode-ai/schema/project-directories";
43
+ import { Worktree } from "@opencode-ai/schema/worktree";
47
44
  import { FSUtil } from "@opencode-ai/util/fs-util";
48
45
  import { AppProcess } from "@opencode-ai/util/process";
49
46
  import { makeGlobalNode } from "@opencode-ai/util/effect/app-node";
@@ -51,10 +48,7 @@ import { Hash } from "@opencode-ai/util/hash";
51
48
  var ID = exports_schema.ID;
52
49
  var Vcs = exports_schema.Vcs;
53
50
  var Current = exports_schema.Current;
54
- var Directory = exports_schema.Directory;
55
51
  var Info = exports_schema.Info;
56
- var DirectoriesInput = exports_schema.DirectoriesInput;
57
- var Directories = exports_schema.Directories;
58
52
  var root = Effect.fn("Project.root")(function* (fs, input) {
59
53
  return yield* fs.up({ targets: [".git", ".hg"], start: input, mode: "first" }).pipe(Effect.map((matches) => matches[0] ? AbsolutePath.make(path.dirname(matches[0])) : undefined), Effect.catch(() => Effect.succeed(undefined)));
60
54
  });
@@ -88,28 +82,32 @@ var layer = Layer.effect(Service, Effect.gen(function* () {
88
82
  const proc = yield* AppProcess.Service;
89
83
  const bus = yield* exports_bus.Service;
90
84
  const db = (yield* exports_database.Service).db;
91
- const projectDirectories = yield* exports_directories.Service;
92
85
  const announcing = new Set;
93
86
  const persist = Effect.fnUntraced(function* (project) {
94
87
  yield* upsertProject(db, project).pipe(Effect.orDie);
95
88
  if (!project.vcs)
96
89
  return project;
97
- const directories2 = [{ projectID: project.id, directory: project.canonical }];
90
+ const directories = [
91
+ { projectID: project.id, directory: project.canonical }
92
+ ];
98
93
  if (project.directory !== project.canonical)
99
- directories2.push({
94
+ directories.push({
100
95
  projectID: project.id,
101
96
  directory: project.directory,
102
- strategy: project.vcs.type === "git" ? "git_worktree" : undefined
97
+ strategy: project.vcs.type === "git" ? "git" : undefined
103
98
  });
104
- for (const item of directories2) {
99
+ for (const item of directories) {
105
100
  const key = item.projectID + "\x00" + item.directory;
106
101
  if (announcing.has(key))
107
102
  continue;
108
103
  announcing.add(key);
109
104
  yield* Effect.gen(function* () {
110
- if (yield* projectDirectories.get({ projectID: item.projectID, directory: item.directory }))
105
+ const stored = yield* db.select({ directory: WorktreeTable.directory }).from(WorktreeTable).where(and(eq(WorktreeTable.project_id, item.projectID), eq(WorktreeTable.directory, item.directory))).get().pipe(Effect.orDie);
106
+ if (stored)
111
107
  return;
112
- yield* bus.publish(Event.Resolved, { projectID: item.projectID, directory: item.directory, previous: project.previous ?? ID.global }, { commit: () => Effect.asVoid(projectDirectories.create(item)) });
108
+ yield* bus.publish(Worktree.Event.Resolved, { projectID: item.projectID, directory: item.directory, previous: project.previous ?? ID.global }, {
109
+ commit: () => db.insert(WorktreeTable).values({ project_id: item.projectID, directory: item.directory, strategy: item.strategy }).onConflictDoNothing().run().pipe(Effect.orDie, Effect.asVoid)
110
+ });
113
111
  }).pipe(Effect.ensuring(Effect.sync(() => announcing.delete(key))));
114
112
  }
115
113
  return project;
@@ -118,9 +116,6 @@ var layer = Layer.effect(Service, Effect.gen(function* () {
118
116
  const rows = yield* db.select().from(ProjectTable).orderBy(desc(ProjectTable.time_updated), asc(ProjectTable.id)).all().pipe(Effect.orDie);
119
117
  return rows.map(fromRow);
120
118
  });
121
- const directories = Effect.fn("Project.directories")(function* (input) {
122
- return yield* projectDirectories.list(input.projectID);
123
- });
124
119
  const cached = Effect.fnUntraced(function* (dir) {
125
120
  return yield* fs.readFileString(path.join(dir, "opencode")).pipe(Effect.map((value) => value.trim()), Effect.map((value) => value ? ID.make(value) : undefined), Effect.catch(() => Effect.succeed(undefined)));
126
121
  });
@@ -208,12 +203,12 @@ var layer = Layer.effect(Service, Effect.gen(function* () {
208
203
  const directory = AbsolutePath.make(path.parse(input).root);
209
204
  return yield* persist({ id: ID.global, directory, canonical: directory, vcs: undefined });
210
205
  });
211
- return Service.of({ list, directories, resolve });
206
+ return Service.of({ list, resolve });
212
207
  }));
213
208
  var node = makeGlobalNode({
214
209
  service: Service,
215
210
  layer,
216
- deps: [exports_bus.node, exports_database.node, FSUtil.node, exports_git.node, AppProcess.node, exports_directories.node]
211
+ deps: [exports_bus.node, exports_database.node, FSUtil.node, exports_git.node, AppProcess.node]
217
212
  });
218
213
 
219
- export { ID, Vcs, Current, Directory, Info, DirectoriesInput, Directories, root, Service, node, exports_project };
214
+ export { ID, Vcs, Current, Info, root, Service, node, exports_project };
@@ -1,25 +1,25 @@
1
1
  import {
2
2
  ID
3
- } from "./file-tvmhrvfj.js";
3
+ } from "./location-mutation-tvmhrvfj.js";
4
4
  import {
5
5
  exports_select
6
- } from "./file-04kwjb53.js";
6
+ } from "./location-mutation-04kwjb53.js";
7
7
  import {
8
8
  exports_config
9
- } from "./file-hqcvr4pq.js";
9
+ } from "./location-mutation-a5wmgav8.js";
10
10
  import {
11
11
  lazy
12
- } from "./file-8w9tzfz1.js";
12
+ } from "./location-mutation-8w9tzfz1.js";
13
13
  import {
14
14
  exports_location
15
- } from "./file-wcn5x42d.js";
15
+ } from "./location-mutation-a1rjphzg.js";
16
16
  import {
17
17
  exports_bus
18
- } from "./file-knch8gq3.js";
18
+ } from "./location-mutation-n8nwk0yn.js";
19
19
  import {
20
20
  __export,
21
21
  __require
22
- } from "./file-rvfvac9x.js";
22
+ } from "./location-mutation-rvfvac9x.js";
23
23
 
24
24
  // src/pty.ts
25
25
  var exports_pty = {};
@@ -1,21 +1,21 @@
1
1
  import {
2
2
  exports_app
3
- } from "./file-50jxp3hw.js";
4
- import {
5
- exports_kv
6
- } from "./file-t68bqjdv.js";
3
+ } from "./location-mutation-50jxp3hw.js";
7
4
  import {
8
5
  exports_model
9
- } from "./file-xfd1xnk3.js";
6
+ } from "./location-mutation-xfd1xnk3.js";
10
7
  import {
11
8
  exports_provider
12
- } from "./file-d6vvk673.js";
9
+ } from "./location-mutation-d6vvk673.js";
10
+ import {
11
+ exports_kv
12
+ } from "./location-mutation-540j0gfy.js";
13
13
  import {
14
14
  exports_bus
15
- } from "./file-knch8gq3.js";
15
+ } from "./location-mutation-n8nwk0yn.js";
16
16
  import {
17
17
  __export
18
- } from "./file-rvfvac9x.js";
18
+ } from "./location-mutation-rvfvac9x.js";
19
19
 
20
20
  // src/models-dev.ts
21
21
  var exports_models_dev = {};
@@ -1,12 +1,12 @@
1
1
  import {
2
2
  exports_permission
3
- } from "./file-v9bfv94f.js";
3
+ } from "./location-mutation-v9bfv94f.js";
4
4
  import {
5
5
  PositiveInt
6
- } from "./file-j07kk359.js";
6
+ } from "./location-mutation-j07kk359.js";
7
7
  import {
8
8
  __export
9
- } from "./file-rvfvac9x.js";
9
+ } from "./location-mutation-rvfvac9x.js";
10
10
 
11
11
  // src/v1/config/agent.ts
12
12
  var exports_agent = {};
@@ -1,26 +1,26 @@
1
- import {
2
- exports_aisdk_native
3
- } from "./file-szax8zgv.js";
4
1
  import {
5
2
  exports_catalog
6
- } from "./file-zvvqrm9j.js";
3
+ } from "./location-mutation-m1a1hezg.js";
7
4
  import {
8
- exports_integration
9
- } from "./file-xq5g3gjg.js";
5
+ exports_aisdk_native
6
+ } from "./location-mutation-szax8zgv.js";
10
7
  import {
11
8
  exports_aisdk
12
- } from "./file-d076mabj.js";
9
+ } from "./location-mutation-d076mabj.js";
10
+ import {
11
+ exports_integration
12
+ } from "./location-mutation-byapkyxa.js";
13
13
  import {
14
14
  ID,
15
15
  Ref,
16
16
  VariantID
17
- } from "./file-xfd1xnk3.js";
17
+ } from "./location-mutation-xfd1xnk3.js";
18
18
  import {
19
19
  exports_provider
20
- } from "./file-d6vvk673.js";
20
+ } from "./location-mutation-d6vvk673.js";
21
21
  import {
22
22
  __export
23
- } from "./file-rvfvac9x.js";
23
+ } from "./location-mutation-rvfvac9x.js";
24
24
 
25
25
  // src/model-resolver.ts
26
26
  var exports_model_resolver = {};
@@ -1,15 +1,15 @@
1
- import {
2
- iife
3
- } from "./file-ehj9csmv.js";
4
1
  import {
5
2
  configuredSettings
6
- } from "./file-8c7fbazd.js";
3
+ } from "./location-mutation-sqc4mbth.js";
4
+ import {
5
+ iife
6
+ } from "./location-mutation-ehj9csmv.js";
7
7
  import {
8
8
  exports_provider
9
- } from "./file-d6vvk673.js";
9
+ } from "./location-mutation-d6vvk673.js";
10
10
  import {
11
11
  __require
12
- } from "./file-rvfvac9x.js";
12
+ } from "./location-mutation-rvfvac9x.js";
13
13
 
14
14
  // src/plugin/provider/azure.ts
15
15
  import { Effect } from "effect";
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  createProviderPlugin
3
- } from "./file-0zz82cjq.js";
3
+ } from "./location-mutation-0zz82cjq.js";
4
4
  import {
5
5
  __require
6
- } from "./file-rvfvac9x.js";
6
+ } from "./location-mutation-rvfvac9x.js";
7
7
 
8
8
  // src/plugin/provider/alibaba.ts
9
9
  var AlibabaPlugin = createProviderPlugin({
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  __export
3
- } from "./file-rvfvac9x.js";
3
+ } from "./location-mutation-rvfvac9x.js";
4
4
 
5
5
  // src/app.ts
6
6
  var exports_app = {};
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  __export
3
- } from "./file-rvfvac9x.js";
3
+ } from "./location-mutation-rvfvac9x.js";
4
4
 
5
5
  // src/session/prompt-cache-key.ts
6
6
  var exports_prompt_cache_key = {};
@@ -1,12 +1,12 @@
1
1
  import {
2
2
  KVTable
3
- } from "./file-wmxdh12w.js";
3
+ } from "./location-mutation-wmxdh12w.js";
4
4
  import {
5
5
  exports_database
6
- } from "./file-099wjcm7.js";
6
+ } from "./location-mutation-7jcjw3aq.js";
7
7
  import {
8
8
  __export
9
- } from "./file-rvfvac9x.js";
9
+ } from "./location-mutation-rvfvac9x.js";
10
10
 
11
11
  // src/kv.ts
12
12
  var exports_kv = {};
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  exports_provider
3
- } from "./file-d6vvk673.js";
3
+ } from "./location-mutation-d6vvk673.js";
4
4
 
5
5
  // src/plugin/provider/zenmux.ts
6
6
  import { Effect } from "effect";
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  __export
3
- } from "./file-rvfvac9x.js";
3
+ } from "./location-mutation-rvfvac9x.js";
4
4
 
5
5
  // src/codemode/catalog.ts
6
6
  var exports_catalog = {};
@@ -1,31 +1,31 @@
1
1
  import {
2
2
  exports_integration
3
- } from "./file-xq5g3gjg.js";
3
+ } from "./location-mutation-byapkyxa.js";
4
4
  import {
5
5
  exports_config
6
- } from "./file-w5haq628.js";
6
+ } from "./location-mutation-36y0ktj1.js";
7
7
  import {
8
8
  exports_provider_options
9
- } from "./file-y0x38cee.js";
10
- import {
11
- exports_credential
12
- } from "./file-j2z43mps.js";
9
+ } from "./location-mutation-y0x38cee.js";
13
10
  import {
14
11
  exports_model
15
- } from "./file-xfd1xnk3.js";
12
+ } from "./location-mutation-xfd1xnk3.js";
16
13
  import {
17
14
  exports_provider
18
- } from "./file-d6vvk673.js";
15
+ } from "./location-mutation-d6vvk673.js";
16
+ import {
17
+ exports_credential
18
+ } from "./location-mutation-hcewn7yc.js";
19
19
  import {
20
20
  exports_bus
21
- } from "./file-knch8gq3.js";
21
+ } from "./location-mutation-n8nwk0yn.js";
22
22
 
23
23
  // src/plugin/provider/opencode.ts
24
24
  import { Duration, Effect, Schema, Semaphore, Stream } from "effect";
25
25
  import { define } from "@opencode-ai/plugin/effect/plugin";
26
26
  import { HttpClient, HttpClientRequest, HttpClientResponse } from "effect/unstable/http";
27
27
  import { Money } from "@opencode-ai/schema/money";
28
- var defaultServer = "https://console.opencode.ai";
28
+ var defaultServer = "https://opencode.ai/console";
29
29
  var clientID = "opencode-cli";
30
30
  var methodID = exports_integration.MethodID.make("device");
31
31
  var RemoteResponse = Schema.Struct({ config: exports_config.Info });
@@ -1,16 +1,16 @@
1
1
  import {
2
2
  SessionEvent
3
- } from "./file-a83yvq99.js";
3
+ } from "./location-mutation-a83yvq99.js";
4
4
  import {
5
5
  InstructionBlobTable,
6
6
  InstructionStateTable
7
- } from "./file-9d2xhdr4.js";
7
+ } from "./location-mutation-9d2xhdr4.js";
8
8
  import {
9
9
  exports_instructions
10
- } from "./file-q4r4pzs4.js";
10
+ } from "./location-mutation-q4r4pzs4.js";
11
11
  import {
12
12
  __export
13
- } from "./file-rvfvac9x.js";
13
+ } from "./location-mutation-rvfvac9x.js";
14
14
 
15
15
  // src/session/instruction-state.ts
16
16
  var exports_instruction_state = {};