@opencode/core 2.1.2 → 2.1.4

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 (856) hide show
  1. package/dist/account/sql.js +1 -1
  2. package/dist/agent.js +79 -79
  3. package/dist/aisdk-native.js +91 -91
  4. package/dist/aisdk.js +93 -92
  5. package/dist/app.js +5 -5
  6. package/dist/bus.js +71 -71
  7. package/dist/chunks/{repository-cache-h1g26er5.js → location-005psrwt.js} +20 -20
  8. package/dist/chunks/location-00ve6mdn.js +18 -0
  9. package/dist/chunks/{repository-cache-rj3eygr5.js → location-034tev2y.js} +2 -2
  10. package/dist/chunks/{repository-cache-vzjp43bk.js → location-0928y98p.js} +6 -5
  11. package/dist/chunks/{repository-cache-sfy3bb98.js → location-09wmedhs.js} +9 -9
  12. package/dist/chunks/{repository-cache-hwjyn0yt.js → location-0gbb59p9.js} +9 -9
  13. package/dist/chunks/{repository-cache-be5vje8s.js → location-0hpjzkz5.js} +5 -5
  14. package/dist/chunks/{repository-cache-3xcrjpsd.js → location-0pm6fm3r.js} +22 -24
  15. package/dist/chunks/{repository-cache-x1jjhmsh.js → location-1bmrwaa5.js} +14 -14
  16. package/dist/chunks/{repository-cache-w0cy9m9e.js → location-1dqke238.js} +8 -8
  17. package/dist/chunks/{repository-cache-rert0e01.js → location-1ep2p91f.js} +2 -2
  18. package/dist/chunks/{repository-cache-k7myrtme.js → location-1qtv120j.js} +9 -9
  19. package/dist/chunks/{repository-cache-6827pfxn.js → location-1x2knyw4.js} +1 -1
  20. package/dist/chunks/{repository-cache-ctxez2a7.js → location-1xwgv2nq.js} +6 -6
  21. package/dist/chunks/{repository-cache-mqqhst8y.js → location-1y0wdj51.js} +4 -4
  22. package/dist/chunks/{repository-cache-qgn6gcr1.js → location-1yq9hg58.js} +5 -5
  23. package/dist/chunks/{repository-cache-a9vzac7j.js → location-239z01gj.js} +6 -6
  24. package/dist/chunks/{repository-cache-nsxxvcpe.js → location-2ahfrs74.js} +15 -15
  25. package/dist/chunks/{repository-cache-befx3zey.js → location-2brc2rvy.js} +1 -1
  26. package/dist/chunks/{repository-cache-hbvyahhm.js → location-2bymr7vt.js} +17 -17
  27. package/dist/chunks/{repository-cache-60xtzwnm.js → location-2cjxs9ry.js} +20 -20
  28. package/dist/chunks/{repository-cache-96dnwma2.js → location-2d2g0mpf.js} +29 -29
  29. package/dist/chunks/{repository-cache-psj2x98s.js → location-2ggqsqg3.js} +5 -5
  30. package/dist/chunks/{repository-cache-bf876wkh.js → location-2h6s5afk.js} +13 -13
  31. package/dist/chunks/{repository-cache-v5dkyp31.js → location-2jq4ff38.js} +4 -4
  32. package/dist/chunks/{repository-cache-3wvrfr7w.js → location-2n0y9ar2.js} +15 -15
  33. package/dist/chunks/{repository-cache-1rj8m5vq.js → location-2s6r54qs.js} +4 -4
  34. package/dist/chunks/{repository-cache-4nxvs59q.js → location-2satw072.js} +26 -28
  35. package/dist/chunks/{repository-cache-3smtnn6g.js → location-2z1j29yd.js} +5 -3
  36. package/dist/chunks/{repository-cache-d72a72b9.js → location-3043t2hd.js} +15 -15
  37. package/dist/chunks/{repository-cache-apagrtrt.js → location-30bn4rx3.js} +19 -20
  38. package/dist/chunks/{repository-cache-rjzs5m1z.js → location-37c15ztt.js} +24 -48
  39. package/dist/chunks/{repository-cache-mjxa0fkz.js → location-37d4mgj3.js} +33 -33
  40. package/dist/chunks/{repository-cache-gng93yft.js → location-3e8nvsz7.js} +3 -3
  41. package/dist/chunks/{repository-cache-3hepkmqq.js → location-3hepkmqq.js} +1 -1
  42. package/dist/chunks/{repository-cache-9bh5q6pj.js → location-3j92816q.js} +10 -14
  43. package/dist/chunks/{repository-cache-5d607bsg.js → location-3mgb105e.js} +9 -9
  44. package/dist/chunks/{repository-cache-54ma36ye.js → location-3nnrz6f6.js} +1 -1
  45. package/dist/chunks/{repository-cache-pk0dmpdf.js → location-3sfq932m.js} +14 -18
  46. package/dist/chunks/{repository-cache-wwkjqs8e.js → location-3wef9mrz.js} +8 -8
  47. package/dist/chunks/{repository-cache-rw0rmakh.js → location-3y1df9hb.js} +3 -3
  48. package/dist/chunks/{repository-cache-aws4c0c0.js → location-3yy2vhmn.js} +23 -23
  49. package/dist/chunks/{repository-cache-ywt8jp22.js → location-40za9wsf.js} +9 -9
  50. package/dist/chunks/{repository-cache-kp3dd9gy.js → location-42hxtx4a.js} +2 -2
  51. package/dist/chunks/{repository-cache-gye9bare.js → location-4bvc8sjz.js} +2 -2
  52. package/dist/chunks/{repository-cache-068g2d37.js → location-4c6ksw65.js} +37 -37
  53. package/dist/chunks/{repository-cache-vsa820f9.js → location-4fspmagn.js} +245 -104
  54. package/dist/chunks/{repository-cache-twwrpnjg.js → location-4jbtvrw1.js} +12 -12
  55. package/dist/chunks/{repository-cache-f31q5wm1.js → location-4kb4jvb8.js} +17 -17
  56. package/dist/chunks/{repository-cache-zr2ceqn5.js → location-4v008n1t.js} +1 -1
  57. package/dist/chunks/{repository-cache-z0mn1t4q.js → location-4v3515yy.js} +46 -46
  58. package/dist/chunks/{repository-cache-a20pjse5.js → location-4xvmh7wp.js} +3 -3
  59. package/dist/chunks/{repository-cache-k07nhkpw.js → location-4y92vxjf.js} +46 -46
  60. package/dist/chunks/{repository-cache-ek8edefh.js → location-584rjm98.js} +1 -1
  61. package/dist/chunks/{repository-cache-pyv0edze.js → location-5fjb7ams.js} +4 -4
  62. package/dist/chunks/{repository-cache-5m9w47nd.js → location-5m9w47nd.js} +1 -1
  63. package/dist/chunks/{repository-cache-qy7ffa5a.js → location-5nankzt7.js} +9 -9
  64. package/dist/chunks/{repository-cache-gm3f9v0x.js → location-5qebhevh.js} +16 -19
  65. package/dist/chunks/{repository-cache-8pvf9cdd.js → location-5ysrq0ad.js} +16 -16
  66. package/dist/chunks/{repository-cache-9da6j7qw.js → location-633qbm06.js} +13 -13
  67. package/dist/chunks/{repository-cache-hnvjv21h.js → location-6b66j3w1.js} +28 -28
  68. package/dist/chunks/{repository-cache-zxq2ej10.js → location-6esdw8yj.js} +1 -1
  69. package/dist/chunks/{repository-cache-x51ersaw.js → location-6p8ga3wk.js} +17 -17
  70. package/dist/chunks/{repository-cache-wwh9ddtq.js → location-6pe7vn7p.js} +13 -13
  71. package/dist/chunks/{repository-cache-qsdy395h.js → location-6pjqjmy2.js} +1 -1
  72. package/dist/chunks/{repository-cache-ka0kb0pp.js → location-6qtdkhme.js} +1 -1
  73. package/dist/chunks/{repository-cache-tcxc2yk9.js → location-6z79x2sm.js} +13 -13
  74. package/dist/chunks/{repository-cache-tcezcvh9.js → location-76cb1hcw.js} +1 -1
  75. package/dist/chunks/{repository-cache-rbyshrxq.js → location-7bgh3hsv.js} +7 -7
  76. package/dist/chunks/{repository-cache-7bmhse3q.js → location-7bmhse3q.js} +1 -1
  77. package/dist/chunks/{repository-cache-4evmdpem.js → location-7hk3fzbx.js} +30 -43
  78. package/dist/chunks/{repository-cache-4m3ygwz0.js → location-7jg3h9xc.js} +7 -7
  79. package/dist/chunks/{repository-cache-6yftxg5c.js → location-7jrmq8v4.js} +20 -20
  80. package/dist/chunks/{repository-cache-8s3pces3.js → location-7th4r57j.js} +12 -12
  81. package/dist/chunks/{repository-cache-8s4xtewj.js → location-7vd4enbp.js} +15 -15
  82. package/dist/chunks/{repository-cache-kwb1v3vj.js → location-7w2ypzdf.js} +1 -1
  83. package/dist/chunks/{repository-cache-95hwhe14.js → location-80cqk4v7.js} +13 -13
  84. package/dist/chunks/{repository-cache-2296e4cw.js → location-81va5nb7.js} +25 -19
  85. package/dist/chunks/location-8230236v.js +257 -0
  86. package/dist/chunks/{repository-cache-am5vmnvv.js → location-830bkp7y.js} +18 -18
  87. package/dist/chunks/{repository-cache-6khagj97.js → location-86439gfw.js} +32 -32
  88. package/dist/chunks/{repository-cache-7b2pfqtj.js → location-89c7n5pz.js} +3 -3
  89. package/dist/chunks/{repository-cache-hehc42eq.js → location-8bf8d73q.js} +6 -6
  90. package/dist/chunks/{repository-cache-mjfbh2zj.js → location-8c8xwrnt.js} +11 -11
  91. package/dist/chunks/{repository-cache-dpkg50ah.js → location-8jztxfpf.js} +1 -1
  92. package/dist/chunks/{repository-cache-g5ngm8f4.js → location-8vjz6zkc.js} +28 -28
  93. package/dist/chunks/{repository-cache-h6vf3j39.js → location-8wtp7s3z.js} +1 -1
  94. package/dist/chunks/{repository-cache-syv4x271.js → location-91rj84md.js} +4 -2
  95. package/dist/chunks/{repository-cache-6pc27hjz.js → location-997dsrmm.js} +8 -8
  96. package/dist/chunks/{repository-cache-c1fqxshp.js → location-998yhzzq.js} +4 -4
  97. package/dist/chunks/{repository-cache-4xpgt2w9.js → location-9b28cy4d.js} +5 -5
  98. package/dist/chunks/{repository-cache-qz7vxdk7.js → location-9dxz0jcc.js} +9 -9
  99. package/dist/chunks/{repository-cache-t1r0yajc.js → location-9mrr08ev.js} +10 -15
  100. package/dist/chunks/{repository-cache-6b2stqvb.js → location-9p7ryr2b.js} +7 -7
  101. package/dist/chunks/{repository-cache-x98xddc7.js → location-9s6wb0ev.js} +9 -9
  102. package/dist/chunks/{repository-cache-6nhfh867.js → location-9ypen6gf.js} +7 -7
  103. package/dist/chunks/{repository-cache-cd8v38ms.js → location-9zetw7am.js} +104 -93
  104. package/dist/chunks/{repository-cache-3t0ybcrp.js → location-a058387c.js} +4 -2
  105. package/dist/chunks/{repository-cache-k20z56w2.js → location-a5h3ke48.js} +38 -39
  106. package/dist/chunks/{repository-cache-wrmbd4ct.js → location-a7hcemwv.js} +8 -8
  107. package/dist/chunks/{repository-cache-9hwaqfsw.js → location-afmnpta1.js} +7 -11
  108. package/dist/chunks/{repository-cache-qrtd1qkj.js → location-aft2va8r.js} +11 -11
  109. package/dist/chunks/{repository-cache-hm1sg1ry.js → location-akfw3dm8.js} +35 -35
  110. package/dist/chunks/{repository-cache-sa8ekw3f.js → location-ayjs7tqn.js} +3 -3
  111. package/dist/chunks/{repository-cache-3hwn7j4h.js → location-b0mv4wxm.js} +2 -2
  112. package/dist/chunks/{repository-cache-3ske6nsv.js → location-b259twyp.js} +21 -21
  113. package/dist/chunks/{repository-cache-6vq97qmv.js → location-b29mbqx6.js} +5 -5
  114. package/dist/chunks/{repository-cache-dh0nadn9.js → location-b46dzrwk.js} +35 -35
  115. package/dist/chunks/{repository-cache-nz56sr1f.js → location-b6vsg801.js} +4 -3
  116. package/dist/chunks/{repository-cache-qm621tfa.js → location-b93307df.js} +30 -30
  117. package/dist/chunks/{repository-cache-addxnjmp.js → location-bjhzkqyk.js} +1 -1
  118. package/dist/chunks/{repository-cache-mkqa88c4.js → location-bm60t44w.js} +3 -3
  119. package/dist/chunks/{repository-cache-84txncab.js → location-bstexjd6.js} +1 -1
  120. package/dist/chunks/{repository-cache-1ycwwje8.js → location-c34bh8hr.js} +125 -49
  121. package/dist/chunks/{repository-cache-0javqkgf.js → location-c3cfh5w6.js} +9 -9
  122. package/dist/chunks/{repository-cache-tt8gc4fv.js → location-c8666r4c.js} +6 -6
  123. package/dist/chunks/{repository-cache-ys3h2zrn.js → location-ckr4b3py.js} +39 -39
  124. package/dist/chunks/{repository-cache-kkq0x60e.js → location-cp65cvxr.js} +9 -9
  125. package/dist/chunks/{repository-cache-zzv2xjb0.js → location-cxat4xx2.js} +35 -35
  126. package/dist/chunks/{repository-cache-vep9yay1.js → location-d2887f8n.js} +4 -4
  127. package/dist/chunks/{repository-cache-0vbcp93d.js → location-d4v9tmah.js} +2 -2
  128. package/dist/chunks/{repository-cache-qd9a1hat.js → location-d5m0d1jd.js} +91 -95
  129. package/dist/chunks/{repository-cache-sfjrjc0q.js → location-ddwaa558.js} +4 -4
  130. package/dist/chunks/{repository-cache-58a6xtee.js → location-dg6zbqet.js} +53 -53
  131. package/dist/chunks/{repository-cache-t8z4ntba.js → location-dgj49q4q.js} +21 -21
  132. package/dist/chunks/{repository-cache-5xte2yyn.js → location-dqc1xg2h.js} +15 -17
  133. package/dist/chunks/{repository-cache-9j0x65xk.js → location-dvpv1qqw.js} +5 -5
  134. package/dist/chunks/{repository-cache-m12bw8xw.js → location-dxbw252c.js} +29 -27
  135. package/dist/chunks/{repository-cache-zvt5dnpc.js → location-e45fk36t.js} +4 -4
  136. package/dist/chunks/{repository-cache-t720n0zt.js → location-e6ke8dsh.js} +32 -32
  137. package/dist/chunks/{repository-cache-8m6m0r52.js → location-e834z07m.js} +1 -1
  138. package/dist/chunks/{repository-cache-ef5x83kb.js → location-ef5x83kb.js} +1 -1
  139. package/dist/chunks/{repository-cache-8w6fvyhj.js → location-eggkdbge.js} +3 -3
  140. package/dist/chunks/{repository-cache-br622wkd.js → location-eh71ek0g.js} +77 -72
  141. package/dist/chunks/{repository-cache-c02r2nwt.js → location-et9e0jv5.js} +8 -8
  142. package/dist/chunks/{repository-cache-hpfdwx7h.js → location-f7ma11rg.js} +6 -6
  143. package/dist/chunks/{repository-cache-bnqg0hxn.js → location-fcfxs1zj.js} +3 -3
  144. package/dist/chunks/{repository-cache-z18fegx4.js → location-fffv3p7h.js} +2 -10
  145. package/dist/chunks/{repository-cache-x41h92ne.js → location-fjngd7fj.js} +11 -11
  146. package/dist/chunks/{repository-cache-jcwtgcwh.js → location-fjnhz8nn.js} +4 -4
  147. package/dist/chunks/{repository-cache-4xtxvh3c.js → location-fphnwtmq.js} +11 -11
  148. package/dist/chunks/{repository-cache-63jfzrme.js → location-fqzd2d2r.js} +21 -17
  149. package/dist/chunks/{repository-cache-5f1cq77a.js → location-g3avwj86.js} +11 -11
  150. package/dist/chunks/{repository-cache-eej6y6fw.js → location-g5h9c0rr.js} +2 -2
  151. package/dist/chunks/{repository-cache-drwq78ky.js → location-g7esga4v.js} +5 -6
  152. package/dist/chunks/{repository-cache-vbj53afp.js → location-gb9gmc0j.js} +8 -8
  153. package/dist/chunks/{repository-cache-1hyfwtsr.js → location-ght5gt7k.js} +314 -307
  154. package/dist/chunks/{repository-cache-1rf4yw31.js → location-gnkrmvzs.js} +7 -8
  155. package/dist/chunks/{repository-cache-8xnvw0w1.js → location-h8rac0eh.js} +10 -10
  156. package/dist/chunks/{repository-cache-cmkn1bh9.js → location-hfkcnh3h.js} +21 -21
  157. package/dist/chunks/{repository-cache-dsx0mmc6.js → location-hgn7fvrd.js} +22 -22
  158. package/dist/chunks/{repository-cache-zj2b8f8d.js → location-hqgpx30z.js} +29 -31
  159. package/dist/chunks/{repository-cache-5j9zz1y4.js → location-hwqvnpa6.js} +10 -10
  160. package/dist/chunks/{repository-cache-mk9tkz9j.js → location-hyvp8sn8.js} +1 -1
  161. package/dist/chunks/location-hzsp1kxy.js +107 -0
  162. package/dist/chunks/{repository-cache-tm0kqsz3.js → location-j113cymg.js} +4 -3
  163. package/dist/chunks/{repository-cache-tkt1yh5w.js → location-j2cjg2qt.js} +11 -11
  164. package/dist/chunks/{repository-cache-09390rf8.js → location-j6sw43tq.js} +14 -14
  165. package/dist/chunks/{repository-cache-dqr3pwk6.js → location-j8pg8rcr.js} +24 -24
  166. package/dist/chunks/location-jbt1xm3n.js +523 -0
  167. package/dist/chunks/{repository-cache-qd284e96.js → location-jdcya02q.js} +13 -13
  168. package/dist/chunks/{repository-cache-5xn7qbr2.js → location-jh9pmtvm.js} +16 -16
  169. package/dist/chunks/{repository-cache-s8d7rejh.js → location-jneg3k74.js} +1 -1
  170. package/dist/chunks/{repository-cache-sq37fes3.js → location-jw4xm41e.js} +10 -10
  171. package/dist/chunks/{repository-cache-k9tkpxn3.js → location-jz6d5c41.js} +156 -156
  172. package/dist/chunks/{repository-cache-eg5kq0wk.js → location-jznc3yn3.js} +11 -11
  173. package/dist/chunks/{repository-cache-n99h6tw9.js → location-k6wybhe4.js} +34 -36
  174. package/dist/chunks/{repository-cache-t89fqycx.js → location-k732j073.js} +8 -8
  175. package/dist/chunks/{repository-cache-vzs5sf6e.js → location-k814nvkf.js} +1 -1
  176. package/dist/chunks/{repository-cache-0cg871e2.js → location-kb4gstwj.js} +5 -5
  177. package/dist/chunks/{repository-cache-95t8ye7z.js → location-ke7vzy3f.js} +49 -49
  178. package/dist/chunks/location-khh5ttga.js +26 -0
  179. package/dist/chunks/{repository-cache-xh38a0x5.js → location-kjb4x69f.js} +1 -1
  180. package/dist/chunks/{repository-cache-6f890ccd.js → location-kmzgegqq.js} +8 -8
  181. package/dist/chunks/{repository-cache-y1yvzwwp.js → location-kp4ctdbn.js} +11 -11
  182. package/dist/chunks/{repository-cache-g90zrjvy.js → location-ky7vvs7w.js} +37 -32
  183. package/dist/chunks/{repository-cache-9f77xx3w.js → location-m0gv7qej.js} +14 -14
  184. package/dist/chunks/{repository-cache-3zsf4n22.js → location-m1714858.js} +1 -1
  185. package/dist/chunks/{repository-cache-xhbe8e91.js → location-m5nnd4yj.js} +16 -16
  186. package/dist/chunks/{repository-cache-07rqgew6.js → location-m9ga4zyy.js} +6 -6
  187. package/dist/chunks/{repository-cache-m9w0rfyh.js → location-m9w0rfyh.js} +1 -1
  188. package/dist/chunks/{repository-cache-maspj1v3.js → location-maspj1v3.js} +1 -1
  189. package/dist/chunks/{repository-cache-kkp8zx71.js → location-mh30raav.js} +4 -4
  190. package/dist/chunks/{repository-cache-8wmb0r1y.js → location-mjey6v08.js} +8 -8
  191. package/dist/chunks/{repository-cache-fpen5yq5.js → location-mx81xwtn.js} +23 -23
  192. package/dist/chunks/{repository-cache-fcy631f0.js → location-n0p0277s.js} +1 -1
  193. package/dist/chunks/{repository-cache-5mnspefx.js → location-n1ryh798.js} +34 -35
  194. package/dist/chunks/{repository-cache-bzeyqsqd.js → location-nah043kf.js} +1 -1
  195. package/dist/chunks/{repository-cache-cbfm0wb6.js → location-nb3nrvbh.js} +8 -8
  196. package/dist/chunks/{repository-cache-ezx2brb0.js → location-nbvb24gq.js} +23 -19
  197. package/dist/chunks/{repository-cache-ez5pkgh4.js → location-nes0ks30.js} +25 -25
  198. package/dist/chunks/{repository-cache-y642zbcz.js → location-nfdwtzhc.js} +28 -28
  199. package/dist/chunks/{repository-cache-kdz0rk07.js → location-nm4377q9.js} +8 -8
  200. package/dist/chunks/{repository-cache-qs0n9k2z.js → location-nte6bvsd.js} +28 -30
  201. package/dist/chunks/{repository-cache-775gj3j1.js → location-p015t6z3.js} +2 -2
  202. package/dist/chunks/{repository-cache-vs7zhs8r.js → location-p184mqc5.js} +21 -14
  203. package/dist/chunks/{repository-cache-s1aqfa5x.js → location-p894etz3.js} +43 -43
  204. package/dist/chunks/{repository-cache-sxcaecc0.js → location-pc1v25hk.js} +4 -6
  205. package/dist/chunks/{repository-cache-pknna89w.js → location-pknna89w.js} +1 -1
  206. package/dist/chunks/{repository-cache-41bqvch9.js → location-pt3agb94.js} +10 -10
  207. package/dist/chunks/{repository-cache-btpxpz9q.js → location-ptcpq2hv.js} +6 -6
  208. package/dist/chunks/{repository-cache-bkafj4ay.js → location-q1rqw855.js} +7 -7
  209. package/dist/chunks/{repository-cache-bzcwmnv3.js → location-q55b1wrz.js} +13 -13
  210. package/dist/chunks/{repository-cache-ettmqyzq.js → location-q89bkvf2.js} +11 -18
  211. package/dist/chunks/{repository-cache-w7fj1zb2.js → location-qbgwvbz8.js} +10 -10
  212. package/dist/chunks/{repository-cache-s3ertt83.js → location-qbm0r1ap.js} +12 -11
  213. package/dist/chunks/{repository-cache-dcdf7gkr.js → location-qyx1nkkd.js} +19 -19
  214. package/dist/chunks/{repository-cache-tyytaxap.js → location-r0yr0wbs.js} +1 -1
  215. package/dist/chunks/{repository-cache-3wxjf8vr.js → location-r1s8qxhz.js} +15 -15
  216. package/dist/chunks/{repository-cache-24ra19qx.js → location-r20swzxr.js} +31 -28
  217. package/dist/chunks/{repository-cache-k2vh0b3r.js → location-r3083m8p.js} +23 -23
  218. package/dist/chunks/{repository-cache-84cpmds6.js → location-ran0pwn3.js} +8 -25
  219. package/dist/chunks/{repository-cache-78c4e6ad.js → location-raq1s93x.js} +18 -18
  220. package/dist/chunks/{repository-cache-tazgh4e4.js → location-rb9dy4dg.js} +1 -1
  221. package/dist/chunks/location-rgyfs092.js +58 -0
  222. package/dist/chunks/{repository-cache-v1vh7s4p.js → location-rjnacbrz.js} +9 -9
  223. package/dist/chunks/{repository-cache-2r3bm1pf.js → location-rkdfvdar.js} +19 -19
  224. package/dist/chunks/{repository-cache-mr0cv7ny.js → location-rkvk32bt.js} +13 -13
  225. package/dist/chunks/{repository-cache-3tvqynh2.js → location-rt5dr6hb.js} +1 -1
  226. package/dist/chunks/{repository-cache-se9m0ate.js → location-rttdb5jp.js} +38 -34
  227. package/dist/chunks/{repository-cache-25m6jntb.js → location-rxz7t1tx.js} +31 -38
  228. package/dist/chunks/{repository-cache-gxdr2vwe.js → location-s1t9wfqz.js} +8 -8
  229. package/dist/chunks/{repository-cache-mx9vqzsb.js → location-s2pfznc4.js} +6 -6
  230. package/dist/chunks/{repository-cache-ey9nrxd1.js → location-s56jz2hb.js} +20 -28
  231. package/dist/chunks/{repository-cache-d04ep358.js → location-s9ty2h8k.js} +17 -11
  232. package/dist/chunks/{repository-cache-0nz7j1v1.js → location-scdee33y.js} +2 -2
  233. package/dist/chunks/{repository-cache-kvk0xsab.js → location-sk6vvdwr.js} +15 -15
  234. package/dist/chunks/{repository-cache-g2qvt889.js → location-snh71vez.js} +18 -18
  235. package/dist/chunks/{repository-cache-6xb47vfp.js → location-sqjzf8x2.js} +1 -1
  236. package/dist/chunks/{repository-cache-14z3krkx.js → location-t09yj0zj.js} +4 -4
  237. package/dist/chunks/{repository-cache-w94dkyq7.js → location-t35vpv8z.js} +27 -27
  238. package/dist/chunks/{repository-cache-cz1210nh.js → location-t6dn99ca.js} +23 -18
  239. package/dist/chunks/{repository-cache-j2xqfvk3.js → location-t9sf4w0m.js} +11 -11
  240. package/dist/chunks/{repository-cache-gd4qta3r.js → location-tczq8hjw.js} +1 -1
  241. package/dist/chunks/{repository-cache-2ntc19nv.js → location-tseqrb92.js} +34 -60
  242. package/dist/chunks/{repository-cache-tdstcens.js → location-tw8zr1ps.js} +1 -1
  243. package/dist/chunks/{repository-cache-v7p4zvkq.js → location-twv2r8f4.js} +2 -2
  244. package/dist/chunks/{repository-cache-ethnw1sn.js → location-tx9vmxa7.js} +19 -19
  245. package/dist/chunks/{repository-cache-cg5q9ras.js → location-txg5xg0c.js} +31 -26
  246. package/dist/chunks/{repository-cache-ke7rr379.js → location-v0ajt838.js} +28 -28
  247. package/dist/chunks/{repository-cache-1bsm6gb2.js → location-v0h1q5gr.js} +14 -14
  248. package/dist/chunks/{repository-cache-8mywswrd.js → location-v2r1d0zg.js} +2 -2
  249. package/dist/chunks/{repository-cache-23fc6a7j.js → location-v3q8ezdd.js} +13 -13
  250. package/dist/chunks/{repository-cache-2eegacq4.js → location-v6h5bgwd.js} +8 -8
  251. package/dist/chunks/{repository-cache-rdw6cm16.js → location-vd3b3yk9.js} +1 -1
  252. package/dist/chunks/{repository-cache-veqvce7d.js → location-veqvce7d.js} +1 -1
  253. package/dist/chunks/{repository-cache-f8yphcvr.js → location-vqpjc3nz.js} +17 -17
  254. package/dist/chunks/{repository-cache-1g044nmy.js → location-vxybbfew.js} +14 -11
  255. package/dist/chunks/{repository-cache-1sj4xbsw.js → location-w00s5rdr.js} +4 -4
  256. package/dist/chunks/{repository-cache-w3wsvvr9.js → location-w3wsvvr9.js} +1 -1
  257. package/dist/chunks/{repository-cache-gtdxectv.js → location-w67r90k6.js} +12 -12
  258. package/dist/chunks/{repository-cache-fxaymqdw.js → location-w687dnns.js} +1 -1
  259. package/dist/chunks/{repository-cache-qnc92qwc.js → location-wakvkjy4.js} +9 -5
  260. package/dist/chunks/{repository-cache-wd87259q.js → location-wd87259q.js} +1 -1
  261. package/dist/chunks/{repository-cache-z1fx9rk1.js → location-wedh6qfb.js} +4 -4
  262. package/dist/chunks/{repository-cache-9sr4q53q.js → location-wf8nwwfn.js} +13 -11
  263. package/dist/chunks/{repository-cache-za7dxrd4.js → location-wxy5qeqz.js} +15 -15
  264. package/dist/chunks/{repository-cache-0cwe34aq.js → location-x2adk3yy.js} +24 -24
  265. package/dist/chunks/{repository-cache-begyvfqb.js → location-x3w3gr0t.js} +17 -18
  266. package/dist/chunks/{repository-cache-rx1rzkp9.js → location-x6zjgj80.js} +18 -18
  267. package/dist/chunks/{repository-cache-pzc1z4et.js → location-xewrm1yq.js} +32 -32
  268. package/dist/chunks/{repository-cache-n196avmr.js → location-xr94g6d3.js} +36 -36
  269. package/dist/chunks/{repository-cache-b0b3nmkz.js → location-xy22cvcr.js} +50 -50
  270. package/dist/chunks/{repository-cache-6qprtkrf.js → location-xyswfhq2.js} +64 -40
  271. package/dist/chunks/{repository-cache-k4q5zqd4.js → location-xzb17nsd.js} +10 -10
  272. package/dist/chunks/{repository-cache-acd8cc5y.js → location-y2hbnz15.js} +27 -25
  273. package/dist/chunks/{repository-cache-t95zrypp.js → location-y9awcm76.js} +12 -12
  274. package/dist/chunks/{repository-cache-pjvnvgmy.js → location-yb20nhc3.js} +1 -1
  275. package/dist/chunks/{repository-cache-s7ggtf3y.js → location-ye1xrrbs.js} +26 -22
  276. package/dist/chunks/{repository-cache-amsnh37f.js → location-ytsgm675.js} +9 -9
  277. package/dist/chunks/{repository-cache-3g642jy4.js → location-ytvhabzn.js} +10 -10
  278. package/dist/chunks/{repository-cache-gen6sgf1.js → location-yx8gesms.js} +14 -16
  279. package/dist/chunks/{repository-cache-hspen3n6.js → location-z06f5xk1.js} +27 -30
  280. package/dist/chunks/{repository-cache-z0bkrqjs.js → location-z0bkrqjs.js} +1 -1
  281. package/dist/chunks/{repository-cache-kg7htk1j.js → location-z1f2n5q4.js} +84 -30
  282. package/dist/chunks/{repository-cache-mq56jt1j.js → location-z24fzt3x.js} +25 -24
  283. package/dist/chunks/{repository-cache-xwgk07kc.js → location-z359x3zf.js} +33 -33
  284. package/dist/chunks/{repository-cache-y1fvbwt7.js → location-z38nccrw.js} +1 -1
  285. package/dist/chunks/{repository-cache-k1php5wk.js → location-zakhs7qb.js} +44 -29
  286. package/dist/chunks/{repository-cache-atj1s5r2.js → location-zfwjf24c.js} +21 -16
  287. package/dist/chunks/{repository-cache-hgz4x7wa.js → location-zkg84ctx.js} +1 -1
  288. package/dist/chunks/{repository-cache-baqyxak2.js → location-zkgq49d1.js} +4 -4
  289. package/dist/codemode/catalog.js +1 -3
  290. package/dist/codemode/instructions.js +9 -9
  291. package/dist/codemode/tool.js +3 -3
  292. package/dist/codemode/web.js +1 -1
  293. package/dist/command.js +83 -83
  294. package/dist/config/discovery.js +84 -84
  295. package/dist/config/markdown.js +1 -1
  296. package/dist/config/normalize.js +101 -101
  297. package/dist/config/plugin/agent.js +118 -118
  298. package/dist/config/plugin/command.js +214 -208
  299. package/dist/config/plugin/compaction.js +155 -155
  300. package/dist/config/plugin/compatibility.js +135 -135
  301. package/dist/config/plugin/entry-observer.js +1 -1
  302. package/dist/config/plugin/formatter.js +117 -117
  303. package/dist/config/plugin/image.js +116 -116
  304. package/dist/config/plugin/instruction.js +116 -116
  305. package/dist/config/plugin/location-watcher.js +116 -116
  306. package/dist/config/plugin/mcp.js +125 -125
  307. package/dist/config/plugin/policy.js +117 -117
  308. package/dist/config/plugin/provider.js +116 -116
  309. package/dist/config/plugin/reference.js +118 -118
  310. package/dist/config/plugin/shell.js +116 -116
  311. package/dist/config/plugin/skill-file.js +104 -104
  312. package/dist/config/plugin/skill-scan.js +1 -1
  313. package/dist/config/plugin/skill.js +138 -138
  314. package/dist/config/plugin/snapshot.js +116 -116
  315. package/dist/config/plugin/source.js +119 -119
  316. package/dist/config/plugin/tool-output.js +117 -117
  317. package/dist/config/plugin/websearch.js +115 -115
  318. package/dist/config/plugin/worktree.js +118 -118
  319. package/dist/config/variable.js +1 -1
  320. package/dist/config/watch.js +1 -1
  321. package/dist/config.js +121 -121
  322. package/dist/credential/sql.js +2 -2
  323. package/dist/credential.js +85 -85
  324. package/dist/database/database.js +72 -72
  325. package/dist/database/drizzle/effect-sqlite/driver.js +12 -12
  326. package/dist/database/drizzle/effect-sqlite/index.js +12 -12
  327. package/dist/database/drizzle/effect-sqlite/session.js +11 -11
  328. package/dist/database/drizzle/index.js +13 -13
  329. package/dist/database/drizzle/internal/drizzle-utils.js +1 -1
  330. package/dist/database/drizzle/sqlite-core/effect/count.js +1 -1
  331. package/dist/database/drizzle/sqlite-core/effect/db.js +9 -9
  332. package/dist/database/drizzle/sqlite-core/effect/delete.js +2 -2
  333. package/dist/database/drizzle/sqlite-core/effect/index.js +10 -10
  334. package/dist/database/drizzle/sqlite-core/effect/insert.js +2 -2
  335. package/dist/database/drizzle/sqlite-core/effect/query.js +1 -1
  336. package/dist/database/drizzle/sqlite-core/effect/raw.js +1 -1
  337. package/dist/database/drizzle/sqlite-core/effect/select.js +2 -2
  338. package/dist/database/drizzle/sqlite-core/effect/session.js +10 -10
  339. package/dist/database/drizzle/sqlite-core/effect/update.js +2 -2
  340. package/dist/database/drizzle.js +14 -14
  341. package/dist/database/migration/20260127222353_familiar_lady_ursula.js +1 -1
  342. package/dist/database/migration/20260211171708_add_project_commands.js +1 -1
  343. package/dist/database/migration/20260213144116_wakeful_the_professor.js +1 -1
  344. package/dist/database/migration/20260225215848_workspace.js +1 -1
  345. package/dist/database/migration/20260227213759_add_session_workspace_id.js +1 -1
  346. package/dist/database/migration/20260228203230_blue_harpoon.js +1 -1
  347. package/dist/database/migration/20260303231226_add_workspace_fields.js +1 -1
  348. package/dist/database/migration/20260309230000_move_org_to_state.js +1 -1
  349. package/dist/database/migration/20260312043431_session_message_cursor.js +1 -1
  350. package/dist/database/migration/20260323234822_events.js +1 -1
  351. package/dist/database/migration/20260410174513_workspace-name.js +1 -1
  352. package/dist/database/migration/20260413175956_chief_energizer.js +1 -1
  353. package/dist/database/migration/20260423070820_add_icon_url_override.js +1 -1
  354. package/dist/database/migration/20260427172553_slow_nightmare.js +1 -1
  355. package/dist/database/migration/20260428004200_add_session_path.js +1 -1
  356. package/dist/database/migration/20260501142318_next_venus.js +1 -1
  357. package/dist/database/migration/20260504145000_add_sync_owner.js +1 -1
  358. package/dist/database/migration/20260507164347_add_workspace_time.js +1 -1
  359. package/dist/database/migration/20260510033149_session_usage.js +1 -1
  360. package/dist/database/migration/20260511000411_data_migration_state.js +1 -1
  361. package/dist/database/migration/20260511173437_session-metadata.js +1 -1
  362. package/dist/database/migration/20260601010001_normalize_storage_paths.js +1 -1
  363. package/dist/database/migration/20260601202201_amazing_prowler.js +1 -1
  364. package/dist/database/migration/20260602002951_lowly_union_jack.js +1 -1
  365. package/dist/database/migration/20260602182828_add_project_directories.js +1 -1
  366. package/dist/database/migration/20260603001617_session_message_projection_indexes.js +1 -1
  367. package/dist/database/migration/20260603040000_session_message_projection_order.js +1 -1
  368. package/dist/database/migration/20260603141458_session_input_inbox.js +1 -1
  369. package/dist/database/migration/20260603160727_jittery_ezekiel_stane.js +1 -1
  370. package/dist/database/migration/20260604172448_event_sourced_session_input.js +1 -1
  371. package/dist/database/migration/20260605003541_add_session_context_snapshot.js +1 -1
  372. package/dist/database/migration/20260605042240_add_context_epoch_agent.js +1 -1
  373. package/dist/database/migration/20260611035744_credential.js +1 -1
  374. package/dist/database/migration/20260611192811_lush_chimera.js +1 -1
  375. package/dist/database/migration/20260612174303_project_dir_strategy.js +1 -1
  376. package/dist/database/migration/20260622142730_simplify_session_context_epoch.js +1 -1
  377. package/dist/database/migration/20260622170816_reset_v2_session_state.js +1 -1
  378. package/dist/database/migration/20260622202450_simplify_session_input.js +1 -1
  379. package/dist/database/migration/20260804233008_loose_psylocke.js +1 -1
  380. package/dist/database/migration/20260805200742_import_legacy_credentials.js +1 -1
  381. package/dist/database/migration/20260808023530_workspace_domain.js +1 -1
  382. package/dist/database/migration/20260811161259_execution_claim_attempts.js +1 -1
  383. package/dist/database/migration/20260812181746_session_inbox.js +1 -1
  384. package/dist/database/migration/20260812213948_worktree.js +1 -1
  385. package/dist/database/migration/20260819222447_session_viewed_state.js +1 -1
  386. package/dist/database/migration/20260823191254_nullable_workspace_binding.js +1 -1
  387. package/dist/database/migration/20260910120000_clear_v1_session_permission.js +1 -1
  388. package/dist/database/migration/20260923013825_project_time_active.js +1 -1
  389. package/dist/database/migration/20261007190000_azure_cli_external_credential.js +1 -1
  390. package/dist/database/migration/20261010180456_project_time_archived.js +1 -1
  391. package/dist/database/migration.gen.js +51 -51
  392. package/dist/database/migration.js +53 -53
  393. package/dist/database/path.js +5 -3
  394. package/dist/database/schema.gen.js +1 -1
  395. package/dist/database/schema.sql.js +1 -1
  396. package/dist/database/sqlite.bun.js +1 -1
  397. package/dist/database/sqlite.js +1 -1
  398. package/dist/database/sqlite.node.js +1 -1
  399. package/dist/database/sqlite.workerd.js +1 -1
  400. package/dist/database/v1-migration.bun.js +168 -87
  401. package/dist/database/v1-migration.js +1 -1
  402. package/dist/effect/app-node-builder.js +370 -370
  403. package/dist/effect/app-node-platform.js +2 -2
  404. package/dist/effect/keyed-mutex.js +1 -1
  405. package/dist/effect/websocket-constructor.js +1 -1
  406. package/dist/environment/driver.js +1 -1
  407. package/dist/environment/environment.js +95 -95
  408. package/dist/environment/exec-defaults.js +2 -2
  409. package/dist/environment/files.js +1 -1
  410. package/dist/environment/index.js +97 -97
  411. package/dist/environment/local.js +2 -2
  412. package/dist/environment/memory.js +2 -2
  413. package/dist/environment/unavailable.js +1 -1
  414. package/dist/event/sql.js +1 -1
  415. package/dist/event-logger.js +72 -72
  416. package/dist/file-access.js +106 -106
  417. package/dist/file-mutation.js +96 -96
  418. package/dist/file-retention.js +1 -1
  419. package/dist/filesystem/fff.bun.js +2 -2
  420. package/dist/filesystem/fff.js +1 -1
  421. package/dist/filesystem/fff.node.js +2 -2
  422. package/dist/filesystem/fff.workerd.js +2 -2
  423. package/dist/filesystem/location-watcher-policy.js +6 -6
  424. package/dist/filesystem/location-watcher.js +225 -219
  425. package/dist/filesystem/protected.js +1 -1
  426. package/dist/filesystem/search.js +101 -107
  427. package/dist/filesystem/watcher-binding.js +1 -1
  428. package/dist/filesystem/watcher.js +11 -17
  429. package/dist/filesystem.js +104 -110
  430. package/dist/form.js +80 -80
  431. package/dist/formatter/builtins.js +4 -4
  432. package/dist/formatter.js +89 -89
  433. package/dist/generate.js +107 -106
  434. package/dist/git.js +10 -10
  435. package/dist/github-copilot/chat/convert-to-openai-compatible-chat-messages.js +1 -1
  436. package/dist/github-copilot/chat/get-response-metadata.js +1 -1
  437. package/dist/github-copilot/chat/map-openai-compatible-finish-reason.js +1 -1
  438. package/dist/github-copilot/chat/openai-compatible-chat-language-model.js +7 -7
  439. package/dist/github-copilot/chat/openai-compatible-chat-options.js +1 -1
  440. package/dist/github-copilot/chat/openai-compatible-prepare-tools.js +1 -1
  441. package/dist/github-copilot/copilot-provider.js +17 -17
  442. package/dist/github-copilot/models.js +93 -93
  443. package/dist/github-copilot/openai-compatible-error.js +1 -1
  444. package/dist/github-copilot/responses/convert-to-openai-responses-input.js +1 -1
  445. package/dist/github-copilot/responses/map-openai-responses-finish-reason.js +1 -1
  446. package/dist/github-copilot/responses/openai-error.js +1 -1
  447. package/dist/github-copilot/responses/openai-responses-language-model.js +10 -10
  448. package/dist/github-copilot/responses/openai-responses-prepare-tools.js +6 -6
  449. package/dist/github-copilot/responses/tool/code-interpreter.js +1 -1
  450. package/dist/github-copilot/responses/tool/file-search.js +1 -1
  451. package/dist/github-copilot/responses/tool/image-generation.js +1 -1
  452. package/dist/github-copilot/responses/tool/web-search-preview.js +1 -1
  453. package/dist/github-copilot/responses/tool/web-search.js +1 -1
  454. package/dist/image/photon.js +2 -2
  455. package/dist/image.js +6 -6
  456. package/dist/instance/service.js +5 -5
  457. package/dist/instance.js +361 -361
  458. package/dist/instruction-discovery.js +82 -82
  459. package/dist/instructions/builtins.js +89 -89
  460. package/dist/instructions/index.js +1 -1
  461. package/dist/integration/connection.js +1 -1
  462. package/dist/integration.js +85 -85
  463. package/dist/job.js +80 -80
  464. package/dist/kv/sql.js +2 -2
  465. package/dist/kv.js +75 -75
  466. package/dist/location-activity.js +156 -155
  467. package/dist/location-lifecycle.js +109 -109
  468. package/dist/location-service-map.js +88 -88
  469. package/dist/location-services.js +358 -358
  470. package/dist/location.js +89 -89
  471. package/dist/managed-policy.js +8 -8
  472. package/dist/mcp/client.js +115 -107
  473. package/dist/mcp/index.js +105 -105
  474. package/dist/mcp/instructions.js +140 -131
  475. package/dist/mcp/oauth.js +89 -83
  476. package/dist/mcp/socket-client.js +71 -0
  477. package/dist/mcp/stdio.js +92 -92
  478. package/dist/mime.js +4 -2
  479. package/dist/modal/models.js +93 -93
  480. package/dist/model-resolver.js +101 -100
  481. package/dist/model-retry.js +1 -1
  482. package/dist/model.js +102 -102
  483. package/dist/models-dev.js +109 -109
  484. package/dist/oauth/page.js +1 -1
  485. package/dist/permission/saved.js +76 -82
  486. package/dist/permission/sql.js +5 -5
  487. package/dist/permission.js +107 -113
  488. package/dist/persistent-pty/binary.bun.js +1 -1
  489. package/dist/persistent-pty/daemon.js +1 -1
  490. package/dist/persistent-pty/index.js +82 -82
  491. package/dist/persistent-pty/pty-binding.js +1 -1
  492. package/dist/persistent-pty.js +77 -77
  493. package/dist/plugin/agent.js +78 -78
  494. package/dist/plugin/command.js +104 -104
  495. package/dist/plugin/hooks.js +5 -5
  496. package/dist/plugin/host.js +218 -212
  497. package/dist/plugin/identity.js +3 -3
  498. package/dist/plugin/instance.js +5 -5
  499. package/dist/plugin/internal.js +333 -332
  500. package/dist/plugin/mcp-codemode-defaults.js +3 -3
  501. package/dist/plugin/models-dev.js +98 -98
  502. package/dist/plugin/module.js +115 -115
  503. package/dist/plugin/optimize.js +4 -4
  504. package/dist/plugin/plan.js +104 -104
  505. package/dist/plugin/promise.js +1 -1
  506. package/dist/plugin/provider/amazon-bedrock.js +92 -92
  507. package/dist/plugin/provider/azure.js +116 -116
  508. package/dist/plugin/provider/cerebras.js +1 -1
  509. package/dist/plugin/provider/chatgpt.js +116 -116
  510. package/dist/plugin/provider/cloudflare-ai-gateway.js +113 -113
  511. package/dist/plugin/provider/cloudflare-workers-ai.js +113 -114
  512. package/dist/plugin/provider/cohere.js +2 -2
  513. package/dist/plugin/provider/configured.js +112 -112
  514. package/dist/plugin/provider/databricks.js +1 -1
  515. package/dist/plugin/provider/digitalocean.js +95 -95
  516. package/dist/plugin/provider/dynamic.js +2 -2
  517. package/dist/plugin/provider/factory.js +1 -1
  518. package/dist/plugin/provider/github-copilot.js +97 -97
  519. package/dist/plugin/provider/gitlab.js +95 -95
  520. package/dist/plugin/provider/google-vertex.js +113 -113
  521. package/dist/plugin/provider/kilo.js +1 -1
  522. package/dist/plugin/provider/llmgateway.js +80 -80
  523. package/dist/plugin/provider/lmstudio.js +123 -123
  524. package/dist/plugin/provider/local.js +122 -122
  525. package/dist/plugin/provider/modal.js +94 -94
  526. package/dist/plugin/provider/neon.js +1 -1
  527. package/dist/plugin/provider/nvidia.js +1 -1
  528. package/dist/plugin/provider/ollama.js +125 -125
  529. package/dist/plugin/provider/openai-context-caps.js +97 -0
  530. package/dist/plugin/provider/openai.js +118 -118
  531. package/dist/plugin/provider/opencode.js +103 -100
  532. package/dist/plugin/provider/openrouter.js +93 -93
  533. package/dist/plugin/provider/perplexity.js +2 -2
  534. package/dist/plugin/provider/poe.js +81 -81
  535. package/dist/plugin/provider/prompt-cache-key.js +1 -1
  536. package/dist/plugin/provider/sap-ai-core.js +93 -93
  537. package/dist/plugin/provider/sdk-factory.js +1 -1
  538. package/dist/plugin/provider/snowflake-cortex.js +115 -115
  539. package/dist/plugin/provider/vercel.js +92 -92
  540. package/dist/plugin/provider/vllm.js +123 -123
  541. package/dist/plugin/provider/xai.js +93 -93
  542. package/dist/plugin/provider/zenmux.js +1 -1
  543. package/dist/plugin/provider.js +171 -168
  544. package/dist/plugin/sdk.js +78 -78
  545. package/dist/plugin/service.js +3 -3
  546. package/dist/plugin/skill.js +134 -134
  547. package/dist/plugin/source-directory.js +1 -1
  548. package/dist/plugin/supervisor.js +350 -349
  549. package/dist/plugin/tool-input-repair.js +4 -4
  550. package/dist/plugin/update.js +6 -6
  551. package/dist/plugin/vcs/git.js +88 -88
  552. package/dist/plugin/vcs/hg.js +88 -88
  553. package/dist/plugin/verbosity.js +95 -95
  554. package/dist/plugin/warming.js +114 -114
  555. package/dist/plugin/websearch/exa.js +7 -7
  556. package/dist/plugin/websearch/firecrawl.js +6 -6
  557. package/dist/plugin/websearch/index.js +9 -9
  558. package/dist/plugin/websearch/mcp.js +6 -6
  559. package/dist/plugin/websearch/parallel.js +6 -6
  560. package/dist/plugin/websearch/tavily.js +6 -6
  561. package/dist/plugin/websearch/tinyfish.js +8 -8
  562. package/dist/plugin.js +229 -223
  563. package/dist/project/schema.js +8 -8
  564. package/dist/project/sql.js +4 -4
  565. package/dist/project.js +92 -92
  566. package/dist/provider.js +97 -97
  567. package/dist/pty/protocol.js +1 -1
  568. package/dist/pty/ticket.js +11 -4
  569. package/dist/pty.js +99 -99
  570. package/dist/reference/instructions.js +91 -91
  571. package/dist/reference.js +91 -91
  572. package/dist/repository-cache.js +83 -83
  573. package/dist/repository.js +1 -1
  574. package/dist/ripgrep/binary.js +2 -2
  575. package/dist/ripgrep.js +97 -97
  576. package/dist/rpc.js +88 -88
  577. package/dist/schema.js +1 -1
  578. package/dist/session/affinity.js +1 -1
  579. package/dist/session/command.js +76 -76
  580. package/dist/session/compaction.js +136 -136
  581. package/dist/session/context.js +164 -155
  582. package/dist/session/diff.js +90 -90
  583. package/dist/session/environment.js +5 -5
  584. package/dist/session/error.js +5 -5
  585. package/dist/session/event.js +1 -1
  586. package/dist/session/execution/restart.js +221 -215
  587. package/dist/session/execution.js +128 -127
  588. package/dist/session/generate.js +164 -155
  589. package/dist/session/history.js +13 -15
  590. package/dist/session/inbox.js +93 -93
  591. package/dist/session/info.js +3 -3
  592. package/dist/session/instruction-entry.js +81 -81
  593. package/dist/session/instruction-state.js +8 -8
  594. package/dist/session/instructions.js +99 -99
  595. package/dist/session/message-updater.js +2 -2
  596. package/dist/session/message.js +1 -1
  597. package/dist/session/model-request.js +122 -122
  598. package/dist/session/model-transport.js +9 -9
  599. package/dist/session/move.js +132 -131
  600. package/dist/session/projector.js +91 -91
  601. package/dist/session/prompt.js +107 -107
  602. package/dist/session/recent-text.js +1 -1
  603. package/dist/session/revert.js +96 -96
  604. package/dist/session/run-coordinator.js +3 -3
  605. package/dist/session/runner/index.js +3 -3
  606. package/dist/session/runner/llm.js +231 -225
  607. package/dist/session/runner/max-steps.js +1 -1
  608. package/dist/session/runner/model.js +102 -100
  609. package/dist/session/runner/publish-llm-event.js +116 -115
  610. package/dist/session/runner/retry.js +5 -5
  611. package/dist/session/runner/step.js +128 -128
  612. package/dist/session/runner/to-llm-message.js +14 -14
  613. package/dist/session/schema.js +1 -1
  614. package/dist/session/session.js +165 -164
  615. package/dist/session/shell.js +130 -130
  616. package/dist/session/skill.js +105 -105
  617. package/dist/session/sql.js +5 -5
  618. package/dist/session/stats.js +75 -75
  619. package/dist/session/store.js +89 -89
  620. package/dist/session/subagent-completion.js +1 -1
  621. package/dist/session/subagent-job.js +212 -206
  622. package/dist/session/system-prompt.js +3 -3
  623. package/dist/session/title.js +168 -159
  624. package/dist/session/to-session-error.js +114 -113
  625. package/dist/session/transfer.js +215 -209
  626. package/dist/session/usage.js +1 -1
  627. package/dist/session.js +216 -208
  628. package/dist/shell/parse.js +6 -6
  629. package/dist/shell/result.js +1 -1
  630. package/dist/shell/scan.js +1 -1
  631. package/dist/shell/select.js +11 -11
  632. package/dist/shell.js +132 -132
  633. package/dist/skill/discovery.js +6 -6
  634. package/dist/skill/instructions.js +109 -109
  635. package/dist/skill.js +114 -114
  636. package/dist/snapshot.js +91 -91
  637. package/dist/state.js +1 -1
  638. package/dist/tool/html-markdown.js +1 -1
  639. package/dist/tool/http-body.js +1 -1
  640. package/dist/tool/mcp.js +139 -130
  641. package/dist/tool/plugin/edit.js +120 -120
  642. package/dist/tool/plugin/file-diff.js +1 -1
  643. package/dist/tool/plugin/glob.js +126 -126
  644. package/dist/tool/plugin/grep.js +124 -124
  645. package/dist/tool/plugin/mcp-resource.js +126 -119
  646. package/dist/tool/plugin/opencode.js +111 -111
  647. package/dist/tool/plugin/patch.js +124 -124
  648. package/dist/tool/plugin/question.js +107 -107
  649. package/dist/tool/plugin/read.js +127 -127
  650. package/dist/tool/plugin/shell.js +215 -209
  651. package/dist/tool/plugin/skill.js +115 -115
  652. package/dist/tool/plugin/subagent.js +215 -209
  653. package/dist/tool/plugin/todo.js +136 -136
  654. package/dist/tool/plugin/webfetch.js +115 -114
  655. package/dist/tool/plugin/websearch.js +112 -112
  656. package/dist/tool/plugin/write.js +124 -124
  657. package/dist/tool/read-filesystem.js +104 -104
  658. package/dist/tool/runtime.js +4 -2
  659. package/dist/tool-output.js +7 -7
  660. package/dist/tool.js +14 -14
  661. package/dist/types/agent.d.ts +3 -3
  662. package/dist/types/aisdk.d.ts +2 -2
  663. package/dist/types/codemode/catalog.d.ts +7 -8
  664. package/dist/types/codemode/tool.d.ts +1 -7
  665. package/dist/types/database/path.d.ts +1 -0
  666. package/dist/types/database/v1-migration.bun.d.ts +4 -2
  667. package/dist/types/file-access.d.ts +2 -2
  668. package/dist/types/filesystem/search.d.ts +4 -8
  669. package/dist/types/filesystem/watcher.d.ts +6 -49
  670. package/dist/types/filesystem.d.ts +11 -13
  671. package/dist/types/github-copilot/responses/openai-responses-language-model.d.ts +2 -2
  672. package/dist/types/image/photon-wasm.bun.d.ts +1 -1
  673. package/dist/types/instance.d.ts +1 -1
  674. package/dist/types/integration.d.ts +2 -2
  675. package/dist/types/job.d.ts +1 -4
  676. package/dist/types/mcp/client.d.ts +9 -281
  677. package/dist/types/mcp/index.d.ts +8 -1
  678. package/dist/types/mcp/socket-client.d.ts +28 -0
  679. package/dist/types/mime.d.ts +1 -0
  680. package/dist/types/permission/saved.d.ts +14 -22
  681. package/dist/types/permission.d.ts +14 -40
  682. package/dist/types/persistent-pty/daemon.d.ts +33 -21
  683. package/dist/types/plugin/internal.d.ts +3 -2
  684. package/dist/types/plugin/provider/openai-context-caps.d.ts +2 -0
  685. package/dist/types/plugin/provider/opencode.d.ts +2 -1
  686. package/dist/types/project.d.ts +6 -2
  687. package/dist/types/pty/ticket.d.ts +7 -1
  688. package/dist/types/pty.d.ts +2 -2
  689. package/dist/types/session/compaction.d.ts +7 -0
  690. package/dist/types/session/diff.d.ts +0 -1
  691. package/dist/types/session/error.d.ts +6 -16
  692. package/dist/types/session/history.d.ts +269 -274
  693. package/dist/types/session/inbox.d.ts +1 -1
  694. package/dist/types/session/model-request.d.ts +1 -1
  695. package/dist/types/session/runner/model.d.ts +0 -1
  696. package/dist/types/session/runner/publish-llm-event.d.ts +3 -3
  697. package/dist/types/session/runner/step.d.ts +1 -1
  698. package/dist/types/session/schema.d.ts +6 -12
  699. package/dist/types/session/sql.d.ts +1 -1
  700. package/dist/types/session/stats.d.ts +12 -11
  701. package/dist/types/session/store.d.ts +0 -6
  702. package/dist/types/session/transfer.d.ts +19 -25
  703. package/dist/types/session.d.ts +38 -44
  704. package/dist/types/shell/parser-wasm.bun.d.ts +3 -3
  705. package/dist/types/tool/mcp.d.ts +2 -1
  706. package/dist/types/tool/plugin/opencode.d.ts +0 -2
  707. package/dist/types/tool/plugin/read.d.ts +1 -1
  708. package/dist/types/tool/plugin/subagent.d.ts +0 -2
  709. package/dist/types/tool/runtime.d.ts +1 -0
  710. package/dist/types/tool-output.d.ts +2 -0
  711. package/dist/types/v1/config/migrate.d.ts +3 -29
  712. package/dist/types/voice.d.ts +42 -2
  713. package/dist/types/worktree/sql.d.ts +1 -1
  714. package/dist/util/error-summary.js +1 -1
  715. package/dist/util/git-executable.js +2 -2
  716. package/dist/util/lazy.js +1 -1
  717. package/dist/util/slug.js +1 -1
  718. package/dist/util/token.js +1 -1
  719. package/dist/util/which.js +1 -1
  720. package/dist/util/wildcard.js +1 -1
  721. package/dist/v1/config/agent.js +5 -5
  722. package/dist/v1/config/command.js +3 -3
  723. package/dist/v1/config/mcp.js +4 -4
  724. package/dist/v1/config/migrate.js +94 -94
  725. package/dist/v1/config/permission.js +3 -3
  726. package/dist/v1/config/plugin.js +3 -3
  727. package/dist/v1/config/provider-options.js +1 -1
  728. package/dist/v1/config/provider.js +4 -4
  729. package/dist/variant.js +95 -95
  730. package/dist/vcs/patch.js +1 -1
  731. package/dist/vcs.js +89 -89
  732. package/dist/voice.js +90 -90
  733. package/dist/websearch.js +86 -86
  734. package/dist/wellknown/plugin.js +78 -78
  735. package/dist/wellknown.js +83 -83
  736. package/dist/workspace/driver.js +7 -7
  737. package/dist/workspace/sql.js +1 -1
  738. package/dist/workspace.js +82 -82
  739. package/dist/worktree/directory.js +2 -2
  740. package/dist/worktree/git.js +10 -10
  741. package/dist/worktree/sql.js +5 -5
  742. package/dist/worktree/strategies.js +91 -91
  743. package/dist/worktree.js +100 -100
  744. package/package.json +14 -13
  745. package/dist/chunks/repository-cache-136rxf1v.js +0 -71
  746. package/dist/chunks/repository-cache-1kg9ymc8.js +0 -6
  747. package/dist/chunks/repository-cache-2axfhc9x.js +0 -49
  748. package/dist/chunks/repository-cache-e5ybad6w.js +0 -257
  749. package/dist/chunks/repository-cache-rvyd7pdz.js +0 -517
  750. package/dist/chunks/repository-cache-s2jpy0bd.js +0 -26
  751. package/dist/chunks/repository-cache-vnkjks7b.js +0 -18
  752. package/dist/types/util/error.d.ts +0 -273
  753. package/dist/types/util/iife.d.ts +0 -1
  754. package/dist/types/v1/config/error.d.ts +0 -393
  755. package/dist/util/error.js +0 -6
  756. package/dist/util/iife.js +0 -6
  757. package/dist/v1/config/error.js +0 -27
  758. /package/dist/chunks/{repository-cache-0qkdqm5v.js → location-0qkdqm5v.js} +0 -0
  759. /package/dist/chunks/{repository-cache-0zkw76rk.js → location-0zkw76rk.js} +0 -0
  760. /package/dist/chunks/{repository-cache-17cy0kzp.js → location-17cy0kzp.js} +0 -0
  761. /package/dist/chunks/{repository-cache-1cnp2v09.js → location-1cnp2v09.js} +0 -0
  762. /package/dist/chunks/{repository-cache-24dcb14g.js → location-24dcb14g.js} +0 -0
  763. /package/dist/chunks/{repository-cache-2710q6r3.js → location-2710q6r3.js} +0 -0
  764. /package/dist/chunks/{repository-cache-2bv980vf.js → location-2bv980vf.js} +0 -0
  765. /package/dist/chunks/{repository-cache-2c3vjs8z.js → location-2c3vjs8z.js} +0 -0
  766. /package/dist/chunks/{repository-cache-359p4xyc.js → location-359p4xyc.js} +0 -0
  767. /package/dist/chunks/{repository-cache-3asan66x.js → location-3asan66x.js} +0 -0
  768. /package/dist/chunks/{repository-cache-3v8g72cx.js → location-3v8g72cx.js} +0 -0
  769. /package/dist/chunks/{repository-cache-3wcehsnq.js → location-3wcehsnq.js} +0 -0
  770. /package/dist/chunks/{repository-cache-43n2bw4t.js → location-43n2bw4t.js} +0 -0
  771. /package/dist/chunks/{repository-cache-4knz6hnm.js → location-4knz6hnm.js} +0 -0
  772. /package/dist/chunks/{repository-cache-4vcrnpx2.js → location-4vcrnpx2.js} +0 -0
  773. /package/dist/chunks/{repository-cache-4y7fprxs.js → location-4y7fprxs.js} +0 -0
  774. /package/dist/chunks/{repository-cache-53557ph1.js → location-53557ph1.js} +0 -0
  775. /package/dist/chunks/{repository-cache-550bvhaj.js → location-550bvhaj.js} +0 -0
  776. /package/dist/chunks/{repository-cache-5qd3pb7m.js → location-5qd3pb7m.js} +0 -0
  777. /package/dist/chunks/{repository-cache-6prwharc.js → location-6prwharc.js} +0 -0
  778. /package/dist/chunks/{repository-cache-6q2bdcd1.js → location-6q2bdcd1.js} +0 -0
  779. /package/dist/chunks/{repository-cache-7akdwqpd.js → location-7akdwqpd.js} +0 -0
  780. /package/dist/chunks/{repository-cache-7m9af43g.js → location-7m9af43g.js} +0 -0
  781. /package/dist/chunks/{repository-cache-822emrt2.js → location-822emrt2.js} +0 -0
  782. /package/dist/chunks/{repository-cache-84wd9syh.js → location-84wd9syh.js} +0 -0
  783. /package/dist/chunks/{repository-cache-88xbtdfr.js → location-88xbtdfr.js} +0 -0
  784. /package/dist/chunks/{repository-cache-8n3pysct.js → location-8n3pysct.js} +0 -0
  785. /package/dist/chunks/{repository-cache-8wj87zfr.js → location-8wj87zfr.js} +0 -0
  786. /package/dist/chunks/{repository-cache-9a4afbnw.js → location-9a4afbnw.js} +0 -0
  787. /package/dist/chunks/{repository-cache-9rqn6x4v.js → location-9rqn6x4v.js} +0 -0
  788. /package/dist/chunks/{repository-cache-a6k6eb26.js → location-a6k6eb26.js} +0 -0
  789. /package/dist/chunks/{repository-cache-af5trqkr.js → location-af5trqkr.js} +0 -0
  790. /package/dist/chunks/{repository-cache-afrmfg78.js → location-afrmfg78.js} +0 -0
  791. /package/dist/chunks/{repository-cache-aqzs7mqg.js → location-aqzs7mqg.js} +0 -0
  792. /package/dist/chunks/{repository-cache-atq7p7m5.js → location-atq7p7m5.js} +0 -0
  793. /package/dist/chunks/{repository-cache-axe3mf62.js → location-axe3mf62.js} +0 -0
  794. /package/dist/chunks/{repository-cache-bkyjaxrp.js → location-bkyjaxrp.js} +0 -0
  795. /package/dist/chunks/{repository-cache-bmr6ed5q.js → location-bmr6ed5q.js} +0 -0
  796. /package/dist/chunks/{repository-cache-cf4snx6d.js → location-cf4snx6d.js} +0 -0
  797. /package/dist/chunks/{repository-cache-cvy3z8tj.js → location-cvy3z8tj.js} +0 -0
  798. /package/dist/chunks/{repository-cache-d9fn303g.js → location-d9fn303g.js} +0 -0
  799. /package/dist/chunks/{repository-cache-d9jj8t3e.js → location-d9jj8t3e.js} +0 -0
  800. /package/dist/chunks/{repository-cache-dajrwvna.js → location-dajrwvna.js} +0 -0
  801. /package/dist/chunks/{repository-cache-dap0rakb.js → location-dap0rakb.js} +0 -0
  802. /package/dist/chunks/{repository-cache-df08tz66.js → location-df08tz66.js} +0 -0
  803. /package/dist/chunks/{repository-cache-dy18nga0.js → location-dy18nga0.js} +0 -0
  804. /package/dist/chunks/{repository-cache-e5kj55wp.js → location-e5kj55wp.js} +0 -0
  805. /package/dist/chunks/{repository-cache-e73j6tqm.js → location-e73j6tqm.js} +0 -0
  806. /package/dist/chunks/{repository-cache-ec1grn59.js → location-ec1grn59.js} +0 -0
  807. /package/dist/chunks/{repository-cache-eh3zwz77.js → location-eh3zwz77.js} +0 -0
  808. /package/dist/chunks/{repository-cache-emrn6kk6.js → location-emrn6kk6.js} +0 -0
  809. /package/dist/chunks/{repository-cache-f0mxakyp.js → location-f0mxakyp.js} +0 -0
  810. /package/dist/chunks/{repository-cache-f6n9ztr4.js → location-f6n9ztr4.js} +0 -0
  811. /package/dist/chunks/{repository-cache-faypxj3z.js → location-faypxj3z.js} +0 -0
  812. /package/dist/chunks/{repository-cache-fd410y7t.js → location-fd410y7t.js} +0 -0
  813. /package/dist/chunks/{repository-cache-g4wezp1m.js → location-g4wezp1m.js} +0 -0
  814. /package/dist/chunks/{repository-cache-g86h250q.js → location-g86h250q.js} +0 -0
  815. /package/dist/chunks/{repository-cache-gebd4c9n.js → location-gebd4c9n.js} +0 -0
  816. /package/dist/chunks/{repository-cache-gftt206x.js → location-gftt206x.js} +0 -0
  817. /package/dist/chunks/{repository-cache-hcxmzztb.js → location-hcxmzztb.js} +0 -0
  818. /package/dist/chunks/{repository-cache-hk9envan.js → location-hk9envan.js} +0 -0
  819. /package/dist/chunks/{repository-cache-j2ntwpah.js → location-j2ntwpah.js} +0 -0
  820. /package/dist/chunks/{repository-cache-j5zkgpj8.js → location-j5zkgpj8.js} +0 -0
  821. /package/dist/chunks/{repository-cache-jjkms2e6.js → location-jjkms2e6.js} +0 -0
  822. /package/dist/chunks/{repository-cache-jr7sbwjy.js → location-jr7sbwjy.js} +0 -0
  823. /package/dist/chunks/{repository-cache-jwfs4k6c.js → location-jwfs4k6c.js} +0 -0
  824. /package/dist/chunks/{repository-cache-jze0r7bz.js → location-jze0r7bz.js} +0 -0
  825. /package/dist/chunks/{repository-cache-jzg6c2d5.js → location-jzg6c2d5.js} +0 -0
  826. /package/dist/chunks/{repository-cache-m18g726c.js → location-m18g726c.js} +0 -0
  827. /package/dist/chunks/{repository-cache-mp448xyj.js → location-mp448xyj.js} +0 -0
  828. /package/dist/chunks/{repository-cache-msx8hqn2.js → location-msx8hqn2.js} +0 -0
  829. /package/dist/chunks/{repository-cache-n05xt0ee.js → location-n05xt0ee.js} +0 -0
  830. /package/dist/chunks/{repository-cache-n3j8tn72.js → location-n3j8tn72.js} +0 -0
  831. /package/dist/chunks/{repository-cache-njntx4h6.js → location-njntx4h6.js} +0 -0
  832. /package/dist/chunks/{repository-cache-pkyv6v7h.js → location-pkyv6v7h.js} +0 -0
  833. /package/dist/chunks/{repository-cache-q3sfg36h.js → location-q3sfg36h.js} +0 -0
  834. /package/dist/chunks/{repository-cache-q74kybfr.js → location-q74kybfr.js} +0 -0
  835. /package/dist/chunks/{repository-cache-qaymkmh1.js → location-qaymkmh1.js} +0 -0
  836. /package/dist/chunks/{repository-cache-qb87gjwd.js → location-qb87gjwd.js} +0 -0
  837. /package/dist/chunks/{repository-cache-qfa1cgps.js → location-qfa1cgps.js} +0 -0
  838. /package/dist/chunks/{repository-cache-qg3g05ea.js → location-qg3g05ea.js} +0 -0
  839. /package/dist/chunks/{repository-cache-qrg20bc0.js → location-qrg20bc0.js} +0 -0
  840. /package/dist/chunks/{repository-cache-rcb2kzg1.js → location-rcb2kzg1.js} +0 -0
  841. /package/dist/chunks/{repository-cache-sdp7kfr6.js → location-sdp7kfr6.js} +0 -0
  842. /package/dist/chunks/{repository-cache-ssg3fenm.js → location-ssg3fenm.js} +0 -0
  843. /package/dist/chunks/{repository-cache-ve7vex1e.js → location-ve7vex1e.js} +0 -0
  844. /package/dist/chunks/{repository-cache-w803qqfp.js → location-w803qqfp.js} +0 -0
  845. /package/dist/chunks/{repository-cache-wc3fc9cn.js → location-wc3fc9cn.js} +0 -0
  846. /package/dist/chunks/{repository-cache-wer8tq1h.js → location-wer8tq1h.js} +0 -0
  847. /package/dist/chunks/{repository-cache-wjj7prxr.js → location-wjj7prxr.js} +0 -0
  848. /package/dist/chunks/{repository-cache-wtztk69x.js → location-wtztk69x.js} +0 -0
  849. /package/dist/chunks/{repository-cache-x0ckcb58.js → location-x0ckcb58.js} +0 -0
  850. /package/dist/chunks/{repository-cache-x61499pn.js → location-x61499pn.js} +0 -0
  851. /package/dist/chunks/{repository-cache-y44na4kk.js → location-y44na4kk.js} +0 -0
  852. /package/dist/chunks/{repository-cache-y8f7s663.js → location-y8f7s663.js} +0 -0
  853. /package/dist/chunks/{repository-cache-ygaqb7jw.js → location-ygaqb7jw.js} +0 -0
  854. /package/dist/chunks/{repository-cache-ym463w8f.js → location-ym463w8f.js} +0 -0
  855. /package/dist/chunks/{repository-cache-z5v4ffb3.js → location-z5v4ffb3.js} +0 -0
  856. /package/dist/chunks/{repository-cache-z9919s4g.js → location-z9919s4g.js} +0 -0
@@ -1,41 +1,46 @@
1
1
  import {
2
2
  useragent2
3
- } from "./repository-cache-4m3ygwz0.js";
3
+ } from "./location-7jg3h9xc.js";
4
4
  import {
5
5
  Service85
6
- } from "./repository-cache-z1fx9rk1.js";
6
+ } from "./location-wedh6qfb.js";
7
7
  import {
8
8
  OAuth3,
9
- Event21
10
- } from "./repository-cache-ke7rr379.js";
9
+ Event19
10
+ } from "./location-v0ajt838.js";
11
11
  import {
12
12
  key2
13
- } from "./repository-cache-addxnjmp.js";
13
+ } from "./location-bjhzkqyk.js";
14
14
  import {
15
15
  ID14,
16
16
  MethodID2,
17
17
  AuthorizationError2
18
- } from "./repository-cache-t8z4ntba.js";
18
+ } from "./location-dgj49q4q.js";
19
19
  import {
20
- Service18
21
- } from "./repository-cache-3g642jy4.js";
20
+ Service25
21
+ } from "./location-ytvhabzn.js";
22
22
  import {
23
23
  ID13,
24
24
  mergeOverlay2,
25
25
  mergeHeaders2
26
- } from "./repository-cache-1hyfwtsr.js";
26
+ } from "./location-ght5gt7k.js";
27
27
  import {
28
28
  mergeCapabilities2
29
- } from "./repository-cache-hnvjv21h.js";
29
+ } from "./location-6b66j3w1.js";
30
30
  import {
31
31
  supports2,
32
- resolve4
33
- } from "./repository-cache-a9vzac7j.js";
32
+ resolve2
33
+ } from "./location-239z01gj.js";
34
34
  import {
35
- ID5,
36
- Input15,
35
+ InvalidRequestError2,
36
+ UnavailableError3,
37
+ Service24
38
+ } from "./location-hzsp1kxy.js";
39
+ import {
40
+ ID4,
41
+ Input14,
37
42
  Response2
38
- } from "./repository-cache-ez5pkgh4.js";
43
+ } from "./location-nes0ks30.js";
39
44
 
40
45
  // src/plugin/provider/opencode.ts
41
46
  import {
@@ -73,11 +78,16 @@ var RemotePolicies = Schema.Array(Schema.Unknown).pipe(Schema.decodeTo(Schema.Un
73
78
  var RemoteResponse = Schema.Struct({
74
79
  providers: Schema.Record(Schema.String, ConfigProvider.Info),
75
80
  websearch: Schema.Struct({
76
- providerID: ID5
81
+ providerID: ID4
77
82
  }).pipe(Schema.optional),
78
83
  mcp: Schema.Struct({
79
84
  servers: Schema.Record(Schema.String, Schema.Struct({ ...Mcp.RemoteConfig.fields, auth: Schema.Literal("console").pipe(Schema.optional) }))
80
85
  }).pipe(Schema.optional),
86
+ voice: Schema.Struct({
87
+ baseURL: Schema.String,
88
+ models: Schema.Array(Schema.String),
89
+ workspace: Schema.String.pipe(Schema.optional)
90
+ }).pipe(Schema.optional),
81
91
  policies: RemotePolicies,
82
92
  experimental: Schema.Struct({ policies: RemotePolicies }).pipe(Schema.optional)
83
93
  });
@@ -104,6 +114,8 @@ var SsoRequired = Schema.Struct({
104
114
  connectionId: Schema.String
105
115
  });
106
116
  var InvalidGrant = Schema.Struct({ error: Schema.Literal("invalid_grant") });
117
+ var LiveSession = Schema.fromJsonString(Schema.Struct({ session: Schema.Struct({ id: Schema.String }), transport: Schema.Struct({ sdp: Schema.String }) }));
118
+ var InferenceError = Schema.fromJsonString(Schema.Struct({ error: Schema.Struct({ message: Schema.String }) }));
107
119
  var Unauthorized = Schema.Struct({ _tag: Schema.Literal("Unauthorized") });
108
120
  var signedOutMessage = "Reconnect OpenCode Console to continue";
109
121
  var ssoMessage = (organization) => `Sign in with SSO again to use ${organization ?? "your OpenCode Console organization"}`;
@@ -192,7 +204,8 @@ var OpencodePlugin2 = define({
192
204
  const bus = yield* Service85;
193
205
  const client = yield* HttpClient.HttpClient;
194
206
  const http = HttpClient.mapRequest(client, HttpClientRequest.setHeader("User-Agent", useragent2(ctx.app)));
195
- const managed = yield* Service18;
207
+ const managed = yield* Service25;
208
+ const voice = yield* Service24;
196
209
  const scope = yield* Scope.Scope;
197
210
  const loading = Semaphore.makeUnsafe(1);
198
211
  let snapshot = { config: undefined, connection: undefined, organization: undefined, mcp: undefined };
@@ -227,10 +240,57 @@ var OpencodePlugin2 = define({
227
240
  return key2(connection) === key2(snapshot.connection) ? { config: snapshot.config, connection, organization: snapshot.organization, mcp: snapshot.mcp } : { config: undefined, connection, organization: undefined, mcp: undefined };
228
241
  })));
229
242
  });
230
- const publish = (next) => managed.set({
231
- statements: [...next.config?.experimental?.policies ?? [], ...next.config?.policies ?? []],
232
- organization: next.organization
243
+ const resolveActive = Effect.fnUntraced(function* (connection) {
244
+ const active = yield* ctx.integration.connection.active("opencode");
245
+ if (!active || key2(active) !== key2(connection))
246
+ return yield* Effect.fail(new Error("OpenCode Console connection changed"));
247
+ const credential = yield* ctx.integration.connection.resolve(active);
248
+ if (!credential || credential.type === "external")
249
+ return yield* Effect.fail(new Error("OpenCode Console is not connected"));
250
+ return credential;
233
251
  });
252
+ const consoleVoice = (connection, offer) => {
253
+ const send = (path, body) => Effect.gen(function* () {
254
+ const credential = yield* resolveActive(connection);
255
+ const response = yield* HttpClient.withScope(http).execute(HttpClientRequest.post(`${offer.baseURL}${path}`).pipe(HttpClientRequest.acceptJson, HttpClientRequest.setHeaders(credentialHeaders(credential)), HttpClientRequest.bodyJsonUnsafe(body)));
256
+ return { status: response.status, text: yield* response.text };
257
+ }).pipe(Effect.provideService(FetchHttpClient.RequestInit, { redirect: "error" }), Effect.scoped, Effect.timeoutOrElse({
258
+ duration: Duration.seconds(20),
259
+ orElse: () => Effect.fail(new Error("OpenCode Console didn't answer in time"))
260
+ }), Effect.mapError((cause) => new UnavailableError3({
261
+ service: "opencode",
262
+ message: cause instanceof Error ? cause.message : String(cause)
263
+ })), Effect.flatMap((reply) => {
264
+ if (reply.status >= 200 && reply.status < 300)
265
+ return Effect.succeed(reply.text);
266
+ if (reply.status === 401)
267
+ return Effect.fail(new UnavailableError3({ service: "opencode", message: `${signedOutMessage}.` }));
268
+ const message = Option.getOrUndefined(Schema.decodeUnknownOption(InferenceError)(reply.text))?.error.message ?? `OpenCode Console refused the voice request (HTTP ${reply.status})`;
269
+ return Effect.fail(reply.status === 400 || reply.status === 404 ? new InvalidRequestError2({ message }) : new UnavailableError3({ service: "opencode", message }));
270
+ }));
271
+ return {
272
+ integration: "opencode",
273
+ models: offer.models,
274
+ workspace: offer.workspace,
275
+ session: (input) => send("/live/sessions", { session: { ...input.session, model: input.model }, transport: input.transport }).pipe(Effect.flatMap((text) => Schema.decodeUnknownEffect(LiveSession)(text).pipe(Effect.mapError(() => new UnavailableError3({
276
+ service: "opencode",
277
+ message: "OpenCode Console returned an invalid voice session"
278
+ })))), Effect.map((created) => ({
279
+ transport: { type: "webrtc", sdp: created.transport.sdp },
280
+ id: created.session.id
281
+ }))),
282
+ instruct: (input) => send(`/live/sessions/${encodeURIComponent(input.id)}/instructions`, {
283
+ instructions: input.instructions
284
+ }).pipe(Effect.asVoid)
285
+ };
286
+ };
287
+ const publish = (next) => Effect.all([
288
+ managed.set({
289
+ statements: [...next.config?.experimental?.policies ?? [], ...next.config?.policies ?? []],
290
+ organization: next.organization
291
+ }),
292
+ voice.host(next.connection && next.config?.voice ? consoleVoice(next.connection, next.config.voice) : undefined)
293
+ ], { discard: true });
234
294
  yield* ctx.integration.transform((editor) => {
235
295
  editor.update("opencode", (integration) => {
236
296
  integration.name = "OpenCode Console";
@@ -284,7 +344,7 @@ var OpencodePlugin2 = define({
284
344
  providers.models.update(providerID, modelID, (model) => {
285
345
  if (config.capabilities?.reasoning !== undefined)
286
346
  model.variants = [
287
- ...resolve4({ ...model, package: model.package ?? providers.get(providerID)?.provider.package }, supports2(config.capabilities.reasoning))
347
+ ...resolve2({ ...model, package: model.package ?? providers.get(providerID)?.provider.package }, supports2(config.capabilities.reasoning))
288
348
  ];
289
349
  for (const variant of config.variants ?? []) {
290
350
  let existing = model.variants.find((item) => item.id === variant.id);
@@ -355,18 +415,12 @@ var OpencodePlugin2 = define({
355
415
  id: descriptor.providerID,
356
416
  name: "OpenCode Web Search",
357
417
  execute: (input) => Effect.gen(function* () {
358
- const active = yield* ctx.integration.connection.active("opencode");
359
- if (!active || (connection.type === "credential" ? active.type !== "credential" || active.id !== connection.id : active.type !== "env" || active.name !== connection.name)) {
360
- return yield* Effect.fail(new Error("OpenCode Console connection changed"));
361
- }
362
- const credential = yield* ctx.integration.connection.resolve(active);
363
- if (!credential || credential.type === "external")
364
- return yield* Effect.fail(new Error("OpenCode Console is not connected"));
418
+ const credential = yield* resolveActive(connection);
365
419
  const metadata = credential.metadata;
366
420
  const orgID = typeof metadata?.orgID === "string" ? metadata.orgID : undefined;
367
421
  const token = credential.type === "oauth" ? credential.access : credential.key;
368
422
  const server = yield* normalizeServer(serverUrl(credential));
369
- const request = yield* HttpClientRequest.post(`${server}/api/websearch`).pipe(HttpClientRequest.acceptJson, HttpClientRequest.bearerToken(token), HttpClientRequest.setHeaders(orgID ? { "x-org-id": orgID } : {}), HttpClientRequest.schemaBodyJson(Input15)({
423
+ const request = yield* HttpClientRequest.post(`${server}/api/websearch`).pipe(HttpClientRequest.acceptJson, HttpClientRequest.bearerToken(token), HttpClientRequest.setHeaders(orgID ? { "x-org-id": orgID } : {}), HttpClientRequest.schemaBodyJson(Input14)({
370
424
  query: input.query,
371
425
  providerID: descriptor.providerID
372
426
  }));
@@ -438,7 +492,7 @@ var OpencodePlugin2 = define({
438
492
  onlyIfMissing: true
439
493
  });
440
494
  });
441
- yield* bus.subscribe(Event21.Switched).pipe(Stream.filter((event) => event.data.integrationID === ID14.make("opencode")), Stream.runForEach(() => refresh().pipe(Effect.andThen(poll()))), Effect.forkScoped({ startImmediately: true }));
495
+ yield* bus.subscribe(Event19.Switched).pipe(Stream.filter((event) => event.data.integrationID === ID14.make("opencode")), Stream.runForEach(() => refresh().pipe(Effect.andThen(poll()))), Effect.forkScoped({ startImmediately: true }));
442
496
  yield* poll();
443
497
  })
444
498
  });
@@ -1,32 +1,32 @@
1
1
  import {
2
2
  Service85,
3
3
  node89
4
- } from "./repository-cache-z1fx9rk1.js";
4
+ } from "./location-wedh6qfb.js";
5
5
  import {
6
6
  create3
7
- } from "./repository-cache-rdw6cm16.js";
7
+ } from "./location-vd3b3yk9.js";
8
8
  import {
9
9
  evaluate2
10
- } from "./repository-cache-2ntc19nv.js";
10
+ } from "./location-tseqrb92.js";
11
11
  import {
12
12
  __export
13
- } from "./repository-cache-9rqn6x4v.js";
13
+ } from "./location-9rqn6x4v.js";
14
14
 
15
15
  // src/skill.ts
16
16
  var exports_skill5 = {};
17
17
  __export(exports_skill5, {
18
18
  DirectorySource: () => DirectorySource2,
19
19
  EmbeddedSource: () => EmbeddedSource2,
20
- Event: () => Event5,
21
- ID: () => ID3,
22
- Info: () => Info5,
20
+ Event: () => Event13,
21
+ ID: () => ID8,
22
+ Info: () => Info18,
23
23
  Name: () => Name2,
24
- Service: () => Service34,
24
+ Service: () => Service71,
25
25
  Skill: () => exports_skill5,
26
- Source: () => Source3,
26
+ Source: () => Source4,
27
27
  UrlSource: () => UrlSource2,
28
28
  available: () => available3,
29
- node: () => node37,
29
+ node: () => node75,
30
30
  prepare: () => prepare3,
31
31
  toModelOutput: () => toModelOutput3
32
32
  });
@@ -35,13 +35,13 @@ import { FSUtil } from "@opencode/util/fs-util";
35
35
  import path from "path";
36
36
  import { Context, Effect, Layer } from "effect";
37
37
  import { Skill } from "@opencode/schema/skill";
38
- import { Event as Event5 } from "@opencode/schema/skill";
38
+ import { Event as Event13 } from "@opencode/schema/skill";
39
39
  var DirectorySource2 = Skill.DirectorySource;
40
40
  var UrlSource2 = Skill.UrlSource;
41
41
  var EmbeddedSource2 = Skill.EmbeddedSource;
42
- var Source3 = Skill.Source;
43
- var Info5 = Skill.Info;
44
- var ID3 = Skill.ID;
42
+ var Source4 = Skill.Source;
43
+ var Info18 = Skill.Info;
44
+ var ID8 = Skill.ID;
45
45
  var Name2 = Skill.Name;
46
46
  var available3 = (skills, permissions) => skills.filter((skill) => evaluate2("skill", skill.id, permissions).effect !== "deny");
47
47
  var toModelOutput3 = (skill, files) => {
@@ -78,33 +78,34 @@ var prepare3 = Effect.fn("Skill.prepare")(function* (fs, skill) {
78
78
  };
79
79
  });
80
80
 
81
- class Service34 extends Context.Service()("@opencode/Skill") {
81
+ class Service71 extends Context.Service()("@opencode/Skill") {
82
82
  }
83
- var layer = Layer.effect(Service34, Effect.gen(function* () {
83
+ var layer = Layer.effect(Service71, Effect.gen(function* () {
84
84
  const bus = yield* Service85;
85
85
  const state = create3({
86
86
  name: "skill",
87
87
  initial: () => ({ skills: new Map }),
88
88
  editor: (editor) => ({
89
89
  list: () => Array.from(editor.skills.values()),
90
- get: (id) => editor.skills.get(ID3.make(id)),
90
+ get: (id) => editor.skills.get(ID8.make(id)),
91
91
  add: (skill) => {
92
92
  editor.skills.set(skill.id, { ...skill });
93
93
  },
94
94
  update: (id, update) => {
95
- const current = editor.skills.get(ID3.make(id));
95
+ const key = ID8.make(id);
96
+ const current = editor.skills.get(key);
96
97
  if (!current)
97
98
  return;
98
99
  update(current);
99
- current.id = ID3.make(id);
100
+ current.id = key;
100
101
  },
101
102
  remove: (id) => {
102
- editor.skills.delete(ID3.make(id));
103
+ editor.skills.delete(ID8.make(id));
103
104
  }
104
105
  }),
105
106
  notify: () => bus.publish(Skill.Event.Updated, {}).pipe(Effect.asVoid)
106
107
  });
107
- return Service34.of({
108
+ return Service71.of({
108
109
  transform: state.transform,
109
110
  reload: state.reload,
110
111
  get: Effect.fn("Skill.get")(function* (id) {
@@ -115,10 +116,10 @@ var layer = Layer.effect(Service34, Effect.gen(function* () {
115
116
  })
116
117
  });
117
118
  }));
118
- var node37 = makeLocationNode({
119
- service: Service34,
119
+ var node75 = makeLocationNode({
120
+ service: Service71,
120
121
  layer,
121
122
  deps: [node89]
122
123
  });
123
124
 
124
- export { DirectorySource2, UrlSource2, EmbeddedSource2, Source3, Info5, ID3, Name2, available3, toModelOutput3, prepare3, Service34, node37, exports_skill5, Event5 };
125
+ export { DirectorySource2, UrlSource2, EmbeddedSource2, Source4, Info18, ID8, Name2, available3, toModelOutput3, prepare3, Service71, node75, exports_skill5, Event13 };
@@ -1,65 +1,65 @@
1
1
  import {
2
2
  Service85,
3
3
  node89
4
- } from "./repository-cache-z1fx9rk1.js";
4
+ } from "./location-wedh6qfb.js";
5
5
  import {
6
- Service81,
7
- node85
8
- } from "./repository-cache-8pvf9cdd.js";
6
+ Service82,
7
+ node86
8
+ } from "./location-5ysrq0ad.js";
9
9
  import {
10
- Service61,
10
+ Service57,
11
11
  login2,
12
- node64
13
- } from "./repository-cache-kvk0xsab.js";
12
+ node59
13
+ } from "./location-sk6vvdwr.js";
14
14
  import {
15
15
  lazy2
16
- } from "./repository-cache-88xbtdfr.js";
16
+ } from "./location-88xbtdfr.js";
17
17
  import {
18
18
  __export
19
- } from "./repository-cache-9rqn6x4v.js";
19
+ } from "./location-9rqn6x4v.js";
20
20
 
21
21
  // src/pty.ts
22
22
  var exports_pty = {};
23
23
  __export(exports_pty, {
24
24
  CreateInput: () => CreateInput2,
25
- Event: () => Event11,
25
+ Event: () => Event3,
26
26
  ExitedError: () => ExitedError2,
27
- ID: () => ID7,
28
- Info: () => Info16,
29
- NotFoundError: () => NotFoundError7,
27
+ ID: () => ID2,
28
+ Info: () => Info3,
29
+ NotFoundError: () => NotFoundError2,
30
30
  Pty: () => exports_pty,
31
- Service: () => Service60,
31
+ Service: () => Service16,
32
32
  UpdateInput: () => UpdateInput2,
33
- node: () => node63
33
+ node: () => node18
34
34
  });
35
35
  import { makeLocationNode } from "@opencode/util/effect/app-node";
36
36
  import { Context, Effect, Layer, Schema } from "effect";
37
37
  import { Pty } from "@opencode/schema/pty";
38
- import { Event as Event11 } from "@opencode/schema/pty";
38
+ import { Event as Event3 } from "@opencode/schema/pty";
39
39
  var BUFFER_LIMIT = 1024 * 1024 * 2;
40
40
  var EXITED_LIMIT = 25;
41
41
  var pty = lazy2(() => import("#pty"));
42
- var ID7 = Pty.ID;
43
- var Info16 = Pty.Info;
42
+ var ID2 = Pty.ID;
43
+ var Info3 = Pty.Info;
44
44
  var CreateInput2 = Pty.CreateInput;
45
45
  var UpdateInput2 = Pty.UpdateInput;
46
46
 
47
- class NotFoundError7 extends Schema.TaggedError()("Pty.NotFoundError", {
48
- ptyID: ID7
47
+ class NotFoundError2 extends Schema.TaggedError()("Pty.NotFoundError", {
48
+ ptyID: ID2
49
49
  }) {
50
50
  }
51
51
 
52
52
  class ExitedError2 extends Schema.TaggedError()("Pty.ExitedError", {
53
- ptyID: ID7
53
+ ptyID: ID2
54
54
  }) {
55
55
  }
56
56
 
57
- class Service60 extends Context.Service()("@opencode/Pty") {
57
+ class Service16 extends Context.Service()("@opencode/Pty") {
58
58
  }
59
- var layer = Layer.effect(Service60, Effect.gen(function* () {
59
+ var layer = Layer.effect(Service16, Effect.gen(function* () {
60
60
  const bus = yield* Service85;
61
- const location = yield* Service81;
62
- const shell = yield* Service61;
61
+ const location = yield* Service82;
62
+ const shell = yield* Service57;
63
63
  const context = yield* Effect.context();
64
64
  const runFork = Effect.runForkWith(context);
65
65
  const sessions = new Map;
@@ -96,7 +96,7 @@ var layer = Layer.effect(Service60, Effect.gen(function* () {
96
96
  const requireSession = Effect.fn("Pty.requireSession")(function* (id) {
97
97
  const session = sessions.get(id);
98
98
  if (!session)
99
- return yield* new NotFoundError7({ ptyID: id });
99
+ return yield* new NotFoundError2({ ptyID: id });
100
100
  return session;
101
101
  });
102
102
  const removeSession = Effect.fnUntraced(function* (id) {
@@ -122,7 +122,7 @@ var layer = Layer.effect(Service60, Effect.gen(function* () {
122
122
  return (yield* requireSession(id)).info;
123
123
  });
124
124
  const create = Effect.fn("Pty.create")(function* (input) {
125
- const id = ID7.ascending();
125
+ const id = ID2.ascending();
126
126
  const command = input.command || (yield* shell.resolve({ priority: "config" }));
127
127
  const args = login2(command) ? [...input.args ?? [], "-l"] : [...input.args ?? []];
128
128
  const cwd = input.cwd || location.directory;
@@ -229,7 +229,7 @@ var layer = Layer.effect(Service60, Effect.gen(function* () {
229
229
  session.subscribers.set(token, subscriber);
230
230
  const start = session.bufferCursor;
231
231
  const end = session.cursor;
232
- const from = input.cursor === -1 ? end : typeof input.cursor === "number" && Number.isSafeInteger(input.cursor) ? Math.max(0, input.cursor) : 0;
232
+ const from = input.cursor === -1 ? end : input.cursor !== undefined && Number.isSafeInteger(input.cursor) ? Math.max(0, input.cursor) : 0;
233
233
  const replay = (() => {
234
234
  if (!session.buffer || from >= end)
235
235
  return "";
@@ -267,12 +267,12 @@ var layer = Layer.effect(Service60, Effect.gen(function* () {
267
267
  }
268
268
  };
269
269
  });
270
- return Service60.of({ list, get, create, update, remove, write, attach });
270
+ return Service16.of({ list, get, create, update, remove, write, attach });
271
271
  }));
272
- var node63 = makeLocationNode({
273
- service: Service60,
272
+ var node18 = makeLocationNode({
273
+ service: Service16,
274
274
  layer,
275
- deps: [node89, node85, node64]
275
+ deps: [node89, node86, node59]
276
276
  });
277
277
 
278
- export { ID7, Info16, CreateInput2, UpdateInput2, NotFoundError7, ExitedError2, Service60, node63, exports_pty, Event11 };
278
+ export { ID2, Info3, CreateInput2, UpdateInput2, NotFoundError2, ExitedError2, Service16, node18, exports_pty, Event3 };
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  __export
3
- } from "./repository-cache-9rqn6x4v.js";
3
+ } from "./location-9rqn6x4v.js";
4
4
 
5
5
  // src/util/wildcard.ts
6
6
  var exports_wildcard = {};
@@ -1,45 +1,45 @@
1
1
  import {
2
2
  Service86,
3
3
  node90
4
- } from "./repository-cache-qy7ffa5a.js";
4
+ } from "./location-5nankzt7.js";
5
5
  import {
6
6
  latestSequence2,
7
7
  Service85,
8
8
  node89
9
- } from "./repository-cache-z1fx9rk1.js";
9
+ } from "./location-wedh6qfb.js";
10
10
  import {
11
11
  llmClient2
12
- } from "./repository-cache-775gj3j1.js";
12
+ } from "./location-p015t6z3.js";
13
13
  import {
14
14
  SessionEvent2
15
- } from "./repository-cache-ec1grn59.js";
15
+ } from "./location-ec1grn59.js";
16
16
  import {
17
17
  firstUserMessage2
18
- } from "./repository-cache-gm3f9v0x.js";
18
+ } from "./location-5qebhevh.js";
19
19
  import {
20
- Service75,
21
- node79
22
- } from "./repository-cache-d72a72b9.js";
20
+ Service73,
21
+ node77
22
+ } from "./location-3043t2hd.js";
23
23
  import {
24
- Service23,
25
- node26
26
- } from "./repository-cache-cd8v38ms.js";
24
+ Service29,
25
+ node32
26
+ } from "./location-9zetw7am.js";
27
27
  import {
28
28
  record2,
29
29
  add2
30
- } from "./repository-cache-tdstcens.js";
30
+ } from "./location-tw8zr1ps.js";
31
31
  import {
32
32
  __export
33
- } from "./repository-cache-9rqn6x4v.js";
33
+ } from "./location-9rqn6x4v.js";
34
34
 
35
35
  // src/session/title.ts
36
36
  var exports_title = {};
37
37
  __export(exports_title, {
38
- Service: () => Service12,
38
+ Service: () => Service6,
39
39
  SessionTitle: () => exports_title,
40
40
  isUntitled: () => isUntitled2,
41
- layer: () => layer8,
42
- node: () => node14
41
+ layer: () => layer5,
42
+ node: () => node8
43
43
  });
44
44
  import { isDeepStrictEqual } from "node:util";
45
45
  import { LLMClient, LLMEvent, Message, SystemPart } from "@opencode/ai";
@@ -51,18 +51,32 @@ var MAX_CONTEXT_LENGTH = 8000;
51
51
  var MAX_FIRST_MESSAGE_LENGTH = 2000;
52
52
  var titleChanged = Symbol("Session title changed");
53
53
 
54
- class Service12 extends Context.Service()("@opencode/SessionTitle") {
54
+ class Service6 extends Context.Service()("@opencode/SessionTitle") {
55
55
  }
56
56
  var truncate = (value) => value.length <= MAX_LENGTH ? value : `${value.slice(0, MAX_LENGTH - 3)}...`;
57
+ var messagePrompt = (text) => `Here is the first message of the conversation:
58
+
59
+ <message>
60
+ ${text}
61
+ </message>
62
+
63
+ Reply with only the title.`;
64
+ var conversationPrompt = (text) => `Here is the conversation so far:
65
+
66
+ <conversation>
67
+ ${text}
68
+ </conversation>
69
+
70
+ Reply with only the title.`;
57
71
  var isUntitled2 = (session) => isExactRootFallback({
58
72
  title: session.title,
59
73
  time: { created: DateTime.toEpochMillis(session.time.created) }
60
74
  });
61
- var layer8 = Layer.effect(Service12, Effect.gen(function* () {
75
+ var layer5 = Layer.effect(Service6, Effect.gen(function* () {
62
76
  const bus = yield* Service85;
63
77
  const llm = yield* LLMClient.Service;
64
- const context = yield* Service23;
65
- const store = yield* Service75;
78
+ const context = yield* Service29;
79
+ const store = yield* Service73;
66
80
  const db = (yield* Service86).db;
67
81
  const attempt = Effect.fn("SessionTitle.attempt")(function* (input) {
68
82
  const chunks = [];
@@ -123,13 +137,14 @@ ${firstUser.text.slice(0, MAX_FIRST_MESSAGE_LENGTH)}`;
123
137
 
124
138
  `);
125
139
  if (!recent)
126
- return original;
140
+ return conversationPrompt(original);
127
141
  const prefix = `${original}
128
142
 
129
143
  Recent conversation:
130
144
  `;
131
- return `${prefix}${recent.slice(-(MAX_CONTEXT_LENGTH - prefix.length))}`;
132
- }), Effect.orElseSucceed(() => firstUser.text)) : firstUser.text;
145
+ const budget = MAX_CONTEXT_LENGTH - conversationPrompt("").length - prefix.length;
146
+ return conversationPrompt(`${prefix}${recent.slice(-budget)}`);
147
+ }), Effect.orElseSucceed(() => messagePrompt(firstUser.text))) : messagePrompt(firstUser.text);
133
148
  const selection = yield* context.selectTitle(session);
134
149
  if (!selection)
135
150
  return;
@@ -145,12 +160,12 @@ Recent conversation:
145
160
  title: truncate(title)
146
161
  }, { commit: (sequence) => sequence === expectedSequence ? Effect.void : Effect.die(titleChanged) }).pipe(Effect.catchDefect((defect) => defect === titleChanged ? Effect.void : Effect.die(defect)));
147
162
  });
148
- return Service12.of({ generate });
163
+ return Service6.of({ generate });
149
164
  }));
150
- var node14 = makeLocationNode({
151
- service: Service12,
152
- layer: layer8,
153
- deps: [node89, llmClient2, node26, node79, node90]
165
+ var node8 = makeLocationNode({
166
+ service: Service6,
167
+ layer: layer5,
168
+ deps: [node89, llmClient2, node32, node77, node90]
154
169
  });
155
170
 
156
- export { Service12, isUntitled2, layer8, node14, exports_title };
171
+ export { Service6, isUntitled2, layer5, node8, exports_title };