@opencode/core 0.0.0-dev-21792 → 0.0.0-dev-21793

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 (802) hide show
  1. package/dist/account/sql.js +1 -1
  2. package/dist/agent.js +87 -87
  3. package/dist/aisdk-native.js +94 -94
  4. package/dist/aisdk.js +100 -100
  5. package/dist/app.js +9 -9
  6. package/dist/bus.js +73 -73
  7. package/dist/chunks/{variant-034tev2y.js → file-mutation-034tev2y.js} +2 -2
  8. package/dist/chunks/{variant-s288g8na.js → file-mutation-06t7n8q8.js} +27 -27
  9. package/dist/chunks/{variant-p1rkzz61.js → file-mutation-0f6r689f.js} +6 -6
  10. package/dist/chunks/{variant-qwy01kb6.js → file-mutation-0fpyks1q.js} +10 -10
  11. package/dist/chunks/{variant-myvbs686.js → file-mutation-0j822yer.js} +24 -24
  12. package/dist/chunks/{variant-tnyz5kbt.js → file-mutation-0ja23t1b.js} +15 -15
  13. package/dist/chunks/{variant-aqbkcn41.js → file-mutation-0n9958p8.js} +24 -24
  14. package/dist/chunks/{variant-gs607d9e.js → file-mutation-0pj9ddaq.js} +3 -3
  15. package/dist/chunks/{variant-eyj0nfg1.js → file-mutation-14zwc1tm.js} +18 -18
  16. package/dist/chunks/{variant-965ax8t4.js → file-mutation-16ef7g89.js} +10 -10
  17. package/dist/chunks/{variant-3ryz99p0.js → file-mutation-184a1rnm.js} +7 -7
  18. package/dist/chunks/{variant-dgqzzx92.js → file-mutation-18a9gpqs.js} +15 -15
  19. package/dist/chunks/{variant-1ep2p91f.js → file-mutation-1ep2p91f.js} +2 -2
  20. package/dist/chunks/{variant-1rjvyw2n.js → file-mutation-1nf7yf0j.js} +41 -41
  21. package/dist/chunks/{variant-1x2knyw4.js → file-mutation-1x2knyw4.js} +1 -1
  22. package/dist/chunks/{variant-8xy8ypx1.js → file-mutation-1xnx50jx.js} +1 -1
  23. package/dist/chunks/{variant-9q8g9sv8.js → file-mutation-1y0wdj51.js} +9 -9
  24. package/dist/chunks/{variant-tasvem1v.js → file-mutation-1z6jjy5p.js} +3 -3
  25. package/dist/chunks/{variant-20nwq5j7.js → file-mutation-20nwq5j7.js} +2 -2
  26. package/dist/chunks/{variant-txe1n9je.js → file-mutation-21f4f1g1.js} +20 -20
  27. package/dist/chunks/{variant-1qvbjeck.js → file-mutation-28ymys8g.js} +25 -25
  28. package/dist/chunks/{variant-8cxzz76b.js → file-mutation-2n8qcs80.js} +22 -22
  29. package/dist/chunks/{variant-ezqj58hf.js → file-mutation-2pmnyg9r.js} +9 -9
  30. package/dist/chunks/{variant-2z1j29yd.js → file-mutation-2z1j29yd.js} +1 -1
  31. package/dist/chunks/{variant-qcrpdfq0.js → file-mutation-34y5t1s2.js} +16 -16
  32. package/dist/chunks/{variant-dw0x30qw.js → file-mutation-3c9yzw43.js} +10 -10
  33. package/dist/chunks/{variant-3hepkmqq.js → file-mutation-3hepkmqq.js} +1 -1
  34. package/dist/chunks/{variant-tmc7xdjs.js → file-mutation-3nnrz6f6.js} +4 -4
  35. package/dist/chunks/{variant-xrc3640n.js → file-mutation-3wyhrqfb.js} +8 -8
  36. package/dist/chunks/{variant-nzf5gfst.js → file-mutation-3ycsgzwh.js} +16 -16
  37. package/dist/chunks/{variant-31hcb3w2.js → file-mutation-412bryh6.js} +18 -18
  38. package/dist/chunks/{variant-qf0q6kf3.js → file-mutation-42c08vbd.js} +14 -14
  39. package/dist/chunks/{variant-p6ac6dys.js → file-mutation-4k9b8ckd.js} +3 -3
  40. package/dist/chunks/{variant-n76y9d45.js → file-mutation-4rwjg7ym.js} +12 -12
  41. package/dist/chunks/{variant-4v008n1t.js → file-mutation-4v008n1t.js} +1 -1
  42. package/dist/chunks/{variant-34yzdvz0.js → file-mutation-4w13ygjb.js} +4 -4
  43. package/dist/chunks/{variant-4xvmh7wp.js → file-mutation-4xvmh7wp.js} +3 -3
  44. package/dist/chunks/{variant-06e73gs6.js → file-mutation-583v5ha0.js} +14 -14
  45. package/dist/chunks/{variant-6x5wxtpk.js → file-mutation-5bk3jjmc.js} +19 -19
  46. package/dist/chunks/{variant-38gpn4vr.js → file-mutation-5et2web4.js} +30 -30
  47. package/dist/chunks/{variant-naa91rg8.js → file-mutation-5fzv3jtq.js} +24 -24
  48. package/dist/chunks/{variant-5m9w47nd.js → file-mutation-5m9w47nd.js} +1 -1
  49. package/dist/chunks/{variant-whghe8dg.js → file-mutation-5mn06ewq.js} +30 -30
  50. package/dist/chunks/{variant-1vnh640m.js → file-mutation-5q1634ts.js} +16 -16
  51. package/dist/chunks/{variant-e3qxr5gk.js → file-mutation-5qd3pb7m.js} +2 -2
  52. package/dist/chunks/{variant-5w1mdqt7.js → file-mutation-5w1mdqt7.js} +1 -1
  53. package/dist/chunks/{variant-3r9hpdq9.js → file-mutation-681w63qn.js} +2 -2
  54. package/dist/chunks/{variant-et6j99b8.js → file-mutation-6cmnpesq.js} +6 -6
  55. package/dist/chunks/{variant-6esdw8yj.js → file-mutation-6esdw8yj.js} +1 -1
  56. package/dist/chunks/{variant-ay1ckjc2.js → file-mutation-6krm39vr.js} +14 -14
  57. package/dist/chunks/{variant-6pjqjmy2.js → file-mutation-6pjqjmy2.js} +1 -1
  58. package/dist/chunks/{variant-jshpeghh.js → file-mutation-6wded51y.js} +10 -10
  59. package/dist/chunks/{variant-770pw0s1.js → file-mutation-770pw0s1.js} +1 -1
  60. package/dist/chunks/{variant-ch1sjct1.js → file-mutation-7be1feys.js} +6 -6
  61. package/dist/chunks/{variant-7bmhse3q.js → file-mutation-7bmhse3q.js} +1 -1
  62. package/dist/chunks/{variant-qcdqfjzm.js → file-mutation-7fkfpscz.js} +5 -5
  63. package/dist/chunks/{variant-h9sa4bwx.js → file-mutation-7jev2p96.js} +30 -30
  64. package/dist/chunks/{variant-yjf2pg3t.js → file-mutation-7vrycr0x.js} +20 -20
  65. package/dist/chunks/{variant-7w2ypzdf.js → file-mutation-7w2ypzdf.js} +1 -1
  66. package/dist/chunks/{variant-fbddxkx5.js → file-mutation-86e3dsdc.js} +16 -16
  67. package/dist/chunks/{variant-hrmpecxp.js → file-mutation-8kf7njae.js} +9 -9
  68. package/dist/chunks/{variant-8wtp7s3z.js → file-mutation-8wtp7s3z.js} +1 -1
  69. package/dist/chunks/{variant-91rj84md.js → file-mutation-91rj84md.js} +1 -1
  70. package/dist/chunks/{variant-998yhzzq.js → file-mutation-998yhzzq.js} +3 -3
  71. package/dist/chunks/{variant-qsee9sfb.js → file-mutation-99z41sf4.js} +3 -3
  72. package/dist/chunks/{variant-0eanhh42.js → file-mutation-9bsvgzkn.js} +24 -24
  73. package/dist/chunks/{variant-a6qxve90.js → file-mutation-9d1m9pmn.js} +20 -20
  74. package/dist/chunks/{variant-zs6z0vyz.js → file-mutation-9dyr6dbd.js} +13 -13
  75. package/dist/chunks/{variant-pxbzcncb.js → file-mutation-9h0z3fxn.js} +11 -11
  76. package/dist/chunks/{variant-h5004h9q.js → file-mutation-9na97aeg.js} +26 -24
  77. package/dist/chunks/{variant-femq4azb.js → file-mutation-9qc30j8j.js} +22 -22
  78. package/dist/chunks/{variant-6mj7qrd2.js → file-mutation-9z8a2djx.js} +30 -30
  79. package/dist/chunks/{variant-tptnqrq5.js → file-mutation-a0e2vy3h.js} +20 -20
  80. package/dist/chunks/{variant-wef1awh0.js → file-mutation-a77zgm32.js} +4 -4
  81. package/dist/chunks/{variant-ssx7kxwp.js → file-mutation-ad85zqd0.js} +35 -35
  82. package/dist/chunks/{variant-agqd6nxz.js → file-mutation-agqd6nxz.js} +2 -2
  83. package/dist/chunks/{variant-ggzcd749.js → file-mutation-agt7cqbv.js} +8 -8
  84. package/dist/chunks/{variant-4t1w2mxz.js → file-mutation-ah9fbd82.js} +31 -31
  85. package/dist/chunks/{variant-31s4n3wd.js → file-mutation-ak0nv30a.js} +14 -14
  86. package/dist/chunks/{variant-ayrt8syn.js → file-mutation-awz66qxh.js} +8 -8
  87. package/dist/chunks/{variant-w2gcswty.js → file-mutation-aye484sv.js} +19 -19
  88. package/dist/chunks/{variant-ayjs7tqn.js → file-mutation-ayjs7tqn.js} +2 -2
  89. package/dist/chunks/{variant-ty9qn6s1.js → file-mutation-azzgb3g2.js} +7 -7
  90. package/dist/chunks/{variant-b0mv4wxm.js → file-mutation-b0mv4wxm.js} +2 -2
  91. package/dist/chunks/{variant-9y95aq8t.js → file-mutation-b0yyfzfw.js} +15 -15
  92. package/dist/chunks/{variant-s56y8qee.js → file-mutation-b47kxsq8.js} +13 -13
  93. package/dist/chunks/{variant-9jrxe79p.js → file-mutation-b4mwhj0w.js} +9 -9
  94. package/dist/chunks/{variant-5nnwax6m.js → file-mutation-b6vsg801.js} +5 -5
  95. package/dist/chunks/{variant-nskc943c.js → file-mutation-b8g5x7py.js} +30 -30
  96. package/dist/chunks/{variant-jcqm84fr.js → file-mutation-bgm817xr.js} +9 -9
  97. package/dist/chunks/{variant-bqwdyg2t.js → file-mutation-bqwdyg2t.js} +2 -2
  98. package/dist/chunks/{variant-9mmgyna3.js → file-mutation-bs6kz8fr.js} +78 -58
  99. package/dist/chunks/{variant-km6rwt5a.js → file-mutation-by4yhs9f.js} +10 -10
  100. package/dist/chunks/{variant-2d78jyy7.js → file-mutation-c781gd4g.js} +14 -14
  101. package/dist/chunks/{variant-58tvtm78.js → file-mutation-c8b8mnkb.js} +39 -39
  102. package/dist/chunks/{variant-sw0b69qr.js → file-mutation-c8j7dx8q.js} +11 -11
  103. package/dist/chunks/{variant-c9t2ty9q.js → file-mutation-c9t2ty9q.js} +1 -1
  104. package/dist/chunks/{variant-mfm6g4b7.js → file-mutation-cppvt4zp.js} +1 -1
  105. package/dist/chunks/{variant-q6jpqgp9.js → file-mutation-cvqwb722.js} +3 -3
  106. package/dist/chunks/{variant-gwxc5qmk.js → file-mutation-d32ywmm3.js} +9 -9
  107. package/dist/chunks/{variant-g9cw5n3r.js → file-mutation-d3kt6ywa.js} +23 -23
  108. package/dist/chunks/{variant-3n0dm7yf.js → file-mutation-d42sg7e1.js} +27 -27
  109. package/dist/chunks/{variant-d4v9tmah.js → file-mutation-d4v9tmah.js} +2 -2
  110. package/dist/chunks/{variant-2v4p44yw.js → file-mutation-dbhxdrr0.js} +11 -11
  111. package/dist/chunks/{variant-dh62xe4r.js → file-mutation-dh62xe4r.js} +1 -1
  112. package/dist/chunks/{variant-jkg2pe84.js → file-mutation-dk5xnaxx.js} +4 -4
  113. package/dist/chunks/{variant-v6rybaj4.js → file-mutation-dycw1daa.js} +76 -76
  114. package/dist/chunks/{variant-q46y00v4.js → file-mutation-dz8hhvgv.js} +9 -9
  115. package/dist/chunks/{variant-ffjvbxa2.js → file-mutation-e5mc6wd5.js} +15 -15
  116. package/dist/chunks/{variant-pnwsrq7c.js → file-mutation-e65cdmhb.js} +11 -11
  117. package/dist/chunks/{variant-e834z07m.js → file-mutation-e834z07m.js} +1 -1
  118. package/dist/chunks/{variant-fse0ep9a.js → file-mutation-e8zejd8s.js} +43 -43
  119. package/dist/chunks/{variant-gmfb2mvx.js → file-mutation-e9jwpacd.js} +28 -28
  120. package/dist/chunks/{variant-2mbjfaxd.js → file-mutation-emq6awqh.js} +4 -4
  121. package/dist/chunks/{variant-rmm45jmv.js → file-mutation-engkm2d6.js} +5 -5
  122. package/dist/chunks/{variant-d25tq8dz.js → file-mutation-ev1t90qk.js} +18 -18
  123. package/dist/chunks/{variant-ew6v55a0.js → file-mutation-f378m401.js} +27 -27
  124. package/dist/chunks/file-mutation-f9b0xc0f.js +26 -0
  125. package/dist/chunks/{variant-fffv3p7h.js → file-mutation-fffv3p7h.js} +1 -1
  126. package/dist/chunks/{variant-1f6s4ptb.js → file-mutation-fntjqd6t.js} +49 -49
  127. package/dist/chunks/{variant-gj8x1tda.js → file-mutation-fvc4bqe2.js} +5 -5
  128. package/dist/chunks/{variant-x286q59v.js → file-mutation-fwrhh8te.js} +25 -25
  129. package/dist/chunks/{variant-w687dnns.js → file-mutation-fznmdakp.js} +4 -4
  130. package/dist/chunks/{variant-vstkazdb.js → file-mutation-fzpx1t84.js} +11 -11
  131. package/dist/chunks/{variant-fsbthcgb.js → file-mutation-fzw3ggbd.js} +5 -5
  132. package/dist/chunks/{variant-g5h9c0rr.js → file-mutation-g5h9c0rr.js} +2 -2
  133. package/dist/chunks/{variant-hxkd46mz.js → file-mutation-gdfaxg1p.js} +7 -7
  134. package/dist/chunks/{variant-31z3tt8p.js → file-mutation-gjn8q2kb.js} +8 -8
  135. package/dist/chunks/{variant-hp96qswg.js → file-mutation-gkxweqzn.js} +21 -21
  136. package/dist/chunks/{variant-e76dq3yp.js → file-mutation-gzd9h9wc.js} +28 -28
  137. package/dist/chunks/{variant-kep5c5ye.js → file-mutation-h5tgkdcy.js} +11 -11
  138. package/dist/chunks/{variant-j4wqx5fv.js → file-mutation-hj4sgq0k.js} +43 -43
  139. package/dist/chunks/{variant-fpy7rw99.js → file-mutation-hq99wsn5.js} +11 -11
  140. package/dist/chunks/{variant-h1t0dep1.js → file-mutation-htgm1bds.js} +3 -3
  141. package/dist/chunks/{variant-3gfaw84s.js → file-mutation-hvjpqjdc.js} +16 -16
  142. package/dist/chunks/{variant-0638xfhh.js → file-mutation-hvnmtape.js} +33 -33
  143. package/dist/chunks/{variant-ra34yqmw.js → file-mutation-hvvf9qw8.js} +6 -6
  144. package/dist/chunks/{variant-ywvhq9m9.js → file-mutation-hvz0d71n.js} +6 -6
  145. package/dist/chunks/{variant-mep2ef0p.js → file-mutation-hx36yvej.js} +9 -9
  146. package/dist/chunks/{variant-j113cymg.js → file-mutation-j113cymg.js} +1 -1
  147. package/dist/chunks/{variant-abapdvyj.js → file-mutation-j6emb5q4.js} +15 -15
  148. package/dist/chunks/{variant-eyn28kqv.js → file-mutation-j9gv32p7.js} +25 -25
  149. package/dist/chunks/{variant-ggd4pn6w.js → file-mutation-jah766w3.js} +1 -1
  150. package/dist/chunks/{variant-8fqnesqk.js → file-mutation-jajr2nk9.js} +2 -2
  151. package/dist/chunks/{variant-gwk20kqr.js → file-mutation-jc236n4m.js} +3 -3
  152. package/dist/chunks/{variant-masd7ga8.js → file-mutation-jchrqzf6.js} +4 -4
  153. package/dist/chunks/{variant-h0x3s1vb.js → file-mutation-je176taz.js} +2 -2
  154. package/dist/chunks/{variant-jcbfs7k1.js → file-mutation-jee9mcyq.js} +23 -23
  155. package/dist/chunks/{variant-7ekmhs5h.js → file-mutation-jf98v3pw.js} +8 -8
  156. package/dist/chunks/{variant-yy9nwzwe.js → file-mutation-jgx5v8fy.js} +20 -20
  157. package/dist/chunks/{variant-rw9jscq7.js → file-mutation-jkk3563p.js} +3 -3
  158. package/dist/chunks/{variant-7g2krnc3.js → file-mutation-jppfcdsv.js} +15 -15
  159. package/dist/chunks/{variant-hdfrs5mg.js → file-mutation-jq88ke7r.js} +9 -9
  160. package/dist/chunks/{variant-kq5jhwfz.js → file-mutation-jqnr3q0b.js} +11 -11
  161. package/dist/chunks/{variant-nn0bshf3.js → file-mutation-jve1z22x.js} +2 -2
  162. package/dist/chunks/{variant-drerwy6v.js → file-mutation-jyfkkafv.js} +6 -6
  163. package/dist/chunks/{variant-7avcx6sz.js → file-mutation-k10dwtqd.js} +4 -4
  164. package/dist/chunks/{variant-k814nvkf.js → file-mutation-k814nvkf.js} +1 -1
  165. package/dist/chunks/{variant-1effvm16.js → file-mutation-kbn4pv95.js} +33 -33
  166. package/dist/chunks/{variant-tz58g81y.js → file-mutation-kng2vz2g.js} +33 -33
  167. package/dist/chunks/{variant-t9mervra.js → file-mutation-kt2hvhfc.js} +15 -15
  168. package/dist/chunks/{variant-kt3bjfbg.js → file-mutation-kt3bjfbg.js} +1 -1
  169. package/dist/chunks/{variant-eh6zpghf.js → file-mutation-m168f1q5.js} +17 -17
  170. package/dist/chunks/{variant-m1714858.js → file-mutation-m1714858.js} +1 -1
  171. package/dist/chunks/{variant-m37sd98t.js → file-mutation-m37sd98t.js} +1 -1
  172. package/dist/chunks/{variant-perw2mya.js → file-mutation-m4n458ne.js} +34 -34
  173. package/dist/chunks/{variant-j87d2fdh.js → file-mutation-m6v7brdr.js} +21 -21
  174. package/dist/chunks/{variant-m9w0rfyh.js → file-mutation-m9w0rfyh.js} +1 -1
  175. package/dist/chunks/{variant-maspj1v3.js → file-mutation-maspj1v3.js} +1 -1
  176. package/dist/chunks/{variant-ybyg0rks.js → file-mutation-mh72q75k.js} +9 -9
  177. package/dist/chunks/{variant-78x8h7ay.js → file-mutation-mppte30v.js} +31 -31
  178. package/dist/chunks/{variant-vq82qw8v.js → file-mutation-mpw1k9ag.js} +3 -3
  179. package/dist/chunks/{variant-z1npb9n1.js → file-mutation-mt039edz.js} +30 -30
  180. package/dist/chunks/{variant-n0p0277s.js → file-mutation-n0p0277s.js} +1 -1
  181. package/dist/chunks/{variant-zgfsjq52.js → file-mutation-n3h7tt9m.js} +18 -18
  182. package/dist/chunks/{variant-j3km7zqr.js → file-mutation-n6vey4v0.js} +20 -20
  183. package/dist/chunks/{variant-g4bbd6m2.js → file-mutation-n93ct7p0.js} +17 -17
  184. package/dist/chunks/{variant-01998yt4.js → file-mutation-n9pam4rb.js} +21 -21
  185. package/dist/chunks/{variant-0ys4nkhr.js → file-mutation-nc7nfcmn.js} +5 -5
  186. package/dist/chunks/{variant-bx9k2vk5.js → file-mutation-ne9926sq.js} +9 -9
  187. package/dist/chunks/{variant-whm1b6ea.js → file-mutation-njm07axa.js} +84 -84
  188. package/dist/chunks/{variant-dqnhz629.js → file-mutation-nkkjs32s.js} +11 -11
  189. package/dist/chunks/{variant-6wd0rvr2.js → file-mutation-nnra64kg.js} +52 -52
  190. package/dist/chunks/{variant-p8xd8kn3.js → file-mutation-npqr99vp.js} +170 -170
  191. package/dist/chunks/{variant-7exw68zp.js → file-mutation-nva7xeab.js} +17 -17
  192. package/dist/chunks/{variant-p015t6z3.js → file-mutation-p015t6z3.js} +2 -2
  193. package/dist/chunks/{variant-33nz961x.js → file-mutation-pdh4yr0t.js} +74 -19
  194. package/dist/chunks/{variant-q0xfjq0a.js → file-mutation-pgga6m9y.js} +24 -24
  195. package/dist/chunks/{variant-7t9zfnqm.js → file-mutation-pkmtmf38.js} +8 -8
  196. package/dist/chunks/{variant-pknna89w.js → file-mutation-pknna89w.js} +1 -1
  197. package/dist/chunks/file-mutation-pp26ka9h.js +261 -0
  198. package/dist/chunks/{variant-k8z0rx70.js → file-mutation-ppvrw4s2.js} +4 -4
  199. package/dist/chunks/{variant-pafmcd10.js → file-mutation-pq7xjvmm.js} +58 -58
  200. package/dist/chunks/{variant-wcqs7mnq.js → file-mutation-pyyefh93.js} +10 -10
  201. package/dist/chunks/{variant-e38xqxgc.js → file-mutation-q27sz64n.js} +15 -15
  202. package/dist/chunks/{variant-hec15j04.js → file-mutation-q4b90a1g.js} +8 -8
  203. package/dist/chunks/{variant-qjgzc4b4.js → file-mutation-qjgzc4b4.js} +1 -1
  204. package/dist/chunks/{variant-e0k3wv1m.js → file-mutation-qrbmkj4e.js} +314 -314
  205. package/dist/chunks/{variant-8jtsy4bf.js → file-mutation-qvzyn69b.js} +7 -7
  206. package/dist/chunks/{variant-n3rq4a4f.js → file-mutation-qx48z7fz.js} +18 -18
  207. package/dist/chunks/{variant-kaevaby8.js → file-mutation-qye7m5mc.js} +13 -13
  208. package/dist/chunks/{variant-r0yr0wbs.js → file-mutation-r0yr0wbs.js} +1 -1
  209. package/dist/chunks/{variant-q5t1117e.js → file-mutation-r385tprj.js} +13 -13
  210. package/dist/chunks/{variant-r41sfy63.js → file-mutation-r41sfy63.js} +2 -2
  211. package/dist/chunks/{variant-r542h3bh.js → file-mutation-r542h3bh.js} +1 -1
  212. package/dist/chunks/{variant-xpm0q4w1.js → file-mutation-r9vxfp52.js} +21 -21
  213. package/dist/chunks/{variant-rb9dy4dg.js → file-mutation-rb9dy4dg.js} +1 -1
  214. package/dist/chunks/{variant-bnc19zgd.js → file-mutation-rkfx65sc.js} +5 -5
  215. package/dist/chunks/{variant-hmyezwch.js → file-mutation-rpyyyxcq.js} +28 -28
  216. package/dist/chunks/{variant-rt5dr6hb.js → file-mutation-rt5dr6hb.js} +1 -1
  217. package/dist/chunks/{variant-ffyzxtf2.js → file-mutation-rv3msfz7.js} +13 -13
  218. package/dist/chunks/{variant-6pt6tz6z.js → file-mutation-rx9zn29t.js} +12 -12
  219. package/dist/chunks/{variant-fw4z0t3x.js → file-mutation-rxrr3qdh.js} +11 -11
  220. package/dist/chunks/{variant-mgcbmcs2.js → file-mutation-ry63fkbp.js} +4 -4
  221. package/dist/chunks/{variant-jgat5zv1.js → file-mutation-s0a3xd7q.js} +11 -11
  222. package/dist/chunks/{variant-q53nv06y.js → file-mutation-s1tpjhgy.js} +20 -20
  223. package/dist/chunks/{variant-jb4jwsmw.js → file-mutation-s2fjhn33.js} +11 -11
  224. package/dist/chunks/{variant-5k9bt5s0.js → file-mutation-s6h5wwd7.js} +14 -14
  225. package/dist/chunks/{variant-sa3fpqfw.js → file-mutation-sa3fpqfw.js} +2 -2
  226. package/dist/chunks/{variant-hmehzqeq.js → file-mutation-spw53e2n.js} +11 -11
  227. package/dist/chunks/{variant-4yhdbwgv.js → file-mutation-sqa3z3dz.js} +10 -10
  228. package/dist/chunks/{variant-afxfa24t.js → file-mutation-sqgyj4gx.js} +56 -56
  229. package/dist/chunks/{variant-sqjzf8x2.js → file-mutation-sqjzf8x2.js} +1 -1
  230. package/dist/chunks/{variant-ynr7a48r.js → file-mutation-sqz5s9dc.js} +19 -19
  231. package/dist/chunks/{variant-4kb37vw6.js → file-mutation-st8aw945.js} +11 -11
  232. package/dist/chunks/{variant-esxw01ce.js → file-mutation-sv1g5dmz.js} +41 -41
  233. package/dist/chunks/{variant-dbmp929s.js → file-mutation-szcgc7h4.js} +5 -5
  234. package/dist/chunks/{variant-4vzztvc4.js → file-mutation-t79q4a8s.js} +15 -15
  235. package/dist/chunks/{variant-vtt9fj04.js → file-mutation-ta48ntn4.js} +10 -10
  236. package/dist/chunks/{variant-tczq8hjw.js → file-mutation-tczq8hjw.js} +1 -1
  237. package/dist/chunks/{variant-vwp4yjah.js → file-mutation-td4wpn7p.js} +4 -4
  238. package/dist/chunks/{variant-29dk4atv.js → file-mutation-tdaksa41.js} +21 -21
  239. package/dist/chunks/{variant-kmzgegqq.js → file-mutation-tg1vr1qt.js} +8 -8
  240. package/dist/chunks/{variant-2n4w5w70.js → file-mutation-thhhq1vt.js} +16 -16
  241. package/dist/chunks/{variant-y70jae24.js → file-mutation-tkawvzsd.js} +7 -7
  242. package/dist/chunks/{variant-s2v7bxyw.js → file-mutation-ts53k1nz.js} +16 -16
  243. package/dist/chunks/{variant-z4w2s4ca.js → file-mutation-tt1npxdc.js} +13 -13
  244. package/dist/chunks/{variant-vw0jtrm4.js → file-mutation-tw3w7kk6.js} +12 -12
  245. package/dist/chunks/{variant-twv2r8f4.js → file-mutation-twv2r8f4.js} +2 -2
  246. package/dist/chunks/{variant-en2zr13c.js → file-mutation-v2map4bj.js} +12 -12
  247. package/dist/chunks/{variant-v2r1d0zg.js → file-mutation-v2r1d0zg.js} +1 -1
  248. package/dist/chunks/{variant-1yq9hg58.js → file-mutation-v9ez2kgh.js} +5 -5
  249. package/dist/chunks/{variant-vd3b3yk9.js → file-mutation-vd3b3yk9.js} +1 -1
  250. package/dist/chunks/{variant-veqvce7d.js → file-mutation-veqvce7d.js} +1 -1
  251. package/dist/chunks/{variant-anmf9yfv.js → file-mutation-vpgtgc27.js} +4 -4
  252. package/dist/chunks/{variant-db11kph7.js → file-mutation-vvrrv243.js} +34 -34
  253. package/dist/chunks/{variant-03yy25hz.js → file-mutation-vxq3rjst.js} +5 -5
  254. package/dist/chunks/{variant-h2eax98k.js → file-mutation-w1gspdc4.js} +21 -21
  255. package/dist/chunks/{variant-w3wsvvr9.js → file-mutation-w3wsvvr9.js} +1 -1
  256. package/dist/chunks/{variant-fczkavnb.js → file-mutation-w4aahjgf.js} +31 -31
  257. package/dist/chunks/{variant-76cb1hcw.js → file-mutation-w8qtt4th.js} +4 -4
  258. package/dist/chunks/{variant-wakvkjy4.js → file-mutation-wakvkjy4.js} +1 -1
  259. package/dist/chunks/{variant-bpdhe5bk.js → file-mutation-wcm504gr.js} +26 -26
  260. package/dist/chunks/{variant-wd87259q.js → file-mutation-wd87259q.js} +1 -1
  261. package/dist/chunks/{variant-cdvdrcvs.js → file-mutation-wfjf3dbs.js} +4 -4
  262. package/dist/chunks/{variant-hwth1nfa.js → file-mutation-wkv9y70z.js} +11 -11
  263. package/dist/chunks/{variant-cdv83h1f.js → file-mutation-wn5tx07g.js} +49 -49
  264. package/dist/chunks/{variant-q53wscqr.js → file-mutation-wtfvr6dg.js} +23 -23
  265. package/dist/chunks/{variant-qzcfn68a.js → file-mutation-wzkhz6q0.js} +4 -4
  266. package/dist/chunks/{variant-wdn86ejn.js → file-mutation-x1rh1q6n.js} +24 -24
  267. package/dist/chunks/{variant-zp7n6rk5.js → file-mutation-x39k9451.js} +8 -8
  268. package/dist/chunks/{variant-wp4rg1a9.js → file-mutation-x4a10420.js} +5 -5
  269. package/dist/chunks/{variant-0jkyaxex.js → file-mutation-x9bfykwd.js} +5 -5
  270. package/dist/chunks/{variant-k9j7rvgk.js → file-mutation-x9v18vd1.js} +11 -11
  271. package/dist/chunks/{variant-bstexjd6.js → file-mutation-xd9cc171.js} +5 -5
  272. package/dist/chunks/{variant-11f6rn9y.js → file-mutation-xf0kw6r5.js} +10 -10
  273. package/dist/chunks/{variant-5xvw0sfg.js → file-mutation-xm251h68.js} +24 -24
  274. package/dist/chunks/{variant-26zjvkxz.js → file-mutation-xn4rg1bt.js} +40 -40
  275. package/dist/chunks/{variant-3fx2czar.js → file-mutation-xyeba02v.js} +1 -1
  276. package/dist/chunks/{variant-h2fqmdf3.js → file-mutation-y29v8fx6.js} +6 -6
  277. package/dist/chunks/{variant-yb20nhc3.js → file-mutation-yb20nhc3.js} +1 -1
  278. package/dist/chunks/{variant-37595pa0.js → file-mutation-ydgk5ecx.js} +2 -2
  279. package/dist/chunks/{variant-247nxyh7.js → file-mutation-ynx2y6bw.js} +20 -20
  280. package/dist/chunks/{variant-jjpwr5j6.js → file-mutation-yy2edg57.js} +12 -12
  281. package/dist/chunks/{variant-z0bkrqjs.js → file-mutation-z0bkrqjs.js} +1 -1
  282. package/dist/chunks/{variant-z38nccrw.js → file-mutation-z38nccrw.js} +1 -1
  283. package/dist/chunks/file-mutation-z7bdqmx5.js +18 -0
  284. package/dist/chunks/{variant-pbg4eq1h.js → file-mutation-z9etxwmp.js} +17 -17
  285. package/dist/chunks/{variant-656b0dpw.js → file-mutation-zcz1zead.js} +22 -22
  286. package/dist/chunks/{variant-zkg84ctx.js → file-mutation-zkg84ctx.js} +1 -1
  287. package/dist/chunks/{variant-jrp7y0v0.js → file-mutation-znfqxp8f.js} +26 -26
  288. package/dist/chunks/{variant-t5jqs5j7.js → file-mutation-zqx4v1dp.js} +2 -2
  289. package/dist/chunks/{variant-c3tkjcpj.js → file-mutation-zx6dx56d.js} +12 -12
  290. package/dist/chunks/{variant-bjhzkqyk.js → file-mutation-zzdv5d93.js} +4 -4
  291. package/dist/codemode/catalog.js +1 -1
  292. package/dist/codemode/instructions.js +7 -7
  293. package/dist/codemode/tool.js +3 -3
  294. package/dist/codemode/web.js +1 -1
  295. package/dist/command.js +89 -89
  296. package/dist/config/discovery.js +89 -89
  297. package/dist/config/markdown.js +1 -1
  298. package/dist/config/normalize.js +104 -104
  299. package/dist/config/plugin/agent.js +118 -118
  300. package/dist/config/plugin/command.js +214 -214
  301. package/dist/config/plugin/compaction.js +157 -157
  302. package/dist/config/plugin/compatibility.js +137 -137
  303. package/dist/config/plugin/entry-observer.js +1 -1
  304. package/dist/config/plugin/formatter.js +119 -119
  305. package/dist/config/plugin/image.js +118 -118
  306. package/dist/config/plugin/instruction.js +118 -118
  307. package/dist/config/plugin/location-watcher.js +120 -120
  308. package/dist/config/plugin/mcp.js +125 -125
  309. package/dist/config/plugin/policy.js +119 -119
  310. package/dist/config/plugin/provider.js +118 -118
  311. package/dist/config/plugin/reference.js +120 -120
  312. package/dist/config/plugin/shell.js +118 -118
  313. package/dist/config/plugin/skill-file.js +107 -107
  314. package/dist/config/plugin/skill-scan.js +1 -1
  315. package/dist/config/plugin/skill.js +138 -138
  316. package/dist/config/plugin/snapshot.js +118 -118
  317. package/dist/config/plugin/source.js +121 -121
  318. package/dist/config/plugin/tool-output.js +119 -119
  319. package/dist/config/plugin/websearch.js +117 -117
  320. package/dist/config/plugin/worktree.js +120 -120
  321. package/dist/config/variable.js +1 -1
  322. package/dist/config/watch.js +1 -1
  323. package/dist/config.js +123 -123
  324. package/dist/console-access.js +1 -1
  325. package/dist/credential/sql.js +2 -2
  326. package/dist/credential.js +87 -87
  327. package/dist/database/database.js +70 -70
  328. package/dist/database/drizzle/effect-sqlite/driver.js +12 -12
  329. package/dist/database/drizzle/effect-sqlite/index.js +12 -12
  330. package/dist/database/drizzle/effect-sqlite/session.js +11 -11
  331. package/dist/database/drizzle/index.js +13 -13
  332. package/dist/database/drizzle/internal/drizzle-utils.js +1 -1
  333. package/dist/database/drizzle/sqlite-core/effect/count.js +1 -1
  334. package/dist/database/drizzle/sqlite-core/effect/db.js +9 -9
  335. package/dist/database/drizzle/sqlite-core/effect/delete.js +2 -2
  336. package/dist/database/drizzle/sqlite-core/effect/index.js +10 -10
  337. package/dist/database/drizzle/sqlite-core/effect/insert.js +2 -2
  338. package/dist/database/drizzle/sqlite-core/effect/query.js +1 -1
  339. package/dist/database/drizzle/sqlite-core/effect/raw.js +1 -1
  340. package/dist/database/drizzle/sqlite-core/effect/select.js +2 -2
  341. package/dist/database/drizzle/sqlite-core/effect/session.js +10 -10
  342. package/dist/database/drizzle/sqlite-core/effect/update.js +2 -2
  343. package/dist/database/drizzle.js +14 -14
  344. package/dist/database/migration/20260127222353_familiar_lady_ursula.js +1 -1
  345. package/dist/database/migration/20260211171708_add_project_commands.js +1 -1
  346. package/dist/database/migration/20260213144116_wakeful_the_professor.js +1 -1
  347. package/dist/database/migration/20260225215848_workspace.js +1 -1
  348. package/dist/database/migration/20260227213759_add_session_workspace_id.js +1 -1
  349. package/dist/database/migration/20260228203230_blue_harpoon.js +1 -1
  350. package/dist/database/migration/20260303231226_add_workspace_fields.js +1 -1
  351. package/dist/database/migration/20260309230000_move_org_to_state.js +1 -1
  352. package/dist/database/migration/20260312043431_session_message_cursor.js +1 -1
  353. package/dist/database/migration/20260323234822_events.js +1 -1
  354. package/dist/database/migration/20260410174513_workspace-name.js +1 -1
  355. package/dist/database/migration/20260413175956_chief_energizer.js +1 -1
  356. package/dist/database/migration/20260423070820_add_icon_url_override.js +1 -1
  357. package/dist/database/migration/20260427172553_slow_nightmare.js +1 -1
  358. package/dist/database/migration/20260428004200_add_session_path.js +1 -1
  359. package/dist/database/migration/20260501142318_next_venus.js +1 -1
  360. package/dist/database/migration/20260504145000_add_sync_owner.js +1 -1
  361. package/dist/database/migration/20260507164347_add_workspace_time.js +1 -1
  362. package/dist/database/migration/20260510033149_session_usage.js +1 -1
  363. package/dist/database/migration/20260511000411_data_migration_state.js +1 -1
  364. package/dist/database/migration/20260511173437_session-metadata.js +1 -1
  365. package/dist/database/migration/20260601010001_normalize_storage_paths.js +1 -1
  366. package/dist/database/migration/20260601202201_amazing_prowler.js +1 -1
  367. package/dist/database/migration/20260602002951_lowly_union_jack.js +1 -1
  368. package/dist/database/migration/20260602182828_add_project_directories.js +1 -1
  369. package/dist/database/migration/20260603001617_session_message_projection_indexes.js +1 -1
  370. package/dist/database/migration/20260603040000_session_message_projection_order.js +1 -1
  371. package/dist/database/migration/20260603141458_session_input_inbox.js +1 -1
  372. package/dist/database/migration/20260603160727_jittery_ezekiel_stane.js +1 -1
  373. package/dist/database/migration/20260604172448_event_sourced_session_input.js +1 -1
  374. package/dist/database/migration/20260605003541_add_session_context_snapshot.js +1 -1
  375. package/dist/database/migration/20260605042240_add_context_epoch_agent.js +1 -1
  376. package/dist/database/migration/20260611035744_credential.js +1 -1
  377. package/dist/database/migration/20260611192811_lush_chimera.js +1 -1
  378. package/dist/database/migration/20260612174303_project_dir_strategy.js +1 -1
  379. package/dist/database/migration/20260622142730_simplify_session_context_epoch.js +1 -1
  380. package/dist/database/migration/20260622170816_reset_v2_session_state.js +1 -1
  381. package/dist/database/migration/20260622202450_simplify_session_input.js +1 -1
  382. package/dist/database/migration/20260804233008_loose_psylocke.js +1 -1
  383. package/dist/database/migration/20260805200742_import_legacy_credentials.js +1 -1
  384. package/dist/database/migration/20260808023530_workspace_domain.js +1 -1
  385. package/dist/database/migration/20260811161259_execution_claim_attempts.js +1 -1
  386. package/dist/database/migration/20260812181746_session_inbox.js +1 -1
  387. package/dist/database/migration/20260812213948_worktree.js +1 -1
  388. package/dist/database/migration/20260819222447_session_viewed_state.js +1 -1
  389. package/dist/database/migration/20260823191254_nullable_workspace_binding.js +1 -1
  390. package/dist/database/migration/20260910120000_clear_v1_session_permission.js +1 -1
  391. package/dist/database/migration/20260923013825_project_time_active.js +1 -1
  392. package/dist/database/migration/20261007190000_azure_cli_external_credential.js +1 -1
  393. package/dist/database/migration/20261010180456_project_time_archived.js +1 -1
  394. package/dist/database/migration/20261024002554_session_allowance.js +1 -1
  395. package/dist/database/migration/20261024175301_drop_session_allowance.js +1 -1
  396. package/dist/database/migration.gen.js +53 -53
  397. package/dist/database/migration.js +55 -55
  398. package/dist/database/path.js +2 -2
  399. package/dist/database/schema.gen.js +1 -1
  400. package/dist/database/schema.sql.js +1 -1
  401. package/dist/database/sqlite.bun.js +1 -1
  402. package/dist/database/sqlite.js +1 -1
  403. package/dist/database/sqlite.node.js +1 -1
  404. package/dist/database/sqlite.workerd.js +1 -1
  405. package/dist/database/v1-migration.bun.js +97 -97
  406. package/dist/database/v1-migration.js +1 -1
  407. package/dist/effect/app-node-builder.js +374 -374
  408. package/dist/effect/app-node-platform.js +2 -2
  409. package/dist/effect/keyed-mutex.js +1 -1
  410. package/dist/effect/websocket-constructor.js +1 -1
  411. package/dist/environment/driver.js +1 -1
  412. package/dist/environment/environment.js +98 -98
  413. package/dist/environment/exec-defaults.js +2 -2
  414. package/dist/environment/files.js +1 -1
  415. package/dist/environment/index.js +98 -98
  416. package/dist/environment/local.js +2 -2
  417. package/dist/environment/memory.js +2 -2
  418. package/dist/environment/unavailable.js +3 -3
  419. package/dist/event/sql.js +1 -1
  420. package/dist/event-logger.js +74 -74
  421. package/dist/file-access.js +105 -105
  422. package/dist/file-mutation.js +99 -99
  423. package/dist/file-retention.js +1 -1
  424. package/dist/filesystem/fff.bun.js +2 -2
  425. package/dist/filesystem/fff.js +1 -1
  426. package/dist/filesystem/fff.node.js +2 -2
  427. package/dist/filesystem/fff.workerd.js +2 -2
  428. package/dist/filesystem/location-watcher-policy.js +6 -6
  429. package/dist/filesystem/location-watcher.js +229 -229
  430. package/dist/filesystem/protected.js +3 -3
  431. package/dist/filesystem/search.js +104 -104
  432. package/dist/filesystem/watcher-binding.js +3 -3
  433. package/dist/filesystem/watcher.js +11 -11
  434. package/dist/filesystem.js +107 -107
  435. package/dist/form.js +86 -86
  436. package/dist/formatter/builtins.js +2 -2
  437. package/dist/formatter.js +92 -92
  438. package/dist/generate.js +112 -112
  439. package/dist/git.js +13 -11
  440. package/dist/github-copilot/chat/convert-to-openai-compatible-chat-messages.js +1 -1
  441. package/dist/github-copilot/chat/get-response-metadata.js +1 -1
  442. package/dist/github-copilot/chat/map-openai-compatible-finish-reason.js +1 -1
  443. package/dist/github-copilot/chat/openai-compatible-chat-language-model.js +7 -7
  444. package/dist/github-copilot/chat/openai-compatible-chat-options.js +1 -1
  445. package/dist/github-copilot/chat/openai-compatible-prepare-tools.js +1 -1
  446. package/dist/github-copilot/copilot-provider.js +17 -17
  447. package/dist/github-copilot/models.js +96 -96
  448. package/dist/github-copilot/openai-compatible-error.js +1 -1
  449. package/dist/github-copilot/responses/convert-to-openai-responses-input.js +1 -1
  450. package/dist/github-copilot/responses/map-openai-responses-finish-reason.js +1 -1
  451. package/dist/github-copilot/responses/openai-error.js +1 -1
  452. package/dist/github-copilot/responses/openai-responses-language-model.js +10 -10
  453. package/dist/github-copilot/responses/openai-responses-prepare-tools.js +6 -6
  454. package/dist/github-copilot/responses/tool/code-interpreter.js +1 -1
  455. package/dist/github-copilot/responses/tool/file-search.js +1 -1
  456. package/dist/github-copilot/responses/tool/image-generation.js +1 -1
  457. package/dist/github-copilot/responses/tool/web-search-preview.js +1 -1
  458. package/dist/github-copilot/responses/tool/web-search.js +1 -1
  459. package/dist/image/photon.js +2 -2
  460. package/dist/image.js +6 -6
  461. package/dist/instance/service.js +5 -5
  462. package/dist/instance.js +365 -365
  463. package/dist/instruction-discovery.js +82 -82
  464. package/dist/instructions/builtins.js +92 -92
  465. package/dist/instructions/index.js +3 -3
  466. package/dist/integration/connection.js +3 -3
  467. package/dist/integration.js +93 -93
  468. package/dist/job.js +82 -82
  469. package/dist/kv/sql.js +2 -2
  470. package/dist/kv.js +77 -77
  471. package/dist/location-activity.js +158 -158
  472. package/dist/location-lifecycle.js +112 -112
  473. package/dist/location-service-map.js +91 -91
  474. package/dist/location-services.js +362 -362
  475. package/dist/location.js +94 -94
  476. package/dist/managed-policy.js +2 -2
  477. package/dist/mcp/client.js +96 -96
  478. package/dist/mcp/index.js +106 -106
  479. package/dist/mcp/instructions.js +143 -143
  480. package/dist/mcp/oauth.js +82 -82
  481. package/dist/mcp/socket-client.js +1 -1
  482. package/dist/mcp/stdio.js +95 -95
  483. package/dist/mime.js +1 -1
  484. package/dist/modal/models.js +96 -96
  485. package/dist/model-resolver.js +104 -104
  486. package/dist/model-retry.js +1 -1
  487. package/dist/model.js +103 -103
  488. package/dist/models-dev.js +112 -112
  489. package/dist/oauth/page.js +1 -1
  490. package/dist/permission/saved.js +86 -86
  491. package/dist/permission/sql.js +5 -5
  492. package/dist/permission.js +118 -118
  493. package/dist/persistent-pty/binary.bun.js +1 -1
  494. package/dist/persistent-pty/daemon.js +1 -1
  495. package/dist/persistent-pty/index.js +90 -90
  496. package/dist/persistent-pty/pty-binding.js +1 -1
  497. package/dist/persistent-pty.js +79 -79
  498. package/dist/plugin/agent.js +78 -78
  499. package/dist/plugin/command.js +105 -105
  500. package/dist/plugin/hooks.js +5 -5
  501. package/dist/plugin/host.js +220 -220
  502. package/dist/plugin/identity.js +5 -5
  503. package/dist/plugin/instance.js +5 -5
  504. package/dist/plugin/internal.js +335 -335
  505. package/dist/plugin/mcp-codemode-defaults.js +1 -1
  506. package/dist/plugin/models-dev.js +101 -101
  507. package/dist/plugin/module.js +117 -117
  508. package/dist/plugin/optimize.js +2 -2
  509. package/dist/plugin/plan.js +107 -107
  510. package/dist/plugin/promise.js +1 -1
  511. package/dist/plugin/provider/amazon-bedrock.js +95 -95
  512. package/dist/plugin/provider/azure.js +118 -118
  513. package/dist/plugin/provider/cerebras.js +1 -1
  514. package/dist/plugin/provider/chatgpt.js +118 -118
  515. package/dist/plugin/provider/cloudflare-ai-gateway.js +115 -115
  516. package/dist/plugin/provider/cloudflare-workers-ai.js +115 -115
  517. package/dist/plugin/provider/cohere.js +2 -2
  518. package/dist/plugin/provider/configured.js +114 -114
  519. package/dist/plugin/provider/databricks.js +1 -1
  520. package/dist/plugin/provider/digitalocean.js +98 -98
  521. package/dist/plugin/provider/dynamic.js +2 -2
  522. package/dist/plugin/provider/factory.js +1 -1
  523. package/dist/plugin/provider/github-copilot.js +100 -100
  524. package/dist/plugin/provider/gitlab.js +98 -98
  525. package/dist/plugin/provider/google-vertex.js +115 -115
  526. package/dist/plugin/provider/kilo.js +1 -1
  527. package/dist/plugin/provider/llmgateway.js +82 -82
  528. package/dist/plugin/provider/lmstudio.js +127 -127
  529. package/dist/plugin/provider/local.js +124 -124
  530. package/dist/plugin/provider/modal.js +97 -97
  531. package/dist/plugin/provider/neon.js +1 -1
  532. package/dist/plugin/provider/nvidia.js +1 -1
  533. package/dist/plugin/provider/ollama.js +127 -127
  534. package/dist/plugin/provider/openai-context-caps.js +95 -95
  535. package/dist/plugin/provider/openai.js +118 -118
  536. package/dist/plugin/provider/opencode.js +104 -104
  537. package/dist/plugin/provider/openrouter.js +96 -96
  538. package/dist/plugin/provider/perplexity.js +2 -2
  539. package/dist/plugin/provider/poe.js +83 -83
  540. package/dist/plugin/provider/prompt-cache-key.js +1 -1
  541. package/dist/plugin/provider/sap-ai-core.js +96 -96
  542. package/dist/plugin/provider/sdk-factory.js +1 -1
  543. package/dist/plugin/provider/snowflake-cortex.js +117 -117
  544. package/dist/plugin/provider/vercel.js +95 -95
  545. package/dist/plugin/provider/vllm.js +127 -127
  546. package/dist/plugin/provider/xai.js +96 -96
  547. package/dist/plugin/provider/zenmux.js +1 -1
  548. package/dist/plugin/provider.js +171 -171
  549. package/dist/plugin/sdk.js +78 -78
  550. package/dist/plugin/service.js +3 -3
  551. package/dist/plugin/skill.js +134 -134
  552. package/dist/plugin/source-directory.js +1 -1
  553. package/dist/plugin/supervisor.js +350 -350
  554. package/dist/plugin/tool-input-repair.js +4 -4
  555. package/dist/plugin/update.js +2 -2
  556. package/dist/plugin/vcs/git.js +91 -91
  557. package/dist/plugin/vcs/hg.js +91 -91
  558. package/dist/plugin/verbosity.js +98 -98
  559. package/dist/plugin/warming.js +116 -116
  560. package/dist/plugin/websearch/exa.js +7 -7
  561. package/dist/plugin/websearch/firecrawl.js +8 -8
  562. package/dist/plugin/websearch/index.js +9 -9
  563. package/dist/plugin/websearch/mcp.js +2 -2
  564. package/dist/plugin/websearch/parallel.js +6 -6
  565. package/dist/plugin/websearch/tavily.js +6 -6
  566. package/dist/plugin/websearch/tinyfish.js +8 -8
  567. package/dist/plugin.js +231 -231
  568. package/dist/project/schema.js +8 -8
  569. package/dist/project/sql.js +4 -4
  570. package/dist/project.js +95 -95
  571. package/dist/provider.js +100 -100
  572. package/dist/pty/protocol.js +1 -1
  573. package/dist/pty/ticket.js +1 -1
  574. package/dist/pty.js +101 -101
  575. package/dist/reference/instructions.js +94 -94
  576. package/dist/reference.js +92 -92
  577. package/dist/repository-cache.js +86 -86
  578. package/dist/repository.js +3 -3
  579. package/dist/ripgrep/binary.js +2 -2
  580. package/dist/ripgrep.js +100 -100
  581. package/dist/rpc.js +91 -91
  582. package/dist/schema.js +1 -1
  583. package/dist/session/affinity.js +3 -3
  584. package/dist/session/command.js +78 -78
  585. package/dist/session/compaction.js +139 -139
  586. package/dist/session/context.js +165 -165
  587. package/dist/session/diff.js +93 -93
  588. package/dist/session/environment.js +5 -5
  589. package/dist/session/error.js +5 -5
  590. package/dist/session/event.js +1 -1
  591. package/dist/session/execution/restart.js +223 -223
  592. package/dist/session/execution.js +131 -131
  593. package/dist/session/generate.js +169 -169
  594. package/dist/session/history.js +15 -15
  595. package/dist/session/inbox.js +95 -95
  596. package/dist/session/info.js +3 -3
  597. package/dist/session/instruction-entry.js +81 -81
  598. package/dist/session/instruction-state.js +8 -8
  599. package/dist/session/instructions.js +102 -102
  600. package/dist/session/message-updater.js +4 -4
  601. package/dist/session/message.js +1 -1
  602. package/dist/session/model-request.js +123 -123
  603. package/dist/session/model-transport.js +7 -7
  604. package/dist/session/move.js +135 -135
  605. package/dist/session/projector.js +93 -93
  606. package/dist/session/prompt.js +110 -110
  607. package/dist/session/recent-text.js +1 -1
  608. package/dist/session/revert.js +99 -99
  609. package/dist/session/run-coordinator.js +1 -1
  610. package/dist/session/runner/index.js +3 -3
  611. package/dist/session/runner/llm.js +233 -233
  612. package/dist/session/runner/max-steps.js +1 -1
  613. package/dist/session/runner/model.js +105 -105
  614. package/dist/session/runner/publish-llm-event.js +118 -118
  615. package/dist/session/runner/retry.js +3 -3
  616. package/dist/session/runner/step.js +129 -129
  617. package/dist/session/runner/to-llm-message.js +14 -14
  618. package/dist/session/schema.js +5 -5
  619. package/dist/session/session.js +165 -165
  620. package/dist/session/shell.js +132 -132
  621. package/dist/session/skill.js +110 -110
  622. package/dist/session/sql.js +5 -5
  623. package/dist/session/stats.js +77 -77
  624. package/dist/session/store.js +89 -89
  625. package/dist/session/subagent-completion.js +1 -1
  626. package/dist/session/subagent-job.js +212 -212
  627. package/dist/session/system-prompt.js +1 -1
  628. package/dist/session/title.js +165 -165
  629. package/dist/session/to-session-error.js +117 -117
  630. package/dist/session/transfer.js +219 -219
  631. package/dist/session/usage.js +1 -1
  632. package/dist/session.js +220 -220
  633. package/dist/shell/parse.js +6 -6
  634. package/dist/shell/result.js +1 -1
  635. package/dist/shell/scan.js +1 -1
  636. package/dist/shell/select.js +9 -9
  637. package/dist/shell.js +132 -132
  638. package/dist/skill/discovery.js +6 -6
  639. package/dist/skill/instructions.js +112 -112
  640. package/dist/skill.js +115 -115
  641. package/dist/snapshot.js +94 -94
  642. package/dist/state.js +1 -1
  643. package/dist/tool/html-markdown.js +1 -1
  644. package/dist/tool/http-body.js +1 -1
  645. package/dist/tool/mcp.js +140 -140
  646. package/dist/tool/plugin/edit.js +125 -125
  647. package/dist/tool/plugin/file-diff.js +1 -1
  648. package/dist/tool/plugin/glob.js +123 -123
  649. package/dist/tool/plugin/grep.js +129 -129
  650. package/dist/tool/plugin/mcp-resource.js +129 -129
  651. package/dist/tool/plugin/opencode.js +114 -114
  652. package/dist/tool/plugin/patch.js +127 -127
  653. package/dist/tool/plugin/question.js +106 -106
  654. package/dist/tool/plugin/read.js +130 -130
  655. package/dist/tool/plugin/shell.js +217 -217
  656. package/dist/tool/plugin/skill.js +114 -114
  657. package/dist/tool/plugin/subagent.js +221 -221
  658. package/dist/tool/plugin/todo.js +140 -140
  659. package/dist/tool/plugin/webfetch.js +116 -116
  660. package/dist/tool/plugin/websearch.js +111 -111
  661. package/dist/tool/plugin/write.js +127 -127
  662. package/dist/tool/read-filesystem.js +105 -105
  663. package/dist/tool/runtime.js +1 -1
  664. package/dist/tool-output.js +7 -7
  665. package/dist/tool.js +12 -12
  666. package/dist/types/git.d.ts +17 -2
  667. package/dist/usage-limits.js +93 -93
  668. package/dist/util/error-summary.js +1 -1
  669. package/dist/util/git-executable.js +3 -3
  670. package/dist/util/lazy.js +1 -1
  671. package/dist/util/slug.js +1 -1
  672. package/dist/util/token.js +1 -1
  673. package/dist/util/which.js +1 -1
  674. package/dist/util/wildcard.js +1 -1
  675. package/dist/v1/config/agent.js +7 -7
  676. package/dist/v1/config/command.js +5 -5
  677. package/dist/v1/config/mcp.js +4 -4
  678. package/dist/v1/config/migrate.js +97 -97
  679. package/dist/v1/config/permission.js +7 -7
  680. package/dist/v1/config/plugin.js +3 -3
  681. package/dist/v1/config/provider-options.js +1 -1
  682. package/dist/v1/config/provider.js +4 -4
  683. package/dist/variant.js +98 -98
  684. package/dist/vcs/patch.js +1 -1
  685. package/dist/vcs.js +94 -94
  686. package/dist/voice.js +92 -92
  687. package/dist/websearch.js +86 -86
  688. package/dist/wellknown/plugin.js +80 -80
  689. package/dist/wellknown.js +85 -85
  690. package/dist/workspace/driver.js +3 -3
  691. package/dist/workspace/sql.js +1 -1
  692. package/dist/workspace.js +84 -84
  693. package/dist/worktree/directory.js +2 -2
  694. package/dist/worktree/git.js +9 -9
  695. package/dist/worktree/sql.js +5 -5
  696. package/dist/worktree/strategies.js +94 -94
  697. package/dist/worktree.js +103 -103
  698. package/package.json +8 -8
  699. package/dist/chunks/variant-0yaxr8v1.js +0 -26
  700. package/dist/chunks/variant-a610t88q.js +0 -18
  701. package/dist/chunks/variant-vnkvawtb.js +0 -261
  702. /package/dist/chunks/{variant-0qkdqm5v.js → file-mutation-0qkdqm5v.js} +0 -0
  703. /package/dist/chunks/{variant-0zkw76rk.js → file-mutation-0zkw76rk.js} +0 -0
  704. /package/dist/chunks/{variant-17cy0kzp.js → file-mutation-17cy0kzp.js} +0 -0
  705. /package/dist/chunks/{variant-1cnp2v09.js → file-mutation-1cnp2v09.js} +0 -0
  706. /package/dist/chunks/{variant-24dcb14g.js → file-mutation-24dcb14g.js} +0 -0
  707. /package/dist/chunks/{variant-2710q6r3.js → file-mutation-2710q6r3.js} +0 -0
  708. /package/dist/chunks/{variant-2bv980vf.js → file-mutation-2bv980vf.js} +0 -0
  709. /package/dist/chunks/{variant-2c3vjs8z.js → file-mutation-2c3vjs8z.js} +0 -0
  710. /package/dist/chunks/{variant-359p4xyc.js → file-mutation-359p4xyc.js} +0 -0
  711. /package/dist/chunks/{variant-3asan66x.js → file-mutation-3asan66x.js} +0 -0
  712. /package/dist/chunks/{variant-3v8g72cx.js → file-mutation-3v8g72cx.js} +0 -0
  713. /package/dist/chunks/{variant-3wcehsnq.js → file-mutation-3wcehsnq.js} +0 -0
  714. /package/dist/chunks/{variant-43n2bw4t.js → file-mutation-43n2bw4t.js} +0 -0
  715. /package/dist/chunks/{variant-4knz6hnm.js → file-mutation-4knz6hnm.js} +0 -0
  716. /package/dist/chunks/{variant-4vcrnpx2.js → file-mutation-4vcrnpx2.js} +0 -0
  717. /package/dist/chunks/{variant-4y7fprxs.js → file-mutation-4y7fprxs.js} +0 -0
  718. /package/dist/chunks/{variant-53557ph1.js → file-mutation-53557ph1.js} +0 -0
  719. /package/dist/chunks/{variant-550bvhaj.js → file-mutation-550bvhaj.js} +0 -0
  720. /package/dist/chunks/{variant-5fjb7ams.js → file-mutation-5fjb7ams.js} +0 -0
  721. /package/dist/chunks/{variant-6prwharc.js → file-mutation-6prwharc.js} +0 -0
  722. /package/dist/chunks/{variant-6q2bdcd1.js → file-mutation-6q2bdcd1.js} +0 -0
  723. /package/dist/chunks/{variant-7akdwqpd.js → file-mutation-7akdwqpd.js} +0 -0
  724. /package/dist/chunks/{variant-7m9af43g.js → file-mutation-7m9af43g.js} +0 -0
  725. /package/dist/chunks/{variant-822emrt2.js → file-mutation-822emrt2.js} +0 -0
  726. /package/dist/chunks/{variant-84wd9syh.js → file-mutation-84wd9syh.js} +0 -0
  727. /package/dist/chunks/{variant-88xbtdfr.js → file-mutation-88xbtdfr.js} +0 -0
  728. /package/dist/chunks/{variant-8n3pysct.js → file-mutation-8n3pysct.js} +0 -0
  729. /package/dist/chunks/{variant-8wj87zfr.js → file-mutation-8wj87zfr.js} +0 -0
  730. /package/dist/chunks/{variant-9a4afbnw.js → file-mutation-9a4afbnw.js} +0 -0
  731. /package/dist/chunks/{variant-9rqn6x4v.js → file-mutation-9rqn6x4v.js} +0 -0
  732. /package/dist/chunks/{variant-a058387c.js → file-mutation-a058387c.js} +0 -0
  733. /package/dist/chunks/{variant-a6k6eb26.js → file-mutation-a6k6eb26.js} +0 -0
  734. /package/dist/chunks/{variant-af5trqkr.js → file-mutation-af5trqkr.js} +0 -0
  735. /package/dist/chunks/{variant-afrmfg78.js → file-mutation-afrmfg78.js} +0 -0
  736. /package/dist/chunks/{variant-aqzs7mqg.js → file-mutation-aqzs7mqg.js} +0 -0
  737. /package/dist/chunks/{variant-atq7p7m5.js → file-mutation-atq7p7m5.js} +0 -0
  738. /package/dist/chunks/{variant-bkyjaxrp.js → file-mutation-bkyjaxrp.js} +0 -0
  739. /package/dist/chunks/{variant-bmr6ed5q.js → file-mutation-bmr6ed5q.js} +0 -0
  740. /package/dist/chunks/{variant-cf4snx6d.js → file-mutation-cf4snx6d.js} +0 -0
  741. /package/dist/chunks/{variant-cqv5kn06.js → file-mutation-cqv5kn06.js} +0 -0
  742. /package/dist/chunks/{variant-cvy3z8tj.js → file-mutation-cvy3z8tj.js} +0 -0
  743. /package/dist/chunks/{variant-d9fn303g.js → file-mutation-d9fn303g.js} +0 -0
  744. /package/dist/chunks/{variant-d9jj8t3e.js → file-mutation-d9jj8t3e.js} +0 -0
  745. /package/dist/chunks/{variant-dajrwvna.js → file-mutation-dajrwvna.js} +0 -0
  746. /package/dist/chunks/{variant-dap0rakb.js → file-mutation-dap0rakb.js} +0 -0
  747. /package/dist/chunks/{variant-df08tz66.js → file-mutation-df08tz66.js} +0 -0
  748. /package/dist/chunks/{variant-dy18nga0.js → file-mutation-dy18nga0.js} +0 -0
  749. /package/dist/chunks/{variant-e5kj55wp.js → file-mutation-e5kj55wp.js} +0 -0
  750. /package/dist/chunks/{variant-e73j6tqm.js → file-mutation-e73j6tqm.js} +0 -0
  751. /package/dist/chunks/{variant-ec1grn59.js → file-mutation-ec1grn59.js} +0 -0
  752. /package/dist/chunks/{variant-eh3zwz77.js → file-mutation-eh3zwz77.js} +0 -0
  753. /package/dist/chunks/{variant-emrn6kk6.js → file-mutation-emrn6kk6.js} +0 -0
  754. /package/dist/chunks/{variant-f0mxakyp.js → file-mutation-f0mxakyp.js} +0 -0
  755. /package/dist/chunks/{variant-f6n9ztr4.js → file-mutation-f6n9ztr4.js} +0 -0
  756. /package/dist/chunks/{variant-faypxj3z.js → file-mutation-faypxj3z.js} +0 -0
  757. /package/dist/chunks/{variant-fd410y7t.js → file-mutation-fd410y7t.js} +0 -0
  758. /package/dist/chunks/{variant-g4wezp1m.js → file-mutation-g4wezp1m.js} +0 -0
  759. /package/dist/chunks/{variant-g86h250q.js → file-mutation-g86h250q.js} +0 -0
  760. /package/dist/chunks/{variant-gebd4c9n.js → file-mutation-gebd4c9n.js} +0 -0
  761. /package/dist/chunks/{variant-gftt206x.js → file-mutation-gftt206x.js} +0 -0
  762. /package/dist/chunks/{variant-hcxmzztb.js → file-mutation-hcxmzztb.js} +0 -0
  763. /package/dist/chunks/{variant-hk9envan.js → file-mutation-hk9envan.js} +0 -0
  764. /package/dist/chunks/{variant-j2ntwpah.js → file-mutation-j2ntwpah.js} +0 -0
  765. /package/dist/chunks/{variant-j5zkgpj8.js → file-mutation-j5zkgpj8.js} +0 -0
  766. /package/dist/chunks/{variant-jjkms2e6.js → file-mutation-jjkms2e6.js} +0 -0
  767. /package/dist/chunks/{variant-jr7sbwjy.js → file-mutation-jr7sbwjy.js} +0 -0
  768. /package/dist/chunks/{variant-jwfs4k6c.js → file-mutation-jwfs4k6c.js} +0 -0
  769. /package/dist/chunks/{variant-jwr30sdr.js → file-mutation-jwr30sdr.js} +0 -0
  770. /package/dist/chunks/{variant-jze0r7bz.js → file-mutation-jze0r7bz.js} +0 -0
  771. /package/dist/chunks/{variant-jzg6c2d5.js → file-mutation-jzg6c2d5.js} +0 -0
  772. /package/dist/chunks/{variant-m18g726c.js → file-mutation-m18g726c.js} +0 -0
  773. /package/dist/chunks/{variant-mp448xyj.js → file-mutation-mp448xyj.js} +0 -0
  774. /package/dist/chunks/{variant-msx8hqn2.js → file-mutation-msx8hqn2.js} +0 -0
  775. /package/dist/chunks/{variant-n05xt0ee.js → file-mutation-n05xt0ee.js} +0 -0
  776. /package/dist/chunks/{variant-n3j8tn72.js → file-mutation-n3j8tn72.js} +0 -0
  777. /package/dist/chunks/{variant-njntx4h6.js → file-mutation-njntx4h6.js} +0 -0
  778. /package/dist/chunks/{variant-pkyv6v7h.js → file-mutation-pkyv6v7h.js} +0 -0
  779. /package/dist/chunks/{variant-q3sfg36h.js → file-mutation-q3sfg36h.js} +0 -0
  780. /package/dist/chunks/{variant-q74kybfr.js → file-mutation-q74kybfr.js} +0 -0
  781. /package/dist/chunks/{variant-qaymkmh1.js → file-mutation-qaymkmh1.js} +0 -0
  782. /package/dist/chunks/{variant-qb87gjwd.js → file-mutation-qb87gjwd.js} +0 -0
  783. /package/dist/chunks/{variant-qfa1cgps.js → file-mutation-qfa1cgps.js} +0 -0
  784. /package/dist/chunks/{variant-qg3g05ea.js → file-mutation-qg3g05ea.js} +0 -0
  785. /package/dist/chunks/{variant-qrg20bc0.js → file-mutation-qrg20bc0.js} +0 -0
  786. /package/dist/chunks/{variant-rcb2kzg1.js → file-mutation-rcb2kzg1.js} +0 -0
  787. /package/dist/chunks/{variant-sdp7kfr6.js → file-mutation-sdp7kfr6.js} +0 -0
  788. /package/dist/chunks/{variant-ssg3fenm.js → file-mutation-ssg3fenm.js} +0 -0
  789. /package/dist/chunks/{variant-ve7vex1e.js → file-mutation-ve7vex1e.js} +0 -0
  790. /package/dist/chunks/{variant-w803qqfp.js → file-mutation-w803qqfp.js} +0 -0
  791. /package/dist/chunks/{variant-wc3fc9cn.js → file-mutation-wc3fc9cn.js} +0 -0
  792. /package/dist/chunks/{variant-wer8tq1h.js → file-mutation-wer8tq1h.js} +0 -0
  793. /package/dist/chunks/{variant-wjj7prxr.js → file-mutation-wjj7prxr.js} +0 -0
  794. /package/dist/chunks/{variant-wtztk69x.js → file-mutation-wtztk69x.js} +0 -0
  795. /package/dist/chunks/{variant-x0ckcb58.js → file-mutation-x0ckcb58.js} +0 -0
  796. /package/dist/chunks/{variant-x61499pn.js → file-mutation-x61499pn.js} +0 -0
  797. /package/dist/chunks/{variant-y44na4kk.js → file-mutation-y44na4kk.js} +0 -0
  798. /package/dist/chunks/{variant-y8f7s663.js → file-mutation-y8f7s663.js} +0 -0
  799. /package/dist/chunks/{variant-ygaqb7jw.js → file-mutation-ygaqb7jw.js} +0 -0
  800. /package/dist/chunks/{variant-ym463w8f.js → file-mutation-ym463w8f.js} +0 -0
  801. /package/dist/chunks/{variant-z5v4ffb3.js → file-mutation-z5v4ffb3.js} +0 -0
  802. /package/dist/chunks/{variant-z9919s4g.js → file-mutation-z9919s4g.js} +0 -0
@@ -2,18 +2,18 @@ import {
2
2
  AbsolutePath2,
3
3
  PositiveInt2,
4
4
  RelativePath2
5
- } from "./variant-z5v4ffb3.js";
5
+ } from "./file-mutation-z5v4ffb3.js";
6
6
  import {
7
- Service83,
8
- node87
9
- } from "./variant-eh6zpghf.js";
7
+ Service78,
8
+ node81
9
+ } from "./file-mutation-m168f1q5.js";
10
10
  import {
11
- Service54,
12
- node56
13
- } from "./variant-e76dq3yp.js";
11
+ Service55,
12
+ node57
13
+ } from "./file-mutation-gzd9h9wc.js";
14
14
  import {
15
15
  __export
16
- } from "./variant-9rqn6x4v.js";
16
+ } from "./file-mutation-9rqn6x4v.js";
17
17
 
18
18
  // src/filesystem.ts
19
19
  var exports_filesystem = {};
@@ -24,17 +24,17 @@ __export(exports_filesystem, {
24
24
  DirectoryAccessDeniedError: () => DirectoryAccessDeniedError2,
25
25
  DirectoryNotFoundError: () => DirectoryNotFoundError2,
26
26
  Entry: () => Entry2,
27
- Event: () => Event9,
27
+ Event: () => Event8,
28
28
  FileSystem: () => exports_filesystem,
29
29
  FindInput: () => FindInput2,
30
30
  GlobInput: () => GlobInput2,
31
31
  GrepInput: () => GrepInput2,
32
32
  Match: () => Match2,
33
- NotFoundError: () => NotFoundError6,
34
- Service: () => Service53,
33
+ NotFoundError: () => NotFoundError5,
34
+ Service: () => Service54,
35
35
  Submatch: () => Submatch2,
36
36
  Write: () => Write2,
37
- node: () => node55
37
+ node: () => node56
38
38
  });
39
39
  import { makeLocationNode } from "@opencode/util/effect/app-node";
40
40
  import path from "path";
@@ -43,7 +43,7 @@ import { FSUtil } from "@opencode/util/fs-util";
43
43
  import { Entry, FileSystem, FindInput as FindInput2, Write as Write2 } from "@opencode/schema/filesystem";
44
44
  import { Entry as Entry2, Match as Match2, Submatch as Submatch2 } from "@opencode/schema/filesystem";
45
45
 
46
- class NotFoundError6 extends Schema.TaggedError()("FileSystem.NotFoundError", {
46
+ class NotFoundError5 extends Schema.TaggedError()("FileSystem.NotFoundError", {
47
47
  path: RelativePath2
48
48
  }) {
49
49
  }
@@ -92,14 +92,14 @@ class GrepInput2 extends Schema.Class("FileSystem.GrepInput")({
92
92
  limit: Schema.optionalKey(PositiveInt2)
93
93
  }) {
94
94
  }
95
- var Event9 = FileSystem.Event;
95
+ var Event8 = FileSystem.Event;
96
96
 
97
- class Service53 extends Context.Service()("@opencode/FileSystem") {
97
+ class Service54 extends Context.Service()("@opencode/FileSystem") {
98
98
  }
99
- var baseLayer = Layer.effect(Service53, Effect.gen(function* () {
99
+ var baseLayer = Layer.effect(Service54, Effect.gen(function* () {
100
100
  const fs = yield* FSUtil.Service;
101
- const location = yield* Service83;
102
- const search = yield* Service54;
101
+ const location = yield* Service78;
102
+ const search = yield* Service55;
103
103
  const root = location.workspaceID ? location.directory : yield* fs.realPath(location.directory).pipe(Effect.tap((real) => fs.access(real, { readable: true })), Effect.catch((cause) => {
104
104
  if (cause.reason._tag === "NotFound")
105
105
  return Effect.fail(new DirectoryNotFoundError2({ directory: location.directory, cause }));
@@ -109,22 +109,22 @@ var baseLayer = Layer.effect(Service53, Effect.gen(function* () {
109
109
  }));
110
110
  const resolve = Effect.fnUntraced(function* (input) {
111
111
  if (input.includes("\x00"))
112
- return yield* Effect.fail(new NotFoundError6({ path: input }));
112
+ return yield* Effect.fail(new NotFoundError5({ path: input }));
113
113
  const absolute = path.resolve(location.directory, input);
114
114
  if (!FSUtil.contains(location.directory, absolute))
115
- return yield* Effect.fail(new NotFoundError6({ path: input }));
116
- const real = yield* fs.realPath(absolute).pipe(Effect.catchReason("PlatformError", "NotFound", () => Effect.fail(new NotFoundError6({ path: input })), (_, error) => Effect.die(error)));
115
+ return yield* Effect.fail(new NotFoundError5({ path: input }));
116
+ const real = yield* fs.realPath(absolute).pipe(Effect.catchReason("PlatformError", "NotFound", () => Effect.fail(new NotFoundError5({ path: input })), (_, error) => Effect.die(error)));
117
117
  if (!FSUtil.contains(root, real))
118
- return yield* Effect.fail(new NotFoundError6({ path: input }));
118
+ return yield* Effect.fail(new NotFoundError5({ path: input }));
119
119
  return { absolute, real, directory: location.directory };
120
120
  });
121
- return Service53.of({
121
+ return Service54.of({
122
122
  find: search.find,
123
123
  read: Effect.fn("FileSystem.read")(function* (input) {
124
124
  const target = yield* resolve(input.path);
125
- const info = yield* fs.stat(target.real).pipe(Effect.catchReason("PlatformError", "NotFound", () => Effect.fail(new NotFoundError6({ path: input.path })), (_, error) => Effect.die(error)));
125
+ const info = yield* fs.stat(target.real).pipe(Effect.catchReason("PlatformError", "NotFound", () => Effect.fail(new NotFoundError5({ path: input.path })), (_, error) => Effect.die(error)));
126
126
  if (info.type !== "File")
127
- return yield* Effect.fail(new NotFoundError6({ path: input.path }));
127
+ return yield* Effect.fail(new NotFoundError5({ path: input.path }));
128
128
  return {
129
129
  mime: FSUtil.mimeType(target.real),
130
130
  size: Number(info.size),
@@ -134,7 +134,7 @@ var baseLayer = Layer.effect(Service53, Effect.gen(function* () {
134
134
  }),
135
135
  list: Effect.fn("FileSystem.list")(function* (input = {}) {
136
136
  const directory = path.resolve(location.directory, input.path ?? ".");
137
- const missing = new NotFoundError6({ path: RelativePath2.make(input.path ?? ".") });
137
+ const missing = new NotFoundError5({ path: RelativePath2.make(input.path ?? ".") });
138
138
  const info = yield* fs.stat(directory).pipe(Effect.catchReason("PlatformError", "NotFound", () => Effect.fail(missing), (_, error) => Effect.die(error)));
139
139
  if (info.type !== "Directory")
140
140
  return yield* missing;
@@ -158,10 +158,10 @@ var baseLayer = Layer.effect(Service53, Effect.gen(function* () {
158
158
  })
159
159
  });
160
160
  }));
161
- var node55 = makeLocationNode({
162
- service: Service53,
161
+ var node56 = makeLocationNode({
162
+ service: Service54,
163
163
  layer: baseLayer,
164
- deps: [FSUtil.node, node87, node56]
164
+ deps: [FSUtil.node, node81, node57]
165
165
  });
166
166
 
167
- export { FindInput2, Write2, NotFoundError6, DirectoryNotFoundError2, DirectoryAccessDeniedError2, Content3, DEFAULT_SEARCH_LIMIT2, DEFAULT_SEARCH_TIMEOUT_MS2, GlobInput2, GrepInput2, Event9, Service53, node55, exports_filesystem, Entry2, Match2, Submatch2 };
167
+ export { FindInput2, Write2, NotFoundError5, DirectoryNotFoundError2, DirectoryAccessDeniedError2, Content3, DEFAULT_SEARCH_LIMIT2, DEFAULT_SEARCH_TIMEOUT_MS2, GlobInput2, GrepInput2, Event8, Service54, node56, exports_filesystem, Entry2, Match2, Submatch2 };
@@ -1,16 +1,16 @@
1
1
  import {
2
2
  AbsolutePath2
3
- } from "./variant-z5v4ffb3.js";
3
+ } from "./file-mutation-z5v4ffb3.js";
4
4
  import {
5
5
  __export
6
- } from "./variant-9rqn6x4v.js";
6
+ } from "./file-mutation-9rqn6x4v.js";
7
7
 
8
8
  // src/skill/discovery.ts
9
9
  var exports_discovery = {};
10
10
  __export(exports_discovery, {
11
- Service: () => Service6,
11
+ Service: () => Service7,
12
12
  SkillDiscovery: () => exports_discovery,
13
- node: () => node7
13
+ node: () => node8
14
14
  });
15
15
  import path from "path";
16
16
  import { Context, Effect, Layer, Schedule, Schema } from "effect";
@@ -48,9 +48,9 @@ class Index extends Schema.Class("SkillDiscovery.Index")({
48
48
  }) {
49
49
  }
50
50
 
51
- class Service6 extends Context.Service()("@opencode/SkillDiscovery") {
51
+ class Service7 extends Context.Service()("@opencode/SkillDiscovery") {
52
52
  }
53
- var layer = Layer.effect(Service6, Effect.gen(function* () {
53
+ var layer = Layer.effect(Service7, Effect.gen(function* () {
54
54
  const fs = yield* FSUtil.Service;
55
55
  const global = yield* Global.Service;
56
56
  const http = (yield* HttpClient.HttpClient).pipe(HttpClient.retryTransient({
@@ -63,7 +63,7 @@ var layer = Layer.effect(Service6, Effect.gen(function* () {
63
63
  return true;
64
64
  return yield* HttpClientRequest.get(url).pipe(http.execute, Effect.flatMap((response) => response.arrayBuffer), Effect.flatMap((body) => fs.writeWithDirs(destination, new Uint8Array(body))), Effect.as(true), Effect.catch((error) => Effect.logError("failed to download skill file", { url, error }).pipe(Effect.as(false))));
65
65
  });
66
- return Service6.of({
66
+ return Service7.of({
67
67
  pull: Effect.fn("SkillDiscovery.pull")(function* (url) {
68
68
  const base = url.endsWith("/") ? url : `${url}/`;
69
69
  const source = new URL(base);
@@ -150,6 +150,6 @@ var layer = Layer.effect(Service6, Effect.gen(function* () {
150
150
  })
151
151
  });
152
152
  }));
153
- var node7 = makeGlobalNode({ service: Service6, layer, deps: [httpClient, FSUtil.node, Global.node] });
153
+ var node8 = makeGlobalNode({ service: Service7, layer, deps: [httpClient, FSUtil.node, Global.node] });
154
154
 
155
- export { Service6, node7, exports_discovery };
155
+ export { Service7, node8, exports_discovery };
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  makeUnsafe2
3
- } from "./variant-qjgzc4b4.js";
3
+ } from "./file-mutation-qjgzc4b4.js";
4
4
  import {
5
5
  __export
6
- } from "./variant-9rqn6x4v.js";
6
+ } from "./file-mutation-9rqn6x4v.js";
7
7
 
8
8
  // src/plugin/update.ts
9
9
  var exports_update = {};
@@ -1,53 +1,53 @@
1
1
  import {
2
2
  AbsolutePath2
3
- } from "./variant-z5v4ffb3.js";
3
+ } from "./file-mutation-z5v4ffb3.js";
4
4
  import {
5
5
  Service87,
6
6
  node91
7
- } from "./variant-gs607d9e.js";
7
+ } from "./file-mutation-0pj9ddaq.js";
8
8
  import {
9
9
  Service86,
10
10
  node90
11
- } from "./variant-k8z0rx70.js";
11
+ } from "./file-mutation-ppvrw4s2.js";
12
12
  import {
13
- Service85,
14
- node89
15
- } from "./variant-33nz961x.js";
13
+ Service80,
14
+ node83
15
+ } from "./file-mutation-pdh4yr0t.js";
16
16
  import {
17
- ID18,
17
+ ID14,
18
18
  Current3,
19
- Info30,
19
+ Info25,
20
20
  UpdateInput4,
21
- Event20,
21
+ Event17,
22
22
  Vcs3
23
- } from "./variant-hdfrs5mg.js";
23
+ } from "./file-mutation-jq88ke7r.js";
24
24
  import {
25
25
  ProjectTable2,
26
26
  upsertProject2
27
- } from "./variant-034tev2y.js";
27
+ } from "./file-mutation-034tev2y.js";
28
28
  import {
29
29
  WorktreeTable2
30
- } from "./variant-ayjs7tqn.js";
30
+ } from "./file-mutation-ayjs7tqn.js";
31
31
  import {
32
32
  __export
33
- } from "./variant-9rqn6x4v.js";
33
+ } from "./file-mutation-9rqn6x4v.js";
34
34
 
35
35
  // src/project.ts
36
36
  var exports_project = {};
37
37
  __export(exports_project, {
38
38
  Current: () => Current2,
39
- ID: () => ID17,
40
- Info: () => Info29,
41
- NotFoundError: () => NotFoundError12,
39
+ ID: () => ID13,
40
+ Info: () => Info24,
41
+ NotFoundError: () => NotFoundError11,
42
42
  Project: () => exports_project,
43
- Service: () => Service84,
43
+ Service: () => Service79,
44
44
  UpdateInput: () => UpdateInput3,
45
45
  Vcs: () => Vcs2,
46
- node: () => node88,
46
+ node: () => node82,
47
47
  root: () => root2,
48
48
  sweepNode: () => sweepNode2
49
49
  });
50
- import { Context, Duration, Effect, Layer, Schedule, Schema } from "effect";
50
+ import { Cache, Context, Duration, Effect, Layer, Schedule, Schema } from "effect";
51
51
  import { ChildProcess } from "effect/process";
52
52
  import { and, asc, desc, eq, gte, isNotNull, isNull, lt, lte, ne, sql } from "drizzle-orm";
53
53
  import path from "path";
@@ -56,14 +56,14 @@ import { FSUtil } from "@opencode/util/fs-util";
56
56
  import { AppProcess } from "@opencode/util/process";
57
57
  import { makeGlobalNode } from "@opencode/util/effect/app-node";
58
58
  import { Hash } from "@opencode/util/hash";
59
- var ID17 = ID18;
59
+ var ID13 = ID14;
60
60
  var Vcs2 = Vcs3;
61
61
  var Current2 = Current3;
62
- var Info29 = Info30;
62
+ var Info24 = Info25;
63
63
  var UpdateInput3 = UpdateInput4;
64
64
 
65
- class NotFoundError12 extends Schema.TaggedError()("Project.NotFoundError", {
66
- projectID: ID17
65
+ class NotFoundError11 extends Schema.TaggedError()("Project.NotFoundError", {
66
+ projectID: ID13
67
67
  }) {
68
68
  }
69
69
  var root2 = Effect.fn("Project.root")(function* (fs, input, markers = [".git", ".hg"]) {
@@ -74,7 +74,7 @@ var root2 = Effect.fn("Project.root")(function* (fs, input, markers = [".git", "
74
74
  var ACTIVATE_INTERVAL = 60000;
75
75
  var SWEEP_INTERVAL = Duration.hours(1);
76
76
 
77
- class Service84 extends Context.Service()("@opencode/Project") {
77
+ class Service79 extends Context.Service()("@opencode/Project") {
78
78
  }
79
79
  function fromRow(row) {
80
80
  const icon = row.icon_url || row.icon_url_override || row.icon_color ? {
@@ -98,9 +98,9 @@ function fromRow(row) {
98
98
  sandboxes: row.sandboxes
99
99
  };
100
100
  }
101
- var layer = Layer.effect(Service84, Effect.gen(function* () {
101
+ var layer = Layer.effect(Service79, Effect.gen(function* () {
102
102
  const fs = yield* FSUtil.Service;
103
- const git = yield* Service85;
103
+ const git = yield* Service80;
104
104
  const proc = yield* AppProcess.Service;
105
105
  const bus = yield* Service86;
106
106
  const db = (yield* Service87).db;
@@ -112,7 +112,7 @@ var layer = Layer.effect(Service84, Effect.gen(function* () {
112
112
  const replaced = previous && previous.canonical !== project.canonical && !(yield* fs.exists(previous.canonical).pipe(Effect.orElseSucceed(() => true))) ? yield* db.update(ProjectTable2).set({ worktree: project.canonical }).where(eq(ProjectTable2.id, project.id)).returning().get().pipe(Effect.orDie) : undefined;
113
113
  const changed = replaced ?? unarchived;
114
114
  if (changed)
115
- yield* bus.publish(Event20.Updated, fromRow(changed));
115
+ yield* bus.publish(Event17.Updated, fromRow(changed));
116
116
  if (!project.vcs)
117
117
  return project;
118
118
  const directories = [
@@ -148,7 +148,7 @@ var layer = Layer.effect(Service84, Effect.gen(function* () {
148
148
  yield* bus.publish(Worktree.Event.Resolved, {
149
149
  projectID: item.projectID,
150
150
  directory: item.directory,
151
- previous: project.previous ?? ID17.global,
151
+ previous: project.previous ?? ID13.global,
152
152
  ...adopted.length ? { adopted: adopted.map((candidate) => candidate.id) } : {}
153
153
  }, {
154
154
  commit: () => db.insert(WorktreeTable2).values({ project_id: item.projectID, directory: item.directory, strategy: item.strategy }).onConflictDoNothing().run().pipe(Effect.orDie, Effect.asVoid)
@@ -171,9 +171,9 @@ var layer = Layer.effect(Service84, Effect.gen(function* () {
171
171
  time_updated: Date.now()
172
172
  }).where(eq(ProjectTable2.id, input.projectID)).returning().get().pipe(Effect.orDie);
173
173
  if (!row)
174
- return yield* new NotFoundError12({ projectID: input.projectID });
174
+ return yield* new NotFoundError11({ projectID: input.projectID });
175
175
  const project = fromRow(row);
176
- yield* bus.publish(Event20.Updated, project);
176
+ yield* bus.publish(Event17.Updated, project);
177
177
  return project;
178
178
  });
179
179
  const activated = new Map;
@@ -184,10 +184,10 @@ var layer = Layer.effect(Service84, Effect.gen(function* () {
184
184
  activated.set(projectID, now);
185
185
  const row = yield* db.update(ProjectTable2).set({ time_active: now, time_updated: sql`${ProjectTable2.time_updated}` }).where(eq(ProjectTable2.id, projectID)).returning().get().pipe(Effect.orDie);
186
186
  if (row)
187
- yield* bus.publish(Event20.Updated, fromRow(row));
187
+ yield* bus.publish(Event17.Updated, fromRow(row));
188
188
  });
189
189
  const cached = Effect.fnUntraced(function* (dir) {
190
- return yield* fs.readFileString(path.join(dir, "opencode")).pipe(Effect.map((value) => value.trim()), Effect.map((value) => value ? ID17.make(value) : undefined), Effect.orElseSucceed(() => {
190
+ return yield* fs.readFileString(path.join(dir, "opencode")).pipe(Effect.map((value) => value.trim()), Effect.map((value) => value ? ID13.make(value) : undefined), Effect.orElseSucceed(() => {
191
191
  return;
192
192
  }));
193
193
  });
@@ -198,7 +198,7 @@ var layer = Layer.effect(Service84, Effect.gen(function* () {
198
198
  const normalized = url(origin);
199
199
  if (!normalized)
200
200
  return;
201
- return ID17.make(Hash.fast(`git-remote:${normalized}`));
201
+ return ID13.make(Hash.fast(`git-remote:${normalized}`));
202
202
  });
203
203
  function url(input) {
204
204
  const value = input.trim();
@@ -223,7 +223,32 @@ var layer = Layer.effect(Service84, Effect.gen(function* () {
223
223
  }
224
224
  const rootCommit = Effect.fnUntraced(function* (repo) {
225
225
  const root = (yield* git.history.rootCommits(repo))[0];
226
- return root ? ID17.make(root) : undefined;
226
+ return root ? ID13.make(root) : undefined;
227
+ });
228
+ const gitDiscover = Effect.fnUntraced(function* (dotGit) {
229
+ const repo = yield* git.repo.discover(AbsolutePath2.make(path.dirname(dotGit)));
230
+ if (!repo)
231
+ return { resolved: undefined, cacheable: false };
232
+ let cacheable = true;
233
+ const fallback = (value) => Effect.orElseSucceed(() => {
234
+ cacheable = false;
235
+ return value;
236
+ });
237
+ const previous = yield* cached(repo.commonDirectory);
238
+ const id = (yield* remote(repo).pipe(fallback(undefined))) ?? previous ?? (yield* rootCommit(repo).pipe(fallback(undefined)));
239
+ const canonical = repo.gitDirectory === repo.commonDirectory ? repo.worktree : yield* git.worktree.list(repo).pipe(Effect.map((items) => items.find((item) => item.kind === "main")?.directory ?? repo.worktree), fallback(repo.worktree));
240
+ const resolved = {
241
+ previous,
242
+ id: id ?? ID13.global,
243
+ directory: repo.worktree,
244
+ canonical,
245
+ vcs: { type: "git", store: repo.commonDirectory }
246
+ };
247
+ return { resolved, cacheable };
248
+ });
249
+ const gitCache = yield* Cache.make({
250
+ capacity: 512,
251
+ lookup: (key) => gitDiscover(AbsolutePath2.make(key.slice(0, key.indexOf("\x00"))))
227
252
  });
228
253
  const hgRoot = Effect.fnUntraced(function* (worktree) {
229
254
  const result = yield* proc.run(ChildProcess.make("hg", ["log", "-r", "roots(all())", "-T", `{node}
@@ -239,7 +264,7 @@ var layer = Layer.effect(Service84, Effect.gen(function* () {
239
264
  return;
240
265
  const node = result.stdout.toString("utf8").split(`
241
266
  `).map((item) => item.trim()).filter(Boolean).toSorted()[0];
242
- return node ? ID17.make(node) : undefined;
267
+ return node ? ID13.make(node) : undefined;
243
268
  });
244
269
  const hgDiscover = Effect.fnUntraced(function* (dotHg) {
245
270
  const worktree = AbsolutePath2.make(path.dirname(dotHg));
@@ -247,7 +272,7 @@ var layer = Layer.effect(Service84, Effect.gen(function* () {
247
272
  const id = previous ?? (yield* hgRoot(worktree));
248
273
  return {
249
274
  previous,
250
- id: id ?? ID17.global,
275
+ id: id ?? ID13.global,
251
276
  directory: worktree,
252
277
  vcs: { type: "hg", store: dotHg }
253
278
  };
@@ -258,18 +283,13 @@ var layer = Layer.effect(Service84, Effect.gen(function* () {
258
283
  const native = yield* fs.up({ targets: [".git", ".hg"], start: directory, mode: "first" }).pipe(Effect.map((matches) => matches[0]), Effect.orElseSucceed(() => {
259
284
  return;
260
285
  }));
261
- const repo = native && path.basename(native) === ".git" ? yield* git.repo.discover(AbsolutePath2.make(path.dirname(native))) : undefined;
262
- if (repo) {
263
- const previous = yield* cached(repo.commonDirectory);
264
- const id = (yield* remote(repo)) ?? previous ?? (yield* rootCommit(repo));
265
- const canonical = repo.gitDirectory === repo.commonDirectory ? repo.worktree : yield* git.worktree.list(repo).pipe(Effect.map((items) => items.find((item) => item.kind === "main")?.directory ?? repo.worktree), Effect.orElseSucceed(() => repo.worktree));
266
- return yield* save({
267
- previous,
268
- id: id ?? ID17.global,
269
- directory: repo.worktree,
270
- canonical,
271
- vcs: { type: "git", store: repo.commonDirectory }
272
- });
286
+ if (native && path.basename(native) === ".git") {
287
+ const dotGit = AbsolutePath2.make(native);
288
+ const fingerprint = yield* git.repo.fingerprint(dotGit);
289
+ const key = `${dotGit}\x00${fingerprint}`;
290
+ const discovered = fingerprint ? yield* Cache.get(gitCache, key).pipe(Effect.tap((entry) => entry.cacheable ? Effect.void : Cache.invalidate(gitCache, key))) : yield* gitDiscover(dotGit);
291
+ if (discovered.resolved)
292
+ return yield* save(discovered.resolved);
273
293
  }
274
294
  const hg = native && path.basename(native) === ".hg" ? yield* hgDiscover(AbsolutePath2.make(native)) : undefined;
275
295
  if (hg) {
@@ -279,7 +299,7 @@ var layer = Layer.effect(Service84, Effect.gen(function* () {
279
299
  });
280
300
  }
281
301
  return yield* save({
282
- id: ID17.make(Hash.fast(`directory:${directory}`)),
302
+ id: ID13.make(Hash.fast(`directory:${directory}`)),
283
303
  directory,
284
304
  canonical: directory,
285
305
  vcs: undefined
@@ -288,7 +308,7 @@ var layer = Layer.effect(Service84, Effect.gen(function* () {
288
308
  const sweep = Effect.fn("Project.sweep")(function* () {
289
309
  const cutoff = Date.now() - Duration.toMillis(SWEEP_INTERVAL);
290
310
  const idle = and(isNull(ProjectTable2.time_archived), lt(ProjectTable2.time_updated, cutoff), lt(ProjectTable2.time_active, cutoff));
291
- const projects = yield* db.select({ id: ProjectTable2.id, canonical: ProjectTable2.worktree }).from(ProjectTable2).where(and(idle, ne(ProjectTable2.id, ID17.global))).all().pipe(Effect.orDie);
311
+ const projects = yield* db.select({ id: ProjectTable2.id, canonical: ProjectTable2.worktree }).from(ProjectTable2).where(and(idle, ne(ProjectTable2.id, ID13.global))).all().pipe(Effect.orDie);
292
312
  const worktrees = yield* db.select().from(WorktreeTable2).all().pipe(Effect.orDie);
293
313
  const exists = (directory) => fs.exists(directory).pipe(Effect.orElseSucceed(() => true));
294
314
  yield* Effect.forEach(projects, Effect.fnUntraced(function* (project) {
@@ -301,23 +321,23 @@ var layer = Layer.effect(Service84, Effect.gen(function* () {
301
321
  return;
302
322
  const row = yield* db.update(ProjectTable2).set(main ? { worktree: main.directory } : { time_archived: Date.now(), time_updated: sql`${ProjectTable2.time_updated}` }).where(and(eq(ProjectTable2.id, project.id), idle)).returning().get().pipe(Effect.orDie);
303
323
  if (row)
304
- yield* bus.publish(Event20.Updated, fromRow(row));
324
+ yield* bus.publish(Event17.Updated, fromRow(row));
305
325
  }), { concurrency: 8, discard: true });
306
326
  });
307
- return Service84.of({ list, update, activate, resolve, sweep });
327
+ return Service79.of({ list, update, activate, resolve, sweep });
308
328
  }));
309
- var node88 = makeGlobalNode({
310
- service: Service84,
329
+ var node82 = makeGlobalNode({
330
+ service: Service79,
311
331
  layer,
312
- deps: [node90, node91, FSUtil.node, node89, AppProcess.node]
332
+ deps: [node90, node91, FSUtil.node, node83, AppProcess.node]
313
333
  });
314
334
  var sweepNode2 = makeGlobalNode({
315
335
  name: "project-archive-sweep",
316
336
  layer: Layer.effectDiscard(Effect.gen(function* () {
317
- const project = yield* Service84;
337
+ const project = yield* Service79;
318
338
  yield* project.sweep().pipe(Effect.ignoreCause({ log: "Error", message: "Project archive sweep failed" }), Effect.repeat(Schedule.spaced(SWEEP_INTERVAL)), Effect.forkScoped);
319
339
  })),
320
- deps: [node88]
340
+ deps: [node82]
321
341
  });
322
342
 
323
- export { ID17, Vcs2, Current2, Info29, UpdateInput3, NotFoundError12, root2, Service84, node88, sweepNode2, exports_project };
343
+ export { ID13, Vcs2, Current2, Info24, UpdateInput3, NotFoundError11, root2, Service79, node82, sweepNode2, exports_project };
@@ -1,26 +1,26 @@
1
1
  import {
2
2
  SessionMessage2
3
- } from "./variant-gftt206x.js";
3
+ } from "./file-mutation-gftt206x.js";
4
4
  import {
5
5
  MessageDecodeError2
6
- } from "./variant-drerwy6v.js";
6
+ } from "./file-mutation-jyfkkafv.js";
7
7
  import {
8
8
  InitializationBlocked2,
9
9
  read3
10
- } from "./variant-masd7ga8.js";
10
+ } from "./file-mutation-jchrqzf6.js";
11
11
  import {
12
12
  SessionMessageTable2
13
- } from "./variant-998yhzzq.js";
13
+ } from "./file-mutation-998yhzzq.js";
14
14
  import {
15
15
  initial2,
16
16
  preview3
17
- } from "./variant-jkg2pe84.js";
17
+ } from "./file-mutation-dk5xnaxx.js";
18
18
  import {
19
19
  messageToText2
20
- } from "./variant-v2r1d0zg.js";
20
+ } from "./file-mutation-v2r1d0zg.js";
21
21
  import {
22
22
  __export
23
- } from "./variant-9rqn6x4v.js";
23
+ } from "./file-mutation-9rqn6x4v.js";
24
24
 
25
25
  // src/session/history.ts
26
26
  var exports_history = {};
@@ -32,7 +32,7 @@ __export(exports_history, {
32
32
  entriesForRunner: () => entriesForRunner2,
33
33
  firstUserMessage: () => firstUserMessage2,
34
34
  isNativeCompaction: () => isNativeCompaction2,
35
- load: () => load4,
35
+ load: () => load5,
36
36
  preview: () => preview2
37
37
  });
38
38
  import { and, asc, desc, eq, gte, lt, or, sql } from "drizzle-orm";
@@ -88,7 +88,7 @@ var withRecentText = Effect.fnUntraced(function* (db, sessionID, entries) {
88
88
  `);
89
89
  return [{ ...first, message: { ...compaction, metadata: { ...compaction.metadata, recent } } }, ...entries.slice(1)];
90
90
  });
91
- var load4 = Effect.fn("SessionHistory.load")(function* (db, sessionID, boundary) {
91
+ var load5 = Effect.fn("SessionHistory.load")(function* (db, sessionID, boundary) {
92
92
  return (yield* messageEntries(db, sessionID, boundary)).map((entry) => entry.message);
93
93
  });
94
94
  var entriesForRunner2 = Effect.fn("SessionHistory.entriesForRunner")(function* (db, sessionID, instructions, boundary) {
@@ -124,4 +124,4 @@ var firstUserMessage2 = Effect.fn("SessionHistory.firstUserMessage")(function* (
124
124
  return message?.type === "user" ? message : undefined;
125
125
  });
126
126
 
127
- export { isNativeCompaction2, NativeWindow2, decodeMessageRowSync2, decodeMessageRow2, load4, entriesForRunner2, preview2, firstUserMessage2, exports_history };
127
+ export { isNativeCompaction2, NativeWindow2, decodeMessageRowSync2, decodeMessageRow2, load5, entriesForRunner2, preview2, firstUserMessage2, exports_history };
@@ -1,38 +1,38 @@
1
1
  import {
2
2
  mergeOverlay2,
3
3
  mergeHeaders2
4
- } from "./variant-x286q59v.js";
4
+ } from "./file-mutation-fwrhh8te.js";
5
5
  import {
6
6
  mergeCapabilities2
7
- } from "./variant-myvbs686.js";
7
+ } from "./file-mutation-0j822yer.js";
8
8
  import {
9
9
  latest2,
10
- Service73
11
- } from "./variant-1f6s4ptb.js";
10
+ Service51
11
+ } from "./file-mutation-fntjqd6t.js";
12
12
  import {
13
13
  supports2,
14
- resolve2
15
- } from "./variant-ch1sjct1.js";
14
+ resolve4
15
+ } from "./file-mutation-7be1feys.js";
16
16
  import {
17
17
  observe2
18
- } from "./variant-6pjqjmy2.js";
18
+ } from "./file-mutation-6pjqjmy2.js";
19
19
  import {
20
20
  __export
21
- } from "./variant-9rqn6x4v.js";
21
+ } from "./file-mutation-9rqn6x4v.js";
22
22
 
23
23
  // src/config/plugin/provider.ts
24
24
  var exports_provider = {};
25
25
  __export(exports_provider, {
26
26
  ConfigProviderPlugin: () => exports_provider,
27
- Plugin: () => Plugin41
27
+ Plugin: () => Plugin38
28
28
  });
29
29
  import { define } from "@opencode/plugin/effect/plugin";
30
30
  import { Money } from "@opencode/schema/money";
31
31
  import { Effect } from "effect";
32
- var Plugin41 = define({
32
+ var Plugin38 = define({
33
33
  id: "opencode.config.provider",
34
34
  effect: Effect.fn(function* (ctx) {
35
- const config = yield* Service73;
35
+ const config = yield* Service51;
36
36
  const loaded = yield* observe2(config, ctx.event, ctx.integration.reload().pipe(Effect.andThen(ctx.provider.reload())));
37
37
  yield* ctx.integration.transform((integrations) => {
38
38
  for (const [id, provider] of configuredProviders(loaded.entries)) {
@@ -165,7 +165,7 @@ var Plugin41 = define({
165
165
  models.update(providerID, id, (model) => {
166
166
  if (config.capabilities?.reasoning !== undefined)
167
167
  model.variants = [
168
- ...resolve2({ ...model, package: model.package ?? models.provider.get(providerID)?.provider.package }, supports2(config.capabilities.reasoning))
168
+ ...resolve4({ ...model, package: model.package ?? models.provider.get(providerID)?.provider.package }, supports2(config.capabilities.reasoning))
169
169
  ];
170
170
  if (config.variants !== undefined) {
171
171
  model.variants ??= [];
@@ -201,7 +201,7 @@ var Plugin41 = define({
201
201
  if (config.variants === undefined && config.capabilities?.reasoning === undefined && (!source?.base || repackaged))
202
202
  models.update(providerID, id, (model) => {
203
203
  model.variants = [
204
- ...resolve2({
204
+ ...resolve4({
205
205
  ...model,
206
206
  package: model.package ?? models.provider.get(providerID)?.provider.package
207
207
  })
@@ -216,4 +216,4 @@ function configuredProviders(entries) {
216
216
  return entries.filter((entry) => entry.type === "document").flatMap((file) => Object.entries(file.info.providers ?? {}));
217
217
  }
218
218
 
219
- export { Plugin41, exports_provider };
219
+ export { Plugin38, exports_provider };