@opencode-ai/core 0.0.0-beta-18743 → 0.0.0-beta-18955

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 (928) hide show
  1. package/dist/account/sql.js +4 -4
  2. package/dist/agent.js +78 -78
  3. package/dist/aisdk-native.js +5 -5
  4. package/dist/aisdk.js +8 -8
  5. package/dist/app.js +8 -8
  6. package/dist/bus.js +78 -78
  7. package/dist/catalog.js +81 -81
  8. package/dist/chunks/{websearch-zxbgx7sv.js → event-logger-08pxpvak.js} +17 -17
  9. package/dist/chunks/{websearch-3thh6229.js → event-logger-0ag03ecw.js} +2 -2
  10. package/dist/chunks/{websearch-svakn3c9.js → event-logger-0dz826pz.js} +3 -3
  11. package/dist/chunks/{websearch-57ej80dx.js → event-logger-0gpahtwn.js} +92 -15
  12. package/dist/chunks/{websearch-pmxbkaxh.js → event-logger-0gxv3s82.js} +6 -6
  13. package/dist/chunks/{websearch-4zzdwbaz.js → event-logger-0pc4kdn1.js} +2 -2
  14. package/dist/chunks/{websearch-2m0hgr65.js → event-logger-0rz7yd7x.js} +3 -3
  15. package/dist/chunks/{websearch-xxpvz42q.js → event-logger-136c8mz3.js} +12 -11
  16. package/dist/chunks/{websearch-ebkm32az.js → event-logger-1cvrgbet.js} +17 -14
  17. package/dist/chunks/{websearch-58qy95wc.js → event-logger-1j04cwhr.js} +23 -17
  18. package/dist/chunks/{websearch-5jsm3hkx.js → event-logger-1n8w657t.js} +13 -13
  19. package/dist/chunks/{websearch-16zkvt3y.js → event-logger-23y1jcwt.js} +2 -2
  20. package/dist/chunks/{websearch-264e1nfp.js → event-logger-264e1nfp.js} +2 -2
  21. package/dist/chunks/event-logger-2dy05jzf.js +206 -0
  22. package/dist/chunks/{websearch-vv04m5r9.js → event-logger-2gjt1w6y.js} +12 -16
  23. package/dist/chunks/{websearch-bswth2jt.js → event-logger-2hktn3e1.js} +8 -8
  24. package/dist/chunks/{websearch-r0c038tz.js → event-logger-2hmmtx2y.js} +16 -13
  25. package/dist/chunks/{websearch-bbhffenw.js → event-logger-2qq12ds3.js} +17 -17
  26. package/dist/chunks/{websearch-cgqn2mrm.js → event-logger-2sqw2jjm.js} +20 -20
  27. package/dist/chunks/{websearch-fgbg5vp8.js → event-logger-2y7knjcn.js} +78 -95
  28. package/dist/chunks/{websearch-393a352g.js → event-logger-326j4s6w.js} +5 -5
  29. package/dist/chunks/{websearch-qcny0ysj.js → event-logger-35q0pxy1.js} +25 -25
  30. package/dist/chunks/{websearch-g57kecbr.js → event-logger-3cfzw09p.js} +13 -13
  31. package/dist/chunks/{websearch-vz89hfgr.js → event-logger-3chx3ng6.js} +11 -11
  32. package/dist/chunks/{websearch-t6ma3p1k.js → event-logger-3ebhgms6.js} +5 -5
  33. package/dist/chunks/{websearch-h5wnyjzw.js → event-logger-3ep0k87g.js} +5 -5
  34. package/dist/chunks/{websearch-zsyc5nym.js → event-logger-3fsqcqr3.js} +15 -15
  35. package/dist/chunks/{websearch-j281xcgt.js → event-logger-3mc1hhwa.js} +5 -5
  36. package/dist/chunks/{websearch-g8vhkwkh.js → event-logger-3r1x0nyw.js} +29 -14
  37. package/dist/chunks/{websearch-8rq9vje0.js → event-logger-3r56fk07.js} +5 -5
  38. package/dist/chunks/event-logger-3tg0cqem.js +51 -0
  39. package/dist/chunks/{websearch-thstd87d.js → event-logger-42zyazrq.js} +3 -3
  40. package/dist/chunks/{websearch-azdqaz44.js → event-logger-436nrt40.js} +12 -12
  41. package/dist/chunks/{websearch-p6jxvkgx.js → event-logger-46rdtn0f.js} +3 -3
  42. package/dist/chunks/event-logger-473q516w.js +34 -0
  43. package/dist/chunks/{websearch-h7xf8fhv.js → event-logger-492z0nb6.js} +18 -18
  44. package/dist/chunks/{websearch-sa72t5px.js → event-logger-4cpn1159.js} +12 -12
  45. package/dist/chunks/{websearch-1b8q0qfd.js → event-logger-4dptn36j.js} +14 -14
  46. package/dist/chunks/{websearch-nxaza16h.js → event-logger-4fsyr2s9.js} +12 -12
  47. package/dist/chunks/{websearch-b3c7c25w.js → event-logger-4hynchfh.js} +5 -5
  48. package/dist/chunks/{websearch-ppeewn5e.js → event-logger-4psh7k13.js} +21 -21
  49. package/dist/chunks/{websearch-wft6ftgt.js → event-logger-4v4fym39.js} +13 -13
  50. package/dist/chunks/{websearch-2nmyybe0.js → event-logger-4v6g3p22.js} +3 -3
  51. package/dist/chunks/{websearch-aw3ez9f6.js → event-logger-4vcd31gm.js} +20 -20
  52. package/dist/chunks/{websearch-vqbmgfq1.js → event-logger-4w0ckvbq.js} +11 -11
  53. package/dist/chunks/{websearch-k5e6kcej.js → event-logger-51t2tyks.js} +6 -14
  54. package/dist/chunks/{websearch-vmj52cpb.js → event-logger-52a5hsyw.js} +21 -5
  55. package/dist/chunks/{websearch-h6q26knr.js → event-logger-53jxjgr1.js} +2 -2
  56. package/dist/chunks/{websearch-bwv594nh.js → event-logger-5efgsk2e.js} +19 -14
  57. package/dist/chunks/{websearch-5kg7kdyf.js → event-logger-5hd326tc.js} +7 -7
  58. package/dist/chunks/{websearch-bfwky23p.js → event-logger-5sakdtm6.js} +3 -3
  59. package/dist/chunks/{websearch-q66tjefk.js → event-logger-5vbk082d.js} +2 -2
  60. package/dist/chunks/{websearch-etvrgfqj.js → event-logger-5y5kqjze.js} +7 -7
  61. package/dist/chunks/{websearch-qtnwpnb7.js → event-logger-61znvqb4.js} +60 -60
  62. package/dist/chunks/event-logger-63yqstqv.js +200 -0
  63. package/dist/chunks/{websearch-0kvmztkf.js → event-logger-66mds5ht.js} +3 -3
  64. package/dist/chunks/{websearch-fex42j86.js → event-logger-68yag814.js} +14 -14
  65. package/dist/chunks/{websearch-6wkzvma0.js → event-logger-6a909wmz.js} +10 -12
  66. package/dist/chunks/event-logger-6bxzghb6.js +20 -0
  67. package/dist/chunks/{websearch-fm3b2wbt.js → event-logger-6hppa3xw.js} +4 -4
  68. package/dist/chunks/{websearch-d2gk9vpf.js → event-logger-6vbv4je1.js} +4 -4
  69. package/dist/chunks/{websearch-zxe9jjhn.js → event-logger-6wsfy4sp.js} +4 -4
  70. package/dist/chunks/{websearch-5sc277j1.js → event-logger-6wskbeqw.js} +28 -30
  71. package/dist/chunks/{websearch-44bp186z.js → event-logger-6x09n4m4.js} +20 -20
  72. package/dist/chunks/{websearch-gzkavbc5.js → event-logger-754qx1qh.js} +10 -10
  73. package/dist/chunks/{websearch-8ydxcqkb.js → event-logger-78s2egvq.js} +21 -21
  74. package/dist/chunks/{websearch-1qcm30f5.js → event-logger-7kvqks8y.js} +16 -16
  75. package/dist/chunks/{websearch-kg1345f7.js → event-logger-7myqjfx6.js} +4 -4
  76. package/dist/chunks/{websearch-73j8zhd3.js → event-logger-7nhr92kz.js} +3 -3
  77. package/dist/chunks/{websearch-b22ptp6c.js → event-logger-80djagdx.js} +26 -43
  78. package/dist/chunks/{websearch-0atc81xx.js → event-logger-8458mtgv.js} +46 -45
  79. package/dist/chunks/event-logger-88rtces7.js +412 -0
  80. package/dist/chunks/{websearch-wfxbz101.js → event-logger-89h2133j.js} +10 -10
  81. package/dist/chunks/{websearch-j7w45qd7.js → event-logger-89jm8ntc.js} +21 -16
  82. package/dist/chunks/{websearch-nr76rjj3.js → event-logger-89ttfx5q.js} +7 -7
  83. package/dist/chunks/{websearch-0687t5rp.js → event-logger-8c5xq4gn.js} +14 -14
  84. package/dist/chunks/{websearch-vd03bq4r.js → event-logger-8eb86sst.js} +20 -20
  85. package/dist/chunks/{websearch-ngz3v23c.js → event-logger-8ezmrsyj.js} +4 -4
  86. package/dist/chunks/{websearch-t683wdge.js → event-logger-8manx9kj.js} +16 -16
  87. package/dist/chunks/{websearch-sqsnmb9f.js → event-logger-8r263vtv.js} +2 -2
  88. package/dist/chunks/{websearch-npwkm078.js → event-logger-8y5vxhk7.js} +1 -1
  89. package/dist/chunks/{websearch-cwrtkqrz.js → event-logger-90ryhae1.js} +26 -16
  90. package/dist/chunks/{websearch-mp6zts7p.js → event-logger-90zcexzw.js} +9 -10
  91. package/dist/chunks/{websearch-y7qjjh9e.js → event-logger-97fepfd9.js} +32 -28
  92. package/dist/chunks/{websearch-rdqmt1vp.js → event-logger-9dbv6hqn.js} +2 -2
  93. package/dist/chunks/{websearch-q8bf6xcm.js → event-logger-9nw2dxvq.js} +4 -4
  94. package/dist/chunks/{websearch-nshceesa.js → event-logger-9pdtp4hh.js} +9 -9
  95. package/dist/chunks/{websearch-byab506k.js → event-logger-a6xqkezx.js} +1 -1
  96. package/dist/chunks/{websearch-wps8gh8n.js → event-logger-af42tqdk.js} +2 -2
  97. package/dist/chunks/{websearch-ns0sdez7.js → event-logger-aqq7me5d.js} +26 -18
  98. package/dist/chunks/{websearch-513qbefx.js → event-logger-b1z99xtq.js} +12 -23
  99. package/dist/chunks/{websearch-1064xx1w.js → event-logger-b6k0ney6.js} +10 -10
  100. package/dist/chunks/{websearch-2yr8bd15.js → event-logger-b9nrx84y.js} +13 -13
  101. package/dist/chunks/{websearch-jqdqx4ms.js → event-logger-bctawmv9.js} +15 -24
  102. package/dist/chunks/{websearch-e1z9a0ts.js → event-logger-bd2mvb8t.js} +6 -6
  103. package/dist/chunks/{websearch-0xa3ynrb.js → event-logger-bmdmb8f9.js} +8 -8
  104. package/dist/chunks/{websearch-y0x38cee.js → event-logger-bnha4c96.js} +3 -3
  105. package/dist/chunks/{websearch-gzxnmdrv.js → event-logger-c2bhx1ec.js} +60 -46
  106. package/dist/chunks/{websearch-ec8vrfw5.js → event-logger-c54e84vp.js} +19 -19
  107. package/dist/chunks/{websearch-rmjj1pjh.js → event-logger-c55cgmsp.js} +4 -4
  108. package/dist/chunks/{websearch-2ygx7nw7.js → event-logger-c5h8z8cv.js} +40 -40
  109. package/dist/chunks/{websearch-c8ya26sa.js → event-logger-c8ya26sa.js} +2 -2
  110. package/dist/chunks/{websearch-hetwehem.js → event-logger-cj6y4gbf.js} +14 -14
  111. package/dist/chunks/{websearch-4h896fer.js → event-logger-ckcq38kt.js} +2 -2
  112. package/dist/chunks/{websearch-zvz5j2bc.js → event-logger-crecg5t7.js} +23 -20
  113. package/dist/chunks/event-logger-crz4xfzm.js +433 -0
  114. package/dist/chunks/{websearch-xz7tgbq3.js → event-logger-cz4g9a0v.js} +12 -12
  115. package/dist/chunks/{websearch-d4h7vwhh.js → event-logger-d4h7vwhh.js} +2 -2
  116. package/dist/chunks/{websearch-mk3z7nc0.js → event-logger-d8f23dkx.js} +10 -8
  117. package/dist/chunks/{websearch-3vz1ew5q.js → event-logger-db33vhr2.js} +12 -12
  118. package/dist/chunks/{websearch-5rs65q6p.js → event-logger-dexm22yg.js} +4 -4
  119. package/dist/chunks/event-logger-dn2wztxw.js +40 -0
  120. package/dist/chunks/event-logger-dtm6fkaa.js +54 -0
  121. package/dist/chunks/{websearch-cb3xnjzj.js → event-logger-dvcabejh.js} +8 -8
  122. package/dist/chunks/{websearch-mxvw03gv.js → event-logger-dyhtrhy2.js} +1 -1
  123. package/dist/chunks/event-logger-dyrfpcd0.js +114 -0
  124. package/dist/chunks/{websearch-pdzzmdc7.js → event-logger-dyv1aw3z.js} +14 -14
  125. package/dist/chunks/{websearch-f9wt0tjw.js → event-logger-e0n16vwa.js} +10 -10
  126. package/dist/chunks/{websearch-kww0mg52.js → event-logger-eb87q0yv.js} +1 -1
  127. package/dist/chunks/{websearch-djtgymwn.js → event-logger-eccfdzzr.js} +8 -9
  128. package/dist/chunks/{websearch-y67x6rf6.js → event-logger-edxnhgvj.js} +3 -3
  129. package/dist/chunks/{websearch-62f8vfk8.js → event-logger-efy5rfxh.js} +8 -8
  130. package/dist/chunks/event-logger-esv5q40e.js +18 -0
  131. package/dist/chunks/{websearch-c4wcb9vc.js → event-logger-etbnsc4s.js} +5 -5
  132. package/dist/chunks/{websearch-s8pv2mgp.js → event-logger-ety6zxes.js} +38 -27
  133. package/dist/chunks/{websearch-qe0d689s.js → event-logger-f2nhxfjt.js} +2 -2
  134. package/dist/chunks/{websearch-sfg41mtw.js → event-logger-f4vqkfbt.js} +15 -15
  135. package/dist/chunks/{websearch-41qzzbpz.js → event-logger-f8wvq04h.js} +3 -3
  136. package/dist/chunks/{websearch-smpeg8c9.js → event-logger-fqehnn9p.js} +2 -2
  137. package/dist/chunks/{websearch-18pv8fg3.js → event-logger-g9dd0fv6.js} +5 -5
  138. package/dist/chunks/{websearch-mkaa6r1p.js → event-logger-gag4b6js.js} +10 -10
  139. package/dist/chunks/{websearch-gb1z7yet.js → event-logger-gb1z7yet.js} +2 -2
  140. package/dist/chunks/{websearch-mnb85w6b.js → event-logger-gc513wew.js} +4 -4
  141. package/dist/chunks/{websearch-mzabt5y0.js → event-logger-ggzp5gpk.js} +8 -9
  142. package/dist/chunks/{websearch-gd2xppx8.js → event-logger-grfz4hhj.js} +3 -3
  143. package/dist/chunks/{websearch-mxccen0e.js → event-logger-gse5vfpv.js} +25 -25
  144. package/dist/chunks/{websearch-medv9fna.js → event-logger-gwp0mkke.js} +18 -17
  145. package/dist/chunks/{websearch-39vp2fsy.js → event-logger-gwpvptdr.js} +1 -1
  146. package/dist/chunks/{websearch-fvzd795v.js → event-logger-h01zxzks.js} +12 -12
  147. package/dist/chunks/{websearch-z9qwgjnx.js → event-logger-hbm0jdrs.js} +15 -15
  148. package/dist/chunks/{websearch-gx14js23.js → event-logger-he5ca1b1.js} +10 -10
  149. package/dist/chunks/{websearch-hgr9y616.js → event-logger-hgr9y616.js} +1 -1
  150. package/dist/chunks/{websearch-15hpbjb6.js → event-logger-hpkeh7wf.js} +6 -6
  151. package/dist/chunks/{websearch-t87z2dfg.js → event-logger-hr3zcmss.js} +27 -17
  152. package/dist/chunks/{websearch-50jxp3hw.js → event-logger-hs51b0fc.js} +7 -7
  153. package/dist/chunks/{websearch-10p29vm9.js → event-logger-htmhxvv7.js} +37 -202
  154. package/dist/chunks/{websearch-3g8vftxb.js → event-logger-hvydqsq5.js} +4 -4
  155. package/dist/chunks/{websearch-np0as9yq.js → event-logger-hxhg3cbh.js} +21 -21
  156. package/dist/chunks/{websearch-5vcssjzn.js → event-logger-hy5n5jcn.js} +3 -3
  157. package/dist/chunks/{websearch-s2kjqxd3.js → event-logger-hzag9ake.js} +1 -1
  158. package/dist/chunks/{websearch-v80zsxnb.js → event-logger-hzwx8p6y.js} +7 -6
  159. package/dist/chunks/{websearch-j0feex7e.js → event-logger-j0feex7e.js} +1 -1
  160. package/dist/chunks/{websearch-xva3gx0c.js → event-logger-j189w519.js} +9 -9
  161. package/dist/chunks/{websearch-0d4mk87s.js → event-logger-jar52fmb.js} +3 -3
  162. package/dist/chunks/{websearch-17cn0e7w.js → event-logger-jmk5afdx.js} +50 -49
  163. package/dist/chunks/{websearch-yt02w91s.js → event-logger-jqhp3fpz.js} +4 -4
  164. package/dist/chunks/{websearch-tjrfm0xh.js → event-logger-jr5m26np.js} +8 -8
  165. package/dist/chunks/{websearch-ambzzkps.js → event-logger-k030pceh.js} +8 -8
  166. package/dist/chunks/{websearch-xwftk1fd.js → event-logger-k7hkdbw5.js} +2 -2
  167. package/dist/chunks/{websearch-4qfc90j3.js → event-logger-ke5mv4q1.js} +88 -88
  168. package/dist/chunks/{websearch-69gn2r8j.js → event-logger-kje1pb31.js} +5 -5
  169. package/dist/chunks/{websearch-dhphtf1x.js → event-logger-kq3q54gz.js} +3 -3
  170. package/dist/chunks/{websearch-a7zp47hx.js → event-logger-kr9vgar1.js} +3 -3
  171. package/dist/chunks/{websearch-5wmbkqw2.js → event-logger-kz3am89c.js} +5 -5
  172. package/dist/chunks/{websearch-h8nbdcx9.js → event-logger-kzzx546a.js} +23 -23
  173. package/dist/chunks/{websearch-r3rfmnhs.js → event-logger-m32vxkan.js} +56 -37
  174. package/dist/chunks/{websearch-g68hwncr.js → event-logger-m6a7zjhr.js} +1 -1
  175. package/dist/chunks/{websearch-h94zdhz8.js → event-logger-m7jtgrng.js} +8 -8
  176. package/dist/chunks/{websearch-mf0hyk7z.js → event-logger-mf0hyk7z.js} +1 -1
  177. package/dist/chunks/{websearch-kp1t5rcy.js → event-logger-mnyszbxc.js} +3 -3
  178. package/dist/chunks/{websearch-74qdg080.js → event-logger-mp08m2a2.js} +96 -141
  179. package/dist/chunks/{websearch-02f9w0t0.js → event-logger-mv81kt5z.js} +2 -2
  180. package/dist/chunks/{websearch-682366gn.js → event-logger-mvhmw1qg.js} +30 -30
  181. package/dist/chunks/{websearch-xj0xhwdw.js → event-logger-my53s247.js} +5 -5
  182. package/dist/chunks/{websearch-mhvnwbnm.js → event-logger-mywmt41p.js} +3 -3
  183. package/dist/chunks/{websearch-wjk9b8hz.js → event-logger-n060v487.js} +8 -8
  184. package/dist/chunks/{websearch-r3k9abhd.js → event-logger-ngzr6ypz.js} +4 -4
  185. package/dist/chunks/{websearch-qwn30307.js → event-logger-nj6yqve1.js} +21 -12
  186. package/dist/chunks/{websearch-5wqkeaf9.js → event-logger-njrb9jc2.js} +15 -15
  187. package/dist/chunks/{websearch-sw84ckhj.js → event-logger-nn16cgj7.js} +5 -5
  188. package/dist/chunks/{websearch-rhf7srtt.js → event-logger-nrbccn7t.js} +26 -27
  189. package/dist/chunks/{websearch-5fe026tx.js → event-logger-ntev5d3k.js} +11 -11
  190. package/dist/chunks/{websearch-vgk3vx5v.js → event-logger-nv5prhmc.js} +11 -11
  191. package/dist/chunks/{websearch-hp6rpdnc.js → event-logger-p1m5qwvv.js} +3 -3
  192. package/dist/chunks/{websearch-ncfwr7ab.js → event-logger-p30vnntj.js} +19 -19
  193. package/dist/chunks/{websearch-1zfavzce.js → event-logger-p3qtk0sz.js} +4 -4
  194. package/dist/chunks/{websearch-7wcmqxrc.js → event-logger-p5gyct0y.js} +4 -4
  195. package/dist/chunks/{websearch-2pd1mgzx.js → event-logger-pk53j7qk.js} +4 -4
  196. package/dist/chunks/{websearch-rft40sg1.js → event-logger-pm6tc1g5.js} +167 -109
  197. package/dist/chunks/event-logger-pmxccgjm.js +70 -0
  198. package/dist/chunks/{websearch-7ks83nc4.js → event-logger-pnnr4jav.js} +2 -2
  199. package/dist/chunks/{websearch-v6wdqan0.js → event-logger-prqhf714.js} +10 -10
  200. package/dist/chunks/{websearch-bh1wr8rq.js → event-logger-pves38xm.js} +10 -10
  201. package/dist/chunks/{websearch-0xmbntw2.js → event-logger-pvhtfzrc.js} +23 -23
  202. package/dist/chunks/{websearch-5ps159h2.js → event-logger-q3a4v6k3.js} +42 -59
  203. package/dist/chunks/{websearch-q606pcse.js → event-logger-q606pcse.js} +3 -3
  204. package/dist/chunks/{websearch-ep35cpen.js → event-logger-qf52r0wh.js} +5 -5
  205. package/dist/chunks/{websearch-v9bfv94f.js → event-logger-qfvp8zq7.js} +5 -5
  206. package/dist/chunks/{websearch-betp4092.js → event-logger-qj8f3w7s.js} +9 -9
  207. package/dist/chunks/{websearch-v4twp2vj.js → event-logger-qjrxng61.js} +7 -7
  208. package/dist/chunks/{websearch-sycwgz0f.js → event-logger-qkxw4gnc.js} +21 -18
  209. package/dist/chunks/{websearch-ps01fcq7.js → event-logger-qpxzqy01.js} +1 -1
  210. package/dist/chunks/{websearch-b88z1mq9.js → event-logger-qy3e6rw6.js} +8 -8
  211. package/dist/chunks/{websearch-dyj7wa6j.js → event-logger-qz5gwjr7.js} +10 -10
  212. package/dist/chunks/event-logger-r6n0mc8a.js +165 -0
  213. package/dist/chunks/event-logger-r7a2r1m6.js +74 -0
  214. package/dist/chunks/{websearch-02dbfq60.js → event-logger-r7z6wjth.js} +4 -4
  215. package/dist/chunks/{websearch-r9d3d23r.js → event-logger-r9d3d23r.js} +1 -1
  216. package/dist/chunks/{websearch-k9fxkxys.js → event-logger-r9eqmc8s.js} +12 -12
  217. package/dist/chunks/{websearch-rahat93a.js → event-logger-rahat93a.js} +1 -1
  218. package/dist/chunks/{websearch-8g883nkb.js → event-logger-rezbca9p.js} +9 -9
  219. package/dist/chunks/{websearch-emhmd4ee.js → event-logger-rg8m7c20.js} +21 -21
  220. package/dist/chunks/event-logger-rr7wbarq.js +151 -0
  221. package/dist/chunks/{websearch-9m53xm9q.js → event-logger-rw0wpwwx.js} +20 -98
  222. package/dist/chunks/{websearch-y198y2ra.js → event-logger-s32nnj3r.js} +12 -12
  223. package/dist/chunks/{websearch-8axmdjr3.js → event-logger-shpran1t.js} +10 -10
  224. package/dist/chunks/{websearch-2yvgq9hf.js → event-logger-sn8j54fn.js} +7 -7
  225. package/dist/chunks/{websearch-pn41wmfy.js → event-logger-snaeak2t.js} +5 -5
  226. package/dist/chunks/{websearch-j32vdj8r.js → event-logger-snpn6bap.js} +3 -6
  227. package/dist/chunks/{websearch-w06zjwdb.js → event-logger-sx32kxcj.js} +34 -36
  228. package/dist/chunks/{websearch-rw8s73eq.js → event-logger-t1t3wgqy.js} +6 -6
  229. package/dist/chunks/{websearch-wsf0pp6q.js → event-logger-ta3m9k5q.js} +39 -27
  230. package/dist/chunks/{websearch-8epg6g0q.js → event-logger-thpgkbc3.js} +13 -13
  231. package/dist/chunks/{websearch-yeb65r72.js → event-logger-txgyjqwh.js} +18 -18
  232. package/dist/chunks/event-logger-v1m6ft8e.js +33 -0
  233. package/dist/chunks/event-logger-v7p6trqn.js +68 -0
  234. package/dist/chunks/{websearch-rwymanc1.js → event-logger-va0cyycw.js} +8 -8
  235. package/dist/chunks/{websearch-2b5rfbmh.js → event-logger-vby4rget.js} +8 -8
  236. package/dist/chunks/{websearch-vcwr2vpf.js → event-logger-vcwr2vpf.js} +1 -1
  237. package/dist/chunks/{websearch-wnh6cdm7.js → event-logger-vd3sdp2r.js} +30 -26
  238. package/dist/chunks/{websearch-w5wgtd7r.js → event-logger-vnbqnfbp.js} +107 -114
  239. package/dist/chunks/{websearch-dcawee05.js → event-logger-vtw5d7yb.js} +25 -6
  240. package/dist/chunks/{websearch-cat9v99r.js → event-logger-vw7aptj1.js} +16 -16
  241. package/dist/chunks/{websearch-fzn2mac5.js → event-logger-vy2v88c7.js} +36 -43
  242. package/dist/chunks/{websearch-xczfw7dq.js → event-logger-vynk8zbr.js} +6 -6
  243. package/dist/chunks/{websearch-7mrpdsq5.js → event-logger-w5r9s7kx.js} +4 -4
  244. package/dist/chunks/{websearch-99hgw2nh.js → event-logger-w659emnr.js} +8 -8
  245. package/dist/chunks/{websearch-wbkt8qpj.js → event-logger-wbkt8qpj.js} +1 -1
  246. package/dist/chunks/{websearch-gcay93cp.js → event-logger-wdqva41w.js} +3 -3
  247. package/dist/chunks/{websearch-9f0rnpkn.js → event-logger-wf5w4wph.js} +3 -3
  248. package/dist/chunks/{websearch-wmxdh12w.js → event-logger-wmxdh12w.js} +1 -1
  249. package/dist/chunks/{websearch-snd64xsa.js → event-logger-wntga0jy.js} +12 -12
  250. package/dist/chunks/event-logger-x3tdcr34.js +39 -0
  251. package/dist/chunks/{websearch-nzrjycs5.js → event-logger-x3vb5b1t.js} +3 -3
  252. package/dist/chunks/{websearch-58xdvehb.js → event-logger-x4az4y7r.js} +5 -5
  253. package/dist/chunks/{websearch-33thd34n.js → event-logger-x9jcn2rd.js} +8 -9
  254. package/dist/chunks/{websearch-vg3nw4cf.js → event-logger-xc7tt4dr.js} +11 -11
  255. package/dist/chunks/{websearch-pq4b4pqk.js → event-logger-xdb88cdw.js} +4 -4
  256. package/dist/chunks/{websearch-0300b7d6.js → event-logger-xdbcpqje.js} +7 -7
  257. package/dist/chunks/{websearch-w385wtt6.js → event-logger-xe02v0q7.js} +2 -2
  258. package/dist/chunks/{websearch-zdkg1k91.js → event-logger-xtqs7d5w.js} +16 -5
  259. package/dist/chunks/{websearch-v2wshkax.js → event-logger-xws7arpm.js} +3 -3
  260. package/dist/chunks/{websearch-yv7jst0e.js → event-logger-ydjr7n73.js} +14 -14
  261. package/dist/chunks/{websearch-ntdt82vf.js → event-logger-ykct3tqj.js} +19 -19
  262. package/dist/chunks/{websearch-abv0a2s2.js → event-logger-yvgr2m8p.js} +23 -23
  263. package/dist/chunks/{websearch-8v308b8a.js → event-logger-z2xdydfc.js} +17 -17
  264. package/dist/chunks/{websearch-6z2cdyqa.js → event-logger-z4wj20et.js} +37 -43
  265. package/dist/chunks/{websearch-9qy4593r.js → event-logger-z7sxqf8x.js} +34 -34
  266. package/dist/chunks/{websearch-v972xay6.js → event-logger-z8c1ty6e.js} +3 -3
  267. package/dist/chunks/{websearch-rejtg0m2.js → event-logger-z9v87wg9.js} +16 -15
  268. package/dist/chunks/{websearch-zbqqnp0n.js → event-logger-zbqqnp0n.js} +1 -1
  269. package/dist/chunks/{websearch-r8by723k.js → event-logger-zef5gtky.js} +9 -9
  270. package/dist/chunks/{websearch-srvcw5ce.js → event-logger-zh3jcm0q.js} +4 -4
  271. package/dist/chunks/{websearch-6fe9z7g5.js → event-logger-zhwqdhdj.js} +7 -7
  272. package/dist/chunks/{websearch-gz9s6gpj.js → event-logger-zmbmd7xf.js} +2 -2
  273. package/dist/chunks/{websearch-txeepgh1.js → event-logger-zmvw3ptf.js} +8 -8
  274. package/dist/chunks/{websearch-6ky7rqk7.js → event-logger-zn935gjz.js} +3 -3
  275. package/dist/chunks/{websearch-wq5r9j83.js → event-logger-zseh86v1.js} +4 -4
  276. package/dist/chunks/{websearch-yz1n3za9.js → event-logger-zsq8es3s.js} +7 -7
  277. package/dist/chunks/{websearch-t14kykx1.js → event-logger-zyyhrfr9.js} +9 -9
  278. package/dist/chunks/{websearch-q8xy3s52.js → event-logger-zzr78n57.js} +53 -55
  279. package/dist/codemode/catalog.js +8 -6
  280. package/dist/codemode/instructions.js +7 -7
  281. package/dist/codemode/tool.js +6 -5
  282. package/dist/command.js +77 -77
  283. package/dist/config/markdown.js +5 -5
  284. package/dist/config/normalize.js +22 -22
  285. package/dist/config/plugin/agent.js +129 -134
  286. package/dist/config/plugin/command.js +115 -120
  287. package/dist/config/plugin/compaction.js +168 -148
  288. package/dist/config/plugin/entry-observer.js +111 -116
  289. package/dist/config/plugin/formatter.js +116 -121
  290. package/dist/config/plugin/image.js +128 -133
  291. package/dist/config/plugin/instruction.js +87 -92
  292. package/dist/config/plugin/location-watcher.js +114 -119
  293. package/dist/config/plugin/mcp.js +124 -129
  294. package/dist/config/plugin/policy.js +113 -118
  295. package/dist/config/plugin/provider.js +112 -117
  296. package/dist/config/plugin/reference.js +116 -121
  297. package/dist/config/plugin/shell.js +115 -120
  298. package/dist/config/plugin/skill-file.js +100 -105
  299. package/dist/config/plugin/skill.js +132 -137
  300. package/dist/config/plugin/snapshot.js +114 -119
  301. package/dist/config/plugin/source.js +114 -118
  302. package/dist/config/plugin/tool-output.js +116 -121
  303. package/dist/config/plugin/websearch.js +112 -117
  304. package/dist/config/variable.js +6 -6
  305. package/dist/config.js +116 -121
  306. package/dist/credential/sql.js +3 -3
  307. package/dist/credential.js +79 -79
  308. package/dist/database/database.js +72 -72
  309. package/dist/database/drizzle/effect-sqlite/driver.js +16 -16
  310. package/dist/database/drizzle/effect-sqlite/index.js +20 -20
  311. package/dist/database/drizzle/effect-sqlite/session.js +14 -14
  312. package/dist/database/drizzle/index.js +22 -22
  313. package/dist/database/drizzle/internal/drizzle-utils.js +9 -9
  314. package/dist/database/drizzle/sqlite-core/effect/count.js +2 -2
  315. package/dist/database/drizzle/sqlite-core/effect/db.js +10 -10
  316. package/dist/database/drizzle/sqlite-core/effect/delete.js +3 -3
  317. package/dist/database/drizzle/sqlite-core/effect/index.js +33 -33
  318. package/dist/database/drizzle/sqlite-core/effect/insert.js +5 -5
  319. package/dist/database/drizzle/sqlite-core/effect/query.js +4 -4
  320. package/dist/database/drizzle/sqlite-core/effect/raw.js +2 -2
  321. package/dist/database/drizzle/sqlite-core/effect/select.js +5 -5
  322. package/dist/database/drizzle/sqlite-core/effect/session.js +13 -13
  323. package/dist/database/drizzle/sqlite-core/effect/update.js +5 -5
  324. package/dist/database/drizzle.js +23 -23
  325. package/dist/database/migration/20260127222353_familiar_lady_ursula.js +2 -2
  326. package/dist/database/migration/20260211171708_add_project_commands.js +2 -2
  327. package/dist/database/migration/20260213144116_wakeful_the_professor.js +2 -2
  328. package/dist/database/migration/20260225215848_workspace.js +2 -2
  329. package/dist/database/migration/20260227213759_add_session_workspace_id.js +2 -2
  330. package/dist/database/migration/20260228203230_blue_harpoon.js +2 -2
  331. package/dist/database/migration/20260303231226_add_workspace_fields.js +2 -2
  332. package/dist/database/migration/20260309230000_move_org_to_state.js +2 -2
  333. package/dist/database/migration/20260312043431_session_message_cursor.js +2 -2
  334. package/dist/database/migration/20260323234822_events.js +2 -2
  335. package/dist/database/migration/20260410174513_workspace-name.js +2 -2
  336. package/dist/database/migration/20260413175956_chief_energizer.js +2 -2
  337. package/dist/database/migration/20260423070820_add_icon_url_override.js +2 -2
  338. package/dist/database/migration/20260427172553_slow_nightmare.js +2 -2
  339. package/dist/database/migration/20260428004200_add_session_path.js +2 -2
  340. package/dist/database/migration/20260501142318_next_venus.js +2 -2
  341. package/dist/database/migration/20260504145000_add_sync_owner.js +2 -2
  342. package/dist/database/migration/20260507164347_add_workspace_time.js +2 -2
  343. package/dist/database/migration/20260510033149_session_usage.js +2 -2
  344. package/dist/database/migration/20260511000411_data_migration_state.js +2 -2
  345. package/dist/database/migration/20260511173437_session-metadata.js +2 -2
  346. package/dist/database/migration/20260601010001_normalize_storage_paths.js +2 -2
  347. package/dist/database/migration/20260601202201_amazing_prowler.js +2 -2
  348. package/dist/database/migration/20260602002951_lowly_union_jack.js +2 -2
  349. package/dist/database/migration/20260602182828_add_project_directories.js +2 -2
  350. package/dist/database/migration/20260603001617_session_message_projection_indexes.js +2 -2
  351. package/dist/database/migration/20260603040000_session_message_projection_order.js +2 -2
  352. package/dist/database/migration/20260603141458_session_input_inbox.js +2 -2
  353. package/dist/database/migration/20260603160727_jittery_ezekiel_stane.js +2 -2
  354. package/dist/database/migration/20260604172448_event_sourced_session_input.js +2 -2
  355. package/dist/database/migration/20260605003541_add_session_context_snapshot.js +2 -2
  356. package/dist/database/migration/20260605042240_add_context_epoch_agent.js +2 -2
  357. package/dist/database/migration/20260611035744_credential.js +2 -2
  358. package/dist/database/migration/20260611192811_lush_chimera.js +2 -2
  359. package/dist/database/migration/20260612174303_project_dir_strategy.js +2 -2
  360. package/dist/database/migration/20260622142730_simplify_session_context_epoch.js +2 -2
  361. package/dist/database/migration/20260622170816_reset_v2_session_state.js +2 -2
  362. package/dist/database/migration/20260622202450_simplify_session_input.js +2 -2
  363. package/dist/database/migration/20260804233008_loose_psylocke.js +2 -2
  364. package/dist/database/migration/20260805200742_import_legacy_credentials.js +4 -4
  365. package/dist/database/migration/20260808023530_workspace_domain.js +2 -2
  366. package/dist/database/migration/20260811161259_execution_claim_attempts.js +2 -2
  367. package/dist/database/migration/20260812181746_session_inbox.js +2 -2
  368. package/dist/database/migration/20260812213948_worktree.js +2 -2
  369. package/dist/database/migration/20260819222447_session_viewed_state.js +2 -2
  370. package/dist/database/migration/20260823191254_nullable_workspace_binding.js +2 -2
  371. package/dist/database/migration.gen.js +48 -48
  372. package/dist/database/migration.js +52 -52
  373. package/dist/database/path.js +6 -6
  374. package/dist/database/schema.gen.js +2 -2
  375. package/dist/database/schema.sql.js +2 -2
  376. package/dist/database/sqlite.bun.js +4 -4
  377. package/dist/database/sqlite.js +5 -5
  378. package/dist/database/sqlite.node.js +4 -4
  379. package/dist/database/sqlite.workerd.js +4 -4
  380. package/dist/database/v1-migration.bun.js +81 -81
  381. package/dist/database/v1-migration.js +2 -2
  382. package/dist/database/v1-migration.noop.js +3 -3
  383. package/dist/effect/app-node-builder.js +363 -352
  384. package/dist/effect/app-node-platform.js +6 -6
  385. package/dist/effect/keyed-mutex.js +4 -4
  386. package/dist/effect/websocket-constructor.js +2 -2
  387. package/dist/environment/driver.js +1 -1
  388. package/dist/environment/environment.js +88 -93
  389. package/dist/environment/exec-defaults.js +5 -5
  390. package/dist/environment/files.js +7 -7
  391. package/dist/environment/index.js +98 -103
  392. package/dist/environment/local.js +5 -5
  393. package/dist/environment/memory.js +5 -5
  394. package/dist/environment/unavailable.js +5 -5
  395. package/dist/event/sql.js +4 -4
  396. package/dist/event-logger.js +72 -72
  397. package/dist/file-mutation.js +91 -96
  398. package/dist/file-retention.js +4 -4
  399. package/dist/file.js +4 -4
  400. package/dist/filesystem/fff.bun.js +6 -6
  401. package/dist/filesystem/fff.js +2 -2
  402. package/dist/filesystem/fff.node.js +6 -6
  403. package/dist/filesystem/fff.workerd.js +6 -6
  404. package/dist/filesystem/ignore.js +5 -5
  405. package/dist/filesystem/location-watcher-policy.js +5 -5
  406. package/dist/filesystem/location-watcher.js +219 -316
  407. package/dist/filesystem/protected.js +5 -5
  408. package/dist/filesystem/search.js +98 -103
  409. package/dist/filesystem/watcher-binding.js +2 -2
  410. package/dist/filesystem/watcher.js +16 -16
  411. package/dist/filesystem.js +106 -111
  412. package/dist/form.js +88 -88
  413. package/dist/formatter/builtins.js +3 -3
  414. package/dist/formatter.js +82 -87
  415. package/dist/generate.js +89 -89
  416. package/dist/git.js +12 -12
  417. package/dist/github-copilot/chat/convert-to-openai-compatible-chat-messages.js +2 -2
  418. package/dist/github-copilot/chat/get-response-metadata.js +2 -2
  419. package/dist/github-copilot/chat/map-openai-compatible-finish-reason.js +2 -2
  420. package/dist/github-copilot/chat/openai-compatible-chat-language-model.js +8 -8
  421. package/dist/github-copilot/chat/openai-compatible-chat-options.js +2 -2
  422. package/dist/github-copilot/chat/openai-compatible-prepare-tools.js +2 -2
  423. package/dist/github-copilot/copilot-provider.js +22 -22
  424. package/dist/github-copilot/models.js +6 -6
  425. package/dist/github-copilot/openai-compatible-error.js +4 -4
  426. package/dist/github-copilot/responses/convert-to-openai-responses-input.js +2 -2
  427. package/dist/github-copilot/responses/map-openai-responses-finish-reason.js +2 -2
  428. package/dist/github-copilot/responses/openai-error.js +4 -4
  429. package/dist/github-copilot/responses/openai-responses-language-model.js +11 -11
  430. package/dist/github-copilot/responses/openai-responses-prepare-tools.js +9 -9
  431. package/dist/github-copilot/responses/tool/code-interpreter.js +6 -6
  432. package/dist/github-copilot/responses/tool/file-search.js +4 -4
  433. package/dist/github-copilot/responses/tool/image-generation.js +4 -4
  434. package/dist/github-copilot/responses/tool/web-search-preview.js +2 -2
  435. package/dist/github-copilot/responses/tool/web-search.js +2 -2
  436. package/dist/id/id.js +6 -6
  437. package/dist/image/photon-wasm.bun.js +1 -1
  438. package/dist/image/photon-wasm.node.js +1 -1
  439. package/dist/image/photon-wasm.workerd.js +1 -1
  440. package/dist/image/photon.js +94 -99
  441. package/dist/image.js +99 -104
  442. package/dist/instance/service.js +11 -0
  443. package/dist/instance.js +348 -341
  444. package/dist/instruction-discovery.js +79 -79
  445. package/dist/instructions/builtins.js +82 -87
  446. package/dist/instructions/index.js +20 -20
  447. package/dist/integration/connection.js +5 -5
  448. package/dist/integration.js +94 -94
  449. package/dist/job.js +75 -75
  450. package/dist/kv/sql.js +3 -3
  451. package/dist/kv.js +70 -70
  452. package/dist/location-activity.js +88 -93
  453. package/dist/location-mutation.js +85 -90
  454. package/dist/location-service-map.js +83 -86
  455. package/dist/location-services.js +344 -342
  456. package/dist/location.js +84 -89
  457. package/dist/mcp/client.js +93 -98
  458. package/dist/mcp/index.js +117 -122
  459. package/dist/mcp/instructions.js +125 -130
  460. package/dist/mcp/oauth.js +14 -14
  461. package/dist/mcp/stdio.js +89 -94
  462. package/dist/mime.js +4 -4
  463. package/dist/model-resolver.js +91 -91
  464. package/dist/model.js +14 -14
  465. package/dist/models-dev.js +83 -83
  466. package/dist/oauth/page.js +5 -5
  467. package/dist/permission/saved.js +77 -77
  468. package/dist/permission/sql.js +6 -6
  469. package/dist/permission.js +114 -119
  470. package/dist/persistent-pty/binary.bun.js +2 -2
  471. package/dist/persistent-pty/binary.node.js +1 -1
  472. package/dist/persistent-pty/binary.workerd.js +1 -1
  473. package/dist/persistent-pty/daemon.js +5 -5
  474. package/dist/persistent-pty/index.js +81 -81
  475. package/dist/persistent-pty/pty-binding.js +2 -2
  476. package/dist/persistent-pty.js +74 -74
  477. package/dist/plugin/agent.js +98 -103
  478. package/dist/plugin/command.js +96 -101
  479. package/dist/plugin/hooks.js +5 -5
  480. package/dist/plugin/host.js +218 -205
  481. package/dist/plugin/instance.js +5 -5
  482. package/dist/plugin/internal.js +315 -309
  483. package/dist/plugin/mcp-codemode-exclusion.js +4 -4
  484. package/dist/plugin/models-dev.js +76 -76
  485. package/dist/plugin/module.js +7 -5
  486. package/dist/plugin/plan.js +98 -103
  487. package/dist/plugin/promise.js +4 -4
  488. package/dist/plugin/provider/alibaba.js +3 -3
  489. package/dist/plugin/provider/amazon-bedrock.js +3 -3
  490. package/dist/plugin/provider/anthropic.js +3 -3
  491. package/dist/plugin/provider/azure.js +118 -123
  492. package/dist/plugin/provider/cerebras.js +3 -3
  493. package/dist/plugin/provider/cloudflare-ai-gateway.js +117 -122
  494. package/dist/plugin/provider/cloudflare-workers-ai.js +117 -122
  495. package/dist/plugin/provider/cohere.js +3 -3
  496. package/dist/plugin/provider/configured.js +116 -121
  497. package/dist/plugin/provider/dynamic.js +3 -3
  498. package/dist/plugin/provider/factory.js +2 -2
  499. package/dist/plugin/provider/gateway.js +3 -3
  500. package/dist/plugin/provider/github-copilot.js +84 -84
  501. package/dist/plugin/provider/gitlab.js +4 -4
  502. package/dist/plugin/provider/google-vertex.js +3 -3
  503. package/dist/plugin/provider/kilo.js +3 -3
  504. package/dist/plugin/provider/llmgateway.js +77 -77
  505. package/dist/plugin/provider/lmstudio.js +117 -122
  506. package/dist/plugin/provider/mistral.js +3 -3
  507. package/dist/plugin/provider/nvidia.js +3 -3
  508. package/dist/plugin/provider/ollama.js +117 -122
  509. package/dist/plugin/provider/openai-compatible.js +2 -2
  510. package/dist/plugin/provider/openai.js +79 -79
  511. package/dist/plugin/provider/opencode.js +77 -93
  512. package/dist/plugin/provider/openrouter.js +4 -4
  513. package/dist/plugin/provider/perplexity.js +3 -3
  514. package/dist/plugin/provider/sap-ai-core.js +4 -4
  515. package/dist/plugin/provider/sdk-factory.js +2 -2
  516. package/dist/plugin/provider/snowflake-cortex.js +5 -5
  517. package/dist/plugin/provider/venice.js +3 -3
  518. package/dist/plugin/provider/vercel.js +3 -3
  519. package/dist/plugin/provider/vllm.js +117 -122
  520. package/dist/plugin/provider/xai.js +78 -78
  521. package/dist/plugin/provider/zenmux.js +3 -3
  522. package/dist/plugin/provider.js +154 -159
  523. package/dist/plugin/sdk.js +73 -73
  524. package/dist/plugin/service.js +11 -0
  525. package/dist/plugin/skill.js +131 -137
  526. package/dist/plugin/source-directory.js +4 -6
  527. package/dist/plugin/supervisor.js +330 -318
  528. package/dist/plugin/system-prompt.js +8 -8
  529. package/dist/plugin/update.js +12 -0
  530. package/dist/plugin/variant.js +5 -5
  531. package/dist/plugin/vcs/git.js +84 -89
  532. package/dist/plugin/vcs/hg.js +84 -89
  533. package/dist/plugin/warming.js +111 -116
  534. package/dist/plugin/websearch/exa.js +6 -6
  535. package/dist/plugin/websearch/firecrawl.js +7 -7
  536. package/dist/plugin/websearch/index.js +9 -9
  537. package/dist/plugin/websearch/mcp.js +6 -6
  538. package/dist/plugin/websearch/parallel.js +7 -7
  539. package/dist/plugin/websearch/tavily.js +5 -5
  540. package/dist/plugin.js +226 -212
  541. package/dist/project/schema.js +9 -9
  542. package/dist/project/sql.js +7 -7
  543. package/dist/project.js +86 -91
  544. package/dist/provider.js +14 -14
  545. package/dist/pty/protocol.js +9 -9
  546. package/dist/pty/pty.bun.js +1 -1
  547. package/dist/pty/pty.node.js +1 -1
  548. package/dist/pty/pty.workerd.js +1 -1
  549. package/dist/pty/schema.js +2 -2
  550. package/dist/pty/ticket.js +10 -10
  551. package/dist/pty.js +92 -97
  552. package/dist/reference/instructions.js +82 -82
  553. package/dist/reference.js +85 -85
  554. package/dist/repository-cache.js +85 -85
  555. package/dist/repository.js +13 -13
  556. package/dist/ripgrep/binary.js +3 -3
  557. package/dist/ripgrep.js +93 -98
  558. package/dist/rpc.js +82 -87
  559. package/dist/schema.js +9 -9
  560. package/dist/session/command.js +80 -0
  561. package/dist/session/compaction.js +146 -124
  562. package/dist/session/context.js +152 -325
  563. package/dist/session/environment.js +5 -5
  564. package/dist/session/error.js +21 -21
  565. package/dist/session/event.js +2 -2
  566. package/dist/session/execution/restart.js +214 -197
  567. package/dist/session/execution.js +122 -127
  568. package/dist/session/generate.js +156 -5
  569. package/dist/session/history.js +83 -83
  570. package/dist/session/inbox.js +104 -104
  571. package/dist/session/info.js +4 -4
  572. package/dist/session/instruction-entry.js +82 -82
  573. package/dist/session/instruction-state.js +20 -20
  574. package/dist/session/instructions.js +91 -96
  575. package/dist/session/message-updater.js +6 -6
  576. package/dist/session/message.js +2 -2
  577. package/dist/session/model-request.js +140 -145
  578. package/dist/session/model-transport.js +9 -9
  579. package/dist/session/move.js +93 -0
  580. package/dist/session/projector.js +85 -85
  581. package/dist/session/prompt.js +117 -125
  582. package/dist/session/revert.js +93 -100
  583. package/dist/session/run-coordinator.js +4 -4
  584. package/dist/session/runner/index.js +86 -86
  585. package/dist/session/runner/llm.js +226 -331
  586. package/dist/session/runner/max-steps.js +2 -2
  587. package/dist/session/runner/model.js +91 -91
  588. package/dist/session/runner/publish-llm-event.js +4 -4
  589. package/dist/session/runner/retry.js +74 -74
  590. package/dist/session/runner/step.js +145 -150
  591. package/dist/session/runner/to-llm-message.js +2 -2
  592. package/dist/session/schema.js +4 -4
  593. package/dist/session/session.js +173 -179
  594. package/dist/session/shell.js +137 -0
  595. package/dist/session/skill.js +106 -0
  596. package/dist/session/sql.js +12 -12
  597. package/dist/session/stats.js +77 -79
  598. package/dist/session/store.js +82 -82
  599. package/dist/session/subagent-completion.js +4 -4
  600. package/dist/session/system-prompt.js +4 -4
  601. package/dist/session/title.js +156 -328
  602. package/dist/session/to-session-error.js +108 -113
  603. package/dist/session/transfer.js +219 -202
  604. package/dist/session/usage.js +6 -6
  605. package/dist/session.js +232 -214
  606. package/dist/shell/parse.js +9 -9
  607. package/dist/shell/parser-wasm.bun.js +1 -1
  608. package/dist/shell/parser-wasm.node.js +1 -1
  609. package/dist/shell/parser-wasm.workerd.js +1 -1
  610. package/dist/shell/result.js +8 -8
  611. package/dist/shell/scan.js +5 -5
  612. package/dist/shell/select.js +16 -16
  613. package/dist/shell.js +133 -138
  614. package/dist/skill/discovery.js +5 -5
  615. package/dist/skill/instructions.js +99 -104
  616. package/dist/skill.js +109 -114
  617. package/dist/snapshot.js +85 -90
  618. package/dist/state.js +10 -6
  619. package/dist/tool/html-markdown.js +4 -4
  620. package/dist/tool/http-body.js +2 -2
  621. package/dist/tool/mcp.js +126 -131
  622. package/dist/tool/plugin/edit.js +112 -117
  623. package/dist/tool/plugin/file-diff.js +2 -2
  624. package/dist/tool/plugin/glob.js +116 -121
  625. package/dist/tool/plugin/grep.js +116 -121
  626. package/dist/tool/plugin/opencode.js +11 -0
  627. package/dist/tool/plugin/patch.js +114 -119
  628. package/dist/tool/plugin/question.js +104 -109
  629. package/dist/tool/plugin/read.js +118 -123
  630. package/dist/tool/plugin/shell.js +212 -200
  631. package/dist/tool/plugin/skill.js +103 -108
  632. package/dist/tool/plugin/subagent.js +212 -200
  633. package/dist/tool/plugin/webfetch.js +107 -112
  634. package/dist/tool/plugin/websearch.js +105 -110
  635. package/dist/tool/plugin/write.js +113 -118
  636. package/dist/tool/read-filesystem.js +110 -115
  637. package/dist/tool/runtime.js +6 -6
  638. package/dist/tool-output.js +11 -11
  639. package/dist/tool.js +122 -127
  640. package/dist/types/agent.d.ts +3 -3
  641. package/dist/types/aisdk.d.ts +1 -1
  642. package/dist/types/app.d.ts +2 -2
  643. package/dist/types/bus.d.ts +2 -2
  644. package/dist/types/catalog.d.ts +3 -3
  645. package/dist/types/codemode/catalog.d.ts +28 -4
  646. package/dist/types/codemode/instructions.d.ts +1 -1
  647. package/dist/types/codemode/tool.d.ts +16 -8
  648. package/dist/types/command.d.ts +3 -3
  649. package/dist/types/config/plugin/formatter.d.ts +1 -1
  650. package/dist/types/config/plugin/source.d.ts +2 -2
  651. package/dist/types/config.d.ts +3 -3
  652. package/dist/types/credential.d.ts +1 -1
  653. package/dist/types/database/database.d.ts +3 -3
  654. package/dist/types/effect/app-node-builder.d.ts +2 -1
  655. package/dist/types/effect/app-node-platform.d.ts +3 -3
  656. package/dist/types/environment/environment.d.ts +1 -1
  657. package/dist/types/event-logger.d.ts +1 -1
  658. package/dist/types/file-mutation.d.ts +1 -1
  659. package/dist/types/filesystem/location-watcher-policy.d.ts +3 -3
  660. package/dist/types/filesystem/location-watcher.d.ts +1 -1
  661. package/dist/types/filesystem/search.d.ts +2 -2
  662. package/dist/types/filesystem/watcher.d.ts +7 -5
  663. package/dist/types/filesystem.d.ts +4 -1
  664. package/dist/types/form.d.ts +1 -1
  665. package/dist/types/formatter.d.ts +3 -3
  666. package/dist/types/generate.d.ts +1 -1
  667. package/dist/types/git.d.ts +1 -1
  668. package/dist/types/image.d.ts +3 -3
  669. package/dist/types/instance/service.d.ts +14 -0
  670. package/dist/types/instance.d.ts +5 -5
  671. package/dist/types/instruction-discovery.d.ts +4 -4
  672. package/dist/types/instructions/builtins.d.ts +1 -1
  673. package/dist/types/integration.d.ts +3 -3
  674. package/dist/types/job.d.ts +1 -1
  675. package/dist/types/kv.d.ts +1 -1
  676. package/dist/types/location-activity.d.ts +1 -1
  677. package/dist/types/location-mutation.d.ts +1 -1
  678. package/dist/types/location-service-map.d.ts +8 -2
  679. package/dist/types/location.d.ts +1 -2
  680. package/dist/types/mcp/client.d.ts +1 -1
  681. package/dist/types/mcp/index.d.ts +5 -5
  682. package/dist/types/mcp/instructions.d.ts +1 -1
  683. package/dist/types/model-resolver.d.ts +2 -2
  684. package/dist/types/model.d.ts +25 -0
  685. package/dist/types/models-dev.d.ts +2 -2
  686. package/dist/types/permission/saved.d.ts +1 -1
  687. package/dist/types/permission.d.ts +1 -1
  688. package/dist/types/persistent-pty/index.d.ts +2 -2
  689. package/dist/types/plugin/hooks.d.ts +1 -1
  690. package/dist/types/plugin/host.d.ts +7 -358
  691. package/dist/types/plugin/instance.d.ts +5 -8
  692. package/dist/types/plugin/internal.d.ts +6 -7
  693. package/dist/types/plugin/module.d.ts +25 -7
  694. package/dist/types/plugin/sdk.d.ts +5 -6
  695. package/dist/types/plugin/service.d.ts +32 -0
  696. package/dist/types/plugin/skill.d.ts +2 -2
  697. package/dist/types/plugin/source-directory.d.ts +1 -2
  698. package/dist/types/plugin/supervisor.d.ts +4 -6
  699. package/dist/types/plugin/update.d.ts +20 -0
  700. package/dist/types/plugin.d.ts +6 -21
  701. package/dist/types/project.d.ts +1 -2
  702. package/dist/types/provider.d.ts +26 -1
  703. package/dist/types/pty/ticket.d.ts +1 -1
  704. package/dist/types/pty.d.ts +1 -1
  705. package/dist/types/reference/instructions.d.ts +1 -1
  706. package/dist/types/reference.d.ts +3 -5
  707. package/dist/types/repository-cache.d.ts +1 -1
  708. package/dist/types/ripgrep/binary.d.ts +1 -1
  709. package/dist/types/ripgrep.d.ts +3 -1
  710. package/dist/types/rpc.d.ts +1 -1
  711. package/dist/types/session/command.d.ts +16 -0
  712. package/dist/types/session/compaction.d.ts +17 -13
  713. package/dist/types/session/context.d.ts +1 -1
  714. package/dist/types/session/environment.d.ts +1 -1
  715. package/dist/types/session/execution/restart.d.ts +2 -2
  716. package/dist/types/session/execution.d.ts +5 -5
  717. package/dist/types/session/generate.d.ts +9 -13
  718. package/dist/types/session/history.d.ts +5 -5
  719. package/dist/types/session/inbox.d.ts +11 -11
  720. package/dist/types/session/instruction-entry.d.ts +1 -1
  721. package/dist/types/session/instructions.d.ts +1 -1
  722. package/dist/types/session/model-request.d.ts +7 -6
  723. package/dist/types/session/model-transport.d.ts +1 -1
  724. package/dist/types/session/move.d.ts +30 -0
  725. package/dist/types/session/projector.d.ts +1 -1
  726. package/dist/types/session/prompt.d.ts +49 -109
  727. package/dist/types/session/revert.d.ts +18 -22
  728. package/dist/types/session/runner/llm.d.ts +1 -1
  729. package/dist/types/session/runner/model.d.ts +1 -1
  730. package/dist/types/session/session.d.ts +25 -18
  731. package/dist/types/session/shell.d.ts +13 -0
  732. package/dist/types/session/skill.d.ts +10 -0
  733. package/dist/types/session/store.d.ts +1 -1
  734. package/dist/types/session/title.d.ts +1 -1
  735. package/dist/types/session/transfer.d.ts +3 -3
  736. package/dist/types/session.d.ts +7 -18
  737. package/dist/types/shell/select.d.ts +4 -4
  738. package/dist/types/shell.d.ts +1 -1
  739. package/dist/types/skill/discovery.d.ts +1 -1
  740. package/dist/types/skill/instructions.d.ts +1 -1
  741. package/dist/types/skill.d.ts +3 -3
  742. package/dist/types/snapshot.d.ts +3 -3
  743. package/dist/types/state.d.ts +34 -24
  744. package/dist/types/tool/mcp.d.ts +1 -1
  745. package/dist/types/tool/plugin/edit.d.ts +1 -1
  746. package/dist/types/tool/plugin/glob.d.ts +2 -1
  747. package/dist/types/tool/plugin/grep.d.ts +3 -1
  748. package/dist/types/tool/plugin/opencode.d.ts +14 -0
  749. package/dist/types/tool/plugin/patch.d.ts +1 -1
  750. package/dist/types/tool/plugin/read.d.ts +1 -1
  751. package/dist/types/tool/plugin/shell.d.ts +3 -2
  752. package/dist/types/tool/plugin/subagent.d.ts +3 -2
  753. package/dist/types/tool/plugin/websearch.d.ts +1 -1
  754. package/dist/types/tool/plugin/write.d.ts +1 -1
  755. package/dist/types/tool/read-filesystem.d.ts +1 -1
  756. package/dist/types/tool-output.d.ts +3 -3
  757. package/dist/types/tool.d.ts +6 -5
  758. package/dist/types/v1/config/migrate.d.ts +67 -66
  759. package/dist/types/vcs.d.ts +3 -3
  760. package/dist/types/websearch.d.ts +3 -3
  761. package/dist/types/wellknown.d.ts +5 -5
  762. package/dist/types/workspace/driver.d.ts +2 -2
  763. package/dist/types/workspace.d.ts +2 -2
  764. package/dist/types/worktree.d.ts +2 -2
  765. package/dist/util/array.js +1 -1
  766. package/dist/util/error.js +2 -2
  767. package/dist/util/identifier.js +1 -1
  768. package/dist/util/iife.js +2 -2
  769. package/dist/util/lazy.js +2 -2
  770. package/dist/util/process-lock-ffi.bun.js +3 -3
  771. package/dist/util/process-lock-ffi.node.js +3 -3
  772. package/dist/util/process-lock-ffi.workerd.js +3 -3
  773. package/dist/util/process-lock.js +1 -1
  774. package/dist/util/slug.js +2 -2
  775. package/dist/util/token.js +4 -4
  776. package/dist/util/which.js +2 -2
  777. package/dist/util/wildcard.js +4 -4
  778. package/dist/v1/config/agent.js +6 -6
  779. package/dist/v1/config/attachment.js +5 -5
  780. package/dist/v1/config/command.js +4 -4
  781. package/dist/v1/config/config.js +17 -17
  782. package/dist/v1/config/error.js +8 -8
  783. package/dist/v1/config/formatter.js +4 -4
  784. package/dist/v1/config/layout.js +4 -4
  785. package/dist/v1/config/lsp.js +7 -7
  786. package/dist/v1/config/mcp.js +7 -7
  787. package/dist/v1/config/migrate.js +26 -26
  788. package/dist/v1/config/permission.js +6 -6
  789. package/dist/v1/config/plugin.js +4 -4
  790. package/dist/v1/config/provider-options.js +4 -4
  791. package/dist/v1/config/provider.js +6 -6
  792. package/dist/v1/config/server.js +5 -5
  793. package/dist/v1/config/skills.js +4 -4
  794. package/dist/v1/permission.js +9 -9
  795. package/dist/vcs/patch.js +12 -12
  796. package/dist/vcs.js +89 -94
  797. package/dist/websearch.js +87 -87
  798. package/dist/wellknown/plugin.js +75 -75
  799. package/dist/wellknown.js +81 -81
  800. package/dist/workspace/driver.js +10 -10
  801. package/dist/workspace/sql.js +2 -2
  802. package/dist/workspace.js +76 -76
  803. package/dist/worktree/directory.js +5 -5
  804. package/dist/worktree/git.js +9 -9
  805. package/dist/worktree/sql.js +6 -6
  806. package/dist/worktree.js +102 -107
  807. package/package.json +8 -7
  808. package/dist/chunks/websearch-57tzwnz4.js +0 -107
  809. package/dist/chunks/websearch-9rc3m3re.js +0 -356
  810. package/dist/chunks/websearch-de7ccgrb.js +0 -33
  811. package/dist/chunks/websearch-jgf6ak7q.js +0 -34
  812. package/dist/chunks/websearch-jjpry013.js +0 -410
  813. package/dist/chunks/websearch-jrxhrvps.js +0 -217
  814. package/dist/chunks/websearch-jv2akzxs.js +0 -80
  815. package/dist/chunks/websearch-py4nahnn.js +0 -77
  816. package/dist/chunks/websearch-s33fw6zm.js +0 -16
  817. package/dist/chunks/websearch-ts88b2w4.js +0 -157
  818. package/dist/chunks/websearch-vhmx40y3.js +0 -144
  819. package/dist/chunks/websearch-wdpjxg53.js +0 -34
  820. package/dist/chunks/websearch-x89rah0x.js +0 -139
  821. package/dist/chunks/websearch-xgv25zxy.js +0 -16
  822. package/dist/chunks/websearch-xtjf5v78.js +0 -203
  823. package/dist/chunks/websearch-y1bq0y26.js +0 -144
  824. package/dist/plugin/runtime.js +0 -214
  825. package/dist/plugin/supervisor-service.js +0 -9
  826. package/dist/project/markers.js +0 -83
  827. package/dist/session/generate-node.js +0 -333
  828. package/dist/session/prompt-node.js +0 -321
  829. package/dist/session/revert-node.js +0 -321
  830. package/dist/types/plugin/runtime.d.ts +0 -41
  831. package/dist/types/plugin/supervisor-service.d.ts +0 -13
  832. package/dist/types/project/markers.d.ts +0 -18
  833. package/dist/types/session/generate-node.d.ts +0 -7
  834. package/dist/types/session/prompt-node.d.ts +0 -3
  835. package/dist/types/session/revert-node.d.ts +0 -3
  836. /package/dist/chunks/{websearch-0cgt0xh2.js → event-logger-0cgt0xh2.js} +0 -0
  837. /package/dist/chunks/{websearch-0f48qthw.js → event-logger-0f48qthw.js} +0 -0
  838. /package/dist/chunks/{websearch-0zz82cjq.js → event-logger-0zz82cjq.js} +0 -0
  839. /package/dist/chunks/{websearch-1fb7bmpf.js → event-logger-1fb7bmpf.js} +0 -0
  840. /package/dist/chunks/{websearch-1wcz8fvj.js → event-logger-1wcz8fvj.js} +0 -0
  841. /package/dist/chunks/{websearch-29n7vfk2.js → event-logger-29n7vfk2.js} +0 -0
  842. /package/dist/chunks/{websearch-2qdx6zz3.js → event-logger-2qdx6zz3.js} +0 -0
  843. /package/dist/chunks/{websearch-2xb0r1c6.js → event-logger-2xb0r1c6.js} +0 -0
  844. /package/dist/chunks/{websearch-39ktntah.js → event-logger-39ktntah.js} +0 -0
  845. /package/dist/chunks/{websearch-3g3rpp2x.js → event-logger-3g3rpp2x.js} +0 -0
  846. /package/dist/chunks/{websearch-3w3ybtfd.js → event-logger-3w3ybtfd.js} +0 -0
  847. /package/dist/chunks/{websearch-47ty4mvs.js → event-logger-47ty4mvs.js} +0 -0
  848. /package/dist/chunks/{websearch-4b2tz2m9.js → event-logger-4b2tz2m9.js} +0 -0
  849. /package/dist/chunks/{websearch-5a5ch9ts.js → event-logger-5a5ch9ts.js} +0 -0
  850. /package/dist/chunks/{websearch-5va1yh78.js → event-logger-5va1yh78.js} +0 -0
  851. /package/dist/chunks/{websearch-61ek4hj9.js → event-logger-61ek4hj9.js} +0 -0
  852. /package/dist/chunks/{websearch-69qrqpw0.js → event-logger-69qrqpw0.js} +0 -0
  853. /package/dist/chunks/{websearch-6zqxzw0a.js → event-logger-6zqxzw0a.js} +0 -0
  854. /package/dist/chunks/{websearch-7n9qwqk4.js → event-logger-7n9qwqk4.js} +0 -0
  855. /package/dist/chunks/{websearch-8nn8kqcn.js → event-logger-8nn8kqcn.js} +0 -0
  856. /package/dist/chunks/{websearch-8rpfd2h6.js → event-logger-8rpfd2h6.js} +0 -0
  857. /package/dist/chunks/{websearch-8sj3ajy5.js → event-logger-8sj3ajy5.js} +0 -0
  858. /package/dist/chunks/{websearch-8w9tzfz1.js → event-logger-8w9tzfz1.js} +0 -0
  859. /package/dist/chunks/{websearch-906y0b6d.js → event-logger-906y0b6d.js} +0 -0
  860. /package/dist/chunks/{websearch-9dct5xhx.js → event-logger-9dct5xhx.js} +0 -0
  861. /package/dist/chunks/{websearch-9maxscqf.js → event-logger-9maxscqf.js} +0 -0
  862. /package/dist/chunks/{websearch-9sdtsapf.js → event-logger-9sdtsapf.js} +0 -0
  863. /package/dist/chunks/{websearch-a02svayp.js → event-logger-a02svayp.js} +0 -0
  864. /package/dist/chunks/{websearch-a83yvq99.js → event-logger-a83yvq99.js} +0 -0
  865. /package/dist/chunks/{websearch-ayevdmef.js → event-logger-ayevdmef.js} +0 -0
  866. /package/dist/chunks/{websearch-b02txbh8.js → event-logger-b02txbh8.js} +0 -0
  867. /package/dist/chunks/{websearch-bbqs2y60.js → event-logger-bbqs2y60.js} +0 -0
  868. /package/dist/chunks/{websearch-bjwj8hwv.js → event-logger-bjwj8hwv.js} +0 -0
  869. /package/dist/chunks/{websearch-brsh5f65.js → event-logger-brsh5f65.js} +0 -0
  870. /package/dist/chunks/{websearch-bxdhjb3y.js → event-logger-bxdhjb3y.js} +0 -0
  871. /package/dist/chunks/{websearch-bybkghrn.js → event-logger-bybkghrn.js} +0 -0
  872. /package/dist/chunks/{websearch-c77ad0vh.js → event-logger-c77ad0vh.js} +0 -0
  873. /package/dist/chunks/{websearch-cm67rqy2.js → event-logger-cm67rqy2.js} +0 -0
  874. /package/dist/chunks/{websearch-df3v2q6j.js → event-logger-df3v2q6j.js} +0 -0
  875. /package/dist/chunks/{websearch-dhcq6c44.js → event-logger-dhcq6c44.js} +0 -0
  876. /package/dist/chunks/{websearch-dht5baf0.js → event-logger-dht5baf0.js} +0 -0
  877. /package/dist/chunks/{websearch-dkmkay92.js → event-logger-dkmkay92.js} +0 -0
  878. /package/dist/chunks/{websearch-ehj9csmv.js → event-logger-ehj9csmv.js} +0 -0
  879. /package/dist/chunks/{websearch-em6xpscd.js → event-logger-em6xpscd.js} +0 -0
  880. /package/dist/chunks/{websearch-emmqknsm.js → event-logger-emmqknsm.js} +0 -0
  881. /package/dist/chunks/{websearch-ezs3tagn.js → event-logger-ezs3tagn.js} +0 -0
  882. /package/dist/chunks/{websearch-f14r7hfz.js → event-logger-f14r7hfz.js} +0 -0
  883. /package/dist/chunks/{websearch-f1jj19e8.js → event-logger-f1jj19e8.js} +0 -0
  884. /package/dist/chunks/{websearch-f4cp4g4a.js → event-logger-f4cp4g4a.js} +0 -0
  885. /package/dist/chunks/{websearch-faypg4r1.js → event-logger-faypg4r1.js} +0 -0
  886. /package/dist/chunks/{websearch-fg7fz4q3.js → event-logger-fg7fz4q3.js} +0 -0
  887. /package/dist/chunks/{websearch-fgbfdq62.js → event-logger-fgbfdq62.js} +0 -0
  888. /package/dist/chunks/{websearch-g23fad86.js → event-logger-g23fad86.js} +0 -0
  889. /package/dist/chunks/{websearch-gd5xeqc2.js → event-logger-gd5xeqc2.js} +0 -0
  890. /package/dist/chunks/{websearch-ghm4673n.js → event-logger-ghm4673n.js} +0 -0
  891. /package/dist/chunks/{websearch-ghwjy7my.js → event-logger-ghwjy7my.js} +0 -0
  892. /package/dist/chunks/{websearch-gy500k2r.js → event-logger-gy500k2r.js} +0 -0
  893. /package/dist/chunks/{websearch-hzeg9cfr.js → event-logger-hzeg9cfr.js} +0 -0
  894. /package/dist/chunks/{websearch-j07kk359.js → event-logger-j07kk359.js} +0 -0
  895. /package/dist/chunks/{websearch-jqms80b0.js → event-logger-jqms80b0.js} +0 -0
  896. /package/dist/chunks/{websearch-jve7t217.js → event-logger-jve7t217.js} +0 -0
  897. /package/dist/chunks/{websearch-k3e42drn.js → event-logger-k3e42drn.js} +0 -0
  898. /package/dist/chunks/{websearch-k8b45nas.js → event-logger-k8b45nas.js} +0 -0
  899. /package/dist/chunks/{websearch-kpdbz7gn.js → event-logger-kpdbz7gn.js} +0 -0
  900. /package/dist/chunks/{websearch-kxy11nzk.js → event-logger-kxy11nzk.js} +0 -0
  901. /package/dist/chunks/{websearch-kyyqvx4s.js → event-logger-kyyqvx4s.js} +0 -0
  902. /package/dist/chunks/{websearch-m8cbvarh.js → event-logger-m8cbvarh.js} +0 -0
  903. /package/dist/chunks/{websearch-ma60vzgv.js → event-logger-ma60vzgv.js} +0 -0
  904. /package/dist/chunks/{websearch-n3m50c2t.js → event-logger-n3m50c2t.js} +0 -0
  905. /package/dist/chunks/{websearch-nkm1m8dz.js → event-logger-nkm1m8dz.js} +0 -0
  906. /package/dist/chunks/{websearch-nsc0c3zb.js → event-logger-nsc0c3zb.js} +0 -0
  907. /package/dist/chunks/{websearch-qaarhjrp.js → event-logger-qaarhjrp.js} +0 -0
  908. /package/dist/chunks/{websearch-qc167nrn.js → event-logger-qc167nrn.js} +0 -0
  909. /package/dist/chunks/{websearch-qp95y4jb.js → event-logger-qp95y4jb.js} +0 -0
  910. /package/dist/chunks/{websearch-r8f4w671.js → event-logger-r8f4w671.js} +0 -0
  911. /package/dist/chunks/{websearch-rdfev9jy.js → event-logger-rdfev9jy.js} +0 -0
  912. /package/dist/chunks/{websearch-s7whb9gt.js → event-logger-s7whb9gt.js} +0 -0
  913. /package/dist/chunks/{websearch-se76j685.js → event-logger-se76j685.js} +0 -0
  914. /package/dist/chunks/{websearch-sem2g21k.js → event-logger-sem2g21k.js} +0 -0
  915. /package/dist/chunks/{websearch-sp575ygv.js → event-logger-sp575ygv.js} +0 -0
  916. /package/dist/chunks/{websearch-tmb1f636.js → event-logger-tmb1f636.js} +0 -0
  917. /package/dist/chunks/{websearch-ttxf0gsy.js → event-logger-ttxf0gsy.js} +0 -0
  918. /package/dist/chunks/{websearch-tvmhrvfj.js → event-logger-tvmhrvfj.js} +0 -0
  919. /package/dist/chunks/{websearch-v2adqbbe.js → event-logger-v2adqbbe.js} +0 -0
  920. /package/dist/chunks/{websearch-vac9eqd2.js → event-logger-vac9eqd2.js} +0 -0
  921. /package/dist/chunks/{websearch-rvfvac9x.js → event-logger-vpjkya7h.js} +0 -0
  922. /package/dist/chunks/{websearch-wj4sxzqa.js → event-logger-wj4sxzqa.js} +0 -0
  923. /package/dist/chunks/{websearch-wwntjmk1.js → event-logger-wwntjmk1.js} +0 -0
  924. /package/dist/chunks/{websearch-wyqjaaa5.js → event-logger-wyqjaaa5.js} +0 -0
  925. /package/dist/chunks/{websearch-x4q807cx.js → event-logger-x4q807cx.js} +0 -0
  926. /package/dist/chunks/{websearch-yrqrg4vp.js → event-logger-yrqrg4vp.js} +0 -0
  927. /package/dist/chunks/{websearch-z47nswr2.js → event-logger-z47nswr2.js} +0 -0
  928. /package/dist/chunks/{websearch-zsf8rs93.js → event-logger-zsf8rs93.js} +0 -0
@@ -1,15 +1,15 @@
1
- import {
2
- exports_app
3
- } from "./websearch-50jxp3hw.js";
4
1
  import {
5
2
  exports_integration
6
- } from "./websearch-0atc81xx.js";
3
+ } from "./event-logger-8458mtgv.js";
7
4
  import {
8
5
  exports_credential
9
- } from "./websearch-xz7tgbq3.js";
6
+ } from "./event-logger-cz4g9a0v.js";
7
+ import {
8
+ exports_app
9
+ } from "./event-logger-hs51b0fc.js";
10
10
  import {
11
11
  exports_provider
12
- } from "./websearch-fex42j86.js";
12
+ } from "./event-logger-68yag814.js";
13
13
 
14
14
  // src/plugin/provider/xai.ts
15
15
  import { define } from "@opencode-ai/plugin/effect/plugin";
@@ -74,12 +74,12 @@ var XAIPlugin = define({
74
74
  value: exports_credential.OAuth.make({ ...credential.value, methodID: deviceMethodID })
75
75
  });
76
76
  }, { discard: true });
77
- yield* ctx.integration.transform((draft) => {
78
- draft.update("xai", (integration) => {
77
+ yield* ctx.integration.transform((editor) => {
78
+ editor.update("xai", (integration) => {
79
79
  integration.name = "xAI";
80
80
  });
81
- draft.method.update(device(ctx.app));
82
- draft.method.update({ integrationID: "xai", method: { type: "key", label: "Manually enter API Key" } });
81
+ editor.method.update(device(ctx.app));
82
+ editor.method.update({ integrationID: "xai", method: { type: "key", label: "Manually enter API Key" } });
83
83
  });
84
84
  yield* ctx.catalog.transform((catalog) => {
85
85
  const provider = catalog.provider.get(providerID);
@@ -2,7 +2,7 @@ import {
2
2
  getTableColumnsRuntime,
3
3
  mapUpdateSet,
4
4
  orderSelectedFields
5
- } from "./websearch-k8b45nas.js";
5
+ } from "./event-logger-k8b45nas.js";
6
6
 
7
7
  // src/database/drizzle/sqlite-core/effect/insert.ts
8
8
  import { applyEffectWrapper } from "drizzle-orm/effect-core/query-effect";
@@ -1,16 +1,16 @@
1
1
  import {
2
2
  __export
3
- } from "./websearch-rvfvac9x.js";
3
+ } from "./event-logger-vpjkya7h.js";
4
4
 
5
5
  // src/v1/config/lsp.ts
6
6
  var exports_lsp = {};
7
7
  __export(exports_lsp, {
8
- requiresExtensionsForCustomServers: () => requiresExtensionsForCustomServers,
9
- builtinServerIds: () => builtinServerIds,
10
- Info: () => Info,
11
- Entry: () => Entry,
8
+ ConfigLSPV1: () => exports_lsp,
12
9
  Disabled: () => Disabled,
13
- ConfigLSPV1: () => exports_lsp
10
+ Entry: () => Entry,
11
+ Info: () => Info,
12
+ builtinServerIds: () => builtinServerIds,
13
+ requiresExtensionsForCustomServers: () => requiresExtensionsForCustomServers
14
14
  });
15
15
  import { Schema } from "effect";
16
16
  var Disabled = Schema.Struct({
@@ -1,27 +1,27 @@
1
- import {
2
- exports_migration
3
- } from "./websearch-djtgymwn.js";
4
1
  import {
5
2
  exports_drizzle
6
- } from "./websearch-vgk3vx5v.js";
3
+ } from "./event-logger-nv5prhmc.js";
4
+ import {
5
+ exports_migration
6
+ } from "./event-logger-eccfdzzr.js";
7
7
  import {
8
8
  __export
9
- } from "./websearch-rvfvac9x.js";
9
+ } from "./event-logger-vpjkya7h.js";
10
10
 
11
11
  // src/database/database.ts
12
12
  var exports_database = {};
13
13
  __export(exports_database, {
14
- node: () => node,
15
- layerFromClient: () => layerFromClient,
16
- layer: () => layer,
17
- configuredClient: () => configuredClient,
18
- configured: () => configured,
19
- Service: () => Service,
14
+ Database: () => exports_database,
20
15
  Options: () => Options,
21
- Database: () => exports_database
16
+ Service: () => Service,
17
+ configured: () => configured,
18
+ configuredClient: () => configuredClient,
19
+ layer: () => layer,
20
+ layerFromClient: () => layerFromClient,
21
+ node: () => node
22
22
  });
23
23
  import { sqliteLayer, supportsForeignKeyToggle, supportsTuningPragmas } from "#sqlite";
24
- import { Context, Effect, Layer, Schema } from "effect";
24
+ import { Context, Effect, Layer, Schema, Semaphore } from "effect";
25
25
  import { Global } from "@opencode-ai/util/global";
26
26
  import { isAbsolute, join } from "path";
27
27
  import { makeGlobalNode } from "@opencode-ai/util/effect/app-node";
@@ -32,7 +32,7 @@ var Options = Schema.Struct({
32
32
 
33
33
  class Service extends Context.Service()("@opencode/storage/Database") {
34
34
  }
35
- var databaseLayer = Layer.effect(Service, Effect.gen(function* () {
35
+ var databaseLayer = (lock) => Layer.effect(Service, Effect.gen(function* () {
36
36
  const db = yield* makeDatabase;
37
37
  if (supportsTuningPragmas) {
38
38
  yield* db.run("PRAGMA journal_mode = WAL");
@@ -43,12 +43,22 @@ var databaseLayer = Layer.effect(Service, Effect.gen(function* () {
43
43
  }
44
44
  if (supportsForeignKeyToggle)
45
45
  yield* db.run("PRAGMA foreign_keys = ON");
46
- yield* exports_migration.apply(db);
46
+ const semaphore = yield* lock;
47
+ yield* semaphore.withPermit(exports_migration.apply(db));
47
48
  return { db };
48
49
  }).pipe(Effect.orDie));
50
+ var locks = new Map;
51
+ function lockFor(filename) {
52
+ const existing = locks.get(filename);
53
+ if (existing)
54
+ return existing;
55
+ const lock = Semaphore.makeUnsafe(1);
56
+ locks.set(filename, lock);
57
+ return lock;
58
+ }
49
59
  function layer(options = { path: ":memory:" }) {
50
60
  return Layer.unwrap(Effect.gen(function* () {
51
- const provide = (filename2) => layerFromClient.pipe(Layer.provide(sqliteLayer({ filename: filename2 })));
61
+ const provide = (filename2) => databaseLayer(filename2 === ":memory:" ? Semaphore.make(1) : Effect.succeed(lockFor(filename2))).pipe(Layer.provide(sqliteLayer({ filename: filename2 })));
52
62
  const filename = options.path ?? ":memory:";
53
63
  if (filename === ":memory:" || isAbsolute(filename))
54
64
  return provide(filename);
@@ -56,7 +66,7 @@ function layer(options = { path: ":memory:" }) {
56
66
  return provide(join(global.data, filename));
57
67
  }));
58
68
  }
59
- var layerFromClient = databaseLayer;
69
+ var layerFromClient = databaseLayer(Semaphore.make(1));
60
70
  function configured(options) {
61
71
  return makeGlobalNode({ service: Service, layer: layer(options), deps: [Global.node] });
62
72
  }
@@ -1,17 +1,17 @@
1
1
  import {
2
2
  __export
3
- } from "./websearch-rvfvac9x.js";
3
+ } from "./event-logger-vpjkya7h.js";
4
4
 
5
5
  // src/app.ts
6
6
  var exports_app = {};
7
7
  __export(exports_app, {
8
- useragent: () => useragent,
9
- node: () => node,
10
- make: () => make,
11
- layer: () => layer,
12
- configured: () => configured,
8
+ App: () => exports_app,
13
9
  Metadata: () => Metadata,
14
- App: () => exports_app
10
+ configured: () => configured,
11
+ layer: () => layer,
12
+ make: () => make,
13
+ node: () => node,
14
+ useragent: () => useragent
15
15
  });
16
16
  import { Context, Layer } from "effect";
17
17
  import { makeGlobalNode } from "@opencode-ai/util/effect/app-node";
@@ -1,18 +1,19 @@
1
1
  import {
2
2
  __export
3
- } from "./websearch-rvfvac9x.js";
3
+ } from "./event-logger-vpjkya7h.js";
4
4
 
5
5
  // src/plugin/system-prompt.ts
6
6
  var exports_system_prompt = {};
7
7
  __export(exports_system_prompt, {
8
- SystemPromptPlugin: () => exports_system_prompt,
9
- Plugins: () => Plugins,
10
- OpenAIPlugin: () => OpenAIPlugin,
11
- MetaPlugin: () => MetaPlugin,
12
- KimiPlugin: () => KimiPlugin,
8
+ AnthropicPlugin: () => AnthropicPlugin,
13
9
  ArceePlugin: () => ArceePlugin,
14
- AnthropicPlugin: () => AnthropicPlugin
10
+ KimiPlugin: () => KimiPlugin,
11
+ MetaPlugin: () => MetaPlugin,
12
+ OpenAIPlugin: () => OpenAIPlugin,
13
+ Plugins: () => Plugins,
14
+ SystemPromptPlugin: () => exports_system_prompt
15
15
  });
16
+ import { SystemPart } from "@opencode-ai/ai";
16
17
  import { define } from "@opencode-ai/plugin/effect/plugin";
17
18
  import { Effect } from "effect";
18
19
 
@@ -72,196 +73,26 @@ assistant: Clients are marked as failed in the \`connectToServer\` function in s
72
73
  </example>
73
74
  `;
74
75
 
75
- // src/plugin/system-prompt/codex.txt
76
- var codex_default = `You are OpenCode, the best coding agent on the planet.
77
-
78
- You are an interactive CLI tool that helps users with software engineering tasks. Use the instructions below and the tools available to you to assist the user.
79
-
80
- ## Editing constraints
81
- - Default to ASCII when editing or creating files. Only introduce non-ASCII or other Unicode characters when there is a clear justification and the file already uses them.
82
- - Only add comments if they are necessary to make a non-obvious block easier to understand.
83
- - Try to use patch for single file edits, but it is fine to explore other options to make the edit if it does not work well. Do not use patch for changes that are auto-generated (i.e. generating package.json or running a lint or format command like gofmt) or when scripting is more efficient (such as search and replacing a string across a codebase).
84
-
85
- ## Tool usage
86
- - Prefer specialized tools over shell for file operations:
87
- - Use read to view files and patch to modify files.
88
- - Use glob to find files by name and grep to search file contents.
89
- - Use the shell tool for terminal operations (git, bun, builds, tests, running scripts).
90
- - Run tool calls in parallel when neither call needs the other’s output; otherwise run sequentially.
91
-
92
- ## Git and workspace hygiene
93
- - You may be in a dirty git worktree.
94
- * NEVER revert existing changes you did not make unless explicitly requested, since these changes were made by the user.
95
- * If asked to make a commit or code edits and there are unrelated changes to your work or changes that you didn't make in those files, don't revert those changes.
96
- * If the changes are in files you've touched recently, you should read carefully and understand how you can work with the changes rather than reverting them.
97
- * If the changes are in unrelated files, just ignore them and don't revert them.
98
- - Do not amend commits unless explicitly requested.
99
- - **NEVER** use destructive commands like \`git reset --hard\` or \`git checkout --\` unless specifically requested or approved by the user.
100
-
101
- ## Frontend tasks
102
- When doing frontend design tasks, avoid collapsing into bland, generic layouts.
103
- Aim for interfaces that feel intentional and deliberate.
104
- - Typography: Use expressive, purposeful fonts and avoid default stacks (Inter, Roboto, Arial, system).
105
- - Color & Look: Choose a clear visual direction; define CSS variables; avoid purple-on-white defaults. No purple bias or dark mode bias.
106
- - Motion: Use a few meaningful animations (page-load, staggered reveals) instead of generic micro-motions.
107
- - Background: Don't rely on flat, single-color backgrounds; use gradients, shapes, or subtle patterns to build atmosphere.
108
- - Overall: Avoid boilerplate layouts and interchangeable UI patterns. Vary themes, type families, and visual languages across outputs.
109
- - Ensure the page loads properly on both desktop and mobile.
110
-
111
- Exception: If working within an existing website or design system, preserve the established patterns, structure, and visual language.
112
-
113
- ## Presenting your work and final message
114
-
115
- You are producing plain text that will later be styled by the CLI. Follow these rules exactly. Formatting should make results easy to scan, but not feel mechanical. Use judgment to decide how much structure adds value.
116
-
117
- - Default: be very concise; friendly coding teammate tone.
118
- - Default: do the work without asking questions. Treat short tasks as sufficient direction; infer missing details by reading the codebase and following existing conventions.
119
- - Questions: only ask when you are truly blocked after checking relevant context AND you cannot safely pick a reasonable default. This usually means one of:
120
- * The request is ambiguous in a way that materially changes the result and you cannot disambiguate by reading the repo.
121
- * The action is destructive/irreversible, touches production, or changes billing/security posture.
122
- * You need a secret/credential/value that cannot be inferred (API key, account id, etc.).
123
- - If you must ask: do all non-blocked work first, then ask exactly one targeted question, include your recommended default, and state what would change based on the answer.
124
- - Never ask permission questions like "Should I proceed?" or "Do you want me to run tests?"; proceed with the most reasonable option and mention what you did.
125
- - For substantial work, summarize clearly; follow final‑answer formatting.
126
- - Skip heavy formatting for simple confirmations.
127
- - Don't dump large files you've written; reference paths only.
128
- - No "save/copy this file" - User is on the same machine.
129
- - Offer logical next steps (tests, commits, build) briefly; add verify steps if you couldn't do something.
130
- - For code changes:
131
- * Lead with a quick explanation of the change, and then give more details on the context covering where and why a change was made. Do not start this explanation with "summary", just jump right in.
132
- * If there are natural next steps the user may want to take, suggest them at the end of your response. Do not make suggestions if there are no natural next steps.
133
- * When suggesting multiple options, use numeric lists for the suggestions so the user can quickly respond with a single number.
134
- - The user does not command execution outputs. When asked to show the output of a command (e.g. \`git show\`), relay the important details in your answer or summarize the key lines so the user understands the result.
135
-
136
- ## Final answer structure and style guidelines
137
-
138
- - Plain text; CLI handles styling. Use structure only when it helps scannability.
139
- - Headers: optional; short Title Case (1-3 words) wrapped in **…**; no blank line before the first bullet; add only if they truly help.
140
- - Bullets: use - ; merge related points; keep to one line when possible; 4–6 per list ordered by importance; keep phrasing consistent.
141
- - Monospace: backticks for commands/paths/env vars/code ids and inline examples; use for literal keyword bullets; never combine with **.
142
- - Code samples or multi-line snippets should be wrapped in fenced code blocks; include an info string as often as possible.
143
- - Structure: group related bullets; order sections general → specific → supporting; for subsections, start with a bolded keyword bullet, then items; match complexity to the task.
144
- - Tone: collaborative, concise, factual; present tense, active voice; self‑contained; no "above/below"; parallel wording.
145
- - Don'ts: no nested bullets/hierarchies; no ANSI codes; don't cram unrelated keywords; keep keyword lists short—wrap/reformat if long; avoid naming formatting styles in answers.
146
- - Adaptation: code explanations → precise, structured with code refs; simple tasks → lead with outcome; big changes → logical walkthrough + rationale + next actions; casual one-offs → plain sentences, no headers/bullets.
147
- - File References: When referencing files in your response follow the below rules:
148
- * Use inline code to make file paths clickable.
149
- * Each reference should have a stand alone path. Even if it's the same file.
150
- * Accepted: absolute, workspace‑relative, a/ or b/ diff prefixes, or bare filename/suffix.
151
- * Optionally include line/column (1‑based): :line[:column] or #Lline[Ccolumn] (column defaults to 1).
152
- * Do not use URIs like file://, vscode://, or https://.
153
- * Do not provide range of lines
154
- * Examples: src/app.ts, src/app.ts:42, b/server/index.js#L10, C:\\repo\\project\\main.rs:12:5
155
- `;
156
-
157
- // src/plugin/system-prompt/gpt.txt
158
- var gpt_default = `You are OpenCode, You and the user share the same workspace and collaborate to achieve the user's goals.
159
-
160
- You are a deeply pragmatic, effective software engineer. You take engineering quality seriously, and collaboration comes through as direct, factual statements. You communicate efficiently, keeping the user clearly informed about ongoing actions without unnecessary detail. You build context by examining the codebase first without making assumptions or jumping to conclusions. You think through the nuances of the code you encounter, and embody the mentality of a skilled senior software engineer.
161
-
162
- - When searching for text or files, prefer using glob and grep tools (they are powered by \`rg\`)
163
- - Parallelize tool calls whenever possible - especially file reads. When independent tool calls have no dependencies, issue them together in the same assistant message. Never chain together shell commands with separators like \`echo "====";\` as this renders to the user poorly.
164
-
165
- ## Editing Approach
166
-
167
- - The best changes are often the smallest correct changes.
168
- - When you are weighing two correct approaches, prefer the more minimal one (less new names, helpers, tests, etc).
169
- - Keep things in one function unless composable or reusable
170
- - Do not add backward-compatibility code unless there is a concrete need, such as persisted data, shipped behavior, external consumers, or an explicit user requirement; if unclear, ask one short question instead of guessing.
171
-
172
- ## Autonomy and persistence
173
-
174
- Unless the user explicitly asks for a plan, asks a question about the code, is brainstorming potential solutions, or some other intent that makes it clear that code should not be written, assume the user wants you to make code changes or run tools to solve the user's problem. In these cases, it's bad to output your proposed solution in a message, you should go ahead and actually implement the change. If you encounter challenges or blockers, you should attempt to resolve them yourself.
175
-
176
- Persist until the task is fully handled end-to-end within the current turn whenever feasible: do not stop at analysis or partial fixes; carry changes through implementation, verification, and a clear explanation of outcomes unless the user explicitly pauses or redirects you.
177
-
178
- If you notice unexpected changes in the worktree or staging area that you did not make, continue with your task. NEVER revert, undo, or modify changes you did not make unless the user explicitly asks you to. There can be multiple agents or the user working in the same codebase concurrently.
179
-
180
- ## Editing constraints
181
-
182
- - Default to ASCII when editing or creating files. Only introduce non-ASCII or other Unicode characters when there is a clear justification and the file already uses them.
183
- - Add succinct code comments that explain what is going on if code is not self-explanatory. You should not add comments like "Assigns the value to the variable", but a brief comment might be useful ahead of a complex code block that the user would otherwise have to spend time parsing out. Usage of these comments should be rare.
184
- - Use patch for manual code edits when available. Do not use cat or any other commands when creating or editing files. Formatting commands or bulk edits don't need to be done with patch.
185
- - Do not use Python to read/write files when a simple shell command or patch would suffice.
186
- - You may be in a dirty git worktree.
187
- * NEVER revert existing changes you did not make unless explicitly requested, since these changes were made by the user.
188
- * If asked to make a commit or code edits and there are unrelated changes to your work or changes that you didn't make in those files, don't revert those changes.
189
- * If the changes are in files you've touched recently, you should read carefully and understand how you can work with the changes rather than reverting them.
190
- * If the changes are in unrelated files, just ignore them and don't revert them.
191
- - Do not amend a commit unless explicitly requested to do so.
192
- - While you are working, you might notice unexpected changes that you didn't make. It's likely the user made them, or were autogenerated. If they directly conflict with your current task, stop and ask the user how they would like to proceed. Otherwise, focus on the task at hand.
193
- - **NEVER** use destructive commands like \`git reset --hard\` or \`git checkout --\` unless specifically requested or approved by the user.
194
- - You struggle using the git interactive console. **ALWAYS** prefer using non-interactive git commands.
195
-
196
- ## Special user requests
197
-
198
- If the user makes a simple request (such as asking for the time) which you can fulfill by running a terminal command (such as \`date\`), you should do so.
199
-
200
- If the user pastes an error description or a bug report, help them diagnose the root cause. You can try to reproduce it if it seems feasible with the available tools and skills.
201
-
202
- If the user asks for a "review", default to a code review mindset: prioritise identifying bugs, risks, behavioural regressions, and missing tests. Findings must be the primary focus of the response - keep summaries or overviews brief and only after enumerating the issues. Present findings first (ordered by severity with file/line references), follow with open questions or assumptions, and offer a change-summary only as a secondary detail. If no findings are discovered, state that explicitly and mention any residual risks or testing gaps.
76
+ // src/plugin/system-prompt/gpt-extension.txt
77
+ var gpt_extension_default = `# Response channels
203
78
 
204
- ## Frontend tasks
79
+ As you work, you send messages to the commentary channel. These are how you collaborate with the user while you work: stating assumptions and providing updates. Keep them concise and quickly scannable, and send them only when they add real information, such as a discovery, a tradeoff, or a blocker. Do not narrate routine reads, searches, or edits.
205
80
 
206
- When doing frontend design tasks, avoid collapsing into "AI slop" or safe, average-looking layouts.
207
- - Ensure the page loads properly on both desktop and mobile
208
- - For React code, prefer modern patterns including useEffectEvent, startTransition, and useDeferredValue when appropriate if used by the team. Do not add useMemo/useCallback by default unless already used; follow the repo's React Compiler guidance.
209
- - Overall: Avoid boilerplate layouts and interchangeable UI patterns. Vary themes, type families, and visual languages across outputs.
81
+ Do not put a final response, such as a blocking or clarifying question, in the commentary channel. The final answer must always be fully self-contained.
210
82
 
211
- Exception: If working within an existing website or design system, preserve the established patterns, structure, and visual language.
83
+ In the final answer, lead with the outcome, not the steps you took to reach it. Cover the most important information, use only as much structure as the answer needs, and skip explanation the user did not ask for. Include technical detail only where it helps.
212
84
 
213
- # Working with the user
85
+ # Delegation
214
86
 
215
- ## General
87
+ Do not spawn subagents unless the user or applicable AGENTS.md/skill instructions explicitly ask for subagents, delegation, or parallel agent work.
216
88
 
217
- Do not begin responses with conversational interjections or meta commentary. Avoid openers such as acknowledgements ("Done —", "Got it", "Great question, ") or framing phrases.
89
+ # Destructive actions
218
90
 
219
- Balance conciseness to not overwhelm the user with appropriate detail for the request. Do not narrate abstractly; explain what you are doing and why.
91
+ Do not revert, reset, or discard changes you did not make. Never run destructive commands such as \`git reset --hard\`, \`git checkout --\`, or recursive deletes on broad paths unless the user clearly asked for that operation; if the target or scope is unclear, ask first. Prefer non-interactive git commands.
220
92
 
221
- Never tell the user to "save/copy this file", the user is on the same machine and has access to the same files as you have.
93
+ # Autonomy
222
94
 
223
-
224
- ## Formatting rules
225
-
226
- Your responses are rendered as GitHub-flavored Markdown.
227
-
228
- Never use nested bullets. Keep lists flat (single level). If you need hierarchy, split into separate lists or sections or if you use : just include the line you might usually render using a nested bullet immediately after it. For numbered lists, only use the \`1. 2. 3.\` style markers (with a period), never \`1)\`.
229
-
230
- Headers are optional, only use them when you think they are necessary. If you do use them, use short Title Case (1-3 words) wrapped in **…**. Don't add a blank line.
231
-
232
- Use inline code blocks for commands, paths, environment variables, function names, inline examples, keywords.
233
-
234
- Code samples or multi-line snippets should be wrapped in fenced code blocks. Include a language tag when possible.
235
-
236
- Don’t use emojis or em dashes unless explicitly instructed.
237
-
238
- ## Response channels
239
-
240
- Use commentary for short progress updates while working and final for the completed response.
241
-
242
- ### \`commentary\` channel
243
-
244
- Only use \`commentary\` for intermediary updates. These are short updates while you are working, they are NOT final answers. Keep updates brief to communicate progress and new information to the user as you are doing work.
245
-
246
- Send updates when they add meaningful new information: a discovery, a tradeoff, a blocker, a substantial plan, or the start of a non-trivial edit or verification step.
247
-
248
- Do not narrate routine reads, searches, obvious next steps, or minor confirmations. Combine related progress into a single update.
249
-
250
- Do not begin responses with conversational interjections or meta commentary. Avoid openers such as acknowledgements ("Done —", "Got it", "Great question") or framing phrases.
251
-
252
- Before substantial work, send a short update describing your first step. Before editing files, send an update describing the edit.
253
-
254
- After you have sufficient context, and the work is substantial you can provide a longer plan (this is the only user update that may be longer than 2 sentences and can contain formatting).
255
-
256
- ### \`final\` channel
257
-
258
- Use final for the completed response.
259
-
260
- Structure your final response if necessary. The complexity of the answer should match the task. If the task is simple, your answer should be a one-liner. Order sections from general to specific to supporting.
261
-
262
- If the user asks for a code explanation, include code references. For simple tasks, just state the outcome without heavy formatting.
263
-
264
- For large or complex changes, lead with the solution, then explain what you did and why. For casual chat, just chat. If something couldn’t be done (tests, builds, etc.), say so. Suggest next steps only when they are natural and useful; if you list options, use numbered items.
95
+ Do not infer authorization for work beyond the user's request. Assumptions that help you make progress are fine as long as they stay within the user's intent and the scope of the task.
265
96
  `;
266
97
 
267
98
  // src/plugin/system-prompt/kimi.txt
@@ -525,26 +356,26 @@ assistant: Clients are marked as failed in the \`connectToServer\` function in s
525
356
  `;
526
357
 
527
358
  // src/plugin/system-prompt.ts
528
- var OpenAIPlugin = make("openai", (id) => {
529
- if (id.includes("gpt")) {
530
- if (id.includes("codex"))
531
- return codex_default;
532
- return gpt_default;
533
- }
534
- if (id.includes("o1") || id.includes("o3"))
535
- return gpt_default;
359
+ var OpenAIPlugin = make("openai", (id) => id.includes("gpt") ? gpt_extension_default : undefined, {
360
+ operation: "append"
361
+ });
362
+ var AnthropicPlugin = make("anthropic", (id) => id.includes("claude") ? anthropic_default : undefined, {
363
+ operation: "replace"
364
+ });
365
+ var KimiPlugin = make("kimi", (id) => id.includes("kimi") ? kimi_default : undefined, {
366
+ operation: "replace"
367
+ });
368
+ var ArceePlugin = make("arcee", (id) => id.includes("trinity") ? trinity_default : undefined, {
369
+ operation: "replace"
536
370
  });
537
- var AnthropicPlugin = make("anthropic", (id) => id.includes("claude") ? anthropic_default : undefined);
538
- var KimiPlugin = make("kimi", (id) => id.includes("kimi") ? kimi_default : undefined);
539
- var ArceePlugin = make("arcee", (id) => id.includes("trinity") ? trinity_default : undefined);
540
371
  var MetaPlugin = make("meta", (id) => {
541
372
  if (!id.includes("muse"))
542
373
  return;
543
374
  const name = id.includes("muse-glimmer") ? "Muse Glimmer" : "Muse Spark";
544
375
  return meta_default.replaceAll("{{MODEL_NAME}}", name);
545
- });
376
+ }, { operation: "replace" });
546
377
  var Plugins = [OpenAIPlugin, AnthropicPlugin, KimiPlugin, ArceePlugin, MetaPlugin];
547
- function make(id, select) {
378
+ function make(id, getPrompt, options) {
548
379
  return define({
549
380
  id: `opencode.prompt.${id}`,
550
381
  effect: Effect.fn(`SystemPromptPlugin.${id}`)(function* (ctx) {
@@ -555,9 +386,13 @@ function make(id, select) {
555
386
  if (!system)
556
387
  return;
557
388
  const model = (yield* ctx.catalog.model.list()).data.find((model2) => model2.providerID === event.model.providerID && model2.id === event.model.id);
558
- const prompt = select(`${model?.modelID ?? event.model.id} ${model?.family ?? ""}`.toLowerCase());
389
+ const prompt = getPrompt(`${model?.modelID ?? event.model.id} ${model?.family ?? ""}`.toLowerCase());
559
390
  if (!prompt)
560
391
  return;
392
+ if (options.operation === "append") {
393
+ event.system.splice(1, 0, SystemPart.make(prompt));
394
+ return;
395
+ }
561
396
  event.system[0] = { ...system, text: prompt };
562
397
  }).pipe(Effect.catch(() => Effect.void)));
563
398
  })
@@ -2,16 +2,16 @@ import {
2
2
  Failed,
3
3
  NotFound,
4
4
  WrongKind
5
- } from "./websearch-xczfw7dq.js";
5
+ } from "./event-logger-vynk8zbr.js";
6
6
  import {
7
7
  __export
8
- } from "./websearch-rvfvac9x.js";
8
+ } from "./event-logger-vpjkya7h.js";
9
9
 
10
10
  // src/environment/exec-defaults.ts
11
11
  var exports_exec_defaults = {};
12
12
  __export(exports_exec_defaults, {
13
- execDefaults: () => execDefaults,
14
- EnvironmentExecDefaults: () => exports_exec_defaults
13
+ EnvironmentExecDefaults: () => exports_exec_defaults,
14
+ execDefaults: () => execDefaults
15
15
  });
16
16
  import { Effect, Stream } from "effect";
17
17
  import { ChildProcess } from "effect/unstable/process";
@@ -1,52 +1,52 @@
1
- import {
2
- exports_message_updater
3
- } from "./websearch-ngz3v23c.js";
4
1
  import {
5
2
  exports_instruction_entry
6
- } from "./websearch-2yr8bd15.js";
3
+ } from "./event-logger-b9nrx84y.js";
7
4
  import {
8
5
  exports_inbox
9
- } from "./websearch-2ygx7nw7.js";
6
+ } from "./event-logger-c5h8z8cv.js";
7
+ import {
8
+ exports_message_updater
9
+ } from "./event-logger-8ezmrsyj.js";
10
10
  import {
11
11
  Slug
12
- } from "./websearch-df3v2q6j.js";
12
+ } from "./event-logger-df3v2q6j.js";
13
13
  import {
14
14
  exports_instruction_state
15
- } from "./websearch-0687t5rp.js";
15
+ } from "./event-logger-8c5xq4gn.js";
16
16
  import {
17
17
  SessionInboxTable,
18
18
  SessionMessageTable,
19
19
  SessionTable
20
- } from "./websearch-q606pcse.js";
20
+ } from "./event-logger-q606pcse.js";
21
+ import {
22
+ SessionMessage
23
+ } from "./event-logger-8rpfd2h6.js";
21
24
  import {
22
25
  SessionEvent
23
- } from "./websearch-a83yvq99.js";
26
+ } from "./event-logger-a83yvq99.js";
24
27
  import {
25
28
  ProjectTable
26
- } from "./websearch-c8ya26sa.js";
27
- import {
28
- exports_bus
29
- } from "./websearch-cat9v99r.js";
30
- import {
31
- SessionMessage
32
- } from "./websearch-8rpfd2h6.js";
29
+ } from "./event-logger-c8ya26sa.js";
33
30
  import {
34
31
  AbsolutePath,
35
32
  RelativePath
36
- } from "./websearch-j07kk359.js";
33
+ } from "./event-logger-j07kk359.js";
34
+ import {
35
+ exports_bus
36
+ } from "./event-logger-vw7aptj1.js";
37
37
  import {
38
38
  exports_database
39
- } from "./websearch-t87z2dfg.js";
39
+ } from "./event-logger-hr3zcmss.js";
40
40
  import {
41
41
  __export
42
- } from "./websearch-rvfvac9x.js";
42
+ } from "./event-logger-vpjkya7h.js";
43
43
 
44
44
  // src/session/projector.ts
45
45
  var exports_projector = {};
46
46
  __export(exports_projector, {
47
- node: () => node,
47
+ SessionAlreadyProjected: () => SessionAlreadyProjected,
48
48
  SessionProjector: () => exports_projector,
49
- SessionAlreadyProjected: () => SessionAlreadyProjected
49
+ node: () => node
50
50
  });
51
51
  import { and, asc, desc, eq, gt, gte, inArray, isNull, lt, lte, or, sql } from "drizzle-orm";
52
52
  import { DateTime, Effect, Layer, Schema, Stream } from "effect";
@@ -1,12 +1,12 @@
1
1
  import {
2
2
  __export
3
- } from "./websearch-rvfvac9x.js";
3
+ } from "./event-logger-vpjkya7h.js";
4
4
 
5
5
  // src/plugin/promise.ts
6
6
  var exports_promise = {};
7
7
  __export(exports_promise, {
8
- fromPromise: () => fromPromise,
9
- PluginPromise: () => exports_promise
8
+ PluginPromise: () => exports_promise,
9
+ fromPromise: () => fromPromise
10
10
  });
11
11
  import { fromPromise } from "@opencode-ai/plugin/promise/adapter";
12
12
 
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  loadSDKFactory
3
- } from "./websearch-j32vdj8r.js";
3
+ } from "./event-logger-snpn6bap.js";
4
4
 
5
5
  // src/plugin/provider/dynamic.ts
6
6
  import { Effect } from "effect";
@@ -1,12 +1,12 @@
1
1
  import {
2
2
  __export
3
- } from "./websearch-rvfvac9x.js";
3
+ } from "./event-logger-vpjkya7h.js";
4
4
 
5
5
  // src/session/system-prompt.ts
6
6
  var exports_system_prompt = {};
7
7
  __export(exports_system_prompt, {
8
- make: () => make,
9
- SessionSystemPrompt: () => exports_system_prompt
8
+ SessionSystemPrompt: () => exports_system_prompt,
9
+ make: () => make
10
10
  });
11
11
 
12
12
  // src/session/runner/prompt/system.txt
@@ -15,6 +15,7 @@ var system_default = `You are an AI agent powered by OpenCode, a coding agent ha
15
15
  # Harness
16
16
  - Responses are rendered as GitHub-flavored Markdown.
17
17
  - \`<system-reminder>\` blocks are harness instructions, not user-authored content. Read and follow them.
18
+ - Prefer parallelizing independent tool calls.
18
19
  \${OPENCODE_TOOL_GUIDANCE}
19
20
 
20
21
  # Communication
@@ -29,15 +30,15 @@ var system_default = `You are an AI agent powered by OpenCode, a coding agent ha
29
30
  // src/session/system-prompt.ts
30
31
  function make(tools) {
31
32
  const instructions = [];
33
+ if (tools.includes("shell")) {
34
+ instructions.push("- Prefer dedicated tools over shell commands; fall back to the shell when a tool cannot do what you need.");
35
+ }
32
36
  if (tools.includes("write")) {
33
37
  instructions.push("- Use the write tool to create files or completely replace their content. Prefer using the edit tool for targeted changes.");
34
38
  }
35
39
  if (tools.includes("edit")) {
36
40
  instructions.push("- Use the edit tool for targeted changes to existing text files. It replaces the exact text in `oldString` with `newString`, and the values must differ. By default, `oldString` must occur exactly once. If it occurs multiple times, include more surrounding context to make it unique or set `replaceAll` to true to replace every occurrence.");
37
41
  }
38
- if (tools.includes("read")) {
39
- instructions.push("- Prefer using the read tool rather than shell commands like `cat`.");
40
- }
41
42
  return system_default.replace("${OPENCODE_TOOL_GUIDANCE}", instructions.join(`
42
43
  `));
43
44
  }