@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,13 +1,13 @@
1
- import {
2
- exports_keyed_mutex
3
- } from "./model-resolver-0kvmztkf.js";
4
1
  import {
5
2
  AbsolutePath,
6
3
  RelativePath
7
- } from "./model-resolver-j07kk359.js";
4
+ } from "./file-j07kk359.js";
5
+ import {
6
+ exports_keyed_mutex
7
+ } from "./file-0kvmztkf.js";
8
8
  import {
9
9
  __export
10
- } from "./model-resolver-rvfvac9x.js";
10
+ } from "./file-rvfvac9x.js";
11
11
 
12
12
  // src/git.ts
13
13
  var exports_git = {};
@@ -93,7 +93,9 @@ var layer = Layer.effect(Service, Effect.gen(function* () {
93
93
  const locks = exports_keyed_mutex.makeUnsafe();
94
94
  const locked = (repository, effect) => locks.withLock(repository.gitDirectory)(effect);
95
95
  const discover = Effect.fn("Git.repo.discover")(function* (input) {
96
- const dotgit = yield* fs.up({ targets: [".git"], start: input, mode: "first" }).pipe(Effect.map((matches) => matches[0]), Effect.catch(() => Effect.succeed(undefined)));
96
+ const dotgit = yield* fs.up({ targets: [".git"], start: input, mode: "first" }).pipe(Effect.map((matches) => matches[0]), Effect.orElseSucceed(() => {
97
+ return;
98
+ }));
97
99
  if (!dotgit)
98
100
  return;
99
101
  const cwd = path.dirname(dotgit);
@@ -213,12 +215,8 @@ var layer = Layer.effect(Service, Effect.gen(function* () {
213
215
  });
214
216
  });
215
217
  const create = Effect.fn("Git.repo.create")(function* (input) {
216
- yield* fs.ensureDir(input.gitDirectory).pipe(Effect.mapError((cause) => new OperationError({
217
- operation: "create",
218
- directory: input.gitDirectory,
219
- message: "Failed to create Git storage",
220
- cause
221
- })));
218
+ const operationError = (message) => (cause) => new OperationError({ operation: "create", directory: input.gitDirectory, message, cause });
219
+ yield* fs.ensureDir(input.gitDirectory).pipe(Effect.mapError(operationError("Failed to create Git storage")));
222
220
  const repository = new Repository({
223
221
  worktree: input.worktree,
224
222
  gitDirectory: input.gitDirectory,
@@ -238,28 +236,13 @@ var layer = Layer.effect(Service, Effect.gen(function* () {
238
236
  `}${snapshotConfigInclude}`, {
239
237
  flag: "a"
240
238
  });
241
- }).pipe(Effect.mapError((cause) => new OperationError({
242
- operation: "create",
243
- directory: input.gitDirectory,
244
- message: "Failed to configure Git storage",
245
- cause
246
- })));
239
+ }).pipe(Effect.mapError(operationError("Failed to configure Git storage")));
247
240
  if (!input.seed)
248
241
  return repository;
249
- yield* fs.ensureDir(path.join(input.gitDirectory, "objects", "info")).pipe(Effect.mapError((cause) => new OperationError({
250
- operation: "create",
251
- directory: input.gitDirectory,
252
- message: "Failed to configure shared Git objects",
253
- cause
254
- })));
242
+ yield* fs.ensureDir(path.join(input.gitDirectory, "objects", "info")).pipe(Effect.mapError(operationError("Failed to configure shared Git objects")));
255
243
  yield* fs.writeFileString(path.join(input.gitDirectory, "objects", "info", "alternates"), path.join(input.seed.commonDirectory, "objects") + `
256
- `).pipe(Effect.mapError((cause) => new OperationError({
257
- operation: "create",
258
- directory: input.gitDirectory,
259
- message: "Failed to configure shared Git objects",
260
- cause
261
- })));
262
- yield* fs.copyFile(path.join(input.seed.gitDirectory, "index"), path.join(input.gitDirectory, "index")).pipe(Effect.catch(() => Effect.void));
244
+ `).pipe(Effect.mapError(operationError("Failed to configure shared Git objects")));
245
+ yield* fs.copyFile(path.join(input.seed.gitDirectory, "index"), path.join(input.gitDirectory, "index")).pipe(Effect.ignore);
263
246
  return repository;
264
247
  });
265
248
  const refresh = Effect.fn("Git.index.refresh")(function* (input) {
@@ -273,10 +256,12 @@ var layer = Layer.effect(Service, Effect.gen(function* () {
273
256
  return { skipped: [] };
274
257
  const ignored2 = input.ignores ? new Set((yield* repositoryOperation("refresh", input.ignores, ["check-ignore", "--no-index", "--stdin", "-z"], {
275
258
  stdin: candidates.join("\x00") + "\x00"
276
- }).pipe(Effect.catch(() => Effect.succeed({ text: "", stderr: "" })))).text.split("\x00").filter(Boolean)) : new Set;
259
+ }).pipe(Effect.orElseSucceed(() => ({ text: "", stderr: "" })))).text.split("\x00").filter(Boolean)) : new Set;
277
260
  const allowed = candidates.filter((item) => !ignored2.has(item));
278
261
  const maximum = input.maximumUntrackedFileBytes;
279
- const skipped = maximum ? (yield* Effect.forEach(untracked.filter((item) => allowed.includes(item)), (item) => fs.stat(path.join(input.repository.worktree, item)).pipe(Effect.map((info) => info.type === "File" && Number(info.size) > maximum ? RelativePath.make(item) : undefined), Effect.catch(() => Effect.succeed(undefined))), { concurrency: 8 })).filter((item) => item !== undefined) : [];
262
+ const skipped = maximum ? (yield* Effect.forEach(untracked.filter((item) => allowed.includes(item)), (item) => fs.stat(path.join(input.repository.worktree, item)).pipe(Effect.map((info) => info.type === "File" && Number(info.size) > maximum ? RelativePath.make(item) : undefined), Effect.orElseSucceed(() => {
263
+ return;
264
+ })), { concurrency: 8 })).filter((item) => item !== undefined) : [];
280
265
  const stage = allowed.filter((item) => !skipped.includes(RelativePath.make(item)));
281
266
  const remove = [...ignored2, ...skipped];
282
267
  if (remove.length)
@@ -444,7 +429,7 @@ var layer = Layer.effect(Service, Effect.gen(function* () {
444
429
  }));
445
430
  var node = makeGlobalNode({ service: Service, layer, deps: [FSUtil.node, AppProcess.node] });
446
431
  function run(cwd, proc) {
447
- return (args) => execute(cwd, proc)(args).pipe(Effect.catch(() => Effect.succeed({ exitCode: 1, text: "", stderr: "" })));
432
+ return (args) => execute(cwd, proc)(args).pipe(Effect.orElseSucceed(() => ({ exitCode: 1, text: "", stderr: "" })));
448
433
  }
449
434
  function execute(cwd, proc) {
450
435
  return (args) => proc.run(ChildProcess.make("git", args, {
@@ -1,12 +1,12 @@
1
1
  import {
2
2
  exports_location_watcher_policy
3
- } from "./model-resolver-37e9hbzs.js";
3
+ } from "./file-37e9hbzs.js";
4
4
  import {
5
5
  exports_config
6
- } from "./model-resolver-a9wfbz68.js";
6
+ } from "./file-rvtr2n85.js";
7
7
  import {
8
8
  __export
9
- } from "./model-resolver-rvfvac9x.js";
9
+ } from "./file-rvfvac9x.js";
10
10
 
11
11
  // src/config/plugin/location-watcher.ts
12
12
  var exports_location_watcher = {};
@@ -1,12 +1,12 @@
1
1
  import {
2
2
  exports_compaction
3
- } from "./model-resolver-bkz4gk84.js";
3
+ } from "./file-989xpn0s.js";
4
4
  import {
5
5
  exports_config
6
- } from "./model-resolver-a9wfbz68.js";
6
+ } from "./file-rvtr2n85.js";
7
7
  import {
8
8
  __export
9
- } from "./model-resolver-rvfvac9x.js";
9
+ } from "./file-rvfvac9x.js";
10
10
 
11
11
  // src/config/plugin/compaction.ts
12
12
  var exports_compaction2 = {};
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  createProviderPlugin
3
- } from "./model-resolver-0zz82cjq.js";
3
+ } from "./file-0zz82cjq.js";
4
4
  import {
5
5
  __require
6
- } from "./model-resolver-rvfvac9x.js";
6
+ } from "./file-rvfvac9x.js";
7
7
 
8
8
  // src/plugin/provider/togetherai.ts
9
9
  var TogetherAIPlugin = createProviderPlugin({
@@ -4,12 +4,11 @@ import path from "path";
4
4
  function which(cmd, env, bin) {
5
5
  const base = env?.PATH ?? env?.Path ?? process.env.PATH ?? process.env.Path ?? "";
6
6
  const full = base && bin ? base + path.delimiter + bin : base || bin;
7
- const result = whichPkg.sync(cmd, {
7
+ return whichPkg.sync(cmd, {
8
8
  nothrow: true,
9
9
  path: full,
10
10
  pathExt: env?.PATHEXT ?? env?.PathExt ?? process.env.PATHEXT ?? process.env.PathExt
11
11
  });
12
- return typeof result === "string" ? result : null;
13
12
  }
14
13
 
15
14
  export { which };
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  WebSocketConstructor
3
- } from "./model-resolver-qw06pdhp.js";
3
+ } from "./file-ck5pgha0.js";
4
4
  import {
5
5
  __export
6
- } from "./model-resolver-rvfvac9x.js";
6
+ } from "./file-rvfvac9x.js";
7
7
 
8
8
  // src/effect/app-node-platform.ts
9
9
  var exports_app_node_platform = {};
@@ -1,15 +1,15 @@
1
1
  import {
2
2
  exports_permission
3
- } from "./model-resolver-5q8017ef.js";
3
+ } from "./file-8bd9qxsq.js";
4
4
  import {
5
5
  exports_state
6
- } from "./model-resolver-qhdqjp31.js";
6
+ } from "./file-qhdqjp31.js";
7
7
  import {
8
8
  exports_bus
9
- } from "./model-resolver-kr2xh7a3.js";
9
+ } from "./file-7cx2sxpa.js";
10
10
  import {
11
11
  __export
12
- } from "./model-resolver-rvfvac9x.js";
12
+ } from "./file-rvfvac9x.js";
13
13
 
14
14
  // src/skill.ts
15
15
  var exports_skill = {};
@@ -1,21 +1,21 @@
1
- import {
2
- exports_model
3
- } from "./model-resolver-1a3a2s70.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";
4
+ import {
5
+ exports_model
6
+ } from "./file-1a3a2s70.js";
10
7
  import {
11
8
  exports_state
12
- } from "./model-resolver-qhdqjp31.js";
9
+ } from "./file-qhdqjp31.js";
10
+ import {
11
+ exports_provider
12
+ } from "./file-djkt4gex.js";
13
13
  import {
14
14
  exports_bus
15
- } from "./model-resolver-kr2xh7a3.js";
15
+ } from "./file-7cx2sxpa.js";
16
16
  import {
17
17
  __export
18
- } from "./model-resolver-rvfvac9x.js";
18
+ } from "./file-rvfvac9x.js";
19
19
 
20
20
  // src/catalog.ts
21
21
  var exports_catalog = {};
@@ -107,7 +107,7 @@ var layer = Layer.effect(Service, Effect.gen(function* () {
107
107
  };
108
108
  return result2;
109
109
  },
110
- finalize: Effect.fn("Catalog.finalize")(function* (catalog) {
110
+ finalize: Effect.fn("Catalog.finalize")(function* () {
111
111
  yield* bus.publish(Catalog.Event.Updated, {});
112
112
  })
113
113
  });
@@ -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/filesystem/protected.ts
6
6
  var exports_protected = {};
@@ -1,24 +1,24 @@
1
1
  import {
2
2
  exports_markdown
3
- } from "./model-resolver-7wcmqxrc.js";
3
+ } from "./file-7wcmqxrc.js";
4
4
  import {
5
5
  exports_config
6
- } from "./model-resolver-a9wfbz68.js";
6
+ } from "./file-rvtr2n85.js";
7
7
  import {
8
8
  exports_migrate
9
- } from "./model-resolver-epzxjdf4.js";
9
+ } from "./file-epzxjdf4.js";
10
10
  import {
11
11
  exports_agent as exports_agent2
12
- } from "./model-resolver-4s2xwh5d.js";
12
+ } from "./file-4s2xwh5d.js";
13
13
  import {
14
14
  exports_agent
15
- } from "./model-resolver-j6tb3c1b.js";
15
+ } from "./file-mfab8mqn.js";
16
16
  import {
17
17
  AbsolutePath
18
- } from "./model-resolver-j07kk359.js";
18
+ } from "./file-j07kk359.js";
19
19
  import {
20
20
  __export
21
- } from "./model-resolver-rvfvac9x.js";
21
+ } from "./file-rvfvac9x.js";
22
22
 
23
23
  // src/config/plugin/agent.ts
24
24
  var exports_agent3 = {};
@@ -61,17 +61,16 @@ var Plugin = define({
61
61
  const config = yield* exports_config.Service;
62
62
  const fs = yield* FSUtil.Service;
63
63
  const global = yield* Global.Service;
64
+ const loadEntry = Effect.fnUntraced(function* (entry) {
65
+ if (entry.type === "document")
66
+ return [entry];
67
+ if (entry.type !== "directory")
68
+ return [];
69
+ const files = yield* discover(fs, entry.path);
70
+ return yield* Effect.forEach(files, (file) => fs.readFileStringSafe(file.filepath).pipe(Effect.map((content) => content ? decode(file, content) : undefined), Effect.catch(() => Effect.succeed(undefined)))).pipe(Effect.map((documents) => documents.filter((document) => document !== undefined)));
71
+ });
64
72
  const load = Effect.fn("ConfigAgentPlugin.load")(function* () {
65
- return yield* Effect.forEach(yield* config.entries(), (entry) => {
66
- if (entry.type === "document")
67
- return Effect.succeed([entry]);
68
- if (entry.type !== "directory")
69
- return Effect.succeed([]);
70
- return Effect.gen(function* () {
71
- const files = yield* discover(fs, entry.path);
72
- return yield* Effect.forEach(files, (file) => fs.readFileStringSafe(file.filepath).pipe(Effect.map((content) => content ? decode(file, content) : undefined), Effect.catch(() => Effect.succeed(undefined)))).pipe(Effect.map((documents) => documents.filter((document) => document !== undefined)));
73
- });
74
- }).pipe(Effect.map((documents) => documents.flat()));
73
+ return yield* Effect.forEach(yield* config.entries(), loadEntry).pipe(Effect.map((documents) => documents.flat()));
75
74
  });
76
75
  const loaded = { documents: [] };
77
76
  const reload = load().pipe(Effect.tap((documents) => Effect.sync(() => loaded.documents = documents)), Effect.andThen(ctx.agent.reload()));
@@ -139,9 +138,7 @@ function isPathAction(action) {
139
138
  return pathActions.some((item) => item === action);
140
139
  }
141
140
  function expandHome(resource, home) {
142
- if (resource === "~")
143
- return home;
144
- if (resource === "$HOME")
141
+ if (resource === "~" || resource === "$HOME")
145
142
  return home;
146
143
  const relative = resource.startsWith("~/") ? resource.slice(2) : resource.startsWith("$HOME/") || resource.startsWith("$HOME\\") ? resource.slice(6) : undefined;
147
144
  if (relative !== undefined)
@@ -1,27 +1,27 @@
1
1
  import {
2
2
  fileDiff
3
- } from "./model-resolver-c77ad0vh.js";
3
+ } from "./file-c77ad0vh.js";
4
4
  import {
5
5
  exports_location_mutation
6
- } from "./model-resolver-x9tyz28z.js";
6
+ } from "./file-ppvgjjy9.js";
7
7
  import {
8
8
  exports_file_mutation
9
- } from "./model-resolver-b8g8v0pk.js";
9
+ } from "./file-4xc5yqmv.js";
10
10
  import {
11
- exports_permission
12
- } from "./model-resolver-5q8017ef.js";
11
+ exports_environment1 as exports_environment
12
+ } from "./file-enbpgzth.js";
13
13
  import {
14
14
  exports_formatter
15
- } from "./model-resolver-31dgdvcs.js";
15
+ } from "./file-2ah898sw.js";
16
16
  import {
17
- exports_environment1 as exports_environment
18
- } from "./model-resolver-yp46gk1x.js";
17
+ exports_permission
18
+ } from "./file-8bd9qxsq.js";
19
19
  import {
20
20
  exports_location
21
- } from "./model-resolver-90v8ky4k.js";
21
+ } from "./file-aznsy8z6.js";
22
22
  import {
23
23
  __export
24
- } from "./model-resolver-rvfvac9x.js";
24
+ } from "./file-rvfvac9x.js";
25
25
 
26
26
  // src/tool/plugin/edit.ts
27
27
  var exports_edit = {};
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  exports_provider
3
- } from "./model-resolver-djkt4gex.js";
3
+ } from "./file-djkt4gex.js";
4
4
  import {
5
5
  __require
6
- } from "./model-resolver-rvfvac9x.js";
6
+ } from "./file-rvfvac9x.js";
7
7
 
8
8
  // src/plugin/provider/snowflake-cortex.ts
9
9
  import { Effect } from "effect";
@@ -1,15 +1,15 @@
1
+ import {
2
+ exports_environment1 as exports_environment
3
+ } from "./file-enbpgzth.js";
1
4
  import {
2
5
  exports_permission
3
- } from "./model-resolver-5q8017ef.js";
6
+ } from "./file-8bd9qxsq.js";
4
7
  import {
5
8
  exports_agent
6
- } from "./model-resolver-j6tb3c1b.js";
7
- import {
8
- exports_environment1 as exports_environment
9
- } from "./model-resolver-yp46gk1x.js";
9
+ } from "./file-mfab8mqn.js";
10
10
  import {
11
11
  __export
12
- } from "./model-resolver-rvfvac9x.js";
12
+ } from "./file-rvfvac9x.js";
13
13
 
14
14
  // src/plugin/plan.ts
15
15
  var exports_plan = {};
@@ -1,40 +1,40 @@
1
1
  import {
2
2
  exports_git as exports_git2
3
- } from "./model-resolver-0hpzqe41.js";
3
+ } from "./file-1x3tkbg3.js";
4
4
  import {
5
5
  DirectoryUnavailableError,
6
6
  canonical
7
- } from "./model-resolver-mnb85w6b.js";
7
+ } from "./file-mnb85w6b.js";
8
8
  import {
9
9
  Slug
10
- } from "./model-resolver-df3v2q6j.js";
10
+ } from "./file-df3v2q6j.js";
11
11
  import {
12
12
  exports_location
13
- } from "./model-resolver-90v8ky4k.js";
13
+ } from "./file-aznsy8z6.js";
14
14
  import {
15
15
  WorktreeTable
16
- } from "./model-resolver-mh28new4.js";
16
+ } from "./file-mh28new4.js";
17
17
  import {
18
18
  exports_schema
19
- } from "./model-resolver-8v47shgf.js";
19
+ } from "./file-8v47shgf.js";
20
20
  import {
21
21
  ProjectTable
22
- } from "./model-resolver-88jbfw8z.js";
22
+ } from "./file-88jbfw8z.js";
23
23
  import {
24
24
  exports_git
25
- } from "./model-resolver-ftmpqse3.js";
25
+ } from "./file-ja0t8253.js";
26
+ import {
27
+ AbsolutePath
28
+ } from "./file-j07kk359.js";
26
29
  import {
27
30
  exports_bus
28
- } from "./model-resolver-kr2xh7a3.js";
31
+ } from "./file-7cx2sxpa.js";
29
32
  import {
30
33
  exports_database
31
- } from "./model-resolver-137f9dhc.js";
32
- import {
33
- AbsolutePath
34
- } from "./model-resolver-j07kk359.js";
34
+ } from "./file-yk0k0x3a.js";
35
35
  import {
36
36
  __export
37
- } from "./model-resolver-rvfvac9x.js";
37
+ } from "./file-rvfvac9x.js";
38
38
 
39
39
  // src/worktree.ts
40
40
  var exports_worktree = {};
@@ -196,7 +196,8 @@ var layer = Layer.effect(Service, Effect.gen(function* () {
196
196
  const stored = yield* ops.find(input.projectID, worktreeDirectory);
197
197
  if (!stored?.strategy)
198
198
  return yield* new InvalidDirectoryError({ directory: worktreeDirectory });
199
- yield* (yield* getStrategy(StrategyID.make(stored.strategy))).remove({
199
+ const strategy = yield* getStrategy(StrategyID.make(stored.strategy));
200
+ yield* strategy.remove({
200
201
  directory: worktreeDirectory,
201
202
  force: input.force
202
203
  });
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  Timestamps
3
- } from "./model-resolver-sem2g21k.js";
3
+ } from "./file-sem2g21k.js";
4
4
 
5
5
  // src/credential/sql.ts
6
6
  import { integer, sqliteTable, text } from "drizzle-orm/sqlite-core";
@@ -1,12 +1,12 @@
1
1
  import {
2
2
  exports_state
3
- } from "./model-resolver-qhdqjp31.js";
3
+ } from "./file-qhdqjp31.js";
4
4
  import {
5
5
  exports_bus
6
- } from "./model-resolver-kr2xh7a3.js";
6
+ } from "./file-7cx2sxpa.js";
7
7
  import {
8
8
  __export
9
- } from "./model-resolver-rvfvac9x.js";
9
+ } from "./file-rvfvac9x.js";
10
10
 
11
11
  // src/agent.ts
12
12
  var exports_agent = {};
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  ProjectTable
3
- } from "./model-resolver-88jbfw8z.js";
3
+ } from "./file-88jbfw8z.js";
4
4
  import {
5
5
  absoluteColumn
6
- } from "./model-resolver-zbqqnp0n.js";
6
+ } from "./file-zbqqnp0n.js";
7
7
 
8
8
  // src/worktree/sql.ts
9
9
  import { integer, primaryKey, sqliteTable, text } from "drizzle-orm/sqlite-core";
@@ -1,24 +1,24 @@
1
1
  import {
2
2
  exports_supervisor
3
- } from "./model-resolver-nq0pkjdw.js";
3
+ } from "./file-sws7htm9.js";
4
4
  import {
5
5
  exports_location_watcher_policy
6
- } from "./model-resolver-37e9hbzs.js";
6
+ } from "./file-37e9hbzs.js";
7
7
  import {
8
8
  exports_watcher
9
- } from "./model-resolver-y980s7ka.js";
9
+ } from "./file-y980s7ka.js";
10
10
  import {
11
11
  exports_location
12
- } from "./model-resolver-90v8ky4k.js";
12
+ } from "./file-aznsy8z6.js";
13
13
  import {
14
14
  exports_git
15
- } from "./model-resolver-ftmpqse3.js";
15
+ } from "./file-ja0t8253.js";
16
16
  import {
17
17
  exports_bus
18
- } from "./model-resolver-kr2xh7a3.js";
18
+ } from "./file-7cx2sxpa.js";
19
19
  import {
20
20
  __export
21
- } from "./model-resolver-rvfvac9x.js";
21
+ } from "./file-rvfvac9x.js";
22
22
 
23
23
  // src/filesystem/location-watcher.ts
24
24
  var exports_location_watcher = {};
@@ -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/worktree/directory.ts
9
9
  var exports_directory = {};
@@ -1,27 +1,27 @@
1
- import {
2
- exports_instructions
3
- } from "./model-resolver-wnnmwd4v.js";
4
1
  import {
5
2
  exports_read_filesystem
6
- } from "./model-resolver-jn0adpvh.js";
3
+ } from "./file-nz6vg33s.js";
7
4
  import {
8
- exports_location_mutation
9
- } from "./model-resolver-x9tyz28z.js";
5
+ exports_instructions
6
+ } from "./file-yw5xr8zv.js";
10
7
  import {
11
- exports_permission
12
- } from "./model-resolver-5q8017ef.js";
8
+ exports_location_mutation
9
+ } from "./file-ppvgjjy9.js";
13
10
  import {
14
11
  exports_environment1 as exports_environment
15
- } from "./model-resolver-yp46gk1x.js";
12
+ } from "./file-enbpgzth.js";
13
+ import {
14
+ exports_permission
15
+ } from "./file-8bd9qxsq.js";
16
16
  import {
17
17
  exports_location
18
- } from "./model-resolver-90v8ky4k.js";
18
+ } from "./file-aznsy8z6.js";
19
19
  import {
20
20
  AbsolutePath
21
- } from "./model-resolver-j07kk359.js";
21
+ } from "./file-j07kk359.js";
22
22
  import {
23
23
  __export
24
- } from "./model-resolver-rvfvac9x.js";
24
+ } from "./file-rvfvac9x.js";
25
25
 
26
26
  // src/tool/plugin/read.ts
27
27
  var exports_read = {};
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  getViewSelectedFieldsRuntime,
3
3
  orderSelectedFields
4
- } from "./model-resolver-ma07p6tt.js";
4
+ } from "./file-ma07p6tt.js";
5
5
 
6
6
  // src/database/drizzle/sqlite-core/effect/select.ts
7
7
  import { applyEffectWrapper } from "drizzle-orm/effect-core/query-effect";
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  __require
3
- } from "./model-resolver-rvfvac9x.js";
3
+ } from "./file-rvfvac9x.js";
4
4
 
5
5
  // src/plugin/provider/openai-compatible.ts
6
6
  import { Effect } from "effect";
@@ -1,16 +1,16 @@
1
1
  import {
2
2
  SessionEvent
3
- } from "./model-resolver-a83yvq99.js";
3
+ } from "./file-a83yvq99.js";
4
4
  import {
5
5
  InstructionBlobTable,
6
6
  InstructionStateTable
7
- } from "./model-resolver-9d2xhdr4.js";
7
+ } from "./file-9d2xhdr4.js";
8
8
  import {
9
9
  exports_instructions
10
- } from "./model-resolver-ec8vrfw5.js";
10
+ } from "./file-ec8vrfw5.js";
11
11
  import {
12
12
  __export
13
- } from "./model-resolver-rvfvac9x.js";
13
+ } from "./file-rvfvac9x.js";
14
14
 
15
15
  // src/session/instruction-state.ts
16
16
  var exports_instruction_state = {};