@opencode/core 0.0.0-dev-20981 → 0.0.0-dev-20983

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 (787) hide show
  1. package/dist/account/sql.js +1 -1
  2. package/dist/agent.js +79 -79
  3. package/dist/aisdk-native.js +91 -91
  4. package/dist/aisdk.js +96 -96
  5. package/dist/app.js +7 -7
  6. package/dist/bus.js +77 -77
  7. package/dist/chunks/{model-n5ckd50m.js → snapshot-02e9eapb.js} +30 -30
  8. package/dist/chunks/{model-7dmr3qxn.js → snapshot-02eta0q8.js} +14 -14
  9. package/dist/chunks/{model-y8k4q3en.js → snapshot-078aqrtj.js} +24 -24
  10. package/dist/chunks/{model-0b5g1ynf.js → snapshot-0b5g1ynf.js} +4 -4
  11. package/dist/chunks/{model-0j77ygfz.js → snapshot-0j77ygfz.js} +2 -2
  12. package/dist/chunks/{model-m82j3vqr.js → snapshot-0kc34zy2.js} +28 -28
  13. package/dist/chunks/{model-nng5j9h6.js → snapshot-0pdfqfk8.js} +3 -3
  14. package/dist/chunks/{model-0vbcp93d.js → snapshot-0vbcp93d.js} +2 -2
  15. package/dist/chunks/{model-0996nyz8.js → snapshot-11dqjexa.js} +9 -9
  16. package/dist/chunks/{model-7j1a6jdx.js → snapshot-12wv4c4k.js} +29 -29
  17. package/dist/chunks/{model-w1yg9qkm.js → snapshot-139zgem4.js} +19 -19
  18. package/dist/chunks/{model-wge3n3kq.js → snapshot-14a18q0b.js} +2 -2
  19. package/dist/chunks/{model-q79edn6k.js → snapshot-24rks86p.js} +26 -26
  20. package/dist/chunks/{model-2k71kv7p.js → snapshot-277eer69.js} +4 -4
  21. package/dist/chunks/{model-gsxrv0fy.js → snapshot-28f4qnvc.js} +11 -11
  22. package/dist/chunks/{model-efwcmd71.js → snapshot-2hchhzrj.js} +11 -11
  23. package/dist/chunks/{model-xscv4v2z.js → snapshot-2hryt1dd.js} +9 -9
  24. package/dist/chunks/{model-fcrkznn8.js → snapshot-2k8khapm.js} +5 -5
  25. package/dist/chunks/{model-wr9rbap8.js → snapshot-2kmssdby.js} +17 -17
  26. package/dist/chunks/{model-kaxyez5z.js → snapshot-2pb8gjs2.js} +23 -23
  27. package/dist/chunks/{model-xsa1hygm.js → snapshot-2qn8t22e.js} +33 -33
  28. package/dist/chunks/{model-7sr4khpq.js → snapshot-2tfq46ze.js} +18 -18
  29. package/dist/chunks/{model-nhyne0rh.js → snapshot-2v145pw9.js} +6 -6
  30. package/dist/chunks/{model-kbxmpcp5.js → snapshot-2z6kzd1n.js} +11 -11
  31. package/dist/chunks/{model-dt5p2gzz.js → snapshot-33nnkrrr.js} +27 -27
  32. package/dist/chunks/{model-b888nyxg.js → snapshot-33zwqh84.js} +4 -4
  33. package/dist/chunks/{model-9c2gx1av.js → snapshot-3bc32sxp.js} +10 -10
  34. package/dist/chunks/{model-3fc6dm20.js → snapshot-3fc6dm20.js} +1 -1
  35. package/dist/chunks/{model-tzgwpa0q.js → snapshot-3fdg73tn.js} +32 -32
  36. package/dist/chunks/{model-3hepkmqq.js → snapshot-3hepkmqq.js} +1 -1
  37. package/dist/chunks/{model-3hwn7j4h.js → snapshot-3hwn7j4h.js} +2 -2
  38. package/dist/chunks/{model-tg4ne0mz.js → snapshot-3nd6c5np.js} +49 -49
  39. package/dist/chunks/{model-3smtnn6g.js → snapshot-3smtnn6g.js} +1 -1
  40. package/dist/chunks/{model-3tvqynh2.js → snapshot-3tvqynh2.js} +1 -1
  41. package/dist/chunks/{model-jqjtjqm5.js → snapshot-3w9g1448.js} +14 -14
  42. package/dist/chunks/{model-3zsf4n22.js → snapshot-3zsf4n22.js} +1 -1
  43. package/dist/chunks/{model-msyrw4bq.js → snapshot-416hgkhn.js} +4 -4
  44. package/dist/chunks/{model-v577e917.js → snapshot-41p96nyn.js} +13 -13
  45. package/dist/chunks/{model-zxf3xmnj.js → snapshot-4dr701cr.js} +16 -16
  46. package/dist/chunks/{model-0br3sbwn.js → snapshot-4v7ngy20.js} +4 -4
  47. package/dist/chunks/{model-4v7qdvcn.js → snapshot-4v7qdvcn.js} +1 -1
  48. package/dist/chunks/{model-mm8a7tkj.js → snapshot-53fhqb0d.js} +51 -51
  49. package/dist/chunks/{model-54ma36ye.js → snapshot-54ma36ye.js} +1 -1
  50. package/dist/chunks/{model-479aec3e.js → snapshot-55d1tpp9.js} +25 -25
  51. package/dist/chunks/{model-e29c15sd.js → snapshot-58hng72m.js} +5 -5
  52. package/dist/chunks/{model-4z58m4b4.js → snapshot-5dkn69vz.js} +4 -4
  53. package/dist/chunks/{model-5m9w47nd.js → snapshot-5m9w47nd.js} +1 -1
  54. package/dist/chunks/{model-k4dt4j6g.js → snapshot-62vana81.js} +23 -23
  55. package/dist/chunks/{model-nzep555n.js → snapshot-65q62kwk.js} +37 -37
  56. package/dist/chunks/{model-6g107h22.js → snapshot-6g107h22.js} +2 -2
  57. package/dist/chunks/{model-e5yhdxdz.js → snapshot-6kwkqkdm.js} +41 -41
  58. package/dist/chunks/{model-cxkbmgp7.js → snapshot-6x7cjr5h.js} +13 -13
  59. package/dist/chunks/{model-6xb47vfp.js → snapshot-6xb47vfp.js} +1 -1
  60. package/dist/chunks/{model-775gj3j1.js → snapshot-775gj3j1.js} +2 -2
  61. package/dist/chunks/{model-yb5kpwm0.js → snapshot-78z0tajq.js} +15 -15
  62. package/dist/chunks/{model-fe4vsmnr.js → snapshot-79enrqes.js} +13 -13
  63. package/dist/chunks/{model-7bmhse3q.js → snapshot-7bmhse3q.js} +1 -1
  64. package/dist/chunks/{model-1j6m29mr.js → snapshot-7cx595n2.js} +4 -4
  65. package/dist/chunks/{model-5hx7d1d6.js → snapshot-7d2a7xbs.js} +5 -5
  66. package/dist/chunks/{model-hpje1asd.js → snapshot-7fv8camv.js} +20 -20
  67. package/dist/chunks/{model-fketk0k4.js → snapshot-7j641znf.js} +9 -9
  68. package/dist/chunks/{model-1rd80ksx.js → snapshot-82wvwxnp.js} +19 -19
  69. package/dist/chunks/{model-84txncab.js → snapshot-84txncab.js} +1 -1
  70. package/dist/chunks/{model-gsndwzqv.js → snapshot-89qrwhr4.js} +17 -17
  71. package/dist/chunks/{model-999bzrsf.js → snapshot-8ag2gqs0.js} +5 -5
  72. package/dist/chunks/{model-8m6m0r52.js → snapshot-8m6m0r52.js} +1 -1
  73. package/dist/chunks/{model-x076sjt5.js → snapshot-8qa2aq7v.js} +11 -11
  74. package/dist/chunks/{model-gxra9ntr.js → snapshot-8zgdvsmt.js} +12 -12
  75. package/dist/chunks/{model-zhspmtmh.js → snapshot-96bye6pk.js} +6 -6
  76. package/dist/chunks/{model-7vfd4xz9.js → snapshot-96kn8jjj.js} +6 -6
  77. package/dist/chunks/{model-t9fz1x23.js → snapshot-99geaa22.js} +73 -73
  78. package/dist/chunks/{model-4ybf7fnk.js → snapshot-9sv3ea6j.js} +11 -11
  79. package/dist/chunks/{model-hsn420a8.js → snapshot-a035f2m5.js} +13 -13
  80. package/dist/chunks/{model-3aq39rmm.js → snapshot-a2yyhsbg.js} +10 -10
  81. package/dist/chunks/{model-xnv46bg2.js → snapshot-a32apcx9.js} +24 -24
  82. package/dist/chunks/{model-x661k3y3.js → snapshot-addxnjmp.js} +4 -4
  83. package/dist/chunks/{model-rs6n5dpz.js → snapshot-adydt5hj.js} +5 -5
  84. package/dist/chunks/{model-2stkn66k.js → snapshot-ajw317e7.js} +21 -21
  85. package/dist/chunks/{model-zn6ek04n.js → snapshot-ak0a3hys.js} +11 -11
  86. package/dist/chunks/{model-nsnm0d77.js → snapshot-astpzp8e.js} +45 -45
  87. package/dist/chunks/{model-wgahhr0x.js → snapshot-awbtvej0.js} +4 -4
  88. package/dist/chunks/{model-8kw59tg1.js → snapshot-axccj4x7.js} +15 -15
  89. package/dist/chunks/{model-a2ew8a62.js → snapshot-b27vhd2z.js} +4 -4
  90. package/dist/chunks/{model-x5wrmng7.js → snapshot-b4ytdsdb.js} +8 -8
  91. package/dist/chunks/{model-t1vvqrnj.js → snapshot-b7wedqf8.js} +15 -15
  92. package/dist/chunks/{model-2h69y2j1.js → snapshot-bhcj78x9.js} +19 -19
  93. package/dist/chunks/{model-bjx1sjef.js → snapshot-bjx1sjef.js} +2 -2
  94. package/dist/chunks/{model-gwda5h78.js → snapshot-bntnj7y8.js} +11 -11
  95. package/dist/chunks/snapshot-bq99f6b1.js +253 -0
  96. package/dist/chunks/{model-y2tp8ndf.js → snapshot-bvgds83j.js} +11 -11
  97. package/dist/chunks/{model-qxhhhvy1.js → snapshot-bvgfxkwe.js} +22 -22
  98. package/dist/chunks/{model-zwh4a1ab.js → snapshot-bxxmpbym.js} +6 -6
  99. package/dist/chunks/{model-c1fqxshp.js → snapshot-c1fqxshp.js} +3 -3
  100. package/dist/chunks/{model-bc32chh7.js → snapshot-c2hv2xwr.js} +15 -15
  101. package/dist/chunks/{model-6qyp6q13.js → snapshot-ca6xgqeq.js} +14 -14
  102. package/dist/chunks/{model-5gw5nkjt.js → snapshot-cre28byt.js} +87 -87
  103. package/dist/chunks/{model-rdza6gx1.js → snapshot-cyd4py48.js} +11 -11
  104. package/dist/chunks/{model-09cyt2wq.js → snapshot-d5am5q1x.js} +27 -27
  105. package/dist/chunks/{model-jekssrtq.js → snapshot-d869kc9t.js} +8 -8
  106. package/dist/chunks/{model-f20efee0.js → snapshot-dg1sqvv5.js} +13 -13
  107. package/dist/chunks/{model-v9j8n8rs.js → snapshot-dnzt8ts3.js} +9 -9
  108. package/dist/chunks/{model-y71avatq.js → snapshot-dpkg50ah.js} +4 -4
  109. package/dist/chunks/{model-dqxsqydv.js → snapshot-dqxsqydv.js} +1 -1
  110. package/dist/chunks/{model-8a6bygkp.js → snapshot-dteqxcpg.js} +11 -11
  111. package/dist/chunks/{model-0d7p0p78.js → snapshot-e47knp2z.js} +13 -13
  112. package/dist/chunks/{model-r2z489rp.js → snapshot-e80seqcp.js} +3 -3
  113. package/dist/chunks/{model-eej6y6fw.js → snapshot-eej6y6fw.js} +2 -2
  114. package/dist/chunks/{model-ef5x83kb.js → snapshot-ef5x83kb.js} +1 -1
  115. package/dist/chunks/{model-neg72jb9.js → snapshot-eg9acgtd.js} +20 -20
  116. package/dist/chunks/{model-dw52cd0g.js → snapshot-ek8r1bjp.js} +5 -5
  117. package/dist/chunks/{model-cekk119z.js → snapshot-enm4z0yr.js} +5 -5
  118. package/dist/chunks/{model-605fdbxk.js → snapshot-et910hwx.js} +4 -4
  119. package/dist/chunks/{model-hk9t36gz.js → snapshot-etcb7h9d.js} +4 -4
  120. package/dist/chunks/{model-11m4y6qd.js → snapshot-ey9p7sgf.js} +22 -22
  121. package/dist/chunks/{model-57w6ys69.js → snapshot-f3fk2xmf.js} +44 -44
  122. package/dist/chunks/{model-stfafkkt.js → snapshot-f5drb5nx.js} +9 -9
  123. package/dist/chunks/{model-pff3x97k.js → snapshot-fbvr504v.js} +10 -10
  124. package/dist/chunks/{model-xthmztap.js → snapshot-fctc48r7.js} +18 -18
  125. package/dist/chunks/{model-y8y4787y.js → snapshot-fe3yy3wq.js} +9 -9
  126. package/dist/chunks/{model-xkcm35ep.js → snapshot-fe8djsn4.js} +5 -5
  127. package/dist/chunks/{model-c4ads7bv.js → snapshot-fjq7nf5n.js} +13 -13
  128. package/dist/chunks/{model-aq7k84zy.js → snapshot-fpfsgvc6.js} +14 -14
  129. package/dist/chunks/{model-da571fjn.js → snapshot-fs2crwft.js} +34 -34
  130. package/dist/chunks/{model-rgrzrdjr.js → snapshot-ft11mcxf.js} +23 -23
  131. package/dist/chunks/{model-fxaymqdw.js → snapshot-fxaymqdw.js} +1 -1
  132. package/dist/chunks/{model-d7x0sh0y.js → snapshot-g686f6pq.js} +9 -9
  133. package/dist/chunks/{model-gd4qta3r.js → snapshot-gd4qta3r.js} +1 -1
  134. package/dist/chunks/{model-5agp6482.js → snapshot-ge5x3txp.js} +21 -21
  135. package/dist/chunks/{model-r2jsz6zh.js → snapshot-gfrqq8ak.js} +5 -5
  136. package/dist/chunks/{model-dyvsbq8q.js → snapshot-ghfsms2t.js} +11 -11
  137. package/dist/chunks/{model-8sgxnewj.js → snapshot-gkej4hz3.js} +9 -9
  138. package/dist/chunks/{model-8dt2m3qt.js → snapshot-gs4wbd6q.js} +9 -9
  139. package/dist/chunks/{model-k6zkg7sr.js → snapshot-h4gv8kbs.js} +10 -10
  140. package/dist/chunks/{model-h6vf3j39.js → snapshot-h6vf3j39.js} +1 -1
  141. package/dist/chunks/{model-h7s7r6s9.js → snapshot-h7s7r6s9.js} +2 -2
  142. package/dist/chunks/{model-cwzd7x1t.js → snapshot-h9jk6b4c.js} +5 -5
  143. package/dist/chunks/{model-6hernfpx.js → snapshot-he3apfyh.js} +18 -18
  144. package/dist/chunks/snapshot-hgwd6y96.js +26 -0
  145. package/dist/chunks/{model-hgz4x7wa.js → snapshot-hgz4x7wa.js} +1 -1
  146. package/dist/chunks/{model-pygwap58.js → snapshot-hmvbwk9y.js} +28 -28
  147. package/dist/chunks/{model-91qna3x0.js → snapshot-j09zfasm.js} +3 -3
  148. package/dist/chunks/{model-zy3z5mtm.js → snapshot-j6hk97h5.js} +17 -17
  149. package/dist/chunks/{model-xheas1rx.js → snapshot-jbeywm1q.js} +9 -9
  150. package/dist/chunks/{model-smdpqrpz.js → snapshot-jh8cd9bn.js} +27 -27
  151. package/dist/chunks/{model-gd0tnyjc.js → snapshot-jhdf29st.js} +1 -1
  152. package/dist/chunks/{model-mn4hnxkt.js → snapshot-jmjkp5vq.js} +13 -13
  153. package/dist/chunks/{model-agkn6djb.js → snapshot-k0a6zx6w.js} +20 -20
  154. package/dist/chunks/{model-svdem9xa.js → snapshot-k6x52zrq.js} +24 -24
  155. package/dist/chunks/{model-gs3mfcxs.js → snapshot-k8m3dejw.js} +32 -32
  156. package/dist/chunks/{model-dw5aamzj.js → snapshot-kpzgc0bp.js} +12 -12
  157. package/dist/chunks/{model-ktgr00t7.js → snapshot-ktgr00t7.js} +2 -2
  158. package/dist/chunks/{model-yyq8xdja.js → snapshot-kxgb0vkd.js} +329 -329
  159. package/dist/chunks/{model-tdw1jchh.js → snapshot-kxmht4ws.js} +35 -35
  160. package/dist/chunks/{model-k16ggyyw.js → snapshot-m3mxvrfe.js} +26 -26
  161. package/dist/chunks/{model-m9w0rfyh.js → snapshot-m9w0rfyh.js} +1 -1
  162. package/dist/chunks/{model-maspj1v3.js → snapshot-maspj1v3.js} +1 -1
  163. package/dist/chunks/{model-n7m069ya.js → snapshot-mf8vvcps.js} +48 -48
  164. package/dist/chunks/{model-cz1na6pr.js → snapshot-mg32kf6f.js} +18 -18
  165. package/dist/chunks/{model-az68kh8z.js → snapshot-mjdyhc17.js} +3 -3
  166. package/dist/chunks/{model-x4za3xcr.js → snapshot-mjya2s6m.js} +3 -3
  167. package/dist/chunks/{model-j1mj860n.js → snapshot-mphgtbj1.js} +9 -9
  168. package/dist/chunks/{model-s7ev4p20.js → snapshot-mx7aqfce.js} +3 -3
  169. package/dist/chunks/{model-f1q4hcq2.js → snapshot-mz2fken5.js} +50 -50
  170. package/dist/chunks/{model-hrg0xqaw.js → snapshot-n477tdv7.js} +28 -28
  171. package/dist/chunks/{model-f3ttcj74.js → snapshot-n71gwbgs.js} +17 -17
  172. package/dist/chunks/{model-909p1r3q.js → snapshot-n8dykrk6.js} +6 -6
  173. package/dist/chunks/{model-t66atx3n.js → snapshot-najxxsbs.js} +18 -18
  174. package/dist/chunks/{model-gyksvwm5.js → snapshot-navbt8w1.js} +16 -16
  175. package/dist/chunks/{model-rm6mdncc.js → snapshot-nb4az0q5.js} +27 -27
  176. package/dist/chunks/{model-z1dnb0jf.js → snapshot-ndskk3cv.js} +19 -19
  177. package/dist/chunks/{model-b8rasqmm.js → snapshot-ndwqxyq0.js} +81 -81
  178. package/dist/chunks/{model-em98dst4.js → snapshot-ngsw89qw.js} +32 -32
  179. package/dist/chunks/{model-1e0t64bm.js → snapshot-nmw03hyk.js} +10 -10
  180. package/dist/chunks/{model-cmwkp3r5.js → snapshot-p37cw4rj.js} +8 -8
  181. package/dist/chunks/{model-cqbr470d.js → snapshot-p43w0xj0.js} +4 -4
  182. package/dist/chunks/{model-sddez406.js → snapshot-pdmrg88s.js} +15 -15
  183. package/dist/chunks/{model-m5b2t9yd.js → snapshot-peba8egv.js} +58 -58
  184. package/dist/chunks/{model-d8mxpyz7.js → snapshot-pjkqvbxd.js} +40 -40
  185. package/dist/chunks/{model-pjvnvgmy.js → snapshot-pjvnvgmy.js} +1 -1
  186. package/dist/chunks/{model-pknna89w.js → snapshot-pknna89w.js} +1 -1
  187. package/dist/chunks/{model-5y480sgp.js → snapshot-pn3cc07s.js} +8 -8
  188. package/dist/chunks/{model-sfk668n4.js → snapshot-pqjtahcg.js} +5 -5
  189. package/dist/chunks/{model-jwah6ncg.js → snapshot-ptay5xqm.js} +2 -2
  190. package/dist/chunks/{model-2pfz9zj6.js → snapshot-pvtha2pq.js} +35 -35
  191. package/dist/chunks/{model-qxcp4ttm.js → snapshot-pw13f8m0.js} +179 -179
  192. package/dist/chunks/{model-8sze2n9a.js → snapshot-py3kkmfq.js} +6 -6
  193. package/dist/chunks/{model-w8038a0g.js → snapshot-q8hc6qcd.js} +38 -38
  194. package/dist/chunks/{model-0nsjxa2x.js → snapshot-q9hd8wee.js} +5 -5
  195. package/dist/chunks/{model-vjvcezxg.js → snapshot-qd28ntw7.js} +14 -14
  196. package/dist/chunks/{model-6w89m9p1.js → snapshot-qe19s462.js} +24 -24
  197. package/dist/chunks/{model-674w987k.js → snapshot-qmpcr92r.js} +36 -36
  198. package/dist/chunks/{model-djszqvmq.js → snapshot-qmqgtz8f.js} +9 -9
  199. package/dist/chunks/{model-qnc92qwc.js → snapshot-qnc92qwc.js} +1 -1
  200. package/dist/chunks/{model-kh162zpt.js → snapshot-qnhs79zs.js} +319 -319
  201. package/dist/chunks/{model-7src2pyj.js → snapshot-qqab1k05.js} +7 -7
  202. package/dist/chunks/{model-hs2sc01j.js → snapshot-qrdj5phn.js} +42 -42
  203. package/dist/chunks/{model-gj4dz15w.js → snapshot-qrswzedr.js} +12 -12
  204. package/dist/chunks/{model-qsdy395h.js → snapshot-qsdy395h.js} +1 -1
  205. package/dist/chunks/{model-142fkw1n.js → snapshot-r4yb0z3b.js} +13 -13
  206. package/dist/chunks/{model-zqm6kvvn.js → snapshot-r6g4e95h.js} +14 -14
  207. package/dist/chunks/{model-edr8mr1d.js → snapshot-r6z305st.js} +3 -3
  208. package/dist/chunks/{model-87qbasm5.js → snapshot-r9y2scxt.js} +11 -11
  209. package/dist/chunks/{model-rdw6cm16.js → snapshot-rdw6cm16.js} +1 -1
  210. package/dist/chunks/{model-rert0e01.js → snapshot-rert0e01.js} +2 -2
  211. package/dist/chunks/{model-zswvs50y.js → snapshot-rfkwzrae.js} +22 -22
  212. package/dist/chunks/{model-rj3eygr5.js → snapshot-rj3eygr5.js} +2 -2
  213. package/dist/chunks/{model-kas6drz3.js → snapshot-rksjtv3x.js} +32 -32
  214. package/dist/chunks/{model-2ach13s2.js → snapshot-rsbe67h7.js} +46 -46
  215. package/dist/chunks/{model-s8cdmyqk.js → snapshot-rzzqhctj.js} +11 -11
  216. package/dist/chunks/{model-5z0y4e44.js → snapshot-s8cj9grq.js} +13 -13
  217. package/dist/chunks/{model-sa8ekw3f.js → snapshot-sa8ekw3f.js} +2 -2
  218. package/dist/chunks/{model-b3f8fkhc.js → snapshot-scgrse2b.js} +5 -5
  219. package/dist/chunks/{model-2ypdw6v4.js → snapshot-sm0ksd3h.js} +12 -12
  220. package/dist/chunks/{model-sbem282a.js → snapshot-sqczrp9f.js} +26 -26
  221. package/dist/chunks/{model-2p142bke.js → snapshot-sqgfpt95.js} +19 -19
  222. package/dist/chunks/{model-mksqe0jy.js → snapshot-sr7g6dta.js} +23 -23
  223. package/dist/chunks/{model-syv4x271.js → snapshot-syv4x271.js} +1 -1
  224. package/dist/chunks/{model-t550f9t1.js → snapshot-t550f9t1.js} +1 -1
  225. package/dist/chunks/{model-zvk9pegx.js → snapshot-t5sjszhz.js} +34 -34
  226. package/dist/chunks/{model-x804m9tz.js → snapshot-t9vw7n3y.js} +31 -31
  227. package/dist/chunks/{model-tazgh4e4.js → snapshot-tazgh4e4.js} +1 -1
  228. package/dist/chunks/{model-tcezcvh9.js → snapshot-tcezcvh9.js} +1 -1
  229. package/dist/chunks/{model-tdstcens.js → snapshot-tdstcens.js} +1 -1
  230. package/dist/chunks/{model-w30whbb5.js → snapshot-tezyt0wt.js} +14 -14
  231. package/dist/chunks/{model-tm0kqsz3.js → snapshot-tm0kqsz3.js} +1 -1
  232. package/dist/chunks/{model-zvt5dnpc.js → snapshot-ttqh24zm.js} +4 -4
  233. package/dist/chunks/{model-t4dv37ma.js → snapshot-tx8svmqw.js} +23 -23
  234. package/dist/chunks/{model-tyytaxap.js → snapshot-tyytaxap.js} +1 -1
  235. package/dist/chunks/{model-6g7e4dd5.js → snapshot-v0es1rhs.js} +7 -7
  236. package/dist/chunks/{model-z7tka8yh.js → snapshot-v1cjjj3y.js} +20 -20
  237. package/dist/chunks/{model-tfpgne2e.js → snapshot-v2dpvkn0.js} +8 -8
  238. package/dist/chunks/{model-v7p4zvkq.js → snapshot-v7p4zvkq.js} +2 -2
  239. package/dist/chunks/{model-0f58zsv5.js → snapshot-vbg5ezqf.js} +45 -45
  240. package/dist/chunks/{model-veqvce7d.js → snapshot-veqvce7d.js} +1 -1
  241. package/dist/chunks/{model-2mcax4ft.js → snapshot-vjcpsb2b.js} +10 -10
  242. package/dist/chunks/{model-xeea7gjf.js → snapshot-vkww058e.js} +8 -8
  243. package/dist/chunks/{model-1b2xjh8d.js → snapshot-vmd0skpg.js} +22 -22
  244. package/dist/chunks/{model-22xnzr80.js → snapshot-vwthjm9e.js} +21 -21
  245. package/dist/chunks/{model-vzs5sf6e.js → snapshot-vzs5sf6e.js} +1 -1
  246. package/dist/chunks/{model-h83xjv7f.js → snapshot-w2h15q85.js} +5 -5
  247. package/dist/chunks/{model-a63pq2m6.js → snapshot-w2jwkx9y.js} +11 -11
  248. package/dist/chunks/{model-w3wsvvr9.js → snapshot-w3wsvvr9.js} +1 -1
  249. package/dist/chunks/{model-8arnnpza.js → snapshot-w7z3k5dk.js} +29 -29
  250. package/dist/chunks/{model-zm14bp5n.js → snapshot-wbrh9k09.js} +41 -41
  251. package/dist/chunks/{model-wd87259q.js → snapshot-wd87259q.js} +1 -1
  252. package/dist/chunks/{model-f7ma11rg.js → snapshot-wkcmpner.js} +6 -6
  253. package/dist/chunks/{model-c0eqp439.js → snapshot-wqbevas8.js} +1 -1
  254. package/dist/chunks/{model-mxjbaaz4.js → snapshot-wwyzffch.js} +17 -17
  255. package/dist/chunks/{model-7z93154z.js → snapshot-x86wrwcp.js} +11 -11
  256. package/dist/chunks/{model-m77chmsg.js → snapshot-xc0qh6rg.js} +8 -8
  257. package/dist/chunks/{model-xfkkasph.js → snapshot-xfkkasph.js} +1 -1
  258. package/dist/chunks/{model-cxmm8qc0.js → snapshot-xg0pma4t.js} +33 -33
  259. package/dist/chunks/{model-x76z1jaq.js → snapshot-xxwe6d9h.js} +16 -16
  260. package/dist/chunks/{model-y1fvbwt7.js → snapshot-y1fvbwt7.js} +1 -1
  261. package/dist/chunks/{model-h2ssqnba.js → snapshot-y7wtjedd.js} +4 -4
  262. package/dist/chunks/{model-4wytv71p.js → snapshot-ydma5cpq.js} +1 -1
  263. package/dist/chunks/{model-nktcn7bv.js → snapshot-yh26w4ce.js} +37 -37
  264. package/dist/chunks/{model-d7hemvnj.js → snapshot-yhx8v9gy.js} +7 -7
  265. package/dist/chunks/{model-yp2x3t23.js → snapshot-yp2x3t23.js} +1 -1
  266. package/dist/chunks/{model-f6g8pkb4.js → snapshot-ysye361s.js} +12 -12
  267. package/dist/chunks/{model-t89fqycx.js → snapshot-yvvvp4gn.js} +8 -8
  268. package/dist/chunks/{model-8vkaqw1w.js → snapshot-ywqn9wnz.js} +15 -15
  269. package/dist/chunks/{model-z0bkrqjs.js → snapshot-z0bkrqjs.js} +1 -1
  270. package/dist/chunks/{model-z5crsmww.js → snapshot-z5crsmww.js} +3 -3
  271. package/dist/chunks/{model-z6c3x22d.js → snapshot-z6c3x22d.js} +2 -2
  272. package/dist/chunks/{model-11n2fvbk.js → snapshot-z6dwrd8b.js} +54 -54
  273. package/dist/chunks/{model-2qg26xbp.js → snapshot-z7mcsx03.js} +4 -4
  274. package/dist/chunks/{model-h9v0byjp.js → snapshot-z8fej9z0.js} +8 -8
  275. package/dist/chunks/{model-810ve36t.js → snapshot-zd9agh4c.js} +22 -22
  276. package/dist/chunks/{model-b22wppy7.js → snapshot-zg2nwh95.js} +5 -5
  277. package/dist/chunks/{model-1gh4n1ba.js → snapshot-zjevg3pf.js} +4 -4
  278. package/dist/chunks/{model-mvp4hync.js → snapshot-znr2sffa.js} +16 -16
  279. package/dist/chunks/{model-zr2ceqn5.js → snapshot-zr2ceqn5.js} +1 -1
  280. package/dist/chunks/{model-kx2n7v0t.js → snapshot-zsygfxs1.js} +11 -11
  281. package/dist/chunks/{model-dc27vedx.js → snapshot-zwtf9a4d.js} +31 -31
  282. package/dist/chunks/{model-zxq2ej10.js → snapshot-zxq2ej10.js} +1 -1
  283. package/dist/codemode/catalog.js +1 -1
  284. package/dist/codemode/instructions.js +3 -3
  285. package/dist/codemode/tool.js +3 -3
  286. package/dist/codemode/web.js +1 -1
  287. package/dist/command.js +85 -85
  288. package/dist/config/discovery.js +84 -84
  289. package/dist/config/markdown.js +1 -1
  290. package/dist/config/normalize.js +101 -101
  291. package/dist/config/plugin/agent.js +118 -118
  292. package/dist/config/plugin/command.js +207 -207
  293. package/dist/config/plugin/compaction.js +156 -156
  294. package/dist/config/plugin/compatibility.js +136 -136
  295. package/dist/config/plugin/entry-observer.js +1 -1
  296. package/dist/config/plugin/formatter.js +119 -119
  297. package/dist/config/plugin/image.js +118 -118
  298. package/dist/config/plugin/instruction.js +118 -118
  299. package/dist/config/plugin/location-watcher.js +118 -118
  300. package/dist/config/plugin/mcp.js +125 -125
  301. package/dist/config/plugin/policy.js +119 -119
  302. package/dist/config/plugin/provider.js +118 -118
  303. package/dist/config/plugin/reference.js +120 -120
  304. package/dist/config/plugin/shell.js +120 -120
  305. package/dist/config/plugin/skill-file.js +104 -104
  306. package/dist/config/plugin/skill.js +139 -139
  307. package/dist/config/plugin/snapshot.js +118 -118
  308. package/dist/config/plugin/source.js +121 -121
  309. package/dist/config/plugin/tool-output.js +119 -119
  310. package/dist/config/plugin/websearch.js +119 -119
  311. package/dist/config/plugin/worktree.js +120 -120
  312. package/dist/config/variable.js +3 -3
  313. package/dist/config/watch.js +1 -1
  314. package/dist/config.js +121 -121
  315. package/dist/credential/sql.js +2 -2
  316. package/dist/credential.js +81 -81
  317. package/dist/database/database.js +68 -68
  318. package/dist/database/drizzle/effect-sqlite/driver.js +14 -14
  319. package/dist/database/drizzle/effect-sqlite/index.js +14 -14
  320. package/dist/database/drizzle/effect-sqlite/session.js +11 -11
  321. package/dist/database/drizzle/index.js +15 -15
  322. package/dist/database/drizzle/internal/drizzle-utils.js +1 -1
  323. package/dist/database/drizzle/sqlite-core/effect/count.js +1 -1
  324. package/dist/database/drizzle/sqlite-core/effect/db.js +9 -9
  325. package/dist/database/drizzle/sqlite-core/effect/delete.js +2 -2
  326. package/dist/database/drizzle/sqlite-core/effect/index.js +10 -10
  327. package/dist/database/drizzle/sqlite-core/effect/insert.js +2 -2
  328. package/dist/database/drizzle/sqlite-core/effect/query.js +1 -1
  329. package/dist/database/drizzle/sqlite-core/effect/raw.js +1 -1
  330. package/dist/database/drizzle/sqlite-core/effect/select.js +2 -2
  331. package/dist/database/drizzle/sqlite-core/effect/session.js +10 -10
  332. package/dist/database/drizzle/sqlite-core/effect/update.js +2 -2
  333. package/dist/database/drizzle.js +16 -16
  334. package/dist/database/migration/20260127222353_familiar_lady_ursula.js +1 -1
  335. package/dist/database/migration/20260211171708_add_project_commands.js +1 -1
  336. package/dist/database/migration/20260213144116_wakeful_the_professor.js +1 -1
  337. package/dist/database/migration/20260225215848_workspace.js +1 -1
  338. package/dist/database/migration/20260227213759_add_session_workspace_id.js +1 -1
  339. package/dist/database/migration/20260228203230_blue_harpoon.js +1 -1
  340. package/dist/database/migration/20260303231226_add_workspace_fields.js +1 -1
  341. package/dist/database/migration/20260309230000_move_org_to_state.js +1 -1
  342. package/dist/database/migration/20260312043431_session_message_cursor.js +1 -1
  343. package/dist/database/migration/20260323234822_events.js +1 -1
  344. package/dist/database/migration/20260410174513_workspace-name.js +1 -1
  345. package/dist/database/migration/20260413175956_chief_energizer.js +1 -1
  346. package/dist/database/migration/20260423070820_add_icon_url_override.js +1 -1
  347. package/dist/database/migration/20260427172553_slow_nightmare.js +1 -1
  348. package/dist/database/migration/20260428004200_add_session_path.js +1 -1
  349. package/dist/database/migration/20260501142318_next_venus.js +1 -1
  350. package/dist/database/migration/20260504145000_add_sync_owner.js +1 -1
  351. package/dist/database/migration/20260507164347_add_workspace_time.js +1 -1
  352. package/dist/database/migration/20260510033149_session_usage.js +1 -1
  353. package/dist/database/migration/20260511000411_data_migration_state.js +1 -1
  354. package/dist/database/migration/20260511173437_session-metadata.js +1 -1
  355. package/dist/database/migration/20260601010001_normalize_storage_paths.js +1 -1
  356. package/dist/database/migration/20260601202201_amazing_prowler.js +1 -1
  357. package/dist/database/migration/20260602002951_lowly_union_jack.js +1 -1
  358. package/dist/database/migration/20260602182828_add_project_directories.js +1 -1
  359. package/dist/database/migration/20260603001617_session_message_projection_indexes.js +1 -1
  360. package/dist/database/migration/20260603040000_session_message_projection_order.js +1 -1
  361. package/dist/database/migration/20260603141458_session_input_inbox.js +1 -1
  362. package/dist/database/migration/20260603160727_jittery_ezekiel_stane.js +1 -1
  363. package/dist/database/migration/20260604172448_event_sourced_session_input.js +1 -1
  364. package/dist/database/migration/20260605003541_add_session_context_snapshot.js +1 -1
  365. package/dist/database/migration/20260605042240_add_context_epoch_agent.js +1 -1
  366. package/dist/database/migration/20260611035744_credential.js +1 -1
  367. package/dist/database/migration/20260611192811_lush_chimera.js +1 -1
  368. package/dist/database/migration/20260612174303_project_dir_strategy.js +1 -1
  369. package/dist/database/migration/20260622142730_simplify_session_context_epoch.js +1 -1
  370. package/dist/database/migration/20260622170816_reset_v2_session_state.js +1 -1
  371. package/dist/database/migration/20260622202450_simplify_session_input.js +1 -1
  372. package/dist/database/migration/20260804233008_loose_psylocke.js +1 -1
  373. package/dist/database/migration/20260805200742_import_legacy_credentials.js +1 -1
  374. package/dist/database/migration/20260808023530_workspace_domain.js +1 -1
  375. package/dist/database/migration/20260811161259_execution_claim_attempts.js +1 -1
  376. package/dist/database/migration/20260812181746_session_inbox.js +1 -1
  377. package/dist/database/migration/20260812213948_worktree.js +1 -1
  378. package/dist/database/migration/20260819222447_session_viewed_state.js +1 -1
  379. package/dist/database/migration/20260823191254_nullable_workspace_binding.js +1 -1
  380. package/dist/database/migration/20260910120000_clear_v1_session_permission.js +1 -1
  381. package/dist/database/migration/20260923013825_project_time_active.js +1 -1
  382. package/dist/database/migration/20261007190000_azure_cli_external_credential.js +1 -1
  383. package/dist/database/migration/20261010180456_project_time_archived.js +1 -1
  384. package/dist/database/migration.gen.js +51 -51
  385. package/dist/database/migration.js +53 -53
  386. package/dist/database/path.js +2 -2
  387. package/dist/database/schema.gen.js +1 -1
  388. package/dist/database/schema.sql.js +1 -1
  389. package/dist/database/sqlite.bun.js +1 -1
  390. package/dist/database/sqlite.js +1 -1
  391. package/dist/database/sqlite.node.js +1 -1
  392. package/dist/database/sqlite.workerd.js +1 -1
  393. package/dist/database/v1-migration.bun.js +78 -78
  394. package/dist/database/v1-migration.js +1 -1
  395. package/dist/effect/app-node-builder.js +368 -368
  396. package/dist/effect/app-node-platform.js +2 -2
  397. package/dist/effect/keyed-mutex.js +3 -3
  398. package/dist/effect/websocket-constructor.js +1 -1
  399. package/dist/environment/driver.js +1 -1
  400. package/dist/environment/environment.js +95 -95
  401. package/dist/environment/exec-defaults.js +2 -2
  402. package/dist/environment/files.js +1 -1
  403. package/dist/environment/index.js +95 -95
  404. package/dist/environment/local.js +2 -2
  405. package/dist/environment/memory.js +2 -2
  406. package/dist/environment/unavailable.js +1 -1
  407. package/dist/event/sql.js +1 -1
  408. package/dist/event-logger.js +76 -76
  409. package/dist/file-access.js +106 -106
  410. package/dist/file-mutation.js +96 -96
  411. package/dist/file-retention.js +1 -1
  412. package/dist/filesystem/fff.bun.js +2 -2
  413. package/dist/filesystem/fff.js +1 -1
  414. package/dist/filesystem/fff.node.js +2 -2
  415. package/dist/filesystem/fff.workerd.js +2 -2
  416. package/dist/filesystem/location-watcher-policy.js +6 -6
  417. package/dist/filesystem/location-watcher.js +220 -220
  418. package/dist/filesystem/protected.js +1 -1
  419. package/dist/filesystem/search.js +101 -101
  420. package/dist/filesystem/watcher-binding.js +1 -1
  421. package/dist/filesystem/watcher.js +13 -13
  422. package/dist/filesystem.js +102 -102
  423. package/dist/form.js +84 -84
  424. package/dist/formatter/builtins.js +4 -4
  425. package/dist/formatter.js +89 -89
  426. package/dist/generate.js +105 -105
  427. package/dist/git.js +10 -10
  428. package/dist/github-copilot/chat/convert-to-openai-compatible-chat-messages.js +1 -1
  429. package/dist/github-copilot/chat/get-response-metadata.js +1 -1
  430. package/dist/github-copilot/chat/map-openai-compatible-finish-reason.js +1 -1
  431. package/dist/github-copilot/chat/openai-compatible-chat-language-model.js +7 -7
  432. package/dist/github-copilot/chat/openai-compatible-chat-options.js +1 -1
  433. package/dist/github-copilot/chat/openai-compatible-prepare-tools.js +1 -1
  434. package/dist/github-copilot/copilot-provider.js +17 -17
  435. package/dist/github-copilot/models.js +93 -93
  436. package/dist/github-copilot/openai-compatible-error.js +1 -1
  437. package/dist/github-copilot/responses/convert-to-openai-responses-input.js +1 -1
  438. package/dist/github-copilot/responses/map-openai-responses-finish-reason.js +1 -1
  439. package/dist/github-copilot/responses/openai-error.js +1 -1
  440. package/dist/github-copilot/responses/openai-responses-language-model.js +10 -10
  441. package/dist/github-copilot/responses/openai-responses-prepare-tools.js +6 -6
  442. package/dist/github-copilot/responses/tool/code-interpreter.js +1 -1
  443. package/dist/github-copilot/responses/tool/file-search.js +1 -1
  444. package/dist/github-copilot/responses/tool/image-generation.js +1 -1
  445. package/dist/github-copilot/responses/tool/web-search-preview.js +1 -1
  446. package/dist/github-copilot/responses/tool/web-search.js +1 -1
  447. package/dist/image/photon.js +2 -2
  448. package/dist/image.js +6 -6
  449. package/dist/instance/service.js +5 -5
  450. package/dist/instance.js +359 -359
  451. package/dist/instruction-discovery.js +82 -82
  452. package/dist/instructions/builtins.js +89 -89
  453. package/dist/instructions/index.js +1 -1
  454. package/dist/integration/connection.js +3 -3
  455. package/dist/integration.js +87 -87
  456. package/dist/job.js +78 -78
  457. package/dist/kv/sql.js +2 -2
  458. package/dist/kv.js +75 -75
  459. package/dist/location-activity.js +136 -136
  460. package/dist/location-lifecycle.js +109 -109
  461. package/dist/location-service-map.js +88 -88
  462. package/dist/location-services.js +356 -356
  463. package/dist/location.js +89 -89
  464. package/dist/managed-policy.js +8 -8
  465. package/dist/mcp/client.js +93 -93
  466. package/dist/mcp/index.js +111 -111
  467. package/dist/mcp/instructions.js +129 -129
  468. package/dist/mcp/oauth.js +80 -80
  469. package/dist/mcp/stdio.js +92 -92
  470. package/dist/mime.js +1 -1
  471. package/dist/modal/models.js +93 -93
  472. package/dist/model-resolver.js +100 -100
  473. package/dist/model.js +100 -100
  474. package/dist/models-dev.js +109 -109
  475. package/dist/oauth/page.js +1 -1
  476. package/dist/permission/saved.js +82 -82
  477. package/dist/permission/sql.js +5 -5
  478. package/dist/permission.js +111 -111
  479. package/dist/persistent-pty/binary.bun.js +1 -1
  480. package/dist/persistent-pty/daemon.js +1 -1
  481. package/dist/persistent-pty/index.js +88 -88
  482. package/dist/persistent-pty/pty-binding.js +1 -1
  483. package/dist/persistent-pty.js +77 -77
  484. package/dist/plugin/agent.js +76 -76
  485. package/dist/plugin/command.js +102 -102
  486. package/dist/plugin/hooks.js +5 -5
  487. package/dist/plugin/host.js +213 -213
  488. package/dist/plugin/identity.js +3 -3
  489. package/dist/plugin/instance.js +5 -5
  490. package/dist/plugin/internal.js +331 -331
  491. package/dist/plugin/mcp-codemode-defaults.js +3 -3
  492. package/dist/plugin/models-dev.js +98 -98
  493. package/dist/plugin/module.js +119 -119
  494. package/dist/plugin/optimize.js +4 -4
  495. package/dist/plugin/plan.js +104 -104
  496. package/dist/plugin/promise.js +1 -1
  497. package/dist/plugin/provider/amazon-bedrock.js +92 -92
  498. package/dist/plugin/provider/azure.js +118 -118
  499. package/dist/plugin/provider/cerebras.js +1 -1
  500. package/dist/plugin/provider/chatgpt.js +118 -118
  501. package/dist/plugin/provider/cloudflare-ai-gateway.js +115 -115
  502. package/dist/plugin/provider/cloudflare-workers-ai.js +116 -116
  503. package/dist/plugin/provider/cohere.js +2 -2
  504. package/dist/plugin/provider/configured.js +114 -114
  505. package/dist/plugin/provider/databricks.js +1 -1
  506. package/dist/plugin/provider/digitalocean.js +95 -95
  507. package/dist/plugin/provider/dynamic.js +2 -2
  508. package/dist/plugin/provider/factory.js +1 -1
  509. package/dist/plugin/provider/github-copilot.js +97 -97
  510. package/dist/plugin/provider/gitlab.js +95 -95
  511. package/dist/plugin/provider/google-vertex.js +115 -115
  512. package/dist/plugin/provider/kilo.js +1 -1
  513. package/dist/plugin/provider/llmgateway.js +80 -80
  514. package/dist/plugin/provider/lmstudio.js +127 -127
  515. package/dist/plugin/provider/local.js +124 -124
  516. package/dist/plugin/provider/modal.js +94 -94
  517. package/dist/plugin/provider/neon.js +1 -1
  518. package/dist/plugin/provider/nvidia.js +1 -1
  519. package/dist/plugin/provider/ollama.js +127 -127
  520. package/dist/plugin/provider/openai.js +120 -120
  521. package/dist/plugin/provider/opencode.js +99 -99
  522. package/dist/plugin/provider/openrouter.js +93 -93
  523. package/dist/plugin/provider/perplexity.js +2 -2
  524. package/dist/plugin/provider/poe.js +81 -81
  525. package/dist/plugin/provider/prompt-cache-key.js +1 -1
  526. package/dist/plugin/provider/sap-ai-core.js +93 -93
  527. package/dist/plugin/provider/sdk-factory.js +1 -1
  528. package/dist/plugin/provider/snowflake-cortex.js +117 -117
  529. package/dist/plugin/provider/vercel.js +92 -92
  530. package/dist/plugin/provider/vllm.js +127 -127
  531. package/dist/plugin/provider/xai.js +93 -93
  532. package/dist/plugin/provider/zenmux.js +1 -1
  533. package/dist/plugin/provider.js +169 -169
  534. package/dist/plugin/sdk.js +76 -76
  535. package/dist/plugin/service.js +1 -1
  536. package/dist/plugin/skill.js +134 -134
  537. package/dist/plugin/source-directory.js +1 -1
  538. package/dist/plugin/supervisor.js +350 -350
  539. package/dist/plugin/tool-input-repair.js +4 -4
  540. package/dist/plugin/update.js +6 -6
  541. package/dist/plugin/vcs/git.js +88 -88
  542. package/dist/plugin/vcs/hg.js +88 -88
  543. package/dist/plugin/verbosity.js +95 -95
  544. package/dist/plugin/warming.js +116 -116
  545. package/dist/plugin/websearch/exa.js +7 -7
  546. package/dist/plugin/websearch/firecrawl.js +8 -8
  547. package/dist/plugin/websearch/index.js +9 -9
  548. package/dist/plugin/websearch/mcp.js +2 -2
  549. package/dist/plugin/websearch/parallel.js +8 -8
  550. package/dist/plugin/websearch/tavily.js +2 -2
  551. package/dist/plugin/websearch/tinyfish.js +8 -8
  552. package/dist/plugin.js +222 -222
  553. package/dist/project/schema.js +6 -6
  554. package/dist/project/sql.js +4 -4
  555. package/dist/project.js +90 -90
  556. package/dist/provider.js +99 -99
  557. package/dist/pty/protocol.js +1 -1
  558. package/dist/pty/ticket.js +1 -1
  559. package/dist/pty.js +101 -101
  560. package/dist/reference/instructions.js +89 -89
  561. package/dist/reference.js +91 -91
  562. package/dist/repository-cache.js +83 -83
  563. package/dist/repository.js +1 -1
  564. package/dist/ripgrep/binary.js +2 -2
  565. package/dist/ripgrep.js +97 -97
  566. package/dist/rpc.js +88 -88
  567. package/dist/schema.js +1 -1
  568. package/dist/session/affinity.js +1 -1
  569. package/dist/session/command.js +76 -76
  570. package/dist/session/compaction.js +137 -137
  571. package/dist/session/context.js +155 -155
  572. package/dist/session/diff.js +90 -90
  573. package/dist/session/environment.js +5 -5
  574. package/dist/session/error.js +5 -5
  575. package/dist/session/event.js +1 -1
  576. package/dist/session/execution/restart.js +219 -219
  577. package/dist/session/execution.js +129 -129
  578. package/dist/session/generate.js +156 -156
  579. package/dist/session/history.js +13 -13
  580. package/dist/session/inbox.js +86 -86
  581. package/dist/session/info.js +3 -3
  582. package/dist/session/instruction-entry.js +81 -81
  583. package/dist/session/instruction-state.js +8 -8
  584. package/dist/session/instructions.js +99 -99
  585. package/dist/session/message-updater.js +2 -2
  586. package/dist/session/message.js +1 -1
  587. package/dist/session/model-request.js +122 -122
  588. package/dist/session/model-transport.js +9 -9
  589. package/dist/session/move.js +131 -131
  590. package/dist/session/projector.js +88 -88
  591. package/dist/session/prompt.js +107 -107
  592. package/dist/session/provider-context.js +3 -3
  593. package/dist/session/revert.js +92 -92
  594. package/dist/session/run-coordinator.js +1 -1
  595. package/dist/session/runner/index.js +3 -3
  596. package/dist/session/runner/llm.js +226 -226
  597. package/dist/session/runner/max-steps.js +1 -1
  598. package/dist/session/runner/model.js +100 -100
  599. package/dist/session/runner/publish-llm-event.js +115 -115
  600. package/dist/session/runner/retry.js +4 -4
  601. package/dist/session/runner/step.js +127 -127
  602. package/dist/session/runner/to-llm-message.js +2 -2
  603. package/dist/session/schema.js +1 -1
  604. package/dist/session/session.js +164 -164
  605. package/dist/session/shell.js +132 -132
  606. package/dist/session/skill.js +105 -105
  607. package/dist/session/sql.js +5 -5
  608. package/dist/session/stats.js +75 -75
  609. package/dist/session/store.js +87 -87
  610. package/dist/session/subagent-completion.js +1 -1
  611. package/dist/session/subagent-job.js +203 -203
  612. package/dist/session/system-prompt.js +1 -1
  613. package/dist/session/title.js +159 -159
  614. package/dist/session/to-session-error.js +113 -113
  615. package/dist/session/transfer.js +213 -213
  616. package/dist/session/usage.js +1 -1
  617. package/dist/session.js +209 -209
  618. package/dist/shell/parse.js +6 -6
  619. package/dist/shell/result.js +1 -1
  620. package/dist/shell/scan.js +1 -1
  621. package/dist/shell/select.js +13 -13
  622. package/dist/shell.js +134 -134
  623. package/dist/skill/discovery.js +6 -6
  624. package/dist/skill/instructions.js +107 -107
  625. package/dist/skill.js +108 -108
  626. package/dist/snapshot.js +95 -95
  627. package/dist/state.js +1 -1
  628. package/dist/tool/html-markdown.js +1 -1
  629. package/dist/tool/http-body.js +1 -1
  630. package/dist/tool/mcp.js +130 -130
  631. package/dist/tool/plugin/edit.js +122 -122
  632. package/dist/tool/plugin/file-diff.js +1 -1
  633. package/dist/tool/plugin/glob.js +126 -126
  634. package/dist/tool/plugin/grep.js +126 -126
  635. package/dist/tool/plugin/mcp-resource.js +119 -119
  636. package/dist/tool/plugin/opencode.js +111 -111
  637. package/dist/tool/plugin/patch.js +120 -120
  638. package/dist/tool/plugin/question.js +107 -107
  639. package/dist/tool/plugin/read.js +127 -127
  640. package/dist/tool/plugin/shell.js +212 -212
  641. package/dist/tool/plugin/skill.js +115 -115
  642. package/dist/tool/plugin/subagent.js +214 -214
  643. package/dist/tool/plugin/webfetch.js +112 -112
  644. package/dist/tool/plugin/websearch.js +116 -116
  645. package/dist/tool/plugin/write.js +124 -124
  646. package/dist/tool/read-filesystem.js +102 -102
  647. package/dist/tool/runtime.js +1 -1
  648. package/dist/tool-output.js +7 -7
  649. package/dist/tool.js +14 -14
  650. package/dist/util/error-summary.js +1 -1
  651. package/dist/util/error.js +1 -1
  652. package/dist/util/git-executable.js +2 -2
  653. package/dist/util/iife.js +1 -1
  654. package/dist/util/lazy.js +1 -1
  655. package/dist/util/slug.js +1 -1
  656. package/dist/util/token.js +1 -1
  657. package/dist/util/which.js +1 -1
  658. package/dist/util/wildcard.js +1 -1
  659. package/dist/v1/config/agent.js +5 -5
  660. package/dist/v1/config/command.js +3 -3
  661. package/dist/v1/config/error.js +2 -2
  662. package/dist/v1/config/mcp.js +4 -4
  663. package/dist/v1/config/migrate.js +94 -94
  664. package/dist/v1/config/permission.js +3 -3
  665. package/dist/v1/config/plugin.js +3 -3
  666. package/dist/v1/config/provider-options.js +1 -1
  667. package/dist/v1/config/provider.js +2 -2
  668. package/dist/variant.js +93 -93
  669. package/dist/vcs/patch.js +1 -1
  670. package/dist/vcs.js +91 -91
  671. package/dist/websearch.js +86 -86
  672. package/dist/wellknown/plugin.js +78 -78
  673. package/dist/wellknown.js +83 -83
  674. package/dist/workspace/driver.js +3 -3
  675. package/dist/workspace/sql.js +1 -1
  676. package/dist/workspace.js +84 -84
  677. package/dist/worktree/directory.js +2 -2
  678. package/dist/worktree/git.js +8 -8
  679. package/dist/worktree/sql.js +5 -5
  680. package/dist/worktree/strategies.js +91 -91
  681. package/dist/worktree.js +98 -98
  682. package/package.json +8 -8
  683. package/dist/chunks/model-fz6md8dw.js +0 -26
  684. package/dist/chunks/model-s3zr8hxy.js +0 -253
  685. /package/dist/chunks/{model-0qkdqm5v.js → snapshot-0qkdqm5v.js} +0 -0
  686. /package/dist/chunks/{model-0zkw76rk.js → snapshot-0zkw76rk.js} +0 -0
  687. /package/dist/chunks/{model-17cy0kzp.js → snapshot-17cy0kzp.js} +0 -0
  688. /package/dist/chunks/{model-1cnp2v09.js → snapshot-1cnp2v09.js} +0 -0
  689. /package/dist/chunks/{model-1kg9ymc8.js → snapshot-1kg9ymc8.js} +0 -0
  690. /package/dist/chunks/{model-24dcb14g.js → snapshot-24dcb14g.js} +0 -0
  691. /package/dist/chunks/{model-2710q6r3.js → snapshot-2710q6r3.js} +0 -0
  692. /package/dist/chunks/{model-2axfhc9x.js → snapshot-2axfhc9x.js} +0 -0
  693. /package/dist/chunks/{model-2bv980vf.js → snapshot-2bv980vf.js} +0 -0
  694. /package/dist/chunks/{model-2c3vjs8z.js → snapshot-2c3vjs8z.js} +0 -0
  695. /package/dist/chunks/{model-359p4xyc.js → snapshot-359p4xyc.js} +0 -0
  696. /package/dist/chunks/{model-3asan66x.js → snapshot-3asan66x.js} +0 -0
  697. /package/dist/chunks/{model-3t0ybcrp.js → snapshot-3t0ybcrp.js} +0 -0
  698. /package/dist/chunks/{model-3v8g72cx.js → snapshot-3v8g72cx.js} +0 -0
  699. /package/dist/chunks/{model-3wcehsnq.js → snapshot-3wcehsnq.js} +0 -0
  700. /package/dist/chunks/{model-43n2bw4t.js → snapshot-43n2bw4t.js} +0 -0
  701. /package/dist/chunks/{model-4knz6hnm.js → snapshot-4knz6hnm.js} +0 -0
  702. /package/dist/chunks/{model-4vcrnpx2.js → snapshot-4vcrnpx2.js} +0 -0
  703. /package/dist/chunks/{model-4y7fprxs.js → snapshot-4y7fprxs.js} +0 -0
  704. /package/dist/chunks/{model-53557ph1.js → snapshot-53557ph1.js} +0 -0
  705. /package/dist/chunks/{model-550bvhaj.js → snapshot-550bvhaj.js} +0 -0
  706. /package/dist/chunks/{model-6prwharc.js → snapshot-6prwharc.js} +0 -0
  707. /package/dist/chunks/{model-6q2bdcd1.js → snapshot-6q2bdcd1.js} +0 -0
  708. /package/dist/chunks/{model-7akdwqpd.js → snapshot-7akdwqpd.js} +0 -0
  709. /package/dist/chunks/{model-7m9af43g.js → snapshot-7m9af43g.js} +0 -0
  710. /package/dist/chunks/{model-822emrt2.js → snapshot-822emrt2.js} +0 -0
  711. /package/dist/chunks/{model-84wd9syh.js → snapshot-84wd9syh.js} +0 -0
  712. /package/dist/chunks/{model-88xbtdfr.js → snapshot-88xbtdfr.js} +0 -0
  713. /package/dist/chunks/{model-8n3pysct.js → snapshot-8n3pysct.js} +0 -0
  714. /package/dist/chunks/{model-8wj87zfr.js → snapshot-8wj87zfr.js} +0 -0
  715. /package/dist/chunks/{model-9a4afbnw.js → snapshot-9a4afbnw.js} +0 -0
  716. /package/dist/chunks/{model-9rqn6x4v.js → snapshot-9rqn6x4v.js} +0 -0
  717. /package/dist/chunks/{model-a6k6eb26.js → snapshot-a6k6eb26.js} +0 -0
  718. /package/dist/chunks/{model-af5trqkr.js → snapshot-af5trqkr.js} +0 -0
  719. /package/dist/chunks/{model-afrmfg78.js → snapshot-afrmfg78.js} +0 -0
  720. /package/dist/chunks/{model-aqzs7mqg.js → snapshot-aqzs7mqg.js} +0 -0
  721. /package/dist/chunks/{model-atq7p7m5.js → snapshot-atq7p7m5.js} +0 -0
  722. /package/dist/chunks/{model-b1a1n7cj.js → snapshot-b1a1n7cj.js} +0 -0
  723. /package/dist/chunks/{model-bkyjaxrp.js → snapshot-bkyjaxrp.js} +0 -0
  724. /package/dist/chunks/{model-bmr6ed5q.js → snapshot-bmr6ed5q.js} +0 -0
  725. /package/dist/chunks/{model-cf4snx6d.js → snapshot-cf4snx6d.js} +0 -0
  726. /package/dist/chunks/{model-cvy3z8tj.js → snapshot-cvy3z8tj.js} +0 -0
  727. /package/dist/chunks/{model-d9fn303g.js → snapshot-d9fn303g.js} +0 -0
  728. /package/dist/chunks/{model-d9jj8t3e.js → snapshot-d9jj8t3e.js} +0 -0
  729. /package/dist/chunks/{model-dajrwvna.js → snapshot-dajrwvna.js} +0 -0
  730. /package/dist/chunks/{model-dap0rakb.js → snapshot-dap0rakb.js} +0 -0
  731. /package/dist/chunks/{model-df08tz66.js → snapshot-df08tz66.js} +0 -0
  732. /package/dist/chunks/{model-dy18nga0.js → snapshot-dy18nga0.js} +0 -0
  733. /package/dist/chunks/{model-e3qxr5gk.js → snapshot-e3qxr5gk.js} +0 -0
  734. /package/dist/chunks/{model-e5kj55wp.js → snapshot-e5kj55wp.js} +0 -0
  735. /package/dist/chunks/{model-e73j6tqm.js → snapshot-e73j6tqm.js} +0 -0
  736. /package/dist/chunks/{model-ec1grn59.js → snapshot-ec1grn59.js} +0 -0
  737. /package/dist/chunks/{model-eh3zwz77.js → snapshot-eh3zwz77.js} +0 -0
  738. /package/dist/chunks/{model-emrn6kk6.js → snapshot-emrn6kk6.js} +0 -0
  739. /package/dist/chunks/{model-f0mxakyp.js → snapshot-f0mxakyp.js} +0 -0
  740. /package/dist/chunks/{model-f6n9ztr4.js → snapshot-f6n9ztr4.js} +0 -0
  741. /package/dist/chunks/{model-faypxj3z.js → snapshot-faypxj3z.js} +0 -0
  742. /package/dist/chunks/{model-fd410y7t.js → snapshot-fd410y7t.js} +0 -0
  743. /package/dist/chunks/{model-g4wezp1m.js → snapshot-g4wezp1m.js} +0 -0
  744. /package/dist/chunks/{model-g86h250q.js → snapshot-g86h250q.js} +0 -0
  745. /package/dist/chunks/{model-gebd4c9n.js → snapshot-gebd4c9n.js} +0 -0
  746. /package/dist/chunks/{model-gftt206x.js → snapshot-gftt206x.js} +0 -0
  747. /package/dist/chunks/{model-hcxmzztb.js → snapshot-hcxmzztb.js} +0 -0
  748. /package/dist/chunks/{model-hk9envan.js → snapshot-hk9envan.js} +0 -0
  749. /package/dist/chunks/{model-j2ntwpah.js → snapshot-j2ntwpah.js} +0 -0
  750. /package/dist/chunks/{model-j5zkgpj8.js → snapshot-j5zkgpj8.js} +0 -0
  751. /package/dist/chunks/{model-jjkms2e6.js → snapshot-jjkms2e6.js} +0 -0
  752. /package/dist/chunks/{model-jr7sbwjy.js → snapshot-jr7sbwjy.js} +0 -0
  753. /package/dist/chunks/{model-jwfs4k6c.js → snapshot-jwfs4k6c.js} +0 -0
  754. /package/dist/chunks/{model-jze0r7bz.js → snapshot-jze0r7bz.js} +0 -0
  755. /package/dist/chunks/{model-jzg6c2d5.js → snapshot-jzg6c2d5.js} +0 -0
  756. /package/dist/chunks/{model-m18g726c.js → snapshot-m18g726c.js} +0 -0
  757. /package/dist/chunks/{model-mp448xyj.js → snapshot-mp448xyj.js} +0 -0
  758. /package/dist/chunks/{model-msx8hqn2.js → snapshot-msx8hqn2.js} +0 -0
  759. /package/dist/chunks/{model-n05xt0ee.js → snapshot-n05xt0ee.js} +0 -0
  760. /package/dist/chunks/{model-n3j8tn72.js → snapshot-n3j8tn72.js} +0 -0
  761. /package/dist/chunks/{model-njntx4h6.js → snapshot-njntx4h6.js} +0 -0
  762. /package/dist/chunks/{model-pkyv6v7h.js → snapshot-pkyv6v7h.js} +0 -0
  763. /package/dist/chunks/{model-pyv0edze.js → snapshot-pyv0edze.js} +0 -0
  764. /package/dist/chunks/{model-q3sfg36h.js → snapshot-q3sfg36h.js} +0 -0
  765. /package/dist/chunks/{model-q74kybfr.js → snapshot-q74kybfr.js} +0 -0
  766. /package/dist/chunks/{model-qaymkmh1.js → snapshot-qaymkmh1.js} +0 -0
  767. /package/dist/chunks/{model-qb87gjwd.js → snapshot-qb87gjwd.js} +0 -0
  768. /package/dist/chunks/{model-qfa1cgps.js → snapshot-qfa1cgps.js} +0 -0
  769. /package/dist/chunks/{model-qg3g05ea.js → snapshot-qg3g05ea.js} +0 -0
  770. /package/dist/chunks/{model-qrg20bc0.js → snapshot-qrg20bc0.js} +0 -0
  771. /package/dist/chunks/{model-rcb2kzg1.js → snapshot-rcb2kzg1.js} +0 -0
  772. /package/dist/chunks/{model-sdp7kfr6.js → snapshot-sdp7kfr6.js} +0 -0
  773. /package/dist/chunks/{model-ssg3fenm.js → snapshot-ssg3fenm.js} +0 -0
  774. /package/dist/chunks/{model-ve7vex1e.js → snapshot-ve7vex1e.js} +0 -0
  775. /package/dist/chunks/{model-w803qqfp.js → snapshot-w803qqfp.js} +0 -0
  776. /package/dist/chunks/{model-wc3fc9cn.js → snapshot-wc3fc9cn.js} +0 -0
  777. /package/dist/chunks/{model-wer8tq1h.js → snapshot-wer8tq1h.js} +0 -0
  778. /package/dist/chunks/{model-wjj7prxr.js → snapshot-wjj7prxr.js} +0 -0
  779. /package/dist/chunks/{model-wtztk69x.js → snapshot-wtztk69x.js} +0 -0
  780. /package/dist/chunks/{model-x0ckcb58.js → snapshot-x0ckcb58.js} +0 -0
  781. /package/dist/chunks/{model-x61499pn.js → snapshot-x61499pn.js} +0 -0
  782. /package/dist/chunks/{model-y44na4kk.js → snapshot-y44na4kk.js} +0 -0
  783. /package/dist/chunks/{model-y8f7s663.js → snapshot-y8f7s663.js} +0 -0
  784. /package/dist/chunks/{model-ygaqb7jw.js → snapshot-ygaqb7jw.js} +0 -0
  785. /package/dist/chunks/{model-ym463w8f.js → snapshot-ym463w8f.js} +0 -0
  786. /package/dist/chunks/{model-z5v4ffb3.js → snapshot-z5v4ffb3.js} +0 -0
  787. /package/dist/chunks/{model-z9919s4g.js → snapshot-z9919s4g.js} +0 -0
@@ -1,37 +1,37 @@
1
1
  import {
2
2
  useragent2
3
- } from "./model-tfpgne2e.js";
3
+ } from "./snapshot-v2dpvkn0.js";
4
4
  import {
5
- Service81
6
- } from "./model-zqm6kvvn.js";
5
+ Service84
6
+ } from "./snapshot-r6g4e95h.js";
7
7
  import {
8
8
  OAuth3,
9
- Event20,
10
- Service74
11
- } from "./model-mksqe0jy.js";
9
+ Event19,
10
+ Service79
11
+ } from "./snapshot-sr7g6dta.js";
12
12
  import {
13
- ID13,
13
+ ID14,
14
14
  MethodID2
15
- } from "./model-rm6mdncc.js";
15
+ } from "./snapshot-nb4az0q5.js";
16
16
  import {
17
- ID12,
17
+ ID13,
18
18
  mergeOverlay2
19
- } from "./model-kh162zpt.js";
19
+ } from "./snapshot-qnhs79zs.js";
20
20
  import {
21
- ID11,
21
+ ID12,
22
22
  VariantID2,
23
- Info20
24
- } from "./model-x804m9tz.js";
23
+ Info21
24
+ } from "./snapshot-t9vw7n3y.js";
25
25
  import {
26
26
  success2,
27
27
  error2
28
- } from "./model-pjvnvgmy.js";
28
+ } from "./snapshot-pjvnvgmy.js";
29
29
  import {
30
30
  get5
31
- } from "./model-54ma36ye.js";
31
+ } from "./snapshot-54ma36ye.js";
32
32
  import {
33
33
  configuredSettings2
34
- } from "./model-nhyne0rh.js";
34
+ } from "./snapshot-2v145pw9.js";
35
35
 
36
36
  // src/plugin/provider/chatgpt.ts
37
37
  import { define } from "@opencode/plugin/effect/plugin";
@@ -43,8 +43,8 @@ var issuer = "https://auth.openai.com";
43
43
  var tokenURL = `${issuer}/api/accounts/oauth/token`;
44
44
  var resource = "https://api.openai.com/v1";
45
45
  var tokenSharingScope = "chatgpt.tokens.use.direct";
46
- var providerID = ID12.openai;
47
- var integrationID = ID13.make("openai");
46
+ var providerID = ID13.openai;
47
+ var integrationID = ID14.make("openai");
48
48
  var methodID = MethodID2.make("chatgpt-token-sharing");
49
49
  var modelCacheKey = (clientID) => `models:${clientID}`;
50
50
  var fallbackModels = new Set([
@@ -179,8 +179,8 @@ function listen(server) {
179
179
  var ChatGPTPlugin2 = define({
180
180
  id: "opencode.provider.chatgpt",
181
181
  effect: Effect.fn(function* (ctx) {
182
- const bus = yield* Service81;
183
- const credentials = yield* Service74;
182
+ const bus = yield* Service84;
183
+ const credentials = yield* Service79;
184
184
  const loading = Semaphore.makeUnsafe(1);
185
185
  let chatgpt;
186
186
  let source;
@@ -195,7 +195,7 @@ var ChatGPTPlugin2 = define({
195
195
  yield* ctx.integration.transform((editor) => {
196
196
  editor.method.update(signIn(ctx.app, () => Option.getOrUndefined(decodeMetadata(chatgpt?.metadata))?.clientID, ctx.storage));
197
197
  });
198
- yield* Effect.forEach(yield* credentials.list(ID13.make("openai")), (entry) => {
198
+ yield* Effect.forEach(yield* credentials.list(ID14.make("openai")), (entry) => {
199
199
  const value = entry.value;
200
200
  if (value.type !== "oauth" || value.methodID !== MethodID2.make("chatgpt-browser"))
201
201
  return Effect.void;
@@ -268,7 +268,7 @@ var ChatGPTPlugin2 = define({
268
268
  }
269
269
  });
270
270
  const reload = () => loading.withPermit(load().pipe(Effect.andThen(ctx.provider.reload())));
271
- yield* bus.subscribe(Event20.Switched).pipe(Stream.filter((event) => event.data.integrationID === integrationID), Stream.runForEach(reload), Effect.forkScoped({ startImmediately: true }));
271
+ yield* bus.subscribe(Event19.Switched).pipe(Stream.filter((event) => event.data.integrationID === integrationID), Stream.runForEach(reload), Effect.forkScoped({ startImmediately: true }));
272
272
  })
273
273
  });
274
274
  function headers(app) {
@@ -325,7 +325,7 @@ function deriveModels2(remote, existing) {
325
325
  const found = byID.get(model.modelID);
326
326
  return found ? [deriveModel(found, model)] : [];
327
327
  }),
328
- ...remote.filter((model) => !known.has(ID11.make(model.slug))).map((model) => deriveModel(model, Info20.default(ID12.openai, ID11.make(model.slug))))
328
+ ...remote.filter((model) => !known.has(ID12.make(model.slug))).map((model) => deriveModel(model, Info21.default(ID13.openai, ID12.make(model.slug))))
329
329
  ];
330
330
  }
331
331
  function deriveModel(remote, previous) {
@@ -1,55 +1,55 @@
1
1
  import {
2
2
  AbsolutePath2,
3
3
  RelativePath2
4
- } from "./model-z5v4ffb3.js";
4
+ } from "./snapshot-z5v4ffb3.js";
5
5
  import {
6
6
  Repository2,
7
7
  TreeID2,
8
- Service80,
9
- node83
10
- } from "./model-2ypdw6v4.js";
8
+ Service83,
9
+ node87
10
+ } from "./snapshot-sm0ksd3h.js";
11
11
  import {
12
- Service78,
13
- node81
14
- } from "./model-gyksvwm5.js";
12
+ Service81,
13
+ node85
14
+ } from "./snapshot-navbt8w1.js";
15
15
  import {
16
16
  create3
17
- } from "./model-rdw6cm16.js";
17
+ } from "./snapshot-rdw6cm16.js";
18
18
  import {
19
19
  __export
20
- } from "./model-9rqn6x4v.js";
20
+ } from "./snapshot-9rqn6x4v.js";
21
21
 
22
22
  // src/snapshot.ts
23
23
  var exports_snapshot2 = {};
24
24
  __export(exports_snapshot2, {
25
- Error: () => Error3,
26
- ID: () => ID4,
27
- Service: () => Service39,
25
+ Error: () => Error4,
26
+ ID: () => ID9,
27
+ Service: () => Service65,
28
28
  Snapshot: () => exports_snapshot2,
29
- node: () => node42,
30
- noopLayer: () => noopLayer2
29
+ node: () => node68,
30
+ noopLayer: () => noopLayer3
31
31
  });
32
32
  import { makeLocationNode } from "@opencode/util/effect/app-node";
33
33
  import path from "path";
34
34
  import { Clock, Context, Effect, Fiber, Layer, Schema, Scope } from "effect";
35
35
  import { FSUtil } from "@opencode/util/fs-util";
36
36
  import { Global } from "@opencode/util/global";
37
- import { ID as ID4 } from "@opencode/schema/snapshot";
37
+ import { ID as ID9 } 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 Service39 extends Context.Service()("@opencode/Snapshot") {
46
+ class Service65 extends Context.Service()("@opencode/Snapshot") {
47
47
  }
48
- var layer = Layer.effect(Service39, Effect.gen(function* () {
48
+ var layer = Layer.effect(Service65, Effect.gen(function* () {
49
49
  const fs = yield* FSUtil.Service;
50
- const git = yield* Service80;
50
+ const git = yield* Service83;
51
51
  const global = yield* Global.Service;
52
- const location = yield* Service78;
52
+ const location = yield* Service81;
53
53
  const lifetime = yield* Scope.Scope;
54
54
  const state = create3({
55
55
  name: "snapshot",
@@ -63,7 +63,7 @@ var layer = Layer.effect(Service39, 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)));
@@ -72,7 +72,7 @@ var layer = Layer.effect(Service39, Effect.gen(function* () {
72
72
  const repository = repositoryFiber.pipe(Effect.uninterruptible, Effect.flatMap(Fiber.join));
73
73
  const scope = Effect.fnUntraced(function* (worktree) {
74
74
  if (!FSUtil.contains(worktree, location.directory))
75
- return yield* new Error3({ operation: "capture", message: "Location is outside the project" });
75
+ return yield* new Error4({ operation: "capture", message: "Location is outside the project" });
76
76
  return RelativePath2.make(path.relative(worktree, location.directory).replaceAll("\\", "/") || ".");
77
77
  });
78
78
  const enabled = () => location.vcs?.type === "git" && state.get().enabled;
@@ -96,7 +96,7 @@ var layer = Layer.effect(Service39, Effect.gen(function* () {
96
96
  maximumUntrackedFileBytes: 2 * 1024 * 1024
97
97
  });
98
98
  yield* packWhenDue(repo.snapshotRepository);
99
- return ID4.make(tree);
99
+ return ID9.make(tree);
100
100
  }).pipe(Effect.catch((cause) => Effect.logWarning("failed to capture snapshot", { cause }).pipe(Effect.as(undefined))));
101
101
  });
102
102
  const comparison = Effect.fnUntraced(function* (operation, input) {
@@ -136,25 +136,25 @@ var layer = Layer.effect(Service39, Effect.gen(function* () {
136
136
  for (const [file, snapshot] of input.files) {
137
137
  const absolute = path.resolve(worktree, file);
138
138
  if (!FSUtil.contains(worktree, absolute))
139
- return yield* new Error3({ operation: "restore", message: `Path escapes the project: ${file}` });
139
+ return yield* new Error4({ operation: "restore", message: `Path escapes the project: ${file}` });
140
140
  files.set(file, TreeID2.make(snapshot));
141
141
  }
142
142
  return files;
143
143
  });
144
144
  const restore = Effect.fn("Snapshot.restore")(function* (input) {
145
145
  if (!enabled())
146
- return yield* new Error3({ operation: "restore", message: "Snapshots are disabled" });
146
+ return yield* new Error4({ operation: "restore", message: "Snapshots are disabled" });
147
147
  const repo = yield* repository.pipe(Effect.mapError((cause) => failure("restore", cause)));
148
148
  yield* git.tree.restore({ repository: repo.snapshotRepository, files: yield* plan(repo.worktree, input) }).pipe(Effect.mapError((cause) => failure("restore", cause)));
149
149
  });
150
- return Service39.of({ transform: state.transform, reload: state.reload, capture, files, diff, restore });
150
+ return Service65.of({ transform: state.transform, reload: state.reload, capture, files, diff, restore });
151
151
  }).pipe(Effect.withSpan("Snapshot.boot")));
152
- var node42 = makeLocationNode({
153
- service: Service39,
152
+ var node68 = makeLocationNode({
153
+ service: Service65,
154
154
  layer,
155
- deps: [FSUtil.node, node83, Global.node, node81]
155
+ deps: [FSUtil.node, node87, Global.node, node85]
156
156
  });
157
- var noopLayer2 = Layer.succeed(Service39, Service39.of({
157
+ var noopLayer3 = Layer.succeed(Service65, Service65.of({
158
158
  transform: () => Effect.succeed({ dispose: Effect.void }),
159
159
  reload: () => Effect.void,
160
160
  capture: () => Effect.undefined,
@@ -163,13 +163,13 @@ var noopLayer2 = Layer.succeed(Service39, Service39.of({
163
163
  restore: () => Effect.void
164
164
  }));
165
165
  function failure(operation, cause) {
166
- if (cause instanceof Error3 && cause.operation === operation)
166
+ if (cause instanceof Error4 && cause.operation === operation)
167
167
  return cause;
168
- return new Error3({
168
+ return new Error4({
169
169
  operation,
170
170
  message: cause instanceof globalThis.Error ? cause.message : String(cause),
171
171
  cause
172
172
  });
173
173
  }
174
174
 
175
- export { ID4, Error3, Service39, node42, noopLayer2, exports_snapshot2 };
175
+ export { ID9, Error4, Service65, node68, noopLayer3, exports_snapshot2 };
@@ -1,33 +1,33 @@
1
1
  import {
2
- Service81,
3
- node84
4
- } from "./model-zqm6kvvn.js";
2
+ Service84,
3
+ node88
4
+ } from "./snapshot-r6g4e95h.js";
5
5
  import {
6
6
  optional2,
7
7
  statics2
8
- } from "./model-z5v4ffb3.js";
8
+ } from "./snapshot-z5v4ffb3.js";
9
9
  import {
10
10
  Ref4,
11
- Service78,
12
- node81
13
- } from "./model-gyksvwm5.js";
11
+ Service81,
12
+ node85
13
+ } from "./snapshot-navbt8w1.js";
14
14
  import {
15
15
  __export
16
- } from "./model-9rqn6x4v.js";
16
+ } from "./snapshot-9rqn6x4v.js";
17
17
 
18
18
  // src/rpc.ts
19
19
  var exports_rpc = {};
20
20
  __export(exports_rpc, {
21
21
  Rpc: () => exports_rpc,
22
- Service: () => Service51,
22
+ Service: () => Service21,
23
23
  define: () => define2,
24
- node: () => node53
24
+ node: () => node24
25
25
  });
26
26
  import { define as define2 } from "@opencode/schema/rpc";
27
27
  import { Event } from "@opencode/schema/event";
28
28
  import { makeLocationNode } from "@opencode/util/effect/app-node";
29
29
  import { Context, Deferred, Effect, JsonSchema, Layer, Schema, SchemaRepresentation, Stream } from "effect";
30
- class Service51 extends Context.Service()("@opencode/Rpc") {
30
+ class Service21 extends Context.Service()("@opencode/Rpc") {
31
31
  }
32
32
 
33
33
  class DeclaredError extends Error {
@@ -39,9 +39,9 @@ class DeclaredError extends Error {
39
39
  this.data = data;
40
40
  }
41
41
  }
42
- var layer = Layer.effect(Service51, Effect.gen(function* () {
43
- const bus = yield* Service81;
44
- const location = yield* Service78;
42
+ var layer = Layer.effect(Service21, Effect.gen(function* () {
43
+ const bus = yield* Service84;
44
+ const location = yield* Service81;
45
45
  const ref = Ref4.make({ directory: location.directory, workspaceID: location.workspaceID });
46
46
  const closed = yield* Deferred.make();
47
47
  const callContext = {
@@ -118,14 +118,14 @@ var layer = Layer.effect(Service51, Effect.gen(function* () {
118
118
  const registered = events.get(name);
119
119
  if (!registered)
120
120
  return Stream.fail(new Error(`Unknown RPC event: ${definition.id}.${name}`));
121
- return bus.subscribe(registered.definition).pipe(Stream.provideService(Service78, location), Stream.mapEffect((payload) => logicalEvent(definition, name, payload, ref)));
121
+ return bus.subscribe(registered.definition).pipe(Stream.provideService(Service81, location), Stream.mapEffect((payload) => logicalEvent(definition, name, payload, ref)));
122
122
  }
123
123
  }
124
124
  };
125
125
  };
126
- return Service51.of({ register, call, client, close: Deferred.succeed(closed, undefined).pipe(Effect.asVoid) });
126
+ return Service21.of({ register, call, client, close: Deferred.succeed(closed, undefined).pipe(Effect.asVoid) });
127
127
  }));
128
- var node53 = makeLocationNode({ service: Service51, layer, deps: [node84, node81] });
128
+ var node24 = makeLocationNode({ service: Service21, layer, deps: [node88, node85] });
129
129
  var fields = {
130
130
  id: Event.ID,
131
131
  created: Schema.Finite,
@@ -210,4 +210,4 @@ var logicalEvent = Effect.fn("Rpc.logicalEvent")(function* (definition, name, pa
210
210
  };
211
211
  });
212
212
 
213
- export { Service51, node53, exports_rpc, define2 };
213
+ export { Service21, node24, exports_rpc, define2 };
@@ -1,17 +1,17 @@
1
1
  import {
2
2
  mergeOverlay2,
3
- Service71
4
- } from "./model-kh162zpt.js";
3
+ Service77
4
+ } from "./snapshot-qnhs79zs.js";
5
5
  import {
6
- Service64
7
- } from "./model-n7m069ya.js";
6
+ Service67
7
+ } from "./snapshot-mf8vvcps.js";
8
8
 
9
9
  // src/plugin/provider/configured.ts
10
10
  import { Effect, Option } from "effect";
11
11
  var configuredSettings2 = Effect.fn("ProviderPlugin.configuredSettings")(function* (id) {
12
- const providers = yield* Service71;
12
+ const providers = yield* Service77;
13
13
  const current = (yield* providers.get(id))?.settings;
14
- const service = yield* Effect.serviceOption(Service64);
14
+ const service = yield* Effect.serviceOption(Service67);
15
15
  const entries = Option.isSome(service) ? yield* service.value.entries() : [];
16
16
  return foldSettings2(entries, id, current);
17
17
  });
@@ -1,29 +1,29 @@
1
1
  import {
2
- Service64
3
- } from "./model-n7m069ya.js";
2
+ Service67
3
+ } from "./snapshot-mf8vvcps.js";
4
4
  import {
5
- Service57
6
- } from "./model-j1mj860n.js";
5
+ Service48
6
+ } from "./snapshot-mphgtbj1.js";
7
7
  import {
8
8
  observe2
9
- } from "./model-qsdy395h.js";
9
+ } from "./snapshot-qsdy395h.js";
10
10
  import {
11
11
  __export
12
- } from "./model-9rqn6x4v.js";
12
+ } from "./snapshot-9rqn6x4v.js";
13
13
 
14
14
  // src/config/plugin/image.ts
15
15
  var exports_image = {};
16
16
  __export(exports_image, {
17
17
  ConfigImagePlugin: () => exports_image,
18
- Plugin: () => Plugin29
18
+ Plugin: () => Plugin36
19
19
  });
20
20
  import { define } from "@opencode/plugin/effect/plugin";
21
21
  import { Effect } from "effect";
22
- var Plugin29 = define({
22
+ var Plugin36 = define({
23
23
  id: "opencode.config.image",
24
24
  effect: Effect.fn(function* (ctx) {
25
- const config = yield* Service64;
26
- const image = yield* Service57;
25
+ const config = yield* Service67;
26
+ const image = yield* Service48;
27
27
  const loaded = yield* observe2(config, ctx.event, image.reload());
28
28
  yield* image.transform((editor) => {
29
29
  for (const entry of loaded.entries) {
@@ -43,4 +43,4 @@ var Plugin29 = define({
43
43
  })
44
44
  });
45
45
 
46
- export { Plugin29, exports_image };
46
+ export { Plugin36, exports_image };
@@ -1,31 +1,31 @@
1
1
  import {
2
- Service65,
3
- node67
4
- } from "./model-hpje1asd.js";
2
+ Service68,
3
+ node72
4
+ } from "./snapshot-7fv8camv.js";
5
5
  import {
6
- Service78,
7
- node81
8
- } from "./model-gyksvwm5.js";
6
+ Service81,
7
+ node85
8
+ } from "./snapshot-navbt8w1.js";
9
9
  import {
10
- Service64,
11
- node66
12
- } from "./model-n7m069ya.js";
10
+ Service67,
11
+ node71
12
+ } from "./snapshot-mf8vvcps.js";
13
13
  import {
14
14
  names2,
15
15
  discover2
16
- } from "./model-zxq2ej10.js";
16
+ } from "./snapshot-zxq2ej10.js";
17
17
  import {
18
18
  __export
19
- } from "./model-9rqn6x4v.js";
19
+ } from "./snapshot-9rqn6x4v.js";
20
20
 
21
21
  // src/config/plugin/source.ts
22
22
  var exports_source = {};
23
23
  __export(exports_source, {
24
24
  ConfigPluginSource: () => exports_source,
25
- Service: () => Service8,
25
+ Service: () => Service11,
26
26
  empty: () => empty2,
27
- layer: () => layer7,
28
- node: () => node10
27
+ layer: () => layer8,
28
+ node: () => node13
29
29
  });
30
30
  import { FSUtil } from "@opencode/util/fs-util";
31
31
  import { Host } from "@opencode/plugin/host";
@@ -33,13 +33,13 @@ import { makeLocationNode } from "@opencode/util/effect/app-node";
33
33
  import { Context, Effect, Layer, Option, PubSub, Stream } from "effect";
34
34
  import path from "path";
35
35
  import { fileURLToPath, pathToFileURL } from "url";
36
- class Service8 extends Context.Service()("@opencode/ConfigPluginSource") {
36
+ class Service11 extends Context.Service()("@opencode/ConfigPluginSource") {
37
37
  }
38
- var layer7 = Layer.effect(Service8, Effect.gen(function* () {
39
- const config = yield* Service64;
40
- const watcher = yield* Service65;
38
+ var layer8 = Layer.effect(Service11, Effect.gen(function* () {
39
+ const config = yield* Service67;
40
+ const watcher = yield* Service68;
41
41
  const fs = yield* FSUtil.Service;
42
- const location = yield* Service78;
42
+ const location = yield* Service81;
43
43
  const configuredChanges = yield* PubSub.unbounded();
44
44
  const watched = new Set;
45
45
  const watchConfiguredSources = Effect.fn("ConfigPluginSource.watchConfiguredSources")(function* (entries, operations) {
@@ -58,7 +58,7 @@ var layer7 = Layer.effect(Service8, Effect.gen(function* () {
58
58
  yield* updates.pipe(Stream.runForEach(() => PubSub.publish(configuredChanges, undefined)), Effect.catchCause((cause) => Effect.logError("configured plugin watch failed", { target: operation.target, cause })), Effect.forkScoped({ startImmediately: true }));
59
59
  }
60
60
  });
61
- return Service8.of({
61
+ return Service11.of({
62
62
  operations: Effect.fn("ConfigPluginSource.operations")(function* () {
63
63
  const entries = yield* config.entries();
64
64
  const operations = yield* scan(fs, location, entries);
@@ -70,14 +70,14 @@ var layer7 = Layer.effect(Service8, Effect.gen(function* () {
70
70
  })), Stream.fromPubSub(configuredChanges))
71
71
  });
72
72
  }));
73
- var node10 = makeLocationNode({
74
- service: Service8,
75
- layer: layer7,
76
- deps: [node66, FSUtil.node, node67, node81]
73
+ var node13 = makeLocationNode({
74
+ service: Service11,
75
+ layer: layer8,
76
+ deps: [node71, FSUtil.node, node72, node85]
77
77
  });
78
78
  var empty2 = makeLocationNode({
79
- service: Service8,
80
- layer: Layer.succeed(Service8, Service8.of({
79
+ service: Service11,
80
+ layer: Layer.succeed(Service11, Service11.of({
81
81
  operations: () => Effect.succeed([]),
82
82
  changes: () => Stream.never
83
83
  })),
@@ -137,4 +137,4 @@ function isPluginSource(entries, file) {
137
137
  return entries.some((entry) => entry.type === "directory" && names2.some((directory) => FSUtil.contains(path.join(entry.path, directory), file)));
138
138
  }
139
139
 
140
- export { Service8, layer7, node10, empty2, exports_source };
140
+ export { Service11, layer8, node13, empty2, exports_source };
@@ -1,16 +1,16 @@
1
1
  import {
2
2
  name15,
3
3
  ps2
4
- } from "./model-w1yg9qkm.js";
4
+ } from "./snapshot-139zgem4.js";
5
5
  import {
6
6
  lazy2
7
- } from "./model-88xbtdfr.js";
7
+ } from "./snapshot-88xbtdfr.js";
8
8
  import {
9
9
  match2
10
- } from "./model-y1fvbwt7.js";
10
+ } from "./snapshot-y1fvbwt7.js";
11
11
  import {
12
12
  __export
13
- } from "./model-9rqn6x4v.js";
13
+ } from "./snapshot-9rqn6x4v.js";
14
14
 
15
15
  // src/shell/parse.ts
16
16
  var exports_parse = {};
@@ -1,11 +1,11 @@
1
1
  import {
2
2
  ephemeral2,
3
- Service81,
4
- node84
5
- } from "./model-zqm6kvvn.js";
3
+ Service84,
4
+ node88
5
+ } from "./snapshot-r6g4e95h.js";
6
6
  import {
7
7
  __export
8
- } from "./model-9rqn6x4v.js";
8
+ } from "./snapshot-9rqn6x4v.js";
9
9
 
10
10
  // src/plugin/sdk.ts
11
11
  var exports_sdk = {};
@@ -13,8 +13,8 @@ __export(exports_sdk, {
13
13
  SdkPlugins: () => exports_sdk,
14
14
  Service: () => Service3,
15
15
  Updated: () => Updated2,
16
- layer: () => layer5,
17
- node: () => node5
16
+ layer: () => layer4,
17
+ node: () => node4
18
18
  });
19
19
  import { Context, Effect, Layer } from "effect";
20
20
  import { makeGlobalNode } from "@opencode/util/effect/app-node";
@@ -22,8 +22,8 @@ var Updated2 = ephemeral2({ type: "sdk.plugin.updated", schema: {} });
22
22
 
23
23
  class Service3 extends Context.Service()("@opencode/SdkPlugins") {
24
24
  }
25
- var layer5 = Layer.effect(Service3, Effect.gen(function* () {
26
- const bus = yield* Service81;
25
+ var layer4 = Layer.effect(Service3, Effect.gen(function* () {
26
+ const bus = yield* Service84;
27
27
  const plugins = new Map;
28
28
  let revision = 0;
29
29
  return Service3.of({
@@ -33,6 +33,6 @@ var layer5 = Layer.effect(Service3, Effect.gen(function* () {
33
33
  all: () => [...plugins.values()]
34
34
  });
35
35
  }));
36
- var node5 = makeGlobalNode({ service: Service3, layer: layer5, deps: [node84] });
36
+ var node4 = makeGlobalNode({ service: Service3, layer: layer4, deps: [node88] });
37
37
 
38
- export { Updated2, Service3, layer5, node5, exports_sdk };
38
+ export { Updated2, Service3, layer4, node4, exports_sdk };
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  __export
3
- } from "./model-9rqn6x4v.js";
3
+ } from "./snapshot-9rqn6x4v.js";
4
4
 
5
5
  // src/codemode/catalog.ts
6
6
  var exports_catalog = {};