@opencode/core 2.0.29 → 2.0.31

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 (803) hide show
  1. package/dist/account/sql.js +1 -1
  2. package/dist/agent.js +85 -85
  3. package/dist/aisdk-native.js +91 -91
  4. package/dist/aisdk.js +96 -96
  5. package/dist/app.js +9 -9
  6. package/dist/bus.js +71 -71
  7. package/dist/chunks/{websearch-ddypr82j.js → location-0226ecw2.js} +8 -8
  8. package/dist/chunks/{websearch-s8d7rejh.js → location-02nrjc1r.js} +8 -8
  9. package/dist/chunks/{websearch-0wmc8652.js → location-08mhz53j.js} +11 -11
  10. package/dist/chunks/{websearch-tf2nhjex.js → location-0bx9ftm6.js} +20 -20
  11. package/dist/chunks/{websearch-g37mjr4e.js → location-0d5fgvs9.js} +15 -15
  12. package/dist/chunks/{websearch-jneafm26.js → location-0dnxk7rk.js} +7 -7
  13. package/dist/chunks/{websearch-k10p7qps.js → location-0gn2wfg7.js} +4 -4
  14. package/dist/chunks/{websearch-gwj41vyz.js → location-0gwx0s3y.js} +7 -7
  15. package/dist/chunks/{websearch-2yb0fdev.js → location-0k8emadn.js} +54 -54
  16. package/dist/chunks/{websearch-w4zft92x.js → location-0ngbj78w.js} +11 -11
  17. package/dist/chunks/{websearch-gjk5m4qa.js → location-0p4tcy8x.js} +60 -13
  18. package/dist/chunks/{websearch-0vbcp93d.js → location-0vbcp93d.js} +2 -2
  19. package/dist/chunks/{websearch-yp2x3t23.js → location-1acjjqhc.js} +4 -4
  20. package/dist/chunks/{websearch-bjx1sjef.js → location-1ffvrpkg.js} +6 -6
  21. package/dist/chunks/{websearch-pb47hwpg.js → location-1gb4csdk.js} +34 -17
  22. package/dist/chunks/{websearch-nkndh8r8.js → location-1hws7hxk.js} +15 -15
  23. package/dist/chunks/{websearch-7hpzdccj.js → location-1qeeh34f.js} +8 -8
  24. package/dist/chunks/{websearch-rgxvqbqk.js → location-2ajwk0j6.js} +33 -33
  25. package/dist/chunks/{websearch-ay2x71k1.js → location-2k9gth8v.js} +9 -9
  26. package/dist/chunks/{websearch-a2647qfq.js → location-2s0kcc7y.js} +187 -187
  27. package/dist/chunks/{websearch-ay3jh19j.js → location-2svw76rs.js} +20 -20
  28. package/dist/chunks/{websearch-v1kmxtyj.js → location-30z8dtpn.js} +10 -10
  29. package/dist/chunks/{websearch-kkkrbyg1.js → location-31sbk34f.js} +11 -11
  30. package/dist/chunks/{websearch-1y335d10.js → location-32g64bfd.js} +4 -4
  31. package/dist/chunks/{websearch-k9mnbpyw.js → location-332p2pj5.js} +63 -63
  32. package/dist/chunks/{websearch-xrb85mgg.js → location-37dgakmz.js} +26 -26
  33. package/dist/chunks/{websearch-3fc6dm20.js → location-3fc6dm20.js} +1 -1
  34. package/dist/chunks/{websearch-3hepkmqq.js → location-3hepkmqq.js} +1 -1
  35. package/dist/chunks/{websearch-3hwn7j4h.js → location-3hwn7j4h.js} +2 -2
  36. package/dist/chunks/{websearch-we87z89c.js → location-3k46pnes.js} +13 -13
  37. package/dist/chunks/{websearch-a4h58p2q.js → location-3kxs742t.js} +6 -6
  38. package/dist/chunks/{websearch-3smtnn6g.js → location-3smtnn6g.js} +1 -1
  39. package/dist/chunks/{websearch-3tvqynh2.js → location-3tvqynh2.js} +1 -1
  40. package/dist/chunks/{websearch-kqn4kc20.js → location-3vpfcmec.js} +17 -17
  41. package/dist/chunks/{websearch-3zsf4n22.js → location-3zsf4n22.js} +1 -1
  42. package/dist/chunks/{websearch-7xrzajz9.js → location-4826d3mm.js} +21 -21
  43. package/dist/chunks/{websearch-dhb2hta4.js → location-4ekscj25.js} +5 -5
  44. package/dist/chunks/{websearch-x5h28p89.js → location-4pqc6r0s.js} +21 -21
  45. package/dist/chunks/{websearch-ztcw2cka.js → location-4vkzjfz1.js} +16 -16
  46. package/dist/chunks/{websearch-6yz0wx8n.js → location-4xpgt2w9.js} +5 -5
  47. package/dist/chunks/{websearch-30n06459.js → location-54ekx5ae.js} +30 -30
  48. package/dist/chunks/{websearch-54ma36ye.js → location-54ma36ye.js} +1 -1
  49. package/dist/chunks/{websearch-m5yraf7v.js → location-55m3mq6h.js} +29 -32
  50. package/dist/chunks/{websearch-rp432f9z.js → location-5a4fa56b.js} +33 -33
  51. package/dist/chunks/{websearch-wazcrk27.js → location-5kmwyhcc.js} +11 -11
  52. package/dist/chunks/{websearch-5m9w47nd.js → location-5m9w47nd.js} +1 -1
  53. package/dist/chunks/{websearch-e3qxr5gk.js → location-5qd3pb7m.js} +2 -2
  54. package/dist/chunks/{websearch-88wazn9e.js → location-5r0e9r43.js} +34 -34
  55. package/dist/chunks/{websearch-hhd9bfcx.js → location-5r0sd97x.js} +14 -14
  56. package/dist/chunks/{websearch-v0es1rhs.js → location-5v0crexd.js} +9 -9
  57. package/dist/chunks/{websearch-9hn6k4tm.js → location-5xtgfte3.js} +8 -8
  58. package/dist/chunks/{websearch-pghxh1nh.js → location-604zh56d.js} +11 -11
  59. package/dist/chunks/{websearch-6hjx5zpb.js → location-6fatt4mk.js} +9 -9
  60. package/dist/chunks/{websearch-zkf2w606.js → location-6je2rgp2.js} +21 -22
  61. package/dist/chunks/{websearch-8sze2n9a.js → location-6pc27hjz.js} +2 -2
  62. package/dist/chunks/{websearch-v7z2bvyd.js → location-6rm5yzkt.js} +4 -4
  63. package/dist/chunks/{websearch-6xb47vfp.js → location-6xb47vfp.js} +1 -1
  64. package/dist/chunks/{websearch-efjjmtnj.js → location-725z4hsd.js} +26 -26
  65. package/dist/chunks/{websearch-775gj3j1.js → location-775gj3j1.js} +2 -2
  66. package/dist/chunks/{websearch-phepkm1d.js → location-7b3a7ss3.js} +12 -12
  67. package/dist/chunks/{websearch-ja06ey8y.js → location-7b4crnna.js} +15 -15
  68. package/dist/chunks/{websearch-7bmhse3q.js → location-7bmhse3q.js} +1 -1
  69. package/dist/chunks/{websearch-mj7h6rjn.js → location-7c6xqexj.js} +19 -19
  70. package/dist/chunks/{websearch-0zmxjhgt.js → location-7fpfrasm.js} +27 -26
  71. package/dist/chunks/{websearch-gfhhve88.js → location-7r0r50e5.js} +5 -5
  72. package/dist/chunks/{websearch-84txncab.js → location-84txncab.js} +1 -1
  73. package/dist/chunks/{websearch-71434wjh.js → location-8945desn.js} +14 -14
  74. package/dist/chunks/{websearch-qwjmgwmn.js → location-8ank75fn.js} +8 -8
  75. package/dist/chunks/{websearch-3yzh7hr7.js → location-8ekd6vxm.js} +27 -27
  76. package/dist/chunks/{websearch-8m6m0r52.js → location-8m6m0r52.js} +1 -1
  77. package/dist/chunks/{websearch-rww43xzx.js → location-8n3txx1w.js} +5 -5
  78. package/dist/chunks/{websearch-qp956b5j.js → location-922zmdzk.js} +11 -11
  79. package/dist/chunks/{websearch-w46jqsvm.js → location-98tg60b9.js} +22 -22
  80. package/dist/chunks/{websearch-c7gbd1xe.js → location-98vn5e4g.js} +16 -16
  81. package/dist/chunks/{websearch-hx6kv5hf.js → location-9emww0n5.js} +42 -42
  82. package/dist/chunks/{websearch-9c3np669.js → location-9ex8f1cq.js} +8 -8
  83. package/dist/chunks/{websearch-mq0qga5n.js → location-a08hwrr8.js} +28 -28
  84. package/dist/chunks/{websearch-1p799z25.js → location-a3kydf8v.js} +16 -16
  85. package/dist/chunks/{websearch-rhbc2745.js → location-ac3w4tg1.js} +11 -11
  86. package/dist/chunks/location-ad2byham.js +180 -0
  87. package/dist/chunks/{websearch-qr9hjn0s.js → location-agk9a7ht.js} +9 -9
  88. package/dist/chunks/location-ankyagqv.js +123 -0
  89. package/dist/chunks/{websearch-ztvjr4k5.js → location-aqjemj7v.js} +21 -21
  90. package/dist/chunks/{websearch-scgrse2b.js → location-b3f8fkhc.js} +5 -5
  91. package/dist/chunks/{websearch-n33ezsnm.js → location-b476w8hy.js} +46 -32
  92. package/dist/chunks/location-b49nb10p.js +253 -0
  93. package/dist/chunks/{websearch-nytcpyw5.js → location-b5t06xk9.js} +44 -44
  94. package/dist/chunks/{websearch-0fz4623t.js → location-bczx5ry5.js} +1 -1
  95. package/dist/chunks/{websearch-gqkzrhj2.js → location-bdva7wc0.js} +14 -14
  96. package/dist/chunks/{websearch-s5dq0fh7.js → location-bfwybkmg.js} +32 -32
  97. package/dist/chunks/{websearch-tt87ktex.js → location-bv75eenn.js} +18 -18
  98. package/dist/chunks/{websearch-w4y2mxn4.js → location-byhrkmnv.js} +23 -23
  99. package/dist/chunks/{websearch-c1fqxshp.js → location-c1fqxshp.js} +3 -3
  100. package/dist/chunks/{websearch-hkffa77z.js → location-c9wbyant.js} +4 -4
  101. package/dist/chunks/{websearch-9zfhyfhf.js → location-chbmk58x.js} +3 -3
  102. package/dist/chunks/{websearch-e0dbc2qq.js → location-cneqc13g.js} +4 -4
  103. package/dist/chunks/{websearch-c765mh8b.js → location-cwa6csj7.js} +9 -9
  104. package/dist/chunks/{websearch-5pffn7jv.js → location-d08c6kge.js} +30 -30
  105. package/dist/chunks/{websearch-tcay1cqt.js → location-d0k1g5nx.js} +6 -6
  106. package/dist/chunks/{websearch-5z3y5rqa.js → location-d2gxvrjz.js} +50 -50
  107. package/dist/chunks/{websearch-z938xz10.js → location-d2kjhx1e.js} +51 -51
  108. package/dist/chunks/{websearch-5e1pzs32.js → location-d43tgzm4.js} +9 -9
  109. package/dist/chunks/{websearch-rh5yy33f.js → location-d5am0rpv.js} +41 -41
  110. package/dist/chunks/{websearch-d883s65k.js → location-dn4cq3jj.js} +23 -23
  111. package/dist/chunks/{websearch-dqxsqydv.js → location-dqxsqydv.js} +1 -1
  112. package/dist/chunks/{websearch-xfkkasph.js → location-drwq78ky.js} +4 -4
  113. package/dist/chunks/{websearch-25xd1pye.js → location-dwtdh34y.js} +11 -7
  114. package/dist/chunks/location-dxj72tfx.js +18 -0
  115. package/dist/chunks/{websearch-btgkzwpb.js → location-dyava1km.js} +13 -13
  116. package/dist/chunks/{websearch-hhyv66vq.js → location-e21ryx48.js} +5 -5
  117. package/dist/chunks/{websearch-crt9038w.js → location-e3h2tv5m.js} +38 -37
  118. package/dist/chunks/{websearch-kb7wnz6t.js → location-e6hpsnvb.js} +33 -33
  119. package/dist/chunks/{websearch-8wjeg5tw.js → location-ed777npe.js} +11 -11
  120. package/dist/chunks/{websearch-fm2qvscf.js → location-edrmdtr5.js} +7 -7
  121. package/dist/chunks/{websearch-eej6y6fw.js → location-eej6y6fw.js} +2 -2
  122. package/dist/chunks/{websearch-ef5x83kb.js → location-ef5x83kb.js} +1 -1
  123. package/dist/chunks/{websearch-arkfezfn.js → location-ef6w4cys.js} +25 -25
  124. package/dist/chunks/{websearch-z7m47ewa.js → location-egeseaw5.js} +8 -8
  125. package/dist/chunks/{websearch-xg4371px.js → location-egy7b75h.js} +35 -35
  126. package/dist/chunks/{websearch-d8qsn68y.js → location-eykbxn2n.js} +17 -17
  127. package/dist/chunks/{websearch-t8n1383z.js → location-f4pp2f84.js} +37 -37
  128. package/dist/chunks/{websearch-97j7w773.js → location-f6v6e9jj.js} +47 -37
  129. package/dist/chunks/{websearch-stv64172.js → location-fak546jh.js} +24 -24
  130. package/dist/chunks/{websearch-fcrkznn8.js → location-fcrkznn8.js} +1 -1
  131. package/dist/chunks/{websearch-3c656pdg.js → location-fgamwy3d.js} +11 -11
  132. package/dist/chunks/{websearch-k2grd0fw.js → location-fv1pwmey.js} +3 -3
  133. package/dist/chunks/{websearch-73ndx0kt.js → location-fykrrrct.js} +9 -9
  134. package/dist/chunks/{websearch-y7nndgyc.js → location-g686f6pq.js} +9 -9
  135. package/dist/chunks/{websearch-gd4qta3r.js → location-gd4qta3r.js} +1 -1
  136. package/dist/chunks/{websearch-q8fpdxtt.js → location-gdmbfffs.js} +45 -45
  137. package/dist/chunks/location-gjy4e9va.js +513 -0
  138. package/dist/chunks/{websearch-mp6nn8em.js → location-gkv0m4je.js} +3 -3
  139. package/dist/chunks/{websearch-n3dj4p5b.js → location-gp4grenw.js} +46 -46
  140. package/dist/chunks/{websearch-r2k8chwn.js → location-gwf59qdk.js} +42 -42
  141. package/dist/chunks/{websearch-h6vf3j39.js → location-h6vf3j39.js} +1 -1
  142. package/dist/chunks/{websearch-31xfzrxg.js → location-h7s7r6s9.js} +5 -5
  143. package/dist/chunks/{websearch-7qq3ahcc.js → location-had4kgfk.js} +6 -6
  144. package/dist/chunks/{websearch-tmfxf5e7.js → location-hcv80w8f.js} +11 -11
  145. package/dist/chunks/{websearch-ec2vep54.js → location-hdyh3agd.js} +19 -19
  146. package/dist/chunks/{websearch-hgz4x7wa.js → location-hgz4x7wa.js} +1 -1
  147. package/dist/chunks/{websearch-gspy0ysg.js → location-hhkvbeez.js} +4 -4
  148. package/dist/chunks/{websearch-pzwg7x8a.js → location-hm3bk0p8.js} +32 -32
  149. package/dist/chunks/{websearch-vrc1bnre.js → location-htx0x9rj.js} +30 -30
  150. package/dist/chunks/{websearch-91qna3x0.js → location-j09zfasm.js} +3 -3
  151. package/dist/chunks/{websearch-d2wa1q6j.js → location-j0p2n9y3.js} +25 -25
  152. package/dist/chunks/{websearch-cyakegjg.js → location-jdj7c2dh.js} +11 -11
  153. package/dist/chunks/{websearch-6xt5eqb0.js → location-jf14n6qf.js} +6 -6
  154. package/dist/chunks/{websearch-t41sszjr.js → location-jr70j6bk.js} +22 -22
  155. package/dist/chunks/{websearch-aa567zw8.js → location-jv6mm5r1.js} +6 -6
  156. package/dist/chunks/{websearch-addxnjmp.js → location-k22b66k8.js} +4 -4
  157. package/dist/chunks/{websearch-avae2qkj.js → location-k2a504bc.js} +14 -14
  158. package/dist/chunks/location-k2w6m327.js +26 -0
  159. package/dist/chunks/{websearch-zd7wpxs7.js → location-k6t9754k.js} +2 -2
  160. package/dist/chunks/{websearch-m2xy2q1r.js → location-k9axst5t.js} +10 -10
  161. package/dist/chunks/{websearch-vywg70mg.js → location-kavz8ev8.js} +18 -18
  162. package/dist/chunks/{websearch-4xzdjh1a.js → location-kdv1w5tp.js} +10 -10
  163. package/dist/chunks/{websearch-ng1gee1q.js → location-kfspy82a.js} +5 -5
  164. package/dist/chunks/{websearch-hq3c8me3.js → location-khmqacep.js} +4 -4
  165. package/dist/chunks/{websearch-346y6mfm.js → location-kje2jy7e.js} +3 -3
  166. package/dist/chunks/{websearch-hrg4krg0.js → location-kkhv8ffc.js} +9 -9
  167. package/dist/chunks/{websearch-97zq4prq.js → location-kkv8xsc6.js} +11 -11
  168. package/dist/chunks/{websearch-2ccvkpx1.js → location-kwb1v3vj.js} +19 -17
  169. package/dist/chunks/{websearch-5hft8km6.js → location-m464tetq.js} +30 -30
  170. package/dist/chunks/{websearch-m9w0rfyh.js → location-m9w0rfyh.js} +1 -1
  171. package/dist/chunks/{websearch-maspj1v3.js → location-maspj1v3.js} +1 -1
  172. package/dist/chunks/{websearch-1pekzpef.js → location-mgnytpvb.js} +24 -24
  173. package/dist/chunks/{websearch-07vcyzex.js → location-n207hqvt.js} +25 -25
  174. package/dist/chunks/{websearch-4ft0y05w.js → location-n75tjgph.js} +26 -26
  175. package/dist/chunks/{websearch-espep7zj.js → location-n7zsrb9m.js} +5 -5
  176. package/dist/chunks/{websearch-3dmcmtv3.js → location-nc34fnv7.js} +18 -18
  177. package/dist/chunks/{websearch-e8peznf1.js → location-ndxmvpwy.js} +24 -24
  178. package/dist/chunks/{websearch-a73a6c6h.js → location-nmrzdgqa.js} +13 -13
  179. package/dist/chunks/{websearch-tx4eqkkw.js → location-nxwbzm2s.js} +24 -24
  180. package/dist/chunks/{websearch-jehjq15e.js → location-p0b32wnx.js} +14 -14
  181. package/dist/chunks/{websearch-dxzfr4ve.js → location-p59fwf97.js} +7 -7
  182. package/dist/chunks/{websearch-am1tmpj5.js → location-pba85c1x.js} +10 -10
  183. package/dist/chunks/{websearch-p2w45j0v.js → location-pey7n3za.js} +21 -21
  184. package/dist/chunks/{websearch-pjvnvgmy.js → location-pjvnvgmy.js} +1 -1
  185. package/dist/chunks/{websearch-pknna89w.js → location-pknna89w.js} +1 -1
  186. package/dist/chunks/{websearch-7cmmjc66.js → location-ps53sfwy.js} +8 -8
  187. package/dist/chunks/{websearch-x5wkbpg0.js → location-ptefqdz6.js} +45 -45
  188. package/dist/chunks/{websearch-pxwwnbaf.js → location-ptva3pym.js} +45 -44
  189. package/dist/chunks/{websearch-bwd5tn72.js → location-pyv4m8ny.js} +3 -3
  190. package/dist/chunks/{websearch-44gjh96b.js → location-pzq6k8vz.js} +84 -84
  191. package/dist/chunks/{websearch-etc2b570.js → location-q02nkz8q.js} +15 -15
  192. package/dist/chunks/{websearch-ynreg67e.js → location-q22hcgwy.js} +4 -4
  193. package/dist/chunks/{websearch-hkkd4pm1.js → location-q4ht2jz5.js} +9 -9
  194. package/dist/chunks/{websearch-4gq7ecwc.js → location-q66bexh6.js} +18 -18
  195. package/dist/chunks/{websearch-kfxbay1b.js → location-q89amkt5.js} +13 -13
  196. package/dist/chunks/{websearch-8t7fzwbd.js → location-qfav9mb9.js} +20 -20
  197. package/dist/chunks/{websearch-sjh1dprn.js → location-qfqwar9z.js} +25 -25
  198. package/dist/chunks/{websearch-dyd0ex0t.js → location-qjmwhgd5.js} +18 -18
  199. package/dist/chunks/{websearch-5r3x27sy.js → location-qkefedax.js} +20 -20
  200. package/dist/chunks/{websearch-qnc92qwc.js → location-qnc92qwc.js} +1 -1
  201. package/dist/chunks/{websearch-qsdy395h.js → location-qsdy395h.js} +1 -1
  202. package/dist/chunks/{websearch-103sg1x0.js → location-qvbvh2j1.js} +30 -30
  203. package/dist/chunks/{websearch-e80seqcp.js → location-r2z489rp.js} +3 -3
  204. package/dist/chunks/{websearch-r8x9drbh.js → location-rbdhhdfw.js} +5 -5
  205. package/dist/chunks/{websearch-pqwxz2b0.js → location-rda1ncrk.js} +5 -5
  206. package/dist/chunks/{websearch-rdw6cm16.js → location-rdw6cm16.js} +1 -1
  207. package/dist/chunks/{websearch-rert0e01.js → location-rert0e01.js} +2 -2
  208. package/dist/chunks/{websearch-hrgbrncq.js → location-rexbarkw.js} +14 -14
  209. package/dist/chunks/{websearch-rj3eygr5.js → location-rj3eygr5.js} +2 -2
  210. package/dist/chunks/{websearch-dhmh7aw6.js → location-rpg9c19m.js} +4 -4
  211. package/dist/chunks/{websearch-r2710ff6.js → location-rx3mvgkr.js} +25 -25
  212. package/dist/chunks/{websearch-xxxym934.js → location-s26hbv8p.js} +4 -4
  213. package/dist/chunks/{websearch-9h5qj14f.js → location-s42x7kbt.js} +5 -5
  214. package/dist/chunks/{websearch-866agajq.js → location-s8efh3qt.js} +18 -18
  215. package/dist/chunks/{websearch-sa8ekw3f.js → location-sa8ekw3f.js} +2 -2
  216. package/dist/chunks/{websearch-g6vmwyfr.js → location-sk8ngeq0.js} +15 -15
  217. package/dist/chunks/{websearch-eawvaaey.js → location-sp3e7rwb.js} +52 -52
  218. package/dist/chunks/{websearch-hhtxcv9s.js → location-sp6sqjr9.js} +32 -32
  219. package/dist/chunks/{websearch-1b4m0bzf.js → location-syf57q56.js} +4 -4
  220. package/dist/chunks/{websearch-syv4x271.js → location-syv4x271.js} +1 -1
  221. package/dist/chunks/{websearch-krdzrw7f.js → location-t3nfadhs.js} +77 -77
  222. package/dist/chunks/{websearch-5aq1sray.js → location-t57002t3.js} +17 -17
  223. package/dist/chunks/{websearch-tazgh4e4.js → location-tazgh4e4.js} +1 -1
  224. package/dist/chunks/{websearch-tcezcvh9.js → location-tcezcvh9.js} +1 -1
  225. package/dist/chunks/{websearch-tdstcens.js → location-tdstcens.js} +1 -1
  226. package/dist/chunks/{websearch-tm0kqsz3.js → location-tm0kqsz3.js} +1 -1
  227. package/dist/chunks/{websearch-kjm8yh2d.js → location-twaq3jzm.js} +22 -22
  228. package/dist/chunks/{websearch-pkj8hqbd.js → location-txm3e8qz.js} +9 -9
  229. package/dist/chunks/{websearch-tyytaxap.js → location-tyytaxap.js} +1 -1
  230. package/dist/chunks/{websearch-aqa98z50.js → location-v23zj4w8.js} +16 -16
  231. package/dist/chunks/{websearch-jhxrt86x.js → location-v2hqmhsj.js} +28 -28
  232. package/dist/chunks/{websearch-92m1j5rh.js → location-v41ydkwg.js} +17 -17
  233. package/dist/chunks/{websearch-wgdke5pv.js → location-v5asjnvt.js} +10 -10
  234. package/dist/chunks/{websearch-55nka2g1.js → location-v5v0w1v9.js} +4 -4
  235. package/dist/chunks/{websearch-v7p4zvkq.js → location-v7p4zvkq.js} +2 -2
  236. package/dist/chunks/{websearch-gdbb1day.js → location-vafycr3d.js} +1 -1
  237. package/dist/chunks/{websearch-veqvce7d.js → location-veqvce7d.js} +1 -1
  238. package/dist/chunks/{websearch-nkt96xeg.js → location-vmz83zrx.js} +3 -3
  239. package/dist/chunks/{websearch-1k6qkxqp.js → location-vtv85xx9.js} +4 -4
  240. package/dist/chunks/{websearch-vzs5sf6e.js → location-vzs5sf6e.js} +1 -1
  241. package/dist/chunks/{websearch-w3wsvvr9.js → location-w3wsvvr9.js} +1 -1
  242. package/dist/chunks/{websearch-663z1agk.js → location-w8s3ffgw.js} +30 -30
  243. package/dist/chunks/{websearch-xkhfjrgz.js → location-w8yd89gy.js} +3 -3
  244. package/dist/chunks/{websearch-g5x1q65a.js → location-wapmwjpk.js} +4 -4
  245. package/dist/chunks/{websearch-r9m9gn5p.js → location-wcgwrd3j.js} +29 -20
  246. package/dist/chunks/{websearch-wd87259q.js → location-wd87259q.js} +1 -1
  247. package/dist/chunks/{websearch-x0fnqmv0.js → location-wdwn1xw9.js} +15 -15
  248. package/dist/chunks/{websearch-p97g2b6e.js → location-wgkt74tw.js} +8 -8
  249. package/dist/chunks/{websearch-f7ayr8mx.js → location-wmx2yec4.js} +24 -24
  250. package/dist/chunks/{websearch-qfx9w7bq.js → location-wnqm0cgw.js} +14 -8
  251. package/dist/chunks/{websearch-7gra0nqm.js → location-wpw4fxj8.js} +12 -12
  252. package/dist/chunks/{websearch-9vkn4ng5.js → location-x4zxggeh.js} +31 -31
  253. package/dist/chunks/{websearch-tdhdpjpk.js → location-x72tgrkt.js} +10 -10
  254. package/dist/chunks/{websearch-ada5kfrj.js → location-xc3gbc81.js} +10 -10
  255. package/dist/chunks/{websearch-da8gdpq5.js → location-xdyvfy69.js} +9 -9
  256. package/dist/chunks/{websearch-caa8k32f.js → location-xg3acd94.js} +74 -52
  257. package/dist/chunks/{websearch-kev8d4bj.js → location-xjqbcb23.js} +26 -26
  258. package/dist/chunks/{websearch-p08b6fdv.js → location-xshzrn6p.js} +18 -18
  259. package/dist/chunks/{websearch-6wc34s84.js → location-xx6gh137.js} +11 -11
  260. package/dist/chunks/{websearch-8wkxae25.js → location-xxbhqfv7.js} +13 -13
  261. package/dist/chunks/{websearch-3m7syb4v.js → location-xz5ete57.js} +17 -17
  262. package/dist/chunks/{websearch-8p3ctfjr.js → location-y01krfzx.js} +11 -11
  263. package/dist/chunks/{websearch-y1fvbwt7.js → location-y1fvbwt7.js} +1 -1
  264. package/dist/chunks/{websearch-y71avatq.js → location-y71avatq.js} +1 -1
  265. package/dist/chunks/{websearch-qcs9fwqv.js → location-y8asngre.js} +11 -11
  266. package/dist/chunks/{websearch-1cegxmx6.js → location-y8jdt19h.js} +3 -3
  267. package/dist/chunks/{websearch-p2aadfsr.js → location-yeaxfmem.js} +18 -18
  268. package/dist/chunks/{websearch-zmr78fwr.js → location-ygdna4kr.js} +5 -5
  269. package/dist/chunks/{websearch-52xjsfcv.js → location-yhntedeb.js} +9 -9
  270. package/dist/chunks/{websearch-6560wqgx.js → location-ykfvkqah.js} +3 -3
  271. package/dist/chunks/{websearch-br0hqn3c.js → location-ynrbdj0p.js} +25 -25
  272. package/dist/chunks/{websearch-yfy85faz.js → location-yz9xngpq.js} +5 -5
  273. package/dist/chunks/{websearch-z0bkrqjs.js → location-z0bkrqjs.js} +1 -1
  274. package/dist/chunks/{websearch-1tehwsrg.js → location-z0pkcfr2.js} +26 -26
  275. package/dist/chunks/{websearch-haa4cca0.js → location-z41z05dk.js} +6 -6
  276. package/dist/chunks/{websearch-m3chcn87.js → location-zbax6w3t.js} +19 -19
  277. package/dist/chunks/{websearch-nvgev6qc.js → location-zewj3pg6.js} +15 -15
  278. package/dist/chunks/{websearch-dk6ncfcg.js → location-zg9mg9xh.js} +6 -6
  279. package/dist/chunks/{websearch-3p5nkzgw.js → location-zqkh3haf.js} +16 -16
  280. package/dist/chunks/{websearch-zr2ceqn5.js → location-zr2ceqn5.js} +1 -1
  281. package/dist/chunks/{websearch-aq92k1t1.js → location-zrjxanbe.js} +36 -26
  282. package/dist/chunks/{websearch-tax3fkaf.js → location-zvn35tm5.js} +1 -1
  283. package/dist/chunks/{websearch-zxq2ej10.js → location-zxq2ej10.js} +1 -1
  284. package/dist/codemode/catalog.js +1 -1
  285. package/dist/codemode/instructions.js +7 -7
  286. package/dist/codemode/tool.js +3 -3
  287. package/dist/codemode/web.js +1 -1
  288. package/dist/command.js +87 -87
  289. package/dist/config/discovery.js +84 -84
  290. package/dist/config/markdown.js +1 -1
  291. package/dist/config/normalize.js +101 -101
  292. package/dist/config/plugin/agent.js +116 -118
  293. package/dist/config/plugin/command.js +205 -207
  294. package/dist/config/plugin/compaction.js +154 -156
  295. package/dist/config/plugin/compatibility.js +132 -134
  296. package/dist/config/plugin/entry-observer.js +1 -1
  297. package/dist/config/plugin/formatter.js +117 -119
  298. package/dist/config/plugin/image.js +116 -118
  299. package/dist/config/plugin/instruction.js +116 -92
  300. package/dist/config/plugin/location-watcher.js +116 -118
  301. package/dist/config/plugin/mcp.js +123 -125
  302. package/dist/config/plugin/policy.js +117 -119
  303. package/dist/config/plugin/provider.js +116 -118
  304. package/dist/config/plugin/reference.js +118 -120
  305. package/dist/config/plugin/shell.js +118 -120
  306. package/dist/config/plugin/skill-file.js +104 -104
  307. package/dist/config/plugin/skill.js +137 -139
  308. package/dist/config/plugin/snapshot.js +116 -118
  309. package/dist/config/plugin/source.js +117 -119
  310. package/dist/config/plugin/tool-output.js +117 -119
  311. package/dist/config/plugin/websearch.js +117 -119
  312. package/dist/config/plugin/worktree.js +118 -120
  313. package/dist/config/variable.js +1 -3
  314. package/dist/config/watch.js +1 -1
  315. package/dist/config.js +119 -121
  316. package/dist/credential/sql.js +2 -2
  317. package/dist/credential.js +87 -87
  318. package/dist/database/database.js +68 -68
  319. package/dist/database/drizzle/effect-sqlite/driver.js +12 -12
  320. package/dist/database/drizzle/effect-sqlite/index.js +12 -12
  321. package/dist/database/drizzle/effect-sqlite/session.js +11 -11
  322. package/dist/database/drizzle/index.js +13 -13
  323. package/dist/database/drizzle/internal/drizzle-utils.js +1 -1
  324. package/dist/database/drizzle/sqlite-core/effect/count.js +1 -1
  325. package/dist/database/drizzle/sqlite-core/effect/db.js +9 -9
  326. package/dist/database/drizzle/sqlite-core/effect/delete.js +2 -2
  327. package/dist/database/drizzle/sqlite-core/effect/index.js +10 -10
  328. package/dist/database/drizzle/sqlite-core/effect/insert.js +2 -2
  329. package/dist/database/drizzle/sqlite-core/effect/query.js +1 -1
  330. package/dist/database/drizzle/sqlite-core/effect/raw.js +1 -1
  331. package/dist/database/drizzle/sqlite-core/effect/select.js +2 -2
  332. package/dist/database/drizzle/sqlite-core/effect/session.js +10 -10
  333. package/dist/database/drizzle/sqlite-core/effect/update.js +2 -2
  334. package/dist/database/drizzle.js +14 -14
  335. package/dist/database/migration/20260127222353_familiar_lady_ursula.js +1 -1
  336. package/dist/database/migration/20260211171708_add_project_commands.js +1 -1
  337. package/dist/database/migration/20260213144116_wakeful_the_professor.js +1 -1
  338. package/dist/database/migration/20260225215848_workspace.js +1 -1
  339. package/dist/database/migration/20260227213759_add_session_workspace_id.js +1 -1
  340. package/dist/database/migration/20260228203230_blue_harpoon.js +1 -1
  341. package/dist/database/migration/20260303231226_add_workspace_fields.js +1 -1
  342. package/dist/database/migration/20260309230000_move_org_to_state.js +1 -1
  343. package/dist/database/migration/20260312043431_session_message_cursor.js +1 -1
  344. package/dist/database/migration/20260323234822_events.js +1 -1
  345. package/dist/database/migration/20260410174513_workspace-name.js +1 -1
  346. package/dist/database/migration/20260413175956_chief_energizer.js +1 -1
  347. package/dist/database/migration/20260423070820_add_icon_url_override.js +1 -1
  348. package/dist/database/migration/20260427172553_slow_nightmare.js +1 -1
  349. package/dist/database/migration/20260428004200_add_session_path.js +1 -1
  350. package/dist/database/migration/20260501142318_next_venus.js +1 -1
  351. package/dist/database/migration/20260504145000_add_sync_owner.js +1 -1
  352. package/dist/database/migration/20260507164347_add_workspace_time.js +1 -1
  353. package/dist/database/migration/20260510033149_session_usage.js +1 -1
  354. package/dist/database/migration/20260511000411_data_migration_state.js +1 -1
  355. package/dist/database/migration/20260511173437_session-metadata.js +1 -1
  356. package/dist/database/migration/20260601010001_normalize_storage_paths.js +1 -1
  357. package/dist/database/migration/20260601202201_amazing_prowler.js +1 -1
  358. package/dist/database/migration/20260602002951_lowly_union_jack.js +1 -1
  359. package/dist/database/migration/20260602182828_add_project_directories.js +1 -1
  360. package/dist/database/migration/20260603001617_session_message_projection_indexes.js +1 -1
  361. package/dist/database/migration/20260603040000_session_message_projection_order.js +1 -1
  362. package/dist/database/migration/20260603141458_session_input_inbox.js +1 -1
  363. package/dist/database/migration/20260603160727_jittery_ezekiel_stane.js +1 -1
  364. package/dist/database/migration/20260604172448_event_sourced_session_input.js +1 -1
  365. package/dist/database/migration/20260605003541_add_session_context_snapshot.js +1 -1
  366. package/dist/database/migration/20260605042240_add_context_epoch_agent.js +1 -1
  367. package/dist/database/migration/20260611035744_credential.js +1 -1
  368. package/dist/database/migration/20260611192811_lush_chimera.js +1 -1
  369. package/dist/database/migration/20260612174303_project_dir_strategy.js +1 -1
  370. package/dist/database/migration/20260622142730_simplify_session_context_epoch.js +1 -1
  371. package/dist/database/migration/20260622170816_reset_v2_session_state.js +1 -1
  372. package/dist/database/migration/20260622202450_simplify_session_input.js +1 -1
  373. package/dist/database/migration/20260804233008_loose_psylocke.js +1 -1
  374. package/dist/database/migration/20260805200742_import_legacy_credentials.js +1 -1
  375. package/dist/database/migration/20260808023530_workspace_domain.js +1 -1
  376. package/dist/database/migration/20260811161259_execution_claim_attempts.js +1 -1
  377. package/dist/database/migration/20260812181746_session_inbox.js +1 -1
  378. package/dist/database/migration/20260812213948_worktree.js +1 -1
  379. package/dist/database/migration/20260819222447_session_viewed_state.js +1 -1
  380. package/dist/database/migration/20260823191254_nullable_workspace_binding.js +1 -1
  381. package/dist/database/migration/20260910120000_clear_v1_session_permission.js +1 -1
  382. package/dist/database/migration/20260923013825_project_time_active.js +1 -1
  383. package/dist/database/migration/20261007190000_azure_cli_external_credential.js +1 -1
  384. package/dist/database/migration/20261010180456_project_time_archived.js +1 -1
  385. package/dist/database/migration.gen.js +51 -51
  386. package/dist/database/migration.js +53 -53
  387. package/dist/database/path.js +2 -2
  388. package/dist/database/schema.gen.js +1 -1
  389. package/dist/database/schema.sql.js +1 -1
  390. package/dist/database/sqlite.bun.js +1 -1
  391. package/dist/database/sqlite.js +1 -1
  392. package/dist/database/sqlite.node.js +1 -1
  393. package/dist/database/sqlite.workerd.js +1 -1
  394. package/dist/database/v1-migration.bun.js +78 -78
  395. package/dist/database/v1-migration.js +1 -1
  396. package/dist/effect/app-node-builder.js +366 -368
  397. package/dist/effect/app-node-platform.js +2 -2
  398. package/dist/effect/keyed-mutex.js +1 -1
  399. package/dist/effect/websocket-constructor.js +1 -1
  400. package/dist/environment/driver.js +1 -1
  401. package/dist/environment/environment.js +95 -95
  402. package/dist/environment/exec-defaults.js +2 -2
  403. package/dist/environment/files.js +1 -1
  404. package/dist/environment/index.js +97 -97
  405. package/dist/environment/local.js +2 -2
  406. package/dist/environment/memory.js +2 -2
  407. package/dist/environment/unavailable.js +3 -3
  408. package/dist/event/sql.js +1 -1
  409. package/dist/event-logger.js +72 -72
  410. package/dist/file-access.js +106 -106
  411. package/dist/file-mutation.js +92 -92
  412. package/dist/file-retention.js +1 -1
  413. package/dist/filesystem/fff.bun.js +2 -2
  414. package/dist/filesystem/fff.js +1 -1
  415. package/dist/filesystem/fff.node.js +2 -2
  416. package/dist/filesystem/fff.workerd.js +2 -2
  417. package/dist/filesystem/location-watcher-policy.js +6 -6
  418. package/dist/filesystem/location-watcher.js +214 -216
  419. package/dist/filesystem/protected.js +1 -1
  420. package/dist/filesystem/search.js +101 -101
  421. package/dist/filesystem/watcher-binding.js +3 -3
  422. package/dist/filesystem/watcher.js +13 -13
  423. package/dist/filesystem.js +104 -104
  424. package/dist/form.js +88 -88
  425. package/dist/formatter/builtins.js +4 -4
  426. package/dist/formatter.js +89 -89
  427. package/dist/generate.js +107 -107
  428. package/dist/git.js +10 -10
  429. package/dist/github-copilot/chat/convert-to-openai-compatible-chat-messages.js +1 -1
  430. package/dist/github-copilot/chat/get-response-metadata.js +1 -1
  431. package/dist/github-copilot/chat/map-openai-compatible-finish-reason.js +1 -1
  432. package/dist/github-copilot/chat/openai-compatible-chat-language-model.js +7 -7
  433. package/dist/github-copilot/chat/openai-compatible-chat-options.js +1 -1
  434. package/dist/github-copilot/chat/openai-compatible-prepare-tools.js +1 -1
  435. package/dist/github-copilot/copilot-provider.js +17 -17
  436. package/dist/github-copilot/models.js +93 -93
  437. package/dist/github-copilot/openai-compatible-error.js +1 -1
  438. package/dist/github-copilot/responses/convert-to-openai-responses-input.js +1 -1
  439. package/dist/github-copilot/responses/map-openai-responses-finish-reason.js +1 -1
  440. package/dist/github-copilot/responses/openai-error.js +1 -1
  441. package/dist/github-copilot/responses/openai-responses-language-model.js +10 -10
  442. package/dist/github-copilot/responses/openai-responses-prepare-tools.js +6 -6
  443. package/dist/github-copilot/responses/tool/code-interpreter.js +1 -1
  444. package/dist/github-copilot/responses/tool/file-search.js +1 -1
  445. package/dist/github-copilot/responses/tool/image-generation.js +1 -1
  446. package/dist/github-copilot/responses/tool/web-search-preview.js +1 -1
  447. package/dist/github-copilot/responses/tool/web-search.js +1 -1
  448. package/dist/image/photon.js +2 -2
  449. package/dist/image.js +6 -6
  450. package/dist/instance/service.js +5 -5
  451. package/dist/instance.js +357 -359
  452. package/dist/instruction-discovery.js +86 -87
  453. package/dist/instructions/builtins.js +87 -87
  454. package/dist/instructions/index.js +5 -5
  455. package/dist/integration/connection.js +3 -3
  456. package/dist/integration.js +89 -89
  457. package/dist/job.js +80 -80
  458. package/dist/kv/sql.js +2 -2
  459. package/dist/kv.js +75 -75
  460. package/dist/location-activity.js +133 -133
  461. package/dist/location-lifecycle.js +109 -109
  462. package/dist/location-service-map.js +88 -88
  463. package/dist/location-services.js +354 -356
  464. package/dist/location.js +89 -89
  465. package/dist/managed-policy.js +8 -8
  466. package/dist/mcp/client.js +107 -99
  467. package/dist/mcp/index.js +111 -111
  468. package/dist/mcp/instructions.js +131 -131
  469. package/dist/mcp/oauth.js +80 -80
  470. package/dist/mcp/stdio.js +92 -92
  471. package/dist/mime.js +1 -1
  472. package/dist/modal/models.js +93 -93
  473. package/dist/model-resolver.js +100 -100
  474. package/dist/model.js +102 -102
  475. package/dist/models-dev.js +109 -109
  476. package/dist/oauth/page.js +1 -1
  477. package/dist/permission/saved.js +84 -84
  478. package/dist/permission/sql.js +5 -5
  479. package/dist/permission.js +117 -117
  480. package/dist/persistent-pty/binary.bun.js +1 -1
  481. package/dist/persistent-pty/daemon.js +1 -1
  482. package/dist/persistent-pty/index.js +86 -86
  483. package/dist/persistent-pty/pty-binding.js +1 -1
  484. package/dist/persistent-pty.js +77 -77
  485. package/dist/plugin/agent.js +76 -76
  486. package/dist/plugin/command.js +102 -102
  487. package/dist/plugin/hooks.js +5 -5
  488. package/dist/plugin/host.js +211 -213
  489. package/dist/plugin/identity.js +3 -3
  490. package/dist/plugin/instance.js +5 -5
  491. package/dist/plugin/internal.js +329 -331
  492. package/dist/plugin/mcp-codemode-defaults.js +3 -3
  493. package/dist/plugin/models-dev.js +98 -98
  494. package/dist/plugin/module.js +117 -119
  495. package/dist/plugin/optimize.js +2 -2
  496. package/dist/plugin/plan.js +104 -104
  497. package/dist/plugin/promise.js +1 -1
  498. package/dist/plugin/provider/amazon-bedrock.js +92 -92
  499. package/dist/plugin/provider/azure.js +116 -118
  500. package/dist/plugin/provider/cerebras.js +1 -1
  501. package/dist/plugin/provider/chatgpt.js +116 -118
  502. package/dist/plugin/provider/cloudflare-ai-gateway.js +113 -115
  503. package/dist/plugin/provider/cloudflare-workers-ai.js +114 -116
  504. package/dist/plugin/provider/cohere.js +2 -2
  505. package/dist/plugin/provider/configured.js +112 -114
  506. package/dist/plugin/provider/databricks.js +1 -1
  507. package/dist/plugin/provider/digitalocean.js +95 -95
  508. package/dist/plugin/provider/dynamic.js +2 -2
  509. package/dist/plugin/provider/factory.js +1 -1
  510. package/dist/plugin/provider/github-copilot.js +97 -97
  511. package/dist/plugin/provider/gitlab.js +95 -95
  512. package/dist/plugin/provider/google-vertex.js +113 -115
  513. package/dist/plugin/provider/kilo.js +1 -1
  514. package/dist/plugin/provider/llmgateway.js +80 -80
  515. package/dist/plugin/provider/lmstudio.js +125 -127
  516. package/dist/plugin/provider/local.js +122 -124
  517. package/dist/plugin/provider/modal.js +94 -94
  518. package/dist/plugin/provider/neon.js +1 -1
  519. package/dist/plugin/provider/nvidia.js +1 -1
  520. package/dist/plugin/provider/ollama.js +125 -127
  521. package/dist/plugin/provider/openai.js +116 -118
  522. package/dist/plugin/provider/opencode.js +100 -99
  523. package/dist/plugin/provider/openrouter.js +93 -93
  524. package/dist/plugin/provider/perplexity.js +2 -2
  525. package/dist/plugin/provider/poe.js +81 -81
  526. package/dist/plugin/provider/prompt-cache-key.js +1 -1
  527. package/dist/plugin/provider/sap-ai-core.js +93 -93
  528. package/dist/plugin/provider/sdk-factory.js +1 -1
  529. package/dist/plugin/provider/snowflake-cortex.js +115 -117
  530. package/dist/plugin/provider/vercel.js +92 -92
  531. package/dist/plugin/provider/vllm.js +125 -127
  532. package/dist/plugin/provider/xai.js +93 -93
  533. package/dist/plugin/provider/zenmux.js +1 -1
  534. package/dist/plugin/provider.js +168 -169
  535. package/dist/plugin/sdk.js +78 -78
  536. package/dist/plugin/service.js +3 -3
  537. package/dist/plugin/skill.js +134 -136
  538. package/dist/plugin/source-directory.js +1 -1
  539. package/dist/plugin/supervisor.js +348 -350
  540. package/dist/plugin/tool-input-repair.js +4 -4
  541. package/dist/plugin/update.js +6 -6
  542. package/dist/plugin/vcs/git.js +88 -88
  543. package/dist/plugin/vcs/hg.js +88 -88
  544. package/dist/plugin/verbosity.js +95 -95
  545. package/dist/plugin/warming.js +114 -116
  546. package/dist/plugin/websearch/exa.js +5 -5
  547. package/dist/plugin/websearch/firecrawl.js +8 -8
  548. package/dist/plugin/websearch/index.js +9 -9
  549. package/dist/plugin/websearch/mcp.js +4 -4
  550. package/dist/plugin/websearch/parallel.js +8 -8
  551. package/dist/plugin/websearch/tavily.js +6 -6
  552. package/dist/plugin/websearch/tinyfish.js +8 -8
  553. package/dist/plugin.js +218 -220
  554. package/dist/project/schema.js +8 -8
  555. package/dist/project/sql.js +4 -4
  556. package/dist/project.js +92 -92
  557. package/dist/provider.js +105 -103
  558. package/dist/pty/protocol.js +1 -1
  559. package/dist/pty/ticket.js +1 -1
  560. package/dist/pty.js +95 -95
  561. package/dist/reference/instructions.js +87 -87
  562. package/dist/reference.js +93 -93
  563. package/dist/repository-cache.js +83 -83
  564. package/dist/repository.js +1 -1
  565. package/dist/ripgrep/binary.js +2 -2
  566. package/dist/ripgrep.js +97 -97
  567. package/dist/rpc.js +88 -88
  568. package/dist/schema.js +1 -1
  569. package/dist/session/affinity.js +1 -1
  570. package/dist/session/command.js +76 -76
  571. package/dist/session/compaction.js +133 -133
  572. package/dist/session/context.js +155 -155
  573. package/dist/session/diff.js +90 -90
  574. package/dist/session/environment.js +5 -5
  575. package/dist/session/error.js +3 -3
  576. package/dist/session/event.js +1 -1
  577. package/dist/session/execution/restart.js +214 -216
  578. package/dist/session/execution.js +129 -129
  579. package/dist/session/generate.js +156 -156
  580. package/dist/session/history.js +15 -15
  581. package/dist/session/inbox.js +90 -90
  582. package/dist/session/info.js +3 -3
  583. package/dist/session/instruction-entry.js +81 -81
  584. package/dist/session/instruction-state.js +8 -8
  585. package/dist/session/instructions.js +99 -99
  586. package/dist/session/message-updater.js +4 -4
  587. package/dist/session/message.js +1 -1
  588. package/dist/session/model-request.js +120 -118
  589. package/dist/session/model-transport.js +5 -5
  590. package/dist/session/move.js +131 -131
  591. package/dist/session/projector.js +88 -88
  592. package/dist/session/prompt.js +107 -107
  593. package/dist/session/provider-context.js +3 -3
  594. package/dist/session/revert.js +92 -92
  595. package/dist/session/run-coordinator.js +3 -3
  596. package/dist/session/runner/index.js +3 -3
  597. package/dist/session/runner/llm.js +224 -226
  598. package/dist/session/runner/max-steps.js +1 -1
  599. package/dist/session/runner/model.js +100 -100
  600. package/dist/session/runner/publish-llm-event.js +115 -115
  601. package/dist/session/runner/retry.js +4 -4
  602. package/dist/session/runner/step.js +127 -127
  603. package/dist/session/runner/to-llm-message.js +2 -2
  604. package/dist/session/schema.js +5 -5
  605. package/dist/session/session.js +164 -166
  606. package/dist/session/shell.js +130 -132
  607. package/dist/session/skill.js +105 -105
  608. package/dist/session/sql.js +5 -5
  609. package/dist/session/stats.js +75 -75
  610. package/dist/session/store.js +89 -89
  611. package/dist/session/subagent-completion.js +1 -1
  612. package/dist/session/subagent-job.js +205 -207
  613. package/dist/session/system-prompt.js +3 -3
  614. package/dist/session/title.js +159 -159
  615. package/dist/session/to-session-error.js +113 -113
  616. package/dist/session/transfer.js +214 -213
  617. package/dist/session/usage.js +1 -1
  618. package/dist/session.js +209 -211
  619. package/dist/shell/parse.js +6 -6
  620. package/dist/shell/result.js +1 -1
  621. package/dist/shell/scan.js +1 -1
  622. package/dist/shell/select.js +13 -13
  623. package/dist/shell.js +130 -132
  624. package/dist/skill/discovery.js +6 -6
  625. package/dist/skill/instructions.js +109 -109
  626. package/dist/skill.js +114 -114
  627. package/dist/snapshot.js +95 -95
  628. package/dist/state.js +1 -1
  629. package/dist/tool/html-markdown.js +1 -1
  630. package/dist/tool/http-body.js +1 -1
  631. package/dist/tool/mcp.js +130 -130
  632. package/dist/tool/plugin/edit.js +122 -122
  633. package/dist/tool/plugin/file-diff.js +1 -1
  634. package/dist/tool/plugin/glob.js +124 -124
  635. package/dist/tool/plugin/grep.js +126 -126
  636. package/dist/tool/plugin/mcp-resource.js +119 -119
  637. package/dist/tool/plugin/opencode.js +111 -111
  638. package/dist/tool/plugin/patch.js +124 -124
  639. package/dist/tool/plugin/question.js +107 -107
  640. package/dist/tool/plugin/read.js +121 -121
  641. package/dist/tool/plugin/shell.js +210 -212
  642. package/dist/tool/plugin/skill.js +115 -115
  643. package/dist/tool/plugin/subagent.js +210 -212
  644. package/dist/tool/plugin/webfetch.js +114 -114
  645. package/dist/tool/plugin/websearch.js +114 -114
  646. package/dist/tool/plugin/write.js +124 -124
  647. package/dist/tool/read-filesystem.js +102 -102
  648. package/dist/tool/runtime.js +1 -1
  649. package/dist/tool-output.js +7 -7
  650. package/dist/tool.js +14 -14
  651. package/dist/types/config/discovery.d.ts +1 -0
  652. package/dist/types/config/plugin/instruction.d.ts +3 -1
  653. package/dist/types/config/variable.d.ts +1 -44
  654. package/dist/types/config.d.ts +1 -0
  655. package/dist/types/github-copilot/chat/openai-compatible-chat-language-model.d.ts +1 -1
  656. package/dist/types/github-copilot/responses/openai-responses-language-model.d.ts +2 -2
  657. package/dist/types/instruction-discovery.d.ts +2 -3
  658. package/dist/types/model.d.ts +3 -0
  659. package/dist/types/provider.d.ts +2 -0
  660. package/dist/types/session/model-request.d.ts +2 -0
  661. package/dist/types/v1/config/migrate.d.ts +7 -0
  662. package/dist/types/variant.d.ts +3 -0
  663. package/dist/util/error-summary.js +1 -1
  664. package/dist/util/error.js +1 -1
  665. package/dist/util/git-executable.js +2 -2
  666. package/dist/util/iife.js +1 -1
  667. package/dist/util/lazy.js +1 -1
  668. package/dist/util/slug.js +1 -1
  669. package/dist/util/token.js +1 -1
  670. package/dist/util/which.js +1 -1
  671. package/dist/util/wildcard.js +1 -1
  672. package/dist/v1/config/agent.js +7 -7
  673. package/dist/v1/config/command.js +5 -5
  674. package/dist/v1/config/error.js +24 -6
  675. package/dist/v1/config/mcp.js +4 -4
  676. package/dist/v1/config/migrate.js +96 -94
  677. package/dist/v1/config/permission.js +7 -7
  678. package/dist/v1/config/plugin.js +1 -1
  679. package/dist/v1/config/provider-options.js +1 -1
  680. package/dist/v1/config/provider.js +4 -4
  681. package/dist/variant.js +96 -94
  682. package/dist/vcs/patch.js +1 -1
  683. package/dist/vcs.js +91 -91
  684. package/dist/websearch.js +86 -86
  685. package/dist/wellknown/plugin.js +78 -78
  686. package/dist/wellknown.js +81 -81
  687. package/dist/workspace/driver.js +5 -5
  688. package/dist/workspace/sql.js +1 -1
  689. package/dist/workspace.js +84 -84
  690. package/dist/worktree/directory.js +2 -2
  691. package/dist/worktree/git.js +10 -10
  692. package/dist/worktree/sql.js +5 -5
  693. package/dist/worktree/strategies.js +91 -91
  694. package/dist/worktree.js +96 -96
  695. package/package.json +8 -8
  696. package/dist/chunks/websearch-0j77ygfz.js +0 -25
  697. package/dist/chunks/websearch-4se3h60w.js +0 -76
  698. package/dist/chunks/websearch-4wb4djvq.js +0 -253
  699. package/dist/chunks/websearch-d08ezc3t.js +0 -26
  700. package/dist/chunks/websearch-geq2zx23.js +0 -513
  701. package/dist/chunks/websearch-rap9a73h.js +0 -18
  702. package/dist/chunks/websearch-t3nt8dwz.js +0 -118
  703. /package/dist/chunks/{websearch-0qkdqm5v.js → location-0qkdqm5v.js} +0 -0
  704. /package/dist/chunks/{websearch-0zkw76rk.js → location-0zkw76rk.js} +0 -0
  705. /package/dist/chunks/{websearch-17cy0kzp.js → location-17cy0kzp.js} +0 -0
  706. /package/dist/chunks/{websearch-1cnp2v09.js → location-1cnp2v09.js} +0 -0
  707. /package/dist/chunks/{websearch-1kg9ymc8.js → location-1kg9ymc8.js} +0 -0
  708. /package/dist/chunks/{websearch-24dcb14g.js → location-24dcb14g.js} +0 -0
  709. /package/dist/chunks/{websearch-2710q6r3.js → location-2710q6r3.js} +0 -0
  710. /package/dist/chunks/{websearch-2axfhc9x.js → location-2axfhc9x.js} +0 -0
  711. /package/dist/chunks/{websearch-2bv980vf.js → location-2bv980vf.js} +0 -0
  712. /package/dist/chunks/{websearch-2c3vjs8z.js → location-2c3vjs8z.js} +0 -0
  713. /package/dist/chunks/{websearch-359p4xyc.js → location-359p4xyc.js} +0 -0
  714. /package/dist/chunks/{websearch-3asan66x.js → location-3asan66x.js} +0 -0
  715. /package/dist/chunks/{websearch-3t0ybcrp.js → location-3t0ybcrp.js} +0 -0
  716. /package/dist/chunks/{websearch-3v8g72cx.js → location-3v8g72cx.js} +0 -0
  717. /package/dist/chunks/{websearch-3wcehsnq.js → location-3wcehsnq.js} +0 -0
  718. /package/dist/chunks/{websearch-43n2bw4t.js → location-43n2bw4t.js} +0 -0
  719. /package/dist/chunks/{websearch-4knz6hnm.js → location-4knz6hnm.js} +0 -0
  720. /package/dist/chunks/{websearch-4vcrnpx2.js → location-4vcrnpx2.js} +0 -0
  721. /package/dist/chunks/{websearch-4y7fprxs.js → location-4y7fprxs.js} +0 -0
  722. /package/dist/chunks/{websearch-53557ph1.js → location-53557ph1.js} +0 -0
  723. /package/dist/chunks/{websearch-550bvhaj.js → location-550bvhaj.js} +0 -0
  724. /package/dist/chunks/{websearch-6prwharc.js → location-6prwharc.js} +0 -0
  725. /package/dist/chunks/{websearch-6q2bdcd1.js → location-6q2bdcd1.js} +0 -0
  726. /package/dist/chunks/{websearch-7akdwqpd.js → location-7akdwqpd.js} +0 -0
  727. /package/dist/chunks/{websearch-7m9af43g.js → location-7m9af43g.js} +0 -0
  728. /package/dist/chunks/{websearch-822emrt2.js → location-822emrt2.js} +0 -0
  729. /package/dist/chunks/{websearch-84wd9syh.js → location-84wd9syh.js} +0 -0
  730. /package/dist/chunks/{websearch-88xbtdfr.js → location-88xbtdfr.js} +0 -0
  731. /package/dist/chunks/{websearch-8n3pysct.js → location-8n3pysct.js} +0 -0
  732. /package/dist/chunks/{websearch-8wj87zfr.js → location-8wj87zfr.js} +0 -0
  733. /package/dist/chunks/{websearch-9a4afbnw.js → location-9a4afbnw.js} +0 -0
  734. /package/dist/chunks/{websearch-9rqn6x4v.js → location-9rqn6x4v.js} +0 -0
  735. /package/dist/chunks/{websearch-a6k6eb26.js → location-a6k6eb26.js} +0 -0
  736. /package/dist/chunks/{websearch-af5trqkr.js → location-af5trqkr.js} +0 -0
  737. /package/dist/chunks/{websearch-afrmfg78.js → location-afrmfg78.js} +0 -0
  738. /package/dist/chunks/{websearch-aqzs7mqg.js → location-aqzs7mqg.js} +0 -0
  739. /package/dist/chunks/{websearch-atq7p7m5.js → location-atq7p7m5.js} +0 -0
  740. /package/dist/chunks/{websearch-bkyjaxrp.js → location-bkyjaxrp.js} +0 -0
  741. /package/dist/chunks/{websearch-bmr6ed5q.js → location-bmr6ed5q.js} +0 -0
  742. /package/dist/chunks/{websearch-cf4snx6d.js → location-cf4snx6d.js} +0 -0
  743. /package/dist/chunks/{websearch-cvy3z8tj.js → location-cvy3z8tj.js} +0 -0
  744. /package/dist/chunks/{websearch-d9fn303g.js → location-d9fn303g.js} +0 -0
  745. /package/dist/chunks/{websearch-d9jj8t3e.js → location-d9jj8t3e.js} +0 -0
  746. /package/dist/chunks/{websearch-dajrwvna.js → location-dajrwvna.js} +0 -0
  747. /package/dist/chunks/{websearch-dap0rakb.js → location-dap0rakb.js} +0 -0
  748. /package/dist/chunks/{websearch-df08tz66.js → location-df08tz66.js} +0 -0
  749. /package/dist/chunks/{websearch-dy18nga0.js → location-dy18nga0.js} +0 -0
  750. /package/dist/chunks/{websearch-e5kj55wp.js → location-e5kj55wp.js} +0 -0
  751. /package/dist/chunks/{websearch-e73j6tqm.js → location-e73j6tqm.js} +0 -0
  752. /package/dist/chunks/{websearch-ec1grn59.js → location-ec1grn59.js} +0 -0
  753. /package/dist/chunks/{websearch-eh3zwz77.js → location-eh3zwz77.js} +0 -0
  754. /package/dist/chunks/{websearch-emrn6kk6.js → location-emrn6kk6.js} +0 -0
  755. /package/dist/chunks/{websearch-f0mxakyp.js → location-f0mxakyp.js} +0 -0
  756. /package/dist/chunks/{websearch-f6n9ztr4.js → location-f6n9ztr4.js} +0 -0
  757. /package/dist/chunks/{websearch-faypxj3z.js → location-faypxj3z.js} +0 -0
  758. /package/dist/chunks/{websearch-fd410y7t.js → location-fd410y7t.js} +0 -0
  759. /package/dist/chunks/{websearch-g4wezp1m.js → location-g4wezp1m.js} +0 -0
  760. /package/dist/chunks/{websearch-g86h250q.js → location-g86h250q.js} +0 -0
  761. /package/dist/chunks/{websearch-gebd4c9n.js → location-gebd4c9n.js} +0 -0
  762. /package/dist/chunks/{websearch-gftt206x.js → location-gftt206x.js} +0 -0
  763. /package/dist/chunks/{websearch-hcxmzztb.js → location-hcxmzztb.js} +0 -0
  764. /package/dist/chunks/{websearch-hk9envan.js → location-hk9envan.js} +0 -0
  765. /package/dist/chunks/{websearch-j2ntwpah.js → location-j2ntwpah.js} +0 -0
  766. /package/dist/chunks/{websearch-j5zkgpj8.js → location-j5zkgpj8.js} +0 -0
  767. /package/dist/chunks/{websearch-jjkms2e6.js → location-jjkms2e6.js} +0 -0
  768. /package/dist/chunks/{websearch-jr7sbwjy.js → location-jr7sbwjy.js} +0 -0
  769. /package/dist/chunks/{websearch-jwfs4k6c.js → location-jwfs4k6c.js} +0 -0
  770. /package/dist/chunks/{websearch-jze0r7bz.js → location-jze0r7bz.js} +0 -0
  771. /package/dist/chunks/{websearch-jzg6c2d5.js → location-jzg6c2d5.js} +0 -0
  772. /package/dist/chunks/{websearch-m18g726c.js → location-m18g726c.js} +0 -0
  773. /package/dist/chunks/{websearch-mp448xyj.js → location-mp448xyj.js} +0 -0
  774. /package/dist/chunks/{websearch-msx8hqn2.js → location-msx8hqn2.js} +0 -0
  775. /package/dist/chunks/{websearch-n05xt0ee.js → location-n05xt0ee.js} +0 -0
  776. /package/dist/chunks/{websearch-n3j8tn72.js → location-n3j8tn72.js} +0 -0
  777. /package/dist/chunks/{websearch-njntx4h6.js → location-njntx4h6.js} +0 -0
  778. /package/dist/chunks/{websearch-pkyv6v7h.js → location-pkyv6v7h.js} +0 -0
  779. /package/dist/chunks/{websearch-pyv0edze.js → location-pyv0edze.js} +0 -0
  780. /package/dist/chunks/{websearch-q3sfg36h.js → location-q3sfg36h.js} +0 -0
  781. /package/dist/chunks/{websearch-q74kybfr.js → location-q74kybfr.js} +0 -0
  782. /package/dist/chunks/{websearch-qaymkmh1.js → location-qaymkmh1.js} +0 -0
  783. /package/dist/chunks/{websearch-qb87gjwd.js → location-qb87gjwd.js} +0 -0
  784. /package/dist/chunks/{websearch-qfa1cgps.js → location-qfa1cgps.js} +0 -0
  785. /package/dist/chunks/{websearch-qg3g05ea.js → location-qg3g05ea.js} +0 -0
  786. /package/dist/chunks/{websearch-qrg20bc0.js → location-qrg20bc0.js} +0 -0
  787. /package/dist/chunks/{websearch-rcb2kzg1.js → location-rcb2kzg1.js} +0 -0
  788. /package/dist/chunks/{websearch-sdp7kfr6.js → location-sdp7kfr6.js} +0 -0
  789. /package/dist/chunks/{websearch-ssg3fenm.js → location-ssg3fenm.js} +0 -0
  790. /package/dist/chunks/{websearch-ve7vex1e.js → location-ve7vex1e.js} +0 -0
  791. /package/dist/chunks/{websearch-w803qqfp.js → location-w803qqfp.js} +0 -0
  792. /package/dist/chunks/{websearch-wc3fc9cn.js → location-wc3fc9cn.js} +0 -0
  793. /package/dist/chunks/{websearch-wer8tq1h.js → location-wer8tq1h.js} +0 -0
  794. /package/dist/chunks/{websearch-wjj7prxr.js → location-wjj7prxr.js} +0 -0
  795. /package/dist/chunks/{websearch-wtztk69x.js → location-wtztk69x.js} +0 -0
  796. /package/dist/chunks/{websearch-x0ckcb58.js → location-x0ckcb58.js} +0 -0
  797. /package/dist/chunks/{websearch-x61499pn.js → location-x61499pn.js} +0 -0
  798. /package/dist/chunks/{websearch-y44na4kk.js → location-y44na4kk.js} +0 -0
  799. /package/dist/chunks/{websearch-y8f7s663.js → location-y8f7s663.js} +0 -0
  800. /package/dist/chunks/{websearch-ygaqb7jw.js → location-ygaqb7jw.js} +0 -0
  801. /package/dist/chunks/{websearch-ym463w8f.js → location-ym463w8f.js} +0 -0
  802. /package/dist/chunks/{websearch-z5v4ffb3.js → location-z5v4ffb3.js} +0 -0
  803. /package/dist/chunks/{websearch-z9919s4g.js → location-z9919s4g.js} +0 -0
@@ -1,56 +1,56 @@
1
1
  import {
2
2
  Service85,
3
3
  node89
4
- } from "./websearch-bwd5tn72.js";
4
+ } from "./location-pyv4m8ny.js";
5
5
  import {
6
6
  Service84,
7
7
  node88
8
- } from "./websearch-g5x1q65a.js";
8
+ } from "./location-wapmwjpk.js";
9
9
  import {
10
- Service52,
11
- node54
12
- } from "./websearch-c7gbd1xe.js";
10
+ Service56,
11
+ node59
12
+ } from "./location-98vn5e4g.js";
13
13
  import {
14
- Service48,
15
- node50
16
- } from "./websearch-tcay1cqt.js";
14
+ Service54,
15
+ node57
16
+ } from "./location-d0k1g5nx.js";
17
17
  import {
18
18
  SessionEvent2
19
- } from "./websearch-ec1grn59.js";
19
+ } from "./location-ec1grn59.js";
20
20
  import {
21
- make16
22
- } from "./websearch-yp2x3t23.js";
21
+ make17
22
+ } from "./location-1acjjqhc.js";
23
23
  import {
24
24
  DrainResult2,
25
- Service46
26
- } from "./websearch-dhmh7aw6.js";
25
+ Service52
26
+ } from "./location-rpg9c19m.js";
27
27
  import {
28
- Service69,
29
- node73
30
- } from "./websearch-aqa98z50.js";
28
+ Service72,
29
+ node75
30
+ } from "./location-v23zj4w8.js";
31
31
  import {
32
32
  toSessionError2
33
- } from "./websearch-ng1gee1q.js";
33
+ } from "./location-kfspy82a.js";
34
34
  import {
35
35
  nextPromotable2
36
- } from "./websearch-x5h28p89.js";
36
+ } from "./location-4pqc6r0s.js";
37
37
  import {
38
38
  __export
39
- } from "./websearch-9rqn6x4v.js";
39
+ } from "./location-9rqn6x4v.js";
40
40
 
41
41
  // src/session/execution.ts
42
42
  var exports_execution = {};
43
43
  __export(exports_execution, {
44
- Service: () => Service45,
44
+ Service: () => Service51,
45
45
  SessionExecution: () => exports_execution,
46
- layer: () => layer19,
47
- node: () => node48,
48
- noopLayer: () => noopLayer3,
46
+ layer: () => layer20,
47
+ node: () => node55,
48
+ noopLayer: () => noopLayer2,
49
49
  terminal: () => terminal2
50
50
  });
51
51
  import { Cause, Context, Effect, Exit, Layer } from "effect";
52
52
  import { makeGlobalNode } from "@opencode/util/effect/app-node";
53
- class Service45 extends Context.Service()("@opencode/SessionExecution") {
53
+ class Service51 extends Context.Service()("@opencode/SessionExecution") {
54
54
  }
55
55
  function terminal2(exit, reason) {
56
56
  if (Exit.isSuccess(exit))
@@ -59,11 +59,11 @@ function terminal2(exit, reason) {
59
59
  return { type: "interrupted", reason: reason ?? "shutdown" };
60
60
  return { type: "failed", error: toSessionError2(Cause.squash(exit.cause)) };
61
61
  }
62
- var layer19 = Layer.effect(Service45, Effect.gen(function* () {
63
- const store = yield* Service69;
64
- const instances = yield* Service48;
62
+ var layer20 = Layer.effect(Service51, Effect.gen(function* () {
63
+ const store = yield* Service72;
64
+ const instances = yield* Service54;
65
65
  const bus = yield* Service84;
66
- const jobs = yield* Service52;
66
+ const jobs = yield* Service56;
67
67
  const db = (yield* Service85).db;
68
68
  const reportLifecycle = (sessionID, effect) => effect.pipe(Effect.tapCause((cause) => Cause.hasInterruptsOnly(cause) ? Effect.void : Effect.logError("Failed to publish Session execution lifecycle", cause).pipe(Effect.annotateLogs({ sessionID }))), Effect.asVoid);
69
69
  const claimOnCommit = (sessionID) => ({
@@ -76,14 +76,14 @@ var layer19 = Layer.effect(Service45, Effect.gen(function* () {
76
76
  const session = yield* store.get(sessionID);
77
77
  if (!session)
78
78
  return yield* Effect.die(new Error(`Session not found: ${sessionID}`));
79
- const result = yield* Service46.use((runner) => runner.drain({ sessionID, force, continuation, promotable })).pipe(instances.provide(session), Effect.tapCause((cause) => Cause.hasInterruptsOnly(cause) ? Effect.void : Effect.logError("Failed to drain Session", cause).pipe(Effect.annotateLogs({ sessionID }))));
79
+ const result = yield* Service52.use((runner) => runner.drain({ sessionID, force, continuation, promotable })).pipe(instances.provide(session), Effect.tapCause((cause) => Cause.hasInterruptsOnly(cause) ? Effect.void : Effect.logError("Failed to drain Session", cause).pipe(Effect.annotateLogs({ sessionID }))));
80
80
  return yield* DrainResult2.$match(result, {
81
81
  Complete: () => Effect.void,
82
82
  Moved: (result) => drain(sessionID, false, result.continuation, promotable),
83
83
  Reloaded: (result) => drain(sessionID, result.force, result.continuation, promotable)
84
84
  });
85
85
  });
86
- const coordinator = yield* make16({
86
+ const coordinator = yield* make17({
87
87
  started: (sessionID) => reportLifecycle(sessionID, bus.publish(SessionEvent2.Execution.Started, { sessionID }, claimOnCommit(sessionID))),
88
88
  drain: (sessionID, force, promotable) => drain(sessionID, force, undefined, promotable),
89
89
  settled: (sessionID, exit, reason) => reportLifecycle(sessionID, Effect.gen(function* () {
@@ -104,7 +104,7 @@ var layer19 = Layer.effect(Service45, Effect.gen(function* () {
104
104
  }, releaseOnCommit(sessionID));
105
105
  }))
106
106
  });
107
- return Service45.of({
107
+ return Service51.of({
108
108
  active: coordinator.active,
109
109
  isActive: coordinator.isActive,
110
110
  interrupt: (sessionID, options) => Effect.gen(function* () {
@@ -123,12 +123,12 @@ var layer19 = Layer.effect(Service45, Effect.gen(function* () {
123
123
  awaitIdle: coordinator.awaitIdle
124
124
  });
125
125
  }));
126
- var node48 = makeGlobalNode({
127
- service: Service45,
128
- layer: layer19,
129
- deps: [node73, node50, node88, node89, node54]
126
+ var node55 = makeGlobalNode({
127
+ service: Service51,
128
+ layer: layer20,
129
+ deps: [node75, node57, node88, node89, node59]
130
130
  });
131
- var noopLayer3 = Layer.succeed(Service45, Service45.of({
131
+ var noopLayer2 = Layer.succeed(Service51, Service51.of({
132
132
  active: Effect.succeed(new Set),
133
133
  isActive: () => Effect.succeed(false),
134
134
  resume: () => Effect.void,
@@ -137,4 +137,4 @@ var noopLayer3 = Layer.succeed(Service45, Service45.of({
137
137
  awaitIdle: () => Effect.void
138
138
  }));
139
139
 
140
- export { Service45, terminal2, layer19, node48, noopLayer3, exports_execution };
140
+ export { Service51, terminal2, layer20, node55, noopLayer2, exports_execution };
@@ -1,71 +1,72 @@
1
1
  import {
2
2
  Service85,
3
3
  node89
4
- } from "./websearch-bwd5tn72.js";
4
+ } from "./location-pyv4m8ny.js";
5
5
  import {
6
6
  Service84,
7
7
  node88
8
- } from "./websearch-g5x1q65a.js";
8
+ } from "./location-wapmwjpk.js";
9
9
  import {
10
10
  create3
11
- } from "./websearch-rdw6cm16.js";
11
+ } from "./location-rdw6cm16.js";
12
12
  import {
13
- ID10,
14
- Service70,
15
- node74
16
- } from "./websearch-f7ayr8mx.js";
13
+ ID17,
14
+ Service81,
15
+ node85
16
+ } from "./location-wmx2yec4.js";
17
17
  import {
18
18
  llmClient2
19
- } from "./websearch-775gj3j1.js";
19
+ } from "./location-775gj3j1.js";
20
20
  import {
21
- Service75,
22
- node79
23
- } from "./websearch-n33ezsnm.js";
21
+ Service65,
22
+ node68
23
+ } from "./location-b476w8hy.js";
24
24
  import {
25
25
  estimate2
26
- } from "./websearch-h6vf3j39.js";
26
+ } from "./location-h6vf3j39.js";
27
27
  import {
28
28
  SessionEvent2
29
- } from "./websearch-ec1grn59.js";
29
+ } from "./location-ec1grn59.js";
30
30
  import {
31
31
  provenance2,
32
32
  compatible2,
33
33
  isCheckpoint2,
34
34
  encode2
35
- } from "./websearch-1b4m0bzf.js";
35
+ } from "./location-syf57q56.js";
36
36
  import {
37
- load4
38
- } from "./websearch-6wc34s84.js";
37
+ load5
38
+ } from "./location-xx6gh137.js";
39
39
  import {
40
40
  toLLMMessages2
41
- } from "./websearch-0fz4623t.js";
41
+ } from "./location-bczx5ry5.js";
42
42
  import {
43
+ outputLimit2,
43
44
  baseTranscript2,
44
45
  unsupportedParts2,
45
46
  boundImages2,
46
47
  Service34,
47
48
  node37
48
- } from "./websearch-0zmxjhgt.js";
49
+ } from "./location-7fpfrasm.js";
49
50
  import {
50
- Service49,
51
- node51
52
- } from "./websearch-kfxbay1b.js";
51
+ Service55,
52
+ node58
53
+ } from "./location-q89amkt5.js";
53
54
  import {
54
55
  isRetryable2,
55
56
  policy2
56
- } from "./websearch-scgrse2b.js";
57
+ } from "./location-b3f8fkhc.js";
57
58
  import {
58
59
  toSessionError2,
59
60
  contentFilterError2
60
- } from "./websearch-ng1gee1q.js";
61
+ } from "./location-kfspy82a.js";
61
62
  import {
62
63
  calculateCost2,
63
64
  record2,
64
65
  add2
65
- } from "./websearch-tdstcens.js";
66
+ } from "./location-tdstcens.js";
66
67
  import {
67
68
  __export
68
- } from "./websearch-9rqn6x4v.js";
69
+ } from "./location-9rqn6x4v.js";
69
70
 
70
71
  // src/session/compaction.ts
71
72
  var exports_compaction2 = {};
@@ -75,7 +76,7 @@ __export(exports_compaction2, {
75
76
  buildPrompt: () => buildPrompt2,
76
77
  estimateContext: () => estimateContext2,
77
78
  estimatePrompt: () => estimatePrompt2,
78
- layer: () => layer8,
79
+ layer: () => layer6,
79
80
  node: () => node11,
80
81
  recentUserMessages: () => recentUserMessages2
81
82
  });
@@ -171,12 +172,12 @@ var buildPrompt2 = (update, legacy = false) => {
171
172
  };
172
173
  var NUDGE = "The previous response did not fill in the required summary template. Do not call tools. Return the summary as text using the exact section headings from the template.";
173
174
  var LEGACY_HEADING = "## Additional Context";
174
- var layer8 = Layer.effect(Service9, Effect.gen(function* () {
175
- const agents = yield* Service70;
175
+ var layer6 = Layer.effect(Service9, Effect.gen(function* () {
176
+ const agents = yield* Service81;
176
177
  const bus = yield* Service84;
177
178
  const llm = yield* LLMClient.Service;
178
- const catalog = yield* Service75;
179
- const models = yield* Service49;
179
+ const catalog = yield* Service65;
180
+ const models = yield* Service55;
180
181
  const db = (yield* Service85).db;
181
182
  const requests = yield* Service34;
182
183
  const state = create3({
@@ -196,7 +197,7 @@ var layer8 = Layer.effect(Service9, Effect.gen(function* () {
196
197
  if (trigger.reason === "auto" && !due(context, calculateCeiling(context.model.limit, settings.buffer)))
197
198
  return { status: "skipped" };
198
199
  const native = context.model.compaction?.type === "native";
199
- const agent = native ? undefined : yield* agents.get(ID10.make("compaction"));
200
+ const agent = native ? undefined : yield* agents.get(ID17.make("compaction"));
200
201
  const model = (agent?.model && (yield* models.resolve({ ...context.session, model: agent.model }, catalog.available).pipe(Effect.orElseSucceed(() => {
201
202
  return;
202
203
  })))) ?? context.model;
@@ -233,11 +234,11 @@ var layer8 = Layer.effect(Service9, Effect.gen(function* () {
233
234
  `).some((line) => headings.includes(line.trim()));
234
235
  const prepared = yield* prepare(context, split.older, budget);
235
236
  const send = (request) => Effect.gen(function* () {
236
- const prompted = LLMRequest.update(request, { messages: [...request.messages, Message.user(prompt)] });
237
+ const prompted = fitOutput(LLMRequest.update(request, { messages: [...request.messages, Message.user(prompt)] }), context.model.limit);
237
238
  const reply = yield* stream(context, prompted, prepared.options);
238
239
  if (filled(reply.text))
239
240
  return { ...reply, recent: split.recent };
240
- const nudged = LLMRequest.update(prompted, { messages: [...prompted.messages, Message.user(NUDGE)] });
241
+ const nudged = fitOutput(LLMRequest.update(prompted, { messages: [...prompted.messages, Message.user(NUDGE)] }), context.model.limit);
241
242
  const retry = yield* stream(context, nudged, prepared.options);
242
243
  if (filled(retry.text))
243
244
  return { ...retry, recent: split.recent };
@@ -272,7 +273,7 @@ var layer8 = Layer.effect(Service9, Effect.gen(function* () {
272
273
  const send = (request) => {
273
274
  if (LLMClient.canCompact(request, { mechanism: "trigger" })) {
274
275
  return Effect.gen(function* () {
275
- const history = yield* load4(db, context.session.id, "local").pipe(Effect.orDie);
276
+ const history = yield* load5(db, context.session.id, "local").pipe(Effect.orDie);
276
277
  const retained = recentUserMessages2(history, context.model, keep);
277
278
  const response = yield* llm.compact(request, { ...prepared.options, mechanism: "trigger" });
278
279
  return yield* toResult([...retained, Message.assistant(response.checkpoint)], response.usage);
@@ -480,8 +481,8 @@ ${text}`;
480
481
  }));
481
482
  var node11 = makeLocationNode({
482
483
  service: Service9,
483
- layer: layer8,
484
- deps: [node74, node88, node89, llmClient2, node79, node37, node51]
484
+ layer: layer6,
485
+ deps: [node85, node88, node89, llmClient2, node68, node37, node58]
485
486
  });
486
487
  var previousCompaction = (messages) => {
487
488
  const [first] = messages;
@@ -654,6 +655,15 @@ var calculateCeiling = (limit, buffer) => {
654
655
  return window - Math.max(Math.floor(window * 0.1), window >= 2 * RESERVE_MIN ? RESERVE_MIN : 0);
655
656
  };
656
657
  var hasMeasuredPrompt = (message, model) => message.type === "assistant" && message.model.providerID === model.providerID && !message.error && message.tokens !== undefined && message.tokens.input + message.tokens.cache.read + message.tokens.cache.write > 0;
658
+ var fitOutput = (request, limit) => {
659
+ const current = request.generation?.maxTokens;
660
+ if (current === undefined)
661
+ return request;
662
+ const maxTokens = Math.min(current, outputLimit2(limit, "compaction", { measured: estimateRequest(request), estimated: 0 }));
663
+ if (maxTokens === current)
664
+ return request;
665
+ return LLMRequest.update(request, { generation: { ...request.generation, maxTokens } });
666
+ };
657
667
  var estimateRequest = (request) => request.system.reduce((sum, part) => sum + estimate2(part.text), 0) + request.tools.reduce((sum, tool) => sum + estimateTool(tool), 0) + request.messages.reduce((sum, message) => sum + estimateMessage(message), 0);
658
668
  var estimateTool = (tool) => {
659
669
  if (tool.type === "tool")
@@ -686,4 +696,4 @@ var estimateMedia = (mime) => {
686
696
  return 0;
687
697
  };
688
698
 
689
- export { Service9, buildPrompt2, layer8, node11, recentUserMessages2, estimateContext2, estimatePrompt2, exports_compaction2 };
699
+ export { Service9, buildPrompt2, layer6, node11, recentUserMessages2, estimateContext2, estimatePrompt2, exports_compaction2 };
@@ -1,32 +1,32 @@
1
1
  import {
2
2
  Service84,
3
3
  node88
4
- } from "./websearch-g5x1q65a.js";
4
+ } from "./location-wapmwjpk.js";
5
5
  import {
6
6
  create3
7
- } from "./websearch-rdw6cm16.js";
7
+ } from "./location-rdw6cm16.js";
8
8
  import {
9
9
  evaluate2
10
- } from "./websearch-2yb0fdev.js";
10
+ } from "./location-0k8emadn.js";
11
11
  import {
12
12
  __export
13
- } from "./websearch-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: () => Event8,
21
- ID: () => ID5,
22
- Info: () => Info7,
20
+ Event: () => Event16,
21
+ ID: () => ID10,
22
+ Info: () => Info20,
23
23
  Name: () => Name2,
24
- Service: () => Service43,
24
+ Service: () => Service70,
25
25
  Skill: () => exports_skill5,
26
- Source: () => Source3,
26
+ Source: () => Source4,
27
27
  UrlSource: () => UrlSource2,
28
28
  available: () => available3,
29
- node: () => node46,
29
+ node: () => node73,
30
30
  prepare: () => prepare3,
31
31
  toModelOutput: () => toModelOutput3
32
32
  });
@@ -34,13 +34,13 @@ import { makeLocationNode } from "@opencode/util/effect/app-node";
34
34
  import path from "path";
35
35
  import { Context, Effect, Layer } from "effect";
36
36
  import { Skill } from "@opencode/schema/skill";
37
- import { Event as Event8 } from "@opencode/schema/skill";
37
+ import { Event as Event16 } from "@opencode/schema/skill";
38
38
  var DirectorySource2 = Skill.DirectorySource;
39
39
  var UrlSource2 = Skill.UrlSource;
40
40
  var EmbeddedSource2 = Skill.EmbeddedSource;
41
- var Source3 = Skill.Source;
42
- var Info7 = Skill.Info;
43
- var ID5 = Skill.ID;
41
+ var Source4 = Skill.Source;
42
+ var Info20 = Skill.Info;
43
+ var ID10 = Skill.ID;
44
44
  var Name2 = Skill.Name;
45
45
  var available3 = (skills, permissions) => skills.filter((skill) => evaluate2("skill", skill.id, permissions).effect !== "deny");
46
46
  var toModelOutput3 = (skill, files) => {
@@ -71,33 +71,33 @@ var prepare3 = Effect.fn("Skill.prepare")(function* (fs, skill) {
71
71
  };
72
72
  });
73
73
 
74
- class Service43 extends Context.Service()("@opencode/Skill") {
74
+ class Service70 extends Context.Service()("@opencode/Skill") {
75
75
  }
76
- var layer = Layer.effect(Service43, Effect.gen(function* () {
76
+ var layer = Layer.effect(Service70, Effect.gen(function* () {
77
77
  const bus = yield* Service84;
78
78
  const state = create3({
79
79
  name: "skill",
80
80
  initial: () => ({ skills: new Map }),
81
81
  editor: (editor) => ({
82
82
  list: () => Array.from(editor.skills.values()),
83
- get: (id) => editor.skills.get(ID5.make(id)),
83
+ get: (id) => editor.skills.get(ID10.make(id)),
84
84
  add: (skill) => {
85
85
  editor.skills.set(skill.id, { ...skill });
86
86
  },
87
87
  update: (id, update) => {
88
- const current = editor.skills.get(ID5.make(id));
88
+ const current = editor.skills.get(ID10.make(id));
89
89
  if (!current)
90
90
  return;
91
91
  update(current);
92
- current.id = ID5.make(id);
92
+ current.id = ID10.make(id);
93
93
  },
94
94
  remove: (id) => {
95
- editor.skills.delete(ID5.make(id));
95
+ editor.skills.delete(ID10.make(id));
96
96
  }
97
97
  }),
98
98
  notify: () => bus.publish(Skill.Event.Updated, {}).pipe(Effect.asVoid)
99
99
  });
100
- return Service43.of({
100
+ return Service70.of({
101
101
  transform: state.transform,
102
102
  reload: state.reload,
103
103
  get: Effect.fn("Skill.get")(function* (id) {
@@ -108,10 +108,10 @@ var layer = Layer.effect(Service43, Effect.gen(function* () {
108
108
  })
109
109
  });
110
110
  }));
111
- var node46 = makeLocationNode({
112
- service: Service43,
111
+ var node73 = makeLocationNode({
112
+ service: Service70,
113
113
  layer,
114
114
  deps: [node88]
115
115
  });
116
116
 
117
- export { DirectorySource2, UrlSource2, EmbeddedSource2, Source3, Info7, ID5, Name2, available3, toModelOutput3, prepare3, Service43, node46, exports_skill5, Event8 };
117
+ export { DirectorySource2, UrlSource2, EmbeddedSource2, Source4, Info20, ID10, Name2, available3, toModelOutput3, prepare3, Service70, node73, exports_skill5, Event16 };
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  __export
3
- } from "./websearch-9rqn6x4v.js";
3
+ } from "./location-9rqn6x4v.js";
4
4
 
5
5
  // src/v1/config/plugin.ts
6
6
  var exports_plugin3 = {};
@@ -1,22 +1,22 @@
1
1
  import {
2
- ID13,
2
+ ID6,
3
3
  isAISDK2,
4
4
  packageName2,
5
5
  timeouts2,
6
6
  mergeOverlay2
7
- } from "./websearch-caa8k32f.js";
7
+ } from "./location-xg3acd94.js";
8
8
  import {
9
9
  __export
10
- } from "./websearch-9rqn6x4v.js";
10
+ } from "./location-9rqn6x4v.js";
11
11
 
12
12
  // src/aisdk.ts
13
13
  var exports_aisdk = {};
14
14
  __export(exports_aisdk, {
15
15
  AISDK: () => exports_aisdk,
16
16
  InitError: () => InitError2,
17
- Service: () => Service60,
17
+ Service: () => Service58,
18
18
  locationLayer: () => locationLayer2,
19
- node: () => node64
19
+ node: () => node61
20
20
  });
21
21
  import { makeLocationNode } from "@opencode/util/effect/app-node";
22
22
  import { APICallError } from "@ai-sdk/provider";
@@ -151,7 +151,7 @@ function throughMiddleware(store, send, input, init) {
151
151
  var HEADER_TIMEOUT_MESSAGE = "Response headers timed out";
152
152
 
153
153
  class InitError2 extends Schema.TaggedError()("AISDK.InitError", {
154
- providerID: ID13,
154
+ providerID: ID6,
155
155
  cause: Schema.Defect()
156
156
  }) {
157
157
  }
@@ -159,9 +159,9 @@ function initError(providerID) {
159
159
  return Effect.catchCause((cause) => Effect.fail(new InitError2({ providerID, cause: Cause.squash(cause) })));
160
160
  }
161
161
 
162
- class Service60 extends Context.Service()("@opencode/AISDK") {
162
+ class Service58 extends Context.Service()("@opencode/AISDK") {
163
163
  }
164
- var locationLayer2 = Layer.effect(Service60, Effect.gen(function* () {
164
+ var locationLayer2 = Layer.effect(Service58, Effect.gen(function* () {
165
165
  let sdkHooks = [];
166
166
  let languageHooks = [];
167
167
  const languages = new Map;
@@ -199,7 +199,7 @@ var locationLayer2 = Layer.effect(Service60, Effect.gen(function* () {
199
199
  }
200
200
  return event;
201
201
  });
202
- const service = Service60.of({
202
+ const service = Service58.of({
203
203
  hook: {
204
204
  sdk: register(() => sdkHooks, (next) => sdkHooks = next),
205
205
  language: register(() => languageHooks, (next) => languageHooks = next)
@@ -874,6 +874,6 @@ function providerErrorMessage(error) {
874
874
  const prefix = error.statusCode === undefined ? "Provider request failed" : `Provider request failed with HTTP ${error.statusCode}`;
875
875
  return error.message.trim() !== "" ? error.message : message ?? (code === undefined ? prefix : `${prefix}: ${code}`);
876
876
  }
877
- var node64 = makeLocationNode({ service: Service60, layer: locationLayer2, deps: [] });
877
+ var node61 = makeLocationNode({ service: Service58, layer: locationLayer2, deps: [] });
878
878
 
879
- export { InitError2, Service60, locationLayer2, node64, exports_aisdk };
879
+ export { InitError2, Service58, locationLayer2, node61, exports_aisdk };
@@ -1,12 +1,12 @@
1
1
  import {
2
2
  migrations2
3
- } from "./websearch-5z3y5rqa.js";
3
+ } from "./location-d2gxvrjz.js";
4
4
  import {
5
5
  schema_gen_default
6
- } from "./websearch-pkyv6v7h.js";
6
+ } from "./location-pkyv6v7h.js";
7
7
  import {
8
8
  __export
9
- } from "./websearch-9rqn6x4v.js";
9
+ } from "./location-9rqn6x4v.js";
10
10
 
11
11
  // src/database/migration.ts
12
12
  var exports_migration = {};
@@ -1,17 +1,17 @@
1
1
  import {
2
2
  Ref4
3
- } from "./websearch-1p799z25.js";
3
+ } from "./location-a3kydf8v.js";
4
4
  import {
5
5
  __export
6
- } from "./websearch-9rqn6x4v.js";
6
+ } from "./location-9rqn6x4v.js";
7
7
 
8
8
  // src/location-service-map.ts
9
9
  var exports_location_service_map = {};
10
10
  __export(exports_location_service_map, {
11
11
  LocationServiceMap: () => exports_location_service_map,
12
- Service: () => Service66,
12
+ Service: () => Service75,
13
13
  canonical: () => canonical3,
14
- node: () => node70,
14
+ node: () => node78,
15
15
  reload: () => reload2
16
16
  });
17
17
  import { Context, Effect, Exit, Layer, RcMap } from "effect";
@@ -19,14 +19,14 @@ import { LayerNode } from "@opencode/util/effect/layer-node";
19
19
  import { Node } from "@opencode/util/effect/app-node";
20
20
  import { AbsolutePath } from "@opencode/schema/schema";
21
21
  import path from "path";
22
- class Service66 extends Context.Service()("@opencode/example/LocationServiceMap") {
22
+ class Service75 extends Context.Service()("@opencode/example/LocationServiceMap") {
23
23
  static get(ref) {
24
- return Layer.unwrap(Effect.map(Service66, (locations) => locations.get(ref)));
24
+ return Layer.unwrap(Effect.map(Service75, (locations) => locations.get(ref)));
25
25
  }
26
26
  }
27
- var node70 = LayerNode.unbound(Service66, Node.tags.values.global);
27
+ var node78 = LayerNode.unbound(Service75, Node.tags.values.global);
28
28
  var reload2 = Effect.fn("LocationServiceMap.reload")(function* () {
29
- const locations = yield* Service66;
29
+ const locations = yield* Service75;
30
30
  const refs = Array.from(yield* RcMap.keys(locations.rcMap));
31
31
  yield* Effect.forEach(refs, (ref) => locations.invalidate(ref), {
32
32
  discard: true,
@@ -45,4 +45,4 @@ function canonical3(ref) {
45
45
  });
46
46
  }
47
47
 
48
- export { Service66, node70, reload2, canonical3, exports_location_service_map };
48
+ export { Service75, node78, reload2, canonical3, exports_location_service_map };
@@ -1,16 +1,16 @@
1
1
  import {
2
2
  AbsolutePath2
3
- } from "./websearch-z5v4ffb3.js";
3
+ } from "./location-z5v4ffb3.js";
4
4
  import {
5
5
  __export
6
- } from "./websearch-9rqn6x4v.js";
6
+ } from "./location-9rqn6x4v.js";
7
7
 
8
8
  // src/skill/discovery.ts
9
9
  var exports_discovery = {};
10
10
  __export(exports_discovery, {
11
- Service: () => Service10,
11
+ Service: () => Service13,
12
12
  SkillDiscovery: () => exports_discovery,
13
- node: () => node12
13
+ node: () => node15
14
14
  });
15
15
  import path from "path";
16
16
  import { Context, Effect, Layer, Schedule, Schema } from "effect";
@@ -48,9 +48,9 @@ class Index extends Schema.Class("SkillDiscovery.Index")({
48
48
  }) {
49
49
  }
50
50
 
51
- class Service10 extends Context.Service()("@opencode/SkillDiscovery") {
51
+ class Service13 extends Context.Service()("@opencode/SkillDiscovery") {
52
52
  }
53
- var layer = Layer.effect(Service10, Effect.gen(function* () {
53
+ var layer = Layer.effect(Service13, Effect.gen(function* () {
54
54
  const fs = yield* FSUtil.Service;
55
55
  const global = yield* Global.Service;
56
56
  const http = (yield* HttpClient.HttpClient).pipe(HttpClient.retryTransient({
@@ -63,7 +63,7 @@ var layer = Layer.effect(Service10, Effect.gen(function* () {
63
63
  return true;
64
64
  return yield* HttpClientRequest.get(url).pipe(http.execute, Effect.flatMap((response) => response.arrayBuffer), Effect.flatMap((body) => fs.writeWithDirs(destination, new Uint8Array(body))), Effect.as(true), Effect.catch((error) => Effect.logError("failed to download skill file", { url, error }).pipe(Effect.as(false))));
65
65
  });
66
- return Service10.of({
66
+ return Service13.of({
67
67
  pull: Effect.fn("SkillDiscovery.pull")(function* (url) {
68
68
  const base = url.endsWith("/") ? url : `${url}/`;
69
69
  const source = new URL(base);
@@ -150,6 +150,6 @@ var layer = Layer.effect(Service10, Effect.gen(function* () {
150
150
  })
151
151
  });
152
152
  }));
153
- var node12 = makeGlobalNode({ service: Service10, layer, deps: [httpClient, FSUtil.node, Global.node] });
153
+ var node15 = makeGlobalNode({ service: Service13, layer, deps: [httpClient, FSUtil.node, Global.node] });
154
154
 
155
- export { Service10, node12, exports_discovery };
155
+ export { Service13, node15, exports_discovery };
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  __export
3
- } from "./websearch-9rqn6x4v.js";
3
+ } from "./location-9rqn6x4v.js";
4
4
 
5
5
  // src/file-retention.ts
6
6
  var exports_file_retention = {};