@opencode-ai/core 0.0.0-dev-17830 → 0.0.0-dev-17844

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 (756) hide show
  1. package/dist/account/sql.js +2 -2
  2. package/dist/agent.js +72 -72
  3. package/dist/aisdk-native.js +3 -3
  4. package/dist/aisdk.js +4 -4
  5. package/dist/app.js +2 -2
  6. package/dist/bus.js +70 -70
  7. package/dist/catalog.js +80 -80
  8. package/dist/chunks/{model-resolver-d6etej9e.js → file-00r5jg1r.js} +4 -4
  9. package/dist/chunks/{model-resolver-0vjrsp3x.js → file-00vebws6.js} +8 -8
  10. package/dist/chunks/{model-resolver-02dbfq60.js → file-02dbfq60.js} +1 -1
  11. package/dist/chunks/{model-resolver-00w1m4bj.js → file-07q9xbzr.js} +150 -150
  12. package/dist/chunks/{model-resolver-0b17sr9d.js → file-0b17sr9d.js} +2 -2
  13. package/dist/chunks/{model-resolver-0kvmztkf.js → file-0kvmztkf.js} +1 -1
  14. package/dist/chunks/{model-resolver-afks9dm8.js → file-0qmd9h6f.js} +12 -12
  15. package/dist/chunks/{model-resolver-msza3x9p.js → file-0smn0055.js} +3 -3
  16. package/dist/chunks/{model-resolver-0vgt3zn6.js → file-0vgt3zn6.js} +2 -2
  17. package/dist/chunks/{model-resolver-h0g6kjbq.js → file-0vk1t345.js} +12 -12
  18. package/dist/chunks/{model-resolver-vswx9cks.js → file-0wky043f.js} +7 -7
  19. package/dist/chunks/{model-resolver-td2wnafh.js → file-0y3s2n5z.js} +5 -5
  20. package/dist/chunks/{model-resolver-czf0wbjk.js → file-11gmasx0.js} +3 -3
  21. package/dist/chunks/{model-resolver-nnt9nea7.js → file-171q0xrk.js} +3 -3
  22. package/dist/chunks/{model-resolver-18pv8fg3.js → file-18pv8fg3.js} +2 -2
  23. package/dist/chunks/{model-resolver-1a3a2s70.js → file-1a3a2s70.js} +2 -2
  24. package/dist/chunks/{model-resolver-z445qmts.js → file-1ak3wjze.js} +4 -4
  25. package/dist/chunks/{model-resolver-1c00jchy.js → file-1c00jchy.js} +2 -2
  26. package/dist/chunks/{model-resolver-xr1syhd5.js → file-1cvps577.js} +2 -2
  27. package/dist/chunks/{model-resolver-nbcr2639.js → file-1ez21d62.js} +4 -4
  28. package/dist/chunks/{model-resolver-fttqjqrw.js → file-1tmehh7f.js} +43 -43
  29. package/dist/chunks/{model-resolver-0hpzqe41.js → file-1x3tkbg3.js} +3 -3
  30. package/dist/chunks/{model-resolver-ewqkc2mf.js → file-23t97fw6.js} +11 -11
  31. package/dist/chunks/{model-resolver-25pxtba7.js → file-25pxtba7.js} +1 -1
  32. package/dist/chunks/{model-resolver-sw2d6gwd.js → file-2a56v7nr.js} +5 -5
  33. package/dist/chunks/{model-resolver-31dgdvcs.js → file-2ah898sw.js} +5 -5
  34. package/dist/chunks/{model-resolver-pjy882n7.js → file-2dfb4h3c.js} +11 -11
  35. package/dist/chunks/{model-resolver-t7693vv8.js → file-2f4xv8dt.js} +4 -4
  36. package/dist/chunks/{model-resolver-2nmyybe0.js → file-2nmyybe0.js} +1 -1
  37. package/dist/chunks/{model-resolver-2ya5073c.js → file-2ya5073c.js} +1 -1
  38. package/dist/chunks/{model-resolver-35bnjmz0.js → file-2zf7hxjt.js} +4 -4
  39. package/dist/chunks/{model-resolver-abdbyp8n.js → file-35y6r63q.js} +3 -3
  40. package/dist/chunks/{model-resolver-37e9hbzs.js → file-37e9hbzs.js} +2 -2
  41. package/dist/chunks/{model-resolver-8n1phfze.js → file-3akv0zmr.js} +7 -7
  42. package/dist/chunks/{model-resolver-3d1t6jqf.js → file-3d1t6jqf.js} +3 -3
  43. package/dist/chunks/{model-resolver-59fc2zsw.js → file-3d888c2v.js} +3 -3
  44. package/dist/chunks/{model-resolver-g13jkfs5.js → file-3dewkwk6.js} +28 -28
  45. package/dist/chunks/{model-resolver-z0ympntt.js → file-3eppqsah.js} +2 -2
  46. package/dist/chunks/{model-resolver-tb4rz6de.js → file-3fghweg2.js} +4 -4
  47. package/dist/chunks/{model-resolver-3g8vftxb.js → file-3g8vftxb.js} +2 -2
  48. package/dist/chunks/{model-resolver-3gsv1x0v.js → file-3gsv1x0v.js} +2 -2
  49. package/dist/chunks/{model-resolver-bj7ksj7p.js → file-3t095nt9.js} +7 -7
  50. package/dist/chunks/{model-resolver-zjbgmhcj.js → file-3t7hxntv.js} +5 -5
  51. package/dist/chunks/{model-resolver-3thh6229.js → file-3thh6229.js} +2 -2
  52. package/dist/chunks/{model-resolver-dbhjwq2p.js → file-423tx9pd.js} +18 -18
  53. package/dist/chunks/{model-resolver-jyvv20vt.js → file-4f9xp6sa.js} +5 -5
  54. package/dist/chunks/{model-resolver-vcfmxc8j.js → file-4rfyysbh.js} +3 -3
  55. package/dist/chunks/{model-resolver-4s2xwh5d.js → file-4s2xwh5d.js} +3 -3
  56. package/dist/chunks/{model-resolver-b8g8v0pk.js → file-4xc5yqmv.js} +3 -3
  57. package/dist/chunks/{model-resolver-4zzdwbaz.js → file-4zzdwbaz.js} +2 -2
  58. package/dist/chunks/{model-resolver-50jxp3hw.js → file-50jxp3hw.js} +1 -1
  59. package/dist/chunks/{model-resolver-kyqwzkn7.js → file-55b6c23t.js} +9 -9
  60. package/dist/chunks/{model-resolver-57tzwnz4.js → file-57tzwnz4.js} +1 -1
  61. package/dist/chunks/{model-resolver-tcn24h1d.js → file-58xdvehb.js} +2 -3
  62. package/dist/chunks/{model-resolver-wseeh57t.js → file-59cfdznb.js} +3 -3
  63. package/dist/chunks/{model-resolver-959a5acn.js → file-5anvysmt.js} +3 -3
  64. package/dist/chunks/{model-resolver-bb1c6k1d.js → file-5dafp8qx.js} +3 -3
  65. package/dist/chunks/{model-resolver-5rs65q6p.js → file-5rs65q6p.js} +1 -1
  66. package/dist/chunks/{model-resolver-5vcssjzn.js → file-5vcssjzn.js} +1 -1
  67. package/dist/chunks/{model-resolver-5xrsrne4.js → file-5xrsrne4.js} +3 -3
  68. package/dist/chunks/{model-resolver-v9pm9t88.js → file-5zkvkmh6.js} +5 -5
  69. package/dist/chunks/{model-resolver-k80q1q9b.js → file-647vqn74.js} +3 -3
  70. package/dist/chunks/{model-resolver-ph1me6ah.js → file-65re92qg.js} +6 -4
  71. package/dist/chunks/{model-resolver-xer4jkkw.js → file-6eyj7j63.js} +3 -3
  72. package/dist/chunks/{model-resolver-6ky7rqk7.js → file-6ky7rqk7.js} +1 -1
  73. package/dist/chunks/{model-resolver-6q0m15b3.js → file-6q0m15b3.js} +1 -1
  74. package/dist/chunks/{model-resolver-z763bsn9.js → file-6t8ejr73.js} +20 -34
  75. package/dist/chunks/{model-resolver-6x98y149.js → file-6x98y149.js} +2 -2
  76. package/dist/chunks/{model-resolver-kr2xh7a3.js → file-7cx2sxpa.js} +29 -31
  77. package/dist/chunks/{model-resolver-7gqqz1s8.js → file-7gqqz1s8.js} +1 -1
  78. package/dist/chunks/{model-resolver-7mrpdsq5.js → file-7mrpdsq5.js} +1 -1
  79. package/dist/chunks/{model-resolver-7wcmqxrc.js → file-7wcmqxrc.js} +1 -1
  80. package/dist/chunks/{model-resolver-88jbfw8z.js → file-88jbfw8z.js} +2 -2
  81. package/dist/chunks/{model-resolver-5q8017ef.js → file-8bd9qxsq.js} +11 -12
  82. package/dist/chunks/{model-resolver-8gp1tmat.js → file-8gp1tmat.js} +3 -3
  83. package/dist/chunks/{model-resolver-8v47shgf.js → file-8v47shgf.js} +2 -2
  84. package/dist/chunks/{model-resolver-22g0yh8b.js → file-8zm0brnz.js} +101 -113
  85. package/dist/chunks/{model-resolver-6frfga43.js → file-91ahjmck.js} +8 -8
  86. package/dist/chunks/{model-resolver-bkz4gk84.js → file-989xpn0s.js} +14 -15
  87. package/dist/chunks/{model-resolver-wsq28twh.js → file-98ve5cjw.js} +15 -15
  88. package/dist/chunks/{model-resolver-999qd968.js → file-999qd968.js} +1 -1
  89. package/dist/chunks/{model-resolver-9d2xhdr4.js → file-9d2xhdr4.js} +3 -3
  90. package/dist/chunks/{model-resolver-9f0rnpkn.js → file-9f0rnpkn.js} +1 -1
  91. package/dist/chunks/{model-resolver-bkmsv8nt.js → file-9n44s51r.js} +65 -33
  92. package/dist/chunks/{model-resolver-9p8mhgdp.js → file-9p8mhgdp.js} +1 -1
  93. package/dist/chunks/{model-resolver-qn34prfb.js → file-a0x3ezfg.js} +33 -33
  94. package/dist/chunks/{model-resolver-4hcy9e4r.js → file-a6sseyjf.js} +5 -5
  95. package/dist/chunks/{model-resolver-5j5akvv9.js → file-apcfjfbc.js} +6 -6
  96. package/dist/chunks/{model-resolver-9t804341.js → file-ax6f76wy.js} +3 -3
  97. package/dist/chunks/{model-resolver-ayfwnm78.js → file-ayfwnm78.js} +2 -2
  98. package/dist/chunks/{model-resolver-90v8ky4k.js → file-aznsy8z6.js} +2 -2
  99. package/dist/chunks/{model-resolver-q9q4srfm.js → file-b3zrdzcf.js} +3 -3
  100. package/dist/chunks/{model-resolver-bd3k3vfk.js → file-b5dbs099.js} +1 -1
  101. package/dist/chunks/{model-resolver-dyz5q1tb.js → file-bh1wr8rq.js} +3 -6
  102. package/dist/chunks/{model-resolver-48wxp1m2.js → file-bjjn565w.js} +3 -3
  103. package/dist/chunks/{model-resolver-n2am20fb.js → file-bkaqxghx.js} +60 -59
  104. package/dist/chunks/{model-resolver-byab506k.js → file-byab506k.js} +1 -1
  105. package/dist/chunks/{model-resolver-hk5q65aq.js → file-c1s7n1f2.js} +10 -10
  106. package/dist/chunks/{model-resolver-jvx15bmy.js → file-c26fd4d5.js} +8 -8
  107. package/dist/chunks/{model-resolver-e24rm1tf.js → file-c6gknnhe.js} +2 -2
  108. package/dist/chunks/{model-resolver-c963bjxn.js → file-c963bjxn.js} +6 -6
  109. package/dist/chunks/{model-resolver-hwtktswf.js → file-c9g8vwe1.js} +4 -4
  110. package/dist/chunks/{model-resolver-qw06pdhp.js → file-ck5pgha0.js} +1 -1
  111. package/dist/chunks/{model-resolver-gz51g2rc.js → file-cke3skfe.js} +3 -7
  112. package/dist/chunks/{model-resolver-cve546b2.js → file-cve546b2.js} +2 -2
  113. package/dist/chunks/{model-resolver-cz3dkvcz.js → file-cz3dkvcz.js} +1 -1
  114. package/dist/chunks/{model-resolver-eyk9wdct.js → file-d2gk9vpf.js} +4 -5
  115. package/dist/chunks/{model-resolver-dhphtf1x.js → file-dhphtf1x.js} +1 -1
  116. package/dist/chunks/{model-resolver-djkt4gex.js → file-djkt4gex.js} +1 -1
  117. package/dist/chunks/{model-resolver-rqsar9q7.js → file-dyrphakh.js} +4 -8
  118. package/dist/chunks/{model-resolver-e1z9a0ts.js → file-e1z9a0ts.js} +2 -2
  119. package/dist/chunks/{model-resolver-2qybrj11.js → file-e31vc3ge.js} +16 -16
  120. package/dist/chunks/{model-resolver-ec8vrfw5.js → file-ec8vrfw5.js} +1 -1
  121. package/dist/chunks/{model-resolver-mjedp1b5.js → file-eec8k3jj.js} +14 -14
  122. package/dist/chunks/{model-resolver-yp46gk1x.js → file-enbpgzth.js} +9 -9
  123. package/dist/chunks/{model-resolver-epzxjdf4.js → file-epzxjdf4.js} +4 -4
  124. package/dist/chunks/{model-resolver-erj4j75s.js → file-erj4j75s.js} +1 -1
  125. package/dist/chunks/{model-resolver-e1btm0jt.js → file-ew0bmd4s.js} +21 -17
  126. package/dist/chunks/{model-resolver-f05p34aa.js → file-f05p34aa.js} +3 -3
  127. package/dist/chunks/{model-resolver-yw2bnxvw.js → file-f898gr5d.js} +4 -4
  128. package/dist/chunks/{model-resolver-5q0gpr41.js → file-fk5c4a61.js} +4 -4
  129. package/dist/chunks/{model-resolver-jn8sfk8j.js → file-frc2kc0j.js} +1 -1
  130. package/dist/chunks/{model-resolver-5a2vc1wr.js → file-fs3m2wg9.js} +2 -2
  131. package/dist/chunks/{model-resolver-g7t6p8r2.js → file-g7t6p8r2.js} +1 -1
  132. package/dist/chunks/{model-resolver-g9yygpzr.js → file-g9yygpzr.js} +1 -1
  133. package/dist/chunks/{model-resolver-v446x82w.js → file-gaxx9a2m.js} +4 -4
  134. package/dist/chunks/{model-resolver-gcay93cp.js → file-gcay93cp.js} +1 -1
  135. package/dist/chunks/{model-resolver-gd2xppx8.js → file-gd2xppx8.js} +1 -1
  136. package/dist/chunks/{model-resolver-z4cp2hj8.js → file-geaez5bh.js} +86 -86
  137. package/dist/chunks/{model-resolver-gg8gy1ab.js → file-gg8gy1ab.js} +2 -2
  138. package/dist/chunks/{model-resolver-eexqx2r9.js → file-gvg4ctm1.js} +4 -4
  139. package/dist/chunks/{model-resolver-dnzpd7gt.js → file-gxn893b1.js} +8 -8
  140. package/dist/chunks/{model-resolver-z4dpj6f4.js → file-h3byvmqy.js} +3 -3
  141. package/dist/chunks/{model-resolver-jdxvsdxy.js → file-h9a55930.js} +6 -6
  142. package/dist/chunks/{model-resolver-czydct9n.js → file-hhxt27np.js} +2 -3
  143. package/dist/chunks/{model-resolver-z74v9ncw.js → file-hnnxqndd.js} +2 -2
  144. package/dist/chunks/{model-resolver-at4skgam.js → file-hntd26nq.js} +11 -11
  145. package/dist/chunks/{model-resolver-wb4dbzpz.js → file-hp6rpdnc.js} +5 -3
  146. package/dist/chunks/{model-resolver-hsyk7kfz.js → file-hsyk7kfz.js} +2 -2
  147. package/dist/chunks/{model-resolver-2xfs13t0.js → file-htj0khqz.js} +2 -2
  148. package/dist/chunks/{model-resolver-pnhtwnkk.js → file-j2sbcd8t.js} +7 -7
  149. package/dist/chunks/{model-resolver-d9315zp9.js → file-j3r1jtv9.js} +9 -9
  150. package/dist/chunks/{model-resolver-wqs8yyvn.js → file-j455cz51.js} +5 -5
  151. package/dist/chunks/{model-resolver-cn5vww2k.js → file-j4pp9aa4.js} +6 -6
  152. package/dist/chunks/{model-resolver-d0r2hzy0.js → file-j5rxww5p.js} +1 -1
  153. package/dist/chunks/{model-resolver-ftmpqse3.js → file-ja0t8253.js} +19 -34
  154. package/dist/chunks/{model-resolver-7qwa072f.js → file-jm0k2pz4.js} +3 -3
  155. package/dist/chunks/{model-resolver-bff8ay8a.js → file-jr7c7g49.js} +3 -3
  156. package/dist/chunks/{model-resolver-jssy2dr3.js → file-jssy2dr3.js} +2 -2
  157. package/dist/chunks/{model-resolver-g7k9te92.js → file-k3e42drn.js} +1 -2
  158. package/dist/chunks/{model-resolver-g5d54sdx.js → file-k42t1tha.js} +2 -2
  159. package/dist/chunks/{model-resolver-5dxxgaw4.js → file-k7hej72y.js} +4 -4
  160. package/dist/chunks/{model-resolver-7r52hkpv.js → file-k89w3m6h.js} +11 -11
  161. package/dist/chunks/{model-resolver-kg1345f7.js → file-kg1345f7.js} +1 -1
  162. package/dist/chunks/{model-resolver-b1akvy0p.js → file-kw8w7pfa.js} +17 -20
  163. package/dist/chunks/{model-resolver-v41cvenw.js → file-kx8rg6yn.js} +10 -10
  164. package/dist/chunks/{model-resolver-ky5n31x7.js → file-ky5n31x7.js} +2 -2
  165. package/dist/chunks/{model-resolver-8ddzpdk4.js → file-m3za6v6y.js} +6 -6
  166. package/dist/chunks/{model-resolver-te512ewq.js → file-m55p4k10.js} +16 -15
  167. package/dist/chunks/{model-resolver-mf0hyk7z.js → file-mf0hyk7z.js} +1 -1
  168. package/dist/chunks/{model-resolver-j6tb3c1b.js → file-mfab8mqn.js} +3 -3
  169. package/dist/chunks/{model-resolver-mh28new4.js → file-mh28new4.js} +2 -2
  170. package/dist/chunks/{model-resolver-rh7jeamy.js → file-mmmanpsq.js} +7 -7
  171. package/dist/chunks/{model-resolver-mnb85w6b.js → file-mnb85w6b.js} +2 -2
  172. package/dist/chunks/{model-resolver-w97c2a7z.js → file-mqe55m4y.js} +12 -12
  173. package/dist/chunks/{model-resolver-mwceq5am.js → file-mwceq5am.js} +1 -1
  174. package/dist/chunks/{model-resolver-mxvw03gv.js → file-mxvw03gv.js} +1 -1
  175. package/dist/chunks/{model-resolver-n744begs.js → file-n744begs.js} +4 -4
  176. package/dist/chunks/{model-resolver-q2q77ge5.js → file-n8dt05yf.js} +7 -9
  177. package/dist/chunks/{model-resolver-72xemmp5.js → file-nc19yh7r.js} +5 -5
  178. package/dist/chunks/{model-resolver-nesb2rcz.js → file-nesb2rcz.js} +2 -2
  179. package/dist/chunks/{model-resolver-mgtsjxpx.js → file-nhkb91wp.js} +12 -12
  180. package/dist/chunks/{model-resolver-p8fbtk16.js → file-nj16x0d6.js} +4 -4
  181. package/dist/chunks/{model-resolver-nr76rjj3.js → file-nr76rjj3.js} +2 -2
  182. package/dist/chunks/{model-resolver-jn0adpvh.js → file-nz6vg33s.js} +7 -7
  183. package/dist/chunks/{model-resolver-nzrjycs5.js → file-nzrjycs5.js} +1 -1
  184. package/dist/chunks/{model-resolver-p27xxkqg.js → file-p27xxkqg.js} +3 -3
  185. package/dist/chunks/{model-resolver-x8dw04dw.js → file-p7x6q5kv.js} +8 -8
  186. package/dist/chunks/{model-resolver-pfqehjmy.js → file-pfqehjmy.js} +2 -2
  187. package/dist/chunks/{model-resolver-x9tyz28z.js → file-ppvgjjy9.js} +4 -4
  188. package/dist/chunks/{model-resolver-pq4b4pqk.js → file-pq4b4pqk.js} +2 -2
  189. package/dist/chunks/{model-resolver-prf9bavk.js → file-prf9bavk.js} +3 -3
  190. package/dist/chunks/{model-resolver-qe0d689s.js → file-qe0d689s.js} +2 -2
  191. package/dist/chunks/{model-resolver-aw1kbvpp.js → file-qg6c5nf1.js} +39 -39
  192. package/dist/chunks/{model-resolver-qhdqjp31.js → file-qhdqjp31.js} +1 -1
  193. package/dist/chunks/{model-resolver-7fbq74mc.js → file-qhzk8hm4.js} +3 -3
  194. package/dist/chunks/{model-resolver-bdwzqryv.js → file-qr1rs33n.js} +11 -14
  195. package/dist/chunks/{model-resolver-80x80h4x.js → file-qsbef94y.js} +4 -5
  196. package/dist/chunks/{model-resolver-n24efwkx.js → file-qtwcwgsb.js} +85 -85
  197. package/dist/chunks/{model-resolver-0drwp3wb.js → file-qxfs9v38.js} +8 -8
  198. package/dist/chunks/{model-resolver-v8f71v7d.js → file-r01arjwx.js} +6 -6
  199. package/dist/chunks/{model-resolver-5pdfh983.js → file-r1nj5q2n.js} +8 -8
  200. package/dist/chunks/{model-resolver-r3k9abhd.js → file-r3k9abhd.js} +2 -2
  201. package/dist/chunks/{model-resolver-h8ecejt5.js → file-rahat93a.js} +1 -1
  202. package/dist/chunks/{model-resolver-706a4azd.js → file-rfbm65k8.js} +1 -1
  203. package/dist/chunks/{model-resolver-rn9r0ddn.js → file-rn9r0ddn.js} +2 -2
  204. package/dist/chunks/{model-resolver-rt6yg6j2.js → file-rt6yg6j2.js} +2 -2
  205. package/dist/chunks/{model-resolver-k3t8gpnc.js → file-rv6zjqtv.js} +6 -6
  206. package/dist/chunks/{model-resolver-a9wfbz68.js → file-rvtr2n85.js} +33 -32
  207. package/dist/chunks/{model-resolver-ryap75b3.js → file-ryap75b3.js} +1 -1
  208. package/dist/chunks/{model-resolver-n6agx7ey.js → file-ryq6chg9.js} +10 -10
  209. package/dist/chunks/{model-resolver-687sf3wd.js → file-s0ytb9np.js} +13 -13
  210. package/dist/chunks/{model-resolver-s33fw6zm.js → file-s33fw6zm.js} +1 -1
  211. package/dist/chunks/{model-resolver-e9yfe4g9.js → file-s4hn1693.js} +11 -9
  212. package/dist/chunks/{model-resolver-smpeg8c9.js → file-smpeg8c9.js} +2 -2
  213. package/dist/chunks/{model-resolver-sw84ckhj.js → file-sw84ckhj.js} +1 -1
  214. package/dist/chunks/{model-resolver-nq0pkjdw.js → file-sws7htm9.js} +8 -8
  215. package/dist/chunks/{model-resolver-m56z7qwv.js → file-swtv4230.js} +26 -20
  216. package/dist/chunks/{model-resolver-h976ggx4.js → file-t052mhmz.js} +5 -5
  217. package/dist/chunks/{model-resolver-t14kykx1.js → file-t14kykx1.js} +1 -1
  218. package/dist/chunks/{model-resolver-af5stnj5.js → file-t9hwq1kz.js} +3 -3
  219. package/dist/chunks/{model-resolver-t066q9hw.js → file-tb33ng7x.js} +2 -2
  220. package/dist/chunks/{model-resolver-tenv3kfs.js → file-tenv3kfs.js} +2 -2
  221. package/dist/chunks/{model-resolver-799659b1.js → file-thjvpfht.js} +4 -4
  222. package/dist/chunks/{model-resolver-thstd87d.js → file-thstd87d.js} +1 -1
  223. package/dist/chunks/{model-resolver-tjjf1q77.js → file-tjjf1q77.js} +1 -1
  224. package/dist/chunks/{model-resolver-7pzwzmf4.js → file-tqqr9qtd.js} +4 -6
  225. package/dist/chunks/{model-resolver-0xwqafby.js → file-txbm7h4m.js} +2 -2
  226. package/dist/chunks/{model-resolver-qea53f30.js → file-ty2y48c4.js} +2 -2
  227. package/dist/chunks/{model-resolver-vmqqmksm.js → file-v1y8ewyj.js} +11 -11
  228. package/dist/chunks/{model-resolver-v2wshkax.js → file-v2wshkax.js} +1 -1
  229. package/dist/chunks/{model-resolver-v80zsxnb.js → file-v80zsxnb.js} +1 -1
  230. package/dist/chunks/{model-resolver-v972xay6.js → file-v972xay6.js} +1 -1
  231. package/dist/chunks/{model-resolver-v9bfv94f.js → file-v9bfv94f.js} +1 -1
  232. package/dist/chunks/{model-resolver-g661w9tk.js → file-vhwkh7k1.js} +9 -9
  233. package/dist/chunks/{model-resolver-dcmbt9sv.js → file-vqvjt363.js} +3 -3
  234. package/dist/chunks/{model-resolver-y89zb77g.js → file-vtat1sa7.js} +10 -10
  235. package/dist/chunks/{model-resolver-vz89hfgr.js → file-vz89hfgr.js} +1 -1
  236. package/dist/chunks/{model-resolver-khj0qbak.js → file-wbnxr1ya.js} +12 -12
  237. package/dist/chunks/{model-resolver-85b1q31t.js → file-wc8fe9qy.js} +3 -3
  238. package/dist/chunks/{model-resolver-wd268jeg.js → file-wd268jeg.js} +1 -1
  239. package/dist/chunks/{model-resolver-wmxdh12w.js → file-wmxdh12w.js} +1 -1
  240. package/dist/chunks/{model-resolver-wps8gh8n.js → file-wps8gh8n.js} +2 -2
  241. package/dist/chunks/{model-resolver-9z7wg4ea.js → file-wqqk4w9n.js} +4 -4
  242. package/dist/chunks/{model-resolver-eyjrkj38.js → file-x45gtka7.js} +4 -4
  243. package/dist/chunks/{model-resolver-xczfw7dq.js → file-xczfw7dq.js} +1 -1
  244. package/dist/chunks/{model-resolver-wzk0qch4.js → file-xehcdhj8.js} +5 -5
  245. package/dist/chunks/{model-resolver-xgv25zxy.js → file-xgv25zxy.js} +1 -1
  246. package/dist/chunks/{model-resolver-qekfaxyk.js → file-xh0tt8xz.js} +2 -2
  247. package/dist/chunks/{model-resolver-72w5ftp7.js → file-xn81v4wt.js} +8 -8
  248. package/dist/chunks/{model-resolver-xhz3jyrc.js → file-xt0068v8.js} +4 -6
  249. package/dist/chunks/{model-resolver-xwftk1fd.js → file-xwftk1fd.js} +2 -2
  250. package/dist/chunks/{model-resolver-xxpvz42q.js → file-xxpvz42q.js} +3 -3
  251. package/dist/chunks/{model-resolver-y0x38cee.js → file-y0x38cee.js} +1 -1
  252. package/dist/chunks/{model-resolver-y198y2ra.js → file-y198y2ra.js} +1 -1
  253. package/dist/chunks/{model-resolver-8my2r8vk.js → file-y2pxn9w0.js} +6 -6
  254. package/dist/chunks/{model-resolver-jw29kk8x.js → file-y4crwjzf.js} +12 -12
  255. package/dist/chunks/{model-resolver-y67x6rf6.js → file-y67x6rf6.js} +1 -1
  256. package/dist/chunks/{model-resolver-y8rs54ne.js → file-y8rs54ne.js} +1 -1
  257. package/dist/chunks/{model-resolver-y980s7ka.js → file-y980s7ka.js} +3 -3
  258. package/dist/chunks/{model-resolver-ttyjdq4t.js → file-yb36w1ws.js} +67 -67
  259. package/dist/chunks/{model-resolver-ybhfpy64.js → file-ybhfpy64.js} +2 -2
  260. package/dist/chunks/{model-resolver-yf0knd5z.js → file-yf0knd5z.js} +2 -2
  261. package/dist/chunks/{model-resolver-awrah57b.js → file-yjf7cf7c.js} +3 -3
  262. package/dist/chunks/{model-resolver-137f9dhc.js → file-yk0k0x3a.js} +5 -5
  263. package/dist/chunks/{model-resolver-xyfzv6mr.js → file-yppzfc7x.js} +25 -25
  264. package/dist/chunks/{model-resolver-2yszwfan.js → file-ytr44tzx.js} +7 -7
  265. package/dist/chunks/{model-resolver-wnnmwd4v.js → file-yw5xr8zv.js} +5 -5
  266. package/dist/chunks/{model-resolver-zbqqnp0n.js → file-zbqqnp0n.js} +1 -1
  267. package/dist/chunks/{model-resolver-zdkg1k91.js → file-zdkg1k91.js} +1 -1
  268. package/dist/chunks/{model-resolver-zfxc0ze5.js → file-zfxc0ze5.js} +1 -1
  269. package/dist/chunks/{model-resolver-03670px9.js → file-zg3n8vy3.js} +11 -11
  270. package/dist/chunks/{model-resolver-nwspsrfz.js → file-zpd7fetp.js} +8 -8
  271. package/dist/chunks/{model-resolver-zxe9jjhn.js → file-zxe9jjhn.js} +2 -2
  272. package/dist/chunks/index-8jqmqb92.js +1 -1
  273. package/dist/codemode/catalog.js +2 -2
  274. package/dist/codemode/instructions.js +4 -4
  275. package/dist/codemode/tool.js +3 -3
  276. package/dist/command.js +98 -98
  277. package/dist/config/markdown.js +2 -2
  278. package/dist/config/normalize.js +20 -20
  279. package/dist/config/plugin/agent.js +131 -131
  280. package/dist/config/plugin/command.js +128 -128
  281. package/dist/config/plugin/compaction.js +166 -170
  282. package/dist/config/plugin/formatter.js +115 -115
  283. package/dist/config/plugin/image.js +126 -126
  284. package/dist/config/plugin/instruction.js +87 -87
  285. package/dist/config/plugin/location-watcher.js +113 -113
  286. package/dist/config/plugin/mcp.js +124 -124
  287. package/dist/config/plugin/policy.js +112 -112
  288. package/dist/config/plugin/provider.js +111 -111
  289. package/dist/config/plugin/reference.js +115 -115
  290. package/dist/config/plugin/shell.js +114 -114
  291. package/dist/config/plugin/skill-file.js +104 -104
  292. package/dist/config/plugin/skill.js +134 -134
  293. package/dist/config/plugin/snapshot.js +113 -113
  294. package/dist/config/plugin/source.js +111 -111
  295. package/dist/config/plugin/tool-output.js +115 -115
  296. package/dist/config/plugin/websearch.js +111 -111
  297. package/dist/config/variable.js +4 -4
  298. package/dist/config.js +110 -110
  299. package/dist/credential/sql.js +3 -3
  300. package/dist/credential.js +70 -70
  301. package/dist/database/database.js +67 -67
  302. package/dist/database/drizzle/effect-sqlite/driver.js +16 -16
  303. package/dist/database/drizzle/effect-sqlite/index.js +16 -16
  304. package/dist/database/drizzle/effect-sqlite/migrator.js +15 -15
  305. package/dist/database/drizzle/effect-sqlite/session.js +15 -15
  306. package/dist/database/drizzle/index.js +18 -18
  307. package/dist/database/drizzle/internal/drizzle-utils.js +2 -2
  308. package/dist/database/drizzle/sqlite-core/effect/count.js +2 -2
  309. package/dist/database/drizzle/sqlite-core/effect/db.js +10 -10
  310. package/dist/database/drizzle/sqlite-core/effect/delete.js +3 -3
  311. package/dist/database/drizzle/sqlite-core/effect/index.js +21 -21
  312. package/dist/database/drizzle/sqlite-core/effect/insert.js +3 -3
  313. package/dist/database/drizzle/sqlite-core/effect/query.js +2 -2
  314. package/dist/database/drizzle/sqlite-core/effect/raw.js +2 -2
  315. package/dist/database/drizzle/sqlite-core/effect/select.js +3 -3
  316. package/dist/database/drizzle/sqlite-core/effect/session.js +14 -14
  317. package/dist/database/drizzle/sqlite-core/effect/update.js +3 -3
  318. package/dist/database/drizzle/up-migrations/effect-sqlite.js +4 -4
  319. package/dist/database/drizzle/up-migrations/sqlite.js +2 -2
  320. package/dist/database/drizzle/up-migrations/utils.js +2 -2
  321. package/dist/database/drizzle.js +19 -19
  322. package/dist/database/migration/20260127222353_familiar_lady_ursula.js +2 -2
  323. package/dist/database/migration/20260211171708_add_project_commands.js +2 -2
  324. package/dist/database/migration/20260213144116_wakeful_the_professor.js +2 -2
  325. package/dist/database/migration/20260225215848_workspace.js +2 -2
  326. package/dist/database/migration/20260227213759_add_session_workspace_id.js +2 -2
  327. package/dist/database/migration/20260228203230_blue_harpoon.js +2 -2
  328. package/dist/database/migration/20260303231226_add_workspace_fields.js +2 -2
  329. package/dist/database/migration/20260309230000_move_org_to_state.js +2 -2
  330. package/dist/database/migration/20260312043431_session_message_cursor.js +2 -2
  331. package/dist/database/migration/20260323234822_events.js +2 -2
  332. package/dist/database/migration/20260410174513_workspace-name.js +2 -2
  333. package/dist/database/migration/20260413175956_chief_energizer.js +2 -2
  334. package/dist/database/migration/20260423070820_add_icon_url_override.js +2 -2
  335. package/dist/database/migration/20260427172553_slow_nightmare.js +2 -2
  336. package/dist/database/migration/20260428004200_add_session_path.js +2 -2
  337. package/dist/database/migration/20260501142318_next_venus.js +2 -2
  338. package/dist/database/migration/20260504145000_add_sync_owner.js +2 -2
  339. package/dist/database/migration/20260507164347_add_workspace_time.js +2 -2
  340. package/dist/database/migration/20260510033149_session_usage.js +2 -2
  341. package/dist/database/migration/20260511000411_data_migration_state.js +2 -2
  342. package/dist/database/migration/20260511173437_session-metadata.js +2 -2
  343. package/dist/database/migration/20260601010001_normalize_storage_paths.js +2 -2
  344. package/dist/database/migration/20260601202201_amazing_prowler.js +2 -2
  345. package/dist/database/migration/20260602002951_lowly_union_jack.js +2 -2
  346. package/dist/database/migration/20260602182828_add_project_directories.js +2 -2
  347. package/dist/database/migration/20260603001617_session_message_projection_indexes.js +2 -2
  348. package/dist/database/migration/20260603040000_session_message_projection_order.js +2 -2
  349. package/dist/database/migration/20260603141458_session_input_inbox.js +2 -2
  350. package/dist/database/migration/20260603160727_jittery_ezekiel_stane.js +2 -2
  351. package/dist/database/migration/20260604172448_event_sourced_session_input.js +2 -2
  352. package/dist/database/migration/20260605003541_add_session_context_snapshot.js +2 -2
  353. package/dist/database/migration/20260605042240_add_context_epoch_agent.js +2 -2
  354. package/dist/database/migration/20260611035744_credential.js +2 -2
  355. package/dist/database/migration/20260611192811_lush_chimera.js +2 -2
  356. package/dist/database/migration/20260612174303_project_dir_strategy.js +2 -2
  357. package/dist/database/migration/20260622142730_simplify_session_context_epoch.js +2 -2
  358. package/dist/database/migration/20260622170816_reset_v2_session_state.js +2 -2
  359. package/dist/database/migration/20260622202450_simplify_session_input.js +2 -2
  360. package/dist/database/migration/20260804233008_loose_psylocke.js +2 -2
  361. package/dist/database/migration/20260805200742_import_legacy_credentials.js +2 -2
  362. package/dist/database/migration/20260808023530_workspace_domain.js +2 -2
  363. package/dist/database/migration/20260811161259_execution_claim_attempts.js +2 -2
  364. package/dist/database/migration/20260812181746_session_inbox.js +2 -2
  365. package/dist/database/migration/20260812213948_worktree.js +2 -2
  366. package/dist/database/migration.gen.js +46 -46
  367. package/dist/database/migration.js +48 -48
  368. package/dist/database/path.js +3 -3
  369. package/dist/database/schema.gen.js +2 -2
  370. package/dist/database/schema.sql.js +2 -2
  371. package/dist/database/sqlite.bun.js +2 -2
  372. package/dist/database/sqlite.js +2 -2
  373. package/dist/database/sqlite.node.js +2 -2
  374. package/dist/database/sqlite.workerd.js +2 -2
  375. package/dist/database/v1-migration.bun.js +79 -79
  376. package/dist/database/v1-migration.js +2 -2
  377. package/dist/database/v1-migration.noop.js +1 -1
  378. package/dist/effect/app-node-builder.js +327 -331
  379. package/dist/effect/app-node-platform.js +3 -3
  380. package/dist/effect/keyed-mutex.js +2 -2
  381. package/dist/effect/websocket-constructor.js +2 -2
  382. package/dist/environment/driver.js +1 -1
  383. package/dist/environment/environment.js +88 -88
  384. package/dist/environment/exec-defaults.js +3 -3
  385. package/dist/environment/files.js +2 -2
  386. package/dist/environment/index.js +90 -90
  387. package/dist/environment/local.js +3 -3
  388. package/dist/environment/memory.js +3 -3
  389. package/dist/environment/unavailable.js +1 -1
  390. package/dist/event/sql.js +2 -2
  391. package/dist/event-logger.js +72 -72
  392. package/dist/file-mutation.js +89 -89
  393. package/dist/file-retention.js +2 -2
  394. package/dist/file.js +2 -2
  395. package/dist/filesystem/fff.bun.js +2 -2
  396. package/dist/filesystem/fff.js +2 -2
  397. package/dist/filesystem/fff.node.js +2 -2
  398. package/dist/filesystem/fff.workerd.js +2 -2
  399. package/dist/filesystem/ignore.js +1 -1
  400. package/dist/filesystem/location-watcher-policy.js +3 -3
  401. package/dist/filesystem/location-watcher.js +301 -305
  402. package/dist/filesystem/protected.js +2 -2
  403. package/dist/filesystem/search.js +93 -93
  404. package/dist/filesystem/watcher-binding.js +2 -2
  405. package/dist/filesystem/watcher.js +4 -4
  406. package/dist/filesystem.js +93 -93
  407. package/dist/form.js +71 -71
  408. package/dist/formatter/builtins.js +3 -3
  409. package/dist/formatter.js +82 -82
  410. package/dist/generate.js +86 -86
  411. package/dist/git.js +5 -5
  412. package/dist/github-copilot/chat/convert-to-openai-compatible-chat-messages.js +2 -2
  413. package/dist/github-copilot/chat/get-response-metadata.js +2 -2
  414. package/dist/github-copilot/chat/map-openai-compatible-finish-reason.js +2 -2
  415. package/dist/github-copilot/chat/openai-compatible-chat-language-model.js +8 -8
  416. package/dist/github-copilot/chat/openai-compatible-chat-options.js +2 -2
  417. package/dist/github-copilot/chat/openai-compatible-prepare-tools.js +2 -2
  418. package/dist/github-copilot/copilot-provider.js +19 -19
  419. package/dist/github-copilot/models.js +4 -4
  420. package/dist/github-copilot/openai-compatible-error.js +2 -2
  421. package/dist/github-copilot/responses/convert-to-openai-responses-input.js +3 -3
  422. package/dist/github-copilot/responses/map-openai-responses-finish-reason.js +2 -2
  423. package/dist/github-copilot/responses/openai-error.js +2 -2
  424. package/dist/github-copilot/responses/openai-responses-language-model.js +12 -12
  425. package/dist/github-copilot/responses/openai-responses-prepare-tools.js +7 -7
  426. package/dist/github-copilot/responses/tool/code-interpreter.js +2 -2
  427. package/dist/github-copilot/responses/tool/file-search.js +2 -2
  428. package/dist/github-copilot/responses/tool/image-generation.js +2 -2
  429. package/dist/github-copilot/responses/tool/local-shell.js +2 -2
  430. package/dist/github-copilot/responses/tool/web-search-preview.js +2 -2
  431. package/dist/github-copilot/responses/tool/web-search.js +2 -2
  432. package/dist/id/id.js +2 -2
  433. package/dist/image/photon-wasm.bun.js +1 -1
  434. package/dist/image/photon-wasm.node.js +1 -1
  435. package/dist/image/photon-wasm.workerd.js +1 -1
  436. package/dist/image/photon.js +95 -95
  437. package/dist/image.js +95 -95
  438. package/dist/instruction-discovery.js +74 -74
  439. package/dist/instructions/builtins.js +83 -83
  440. package/dist/instructions/index.js +2 -2
  441. package/dist/integration/connection.js +2 -2
  442. package/dist/integration.js +77 -77
  443. package/dist/job.js +4 -4
  444. package/dist/kv/sql.js +3 -3
  445. package/dist/kv.js +70 -70
  446. package/dist/location-mutation.js +81 -81
  447. package/dist/location-service-map.js +81 -81
  448. package/dist/location-services.js +327 -331
  449. package/dist/location.js +80 -80
  450. package/dist/mcp/client.js +89 -89
  451. package/dist/mcp/index.js +95 -95
  452. package/dist/mcp/instructions.js +125 -125
  453. package/dist/mcp/oauth.js +2 -2
  454. package/dist/mcp/stdio.js +89 -89
  455. package/dist/mime.js +2 -2
  456. package/dist/model-resolver.js +83 -83
  457. package/dist/model.js +3 -3
  458. package/dist/models-dev.js +77 -77
  459. package/dist/oauth/page.js +2 -2
  460. package/dist/permission/saved.js +81 -81
  461. package/dist/permission/sql.js +6 -6
  462. package/dist/permission.js +101 -101
  463. package/dist/plugin/agent.js +102 -102
  464. package/dist/plugin/command.js +81 -81
  465. package/dist/plugin/hooks.js +3 -3
  466. package/dist/plugin/host.js +163 -163
  467. package/dist/plugin/internal.js +295 -299
  468. package/dist/plugin/mcp-codemode-exclusion.js +2 -2
  469. package/dist/plugin/models-dev.js +78 -78
  470. package/dist/plugin/plan.js +107 -107
  471. package/dist/plugin/promise.js +2 -2
  472. package/dist/plugin/provider/alibaba.js +3 -3
  473. package/dist/plugin/provider/amazon-bedrock.js +3 -3
  474. package/dist/plugin/provider/anthropic.js +3 -3
  475. package/dist/plugin/provider/azure.js +118 -118
  476. package/dist/plugin/provider/cerebras.js +3 -3
  477. package/dist/plugin/provider/cloudflare-ai-gateway.js +119 -119
  478. package/dist/plugin/provider/cloudflare-workers-ai.js +119 -119
  479. package/dist/plugin/provider/cohere.js +3 -3
  480. package/dist/plugin/provider/configured.js +116 -116
  481. package/dist/plugin/provider/deepinfra.js +3 -3
  482. package/dist/plugin/provider/dynamic.js +2 -2
  483. package/dist/plugin/provider/factory.js +2 -2
  484. package/dist/plugin/provider/gateway.js +3 -3
  485. package/dist/plugin/provider/github-copilot.js +84 -84
  486. package/dist/plugin/provider/gitlab.js +4 -4
  487. package/dist/plugin/provider/google-vertex.js +3 -3
  488. package/dist/plugin/provider/groq.js +3 -3
  489. package/dist/plugin/provider/kilo.js +3 -3
  490. package/dist/plugin/provider/llmgateway.js +79 -79
  491. package/dist/plugin/provider/lmstudio.js +111 -111
  492. package/dist/plugin/provider/mistral.js +3 -3
  493. package/dist/plugin/provider/nvidia.js +3 -3
  494. package/dist/plugin/provider/ollama.js +111 -111
  495. package/dist/plugin/provider/openai-compatible.js +2 -2
  496. package/dist/plugin/provider/openai.js +81 -81
  497. package/dist/plugin/provider/opencode.js +95 -95
  498. package/dist/plugin/provider/openrouter.js +4 -4
  499. package/dist/plugin/provider/perplexity.js +3 -3
  500. package/dist/plugin/provider/sap-ai-core.js +3 -3
  501. package/dist/plugin/provider/snowflake-cortex.js +3 -3
  502. package/dist/plugin/provider/togetherai.js +3 -3
  503. package/dist/plugin/provider/venice.js +3 -3
  504. package/dist/plugin/provider/vercel.js +3 -3
  505. package/dist/plugin/provider/vllm.js +111 -111
  506. package/dist/plugin/provider/xai.js +80 -80
  507. package/dist/plugin/provider/zenmux.js +3 -3
  508. package/dist/plugin/provider.js +157 -157
  509. package/dist/plugin/runtime.js +152 -152
  510. package/dist/plugin/sdk.js +71 -71
  511. package/dist/plugin/skill.js +132 -132
  512. package/dist/plugin/supervisor-service.js +2 -2
  513. package/dist/plugin/supervisor.js +300 -304
  514. package/dist/plugin/system-prompt.js +2 -2
  515. package/dist/plugin/variant.js +4 -4
  516. package/dist/plugin/warming.js +112 -112
  517. package/dist/plugin/websearch/exa.js +4 -4
  518. package/dist/plugin/websearch/firecrawl.js +5 -5
  519. package/dist/plugin/websearch/index.js +9 -9
  520. package/dist/plugin/websearch/mcp.js +3 -3
  521. package/dist/plugin/websearch/parallel.js +5 -5
  522. package/dist/plugin/websearch/tavily.js +3 -3
  523. package/dist/plugin.js +164 -164
  524. package/dist/project/schema.js +3 -3
  525. package/dist/project/sql.js +5 -5
  526. package/dist/project.js +79 -79
  527. package/dist/provider.js +2 -2
  528. package/dist/pty/protocol.js +1 -1
  529. package/dist/pty/pty.bun.js +1 -1
  530. package/dist/pty/pty.node.js +1 -1
  531. package/dist/pty/pty.workerd.js +1 -1
  532. package/dist/pty/schema.js +2 -2
  533. package/dist/pty/ticket.js +72 -72
  534. package/dist/pty.js +86 -86
  535. package/dist/reference/instructions.js +79 -79
  536. package/dist/reference.js +77 -77
  537. package/dist/repository-cache.js +7 -7
  538. package/dist/repository.js +2 -2
  539. package/dist/ripgrep/binary.js +3 -3
  540. package/dist/ripgrep.js +91 -91
  541. package/dist/schema.js +2 -2
  542. package/dist/session/compaction.js +139 -143
  543. package/dist/session/context.js +308 -312
  544. package/dist/session/environment.js +3 -3
  545. package/dist/session/error.js +4 -4
  546. package/dist/session/event.js +2 -2
  547. package/dist/session/execution/restart.js +117 -117
  548. package/dist/session/execution.js +117 -117
  549. package/dist/session/generate-node.js +309 -313
  550. package/dist/session/generate.js +2 -2
  551. package/dist/session/history.js +79 -79
  552. package/dist/session/inbox.js +79 -79
  553. package/dist/session/info.js +89 -89
  554. package/dist/session/instruction-entry.js +75 -75
  555. package/dist/session/instruction-state.js +10 -10
  556. package/dist/session/instructions.js +98 -98
  557. package/dist/session/message-updater.js +4 -4
  558. package/dist/session/message.js +2 -2
  559. package/dist/session/model-request.js +135 -139
  560. package/dist/session/model-transport.js +5 -5
  561. package/dist/session/projector.js +91 -91
  562. package/dist/session/prompt-cache-diagnostics.js +2 -2
  563. package/dist/session/revert.js +87 -87
  564. package/dist/session/run-coordinator.js +2 -2
  565. package/dist/session/runner/index.js +86 -86
  566. package/dist/session/runner/llm.js +314 -318
  567. package/dist/session/runner/max-steps.js +2 -2
  568. package/dist/session/runner/model.js +85 -85
  569. package/dist/session/runner/publish-llm-event.js +4 -4
  570. package/dist/session/runner/retry.js +74 -74
  571. package/dist/session/runner/to-llm-message.js +2 -2
  572. package/dist/session/schema.js +2 -2
  573. package/dist/session/sql.js +6 -6
  574. package/dist/session/store.js +97 -97
  575. package/dist/session/system-prompt.js +2 -2
  576. package/dist/session/title.js +137 -141
  577. package/dist/session/to-session-error.js +112 -112
  578. package/dist/session/transfer.js +155 -156
  579. package/dist/session/usage.js +2 -2
  580. package/dist/session.js +151 -151
  581. package/dist/shell/parse.js +5 -5
  582. package/dist/shell/parser-wasm.bun.js +1 -1
  583. package/dist/shell/parser-wasm.node.js +1 -1
  584. package/dist/shell/parser-wasm.workerd.js +1 -1
  585. package/dist/shell/select.js +4 -4
  586. package/dist/shell.js +96 -96
  587. package/dist/skill/discovery.js +3 -3
  588. package/dist/skill/instructions.js +103 -103
  589. package/dist/skill.js +102 -102
  590. package/dist/snapshot.js +82 -82
  591. package/dist/state.js +2 -2
  592. package/dist/tool/html-markdown.js +2 -2
  593. package/dist/tool/http-body.js +2 -2
  594. package/dist/tool/mcp.js +124 -124
  595. package/dist/tool/plugin/edit.js +111 -111
  596. package/dist/tool/plugin/file-diff.js +2 -2
  597. package/dist/tool/plugin/glob.js +113 -113
  598. package/dist/tool/plugin/grep.js +113 -113
  599. package/dist/tool/plugin/patch.js +111 -111
  600. package/dist/tool/plugin/question.js +103 -103
  601. package/dist/tool/plugin/read.js +116 -116
  602. package/dist/tool/plugin/shell.js +182 -182
  603. package/dist/tool/plugin/skill.js +103 -103
  604. package/dist/tool/plugin/subagent.js +179 -179
  605. package/dist/tool/plugin/webfetch.js +104 -104
  606. package/dist/tool/plugin/websearch.js +106 -106
  607. package/dist/tool/plugin/write.js +111 -111
  608. package/dist/tool/read-filesystem.js +95 -95
  609. package/dist/tool/runtime.js +2 -2
  610. package/dist/tool-output.js +5 -5
  611. package/dist/tool.js +117 -117
  612. package/dist/types/session/model-request.d.ts +1 -1
  613. package/dist/types/skill.d.ts +1 -1
  614. package/dist/types/state.d.ts +4 -0
  615. package/dist/util/array.js +1 -1
  616. package/dist/util/error.js +2 -2
  617. package/dist/util/identifier.js +1 -1
  618. package/dist/util/iife.js +2 -2
  619. package/dist/util/lazy.js +2 -2
  620. package/dist/util/process-lock-ffi.bun.js +1 -1
  621. package/dist/util/process-lock-ffi.node.js +1 -1
  622. package/dist/util/process-lock-ffi.workerd.js +1 -1
  623. package/dist/util/process-lock.js +2 -3
  624. package/dist/util/slug.js +2 -2
  625. package/dist/util/token.js +2 -2
  626. package/dist/util/which.js +2 -2
  627. package/dist/util/wildcard.js +2 -2
  628. package/dist/v1/config/agent.js +4 -4
  629. package/dist/v1/config/attachment.js +3 -3
  630. package/dist/v1/config/command.js +2 -2
  631. package/dist/v1/config/config.js +15 -15
  632. package/dist/v1/config/error.js +3 -3
  633. package/dist/v1/config/formatter.js +2 -2
  634. package/dist/v1/config/layout.js +2 -2
  635. package/dist/v1/config/lsp.js +2 -2
  636. package/dist/v1/config/mcp.js +3 -3
  637. package/dist/v1/config/migrate.js +19 -19
  638. package/dist/v1/config/permission.js +2 -2
  639. package/dist/v1/config/plugin.js +2 -2
  640. package/dist/v1/config/provider-options.js +2 -2
  641. package/dist/v1/config/provider.js +3 -3
  642. package/dist/v1/config/server.js +3 -3
  643. package/dist/v1/config/skills.js +2 -2
  644. package/dist/v1/permission.js +1 -1
  645. package/dist/vcs/git.js +3 -3
  646. package/dist/vcs/hg.js +3 -3
  647. package/dist/vcs/patch.js +2 -2
  648. package/dist/vcs.js +84 -84
  649. package/dist/websearch.js +75 -75
  650. package/dist/wellknown/plugin.js +75 -75
  651. package/dist/wellknown.js +74 -74
  652. package/dist/workspace/driver.js +2 -2
  653. package/dist/workspace/sql.js +2 -2
  654. package/dist/workspace.js +71 -71
  655. package/dist/worktree/directory.js +3 -3
  656. package/dist/worktree/git.js +7 -7
  657. package/dist/worktree/sql.js +6 -6
  658. package/dist/worktree.js +84 -84
  659. package/package.json +8 -8
  660. package/dist/chunks/model-resolver-1xksxgzs.js +0 -24
  661. package/dist/chunks/model-resolver-52jzav25.js +0 -13
  662. package/dist/chunks/model-resolver-93qdgxxd.js +0 -30
  663. package/dist/chunks/model-resolver-vxz5qdmp.js +0 -31
  664. package/dist/session/model-headers.js +0 -11
  665. package/dist/session/model-hook.js +0 -11
  666. package/dist/session/model-http.js +0 -11
  667. package/dist/session/prompt-cache-key.js +0 -10
  668. package/dist/types/session/model-headers.d.ts +0 -12
  669. package/dist/types/session/model-hook.d.ts +0 -12
  670. package/dist/types/session/model-http.d.ts +0 -11
  671. package/dist/types/session/prompt-cache-key.d.ts +0 -3
  672. /package/dist/chunks/{model-resolver-0cgt0xh2.js → file-0cgt0xh2.js} +0 -0
  673. /package/dist/chunks/{model-resolver-0f48qthw.js → file-0f48qthw.js} +0 -0
  674. /package/dist/chunks/{model-resolver-0zz82cjq.js → file-0zz82cjq.js} +0 -0
  675. /package/dist/chunks/{model-resolver-1fb7bmpf.js → file-1fb7bmpf.js} +0 -0
  676. /package/dist/chunks/{model-resolver-1wcz8fvj.js → file-1wcz8fvj.js} +0 -0
  677. /package/dist/chunks/{model-resolver-2qdx6zz3.js → file-2qdx6zz3.js} +0 -0
  678. /package/dist/chunks/{model-resolver-3c4nztf9.js → file-3c4nztf9.js} +0 -0
  679. /package/dist/chunks/{model-resolver-3g3rpp2x.js → file-3g3rpp2x.js} +0 -0
  680. /package/dist/chunks/{model-resolver-3q6gbwmd.js → file-3q6gbwmd.js} +0 -0
  681. /package/dist/chunks/{model-resolver-3w3ybtfd.js → file-3w3ybtfd.js} +0 -0
  682. /package/dist/chunks/{model-resolver-47ty4mvs.js → file-47ty4mvs.js} +0 -0
  683. /package/dist/chunks/{model-resolver-4b2tz2m9.js → file-4b2tz2m9.js} +0 -0
  684. /package/dist/chunks/{model-resolver-4zg0gww9.js → file-4zg0gww9.js} +0 -0
  685. /package/dist/chunks/{model-resolver-5a5ch9ts.js → file-5a5ch9ts.js} +0 -0
  686. /package/dist/chunks/{model-resolver-5va1yh78.js → file-5va1yh78.js} +0 -0
  687. /package/dist/chunks/{model-resolver-69qrqpw0.js → file-69qrqpw0.js} +0 -0
  688. /package/dist/chunks/{model-resolver-6yt963b8.js → file-6yt963b8.js} +0 -0
  689. /package/dist/chunks/{model-resolver-7n9qwqk4.js → file-7n9qwqk4.js} +0 -0
  690. /package/dist/chunks/{model-resolver-8nn8kqcn.js → file-8nn8kqcn.js} +0 -0
  691. /package/dist/chunks/{model-resolver-8sj3ajy5.js → file-8sj3ajy5.js} +0 -0
  692. /package/dist/chunks/{model-resolver-8w9tzfz1.js → file-8w9tzfz1.js} +0 -0
  693. /package/dist/chunks/{model-resolver-906y0b6d.js → file-906y0b6d.js} +0 -0
  694. /package/dist/chunks/{model-resolver-9dct5xhx.js → file-9dct5xhx.js} +0 -0
  695. /package/dist/chunks/{model-resolver-9sdtsapf.js → file-9sdtsapf.js} +0 -0
  696. /package/dist/chunks/{model-resolver-a02svayp.js → file-a02svayp.js} +0 -0
  697. /package/dist/chunks/{model-resolver-a83yvq99.js → file-a83yvq99.js} +0 -0
  698. /package/dist/chunks/{model-resolver-aqg9wnx6.js → file-aqg9wnx6.js} +0 -0
  699. /package/dist/chunks/{model-resolver-ayevdmef.js → file-ayevdmef.js} +0 -0
  700. /package/dist/chunks/{model-resolver-b02txbh8.js → file-b02txbh8.js} +0 -0
  701. /package/dist/chunks/{model-resolver-bbqs2y60.js → file-bbqs2y60.js} +0 -0
  702. /package/dist/chunks/{model-resolver-brsh5f65.js → file-brsh5f65.js} +0 -0
  703. /package/dist/chunks/{model-resolver-bxdhjb3y.js → file-bxdhjb3y.js} +0 -0
  704. /package/dist/chunks/{model-resolver-c77ad0vh.js → file-c77ad0vh.js} +0 -0
  705. /package/dist/chunks/{model-resolver-cm67rqy2.js → file-cm67rqy2.js} +0 -0
  706. /package/dist/chunks/{model-resolver-dbah77c1.js → file-dbah77c1.js} +0 -0
  707. /package/dist/chunks/{model-resolver-df3v2q6j.js → file-df3v2q6j.js} +0 -0
  708. /package/dist/chunks/{model-resolver-dhcq6c44.js → file-dhcq6c44.js} +0 -0
  709. /package/dist/chunks/{model-resolver-dht5baf0.js → file-dht5baf0.js} +0 -0
  710. /package/dist/chunks/{model-resolver-dkmkay92.js → file-dkmkay92.js} +0 -0
  711. /package/dist/chunks/{model-resolver-ecxv0vtt.js → file-ecxv0vtt.js} +0 -0
  712. /package/dist/chunks/{model-resolver-ehj9csmv.js → file-ehj9csmv.js} +0 -0
  713. /package/dist/chunks/{model-resolver-em6xpscd.js → file-em6xpscd.js} +0 -0
  714. /package/dist/chunks/{model-resolver-emmqknsm.js → file-emmqknsm.js} +0 -0
  715. /package/dist/chunks/{model-resolver-ezs3tagn.js → file-ezs3tagn.js} +0 -0
  716. /package/dist/chunks/{model-resolver-f14r7hfz.js → file-f14r7hfz.js} +0 -0
  717. /package/dist/chunks/{model-resolver-f4cp4g4a.js → file-f4cp4g4a.js} +0 -0
  718. /package/dist/chunks/{model-resolver-f84sxdqn.js → file-f84sxdqn.js} +0 -0
  719. /package/dist/chunks/{model-resolver-faypg4r1.js → file-faypg4r1.js} +0 -0
  720. /package/dist/chunks/{model-resolver-gd5xeqc2.js → file-gd5xeqc2.js} +0 -0
  721. /package/dist/chunks/{model-resolver-ghm4673n.js → file-ghm4673n.js} +0 -0
  722. /package/dist/chunks/{model-resolver-ghwjy7my.js → file-ghwjy7my.js} +0 -0
  723. /package/dist/chunks/{model-resolver-gy500k2r.js → file-gy500k2r.js} +0 -0
  724. /package/dist/chunks/{model-resolver-hzeg9cfr.js → file-hzeg9cfr.js} +0 -0
  725. /package/dist/chunks/{model-resolver-j07kk359.js → file-j07kk359.js} +0 -0
  726. /package/dist/chunks/{model-resolver-jve7t217.js → file-jve7t217.js} +0 -0
  727. /package/dist/chunks/{model-resolver-kpdbz7gn.js → file-kpdbz7gn.js} +0 -0
  728. /package/dist/chunks/{model-resolver-kxy11nzk.js → file-kxy11nzk.js} +0 -0
  729. /package/dist/chunks/{model-resolver-kyyqvx4s.js → file-kyyqvx4s.js} +0 -0
  730. /package/dist/chunks/{model-resolver-m8cbvarh.js → file-m8cbvarh.js} +0 -0
  731. /package/dist/chunks/{model-resolver-ma07p6tt.js → file-ma07p6tt.js} +0 -0
  732. /package/dist/chunks/{model-resolver-ma60vzgv.js → file-ma60vzgv.js} +0 -0
  733. /package/dist/chunks/{model-resolver-n3m50c2t.js → file-n3m50c2t.js} +0 -0
  734. /package/dist/chunks/{model-resolver-nkm1m8dz.js → file-nkm1m8dz.js} +0 -0
  735. /package/dist/chunks/{model-resolver-nsc0c3zb.js → file-nsc0c3zb.js} +0 -0
  736. /package/dist/chunks/{model-resolver-qaarhjrp.js → file-qaarhjrp.js} +0 -0
  737. /package/dist/chunks/{model-resolver-qc167nrn.js → file-qc167nrn.js} +0 -0
  738. /package/dist/chunks/{model-resolver-qp95y4jb.js → file-qp95y4jb.js} +0 -0
  739. /package/dist/chunks/{model-resolver-r8f4w671.js → file-r8f4w671.js} +0 -0
  740. /package/dist/chunks/{model-resolver-rdfev9jy.js → file-rdfev9jy.js} +0 -0
  741. /package/dist/chunks/{model-resolver-rvfvac9x.js → file-rvfvac9x.js} +0 -0
  742. /package/dist/chunks/{model-resolver-s7whb9gt.js → file-s7whb9gt.js} +0 -0
  743. /package/dist/chunks/{model-resolver-se76j685.js → file-se76j685.js} +0 -0
  744. /package/dist/chunks/{model-resolver-sem2g21k.js → file-sem2g21k.js} +0 -0
  745. /package/dist/chunks/{model-resolver-tmb1f636.js → file-tmb1f636.js} +0 -0
  746. /package/dist/chunks/{model-resolver-ttxf0gsy.js → file-ttxf0gsy.js} +0 -0
  747. /package/dist/chunks/{model-resolver-tvmhrvfj.js → file-tvmhrvfj.js} +0 -0
  748. /package/dist/chunks/{model-resolver-v2adqbbe.js → file-v2adqbbe.js} +0 -0
  749. /package/dist/chunks/{model-resolver-vkvb1sb3.js → file-vkvb1sb3.js} +0 -0
  750. /package/dist/chunks/{model-resolver-wj4sxzqa.js → file-wj4sxzqa.js} +0 -0
  751. /package/dist/chunks/{model-resolver-wwntjmk1.js → file-wwntjmk1.js} +0 -0
  752. /package/dist/chunks/{model-resolver-wyqjaaa5.js → file-wyqjaaa5.js} +0 -0
  753. /package/dist/chunks/{model-resolver-x4q807cx.js → file-x4q807cx.js} +0 -0
  754. /package/dist/chunks/{model-resolver-yrqrg4vp.js → file-yrqrg4vp.js} +0 -0
  755. /package/dist/chunks/{model-resolver-z47nswr2.js → file-z47nswr2.js} +0 -0
  756. /package/dist/chunks/{model-resolver-zsf8rs93.js → file-zsf8rs93.js} +0 -0
@@ -1,17 +1,17 @@
1
1
  import {
2
2
  EventSequenceTable,
3
3
  EventTable
4
- } from "./model-resolver-zsf8rs93.js";
4
+ } from "./file-zsf8rs93.js";
5
5
  import {
6
6
  exports_database
7
- } from "./model-resolver-137f9dhc.js";
7
+ } from "./file-yk0k0x3a.js";
8
8
  import {
9
9
  exports_keyed_mutex
10
- } from "./model-resolver-0kvmztkf.js";
10
+ } from "./file-0kvmztkf.js";
11
11
  import {
12
12
  __export,
13
13
  __require
14
- } from "./model-resolver-rvfvac9x.js";
14
+ } from "./file-rvfvac9x.js";
15
15
 
16
16
  // src/bus.ts
17
17
  var exports_bus = {};
@@ -108,7 +108,7 @@ function configured(options) {
108
108
  }));
109
109
  function commitDurableEvent(definition, event, input, commit) {
110
110
  return Effect.gen(function* () {
111
- const durable2 = definition?.durable;
111
+ const durable2 = definition.durable;
112
112
  if (durable2) {
113
113
  const aggregateID = event.data[durable2.aggregate];
114
114
  if (typeof aggregateID !== "string") {
@@ -208,12 +208,12 @@ function configured(options) {
208
208
  }
209
209
  function publishEvent(definition, event, commit) {
210
210
  return Effect.gen(function* () {
211
- if (!definition?.durable && commit)
211
+ if (!definition.durable && commit)
212
212
  return yield* Effect.die(new InvalidDurableEventError({
213
213
  type: event.type,
214
214
  message: "Local commit hooks require a durable event"
215
215
  }));
216
- if (definition?.durable) {
216
+ if (definition.durable) {
217
217
  const aggregateID = event.data[definition.durable.aggregate];
218
218
  if (typeof aggregateID !== "string")
219
219
  return yield* commitDurableEvent(definition, event, undefined, commit).pipe(Effect.as(event));
@@ -351,30 +351,28 @@ function configured(options) {
351
351
  function replay(event, options2) {
352
352
  return Effect.gen(function* () {
353
353
  const definition = Durable.get(event.type);
354
- if (!definition?.durable) {
355
- yield* Effect.die(new InvalidDurableEventError({ type: event.type, message: `Unknown durable event type ${event.type}` }));
356
- } else {
357
- yield* durableLocks.withLock(event.aggregateID)(Effect.gen(function* () {
358
- const payload = {
359
- id: event.id,
360
- created: event.created ?? 0,
361
- type: definition.type,
362
- data: Schema.decodeUnknownSync(definition.data)(event.data)
363
- };
364
- const committed = yield* commitDurableEvent(definition, payload, {
365
- seq: event.seq,
366
- aggregateID: event.aggregateID,
367
- ownerID: options2?.ownerID,
368
- strictOwner: options2?.strictOwner
369
- });
370
- if (committed && options2?.publish) {
371
- yield* notify({
372
- ...payload,
373
- durable: envelope(committed.aggregateID, committed.seq, definition.durable.version)
374
- }, true);
375
- }
376
- }));
377
- }
354
+ if (!definition?.durable)
355
+ return yield* Effect.die(new InvalidDurableEventError({ type: event.type, message: `Unknown durable event type ${event.type}` }));
356
+ yield* durableLocks.withLock(event.aggregateID)(Effect.gen(function* () {
357
+ const payload = {
358
+ id: event.id,
359
+ created: event.created ?? 0,
360
+ type: definition.type,
361
+ data: Schema.decodeUnknownSync(definition.data)(event.data)
362
+ };
363
+ const committed = yield* commitDurableEvent(definition, payload, {
364
+ seq: event.seq,
365
+ aggregateID: event.aggregateID,
366
+ ownerID: options2?.ownerID,
367
+ strictOwner: options2?.strictOwner
368
+ });
369
+ if (committed && options2?.publish) {
370
+ yield* notify({
371
+ ...payload,
372
+ durable: envelope(committed.aggregateID, committed.seq, definition.durable.version)
373
+ }, true);
374
+ }
375
+ }));
378
376
  });
379
377
  }
380
378
  function remove(aggregateID) {
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  __export
3
- } from "./model-resolver-rvfvac9x.js";
3
+ } from "./file-rvfvac9x.js";
4
4
 
5
5
  // src/plugin/system-prompt.ts
6
6
  var exports_system_prompt = {};
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  __export
3
- } from "./model-resolver-rvfvac9x.js";
3
+ } from "./file-rvfvac9x.js";
4
4
 
5
5
  // src/oauth/page.ts
6
6
  var exports_page = {};
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  __export
3
- } from "./model-resolver-rvfvac9x.js";
3
+ } from "./file-rvfvac9x.js";
4
4
 
5
5
  // src/config/markdown.ts
6
6
  var exports_markdown = {};
@@ -1,10 +1,10 @@
1
1
  import {
2
2
  absoluteArrayColumn,
3
3
  absoluteColumn
4
- } from "./model-resolver-zbqqnp0n.js";
4
+ } from "./file-zbqqnp0n.js";
5
5
  import {
6
6
  Timestamps
7
- } from "./model-resolver-sem2g21k.js";
7
+ } from "./file-sem2g21k.js";
8
8
 
9
9
  // src/project/sql.ts
10
10
  import { isNotNull, isNull, ne, or } from "drizzle-orm";
@@ -1,27 +1,27 @@
1
- import {
2
- exports_saved
3
- } from "./model-resolver-h976ggx4.js";
4
1
  import {
5
2
  exports_store
6
- } from "./model-resolver-q2q77ge5.js";
3
+ } from "./file-n8dt05yf.js";
7
4
  import {
8
5
  exports_error
9
- } from "./model-resolver-p27xxkqg.js";
6
+ } from "./file-p27xxkqg.js";
7
+ import {
8
+ exports_saved
9
+ } from "./file-t052mhmz.js";
10
10
  import {
11
11
  exports_wildcard
12
- } from "./model-resolver-y67x6rf6.js";
12
+ } from "./file-y67x6rf6.js";
13
13
  import {
14
14
  exports_agent
15
- } from "./model-resolver-j6tb3c1b.js";
15
+ } from "./file-mfab8mqn.js";
16
16
  import {
17
17
  exports_location
18
- } from "./model-resolver-90v8ky4k.js";
18
+ } from "./file-aznsy8z6.js";
19
19
  import {
20
20
  exports_bus
21
- } from "./model-resolver-kr2xh7a3.js";
21
+ } from "./file-7cx2sxpa.js";
22
22
  import {
23
23
  __export
24
- } from "./model-resolver-rvfvac9x.js";
24
+ } from "./file-rvfvac9x.js";
25
25
 
26
26
  // src/permission.ts
27
27
  var exports_permission = {};
@@ -252,11 +252,10 @@ var layer = Layer.effect(Service, Effect.gen(function* () {
252
252
  return;
253
253
  const rememberedRules = yield* savedRules();
254
254
  for (const [id, item] of pending) {
255
- const input2 = { ...item.request };
256
255
  const rules = yield* configured(item.request.sessionID, item.agent).pipe(Effect.catchTag("Session.NotFoundError", () => Effect.succeed(undefined)));
257
256
  if (!rules)
258
257
  continue;
259
- if (denied(input2, rules))
258
+ if (denied(item.request, rules))
260
259
  continue;
261
260
  const effective = [...rules, ...rememberedRules];
262
261
  if (!item.request.resources.every((resource) => evaluate(item.request.action, resource, effective).effect === "allow"))
@@ -1,12 +1,12 @@
1
1
  import {
2
2
  exports_app
3
- } from "./model-resolver-50jxp3hw.js";
3
+ } from "./file-50jxp3hw.js";
4
4
  import {
5
5
  exports_provider
6
- } from "./model-resolver-djkt4gex.js";
6
+ } from "./file-djkt4gex.js";
7
7
  import {
8
8
  __require
9
- } from "./model-resolver-rvfvac9x.js";
9
+ } from "./file-rvfvac9x.js";
10
10
 
11
11
  // src/plugin/provider/gitlab.ts
12
12
  import os from "os";
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  AbsolutePath
3
- } from "./model-resolver-j07kk359.js";
3
+ } from "./file-j07kk359.js";
4
4
  import {
5
5
  __export
6
- } from "./model-resolver-rvfvac9x.js";
6
+ } from "./file-rvfvac9x.js";
7
7
 
8
8
  // src/project/schema.ts
9
9
  var exports_schema = {};
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  exports_message
3
- } from "./model-resolver-25pxtba7.js";
3
+ } from "./file-25pxtba7.js";
4
4
  import {
5
5
  __export
6
- } from "./model-resolver-rvfvac9x.js";
6
+ } from "./file-rvfvac9x.js";
7
7
 
8
8
  // src/session/message-updater.ts
9
9
  var exports_message_updater = {};
@@ -35,46 +35,40 @@ function update(adapter, event) {
35
35
  const project = pipe(Match.type(), Match.discriminatorsExhaustive("type")({
36
36
  "session.created": () => Effect.void,
37
37
  "session.usage.recorded": () => Effect.void,
38
- "session.agent.selected": (event2) => {
39
- return Effect.gen(function* () {
40
- const previous = event2.data.previous ?? (yield* adapter.getAgent());
41
- yield* adapter.appendMessage(exports_message.AgentSelected.make({
42
- id: exports_message.ID.fromEvent(event2.id),
43
- type: "agent-switched",
44
- metadata: event2.metadata,
45
- agent: event2.data.agent,
46
- previous,
47
- time: { created }
48
- }));
49
- });
50
- },
51
- "session.model.selected": (event2) => {
52
- return Effect.gen(function* () {
53
- const previous = event2.data.previous ?? (yield* adapter.getModel());
54
- yield* adapter.appendMessage(exports_message.ModelSelected.make({
55
- id: exports_message.ID.fromEvent(event2.id),
56
- type: "model-switched",
57
- metadata: event2.metadata,
58
- model: event2.data.model,
59
- previous,
60
- time: { created }
61
- }));
62
- });
63
- },
64
- "session.moved": (event2) => {
65
- return Effect.gen(function* () {
66
- yield* adapter.appendMessage(exports_message.LocationSwitched.make({
67
- id: exports_message.ID.fromEvent(event2.id),
68
- type: "location-switched",
69
- metadata: event2.metadata,
70
- location: event2.data.location,
71
- projectID: event2.data.projectID,
72
- subpath: event2.data.subpath,
73
- previous: yield* adapter.getLocation(),
74
- time: { created }
75
- }));
76
- });
77
- },
38
+ "session.agent.selected": (event2) => Effect.gen(function* () {
39
+ const previous = event2.data.previous ?? (yield* adapter.getAgent());
40
+ yield* adapter.appendMessage(exports_message.AgentSelected.make({
41
+ id: exports_message.ID.fromEvent(event2.id),
42
+ type: "agent-switched",
43
+ metadata: event2.metadata,
44
+ agent: event2.data.agent,
45
+ previous,
46
+ time: { created }
47
+ }));
48
+ }),
49
+ "session.model.selected": (event2) => Effect.gen(function* () {
50
+ const previous = event2.data.previous ?? (yield* adapter.getModel());
51
+ yield* adapter.appendMessage(exports_message.ModelSelected.make({
52
+ id: exports_message.ID.fromEvent(event2.id),
53
+ type: "model-switched",
54
+ metadata: event2.metadata,
55
+ model: event2.data.model,
56
+ previous,
57
+ time: { created }
58
+ }));
59
+ }),
60
+ "session.moved": (event2) => Effect.gen(function* () {
61
+ yield* adapter.appendMessage(exports_message.LocationSwitched.make({
62
+ id: exports_message.ID.fromEvent(event2.id),
63
+ type: "location-switched",
64
+ metadata: event2.metadata,
65
+ location: event2.data.location,
66
+ projectID: event2.data.projectID,
67
+ subpath: event2.data.subpath,
68
+ previous: yield* adapter.getLocation(),
69
+ time: { created }
70
+ }));
71
+ }),
78
72
  "session.renamed": () => Effect.void,
79
73
  "session.deleted": () => Effect.void,
80
74
  "session.forked": () => Effect.void,
@@ -130,56 +124,52 @@ function update(adapter, event) {
130
124
  time: { created }
131
125
  }));
132
126
  },
133
- "session.shell.ended": (event2) => {
134
- return Effect.gen(function* () {
135
- const currentShell = yield* adapter.getShell(event2.data.shell.id);
136
- if (currentShell) {
137
- yield* adapter.updateShell(produce(currentShell, (draft) => {
138
- draft.status = event2.data.shell.status;
139
- draft.exit = event2.data.shell.exit;
140
- draft.output = event2.data.output;
141
- draft.time.completed = created;
142
- }));
143
- }
144
- });
145
- },
146
- "session.step.started": (event2) => {
147
- return Effect.gen(function* () {
148
- const existing = yield* adapter.getAssistant(event2.data.assistantMessageID);
149
- if (existing) {
150
- yield* adapter.updateAssistant(produce(existing, (draft) => {
151
- draft.agent = event2.data.agent;
152
- draft.model = castDraft(event2.data.model);
153
- draft.retry = undefined;
154
- draft.error = undefined;
155
- draft.finish = undefined;
156
- draft.rawFinish = undefined;
157
- draft.providerState = undefined;
158
- draft.time.completed = undefined;
159
- if (event2.data.snapshot)
160
- draft.snapshot = { ...draft.snapshot, start: event2.data.snapshot };
161
- }));
162
- return;
163
- }
164
- const currentAssistant = yield* adapter.getCurrentAssistant();
165
- if (currentAssistant) {
166
- yield* adapter.updateAssistant(produce(currentAssistant, (draft) => {
167
- draft.retry = undefined;
168
- draft.time.completed = created;
169
- }));
170
- }
171
- yield* adapter.appendMessage(exports_message.Assistant.make({
172
- id: event2.data.assistantMessageID,
173
- type: "assistant",
174
- agent: event2.data.agent,
175
- model: event2.data.model,
176
- metadata: event2.metadata,
177
- time: { created },
178
- content: [],
179
- snapshot: event2.data.snapshot ? { start: event2.data.snapshot } : undefined
127
+ "session.shell.ended": (event2) => Effect.gen(function* () {
128
+ const currentShell = yield* adapter.getShell(event2.data.shell.id);
129
+ if (currentShell) {
130
+ yield* adapter.updateShell(produce(currentShell, (draft) => {
131
+ draft.status = event2.data.shell.status;
132
+ draft.exit = event2.data.shell.exit;
133
+ draft.output = event2.data.output;
134
+ draft.time.completed = created;
180
135
  }));
181
- });
182
- },
136
+ }
137
+ }),
138
+ "session.step.started": (event2) => Effect.gen(function* () {
139
+ const existing = yield* adapter.getAssistant(event2.data.assistantMessageID);
140
+ if (existing) {
141
+ yield* adapter.updateAssistant(produce(existing, (draft) => {
142
+ draft.agent = event2.data.agent;
143
+ draft.model = castDraft(event2.data.model);
144
+ draft.retry = undefined;
145
+ draft.error = undefined;
146
+ draft.finish = undefined;
147
+ draft.rawFinish = undefined;
148
+ draft.providerState = undefined;
149
+ draft.time.completed = undefined;
150
+ if (event2.data.snapshot)
151
+ draft.snapshot = { ...draft.snapshot, start: event2.data.snapshot };
152
+ }));
153
+ return;
154
+ }
155
+ const currentAssistant = yield* adapter.getCurrentAssistant();
156
+ if (currentAssistant) {
157
+ yield* adapter.updateAssistant(produce(currentAssistant, (draft) => {
158
+ draft.retry = undefined;
159
+ draft.time.completed = created;
160
+ }));
161
+ }
162
+ yield* adapter.appendMessage(exports_message.Assistant.make({
163
+ id: event2.data.assistantMessageID,
164
+ type: "assistant",
165
+ agent: event2.data.agent,
166
+ model: event2.data.model,
167
+ metadata: event2.metadata,
168
+ time: { created },
169
+ content: [],
170
+ snapshot: event2.data.snapshot ? { start: event2.data.snapshot } : undefined
171
+ }));
172
+ }),
183
173
  "session.step.ended": (event2) => {
184
174
  return updateOwnedAssistant(event2.data.assistantMessageID, (draft) => {
185
175
  draft.time.completed = created;
@@ -336,31 +326,29 @@ function update(adapter, event) {
336
326
  recent: event2.data.recent ?? "",
337
327
  time: { created }
338
328
  })),
339
- "session.compaction.ended": (event2) => {
340
- return Effect.gen(function* () {
341
- const current = yield* adapter.getCompaction();
342
- if (current?.status === "running") {
343
- yield* adapter.updateCompaction({
344
- ...current,
345
- status: "completed",
346
- reason: event2.data.reason,
347
- summary: event2.data.text,
348
- recent: event2.data.recent
349
- });
350
- return;
351
- }
352
- yield* adapter.appendMessage(exports_message.Compaction.make({
353
- id: exports_message.ID.fromEvent(event2.id),
354
- type: "compaction",
329
+ "session.compaction.ended": (event2) => Effect.gen(function* () {
330
+ const current = yield* adapter.getCompaction();
331
+ if (current?.status === "running") {
332
+ yield* adapter.updateCompaction({
333
+ ...current,
355
334
  status: "completed",
356
- metadata: event2.metadata,
357
335
  reason: event2.data.reason,
358
336
  summary: event2.data.text,
359
- recent: event2.data.recent,
360
- time: { created }
361
- }));
362
- });
363
- },
337
+ recent: event2.data.recent
338
+ });
339
+ return;
340
+ }
341
+ yield* adapter.appendMessage(exports_message.Compaction.make({
342
+ id: exports_message.ID.fromEvent(event2.id),
343
+ type: "compaction",
344
+ status: "completed",
345
+ metadata: event2.metadata,
346
+ reason: event2.data.reason,
347
+ summary: event2.data.text,
348
+ recent: event2.data.recent,
349
+ time: { created }
350
+ }));
351
+ }),
364
352
  "session.compaction.failed": (event2) => Effect.gen(function* () {
365
353
  const current = yield* adapter.getCompaction();
366
354
  const failed = exports_message.CompactionFailed.make({
@@ -1,15 +1,15 @@
1
- import {
2
- exports_app
3
- } from "./model-resolver-50jxp3hw.js";
4
- import {
5
- exports_provider
6
- } from "./model-resolver-djkt4gex.js";
7
1
  import {
8
2
  exports_integration
9
- } from "./model-resolver-kyqwzkn7.js";
3
+ } from "./file-55b6c23t.js";
10
4
  import {
11
5
  exports_credential
12
- } from "./model-resolver-d6etej9e.js";
6
+ } from "./file-00r5jg1r.js";
7
+ import {
8
+ exports_app
9
+ } from "./file-50jxp3hw.js";
10
+ import {
11
+ exports_provider
12
+ } from "./file-djkt4gex.js";
13
13
 
14
14
  // src/plugin/provider/xai.ts
15
15
  import { define } from "@opencode-ai/plugin/effect/plugin";
@@ -1,36 +1,36 @@
1
1
  import {
2
2
  exports_usage
3
- } from "./model-resolver-sw84ckhj.js";
3
+ } from "./file-sw84ckhj.js";
4
4
  import {
5
5
  exports_model_request
6
- } from "./model-resolver-bkmsv8nt.js";
6
+ } from "./file-9n44s51r.js";
7
7
  import {
8
8
  exports_token
9
- } from "./model-resolver-v972xay6.js";
9
+ } from "./file-v972xay6.js";
10
10
  import {
11
11
  toSessionError
12
- } from "./model-resolver-v8f71v7d.js";
12
+ } from "./file-r01arjwx.js";
13
13
  import {
14
14
  exports_model
15
- } from "./model-resolver-dnzpd7gt.js";
15
+ } from "./file-gxn893b1.js";
16
16
  import {
17
17
  llmClient
18
- } from "./model-resolver-g5d54sdx.js";
18
+ } from "./file-k42t1tha.js";
19
19
  import {
20
20
  SessionEvent
21
- } from "./model-resolver-a83yvq99.js";
21
+ } from "./file-a83yvq99.js";
22
22
  import {
23
23
  exports_agent
24
- } from "./model-resolver-j6tb3c1b.js";
24
+ } from "./file-mfab8mqn.js";
25
25
  import {
26
26
  exports_state
27
- } from "./model-resolver-qhdqjp31.js";
27
+ } from "./file-qhdqjp31.js";
28
28
  import {
29
29
  exports_bus
30
- } from "./model-resolver-kr2xh7a3.js";
30
+ } from "./file-7cx2sxpa.js";
31
31
  import {
32
32
  __export
33
- } from "./model-resolver-rvfvac9x.js";
33
+ } from "./file-rvfvac9x.js";
34
34
 
35
35
  // src/session/compaction.ts
36
36
  var exports_compaction = {};
@@ -186,11 +186,11 @@ var planContent = (messages, tokens) => {
186
186
  if (!selected)
187
187
  return;
188
188
  const previousSummary = messages.findLast((message) => message.type === "compaction" && message.status === "completed");
189
- const previousRecent = previousSummary?.type === "compaction" ? previousSummary.recent : "";
189
+ const previousRecent = previousSummary?.recent ?? "";
190
190
  const summarizeRecent = !previousRecent && !selected.head;
191
191
  return {
192
192
  prompt: buildPrompt({
193
- previousSummary: previousSummary?.type === "compaction" ? previousSummary.summary : undefined,
193
+ previousSummary: previousSummary?.summary,
194
194
  context: summarizeRecent ? [selected.recent] : [previousRecent, selected.head].filter(Boolean)
195
195
  }),
196
196
  recent: summarizeRecent ? "" : selected.recent
@@ -290,11 +290,10 @@ var make = (dependencies) => {
290
290
  reason: "auto",
291
291
  ...content
292
292
  });
293
- const error = { type: "compaction.unavailable", message: "Nothing to compact yet" };
294
293
  return yield* failed({
295
294
  sessionID: input.session.id,
296
295
  reason: "auto",
297
- error
296
+ error: { type: "compaction.unavailable", message: "Nothing to compact yet" }
298
297
  });
299
298
  });
300
299
  const required = (input) => {
@@ -1,33 +1,33 @@
1
1
  import {
2
2
  exports_parse
3
- } from "./model-resolver-5a2vc1wr.js";
3
+ } from "./file-fs3m2wg9.js";
4
4
  import {
5
- exports_config
6
- } from "./model-resolver-a9wfbz68.js";
5
+ exports_tool_output
6
+ } from "./file-f898gr5d.js";
7
7
  import {
8
- exports_location_mutation
9
- } from "./model-resolver-x9tyz28z.js";
8
+ exports_config
9
+ } from "./file-rvtr2n85.js";
10
10
  import {
11
11
  exports_runtime
12
- } from "./model-resolver-y89zb77g.js";
12
+ } from "./file-vtat1sa7.js";
13
13
  import {
14
- exports_permission
15
- } from "./model-resolver-5q8017ef.js";
14
+ exports_location_mutation
15
+ } from "./file-ppvgjjy9.js";
16
16
  import {
17
17
  exports_shell
18
- } from "./model-resolver-mgtsjxpx.js";
19
- import {
20
- exports_tool_output
21
- } from "./model-resolver-yw2bnxvw.js";
18
+ } from "./file-nhkb91wp.js";
22
19
  import {
23
20
  exports_environment1 as exports_environment
24
- } from "./model-resolver-yp46gk1x.js";
21
+ } from "./file-enbpgzth.js";
22
+ import {
23
+ exports_permission
24
+ } from "./file-8bd9qxsq.js";
25
25
  import {
26
26
  NonNegativeInt
27
- } from "./model-resolver-j07kk359.js";
27
+ } from "./file-j07kk359.js";
28
28
  import {
29
29
  __export
30
- } from "./model-resolver-rvfvac9x.js";
30
+ } from "./file-rvfvac9x.js";
31
31
 
32
32
  // src/tool/plugin/shell.ts
33
33
  var exports_shell2 = {};
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  __export
3
- } from "./model-resolver-rvfvac9x.js";
3
+ } from "./file-rvfvac9x.js";
4
4
 
5
5
  // src/v1/config/lsp.ts
6
6
  var exports_lsp = {};
@@ -1,13 +1,13 @@
1
1
  import {
2
2
  ProjectTable
3
- } from "./model-resolver-88jbfw8z.js";
3
+ } from "./file-88jbfw8z.js";
4
4
  import {
5
5
  directoryColumn,
6
6
  pathColumn
7
- } from "./model-resolver-zbqqnp0n.js";
7
+ } from "./file-zbqqnp0n.js";
8
8
  import {
9
9
  Timestamps
10
- } from "./model-resolver-sem2g21k.js";
10
+ } from "./file-sem2g21k.js";
11
11
 
12
12
  // src/session/sql.ts
13
13
  import { sqliteTable, text, integer, index, primaryKey, real, uniqueIndex } from "drizzle-orm/sqlite-core";
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  __export
3
- } from "./model-resolver-rvfvac9x.js";
3
+ } from "./file-rvfvac9x.js";
4
4
 
5
5
  // src/v1/config/plugin.ts
6
6
  var exports_plugin = {};