@opencode/core 0.0.0-dev-20640 → 0.0.0-dev-20644

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 (779) hide show
  1. package/dist/account/sql.js +1 -1
  2. package/dist/agent.js +81 -81
  3. package/dist/aisdk-native.js +89 -89
  4. package/dist/aisdk.js +94 -94
  5. package/dist/app.js +9 -9
  6. package/dist/bus.js +69 -69
  7. package/dist/chunks/{kv-pgdq0m2s.js → reference-04j0x0ww.js} +6 -6
  8. package/dist/chunks/{kv-wh3mwy9y.js → reference-05xfxpq7.js} +5 -5
  9. package/dist/chunks/{kv-04bfvmpq.js → reference-0aacj8rv.js} +3 -3
  10. package/dist/chunks/{kv-hcbveym2.js → reference-0anetptk.js} +11 -11
  11. package/dist/chunks/{kv-8bk2q5by.js → reference-0ev02b6f.js} +16 -16
  12. package/dist/chunks/{kv-rf80fxgj.js → reference-0nde5ztd.js} +5 -5
  13. package/dist/chunks/{kv-0paq2nw3.js → reference-0paq2nw3.js} +1 -1
  14. package/dist/chunks/{kv-9kf9wkxz.js → reference-0skng5dr.js} +7 -7
  15. package/dist/chunks/{kv-0vbcp93d.js → reference-0vbcp93d.js} +2 -2
  16. package/dist/chunks/{kv-g549jxts.js → reference-10pc31tr.js} +42 -42
  17. package/dist/chunks/{kv-3ehr1n9z.js → reference-1a1xd1b3.js} +36 -36
  18. package/dist/chunks/{kv-1dazxqgg.js → reference-1dazxqgg.js} +2 -2
  19. package/dist/chunks/{kv-d1ve849e.js → reference-1et4t6yv.js} +20 -20
  20. package/dist/chunks/reference-1sb9m88v.js +253 -0
  21. package/dist/chunks/{kv-bx744vwq.js → reference-1xmbdwss.js} +5 -5
  22. package/dist/chunks/{kv-mfqp6xfm.js → reference-1ygqh575.js} +6 -6
  23. package/dist/chunks/{kv-3pbt6ms1.js → reference-2194chap.js} +15 -15
  24. package/dist/chunks/{kv-2a5m3afh.js → reference-2a5m3afh.js} +1 -1
  25. package/dist/chunks/{kv-ryj782zy.js → reference-2avx1wba.js} +11 -11
  26. package/dist/chunks/{kv-g1sxm558.js → reference-2eegacq4.js} +8 -8
  27. package/dist/chunks/{kv-0y3sqs0q.js → reference-2mq34jqw.js} +2 -2
  28. package/dist/chunks/{kv-hmkvz94f.js → reference-2p2thyt8.js} +14 -14
  29. package/dist/chunks/{kv-g4sw2epc.js → reference-2wgr0bg0.js} +31 -31
  30. package/dist/chunks/{kv-1k745sen.js → reference-2zztsz65.js} +8 -8
  31. package/dist/chunks/{kv-6xtnp6pv.js → reference-3470gd9h.js} +16 -16
  32. package/dist/chunks/{kv-150yg2gd.js → reference-3801kdgp.js} +5 -5
  33. package/dist/chunks/{kv-h2b79v29.js → reference-3cegwx68.js} +2 -2
  34. package/dist/chunks/{kv-hydafzv0.js → reference-3eescsqs.js} +45 -45
  35. package/dist/chunks/{kv-3fc6dm20.js → reference-3fc6dm20.js} +1 -1
  36. package/dist/chunks/{kv-qqmhc4xj.js → reference-3g9wyfya.js} +42 -42
  37. package/dist/chunks/{kv-3hepkmqq.js → reference-3hepkmqq.js} +1 -1
  38. package/dist/chunks/{kv-3smtnn6g.js → reference-3smtnn6g.js} +1 -1
  39. package/dist/chunks/{kv-3tvqynh2.js → reference-3tvqynh2.js} +1 -1
  40. package/dist/chunks/{kv-3zsf4n22.js → reference-3zsf4n22.js} +1 -1
  41. package/dist/chunks/{kv-bkvz5s71.js → reference-4dz5bemh.js} +4 -4
  42. package/dist/chunks/{kv-n72xc886.js → reference-4eekcfr3.js} +42 -42
  43. package/dist/chunks/{kv-vy4j84c5.js → reference-4qyddrjz.js} +12 -12
  44. package/dist/chunks/{kv-1f7zsz3w.js → reference-4qzt904k.js} +33 -33
  45. package/dist/chunks/{kv-4mtsj6py.js → reference-4r3amq6s.js} +17 -17
  46. package/dist/chunks/{kv-4ts7tf6z.js → reference-4ts7tf6z.js} +2 -2
  47. package/dist/chunks/{kv-hq1swd7v.js → reference-50eqagw9.js} +5 -5
  48. package/dist/chunks/{kv-xve1yjb3.js → reference-52jg0a30.js} +15 -15
  49. package/dist/chunks/{kv-54ma36ye.js → reference-54ma36ye.js} +1 -1
  50. package/dist/chunks/{kv-xvc4631w.js → reference-5c42fwyc.js} +13 -13
  51. package/dist/chunks/{kv-5daktx2q.js → reference-5daktx2q.js} +1 -1
  52. package/dist/chunks/{kv-5m9w47nd.js → reference-5m9w47nd.js} +1 -1
  53. package/dist/chunks/{kv-5t3nmthw.js → reference-5t3nmthw.js} +2 -2
  54. package/dist/chunks/{kv-tpw6cwsb.js → reference-5xtgfte3.js} +8 -8
  55. package/dist/chunks/reference-619r8v3y.js +18 -0
  56. package/dist/chunks/{kv-aa77x952.js → reference-61q39vzt.js} +22 -22
  57. package/dist/chunks/{kv-5pyjqqve.js → reference-63db42yp.js} +2 -2
  58. package/dist/chunks/{kv-bwaap7p9.js → reference-6c09zaff.js} +1 -1
  59. package/dist/chunks/{kv-6858qs0d.js → reference-6jc1b2h3.js} +13 -13
  60. package/dist/chunks/{kv-apeyh75a.js → reference-6jsvsf2v.js} +43 -43
  61. package/dist/chunks/{kv-50jx1ftv.js → reference-6t2k45be.js} +17 -17
  62. package/dist/chunks/{kv-y8wcetdn.js → reference-6v23mrsw.js} +11 -11
  63. package/dist/chunks/{kv-6xb47vfp.js → reference-6xb47vfp.js} +1 -1
  64. package/dist/chunks/{kv-r7kk08kn.js → reference-6zr4h8f4.js} +20 -20
  65. package/dist/chunks/{kv-90rwhrb1.js → reference-7223d1z5.js} +13 -13
  66. package/dist/chunks/{kv-a8vnbk5s.js → reference-72kjf32t.js} +41 -41
  67. package/dist/chunks/{kv-a1gpj94z.js → reference-73tb2d7t.js} +3 -3
  68. package/dist/chunks/{kv-e8wga5c8.js → reference-76kk80dz.js} +24 -24
  69. package/dist/chunks/{kv-ew12th47.js → reference-7aj7xv8n.js} +16 -16
  70. package/dist/chunks/{kv-7bmhse3q.js → reference-7bmhse3q.js} +1 -1
  71. package/dist/chunks/{kv-3axgwepp.js → reference-7rpx7sq4.js} +26 -26
  72. package/dist/chunks/{kv-9y0z6c2k.js → reference-7sq9ks3h.js} +8 -8
  73. package/dist/chunks/{kv-0mxj9fd6.js → reference-7zpbt3aj.js} +9 -9
  74. package/dist/chunks/{kv-606mcbpt.js → reference-83t40xbf.js} +27 -27
  75. package/dist/chunks/{kv-00zna71j.js → reference-83xsvayb.js} +3 -3
  76. package/dist/chunks/{kv-144xedv6.js → reference-84gzjtx2.js} +37 -37
  77. package/dist/chunks/{kv-1dvck2a7.js → reference-84h8c373.js} +2 -2
  78. package/dist/chunks/{kv-84txncab.js → reference-84txncab.js} +1 -1
  79. package/dist/chunks/{kv-n2srvep7.js → reference-86qzxe6p.js} +4 -4
  80. package/dist/chunks/{kv-018bn4f4.js → reference-87jy24nc.js} +15 -15
  81. package/dist/chunks/{kv-yhgbfdfr.js → reference-88ywh4qk.js} +10 -10
  82. package/dist/chunks/{kv-vpjxjfws.js → reference-8bdbvaz4.js} +4 -4
  83. package/dist/chunks/{kv-8d7r5vzw.js → reference-8d7r5vzw.js} +1 -1
  84. package/dist/chunks/{kv-mrwm8afd.js → reference-8mwpm1an.js} +15 -15
  85. package/dist/chunks/{kv-x61eq3et.js → reference-8t7rhgz3.js} +14 -14
  86. package/dist/chunks/{kv-dpfrkhds.js → reference-8tqdxazn.js} +8 -8
  87. package/dist/chunks/{kv-qvy3y2q7.js → reference-94xjc4x3.js} +32 -32
  88. package/dist/chunks/{kv-314vn2g9.js → reference-9angfs7f.js} +14 -14
  89. package/dist/chunks/{kv-fsh2y1zv.js → reference-9edtgxtv.js} +30 -30
  90. package/dist/chunks/{kv-c6sqj817.js → reference-9k28mjf9.js} +4 -4
  91. package/dist/chunks/{kv-pnedbpq6.js → reference-9vqr2gqg.js} +11 -11
  92. package/dist/chunks/{kv-jpqeh2wc.js → reference-a3c7ahw6.js} +4 -4
  93. package/dist/chunks/{kv-nrdmrqsx.js → reference-a8bn8zg0.js} +4 -4
  94. package/dist/chunks/{kv-n9tt80yh.js → reference-aabqg1yt.js} +5 -5
  95. package/dist/chunks/{kv-aaet6srn.js → reference-aaet6srn.js} +2 -2
  96. package/dist/chunks/{kv-zcrspsvn.js → reference-afdssyjb.js} +4 -4
  97. package/dist/chunks/{kv-qqgnk5sa.js → reference-ag4901q7.js} +6 -6
  98. package/dist/chunks/{kv-f9pxsqr6.js → reference-ajgzqw9a.js} +4 -4
  99. package/dist/chunks/{kv-amzhydp5.js → reference-amzhydp5.js} +3 -3
  100. package/dist/chunks/{kv-zsp613gn.js → reference-b251r90g.js} +325 -325
  101. package/dist/chunks/{kv-9yev5r92.js → reference-b64x0h7w.js} +62 -62
  102. package/dist/chunks/{kv-b6gygkdw.js → reference-b6gygkdw.js} +2 -2
  103. package/dist/chunks/{kv-qh99jyhd.js → reference-b7mddd13.js} +45 -45
  104. package/dist/chunks/{kv-hcbpprgx.js → reference-b8cf1jne.js} +1 -1
  105. package/dist/chunks/{kv-jg575x7y.js → reference-bpmpjnmg.js} +35 -35
  106. package/dist/chunks/{kv-0fgqvstr.js → reference-bpy139ph.js} +11 -11
  107. package/dist/chunks/{kv-a92h78km.js → reference-bvc4cg79.js} +5 -5
  108. package/dist/chunks/{kv-9hwaqfsw.js → reference-bx0gyb4h.js} +5 -5
  109. package/dist/chunks/{kv-r3s59a3c.js → reference-by0ebg82.js} +24 -24
  110. package/dist/chunks/{kv-0dm71e41.js → reference-bzh6v3xd.js} +15 -15
  111. package/dist/chunks/{kv-6w1vezwk.js → reference-c5pjp08j.js} +19 -19
  112. package/dist/chunks/{kv-n4grcdw5.js → reference-cag15tqf.js} +16 -16
  113. package/dist/chunks/{kv-jktqzjpa.js → reference-cfsekr6v.js} +8 -8
  114. package/dist/chunks/{kv-sfxc0p81.js → reference-cftre4vt.js} +34 -34
  115. package/dist/chunks/{kv-qe26s0zb.js → reference-cq9vh2fv.js} +8 -8
  116. package/dist/chunks/{kv-xm2v5ye2.js → reference-cqdnmg2r.js} +11 -11
  117. package/dist/chunks/{kv-re39fj6q.js → reference-cvnd2j5s.js} +3 -3
  118. package/dist/chunks/{kv-dpnnxfwt.js → reference-cyya37fe.js} +9 -9
  119. package/dist/chunks/{kv-291skbwy.js → reference-cznc04wa.js} +6 -6
  120. package/dist/chunks/{kv-9phyjc4n.js → reference-d3tcrfr2.js} +11 -11
  121. package/dist/chunks/{kv-906tg66d.js → reference-d8h4y8x2.js} +11 -11
  122. package/dist/chunks/{kv-g3ndzw54.js → reference-db7cgdsw.js} +54 -54
  123. package/dist/chunks/{kv-qfhmckpv.js → reference-dcb7qyjw.js} +14 -14
  124. package/dist/chunks/{kv-v2p84kh2.js → reference-defjrdcv.js} +88 -88
  125. package/dist/chunks/{kv-ygws11mx.js → reference-dkg05a5w.js} +25 -25
  126. package/dist/chunks/{kv-q2pzxhp3.js → reference-dppwmjh0.js} +7 -7
  127. package/dist/chunks/{kv-brsymgq7.js → reference-dvc89yjx.js} +8 -8
  128. package/dist/chunks/{kv-xr5yvd35.js → reference-dwajttkg.js} +8 -8
  129. package/dist/chunks/{kv-ef5x83kb.js → reference-ef5x83kb.js} +1 -1
  130. package/dist/chunks/{kv-etq0c3wd.js → reference-etq0c3wd.js} +1 -1
  131. package/dist/chunks/{kv-zsr4wwhv.js → reference-f29mbr7f.js} +4 -4
  132. package/dist/chunks/{kv-fhq4beaq.js → reference-f3bkb0dd.js} +25 -25
  133. package/dist/chunks/{kv-3v7e0nj5.js → reference-f43c2727.js} +22 -22
  134. package/dist/chunks/{kv-71az546q.js → reference-f75zav2x.js} +2 -2
  135. package/dist/chunks/{kv-ct739ed2.js → reference-fhyq4rkh.js} +36 -36
  136. package/dist/chunks/{kv-5h5wp7dv.js → reference-fpswryxc.js} +16 -16
  137. package/dist/chunks/{kv-n37c4crj.js → reference-ftjf86m5.js} +9 -9
  138. package/dist/chunks/{kv-wwctf8pa.js → reference-fvqj4f3c.js} +11 -11
  139. package/dist/chunks/{kv-w19d8598.js → reference-g5w8qwbj.js} +7 -7
  140. package/dist/chunks/{kv-v1m0bgap.js → reference-g9s62h09.js} +33 -33
  141. package/dist/chunks/{kv-f87x761z.js → reference-g9y2cd3z.js} +14 -14
  142. package/dist/chunks/{kv-b1vjxa7a.js → reference-gcrbmep4.js} +7 -7
  143. package/dist/chunks/{kv-gd4qta3r.js → reference-gd4qta3r.js} +1 -1
  144. package/dist/chunks/{kv-k70p9jzb.js → reference-gh5z95q3.js} +9 -9
  145. package/dist/chunks/{kv-weef4h0t.js → reference-gjnvnc4y.js} +27 -27
  146. package/dist/chunks/{kv-6ze8z48e.js → reference-gpp0brcr.js} +5 -5
  147. package/dist/chunks/{kv-addxnjmp.js → reference-gqtdsdt7.js} +4 -4
  148. package/dist/chunks/{kv-89xk2mrn.js → reference-gtzbc217.js} +21 -21
  149. package/dist/chunks/{kv-hxxy4jtt.js → reference-gvt3vmzy.js} +5 -5
  150. package/dist/chunks/{kv-gxxkvswg.js → reference-gwzp9a94.js} +7 -7
  151. package/dist/chunks/{kv-ryd2rdzb.js → reference-h4ckqw4f.js} +8 -8
  152. package/dist/chunks/{kv-28r17msq.js → reference-h5brs6ad.js} +18 -18
  153. package/dist/chunks/{kv-n0571dh0.js → reference-h6d45qjv.js} +18 -18
  154. package/dist/chunks/{kv-h6vf3j39.js → reference-h6vf3j39.js} +1 -1
  155. package/dist/chunks/reference-hbxrrpsy.js +26 -0
  156. package/dist/chunks/{kv-tnxzcmvm.js → reference-he0vrkkp.js} +4 -4
  157. package/dist/chunks/{kv-s2xdefjk.js → reference-hgc4p3n8.js} +12 -12
  158. package/dist/chunks/{kv-05jdtgp8.js → reference-hgvy4kar.js} +10 -10
  159. package/dist/chunks/{kv-nhkczpkc.js → reference-hndc3k9c.js} +9 -9
  160. package/dist/chunks/{kv-htjphyk5.js → reference-ht8cmbj4.js} +17 -17
  161. package/dist/chunks/{kv-j56e64zr.js → reference-j56e64zr.js} +1 -1
  162. package/dist/chunks/{kv-t1nf5an5.js → reference-jc4g2yrv.js} +11 -11
  163. package/dist/chunks/{kv-sppc6c79.js → reference-je2kf47w.js} +5 -5
  164. package/dist/chunks/{kv-ee8xpbar.js → reference-jnrqkn6c.js} +30 -30
  165. package/dist/chunks/{kv-tsq8mx3a.js → reference-jnvd0kyr.js} +9 -9
  166. package/dist/chunks/{kv-q95kjj2t.js → reference-jpdp1vnh.js} +24 -24
  167. package/dist/chunks/{kv-d5q12aqz.js → reference-k6tv6mb5.js} +4 -4
  168. package/dist/chunks/{kv-9e5bzkjp.js → reference-kb9j3d72.js} +3 -3
  169. package/dist/chunks/{kv-6r5yv9td.js → reference-kvffqfe9.js} +29 -29
  170. package/dist/chunks/{kv-qj944938.js → reference-m2wppme0.js} +19 -19
  171. package/dist/chunks/{kv-tdhpb3v5.js → reference-m39cm8ca.js} +15 -15
  172. package/dist/chunks/{kv-m3fdjcah.js → reference-m3fdjcah.js} +1 -1
  173. package/dist/chunks/{kv-xbq5pdxh.js → reference-m4c3aw93.js} +29 -29
  174. package/dist/chunks/{kv-qey3k095.js → reference-m6rwzraj.js} +3 -3
  175. package/dist/chunks/{kv-m9w0rfyh.js → reference-m9w0rfyh.js} +1 -1
  176. package/dist/chunks/{kv-as8ynvdv.js → reference-mhb1xyd0.js} +26 -26
  177. package/dist/chunks/{kv-c1eyt60v.js → reference-mp7381ha.js} +20 -20
  178. package/dist/chunks/{kv-hp04rdxh.js → reference-mszqqr5a.js} +8 -8
  179. package/dist/chunks/{kv-y2vqkag3.js → reference-nbgrff9b.js} +6 -6
  180. package/dist/chunks/{kv-y6d2apqa.js → reference-nfpgxjj6.js} +12 -12
  181. package/dist/chunks/{kv-3fj5q6bc.js → reference-nhsamrrc.js} +43 -43
  182. package/dist/chunks/{kv-11nb2wm6.js → reference-nk5qe5vz.js} +21 -21
  183. package/dist/chunks/{kv-r8xr0va3.js → reference-nkf980df.js} +4 -4
  184. package/dist/chunks/{kv-07t56emn.js → reference-ns7haffg.js} +85 -85
  185. package/dist/chunks/{kv-ebwqfc2a.js → reference-nx7bjzyg.js} +5 -5
  186. package/dist/chunks/{kv-dpkg50ah.js → reference-nxm207yx.js} +4 -4
  187. package/dist/chunks/{kv-50202j3g.js → reference-p9yds72b.js} +32 -32
  188. package/dist/chunks/{kv-2cwhkz2n.js → reference-pakybbh2.js} +19 -19
  189. package/dist/chunks/{kv-2fcn0a3n.js → reference-pg4qvhje.js} +24 -24
  190. package/dist/chunks/{kv-at6chbkf.js → reference-pgp5awqq.js} +23 -23
  191. package/dist/chunks/{kv-6w9b2v2t.js → reference-pj60644h.js} +11 -11
  192. package/dist/chunks/{kv-pjvnvgmy.js → reference-pjvnvgmy.js} +1 -1
  193. package/dist/chunks/{kv-pknna89w.js → reference-pknna89w.js} +1 -1
  194. package/dist/chunks/{kv-53dxyvp1.js → reference-pqwyxwmm.js} +13 -13
  195. package/dist/chunks/{kv-91xts6ft.js → reference-prryrcpd.js} +54 -54
  196. package/dist/chunks/{kv-q0xm7vwc.js → reference-q0xm7vwc.js} +2 -2
  197. package/dist/chunks/{kv-797efr59.js → reference-q3m1smny.js} +13 -13
  198. package/dist/chunks/{kv-4hsstsq2.js → reference-q538z9pc.js} +18 -18
  199. package/dist/chunks/{kv-pyfe26s8.js → reference-qbe3snec.js} +10 -10
  200. package/dist/chunks/{kv-kykapc73.js → reference-qc6fgdwa.js} +16 -16
  201. package/dist/chunks/{kv-qgn6gcr1.js → reference-qgn6gcr1.js} +1 -1
  202. package/dist/chunks/{kv-n43tnyyv.js → reference-qjeyhcp2.js} +30 -30
  203. package/dist/chunks/{kv-2sejkfem.js → reference-qmqgtz8f.js} +9 -9
  204. package/dist/chunks/{kv-ff79g11c.js → reference-qmrj7qv4.js} +23 -23
  205. package/dist/chunks/{kv-qnc92qwc.js → reference-qnc92qwc.js} +1 -1
  206. package/dist/chunks/{kv-qsdy395h.js → reference-qsdy395h.js} +1 -1
  207. package/dist/chunks/{kv-qxjc9qry.js → reference-qxjc9qry.js} +3 -3
  208. package/dist/chunks/{kv-zyk1yjk8.js → reference-qygbw77c.js} +5 -5
  209. package/dist/chunks/{kv-8cseh6jw.js → reference-r0xwa5b9.js} +16 -16
  210. package/dist/chunks/{kv-dje26vdb.js → reference-r0yjwmba.js} +6 -6
  211. package/dist/chunks/{kv-7c9bbt45.js → reference-r656bzgr.js} +4 -4
  212. package/dist/chunks/{kv-jn9040r2.js → reference-r8kdp16q.js} +32 -32
  213. package/dist/chunks/{kv-ef5xnz50.js → reference-rb1fbfth.js} +22 -22
  214. package/dist/chunks/{kv-rdw6cm16.js → reference-rdw6cm16.js} +1 -1
  215. package/dist/chunks/{kv-ncnm8wen.js → reference-rk1r2hx8.js} +1 -1
  216. package/dist/chunks/{kv-5rmvjxjt.js → reference-rkekhv0x.js} +20 -20
  217. package/dist/chunks/{kv-k318agvy.js → reference-rm3eewz3.js} +6 -6
  218. package/dist/chunks/{kv-ygz7vdjy.js → reference-rmg5xfkv.js} +20 -20
  219. package/dist/chunks/{kv-cghk8e58.js → reference-rnht7zsd.js} +20 -20
  220. package/dist/chunks/{kv-kpg2gynq.js → reference-rpqbf71x.js} +28 -28
  221. package/dist/chunks/{kv-rqwx90yh.js → reference-rpwhq6pb.js} +3 -3
  222. package/dist/chunks/{kv-sanedfh0.js → reference-rrk1042z.js} +32 -32
  223. package/dist/chunks/{kv-0gscdz11.js → reference-s3pmgr9t.js} +44 -44
  224. package/dist/chunks/{kv-q7fq4b4a.js → reference-s8w3rjvj.js} +30 -30
  225. package/dist/chunks/{kv-bebjmbk5.js → reference-scsdzjr7.js} +12 -12
  226. package/dist/chunks/{kv-gk37k7rf.js → reference-sgdqa063.js} +35 -35
  227. package/dist/chunks/{kv-vn72gsba.js → reference-sqvzcy4n.js} +4 -4
  228. package/dist/chunks/{kv-vx3jgdek.js → reference-ss358qx3.js} +3 -3
  229. package/dist/chunks/{kv-t11fnep0.js → reference-t11fnep0.js} +4 -4
  230. package/dist/chunks/{kv-t6vsspdg.js → reference-t2fc4mz5.js} +7 -7
  231. package/dist/chunks/{kv-0knbg5a8.js → reference-t2ykdevs.js} +8 -8
  232. package/dist/chunks/{kv-qdq3033d.js → reference-tah2dmcr.js} +15 -15
  233. package/dist/chunks/{kv-tazgh4e4.js → reference-tazgh4e4.js} +1 -1
  234. package/dist/chunks/{kv-tcezcvh9.js → reference-tcezcvh9.js} +1 -1
  235. package/dist/chunks/{kv-8aj500b4.js → reference-td55a9w2.js} +23 -23
  236. package/dist/chunks/{kv-tdstcens.js → reference-tdstcens.js} +1 -1
  237. package/dist/chunks/{kv-a5wq81es.js → reference-tdw7b37v.js} +17 -17
  238. package/dist/chunks/{kv-4mwpykj0.js → reference-tegs1ycp.js} +6 -6
  239. package/dist/chunks/{kv-3dnqr9q0.js → reference-tmcwaswb.js} +10 -10
  240. package/dist/chunks/{kv-fkzjdf45.js → reference-tqcqmy0z.js} +176 -176
  241. package/dist/chunks/{kv-2qkz3cac.js → reference-tvy4pmrp.js} +3 -3
  242. package/dist/chunks/{kv-vz9np6hr.js → reference-ty1kjgn1.js} +38 -38
  243. package/dist/chunks/{kv-vk34wx83.js → reference-tyvap7pe.js} +32 -32
  244. package/dist/chunks/{kv-v2yhfrn9.js → reference-v01fwtwf.js} +10 -10
  245. package/dist/chunks/{kv-fpecnkgp.js → reference-v0es1rhs.js} +9 -9
  246. package/dist/chunks/{kv-wmnwwwhc.js → reference-v9bgj935.js} +20 -20
  247. package/dist/chunks/{kv-59j91h7p.js → reference-veanqdwt.js} +18 -18
  248. package/dist/chunks/{kv-veqvce7d.js → reference-veqvce7d.js} +1 -1
  249. package/dist/chunks/{kv-6443pe5d.js → reference-vpt24r21.js} +11 -11
  250. package/dist/chunks/{kv-504addgz.js → reference-vptjzd05.js} +12 -12
  251. package/dist/chunks/{kv-ey7zsb2z.js → reference-vvx487fg.js} +5 -5
  252. package/dist/chunks/{kv-q3djzwyg.js → reference-vyfd576n.js} +22 -22
  253. package/dist/chunks/{kv-vzs5sf6e.js → reference-vzs5sf6e.js} +1 -1
  254. package/dist/chunks/{kv-wh6zw745.js → reference-w39jehkq.js} +5 -5
  255. package/dist/chunks/{kv-w3wsvvr9.js → reference-w3wsvvr9.js} +1 -1
  256. package/dist/chunks/{kv-5thf4vwx.js → reference-w4xhwz3h.js} +11 -11
  257. package/dist/chunks/{kv-nt69khzf.js → reference-w62h0ejf.js} +16 -16
  258. package/dist/chunks/{kv-fz64p049.js → reference-wbtfkyzq.js} +19 -19
  259. package/dist/chunks/{kv-wd87259q.js → reference-wd87259q.js} +1 -1
  260. package/dist/chunks/{kv-1bf59rb9.js → reference-wfb8b895.js} +9 -9
  261. package/dist/chunks/{kv-9t7a50xb.js → reference-wv396vej.js} +6 -6
  262. package/dist/chunks/{kv-2xd3k6k6.js → reference-wz3q2ckh.js} +22 -22
  263. package/dist/chunks/{kv-rhvgmpzm.js → reference-x0agx93m.js} +5 -5
  264. package/dist/chunks/{kv-de52ckkz.js → reference-xf0nr9dv.js} +4 -4
  265. package/dist/chunks/{kv-xkntkrq7.js → reference-xkntkrq7.js} +2 -2
  266. package/dist/chunks/{kv-ad98q5fk.js → reference-xm3t5kx7.js} +4 -4
  267. package/dist/chunks/{kv-mae0k732.js → reference-xrzsv9ds.js} +9 -9
  268. package/dist/chunks/{kv-yd0qngcd.js → reference-y07dqpd7.js} +13 -13
  269. package/dist/chunks/{kv-yhq47pcp.js → reference-y0ty5fha.js} +6 -6
  270. package/dist/chunks/{kv-bezhzanq.js → reference-y15vpdnr.js} +9 -9
  271. package/dist/chunks/{kv-y1fvbwt7.js → reference-y1fvbwt7.js} +1 -1
  272. package/dist/chunks/{kv-r101cspy.js → reference-yaj5ebgj.js} +48 -48
  273. package/dist/chunks/{kv-tk8acvkq.js → reference-ybdpay6p.js} +17 -17
  274. package/dist/chunks/{kv-s1vq5vjj.js → reference-yfs5p2ka.js} +4 -4
  275. package/dist/chunks/{kv-y2g779vb.js → reference-ykw2g6qf.js} +20 -20
  276. package/dist/chunks/{kv-drmw43ea.js → reference-yt62qj12.js} +30 -30
  277. package/dist/chunks/{kv-1qa15gwt.js → reference-yww0r5a3.js} +15 -15
  278. package/dist/chunks/{kv-evpcrbn2.js → reference-yy493xsn.js} +20 -20
  279. package/dist/chunks/{kv-z0bkrqjs.js → reference-z0bkrqjs.js} +1 -1
  280. package/dist/chunks/{kv-vnnhbf40.js → reference-za77p82n.js} +6 -6
  281. package/dist/chunks/{kv-zr2ceqn5.js → reference-zr2ceqn5.js} +1 -1
  282. package/dist/chunks/{kv-zxq2ej10.js → reference-zxq2ej10.js} +1 -1
  283. package/dist/chunks/{kv-3m2w0hrx.js → reference-zzpvks7y.js} +36 -36
  284. package/dist/codemode/catalog.js +1 -1
  285. package/dist/codemode/instructions.js +7 -7
  286. package/dist/codemode/tool.js +3 -3
  287. package/dist/codemode/web.js +1 -1
  288. package/dist/command.js +85 -85
  289. package/dist/config/discovery.js +82 -82
  290. package/dist/config/markdown.js +1 -1
  291. package/dist/config/normalize.js +99 -99
  292. package/dist/config/plugin/agent.js +118 -118
  293. package/dist/config/plugin/command.js +207 -207
  294. package/dist/config/plugin/compaction.js +154 -154
  295. package/dist/config/plugin/compatibility.js +134 -134
  296. package/dist/config/plugin/entry-observer.js +1 -1
  297. package/dist/config/plugin/formatter.js +117 -117
  298. package/dist/config/plugin/image.js +116 -116
  299. package/dist/config/plugin/instruction.js +90 -90
  300. package/dist/config/plugin/location-watcher.js +118 -118
  301. package/dist/config/plugin/mcp.js +125 -125
  302. package/dist/config/plugin/policy.js +117 -117
  303. package/dist/config/plugin/provider.js +116 -116
  304. package/dist/config/plugin/reference.js +118 -118
  305. package/dist/config/plugin/shell.js +118 -118
  306. package/dist/config/plugin/skill-file.js +102 -102
  307. package/dist/config/plugin/skill.js +137 -137
  308. package/dist/config/plugin/snapshot.js +116 -116
  309. package/dist/config/plugin/source.js +119 -119
  310. package/dist/config/plugin/tool-output.js +117 -117
  311. package/dist/config/plugin/websearch.js +117 -117
  312. package/dist/config/plugin/worktree.js +118 -118
  313. package/dist/config/variable.js +3 -3
  314. package/dist/config/watch.js +1 -1
  315. package/dist/config.js +121 -121
  316. package/dist/credential/sql.js +2 -2
  317. package/dist/credential.js +85 -85
  318. package/dist/database/database.js +66 -66
  319. package/dist/database/drizzle/effect-sqlite/driver.js +14 -14
  320. package/dist/database/drizzle/effect-sqlite/index.js +14 -14
  321. package/dist/database/drizzle/effect-sqlite/session.js +11 -11
  322. package/dist/database/drizzle/index.js +15 -15
  323. package/dist/database/drizzle/internal/drizzle-utils.js +1 -1
  324. package/dist/database/drizzle/sqlite-core/effect/count.js +1 -1
  325. package/dist/database/drizzle/sqlite-core/effect/db.js +9 -9
  326. package/dist/database/drizzle/sqlite-core/effect/delete.js +2 -2
  327. package/dist/database/drizzle/sqlite-core/effect/index.js +10 -10
  328. package/dist/database/drizzle/sqlite-core/effect/insert.js +2 -2
  329. package/dist/database/drizzle/sqlite-core/effect/query.js +1 -1
  330. package/dist/database/drizzle/sqlite-core/effect/raw.js +1 -1
  331. package/dist/database/drizzle/sqlite-core/effect/select.js +2 -2
  332. package/dist/database/drizzle/sqlite-core/effect/session.js +10 -10
  333. package/dist/database/drizzle/sqlite-core/effect/update.js +2 -2
  334. package/dist/database/drizzle.js +16 -16
  335. package/dist/database/migration/20260127222353_familiar_lady_ursula.js +1 -1
  336. package/dist/database/migration/20260211171708_add_project_commands.js +1 -1
  337. package/dist/database/migration/20260213144116_wakeful_the_professor.js +1 -1
  338. package/dist/database/migration/20260225215848_workspace.js +1 -1
  339. package/dist/database/migration/20260227213759_add_session_workspace_id.js +1 -1
  340. package/dist/database/migration/20260228203230_blue_harpoon.js +1 -1
  341. package/dist/database/migration/20260303231226_add_workspace_fields.js +1 -1
  342. package/dist/database/migration/20260309230000_move_org_to_state.js +1 -1
  343. package/dist/database/migration/20260312043431_session_message_cursor.js +1 -1
  344. package/dist/database/migration/20260323234822_events.js +1 -1
  345. package/dist/database/migration/20260410174513_workspace-name.js +1 -1
  346. package/dist/database/migration/20260413175956_chief_energizer.js +1 -1
  347. package/dist/database/migration/20260423070820_add_icon_url_override.js +1 -1
  348. package/dist/database/migration/20260427172553_slow_nightmare.js +1 -1
  349. package/dist/database/migration/20260428004200_add_session_path.js +1 -1
  350. package/dist/database/migration/20260501142318_next_venus.js +1 -1
  351. package/dist/database/migration/20260504145000_add_sync_owner.js +1 -1
  352. package/dist/database/migration/20260507164347_add_workspace_time.js +1 -1
  353. package/dist/database/migration/20260510033149_session_usage.js +1 -1
  354. package/dist/database/migration/20260511000411_data_migration_state.js +1 -1
  355. package/dist/database/migration/20260511173437_session-metadata.js +1 -1
  356. package/dist/database/migration/20260601010001_normalize_storage_paths.js +1 -1
  357. package/dist/database/migration/20260601202201_amazing_prowler.js +1 -1
  358. package/dist/database/migration/20260602002951_lowly_union_jack.js +1 -1
  359. package/dist/database/migration/20260602182828_add_project_directories.js +1 -1
  360. package/dist/database/migration/20260603001617_session_message_projection_indexes.js +1 -1
  361. package/dist/database/migration/20260603040000_session_message_projection_order.js +1 -1
  362. package/dist/database/migration/20260603141458_session_input_inbox.js +1 -1
  363. package/dist/database/migration/20260603160727_jittery_ezekiel_stane.js +1 -1
  364. package/dist/database/migration/20260604172448_event_sourced_session_input.js +1 -1
  365. package/dist/database/migration/20260605003541_add_session_context_snapshot.js +1 -1
  366. package/dist/database/migration/20260605042240_add_context_epoch_agent.js +1 -1
  367. package/dist/database/migration/20260611035744_credential.js +1 -1
  368. package/dist/database/migration/20260611192811_lush_chimera.js +1 -1
  369. package/dist/database/migration/20260612174303_project_dir_strategy.js +1 -1
  370. package/dist/database/migration/20260622142730_simplify_session_context_epoch.js +1 -1
  371. package/dist/database/migration/20260622170816_reset_v2_session_state.js +1 -1
  372. package/dist/database/migration/20260622202450_simplify_session_input.js +1 -1
  373. package/dist/database/migration/20260804233008_loose_psylocke.js +1 -1
  374. package/dist/database/migration/20260805200742_import_legacy_credentials.js +1 -1
  375. package/dist/database/migration/20260808023530_workspace_domain.js +1 -1
  376. package/dist/database/migration/20260811161259_execution_claim_attempts.js +1 -1
  377. package/dist/database/migration/20260812181746_session_inbox.js +1 -1
  378. package/dist/database/migration/20260812213948_worktree.js +1 -1
  379. package/dist/database/migration/20260819222447_session_viewed_state.js +1 -1
  380. package/dist/database/migration/20260823191254_nullable_workspace_binding.js +1 -1
  381. package/dist/database/migration/20260910120000_clear_v1_session_permission.js +1 -1
  382. package/dist/database/migration/20260923013825_project_time_active.js +1 -1
  383. package/dist/database/migration.gen.js +49 -49
  384. package/dist/database/migration.js +51 -51
  385. package/dist/database/path.js +2 -2
  386. package/dist/database/schema.gen.js +1 -1
  387. package/dist/database/schema.sql.js +1 -1
  388. package/dist/database/sqlite.bun.js +1 -1
  389. package/dist/database/sqlite.js +1 -1
  390. package/dist/database/sqlite.node.js +1 -1
  391. package/dist/database/sqlite.workerd.js +1 -1
  392. package/dist/database/v1-migration.bun.js +76 -76
  393. package/dist/database/v1-migration.js +1 -1
  394. package/dist/effect/app-node-builder.js +363 -363
  395. package/dist/effect/app-node-platform.js +2 -2
  396. package/dist/effect/keyed-mutex.js +3 -3
  397. package/dist/effect/websocket-constructor.js +1 -1
  398. package/dist/environment/driver.js +1 -1
  399. package/dist/environment/environment.js +91 -91
  400. package/dist/environment/exec-defaults.js +2 -2
  401. package/dist/environment/files.js +1 -1
  402. package/dist/environment/index.js +93 -93
  403. package/dist/environment/local.js +2 -2
  404. package/dist/environment/memory.js +2 -2
  405. package/dist/environment/unavailable.js +1 -1
  406. package/dist/event/sql.js +1 -1
  407. package/dist/event-logger.js +70 -70
  408. package/dist/file-access.js +104 -104
  409. package/dist/file-mutation.js +94 -94
  410. package/dist/file-retention.js +1 -1
  411. package/dist/filesystem/fff.bun.js +2 -2
  412. package/dist/filesystem/fff.js +1 -1
  413. package/dist/filesystem/fff.node.js +2 -2
  414. package/dist/filesystem/fff.workerd.js +2 -2
  415. package/dist/filesystem/location-watcher-policy.js +6 -6
  416. package/dist/filesystem/location-watcher.js +220 -220
  417. package/dist/filesystem/protected.js +1 -1
  418. package/dist/filesystem/search.js +103 -103
  419. package/dist/filesystem/watcher-binding.js +1 -1
  420. package/dist/filesystem/watcher.js +15 -15
  421. package/dist/filesystem.js +102 -102
  422. package/dist/form.js +84 -84
  423. package/dist/formatter/builtins.js +4 -4
  424. package/dist/formatter.js +87 -87
  425. package/dist/generate.js +103 -103
  426. package/dist/git.js +10 -10
  427. package/dist/github-copilot/chat/convert-to-openai-compatible-chat-messages.js +1 -1
  428. package/dist/github-copilot/chat/get-response-metadata.js +1 -1
  429. package/dist/github-copilot/chat/map-openai-compatible-finish-reason.js +1 -1
  430. package/dist/github-copilot/chat/openai-compatible-chat-language-model.js +7 -7
  431. package/dist/github-copilot/chat/openai-compatible-chat-options.js +1 -1
  432. package/dist/github-copilot/chat/openai-compatible-prepare-tools.js +1 -1
  433. package/dist/github-copilot/copilot-provider.js +17 -17
  434. package/dist/github-copilot/models.js +99 -99
  435. package/dist/github-copilot/openai-compatible-error.js +1 -1
  436. package/dist/github-copilot/responses/convert-to-openai-responses-input.js +1 -1
  437. package/dist/github-copilot/responses/map-openai-responses-finish-reason.js +1 -1
  438. package/dist/github-copilot/responses/openai-error.js +1 -1
  439. package/dist/github-copilot/responses/openai-responses-language-model.js +10 -10
  440. package/dist/github-copilot/responses/openai-responses-prepare-tools.js +6 -6
  441. package/dist/github-copilot/responses/tool/code-interpreter.js +1 -1
  442. package/dist/github-copilot/responses/tool/file-search.js +1 -1
  443. package/dist/github-copilot/responses/tool/image-generation.js +1 -1
  444. package/dist/github-copilot/responses/tool/web-search-preview.js +1 -1
  445. package/dist/github-copilot/responses/tool/web-search.js +1 -1
  446. package/dist/image/photon.js +2 -2
  447. package/dist/image.js +6 -6
  448. package/dist/instance/service.js +5 -5
  449. package/dist/instance.js +354 -354
  450. package/dist/instruction-discovery.js +85 -85
  451. package/dist/instructions/builtins.js +87 -87
  452. package/dist/instructions/index.js +3 -3
  453. package/dist/integration/connection.js +3 -3
  454. package/dist/integration.js +87 -87
  455. package/dist/job.js +78 -78
  456. package/dist/kv/sql.js +2 -2
  457. package/dist/kv.js +73 -73
  458. package/dist/location-activity.js +131 -131
  459. package/dist/location-lifecycle.js +107 -107
  460. package/dist/location-service-map.js +86 -86
  461. package/dist/location-services.js +351 -351
  462. package/dist/location.js +87 -87
  463. package/dist/managed-policy.js +5 -5
  464. package/dist/mcp/client.js +91 -91
  465. package/dist/mcp/index.js +103 -103
  466. package/dist/mcp/instructions.js +129 -129
  467. package/dist/mcp/oauth.js +78 -78
  468. package/dist/mcp/stdio.js +90 -90
  469. package/dist/mime.js +1 -1
  470. package/dist/modal/models.js +99 -99
  471. package/dist/model-resolver.js +96 -96
  472. package/dist/model.js +100 -100
  473. package/dist/models-dev.js +107 -107
  474. package/dist/oauth/page.js +1 -1
  475. package/dist/permission/saved.js +82 -82
  476. package/dist/permission/sql.js +5 -5
  477. package/dist/permission.js +113 -113
  478. package/dist/persistent-pty/binary.bun.js +1 -1
  479. package/dist/persistent-pty/daemon.js +1 -1
  480. package/dist/persistent-pty/index.js +74 -74
  481. package/dist/persistent-pty/pty-binding.js +1 -1
  482. package/dist/persistent-pty.js +75 -75
  483. package/dist/plugin/agent.js +104 -104
  484. package/dist/plugin/command.js +102 -102
  485. package/dist/plugin/hooks.js +5 -5
  486. package/dist/plugin/host.js +211 -211
  487. package/dist/plugin/identity.js +3 -3
  488. package/dist/plugin/instance.js +5 -5
  489. package/dist/plugin/internal.js +326 -326
  490. package/dist/plugin/mcp-codemode-defaults.js +3 -3
  491. package/dist/plugin/models-dev.js +96 -96
  492. package/dist/plugin/module.js +7 -7
  493. package/dist/plugin/optimize.js +4 -4
  494. package/dist/plugin/plan.js +102 -102
  495. package/dist/plugin/promise.js +1 -1
  496. package/dist/plugin/provider/amazon-bedrock.js +90 -90
  497. package/dist/plugin/provider/azure.js +117 -117
  498. package/dist/plugin/provider/cerebras.js +1 -1
  499. package/dist/plugin/provider/chatgpt.js +93 -93
  500. package/dist/plugin/provider/cloudflare-ai-gateway.js +113 -113
  501. package/dist/plugin/provider/cloudflare-workers-ai.js +114 -114
  502. package/dist/plugin/provider/cohere.js +2 -2
  503. package/dist/plugin/provider/configured.js +112 -112
  504. package/dist/plugin/provider/digitalocean.js +93 -93
  505. package/dist/plugin/provider/dynamic.js +2 -2
  506. package/dist/plugin/provider/factory.js +1 -1
  507. package/dist/plugin/provider/github-copilot.js +95 -95
  508. package/dist/plugin/provider/gitlab.js +93 -93
  509. package/dist/plugin/provider/google-vertex.js +90 -90
  510. package/dist/plugin/provider/kilo.js +1 -1
  511. package/dist/plugin/provider/llmgateway.js +78 -78
  512. package/dist/plugin/provider/lmstudio.js +116 -116
  513. package/dist/plugin/provider/local.js +113 -113
  514. package/dist/plugin/provider/modal.js +92 -92
  515. package/dist/plugin/provider/nvidia.js +1 -1
  516. package/dist/plugin/provider/ollama.js +116 -116
  517. package/dist/plugin/provider/openai.js +95 -95
  518. package/dist/plugin/provider/opencode.js +96 -96
  519. package/dist/plugin/provider/openrouter.js +91 -91
  520. package/dist/plugin/provider/perplexity.js +2 -2
  521. package/dist/plugin/provider/poe.js +79 -79
  522. package/dist/plugin/provider/prompt-cache-key.js +90 -90
  523. package/dist/plugin/provider/sap-ai-core.js +91 -91
  524. package/dist/plugin/provider/sdk-factory.js +1 -1
  525. package/dist/plugin/provider/snowflake-cortex.js +115 -115
  526. package/dist/plugin/provider/vercel.js +90 -90
  527. package/dist/plugin/provider/vllm.js +116 -116
  528. package/dist/plugin/provider/xai.js +91 -91
  529. package/dist/plugin/provider/zenmux.js +1 -1
  530. package/dist/plugin/provider.js +155 -155
  531. package/dist/plugin/sdk.js +76 -76
  532. package/dist/plugin/service.js +3 -3
  533. package/dist/plugin/skill.js +134 -134
  534. package/dist/plugin/source-directory.js +1 -1
  535. package/dist/plugin/supervisor.js +341 -341
  536. package/dist/plugin/tool-input-repair.js +4 -4
  537. package/dist/plugin/update.js +6 -6
  538. package/dist/plugin/vcs/git.js +86 -86
  539. package/dist/plugin/vcs/hg.js +86 -86
  540. package/dist/plugin/verbosity.js +93 -93
  541. package/dist/plugin/warming.js +114 -114
  542. package/dist/plugin/websearch/exa.js +5 -5
  543. package/dist/plugin/websearch/firecrawl.js +8 -8
  544. package/dist/plugin/websearch/index.js +9 -9
  545. package/dist/plugin/websearch/mcp.js +4 -4
  546. package/dist/plugin/websearch/parallel.js +8 -8
  547. package/dist/plugin/websearch/tavily.js +6 -6
  548. package/dist/plugin/websearch/tinyfish.js +6 -6
  549. package/dist/plugin.js +222 -222
  550. package/dist/project/schema.js +8 -8
  551. package/dist/project/sql.js +4 -4
  552. package/dist/project.js +90 -90
  553. package/dist/provider.js +101 -101
  554. package/dist/pty/protocol.js +1 -1
  555. package/dist/pty/ticket.js +1 -1
  556. package/dist/pty.js +99 -99
  557. package/dist/reference/instructions.js +89 -89
  558. package/dist/reference.js +89 -89
  559. package/dist/repository-cache.js +81 -81
  560. package/dist/repository.js +1 -1
  561. package/dist/ripgrep/binary.js +2 -2
  562. package/dist/ripgrep.js +95 -95
  563. package/dist/rpc.js +86 -86
  564. package/dist/schema.js +1 -1
  565. package/dist/session/affinity.js +1 -1
  566. package/dist/session/command.js +74 -74
  567. package/dist/session/compaction.js +135 -135
  568. package/dist/session/context.js +153 -153
  569. package/dist/session/diff.js +88 -88
  570. package/dist/session/environment.js +5 -5
  571. package/dist/session/error.js +5 -5
  572. package/dist/session/event.js +1 -1
  573. package/dist/session/execution/restart.js +214 -214
  574. package/dist/session/execution.js +125 -125
  575. package/dist/session/generate.js +154 -154
  576. package/dist/session/history.js +13 -13
  577. package/dist/session/inbox.js +88 -88
  578. package/dist/session/info.js +3 -3
  579. package/dist/session/instruction-entry.js +79 -79
  580. package/dist/session/instruction-state.js +8 -8
  581. package/dist/session/instructions.js +97 -97
  582. package/dist/session/message-updater.js +2 -2
  583. package/dist/session/message.js +1 -1
  584. package/dist/session/model-request.js +120 -120
  585. package/dist/session/model-transport.js +9 -9
  586. package/dist/session/move.js +129 -129
  587. package/dist/session/projector.js +86 -86
  588. package/dist/session/prompt.js +105 -105
  589. package/dist/session/provider-context.js +3 -3
  590. package/dist/session/revert.js +90 -90
  591. package/dist/session/run-coordinator.js +3 -3
  592. package/dist/session/runner/index.js +3 -3
  593. package/dist/session/runner/llm.js +222 -222
  594. package/dist/session/runner/max-steps.js +1 -1
  595. package/dist/session/runner/model.js +98 -98
  596. package/dist/session/runner/publish-llm-event.js +113 -113
  597. package/dist/session/runner/retry.js +4 -4
  598. package/dist/session/runner/step.js +123 -123
  599. package/dist/session/runner/to-llm-message.js +2 -2
  600. package/dist/session/schema.js +5 -5
  601. package/dist/session/session.js +162 -162
  602. package/dist/session/shell.js +130 -130
  603. package/dist/session/skill.js +103 -103
  604. package/dist/session/sql.js +5 -5
  605. package/dist/session/stats.js +73 -73
  606. package/dist/session/store.js +87 -87
  607. package/dist/session/subagent-completion.js +1 -1
  608. package/dist/session/subagent-job.js +203 -203
  609. package/dist/session/system-prompt.js +5 -5
  610. package/dist/session/title.js +151 -151
  611. package/dist/session/to-session-error.js +111 -111
  612. package/dist/session/transfer.js +210 -210
  613. package/dist/session/usage.js +1 -1
  614. package/dist/session.js +209 -209
  615. package/dist/shell/parse.js +6 -6
  616. package/dist/shell/result.js +1 -1
  617. package/dist/shell/scan.js +1 -1
  618. package/dist/shell/select.js +3 -3
  619. package/dist/shell.js +132 -132
  620. package/dist/skill/discovery.js +6 -6
  621. package/dist/skill/instructions.js +103 -103
  622. package/dist/skill.js +110 -110
  623. package/dist/snapshot.js +89 -89
  624. package/dist/state.js +1 -1
  625. package/dist/tool/html-markdown.js +1 -1
  626. package/dist/tool/http-body.js +1 -1
  627. package/dist/tool/mcp.js +128 -128
  628. package/dist/tool/plugin/edit.js +120 -120
  629. package/dist/tool/plugin/file-diff.js +1 -1
  630. package/dist/tool/plugin/glob.js +124 -124
  631. package/dist/tool/plugin/grep.js +124 -124
  632. package/dist/tool/plugin/mcp-resource.js +117 -117
  633. package/dist/tool/plugin/opencode.js +3 -3
  634. package/dist/tool/plugin/patch.js +122 -122
  635. package/dist/tool/plugin/question.js +103 -103
  636. package/dist/tool/plugin/read.js +125 -125
  637. package/dist/tool/plugin/shell.js +210 -210
  638. package/dist/tool/plugin/skill.js +111 -111
  639. package/dist/tool/plugin/subagent.js +212 -212
  640. package/dist/tool/plugin/webfetch.js +110 -110
  641. package/dist/tool/plugin/websearch.js +114 -114
  642. package/dist/tool/plugin/write.js +122 -122
  643. package/dist/tool/read-filesystem.js +100 -100
  644. package/dist/tool/runtime.js +1 -1
  645. package/dist/tool-output.js +7 -7
  646. package/dist/tool.js +14 -14
  647. package/dist/util/error-summary.js +1 -1
  648. package/dist/util/error.js +1 -1
  649. package/dist/util/git-executable.js +2 -2
  650. package/dist/util/iife.js +1 -1
  651. package/dist/util/lazy.js +1 -1
  652. package/dist/util/slug.js +1 -1
  653. package/dist/util/token.js +1 -1
  654. package/dist/util/which.js +1 -1
  655. package/dist/util/wildcard.js +1 -1
  656. package/dist/v1/config/agent.js +5 -5
  657. package/dist/v1/config/command.js +5 -5
  658. package/dist/v1/config/error.js +2 -2
  659. package/dist/v1/config/mcp.js +4 -4
  660. package/dist/v1/config/migrate.js +92 -92
  661. package/dist/v1/config/permission.js +3 -3
  662. package/dist/v1/config/plugin.js +1 -1
  663. package/dist/v1/config/provider-options.js +1 -1
  664. package/dist/v1/config/provider.js +4 -4
  665. package/dist/variant.js +93 -93
  666. package/dist/vcs/patch.js +1 -1
  667. package/dist/vcs.js +89 -89
  668. package/dist/websearch.js +82 -82
  669. package/dist/wellknown/plugin.js +76 -76
  670. package/dist/wellknown.js +81 -81
  671. package/dist/workspace/driver.js +5 -5
  672. package/dist/workspace/sql.js +1 -1
  673. package/dist/workspace.js +74 -74
  674. package/dist/worktree/directory.js +2 -2
  675. package/dist/worktree/git.js +8 -8
  676. package/dist/worktree/sql.js +5 -5
  677. package/dist/worktree/strategies.js +89 -89
  678. package/dist/worktree.js +98 -98
  679. package/package.json +8 -8
  680. package/dist/chunks/kv-4639mgfq.js +0 -26
  681. package/dist/chunks/kv-789vsg7z.js +0 -253
  682. package/dist/chunks/kv-dxj72tfx.js +0 -18
  683. /package/dist/chunks/{kv-0qkdqm5v.js → reference-0qkdqm5v.js} +0 -0
  684. /package/dist/chunks/{kv-0zkw76rk.js → reference-0zkw76rk.js} +0 -0
  685. /package/dist/chunks/{kv-17cy0kzp.js → reference-17cy0kzp.js} +0 -0
  686. /package/dist/chunks/{kv-1cnp2v09.js → reference-1cnp2v09.js} +0 -0
  687. /package/dist/chunks/{kv-1kg9ymc8.js → reference-1kg9ymc8.js} +0 -0
  688. /package/dist/chunks/{kv-24dcb14g.js → reference-24dcb14g.js} +0 -0
  689. /package/dist/chunks/{kv-2710q6r3.js → reference-2710q6r3.js} +0 -0
  690. /package/dist/chunks/{kv-2axfhc9x.js → reference-2axfhc9x.js} +0 -0
  691. /package/dist/chunks/{kv-2c3vjs8z.js → reference-2c3vjs8z.js} +0 -0
  692. /package/dist/chunks/{kv-34c7v6d4.js → reference-34c7v6d4.js} +0 -0
  693. /package/dist/chunks/{kv-359p4xyc.js → reference-359p4xyc.js} +0 -0
  694. /package/dist/chunks/{kv-3asan66x.js → reference-3asan66x.js} +0 -0
  695. /package/dist/chunks/{kv-3t0ybcrp.js → reference-3t0ybcrp.js} +0 -0
  696. /package/dist/chunks/{kv-3v8g72cx.js → reference-3v8g72cx.js} +0 -0
  697. /package/dist/chunks/{kv-3w5fmr99.js → reference-3w5fmr99.js} +0 -0
  698. /package/dist/chunks/{kv-3wcehsnq.js → reference-3wcehsnq.js} +0 -0
  699. /package/dist/chunks/{kv-43n2bw4t.js → reference-43n2bw4t.js} +0 -0
  700. /package/dist/chunks/{kv-4knz6hnm.js → reference-4knz6hnm.js} +0 -0
  701. /package/dist/chunks/{kv-4vcrnpx2.js → reference-4vcrnpx2.js} +0 -0
  702. /package/dist/chunks/{kv-4y7fprxs.js → reference-4y7fprxs.js} +0 -0
  703. /package/dist/chunks/{kv-53557ph1.js → reference-53557ph1.js} +0 -0
  704. /package/dist/chunks/{kv-550bvhaj.js → reference-550bvhaj.js} +0 -0
  705. /package/dist/chunks/{kv-5qd3pb7m.js → reference-5qd3pb7m.js} +0 -0
  706. /package/dist/chunks/{kv-6prwharc.js → reference-6prwharc.js} +0 -0
  707. /package/dist/chunks/{kv-6q2bdcd1.js → reference-6q2bdcd1.js} +0 -0
  708. /package/dist/chunks/{kv-7akdwqpd.js → reference-7akdwqpd.js} +0 -0
  709. /package/dist/chunks/{kv-7m9af43g.js → reference-7m9af43g.js} +0 -0
  710. /package/dist/chunks/{kv-822emrt2.js → reference-822emrt2.js} +0 -0
  711. /package/dist/chunks/{kv-88xbtdfr.js → reference-88xbtdfr.js} +0 -0
  712. /package/dist/chunks/{kv-8n3pysct.js → reference-8n3pysct.js} +0 -0
  713. /package/dist/chunks/{kv-8wj87zfr.js → reference-8wj87zfr.js} +0 -0
  714. /package/dist/chunks/{kv-9a4afbnw.js → reference-9a4afbnw.js} +0 -0
  715. /package/dist/chunks/{kv-9rqn6x4v.js → reference-9rqn6x4v.js} +0 -0
  716. /package/dist/chunks/{kv-a6k6eb26.js → reference-a6k6eb26.js} +0 -0
  717. /package/dist/chunks/{kv-af5trqkr.js → reference-af5trqkr.js} +0 -0
  718. /package/dist/chunks/{kv-afrmfg78.js → reference-afrmfg78.js} +0 -0
  719. /package/dist/chunks/{kv-aqzs7mqg.js → reference-aqzs7mqg.js} +0 -0
  720. /package/dist/chunks/{kv-atq7p7m5.js → reference-atq7p7m5.js} +0 -0
  721. /package/dist/chunks/{kv-bkyjaxrp.js → reference-bkyjaxrp.js} +0 -0
  722. /package/dist/chunks/{kv-bmr6ed5q.js → reference-bmr6ed5q.js} +0 -0
  723. /package/dist/chunks/{kv-cf4snx6d.js → reference-cf4snx6d.js} +0 -0
  724. /package/dist/chunks/{kv-cvy3z8tj.js → reference-cvy3z8tj.js} +0 -0
  725. /package/dist/chunks/{kv-d9fn303g.js → reference-d9fn303g.js} +0 -0
  726. /package/dist/chunks/{kv-d9jj8t3e.js → reference-d9jj8t3e.js} +0 -0
  727. /package/dist/chunks/{kv-dajrwvna.js → reference-dajrwvna.js} +0 -0
  728. /package/dist/chunks/{kv-dap0rakb.js → reference-dap0rakb.js} +0 -0
  729. /package/dist/chunks/{kv-df08tz66.js → reference-df08tz66.js} +0 -0
  730. /package/dist/chunks/{kv-dy18nga0.js → reference-dy18nga0.js} +0 -0
  731. /package/dist/chunks/{kv-e5kj55wp.js → reference-e5kj55wp.js} +0 -0
  732. /package/dist/chunks/{kv-e73j6tqm.js → reference-e73j6tqm.js} +0 -0
  733. /package/dist/chunks/{kv-ec1grn59.js → reference-ec1grn59.js} +0 -0
  734. /package/dist/chunks/{kv-eh3zwz77.js → reference-eh3zwz77.js} +0 -0
  735. /package/dist/chunks/{kv-emrn6kk6.js → reference-emrn6kk6.js} +0 -0
  736. /package/dist/chunks/{kv-f0mxakyp.js → reference-f0mxakyp.js} +0 -0
  737. /package/dist/chunks/{kv-f6n9ztr4.js → reference-f6n9ztr4.js} +0 -0
  738. /package/dist/chunks/{kv-faypxj3z.js → reference-faypxj3z.js} +0 -0
  739. /package/dist/chunks/{kv-fd410y7t.js → reference-fd410y7t.js} +0 -0
  740. /package/dist/chunks/{kv-fxgpk5d8.js → reference-fxgpk5d8.js} +0 -0
  741. /package/dist/chunks/{kv-g4wezp1m.js → reference-g4wezp1m.js} +0 -0
  742. /package/dist/chunks/{kv-g86h250q.js → reference-g86h250q.js} +0 -0
  743. /package/dist/chunks/{kv-gebd4c9n.js → reference-gebd4c9n.js} +0 -0
  744. /package/dist/chunks/{kv-gftt206x.js → reference-gftt206x.js} +0 -0
  745. /package/dist/chunks/{kv-hk9envan.js → reference-hk9envan.js} +0 -0
  746. /package/dist/chunks/{kv-j2ntwpah.js → reference-j2ntwpah.js} +0 -0
  747. /package/dist/chunks/{kv-j5zkgpj8.js → reference-j5zkgpj8.js} +0 -0
  748. /package/dist/chunks/{kv-jjkms2e6.js → reference-jjkms2e6.js} +0 -0
  749. /package/dist/chunks/{kv-jr7sbwjy.js → reference-jr7sbwjy.js} +0 -0
  750. /package/dist/chunks/{kv-jwfs4k6c.js → reference-jwfs4k6c.js} +0 -0
  751. /package/dist/chunks/{kv-jzg6c2d5.js → reference-jzg6c2d5.js} +0 -0
  752. /package/dist/chunks/{kv-mp448xyj.js → reference-mp448xyj.js} +0 -0
  753. /package/dist/chunks/{kv-msx8hqn2.js → reference-msx8hqn2.js} +0 -0
  754. /package/dist/chunks/{kv-n05xt0ee.js → reference-n05xt0ee.js} +0 -0
  755. /package/dist/chunks/{kv-n3j8tn72.js → reference-n3j8tn72.js} +0 -0
  756. /package/dist/chunks/{kv-njntx4h6.js → reference-njntx4h6.js} +0 -0
  757. /package/dist/chunks/{kv-q3sfg36h.js → reference-q3sfg36h.js} +0 -0
  758. /package/dist/chunks/{kv-q74kybfr.js → reference-q74kybfr.js} +0 -0
  759. /package/dist/chunks/{kv-qaymkmh1.js → reference-qaymkmh1.js} +0 -0
  760. /package/dist/chunks/{kv-qb87gjwd.js → reference-qb87gjwd.js} +0 -0
  761. /package/dist/chunks/{kv-qfa1cgps.js → reference-qfa1cgps.js} +0 -0
  762. /package/dist/chunks/{kv-qg3g05ea.js → reference-qg3g05ea.js} +0 -0
  763. /package/dist/chunks/{kv-qrg20bc0.js → reference-qrg20bc0.js} +0 -0
  764. /package/dist/chunks/{kv-rcb2kzg1.js → reference-rcb2kzg1.js} +0 -0
  765. /package/dist/chunks/{kv-sdp7kfr6.js → reference-sdp7kfr6.js} +0 -0
  766. /package/dist/chunks/{kv-ssg3fenm.js → reference-ssg3fenm.js} +0 -0
  767. /package/dist/chunks/{kv-w803qqfp.js → reference-w803qqfp.js} +0 -0
  768. /package/dist/chunks/{kv-wc3fc9cn.js → reference-wc3fc9cn.js} +0 -0
  769. /package/dist/chunks/{kv-wer8tq1h.js → reference-wer8tq1h.js} +0 -0
  770. /package/dist/chunks/{kv-wtztk69x.js → reference-wtztk69x.js} +0 -0
  771. /package/dist/chunks/{kv-x0ckcb58.js → reference-x0ckcb58.js} +0 -0
  772. /package/dist/chunks/{kv-x61499pn.js → reference-x61499pn.js} +0 -0
  773. /package/dist/chunks/{kv-y44na4kk.js → reference-y44na4kk.js} +0 -0
  774. /package/dist/chunks/{kv-y8cydn3q.js → reference-y8cydn3q.js} +0 -0
  775. /package/dist/chunks/{kv-y8f7s663.js → reference-y8f7s663.js} +0 -0
  776. /package/dist/chunks/{kv-ygaqb7jw.js → reference-ygaqb7jw.js} +0 -0
  777. /package/dist/chunks/{kv-ym463w8f.js → reference-ym463w8f.js} +0 -0
  778. /package/dist/chunks/{kv-z5v4ffb3.js → reference-z5v4ffb3.js} +0 -0
  779. /package/dist/chunks/{kv-z9919s4g.js → reference-z9919s4g.js} +0 -0
@@ -1,32 +1,32 @@
1
1
  import {
2
2
  AbsolutePath2,
3
3
  RelativePath2
4
- } from "./kv-z5v4ffb3.js";
4
+ } from "./reference-z5v4ffb3.js";
5
5
  import {
6
6
  Repository2,
7
7
  TreeID2,
8
+ Service80,
9
+ node84
10
+ } from "./reference-scsdzjr7.js";
11
+ import {
8
12
  Service78,
9
13
  node82
10
- } from "./kv-bebjmbk5.js";
11
- import {
12
- Service76,
13
- node80
14
- } from "./kv-8cseh6jw.js";
14
+ } from "./reference-r0xwa5b9.js";
15
15
  import {
16
16
  create3
17
- } from "./kv-rdw6cm16.js";
17
+ } from "./reference-rdw6cm16.js";
18
18
  import {
19
19
  __export
20
- } from "./kv-9rqn6x4v.js";
20
+ } from "./reference-9rqn6x4v.js";
21
21
 
22
22
  // src/snapshot.ts
23
23
  var exports_snapshot2 = {};
24
24
  __export(exports_snapshot2, {
25
- Error: () => Error3,
25
+ Error: () => Error4,
26
26
  ID: () => ID5,
27
- Service: () => Service36,
27
+ Service: () => Service49,
28
28
  Snapshot: () => exports_snapshot2,
29
- node: () => node39,
29
+ node: () => node53,
30
30
  noopLayer: () => noopLayer2
31
31
  });
32
32
  import { makeLocationNode } from "@opencode/util/effect/app-node";
@@ -36,20 +36,20 @@ import { FSUtil } from "@opencode/util/fs-util";
36
36
  import { Global } from "@opencode/util/global";
37
37
  import { ID as ID5 } from "@opencode/schema/snapshot";
38
38
  import { Hash } from "@opencode/util/hash";
39
- class Error3 extends Schema.TaggedError()("Snapshot.Error", {
39
+ class Error4 extends Schema.TaggedError()("Snapshot.Error", {
40
40
  operation: Schema.Literals(["capture", "files", "diff", "restore"]),
41
41
  message: Schema.String,
42
42
  cause: Schema.optional(Schema.Defect())
43
43
  }) {
44
44
  }
45
45
 
46
- class Service36 extends Context.Service()("@opencode/Snapshot") {
46
+ class Service49 extends Context.Service()("@opencode/Snapshot") {
47
47
  }
48
- var layer = Layer.effect(Service36, Effect.gen(function* () {
48
+ var layer = Layer.effect(Service49, Effect.gen(function* () {
49
49
  const fs = yield* FSUtil.Service;
50
- const git = yield* Service78;
50
+ const git = yield* Service80;
51
51
  const global = yield* Global.Service;
52
- const location = yield* Service76;
52
+ const location = yield* Service78;
53
53
  const lifetime = yield* Scope.Scope;
54
54
  const state = create3({
55
55
  name: "snapshot",
@@ -63,7 +63,7 @@ var layer = Layer.effect(Service36, Effect.gen(function* () {
63
63
  const repositoryFiber = yield* Effect.cached(Effect.gen(function* () {
64
64
  const source = yield* git.repo.discover(location.project.directory);
65
65
  if (!source)
66
- return yield* new Error3({ operation: "capture", message: "Project is not a Git repository" });
66
+ return yield* new Error4({ operation: "capture", message: "Project is not a Git repository" });
67
67
  const worktree = AbsolutePath2.make(yield* fs.realPath(source.worktree).pipe(Effect.orDie));
68
68
  const gitDirectory = AbsolutePath2.make(path.join(global.data, "snapshot", location.project.id, Hash.fast(worktree)));
69
69
  const snapshotRepository = (yield* fs.existsSafe(path.join(gitDirectory, "HEAD"))) ? new Repository2({ worktree, gitDirectory, commonDirectory: gitDirectory }) : yield* git.repo.create({ worktree, gitDirectory, seed: source }).pipe(Effect.mapError((cause) => failure("capture", cause)));
@@ -73,7 +73,7 @@ var layer = Layer.effect(Service36, Effect.gen(function* () {
73
73
  const scope = Effect.fnUntraced(function* (worktree) {
74
74
  const relative = path.relative(worktree, location.directory);
75
75
  if (relative.startsWith("..") || path.isAbsolute(relative))
76
- return yield* new Error3({ operation: "capture", message: "Location is outside the project" });
76
+ return yield* new Error4({ operation: "capture", message: "Location is outside the project" });
77
77
  return RelativePath2.make(relative.replaceAll("\\", "/") || ".");
78
78
  });
79
79
  const enabled = () => location.vcs?.type === "git" && state.get().enabled;
@@ -127,25 +127,25 @@ var layer = Layer.effect(Service36, Effect.gen(function* () {
127
127
  for (const [file, snapshot] of input.files) {
128
128
  const absolute = path.resolve(worktree, file);
129
129
  if (!FSUtil.contains(worktree, absolute))
130
- return yield* new Error3({ operation: "restore", message: `Path escapes the project: ${file}` });
130
+ return yield* new Error4({ operation: "restore", message: `Path escapes the project: ${file}` });
131
131
  files.set(file, TreeID2.make(snapshot));
132
132
  }
133
133
  return files;
134
134
  });
135
135
  const restore = Effect.fn("Snapshot.restore")(function* (input) {
136
136
  if (!enabled())
137
- return yield* new Error3({ operation: "restore", message: "Snapshots are disabled" });
137
+ return yield* new Error4({ operation: "restore", message: "Snapshots are disabled" });
138
138
  const repo = yield* repository.pipe(Effect.mapError((cause) => failure("restore", cause)));
139
139
  yield* git.tree.restore({ repository: repo.snapshotRepository, files: yield* plan(repo.worktree, input) }).pipe(Effect.mapError((cause) => failure("restore", cause)));
140
140
  });
141
- return Service36.of({ transform: state.transform, reload: state.reload, capture, files, diff, restore });
141
+ return Service49.of({ transform: state.transform, reload: state.reload, capture, files, diff, restore });
142
142
  }).pipe(Effect.withSpan("Snapshot.boot")));
143
- var node39 = makeLocationNode({
144
- service: Service36,
143
+ var node53 = makeLocationNode({
144
+ service: Service49,
145
145
  layer,
146
- deps: [FSUtil.node, node82, Global.node, node80]
146
+ deps: [FSUtil.node, node84, Global.node, node82]
147
147
  });
148
- var noopLayer2 = Layer.succeed(Service36, Service36.of({
148
+ var noopLayer2 = Layer.succeed(Service49, Service49.of({
149
149
  transform: () => Effect.succeed({ dispose: Effect.void }),
150
150
  reload: () => Effect.void,
151
151
  capture: () => Effect.undefined,
@@ -154,13 +154,13 @@ var noopLayer2 = Layer.succeed(Service36, Service36.of({
154
154
  restore: () => Effect.void
155
155
  }));
156
156
  function failure(operation, cause) {
157
- if (cause instanceof Error3 && cause.operation === operation)
157
+ if (cause instanceof Error4 && cause.operation === operation)
158
158
  return cause;
159
- return new Error3({
159
+ return new Error4({
160
160
  operation,
161
161
  message: cause instanceof globalThis.Error ? cause.message : String(cause),
162
162
  cause
163
163
  });
164
164
  }
165
165
 
166
- export { ID5, Error3, Service36, node39, noopLayer2, exports_snapshot2 };
166
+ export { ID5, Error4, Service49, node53, noopLayer2, exports_snapshot2 };
@@ -1,6 +1,6 @@
1
1
  import {
2
- ID12
3
- } from "./kv-drmw43ea.js";
2
+ ID7
3
+ } from "./reference-yt62qj12.js";
4
4
 
5
5
  // src/plugin/provider/openrouter.ts
6
6
  import { Effect } from "effect";
@@ -21,7 +21,7 @@ var OpenRouterPlugin2 = define({
21
21
  for (const item of models.provider.list()) {
22
22
  if (item.provider.package !== "@opencode/ai/providers/openrouter")
23
23
  continue;
24
- for (const modelID of [ID12.make("gpt-5-chat-latest"), ID12.make("openai/gpt-5-chat")]) {
24
+ for (const modelID of [ID7.make("gpt-5-chat-latest"), ID7.make("openai/gpt-5-chat")]) {
25
25
  if (!models.get(item.provider.id, modelID))
26
26
  continue;
27
27
  models.update(item.provider.id, modelID, (model) => {
@@ -1,27 +1,27 @@
1
1
  import {
2
2
  Service83,
3
3
  node87
4
- } from "./kv-tnxzcmvm.js";
4
+ } from "./reference-he0vrkkp.js";
5
5
  import {
6
6
  shutdown2,
7
7
  create3
8
- } from "./kv-rdw6cm16.js";
8
+ } from "./reference-rdw6cm16.js";
9
9
  import {
10
10
  key2
11
- } from "./kv-addxnjmp.js";
11
+ } from "./reference-gqtdsdt7.js";
12
12
  import {
13
- ID14,
14
- Service74,
15
- node78,
16
- Event18
17
- } from "./kv-ee8xpbar.js";
13
+ ID9,
14
+ Service69,
15
+ node73,
16
+ Event15
17
+ } from "./reference-jnrqkn6c.js";
18
18
  import {
19
- Service76,
20
- node80
21
- } from "./kv-8cseh6jw.js";
19
+ Service78,
20
+ node82
21
+ } from "./reference-r0xwa5b9.js";
22
22
  import {
23
23
  __export
24
- } from "./kv-9rqn6x4v.js";
24
+ } from "./reference-9rqn6x4v.js";
25
25
 
26
26
  // src/aisdk-native.ts
27
27
  var exports_aisdk_native = {};
@@ -38,13 +38,13 @@ __export(exports_provider3, {
38
38
  AISDK_PREFIX: () => AISDK_PREFIX2,
39
39
  Compaction: () => Compaction3,
40
40
  DEFAULT_TIMEOUT_MS: () => DEFAULT_TIMEOUT_MS3,
41
- Event: () => Event17,
42
- ID: () => ID13,
43
- Info: () => Info22,
41
+ Event: () => Event14,
42
+ ID: () => ID8,
43
+ Info: () => Info17,
44
44
  LoadError: () => LoadError3,
45
45
  Provider: () => exports_provider3,
46
- Request: () => Request3,
47
- Service: () => Service73,
46
+ Request: () => Request2,
47
+ Service: () => Service68,
48
48
  Settings: () => Settings2,
49
49
  Transport: () => Transport2,
50
50
  aisdk: () => aisdk2,
@@ -54,7 +54,7 @@ __export(exports_provider3, {
54
54
  mergeOverlay: () => mergeOverlay2,
55
55
  modelSettings: () => modelSettings2,
56
56
  nativeSettings: () => nativeSettings2,
57
- node: () => node77,
57
+ node: () => node72,
58
58
  packageName: () => packageName2,
59
59
  timeout: () => timeout2,
60
60
  timeouts: () => timeouts2
@@ -68,8 +68,8 @@ import { isRecord } from "@opencode/ai/utils/record";
68
68
  import { importModule, resolveModule } from "@opencode/util/runtime-import";
69
69
  import { Credential } from "@opencode/schema/credential";
70
70
  import { freeze } from "immer";
71
- import { Event as Event17 } from "@opencode/schema/provider";
72
- var ID13 = Provider.ID;
71
+ import { Event as Event14 } from "@opencode/schema/provider";
72
+ var ID8 = Provider.ID;
73
73
  var AISDK_PREFIX2 = "aisdk:";
74
74
  var isAISDK2 = (value) => value?.startsWith(AISDK_PREFIX2) ?? false;
75
75
  var aisdk2 = (value) => isAISDK2(value) ? value : `${AISDK_PREFIX2}${value}`;
@@ -228,13 +228,13 @@ function mergeHeaders2(base, overlay) {
228
228
  return result;
229
229
  }, new Map).values());
230
230
  }
231
- var Request3 = Provider.Request;
231
+ var Request2 = Provider.Request;
232
232
  var Compaction3 = Provider.Compaction;
233
233
  var Transport2 = Provider.Transport;
234
234
  var Settings2 = Provider.Settings;
235
- var Info22 = Provider.Info;
235
+ var Info17 = Provider.Info;
236
236
 
237
- class Service73 extends Context.Service()("@opencode/Provider") {
237
+ class Service68 extends Context.Service()("@opencode/Provider") {
238
238
  }
239
239
  var definitions = new WeakMap;
240
240
  function index(providerID, models) {
@@ -247,10 +247,10 @@ function index(providerID, models) {
247
247
  definitions.set(models, indexes);
248
248
  return result;
249
249
  }
250
- var layer = Layer.effect(Service73, Effect.gen(function* () {
250
+ var layer = Layer.effect(Service68, Effect.gen(function* () {
251
251
  const bus = yield* Service83;
252
- const integrations = yield* Service74;
253
- const location = yield* Service76;
252
+ const integrations = yield* Service69;
253
+ const location = yield* Service78;
254
254
  const state = create3({
255
255
  name: "provider",
256
256
  initial: () => new Map,
@@ -261,7 +261,7 @@ var layer = Layer.effect(Service73, Effect.gen(function* () {
261
261
  const current = records.get(id);
262
262
  if (current)
263
263
  return current;
264
- const added = { provider: Info22.empty(id), models: new Map };
264
+ const added = { provider: Info17.empty(id), models: new Map };
265
265
  records.set(id, added);
266
266
  maps.add(added.models);
267
267
  return added;
@@ -342,7 +342,7 @@ var layer = Layer.effect(Service73, Effect.gen(function* () {
342
342
  const available = Array.from(records.values()).filter((record) => {
343
343
  if (record.provider.activation === "disabled")
344
344
  return false;
345
- const integration = byID.get(record.provider.integrationID ?? ID14.make(record.provider.id));
345
+ const integration = byID.get(record.provider.integrationID ?? ID9.make(record.provider.id));
346
346
  if (record.sourceConnection && key2(record.sourceConnection) !== key2(integration?.connections[0]))
347
347
  return false;
348
348
  if (record.provider.activation === "enabled")
@@ -368,8 +368,8 @@ var layer = Layer.effect(Service73, Effect.gen(function* () {
368
368
  location: { directory: location.directory, workspaceID: location.workspaceID }
369
369
  });
370
370
  });
371
- yield* bus.subscribe([Event18.Updated, Credential.Event.Updated, Credential.Event.Switched]).pipe(Stream.runForEach(() => notify), Effect.forkScoped({ startImmediately: true }));
372
- return Service73.of({
371
+ yield* bus.subscribe([Event15.Updated, Credential.Event.Updated, Credential.Event.Switched]).pipe(Stream.runForEach(() => notify), Effect.forkScoped({ startImmediately: true }));
372
+ return Service68.of({
373
373
  transform: state.transform,
374
374
  reload: state.reload,
375
375
  get: Effect.fn("Provider.get")((id) => Effect.sync(() => freeze(state.get().get(id)?.provider, true))),
@@ -378,7 +378,7 @@ var layer = Layer.effect(Service73, Effect.gen(function* () {
378
378
  snapshot
379
379
  });
380
380
  }));
381
- var node77 = makeLocationNode({ service: Service73, layer, deps: [node87, node78, node80] });
381
+ var node72 = makeLocationNode({ service: Service68, layer, deps: [node87, node73, node82] });
382
382
  var importPackage = Effect.fn("Provider.importPackage")(function* (specifier, entrypoint, load = () => importModule(entrypoint)) {
383
383
  const module = yield* Effect.tryPromise({
384
384
  try: () => {
@@ -653,4 +653,4 @@ var Legacy = Schema2.StructWithRest(Schema2.Struct({
653
653
  }), [Schema2.Record(Schema2.String, Schema2.Unknown)]);
654
654
  var decode = Schema2.decodeUnknownSync(Legacy);
655
655
 
656
- export { rewrite2, native2, exports_aisdk_native, ID13, AISDK_PREFIX2, isAISDK2, aisdk2, packageName2, LoadError3, loadPackage2, nativeSettings2, modelSettings2, DEFAULT_TIMEOUT_MS3, timeout2, timeouts2, mergeOverlay2, mergeHeaders2, Request3, Compaction3, Transport2, Settings2, Info22, Service73, node77, exports_provider3, Event17 };
656
+ export { rewrite2, native2, exports_aisdk_native, ID8, AISDK_PREFIX2, isAISDK2, aisdk2, packageName2, LoadError3, loadPackage2, nativeSettings2, modelSettings2, DEFAULT_TIMEOUT_MS3, timeout2, timeouts2, mergeOverlay2, mergeHeaders2, Request2, Compaction3, Transport2, Settings2, Info17, Service68, node72, exports_provider3, Event14 };
@@ -1,62 +1,62 @@
1
1
  import {
2
2
  NonNegativeInt2
3
- } from "./kv-z5v4ffb3.js";
3
+ } from "./reference-z5v4ffb3.js";
4
4
  import {
5
5
  latest2,
6
- Service50
7
- } from "./kv-apeyh75a.js";
6
+ Service45
7
+ } from "./reference-6jsvsf2v.js";
8
8
  import {
9
9
  typeFollowing2
10
- } from "./kv-2a5m3afh.js";
10
+ } from "./reference-2a5m3afh.js";
11
11
  import {
12
- Service53
13
- } from "./kv-wmnwwwhc.js";
12
+ Service52
13
+ } from "./reference-v9bgj935.js";
14
14
  import {
15
- Service45
16
- } from "./kv-ew12th47.js";
15
+ Service65
16
+ } from "./reference-7aj7xv8n.js";
17
17
  import {
18
- Service63
19
- } from "./kv-91xts6ft.js";
18
+ Service73
19
+ } from "./reference-prryrcpd.js";
20
20
  import {
21
- Service20,
21
+ Service13,
22
22
  resolvePath2
23
- } from "./kv-n0571dh0.js";
23
+ } from "./reference-h6d45qjv.js";
24
24
  import {
25
25
  output2,
26
26
  notice2,
27
27
  metadata2,
28
28
  notification2
29
- } from "./kv-vzs5sf6e.js";
29
+ } from "./reference-vzs5sf6e.js";
30
30
  import {
31
31
  Service82,
32
32
  name15
33
- } from "./kv-amzhydp5.js";
33
+ } from "./reference-amzhydp5.js";
34
34
  import {
35
- NotFoundError5,
36
- Service47
37
- } from "./kv-a8vnbk5s.js";
35
+ NotFoundError6,
36
+ Service43
37
+ } from "./reference-72kjf32t.js";
38
38
  import {
39
- Service24
40
- } from "./kv-v2p84kh2.js";
39
+ Service29
40
+ } from "./reference-defjrdcv.js";
41
41
  import {
42
42
  scan2
43
- } from "./kv-t11fnep0.js";
43
+ } from "./reference-t11fnep0.js";
44
44
  import {
45
45
  __export
46
- } from "./kv-9rqn6x4v.js";
46
+ } from "./reference-9rqn6x4v.js";
47
47
 
48
48
  // src/tool/plugin/shell.ts
49
- var exports_shell2 = {};
50
- __export(exports_shell2, {
49
+ var exports_shell = {};
50
+ __export(exports_shell, {
51
51
  DEFAULT_TIMEOUT_MS: () => DEFAULT_TIMEOUT_MS2,
52
- Input: () => Input2,
53
- Plugin: () => Plugin36,
54
- ShellTool: () => exports_shell2,
55
- name: () => name2
52
+ Input: () => Input3,
53
+ Plugin: () => Plugin19,
54
+ ShellTool: () => exports_shell,
55
+ name: () => name3
56
56
  });
57
57
  import { ToolFailure } from "@opencode/ai";
58
58
  import { Deferred, Effect, Schema, Scope } from "effect";
59
- var name2 = "shell";
59
+ var name3 = "shell";
60
60
  var DEFAULT_TIMEOUT_MS2 = 2 * 60 * 1000;
61
61
  var BACKGROUND_INSTRUCTION = "You will be notified automatically when the command finishes. The notification will include the command's output. Unless the user explicitly asks otherwise, DO NOT poll for completion, even if you need the final result to continue. Repeatedly sleeping and reading or searching the output file is polling, not useful work. You may read the current output if it lets you do useful work now, but do not repeatedly check it while waiting for the command to finish. Keep working on anything that does not depend on the result. If you have nothing else to do, end your response; you will be resumed automatically when the command finishes.";
62
62
  var OS = process.platform === "darwin" ? "macOS" : process.platform === "win32" ? "Windows" : process.platform === "linux" ? "Linux" : process.platform;
@@ -70,7 +70,7 @@ var description = (shell) => [
70
70
  "Commands accept an optional timeout, background commands have no timeout by default.",
71
71
  "Background commands return immediately, and you will be notified when they complete."
72
72
  ].join(" ");
73
- var Input2 = Schema.Struct({
73
+ var Input3 = Schema.Struct({
74
74
  command: Schema.String.annotate({ description: "Shell command string to execute" }),
75
75
  workdir: Schema.optionalKey(Schema.String).annotate({
76
76
  description: "Working directory to execute the command in. Defaults to the current working directory. When possible, avoid changing directories in the command and set the working directory here instead."
@@ -116,19 +116,19 @@ Output is streaming to: ${file}`,
116
116
  truncated: false,
117
117
  status: "running"
118
118
  });
119
- var Plugin36 = {
119
+ var Plugin19 = {
120
120
  id: "opencode.tool.shell",
121
121
  effect: Effect.fn("ShellTool.Plugin")(function* (ctx) {
122
- const sessions = yield* Service24;
123
- const jobs = yield* Service45;
122
+ const sessions = yield* Service29;
123
+ const jobs = yield* Service65;
124
124
  const scope = yield* Scope.Scope;
125
- const environment = yield* Service53;
126
- const access = yield* Service20;
127
- const shell = yield* Service47;
125
+ const environment = yield* Service52;
126
+ const access = yield* Service13;
127
+ const shell = yield* Service43;
128
128
  const shellSelect = yield* Service82;
129
129
  const compatibleShell = shellSelect.resolve({ priority: "compat" });
130
- const permission = yield* Service63;
131
- const config = yield* Service50;
130
+ const permission = yield* Service73;
131
+ const config = yield* Service45;
132
132
  const prepare = Effect.fn("ShellTool.prepare")(function* (invocation, context) {
133
133
  const source = {
134
134
  type: "tool",
@@ -147,7 +147,7 @@ var Plugin36 = {
147
147
  yield* access.authorizeExternal([target, ...directories], context);
148
148
  if (parsed.commands.length > 0)
149
149
  yield* permission.assert({
150
- action: name2,
150
+ action: name3,
151
151
  resources: parsed.commands.map((command) => command.resource),
152
152
  save: parsed.commands.map((command) => command.save),
153
153
  sessionID: context.sessionID,
@@ -184,10 +184,10 @@ var Plugin36 = {
184
184
  yield* jobs.completeBackground(info.notificationID);
185
185
  }, Effect.forkIn(scope, { startImmediately: true }));
186
186
  yield* ctx.tool.transform((editor) => editor.add({
187
- name: name2,
187
+ name: name3,
188
188
  options: { codemode: false },
189
189
  description: description(),
190
- input: Input2,
190
+ input: Input3,
191
191
  output: Output,
192
192
  execute: (input, context) => Effect.gen(function* () {
193
193
  const timeout = input.background === true ? input.timeout ?? 0 : input.timeout ?? DEFAULT_TIMEOUT_MS2;
@@ -210,7 +210,7 @@ var Plugin36 = {
210
210
  const run = Effect.gen(function* () {
211
211
  const result = yield* shell.result(info);
212
212
  if (!result.capture)
213
- return yield* new NotFoundError5({ id: info.id });
213
+ return yield* new NotFoundError6({ id: info.id });
214
214
  const output = output2(result);
215
215
  return {
216
216
  ...output,
@@ -224,7 +224,7 @@ Command exceeded timeout of ${finalTimeout} ms. Retry with a larger timeout if t
224
224
  `)), Effect.onInterrupt(() => shell.remove(info.id).pipe(Effect.ignore)));
225
225
  const job = yield* jobs.start({
226
226
  id: info.id,
227
- type: name2,
227
+ type: name3,
228
228
  title: info.command,
229
229
  metadata: { sessionID: context.sessionID, shellID: info.id },
230
230
  recovery: {
@@ -254,7 +254,7 @@ Command exceeded timeout of ${finalTimeout} ms. Retry with a larger timeout if t
254
254
  }).pipe(Effect.map(toolResult), Effect.mapError((error) => new ToolFailure({ message: `Unable to execute command: ${input.command}`, error })))
255
255
  })).pipe(Effect.orDie);
256
256
  const hook = (event) => Effect.gen(function* () {
257
- const tool = event.tools[name2];
257
+ const tool = event.tools[name3];
258
258
  if (!tool)
259
259
  return;
260
260
  tool.description = description(name15(yield* compatibleShell));
@@ -265,4 +265,4 @@ Command exceeded timeout of ${finalTimeout} ms. Retry with a larger timeout if t
265
265
  })
266
266
  };
267
267
 
268
- export { name2, DEFAULT_TIMEOUT_MS2, Input2, Plugin36, exports_shell2 };
268
+ export { name3, DEFAULT_TIMEOUT_MS2, Input3, Plugin19, exports_shell };
@@ -1,32 +1,32 @@
1
1
  import {
2
2
  RelativePath2
3
- } from "./kv-z5v4ffb3.js";
3
+ } from "./reference-z5v4ffb3.js";
4
4
  import {
5
- Service76,
6
- node80
7
- } from "./kv-8cseh6jw.js";
5
+ Service78,
6
+ node82
7
+ } from "./reference-r0xwa5b9.js";
8
8
  import {
9
- Service19,
10
- node21
11
- } from "./kv-797efr59.js";
9
+ Service28,
10
+ node31
11
+ } from "./reference-q3m1smny.js";
12
12
  import {
13
13
  isHome2,
14
14
  names3
15
- } from "./kv-tcezcvh9.js";
15
+ } from "./reference-tcezcvh9.js";
16
16
  import {
17
17
  __export
18
- } from "./kv-9rqn6x4v.js";
18
+ } from "./reference-9rqn6x4v.js";
19
19
 
20
20
  // src/filesystem/search.ts
21
21
  var exports_search = {};
22
22
  __export(exports_search, {
23
23
  FileSystemSearch: () => exports_search,
24
- Options: () => Options3,
25
- Service: () => Service18,
26
- configured: () => configured3,
24
+ Options: () => Options2,
25
+ Service: () => Service16,
26
+ configured: () => configured2,
27
27
  fffLayer: () => fffLayer2,
28
- layer: () => layer9,
29
- node: () => node20,
28
+ layer: () => layer8,
29
+ node: () => node18,
30
30
  ripgrepLayer: () => ripgrepLayer2
31
31
  });
32
32
  import { makeLocationNode } from "@opencode/util/effect/app-node";
@@ -35,11 +35,11 @@ import { Clock, Context, Deferred, Duration, Effect, Layer, Schema, Scope } from
35
35
  import { Fff } from "#fff";
36
36
  import fuzzysort from "fuzzysort";
37
37
  import { FileSystem } from "@opencode/schema/filesystem";
38
- var Options3 = Schema.Struct({
38
+ var Options2 = Schema.Struct({
39
39
  fff: Schema.optional(Schema.Boolean)
40
40
  });
41
41
 
42
- class Service18 extends Context.Service()("@opencode/FileSystem/Search") {
42
+ class Service16 extends Context.Service()("@opencode/FileSystem/Search") {
43
43
  }
44
44
  var REFRESH_INTERVAL = Duration.toMillis("10 seconds");
45
45
  function emptyIndex() {
@@ -58,9 +58,9 @@ function search(index, input) {
58
58
  });
59
59
  });
60
60
  }
61
- var ripgrepLayer2 = Layer.effect(Service18, Effect.gen(function* () {
62
- const location = yield* Service76;
63
- const ripgrep = yield* Service19;
61
+ var ripgrepLayer2 = Layer.effect(Service16, Effect.gen(function* () {
62
+ const location = yield* Service78;
63
+ const ripgrep = yield* Service28;
64
64
  const scope = yield* Scope.Scope;
65
65
  const clock = yield* Clock.Clock;
66
66
  const home = isHome2(location.directory);
@@ -105,15 +105,15 @@ var ripgrepLayer2 = Layer.effect(Service18, Effect.gen(function* () {
105
105
  Deferred.doneUnsafe(attempt, exit);
106
106
  })), Effect.forkIn(scope), Effect.flatMap(() => initialized ? Effect.void : Deferred.await(attempt)));
107
107
  });
108
- return Service18.of({
108
+ return Service16.of({
109
109
  find: (input) => Effect.gen(function* () {
110
110
  yield* refresh;
111
111
  return search(index, input);
112
112
  })
113
113
  });
114
114
  }));
115
- var fffLayer2 = Layer.effect(Service18, Effect.gen(function* () {
116
- const location = yield* Service76;
115
+ var fffLayer2 = Layer.effect(Service16, Effect.gen(function* () {
116
+ const location = yield* Service78;
117
117
  const result = yield* Effect.try({
118
118
  try: () => Fff.create({
119
119
  basePath: location.directory,
@@ -126,12 +126,12 @@ var fffLayer2 = Layer.effect(Service18, Effect.gen(function* () {
126
126
  if (!result?.ok) {
127
127
  if (result)
128
128
  yield* Effect.logWarning("failed to initialize fff", { error: result.error });
129
- return Service18.of({
129
+ return Service16.of({
130
130
  find: () => Effect.succeed([])
131
131
  });
132
132
  }
133
133
  yield* Effect.addFinalizer(() => Effect.sync(() => result.value.destroy()));
134
- return Service18.of({
134
+ return Service16.of({
135
135
  find: (input) => Effect.sync(() => {
136
136
  const options = { pageIndex: 0, pageSize: input.limit ?? 50 };
137
137
  const items = (() => {
@@ -174,17 +174,17 @@ var fffLayer2 = Layer.effect(Service18, Effect.gen(function* () {
174
174
  })
175
175
  });
176
176
  }));
177
- var layer9 = (options) => Layer.unwrap(Effect.gen(function* () {
178
- const location = yield* Service76;
177
+ var layer8 = (options) => Layer.unwrap(Effect.gen(function* () {
178
+ const location = yield* Service78;
179
179
  if (location.workspaceID)
180
180
  return ripgrepLayer2;
181
181
  if (options?.fff === false || options?.fff === undefined && process.platform === "win32" || !Fff.available())
182
182
  return ripgrepLayer2;
183
183
  return location.vcs && !isHome2(location.directory) ? fffLayer2 : ripgrepLayer2;
184
184
  }));
185
- function configured3(options) {
186
- return makeLocationNode({ service: Service18, layer: layer9(options), deps: [node80, node21] });
185
+ function configured2(options) {
186
+ return makeLocationNode({ service: Service16, layer: layer8(options), deps: [node82, node31] });
187
187
  }
188
- var node20 = configured3();
188
+ var node18 = configured2();
189
189
 
190
- export { Options3, Service18, ripgrepLayer2, fffLayer2, layer9, configured3, node20, exports_search };
190
+ export { Options2, Service16, ripgrepLayer2, fffLayer2, layer8, configured2, node18, exports_search };