@opencode/core 2.2.3 → 2.2.5

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 (938) hide show
  1. package/dist/account/sql.js +1 -1
  2. package/dist/agent.js +92 -91
  3. package/dist/aisdk-native.js +102 -101
  4. package/dist/aisdk.js +108 -107
  5. package/dist/app.js +9 -9
  6. package/dist/artifact.js +267 -0
  7. package/dist/bus.js +84 -83
  8. package/dist/chunks/{usage-limits-034tev2y.js → location-034tev2y.js} +2 -2
  9. package/dist/chunks/{usage-limits-fjz66g9m.js → location-04s74fx7.js} +5 -5
  10. package/dist/chunks/{usage-limits-h7zpsm02.js → location-07m5epzk.js} +8 -8
  11. package/dist/chunks/{usage-limits-gqnkkt2t.js → location-0bxzm2zt.js} +25 -25
  12. package/dist/chunks/{usage-limits-bx8w4fye.js → location-0g38r5dn.js} +6 -6
  13. package/dist/chunks/{usage-limits-sqjzf8x2.js → location-0j7gp832.js} +4 -4
  14. package/dist/chunks/{usage-limits-qzk2n153.js → location-0mtp185z.js} +11 -11
  15. package/dist/chunks/{usage-limits-hkq0605p.js → location-0n47t93t.js} +19 -19
  16. package/dist/chunks/{usage-limits-m6e4v83y.js → location-0r9qm1b5.js} +13 -13
  17. package/dist/chunks/{usage-limits-hnsyj4wy.js → location-0te9php1.js} +6 -6
  18. package/dist/chunks/{usage-limits-cy8gb27n.js → location-0tnznt5m.js} +93 -92
  19. package/dist/chunks/{usage-limits-k4n5rdea.js → location-0v7dsvys.js} +28 -28
  20. package/dist/chunks/{usage-limits-k0dvq0p8.js → location-18aa7g5f.js} +2 -2
  21. package/dist/chunks/{usage-limits-1aqsckx4.js → location-1aqsckx4.js} +1 -1
  22. package/dist/chunks/{usage-limits-1ep2p91f.js → location-1ep2p91f.js} +2 -2
  23. package/dist/chunks/{usage-limits-a058387c.js → location-1pevy3nx.js} +11 -4
  24. package/dist/chunks/{usage-limits-qsrr0pb2.js → location-1rx1hnzt.js} +2 -2
  25. package/dist/chunks/{usage-limits-msd2a3qm.js → location-1v2g13eq.js} +4 -4
  26. package/dist/chunks/{usage-limits-zzr7ewsq.js → location-1ws9awgf.js} +3 -3
  27. package/dist/chunks/{usage-limits-1x2knyw4.js → location-1x2knyw4.js} +1 -1
  28. package/dist/chunks/{usage-limits-ypj1acmt.js → location-1x7bzasz.js} +4 -4
  29. package/dist/chunks/{usage-limits-p7vhpwh8.js → location-1yq9hg58.js} +5 -5
  30. package/dist/chunks/{usage-limits-9eh6sf6d.js → location-23kefcxh.js} +5 -5
  31. package/dist/chunks/{usage-limits-29g8zhjy.js → location-29q1ynsb.js} +11 -11
  32. package/dist/chunks/{usage-limits-zzyrkxde.js → location-2bhb5h7h.js} +21 -21
  33. package/dist/chunks/{usage-limits-388adpjt.js → location-2kt40n0h.js} +28 -28
  34. package/dist/chunks/{usage-limits-m219wbpy.js → location-2n49ywt8.js} +7 -7
  35. package/dist/chunks/{usage-limits-2p60zmnr.js → location-2p60zmnr.js} +2 -2
  36. package/dist/chunks/{usage-limits-3nnc7tm4.js → location-2vjw39cp.js} +31 -31
  37. package/dist/chunks/{usage-limits-8n2zw19c.js → location-2xfkfqe0.js} +3 -3
  38. package/dist/chunks/{usage-limits-7hxch2qy.js → location-308d3261.js} +2 -2
  39. package/dist/chunks/{usage-limits-2qxqxxnw.js → location-35jwj28y.js} +4 -4
  40. package/dist/chunks/{usage-limits-80vrve0e.js → location-36ccx1qg.js} +22 -22
  41. package/dist/chunks/{usage-limits-8srhw74s.js → location-38aws4xb.js} +7 -8
  42. package/dist/chunks/{usage-limits-3hepkmqq.js → location-3hepkmqq.js} +1 -1
  43. package/dist/chunks/{usage-limits-3nnrz6f6.js → location-3nnrz6f6.js} +1 -1
  44. package/dist/chunks/{usage-limits-k20abjym.js → location-3qjct0tr.js} +21 -21
  45. package/dist/chunks/{usage-limits-e2rhb6tw.js → location-3x6qh80y.js} +8 -8
  46. package/dist/chunks/{usage-limits-40y6dtc2.js → location-40y6dtc2.js} +1 -1
  47. package/dist/chunks/{usage-limits-w2eysc6j.js → location-40za9wsf.js} +9 -9
  48. package/dist/chunks/{usage-limits-44pmzq9c.js → location-44pmzq9c.js} +2 -2
  49. package/dist/chunks/{usage-limits-0xzgxfq0.js → location-49ewxxyg.js} +12 -12
  50. package/dist/chunks/{usage-limits-474t0jp4.js → location-4cggrrsp.js} +1 -1
  51. package/dist/chunks/{usage-limits-y61545pt.js → location-4cm7qjrx.js} +11 -11
  52. package/dist/chunks/{usage-limits-4d2dtj2f.js → location-4d2dtj2f.js} +1 -1
  53. package/dist/chunks/{usage-limits-4dx1dgte.js → location-4dx1dgte.js} +1 -1
  54. package/dist/chunks/{usage-limits-r542h3bh.js → location-4f25tdd0.js} +5 -5
  55. package/dist/chunks/{usage-limits-k0sc0549.js → location-4g60rn0h.js} +41 -41
  56. package/dist/chunks/{usage-limits-tnn0wdmp.js → location-4gmq5zmz.js} +9 -9
  57. package/dist/chunks/{usage-limits-8ww20s18.js → location-4pqhsa69.js} +27 -27
  58. package/dist/chunks/{usage-limits-4pyp9zr9.js → location-4pyp9zr9.js} +1 -1
  59. package/dist/chunks/{usage-limits-4v008n1t.js → location-4v008n1t.js} +1 -1
  60. package/dist/chunks/{usage-limits-kh70vamz.js → location-51vbvb0m.js} +3 -3
  61. package/dist/chunks/{usage-limits-da6a8czh.js → location-525wwyj8.js} +9 -9
  62. package/dist/chunks/{usage-limits-htq0fyv1.js → location-53kbtjgk.js} +8 -8
  63. package/dist/chunks/{usage-limits-m027q5yz.js → location-5410tw2w.js} +5 -5
  64. package/dist/chunks/{usage-limits-7gp52k32.js → location-55vzv2z0.js} +19 -19
  65. package/dist/chunks/{usage-limits-d1vch9mx.js → location-59f8nn63.js} +4 -4
  66. package/dist/chunks/{usage-limits-en6c2g1y.js → location-59jdbvtx.js} +11 -11
  67. package/dist/chunks/{usage-limits-9daenajy.js → location-59m21zek.js} +23 -23
  68. package/dist/chunks/{usage-limits-cwz64wqk.js → location-5exj1349.js} +9 -9
  69. package/dist/chunks/{usage-limits-03mq5jdz.js → location-5g4e44xt.js} +19 -19
  70. package/dist/chunks/{usage-limits-5m9w47nd.js → location-5m9w47nd.js} +1 -1
  71. package/dist/chunks/{usage-limits-nmbybfz1.js → location-5n8a870q.js} +13 -13
  72. package/dist/chunks/{usage-limits-ktf6v6ad.js → location-5nrmkrh9.js} +32 -32
  73. package/dist/chunks/{usage-limits-1w61pkx2.js → location-5tr0rk86.js} +20 -20
  74. package/dist/chunks/{usage-limits-4h9sjm86.js → location-5w0wh532.js} +31 -31
  75. package/dist/chunks/{usage-limits-668rppz5.js → location-5wzr0xmz.js} +11 -11
  76. package/dist/chunks/{usage-limits-9xnvtjrj.js → location-5z25cm6z.js} +10 -10
  77. package/dist/chunks/{usage-limits-84ce92z0.js → location-5zmy73z4.js} +43 -43
  78. package/dist/chunks/{usage-limits-stkk57rt.js → location-6agm2x70.js} +19 -0
  79. package/dist/chunks/{usage-limits-5a543fyv.js → location-6bg8krdj.js} +20 -20
  80. package/dist/chunks/{usage-limits-6esdw8yj.js → location-6esdw8yj.js} +1 -1
  81. package/dist/chunks/{usage-limits-902cdbxm.js → location-6rysv0em.js} +37 -37
  82. package/dist/chunks/{usage-limits-m0db3c0y.js → location-6w66fgr9.js} +6 -6
  83. package/dist/chunks/{usage-limits-vek77fn1.js → location-6xtjqz2m.js} +4 -4
  84. package/dist/chunks/{usage-limits-7ass9zk5.js → location-72cd9sja.js} +9 -9
  85. package/dist/chunks/{usage-limits-w8qtt4th.js → location-76cb1hcw.js} +4 -4
  86. package/dist/chunks/{usage-limits-775hqbnd.js → location-775hqbnd.js} +3 -3
  87. package/dist/chunks/{usage-limits-y5an59n2.js → location-7989c5m3.js} +35 -35
  88. package/dist/chunks/{usage-limits-q1nnka74.js → location-7bg5w1mh.js} +8 -8
  89. package/dist/chunks/{usage-limits-7bmhse3q.js → location-7bmhse3q.js} +1 -1
  90. package/dist/chunks/{usage-limits-0weke1bx.js → location-7c77zw03.js} +19 -19
  91. package/dist/chunks/{usage-limits-mkvajvdj.js → location-7cszg9qg.js} +11 -11
  92. package/dist/chunks/{usage-limits-qqaph24h.js → location-7g1t08v3.js} +43 -43
  93. package/dist/chunks/{usage-limits-7kr66rt3.js → location-7kr66rt3.js} +1 -1
  94. package/dist/chunks/{usage-limits-rca9n2n2.js → location-7qtjan0s.js} +9 -9
  95. package/dist/chunks/{usage-limits-m979knme.js → location-7rrwvpx0.js} +6 -6
  96. package/dist/chunks/{usage-limits-161gdnzb.js → location-7v32djr5.js} +11 -11
  97. package/dist/chunks/{usage-limits-774q7b2v.js → location-7vrt23ax.js} +28 -28
  98. package/dist/chunks/{usage-limits-7w2ypzdf.js → location-7w2ypzdf.js} +1 -1
  99. package/dist/chunks/{usage-limits-89287pr7.js → location-89287pr7.js} +1 -1
  100. package/dist/chunks/{usage-limits-25h84942.js → location-8b3vzgkx.js} +4 -4
  101. package/dist/chunks/{usage-limits-94v1enck.js → location-8bdk3xv4.js} +15 -15
  102. package/dist/chunks/location-8bkeh70z.js +152 -0
  103. package/dist/chunks/{usage-limits-qv7a899h.js → location-8bpbrx89.js} +23 -23
  104. package/dist/chunks/{usage-limits-bpj7e5pf.js → location-8bw9rmyf.js} +12 -12
  105. package/dist/chunks/{usage-limits-3cn1nqds.js → location-8kmcapts.js} +22 -22
  106. package/dist/chunks/{usage-limits-ty5qxp0p.js → location-8pwhzr69.js} +16 -16
  107. package/dist/chunks/{usage-limits-xa14bxe7.js → location-8w0ebqqh.js} +13 -13
  108. package/dist/chunks/{usage-limits-y5r9v80f.js → location-8w57drsc.js} +3 -3
  109. package/dist/chunks/{usage-limits-8wtp7s3z.js → location-8wtp7s3z.js} +1 -1
  110. package/dist/chunks/{usage-limits-58h557c0.js → location-8wv7qc9x.js} +1 -1
  111. package/dist/chunks/{usage-limits-s4y30yy0.js → location-8yahp800.js} +19 -19
  112. package/dist/chunks/{usage-limits-90zstvax.js → location-90zstvax.js} +1 -1
  113. package/dist/chunks/{usage-limits-95sp4hdf.js → location-95sp4hdf.js} +1 -1
  114. package/dist/chunks/{usage-limits-b9a8fgmc.js → location-9cez4ha1.js} +85 -85
  115. package/dist/chunks/{usage-limits-7y2j04q1.js → location-9cr47wgy.js} +7 -7
  116. package/dist/chunks/{usage-limits-b41wgt7r.js → location-9d8vbkrs.js} +22 -22
  117. package/dist/chunks/{usage-limits-ccjxwn3d.js → location-9rh87f65.js} +4 -4
  118. package/dist/chunks/{usage-limits-dm1b1mmt.js → location-9sy1j1hj.js} +4 -4
  119. package/dist/chunks/{usage-limits-60mrzfj0.js → location-9tsmdv4c.js} +16 -16
  120. package/dist/chunks/{usage-limits-y1s46rby.js → location-9vy8452z.js} +3 -3
  121. package/dist/chunks/{usage-limits-9jq890y0.js → location-9xg8q822.js} +29 -29
  122. package/dist/chunks/{usage-limits-vgpm2vyx.js → location-9yb3zcdq.js} +17 -17
  123. package/dist/chunks/{usage-limits-9nkjg9qd.js → location-9yqjp86x.js} +6 -6
  124. package/dist/chunks/{usage-limits-mrpnjyvf.js → location-a5fx33f2.js} +2 -2
  125. package/dist/chunks/{usage-limits-npn7q6je.js → location-a605syc4.js} +11 -11
  126. package/dist/chunks/{usage-limits-z2xe5rth.js → location-aenn6vam.js} +7 -7
  127. package/dist/chunks/{usage-limits-a3v55ybv.js → location-ar1ykng7.js} +16 -16
  128. package/dist/chunks/{usage-limits-ayjs7tqn.js → location-ayjs7tqn.js} +2 -2
  129. package/dist/chunks/{usage-limits-j38jzfz7.js → location-b0mvxz9p.js} +6 -6
  130. package/dist/chunks/{usage-limits-2bsm227b.js → location-b1w7ct0q.js} +9 -9
  131. package/dist/chunks/{usage-limits-6wg1qg5c.js → location-b44mzvm2.js} +3 -3
  132. package/dist/chunks/{usage-limits-b6vsg801.js → location-b6vsg801.js} +2 -2
  133. package/dist/chunks/{usage-limits-49xxf483.js → location-bd2tgyqc.js} +22 -22
  134. package/dist/chunks/{usage-limits-s731tgr5.js → location-bj94m9aa.js} +25 -25
  135. package/dist/chunks/{usage-limits-hyc87431.js → location-bmaqsw9f.js} +21 -21
  136. package/dist/chunks/{usage-limits-1j0ttc0k.js → location-br0vy00v.js} +59 -34
  137. package/dist/chunks/{usage-limits-c4cws4p8.js → location-brzehw6d.js} +3 -3
  138. package/dist/chunks/{usage-limits-bstexjd6.js → location-bstexjd6.js} +1 -1
  139. package/dist/chunks/{usage-limits-0d2428b6.js → location-btd8fxqm.js} +22 -22
  140. package/dist/chunks/{usage-limits-k2m4hrdy.js → location-c33rx4fz.js} +92 -38
  141. package/dist/chunks/location-c63hjbxg.js +549 -0
  142. package/dist/chunks/{usage-limits-f6p21kdy.js → location-c8nm6r9n.js} +33 -33
  143. package/dist/chunks/{usage-limits-f5d5a401.js → location-c936wf6s.js} +8 -8
  144. package/dist/chunks/{usage-limits-2862kdgf.js → location-cdyxbmf6.js} +18 -18
  145. package/dist/chunks/{usage-limits-yy0ph7eq.js → location-cf3f13z6.js} +8 -8
  146. package/dist/chunks/{usage-limits-ymyp89gh.js → location-cma2wmmz.js} +11 -11
  147. package/dist/chunks/{usage-limits-ndw3w55s.js → location-cn293ev4.js} +11 -11
  148. package/dist/chunks/{usage-limits-gdaxappr.js → location-cp50ck8v.js} +41 -41
  149. package/dist/chunks/{usage-limits-cta89apb.js → location-cqpeez8k.js} +6 -6
  150. package/dist/chunks/{usage-limits-5n0rnk8e.js → location-cr4rfj9z.js} +4 -4
  151. package/dist/chunks/{usage-limits-cwrgdav8.js → location-cwrgdav8.js} +2 -2
  152. package/dist/chunks/{usage-limits-jwv04pkk.js → location-cx9aej0j.js} +3 -3
  153. package/dist/chunks/{usage-limits-e5r74ts4.js → location-d06vrnws.js} +11 -11
  154. package/dist/chunks/{usage-limits-d4v9tmah.js → location-d4v9tmah.js} +2 -2
  155. package/dist/chunks/{usage-limits-g8wef12p.js → location-dk52qdp1.js} +18 -18
  156. package/dist/chunks/{usage-limits-bmphwkmb.js → location-dmj8812b.js} +7 -7
  157. package/dist/chunks/{usage-limits-bypbe432.js → location-drmcc20n.js} +17 -17
  158. package/dist/chunks/{usage-limits-dt77769w.js → location-dt77769w.js} +1 -1
  159. package/dist/chunks/{usage-limits-egzae5dw.js → location-dtwq3btp.js} +22 -22
  160. package/dist/chunks/{usage-limits-f2kytvwy.js → location-dw7b814a.js} +7 -7
  161. package/dist/chunks/{usage-limits-qp5navez.js → location-dzrhv8qk.js} +12 -12
  162. package/dist/chunks/{usage-limits-7dz1b5qc.js → location-e0wvbr5s.js} +26 -26
  163. package/dist/chunks/{usage-limits-nmwft8kx.js → location-e6x1stkt.js} +8 -8
  164. package/dist/chunks/{usage-limits-e834z07m.js → location-e834z07m.js} +1 -1
  165. package/dist/chunks/{usage-limits-jnc77vb7.js → location-e8xs0hrs.js} +34 -34
  166. package/dist/chunks/{usage-limits-7a3ts1e5.js → location-eafxjg76.js} +21 -21
  167. package/dist/chunks/{usage-limits-0885wsjc.js → location-ed3xm8n8.js} +13 -13
  168. package/dist/chunks/{usage-limits-76mdcqjq.js → location-eggchsdy.js} +52 -49
  169. package/dist/chunks/{usage-limits-mw5z1gck.js → location-ehr8xgyf.js} +27 -27
  170. package/dist/chunks/{usage-limits-marjhpxb.js → location-ens3tcp1.js} +96 -35
  171. package/dist/chunks/{usage-limits-eqw4pqj1.js → location-eqw4pqj1.js} +2 -2
  172. package/dist/chunks/{usage-limits-d8nyttsp.js → location-ez4sqtdc.js} +3 -3
  173. package/dist/chunks/{usage-limits-dpqc1c18.js → location-f0dksw75.js} +25 -25
  174. package/dist/chunks/{usage-limits-pav9knxy.js → location-f14cyvgj.js} +56 -56
  175. package/dist/chunks/{usage-limits-941ns1g4.js → location-f3p7yfyn.js} +49 -31
  176. package/dist/chunks/{usage-limits-8r6p5f50.js → location-f5vcy7cw.js} +41 -41
  177. package/dist/chunks/{usage-limits-7fhwv4x0.js → location-f7y682yq.js} +13 -13
  178. package/dist/chunks/{usage-limits-qbh9qxse.js → location-fc5n2123.js} +29 -29
  179. package/dist/chunks/{usage-limits-h5zbxgdz.js → location-fd72j55m.js} +14 -14
  180. package/dist/chunks/{usage-limits-bzp09gqc.js → location-fezcm6md.js} +5 -5
  181. package/dist/chunks/{usage-limits-fffv3p7h.js → location-fffv3p7h.js} +1 -1
  182. package/dist/chunks/{usage-limits-fg9p65nk.js → location-fg9p65nk.js} +2 -2
  183. package/dist/chunks/{usage-limits-23yt1abd.js → location-frb1kcyz.js} +14 -14
  184. package/dist/chunks/{usage-limits-8v3021e0.js → location-fyexgk21.js} +185 -156
  185. package/dist/chunks/{usage-limits-xgtstc0b.js → location-fyrxvspy.js} +9 -9
  186. package/dist/chunks/{usage-limits-wr3re1en.js → location-fznmdakp.js} +4 -4
  187. package/dist/chunks/{usage-limits-gbjdnr5j.js → location-gbjdnr5j.js} +2 -2
  188. package/dist/chunks/location-gfyq7nf6.js +261 -0
  189. package/dist/chunks/{usage-limits-yepgas63.js → location-ghc591q0.js} +9 -9
  190. package/dist/chunks/{usage-limits-rf9654yx.js → location-ghq3p18c.js} +33 -33
  191. package/dist/chunks/{usage-limits-tg7s7b5t.js → location-gxs71cxp.js} +4 -4
  192. package/dist/chunks/{usage-limits-8rsvvp9m.js → location-gxwrqh3j.js} +20 -20
  193. package/dist/chunks/{usage-limits-k382atqt.js → location-h1mxyb9b.js} +27 -27
  194. package/dist/chunks/{usage-limits-dmwpx947.js → location-h9cmwr7b.js} +50 -17
  195. package/dist/chunks/{usage-limits-hh7kjqtw.js → location-hh7kjqtw.js} +1 -1
  196. package/dist/chunks/{usage-limits-feqecrca.js → location-hhmyrxbe.js} +54 -54
  197. package/dist/chunks/{usage-limits-z1n4r95z.js → location-hmtz2swc.js} +8 -8
  198. package/dist/chunks/{usage-limits-hpg1pkwy.js → location-hpg1pkwy.js} +1 -1
  199. package/dist/chunks/{usage-limits-evr76v84.js → location-hsnq1va6.js} +5 -5
  200. package/dist/chunks/{usage-limits-j9nxzz3g.js → location-j9nxzz3g.js} +3 -3
  201. package/dist/chunks/{usage-limits-j79p8763.js → location-jdvbwyx1.js} +33 -33
  202. package/dist/chunks/{usage-limits-694dpcrp.js → location-jjvvtnfs.js} +7 -7
  203. package/dist/chunks/{usage-limits-xmtg6xg5.js → location-jkjd442p.js} +18 -18
  204. package/dist/chunks/{usage-limits-whck4r0n.js → location-jmzabh9h.js} +4 -4
  205. package/dist/chunks/{usage-limits-114c099t.js → location-jmzwaa7b.js} +13 -13
  206. package/dist/chunks/{usage-limits-5k9ccchm.js → location-jn0kdwgr.js} +63 -59
  207. package/dist/chunks/{usage-limits-jtnps1zs.js → location-jtnps1zs.js} +2 -2
  208. package/dist/chunks/{usage-limits-qj1k32xn.js → location-jzy5v0rq.js} +16 -20
  209. package/dist/chunks/{usage-limits-k3cx6fhe.js → location-k3cx6fhe.js} +1 -1
  210. package/dist/chunks/{usage-limits-20pht57w.js → location-k46dd5bg.js} +4 -4
  211. package/dist/chunks/{usage-limits-mbr47c0q.js → location-k6wqmgb4.js} +8 -5
  212. package/dist/chunks/{usage-limits-q9sn4ddb.js → location-kpnbp2w1.js} +4 -4
  213. package/dist/chunks/{usage-limits-n9y0vfz9.js → location-kqmkex8x.js} +11 -11
  214. package/dist/chunks/{usage-limits-kt3bjfbg.js → location-kt3bjfbg.js} +1 -1
  215. package/dist/chunks/{usage-limits-vbttd8dk.js → location-kwh6gk3b.js} +30 -30
  216. package/dist/chunks/location-kz8k7fc4.js +494 -0
  217. package/dist/chunks/location-kzczzf4v.js +25 -0
  218. package/dist/chunks/{usage-limits-y3seyarw.js → location-m15ha2ry.js} +6 -6
  219. package/dist/chunks/{usage-limits-m1714858.js → location-m1714858.js} +1 -1
  220. package/dist/chunks/{usage-limits-e3hd0enn.js → location-m3732gr3.js} +11 -11
  221. package/dist/chunks/{usage-limits-ewezx4md.js → location-m428re2m.js} +15 -15
  222. package/dist/chunks/{usage-limits-8s96kadw.js → location-m4yf5w44.js} +4 -4
  223. package/dist/chunks/{usage-limits-8zqj3j1k.js → location-m6dftb9s.js} +14 -14
  224. package/dist/chunks/{usage-limits-m9w0rfyh.js → location-m9w0rfyh.js} +1 -1
  225. package/dist/chunks/{usage-limits-mb7mbhnz.js → location-mb7mbhnz.js} +3 -3
  226. package/dist/chunks/{usage-limits-b9qn7d7q.js → location-mf7htz9g.js} +14 -14
  227. package/dist/chunks/{usage-limits-2q0ftwq8.js → location-mh8f761v.js} +15 -15
  228. package/dist/chunks/{usage-limits-b4zj633n.js → location-mqvrp24e.js} +20 -20
  229. package/dist/chunks/{usage-limits-jq3a00x6.js → location-n8868hmk.js} +16 -16
  230. package/dist/chunks/{usage-limits-nah043kf.js → location-nah043kf.js} +1 -1
  231. package/dist/chunks/{usage-limits-8hdxb4rm.js → location-nc6nx9yw.js} +14 -14
  232. package/dist/chunks/{usage-limits-d4ftrgr2.js → location-nw8h2gm9.js} +52 -47
  233. package/dist/chunks/{usage-limits-b0gnbynm.js → location-nza63h0f.js} +4 -4
  234. package/dist/chunks/{usage-limits-p015t6z3.js → location-p015t6z3.js} +2 -2
  235. package/dist/chunks/{usage-limits-5vty935g.js → location-p0bvm3mz.js} +1 -1
  236. package/dist/chunks/{usage-limits-0ek446ey.js → location-p3mcy6k9.js} +24 -24
  237. package/dist/chunks/{usage-limits-ar4q0bdv.js → location-p6asq4h2.js} +25 -25
  238. package/dist/chunks/{usage-limits-w6xtvkbn.js → location-pb9f2w3m.js} +21 -21
  239. package/dist/chunks/{usage-limits-c26bh0y8.js → location-pdcm1vsp.js} +13 -13
  240. package/dist/chunks/{usage-limits-8j99vdm2.js → location-pfajyap1.js} +33 -33
  241. package/dist/chunks/{usage-limits-pknna89w.js → location-pknna89w.js} +1 -1
  242. package/dist/chunks/{usage-limits-693ajvae.js → location-pn0wtb08.js} +88 -88
  243. package/dist/chunks/{usage-limits-cx6jnjd2.js → location-pn5770m6.js} +8 -8
  244. package/dist/chunks/{usage-limits-eayabys9.js → location-pztrfj7m.js} +25 -25
  245. package/dist/chunks/{usage-limits-xcp7yafh.js → location-q59xwwww.js} +49 -48
  246. package/dist/chunks/{usage-limits-2y95b060.js → location-q997f3bj.js} +10 -10
  247. package/dist/chunks/{usage-limits-r0vy810z.js → location-qk1xf9tb.js} +14 -14
  248. package/dist/chunks/location-qmh7vbk2.js +18 -0
  249. package/dist/chunks/{usage-limits-qp7r0hxv.js → location-qp7r0hxv.js} +1 -1
  250. package/dist/chunks/{usage-limits-pcx93rbs.js → location-qqm6wpaa.js} +23 -18
  251. package/dist/chunks/{usage-limits-qqvy8y24.js → location-qqvy8y24.js} +1 -1
  252. package/dist/chunks/{usage-limits-zmnc4hw2.js → location-qvpjn6tt.js} +9 -9
  253. package/dist/chunks/{usage-limits-6ztqv1pd.js → location-qvy2ktv7.js} +15 -15
  254. package/dist/chunks/{usage-limits-m8tca5a1.js → location-qzzv0ezg.js} +7 -7
  255. package/dist/chunks/{usage-limits-04p08dea.js → location-r9wk52xc.js} +14 -14
  256. package/dist/chunks/{usage-limits-rb9dy4dg.js → location-rb9dy4dg.js} +1 -1
  257. package/dist/chunks/{usage-limits-yqveydy6.js → location-rbg54dp1.js} +4 -4
  258. package/dist/chunks/{usage-limits-6er5y2fs.js → location-re4vrxk1.js} +38 -38
  259. package/dist/chunks/{usage-limits-h075eahz.js → location-rh005vxs.js} +4 -4
  260. package/dist/chunks/{usage-limits-yax7g9mp.js → location-rmmekrxh.js} +9 -9
  261. package/dist/chunks/{usage-limits-vsqvcqta.js → location-rmv7fhs4.js} +6 -6
  262. package/dist/chunks/{usage-limits-rt5dr6hb.js → location-rt5dr6hb.js} +1 -1
  263. package/dist/chunks/{usage-limits-g9czakeh.js → location-rvrr51pc.js} +29 -29
  264. package/dist/chunks/{usage-limits-500yw4m2.js → location-rvyw04d8.js} +62 -29
  265. package/dist/chunks/{usage-limits-pf1y59er.js → location-s1jcxbke.js} +30 -30
  266. package/dist/chunks/{usage-limits-mqt5h58n.js → location-s5059prx.js} +5 -5
  267. package/dist/chunks/{usage-limits-sa3fpqfw.js → location-sa3fpqfw.js} +2 -2
  268. package/dist/chunks/{usage-limits-sbya78hr.js → location-sbya78hr.js} +1 -1
  269. package/dist/chunks/{usage-limits-vb80j1wh.js → location-sbz71ybr.js} +3 -3
  270. package/dist/chunks/{usage-limits-8g0jpqzw.js → location-sjve1hrn.js} +10 -10
  271. package/dist/chunks/{usage-limits-kzj6t2v8.js → location-ss4ezae1.js} +8 -8
  272. package/dist/chunks/{usage-limits-svcy3p9a.js → location-svcy3p9a.js} +1 -1
  273. package/dist/chunks/{usage-limits-xpgtv4k5.js → location-sw7cm3m7.js} +10 -10
  274. package/dist/chunks/{usage-limits-2bswbpgz.js → location-sx27c7qs.js} +7 -7
  275. package/dist/chunks/{usage-limits-szwm4crx.js → location-szwm4crx.js} +4 -4
  276. package/dist/chunks/{usage-limits-mz94qrfz.js → location-t0m0xjhg.js} +6 -6
  277. package/dist/chunks/{usage-limits-60a1dn3c.js → location-t1vkg21h.js} +3 -3
  278. package/dist/chunks/{usage-limits-67zhfnr5.js → location-t8erkws8.js} +5 -5
  279. package/dist/chunks/{usage-limits-tczq8hjw.js → location-tczq8hjw.js} +1 -1
  280. package/dist/chunks/{usage-limits-mam087a8.js → location-tdzhd1tj.js} +13 -13
  281. package/dist/chunks/{usage-limits-v5hpj9dd.js → location-tg1vr1qt.js} +8 -8
  282. package/dist/chunks/{usage-limits-mvt4g508.js → location-tpfxwea6.js} +6 -6
  283. package/dist/chunks/{usage-limits-tr8x705m.js → location-tr8x705m.js} +1 -1
  284. package/dist/chunks/{usage-limits-w370kc95.js → location-trys0hhd.js} +6 -6
  285. package/dist/chunks/{usage-limits-b7a7zv4d.js → location-tt0tynzx.js} +29 -29
  286. package/dist/chunks/{usage-limits-z7t8qjxt.js → location-tw2yfama.js} +13 -13
  287. package/dist/chunks/{usage-limits-ax5y7az6.js → location-tw9dengd.js} +21 -21
  288. package/dist/chunks/{usage-limits-twssxy5n.js → location-twssxy5n.js} +2 -2
  289. package/dist/chunks/{usage-limits-rp2cm5ts.js → location-ty4n1pvj.js} +9 -9
  290. package/dist/chunks/{usage-limits-v2r1d0zg.js → location-v2r1d0zg.js} +1 -1
  291. package/dist/chunks/{usage-limits-jj2gwtr5.js → location-vcz76rh0.js} +18 -18
  292. package/dist/chunks/{usage-limits-vfbg1mpw.js → location-vdpb76bs.js} +47 -47
  293. package/dist/chunks/{usage-limits-vjf35v1f.js → location-vjf35v1f.js} +1 -1
  294. package/dist/chunks/{usage-limits-bda3esj3.js → location-vp5718qz.js} +14 -14
  295. package/dist/chunks/{usage-limits-vrcsa8qx.js → location-vrcsa8qx.js} +2 -2
  296. package/dist/chunks/{usage-limits-vt2d6wap.js → location-vt2d6wap.js} +1 -1
  297. package/dist/chunks/{usage-limits-6h8vcvjm.js → location-vt4r9rmy.js} +9 -9
  298. package/dist/chunks/location-vtarvj67.js +60 -0
  299. package/dist/chunks/{usage-limits-4peydfvx.js → location-w31k6zpa.js} +26 -26
  300. package/dist/chunks/{usage-limits-5cwm0vrb.js → location-w33wmcn1.js} +11 -11
  301. package/dist/chunks/{usage-limits-w3wsvvr9.js → location-w3wsvvr9.js} +1 -1
  302. package/dist/chunks/{usage-limits-w35wzz9x.js → location-w79nt68w.js} +4 -4
  303. package/dist/chunks/{usage-limits-wakvkjy4.js → location-wakvkjy4.js} +1 -1
  304. package/dist/chunks/{usage-limits-wd87259q.js → location-wd87259q.js} +1 -1
  305. package/dist/chunks/{usage-limits-wegkxhrn.js → location-wegkxhrn.js} +2 -2
  306. package/dist/chunks/{usage-limits-6dtxpht2.js → location-wkv6j4jv.js} +6 -6
  307. package/dist/chunks/{usage-limits-j40zgs96.js → location-wmxj9np3.js} +5 -5
  308. package/dist/chunks/{usage-limits-wnhgecwx.js → location-wnhgecwx.js} +1 -1
  309. package/dist/chunks/{usage-limits-0z6v00n2.js → location-wpk92j9n.js} +18 -18
  310. package/dist/chunks/{usage-limits-nyxvvj5y.js → location-wvr8xscb.js} +4 -4
  311. package/dist/chunks/{usage-limits-kg6t11tp.js → location-x6d9rcep.js} +14 -14
  312. package/dist/chunks/{usage-limits-kb2zgvc1.js → location-xbm420df.js} +11 -11
  313. package/dist/chunks/{usage-limits-zpv6qa87.js → location-xd7a9yh4.js} +9 -9
  314. package/dist/chunks/{usage-limits-qkt7tgv5.js → location-xdfdathd.js} +22 -22
  315. package/dist/chunks/{usage-limits-b8mknwc7.js → location-xesr1eg5.js} +2 -2
  316. package/dist/chunks/{usage-limits-jcxymc27.js → location-xg030f4h.js} +24 -24
  317. package/dist/chunks/{usage-limits-qft8hb75.js → location-xmx7xj34.js} +7 -7
  318. package/dist/chunks/{usage-limits-9xe88z92.js → location-xr9nx1y7.js} +7 -7
  319. package/dist/chunks/{usage-limits-99yjq7qb.js → location-xwgbq1t0.js} +32 -32
  320. package/dist/chunks/location-y3p8t0qf.js +26 -0
  321. package/dist/chunks/{usage-limits-e8pm465n.js → location-y4n6pw34.js} +4 -4
  322. package/dist/chunks/{usage-limits-yara3q77.js → location-yara3q77.js} +2 -2
  323. package/dist/chunks/{usage-limits-yb20nhc3.js → location-yb20nhc3.js} +1 -1
  324. package/dist/chunks/{usage-limits-ejsdfd4v.js → location-ybbgrhzm.js} +7 -7
  325. package/dist/chunks/{usage-limits-5ekpk5gk.js → location-yd0acp5j.js} +21 -21
  326. package/dist/chunks/{usage-limits-0m8chefa.js → location-yk0zjskx.js} +12 -12
  327. package/dist/chunks/{usage-limits-e2btc9sx.js → location-ymq5jpz0.js} +18 -18
  328. package/dist/chunks/{usage-limits-yb21bz95.js → location-yq7xezqq.js} +11 -11
  329. package/dist/chunks/{usage-limits-sc35yb2g.js → location-yqt7189q.js} +15 -15
  330. package/dist/chunks/{usage-limits-yr705xyq.js → location-yr705xyq.js} +1 -1
  331. package/dist/chunks/{usage-limits-avg4aq00.js → location-yvm77818.js} +90 -27
  332. package/dist/chunks/{usage-limits-2ssyd3bd.js → location-z31anzw7.js} +11 -11
  333. package/dist/chunks/{usage-limits-68ps1td5.js → location-z3d87w74.js} +15 -15
  334. package/dist/chunks/{usage-limits-rhzn93nm.js → location-zcqhbe6c.js} +14 -14
  335. package/dist/chunks/{usage-limits-pc7ssjbc.js → location-zfpxzkh5.js} +11 -11
  336. package/dist/chunks/{usage-limits-k93tcc60.js → location-zjxfhs87.js} +44 -44
  337. package/dist/chunks/location-zpd68mwp.js +16 -0
  338. package/dist/chunks/{usage-limits-p2n9dgry.js → location-zr6vr9c2.js} +26 -26
  339. package/dist/chunks/{usage-limits-9cgtp5bz.js → location-zsdytve6.js} +48 -48
  340. package/dist/chunks/{usage-limits-zvgw15wn.js → location-zvgw15wn.js} +5 -5
  341. package/dist/chunks/{usage-limits-3a9e2hp9.js → location-zww72t5t.js} +27 -27
  342. package/dist/codemode/catalog.js +1 -1
  343. package/dist/codemode/execution.js +5 -5
  344. package/dist/codemode/fetch.js +145 -144
  345. package/dist/codemode/instructions.js +7 -7
  346. package/dist/codemode/tool.js +151 -150
  347. package/dist/command.js +96 -95
  348. package/dist/config/discovery.js +97 -96
  349. package/dist/config/integration.js +5 -5
  350. package/dist/config/managed.js +1 -1
  351. package/dist/config/markdown.js +1 -1
  352. package/dist/config/normalize.js +112 -111
  353. package/dist/config/plugin/agent.js +132 -131
  354. package/dist/config/plugin/command.js +231 -229
  355. package/dist/config/plugin/compaction.js +171 -170
  356. package/dist/config/plugin/compatibility.js +150 -149
  357. package/dist/config/plugin/entry-observer.js +1 -1
  358. package/dist/config/plugin/formatter.js +131 -130
  359. package/dist/config/plugin/image.js +130 -129
  360. package/dist/config/plugin/instruction.js +130 -129
  361. package/dist/config/plugin/location-watcher.js +130 -129
  362. package/dist/config/plugin/mcp.js +141 -140
  363. package/dist/config/plugin/policy.js +130 -129
  364. package/dist/config/plugin/provider.js +130 -129
  365. package/dist/config/plugin/reference.js +132 -131
  366. package/dist/config/plugin/shell.js +132 -131
  367. package/dist/config/plugin/skill-file.js +146 -145
  368. package/dist/config/plugin/skill-scan.js +1 -1
  369. package/dist/config/plugin/skill.js +153 -152
  370. package/dist/config/plugin/snapshot.js +130 -129
  371. package/dist/config/plugin/source.js +133 -132
  372. package/dist/config/plugin/tool-output.js +131 -130
  373. package/dist/config/plugin/websearch.js +131 -130
  374. package/dist/config/plugin/worktree.js +132 -131
  375. package/dist/config/variable.js +1 -1
  376. package/dist/config/watch.js +1 -1
  377. package/dist/config.js +135 -134
  378. package/dist/console-access.js +1 -1
  379. package/dist/credential/sql.js +2 -2
  380. package/dist/credential.js +94 -93
  381. package/dist/database/database.js +81 -80
  382. package/dist/database/drizzle/effect-sqlite/driver.js +12 -12
  383. package/dist/database/drizzle/effect-sqlite/index.js +12 -12
  384. package/dist/database/drizzle/effect-sqlite/session.js +11 -11
  385. package/dist/database/drizzle/index.js +13 -13
  386. package/dist/database/drizzle/internal/drizzle-utils.js +1 -1
  387. package/dist/database/drizzle/sqlite-core/effect/count.js +1 -1
  388. package/dist/database/drizzle/sqlite-core/effect/db.js +9 -9
  389. package/dist/database/drizzle/sqlite-core/effect/delete.js +2 -2
  390. package/dist/database/drizzle/sqlite-core/effect/index.js +10 -10
  391. package/dist/database/drizzle/sqlite-core/effect/insert.js +2 -2
  392. package/dist/database/drizzle/sqlite-core/effect/query.js +1 -1
  393. package/dist/database/drizzle/sqlite-core/effect/raw.js +1 -1
  394. package/dist/database/drizzle/sqlite-core/effect/select.js +2 -2
  395. package/dist/database/drizzle/sqlite-core/effect/session.js +10 -10
  396. package/dist/database/drizzle/sqlite-core/effect/update.js +2 -2
  397. package/dist/database/drizzle.js +14 -14
  398. package/dist/database/migration/20260127222353_familiar_lady_ursula.js +1 -1
  399. package/dist/database/migration/20260211171708_add_project_commands.js +1 -1
  400. package/dist/database/migration/20260213144116_wakeful_the_professor.js +1 -1
  401. package/dist/database/migration/20260225215848_workspace.js +1 -1
  402. package/dist/database/migration/20260227213759_add_session_workspace_id.js +1 -1
  403. package/dist/database/migration/20260228203230_blue_harpoon.js +1 -1
  404. package/dist/database/migration/20260303231226_add_workspace_fields.js +1 -1
  405. package/dist/database/migration/20260309230000_move_org_to_state.js +1 -1
  406. package/dist/database/migration/20260312043431_session_message_cursor.js +1 -1
  407. package/dist/database/migration/20260323234822_events.js +1 -1
  408. package/dist/database/migration/20260410174513_workspace-name.js +1 -1
  409. package/dist/database/migration/20260413175956_chief_energizer.js +1 -1
  410. package/dist/database/migration/20260423070820_add_icon_url_override.js +1 -1
  411. package/dist/database/migration/20260427172553_slow_nightmare.js +1 -1
  412. package/dist/database/migration/20260428004200_add_session_path.js +1 -1
  413. package/dist/database/migration/20260501142318_next_venus.js +1 -1
  414. package/dist/database/migration/20260504145000_add_sync_owner.js +1 -1
  415. package/dist/database/migration/20260507164347_add_workspace_time.js +1 -1
  416. package/dist/database/migration/20260510033149_session_usage.js +1 -1
  417. package/dist/database/migration/20260511000411_data_migration_state.js +1 -1
  418. package/dist/database/migration/20260511173437_session-metadata.js +1 -1
  419. package/dist/database/migration/20260601010001_normalize_storage_paths.js +1 -1
  420. package/dist/database/migration/20260601202201_amazing_prowler.js +1 -1
  421. package/dist/database/migration/20260602002951_lowly_union_jack.js +1 -1
  422. package/dist/database/migration/20260602182828_add_project_directories.js +1 -1
  423. package/dist/database/migration/20260603001617_session_message_projection_indexes.js +1 -1
  424. package/dist/database/migration/20260603040000_session_message_projection_order.js +1 -1
  425. package/dist/database/migration/20260603141458_session_input_inbox.js +1 -1
  426. package/dist/database/migration/20260603160727_jittery_ezekiel_stane.js +1 -1
  427. package/dist/database/migration/20260604172448_event_sourced_session_input.js +1 -1
  428. package/dist/database/migration/20260605003541_add_session_context_snapshot.js +1 -1
  429. package/dist/database/migration/20260605042240_add_context_epoch_agent.js +1 -1
  430. package/dist/database/migration/20260611035744_credential.js +1 -1
  431. package/dist/database/migration/20260611192811_lush_chimera.js +1 -1
  432. package/dist/database/migration/20260612174303_project_dir_strategy.js +1 -1
  433. package/dist/database/migration/20260622142730_simplify_session_context_epoch.js +1 -1
  434. package/dist/database/migration/20260622170816_reset_v2_session_state.js +1 -1
  435. package/dist/database/migration/20260622202450_simplify_session_input.js +1 -1
  436. package/dist/database/migration/20260804233008_loose_psylocke.js +1 -1
  437. package/dist/database/migration/20260805200742_import_legacy_credentials.js +1 -1
  438. package/dist/database/migration/20260808023530_workspace_domain.js +1 -1
  439. package/dist/database/migration/20260811161259_execution_claim_attempts.js +1 -1
  440. package/dist/database/migration/20260812181746_session_inbox.js +1 -1
  441. package/dist/database/migration/20260812213948_worktree.js +1 -1
  442. package/dist/database/migration/20260819222447_session_viewed_state.js +1 -1
  443. package/dist/database/migration/20260823191254_nullable_workspace_binding.js +1 -1
  444. package/dist/database/migration/20260910120000_clear_v1_session_permission.js +1 -1
  445. package/dist/database/migration/20260923013825_project_time_active.js +1 -1
  446. package/dist/database/migration/20261007190000_azure_cli_external_credential.js +1 -1
  447. package/dist/database/migration/20261010180456_project_time_archived.js +1 -1
  448. package/dist/database/migration/20261024002554_session_allowance.js +1 -1
  449. package/dist/database/migration/20261024175301_drop_session_allowance.js +1 -1
  450. package/dist/database/migration/20261025123711_blob.js +1 -1
  451. package/dist/database/migration/20261025154125_drop_session_pending.js +1 -1
  452. package/dist/database/migration/20261026223005_schedule.js +1 -1
  453. package/dist/database/migration/20261029002625_session_part.js +1 -1
  454. package/dist/database/migration/20261029073502_session_time_busy.js +1 -1
  455. package/dist/database/migration/20261029165540_schedule_checks.js +1 -1
  456. package/dist/database/migration/20261030054400_job.js +6 -0
  457. package/dist/database/migration.gen.js +60 -59
  458. package/dist/database/migration.js +62 -61
  459. package/dist/database/path.js +2 -2
  460. package/dist/database/schema.gen.js +1 -1
  461. package/dist/database/schema.sql.js +1 -1
  462. package/dist/database/sqlite.bun.js +1 -1
  463. package/dist/database/sqlite.js +1 -1
  464. package/dist/database/sqlite.node.js +1 -1
  465. package/dist/database/sqlite.workerd.js +1 -1
  466. package/dist/database/v1-migration.bun.js +106 -105
  467. package/dist/database/v1-migration.js +1 -1
  468. package/dist/effect/app-node-builder.js +429 -425
  469. package/dist/effect/app-node-platform.js +2 -2
  470. package/dist/effect/keyed-mutex.js +1 -1
  471. package/dist/effect/websocket-constructor.js +1 -1
  472. package/dist/environment/driver.js +1 -1
  473. package/dist/environment/environment.js +106 -105
  474. package/dist/environment/exec-defaults.js +2 -2
  475. package/dist/environment/files.js +1 -1
  476. package/dist/environment/index.js +106 -105
  477. package/dist/environment/local.js +2 -2
  478. package/dist/environment/memory.js +2 -2
  479. package/dist/environment/unavailable.js +3 -3
  480. package/dist/event/sql.js +1 -1
  481. package/dist/event-logger.js +85 -84
  482. package/dist/file-access.js +156 -155
  483. package/dist/file-mutation.js +107 -106
  484. package/dist/file-retention.js +1 -1
  485. package/dist/filesystem/fff.bun.js +2 -2
  486. package/dist/filesystem/fff.js +1 -1
  487. package/dist/filesystem/fff.node.js +2 -2
  488. package/dist/filesystem/fff.workerd.js +2 -2
  489. package/dist/filesystem/file-watch.js +91 -90
  490. package/dist/filesystem/location-watcher-policy.js +6 -6
  491. package/dist/filesystem/location-watcher.js +243 -240
  492. package/dist/filesystem/protected.js +3 -3
  493. package/dist/filesystem/search.js +112 -111
  494. package/dist/filesystem/watcher-binding.js +1 -1
  495. package/dist/filesystem/watcher.js +11 -11
  496. package/dist/filesystem.js +115 -114
  497. package/dist/form.js +93 -92
  498. package/dist/formatter/builtins.js +4 -4
  499. package/dist/formatter.js +96 -95
  500. package/dist/generate.js +120 -119
  501. package/dist/git.js +7 -7
  502. package/dist/github-copilot/chat/convert-to-openai-compatible-chat-messages.js +1 -1
  503. package/dist/github-copilot/chat/get-response-metadata.js +1 -1
  504. package/dist/github-copilot/chat/map-openai-compatible-finish-reason.js +1 -1
  505. package/dist/github-copilot/chat/openai-compatible-chat-language-model.js +7 -7
  506. package/dist/github-copilot/chat/openai-compatible-chat-options.js +1 -1
  507. package/dist/github-copilot/chat/openai-compatible-prepare-tools.js +1 -1
  508. package/dist/github-copilot/copilot-provider.js +17 -17
  509. package/dist/github-copilot/models.js +112 -111
  510. package/dist/github-copilot/openai-compatible-error.js +1 -1
  511. package/dist/github-copilot/responses/convert-to-openai-responses-input.js +1 -1
  512. package/dist/github-copilot/responses/map-openai-responses-finish-reason.js +1 -1
  513. package/dist/github-copilot/responses/openai-error.js +1 -1
  514. package/dist/github-copilot/responses/openai-responses-language-model.js +10 -10
  515. package/dist/github-copilot/responses/openai-responses-prepare-tools.js +6 -6
  516. package/dist/github-copilot/responses/tool/code-interpreter.js +1 -1
  517. package/dist/github-copilot/responses/tool/file-search.js +1 -1
  518. package/dist/github-copilot/responses/tool/image-generation.js +1 -1
  519. package/dist/github-copilot/responses/tool/web-search-preview.js +1 -1
  520. package/dist/github-copilot/responses/tool/web-search.js +1 -1
  521. package/dist/image/notice.js +3 -3
  522. package/dist/image/photon-normalize.js +1 -1
  523. package/dist/image/photon-worker.js +1 -1
  524. package/dist/image/photon.js +4 -4
  525. package/dist/image.js +6 -6
  526. package/dist/instance/service.js +5 -5
  527. package/dist/instance.js +419 -415
  528. package/dist/instruction-discovery.js +95 -94
  529. package/dist/instructions/builtins.js +100 -99
  530. package/dist/instructions/index.js +3 -3
  531. package/dist/integration/connection.js +1 -1
  532. package/dist/integration.js +92 -91
  533. package/dist/job/sql.js +7 -0
  534. package/dist/job.js +88 -88
  535. package/dist/kv/sql.js +2 -2
  536. package/dist/kv.js +84 -83
  537. package/dist/location-activity.js +175 -173
  538. package/dist/location-lifecycle.js +150 -149
  539. package/dist/location-service-map.js +99 -98
  540. package/dist/location-services.js +416 -412
  541. package/dist/location.js +96 -95
  542. package/dist/managed-policy.js +3 -3
  543. package/dist/mcp/client.js +104 -103
  544. package/dist/mcp/index.js +122 -121
  545. package/dist/mcp/instructions.js +179 -178
  546. package/dist/mcp/oauth.js +89 -88
  547. package/dist/mcp/socket-client.js +1 -1
  548. package/dist/mcp/stdio.js +103 -102
  549. package/dist/mime.js +1 -1
  550. package/dist/modal/models.js +112 -111
  551. package/dist/model-resolver.js +112 -111
  552. package/dist/model-retry.js +1 -1
  553. package/dist/model.js +105 -104
  554. package/dist/models-dev/v1.js +1 -1
  555. package/dist/models-dev.js +121 -120
  556. package/dist/oauth/page.js +1 -1
  557. package/dist/permission/saved.js +93 -92
  558. package/dist/permission/sql.js +5 -5
  559. package/dist/permission.js +155 -154
  560. package/dist/persistent-pty/binary.bun.js +1 -1
  561. package/dist/persistent-pty/daemon.js +1 -1
  562. package/dist/persistent-pty/index.js +103 -100
  563. package/dist/persistent-pty/pty-binding.js +1 -1
  564. package/dist/persistent-pty.js +86 -85
  565. package/dist/plugin/agent.js +87 -86
  566. package/dist/plugin/command.js +115 -114
  567. package/dist/plugin/goal.js +3 -3
  568. package/dist/plugin/hooks.js +5 -5
  569. package/dist/plugin/host.js +236 -233
  570. package/dist/plugin/identity.js +5 -5
  571. package/dist/plugin/instance.js +5 -5
  572. package/dist/plugin/internal.js +395 -391
  573. package/dist/plugin/mcp-codemode-defaults.js +3 -3
  574. package/dist/plugin/models-dev.js +110 -109
  575. package/dist/plugin/module.js +129 -128
  576. package/dist/plugin/optimize.js +2 -2
  577. package/dist/plugin/plan.js +146 -145
  578. package/dist/plugin/promise.js +1 -1
  579. package/dist/plugin/provider/amazon-bedrock.js +104 -103
  580. package/dist/plugin/provider/azure.js +130 -129
  581. package/dist/plugin/provider/cerebras.js +1 -1
  582. package/dist/plugin/provider/chatgpt.js +130 -129
  583. package/dist/plugin/provider/claude-agent/aisdk.js +117 -116
  584. package/dist/plugin/provider/claude-agent/claude/fork.js +2 -2
  585. package/dist/plugin/provider/claude-agent/claude/io.js +4 -4
  586. package/dist/plugin/provider/claude-agent/claude/probe.js +2 -2
  587. package/dist/plugin/provider/claude-agent/claude/query-options.js +4 -4
  588. package/dist/plugin/provider/claude-agent/claude/sdk.js +1 -1
  589. package/dist/plugin/provider/claude-agent/claude/session.js +4 -4
  590. package/dist/plugin/provider/claude-agent/claude/sessions.js +16 -16
  591. package/dist/plugin/provider/claude-agent/claude/status.js +9 -9
  592. package/dist/plugin/provider/claude-agent/index.js +145 -144
  593. package/dist/plugin/provider/claude-agent/instructions.js +114 -113
  594. package/dist/plugin/provider/claude-agent/integration.js +111 -110
  595. package/dist/plugin/provider/claude-agent/language-model/claude-agent-error.js +3 -3
  596. package/dist/plugin/provider/claude-agent/language-model/claude-agent-language-model.js +7 -7
  597. package/dist/plugin/provider/claude-agent/language-model/convert-claude-stream.js +6 -6
  598. package/dist/plugin/provider/claude-agent/language-model/convert-to-claude-message.js +1 -1
  599. package/dist/plugin/provider/claude-agent/language-model/request-kind.js +1 -1
  600. package/dist/plugin/provider/claude-agent/language-model/system-prompt.js +3 -3
  601. package/dist/plugin/provider/claude-agent/language-model/usage.js +5 -5
  602. package/dist/plugin/provider/claude-agent/provider.js +110 -109
  603. package/dist/plugin/provider/claude-agent/session.js +112 -111
  604. package/dist/plugin/provider/claude-agent/sync/catch-up.js +3 -3
  605. package/dist/plugin/provider/claude-agent/sync/checkpoints.js +2 -2
  606. package/dist/plugin/provider/claude-agent/sync/decide.js +2 -2
  607. package/dist/plugin/provider/claude-agent/sync/fingerprint.js +1 -1
  608. package/dist/plugin/provider/claude-agent/sync/record.js +3 -3
  609. package/dist/plugin/provider/claude-agent/tools/hooks.js +3 -3
  610. package/dist/plugin/provider/claude-agent/tools/names.js +3 -3
  611. package/dist/plugin/provider/claude-agent/tools/pending.js +1 -1
  612. package/dist/plugin/provider/claude-agent/tools/result.js +3 -3
  613. package/dist/plugin/provider/claude-agent/tools/server.js +4 -4
  614. package/dist/plugin/provider/cloudflare-ai-gateway.js +128 -127
  615. package/dist/plugin/provider/cloudflare-workers-ai.js +128 -127
  616. package/dist/plugin/provider/configured.js +126 -125
  617. package/dist/plugin/provider/credential-settings.js +85 -84
  618. package/dist/plugin/provider/databricks.js +1 -1
  619. package/dist/plugin/provider/digitalocean.js +106 -105
  620. package/dist/plugin/provider/dynamic.js +2 -2
  621. package/dist/plugin/provider/github-copilot.js +108 -107
  622. package/dist/plugin/provider/gitlab.js +107 -106
  623. package/dist/plugin/provider/google-vertex.js +127 -126
  624. package/dist/plugin/provider/kilo.js +1 -1
  625. package/dist/plugin/provider/llmgateway.js +89 -88
  626. package/dist/plugin/provider/lmstudio.js +139 -138
  627. package/dist/plugin/provider/local.js +136 -135
  628. package/dist/plugin/provider/modal.js +105 -104
  629. package/dist/plugin/provider/neon.js +1 -1
  630. package/dist/plugin/provider/nvidia.js +1 -1
  631. package/dist/plugin/provider/ollama.js +139 -138
  632. package/dist/plugin/provider/openai-context-caps.js +103 -102
  633. package/dist/plugin/provider/openai.js +130 -129
  634. package/dist/plugin/provider/opencode.js +132 -131
  635. package/dist/plugin/provider/openrouter.js +104 -103
  636. package/dist/plugin/provider/poe.js +90 -89
  637. package/dist/plugin/provider/prompt-cache-key.js +1 -1
  638. package/dist/plugin/provider/sap-ai-core.js +104 -103
  639. package/dist/plugin/provider/sdk-factory.js +1 -1
  640. package/dist/plugin/provider/snowflake-cortex.js +129 -128
  641. package/dist/plugin/provider/vllm.js +139 -138
  642. package/dist/plugin/provider/xai.js +104 -103
  643. package/dist/plugin/provider/zenmux.js +1 -1
  644. package/dist/plugin/provider.js +210 -209
  645. package/dist/plugin/sdk.js +87 -86
  646. package/dist/plugin/service.js +3 -3
  647. package/dist/plugin/skill.js +149 -148
  648. package/dist/plugin/source-directory.js +1 -1
  649. package/dist/plugin/supervisor.js +407 -403
  650. package/dist/plugin/tool-input-repair.js +4 -4
  651. package/dist/plugin/update.js +6 -6
  652. package/dist/plugin/vcs/git.js +99 -98
  653. package/dist/plugin/vcs/hg.js +99 -98
  654. package/dist/plugin/verbosity.js +106 -105
  655. package/dist/plugin/warming.js +128 -127
  656. package/dist/plugin/websearch/exa.js +5 -5
  657. package/dist/plugin/websearch/firecrawl.js +8 -8
  658. package/dist/plugin/websearch/index.js +9 -9
  659. package/dist/plugin/websearch/mcp.js +6 -6
  660. package/dist/plugin/websearch/parallel.js +8 -8
  661. package/dist/plugin/websearch/tavily.js +6 -6
  662. package/dist/plugin/websearch/tinyfish.js +8 -8
  663. package/dist/plugin.js +245 -242
  664. package/dist/project/icon.js +5 -5
  665. package/dist/project/schema.js +10 -10
  666. package/dist/project/sql.js +4 -4
  667. package/dist/project.js +99 -98
  668. package/dist/provider.js +104 -103
  669. package/dist/pty/protocol.js +1 -1
  670. package/dist/pty/ticket.js +1 -1
  671. package/dist/pty.js +103 -102
  672. package/dist/reference/instructions.js +99 -98
  673. package/dist/reference.js +103 -102
  674. package/dist/repository-cache.js +93 -92
  675. package/dist/repository.js +1 -1
  676. package/dist/ripgrep/binary.js +2 -2
  677. package/dist/ripgrep.js +110 -109
  678. package/dist/rpc.js +99 -98
  679. package/dist/schedule/check.js +241 -238
  680. package/dist/schedule/sql.js +6 -6
  681. package/dist/schedule.js +247 -244
  682. package/dist/schema.js +1 -1
  683. package/dist/session/affinity.js +1 -1
  684. package/dist/session/background.js +1 -1
  685. package/dist/session/blob.js +129 -128
  686. package/dist/session/command.js +85 -84
  687. package/dist/session/compaction.js +171 -170
  688. package/dist/session/context.js +198 -197
  689. package/dist/session/diff.js +101 -100
  690. package/dist/session/environment.js +5 -5
  691. package/dist/session/error.js +5 -5
  692. package/dist/session/event.js +1 -1
  693. package/dist/session/execution/restart.js +273 -276
  694. package/dist/session/execution.js +165 -163
  695. package/dist/session/generate.js +200 -199
  696. package/dist/session/history.js +136 -135
  697. package/dist/session/inbox.js +147 -146
  698. package/dist/session/info.js +3 -3
  699. package/dist/session/instruction-entry.js +90 -89
  700. package/dist/session/instruction-state.js +8 -8
  701. package/dist/session/instructions.js +143 -142
  702. package/dist/session/message-updater.js +2 -2
  703. package/dist/session/message.js +1 -1
  704. package/dist/session/model-request.js +168 -167
  705. package/dist/session/model-transport.js +9 -9
  706. package/dist/session/move.js +165 -163
  707. package/dist/session/projector.js +143 -142
  708. package/dist/session/prompt.js +148 -147
  709. package/dist/session/recent-text.js +1 -1
  710. package/dist/session/revert.js +139 -138
  711. package/dist/session/run-coordinator.js +1 -1
  712. package/dist/session/runner/index.js +3 -3
  713. package/dist/session/runner/llm.js +250 -247
  714. package/dist/session/runner/max-steps.js +1 -1
  715. package/dist/session/runner/model.js +113 -112
  716. package/dist/session/runner/publish-llm-event.js +149 -148
  717. package/dist/session/runner/retry.js +5 -5
  718. package/dist/session/runner/step.js +163 -162
  719. package/dist/session/runner/to-llm-message.js +137 -136
  720. package/dist/session/schema.js +5 -5
  721. package/dist/session/session.js +181 -179
  722. package/dist/session/shell.js +144 -143
  723. package/dist/session/skill.js +147 -146
  724. package/dist/session/sql.js +5 -5
  725. package/dist/session/stats.js +86 -85
  726. package/dist/session/store.js +142 -141
  727. package/dist/session/stored.js +2 -2
  728. package/dist/session/subagent-completion.js +3 -3
  729. package/dist/session/subagent-job.js +229 -227
  730. package/dist/session/system-prompt.js +3 -3
  731. package/dist/session/title.js +202 -201
  732. package/dist/session/to-session-error.js +148 -147
  733. package/dist/session/transfer.js +240 -238
  734. package/dist/session/usage.js +3 -3
  735. package/dist/session.js +235 -233
  736. package/dist/shell/parse.js +6 -6
  737. package/dist/shell/result.js +1 -1
  738. package/dist/shell/scan.js +1 -1
  739. package/dist/shell/select.js +13 -13
  740. package/dist/shell.js +146 -145
  741. package/dist/skill/discovery.js +2 -2
  742. package/dist/skill/instructions.js +151 -150
  743. package/dist/skill.js +156 -155
  744. package/dist/snapshot.js +106 -105
  745. package/dist/state.js +1 -1
  746. package/dist/tool/html-markdown.js +1 -1
  747. package/dist/tool/http-body.js +1 -1
  748. package/dist/tool/mcp.js +180 -179
  749. package/dist/tool/plugin/artifact.js +241 -0
  750. package/dist/tool/plugin/edit.js +162 -161
  751. package/dist/tool/plugin/file-diff.js +1 -1
  752. package/dist/tool/plugin/glob.js +168 -167
  753. package/dist/tool/plugin/grep.js +168 -167
  754. package/dist/tool/plugin/image-generate.js +239 -237
  755. package/dist/tool/plugin/mcp-resource.js +160 -159
  756. package/dist/tool/plugin/opencode.js +161 -160
  757. package/dist/tool/plugin/patch.js +166 -165
  758. package/dist/tool/plugin/question.js +150 -149
  759. package/dist/tool/plugin/read.js +169 -168
  760. package/dist/tool/plugin/schedule.js +247 -244
  761. package/dist/tool/plugin/shell.js +235 -233
  762. package/dist/tool/plugin/skill.js +155 -154
  763. package/dist/tool/plugin/subagent.js +236 -234
  764. package/dist/tool/plugin/todo.js +153 -152
  765. package/dist/tool/plugin/webfetch.js +157 -156
  766. package/dist/tool/plugin/websearch.js +155 -154
  767. package/dist/tool/plugin/write.js +166 -165
  768. package/dist/tool/read-filesystem.js +115 -114
  769. package/dist/tool/runtime.js +1 -1
  770. package/dist/tool-output.js +7 -7
  771. package/dist/tool.js +161 -160
  772. package/dist/types/artifact.d.ts +123 -0
  773. package/dist/types/database/migration/20261030054400_job.d.ts +3 -0
  774. package/dist/types/instance.d.ts +2 -1
  775. package/dist/types/job/sql.d.ts +215 -0
  776. package/dist/types/job.d.ts +5 -7
  777. package/dist/types/location-activity.d.ts +1 -1
  778. package/dist/types/permission.d.ts +2 -0
  779. package/dist/types/persistent-pty/daemon.d.ts +38 -11
  780. package/dist/types/persistent-pty/index.d.ts +6 -0
  781. package/dist/types/plugin/host.d.ts +3 -2
  782. package/dist/types/plugin/internal.d.ts +3 -2
  783. package/dist/types/schedule/check.d.ts +2 -2
  784. package/dist/types/schedule.d.ts +3 -2
  785. package/dist/types/session/compaction.d.ts +2 -2
  786. package/dist/types/session/model-request.d.ts +1 -1
  787. package/dist/types/session/prompt.d.ts +1 -1
  788. package/dist/types/tool/mcp.d.ts +1 -1
  789. package/dist/types/tool/plugin/artifact.d.ts +27 -0
  790. package/dist/types/tool/plugin/glob.d.ts +1 -1
  791. package/dist/types/tool/plugin/grep.d.ts +1 -1
  792. package/dist/types/tool/plugin/image-generate.d.ts +1 -1
  793. package/dist/types/tool/plugin/read.d.ts +1 -1
  794. package/dist/types/tool/plugin/shell.d.ts +1 -1
  795. package/dist/types/tool/plugin/subagent.d.ts +1 -1
  796. package/dist/usage-limits.js +100 -99
  797. package/dist/util/error-summary.js +1 -1
  798. package/dist/util/git-executable.js +3 -3
  799. package/dist/util/lazy.js +1 -1
  800. package/dist/util/slug.js +1 -1
  801. package/dist/util/token.js +1 -1
  802. package/dist/util/which.js +1 -1
  803. package/dist/util/wildcard.js +1 -1
  804. package/dist/v1/config/agent.js +5 -5
  805. package/dist/v1/config/command.js +5 -5
  806. package/dist/v1/config/mcp.js +4 -4
  807. package/dist/v1/config/migrate.js +105 -104
  808. package/dist/v1/config/permission.js +3 -3
  809. package/dist/v1/config/plugin.js +3 -3
  810. package/dist/v1/config/provider-options.js +1 -1
  811. package/dist/v1/config/provider.js +4 -4
  812. package/dist/variant.js +106 -105
  813. package/dist/vcs/patch.js +1 -1
  814. package/dist/vcs.js +102 -101
  815. package/dist/voice.js +95 -94
  816. package/dist/websearch.js +95 -94
  817. package/dist/wellknown/plugin.js +85 -84
  818. package/dist/wellknown.js +92 -91
  819. package/dist/workspace/driver.js +5 -5
  820. package/dist/workspace/sql.js +1 -1
  821. package/dist/workspace.js +93 -92
  822. package/dist/worktree/directory.js +2 -2
  823. package/dist/worktree/git.js +11 -11
  824. package/dist/worktree/sql.js +5 -5
  825. package/dist/worktree/strategies.js +102 -101
  826. package/dist/worktree.js +111 -110
  827. package/package.json +9 -9
  828. package/dist/chunks/usage-limits-5bcsk9b3.js +0 -257
  829. package/dist/chunks/usage-limits-a3r2a0ar.js +0 -539
  830. package/dist/chunks/usage-limits-ezna1kdx.js +0 -18
  831. package/dist/chunks/usage-limits-hv71va99.js +0 -26
  832. package/dist/chunks/usage-limits-jaq18jgp.js +0 -16
  833. /package/dist/chunks/{usage-limits-0qkdqm5v.js → location-0qkdqm5v.js} +0 -0
  834. /package/dist/chunks/{usage-limits-0zkw76rk.js → location-0zkw76rk.js} +0 -0
  835. /package/dist/chunks/{usage-limits-17cy0kzp.js → location-17cy0kzp.js} +0 -0
  836. /package/dist/chunks/{usage-limits-1cnp2v09.js → location-1cnp2v09.js} +0 -0
  837. /package/dist/chunks/{usage-limits-1kah00gy.js → location-1kah00gy.js} +0 -0
  838. /package/dist/chunks/{usage-limits-24dcb14g.js → location-24dcb14g.js} +0 -0
  839. /package/dist/chunks/{usage-limits-2710q6r3.js → location-2710q6r3.js} +0 -0
  840. /package/dist/chunks/{usage-limits-2bv980vf.js → location-2bv980vf.js} +0 -0
  841. /package/dist/chunks/{usage-limits-2c3vjs8z.js → location-2c3vjs8z.js} +0 -0
  842. /package/dist/chunks/{usage-limits-359p4xyc.js → location-359p4xyc.js} +0 -0
  843. /package/dist/chunks/{usage-limits-3asan66x.js → location-3asan66x.js} +0 -0
  844. /package/dist/chunks/{usage-limits-3v8g72cx.js → location-3v8g72cx.js} +0 -0
  845. /package/dist/chunks/{usage-limits-3wcehsnq.js → location-3wcehsnq.js} +0 -0
  846. /package/dist/chunks/{usage-limits-43n2bw4t.js → location-43n2bw4t.js} +0 -0
  847. /package/dist/chunks/{usage-limits-4knz6hnm.js → location-4knz6hnm.js} +0 -0
  848. /package/dist/chunks/{usage-limits-4qk9sjk2.js → location-4qk9sjk2.js} +0 -0
  849. /package/dist/chunks/{usage-limits-4vcrnpx2.js → location-4vcrnpx2.js} +0 -0
  850. /package/dist/chunks/{usage-limits-4y7fprxs.js → location-4y7fprxs.js} +0 -0
  851. /package/dist/chunks/{usage-limits-53557ph1.js → location-53557ph1.js} +0 -0
  852. /package/dist/chunks/{usage-limits-550bvhaj.js → location-550bvhaj.js} +0 -0
  853. /package/dist/chunks/{usage-limits-5w3e23ze.js → location-5w3e23ze.js} +0 -0
  854. /package/dist/chunks/{usage-limits-6prwharc.js → location-6prwharc.js} +0 -0
  855. /package/dist/chunks/{usage-limits-6q2bdcd1.js → location-6q2bdcd1.js} +0 -0
  856. /package/dist/chunks/{usage-limits-7akdwqpd.js → location-7akdwqpd.js} +0 -0
  857. /package/dist/chunks/{usage-limits-7m9af43g.js → location-7m9af43g.js} +0 -0
  858. /package/dist/chunks/{usage-limits-7stb81gk.js → location-7stb81gk.js} +0 -0
  859. /package/dist/chunks/{usage-limits-822emrt2.js → location-822emrt2.js} +0 -0
  860. /package/dist/chunks/{usage-limits-84wd9syh.js → location-84wd9syh.js} +0 -0
  861. /package/dist/chunks/{usage-limits-88xbtdfr.js → location-88xbtdfr.js} +0 -0
  862. /package/dist/chunks/{usage-limits-8n3pysct.js → location-8n3pysct.js} +0 -0
  863. /package/dist/chunks/{usage-limits-8wj87zfr.js → location-8wj87zfr.js} +0 -0
  864. /package/dist/chunks/{usage-limits-9a4afbnw.js → location-9a4afbnw.js} +0 -0
  865. /package/dist/chunks/{usage-limits-9rqn6x4v.js → location-9rqn6x4v.js} +0 -0
  866. /package/dist/chunks/{usage-limits-a6k6eb26.js → location-a6k6eb26.js} +0 -0
  867. /package/dist/chunks/{usage-limits-af5trqkr.js → location-af5trqkr.js} +0 -0
  868. /package/dist/chunks/{usage-limits-afrmfg78.js → location-afrmfg78.js} +0 -0
  869. /package/dist/chunks/{usage-limits-aqzs7mqg.js → location-aqzs7mqg.js} +0 -0
  870. /package/dist/chunks/{usage-limits-atq7p7m5.js → location-atq7p7m5.js} +0 -0
  871. /package/dist/chunks/{usage-limits-beh6qq61.js → location-beh6qq61.js} +0 -0
  872. /package/dist/chunks/{usage-limits-bkyjaxrp.js → location-bkyjaxrp.js} +0 -0
  873. /package/dist/chunks/{usage-limits-bmr6ed5q.js → location-bmr6ed5q.js} +0 -0
  874. /package/dist/chunks/{usage-limits-cf4snx6d.js → location-cf4snx6d.js} +0 -0
  875. /package/dist/chunks/{usage-limits-cqv5kn06.js → location-cqv5kn06.js} +0 -0
  876. /package/dist/chunks/{usage-limits-cvy3z8tj.js → location-cvy3z8tj.js} +0 -0
  877. /package/dist/chunks/{usage-limits-d9fn303g.js → location-d9fn303g.js} +0 -0
  878. /package/dist/chunks/{usage-limits-d9jj8t3e.js → location-d9jj8t3e.js} +0 -0
  879. /package/dist/chunks/{usage-limits-dap0rakb.js → location-dap0rakb.js} +0 -0
  880. /package/dist/chunks/{usage-limits-df08tz66.js → location-df08tz66.js} +0 -0
  881. /package/dist/chunks/{usage-limits-dy18nga0.js → location-dy18nga0.js} +0 -0
  882. /package/dist/chunks/{usage-limits-e5kj55wp.js → location-e5kj55wp.js} +0 -0
  883. /package/dist/chunks/{usage-limits-e73j6tqm.js → location-e73j6tqm.js} +0 -0
  884. /package/dist/chunks/{usage-limits-ean2d8b5.js → location-ean2d8b5.js} +0 -0
  885. /package/dist/chunks/{usage-limits-ec1grn59.js → location-ec1grn59.js} +0 -0
  886. /package/dist/chunks/{usage-limits-eh3zwz77.js → location-eh3zwz77.js} +0 -0
  887. /package/dist/chunks/{usage-limits-emrn6kk6.js → location-emrn6kk6.js} +0 -0
  888. /package/dist/chunks/{usage-limits-f0mxakyp.js → location-f0mxakyp.js} +0 -0
  889. /package/dist/chunks/{usage-limits-f6n9ztr4.js → location-f6n9ztr4.js} +0 -0
  890. /package/dist/chunks/{usage-limits-faypxj3z.js → location-faypxj3z.js} +0 -0
  891. /package/dist/chunks/{usage-limits-fd410y7t.js → location-fd410y7t.js} +0 -0
  892. /package/dist/chunks/{usage-limits-fkpq3x5p.js → location-fkpq3x5p.js} +0 -0
  893. /package/dist/chunks/{usage-limits-g4wezp1m.js → location-g4wezp1m.js} +0 -0
  894. /package/dist/chunks/{usage-limits-g86h250q.js → location-g86h250q.js} +0 -0
  895. /package/dist/chunks/{usage-limits-gebd4c9n.js → location-gebd4c9n.js} +0 -0
  896. /package/dist/chunks/{usage-limits-gftt206x.js → location-gftt206x.js} +0 -0
  897. /package/dist/chunks/{usage-limits-hcxmzztb.js → location-hcxmzztb.js} +0 -0
  898. /package/dist/chunks/{usage-limits-hk9envan.js → location-hk9envan.js} +0 -0
  899. /package/dist/chunks/{usage-limits-j2ntwpah.js → location-j2ntwpah.js} +0 -0
  900. /package/dist/chunks/{usage-limits-j5zkgpj8.js → location-j5zkgpj8.js} +0 -0
  901. /package/dist/chunks/{usage-limits-jjkms2e6.js → location-jjkms2e6.js} +0 -0
  902. /package/dist/chunks/{usage-limits-jr7sbwjy.js → location-jr7sbwjy.js} +0 -0
  903. /package/dist/chunks/{usage-limits-jwfs4k6c.js → location-jwfs4k6c.js} +0 -0
  904. /package/dist/chunks/{usage-limits-jwr30sdr.js → location-jwr30sdr.js} +0 -0
  905. /package/dist/chunks/{usage-limits-jze0r7bz.js → location-jze0r7bz.js} +0 -0
  906. /package/dist/chunks/{usage-limits-jzg6c2d5.js → location-jzg6c2d5.js} +0 -0
  907. /package/dist/chunks/{usage-limits-m18g726c.js → location-m18g726c.js} +0 -0
  908. /package/dist/chunks/{usage-limits-mp448xyj.js → location-mp448xyj.js} +0 -0
  909. /package/dist/chunks/{usage-limits-msx8hqn2.js → location-msx8hqn2.js} +0 -0
  910. /package/dist/chunks/{usage-limits-n05xt0ee.js → location-n05xt0ee.js} +0 -0
  911. /package/dist/chunks/{usage-limits-n3j8tn72.js → location-n3j8tn72.js} +0 -0
  912. /package/dist/chunks/{usage-limits-nh4v3znn.js → location-nh4v3znn.js} +0 -0
  913. /package/dist/chunks/{usage-limits-njntx4h6.js → location-njntx4h6.js} +0 -0
  914. /package/dist/chunks/{usage-limits-p71gwv9c.js → location-p71gwv9c.js} +0 -0
  915. /package/dist/chunks/{usage-limits-q3sfg36h.js → location-q3sfg36h.js} +0 -0
  916. /package/dist/chunks/{usage-limits-q74kybfr.js → location-q74kybfr.js} +0 -0
  917. /package/dist/chunks/{usage-limits-qaymkmh1.js → location-qaymkmh1.js} +0 -0
  918. /package/dist/chunks/{usage-limits-qb87gjwd.js → location-qb87gjwd.js} +0 -0
  919. /package/dist/chunks/{usage-limits-qfa1cgps.js → location-qfa1cgps.js} +0 -0
  920. /package/dist/chunks/{usage-limits-qg3g05ea.js → location-qg3g05ea.js} +0 -0
  921. /package/dist/chunks/{usage-limits-qrg20bc0.js → location-qrg20bc0.js} +0 -0
  922. /package/dist/chunks/{usage-limits-rcb2kzg1.js → location-rcb2kzg1.js} +0 -0
  923. /package/dist/chunks/{usage-limits-sdp7kfr6.js → location-sdp7kfr6.js} +0 -0
  924. /package/dist/chunks/{usage-limits-ssg3fenm.js → location-ssg3fenm.js} +0 -0
  925. /package/dist/chunks/{usage-limits-t03h4f5z.js → location-t03h4f5z.js} +0 -0
  926. /package/dist/chunks/{usage-limits-ty7weeps.js → location-ty7weeps.js} +0 -0
  927. /package/dist/chunks/{usage-limits-ve7vex1e.js → location-ve7vex1e.js} +0 -0
  928. /package/dist/chunks/{usage-limits-w803qqfp.js → location-w803qqfp.js} +0 -0
  929. /package/dist/chunks/{usage-limits-wc3fc9cn.js → location-wc3fc9cn.js} +0 -0
  930. /package/dist/chunks/{usage-limits-wer8tq1h.js → location-wer8tq1h.js} +0 -0
  931. /package/dist/chunks/{usage-limits-wtztk69x.js → location-wtztk69x.js} +0 -0
  932. /package/dist/chunks/{usage-limits-x0ckcb58.js → location-x0ckcb58.js} +0 -0
  933. /package/dist/chunks/{usage-limits-x61499pn.js → location-x61499pn.js} +0 -0
  934. /package/dist/chunks/{usage-limits-y44na4kk.js → location-y44na4kk.js} +0 -0
  935. /package/dist/chunks/{usage-limits-y8f7s663.js → location-y8f7s663.js} +0 -0
  936. /package/dist/chunks/{usage-limits-ygaqb7jw.js → location-ygaqb7jw.js} +0 -0
  937. /package/dist/chunks/{usage-limits-z5v4ffb3.js → location-z5v4ffb3.js} +0 -0
  938. /package/dist/chunks/{usage-limits-z9919s4g.js → location-z9919s4g.js} +0 -0
@@ -1,25 +1,29 @@
1
1
  import {
2
- Service78,
3
- node81
4
- } from "./usage-limits-m6e4v83y.js";
2
+ Service89,
3
+ node92
4
+ } from "./location-zfpxzkh5.js";
5
+ import {
6
+ JobTable2
7
+ } from "./location-kzczzf4v.js";
5
8
  import {
6
9
  SessionMessage2
7
- } from "./usage-limits-gftt206x.js";
10
+ } from "./location-gftt206x.js";
8
11
  import {
9
12
  SessionSchema2
10
- } from "./usage-limits-d8nyttsp.js";
13
+ } from "./location-ez4sqtdc.js";
11
14
  import {
12
15
  __export
13
- } from "./usage-limits-9rqn6x4v.js";
16
+ } from "./location-9rqn6x4v.js";
14
17
 
15
18
  // src/job.ts
16
19
  var exports_job = {};
17
20
  __export(exports_job, {
18
21
  Job: () => exports_job,
19
- Service: () => Service47,
20
- make: () => make27,
21
- node: () => node49
22
+ Service: () => Service68,
23
+ make: () => make29,
24
+ node: () => node70
22
25
  });
26
+ import { asc, eq, or } from "drizzle-orm";
23
27
  import { Array, Cause, Clock, Context, Deferred, Effect, Exit, Layer, Schema, Scope, SynchronizedRef } from "effect";
24
28
  import { makeGlobalNode } from "@opencode/util/effect/app-node";
25
29
  var Background = Schema.Struct({
@@ -51,10 +55,9 @@ var Background = Schema.Struct({
51
55
  error: Schema.optionalKey(Schema.String)
52
56
  });
53
57
  var decodeBackground = Schema.decodeUnknownResult(Background);
54
- var backgroundPrefix = "job.background/";
55
58
  var COMPLETED_LIMIT = 25;
56
59
 
57
- class Service47 extends Context.Service()("@opencode/Job") {
60
+ class Service68 extends Context.Service()("@opencode/Job") {
58
61
  }
59
62
  function snapshot(job) {
60
63
  return {
@@ -62,6 +65,29 @@ function snapshot(job) {
62
65
  ...job.info.metadata ? { metadata: { ...job.info.metadata } } : {}
63
66
  };
64
67
  }
68
+ function ownerSessionID(recovery) {
69
+ return recovery.kind === "subagent" ? recovery.parentSessionID : recovery.sessionID;
70
+ }
71
+ function recoveryTitle(job, recovery) {
72
+ if (job.info.title !== undefined)
73
+ return job.info.title;
74
+ if (recovery.kind === "shell")
75
+ return recovery.command;
76
+ if (recovery.kind === "subagent")
77
+ return recovery.description;
78
+ return recovery.path;
79
+ }
80
+ function matchesSession(job, sessionID) {
81
+ if (job.info.metadata?.sessionID === sessionID)
82
+ return true;
83
+ if (job.blockingSessions.has(sessionID))
84
+ return true;
85
+ if (!job.recovery)
86
+ return false;
87
+ if (job.recovery.kind === "subagent")
88
+ return job.recovery.parentSessionID === sessionID || job.recovery.childSessionID === sessionID;
89
+ return job.recovery.sessionID === sessionID;
90
+ }
65
91
  function errorText(cause) {
66
92
  const render = (error) => {
67
93
  const message = error.message || error.name || "Unknown error";
@@ -89,8 +115,8 @@ function decrementSession(input, sessionID) {
89
115
  next.set(sessionID, count - 1);
90
116
  return next;
91
117
  }
92
- var make27 = Effect.gen(function* () {
93
- const kv = yield* Service78;
118
+ var make29 = Effect.gen(function* () {
119
+ const db = (yield* Service89).db;
94
120
  const state = {
95
121
  jobs: yield* SynchronizedRef.make(new Map),
96
122
  scope: yield* Scope.Scope
@@ -110,14 +136,31 @@ var make27 = Effect.gen(function* () {
110
136
  const persistBackground = Effect.fnUntraced(function* (job) {
111
137
  if (!job.recovery || !job.info.notificationID)
112
138
  return;
113
- yield* kv.set(`${backgroundPrefix}${job.info.notificationID}`, {
139
+ const now = yield* Clock.currentTimeMillis;
140
+ const values = {
141
+ notification_id: job.info.notificationID,
114
142
  id: job.info.id,
115
- notificationID: job.info.notificationID,
116
- recovery: job.recovery,
143
+ session_id: ownerSessionID(job.recovery),
144
+ child_session_id: job.recovery.kind === "subagent" ? job.recovery.childSessionID : null,
145
+ kind: job.recovery.kind,
146
+ title: recoveryTitle(job, job.recovery),
117
147
  status: job.info.status,
118
- ...job.info.output !== undefined ? { output: job.info.output } : {},
119
- ...job.info.error !== undefined ? { error: job.info.error } : {}
120
- });
148
+ output: job.info.output ?? null,
149
+ error: job.info.error ?? null,
150
+ recovery: job.recovery,
151
+ time_created: job.info.started_at,
152
+ time_updated: now
153
+ };
154
+ yield* db.insert(JobTable2).values(values).onConflictDoUpdate({
155
+ target: JobTable2.notification_id,
156
+ set: {
157
+ status: values.status,
158
+ output: values.output,
159
+ error: values.error,
160
+ recovery: values.recovery,
161
+ time_updated: now
162
+ }
163
+ }).run().pipe(Effect.orDie);
121
164
  });
122
165
  const settle = Effect.fnUntraced(function* (id, scope, exit) {
123
166
  const completed_at = yield* Clock.currentTimeMillis;
@@ -209,7 +252,7 @@ var make27 = Effect.gen(function* () {
209
252
  if (info._tag === "Some")
210
253
  return { info: info.value, timedOut: false };
211
254
  return { info: snapshot(job), timedOut: true };
212
- }).pipe(Effect.tap((result) => result.info.status === "running" || job.recovery ? Effect.void : consume(input.id, job.scope)));
255
+ }).pipe(Effect.tap((result) => result.info?.status === "running" || job.recovery ? Effect.void : consume(input.id, job.scope)));
213
256
  });
214
257
  const removeBlock = Effect.fnUntraced(function* (input) {
215
258
  yield* SynchronizedRef.update(state.jobs, (jobs) => {
@@ -298,7 +341,7 @@ var make27 = Effect.gen(function* () {
298
341
  yield* Effect.forEach(result, (item) => Deferred.succeed(item.backgrounded, item.info), { discard: true });
299
342
  return result.map((item) => item.info);
300
343
  });
301
- const cancel = Effect.fn("Job.cancel")(function* (id) {
344
+ const cancelInternal = Effect.fnUntraced(function* (id, persist = true) {
302
345
  const completed_at = yield* Clock.currentTimeMillis;
303
346
  const result = yield* SynchronizedRef.modifyEffect(state.jobs, Effect.fnUntraced(function* (jobs) {
304
347
  const job = jobs.get(id);
@@ -315,7 +358,8 @@ var make27 = Effect.gen(function* () {
315
358
  completed_at
316
359
  }
317
360
  };
318
- yield* persistBackground(next);
361
+ if (persist)
362
+ yield* persistBackground(next);
319
363
  return [
320
364
  { info: snapshot(next), done: job.done, scope: job.scope, generation: job.scope },
321
365
  new Map(jobs).set(id, next)
@@ -329,19 +373,35 @@ var make27 = Effect.gen(function* () {
329
373
  yield* consume(id, result.generation);
330
374
  return result.info;
331
375
  });
376
+ const cancel = Effect.fn("Job.cancel")((id) => cancelInternal(id, true));
377
+ const cancelSession = Effect.fn("Job.cancelSession")(function* (sessionID) {
378
+ const ids = [...(yield* SynchronizedRef.get(state.jobs)).values()].filter((job) => job.info.status === "running" && matchesSession(job, sessionID)).map((job) => job.info.id);
379
+ const cancelled = yield* Effect.forEach(ids, (id) => cancelInternal(id, false));
380
+ yield* db.delete(JobTable2).where(or(eq(JobTable2.session_id, sessionID), eq(JobTable2.child_session_id, sessionID))).run().pipe(Effect.orDie);
381
+ yield* SynchronizedRef.update(state.jobs, (jobs) => {
382
+ const next = new Map(jobs);
383
+ for (const [id, job] of jobs) {
384
+ if (matchesSession(job, sessionID))
385
+ next.delete(id);
386
+ }
387
+ return next;
388
+ });
389
+ return cancelled.filter((info) => info !== undefined);
390
+ });
332
391
  const pendingBackground = Effect.gen(function* () {
333
- const recovered = [];
334
- let after;
335
- do {
336
- const page = yield* kv.scan({ prefix: backgroundPrefix, after });
337
- recovered.push(...Array.filterMap(page.entries, (entry) => decodeBackground(entry.value)));
338
- after = page.next;
339
- } while (after);
340
- return recovered;
392
+ const rows = yield* db.select().from(JobTable2).orderBy(asc(JobTable2.time_created), asc(JobTable2.notification_id)).all().pipe(Effect.orDie);
393
+ return Array.filterMap(rows, (row) => decodeBackground({
394
+ id: row.id,
395
+ notificationID: row.notification_id,
396
+ recovery: row.recovery,
397
+ status: row.status,
398
+ ...row.output !== null ? { output: row.output } : {},
399
+ ...row.error !== null ? { error: row.error } : {}
400
+ }));
341
401
  }).pipe(Effect.withSpan("Job.pendingBackground"));
342
402
  const runningBackground = SynchronizedRef.get(state.jobs).pipe(Effect.map((jobs) => [...jobs.values()].flatMap((job) => job.isBackgrounded && job.info.status === "running" && job.recovery ? [job.recovery] : [])), Effect.withSpan("Job.runningBackground"));
343
403
  const completeBackground = Effect.fn("Job.completeBackground")((notificationID) => SynchronizedRef.updateEffect(state.jobs, (jobs) => Effect.gen(function* () {
344
- yield* kv.remove(`${backgroundPrefix}${notificationID}`);
404
+ yield* db.delete(JobTable2).where(eq(JobTable2.notification_id, notificationID)).run().pipe(Effect.orDie);
345
405
  const entry = [...jobs].find(([, job]) => job.info.notificationID === notificationID);
346
406
  if (!entry || entry[1].info.status === "running")
347
407
  return jobs;
@@ -349,7 +409,7 @@ var make27 = Effect.gen(function* () {
349
409
  next.delete(entry[0]);
350
410
  return next;
351
411
  })));
352
- return Service47.of({
412
+ return Service68.of({
353
413
  get,
354
414
  start,
355
415
  wait,
@@ -357,12 +417,13 @@ var make27 = Effect.gen(function* () {
357
417
  background,
358
418
  backgroundAll,
359
419
  cancel,
420
+ cancelSession,
360
421
  pendingBackground,
361
422
  runningBackground,
362
423
  completeBackground
363
424
  });
364
425
  });
365
- var layer = Layer.effect(Service47, make27);
366
- var node49 = makeGlobalNode({ service: Service47, layer, deps: [node81] });
426
+ var layer = Layer.effect(Service68, make29);
427
+ var node70 = makeGlobalNode({ service: Service68, layer, deps: [node92] });
367
428
 
368
- export { Service47, make27, node49, exports_job };
429
+ export { Service68, make29, node70, exports_job };
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  groups2
3
- } from "./usage-limits-vjf35v1f.js";
3
+ } from "./location-vjf35v1f.js";
4
4
  import {
5
5
  __export
6
- } from "./usage-limits-9rqn6x4v.js";
6
+ } from "./location-9rqn6x4v.js";
7
7
 
8
8
  // src/plugin/provider/claude-agent/sync/checkpoints.ts
9
9
  var exports_checkpoints = {};
@@ -1,7 +1,7 @@
1
1
  // src/session/schema.ts
2
2
  import * as SessionSchema2 from "@opencode/schema/session";
3
3
  import { Session } from "@opencode/schema/session";
4
- var ID11 = Session.ID;
5
- var Info11 = Session.Info;
4
+ var ID19 = Session.ID;
5
+ var Info28 = Session.Info;
6
6
 
7
- export { ID11, Info11, SessionSchema2 };
7
+ export { ID19, Info28, SessionSchema2 };
@@ -1,41 +1,41 @@
1
1
  import {
2
- Service52
3
- } from "./usage-limits-d4ftrgr2.js";
2
+ Service71
3
+ } from "./location-nw8h2gm9.js";
4
4
  import {
5
- ID8,
5
+ ID9,
6
6
  Name2,
7
7
  toModelOutput3,
8
8
  prepare3,
9
- Service40
10
- } from "./usage-limits-8ww20s18.js";
9
+ Service45
10
+ } from "./location-4pqhsa69.js";
11
11
  import {
12
12
  __export
13
- } from "./usage-limits-9rqn6x4v.js";
13
+ } from "./location-9rqn6x4v.js";
14
14
 
15
15
  // src/tool/plugin/skill.ts
16
16
  var exports_skill2 = {};
17
17
  __export(exports_skill2, {
18
- Input: () => Input3,
19
- Output: () => Output2,
20
- Plugin: () => Plugin22,
18
+ Input: () => Input8,
19
+ Output: () => Output7,
20
+ Plugin: () => Plugin27,
21
21
  SkillTool: () => exports_skill2,
22
- description: () => description2,
23
- name: () => name3,
22
+ description: () => description5,
23
+ name: () => name8,
24
24
  toModelOutput: () => toModelOutput2
25
25
  });
26
26
  import { ToolFailure } from "@opencode/ai/effect";
27
27
  import { Effect, Schema } from "effect";
28
28
  import { FSUtil } from "@opencode/util/fs-util";
29
- var name3 = "skill";
30
- var Input3 = Schema.Struct({
31
- id: ID8.annotate({ description: "The ID of an available skill or a skill explicitly referenced by the user" })
29
+ var name8 = "skill";
30
+ var Input8 = Schema.Struct({
31
+ id: ID9.annotate({ description: "The ID of an available skill or a skill explicitly referenced by the user" })
32
32
  });
33
- var Output2 = Schema.Struct({
33
+ var Output7 = Schema.Struct({
34
34
  name: Name2,
35
35
  directory: Schema.String,
36
36
  output: Schema.String
37
37
  });
38
- var description2 = [
38
+ var description5 = [
39
39
  "Load a specialized skill's instructions and resources into the current conversation when the task at hand matches its description.",
40
40
  "",
41
41
  "The skill ID must match an available skill or a skill explicitly referenced by the user."
@@ -43,25 +43,25 @@ var description2 = [
43
43
  `);
44
44
  var toModelOutput2 = toModelOutput3;
45
45
  var unableToLoad = (name, error) => new ToolFailure({ message: `Unable to load skill ${name}`, error });
46
- var Plugin22 = {
46
+ var Plugin27 = {
47
47
  id: "opencode.tool.skill",
48
48
  effect: Effect.fn("SkillTool.Plugin")(function* (ctx) {
49
49
  const fs = yield* FSUtil.Service;
50
- const skills = yield* Service40;
51
- const permission = yield* Service52;
50
+ const skills = yield* Service45;
51
+ const permission = yield* Service71;
52
52
  yield* ctx.tool.transform((editor) => editor.add({
53
- name: name3,
53
+ name: name8,
54
54
  options: { codemode: false },
55
- description: description2,
56
- input: Input3,
57
- output: Output2,
55
+ description: description5,
56
+ input: Input8,
57
+ output: Output7,
58
58
  execute: (input, context) => Effect.gen(function* () {
59
59
  const skill = yield* skills.get(input.id);
60
60
  if (!skill)
61
61
  return yield* unableToLoad(input.id);
62
62
  return yield* Effect.gen(function* () {
63
63
  yield* permission.assert({
64
- action: name3,
64
+ action: name8,
65
65
  resources: [skill.id],
66
66
  save: [skill.id],
67
67
  sessionID: context.sessionID,
@@ -79,4 +79,4 @@ var Plugin22 = {
79
79
  })
80
80
  };
81
81
 
82
- export { name3, Input3, Output2, description2, toModelOutput2, Plugin22, exports_skill2 };
82
+ export { name8, Input8, Output7, description5, toModelOutput2, Plugin27, exports_skill2 };
@@ -1,63 +1,63 @@
1
+ import {
2
+ Service89,
3
+ node92
4
+ } from "./location-zfpxzkh5.js";
1
5
  import {
2
6
  Service88,
3
7
  node91
4
- } from "./usage-limits-pc7ssjbc.js";
5
- import {
6
- Service87,
7
- node90
8
- } from "./usage-limits-jq3a00x6.js";
8
+ } from "./location-n8868hmk.js";
9
9
  import {
10
- Service45,
11
- node47
12
- } from "./usage-limits-9nkjg9qd.js";
10
+ Service58,
11
+ node59
12
+ } from "./location-9yqjp86x.js";
13
13
  import {
14
14
  AbsolutePath2,
15
15
  RelativePath2
16
- } from "./usage-limits-z5v4ffb3.js";
16
+ } from "./location-z5v4ffb3.js";
17
17
  import {
18
18
  Service84,
19
19
  node87
20
- } from "./usage-limits-k0sc0549.js";
20
+ } from "./location-4g60rn0h.js";
21
21
  import {
22
22
  Ref5
23
- } from "./usage-limits-bzp09gqc.js";
23
+ } from "./location-fezcm6md.js";
24
24
  import {
25
- Service70,
26
- node72
27
- } from "./usage-limits-zmnc4hw2.js";
25
+ Service60,
26
+ node61
27
+ } from "./location-qvpjn6tt.js";
28
28
  import {
29
29
  SessionMessage2
30
- } from "./usage-limits-gftt206x.js";
30
+ } from "./location-gftt206x.js";
31
31
  import {
32
- NotFoundError8
33
- } from "./usage-limits-hnsyj4wy.js";
32
+ NotFoundError11
33
+ } from "./location-0te9php1.js";
34
34
  import {
35
35
  SessionEvent2
36
- } from "./usage-limits-ec1grn59.js";
36
+ } from "./location-ec1grn59.js";
37
37
  import {
38
- Service43
39
- } from "./usage-limits-yqveydy6.js";
38
+ Service56
39
+ } from "./location-rbg54dp1.js";
40
40
  import {
41
- Service53,
42
- node54
43
- } from "./usage-limits-sc35yb2g.js";
41
+ Service72,
42
+ node75
43
+ } from "./location-yqt7189q.js";
44
44
  import {
45
45
  Item2,
46
46
  serialized2,
47
- Service44,
48
- node46,
47
+ Service57,
48
+ node58,
49
49
  moveIDs2
50
- } from "./usage-limits-774q7b2v.js";
50
+ } from "./location-7vrt23ax.js";
51
51
  import {
52
- Service42,
53
- node45
54
- } from "./usage-limits-84ce92z0.js";
52
+ Service55,
53
+ node57
54
+ } from "./location-5zmy73z4.js";
55
55
  import {
56
- node29
57
- } from "./usage-limits-s731tgr5.js";
56
+ node35
57
+ } from "./location-bj94m9aa.js";
58
58
  import {
59
59
  __export
60
- } from "./usage-limits-9rqn6x4v.js";
60
+ } from "./location-9rqn6x4v.js";
61
61
 
62
62
  // src/session/move.ts
63
63
  var exports_move = {};
@@ -65,9 +65,9 @@ __export(exports_move, {
65
65
  DestinationNotDirectoryError: () => DestinationNotDirectoryError2,
66
66
  DestinationNotFoundError: () => DestinationNotFoundError2,
67
67
  DestinationUnavailableError: () => DestinationUnavailableError2,
68
- Service: () => Service25,
68
+ Service: () => Service31,
69
69
  SessionMove: () => exports_move,
70
- node: () => node28
70
+ node: () => node34
71
71
  });
72
72
  import { makeGlobalNode } from "@opencode/util/effect/app-node";
73
73
  import { FSUtil } from "@opencode/util/fs-util";
@@ -83,23 +83,23 @@ class DestinationNotDirectoryError2 extends Schema.TaggedError()("Session.Destin
83
83
  class DestinationUnavailableError2 extends Schema.TaggedError()("Session.DestinationUnavailableError", { directory: AbsolutePath2 }) {
84
84
  }
85
85
 
86
- class Service25 extends Context.Service()("@opencode/SessionMove") {
86
+ class Service31 extends Context.Service()("@opencode/SessionMove") {
87
87
  }
88
- var layer = Layer.effect(Service25, Effect.gen(function* () {
88
+ var layer = Layer.effect(Service31, Effect.gen(function* () {
89
89
  const fs = yield* FSUtil.Service;
90
90
  const global = yield* Global.Service;
91
91
  const projects = yield* Service84;
92
- const locations = yield* Service70;
93
- const store = yield* Service53;
94
- const execution = yield* Service42;
95
- const instances = yield* Service45;
96
- const admission = yield* Service44;
97
- const database = yield* Service88;
98
- const bus = yield* Service87;
92
+ const locations = yield* Service60;
93
+ const store = yield* Service72;
94
+ const execution = yield* Service55;
95
+ const instances = yield* Service58;
96
+ const admission = yield* Service57;
97
+ const database = yield* Service89;
98
+ const bus = yield* Service88;
99
99
  const get = Effect.fn("SessionMove.get")(function* (sessionID) {
100
100
  const session = yield* store.get(sessionID);
101
101
  if (!session)
102
- return yield* new NotFoundError8({ sessionID });
102
+ return yield* new NotFoundError11({ sessionID });
103
103
  return session;
104
104
  });
105
105
  const resolveDestination = Effect.fn("SessionMove.resolveDestination")(function* (session, input) {
@@ -131,9 +131,9 @@ var layer = Layer.effect(Service25, Effect.gen(function* () {
131
131
  return false;
132
132
  if (!(yield* fs.isDir(session.location.directory)))
133
133
  return true;
134
- return yield* Service43.pipe(instances.provide(session), Effect.as(false), Effect.catchCause((cause) => Cause.hasInterrupts(cause) ? Effect.failCause(Cause.fromReasons(cause.reasons.filter(Cause.isInterruptReason))) : Effect.succeed(true)));
134
+ return yield* Service56.pipe(instances.provide(session), Effect.as(false), Effect.catchCause((cause) => Cause.hasInterrupts(cause) ? Effect.failCause(Cause.fromReasons(cause.reasons.filter(Cause.isInterruptReason))) : Effect.succeed(true)));
135
135
  });
136
- return Service25.of({
136
+ return Service31.of({
137
137
  move: Effect.fn("SessionMove.move")(function* (input) {
138
138
  const session = yield* get(input.sessionID);
139
139
  const destination = yield* resolveDestination(session, input);
@@ -163,22 +163,22 @@ var layer = Layer.effect(Service25, Effect.gen(function* () {
163
163
  })
164
164
  });
165
165
  }));
166
- var node28 = makeGlobalNode({
167
- service: Service25,
166
+ var node34 = makeGlobalNode({
167
+ service: Service31,
168
168
  layer,
169
169
  deps: [
170
170
  FSUtil.node,
171
171
  Global.node,
172
172
  node87,
173
- node72,
174
- node54,
175
- node45,
176
- node47,
177
- node46,
173
+ node61,
174
+ node75,
175
+ node57,
176
+ node59,
177
+ node58,
178
+ node92,
178
179
  node91,
179
- node90,
180
- node29
180
+ node35
181
181
  ]
182
182
  });
183
183
 
184
- export { DestinationNotFoundError2, DestinationNotDirectoryError2, DestinationUnavailableError2, Service25, node28, exports_move };
184
+ export { DestinationNotFoundError2, DestinationNotDirectoryError2, DestinationUnavailableError2, Service31, node34, exports_move };
@@ -1,9 +1,9 @@
1
1
  import {
2
- Service74
3
- } from "./usage-limits-7a3ts1e5.js";
2
+ Service69
3
+ } from "./location-eafxjg76.js";
4
4
  import {
5
5
  __export
6
- } from "./usage-limits-9rqn6x4v.js";
6
+ } from "./location-9rqn6x4v.js";
7
7
 
8
8
  // src/mcp/stdio.ts
9
9
  var exports_stdio = {};
@@ -11,8 +11,8 @@ __export(exports_stdio, {
11
11
  McpStdio: () => exports_stdio,
12
12
  make: () => make2
13
13
  });
14
- import { ReadBuffer, serializeMessage } from "@modelcontextprotocol/client";
15
- import { Cause, Duration, Effect, Fiber, Option, Queue, Scope, Stream } from "effect";
14
+ import { deserializeMessage, serializeMessage } from "@modelcontextprotocol/client";
15
+ import { Cause, Duration, Effect, Fiber, Option, Queue, Result, Scope, Stream } from "effect";
16
16
  import { ChildProcess } from "effect/process";
17
17
  var CLOSE_GRACE = Duration.seconds(2);
18
18
  var FORCE_KILL_AFTER = Duration.seconds(2);
@@ -21,14 +21,15 @@ var MAX_FRAME_BYTES = 16 * 1024 * 1024;
21
21
  var EXIT_WAIT = Duration.seconds(1);
22
22
  var STDERR_TAIL = 1000;
23
23
  var make2 = Effect.fnUntraced(function* (options) {
24
- const environment = yield* Service74;
24
+ const environment = yield* Service69;
25
25
  const scope = yield* Effect.scope;
26
26
  const outgoing = yield* Queue.bounded(OUTGOING_CAPACITY);
27
- const buffer = new ReadBuffer;
28
27
  const state = { phase: "ready" };
29
28
  let startup;
30
29
  let closing;
31
- let trailingBytes = 0;
30
+ let pending = [];
31
+ let pendingBytes = 0;
32
+ const decoder = new TextDecoder;
32
33
  let stderr = "";
33
34
  const stop = Effect.fnUntraced(function* (handle) {
34
35
  yield* Effect.timeoutOption(handle.exitCode, CLOSE_GRACE).pipe(Effect.ignore);
@@ -38,6 +39,8 @@ var make2 = Effect.fnUntraced(function* (options) {
38
39
  }, Effect.ignore());
39
40
  const close = () => closing ??= Effect.runPromise(Effect.gen(function* () {
40
41
  state.phase = "closed";
42
+ pending = [];
43
+ pendingBytes = 0;
41
44
  Queue.endUnsafe(outgoing);
42
45
  if (startup)
43
46
  yield* Effect.promise(() => startup.catch(() => {
@@ -48,7 +51,7 @@ var make2 = Effect.fnUntraced(function* (options) {
48
51
  return;
49
52
  state.handle = undefined;
50
53
  yield* stop(handle);
51
- }).pipe(Effect.ensuring(Queue.shutdown(outgoing)), Effect.ensuring(Effect.sync(() => buffer.clear()))));
54
+ }).pipe(Effect.ensuring(Queue.shutdown(outgoing))));
52
55
  const transport = {
53
56
  start: () => {
54
57
  if (state.phase !== "ready")
@@ -77,31 +80,46 @@ var make2 = Effect.fnUntraced(function* (options) {
77
80
  send: (message) => state.phase !== "open" ? Promise.reject(new Error("Not connected")) : Effect.runPromise(Queue.offer(outgoing, serializeMessage(message)).pipe(Effect.flatMap((offered) => offered ? Effect.void : Effect.fail(new Error("Not connected"))))),
78
81
  close
79
82
  };
80
- const deliver = (chunk) => Effect.gen(function* () {
81
- for (const byte of chunk) {
82
- trailingBytes = byte === 10 ? 0 : trailingBytes + 1;
83
- if (trailingBytes > MAX_FRAME_BYTES)
84
- return yield* Effect.fail(new Error("MCP stdio frame exceeded 16 MiB"));
83
+ const deliver = (chunk) => {
84
+ let start = 0;
85
+ let newline = chunk.indexOf(10);
86
+ while (newline !== -1 && state.phase !== "closed") {
87
+ const line = chunk.subarray(start, newline);
88
+ const size = pendingBytes + line.length;
89
+ if (size > MAX_FRAME_BYTES)
90
+ return oversized();
91
+ receive(pending.length === 0 ? line : Buffer.concat([...pending, line], size));
92
+ pending = [];
93
+ pendingBytes = 0;
94
+ start = newline + 1;
95
+ newline = chunk.indexOf(10, start);
85
96
  }
86
- buffer.append(Buffer.from(chunk.buffer, chunk.byteOffset, chunk.byteLength));
87
- while (true) {
88
- const message = yield* Effect.try({
89
- try: () => buffer.readMessage(),
90
- catch: (cause) => cause instanceof Error ? cause : new Error(String(cause))
91
- }).pipe(Effect.catch((error) => Effect.sync(() => {
92
- transport.onerror?.(error);
93
- return;
94
- })));
95
- if (message === undefined)
96
- continue;
97
- if (message === null)
98
- return;
99
- transport.onmessage?.(message);
100
- }
101
- });
97
+ if (start === chunk.length || state.phase === "closed")
98
+ return;
99
+ pendingBytes += chunk.length - start;
100
+ if (pendingBytes > MAX_FRAME_BYTES)
101
+ return oversized();
102
+ pending.push(start === 0 ? chunk : chunk.subarray(start));
103
+ };
104
+ const receive = (line) => {
105
+ const text = decoder.decode(line.at(-1) === 13 ? line.subarray(0, -1) : line);
106
+ if (text.trim() === "")
107
+ return;
108
+ const message = Result.try({
109
+ try: () => deserializeMessage(text),
110
+ catch: (cause) => new Error(`Invalid MCP stdio message from ${options.server}: ${cause}`, { cause })
111
+ });
112
+ if (Result.isFailure(message))
113
+ return transport.onerror?.(message.failure);
114
+ transport.onmessage?.(message.success);
115
+ };
116
+ const oversized = () => {
117
+ transport.onerror?.(new Error(`MCP server ${options.server} wrote more than 16 MiB to stdout without a message boundary`));
118
+ close();
119
+ };
102
120
  const startOutput = (handle) => Effect.gen(function* () {
103
121
  const drain = yield* Effect.forkScoped(handle.stderr.pipe(Stream.decodeText(), Stream.tap((output) => Effect.sync(() => stderr = (stderr + output).slice(-STDERR_TAIL))), Stream.runForEach((output) => output.trim() === "" ? Effect.void : Effect.logDebug("mcp server stderr", { server: options.server, output })), Effect.ignore));
104
- yield* Effect.forkScoped(Stream.runForEach(handle.stdout, deliver).pipe(Effect.tapCause((cause) => Effect.sync(() => {
122
+ yield* Effect.forkScoped(Stream.runForEach(handle.stdout, (chunk) => Effect.sync(() => deliver(chunk))).pipe(Effect.tapCause((cause) => Effect.sync(() => {
105
123
  const error = Cause.squash(cause);
106
124
  transport.onerror?.(error instanceof Error ? error : new Error(String(error)));
107
125
  })), Effect.ignore, Effect.ensuring(Effect.gen(function* () {