@opencode-ai/core 0.0.0-dev-19237 → 0.0.0-dev-19265

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 (816) hide show
  1. package/dist/account/sql.js +1 -1
  2. package/dist/agent.js +81 -81
  3. package/dist/aisdk-native.js +2 -2
  4. package/dist/aisdk.js +6 -6
  5. package/dist/app.js +9 -9
  6. package/dist/bus.js +71 -71
  7. package/dist/catalog.js +83 -83
  8. package/dist/chunks/{file-z7n23fv9.js → location-mutation-01fsmxsp.js} +23 -23
  9. package/dist/chunks/{file-zp70bgmg.js → location-mutation-02gxsad2.js} +29 -29
  10. package/dist/chunks/{file-c1v5b0wv.js → location-mutation-03vhms7f.js} +17 -17
  11. package/dist/chunks/{file-0e0xafbb.js → location-mutation-0e0xafbb.js} +2 -2
  12. package/dist/chunks/{file-btqahyaw.js → location-mutation-0e92dp25.js} +17 -17
  13. package/dist/chunks/location-mutation-0hbxperx.js +4 -0
  14. package/dist/chunks/{file-0paq2nw3.js → location-mutation-0paq2nw3.js} +1 -1
  15. package/dist/chunks/{file-0q0f95c6.js → location-mutation-0q0f95c6.js} +1 -1
  16. package/dist/chunks/{file-dt1n4p4v.js → location-mutation-0q3qqg02.js} +4 -4
  17. package/dist/chunks/{file-0s9ayhjt.js → location-mutation-0s9ayhjt.js} +1 -1
  18. package/dist/chunks/{file-m3p4mq0k.js → location-mutation-12gp3jnp.js} +27 -27
  19. package/dist/chunks/{file-1ct4r87x.js → location-mutation-1ct4r87x.js} +1 -1
  20. package/dist/chunks/{file-8tq3sb4p.js → location-mutation-1n60r04w.js} +1 -1
  21. package/dist/chunks/{file-tvqb7ptv.js → location-mutation-1vs8d3gz.js} +30 -22
  22. package/dist/chunks/{file-5h5dsh0k.js → location-mutation-20qgxnzb.js} +37 -44
  23. package/dist/chunks/{file-7fxxes5g.js → location-mutation-21j9wzy5.js} +7 -7
  24. package/dist/chunks/{file-21r38tys.js → location-mutation-21r38tys.js} +1 -1
  25. package/dist/chunks/{file-2402vzrj.js → location-mutation-2402vzrj.js} +1 -1
  26. package/dist/chunks/{file-z63w68vq.js → location-mutation-29x78va6.js} +6 -6
  27. package/dist/chunks/{file-2a5m3afh.js → location-mutation-2a5m3afh.js} +1 -1
  28. package/dist/chunks/{file-rrp6adwx.js → location-mutation-2e8esc5r.js} +18 -18
  29. package/dist/chunks/{file-2ht70gj7.js → location-mutation-2ht70gj7.js} +1 -1
  30. package/dist/chunks/{file-cpy6gm2a.js → location-mutation-2jmaghvr.js} +6 -6
  31. package/dist/chunks/{file-na3f2bx6.js → location-mutation-2mwhmxmk.js} +36 -29
  32. package/dist/chunks/{file-3y04nngn.js → location-mutation-2pqjqc52.js} +13 -13
  33. package/dist/chunks/{file-pmfjm0ds.js → location-mutation-2ryxe2ae.js} +18 -18
  34. package/dist/chunks/{file-n5f8hq7m.js → location-mutation-2vtpzmv5.js} +6 -6
  35. package/dist/chunks/{file-v92wz3b8.js → location-mutation-2wvndqp8.js} +37 -37
  36. package/dist/chunks/{file-whc6z58z.js → location-mutation-2xwvjr3g.js} +11 -11
  37. package/dist/chunks/{file-2rx0c1se.js → location-mutation-2y04n8jz.js} +5 -5
  38. package/dist/chunks/{file-7d289b1g.js → location-mutation-31jwxfn6.js} +29 -29
  39. package/dist/chunks/{file-x6pvac8r.js → location-mutation-35020cfq.js} +49 -49
  40. package/dist/chunks/location-mutation-35zkktjv.js +462 -0
  41. package/dist/chunks/{file-acd73yp7.js → location-mutation-36vsdr69.js} +8 -8
  42. package/dist/chunks/{file-2n0rqa47.js → location-mutation-3f40cv46.js} +43 -43
  43. package/dist/chunks/{file-gdvy8fx6.js → location-mutation-3fc6dm20.js} +4 -4
  44. package/dist/chunks/{file-3hepkmqq.js → location-mutation-3hepkmqq.js} +1 -1
  45. package/dist/chunks/{file-00z3vp5f.js → location-mutation-3j8sdtpz.js} +4 -4
  46. package/dist/chunks/{file-3qzbfqsy.js → location-mutation-3qzbfqsy.js} +2 -2
  47. package/dist/chunks/{file-3smtnn6g.js → location-mutation-3smtnn6g.js} +1 -1
  48. package/dist/chunks/{file-3tvqynh2.js → location-mutation-3tvqynh2.js} +1 -1
  49. package/dist/chunks/{file-339x25ws.js → location-mutation-3xaa90hq.js} +7 -7
  50. package/dist/chunks/{file-y5z1eg03.js → location-mutation-41yb40nv.js} +8 -8
  51. package/dist/chunks/{file-454k5vzh.js → location-mutation-454k5vzh.js} +1 -1
  52. package/dist/chunks/{file-tjjbrw7w.js → location-mutation-4ky4z00x.js} +18 -18
  53. package/dist/chunks/{file-zbjnn3ac.js → location-mutation-4nkw4gk2.js} +7 -0
  54. package/dist/chunks/{file-4r2nyarf.js → location-mutation-4r2nyarf.js} +1 -1
  55. package/dist/chunks/{file-7vmn5jxr.js → location-mutation-4s7cwcwm.js} +17 -17
  56. package/dist/chunks/{file-3dab0e5z.js → location-mutation-4vye7c7y.js} +28 -28
  57. package/dist/chunks/{file-mb6d61vn.js → location-mutation-4zpra80a.js} +28 -28
  58. package/dist/chunks/{file-yt0vhsen.js → location-mutation-50tkbn4e.js} +25 -25
  59. package/dist/chunks/{file-dhv13n9b.js → location-mutation-553s8jdp.js} +24 -24
  60. package/dist/chunks/{file-mfqp6xfm.js → location-mutation-56gdpj1q.js} +6 -6
  61. package/dist/chunks/{file-03ssqq1h.js → location-mutation-5as21n7y.js} +47 -47
  62. package/dist/chunks/{file-46e97tr7.js → location-mutation-5d4cs7v3.js} +10 -10
  63. package/dist/chunks/{file-5daktx2q.js → location-mutation-5daktx2q.js} +1 -1
  64. package/dist/chunks/{file-5fmxt4p5.js → location-mutation-5fmxt4p5.js} +1 -1
  65. package/dist/chunks/{file-ewjc977p.js → location-mutation-5g5dhpwv.js} +28 -28
  66. package/dist/chunks/{file-wfr7fczh.js → location-mutation-5jntx97f.js} +17 -17
  67. package/dist/chunks/{file-5jvc5tg2.js → location-mutation-5jvc5tg2.js} +1 -1
  68. package/dist/chunks/{file-fz1pdqz4.js → location-mutation-637qq8n2.js} +9 -9
  69. package/dist/chunks/{file-vnzc40bj.js → location-mutation-63evnryy.js} +2 -2
  70. package/dist/chunks/{file-3n69sb31.js → location-mutation-68xdzhvj.js} +18 -18
  71. package/dist/chunks/{file-9t0ny11b.js → location-mutation-695tgtrq.js} +11 -11
  72. package/dist/chunks/{file-j2sq7sy2.js → location-mutation-6fb56410.js} +6 -6
  73. package/dist/chunks/{file-avf2awfk.js → location-mutation-6h4qnp75.js} +9 -9
  74. package/dist/chunks/{file-jntn13wn.js → location-mutation-6s66q6ye.js} +9 -9
  75. package/dist/chunks/{file-711hfp6y.js → location-mutation-711hfp6y.js} +2 -2
  76. package/dist/chunks/{file-c7jdh4x9.js → location-mutation-71t2fpqh.js} +8 -8
  77. package/dist/chunks/{file-72nftnjy.js → location-mutation-72nftnjy.js} +2 -2
  78. package/dist/chunks/{file-4c7fwq4e.js → location-mutation-73j16qsm.js} +28 -57
  79. package/dist/chunks/{file-e2611c6v.js → location-mutation-748fdr5v.js} +11 -11
  80. package/dist/chunks/{file-q3cgsmnj.js → location-mutation-799zcqwb.js} +19 -19
  81. package/dist/chunks/{file-vypq2r11.js → location-mutation-7b0v2y0d.js} +14 -14
  82. package/dist/chunks/{file-7bmhse3q.js → location-mutation-7bmhse3q.js} +1 -1
  83. package/dist/chunks/{file-0jwsre1p.js → location-mutation-7dqw4kz8.js} +5 -5
  84. package/dist/chunks/{file-m4je5jzf.js → location-mutation-7k08vs8b.js} +18 -18
  85. package/dist/chunks/{file-w07k5xss.js → location-mutation-7t7t8jv6.js} +13 -13
  86. package/dist/chunks/{file-v6vne6e8.js → location-mutation-7vmz4e7y.js} +94 -91
  87. package/dist/chunks/{file-kkq1zppc.js → location-mutation-7vqan3q0.js} +4 -4
  88. package/dist/chunks/{file-jb4h4dr1.js → location-mutation-7w3fy9tn.js} +23 -23
  89. package/dist/chunks/{file-v940708v.js → location-mutation-7zq9f41z.js} +28 -28
  90. package/dist/chunks/{file-k50qz9pg.js → location-mutation-8bwp8r5g.js} +17 -17
  91. package/dist/chunks/{file-0wagesx1.js → location-mutation-8m0rbw91.js} +6 -6
  92. package/dist/chunks/{file-e5zee4hv.js → location-mutation-8qgytc3b.js} +10 -10
  93. package/dist/chunks/{file-93a8yfjt.js → location-mutation-93a8yfjt.js} +2 -2
  94. package/dist/chunks/{file-97f5v037.js → location-mutation-97f5v037.js} +1 -1
  95. package/dist/chunks/{file-7yr2wfkw.js → location-mutation-9c0wr5p2.js} +14 -27
  96. package/dist/chunks/{file-pmtj7vd7.js → location-mutation-9exw0jng.js} +12 -12
  97. package/dist/chunks/{file-crtth3kn.js → location-mutation-9gp79knm.js} +3 -3
  98. package/dist/chunks/{file-hpgd43jv.js → location-mutation-9kgqjvwx.js} +46 -46
  99. package/dist/chunks/{file-9938j897.js → location-mutation-9q0nykm9.js} +8 -8
  100. package/dist/chunks/location-mutation-9v90f9cc.js +55 -0
  101. package/dist/chunks/{file-zvrekwpq.js → location-mutation-9vtsvkk2.js} +6 -6
  102. package/dist/chunks/{file-hc2w1ek9.js → location-mutation-9yhwza0s.js} +16 -16
  103. package/dist/chunks/{file-2931d2p1.js → location-mutation-a1b67f26.js} +10 -10
  104. package/dist/chunks/{file-bvza9xe3.js → location-mutation-a2zhvqnn.js} +92 -92
  105. package/dist/chunks/{file-y3cm0t0c.js → location-mutation-a809ybt0.js} +10 -10
  106. package/dist/chunks/{file-aaet6srn.js → location-mutation-aaet6srn.js} +2 -2
  107. package/dist/chunks/{file-d0e4f7jz.js → location-mutation-ar7xhsq5.js} +9 -9
  108. package/dist/chunks/{file-tvzx8eep.js → location-mutation-asrxajhv.js} +9 -9
  109. package/dist/chunks/{file-tymq08ss.js → location-mutation-aw1ne1gp.js} +24 -24
  110. package/dist/chunks/{file-6h414ywr.js → location-mutation-awqyf91x.js} +5 -5
  111. package/dist/chunks/{file-yfbd16n1.js → location-mutation-azbx08pf.js} +4 -2
  112. package/dist/chunks/{file-asf9wq49.js → location-mutation-azhfbxv8.js} +10 -10
  113. package/dist/chunks/{file-w4d6nzh9.js → location-mutation-b0s951gt.js} +8 -8
  114. package/dist/chunks/{file-d9ywy8qq.js → location-mutation-b5ffs7mv.js} +171 -171
  115. package/dist/chunks/{file-b6gygkdw.js → location-mutation-b6gygkdw.js} +2 -2
  116. package/dist/chunks/{file-b9wsbatv.js → location-mutation-b9wsbatv.js} +1 -1
  117. package/dist/chunks/{file-hw71hpyd.js → location-mutation-bgjb0rnk.js} +6 -6
  118. package/dist/chunks/{file-r528y2ap.js → location-mutation-bkpjey77.js} +11 -11
  119. package/dist/chunks/{file-t7xph3b4.js → location-mutation-bpd1017f.js} +5 -5
  120. package/dist/chunks/{file-mmkbhfjj.js → location-mutation-bpynh60y.js} +19 -19
  121. package/dist/chunks/{file-9vw7vcdh.js → location-mutation-c0s68pbv.js} +3 -3
  122. package/dist/chunks/{file-xdrtxdpg.js → location-mutation-c0w89p9e.js} +16 -16
  123. package/dist/chunks/{file-ptz1ztyq.js → location-mutation-c76spgvt.js} +6 -6
  124. package/dist/chunks/{file-s0gpr7nd.js → location-mutation-c9setr9m.js} +1 -1
  125. package/dist/chunks/{file-3wwk5jwz.js → location-mutation-cbrkgqh6.js} +34 -34
  126. package/dist/chunks/{file-3zf7jj5c.js → location-mutation-cdzen2fp.js} +57 -41
  127. package/dist/chunks/{file-d9wzmzc3.js → location-mutation-ce5fknq2.js} +5 -5
  128. package/dist/chunks/{file-mt2hp97g.js → location-mutation-ckfk1z8g.js} +43 -43
  129. package/dist/chunks/{file-mhq5r63x.js → location-mutation-cz67sxjn.js} +46 -46
  130. package/dist/chunks/{file-4pgqfzd8.js → location-mutation-d2qvdcch.js} +4 -4
  131. package/dist/chunks/{file-c2m11pw9.js → location-mutation-ddwschm6.js} +11 -11
  132. package/dist/chunks/{file-y37eft65.js → location-mutation-dff6ksqg.js} +32 -39
  133. package/dist/chunks/{file-y71avatq.js → location-mutation-dpkg50ah.js} +4 -4
  134. package/dist/chunks/{file-s0xr38aj.js → location-mutation-e4rp866n.js} +9 -9
  135. package/dist/chunks/{file-bffddetr.js → location-mutation-eb6vrzdm.js} +25 -25
  136. package/dist/chunks/{file-fkpavqt9.js → location-mutation-ej5745y0.js} +36 -36
  137. package/dist/chunks/{file-hadacg6q.js → location-mutation-esba6vsp.js} +4 -4
  138. package/dist/chunks/{file-v6khqva7.js → location-mutation-et6stkf1.js} +3 -3
  139. package/dist/chunks/{file-waegbgsk.js → location-mutation-f29br4f3.js} +16 -16
  140. package/dist/chunks/{file-hk900qzg.js → location-mutation-f2s4jkve.js} +26 -26
  141. package/dist/chunks/{file-89cfd633.js → location-mutation-f2yebhdz.js} +1 -1
  142. package/dist/chunks/{file-3f4r80p6.js → location-mutation-f3ffyk20.js} +43 -43
  143. package/dist/chunks/{file-g3fmkc14.js → location-mutation-fcjfmm05.js} +24 -24
  144. package/dist/chunks/{file-2hgwbbq1.js → location-mutation-fffgckys.js} +19 -19
  145. package/dist/chunks/{file-p9tbkvt9.js → location-mutation-fp55xymf.js} +11 -11
  146. package/dist/chunks/{file-prt369qg.js → location-mutation-fxa32nyw.js} +25 -25
  147. package/dist/chunks/{file-fxbjtjnd.js → location-mutation-fxbjtjnd.js} +1 -1
  148. package/dist/chunks/{file-fxypknc8.js → location-mutation-fxypknc8.js} +1 -1
  149. package/dist/chunks/{file-wefnnxbq.js → location-mutation-fzmwc9f1.js} +1 -1
  150. package/dist/chunks/{file-hrvm11jt.js → location-mutation-g2dy4bvs.js} +3 -3
  151. package/dist/chunks/{file-d72308c8.js → location-mutation-g2gt0w0k.js} +2 -2
  152. package/dist/chunks/{file-71n2k0sw.js → location-mutation-gac4wd5h.js} +22 -22
  153. package/dist/chunks/{file-gd4qta3r.js → location-mutation-gd4qta3r.js} +1 -1
  154. package/dist/chunks/{file-5rdj9hmq.js → location-mutation-gewsm2ew.js} +11 -11
  155. package/dist/chunks/{file-mtqwgfqs.js → location-mutation-gk3v9xn9.js} +8 -8
  156. package/dist/chunks/{file-jwd6g0dr.js → location-mutation-gwt190dm.js} +8 -8
  157. package/dist/chunks/{file-h6vf3j39.js → location-mutation-h6vf3j39.js} +1 -1
  158. package/dist/chunks/{file-heyhwy2w.js → location-mutation-heyhwy2w.js} +1 -1
  159. package/dist/chunks/{file-qeka1wpx.js → location-mutation-hf2z2kry.js} +19 -19
  160. package/dist/chunks/{file-baaqp4zd.js → location-mutation-hn57h045.js} +4 -4
  161. package/dist/chunks/{file-36srvmcg.js → location-mutation-hspjz0fp.js} +9 -9
  162. package/dist/chunks/{file-ajc7k593.js → location-mutation-ht4enzqw.js} +59 -59
  163. package/dist/chunks/{file-rjrsppvq.js → location-mutation-hw0vrq4f.js} +15 -15
  164. package/dist/chunks/{file-vgjr9pam.js → location-mutation-hyf5hyh1.js} +13 -13
  165. package/dist/chunks/{file-paphc93g.js → location-mutation-j935v87r.js} +2 -2
  166. package/dist/chunks/{file-z3h7hm3n.js → location-mutation-j9pg5mya.js} +27 -4
  167. package/dist/chunks/{file-k4b13ztk.js → location-mutation-j9x2r4mk.js} +12 -12
  168. package/dist/chunks/{file-yq559278.js → location-mutation-ja84rtcf.js} +9 -9
  169. package/dist/chunks/{file-gmq3187j.js → location-mutation-jbpw8vb5.js} +7 -7
  170. package/dist/chunks/{file-md9ad6xb.js → location-mutation-jk7xm99c.js} +34 -34
  171. package/dist/chunks/{file-rvvz5b9h.js → location-mutation-jmww4671.js} +12 -12
  172. package/dist/chunks/{file-88nptzkr.js → location-mutation-jr3tywxk.js} +21 -21
  173. package/dist/chunks/{file-qrjx5gd0.js → location-mutation-jrye6x50.js} +29 -29
  174. package/dist/chunks/{file-rmjbkvqc.js → location-mutation-jsbj9q3j.js} +12 -12
  175. package/dist/chunks/{file-tpqfb4gb.js → location-mutation-k0zpnkm5.js} +6 -6
  176. package/dist/chunks/{file-rtmnkjh7.js → location-mutation-k3hajes3.js} +13 -9
  177. package/dist/chunks/{file-k4bwy1x5.js → location-mutation-k4bwy1x5.js} +1 -1
  178. package/dist/chunks/{file-7qhv6080.js → location-mutation-k81hrtfb.js} +16 -16
  179. package/dist/chunks/{file-3cm4x8pz.js → location-mutation-ka1d01ec.js} +5 -5
  180. package/dist/chunks/{file-179n7qcx.js → location-mutation-ka4xewm7.js} +17 -14
  181. package/dist/chunks/{file-fqsf7web.js → location-mutation-kaxevc9a.js} +30 -30
  182. package/dist/chunks/{file-5f95ff4q.js → location-mutation-kbmmvjk9.js} +29 -28
  183. package/dist/chunks/{file-dm4t3jdg.js → location-mutation-kd9jwy8m.js} +24 -24
  184. package/dist/chunks/{file-kg06axw8.js → location-mutation-kg06axw8.js} +1 -1
  185. package/dist/chunks/{file-ztxeb84j.js → location-mutation-kkgdx70c.js} +1 -1
  186. package/dist/chunks/{file-1vkgnbk5.js → location-mutation-knjm772m.js} +11 -11
  187. package/dist/chunks/{file-g2zsh1qa.js → location-mutation-kpwdvb92.js} +22 -22
  188. package/dist/chunks/{file-6r2w4rfh.js → location-mutation-kvn4jwr8.js} +19 -19
  189. package/dist/chunks/{file-hw4pv20g.js → location-mutation-kvsjn1dr.js} +2 -2
  190. package/dist/chunks/{file-hr77wr0b.js → location-mutation-m1e4fd8e.js} +4 -4
  191. package/dist/chunks/{file-ctpqmbes.js → location-mutation-m1wt4yw3.js} +11 -11
  192. package/dist/chunks/{file-zy8c9jht.js → location-mutation-m33qb69d.js} +19 -18
  193. package/dist/chunks/{file-rjqxra3c.js → location-mutation-m4535t75.js} +8 -8
  194. package/dist/chunks/{file-e9bp071a.js → location-mutation-m5shh40j.js} +2 -2
  195. package/dist/chunks/{file-rmeyr0zp.js → location-mutation-m78vmq2a.js} +35 -44
  196. package/dist/chunks/{file-fhm8k5s2.js → location-mutation-m7k42b88.js} +20 -20
  197. package/dist/chunks/{file-m9w0rfyh.js → location-mutation-m9w0rfyh.js} +1 -1
  198. package/dist/chunks/{file-595kwe3a.js → location-mutation-mgaz471z.js} +1 -1
  199. package/dist/chunks/{file-qya9qmjj.js → location-mutation-mqvykccq.js} +20 -20
  200. package/dist/chunks/{file-1jpftfmz.js → location-mutation-mv7e0man.js} +36 -36
  201. package/dist/chunks/{file-mhkvc446.js → location-mutation-mvfsc1pv.js} +3 -3
  202. package/dist/chunks/{file-3v1vnpky.js → location-mutation-n3qr3rmb.js} +61 -61
  203. package/dist/chunks/{file-va5qff5x.js → location-mutation-n8c291r7.js} +6 -6
  204. package/dist/chunks/{file-xy58tbcv.js → location-mutation-n9h62wb7.js} +27 -27
  205. package/dist/chunks/{file-9qnjdkjv.js → location-mutation-n9mfcsdf.js} +12 -12
  206. package/dist/chunks/{file-gpkgrk3z.js → location-mutation-ng39vjdn.js} +2 -2
  207. package/dist/chunks/{file-47gsdddb.js → location-mutation-nhy5jxhy.js} +5 -5
  208. package/dist/chunks/{file-8kpcqxj9.js → location-mutation-nrrren0x.js} +11 -11
  209. package/dist/chunks/{file-hnyf01b0.js → location-mutation-p0agm8mf.js} +22 -6
  210. package/dist/chunks/{file-5vgh9pjn.js → location-mutation-p6ncrwfm.js} +24 -24
  211. package/dist/chunks/{file-wt9rnddh.js → location-mutation-pjg91gph.js} +16 -16
  212. package/dist/chunks/{file-pjvnvgmy.js → location-mutation-pjvnvgmy.js} +1 -1
  213. package/dist/chunks/{file-pknna89w.js → location-mutation-pknna89w.js} +1 -1
  214. package/dist/chunks/{file-wzds84qh.js → location-mutation-pmddwhyc.js} +6 -6
  215. package/dist/chunks/{file-1j6fw132.js → location-mutation-q1wnce7s.js} +14 -14
  216. package/dist/chunks/location-mutation-q509s3k3.js +18 -0
  217. package/dist/chunks/{file-z7ezyskm.js → location-mutation-qbs0v8xf.js} +29 -29
  218. package/dist/chunks/{file-tmgtet36.js → location-mutation-qbxe7mx5.js} +19 -19
  219. package/dist/chunks/{file-cdbx1xhb.js → location-mutation-qcb7wx0s.js} +50 -59
  220. package/dist/chunks/{file-ssh3ax1h.js → location-mutation-qj769r8n.js} +11 -11
  221. package/dist/chunks/{file-r911hjta.js → location-mutation-qkdp5fnc.js} +22 -22
  222. package/dist/chunks/{file-9z6xj13s.js → location-mutation-qkgxthm5.js} +5 -5
  223. package/dist/chunks/{file-7mcdhjjw.js → location-mutation-qmt2dn3e.js} +38 -38
  224. package/dist/chunks/{file-qsdy395h.js → location-mutation-qsdy395h.js} +1 -1
  225. package/dist/chunks/{file-9qm9egsn.js → location-mutation-qvbcabdc.js} +2 -2
  226. package/dist/chunks/location-mutation-qvtmkthx.js +22 -0
  227. package/dist/chunks/{file-6njxrdza.js → location-mutation-qw3ch0ft.js} +15 -15
  228. package/dist/chunks/{file-m0m2gtc4.js → location-mutation-r2kav4az.js} +17 -17
  229. package/dist/chunks/{file-yqr8waf2.js → location-mutation-r3tjqq5a.js} +37 -45
  230. package/dist/chunks/{file-xr5vwsd4.js → location-mutation-r5w2ssxe.js} +9 -9
  231. package/dist/chunks/{file-r8dhm0tv.js → location-mutation-r8dhm0tv.js} +1 -1
  232. package/dist/chunks/{file-en1kwsfy.js → location-mutation-r9f0vktm.js} +18 -14
  233. package/dist/chunks/{file-m3fm0fm8.js → location-mutation-r9hy8h05.js} +5 -5
  234. package/dist/chunks/{file-fjsjs8gs.js → location-mutation-r9vyccv1.js} +1 -1
  235. package/dist/chunks/{file-tgta4dgx.js → location-mutation-r9ycfsjh.js} +14 -14
  236. package/dist/chunks/{file-t9v5xvk5.js → location-mutation-rrxvfwpe.js} +4 -4
  237. package/dist/chunks/{file-tyqynq3b.js → location-mutation-rt66ex88.js} +5 -5
  238. package/dist/chunks/{file-cj6bar7a.js → location-mutation-s2540qmh.js} +20 -20
  239. package/dist/chunks/{file-vn9j9bbf.js → location-mutation-s326q968.js} +19 -18
  240. package/dist/chunks/{file-0jb3k8j6.js → location-mutation-s90j9acr.js} +25 -25
  241. package/dist/chunks/{file-sba4qhjf.js → location-mutation-sba4qhjf.js} +1 -1
  242. package/dist/chunks/{file-6652nm96.js → location-mutation-shcc5cqr.js} +8 -8
  243. package/dist/chunks/{file-8fhts7ts.js → location-mutation-sxhwk0c0.js} +4 -4
  244. package/dist/chunks/{file-654kmdbf.js → location-mutation-sy6p2gsk.js} +5 -5
  245. package/dist/chunks/{file-xb70hszk.js → location-mutation-t9bfha1v.js} +7 -7
  246. package/dist/chunks/{file-mr1e9xzf.js → location-mutation-t9nma0pe.js} +23 -23
  247. package/dist/chunks/{file-tazgh4e4.js → location-mutation-tazgh4e4.js} +1 -1
  248. package/dist/chunks/{file-tcezcvh9.js → location-mutation-tcezcvh9.js} +1 -1
  249. package/dist/chunks/{file-tjykrgmx.js → location-mutation-tjykrgmx.js} +1 -1
  250. package/dist/chunks/location-mutation-ty1a3g8x.js +114 -0
  251. package/dist/chunks/{file-a1cchfxj.js → location-mutation-tzsk1z50.js} +5 -5
  252. package/dist/chunks/{file-ttmf2k06.js → location-mutation-v0ppz6dn.js} +8 -8
  253. package/dist/chunks/{file-0p6bnn4j.js → location-mutation-vcexzd7a.js} +7 -7
  254. package/dist/chunks/{file-csm9f11b.js → location-mutation-vfgzh0ae.js} +15 -15
  255. package/dist/chunks/{file-g4j6k2pz.js → location-mutation-vj7t3whg.js} +13 -13
  256. package/dist/chunks/{file-1zkb17nt.js → location-mutation-vqm9gcn5.js} +6 -6
  257. package/dist/chunks/{file-hcmmkp4d.js → location-mutation-vyffwbyc.js} +26 -26
  258. package/dist/chunks/{file-52bfwkce.js → location-mutation-w18dhe75.js} +6 -6
  259. package/dist/chunks/{file-w3wsvvr9.js → location-mutation-w3wsvvr9.js} +1 -1
  260. package/dist/chunks/{file-32vaat9j.js → location-mutation-w4mk8dh2.js} +77 -72
  261. package/dist/chunks/{file-rtgawa8q.js → location-mutation-w8aq7x5e.js} +4 -4
  262. package/dist/chunks/{file-wd87259q.js → location-mutation-wd87259q.js} +1 -1
  263. package/dist/chunks/{file-5dhjvcph.js → location-mutation-wgy2tz6n.js} +8 -5
  264. package/dist/chunks/{file-1nk2mnc0.js → location-mutation-wkjngxy5.js} +3 -3
  265. package/dist/chunks/{file-129m3zyv.js → location-mutation-wnxzw7ag.js} +9 -9
  266. package/dist/chunks/{file-9ss86a26.js → location-mutation-wrpe40w9.js} +11 -11
  267. package/dist/chunks/{file-4v4ajd06.js → location-mutation-x152d5b0.js} +13 -13
  268. package/dist/chunks/{file-x1ezjp6w.js → location-mutation-x1ezjp6w.js} +1 -1
  269. package/dist/chunks/{file-q604e6nk.js → location-mutation-xjteqga3.js} +13 -13
  270. package/dist/chunks/{file-avffydqw.js → location-mutation-xq7e5js0.js} +34 -42
  271. package/dist/chunks/location-mutation-xy05m0bc.js +247 -0
  272. package/dist/chunks/{file-v961h6fn.js → location-mutation-y12sg33x.js} +27 -27
  273. package/dist/chunks/{file-e5w0frp6.js → location-mutation-y15349mw.js} +11 -11
  274. package/dist/chunks/{file-y1fvbwt7.js → location-mutation-y1fvbwt7.js} +1 -1
  275. package/dist/chunks/{file-rmftyprg.js → location-mutation-y35stt4b.js} +36 -36
  276. package/dist/chunks/{file-vt4ykcc5.js → location-mutation-y375pa0k.js} +187 -92
  277. package/dist/chunks/{file-v8sg56bb.js → location-mutation-y57q34f9.js} +8 -8
  278. package/dist/chunks/{file-xjde6dvc.js → location-mutation-ycv9gdpt.js} +9 -9
  279. package/dist/chunks/{file-2j2akc50.js → location-mutation-yd30tg6k.js} +9 -9
  280. package/dist/chunks/{file-ajtjthsy.js → location-mutation-yg7sb877.js} +2 -2
  281. package/dist/chunks/{file-1acjjqhc.js → location-mutation-yp2x3t23.js} +4 -4
  282. package/dist/chunks/{file-zmy6e5rj.js → location-mutation-ypzjytvr.js} +56 -56
  283. package/dist/chunks/{file-x9efqt87.js → location-mutation-yq90rf8j.js} +22 -22
  284. package/dist/chunks/{file-z1k01bn4.js → location-mutation-z1k01bn4.js} +2 -2
  285. package/dist/chunks/{file-g8d3gcyj.js → location-mutation-zv0544jz.js} +7 -7
  286. package/dist/chunks/{file-zxq2ej10.js → location-mutation-zxq2ej10.js} +1 -1
  287. package/dist/chunks/{file-934h7amq.js → location-mutation-zzzrwwzt.js} +32 -32
  288. package/dist/codemode/catalog.js +3 -3
  289. package/dist/codemode/instructions.js +9 -9
  290. package/dist/codemode/tool.js +2 -2
  291. package/dist/command.js +83 -83
  292. package/dist/config/discovery.js +77 -77
  293. package/dist/config/markdown.js +1 -1
  294. package/dist/config/normalize.js +19 -19
  295. package/dist/config/plugin/agent.js +115 -115
  296. package/dist/config/plugin/command.js +205 -204
  297. package/dist/config/plugin/compaction.js +155 -154
  298. package/dist/config/plugin/entry-observer.js +1 -1
  299. package/dist/config/plugin/formatter.js +117 -117
  300. package/dist/config/plugin/image.js +115 -115
  301. package/dist/config/plugin/instruction.js +85 -85
  302. package/dist/config/plugin/location-watcher.js +115 -115
  303. package/dist/config/plugin/mcp.js +124 -124
  304. package/dist/config/plugin/policy.js +114 -114
  305. package/dist/config/plugin/provider.js +113 -113
  306. package/dist/config/plugin/reference.js +117 -117
  307. package/dist/config/plugin/shell.js +118 -118
  308. package/dist/config/plugin/skill-file.js +97 -96
  309. package/dist/config/plugin/skill.js +136 -135
  310. package/dist/config/plugin/snapshot.js +115 -115
  311. package/dist/config/plugin/source.js +111 -111
  312. package/dist/config/plugin/tool-output.js +117 -117
  313. package/dist/config/plugin/websearch.js +115 -115
  314. package/dist/config/plugin/worktree.js +118 -118
  315. package/dist/config/variable.js +3 -3
  316. package/dist/config/watch.js +1 -1
  317. package/dist/config.js +119 -119
  318. package/dist/credential/sql.js +2 -2
  319. package/dist/credential.js +81 -81
  320. package/dist/database/database.js +68 -68
  321. package/dist/database/drizzle/effect-sqlite/driver.js +14 -14
  322. package/dist/database/drizzle/effect-sqlite/index.js +14 -14
  323. package/dist/database/drizzle/effect-sqlite/session.js +11 -11
  324. package/dist/database/drizzle/index.js +15 -15
  325. package/dist/database/drizzle/internal/drizzle-utils.js +1 -1
  326. package/dist/database/drizzle/sqlite-core/effect/count.js +1 -1
  327. package/dist/database/drizzle/sqlite-core/effect/db.js +9 -9
  328. package/dist/database/drizzle/sqlite-core/effect/delete.js +2 -2
  329. package/dist/database/drizzle/sqlite-core/effect/index.js +10 -10
  330. package/dist/database/drizzle/sqlite-core/effect/insert.js +2 -2
  331. package/dist/database/drizzle/sqlite-core/effect/query.js +1 -1
  332. package/dist/database/drizzle/sqlite-core/effect/raw.js +1 -1
  333. package/dist/database/drizzle/sqlite-core/effect/select.js +2 -2
  334. package/dist/database/drizzle/sqlite-core/effect/session.js +10 -10
  335. package/dist/database/drizzle/sqlite-core/effect/update.js +2 -2
  336. package/dist/database/drizzle.js +16 -16
  337. package/dist/database/migration/20260127222353_familiar_lady_ursula.js +1 -1
  338. package/dist/database/migration/20260211171708_add_project_commands.js +1 -1
  339. package/dist/database/migration/20260213144116_wakeful_the_professor.js +1 -1
  340. package/dist/database/migration/20260225215848_workspace.js +1 -1
  341. package/dist/database/migration/20260227213759_add_session_workspace_id.js +1 -1
  342. package/dist/database/migration/20260228203230_blue_harpoon.js +1 -1
  343. package/dist/database/migration/20260303231226_add_workspace_fields.js +1 -1
  344. package/dist/database/migration/20260309230000_move_org_to_state.js +1 -1
  345. package/dist/database/migration/20260312043431_session_message_cursor.js +1 -1
  346. package/dist/database/migration/20260323234822_events.js +1 -1
  347. package/dist/database/migration/20260410174513_workspace-name.js +1 -1
  348. package/dist/database/migration/20260413175956_chief_energizer.js +1 -1
  349. package/dist/database/migration/20260423070820_add_icon_url_override.js +1 -1
  350. package/dist/database/migration/20260427172553_slow_nightmare.js +1 -1
  351. package/dist/database/migration/20260428004200_add_session_path.js +1 -1
  352. package/dist/database/migration/20260501142318_next_venus.js +1 -1
  353. package/dist/database/migration/20260504145000_add_sync_owner.js +1 -1
  354. package/dist/database/migration/20260507164347_add_workspace_time.js +1 -1
  355. package/dist/database/migration/20260510033149_session_usage.js +1 -1
  356. package/dist/database/migration/20260511000411_data_migration_state.js +1 -1
  357. package/dist/database/migration/20260511173437_session-metadata.js +1 -1
  358. package/dist/database/migration/20260601010001_normalize_storage_paths.js +1 -1
  359. package/dist/database/migration/20260601202201_amazing_prowler.js +1 -1
  360. package/dist/database/migration/20260602002951_lowly_union_jack.js +1 -1
  361. package/dist/database/migration/20260602182828_add_project_directories.js +1 -1
  362. package/dist/database/migration/20260603001617_session_message_projection_indexes.js +1 -1
  363. package/dist/database/migration/20260603040000_session_message_projection_order.js +1 -1
  364. package/dist/database/migration/20260603141458_session_input_inbox.js +1 -1
  365. package/dist/database/migration/20260603160727_jittery_ezekiel_stane.js +1 -1
  366. package/dist/database/migration/20260604172448_event_sourced_session_input.js +1 -1
  367. package/dist/database/migration/20260605003541_add_session_context_snapshot.js +1 -1
  368. package/dist/database/migration/20260605042240_add_context_epoch_agent.js +1 -1
  369. package/dist/database/migration/20260611035744_credential.js +1 -1
  370. package/dist/database/migration/20260611192811_lush_chimera.js +1 -1
  371. package/dist/database/migration/20260612174303_project_dir_strategy.js +1 -1
  372. package/dist/database/migration/20260622142730_simplify_session_context_epoch.js +1 -1
  373. package/dist/database/migration/20260622170816_reset_v2_session_state.js +1 -1
  374. package/dist/database/migration/20260622202450_simplify_session_input.js +1 -1
  375. package/dist/database/migration/20260804233008_loose_psylocke.js +1 -1
  376. package/dist/database/migration/20260805200742_import_legacy_credentials.js +1 -1
  377. package/dist/database/migration/20260808023530_workspace_domain.js +1 -1
  378. package/dist/database/migration/20260811161259_execution_claim_attempts.js +1 -1
  379. package/dist/database/migration/20260812181746_session_inbox.js +1 -1
  380. package/dist/database/migration/20260812213948_worktree.js +1 -1
  381. package/dist/database/migration/20260819222447_session_viewed_state.js +1 -1
  382. package/dist/database/migration/20260823191254_nullable_workspace_binding.js +1 -1
  383. package/dist/database/migration.gen.js +47 -47
  384. package/dist/database/migration.js +49 -49
  385. package/dist/database/path.js +2 -2
  386. package/dist/database/schema.gen.js +1 -1
  387. package/dist/database/schema.sql.js +1 -1
  388. package/dist/database/sqlite.bun.js +1 -1
  389. package/dist/database/sqlite.js +1 -1
  390. package/dist/database/sqlite.node.js +1 -1
  391. package/dist/database/sqlite.workerd.js +1 -1
  392. package/dist/database/v1-migration.bun.js +77 -77
  393. package/dist/database/v1-migration.js +1 -1
  394. package/dist/effect/app-node-builder.js +360 -359
  395. package/dist/effect/app-node-platform.js +2 -2
  396. package/dist/effect/keyed-mutex.js +3 -3
  397. package/dist/effect/websocket-constructor.js +1 -1
  398. package/dist/environment/driver.js +1 -1
  399. package/dist/environment/environment.js +88 -88
  400. package/dist/environment/exec-defaults.js +2 -2
  401. package/dist/environment/files.js +1 -1
  402. package/dist/environment/index.js +90 -90
  403. package/dist/environment/local.js +2 -2
  404. package/dist/environment/memory.js +2 -2
  405. package/dist/environment/unavailable.js +1 -1
  406. package/dist/event/sql.js +1 -1
  407. package/dist/event-logger.js +72 -72
  408. package/dist/file-access.js +112 -0
  409. package/dist/file-mutation.js +89 -89
  410. package/dist/file-retention.js +1 -1
  411. package/dist/file.js +1 -1
  412. package/dist/filesystem/fff.bun.js +2 -2
  413. package/dist/filesystem/fff.js +1 -1
  414. package/dist/filesystem/fff.node.js +2 -2
  415. package/dist/filesystem/fff.workerd.js +2 -2
  416. package/dist/filesystem/ignore.js +1 -1
  417. package/dist/filesystem/location-watcher-policy.js +6 -6
  418. package/dist/filesystem/location-watcher.js +218 -217
  419. package/dist/filesystem/protected.js +1 -1
  420. package/dist/filesystem/search.js +99 -99
  421. package/dist/filesystem/watcher-binding.js +3 -3
  422. package/dist/filesystem/watcher.js +15 -15
  423. package/dist/filesystem.js +100 -100
  424. package/dist/form.js +84 -84
  425. package/dist/formatter/builtins.js +4 -4
  426. package/dist/formatter.js +82 -82
  427. package/dist/generate.js +89 -89
  428. package/dist/git.js +7 -7
  429. package/dist/github-copilot/chat/convert-to-openai-compatible-chat-messages.js +1 -1
  430. package/dist/github-copilot/chat/get-response-metadata.js +1 -1
  431. package/dist/github-copilot/chat/map-openai-compatible-finish-reason.js +1 -1
  432. package/dist/github-copilot/chat/openai-compatible-chat-language-model.js +7 -7
  433. package/dist/github-copilot/chat/openai-compatible-chat-options.js +1 -1
  434. package/dist/github-copilot/chat/openai-compatible-prepare-tools.js +1 -1
  435. package/dist/github-copilot/copilot-provider.js +17 -17
  436. package/dist/github-copilot/models.js +7 -7
  437. package/dist/github-copilot/openai-compatible-error.js +1 -1
  438. package/dist/github-copilot/responses/convert-to-openai-responses-input.js +1 -1
  439. package/dist/github-copilot/responses/map-openai-responses-finish-reason.js +1 -1
  440. package/dist/github-copilot/responses/openai-error.js +1 -1
  441. package/dist/github-copilot/responses/openai-responses-language-model.js +10 -10
  442. package/dist/github-copilot/responses/openai-responses-prepare-tools.js +6 -6
  443. package/dist/github-copilot/responses/tool/code-interpreter.js +1 -1
  444. package/dist/github-copilot/responses/tool/file-search.js +1 -1
  445. package/dist/github-copilot/responses/tool/image-generation.js +1 -1
  446. package/dist/github-copilot/responses/tool/web-search-preview.js +1 -1
  447. package/dist/github-copilot/responses/tool/web-search.js +1 -1
  448. package/dist/id/id.js +1 -1
  449. package/dist/image/photon.js +2 -2
  450. package/dist/image.js +6 -6
  451. package/dist/instance/service.js +5 -5
  452. package/dist/instance.js +351 -350
  453. package/dist/instruction-discovery.js +81 -81
  454. package/dist/instructions/builtins.js +82 -82
  455. package/dist/instructions/index.js +1 -1
  456. package/dist/integration/connection.js +1 -1
  457. package/dist/integration.js +86 -86
  458. package/dist/job.js +77 -77
  459. package/dist/kv/sql.js +2 -2
  460. package/dist/kv.js +71 -71
  461. package/dist/location-activity.js +131 -130
  462. package/dist/location-mutation.js +102 -83
  463. package/dist/location-service-map.js +81 -81
  464. package/dist/location-services.js +348 -347
  465. package/dist/location.js +82 -82
  466. package/dist/mcp/client.js +86 -86
  467. package/dist/mcp/index.js +105 -105
  468. package/dist/mcp/instructions.js +122 -121
  469. package/dist/mcp/oauth.js +24 -4
  470. package/dist/mcp/stdio.js +85 -85
  471. package/dist/mime.js +1 -1
  472. package/dist/modal/models.js +7 -7
  473. package/dist/model-resolver.js +88 -86
  474. package/dist/model.js +8 -8
  475. package/dist/models-dev.js +86 -86
  476. package/dist/oauth/page.js +1 -1
  477. package/dist/permission/saved.js +80 -80
  478. package/dist/permission/sql.js +5 -5
  479. package/dist/permission.js +110 -109
  480. package/dist/persistent-pty/binary.bun.js +1 -1
  481. package/dist/persistent-pty/daemon.js +1 -1
  482. package/dist/persistent-pty/index.js +84 -84
  483. package/dist/persistent-pty/pty-binding.js +1 -1
  484. package/dist/persistent-pty.js +73 -73
  485. package/dist/plugin/agent.js +97 -96
  486. package/dist/plugin/command.js +94 -94
  487. package/dist/plugin/hooks.js +5 -5
  488. package/dist/plugin/host.js +213 -212
  489. package/dist/plugin/instance.js +5 -5
  490. package/dist/plugin/internal.js +322 -321
  491. package/dist/plugin/mcp-codemode-exclusion.js +3 -3
  492. package/dist/plugin/models-dev.js +75 -75
  493. package/dist/plugin/module.js +7 -7
  494. package/dist/plugin/optimize.js +4 -4
  495. package/dist/plugin/plan.js +97 -96
  496. package/dist/plugin/promise.js +1 -1
  497. package/dist/plugin/provider/alibaba.js +2 -2
  498. package/dist/plugin/provider/amazon-bedrock.js +2 -2
  499. package/dist/plugin/provider/anthropic.js +2 -2
  500. package/dist/plugin/provider/azure.js +118 -118
  501. package/dist/plugin/provider/cerebras.js +2 -2
  502. package/dist/plugin/provider/cloudflare-ai-gateway.js +117 -117
  503. package/dist/plugin/provider/cloudflare-workers-ai.js +117 -117
  504. package/dist/plugin/provider/cohere.js +2 -2
  505. package/dist/plugin/provider/configured.js +114 -114
  506. package/dist/plugin/provider/dynamic.js +2 -2
  507. package/dist/plugin/provider/factory.js +1 -1
  508. package/dist/plugin/provider/gateway.js +2 -2
  509. package/dist/plugin/provider/github-copilot.js +80 -80
  510. package/dist/plugin/provider/gitlab.js +3 -3
  511. package/dist/plugin/provider/google-vertex.js +2 -2
  512. package/dist/plugin/provider/kilo.js +2 -2
  513. package/dist/plugin/provider/llmgateway.js +76 -76
  514. package/dist/plugin/provider/lmstudio.js +117 -117
  515. package/dist/plugin/provider/mistral.js +2 -2
  516. package/dist/plugin/provider/modal.js +79 -79
  517. package/dist/plugin/provider/nvidia.js +2 -2
  518. package/dist/plugin/provider/ollama.js +115 -115
  519. package/dist/plugin/provider/openai-compatible.js +1 -1
  520. package/dist/plugin/provider/openai.js +80 -80
  521. package/dist/plugin/provider/opencode.js +76 -76
  522. package/dist/plugin/provider/openrouter.js +3 -3
  523. package/dist/plugin/provider/perplexity.js +2 -2
  524. package/dist/plugin/provider/sap-ai-core.js +3 -3
  525. package/dist/plugin/provider/sdk-factory.js +1 -1
  526. package/dist/plugin/provider/snowflake-cortex.js +2 -2
  527. package/dist/plugin/provider/venice.js +2 -2
  528. package/dist/plugin/provider/vercel.js +2 -2
  529. package/dist/plugin/provider/vllm.js +117 -117
  530. package/dist/plugin/provider/xai.js +77 -77
  531. package/dist/plugin/provider/zenmux.js +2 -2
  532. package/dist/plugin/provider.js +155 -155
  533. package/dist/plugin/sdk.js +72 -72
  534. package/dist/plugin/service.js +3 -3
  535. package/dist/plugin/skill.js +133 -132
  536. package/dist/plugin/source-directory.js +1 -1
  537. package/dist/plugin/supervisor.js +337 -336
  538. package/dist/plugin/update.js +6 -6
  539. package/dist/plugin/variant.js +4 -4
  540. package/dist/plugin/vcs/git.js +82 -82
  541. package/dist/plugin/vcs/hg.js +82 -82
  542. package/dist/plugin/warming.js +112 -112
  543. package/dist/plugin/websearch/exa.js +7 -7
  544. package/dist/plugin/websearch/firecrawl.js +6 -6
  545. package/dist/plugin/websearch/index.js +8 -8
  546. package/dist/plugin/websearch/mcp.js +4 -4
  547. package/dist/plugin/websearch/parallel.js +8 -8
  548. package/dist/plugin/websearch/tavily.js +6 -6
  549. package/dist/plugin.js +224 -223
  550. package/dist/project/schema.js +8 -8
  551. package/dist/project/sql.js +4 -4
  552. package/dist/project.js +85 -85
  553. package/dist/provider.js +5 -5
  554. package/dist/pty/protocol.js +1 -1
  555. package/dist/pty/schema.js +3 -3
  556. package/dist/pty/ticket.js +1 -1
  557. package/dist/pty.js +94 -94
  558. package/dist/reference/instructions.js +84 -84
  559. package/dist/reference.js +86 -86
  560. package/dist/repository-cache.js +76 -76
  561. package/dist/repository.js +1 -1
  562. package/dist/ripgrep/binary.js +2 -2
  563. package/dist/ripgrep.js +93 -93
  564. package/dist/rpc.js +81 -81
  565. package/dist/schema.js +1 -1
  566. package/dist/session/command.js +72 -72
  567. package/dist/session/compaction.js +129 -126
  568. package/dist/session/context.js +147 -146
  569. package/dist/session/environment.js +5 -5
  570. package/dist/session/error.js +7 -7
  571. package/dist/session/event.js +1 -1
  572. package/dist/session/execution/restart.js +219 -218
  573. package/dist/session/execution.js +122 -121
  574. package/dist/session/generate.js +146 -145
  575. package/dist/session/history.js +15 -14
  576. package/dist/session/inbox.js +86 -86
  577. package/dist/session/info.js +3 -3
  578. package/dist/session/instruction-entry.js +77 -77
  579. package/dist/session/instruction-state.js +8 -8
  580. package/dist/session/instructions.js +88 -87
  581. package/dist/session/message-updater.js +2 -2
  582. package/dist/session/message.js +1 -1
  583. package/dist/session/model-request.js +113 -112
  584. package/dist/session/model-transport.js +9 -9
  585. package/dist/session/move.js +126 -125
  586. package/dist/session/projector.js +84 -84
  587. package/dist/session/prompt.js +100 -99
  588. package/dist/session/provider-context.js +20 -0
  589. package/dist/session/revert.js +85 -85
  590. package/dist/session/run-coordinator.js +3 -3
  591. package/dist/session/runner/index.js +3 -3
  592. package/dist/session/runner/llm.js +225 -224
  593. package/dist/session/runner/max-steps.js +1 -1
  594. package/dist/session/runner/model.js +88 -86
  595. package/dist/session/runner/publish-llm-event.js +3 -3
  596. package/dist/session/runner/retry.js +113 -5
  597. package/dist/session/runner/step.js +119 -118
  598. package/dist/session/runner/to-llm-message.js +2 -1
  599. package/dist/session/schema.js +5 -5
  600. package/dist/session/session.js +169 -168
  601. package/dist/session/shell.js +131 -131
  602. package/dist/session/skill.js +98 -97
  603. package/dist/session/sql.js +5 -5
  604. package/dist/session/stats.js +73 -73
  605. package/dist/session/store.js +83 -82
  606. package/dist/session/subagent-completion.js +1 -1
  607. package/dist/session/subagent-job.js +205 -204
  608. package/dist/session/system-prompt.js +3 -3
  609. package/dist/session/title.js +147 -146
  610. package/dist/session/to-session-error.js +107 -106
  611. package/dist/session/transfer.js +218 -217
  612. package/dist/session/usage.js +1 -1
  613. package/dist/session.js +213 -212
  614. package/dist/shell/parse.js +6 -6
  615. package/dist/shell/result.js +1 -1
  616. package/dist/shell/scan.js +1 -1
  617. package/dist/shell/select.js +13 -13
  618. package/dist/shell.js +133 -133
  619. package/dist/skill/discovery.js +6 -6
  620. package/dist/skill/instructions.js +102 -101
  621. package/dist/skill.js +107 -106
  622. package/dist/snapshot.js +84 -84
  623. package/dist/state.js +1 -1
  624. package/dist/tool/html-markdown.js +1 -1
  625. package/dist/tool/http-body.js +1 -1
  626. package/dist/tool/mcp.js +119 -118
  627. package/dist/tool/plugin/edit.js +115 -114
  628. package/dist/tool/plugin/file-diff.js +1 -1
  629. package/dist/tool/plugin/glob.js +120 -119
  630. package/dist/tool/plugin/grep.js +120 -119
  631. package/dist/tool/plugin/opencode.js +5 -3
  632. package/dist/tool/plugin/patch.js +111 -110
  633. package/dist/tool/plugin/question.js +96 -95
  634. package/dist/tool/plugin/read.js +121 -120
  635. package/dist/tool/plugin/shell.js +212 -211
  636. package/dist/tool/plugin/skill.js +108 -107
  637. package/dist/tool/plugin/subagent.js +212 -211
  638. package/dist/tool/plugin/webfetch.js +107 -106
  639. package/dist/tool/plugin/websearch.js +105 -104
  640. package/dist/tool/plugin/write.js +117 -116
  641. package/dist/tool/read-filesystem.js +96 -96
  642. package/dist/tool/runtime.js +1 -1
  643. package/dist/tool-output.js +8 -8
  644. package/dist/tool.js +15 -15
  645. package/dist/types/file-access.d.ts +52 -0
  646. package/dist/types/file-mutation.d.ts +2 -4
  647. package/dist/types/instance.d.ts +2 -2
  648. package/dist/types/location-activity.d.ts +1 -1
  649. package/dist/types/location-mutation.d.ts +3 -52
  650. package/dist/types/mcp/oauth.d.ts +10 -1
  651. package/dist/types/model-resolver.d.ts +25 -3
  652. package/dist/types/model.d.ts +11 -0
  653. package/dist/types/plugin/host.d.ts +2 -2
  654. package/dist/types/plugin/internal.d.ts +3 -3
  655. package/dist/types/provider.d.ts +11 -0
  656. package/dist/types/session/compaction.d.ts +11 -2
  657. package/dist/types/session/execution/restart.d.ts +1 -1
  658. package/dist/types/session/execution.d.ts +1 -1
  659. package/dist/types/session/generate.d.ts +1 -1
  660. package/dist/types/session/history.d.ts +59 -4
  661. package/dist/types/session/provider-context.d.ts +46 -0
  662. package/dist/types/session/runner/model.d.ts +4 -0
  663. package/dist/types/session/runner/retry.d.ts +5 -0
  664. package/dist/types/session/session.d.ts +3 -3
  665. package/dist/types/session/sql.d.ts +3 -3
  666. package/dist/types/session/transfer.d.ts +47 -0
  667. package/dist/types/tool/mcp.d.ts +1 -1
  668. package/dist/types/tool/plugin/edit.d.ts +2 -2
  669. package/dist/types/tool/plugin/glob.d.ts +2 -2
  670. package/dist/types/tool/plugin/grep.d.ts +2 -2
  671. package/dist/types/tool/plugin/opencode.d.ts +7 -0
  672. package/dist/types/tool/plugin/patch.d.ts +2 -2
  673. package/dist/types/tool/plugin/read.d.ts +2 -3
  674. package/dist/types/tool/plugin/shell.d.ts +2 -2
  675. package/dist/types/tool/plugin/websearch.d.ts +1 -1
  676. package/dist/types/tool/plugin/write.d.ts +2 -2
  677. package/dist/types/v1/config/agent.d.ts +4 -4
  678. package/dist/types/v1/config/config.d.ts +46 -46
  679. package/dist/types/v1/config/migrate.d.ts +19 -7
  680. package/dist/types/v1/config/permission.d.ts +3 -3
  681. package/dist/util/error-summary.js +1 -1
  682. package/dist/util/error.js +1 -1
  683. package/dist/util/iife.js +1 -1
  684. package/dist/util/lazy.js +1 -1
  685. package/dist/util/slug.js +1 -1
  686. package/dist/util/token.js +1 -1
  687. package/dist/util/which.js +1 -1
  688. package/dist/util/wildcard.js +1 -1
  689. package/dist/v1/config/agent.js +7 -7
  690. package/dist/v1/config/attachment.js +4 -4
  691. package/dist/v1/config/command.js +5 -5
  692. package/dist/v1/config/config.js +16 -16
  693. package/dist/v1/config/error.js +4 -4
  694. package/dist/v1/config/formatter.js +5 -5
  695. package/dist/v1/config/layout.js +1 -1
  696. package/dist/v1/config/lsp.js +5 -5
  697. package/dist/v1/config/mcp.js +4 -4
  698. package/dist/v1/config/migrate.js +4 -4
  699. package/dist/v1/config/permission.js +7 -7
  700. package/dist/v1/config/plugin.js +3 -3
  701. package/dist/v1/config/provider-options.js +1 -1
  702. package/dist/v1/config/provider.js +4 -4
  703. package/dist/v1/config/server.js +2 -2
  704. package/dist/v1/config/skills.js +3 -3
  705. package/dist/v1/permission.js +1 -1
  706. package/dist/vcs/patch.js +1 -1
  707. package/dist/vcs.js +85 -85
  708. package/dist/websearch.js +76 -76
  709. package/dist/wellknown/plugin.js +74 -74
  710. package/dist/wellknown.js +79 -79
  711. package/dist/workspace/driver.js +5 -5
  712. package/dist/workspace/sql.js +1 -1
  713. package/dist/workspace.js +78 -78
  714. package/dist/worktree/directory.js +2 -2
  715. package/dist/worktree/git.js +7 -7
  716. package/dist/worktree/refresh.js +340 -339
  717. package/dist/worktree/sql.js +5 -5
  718. package/dist/worktree.js +91 -91
  719. package/package.json +8 -7
  720. package/dist/chunks/file-7zk4hah4.js +0 -4
  721. package/dist/chunks/file-a6m8wy4f.js +0 -84
  722. package/dist/chunks/file-ht5y0zrb.js +0 -18
  723. package/dist/chunks/file-k7jgc7wy.js +0 -22
  724. package/dist/chunks/file-ktr5pece.js +0 -460
  725. package/dist/chunks/file-pegy9qka.js +0 -247
  726. /package/dist/chunks/{file-0fabt78z.js → location-mutation-0fabt78z.js} +0 -0
  727. /package/dist/chunks/{file-0qkdqm5v.js → location-mutation-0qkdqm5v.js} +0 -0
  728. /package/dist/chunks/{file-0zkw76rk.js → location-mutation-0zkw76rk.js} +0 -0
  729. /package/dist/chunks/{file-17cy0kzp.js → location-mutation-17cy0kzp.js} +0 -0
  730. /package/dist/chunks/{file-1cnp2v09.js → location-mutation-1cnp2v09.js} +0 -0
  731. /package/dist/chunks/{file-1kg9ymc8.js → location-mutation-1kg9ymc8.js} +0 -0
  732. /package/dist/chunks/{file-2710q6r3.js → location-mutation-2710q6r3.js} +0 -0
  733. /package/dist/chunks/{file-2axfhc9x.js → location-mutation-2axfhc9x.js} +0 -0
  734. /package/dist/chunks/{file-2c3vjs8z.js → location-mutation-2c3vjs8z.js} +0 -0
  735. /package/dist/chunks/{file-359p4xyc.js → location-mutation-359p4xyc.js} +0 -0
  736. /package/dist/chunks/{file-3asan66x.js → location-mutation-3asan66x.js} +0 -0
  737. /package/dist/chunks/{file-3t738kvx.js → location-mutation-3t738kvx.js} +0 -0
  738. /package/dist/chunks/{file-3v8g72cx.js → location-mutation-3v8g72cx.js} +0 -0
  739. /package/dist/chunks/{file-3wcehsnq.js → location-mutation-3wcehsnq.js} +0 -0
  740. /package/dist/chunks/{file-41nvscxy.js → location-mutation-41nvscxy.js} +0 -0
  741. /package/dist/chunks/{file-43n2bw4t.js → location-mutation-43n2bw4t.js} +0 -0
  742. /package/dist/chunks/{file-4knz6hnm.js → location-mutation-4knz6hnm.js} +0 -0
  743. /package/dist/chunks/{file-4y7fprxs.js → location-mutation-4y7fprxs.js} +0 -0
  744. /package/dist/chunks/{file-53557ph1.js → location-mutation-53557ph1.js} +0 -0
  745. /package/dist/chunks/{file-550bvhaj.js → location-mutation-550bvhaj.js} +0 -0
  746. /package/dist/chunks/{file-6prwharc.js → location-mutation-6prwharc.js} +0 -0
  747. /package/dist/chunks/{file-7akdwqpd.js → location-mutation-7akdwqpd.js} +0 -0
  748. /package/dist/chunks/{file-7m9af43g.js → location-mutation-7m9af43g.js} +0 -0
  749. /package/dist/chunks/{file-822emrt2.js → location-mutation-822emrt2.js} +0 -0
  750. /package/dist/chunks/{file-88xbtdfr.js → location-mutation-88xbtdfr.js} +0 -0
  751. /package/dist/chunks/{file-8n3pysct.js → location-mutation-8n3pysct.js} +0 -0
  752. /package/dist/chunks/{file-982e01ww.js → location-mutation-982e01ww.js} +0 -0
  753. /package/dist/chunks/{file-9a4afbnw.js → location-mutation-9a4afbnw.js} +0 -0
  754. /package/dist/chunks/{file-9rqn6x4v.js → location-mutation-9rqn6x4v.js} +0 -0
  755. /package/dist/chunks/{file-a1tpkmh4.js → location-mutation-a1tpkmh4.js} +0 -0
  756. /package/dist/chunks/{file-af5trqkr.js → location-mutation-af5trqkr.js} +0 -0
  757. /package/dist/chunks/{file-afrmfg78.js → location-mutation-afrmfg78.js} +0 -0
  758. /package/dist/chunks/{file-aqzs7mqg.js → location-mutation-aqzs7mqg.js} +0 -0
  759. /package/dist/chunks/{file-atq7p7m5.js → location-mutation-atq7p7m5.js} +0 -0
  760. /package/dist/chunks/{file-bkyjaxrp.js → location-mutation-bkyjaxrp.js} +0 -0
  761. /package/dist/chunks/{file-bmr6ed5q.js → location-mutation-bmr6ed5q.js} +0 -0
  762. /package/dist/chunks/{file-cf4snx6d.js → location-mutation-cf4snx6d.js} +0 -0
  763. /package/dist/chunks/{file-cvy3z8tj.js → location-mutation-cvy3z8tj.js} +0 -0
  764. /package/dist/chunks/{file-d9fn303g.js → location-mutation-d9fn303g.js} +0 -0
  765. /package/dist/chunks/{file-d9jj8t3e.js → location-mutation-d9jj8t3e.js} +0 -0
  766. /package/dist/chunks/{file-dajrwvna.js → location-mutation-dajrwvna.js} +0 -0
  767. /package/dist/chunks/{file-dap0rakb.js → location-mutation-dap0rakb.js} +0 -0
  768. /package/dist/chunks/{file-df08tz66.js → location-mutation-df08tz66.js} +0 -0
  769. /package/dist/chunks/{file-dy18nga0.js → location-mutation-dy18nga0.js} +0 -0
  770. /package/dist/chunks/{file-e5kj55wp.js → location-mutation-e5kj55wp.js} +0 -0
  771. /package/dist/chunks/{file-e73j6tqm.js → location-mutation-e73j6tqm.js} +0 -0
  772. /package/dist/chunks/{file-eh3zwz77.js → location-mutation-eh3zwz77.js} +0 -0
  773. /package/dist/chunks/{file-emrn6kk6.js → location-mutation-emrn6kk6.js} +0 -0
  774. /package/dist/chunks/{file-f0mxakyp.js → location-mutation-f0mxakyp.js} +0 -0
  775. /package/dist/chunks/{file-f6n9ztr4.js → location-mutation-f6n9ztr4.js} +0 -0
  776. /package/dist/chunks/{file-faypxj3z.js → location-mutation-faypxj3z.js} +0 -0
  777. /package/dist/chunks/{file-fd410y7t.js → location-mutation-fd410y7t.js} +0 -0
  778. /package/dist/chunks/{file-fxgpk5d8.js → location-mutation-fxgpk5d8.js} +0 -0
  779. /package/dist/chunks/{file-g4wezp1m.js → location-mutation-g4wezp1m.js} +0 -0
  780. /package/dist/chunks/{file-g86h250q.js → location-mutation-g86h250q.js} +0 -0
  781. /package/dist/chunks/{file-gebd4c9n.js → location-mutation-gebd4c9n.js} +0 -0
  782. /package/dist/chunks/{file-hk9envan.js → location-mutation-hk9envan.js} +0 -0
  783. /package/dist/chunks/{file-j2ntwpah.js → location-mutation-j2ntwpah.js} +0 -0
  784. /package/dist/chunks/{file-j5zkgpj8.js → location-mutation-j5zkgpj8.js} +0 -0
  785. /package/dist/chunks/{file-jr7sbwjy.js → location-mutation-jr7sbwjy.js} +0 -0
  786. /package/dist/chunks/{file-jwfs4k6c.js → location-mutation-jwfs4k6c.js} +0 -0
  787. /package/dist/chunks/{file-jzg6c2d5.js → location-mutation-jzg6c2d5.js} +0 -0
  788. /package/dist/chunks/{file-mntxs535.js → location-mutation-mntxs535.js} +0 -0
  789. /package/dist/chunks/{file-mp448xyj.js → location-mutation-mp448xyj.js} +0 -0
  790. /package/dist/chunks/{file-msx8hqn2.js → location-mutation-msx8hqn2.js} +0 -0
  791. /package/dist/chunks/{file-n05xt0ee.js → location-mutation-n05xt0ee.js} +0 -0
  792. /package/dist/chunks/{file-n3j8tn72.js → location-mutation-n3j8tn72.js} +0 -0
  793. /package/dist/chunks/{file-njntx4h6.js → location-mutation-njntx4h6.js} +0 -0
  794. /package/dist/chunks/{file-p8qxwesx.js → location-mutation-p8qxwesx.js} +0 -0
  795. /package/dist/chunks/{file-q3sfg36h.js → location-mutation-q3sfg36h.js} +0 -0
  796. /package/dist/chunks/{file-q74kybfr.js → location-mutation-q74kybfr.js} +0 -0
  797. /package/dist/chunks/{file-qaymkmh1.js → location-mutation-qaymkmh1.js} +0 -0
  798. /package/dist/chunks/{file-qb87gjwd.js → location-mutation-qb87gjwd.js} +0 -0
  799. /package/dist/chunks/{file-qfa1cgps.js → location-mutation-qfa1cgps.js} +0 -0
  800. /package/dist/chunks/{file-qrg20bc0.js → location-mutation-qrg20bc0.js} +0 -0
  801. /package/dist/chunks/{file-rcb2kzg1.js → location-mutation-rcb2kzg1.js} +0 -0
  802. /package/dist/chunks/{file-sdp7kfr6.js → location-mutation-sdp7kfr6.js} +0 -0
  803. /package/dist/chunks/{file-se0s1eqw.js → location-mutation-se0s1eqw.js} +0 -0
  804. /package/dist/chunks/{file-sk3qaz4a.js → location-mutation-sk3qaz4a.js} +0 -0
  805. /package/dist/chunks/{file-ssg3fenm.js → location-mutation-ssg3fenm.js} +0 -0
  806. /package/dist/chunks/{file-twg0f83k.js → location-mutation-twg0f83k.js} +0 -0
  807. /package/dist/chunks/{file-w803qqfp.js → location-mutation-w803qqfp.js} +0 -0
  808. /package/dist/chunks/{file-wer8tq1h.js → location-mutation-wer8tq1h.js} +0 -0
  809. /package/dist/chunks/{file-wtztk69x.js → location-mutation-wtztk69x.js} +0 -0
  810. /package/dist/chunks/{file-x0ckcb58.js → location-mutation-x0ckcb58.js} +0 -0
  811. /package/dist/chunks/{file-x1b8g1yb.js → location-mutation-x1b8g1yb.js} +0 -0
  812. /package/dist/chunks/{file-x61499pn.js → location-mutation-x61499pn.js} +0 -0
  813. /package/dist/chunks/{file-y44na4kk.js → location-mutation-y44na4kk.js} +0 -0
  814. /package/dist/chunks/{file-y8cydn3q.js → location-mutation-y8cydn3q.js} +0 -0
  815. /package/dist/chunks/{file-ygaqb7jw.js → location-mutation-ygaqb7jw.js} +0 -0
  816. /package/dist/chunks/{file-z9919s4g.js → location-mutation-z9919s4g.js} +0 -0
@@ -1,26 +1,31 @@
1
1
  import {
2
2
  SessionMessage2
3
- } from "./file-982e01ww.js";
3
+ } from "./location-mutation-982e01ww.js";
4
4
  import {
5
5
  SessionSchema2
6
- } from "./file-1nk2mnc0.js";
6
+ } from "./location-mutation-wkjngxy5.js";
7
7
  import {
8
8
  MessageDecodeError2
9
- } from "./file-2j2akc50.js";
9
+ } from "./location-mutation-yd30tg6k.js";
10
10
  import {
11
11
  InitializationBlocked2,
12
12
  read3
13
- } from "./file-97f5v037.js";
13
+ } from "./location-mutation-97f5v037.js";
14
14
  import {
15
15
  SessionMessageTable2
16
- } from "./file-hrvm11jt.js";
16
+ } from "./location-mutation-g2dy4bvs.js";
17
17
  import {
18
18
  initial2,
19
19
  preview3
20
- } from "./file-hr77wr0b.js";
20
+ } from "./location-mutation-m1e4fd8e.js";
21
+ import {
22
+ compatible2,
23
+ isCheckpoint2,
24
+ validate2
25
+ } from "./location-mutation-9v90f9cc.js";
21
26
  import {
22
27
  __export
23
- } from "./file-9rqn6x4v.js";
28
+ } from "./location-mutation-9rqn6x4v.js";
24
29
 
25
30
  // src/session/history.ts
26
31
  var exports_history = {};
@@ -30,40 +35,43 @@ __export(exports_history, {
30
35
  entriesForRunner: () => entriesForRunner2,
31
36
  firstUserMessage: () => firstUserMessage2,
32
37
  latestCompaction: () => latestCompaction2,
33
- load: () => load3,
38
+ load: () => load2,
34
39
  preview: () => preview2
35
40
  });
36
- import { and, asc, desc, eq, gte, sql } from "drizzle-orm";
41
+ import { and, asc, desc, eq, gte, or, sql } from "drizzle-orm";
37
42
  import { Effect, Schema } from "effect";
38
43
  var decode = Schema.decodeUnknownEffect(SessionMessage2.Info);
39
- var latestCompaction2 = Effect.fnUntraced(function* (db, sessionID) {
40
- return yield* db.select({ seq: SessionMessageTable2.seq }).from(SessionMessageTable2).where(and(eq(SessionMessageTable2.session_id, sessionID), eq(SessionMessageTable2.type, "compaction"), sql`json_extract(${SessionMessageTable2.data}, '$.status') = 'completed'`)).orderBy(desc(SessionMessageTable2.seq)).limit(1).get().pipe(Effect.orDie);
44
+ var replayable = (message, boundary) => !isCheckpoint2(message) || boundary === "latest" || boundary !== "local" && compatible2(message.providerContext.provenance, boundary);
45
+ var latestCompaction2 = Effect.fnUntraced(function* (db, sessionID, boundary) {
46
+ return yield* db.select({ seq: SessionMessageTable2.seq }).from(SessionMessageTable2).where(and(eq(SessionMessageTable2.session_id, sessionID), eq(SessionMessageTable2.type, "compaction"), sql`json_extract(${SessionMessageTable2.data}, '$.status') = 'completed'`, boundary === "latest" ? undefined : or(sql`json_extract(${SessionMessageTable2.data}, '$.providerContext') is null`, boundary === "local" ? undefined : and(...Object.entries(boundary).map(([key, value]) => sql`json_extract(${SessionMessageTable2.data}, ${`$.providerContext.provenance.${key}`}) = ${value}`))))).orderBy(desc(SessionMessageTable2.seq)).limit(1).get().pipe(Effect.orDie);
41
47
  });
42
- var decodeMessageRow2 = (row) => decode({ ...row.data, id: row.id, type: row.type }).pipe(Effect.mapError(() => new MessageDecodeError2({
48
+ var decodeMessageRow2 = (row) => decode({ ...row.data, id: row.id, type: row.type }).pipe(Effect.tap((message) => isCheckpoint2(message) ? validate2(message.providerContext) : Effect.void), Effect.mapError(() => new MessageDecodeError2({
43
49
  sessionID: SessionSchema2.ID.make(row.session_id),
44
50
  messageID: SessionMessage2.ID.make(row.id)
45
51
  })));
46
- var messageEntries = Effect.fnUntraced(function* (db, sessionID) {
47
- const compaction = yield* latestCompaction2(db, sessionID);
52
+ var messageEntries = Effect.fnUntraced(function* (db, sessionID, boundary) {
53
+ const compaction = yield* latestCompaction2(db, sessionID, boundary);
48
54
  const rows = yield* db.select().from(SessionMessageTable2).where(and(eq(SessionMessageTable2.session_id, sessionID), compaction ? gte(SessionMessageTable2.seq, compaction.seq) : undefined)).orderBy(asc(SessionMessageTable2.seq)).all().pipe(Effect.orDie);
49
- return yield* Effect.forEach(rows, (row) => decodeMessageRow2(row).pipe(Effect.map((message) => ({ seq: row.seq, message }))));
55
+ const entries = yield* Effect.forEach(rows, (row) => decodeMessageRow2(row).pipe(Effect.map((message) => ({ seq: row.seq, message }))));
56
+ const native = entries.findLast((entry) => isCheckpoint2(entry.message));
57
+ return entries.filter((entry) => !(entry.message.type === "system" && native && entry.seq < native.seq) && replayable(entry.message, boundary));
50
58
  });
51
- var load3 = Effect.fn("SessionHistory.load")(function* (db, sessionID) {
52
- return (yield* messageEntries(db, sessionID)).map((entry) => entry.message);
59
+ var load2 = Effect.fn("SessionHistory.load")(function* (db, sessionID, boundary) {
60
+ return (yield* messageEntries(db, sessionID, boundary)).map((entry) => entry.message);
53
61
  });
54
- var entriesForRunner2 = Effect.fn("SessionHistory.entriesForRunner")(function* (db, sessionID, instructions) {
62
+ var entriesForRunner2 = Effect.fn("SessionHistory.entriesForRunner")(function* (db, sessionID, instructions, boundary) {
55
63
  return yield* db.transaction(() => Effect.gen(function* () {
56
- const messages = yield* messageEntries(db, sessionID);
64
+ const messages = yield* messageEntries(db, sessionID, boundary);
57
65
  return {
58
66
  initial: yield* initial2(db, sessionID, instructions),
59
67
  entries: messages
60
68
  };
61
69
  })).pipe(Effect.orDie);
62
70
  });
63
- var preview2 = Effect.fn("SessionHistory.preview")(function* (db, sessionID, instructions) {
71
+ var preview2 = Effect.fn("SessionHistory.preview")(function* (db, sessionID, instructions, boundary) {
64
72
  const observed = yield* read3(instructions);
65
73
  return yield* db.transaction(() => Effect.gen(function* () {
66
- const messages = yield* messageEntries(db, sessionID);
74
+ const messages = yield* messageEntries(db, sessionID, boundary);
67
75
  const unsettled = messages.findIndex((entry) => entry.message.type === "assistant" && entry.message.time.completed === undefined);
68
76
  const settled = unsettled === -1 ? messages : messages.slice(0, unsettled);
69
77
  const assembled = yield* preview3(db, sessionID, instructions, observed);
@@ -84,4 +92,4 @@ var firstUserMessage2 = Effect.fn("SessionHistory.firstUserMessage")(function* (
84
92
  return message?.type === "user" ? message : undefined;
85
93
  });
86
94
 
87
- export { latestCompaction2, decodeMessageRow2, load3, entriesForRunner2, preview2, firstUserMessage2, exports_history };
95
+ export { latestCompaction2, decodeMessageRow2, load2, entriesForRunner2, preview2, firstUserMessage2, exports_history };
@@ -1,52 +1,51 @@
1
1
  import {
2
2
  typeFollowing2
3
- } from "./file-2a5m3afh.js";
3
+ } from "./location-mutation-2a5m3afh.js";
4
4
  import {
5
5
  RelativePath2
6
- } from "./file-p8qxwesx.js";
6
+ } from "./location-mutation-p8qxwesx.js";
7
7
  import {
8
- Service72
9
- } from "./file-xdrtxdpg.js";
8
+ Service76
9
+ } from "./location-mutation-c0w89p9e.js";
10
10
  import {
11
- Service70
12
- } from "./file-tymq08ss.js";
11
+ Service69
12
+ } from "./location-mutation-aw1ne1gp.js";
13
13
  import {
14
14
  InvalidPatternError2,
15
- Service69
16
- } from "./file-m4je5jzf.js";
15
+ Service68
16
+ } from "./location-mutation-7k08vs8b.js";
17
17
  import {
18
18
  DEFAULT_SEARCH_LIMIT2,
19
19
  DEFAULT_SEARCH_TIMEOUT_MS2,
20
20
  GrepInput2,
21
21
  Entry2,
22
22
  Match2
23
- } from "./file-yt0vhsen.js";
23
+ } from "./location-mutation-50tkbn4e.js";
24
24
  import {
25
- externalDirectoryPermission2,
26
- Service48
27
- } from "./file-a6m8wy4f.js";
25
+ Service61
26
+ } from "./location-mutation-ht4enzqw.js";
28
27
  import {
29
- Service57
30
- } from "./file-ajc7k593.js";
28
+ Service59
29
+ } from "./location-mutation-ty1a3g8x.js";
31
30
  import {
32
31
  __export
33
- } from "./file-9rqn6x4v.js";
32
+ } from "./location-mutation-9rqn6x4v.js";
34
33
 
35
34
  // src/tool/plugin/grep.ts
36
35
  var exports_grep = {};
37
36
  __export(exports_grep, {
38
37
  GrepTool: () => exports_grep,
39
- Input: () => Input7,
40
- Output: () => Output4,
41
- Plugin: () => Plugin38,
42
- name: () => name7,
43
- toModelContent: () => toModelContent4
38
+ Input: () => Input10,
39
+ Output: () => Output6,
40
+ Plugin: () => Plugin11,
41
+ name: () => name10,
42
+ toModelContent: () => toModelContent6
44
43
  });
45
44
  import { ToolFailure } from "@opencode-ai/ai";
46
45
  import { Effect, Schema } from "effect";
47
46
  import path from "path";
48
- var name7 = "grep";
49
- var Input7 = Schema.Struct({
47
+ var name10 = "grep";
48
+ var Input10 = Schema.Struct({
50
49
  pattern: GrepInput2.fields.pattern.check(Schema.isMinLength(1, { message: "Pattern must not be empty" })).annotate({
51
50
  description: "Regular expression or literal text to match in file contents."
52
51
  }),
@@ -66,8 +65,8 @@ var Input7 = Schema.Struct({
66
65
  description: `Maximum number of matching lines to return (default: ${DEFAULT_SEARCH_LIMIT2})`
67
66
  })
68
67
  });
69
- var Output4 = Schema.Array(Match2);
70
- var toModelContent4 = (matches, truncated = false) => {
68
+ var Output6 = Schema.Array(Match2);
69
+ var toModelContent6 = (matches, truncated = false) => {
71
70
  const lines = matches.length === 0 ? ["No matches found"] : [`Found ${matches.length} matches`];
72
71
  let current = "";
73
72
  for (const match of matches) {
@@ -84,32 +83,26 @@ var toModelContent4 = (matches, truncated = false) => {
84
83
  return lines.join(`
85
84
  `);
86
85
  };
87
- var Plugin38 = {
86
+ var Plugin11 = {
88
87
  id: "opencode.tool.grep",
89
88
  effect: Effect.fn("GrepTool.Plugin")(function* (ctx) {
90
- const environment = yield* Service70;
91
- const ripgrep = yield* Service69;
92
- const location = yield* Service72;
93
- const mutation = yield* Service48;
94
- const permission = yield* Service57;
89
+ const environment = yield* Service69;
90
+ const ripgrep = yield* Service68;
91
+ const location = yield* Service76;
92
+ const access = yield* Service59;
93
+ const permission = yield* Service61;
95
94
  yield* ctx.tool.transform((editor) => editor.add({
96
- name: name7,
95
+ name: name10,
97
96
  options: { codemode: false },
98
97
  description: "Search file contents using ripgrep's regular expression syntax or literal text matching. Use it to locate specific code, symbols, or text patterns, and narrow searches with `path` or `include`. Returns matching file paths, line numbers, and line previews.",
99
- input: Input7,
100
- output: Output4,
98
+ input: Input10,
99
+ output: Output6,
101
100
  execute: (input, context) => Effect.gen(function* () {
102
101
  const source = { type: "tool", messageID: context.messageID, id: context.id };
103
- const target = yield* mutation.resolve({ path: input.path ?? "." });
104
- if (target.externalDirectory)
105
- yield* permission.assert({
106
- ...externalDirectoryPermission2(target.externalDirectory),
107
- sessionID: context.sessionID,
108
- agent: context.agent,
109
- source
110
- });
102
+ const target = yield* access.resolve({ path: input.path ?? "." });
103
+ yield* access.authorizeExternal([target], context);
111
104
  yield* permission.assert({
112
- action: name7,
105
+ action: name10,
113
106
  resources: [input.pattern],
114
107
  save: ["*"],
115
108
  metadata: {
@@ -151,7 +144,7 @@ var Plugin38 = {
151
144
  return { matches: matches.slice(0, limit), truncated: matches.length > limit };
152
145
  }).pipe(Effect.map((result) => ({
153
146
  output: result.matches,
154
- content: toModelContent4(result.matches.map((match) => ({
147
+ content: toModelContent6(result.matches.map((match) => ({
155
148
  ...match,
156
149
  entry: { ...match.entry, path: path.resolve(location.directory, match.entry.path) }
157
150
  })), result.truncated),
@@ -161,4 +154,4 @@ var Plugin38 = {
161
154
  })
162
155
  };
163
156
 
164
- export { name7, Input7, Output4, toModelContent4, Plugin38, exports_grep };
157
+ export { name10, Input10, Output6, toModelContent6, Plugin11, exports_grep };
@@ -1,15 +1,15 @@
1
1
  import {
2
2
  latest2,
3
- Service38
4
- } from "./file-mhq5r63x.js";
3
+ Service71
4
+ } from "./location-mutation-cz67sxjn.js";
5
5
  import {
6
6
  __export
7
- } from "./file-9rqn6x4v.js";
7
+ } from "./location-mutation-9rqn6x4v.js";
8
8
 
9
9
  // src/plugin/warming.ts
10
10
  var exports_warming = {};
11
11
  __export(exports_warming, {
12
- Plugin: () => Plugin31,
12
+ Plugin: () => Plugin41,
13
13
  WarmingPlugin: () => exports_warming
14
14
  });
15
15
  import { define } from "@opencode-ai/plugin/effect/plugin";
@@ -19,10 +19,10 @@ var defaults = {
19
19
  interval: Duration.minutes(4),
20
20
  duration: Duration.minutes(30)
21
21
  };
22
- var Plugin31 = define({
22
+ var Plugin41 = define({
23
23
  id: "opencode.warming",
24
24
  effect: Effect.fn(function* (ctx) {
25
- const config = yield* Service38;
25
+ const config = yield* Service71;
26
26
  const loadSettings = Effect.fn("WarmingPlugin.loadSettings")(function* () {
27
27
  const warming = latest2(yield* config.entries(), "warming");
28
28
  if (!warming)
@@ -90,4 +90,4 @@ var Plugin31 = define({
90
90
  })
91
91
  });
92
92
 
93
- export { Plugin31, exports_warming };
93
+ export { Plugin41, exports_warming };
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  __export
3
- } from "./file-9rqn6x4v.js";
3
+ } from "./location-mutation-9rqn6x4v.js";
4
4
 
5
5
  // src/v1/config/layout.ts
6
6
  var exports_layout = {};
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  __export
3
- } from "./file-9rqn6x4v.js";
3
+ } from "./location-mutation-9rqn6x4v.js";
4
4
 
5
5
  // src/repository.ts
6
6
  var exports_repository = {};
@@ -1,14 +1,14 @@
1
1
  import {
2
2
  NamedError2
3
- } from "./file-2axfhc9x.js";
3
+ } from "./location-mutation-2axfhc9x.js";
4
4
  import {
5
5
  __export
6
- } from "./file-9rqn6x4v.js";
6
+ } from "./location-mutation-9rqn6x4v.js";
7
7
 
8
8
  // src/v1/config/error.ts
9
- var exports_error = {};
10
- __export(exports_error, {
11
- ConfigErrorV1: () => exports_error,
9
+ var exports_error2 = {};
10
+ __export(exports_error2, {
11
+ ConfigErrorV1: () => exports_error2,
12
12
  DirectoryTypoError: () => DirectoryTypoError2,
13
13
  FrontmatterError: () => FrontmatterError2,
14
14
  InvalidError: () => InvalidError2,
@@ -43,4 +43,4 @@ var RemoteAuthError2 = NamedError2.create("ConfigRemoteAuthError", {
43
43
  remote: Schema.String
44
44
  });
45
45
 
46
- export { JsonError2, InvalidError2, FrontmatterError2, DirectoryTypoError2, RemoteAuthError2, exports_error };
46
+ export { JsonError2, InvalidError2, FrontmatterError2, DirectoryTypoError2, RemoteAuthError2, exports_error2 };
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  __export
3
- } from "./file-9rqn6x4v.js";
3
+ } from "./location-mutation-9rqn6x4v.js";
4
4
 
5
5
  // src/environment/files.ts
6
6
  var exports_files = {};
@@ -1,33 +1,33 @@
1
1
  import {
2
- Service76,
3
- node81
4
- } from "./file-7qhv6080.js";
2
+ Service79,
3
+ node84
4
+ } from "./location-mutation-k81hrtfb.js";
5
5
  import {
6
6
  optional2,
7
7
  statics2
8
- } from "./file-p8qxwesx.js";
8
+ } from "./location-mutation-p8qxwesx.js";
9
9
  import {
10
10
  Ref4,
11
- Service72,
12
- node77
13
- } from "./file-xdrtxdpg.js";
11
+ Service76,
12
+ node81
13
+ } from "./location-mutation-c0w89p9e.js";
14
14
  import {
15
15
  __export
16
- } from "./file-9rqn6x4v.js";
16
+ } from "./location-mutation-9rqn6x4v.js";
17
17
 
18
18
  // src/rpc.ts
19
19
  var exports_rpc = {};
20
20
  __export(exports_rpc, {
21
21
  Rpc: () => exports_rpc,
22
- Service: () => Service35,
22
+ Service: () => Service44,
23
23
  define: () => define2,
24
- node: () => node39
24
+ node: () => node47
25
25
  });
26
26
  import { define as define2 } from "@opencode-ai/schema/rpc";
27
27
  import { Event } from "@opencode-ai/schema/event";
28
28
  import { makeLocationNode } from "@opencode-ai/util/effect/app-node";
29
29
  import { Context, Effect, JsonSchema, Layer, Schema, SchemaRepresentation, Stream } from "effect";
30
- class Service35 extends Context.Service()("@opencode/Rpc") {
30
+ class Service44 extends Context.Service()("@opencode/Rpc") {
31
31
  }
32
32
 
33
33
  class DeclaredError extends Error {
@@ -39,9 +39,9 @@ class DeclaredError extends Error {
39
39
  this.data = data;
40
40
  }
41
41
  }
42
- var layer = Layer.effect(Service35, Effect.gen(function* () {
43
- const bus = yield* Service76;
44
- const location = yield* Service72;
42
+ var layer = Layer.effect(Service44, Effect.gen(function* () {
43
+ const bus = yield* Service79;
44
+ const location = yield* Service76;
45
45
  const ref = Ref4.make({ directory: location.directory, workspaceID: location.workspaceID });
46
46
  const callContext = {
47
47
  error: (type, message, data) => new DeclaredError(type, message, data)
@@ -115,14 +115,14 @@ var layer = Layer.effect(Service35, Effect.gen(function* () {
115
115
  const registered = events.get(name);
116
116
  if (!registered)
117
117
  return Stream.fail(new Error(`Unknown RPC event: ${definition.id}.${name}`));
118
- return bus.subscribe(registered.definition).pipe(Stream.provideService(Service72, location), Stream.mapEffect((payload) => logicalEvent(definition, name, payload, ref)));
118
+ return bus.subscribe(registered.definition).pipe(Stream.provideService(Service76, location), Stream.mapEffect((payload) => logicalEvent(definition, name, payload, ref)));
119
119
  }
120
120
  }
121
121
  };
122
122
  };
123
- return Service35.of({ register, call, client });
123
+ return Service44.of({ register, call, client });
124
124
  }));
125
- var node39 = makeLocationNode({ service: Service35, layer, deps: [node81, node77] });
125
+ var node47 = makeLocationNode({ service: Service44, layer, deps: [node84, node81] });
126
126
  var fields = {
127
127
  id: Event.ID,
128
128
  created: Schema.Finite,
@@ -207,4 +207,4 @@ var logicalEvent = Effect.fn("Rpc.logicalEvent")(function* (definition, name, pa
207
207
  };
208
208
  });
209
209
 
210
- export { Service35, node39, exports_rpc, define2 };
210
+ export { Service44, node47, exports_rpc, define2 };
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  createProviderPlugin2
3
- } from "./file-se0s1eqw.js";
3
+ } from "./location-mutation-se0s1eqw.js";
4
4
 
5
5
  // src/plugin/provider/venice.ts
6
6
  var VenicePlugin2 = createProviderPlugin2({
@@ -1,14 +1,14 @@
1
1
  import {
2
2
  __export
3
- } from "./file-9rqn6x4v.js";
3
+ } from "./location-mutation-9rqn6x4v.js";
4
4
 
5
5
  // src/v1/config/lsp.ts
6
6
  var exports_lsp = {};
7
7
  __export(exports_lsp, {
8
8
  ConfigLSPV1: () => exports_lsp,
9
9
  Disabled: () => Disabled2,
10
- Entry: () => Entry4,
11
- Info: () => Info16,
10
+ Entry: () => Entry3,
11
+ Info: () => Info21,
12
12
  builtinServerIds: () => builtinServerIds2,
13
13
  requiresExtensionsForCustomServers: () => requiresExtensionsForCustomServers2
14
14
  });
@@ -16,7 +16,7 @@ import { Schema } from "effect";
16
16
  var Disabled2 = Schema.Struct({
17
17
  disabled: Schema.Literal(true)
18
18
  });
19
- var Entry4 = Schema.Union([
19
+ var Entry3 = Schema.Union([
20
20
  Disabled2,
21
21
  Schema.Struct({
22
22
  command: Schema.mutable(Schema.Array(Schema.String)),
@@ -79,6 +79,6 @@ var requiresExtensionsForCustomServers2 = Schema.makeFilter((data) => {
79
79
  });
80
80
  return ok ? undefined : "For custom LSP servers, 'extensions' array is required.";
81
81
  });
82
- var Info16 = Schema.Union([Schema.Boolean, Schema.Record(Schema.String, Entry4)]).check(requiresExtensionsForCustomServers2);
82
+ var Info21 = Schema.Union([Schema.Boolean, Schema.Record(Schema.String, Entry3)]).check(requiresExtensionsForCustomServers2);
83
83
 
84
- export { Disabled2, Entry4, builtinServerIds2, requiresExtensionsForCustomServers2, Info16, exports_lsp };
84
+ export { Disabled2, Entry3, builtinServerIds2, requiresExtensionsForCustomServers2, Info21, exports_lsp };
@@ -1,44 +1,48 @@
1
1
  import {
2
2
  Metadata2,
3
3
  useragent2,
4
- node49
5
- } from "./file-1vkgnbk5.js";
4
+ node50
5
+ } from "./location-mutation-knjm772m.js";
6
6
  import {
7
- Service80,
8
- node85
9
- } from "./file-9938j897.js";
7
+ provenance2,
8
+ compatible2
9
+ } from "./location-mutation-9v90f9cc.js";
10
+ import {
11
+ Service65,
12
+ node69
13
+ } from "./location-mutation-9q0nykm9.js";
10
14
  import {
11
15
  DeclinedError2
12
- } from "./file-ajc7k593.js";
16
+ } from "./location-mutation-ht4enzqw.js";
13
17
  import {
14
18
  CancelledError2
15
- } from "./file-xb70hszk.js";
19
+ } from "./location-mutation-t9bfha1v.js";
16
20
  import {
17
- Error5
18
- } from "./file-bffddetr.js";
21
+ Error3
22
+ } from "./location-mutation-eb6vrzdm.js";
19
23
  import {
20
- Service27,
21
- node32
22
- } from "./file-p9tbkvt9.js";
24
+ Service21,
25
+ node26
26
+ } from "./location-mutation-fp55xymf.js";
23
27
  import {
24
28
  make14
25
- } from "./file-47gsdddb.js";
29
+ } from "./location-mutation-nhy5jxhy.js";
26
30
  import {
27
31
  toLLMMessages2
28
- } from "./file-zbjnn3ac.js";
32
+ } from "./location-mutation-4nkw4gk2.js";
29
33
  import {
30
34
  __export
31
- } from "./file-9rqn6x4v.js";
35
+ } from "./location-mutation-9rqn6x4v.js";
32
36
 
33
37
  // src/session/model-request.ts
34
38
  var exports_model_request = {};
35
39
  __export(exports_model_request, {
36
- Service: () => Service26,
40
+ Service: () => Service20,
37
41
  SessionModelRequest: () => exports_model_request,
38
42
  baseTranscript: () => baseTranscript2,
39
43
  boundImages: () => boundImages2,
40
- layer: () => layer10,
41
- node: () => node31,
44
+ layer: () => layer8,
45
+ node: () => node25,
42
46
  unsupportedParts: () => unsupportedParts2
43
47
  });
44
48
  import { HttpOptions, LanguageModel, LLM, LLMRequest, Message, SystemPart } from "@opencode-ai/ai";
@@ -185,11 +189,11 @@ var httpMiddleware = (hooks, scope) => (request, handler) => Effect.gen(function
185
189
  return HttpClientResponse.fromWeb(sent, after.response);
186
190
  }).pipe(Effect.mapError((cause) => cause instanceof Error ? cause : new Error(String(cause))));
187
191
 
188
- class Service26 extends Context.Service()("@opencode/SessionModelRequest") {
192
+ class Service20 extends Context.Service()("@opencode/SessionModelRequest") {
189
193
  }
190
- var layer10 = Layer.effect(Service26, Effect.gen(function* () {
191
- const hooks = yield* Service80;
192
- const transport = yield* Service27;
194
+ var layer8 = Layer.effect(Service20, Effect.gen(function* () {
195
+ const hooks = yield* Service65;
196
+ const transport = yield* Service21;
193
197
  const app = yield* Metadata2;
194
198
  const prepare = Effect.fn("SessionModelRequest.prepare")(function* (input) {
195
199
  const session = input.scope.session;
@@ -197,7 +201,7 @@ var layer10 = Layer.effect(Service26, Effect.gen(function* () {
197
201
  const model = resolved.model;
198
202
  const tools = input.scope.tools ?? {
199
203
  definitions: [],
200
- execute: () => new Error5({ message: "Tools are not available for this request" })
204
+ execute: () => new Error3({ message: "Tools are not available for this request" })
201
205
  };
202
206
  const registry = new Map(tools.definitions.map((tool) => [tool.name, tool]));
203
207
  const given = new Map(tools.definitions.map((tool) => [{ description: tool.description, input: { ...tool.inputSchema } }, tool]));
@@ -233,6 +237,9 @@ var layer10 = Layer.effect(Service26, Effect.gen(function* () {
233
237
  generation: Object.keys(context.generation).length === 0 ? undefined : context.generation,
234
238
  providerOptions: Object.keys(context.providerOptions).length === 0 ? undefined : context.providerOptions
235
239
  }));
240
+ const selected = provenance2(resolved);
241
+ if (selected && !compatible2(selected, provenance2({ model: request.model, ref: resolved.ref })) && request.messages.some((message) => message.content.some((part) => part.type === "compaction")))
242
+ return yield* Effect.die(new Error("Provider context is incompatible with the route selected by model request hooks"));
236
243
  const hasHttpHooks = (yield* hooks.has("session", "http.request", resolved.ref.providerID)) || (yield* hooks.has("session", "http.response", resolved.ref.providerID));
237
244
  const webSocket = resolved.capabilities.responsesWebsockets === true ? yield* Config.boolean(responsesWebSocketFlag(resolved.ref.providerID)).pipe(Config.withDefault(false), Effect.orDie) : false;
238
245
  const http = hasHttpHooks ? httpMiddleware(hooks, {
@@ -254,12 +261,12 @@ var layer10 = Layer.effect(Service26, Effect.gen(function* () {
254
261
  executeTool
255
262
  };
256
263
  });
257
- return Service26.of({ prepare });
264
+ return Service20.of({ prepare });
258
265
  }));
259
- var node31 = makeLocationNode({
260
- service: Service26,
261
- layer: layer10,
262
- deps: [node85, node32, node49]
266
+ var node25 = makeLocationNode({
267
+ service: Service20,
268
+ layer: layer8,
269
+ deps: [node69, node26, node50]
263
270
  });
264
271
 
265
- export { baseTranscript2, unsupportedParts2, boundImages2, Service26, layer10, node31, exports_model_request };
272
+ export { baseTranscript2, unsupportedParts2, boundImages2, Service20, layer8, node25, exports_model_request };
@@ -1,32 +1,32 @@
1
1
  import {
2
- Service72,
3
- node77
4
- } from "./file-xdrtxdpg.js";
2
+ Service76,
3
+ node81
4
+ } from "./location-mutation-c0w89p9e.js";
5
5
  import {
6
6
  Key3,
7
7
  make20,
8
8
  combine2
9
- } from "./file-97f5v037.js";
9
+ } from "./location-mutation-97f5v037.js";
10
10
  import {
11
11
  __export
12
- } from "./file-9rqn6x4v.js";
12
+ } from "./location-mutation-9rqn6x4v.js";
13
13
 
14
14
  // src/instructions/builtins.ts
15
15
  var exports_builtins = {};
16
16
  __export(exports_builtins, {
17
17
  InstructionBuiltIns: () => exports_builtins,
18
- Service: () => Service23,
19
- node: () => node27
18
+ Service: () => Service16,
19
+ node: () => node21
20
20
  });
21
21
  import { makeLocationNode } from "@opencode-ai/util/effect/app-node";
22
22
  import { Context, DateTime, Effect, Layer, Schema } from "effect";
23
23
  import { Global } from "@opencode-ai/util/global";
24
- class Service23 extends Context.Service()("@opencode/InstructionBuiltIns") {
24
+ class Service16 extends Context.Service()("@opencode/InstructionBuiltIns") {
25
25
  }
26
- var layer = Layer.effect(Service23, Effect.gen(function* () {
26
+ var layer = Layer.effect(Service16, Effect.gen(function* () {
27
27
  const global = yield* Global.Service;
28
- const location = yield* Service72;
29
- return Service23.of({
28
+ const location = yield* Service76;
29
+ return Service16.of({
30
30
  load: (sessionID) => Effect.succeed(combine2([
31
31
  make20({
32
32
  key: Key3.make("core/environment"),
@@ -61,6 +61,6 @@ var layer = Layer.effect(Service23, Effect.gen(function* () {
61
61
  ]))
62
62
  });
63
63
  }));
64
- var node27 = makeLocationNode({ service: Service23, layer, deps: [Global.node, node77] });
64
+ var node21 = makeLocationNode({ service: Service16, layer, deps: [Global.node, node81] });
65
65
 
66
- export { Service23, node27, exports_builtins };
66
+ export { Service16, node21, exports_builtins };