@opencode/core 0.0.0-dev-21784 → 0.0.0-dev-21788

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 (809) hide show
  1. package/dist/account/sql.js +1 -1
  2. package/dist/agent.js +85 -84
  3. package/dist/aisdk-native.js +94 -93
  4. package/dist/aisdk.js +100 -99
  5. package/dist/app.js +9 -9
  6. package/dist/bus.js +73 -72
  7. package/dist/chunks/{agent-h5dbejmd.js → location-activity-01hr45d4.js} +16 -16
  8. package/dist/chunks/{agent-0fc55j4y.js → location-activity-02tt61ab.js} +181 -181
  9. package/dist/chunks/{agent-033a0jkt.js → location-activity-033a0jkt.js} +1 -1
  10. package/dist/chunks/{agent-f7n6kqew.js → location-activity-067f1caq.js} +42 -42
  11. package/dist/chunks/{agent-36ea6r34.js → location-activity-06myerbs.js} +11 -11
  12. package/dist/chunks/{agent-zn7c0t9d.js → location-activity-07mr9ttq.js} +7 -7
  13. package/dist/chunks/{agent-eyvhq8ft.js → location-activity-0b08jztn.js} +26 -26
  14. package/dist/chunks/{agent-02yzdc13.js → location-activity-0qkv8zzt.js} +2 -2
  15. package/dist/chunks/{agent-38ndmwz0.js → location-activity-0vrf0jak.js} +13 -13
  16. package/dist/chunks/{agent-8thk20xz.js → location-activity-12szekg3.js} +5 -5
  17. package/dist/chunks/{agent-g41gmtrh.js → location-activity-14e26z3b.js} +14 -14
  18. package/dist/chunks/{agent-8rqhnwg1.js → location-activity-16qrkqa4.js} +5 -5
  19. package/dist/chunks/{agent-aw7ajr0a.js → location-activity-17khjaea.js} +19 -19
  20. package/dist/chunks/{agent-1hetrfzc.js → location-activity-1fcw6zrz.js} +7 -7
  21. package/dist/chunks/{agent-m0w0zyj2.js → location-activity-1fhqa2jj.js} +25 -25
  22. package/dist/chunks/{agent-hjnk4nsf.js → location-activity-1gm74v6v.js} +11 -11
  23. package/dist/chunks/{agent-7an283zs.js → location-activity-1kne0mqx.js} +7 -7
  24. package/dist/chunks/{agent-dvswds2a.js → location-activity-1r6rmb28.js} +2 -2
  25. package/dist/chunks/{agent-zdm2n275.js → location-activity-1t3cgkkb.js} +21 -21
  26. package/dist/chunks/{agent-1x2knyw4.js → location-activity-1x2knyw4.js} +1 -1
  27. package/dist/chunks/{agent-173t91w5.js → location-activity-1y0wdj51.js} +4 -4
  28. package/dist/chunks/{agent-p7vhpwh8.js → location-activity-1yq9hg58.js} +5 -5
  29. package/dist/chunks/{agent-8swrpak5.js → location-activity-22fqff69.js} +9 -9
  30. package/dist/chunks/{agent-1ep2p91f.js → location-activity-27w5k9zf.js} +2 -2
  31. package/dist/chunks/{agent-9fkdxkka.js → location-activity-2chjpfn4.js} +10 -10
  32. package/dist/chunks/{agent-g5axxp69.js → location-activity-2eqcn54e.js} +6 -6
  33. package/dist/chunks/{agent-pczvdmnh.js → location-activity-2mvzdbqk.js} +21 -21
  34. package/dist/chunks/{agent-5kbev7nh.js → location-activity-2nwxwjsv.js} +3 -3
  35. package/dist/chunks/{agent-0k1t71fg.js → location-activity-2wwyctdd.js} +4 -4
  36. package/dist/chunks/{agent-n60440x5.js → location-activity-2y0qb0mc.js} +6 -6
  37. package/dist/chunks/{agent-2z1j29yd.js → location-activity-2z1j29yd.js} +1 -1
  38. package/dist/chunks/{agent-meat84st.js → location-activity-30tj3gky.js} +11 -11
  39. package/dist/chunks/{agent-a7xdavkk.js → location-activity-30trf87e.js} +9 -9
  40. package/dist/chunks/{agent-6c5cd6ez.js → location-activity-32s59e8p.js} +9 -9
  41. package/dist/chunks/{agent-d1e4gt8e.js → location-activity-336qz4d8.js} +79 -79
  42. package/dist/chunks/{agent-mr8zc4t8.js → location-activity-33sp77q7.js} +7 -7
  43. package/dist/chunks/{agent-36qx82yz.js → location-activity-36qx82yz.js} +2 -2
  44. package/dist/chunks/{agent-6kms46fw.js → location-activity-3btq0h72.js} +5 -5
  45. package/dist/chunks/{agent-ayjs7tqn.js → location-activity-3cbjf1nt.js} +2 -2
  46. package/dist/chunks/{agent-cjse11k8.js → location-activity-3d1kj4yr.js} +24 -24
  47. package/dist/chunks/{agent-3hepkmqq.js → location-activity-3hepkmqq.js} +1 -1
  48. package/dist/chunks/{agent-tfxvfanj.js → location-activity-3mgy2h0d.js} +4 -4
  49. package/dist/chunks/{agent-3nnrz6f6.js → location-activity-3nnrz6f6.js} +1 -1
  50. package/dist/chunks/location-activity-3szgxn6c.js +517 -0
  51. package/dist/chunks/{agent-qy3evx35.js → location-activity-3ypypw84.js} +27 -27
  52. package/dist/chunks/{agent-t8n195hz.js → location-activity-40df05qx.js} +14 -14
  53. package/dist/chunks/{agent-97r8yvgs.js → location-activity-41syewzg.js} +37 -37
  54. package/dist/chunks/{agent-61ennm6n.js → location-activity-42jd4697.js} +4 -4
  55. package/dist/chunks/{agent-j11v2g1t.js → location-activity-47n9jgyg.js} +40 -40
  56. package/dist/chunks/{agent-jseav4p7.js → location-activity-4ev7fjb1.js} +16 -16
  57. package/dist/chunks/{agent-800wwg03.js → location-activity-4n8hgrhh.js} +11 -11
  58. package/dist/chunks/{agent-q43qcq83.js → location-activity-4qkv6r56.js} +5 -5
  59. package/dist/chunks/{agent-jdw580xe.js → location-activity-4rmr3zkt.js} +16 -16
  60. package/dist/chunks/{agent-4v008n1t.js → location-activity-4v008n1t.js} +1 -1
  61. package/dist/chunks/{agent-4xvmh7wp.js → location-activity-4xvmh7wp.js} +3 -3
  62. package/dist/chunks/{agent-26ebgyg0.js → location-activity-4y9437cn.js} +45 -45
  63. package/dist/chunks/{agent-rc4jd66d.js → location-activity-4yte20eq.js} +7 -7
  64. package/dist/chunks/{agent-tfbgmxwt.js → location-activity-55y28bj0.js} +4 -4
  65. package/dist/chunks/{agent-wqa97sqm.js → location-activity-5a2n849v.js} +6 -6
  66. package/dist/chunks/{agent-as8v2p6n.js → location-activity-5c21z366.js} +23 -23
  67. package/dist/chunks/{agent-qk0m1vv0.js → location-activity-5e8bacmk.js} +4 -4
  68. package/dist/chunks/{agent-5m9w47nd.js → location-activity-5m9w47nd.js} +1 -1
  69. package/dist/chunks/{agent-01x633r0.js → location-activity-5wjahd8j.js} +18 -18
  70. package/dist/chunks/{agent-m256pbh3.js → location-activity-68d59r98.js} +12 -12
  71. package/dist/chunks/{agent-6esdw8yj.js → location-activity-6esdw8yj.js} +1 -1
  72. package/dist/chunks/{agent-ze8957am.js → location-activity-6ksmve61.js} +20 -20
  73. package/dist/chunks/{agent-ek3fsnwj.js → location-activity-6mmcqg4x.js} +5 -5
  74. package/dist/chunks/{agent-6pjqjmy2.js → location-activity-6pjqjmy2.js} +1 -1
  75. package/dist/chunks/{agent-7nydw5h0.js → location-activity-6rmc0cg0.js} +39 -39
  76. package/dist/chunks/{agent-rnbw0hp3.js → location-activity-6swrj65x.js} +1 -1
  77. package/dist/chunks/{agent-jxd053np.js → location-activity-6tvssnq4.js} +12 -12
  78. package/dist/chunks/{agent-139mbqx8.js → location-activity-6vsfrkfj.js} +10 -10
  79. package/dist/chunks/{agent-ahef7j8f.js → location-activity-6x23shm0.js} +6 -6
  80. package/dist/chunks/{agent-dcjmpepk.js → location-activity-701px5gb.js} +19 -19
  81. package/dist/chunks/{agent-7mztthz3.js → location-activity-73bs6dwh.js} +19 -19
  82. package/dist/chunks/{agent-76cb1hcw.js → location-activity-76cb1hcw.js} +1 -1
  83. package/dist/chunks/{agent-nah043kf.js → location-activity-770pw0s1.js} +4 -4
  84. package/dist/chunks/{agent-r0nyd7pf.js → location-activity-79kbxvtk.js} +21 -21
  85. package/dist/chunks/{agent-7bmhse3q.js → location-activity-7bmhse3q.js} +1 -1
  86. package/dist/chunks/{agent-rbg54dp1.js → location-activity-7h09t6vy.js} +4 -4
  87. package/dist/chunks/{agent-jkatrbtb.js → location-activity-7k2fg3vq.js} +15 -15
  88. package/dist/chunks/{agent-7f9y6rh0.js → location-activity-7kv1c21d.js} +17 -17
  89. package/dist/chunks/{agent-7qmwdxq4.js → location-activity-7px6qfbd.js} +11 -11
  90. package/dist/chunks/{agent-x46b6f4j.js → location-activity-7rx58ed3.js} +14 -14
  91. package/dist/chunks/{agent-jj1zxfb4.js → location-activity-7ty17bm8.js} +80 -80
  92. package/dist/chunks/{agent-7dg2g5n4.js → location-activity-7tyjvdb7.js} +13 -13
  93. package/dist/chunks/{agent-4773t8et.js → location-activity-7v98qr4z.js} +19 -19
  94. package/dist/chunks/{agent-2km5wy4y.js → location-activity-7vvk2bxp.js} +32 -32
  95. package/dist/chunks/{agent-7w2ypzdf.js → location-activity-7w2ypzdf.js} +1 -1
  96. package/dist/chunks/{agent-31yhp6h2.js → location-activity-8bx675xd.js} +7 -7
  97. package/dist/chunks/{agent-1tfrxqx8.js → location-activity-8ekgv4sx.js} +9 -9
  98. package/dist/chunks/{agent-hsrc9p37.js → location-activity-8jejpbev.js} +13 -13
  99. package/dist/chunks/{agent-qjgzc4b4.js → location-activity-8jztxfpf.js} +4 -4
  100. package/dist/chunks/{agent-n6v2b7cw.js → location-activity-8wc2fpae.js} +5 -5
  101. package/dist/chunks/{agent-vpm8vpz0.js → location-activity-8whp40kv.js} +3 -3
  102. package/dist/chunks/{agent-8wtp7s3z.js → location-activity-8wtp7s3z.js} +1 -1
  103. package/dist/chunks/{agent-91rj84md.js → location-activity-91rj84md.js} +1 -1
  104. package/dist/chunks/{agent-8e6m80hw.js → location-activity-96vydxfm.js} +1 -1
  105. package/dist/chunks/{agent-m1f7zknv.js → location-activity-98zdt0yh.js} +14 -14
  106. package/dist/chunks/{agent-faewc6h3.js → location-activity-9b28cy4d.js} +5 -5
  107. package/dist/chunks/{agent-r0yf9dk1.js → location-activity-9jpv2rkm.js} +19 -19
  108. package/dist/chunks/{agent-jneg3k74.js → location-activity-9p9xqj3m.js} +6 -6
  109. package/dist/chunks/{agent-eqkb58k1.js → location-activity-9qthnb7h.js} +8 -8
  110. package/dist/chunks/{agent-mzyv1r8q.js → location-activity-a7hcemwv.js} +8 -8
  111. package/dist/chunks/{agent-ekkan3t7.js → location-activity-af8vyvhb.js} +17 -17
  112. package/dist/chunks/{agent-6dnbbrkg.js → location-activity-agptt57b.js} +30 -30
  113. package/dist/chunks/{agent-034tev2y.js → location-activity-aj7mw0zk.js} +2 -2
  114. package/dist/chunks/{agent-kntq21p3.js → location-activity-anmk350e.js} +9 -9
  115. package/dist/chunks/{agent-new4gq93.js → location-activity-aqh37b2q.js} +3 -3
  116. package/dist/chunks/{agent-vthbx4vr.js → location-activity-aqrx9dx0.js} +32 -32
  117. package/dist/chunks/{agent-ja2p8ata.js → location-activity-av02mrfn.js} +26 -26
  118. package/dist/chunks/{agent-syfs4wve.js → location-activity-az971z8m.js} +14 -14
  119. package/dist/chunks/{agent-x2w8jbjz.js → location-activity-b014wc4w.js} +17 -17
  120. package/dist/chunks/{agent-b0mv4wxm.js → location-activity-b0mv4wxm.js} +2 -2
  121. package/dist/chunks/{agent-75jp0z26.js → location-activity-b1nmkhtn.js} +15 -15
  122. package/dist/chunks/{agent-prazahgm.js → location-activity-b6vsg801.js} +2 -4
  123. package/dist/chunks/{agent-43ttkgpw.js → location-activity-bhejg4xz.js} +18 -21
  124. package/dist/chunks/{agent-ccga0n09.js → location-activity-bnxfrj2k.js} +8 -8
  125. package/dist/chunks/{agent-pch94jad.js → location-activity-bpn1w030.js} +14 -14
  126. package/dist/chunks/{agent-e8m7b3pk.js → location-activity-bps2drsf.js} +11 -11
  127. package/dist/chunks/{agent-bstexjd6.js → location-activity-bstexjd6.js} +1 -1
  128. package/dist/chunks/{agent-w1xh8xrk.js → location-activity-c3pk09j5.js} +24 -24
  129. package/dist/chunks/{agent-mgbtrrwc.js → location-activity-c671bvsm.js} +3 -3
  130. package/dist/chunks/{agent-ewexpb9k.js → location-activity-catjr96x.js} +6 -6
  131. package/dist/chunks/{agent-as9ge7gr.js → location-activity-cd2k1xnt.js} +45 -45
  132. package/dist/chunks/{agent-xn94rwwj.js → location-activity-cfabegcm.js} +13 -13
  133. package/dist/chunks/{agent-ynyk2n84.js → location-activity-cje3xj0g.js} +17 -17
  134. package/dist/chunks/{agent-13ge0zq5.js → location-activity-csnmakm3.js} +17 -17
  135. package/dist/chunks/{agent-wgr7v8zv.js → location-activity-cz1d3gs1.js} +11 -11
  136. package/dist/chunks/{agent-d4v9tmah.js → location-activity-d4v9tmah.js} +2 -2
  137. package/dist/chunks/{agent-vwy7wwgg.js → location-activity-d6xhnq8s.js} +4 -4
  138. package/dist/chunks/{agent-85qf60df.js → location-activity-d7np8nc9.js} +12 -12
  139. package/dist/chunks/{agent-8d2bz6m6.js → location-activity-ddvn7d3w.js} +8 -8
  140. package/dist/chunks/location-activity-deeg0pgw.js +26 -0
  141. package/dist/chunks/{agent-j241wm9d.js → location-activity-denqp0gf.js} +1 -1
  142. package/dist/chunks/{agent-gjktm9p0.js → location-activity-df0pv1r5.js} +11 -11
  143. package/dist/chunks/{agent-zr7bpxke.js → location-activity-dhgmmzd7.js} +22 -22
  144. package/dist/chunks/{agent-k5aja770.js → location-activity-dpgr420w.js} +8 -8
  145. package/dist/chunks/{agent-g7x514gg.js → location-activity-dqnt9zwg.js} +4 -4
  146. package/dist/chunks/{agent-q4xvtkzf.js → location-activity-dvdrwbj5.js} +19 -19
  147. package/dist/chunks/{agent-fnrac0zs.js → location-activity-dvj9ct8m.js} +3 -4
  148. package/dist/chunks/{agent-y3mrdmj2.js → location-activity-e0habjmx.js} +18 -18
  149. package/dist/chunks/{agent-e834z07m.js → location-activity-e834z07m.js} +1 -1
  150. package/dist/chunks/{agent-v76m31v0.js → location-activity-epwqaf6g.js} +38 -38
  151. package/dist/chunks/{agent-aeczztyf.js → location-activity-exx3m7p4.js} +4 -4
  152. package/dist/chunks/{agent-mfyzpdtn.js → location-activity-f1jczfs9.js} +2 -2
  153. package/dist/chunks/{agent-mgma89zk.js → location-activity-f45gjzva.js} +4 -4
  154. package/dist/chunks/location-activity-f8ma18fn.js +18 -0
  155. package/dist/chunks/{agent-fffv3p7h.js → location-activity-fffv3p7h.js} +1 -1
  156. package/dist/chunks/{agent-f81xf9jd.js → location-activity-fjxbecjf.js} +21 -21
  157. package/dist/chunks/{agent-03qvnrpn.js → location-activity-frn2fm02.js} +33 -33
  158. package/dist/chunks/{agent-kj8ms8x1.js → location-activity-frrtdq1q.js} +5 -5
  159. package/dist/chunks/{agent-wh6wybx0.js → location-activity-fsnkzj02.js} +17 -17
  160. package/dist/chunks/{agent-z4k2sts1.js → location-activity-g06tszjg.js} +63 -63
  161. package/dist/chunks/{agent-g5h9c0rr.js → location-activity-g5h9c0rr.js} +2 -2
  162. package/dist/chunks/{agent-n6k6tv08.js → location-activity-g7hs11pn.js} +29 -29
  163. package/dist/chunks/{agent-j8xhq8v2.js → location-activity-g8jqzkk7.js} +5 -5
  164. package/dist/chunks/{agent-xvy21fdd.js → location-activity-g8k9qds5.js} +25 -25
  165. package/dist/chunks/{agent-mak9ftkg.js → location-activity-gdp0vkf7.js} +22 -22
  166. package/dist/chunks/{agent-k9hbvn9k.js → location-activity-gfvcz5wa.js} +45 -45
  167. package/dist/chunks/{agent-z1889dz1.js → location-activity-gvbwd73c.js} +11 -11
  168. package/dist/chunks/{agent-c6syegq7.js → location-activity-gy65pr6w.js} +26 -26
  169. package/dist/chunks/{agent-r6e28z23.js → location-activity-h1zj8b8q.js} +14 -14
  170. package/dist/chunks/{agent-kae2ksf8.js → location-activity-h3hh0399.js} +31 -31
  171. package/dist/chunks/{agent-hdfrs5mg.js → location-activity-hdfrs5mg.js} +2 -2
  172. package/dist/chunks/{agent-fxjbdvfm.js → location-activity-hj29fcar.js} +28 -28
  173. package/dist/chunks/{agent-gk2p2r2p.js → location-activity-hj952v97.js} +14 -14
  174. package/dist/chunks/{agent-v1xj14h7.js → location-activity-hkfkkryx.js} +5 -5
  175. package/dist/chunks/{agent-9x8q2m03.js → location-activity-hnrbc1x5.js} +19 -19
  176. package/dist/chunks/{agent-trjayejy.js → location-activity-j02adr0e.js} +11 -11
  177. package/dist/chunks/{agent-j113cymg.js → location-activity-j113cymg.js} +1 -1
  178. package/dist/chunks/{agent-36faspmy.js → location-activity-j73f5h72.js} +3 -3
  179. package/dist/chunks/location-activity-jwr30sdr.js +13 -0
  180. package/dist/chunks/{agent-6cjpnrq2.js → location-activity-k22zxr54.js} +27 -27
  181. package/dist/chunks/{agent-4kmz7hka.js → location-activity-k5pxjz9y.js} +18 -18
  182. package/dist/chunks/{agent-k814nvkf.js → location-activity-k814nvkf.js} +1 -1
  183. package/dist/chunks/{agent-7bbsac65.js → location-activity-kq1p7daa.js} +13 -13
  184. package/dist/chunks/{agent-kt3bjfbg.js → location-activity-kt3bjfbg.js} +1 -1
  185. package/dist/chunks/{agent-czx0mg6z.js → location-activity-kw1j96pn.js} +28 -28
  186. package/dist/chunks/{agent-bwk3ddh5.js → location-activity-kx5ztbyk.js} +9 -9
  187. package/dist/chunks/{agent-m1714858.js → location-activity-m1714858.js} +1 -1
  188. package/dist/chunks/{agent-m9w0rfyh.js → location-activity-m9w0rfyh.js} +1 -1
  189. package/dist/chunks/{agent-maspj1v3.js → location-activity-maspj1v3.js} +1 -1
  190. package/dist/chunks/{agent-2ytwxhv1.js → location-activity-mcmahwn4.js} +23 -23
  191. package/dist/chunks/{agent-89n72xaa.js → location-activity-merrw6gr.js} +28 -28
  192. package/dist/chunks/{agent-rbh56fzy.js → location-activity-mf1qqwmn.js} +47 -47
  193. package/dist/chunks/{agent-x68edsfb.js → location-activity-mherk3tq.js} +3 -3
  194. package/dist/chunks/{agent-gy38441g.js → location-activity-mmq2d74y.js} +15 -15
  195. package/dist/chunks/{agent-s904a6sg.js → location-activity-mqg3azes.js} +5 -5
  196. package/dist/chunks/{agent-7m634182.js → location-activity-mr2e5mch.js} +24 -24
  197. package/dist/chunks/{agent-7t5b4ngt.js → location-activity-msycsjna.js} +48 -48
  198. package/dist/chunks/{agent-cmchtp0v.js → location-activity-mytpcbzr.js} +11 -11
  199. package/dist/chunks/{agent-yr8jvaqb.js → location-activity-mzn9r2j2.js} +37 -37
  200. package/dist/chunks/{agent-n0p0277s.js → location-activity-n0p0277s.js} +1 -1
  201. package/dist/chunks/{agent-mjhk8a0e.js → location-activity-n4zn4mrv.js} +19 -19
  202. package/dist/chunks/{agent-0nfr0cf2.js → location-activity-nnfwqq4b.js} +3 -3
  203. package/dist/chunks/{agent-zdsd1y55.js → location-activity-nwpg3n5j.js} +9 -9
  204. package/dist/chunks/{agent-p015t6z3.js → location-activity-p015t6z3.js} +2 -2
  205. package/dist/chunks/{agent-ges56kck.js → location-activity-p3qy5t07.js} +15 -15
  206. package/dist/chunks/{agent-njvrd8jy.js → location-activity-p3xjka00.js} +7 -7
  207. package/dist/chunks/{agent-q9ajhnek.js → location-activity-p40wsfh4.js} +30 -30
  208. package/dist/chunks/{agent-jfyr8syn.js → location-activity-pa7bjyn8.js} +11 -11
  209. package/dist/chunks/{agent-wbfvqgnf.js → location-activity-pdgmbm3p.js} +31 -31
  210. package/dist/chunks/{agent-pknna89w.js → location-activity-pknna89w.js} +1 -1
  211. package/dist/chunks/{agent-dbztejgq.js → location-activity-pkyv6v7h.js} +0 -1
  212. package/dist/chunks/{agent-nkk0r47z.js → location-activity-pvz3ha5p.js} +8 -8
  213. package/dist/chunks/{agent-5kbc8wm3.js → location-activity-q76mn20p.js} +33 -33
  214. package/dist/chunks/{agent-za9sakwv.js → location-activity-qpndkz4h.js} +19 -19
  215. package/dist/chunks/{agent-3ryz99p0.js → location-activity-qqg9c0kv.js} +4 -4
  216. package/dist/chunks/{agent-b2g4rpf0.js → location-activity-qrnyk1ap.js} +36 -36
  217. package/dist/chunks/{agent-0nervf8r.js → location-activity-qteg3tgt.js} +8 -8
  218. package/dist/chunks/{agent-r0yr0wbs.js → location-activity-r0yr0wbs.js} +1 -1
  219. package/dist/chunks/{agent-q4fmv0xv.js → location-activity-r2jew814.js} +5 -5
  220. package/dist/chunks/{agent-40za9wsf.js → location-activity-r41sfy63.js} +6 -6
  221. package/dist/chunks/{agent-8r6n0qax.js → location-activity-r542h3bh.js} +2 -4
  222. package/dist/chunks/{agent-w82799bh.js → location-activity-r88f64d0.js} +29 -29
  223. package/dist/chunks/{agent-rb9dy4dg.js → location-activity-rb9dy4dg.js} +1 -1
  224. package/dist/chunks/{agent-xb4h8bm0.js → location-activity-rjc4qjf2.js} +4 -4
  225. package/dist/chunks/{agent-vrcsa8qx.js → location-activity-rjnacbrz.js} +9 -9
  226. package/dist/chunks/{agent-rt5dr6hb.js → location-activity-rt5dr6hb.js} +1 -1
  227. package/dist/chunks/{agent-fykkvtjp.js → location-activity-rxy7yh4n.js} +14 -14
  228. package/dist/chunks/{agent-v6h5bgwd.js → location-activity-s12jh10e.js} +8 -8
  229. package/dist/chunks/{agent-ddwaa558.js → location-activity-s4f8ct6t.js} +4 -4
  230. package/dist/chunks/{agent-6mejnpem.js → location-activity-s78fym6c.js} +11 -11
  231. package/dist/chunks/{agent-sa3fpqfw.js → location-activity-sa3fpqfw.js} +2 -2
  232. package/dist/chunks/{agent-7q4ggvk7.js → location-activity-sadb7q59.js} +44 -44
  233. package/dist/chunks/{agent-sqwztq39.js → location-activity-sctk4379.js} +56 -52
  234. package/dist/chunks/{agent-81c7e9ra.js → location-activity-sfvyh7df.js} +3 -3
  235. package/dist/chunks/{agent-ffd6fwxk.js → location-activity-sn2n44nz.js} +20 -20
  236. package/dist/chunks/{agent-66qzw14e.js → location-activity-snssezjg.js} +12 -12
  237. package/dist/chunks/{agent-sqjzf8x2.js → location-activity-sqjzf8x2.js} +1 -1
  238. package/dist/chunks/{agent-d2887f8n.js → location-activity-ssfehs1z.js} +4 -4
  239. package/dist/chunks/{agent-h6h54wtq.js → location-activity-stnh6bq5.js} +15 -15
  240. package/dist/chunks/{agent-x4w6jmkv.js → location-activity-sw94b9fh.js} +29 -29
  241. package/dist/chunks/{agent-ag49k9fp.js → location-activity-t5jye66g.js} +18 -18
  242. package/dist/chunks/{agent-tasvem1v.js → location-activity-tasvem1v.js} +3 -3
  243. package/dist/chunks/{agent-tczq8hjw.js → location-activity-tczq8hjw.js} +1 -1
  244. package/dist/chunks/{agent-q32ndhrq.js → location-activity-tn5gxkrv.js} +6 -6
  245. package/dist/chunks/{agent-sydzkpmk.js → location-activity-tqqxd6qs.js} +16 -16
  246. package/dist/chunks/{agent-zvc54kz4.js → location-activity-tvs8x7qj.js} +30 -30
  247. package/dist/chunks/{agent-twv2r8f4.js → location-activity-twv2r8f4.js} +2 -2
  248. package/dist/chunks/{agent-f993jxvg.js → location-activity-tze371p3.js} +16 -16
  249. package/dist/chunks/{agent-en6q6hb7.js → location-activity-v20098x6.js} +10 -10
  250. package/dist/chunks/{agent-4rwxs393.js → location-activity-v28rpjkp.js} +13 -13
  251. package/dist/chunks/{agent-v2r1d0zg.js → location-activity-v2r1d0zg.js} +1 -1
  252. package/dist/chunks/{agent-ypkjhwqx.js → location-activity-v7aaee86.js} +21 -21
  253. package/dist/chunks/{agent-vd3b3yk9.js → location-activity-vd3b3yk9.js} +1 -1
  254. package/dist/chunks/{agent-veqvce7d.js → location-activity-veqvce7d.js} +1 -1
  255. package/dist/chunks/{agent-njmawajr.js → location-activity-vhn01q1d.js} +24 -24
  256. package/dist/chunks/{agent-61g7nd3s.js → location-activity-vm0wcjea.js} +9 -9
  257. package/dist/chunks/location-activity-vmbvcdd4.js +261 -0
  258. package/dist/chunks/{agent-vmfhgzt5.js → location-activity-vmfhgzt5.js} +1 -1
  259. package/dist/chunks/{agent-1vzks4bn.js → location-activity-vvvztmfk.js} +23 -23
  260. package/dist/chunks/{agent-81k9hmnn.js → location-activity-vw76ys03.js} +8 -8
  261. package/dist/chunks/{agent-r5kq5vn2.js → location-activity-vwvg46tm.js} +2 -3
  262. package/dist/chunks/{agent-w3wsvvr9.js → location-activity-w3wsvvr9.js} +1 -1
  263. package/dist/chunks/{agent-w687dnns.js → location-activity-w687dnns.js} +1 -1
  264. package/dist/chunks/{agent-wakvkjy4.js → location-activity-wakvkjy4.js} +1 -1
  265. package/dist/chunks/{agent-wd87259q.js → location-activity-wd87259q.js} +1 -1
  266. package/dist/chunks/{agent-4ebqk1fd.js → location-activity-we3hhw3n.js} +18 -18
  267. package/dist/chunks/{agent-8hn9g0m8.js → location-activity-ws47dh3e.js} +28 -28
  268. package/dist/chunks/{agent-476ebpw1.js → location-activity-wxw2jpx7.js} +30 -30
  269. package/dist/chunks/{agent-vxe4wh26.js → location-activity-x02s2ayd.js} +27 -27
  270. package/dist/chunks/{agent-8x6kkqy5.js → location-activity-x22rmg1t.js} +24 -24
  271. package/dist/chunks/{agent-qqdpdbrj.js → location-activity-x7hc0esa.js} +8 -8
  272. package/dist/chunks/{agent-7x19yq7v.js → location-activity-x879tvrg.js} +9 -9
  273. package/dist/chunks/{agent-5qzx1yz8.js → location-activity-x99ztgmm.js} +17 -17
  274. package/dist/chunks/{agent-bk817c17.js → location-activity-xe8sskqa.js} +33 -33
  275. package/dist/chunks/{agent-8swnnve6.js → location-activity-xhgqx98d.js} +4 -4
  276. package/dist/chunks/{agent-4ffhv9d7.js → location-activity-xrc3640n.js} +8 -8
  277. package/dist/chunks/{agent-n07jd3kn.js → location-activity-xyh4ynjt.js} +13 -13
  278. package/dist/chunks/{agent-cvek0x6e.js → location-activity-y76yskcs.js} +11 -11
  279. package/dist/chunks/{agent-yb20nhc3.js → location-activity-yb20nhc3.js} +1 -1
  280. package/dist/chunks/{agent-kh1mannr.js → location-activity-ye09f13n.js} +24 -24
  281. package/dist/chunks/{agent-kqtnvzmd.js → location-activity-yy3455r6.js} +23 -23
  282. package/dist/chunks/{agent-z0bkrqjs.js → location-activity-z0bkrqjs.js} +1 -1
  283. package/dist/chunks/{agent-11k6s8k8.js → location-activity-z0qd3mgb.js} +11 -11
  284. package/dist/chunks/{agent-cmxajbhr.js → location-activity-z226nxt7.js} +5 -5
  285. package/dist/chunks/{agent-z38nccrw.js → location-activity-z38nccrw.js} +1 -1
  286. package/dist/chunks/{agent-bh84v676.js → location-activity-z4j115y5.js} +9 -9
  287. package/dist/chunks/{agent-s2hjff0a.js → location-activity-zb2m7c4e.js} +11 -11
  288. package/dist/chunks/{agent-zkg84ctx.js → location-activity-zkg84ctx.js} +1 -1
  289. package/dist/chunks/{agent-g5rmwvhf.js → location-activity-zmrengzf.js} +17 -17
  290. package/dist/chunks/{agent-dhr7th0q.js → location-activity-zv8nd4fr.js} +5 -5
  291. package/dist/chunks/{agent-w22yp63b.js → location-activity-zx29snpc.js} +9 -9
  292. package/dist/codemode/catalog.js +1 -1
  293. package/dist/codemode/instructions.js +3 -3
  294. package/dist/codemode/tool.js +3 -3
  295. package/dist/codemode/web.js +1 -1
  296. package/dist/command.js +87 -86
  297. package/dist/config/discovery.js +87 -86
  298. package/dist/config/markdown.js +1 -1
  299. package/dist/config/normalize.js +104 -103
  300. package/dist/config/plugin/agent.js +118 -117
  301. package/dist/config/plugin/command.js +214 -213
  302. package/dist/config/plugin/compaction.js +157 -156
  303. package/dist/config/plugin/compatibility.js +137 -136
  304. package/dist/config/plugin/entry-observer.js +1 -1
  305. package/dist/config/plugin/formatter.js +119 -118
  306. package/dist/config/plugin/image.js +118 -117
  307. package/dist/config/plugin/instruction.js +118 -117
  308. package/dist/config/plugin/location-watcher.js +118 -117
  309. package/dist/config/plugin/mcp.js +125 -124
  310. package/dist/config/plugin/policy.js +119 -118
  311. package/dist/config/plugin/provider.js +118 -117
  312. package/dist/config/plugin/reference.js +120 -119
  313. package/dist/config/plugin/shell.js +120 -119
  314. package/dist/config/plugin/skill-file.js +107 -106
  315. package/dist/config/plugin/skill-scan.js +3 -3
  316. package/dist/config/plugin/skill.js +140 -139
  317. package/dist/config/plugin/snapshot.js +118 -117
  318. package/dist/config/plugin/source.js +119 -118
  319. package/dist/config/plugin/tool-output.js +119 -118
  320. package/dist/config/plugin/websearch.js +119 -118
  321. package/dist/config/plugin/worktree.js +120 -119
  322. package/dist/config/variable.js +1 -1
  323. package/dist/config/watch.js +1 -1
  324. package/dist/config.js +123 -122
  325. package/dist/console-access.js +1 -1
  326. package/dist/credential/sql.js +2 -2
  327. package/dist/credential.js +89 -88
  328. package/dist/database/database.js +70 -69
  329. package/dist/database/drizzle/effect-sqlite/driver.js +14 -14
  330. package/dist/database/drizzle/effect-sqlite/index.js +14 -14
  331. package/dist/database/drizzle/effect-sqlite/session.js +11 -11
  332. package/dist/database/drizzle/index.js +15 -15
  333. package/dist/database/drizzle/internal/drizzle-utils.js +1 -1
  334. package/dist/database/drizzle/sqlite-core/effect/count.js +1 -1
  335. package/dist/database/drizzle/sqlite-core/effect/db.js +9 -9
  336. package/dist/database/drizzle/sqlite-core/effect/delete.js +2 -2
  337. package/dist/database/drizzle/sqlite-core/effect/index.js +10 -10
  338. package/dist/database/drizzle/sqlite-core/effect/insert.js +2 -2
  339. package/dist/database/drizzle/sqlite-core/effect/query.js +1 -1
  340. package/dist/database/drizzle/sqlite-core/effect/raw.js +1 -1
  341. package/dist/database/drizzle/sqlite-core/effect/select.js +2 -2
  342. package/dist/database/drizzle/sqlite-core/effect/session.js +10 -10
  343. package/dist/database/drizzle/sqlite-core/effect/update.js +2 -2
  344. package/dist/database/drizzle.js +16 -16
  345. package/dist/database/migration/20260127222353_familiar_lady_ursula.js +1 -1
  346. package/dist/database/migration/20260211171708_add_project_commands.js +1 -1
  347. package/dist/database/migration/20260213144116_wakeful_the_professor.js +1 -1
  348. package/dist/database/migration/20260225215848_workspace.js +1 -1
  349. package/dist/database/migration/20260227213759_add_session_workspace_id.js +1 -1
  350. package/dist/database/migration/20260228203230_blue_harpoon.js +1 -1
  351. package/dist/database/migration/20260303231226_add_workspace_fields.js +1 -1
  352. package/dist/database/migration/20260309230000_move_org_to_state.js +1 -1
  353. package/dist/database/migration/20260312043431_session_message_cursor.js +1 -1
  354. package/dist/database/migration/20260323234822_events.js +1 -1
  355. package/dist/database/migration/20260410174513_workspace-name.js +1 -1
  356. package/dist/database/migration/20260413175956_chief_energizer.js +1 -1
  357. package/dist/database/migration/20260423070820_add_icon_url_override.js +1 -1
  358. package/dist/database/migration/20260427172553_slow_nightmare.js +1 -1
  359. package/dist/database/migration/20260428004200_add_session_path.js +1 -1
  360. package/dist/database/migration/20260501142318_next_venus.js +1 -1
  361. package/dist/database/migration/20260504145000_add_sync_owner.js +1 -1
  362. package/dist/database/migration/20260507164347_add_workspace_time.js +1 -1
  363. package/dist/database/migration/20260510033149_session_usage.js +1 -1
  364. package/dist/database/migration/20260511000411_data_migration_state.js +1 -1
  365. package/dist/database/migration/20260511173437_session-metadata.js +1 -1
  366. package/dist/database/migration/20260601010001_normalize_storage_paths.js +1 -1
  367. package/dist/database/migration/20260601202201_amazing_prowler.js +1 -1
  368. package/dist/database/migration/20260602002951_lowly_union_jack.js +1 -1
  369. package/dist/database/migration/20260602182828_add_project_directories.js +1 -1
  370. package/dist/database/migration/20260603001617_session_message_projection_indexes.js +1 -1
  371. package/dist/database/migration/20260603040000_session_message_projection_order.js +1 -1
  372. package/dist/database/migration/20260603141458_session_input_inbox.js +1 -1
  373. package/dist/database/migration/20260603160727_jittery_ezekiel_stane.js +1 -1
  374. package/dist/database/migration/20260604172448_event_sourced_session_input.js +1 -1
  375. package/dist/database/migration/20260605003541_add_session_context_snapshot.js +1 -1
  376. package/dist/database/migration/20260605042240_add_context_epoch_agent.js +1 -1
  377. package/dist/database/migration/20260611035744_credential.js +1 -1
  378. package/dist/database/migration/20260611192811_lush_chimera.js +1 -1
  379. package/dist/database/migration/20260612174303_project_dir_strategy.js +1 -1
  380. package/dist/database/migration/20260622142730_simplify_session_context_epoch.js +1 -1
  381. package/dist/database/migration/20260622170816_reset_v2_session_state.js +1 -1
  382. package/dist/database/migration/20260622202450_simplify_session_input.js +1 -1
  383. package/dist/database/migration/20260804233008_loose_psylocke.js +1 -1
  384. package/dist/database/migration/20260805200742_import_legacy_credentials.js +1 -1
  385. package/dist/database/migration/20260808023530_workspace_domain.js +1 -1
  386. package/dist/database/migration/20260811161259_execution_claim_attempts.js +1 -1
  387. package/dist/database/migration/20260812181746_session_inbox.js +1 -1
  388. package/dist/database/migration/20260812213948_worktree.js +1 -1
  389. package/dist/database/migration/20260819222447_session_viewed_state.js +1 -1
  390. package/dist/database/migration/20260823191254_nullable_workspace_binding.js +1 -1
  391. package/dist/database/migration/20260910120000_clear_v1_session_permission.js +1 -1
  392. package/dist/database/migration/20260923013825_project_time_active.js +1 -1
  393. package/dist/database/migration/20261007190000_azure_cli_external_credential.js +1 -1
  394. package/dist/database/migration/20261010180456_project_time_archived.js +1 -1
  395. package/dist/database/migration/20261024002554_session_allowance.js +1 -1
  396. package/dist/database/migration/20261024175301_drop_session_allowance.js +6 -0
  397. package/dist/database/migration.gen.js +53 -52
  398. package/dist/database/migration.js +55 -54
  399. package/dist/database/path.js +2 -2
  400. package/dist/database/schema.gen.js +1 -1
  401. package/dist/database/schema.sql.js +1 -1
  402. package/dist/database/sqlite.bun.js +1 -1
  403. package/dist/database/sqlite.js +1 -1
  404. package/dist/database/sqlite.node.js +1 -1
  405. package/dist/database/sqlite.workerd.js +1 -1
  406. package/dist/database/v1-migration.bun.js +90 -89
  407. package/dist/database/v1-migration.js +1 -1
  408. package/dist/effect/app-node-builder.js +374 -373
  409. package/dist/effect/app-node-platform.js +2 -2
  410. package/dist/effect/keyed-mutex.js +3 -3
  411. package/dist/effect/websocket-constructor.js +1 -1
  412. package/dist/environment/driver.js +1 -1
  413. package/dist/environment/environment.js +98 -97
  414. package/dist/environment/exec-defaults.js +2 -2
  415. package/dist/environment/files.js +1 -1
  416. package/dist/environment/index.js +100 -99
  417. package/dist/environment/local.js +2 -2
  418. package/dist/environment/memory.js +2 -2
  419. package/dist/environment/unavailable.js +1 -1
  420. package/dist/event/sql.js +1 -1
  421. package/dist/event-logger.js +74 -73
  422. package/dist/file-access.js +109 -108
  423. package/dist/file-mutation.js +99 -98
  424. package/dist/file-retention.js +1 -1
  425. package/dist/filesystem/fff.bun.js +2 -2
  426. package/dist/filesystem/fff.js +1 -1
  427. package/dist/filesystem/fff.node.js +2 -2
  428. package/dist/filesystem/fff.workerd.js +2 -2
  429. package/dist/filesystem/location-watcher-policy.js +6 -6
  430. package/dist/filesystem/location-watcher.js +227 -226
  431. package/dist/filesystem/protected.js +1 -1
  432. package/dist/filesystem/search.js +102 -101
  433. package/dist/filesystem/watcher-binding.js +1 -1
  434. package/dist/filesystem/watcher.js +11 -11
  435. package/dist/filesystem.js +103 -102
  436. package/dist/form.js +88 -87
  437. package/dist/formatter/builtins.js +2 -2
  438. package/dist/formatter.js +92 -91
  439. package/dist/generate.js +108 -107
  440. package/dist/git.js +7 -7
  441. package/dist/github-copilot/chat/convert-to-openai-compatible-chat-messages.js +1 -1
  442. package/dist/github-copilot/chat/get-response-metadata.js +1 -1
  443. package/dist/github-copilot/chat/map-openai-compatible-finish-reason.js +1 -1
  444. package/dist/github-copilot/chat/openai-compatible-chat-language-model.js +7 -7
  445. package/dist/github-copilot/chat/openai-compatible-chat-options.js +1 -1
  446. package/dist/github-copilot/chat/openai-compatible-prepare-tools.js +1 -1
  447. package/dist/github-copilot/copilot-provider.js +17 -17
  448. package/dist/github-copilot/models.js +104 -103
  449. package/dist/github-copilot/openai-compatible-error.js +1 -1
  450. package/dist/github-copilot/responses/convert-to-openai-responses-input.js +1 -1
  451. package/dist/github-copilot/responses/map-openai-responses-finish-reason.js +1 -1
  452. package/dist/github-copilot/responses/openai-error.js +1 -1
  453. package/dist/github-copilot/responses/openai-responses-language-model.js +10 -10
  454. package/dist/github-copilot/responses/openai-responses-prepare-tools.js +6 -6
  455. package/dist/github-copilot/responses/tool/code-interpreter.js +1 -1
  456. package/dist/github-copilot/responses/tool/file-search.js +1 -1
  457. package/dist/github-copilot/responses/tool/image-generation.js +1 -1
  458. package/dist/github-copilot/responses/tool/web-search-preview.js +1 -1
  459. package/dist/github-copilot/responses/tool/web-search.js +1 -1
  460. package/dist/image/photon.js +2 -2
  461. package/dist/image.js +6 -6
  462. package/dist/instance/service.js +5 -5
  463. package/dist/instance.js +365 -364
  464. package/dist/instruction-discovery.js +84 -83
  465. package/dist/instructions/builtins.js +92 -91
  466. package/dist/instructions/index.js +3 -3
  467. package/dist/integration/connection.js +3 -3
  468. package/dist/integration.js +91 -90
  469. package/dist/job.js +82 -81
  470. package/dist/kv/sql.js +2 -2
  471. package/dist/kv.js +77 -76
  472. package/dist/location-activity.js +158 -157
  473. package/dist/location-lifecycle.js +112 -111
  474. package/dist/location-service-map.js +91 -90
  475. package/dist/location-services.js +362 -361
  476. package/dist/location.js +86 -85
  477. package/dist/managed-policy.js +6 -6
  478. package/dist/mcp/client.js +96 -95
  479. package/dist/mcp/index.js +110 -109
  480. package/dist/mcp/instructions.js +143 -142
  481. package/dist/mcp/oauth.js +82 -81
  482. package/dist/mcp/socket-client.js +1 -1
  483. package/dist/mcp/stdio.js +95 -94
  484. package/dist/mime.js +1 -1
  485. package/dist/modal/models.js +104 -103
  486. package/dist/model-resolver.js +104 -103
  487. package/dist/model-retry.js +1 -1
  488. package/dist/model.js +105 -104
  489. package/dist/models-dev.js +112 -111
  490. package/dist/oauth/page.js +1 -1
  491. package/dist/permission/saved.js +86 -85
  492. package/dist/permission/sql.js +5 -5
  493. package/dist/permission.js +118 -117
  494. package/dist/persistent-pty/binary.bun.js +1 -1
  495. package/dist/persistent-pty/daemon.js +1 -1
  496. package/dist/persistent-pty/index.js +92 -91
  497. package/dist/persistent-pty/pty-binding.js +1 -1
  498. package/dist/persistent-pty.js +79 -78
  499. package/dist/plugin/agent.js +78 -77
  500. package/dist/plugin/command.js +105 -104
  501. package/dist/plugin/hooks.js +5 -5
  502. package/dist/plugin/host.js +220 -219
  503. package/dist/plugin/identity.js +5 -5
  504. package/dist/plugin/instance.js +5 -5
  505. package/dist/plugin/internal.js +335 -334
  506. package/dist/plugin/mcp-codemode-defaults.js +3 -3
  507. package/dist/plugin/models-dev.js +101 -100
  508. package/dist/plugin/module.js +119 -118
  509. package/dist/plugin/optimize.js +2 -2
  510. package/dist/plugin/plan.js +107 -106
  511. package/dist/plugin/promise.js +1 -1
  512. package/dist/plugin/provider/amazon-bedrock.js +95 -94
  513. package/dist/plugin/provider/azure.js +118 -117
  514. package/dist/plugin/provider/cerebras.js +1 -1
  515. package/dist/plugin/provider/chatgpt.js +118 -117
  516. package/dist/plugin/provider/cloudflare-ai-gateway.js +115 -114
  517. package/dist/plugin/provider/cloudflare-workers-ai.js +115 -114
  518. package/dist/plugin/provider/cohere.js +2 -2
  519. package/dist/plugin/provider/configured.js +114 -113
  520. package/dist/plugin/provider/databricks.js +1 -1
  521. package/dist/plugin/provider/digitalocean.js +98 -97
  522. package/dist/plugin/provider/dynamic.js +2 -2
  523. package/dist/plugin/provider/factory.js +1 -1
  524. package/dist/plugin/provider/github-copilot.js +100 -99
  525. package/dist/plugin/provider/gitlab.js +98 -97
  526. package/dist/plugin/provider/google-vertex.js +115 -114
  527. package/dist/plugin/provider/kilo.js +1 -1
  528. package/dist/plugin/provider/llmgateway.js +82 -81
  529. package/dist/plugin/provider/lmstudio.js +127 -126
  530. package/dist/plugin/provider/local.js +124 -123
  531. package/dist/plugin/provider/modal.js +97 -96
  532. package/dist/plugin/provider/neon.js +1 -1
  533. package/dist/plugin/provider/nvidia.js +1 -1
  534. package/dist/plugin/provider/ollama.js +125 -124
  535. package/dist/plugin/provider/openai-context-caps.js +95 -94
  536. package/dist/plugin/provider/openai.js +118 -117
  537. package/dist/plugin/provider/opencode.js +104 -103
  538. package/dist/plugin/provider/openrouter.js +96 -95
  539. package/dist/plugin/provider/perplexity.js +2 -2
  540. package/dist/plugin/provider/poe.js +83 -82
  541. package/dist/plugin/provider/prompt-cache-key.js +1 -1
  542. package/dist/plugin/provider/sap-ai-core.js +96 -95
  543. package/dist/plugin/provider/sdk-factory.js +1 -1
  544. package/dist/plugin/provider/snowflake-cortex.js +117 -116
  545. package/dist/plugin/provider/vercel.js +95 -94
  546. package/dist/plugin/provider/vllm.js +127 -126
  547. package/dist/plugin/provider/xai.js +96 -95
  548. package/dist/plugin/provider/zenmux.js +1 -1
  549. package/dist/plugin/provider.js +171 -170
  550. package/dist/plugin/sdk.js +78 -77
  551. package/dist/plugin/service.js +3 -3
  552. package/dist/plugin/skill.js +136 -135
  553. package/dist/plugin/source-directory.js +1 -1
  554. package/dist/plugin/supervisor.js +352 -351
  555. package/dist/plugin/tool-input-repair.js +4 -4
  556. package/dist/plugin/update.js +6 -6
  557. package/dist/plugin/vcs/git.js +91 -90
  558. package/dist/plugin/vcs/hg.js +91 -90
  559. package/dist/plugin/verbosity.js +98 -97
  560. package/dist/plugin/warming.js +116 -115
  561. package/dist/plugin/websearch/exa.js +7 -7
  562. package/dist/plugin/websearch/firecrawl.js +8 -8
  563. package/dist/plugin/websearch/index.js +9 -9
  564. package/dist/plugin/websearch/mcp.js +4 -4
  565. package/dist/plugin/websearch/parallel.js +8 -8
  566. package/dist/plugin/websearch/tavily.js +6 -6
  567. package/dist/plugin/websearch/tinyfish.js +8 -8
  568. package/dist/plugin.js +229 -228
  569. package/dist/project/schema.js +2 -2
  570. package/dist/project/sql.js +4 -4
  571. package/dist/project.js +85 -84
  572. package/dist/provider.js +106 -105
  573. package/dist/pty/protocol.js +1 -1
  574. package/dist/pty/ticket.js +1 -1
  575. package/dist/pty.js +95 -94
  576. package/dist/reference/instructions.js +92 -91
  577. package/dist/reference.js +96 -95
  578. package/dist/repository-cache.js +86 -85
  579. package/dist/repository.js +1 -1
  580. package/dist/ripgrep/binary.js +2 -2
  581. package/dist/ripgrep.js +100 -99
  582. package/dist/rpc.js +91 -90
  583. package/dist/schema.js +1 -1
  584. package/dist/session/affinity.js +1 -1
  585. package/dist/session/command.js +78 -77
  586. package/dist/session/compaction.js +139 -138
  587. package/dist/session/context.js +167 -166
  588. package/dist/session/diff.js +93 -92
  589. package/dist/session/environment.js +5 -5
  590. package/dist/session/error.js +3 -3
  591. package/dist/session/event.js +1 -1
  592. package/dist/session/execution/restart.js +223 -222
  593. package/dist/session/execution.js +133 -132
  594. package/dist/session/generate.js +167 -166
  595. package/dist/session/history.js +13 -13
  596. package/dist/session/inbox.js +97 -96
  597. package/dist/session/info.js +3 -3
  598. package/dist/session/instruction-entry.js +81 -80
  599. package/dist/session/instruction-state.js +8 -8
  600. package/dist/session/instructions.js +102 -101
  601. package/dist/session/message-updater.js +2 -2
  602. package/dist/session/message.js +1 -1
  603. package/dist/session/model-request.js +125 -124
  604. package/dist/session/model-transport.js +9 -9
  605. package/dist/session/move.js +135 -134
  606. package/dist/session/projector.js +93 -92
  607. package/dist/session/prompt.js +110 -109
  608. package/dist/session/recent-text.js +1 -1
  609. package/dist/session/revert.js +99 -98
  610. package/dist/session/run-coordinator.js +3 -3
  611. package/dist/session/runner/index.js +3 -3
  612. package/dist/session/runner/llm.js +231 -230
  613. package/dist/session/runner/max-steps.js +1 -1
  614. package/dist/session/runner/model.js +105 -104
  615. package/dist/session/runner/publish-llm-event.js +118 -117
  616. package/dist/session/runner/retry.js +3 -3
  617. package/dist/session/runner/step.js +129 -128
  618. package/dist/session/runner/to-llm-message.js +14 -14
  619. package/dist/session/schema.js +5 -5
  620. package/dist/session/session.js +165 -164
  621. package/dist/session/shell.js +132 -131
  622. package/dist/session/skill.js +108 -107
  623. package/dist/session/sql.js +5 -5
  624. package/dist/session/stats.js +77 -76
  625. package/dist/session/store.js +89 -88
  626. package/dist/session/subagent-completion.js +1 -1
  627. package/dist/session/subagent-job.js +214 -213
  628. package/dist/session/system-prompt.js +1 -1
  629. package/dist/session/title.js +169 -168
  630. package/dist/session/to-session-error.js +117 -116
  631. package/dist/session/transfer.js +216 -216
  632. package/dist/session/usage.js +1 -1
  633. package/dist/session.js +218 -217
  634. package/dist/shell/parse.js +8 -8
  635. package/dist/shell/result.js +1 -1
  636. package/dist/shell/scan.js +1 -1
  637. package/dist/shell/select.js +13 -13
  638. package/dist/shell.js +134 -133
  639. package/dist/skill/discovery.js +6 -6
  640. package/dist/skill/instructions.js +110 -109
  641. package/dist/skill.js +117 -116
  642. package/dist/snapshot.js +98 -97
  643. package/dist/state.js +1 -1
  644. package/dist/tool/html-markdown.js +1 -1
  645. package/dist/tool/http-body.js +1 -1
  646. package/dist/tool/mcp.js +140 -139
  647. package/dist/tool/plugin/edit.js +121 -120
  648. package/dist/tool/plugin/file-diff.js +1 -1
  649. package/dist/tool/plugin/glob.js +129 -128
  650. package/dist/tool/plugin/grep.js +127 -126
  651. package/dist/tool/plugin/mcp-resource.js +129 -128
  652. package/dist/tool/plugin/opencode.js +114 -113
  653. package/dist/tool/plugin/patch.js +125 -124
  654. package/dist/tool/plugin/question.js +106 -105
  655. package/dist/tool/plugin/read.js +130 -129
  656. package/dist/tool/plugin/shell.js +219 -218
  657. package/dist/tool/plugin/skill.js +118 -117
  658. package/dist/tool/plugin/subagent.js +217 -216
  659. package/dist/tool/plugin/todo.js +136 -135
  660. package/dist/tool/plugin/webfetch.js +118 -117
  661. package/dist/tool/plugin/websearch.js +119 -118
  662. package/dist/tool/plugin/write.js +127 -126
  663. package/dist/tool/read-filesystem.js +105 -104
  664. package/dist/tool/runtime.js +1 -1
  665. package/dist/tool-output.js +7 -7
  666. package/dist/tool.js +14 -14
  667. package/dist/types/database/migration/20261024175301_drop_session_allowance.d.ts +3 -0
  668. package/dist/types/session/history.d.ts +0 -2
  669. package/dist/types/session/runner/publish-llm-event.d.ts +0 -1
  670. package/dist/types/session/schema.d.ts +0 -5
  671. package/dist/types/session/sql.d.ts +0 -16
  672. package/dist/types/session/transfer.d.ts +0 -10
  673. package/dist/types/session/usage.d.ts +0 -2
  674. package/dist/usage-limits.js +93 -92
  675. package/dist/util/error-summary.js +1 -1
  676. package/dist/util/git-executable.js +3 -3
  677. package/dist/util/lazy.js +1 -1
  678. package/dist/util/slug.js +1 -1
  679. package/dist/util/token.js +1 -1
  680. package/dist/util/which.js +1 -1
  681. package/dist/util/wildcard.js +1 -1
  682. package/dist/v1/config/agent.js +5 -5
  683. package/dist/v1/config/command.js +3 -3
  684. package/dist/v1/config/mcp.js +4 -4
  685. package/dist/v1/config/migrate.js +97 -96
  686. package/dist/v1/config/permission.js +3 -3
  687. package/dist/v1/config/plugin.js +3 -3
  688. package/dist/v1/config/provider-options.js +1 -1
  689. package/dist/v1/config/provider.js +4 -4
  690. package/dist/variant.js +98 -97
  691. package/dist/vcs/patch.js +1 -1
  692. package/dist/vcs.js +94 -93
  693. package/dist/voice.js +92 -91
  694. package/dist/websearch.js +86 -85
  695. package/dist/wellknown/plugin.js +80 -79
  696. package/dist/wellknown.js +81 -80
  697. package/dist/workspace/driver.js +3 -3
  698. package/dist/workspace/sql.js +1 -1
  699. package/dist/workspace.js +86 -85
  700. package/dist/worktree/directory.js +2 -2
  701. package/dist/worktree/git.js +9 -9
  702. package/dist/worktree/sql.js +5 -5
  703. package/dist/worktree/strategies.js +94 -93
  704. package/dist/worktree.js +101 -100
  705. package/package.json +8 -8
  706. package/dist/chunks/agent-76mf46np.js +0 -26
  707. package/dist/chunks/agent-j0h8eemx.js +0 -261
  708. package/dist/chunks/agent-k62y2wy8.js +0 -18
  709. package/dist/chunks/agent-t5c3j88j.js +0 -517
  710. /package/dist/chunks/{agent-0qkdqm5v.js → location-activity-0qkdqm5v.js} +0 -0
  711. /package/dist/chunks/{agent-0zkw76rk.js → location-activity-0zkw76rk.js} +0 -0
  712. /package/dist/chunks/{agent-17cy0kzp.js → location-activity-17cy0kzp.js} +0 -0
  713. /package/dist/chunks/{agent-1cnp2v09.js → location-activity-1cnp2v09.js} +0 -0
  714. /package/dist/chunks/{agent-24dcb14g.js → location-activity-24dcb14g.js} +0 -0
  715. /package/dist/chunks/{agent-2710q6r3.js → location-activity-2710q6r3.js} +0 -0
  716. /package/dist/chunks/{agent-2bv980vf.js → location-activity-2bv980vf.js} +0 -0
  717. /package/dist/chunks/{agent-2c3vjs8z.js → location-activity-2c3vjs8z.js} +0 -0
  718. /package/dist/chunks/{agent-359p4xyc.js → location-activity-359p4xyc.js} +0 -0
  719. /package/dist/chunks/{agent-3asan66x.js → location-activity-3asan66x.js} +0 -0
  720. /package/dist/chunks/{agent-3v8g72cx.js → location-activity-3v8g72cx.js} +0 -0
  721. /package/dist/chunks/{agent-3wcehsnq.js → location-activity-3wcehsnq.js} +0 -0
  722. /package/dist/chunks/{agent-43n2bw4t.js → location-activity-43n2bw4t.js} +0 -0
  723. /package/dist/chunks/{agent-4knz6hnm.js → location-activity-4knz6hnm.js} +0 -0
  724. /package/dist/chunks/{agent-4vcrnpx2.js → location-activity-4vcrnpx2.js} +0 -0
  725. /package/dist/chunks/{agent-4y7fprxs.js → location-activity-4y7fprxs.js} +0 -0
  726. /package/dist/chunks/{agent-53557ph1.js → location-activity-53557ph1.js} +0 -0
  727. /package/dist/chunks/{agent-550bvhaj.js → location-activity-550bvhaj.js} +0 -0
  728. /package/dist/chunks/{agent-5fjb7ams.js → location-activity-5fjb7ams.js} +0 -0
  729. /package/dist/chunks/{agent-5qd3pb7m.js → location-activity-5qd3pb7m.js} +0 -0
  730. /package/dist/chunks/{agent-6prwharc.js → location-activity-6prwharc.js} +0 -0
  731. /package/dist/chunks/{agent-6q2bdcd1.js → location-activity-6q2bdcd1.js} +0 -0
  732. /package/dist/chunks/{agent-7akdwqpd.js → location-activity-7akdwqpd.js} +0 -0
  733. /package/dist/chunks/{agent-7m9af43g.js → location-activity-7m9af43g.js} +0 -0
  734. /package/dist/chunks/{agent-822emrt2.js → location-activity-822emrt2.js} +0 -0
  735. /package/dist/chunks/{agent-84wd9syh.js → location-activity-84wd9syh.js} +0 -0
  736. /package/dist/chunks/{agent-88xbtdfr.js → location-activity-88xbtdfr.js} +0 -0
  737. /package/dist/chunks/{agent-8n3pysct.js → location-activity-8n3pysct.js} +0 -0
  738. /package/dist/chunks/{agent-8wj87zfr.js → location-activity-8wj87zfr.js} +0 -0
  739. /package/dist/chunks/{agent-9a4afbnw.js → location-activity-9a4afbnw.js} +0 -0
  740. /package/dist/chunks/{agent-9rqn6x4v.js → location-activity-9rqn6x4v.js} +0 -0
  741. /package/dist/chunks/{agent-a058387c.js → location-activity-a058387c.js} +0 -0
  742. /package/dist/chunks/{agent-a6k6eb26.js → location-activity-a6k6eb26.js} +0 -0
  743. /package/dist/chunks/{agent-af5trqkr.js → location-activity-af5trqkr.js} +0 -0
  744. /package/dist/chunks/{agent-afrmfg78.js → location-activity-afrmfg78.js} +0 -0
  745. /package/dist/chunks/{agent-aqzs7mqg.js → location-activity-aqzs7mqg.js} +0 -0
  746. /package/dist/chunks/{agent-atq7p7m5.js → location-activity-atq7p7m5.js} +0 -0
  747. /package/dist/chunks/{agent-bkyjaxrp.js → location-activity-bkyjaxrp.js} +0 -0
  748. /package/dist/chunks/{agent-bmr6ed5q.js → location-activity-bmr6ed5q.js} +0 -0
  749. /package/dist/chunks/{agent-cf4snx6d.js → location-activity-cf4snx6d.js} +0 -0
  750. /package/dist/chunks/{agent-cqv5kn06.js → location-activity-cqv5kn06.js} +0 -0
  751. /package/dist/chunks/{agent-cvy3z8tj.js → location-activity-cvy3z8tj.js} +0 -0
  752. /package/dist/chunks/{agent-d9fn303g.js → location-activity-d9fn303g.js} +0 -0
  753. /package/dist/chunks/{agent-d9jj8t3e.js → location-activity-d9jj8t3e.js} +0 -0
  754. /package/dist/chunks/{agent-dajrwvna.js → location-activity-dajrwvna.js} +0 -0
  755. /package/dist/chunks/{agent-dap0rakb.js → location-activity-dap0rakb.js} +0 -0
  756. /package/dist/chunks/{agent-df08tz66.js → location-activity-df08tz66.js} +0 -0
  757. /package/dist/chunks/{agent-dy18nga0.js → location-activity-dy18nga0.js} +0 -0
  758. /package/dist/chunks/{agent-e5kj55wp.js → location-activity-e5kj55wp.js} +0 -0
  759. /package/dist/chunks/{agent-e73j6tqm.js → location-activity-e73j6tqm.js} +0 -0
  760. /package/dist/chunks/{agent-ec1grn59.js → location-activity-ec1grn59.js} +0 -0
  761. /package/dist/chunks/{agent-eh3zwz77.js → location-activity-eh3zwz77.js} +0 -0
  762. /package/dist/chunks/{agent-emrn6kk6.js → location-activity-emrn6kk6.js} +0 -0
  763. /package/dist/chunks/{agent-f0mxakyp.js → location-activity-f0mxakyp.js} +0 -0
  764. /package/dist/chunks/{agent-f6n9ztr4.js → location-activity-f6n9ztr4.js} +0 -0
  765. /package/dist/chunks/{agent-faypxj3z.js → location-activity-faypxj3z.js} +0 -0
  766. /package/dist/chunks/{agent-fd410y7t.js → location-activity-fd410y7t.js} +0 -0
  767. /package/dist/chunks/{agent-g4wezp1m.js → location-activity-g4wezp1m.js} +0 -0
  768. /package/dist/chunks/{agent-g86h250q.js → location-activity-g86h250q.js} +0 -0
  769. /package/dist/chunks/{agent-gebd4c9n.js → location-activity-gebd4c9n.js} +0 -0
  770. /package/dist/chunks/{agent-gftt206x.js → location-activity-gftt206x.js} +0 -0
  771. /package/dist/chunks/{agent-hcxmzztb.js → location-activity-hcxmzztb.js} +0 -0
  772. /package/dist/chunks/{agent-hk9envan.js → location-activity-hk9envan.js} +0 -0
  773. /package/dist/chunks/{agent-j2ntwpah.js → location-activity-j2ntwpah.js} +0 -0
  774. /package/dist/chunks/{agent-j5zkgpj8.js → location-activity-j5zkgpj8.js} +0 -0
  775. /package/dist/chunks/{agent-jjkms2e6.js → location-activity-jjkms2e6.js} +0 -0
  776. /package/dist/chunks/{agent-jr7sbwjy.js → location-activity-jr7sbwjy.js} +0 -0
  777. /package/dist/chunks/{agent-jwfs4k6c.js → location-activity-jwfs4k6c.js} +0 -0
  778. /package/dist/chunks/{agent-jze0r7bz.js → location-activity-jze0r7bz.js} +0 -0
  779. /package/dist/chunks/{agent-jzg6c2d5.js → location-activity-jzg6c2d5.js} +0 -0
  780. /package/dist/chunks/{agent-m18g726c.js → location-activity-m18g726c.js} +0 -0
  781. /package/dist/chunks/{agent-mp448xyj.js → location-activity-mp448xyj.js} +0 -0
  782. /package/dist/chunks/{agent-msx8hqn2.js → location-activity-msx8hqn2.js} +0 -0
  783. /package/dist/chunks/{agent-n05xt0ee.js → location-activity-n05xt0ee.js} +0 -0
  784. /package/dist/chunks/{agent-n3j8tn72.js → location-activity-n3j8tn72.js} +0 -0
  785. /package/dist/chunks/{agent-njntx4h6.js → location-activity-njntx4h6.js} +0 -0
  786. /package/dist/chunks/{agent-q3sfg36h.js → location-activity-q3sfg36h.js} +0 -0
  787. /package/dist/chunks/{agent-q74kybfr.js → location-activity-q74kybfr.js} +0 -0
  788. /package/dist/chunks/{agent-qaymkmh1.js → location-activity-qaymkmh1.js} +0 -0
  789. /package/dist/chunks/{agent-qb87gjwd.js → location-activity-qb87gjwd.js} +0 -0
  790. /package/dist/chunks/{agent-qfa1cgps.js → location-activity-qfa1cgps.js} +0 -0
  791. /package/dist/chunks/{agent-qg3g05ea.js → location-activity-qg3g05ea.js} +0 -0
  792. /package/dist/chunks/{agent-qrg20bc0.js → location-activity-qrg20bc0.js} +0 -0
  793. /package/dist/chunks/{agent-rcb2kzg1.js → location-activity-rcb2kzg1.js} +0 -0
  794. /package/dist/chunks/{agent-sdp7kfr6.js → location-activity-sdp7kfr6.js} +0 -0
  795. /package/dist/chunks/{agent-ssg3fenm.js → location-activity-ssg3fenm.js} +0 -0
  796. /package/dist/chunks/{agent-ve7vex1e.js → location-activity-ve7vex1e.js} +0 -0
  797. /package/dist/chunks/{agent-w803qqfp.js → location-activity-w803qqfp.js} +0 -0
  798. /package/dist/chunks/{agent-wc3fc9cn.js → location-activity-wc3fc9cn.js} +0 -0
  799. /package/dist/chunks/{agent-wer8tq1h.js → location-activity-wer8tq1h.js} +0 -0
  800. /package/dist/chunks/{agent-wjj7prxr.js → location-activity-wjj7prxr.js} +0 -0
  801. /package/dist/chunks/{agent-wtztk69x.js → location-activity-wtztk69x.js} +0 -0
  802. /package/dist/chunks/{agent-x0ckcb58.js → location-activity-x0ckcb58.js} +0 -0
  803. /package/dist/chunks/{agent-x61499pn.js → location-activity-x61499pn.js} +0 -0
  804. /package/dist/chunks/{agent-y44na4kk.js → location-activity-y44na4kk.js} +0 -0
  805. /package/dist/chunks/{agent-y8f7s663.js → location-activity-y8f7s663.js} +0 -0
  806. /package/dist/chunks/{agent-ygaqb7jw.js → location-activity-ygaqb7jw.js} +0 -0
  807. /package/dist/chunks/{agent-ym463w8f.js → location-activity-ym463w8f.js} +0 -0
  808. /package/dist/chunks/{agent-z5v4ffb3.js → location-activity-z5v4ffb3.js} +0 -0
  809. /package/dist/chunks/{agent-z9919s4g.js → location-activity-z9919s4g.js} +0 -0
@@ -1,47 +1,47 @@
1
1
  import {
2
2
  AbsolutePath2
3
- } from "./agent-z5v4ffb3.js";
3
+ } from "./location-activity-z5v4ffb3.js";
4
4
  import {
5
5
  WorktreeError2
6
- } from "./agent-v1xj14h7.js";
6
+ } from "./location-activity-hkfkkryx.js";
7
7
  import {
8
8
  Slug2
9
- } from "./agent-gebd4c9n.js";
9
+ } from "./location-activity-gebd4c9n.js";
10
10
  import {
11
11
  Service87,
12
12
  node91
13
- } from "./agent-x68edsfb.js";
13
+ } from "./location-activity-mherk3tq.js";
14
14
  import {
15
15
  Service86,
16
16
  node90
17
- } from "./agent-qk0m1vv0.js";
17
+ } from "./location-activity-5e8bacmk.js";
18
18
  import {
19
19
  ProjectTable2
20
- } from "./agent-034tev2y.js";
20
+ } from "./location-activity-aj7mw0zk.js";
21
21
  import {
22
22
  WorktreeTable2
23
- } from "./agent-ayjs7tqn.js";
23
+ } from "./location-activity-3cbjf1nt.js";
24
24
  import {
25
25
  ID17,
26
26
  NotFoundError12
27
- } from "./agent-eqkb58k1.js";
27
+ } from "./location-activity-9qthnb7h.js";
28
28
  import {
29
29
  Ref4
30
- } from "./agent-dvswds2a.js";
30
+ } from "./location-activity-1r6rmb28.js";
31
31
  import {
32
- Service60,
33
- node63
34
- } from "./agent-bwk3ddh5.js";
32
+ Service66,
33
+ node70
34
+ } from "./location-activity-kx5ztbyk.js";
35
35
  import {
36
36
  DirectoryUnavailableError2,
37
37
  canonical2
38
- } from "./agent-d4v9tmah.js";
38
+ } from "./location-activity-d4v9tmah.js";
39
39
  import {
40
- Service38
41
- } from "./agent-r6e28z23.js";
40
+ Service46
41
+ } from "./location-activity-h1zj8b8q.js";
42
42
  import {
43
43
  __export
44
- } from "./agent-9rqn6x4v.js";
44
+ } from "./location-activity-9rqn6x4v.js";
45
45
 
46
46
  // src/worktree.ts
47
47
  var exports_worktree2 = {};
@@ -49,19 +49,19 @@ __export(exports_worktree2, {
49
49
  CreateInput: () => CreateInput3,
50
50
  DestinationExistsError: () => DestinationExistsError2,
51
51
  DirectoryUnavailableError: () => DirectoryUnavailableError2,
52
- Event: () => Event6,
53
- Info: () => Info8,
52
+ Event: () => Event8,
53
+ Info: () => Info9,
54
54
  InvalidDirectoryError: () => InvalidDirectoryError2,
55
55
  List: () => List2,
56
56
  ListEntry: () => ListEntry3,
57
57
  OperationError: () => OperationError2,
58
58
  RemoveInput: () => RemoveInput2,
59
- Service: () => Service37,
59
+ Service: () => Service45,
60
60
  SourceDirectoryNotFoundError: () => SourceDirectoryNotFoundError2,
61
61
  StrategyID: () => StrategyID2,
62
62
  StrategyUnavailableError: () => StrategyUnavailableError2,
63
63
  Worktree: () => exports_worktree2,
64
- node: () => node40
64
+ node: () => node48
65
65
  });
66
66
  import { Context, Effect, Layer, Schema } from "effect";
67
67
  import { and, asc, desc, eq, isNull, sql } from "drizzle-orm";
@@ -75,7 +75,7 @@ import { OperationError as OperationError2 } from "@opencode/schema/worktree";
75
75
  var StrategyID2 = Worktree.StrategyID;
76
76
  var CreateInput3 = Worktree.CreateInput;
77
77
  var RemoveInput2 = Worktree.RemoveInput;
78
- var Info8 = Worktree.Info;
78
+ var Info9 = Worktree.Info;
79
79
  var List2 = Worktree.List;
80
80
  var ListEntry3 = Worktree.ListEntry;
81
81
 
@@ -90,17 +90,17 @@ class InvalidDirectoryError2 extends Schema.TaggedError()("Worktree.InvalidDirec
90
90
 
91
91
  class StrategyUnavailableError2 extends Schema.TaggedError()("Worktree.StrategyUnavailableError", { strategy: StrategyID2 }) {
92
92
  }
93
- var Event6 = Worktree.Event;
93
+ var Event8 = Worktree.Event;
94
94
 
95
- class Service37 extends Context.Service()("@opencode/Worktree") {
95
+ class Service45 extends Context.Service()("@opencode/Worktree") {
96
96
  }
97
- var layer = Layer.effect(Service37, Effect.gen(function* () {
97
+ var layer = Layer.effect(Service45, Effect.gen(function* () {
98
98
  const fs = yield* FSUtil.Service;
99
99
  const database = yield* Service87;
100
100
  const db = database.db;
101
101
  const bus = yield* Service86;
102
102
  const processService = yield* AppProcess.Service;
103
- const locations = yield* Service60;
103
+ const locations = yield* Service66;
104
104
  const project = Effect.fnUntraced(function* (projectID) {
105
105
  const row = yield* db.select().from(ProjectTable2).where(eq(ProjectTable2.id, projectID)).get().pipe(Effect.orDie);
106
106
  if (!row)
@@ -115,11 +115,11 @@ var layer = Layer.effect(Service37, Effect.gen(function* () {
115
115
  const { Plugin } = yield* Effect.promise(() => import("../plugin.js"));
116
116
  const context = yield* locations.contextEffect(Ref4.make({ directory }));
117
117
  yield* Context.get(context, Plugin.Service).awaitActivation;
118
- return Context.get(context, Service38).get();
118
+ return Context.get(context, Service46).get();
119
119
  });
120
120
  const changed = Effect.fnUntraced(function* (projectID, update) {
121
121
  if (update)
122
- yield* bus.publish(Event6.Updated, { projectID });
122
+ yield* bus.publish(Event8.Updated, { projectID });
123
123
  });
124
124
  const ops = {
125
125
  list: Effect.fnUntraced(function* (projectID) {
@@ -246,7 +246,7 @@ var layer = Layer.effect(Service37, Effect.gen(function* () {
246
246
  })).pipe(Effect.orDie);
247
247
  yield* changed(input.projectID, changes.updated.length > 0 || changes.removed.length > 0);
248
248
  }, Effect.scoped);
249
- return Service37.of({
249
+ return Service45.of({
250
250
  list: Effect.fn("Worktree.list")(function* (input) {
251
251
  yield* project(input.projectID);
252
252
  return yield* ops.list(input.projectID);
@@ -256,10 +256,10 @@ var layer = Layer.effect(Service37, Effect.gen(function* () {
256
256
  refresh
257
257
  });
258
258
  }));
259
- var node40 = Node.makeGlobalNode({
260
- service: Service37,
259
+ var node48 = Node.makeGlobalNode({
260
+ service: Service45,
261
261
  layer,
262
- deps: [FSUtil.node, node90, node91, AppProcess.node, node63]
262
+ deps: [FSUtil.node, node90, node91, AppProcess.node, node70]
263
263
  });
264
264
  function operationError(strategy, operation, error) {
265
265
  if (error instanceof WorktreeError2 || error instanceof DirectoryUnavailableError2 || error instanceof Worktree.OperationError)
@@ -269,4 +269,4 @@ function operationError(strategy, operation, error) {
269
269
  });
270
270
  }
271
271
 
272
- export { StrategyID2, CreateInput3, RemoveInput2, Info8, List2, ListEntry3, SourceDirectoryNotFoundError2, DestinationExistsError2, InvalidDirectoryError2, StrategyUnavailableError2, Event6, Service37, node40, exports_worktree2, OperationError2 };
272
+ export { StrategyID2, CreateInput3, RemoveInput2, Info9, List2, ListEntry3, SourceDirectoryNotFoundError2, DestinationExistsError2, InvalidDirectoryError2, StrategyUnavailableError2, Event8, Service45, node48, exports_worktree2, OperationError2 };
@@ -1,51 +1,51 @@
1
1
  import {
2
2
  AbsolutePath2,
3
3
  RelativePath2
4
- } from "./agent-z5v4ffb3.js";
4
+ } from "./location-activity-z5v4ffb3.js";
5
5
  import {
6
6
  Repository2,
7
7
  TreeID2,
8
8
  Service85,
9
9
  node89
10
- } from "./agent-v1xj14h7.js";
10
+ } from "./location-activity-hkfkkryx.js";
11
11
  import {
12
12
  Service83,
13
13
  node87
14
- } from "./agent-dvswds2a.js";
14
+ } from "./location-activity-1r6rmb28.js";
15
15
  import {
16
16
  create3
17
- } from "./agent-vd3b3yk9.js";
17
+ } from "./location-activity-vd3b3yk9.js";
18
18
  import {
19
19
  __export
20
- } from "./agent-9rqn6x4v.js";
20
+ } from "./location-activity-9rqn6x4v.js";
21
21
 
22
22
  // src/snapshot.ts
23
23
  var exports_snapshot2 = {};
24
24
  __export(exports_snapshot2, {
25
- Error: () => Error5,
26
- ID: () => ID7,
27
- Service: () => Service70,
25
+ Error: () => Error2,
26
+ ID: () => ID5,
27
+ Service: () => Service48,
28
28
  Snapshot: () => exports_snapshot2,
29
- node: () => node73,
30
- noopLayer: () => noopLayer3
29
+ node: () => node51,
30
+ noopLayer: () => noopLayer2
31
31
  });
32
32
  import { makeLocationNode } from "@opencode/util/effect/app-node";
33
33
  import path from "path";
34
34
  import { Clock, Context, Effect, Fiber, Layer, Schema, Scope } from "effect";
35
35
  import { FSUtil } from "@opencode/util/fs-util";
36
36
  import { Global } from "@opencode/util/global";
37
- import { ID as ID7 } from "@opencode/schema/snapshot";
37
+ import { ID as ID5 } from "@opencode/schema/snapshot";
38
38
  import { Hash } from "@opencode/util/hash";
39
- class Error5 extends Schema.TaggedError()("Snapshot.Error", {
39
+ class Error2 extends Schema.TaggedError()("Snapshot.Error", {
40
40
  operation: Schema.Literals(["capture", "files", "diff", "restore"]),
41
41
  message: Schema.String,
42
42
  cause: Schema.optional(Schema.Defect())
43
43
  }) {
44
44
  }
45
45
 
46
- class Service70 extends Context.Service()("@opencode/Snapshot") {
46
+ class Service48 extends Context.Service()("@opencode/Snapshot") {
47
47
  }
48
- var layer = Layer.effect(Service70, Effect.gen(function* () {
48
+ var layer = Layer.effect(Service48, Effect.gen(function* () {
49
49
  const fs = yield* FSUtil.Service;
50
50
  const git = yield* Service85;
51
51
  const global = yield* Global.Service;
@@ -63,7 +63,7 @@ var layer = Layer.effect(Service70, Effect.gen(function* () {
63
63
  const repositoryFiber = yield* Effect.cached(Effect.gen(function* () {
64
64
  const source = yield* git.repo.discover(location.project.directory);
65
65
  if (!source)
66
- return yield* new Error5({ operation: "capture", message: "Project is not a Git repository" });
66
+ return yield* new Error2({ operation: "capture", message: "Project is not a Git repository" });
67
67
  const worktree = AbsolutePath2.make(yield* fs.realPath(source.worktree).pipe(Effect.orDie));
68
68
  const gitDirectory = AbsolutePath2.make(path.join(global.data, "snapshot", location.project.id, Hash.fast(worktree)));
69
69
  const snapshotRepository = (yield* fs.existsSafe(path.join(gitDirectory, "HEAD"))) ? new Repository2({ worktree, gitDirectory, commonDirectory: gitDirectory }) : yield* git.repo.create({ worktree, gitDirectory, seed: source }).pipe(Effect.mapError((cause) => failure("capture", cause)));
@@ -72,7 +72,7 @@ var layer = Layer.effect(Service70, Effect.gen(function* () {
72
72
  const repository = repositoryFiber.pipe(Effect.uninterruptible, Effect.flatMap(Fiber.join));
73
73
  const scope = Effect.fnUntraced(function* (worktree) {
74
74
  if (!FSUtil.contains(worktree, location.directory))
75
- return yield* new Error5({ operation: "capture", message: "Location is outside the project" });
75
+ return yield* new Error2({ operation: "capture", message: "Location is outside the project" });
76
76
  return RelativePath2.make(path.relative(worktree, location.directory).replaceAll("\\", "/") || ".");
77
77
  });
78
78
  const enabled = () => location.vcs?.type === "git" && state.get().enabled;
@@ -96,7 +96,7 @@ var layer = Layer.effect(Service70, Effect.gen(function* () {
96
96
  maximumUntrackedFileBytes: 2 * 1024 * 1024
97
97
  });
98
98
  yield* packWhenDue(repo.snapshotRepository);
99
- return ID7.make(tree);
99
+ return ID5.make(tree);
100
100
  }).pipe(Effect.catch((cause) => Effect.logWarning("failed to capture snapshot", { cause }).pipe(Effect.as(undefined))));
101
101
  });
102
102
  const comparison = Effect.fnUntraced(function* (operation, input) {
@@ -141,25 +141,25 @@ var layer = Layer.effect(Service70, Effect.gen(function* () {
141
141
  for (const [file, snapshot] of input.files) {
142
142
  const absolute = path.resolve(worktree, file);
143
143
  if (!FSUtil.contains(worktree, absolute))
144
- return yield* new Error5({ operation: "restore", message: `Path escapes the project: ${file}` });
144
+ return yield* new Error2({ operation: "restore", message: `Path escapes the project: ${file}` });
145
145
  files.set(file, TreeID2.make(snapshot));
146
146
  }
147
147
  return files;
148
148
  });
149
149
  const restore = Effect.fn("Snapshot.restore")(function* (input) {
150
150
  if (!enabled())
151
- return yield* new Error5({ operation: "restore", message: "Snapshots are disabled" });
151
+ return yield* new Error2({ operation: "restore", message: "Snapshots are disabled" });
152
152
  const repo = yield* repository.pipe(Effect.mapError((cause) => failure("restore", cause)));
153
153
  yield* git.tree.restore({ repository: repo.snapshotRepository, files: yield* plan(repo.worktree, input) }).pipe(Effect.mapError((cause) => failure("restore", cause)));
154
154
  });
155
- return Service70.of({ transform: state.transform, reload: state.reload, capture, files, diff, restore });
155
+ return Service48.of({ transform: state.transform, reload: state.reload, capture, files, diff, restore });
156
156
  }).pipe(Effect.withSpan("Snapshot.boot")));
157
- var node73 = makeLocationNode({
158
- service: Service70,
157
+ var node51 = makeLocationNode({
158
+ service: Service48,
159
159
  layer,
160
160
  deps: [FSUtil.node, node89, Global.node, node87]
161
161
  });
162
- var noopLayer3 = Layer.succeed(Service70, Service70.of({
162
+ var noopLayer2 = Layer.succeed(Service48, Service48.of({
163
163
  transform: () => Effect.succeed({ dispose: Effect.void }),
164
164
  reload: () => Effect.void,
165
165
  capture: () => Effect.undefined,
@@ -168,13 +168,13 @@ var noopLayer3 = Layer.succeed(Service70, Service70.of({
168
168
  restore: () => Effect.void
169
169
  }));
170
170
  function failure(operation, cause) {
171
- if (cause instanceof Error5 && cause.operation === operation)
171
+ if (cause instanceof Error2 && cause.operation === operation)
172
172
  return cause;
173
- return new Error5({
173
+ return new Error2({
174
174
  operation,
175
175
  message: cause instanceof globalThis.Error ? cause.message : String(cause),
176
176
  cause
177
177
  });
178
178
  }
179
179
 
180
- export { ID7, Error5, Service70, node73, noopLayer3, exports_snapshot2 };
180
+ export { ID5, Error2, Service48, node51, noopLayer2, exports_snapshot2 };
@@ -1,27 +1,27 @@
1
1
  import {
2
2
  fromPromise2
3
- } from "./agent-4v008n1t.js";
3
+ } from "./location-activity-4v008n1t.js";
4
4
  import {
5
- Service67
6
- } from "./agent-4ebqk1fd.js";
5
+ Service64
6
+ } from "./location-activity-we3hhw3n.js";
7
7
  import {
8
- Service66
9
- } from "./agent-v76m31v0.js";
8
+ Service63
9
+ } from "./location-activity-epwqaf6g.js";
10
10
  import {
11
- Service14,
11
+ Service15,
12
12
  statements2,
13
13
  decision2
14
- } from "./agent-61g7nd3s.js";
14
+ } from "./location-activity-vm0wcjea.js";
15
15
  import {
16
16
  __export
17
- } from "./agent-9rqn6x4v.js";
17
+ } from "./location-activity-9rqn6x4v.js";
18
18
 
19
19
  // src/plugin/module.ts
20
20
  var exports_module = {};
21
21
  __export(exports_module, {
22
22
  LoadError: () => LoadError2,
23
23
  PluginModule: () => exports_module,
24
- make: () => make8
24
+ make: () => make4
25
25
  });
26
26
  import { Host } from "@opencode/plugin/host";
27
27
  import { createPluginSources } from "@opencode/plugin/source";
@@ -30,10 +30,10 @@ import { Deferred, Effect, FiberSet, PubSub, Schema, Stream } from "effect";
30
30
  import path from "path";
31
31
  import { stat } from "node:fs/promises";
32
32
  import { fileURLToPath, pathToFileURL } from "url";
33
- var make8 = Effect.fn("PluginModule.make")(function* () {
34
- const config = yield* Service66;
35
- const managed = yield* Service14;
36
- const watcher = yield* Service67;
33
+ var make4 = Effect.fn("PluginModule.make")(function* () {
34
+ const config = yield* Service63;
35
+ const managed = yield* Service15;
36
+ const watcher = yield* Service64;
37
37
  const scope = yield* Effect.scope;
38
38
  const runPromise = yield* FiberSet.makeRuntimePromise();
39
39
  const changes = yield* PubSub.unbounded();
@@ -118,4 +118,4 @@ var load = Effect.fn("PluginModule.load")(function* (operation, sources, options
118
118
  };
119
119
  });
120
120
 
121
- export { make8, LoadError2, exports_module };
121
+ export { make4, LoadError2, exports_module };
@@ -1,37 +1,37 @@
1
1
  import {
2
2
  useragent2
3
- } from "./agent-11k6s8k8.js";
3
+ } from "./location-activity-z0qd3mgb.js";
4
4
  import {
5
5
  Service86
6
- } from "./agent-qk0m1vv0.js";
6
+ } from "./location-activity-5e8bacmk.js";
7
7
  import {
8
8
  OAuth3,
9
- Event19,
10
- Service82
11
- } from "./agent-476ebpw1.js";
9
+ Event15,
10
+ Service75
11
+ } from "./location-activity-wxw2jpx7.js";
12
12
  import {
13
- ID14,
13
+ ID9,
14
14
  MethodID2,
15
- Service80
16
- } from "./agent-6dnbbrkg.js";
15
+ Service74
16
+ } from "./location-activity-agptt57b.js";
17
17
  import {
18
18
  success2,
19
19
  error2
20
- } from "./agent-yb20nhc3.js";
20
+ } from "./location-activity-yb20nhc3.js";
21
21
  import {
22
- ID13
23
- } from "./agent-x4w6jmkv.js";
22
+ ID8
23
+ } from "./location-activity-sw94b9fh.js";
24
24
  import {
25
25
  configuredSettings2
26
- } from "./agent-wqa97sqm.js";
26
+ } from "./location-activity-5a2n849v.js";
27
27
 
28
28
  // src/plugin/provider/snowflake-cortex.ts
29
29
  import { define } from "@opencode/plugin/effect/plugin";
30
30
  import { Form } from "@opencode/schema/form";
31
31
  import { Clock, Deferred, Effect, Option, Schema, Stream } from "effect";
32
32
  import { HttpClient, HttpClientRequest, HttpClientResponse } from "effect/http";
33
- var providerID = ID13.make("snowflake-cortex");
34
- var integrationID = ID14.make(providerID);
33
+ var providerID = ID8.make("snowflake-cortex");
34
+ var integrationID = ID9.make(providerID);
35
35
  var methodID = MethodID2.make("browser");
36
36
  var clientID = "LOCAL_APPLICATION";
37
37
  var accountForm = Form.Fields.make([
@@ -53,8 +53,8 @@ var SnowflakeCortexPlugin2 = define({
53
53
  id: "opencode.provider.snowflake.cortex",
54
54
  effect: Effect.fn(function* (ctx) {
55
55
  const http = yield* HttpClient.HttpClient;
56
- const credentials = yield* Service82;
57
- const integrations = yield* Service80;
56
+ const credentials = yield* Service75;
57
+ const integrations = yield* Service74;
58
58
  const bus = yield* Service86;
59
59
  const configured = yield* configuredSettings2(providerID);
60
60
  const account = { value: "" };
@@ -186,7 +186,7 @@ var SnowflakeCortexPlugin2 = define({
186
186
  });
187
187
  }
188
188
  });
189
- yield* bus.subscribe(Event19.Switched).pipe(Stream.filter((event) => event.data.integrationID === integrationID), Stream.runForEach(() => load.pipe(Effect.andThen(ctx.provider.reload()))), Effect.forkScoped({ startImmediately: true }));
189
+ yield* bus.subscribe(Event15.Switched).pipe(Stream.filter((event) => event.data.integrationID === integrationID), Stream.runForEach(() => load.pipe(Effect.andThen(ctx.provider.reload()))), Effect.forkScoped({ startImmediately: true }));
190
190
  yield* ctx.session.hook("http.request", (event) => Effect.sync(() => {
191
191
  const token = envToken();
192
192
  if (token)
@@ -2,10 +2,10 @@ import {
2
2
  NotFound3,
3
3
  WrongKind2,
4
4
  Failed2
5
- } from "./agent-zkg84ctx.js";
5
+ } from "./location-activity-zkg84ctx.js";
6
6
  import {
7
7
  __export
8
- } from "./agent-9rqn6x4v.js";
8
+ } from "./location-activity-9rqn6x4v.js";
9
9
 
10
10
  // src/environment/local.ts
11
11
  var exports_local = {};
@@ -1,28 +1,28 @@
1
1
  import {
2
- Service67
3
- } from "./agent-4ebqk1fd.js";
2
+ Service64
3
+ } from "./location-activity-we3hhw3n.js";
4
4
  import {
5
5
  Service83
6
- } from "./agent-dvswds2a.js";
6
+ } from "./location-activity-1r6rmb28.js";
7
7
  import {
8
- Service66
9
- } from "./agent-v76m31v0.js";
8
+ Service63
9
+ } from "./location-activity-epwqaf6g.js";
10
10
  import {
11
11
  unavailable3
12
- } from "./agent-jneg3k74.js";
12
+ } from "./location-activity-9p9xqj3m.js";
13
13
  import {
14
14
  File2,
15
- Service41
16
- } from "./agent-r0yf9dk1.js";
15
+ Service44
16
+ } from "./location-activity-9jpv2rkm.js";
17
17
  import {
18
18
  __export
19
- } from "./agent-9rqn6x4v.js";
19
+ } from "./location-activity-9rqn6x4v.js";
20
20
 
21
21
  // src/config/plugin/instruction.ts
22
22
  var exports_instruction = {};
23
23
  __export(exports_instruction, {
24
24
  ConfigInstructionPlugin: () => exports_instruction,
25
- Plugin: () => Plugin30
25
+ Plugin: () => Plugin48
26
26
  });
27
27
  import { define } from "@opencode/plugin/effect/plugin";
28
28
  import { FSUtil } from "@opencode/util/fs-util";
@@ -31,17 +31,17 @@ import { sameDirectory } from "@opencode/util/path";
31
31
  import path, { dirname, join } from "path";
32
32
  import { Effect, FiberMap, PubSub, Semaphore, Stream } from "effect";
33
33
  import { HttpClient, HttpClientRequest } from "effect/http";
34
- var Plugin30 = define({
34
+ var Plugin48 = define({
35
35
  id: "opencode.config.instruction",
36
36
  effect: Effect.fn(function* (ctx) {
37
- const discovery = yield* Service41;
37
+ const discovery = yield* Service44;
38
38
  yield* Effect.gen(function* () {
39
- const config = yield* Service66;
39
+ const config = yield* Service63;
40
40
  const fs = yield* FSUtil.Service;
41
41
  const global = yield* Global.Service;
42
42
  const http = HttpClient.filterStatusOk(yield* HttpClient.HttpClient);
43
43
  const location = yield* Service83;
44
- const watcher = yield* Service67;
44
+ const watcher = yield* Service64;
45
45
  const changes = yield* PubSub.sliding(1);
46
46
  const watches = yield* FiberMap.make();
47
47
  const lock = Semaphore.makeUnsafe(1);
@@ -180,4 +180,4 @@ function isUrl(source) {
180
180
  return URL.canParse(source) && /^https?:$/.test(new URL(source).protocol);
181
181
  }
182
182
 
183
- export { Plugin30, exports_instruction };
183
+ export { Plugin48, exports_instruction };
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  SessionMessage2
3
- } from "./agent-gftt206x.js";
3
+ } from "./location-activity-gftt206x.js";
4
4
  import {
5
5
  __export
6
- } from "./agent-9rqn6x4v.js";
6
+ } from "./location-activity-9rqn6x4v.js";
7
7
 
8
8
  // src/session/message-updater.ts
9
9
  var exports_message_updater = {};
@@ -209,7 +209,6 @@ function update2(adapter, event) {
209
209
  draft.rawFinish = event.data.rawFinish;
210
210
  draft.native = castDraft(event.data.native);
211
211
  draft.cost = event.data.cost;
212
- draft.allowance = event.data.allowance;
213
212
  draft.tokens = event.data.tokens;
214
213
  projectTerminalSnapshot(draft, event);
215
214
  });
@@ -224,7 +223,6 @@ function update2(adapter, event) {
224
223
  draft.retry = undefined;
225
224
  if (event.data.cost !== undefined && event.data.tokens !== undefined) {
226
225
  draft.cost = event.data.cost;
227
- draft.allowance = event.data.allowance;
228
226
  draft.tokens = castDraft(event.data.tokens);
229
227
  }
230
228
  projectTerminalSnapshot(draft, event);
@@ -1,64 +1,64 @@
1
1
  import {
2
2
  Service87,
3
3
  node91
4
- } from "./agent-x68edsfb.js";
4
+ } from "./location-activity-mherk3tq.js";
5
5
  import {
6
6
  reserveSequence2,
7
7
  Service86,
8
8
  node90
9
- } from "./agent-qk0m1vv0.js";
9
+ } from "./location-activity-5e8bacmk.js";
10
10
  import {
11
11
  SessionEvent2
12
- } from "./agent-ec1grn59.js";
12
+ } from "./location-activity-ec1grn59.js";
13
13
  import {
14
14
  SessionMessage2
15
- } from "./agent-gftt206x.js";
15
+ } from "./location-activity-gftt206x.js";
16
16
  import {
17
17
  update2
18
- } from "./agent-prazahgm.js";
18
+ } from "./location-activity-b6vsg801.js";
19
19
  import {
20
20
  AbsolutePath2,
21
21
  RelativePath2
22
- } from "./agent-z5v4ffb3.js";
22
+ } from "./location-activity-z5v4ffb3.js";
23
23
  import {
24
24
  ProjectTable2
25
- } from "./agent-034tev2y.js";
25
+ } from "./location-activity-aj7mw0zk.js";
26
26
  import {
27
27
  SessionTable2,
28
28
  SessionMessageTable2,
29
29
  SessionInboxTable2
30
- } from "./agent-fnrac0zs.js";
30
+ } from "./location-activity-dvj9ct8m.js";
31
31
  import {
32
32
  apply2,
33
33
  initialize3,
34
34
  advanceEpoch2,
35
35
  rewind2
36
- } from "./agent-mgma89zk.js";
36
+ } from "./location-activity-f45gjzva.js";
37
37
  import {
38
38
  decodeMessageRowSync2
39
- } from "./agent-7an283zs.js";
39
+ } from "./location-activity-1kne0mqx.js";
40
40
  import {
41
41
  projectAdmitted2,
42
42
  projectDelivered2,
43
43
  projectCancelled2,
44
44
  projectDeliveryChanged2
45
- } from "./agent-ze8957am.js";
45
+ } from "./location-activity-6ksmve61.js";
46
46
  import {
47
47
  initialize2
48
- } from "./agent-7bbsac65.js";
48
+ } from "./location-activity-kq1p7daa.js";
49
49
  import {
50
50
  Slug2
51
- } from "./agent-gebd4c9n.js";
51
+ } from "./location-activity-gebd4c9n.js";
52
52
  import {
53
53
  __export
54
- } from "./agent-9rqn6x4v.js";
54
+ } from "./location-activity-9rqn6x4v.js";
55
55
 
56
56
  // src/session/projector.ts
57
57
  var exports_projector = {};
58
58
  __export(exports_projector, {
59
59
  SessionAlreadyProjected: () => SessionAlreadyProjected2,
60
60
  SessionProjector: () => exports_projector,
61
- node: () => node24
61
+ node: () => node27
62
62
  });
63
63
  import { and, asc, desc, eq, gt, gte, inArray, isNull, lt, lte, or, sql } from "drizzle-orm";
64
64
  import { DateTime, Effect, Layer, Schema, Stream } from "effect";
@@ -85,7 +85,6 @@ var forkTitle = (value) => {
85
85
  function applyUsage(db, sessionID, value, timeUpdated) {
86
86
  return db.update(SessionTable2).set({
87
87
  cost: sql`${SessionTable2.cost} + ${value.cost}`,
88
- allowance: sql`${SessionTable2.allowance} + ${value.allowance ?? 0}`,
89
88
  tokens_input: sql`${SessionTable2.tokens_input} + ${value.tokens.input}`,
90
89
  tokens_output: sql`${SessionTable2.tokens_output} + ${value.tokens.output}`,
91
90
  tokens_reasoning: sql`${SessionTable2.tokens_reasoning} + ${value.tokens.reasoning}`,
@@ -100,7 +99,6 @@ function touch(db, event) {
100
99
  var publishSessionUsage = Effect.fn("SessionProjector.publishUsage")(function* (db, bus, sessionID) {
101
100
  const row = yield* db.select({
102
101
  cost: SessionTable2.cost,
103
- allowance: SessionTable2.allowance,
104
102
  input: SessionTable2.tokens_input,
105
103
  output: SessionTable2.tokens_output,
106
104
  reasoning: SessionTable2.tokens_reasoning,
@@ -112,7 +110,6 @@ var publishSessionUsage = Effect.fn("SessionProjector.publishUsage")(function* (
112
110
  yield* bus.publish(SessionEvent2.UsageUpdated, {
113
111
  sessionID,
114
112
  cost: Money.USD.make(row.cost),
115
- ...row.allowance > 0 ? { allowance: Money.USD.make(row.allowance) } : {},
116
113
  tokens: {
117
114
  input: row.input,
118
115
  output: row.output,
@@ -442,7 +439,7 @@ var layer = Layer.effectDiscard(Effect.gen(function* () {
442
439
  yield* bus.project(SessionEvent2.Step.Failed, (event) => Effect.gen(function* () {
443
440
  yield* run(db, event);
444
441
  if (event.data.cost !== undefined && event.data.tokens !== undefined)
445
- yield* applyUsage(db, event.data.sessionID, { cost: event.data.cost, allowance: event.data.allowance, tokens: event.data.tokens }, event.created);
442
+ yield* applyUsage(db, event.data.sessionID, { cost: event.data.cost, tokens: event.data.tokens }, event.created);
446
443
  else
447
444
  yield* touch(db, event);
448
445
  }));
@@ -485,6 +482,6 @@ var layer = Layer.effectDiscard(Effect.gen(function* () {
485
482
  return publishSessionUsage(db, bus, event.data.sessionID);
486
483
  }), Effect.forkScoped({ startImmediately: true }));
487
484
  }));
488
- var node24 = makeGlobalNode({ name: "session-projector", layer, deps: [node90, node91] });
485
+ var node27 = makeGlobalNode({ name: "session-projector", layer, deps: [node90, node91] });
489
486
 
490
- export { SessionAlreadyProjected2, node24, exports_projector };
487
+ export { SessionAlreadyProjected2, node27, exports_projector };