@opencode-ai/core 0.0.0-beta-19151 → 0.0.0-beta-19187

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 (778) hide show
  1. package/dist/account/sql.js +1 -1
  2. package/dist/agent.js +79 -79
  3. package/dist/aisdk-native.js +2 -2
  4. package/dist/aisdk.js +6 -6
  5. package/dist/app.js +9 -9
  6. package/dist/bus.js +71 -71
  7. package/dist/catalog.js +82 -82
  8. package/dist/chunks/{bus-wgz7hchk.js → snapshot-020j3mp2.js} +6 -6
  9. package/dist/chunks/{bus-w08r0s8v.js → snapshot-024d3rq7.js} +16 -16
  10. package/dist/chunks/{bus-0e0xafbb.js → snapshot-0e0xafbb.js} +2 -2
  11. package/dist/chunks/{bus-0paq2nw3.js → snapshot-0paq2nw3.js} +1 -1
  12. package/dist/chunks/{bus-0s9ayhjt.js → snapshot-0s9ayhjt.js} +1 -1
  13. package/dist/chunks/{bus-88ev9a66.js → snapshot-1372cpk1.js} +5 -5
  14. package/dist/chunks/{bus-9d4wfkp0.js → snapshot-15m9k394.js} +24 -24
  15. package/dist/chunks/{bus-8q4mgm57.js → snapshot-16r38w9g.js} +4 -4
  16. package/dist/chunks/{bus-t9zs3egg.js → snapshot-1a6p2twq.js} +4 -4
  17. package/dist/chunks/{bus-cfrqkav1.js → snapshot-1apakymg.js} +44 -44
  18. package/dist/chunks/{bus-669mtdgb.js → snapshot-1c8x35y2.js} +52 -52
  19. package/dist/chunks/{bus-1ct4r87x.js → snapshot-1ct4r87x.js} +1 -1
  20. package/dist/chunks/{bus-rzsjt7my.js → snapshot-1e7rwcw0.js} +18 -18
  21. package/dist/chunks/{bus-arsbtf4n.js → snapshot-1hj0ecw2.js} +27 -27
  22. package/dist/chunks/{bus-14hmenm3.js → snapshot-1hy241bm.js} +3 -3
  23. package/dist/chunks/{bus-637qq8n2.js → snapshot-1n116cmy.js} +9 -9
  24. package/dist/chunks/{bus-qkzfms5c.js → snapshot-1p8bnmch.js} +4 -4
  25. package/dist/chunks/{bus-0ez61b8c.js → snapshot-1rm0drdm.js} +4 -2
  26. package/dist/chunks/{bus-h9vk3x5a.js → snapshot-1tbefb4e.js} +13 -13
  27. package/dist/chunks/{bus-m3fm0fm8.js → snapshot-1ydgq2r4.js} +5 -5
  28. package/dist/chunks/{bus-psy76y9c.js → snapshot-21kgjbv4.js} +6 -6
  29. package/dist/chunks/{bus-21r38tys.js → snapshot-21r38tys.js} +1 -1
  30. package/dist/chunks/{bus-nb0eyw3j.js → snapshot-23dqznfd.js} +50 -50
  31. package/dist/chunks/{bus-5g33tj6b.js → snapshot-23vtnxct.js} +14 -14
  32. package/dist/chunks/{bus-tqqej2s1.js → snapshot-24hkfxm1.js} +8 -8
  33. package/dist/chunks/{bus-2a5m3afh.js → snapshot-2a5m3afh.js} +1 -1
  34. package/dist/chunks/{bus-r33ff4dw.js → snapshot-2d57kztd.js} +5 -5
  35. package/dist/chunks/{bus-2ht70gj7.js → snapshot-2ht70gj7.js} +1 -1
  36. package/dist/chunks/{bus-y7pta2mg.js → snapshot-2j3vet75.js} +33 -32
  37. package/dist/chunks/{bus-n3rn9b9d.js → snapshot-2m3ere56.js} +46 -46
  38. package/dist/chunks/{bus-wgxn7ww3.js → snapshot-2n9af97f.js} +4 -4
  39. package/dist/chunks/{bus-mcxg6pmm.js → snapshot-2w6bfmvf.js} +1 -1
  40. package/dist/chunks/{bus-ds0rx3zk.js → snapshot-30gfay9h.js} +8 -8
  41. package/dist/chunks/{bus-hen36v2j.js → snapshot-38dpc6qc.js} +24 -24
  42. package/dist/chunks/{bus-0mccjmkq.js → snapshot-3ew6g826.js} +37 -37
  43. package/dist/chunks/{bus-exbytbx3.js → snapshot-3f2705k6.js} +9 -9
  44. package/dist/chunks/{bus-3fc6dm20.js → snapshot-3fc6dm20.js} +1 -1
  45. package/dist/chunks/{bus-3hepkmqq.js → snapshot-3hepkmqq.js} +1 -1
  46. package/dist/chunks/{bus-3qzbfqsy.js → snapshot-3qzbfqsy.js} +2 -2
  47. package/dist/chunks/{bus-3smtnn6g.js → snapshot-3smtnn6g.js} +1 -1
  48. package/dist/chunks/{bus-wed177g1.js → snapshot-3szn5xn9.js} +6 -6
  49. package/dist/chunks/{bus-3tvqynh2.js → snapshot-3tvqynh2.js} +1 -1
  50. package/dist/chunks/{bus-mn4d6yy8.js → snapshot-40t5htn2.js} +28 -28
  51. package/dist/chunks/{bus-famd3pv6.js → snapshot-41mncz27.js} +5 -5
  52. package/dist/chunks/{bus-454k5vzh.js → snapshot-454k5vzh.js} +1 -1
  53. package/dist/chunks/{bus-yyebksmm.js → snapshot-4c61nftm.js} +2 -2
  54. package/dist/chunks/{bus-9r4cyneb.js → snapshot-4d2pz62c.js} +7 -7
  55. package/dist/chunks/{bus-vxp066d4.js → snapshot-4gc90xj1.js} +17 -17
  56. package/dist/chunks/{bus-4r2nyarf.js → snapshot-4r2nyarf.js} +1 -1
  57. package/dist/chunks/{bus-y01np14z.js → snapshot-4vch2zdd.js} +17 -17
  58. package/dist/chunks/{bus-jy1b6ewz.js → snapshot-55snk687.js} +8 -8
  59. package/dist/chunks/{bus-xpj7ktyz.js → snapshot-5725naen.js} +30 -30
  60. package/dist/chunks/{bus-5daktx2q.js → snapshot-5daktx2q.js} +1 -1
  61. package/dist/chunks/{bus-5fmxt4p5.js → snapshot-5fmxt4p5.js} +1 -1
  62. package/dist/chunks/{bus-x7mven0m.js → snapshot-5gkgjc9e.js} +10 -10
  63. package/dist/chunks/{bus-0vdrg7q8.js → snapshot-5hk7d8ve.js} +9 -9
  64. package/dist/chunks/{bus-5jvc5tg2.js → snapshot-5jvc5tg2.js} +1 -1
  65. package/dist/chunks/{bus-ar6r26gf.js → snapshot-5pbfg4es.js} +27 -27
  66. package/dist/chunks/{bus-x1nkgr2s.js → snapshot-5s5s3mdf.js} +41 -41
  67. package/dist/chunks/{bus-94vsv0sa.js → snapshot-5vbsxe1b.js} +22 -22
  68. package/dist/chunks/{bus-qcc87r2a.js → snapshot-67dbm4zp.js} +6 -6
  69. package/dist/chunks/{bus-nhp7y9q2.js → snapshot-6ggr1646.js} +25 -25
  70. package/dist/chunks/{bus-2402vzrj.js → snapshot-6h73sxmp.js} +5 -5
  71. package/dist/chunks/{bus-hd7305av.js → snapshot-6m616b53.js} +32 -32
  72. package/dist/chunks/{bus-4ttn3f9n.js → snapshot-6wsw2by1.js} +18 -18
  73. package/dist/chunks/{bus-mx2vryrr.js → snapshot-6y030jv9.js} +25 -25
  74. package/dist/chunks/{bus-6z5bwd8g.js → snapshot-6z5bwd8g.js} +2 -2
  75. package/dist/chunks/{bus-k2ahb10n.js → snapshot-703t54qh.js} +28 -28
  76. package/dist/chunks/{bus-711hfp6y.js → snapshot-711hfp6y.js} +2 -2
  77. package/dist/chunks/{bus-72nftnjy.js → snapshot-72nftnjy.js} +2 -2
  78. package/dist/chunks/{bus-1z80kc63.js → snapshot-75yf2d83.js} +4 -4
  79. package/dist/chunks/{bus-e5b0qn1c.js → snapshot-768z0hjh.js} +1 -1
  80. package/dist/chunks/{bus-7bmhse3q.js → snapshot-7bmhse3q.js} +1 -1
  81. package/dist/chunks/{bus-nbf26ms9.js → snapshot-7re8x0er.js} +17 -17
  82. package/dist/chunks/{bus-7httqr41.js → snapshot-7ts527p8.js} +23 -23
  83. package/dist/chunks/snapshot-7wsg6hf8.js +247 -0
  84. package/dist/chunks/snapshot-7zk4hah4.js +4 -0
  85. package/dist/chunks/{bus-ymy83g1g.js → snapshot-880d1yvd.js} +11 -11
  86. package/dist/chunks/{bus-37h71zvm.js → snapshot-8cwz8zkd.js} +28 -28
  87. package/dist/chunks/{bus-k2x2knng.js → snapshot-8cxqnk20.js} +22 -22
  88. package/dist/chunks/{bus-901gzjjm.js → snapshot-8n7pcwmv.js} +32 -32
  89. package/dist/chunks/{bus-rk0dvaye.js → snapshot-8rfm27zh.js} +8 -8
  90. package/dist/chunks/{bus-ecj1d35v.js → snapshot-8z5rgnjd.js} +8 -8
  91. package/dist/chunks/{bus-sdk1rkft.js → snapshot-909grfy1.js} +11 -11
  92. package/dist/chunks/{bus-dqe3fw1x.js → snapshot-91ze4v0n.js} +7 -7
  93. package/dist/chunks/{bus-93a8yfjt.js → snapshot-93a8yfjt.js} +2 -2
  94. package/dist/chunks/{bus-xp26bn8e.js → snapshot-96yjb8st.js} +15 -15
  95. package/dist/chunks/{bus-rjjem9h6.js → snapshot-988pjtx7.js} +7 -7
  96. package/dist/chunks/{bus-w1jjwhhz.js → snapshot-9cm69fc1.js} +24 -24
  97. package/dist/chunks/{bus-yzwjgzk2.js → snapshot-9kbsf2gn.js} +11 -11
  98. package/dist/chunks/{bus-qvbcabdc.js → snapshot-9qm9egsn.js} +2 -2
  99. package/dist/chunks/{bus-j1pn5v0m.js → snapshot-9vsg5cp7.js} +17 -17
  100. package/dist/chunks/{bus-y00kh1j2.js → snapshot-a16zj9be.js} +87 -87
  101. package/dist/chunks/{bus-vfxn8x23.js → snapshot-a1earc5n.js} +38 -38
  102. package/dist/chunks/{bus-aaet6srn.js → snapshot-aaet6srn.js} +2 -2
  103. package/dist/chunks/{bus-0dv7911r.js → snapshot-ag4rn41e.js} +4 -4
  104. package/dist/chunks/{bus-rae26gbb.js → snapshot-ajphwd6y.js} +8 -8
  105. package/dist/chunks/{bus-yg7sb877.js → snapshot-ajtjthsy.js} +2 -2
  106. package/dist/chunks/{bus-t8am0cpd.js → snapshot-ar56ndp2.js} +4 -4
  107. package/dist/chunks/{bus-azaycewg.js → snapshot-arf90xej.js} +23 -23
  108. package/dist/chunks/{bus-p83qt40j.js → snapshot-avc0zheg.js} +8 -8
  109. package/dist/chunks/{bus-9d4efts8.js → snapshot-awqyf91x.js} +5 -5
  110. package/dist/chunks/{bus-ez5b8bq3.js → snapshot-b3n2eqtx.js} +110 -87
  111. package/dist/chunks/{bus-2jqmte8w.js → snapshot-b3vyfvjr.js} +43 -12
  112. package/dist/chunks/{bus-6m5hv89w.js → snapshot-b4dzx2gd.js} +11 -11
  113. package/dist/chunks/{bus-b6gygkdw.js → snapshot-b6gygkdw.js} +2 -2
  114. package/dist/chunks/{bus-b9wsbatv.js → snapshot-b9wsbatv.js} +1 -1
  115. package/dist/chunks/{bus-bcezcar3.js → snapshot-bcezcar3.js} +2 -2
  116. package/dist/chunks/{bus-rfgs2k4e.js → snapshot-bgn4bef1.js} +28 -28
  117. package/dist/chunks/{bus-ygw7vpbc.js → snapshot-bgw31bhk.js} +9 -9
  118. package/dist/chunks/{bus-wgc2mr3y.js → snapshot-bpnz08mb.js} +2 -2
  119. package/dist/chunks/{bus-dc4554sh.js → snapshot-c92n51tt.js} +11 -11
  120. package/dist/chunks/{bus-zp7etnvg.js → snapshot-cb49kykp.js} +13 -13
  121. package/dist/chunks/{bus-p4spce3w.js → snapshot-cfgww4x1.js} +9 -9
  122. package/dist/chunks/{bus-y8jjghfg.js → snapshot-cjr8pdvn.js} +40 -40
  123. package/dist/chunks/{bus-g41n1fn3.js → snapshot-d1a1bt21.js} +5 -5
  124. package/dist/chunks/{bus-br62jje5.js → snapshot-d6n0x6yy.js} +40 -40
  125. package/dist/chunks/{bus-g2gt0w0k.js → snapshot-d72308c8.js} +2 -2
  126. package/dist/chunks/{bus-v4xjjhvg.js → snapshot-d7z6y9ja.js} +24 -24
  127. package/dist/chunks/{bus-8ryk0bb9.js → snapshot-d9wzmzc3.js} +5 -5
  128. package/dist/chunks/{bus-b8nbcbsg.js → snapshot-dcxt3b0h.js} +11 -11
  129. package/dist/chunks/{bus-ers0pt04.js → snapshot-dext7g0m.js} +24 -24
  130. package/dist/chunks/{bus-jwcy2c2z.js → snapshot-dpkg50ah.js} +4 -4
  131. package/dist/chunks/snapshot-dxj72tfx.js +18 -0
  132. package/dist/chunks/{bus-jnq64gng.js → snapshot-e0h0gh3e.js} +32 -32
  133. package/dist/chunks/{bus-s45j2666.js → snapshot-e81fpqd0.js} +26 -26
  134. package/dist/chunks/{bus-m909ryej.js → snapshot-en9d43be.js} +31 -31
  135. package/dist/chunks/{bus-n9mr47st.js → snapshot-enw72f67.js} +6 -6
  136. package/dist/chunks/{bus-708bhwm5.js → snapshot-etzd0975.js} +10 -10
  137. package/dist/chunks/{bus-6p81611h.js → snapshot-f0zn10rw.js} +171 -171
  138. package/dist/chunks/{bus-p1xeps0x.js → snapshot-f52kkt2b.js} +23 -23
  139. package/dist/chunks/{bus-8yq59nhy.js → snapshot-fc9k9wz0.js} +15 -15
  140. package/dist/chunks/{bus-qgn6gcr1.js → snapshot-fcrkznn8.js} +5 -5
  141. package/dist/chunks/{bus-bgjx49te.js → snapshot-fnvew4yj.js} +20 -20
  142. package/dist/chunks/{bus-fxbjtjnd.js → snapshot-fxbjtjnd.js} +1 -1
  143. package/dist/chunks/{bus-fxypknc8.js → snapshot-fxypknc8.js} +1 -1
  144. package/dist/chunks/{bus-mzgjcdh7.js → snapshot-g8e0epaw.js} +27 -27
  145. package/dist/chunks/{bus-0x9msrqt.js → snapshot-g9wx1hct.js} +19 -19
  146. package/dist/chunks/{bus-kkxjn8gg.js → snapshot-gafyc7gz.js} +7 -7
  147. package/dist/chunks/{bus-cyn6trz2.js → snapshot-ganjyh73.js} +6 -6
  148. package/dist/chunks/{bus-gd4qta3r.js → snapshot-gd4qta3r.js} +1 -1
  149. package/dist/chunks/{bus-nysebb6s.js → snapshot-gfym1ca3.js} +18 -18
  150. package/dist/chunks/{bus-gyrty9a0.js → snapshot-gmj1gppr.js} +12 -12
  151. package/dist/chunks/{bus-e2sc323g.js → snapshot-gndhbexs.js} +10 -10
  152. package/dist/chunks/{bus-jwcs8hd7.js → snapshot-gxc000b8.js} +9 -9
  153. package/dist/chunks/{bus-gdyavges.js → snapshot-gya8cf0v.js} +47 -41
  154. package/dist/chunks/{bus-x3ex91pf.js → snapshot-h5vhzp21.js} +35 -35
  155. package/dist/chunks/{bus-h6vf3j39.js → snapshot-h6vf3j39.js} +1 -1
  156. package/dist/chunks/{bus-q71jbywg.js → snapshot-h8xjeven.js} +298 -298
  157. package/dist/chunks/{bus-48186013.js → snapshot-haknmdce.js} +18 -18
  158. package/dist/chunks/{bus-b2wj7kwr.js → snapshot-hcfyj39r.js} +13 -13
  159. package/dist/chunks/{bus-heyhwy2w.js → snapshot-heyhwy2w.js} +1 -1
  160. package/dist/chunks/{bus-4cb9c786.js → snapshot-hf8ns2dd.js} +4 -4
  161. package/dist/chunks/{bus-45njm9q3.js → snapshot-hg6q2aep.js} +13 -13
  162. package/dist/chunks/{bus-kvk9z22h.js → snapshot-hh1d3sxx.js} +36 -36
  163. package/dist/chunks/{bus-bseqm2ca.js → snapshot-hkfxbmge.js} +19 -19
  164. package/dist/chunks/{bus-g2dy4bvs.js → snapshot-hrvm11jt.js} +3 -3
  165. package/dist/chunks/{bus-x5ga9etc.js → snapshot-ht2crakh.js} +24 -24
  166. package/dist/chunks/{bus-mkf7z2fx.js → snapshot-hvey9wt0.js} +32 -32
  167. package/dist/chunks/{bus-hw4pv20g.js → snapshot-hw4pv20g.js} +2 -2
  168. package/dist/chunks/{bus-5jmn74tv.js → snapshot-hwvag5jb.js} +12 -12
  169. package/dist/chunks/{bus-e8ja81sx.js → snapshot-hzhsscf8.js} +25 -25
  170. package/dist/chunks/{bus-593bc3zc.js → snapshot-hzymbmey.js} +5 -5
  171. package/dist/chunks/snapshot-j1vjmznv.js +22 -0
  172. package/dist/chunks/{bus-d2rwh673.js → snapshot-j58zjd36.js} +19 -19
  173. package/dist/chunks/{bus-j6p1aehr.js → snapshot-jd3azxa6.js} +85 -85
  174. package/dist/chunks/{bus-nhet2z82.js → snapshot-jdk5bzr4.js} +29 -29
  175. package/dist/chunks/{bus-xqsy6kp0.js → snapshot-jnmmvqjs.js} +1 -1
  176. package/dist/chunks/{bus-v3bjms6p.js → snapshot-jsrm0jes.js} +53 -53
  177. package/dist/chunks/{bus-53gb87fg.js → snapshot-jxzd6v7d.js} +46 -46
  178. package/dist/chunks/{bus-dn6skpfz.js → snapshot-k2r69zh9.js} +14 -14
  179. package/dist/chunks/{bus-k4bwy1x5.js → snapshot-k4bwy1x5.js} +1 -1
  180. package/dist/chunks/{bus-m7vkk1dw.js → snapshot-ka43tmws.js} +28 -28
  181. package/dist/chunks/{bus-xx52rexs.js → snapshot-ka5snxjp.js} +4 -4
  182. package/dist/chunks/{bus-wp43gv37.js → snapshot-kahjggx0.js} +10 -10
  183. package/dist/chunks/{bus-v210efr7.js → snapshot-kfs2vgth.js} +19 -19
  184. package/dist/chunks/{bus-kg06axw8.js → snapshot-kg06axw8.js} +1 -1
  185. package/dist/chunks/{bus-6qpq0xzz.js → snapshot-kk60f5rs.js} +16 -16
  186. package/dist/chunks/{bus-mnj85pt4.js → snapshot-kp5z882f.js} +12 -12
  187. package/dist/chunks/{bus-qqxx9c59.js → snapshot-kvqvfjxg.js} +10 -10
  188. package/dist/chunks/{bus-mr8a2cts.js → snapshot-kx5cpq08.js} +4 -4
  189. package/dist/chunks/{bus-0njd92bg.js → snapshot-m2j9w2q8.js} +10 -10
  190. package/dist/chunks/{bus-m9w0rfyh.js → snapshot-m9w0rfyh.js} +1 -1
  191. package/dist/chunks/{bus-1bbkgx8g.js → snapshot-mhkvc446.js} +3 -3
  192. package/dist/chunks/{bus-g4pn5evg.js → snapshot-mkeycc06.js} +11 -11
  193. package/dist/chunks/{bus-007dvjm0.js → snapshot-mp5abn5e.js} +23 -23
  194. package/dist/chunks/{bus-6s48shje.js → snapshot-mq9r6drf.js} +2 -2
  195. package/dist/chunks/{bus-mngcm6jy.js → snapshot-mycvpxn8.js} +10 -10
  196. package/dist/chunks/{bus-v1p1x004.js → snapshot-n6wnzfnt.js} +6 -6
  197. package/dist/chunks/{bus-v8nrt0nt.js → snapshot-nexs1z18.js} +6 -6
  198. package/dist/chunks/{bus-9ezmfr4d.js → snapshot-nmycpjj8.js} +3 -3
  199. package/dist/chunks/{bus-36mzbjn4.js → snapshot-p6yzb5ay.js} +13 -9
  200. package/dist/chunks/{bus-862r0hmq.js → snapshot-p81w81mb.js} +60 -60
  201. package/dist/chunks/{bus-6zyntcx9.js → snapshot-p8tabr57.js} +3 -3
  202. package/dist/chunks/{bus-j6f8vpjn.js → snapshot-pa6mt9gp.js} +20 -20
  203. package/dist/chunks/{bus-tkptkkba.js → snapshot-pan7s928.js} +23 -23
  204. package/dist/chunks/{bus-j935v87r.js → snapshot-paphc93g.js} +2 -2
  205. package/dist/chunks/{bus-74k3x0m5.js → snapshot-pawcwqnj.js} +24 -24
  206. package/dist/chunks/{bus-mxevvyah.js → snapshot-pdv7zmmj.js} +11 -11
  207. package/dist/chunks/{bus-pjvnvgmy.js → snapshot-pjvnvgmy.js} +1 -1
  208. package/dist/chunks/{bus-pknna89w.js → snapshot-pknna89w.js} +1 -1
  209. package/dist/chunks/{bus-7prj1563.js → snapshot-pp0xeafz.js} +16 -16
  210. package/dist/chunks/{bus-6tygk997.js → snapshot-pqy10p6r.js} +10 -10
  211. package/dist/chunks/{bus-s3eqpch7.js → snapshot-pt7wq7x0.js} +1 -1
  212. package/dist/chunks/{bus-v9vvq96z.js → snapshot-q8vzjd10.js} +39 -39
  213. package/dist/chunks/{bus-crh3pn7j.js → snapshot-qqk5wyw8.js} +9 -9
  214. package/dist/chunks/{bus-86s3977f.js → snapshot-qs4avvkb.js} +1 -1
  215. package/dist/chunks/{bus-qsdy395h.js → snapshot-qsdy395h.js} +1 -1
  216. package/dist/chunks/{bus-8xr8g0dt.js → snapshot-qw2p7f7e.js} +9 -9
  217. package/dist/chunks/{bus-hhaz7as1.js → snapshot-qyahze0k.js} +15 -15
  218. package/dist/chunks/{bus-8ye04jk8.js → snapshot-r2aw8hfz.js} +20 -20
  219. package/dist/chunks/{bus-a494ggh4.js → snapshot-r38jmka9.js} +16 -16
  220. package/dist/chunks/{bus-xr5vwsd4.js → snapshot-r5w2ssxe.js} +9 -9
  221. package/dist/chunks/{bus-r8dhm0tv.js → snapshot-r8dhm0tv.js} +1 -1
  222. package/dist/chunks/{bus-jfqtm2ew.js → snapshot-ratrq7cm.js} +4 -4
  223. package/dist/chunks/{bus-3dj32zjz.js → snapshot-re6cjhs8.js} +23 -23
  224. package/dist/chunks/{bus-tta5943s.js → snapshot-rnzmhn3n.js} +14 -14
  225. package/dist/chunks/{bus-4z6b0fg6.js → snapshot-rvb2zp0m.js} +6 -6
  226. package/dist/chunks/{bus-pchw21vv.js → snapshot-rwszmxta.js} +14 -14
  227. package/dist/chunks/{bus-r9gjvh9g.js → snapshot-rxez074z.js} +8 -8
  228. package/dist/chunks/{bus-e5pxfhgv.js → snapshot-rz7hn0qq.js} +4 -4
  229. package/dist/chunks/{bus-2cryvejd.js → snapshot-rzbakfyr.js} +1 -1
  230. package/dist/chunks/{bus-570hbvwx.js → snapshot-s3f6t33f.js} +11 -11
  231. package/dist/chunks/{bus-sba4qhjf.js → snapshot-sba4qhjf.js} +1 -1
  232. package/dist/chunks/{bus-099ksjr7.js → snapshot-skd000tr.js} +2 -2
  233. package/dist/chunks/{bus-g1w7kbk3.js → snapshot-swmjfjpy.js} +17 -17
  234. package/dist/chunks/{bus-ca0hpr7t.js → snapshot-t3ba3m2z.js} +11 -11
  235. package/dist/chunks/{bus-3wfq9j39.js → snapshot-t50egam6.js} +14 -14
  236. package/dist/chunks/{bus-0kkm17qb.js → snapshot-t840r6y8.js} +32 -32
  237. package/dist/chunks/{bus-tazgh4e4.js → snapshot-tazgh4e4.js} +1 -1
  238. package/dist/chunks/{bus-tcezcvh9.js → snapshot-tcezcvh9.js} +1 -1
  239. package/dist/chunks/{bus-19ghveyz.js → snapshot-te6rn4e4.js} +11 -11
  240. package/dist/chunks/{bus-5rj9yf9k.js → snapshot-thf49529.js} +13 -13
  241. package/dist/chunks/{bus-tjykrgmx.js → snapshot-tjykrgmx.js} +1 -1
  242. package/dist/chunks/{bus-nep1jn7g.js → snapshot-tnbsa9ys.js} +23 -23
  243. package/dist/chunks/{bus-b0m1y6mq.js → snapshot-tppvcy65.js} +9 -9
  244. package/dist/chunks/{bus-65vwahm5.js → snapshot-tt4wv3c1.js} +3 -3
  245. package/dist/chunks/{bus-vffa83p2.js → snapshot-txc69p28.js} +31 -31
  246. package/dist/chunks/{bus-ccgr98mz.js → snapshot-veapvh03.js} +9 -9
  247. package/dist/chunks/{bus-a3x9xvd8.js → snapshot-vep9yay1.js} +4 -4
  248. package/dist/chunks/{bus-gpxh8apv.js → snapshot-vky4d6kn.js} +15 -15
  249. package/dist/chunks/{bus-3hf4cecm.js → snapshot-vprecwf5.js} +23 -23
  250. package/dist/chunks/{bus-hv52frfs.js → snapshot-w10c8kxq.js} +19 -19
  251. package/dist/chunks/{bus-w3wsvvr9.js → snapshot-w3wsvvr9.js} +1 -1
  252. package/dist/chunks/{bus-8kg6mr26.js → snapshot-wcwzqypc.js} +22 -22
  253. package/dist/chunks/{bus-wd87259q.js → snapshot-wd87259q.js} +1 -1
  254. package/dist/chunks/{bus-g7fn2nxc.js → snapshot-wn4t0eg6.js} +34 -34
  255. package/dist/chunks/{bus-2y34zzjz.js → snapshot-wnmqtqbz.js} +9 -9
  256. package/dist/chunks/{bus-3dpaf6yv.js → snapshot-wqnpacsy.js} +60 -60
  257. package/dist/chunks/{bus-hha4zry8.js → snapshot-wtm3m4mv.js} +4 -4
  258. package/dist/chunks/{bus-fnxzs0zj.js → snapshot-wzs3fvsw.js} +28 -28
  259. package/dist/chunks/{bus-x1ezjp6w.js → snapshot-x1ezjp6w.js} +1 -1
  260. package/dist/chunks/{bus-kw84e4xy.js → snapshot-xgm6gat2.js} +6 -6
  261. package/dist/chunks/{bus-tn3hnqfz.js → snapshot-xyz60e6p.js} +12 -12
  262. package/dist/chunks/{bus-qphg5mmy.js → snapshot-xzpf9br7.js} +41 -41
  263. package/dist/chunks/{bus-ykcesz1b.js → snapshot-y08fmh3j.js} +4 -4
  264. package/dist/chunks/{bus-y1fvbwt7.js → snapshot-y1fvbwt7.js} +1 -1
  265. package/dist/chunks/snapshot-y86ghdgz.js +51 -0
  266. package/dist/chunks/{bus-hfr11a94.js → snapshot-ycv9gdpt.js} +9 -9
  267. package/dist/chunks/{bus-p4990n7g.js → snapshot-ydp0xqxw.js} +3 -3
  268. package/dist/chunks/{bus-pyzvmhjt.js → snapshot-yenvjmh1.js} +10 -10
  269. package/dist/chunks/{bus-yfbd16n1.js → snapshot-yfbd16n1.js} +2 -2
  270. package/dist/chunks/{bus-5k3f87xj.js → snapshot-yj3e99fm.js} +1 -1
  271. package/dist/chunks/{bus-36j5nzcr.js → snapshot-ymaccxa6.js} +17 -17
  272. package/dist/chunks/{bus-c8afrcwz.js → snapshot-z1ggamk1.js} +15 -15
  273. package/dist/chunks/{bus-z1k01bn4.js → snapshot-z1k01bn4.js} +2 -2
  274. package/dist/chunks/{bus-5dbnxb1n.js → snapshot-z5f26pen.js} +7 -7
  275. package/dist/chunks/{bus-z63w68vq.js → snapshot-z63w68vq.js} +2 -2
  276. package/dist/chunks/{bus-zn2pq4p8.js → snapshot-zajwd6at.js} +5 -5
  277. package/dist/chunks/{bus-pbxwk0py.js → snapshot-zazfhf2t.js} +27 -27
  278. package/dist/chunks/{bus-pem2nq6m.js → snapshot-zdagzmws.js} +4 -4
  279. package/dist/chunks/{bus-cqdj2zee.js → snapshot-zejwj74g.js} +16 -16
  280. package/dist/chunks/{bus-93131cf0.js → snapshot-zh1vshbg.js} +2 -2
  281. package/dist/chunks/{bus-at9x16kw.js → snapshot-zhn53cwh.js} +31 -31
  282. package/dist/chunks/{bus-xjf0nspg.js → snapshot-zsa9p6rj.js} +9 -9
  283. package/dist/chunks/{bus-hzfc5e89.js → snapshot-zvz3f5e8.js} +15 -15
  284. package/dist/chunks/{bus-zxq2ej10.js → snapshot-zxq2ej10.js} +1 -1
  285. package/dist/codemode/catalog.js +1 -1
  286. package/dist/codemode/instructions.js +5 -5
  287. package/dist/codemode/tool.js +2 -2
  288. package/dist/command.js +81 -81
  289. package/dist/config/discovery.js +77 -77
  290. package/dist/config/markdown.js +1 -1
  291. package/dist/config/normalize.js +19 -19
  292. package/dist/config/plugin/agent.js +114 -114
  293. package/dist/config/plugin/command.js +205 -205
  294. package/dist/config/plugin/compaction.js +153 -153
  295. package/dist/config/plugin/entry-observer.js +1 -1
  296. package/dist/config/plugin/formatter.js +116 -116
  297. package/dist/config/plugin/image.js +114 -114
  298. package/dist/config/plugin/instruction.js +85 -85
  299. package/dist/config/plugin/location-watcher.js +116 -116
  300. package/dist/config/plugin/mcp.js +123 -123
  301. package/dist/config/plugin/policy.js +113 -113
  302. package/dist/config/plugin/provider.js +112 -112
  303. package/dist/config/plugin/reference.js +116 -116
  304. package/dist/config/plugin/shell.js +117 -117
  305. package/dist/config/plugin/skill-file.js +96 -96
  306. package/dist/config/plugin/skill.js +134 -134
  307. package/dist/config/plugin/snapshot.js +114 -114
  308. package/dist/config/plugin/source.js +116 -116
  309. package/dist/config/plugin/tool-output.js +116 -116
  310. package/dist/config/plugin/websearch.js +114 -114
  311. package/dist/config/plugin/worktree.js +117 -117
  312. package/dist/config/variable.js +3 -3
  313. package/dist/config/watch.js +1 -1
  314. package/dist/config.js +118 -118
  315. package/dist/credential/sql.js +2 -2
  316. package/dist/credential.js +80 -80
  317. package/dist/database/database.js +64 -64
  318. package/dist/database/drizzle/effect-sqlite/driver.js +12 -12
  319. package/dist/database/drizzle/effect-sqlite/index.js +12 -12
  320. package/dist/database/drizzle/effect-sqlite/session.js +11 -11
  321. package/dist/database/drizzle/index.js +13 -13
  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 +14 -14
  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.gen.js +47 -47
  381. package/dist/database/migration.js +49 -49
  382. package/dist/database/path.js +2 -2
  383. package/dist/database/schema.gen.js +1 -1
  384. package/dist/database/schema.sql.js +1 -1
  385. package/dist/database/sqlite.bun.js +1 -1
  386. package/dist/database/sqlite.js +1 -1
  387. package/dist/database/sqlite.node.js +1 -1
  388. package/dist/database/sqlite.workerd.js +1 -1
  389. package/dist/database/v1-migration.bun.js +74 -74
  390. package/dist/database/v1-migration.js +1 -1
  391. package/dist/effect/app-node-builder.js +358 -358
  392. package/dist/effect/app-node-platform.js +2 -2
  393. package/dist/effect/keyed-mutex.js +3 -3
  394. package/dist/effect/websocket-constructor.js +1 -1
  395. package/dist/environment/driver.js +1 -1
  396. package/dist/environment/environment.js +88 -88
  397. package/dist/environment/exec-defaults.js +2 -2
  398. package/dist/environment/files.js +1 -1
  399. package/dist/environment/index.js +90 -90
  400. package/dist/environment/local.js +2 -2
  401. package/dist/environment/memory.js +2 -2
  402. package/dist/environment/unavailable.js +1 -1
  403. package/dist/event/sql.js +1 -1
  404. package/dist/event-logger.js +72 -72
  405. package/dist/file-mutation.js +89 -89
  406. package/dist/file-retention.js +1 -1
  407. package/dist/file.js +1 -1
  408. package/dist/filesystem/fff.bun.js +2 -2
  409. package/dist/filesystem/fff.js +1 -1
  410. package/dist/filesystem/fff.node.js +2 -2
  411. package/dist/filesystem/fff.workerd.js +2 -2
  412. package/dist/filesystem/ignore.js +1 -1
  413. package/dist/filesystem/location-watcher-policy.js +6 -6
  414. package/dist/filesystem/location-watcher.js +220 -220
  415. package/dist/filesystem/protected.js +1 -1
  416. package/dist/filesystem/search.js +93 -93
  417. package/dist/filesystem/watcher-binding.js +3 -3
  418. package/dist/filesystem/watcher.js +15 -15
  419. package/dist/filesystem.js +94 -94
  420. package/dist/form.js +82 -82
  421. package/dist/formatter/builtins.js +4 -4
  422. package/dist/formatter.js +84 -84
  423. package/dist/generate.js +82 -82
  424. package/dist/git.js +7 -7
  425. package/dist/github-copilot/chat/convert-to-openai-compatible-chat-messages.js +1 -1
  426. package/dist/github-copilot/chat/get-response-metadata.js +1 -1
  427. package/dist/github-copilot/chat/map-openai-compatible-finish-reason.js +1 -1
  428. package/dist/github-copilot/chat/openai-compatible-chat-language-model.js +7 -7
  429. package/dist/github-copilot/chat/openai-compatible-chat-options.js +1 -1
  430. package/dist/github-copilot/chat/openai-compatible-prepare-tools.js +1 -1
  431. package/dist/github-copilot/copilot-provider.js +17 -17
  432. package/dist/github-copilot/models.js +7 -7
  433. package/dist/github-copilot/openai-compatible-error.js +1 -1
  434. package/dist/github-copilot/responses/convert-to-openai-responses-input.js +1 -1
  435. package/dist/github-copilot/responses/map-openai-responses-finish-reason.js +1 -1
  436. package/dist/github-copilot/responses/openai-error.js +1 -1
  437. package/dist/github-copilot/responses/openai-responses-language-model.js +10 -10
  438. package/dist/github-copilot/responses/openai-responses-prepare-tools.js +6 -6
  439. package/dist/github-copilot/responses/tool/code-interpreter.js +1 -1
  440. package/dist/github-copilot/responses/tool/file-search.js +1 -1
  441. package/dist/github-copilot/responses/tool/image-generation.js +1 -1
  442. package/dist/github-copilot/responses/tool/web-search-preview.js +1 -1
  443. package/dist/github-copilot/responses/tool/web-search.js +1 -1
  444. package/dist/id/id.js +1 -1
  445. package/dist/image/photon.js +2 -2
  446. package/dist/image.js +6 -6
  447. package/dist/instance/service.js +5 -5
  448. package/dist/instance.js +349 -349
  449. package/dist/instruction-discovery.js +83 -83
  450. package/dist/instructions/builtins.js +82 -82
  451. package/dist/instructions/index.js +3 -3
  452. package/dist/integration/connection.js +1 -1
  453. package/dist/integration.js +83 -83
  454. package/dist/job.js +75 -75
  455. package/dist/kv/sql.js +2 -2
  456. package/dist/kv.js +71 -71
  457. package/dist/location-activity.js +86 -86
  458. package/dist/location-mutation.js +81 -81
  459. package/dist/location-service-map.js +81 -81
  460. package/dist/location-services.js +346 -346
  461. package/dist/location.js +84 -84
  462. package/dist/mcp/client.js +87 -87
  463. package/dist/mcp/index.js +102 -102
  464. package/dist/mcp/instructions.js +120 -120
  465. package/dist/mcp/oauth.js +2 -2
  466. package/dist/mcp/stdio.js +85 -85
  467. package/dist/mime.js +1 -1
  468. package/dist/modal/models.js +7 -7
  469. package/dist/model-resolver.js +85 -85
  470. package/dist/model.js +10 -10
  471. package/dist/models-dev.js +78 -78
  472. package/dist/oauth/page.js +1 -1
  473. package/dist/permission/saved.js +80 -80
  474. package/dist/permission/sql.js +5 -5
  475. package/dist/permission.js +103 -103
  476. package/dist/persistent-pty/binary.bun.js +1 -1
  477. package/dist/persistent-pty/daemon.js +1 -1
  478. package/dist/persistent-pty/index.js +82 -82
  479. package/dist/persistent-pty/pty-binding.js +1 -1
  480. package/dist/persistent-pty.js +73 -73
  481. package/dist/plugin/agent.js +96 -96
  482. package/dist/plugin/command.js +93 -93
  483. package/dist/plugin/hooks.js +5 -5
  484. package/dist/plugin/host.js +213 -213
  485. package/dist/plugin/instance.js +5 -5
  486. package/dist/plugin/internal.js +320 -320
  487. package/dist/plugin/mcp-codemode-exclusion.js +3 -3
  488. package/dist/plugin/models-dev.js +75 -75
  489. package/dist/plugin/module.js +7 -4
  490. package/dist/plugin/optimize.js +21 -0
  491. package/dist/plugin/plan.js +94 -94
  492. package/dist/plugin/promise.js +1 -1
  493. package/dist/plugin/provider/alibaba.js +2 -2
  494. package/dist/plugin/provider/amazon-bedrock.js +2 -2
  495. package/dist/plugin/provider/anthropic.js +2 -2
  496. package/dist/plugin/provider/azure.js +117 -117
  497. package/dist/plugin/provider/cerebras.js +2 -2
  498. package/dist/plugin/provider/cloudflare-ai-gateway.js +116 -116
  499. package/dist/plugin/provider/cloudflare-workers-ai.js +116 -116
  500. package/dist/plugin/provider/cohere.js +2 -2
  501. package/dist/plugin/provider/configured.js +113 -113
  502. package/dist/plugin/provider/dynamic.js +2 -2
  503. package/dist/plugin/provider/factory.js +1 -1
  504. package/dist/plugin/provider/gateway.js +2 -2
  505. package/dist/plugin/provider/github-copilot.js +79 -79
  506. package/dist/plugin/provider/gitlab.js +3 -3
  507. package/dist/plugin/provider/google-vertex.js +2 -2
  508. package/dist/plugin/provider/kilo.js +2 -2
  509. package/dist/plugin/provider/llmgateway.js +75 -75
  510. package/dist/plugin/provider/lmstudio.js +116 -116
  511. package/dist/plugin/provider/mistral.js +2 -2
  512. package/dist/plugin/provider/modal.js +78 -78
  513. package/dist/plugin/provider/nvidia.js +2 -2
  514. package/dist/plugin/provider/ollama.js +114 -114
  515. package/dist/plugin/provider/openai-compatible.js +1 -1
  516. package/dist/plugin/provider/openai.js +77 -77
  517. package/dist/plugin/provider/opencode.js +75 -75
  518. package/dist/plugin/provider/openrouter.js +3 -3
  519. package/dist/plugin/provider/perplexity.js +2 -2
  520. package/dist/plugin/provider/sap-ai-core.js +3 -3
  521. package/dist/plugin/provider/sdk-factory.js +1 -1
  522. package/dist/plugin/provider/snowflake-cortex.js +2 -2
  523. package/dist/plugin/provider/venice.js +2 -2
  524. package/dist/plugin/provider/vercel.js +2 -2
  525. package/dist/plugin/provider/vllm.js +116 -116
  526. package/dist/plugin/provider/xai.js +76 -76
  527. package/dist/plugin/provider/zenmux.js +2 -2
  528. package/dist/plugin/provider.js +154 -154
  529. package/dist/plugin/sdk.js +72 -72
  530. package/dist/plugin/service.js +3 -3
  531. package/dist/plugin/skill.js +129 -129
  532. package/dist/plugin/source-directory.js +1 -1
  533. package/dist/plugin/supervisor.js +337 -337
  534. package/dist/plugin/update.js +6 -6
  535. package/dist/plugin/variant.js +2 -2
  536. package/dist/plugin/vcs/git.js +82 -82
  537. package/dist/plugin/vcs/hg.js +82 -82
  538. package/dist/plugin/warming.js +111 -111
  539. package/dist/plugin/websearch/exa.js +7 -7
  540. package/dist/plugin/websearch/firecrawl.js +8 -8
  541. package/dist/plugin/websearch/index.js +8 -8
  542. package/dist/plugin/websearch/mcp.js +2 -2
  543. package/dist/plugin/websearch/parallel.js +8 -8
  544. package/dist/plugin/websearch/tavily.js +4 -4
  545. package/dist/plugin.js +220 -220
  546. package/dist/project/schema.js +8 -8
  547. package/dist/project/sql.js +4 -4
  548. package/dist/project.js +83 -83
  549. package/dist/provider.js +5 -5
  550. package/dist/pty/protocol.js +1 -1
  551. package/dist/pty/schema.js +3 -3
  552. package/dist/pty/ticket.js +1 -1
  553. package/dist/pty.js +94 -94
  554. package/dist/reference/instructions.js +84 -84
  555. package/dist/reference.js +86 -86
  556. package/dist/repository-cache.js +76 -76
  557. package/dist/repository.js +3 -3
  558. package/dist/ripgrep/binary.js +2 -2
  559. package/dist/ripgrep.js +91 -91
  560. package/dist/rpc.js +81 -81
  561. package/dist/schema.js +1 -1
  562. package/dist/session/command.js +72 -72
  563. package/dist/session/compaction.js +127 -127
  564. package/dist/session/context.js +145 -145
  565. package/dist/session/environment.js +5 -5
  566. package/dist/session/error.js +5 -5
  567. package/dist/session/event.js +1 -1
  568. package/dist/session/execution/restart.js +217 -217
  569. package/dist/session/execution.js +120 -120
  570. package/dist/session/generate.js +144 -144
  571. package/dist/session/history.js +14 -14
  572. package/dist/session/inbox.js +86 -86
  573. package/dist/session/info.js +3 -3
  574. package/dist/session/instruction-entry.js +77 -77
  575. package/dist/session/instruction-state.js +8 -8
  576. package/dist/session/instructions.js +91 -91
  577. package/dist/session/message-updater.js +2 -2
  578. package/dist/session/message.js +1 -1
  579. package/dist/session/model-request.js +112 -112
  580. package/dist/session/model-transport.js +9 -9
  581. package/dist/session/move.js +124 -124
  582. package/dist/session/projector.js +84 -84
  583. package/dist/session/prompt.js +99 -99
  584. package/dist/session/revert.js +85 -85
  585. package/dist/session/run-coordinator.js +3 -3
  586. package/dist/session/runner/index.js +3 -3
  587. package/dist/session/runner/llm.js +223 -223
  588. package/dist/session/runner/max-steps.js +1 -1
  589. package/dist/session/runner/model.js +85 -85
  590. package/dist/session/runner/publish-llm-event.js +3 -3
  591. package/dist/session/runner/retry.js +2 -2
  592. package/dist/session/runner/step.js +117 -117
  593. package/dist/session/runner/to-llm-message.js +1 -1
  594. package/dist/session/schema.js +3 -3
  595. package/dist/session/session.js +167 -167
  596. package/dist/session/shell.js +130 -130
  597. package/dist/session/skill.js +97 -97
  598. package/dist/session/sql.js +5 -5
  599. package/dist/session/stats.js +71 -71
  600. package/dist/session/store.js +84 -84
  601. package/dist/session/subagent-completion.js +1 -1
  602. package/dist/session/subagent-job.js +203 -203
  603. package/dist/session/system-prompt.js +7 -5
  604. package/dist/session/title.js +145 -145
  605. package/dist/session/to-session-error.js +105 -105
  606. package/dist/session/transfer.js +211 -211
  607. package/dist/session/usage.js +1 -1
  608. package/dist/session.js +207 -207
  609. package/dist/shell/parse.js +6 -6
  610. package/dist/shell/result.js +1 -1
  611. package/dist/shell/scan.js +1 -1
  612. package/dist/shell/select.js +13 -13
  613. package/dist/shell.js +132 -132
  614. package/dist/skill/discovery.js +6 -6
  615. package/dist/skill/instructions.js +101 -101
  616. package/dist/skill.js +106 -106
  617. package/dist/snapshot.js +86 -86
  618. package/dist/state.js +1 -1
  619. package/dist/tool/html-markdown.js +1 -1
  620. package/dist/tool/http-body.js +1 -1
  621. package/dist/tool/mcp.js +119 -119
  622. package/dist/tool/plugin/edit.js +110 -110
  623. package/dist/tool/plugin/file-diff.js +1 -1
  624. package/dist/tool/plugin/glob.js +117 -117
  625. package/dist/tool/plugin/grep.js +117 -117
  626. package/dist/tool/plugin/opencode.js +3 -3
  627. package/dist/tool/plugin/patch.js +116 -116
  628. package/dist/tool/plugin/question.js +99 -99
  629. package/dist/tool/plugin/read.js +120 -120
  630. package/dist/tool/plugin/shell.js +210 -210
  631. package/dist/tool/plugin/skill.js +107 -107
  632. package/dist/tool/plugin/subagent.js +212 -212
  633. package/dist/tool/plugin/webfetch.js +104 -104
  634. package/dist/tool/plugin/websearch.js +104 -104
  635. package/dist/tool/plugin/write.js +114 -114
  636. package/dist/tool/read-filesystem.js +96 -96
  637. package/dist/tool/runtime.js +1 -1
  638. package/dist/tool-output.js +8 -8
  639. package/dist/tool.js +13 -13
  640. package/dist/types/plugin/module.d.ts +36 -34
  641. package/dist/types/plugin/{system-prompt.d.ts → optimize.d.ts} +4 -3
  642. package/dist/types/session/system-prompt.d.ts +1 -0
  643. package/dist/util/error.js +1 -1
  644. package/dist/util/iife.js +1 -1
  645. package/dist/util/lazy.js +1 -1
  646. package/dist/util/slug.js +1 -1
  647. package/dist/util/token.js +1 -1
  648. package/dist/util/which.js +1 -1
  649. package/dist/util/wildcard.js +1 -1
  650. package/dist/v1/config/agent.js +5 -5
  651. package/dist/v1/config/attachment.js +4 -4
  652. package/dist/v1/config/command.js +3 -3
  653. package/dist/v1/config/config.js +16 -16
  654. package/dist/v1/config/error.js +2 -2
  655. package/dist/v1/config/formatter.js +7 -7
  656. package/dist/v1/config/layout.js +1 -1
  657. package/dist/v1/config/lsp.js +3 -3
  658. package/dist/v1/config/mcp.js +4 -4
  659. package/dist/v1/config/migrate.js +4 -4
  660. package/dist/v1/config/permission.js +3 -3
  661. package/dist/v1/config/plugin.js +3 -3
  662. package/dist/v1/config/provider-options.js +1 -1
  663. package/dist/v1/config/provider.js +4 -4
  664. package/dist/v1/config/server.js +2 -2
  665. package/dist/v1/config/skills.js +3 -3
  666. package/dist/v1/permission.js +1 -1
  667. package/dist/vcs/patch.js +1 -1
  668. package/dist/vcs.js +85 -85
  669. package/dist/websearch.js +82 -82
  670. package/dist/wellknown/plugin.js +74 -74
  671. package/dist/wellknown.js +77 -77
  672. package/dist/workspace/driver.js +5 -5
  673. package/dist/workspace/sql.js +1 -1
  674. package/dist/workspace.js +74 -74
  675. package/dist/worktree/directory.js +2 -2
  676. package/dist/worktree/git.js +7 -7
  677. package/dist/worktree/refresh.js +338 -338
  678. package/dist/worktree/sql.js +5 -5
  679. package/dist/worktree.js +89 -89
  680. package/package.json +7 -9
  681. package/dist/chunks/bus-4v7qdvcn.js +0 -18
  682. package/dist/chunks/bus-anw4cmh3.js +0 -4
  683. package/dist/chunks/bus-ex6w7h60.js +0 -22
  684. package/dist/chunks/bus-gzzxkm3c.js +0 -247
  685. package/dist/chunks/bus-rmy3e5eg.js +0 -103
  686. package/dist/plugin/system-prompt.js +0 -18
  687. /package/dist/chunks/{bus-0fabt78z.js → snapshot-0fabt78z.js} +0 -0
  688. /package/dist/chunks/{bus-0qkdqm5v.js → snapshot-0qkdqm5v.js} +0 -0
  689. /package/dist/chunks/{bus-0zkw76rk.js → snapshot-0zkw76rk.js} +0 -0
  690. /package/dist/chunks/{bus-17cy0kzp.js → snapshot-17cy0kzp.js} +0 -0
  691. /package/dist/chunks/{bus-1cnp2v09.js → snapshot-1cnp2v09.js} +0 -0
  692. /package/dist/chunks/{bus-1kg9ymc8.js → snapshot-1kg9ymc8.js} +0 -0
  693. /package/dist/chunks/{bus-2710q6r3.js → snapshot-2710q6r3.js} +0 -0
  694. /package/dist/chunks/{bus-2axfhc9x.js → snapshot-2axfhc9x.js} +0 -0
  695. /package/dist/chunks/{bus-2c3vjs8z.js → snapshot-2c3vjs8z.js} +0 -0
  696. /package/dist/chunks/{bus-359p4xyc.js → snapshot-359p4xyc.js} +0 -0
  697. /package/dist/chunks/{bus-3asan66x.js → snapshot-3asan66x.js} +0 -0
  698. /package/dist/chunks/{bus-3t738kvx.js → snapshot-3t738kvx.js} +0 -0
  699. /package/dist/chunks/{bus-3v8g72cx.js → snapshot-3v8g72cx.js} +0 -0
  700. /package/dist/chunks/{bus-3wcehsnq.js → snapshot-3wcehsnq.js} +0 -0
  701. /package/dist/chunks/{bus-41nvscxy.js → snapshot-41nvscxy.js} +0 -0
  702. /package/dist/chunks/{bus-43n2bw4t.js → snapshot-43n2bw4t.js} +0 -0
  703. /package/dist/chunks/{bus-4knz6hnm.js → snapshot-4knz6hnm.js} +0 -0
  704. /package/dist/chunks/{bus-4y7fprxs.js → snapshot-4y7fprxs.js} +0 -0
  705. /package/dist/chunks/{bus-53557ph1.js → snapshot-53557ph1.js} +0 -0
  706. /package/dist/chunks/{bus-550bvhaj.js → snapshot-550bvhaj.js} +0 -0
  707. /package/dist/chunks/{bus-6prwharc.js → snapshot-6prwharc.js} +0 -0
  708. /package/dist/chunks/{bus-7akdwqpd.js → snapshot-7akdwqpd.js} +0 -0
  709. /package/dist/chunks/{bus-7m9af43g.js → snapshot-7m9af43g.js} +0 -0
  710. /package/dist/chunks/{bus-822emrt2.js → snapshot-822emrt2.js} +0 -0
  711. /package/dist/chunks/{bus-88xbtdfr.js → snapshot-88xbtdfr.js} +0 -0
  712. /package/dist/chunks/{bus-8n3pysct.js → snapshot-8n3pysct.js} +0 -0
  713. /package/dist/chunks/{bus-982e01ww.js → snapshot-982e01ww.js} +0 -0
  714. /package/dist/chunks/{bus-9a4afbnw.js → snapshot-9a4afbnw.js} +0 -0
  715. /package/dist/chunks/{bus-9rqn6x4v.js → snapshot-9rqn6x4v.js} +0 -0
  716. /package/dist/chunks/{bus-a1tpkmh4.js → snapshot-a1tpkmh4.js} +0 -0
  717. /package/dist/chunks/{bus-af5trqkr.js → snapshot-af5trqkr.js} +0 -0
  718. /package/dist/chunks/{bus-afrmfg78.js → snapshot-afrmfg78.js} +0 -0
  719. /package/dist/chunks/{bus-aqzs7mqg.js → snapshot-aqzs7mqg.js} +0 -0
  720. /package/dist/chunks/{bus-atq7p7m5.js → snapshot-atq7p7m5.js} +0 -0
  721. /package/dist/chunks/{bus-bkyjaxrp.js → snapshot-bkyjaxrp.js} +0 -0
  722. /package/dist/chunks/{bus-bmr6ed5q.js → snapshot-bmr6ed5q.js} +0 -0
  723. /package/dist/chunks/{bus-cf4snx6d.js → snapshot-cf4snx6d.js} +0 -0
  724. /package/dist/chunks/{bus-cvy3z8tj.js → snapshot-cvy3z8tj.js} +0 -0
  725. /package/dist/chunks/{bus-d9fn303g.js → snapshot-d9fn303g.js} +0 -0
  726. /package/dist/chunks/{bus-d9jj8t3e.js → snapshot-d9jj8t3e.js} +0 -0
  727. /package/dist/chunks/{bus-dajrwvna.js → snapshot-dajrwvna.js} +0 -0
  728. /package/dist/chunks/{bus-dap0rakb.js → snapshot-dap0rakb.js} +0 -0
  729. /package/dist/chunks/{bus-df08tz66.js → snapshot-df08tz66.js} +0 -0
  730. /package/dist/chunks/{bus-dy18nga0.js → snapshot-dy18nga0.js} +0 -0
  731. /package/dist/chunks/{bus-e5kj55wp.js → snapshot-e5kj55wp.js} +0 -0
  732. /package/dist/chunks/{bus-e73j6tqm.js → snapshot-e73j6tqm.js} +0 -0
  733. /package/dist/chunks/{bus-eh3zwz77.js → snapshot-eh3zwz77.js} +0 -0
  734. /package/dist/chunks/{bus-emrn6kk6.js → snapshot-emrn6kk6.js} +0 -0
  735. /package/dist/chunks/{bus-f0mxakyp.js → snapshot-f0mxakyp.js} +0 -0
  736. /package/dist/chunks/{bus-f6n9ztr4.js → snapshot-f6n9ztr4.js} +0 -0
  737. /package/dist/chunks/{bus-faypxj3z.js → snapshot-faypxj3z.js} +0 -0
  738. /package/dist/chunks/{bus-fd410y7t.js → snapshot-fd410y7t.js} +0 -0
  739. /package/dist/chunks/{bus-fxgpk5d8.js → snapshot-fxgpk5d8.js} +0 -0
  740. /package/dist/chunks/{bus-g4wezp1m.js → snapshot-g4wezp1m.js} +0 -0
  741. /package/dist/chunks/{bus-g86h250q.js → snapshot-g86h250q.js} +0 -0
  742. /package/dist/chunks/{bus-gebd4c9n.js → snapshot-gebd4c9n.js} +0 -0
  743. /package/dist/chunks/{bus-hk9envan.js → snapshot-hk9envan.js} +0 -0
  744. /package/dist/chunks/{bus-j2ntwpah.js → snapshot-j2ntwpah.js} +0 -0
  745. /package/dist/chunks/{bus-j5zkgpj8.js → snapshot-j5zkgpj8.js} +0 -0
  746. /package/dist/chunks/{bus-jr7sbwjy.js → snapshot-jr7sbwjy.js} +0 -0
  747. /package/dist/chunks/{bus-jwfs4k6c.js → snapshot-jwfs4k6c.js} +0 -0
  748. /package/dist/chunks/{bus-jzg6c2d5.js → snapshot-jzg6c2d5.js} +0 -0
  749. /package/dist/chunks/{bus-mntxs535.js → snapshot-mntxs535.js} +0 -0
  750. /package/dist/chunks/{bus-mp448xyj.js → snapshot-mp448xyj.js} +0 -0
  751. /package/dist/chunks/{bus-msx8hqn2.js → snapshot-msx8hqn2.js} +0 -0
  752. /package/dist/chunks/{bus-n05xt0ee.js → snapshot-n05xt0ee.js} +0 -0
  753. /package/dist/chunks/{bus-n3j8tn72.js → snapshot-n3j8tn72.js} +0 -0
  754. /package/dist/chunks/{bus-njntx4h6.js → snapshot-njntx4h6.js} +0 -0
  755. /package/dist/chunks/{bus-p8qxwesx.js → snapshot-p8qxwesx.js} +0 -0
  756. /package/dist/chunks/{bus-q3sfg36h.js → snapshot-q3sfg36h.js} +0 -0
  757. /package/dist/chunks/{bus-q74kybfr.js → snapshot-q74kybfr.js} +0 -0
  758. /package/dist/chunks/{bus-qaymkmh1.js → snapshot-qaymkmh1.js} +0 -0
  759. /package/dist/chunks/{bus-qb87gjwd.js → snapshot-qb87gjwd.js} +0 -0
  760. /package/dist/chunks/{bus-qfa1cgps.js → snapshot-qfa1cgps.js} +0 -0
  761. /package/dist/chunks/{bus-qrg20bc0.js → snapshot-qrg20bc0.js} +0 -0
  762. /package/dist/chunks/{bus-rcb2kzg1.js → snapshot-rcb2kzg1.js} +0 -0
  763. /package/dist/chunks/{bus-sdp7kfr6.js → snapshot-sdp7kfr6.js} +0 -0
  764. /package/dist/chunks/{bus-se0s1eqw.js → snapshot-se0s1eqw.js} +0 -0
  765. /package/dist/chunks/{bus-sk3qaz4a.js → snapshot-sk3qaz4a.js} +0 -0
  766. /package/dist/chunks/{bus-ssg3fenm.js → snapshot-ssg3fenm.js} +0 -0
  767. /package/dist/chunks/{bus-twg0f83k.js → snapshot-twg0f83k.js} +0 -0
  768. /package/dist/chunks/{bus-w803qqfp.js → snapshot-w803qqfp.js} +0 -0
  769. /package/dist/chunks/{bus-wer8tq1h.js → snapshot-wer8tq1h.js} +0 -0
  770. /package/dist/chunks/{bus-wtztk69x.js → snapshot-wtztk69x.js} +0 -0
  771. /package/dist/chunks/{bus-x0ckcb58.js → snapshot-x0ckcb58.js} +0 -0
  772. /package/dist/chunks/{bus-x1b8g1yb.js → snapshot-x1b8g1yb.js} +0 -0
  773. /package/dist/chunks/{bus-x61499pn.js → snapshot-x61499pn.js} +0 -0
  774. /package/dist/chunks/{bus-y44na4kk.js → snapshot-y44na4kk.js} +0 -0
  775. /package/dist/chunks/{bus-y8cydn3q.js → snapshot-y8cydn3q.js} +0 -0
  776. /package/dist/chunks/{bus-ygaqb7jw.js → snapshot-ygaqb7jw.js} +0 -0
  777. /package/dist/chunks/{bus-z9919s4g.js → snapshot-z9919s4g.js} +0 -0
  778. /package/dist/chunks/{bus-zbjnn3ac.js → snapshot-zbjnn3ac.js} +0 -0
@@ -1,23 +1,23 @@
1
1
  import {
2
2
  AbsolutePath2
3
- } from "./bus-p8qxwesx.js";
3
+ } from "./snapshot-p8qxwesx.js";
4
4
  import {
5
- Service74,
6
- node79
7
- } from "./bus-mngcm6jy.js";
5
+ Service79,
6
+ node84
7
+ } from "./snapshot-mycvpxn8.js";
8
8
  import {
9
- parse4,
9
+ parse5,
10
10
  validateBranch3,
11
11
  cachePath2,
12
12
  same2
13
- } from "./bus-2402vzrj.js";
13
+ } from "./snapshot-6h73sxmp.js";
14
14
  import {
15
- Service77,
16
- node82
17
- } from "./bus-qqxx9c59.js";
15
+ Service73,
16
+ node78
17
+ } from "./snapshot-kvqvfjxg.js";
18
18
  import {
19
19
  __export
20
- } from "./bus-9rqn6x4v.js";
20
+ } from "./snapshot-9rqn6x4v.js";
21
21
 
22
22
  // src/repository-cache.ts
23
23
  var exports_repository_cache = {};
@@ -30,9 +30,9 @@ __export(exports_repository_cache, {
30
30
  LockFailedError: () => LockFailedError2,
31
31
  RepositoryCache: () => exports_repository_cache,
32
32
  ResetFailedError: () => ResetFailedError2,
33
- Service: () => Service52,
33
+ Service: () => Service72,
34
34
  isError: () => isError2,
35
- node: () => node55,
35
+ node: () => node77,
36
36
  validateBranch: () => validateBranch2
37
37
  });
38
38
  import path from "path";
@@ -90,7 +90,7 @@ class CacheOperationError2 extends Schema.TaggedError()("RepositoryCacheOperatio
90
90
  }) {
91
91
  }
92
92
 
93
- class Service52 extends Context.Service()("@opencode/RepositoryCache") {
93
+ class Service72 extends Context.Service()("@opencode/RepositoryCache") {
94
94
  }
95
95
  function isError2(error) {
96
96
  return error instanceof InvalidBranchError2 || error instanceof CloneFailedError2 || error instanceof FetchFailedError2 || error instanceof CheckoutFailedError2 || error instanceof ResetFailedError2 || error instanceof LockFailedError2 || error instanceof CacheOperationError2;
@@ -101,25 +101,25 @@ var validateBranch2 = Effect.fn("RepositoryCache.validateBranch")(function* (bra
101
101
  catch: (error) => new InvalidBranchError2({ branch, message: errorMessage(error) })
102
102
  });
103
103
  });
104
- var layer = Layer.effect(Service52, Effect.gen(function* () {
104
+ var layer = Layer.effect(Service72, Effect.gen(function* () {
105
105
  const fs = yield* FSUtil.Service;
106
- const git = yield* Service74;
106
+ const git = yield* Service79;
107
107
  const flock = yield* EffectFlock.Service;
108
108
  const global = yield* Global.Service;
109
- const kv = yield* Service77;
110
- return Service52.of({
109
+ const kv = yield* Service73;
110
+ return Service72.of({
111
111
  ensure: Effect.fn("RepositoryCache.ensure")(function* (input) {
112
112
  if (input.branch)
113
113
  yield* validateBranch2(input.branch);
114
114
  const repository = input.reference.label;
115
115
  const localPath = cachePath2(global.repos, input.reference, input.branch);
116
116
  const key = `repository-cache:${localPath}`;
117
- const cloneTarget = parse4(input.reference.remote) ?? input.reference;
117
+ const cloneTarget = parse5(input.reference.remote) ?? input.reference;
118
118
  return yield* flock.withLock(Effect.gen(function* () {
119
119
  yield* cacheOperation(fs.ensureDir(path.dirname(localPath)), "ensure cache directory", localPath);
120
120
  const existing = yield* git.repo.discover(AbsolutePath2.make(localPath));
121
121
  const origin = existing ? yield* git.remote.get(existing) : undefined;
122
- const originReference = origin ? parse4(origin) : undefined;
122
+ const originReference = origin ? parse5(origin) : undefined;
123
123
  const worktree = existing ? yield* fs.resolve(localPath) : undefined;
124
124
  const reuse = Boolean(existing && existing.worktree === worktree && originReference && same2(originReference, cloneTarget));
125
125
  if (!reuse && (yield* fs.existsSafe(localPath))) {
@@ -167,10 +167,10 @@ var layer = Layer.effect(Service52, Effect.gen(function* () {
167
167
  })
168
168
  });
169
169
  }));
170
- var node55 = makeGlobalNode({
171
- service: Service52,
170
+ var node77 = makeGlobalNode({
171
+ service: Service72,
172
172
  layer,
173
- deps: [EffectFlock.node, FSUtil.node, node79, Global.node, node82]
173
+ deps: [EffectFlock.node, FSUtil.node, node84, Global.node, node78]
174
174
  });
175
175
  function errorMessage(error) {
176
176
  return error instanceof globalThis.Error ? error.message : String(error);
@@ -179,4 +179,4 @@ function cacheOperation(effect, operation, target) {
179
179
  return effect.pipe(Effect.mapError((error) => new CacheOperationError2({ operation, path: target, message: errorMessage(error) })));
180
180
  }
181
181
 
182
- export { InvalidBranchError2, CloneFailedError2, FetchFailedError2, CheckoutFailedError2, ResetFailedError2, LockFailedError2, CacheOperationError2, Service52, isError2, validateBranch2, node55, exports_repository_cache };
182
+ export { InvalidBranchError2, CloneFailedError2, FetchFailedError2, CheckoutFailedError2, ResetFailedError2, LockFailedError2, CacheOperationError2, Service72, isError2, validateBranch2, node77, exports_repository_cache };
@@ -1,15 +1,15 @@
1
1
  import {
2
- Service53
3
- } from "./bus-mx2vryrr.js";
2
+ Service45
3
+ } from "./snapshot-6y030jv9.js";
4
4
  import {
5
- Service32
6
- } from "./bus-n9mr47st.js";
5
+ Service42
6
+ } from "./snapshot-enw72f67.js";
7
7
  import {
8
8
  awaitActivation2
9
- } from "./bus-4v7qdvcn.js";
9
+ } from "./snapshot-dxj72tfx.js";
10
10
  import {
11
11
  __export
12
- } from "./bus-9rqn6x4v.js";
12
+ } from "./snapshot-9rqn6x4v.js";
13
13
 
14
14
  // src/session/command.ts
15
15
  var exports_command3 = {};
@@ -19,8 +19,8 @@ __export(exports_command3, {
19
19
  });
20
20
  import { Effect } from "effect";
21
21
  var execute2 = Effect.fn("SessionCommand.execute")(function* (input) {
22
- const instances = yield* Service32;
23
- const commands = yield* awaitActivation2.pipe(Effect.andThen(Service53), instances.provide(input.session));
22
+ const instances = yield* Service42;
23
+ const commands = yield* awaitActivation2.pipe(Effect.andThen(Service45), instances.provide(input.session));
24
24
  yield* commands.execute({
25
25
  name: input.command,
26
26
  invocation: {
@@ -1,15 +1,15 @@
1
1
  import {
2
2
  PositiveInt2
3
- } from "./bus-p8qxwesx.js";
3
+ } from "./snapshot-p8qxwesx.js";
4
4
  import {
5
5
  __export
6
- } from "./bus-9rqn6x4v.js";
6
+ } from "./snapshot-9rqn6x4v.js";
7
7
 
8
8
  // src/v1/config/mcp.ts
9
9
  var exports_mcp5 = {};
10
10
  __export(exports_mcp5, {
11
11
  ConfigMCPV1: () => exports_mcp5,
12
- Info: () => Info12,
12
+ Info: () => Info19,
13
13
  Local: () => Local2,
14
14
  OAuth: () => OAuth2,
15
15
  Remote: () => Remote2
@@ -64,6 +64,6 @@ var Remote2 = Schema.Struct({
64
64
  description: "Timeout in ms for MCP server requests. Defaults to 5000 (5 seconds) if not specified."
65
65
  })
66
66
  }).annotate({ identifier: "McpRemoteConfig" });
67
- var Info12 = Schema.Union([Local2, Remote2]).annotate({ discriminator: "type" });
67
+ var Info19 = Schema.Union([Local2, Remote2]).annotate({ discriminator: "type" });
68
68
 
69
- export { Local2, OAuth2, Remote2, Info12, exports_mcp5 };
69
+ export { Local2, OAuth2, Remote2, Info19, exports_mcp5 };
@@ -1,98 +1,114 @@
1
+ import {
2
+ render3
3
+ } from "./snapshot-p6yzb5ay.js";
1
4
  import {
2
5
  __export
3
- } from "./bus-9rqn6x4v.js";
6
+ } from "./snapshot-9rqn6x4v.js";
4
7
 
5
- // src/plugin/system-prompt.ts
6
- var exports_system_prompt = {};
7
- __export(exports_system_prompt, {
8
- AnthropicPlugin: () => AnthropicPlugin3,
8
+ // src/plugin/optimize.ts
9
+ var exports_optimize = {};
10
+ __export(exports_optimize, {
11
+ AnthropicToolsPlugin: () => AnthropicToolsPlugin2,
9
12
  ArceePlugin: () => ArceePlugin2,
10
13
  KimiPlugin: () => KimiPlugin2,
11
14
  MetaPlugin: () => MetaPlugin2,
12
15
  OpenAIPlugin: () => OpenAIPlugin3,
13
- Plugins: () => Plugins2,
14
- SystemPromptPlugin: () => exports_system_prompt
16
+ OpenAIToolsPlugin: () => OpenAIToolsPlugin2,
17
+ OptimizePlugin: () => exports_optimize,
18
+ Plugins: () => Plugins2
15
19
  });
16
- import { SystemPart } from "@opencode-ai/ai";
17
20
  import { define } from "@opencode-ai/plugin/effect/plugin";
21
+ import { Model } from "@opencode-ai/schema/model";
18
22
  import { Effect } from "effect";
19
23
 
20
- // src/plugin/system-prompt/anthropic.txt
21
- var anthropic_default = `You are OpenCode, the best coding agent on the planet.
24
+ // src/plugin/system-prompt/gpt.txt
25
+ var gpt_default = `You are an AI agent powered by OpenCode, a coding agent harness. Help the user accomplish their goals using the tools you have available.
22
26
 
23
- You are an interactive CLI tool that helps users with software engineering tasks. Use the instructions below and the tools available to you to assist the user.
27
+ # Harness
28
+ - Responses are rendered as GitHub-flavored Markdown.
29
+ - \`<system-reminder>\` blocks are harness instructions, not user-authored content. Read and follow them.
30
+ - Prefer parallelizing independent tool calls.
31
+ \${OPENCODE_TOOL_GUIDANCE}
24
32
 
25
- IMPORTANT: You must NEVER generate or guess URLs for the user unless you are confident that the URLs are for helping the user with programming. You may use URLs provided by the user in their messages or local files.
33
+ # Communication
26
34
 
27
- If the user asks for help or wants to give feedback inform them of the following:
28
- - ctrl+p to list available actions
29
- - To give feedback, users should report the issue at
30
- https://github.com/anomalyco/opencode
35
+ Use clear file paths when referring to files. Keep responses clear and concise, and avoid unnecessary technical jargon.
31
36
 
32
- When the user directly asks about OpenCode (eg. "can OpenCode do...", "does OpenCode have..."), or asks in second person (eg. "are you able...", "can you do..."), or asks how to use a specific OpenCode feature (eg. implement a hook, write a slash command, or install an MCP server), use the webfetch tool to gather information to answer the question from OpenCode docs. The list of available docs is available at https://opencode.ai/v2/docs/
37
+ ## Intermediate Commentary
33
38
 
34
- # Tone and style
35
- - Only use emojis if the user explicitly requests it. Avoid using emojis in all communication unless asked.
36
- - Your output will be displayed on a command line interface. Your responses should be short and concise. You can use GitHub-flavored markdown for formatting, and will be rendered in a monospace font using the CommonMark specification.
37
- - Output text to communicate with the user; all text you output outside of tool use is displayed to the user. Only use tools to complete tasks. Never use tools like the shell tool or code comments as means to communicate with the user during the session.
38
- - NEVER create files unless they're absolutely necessary for achieving your goal. ALWAYS prefer editing an existing file to creating a new one. This includes markdown files.
39
+ As you work, you send messages to the commentary channel. These are how you collaborate with the user while you work: stating assumptions and providing updates. Keep them concise and quickly scannable, and send them only when they add real information, such as a discovery, a tradeoff, or a blocker. Do not narrate routine reads, searches, or edits.
39
40
 
40
- # Professional objectivity
41
- Prioritize technical accuracy and truthfulness over validating the user's beliefs. Focus on facts and problem-solving, providing direct, objective technical info without any unnecessary superlatives, praise, or emotional validation. It is best for the user if OpenCode honestly applies the same rigorous standards to all ideas and disagrees when necessary, even if it may not be what the user wants to hear. Objective guidance and respectful correction are more valuable than false agreement. Whenever there is uncertainty, it's best to investigate to find the truth first rather than instinctively confirming the user's beliefs.
41
+ By default, treat new messages received during ongoing work as steering the active task rather than replacing it. Incorporate corrections and constraints, and answer questions briefly in commentary before continuing. Replace the task only when the user clearly cancels it or requests an incompatible objective.
42
42
 
43
- # Doing tasks
44
- The user will primarily request you perform software engineering tasks. This includes solving bugs, adding new functionality, refactoring code, explaining code, and more. For these tasks the following steps are recommended:
45
- - Tool results and user messages may include <system-reminder> tags. <system-reminder> tags contain useful information and reminders. They are automatically added by the system, and bear no direct relation to the specific tool results or user messages in which they appear.
43
+ Do not put a final response, such as a blocking or clarifying question, in the commentary channel. The final answer must always be fully self-contained.
46
44
 
45
+ ## Final Answer
47
46
 
48
- # Tool usage policy
49
- - When doing file search, prefer to use the subagent tool in order to reduce context usage.
50
- - You should proactively use the subagent tool with specialized agents when the task at hand matches the agent's description.
47
+ In the final answer, lead with the outcome, not the steps you took to reach it. Cover the most important information, use only as much structure as the answer needs, and avoid long-winded explanations unless necessary. Include technical detail only where it helps.
51
48
 
52
- - When webfetch returns a message about a redirect to a different host, you should immediately make a new webfetch request with the redirect URL provided in the response.
53
- - You can call multiple tools in a single response. If you intend to call multiple tools and there are no dependencies between them, make all independent tool calls in parallel. Maximize use of parallel tool calls where possible to increase efficiency. However, if some tool calls depend on previous calls to inform dependent values, do NOT call these tools in parallel and instead call them sequentially. For instance, if one operation must complete before another starts, run these operations sequentially instead. Never use placeholders or guess missing parameters in tool calls.
54
- - If the user specifies that they want you to run tools "in parallel", you MUST send a single message with multiple tool use content blocks. For example, if you need to launch multiple agents in parallel, send a single message with multiple subagent tool calls.
55
- - Use specialized tools instead of shell commands when possible, as this provides a better user experience. For file operations, use dedicated tools: read for reading files instead of cat/head/tail, edit for editing instead of sed/awk, and write for creating files instead of cat with heredoc or echo redirection. Reserve the shell tool exclusively for actual system commands and terminal operations that require shell execution. NEVER use shell echo or other command-line tools to communicate thoughts, explanations, or instructions to the user. Output all communication directly in your response text instead.
56
- - VERY IMPORTANT: When exploring the codebase to gather context or to answer a question that is not a needle query for a specific file/class/function, it is CRITICAL that you use the subagent tool instead of running search commands directly.
57
- <example>
58
- user: Where are errors from the client handled?
59
- assistant: [Uses the subagent tool to find the files that handle client errors instead of using glob or grep directly]
60
- </example>
61
- <example>
62
- user: What is the codebase structure?
63
- assistant: [Uses the subagent tool]
64
- </example>
49
+ # Working in codebases
50
+ - Keep changes consistent with the structure, naming, style, and patterns of the surrounding code.
51
+ - Treat unfamiliar files or changes as potential user work and investigate before deleting or overwriting them.
65
52
 
66
- # Code References
53
+ # Delegation
67
54
 
68
- When referencing specific functions or pieces of code include the pattern \`file_path:line_number\` to allow the user to easily navigate to the source code location.
55
+ Do not spawn subagents unless the user or applicable AGENTS.md/skill instructions explicitly ask for subagents, delegation, or parallel agent work.
69
56
 
70
- <example>
71
- user: Where are errors from the client handled?
72
- assistant: Clients are marked as failed in the \`connectToServer\` function in src/services/process.ts:712.
73
- </example>
57
+ # Destructive actions
58
+
59
+ Do not revert, reset, or discard changes you did not make. Never run destructive commands such as \`git reset --hard\`, \`git checkout --\`, or recursive deletes on broad paths unless the user clearly asked for that operation; if the target or scope is unclear, ask first. Prefer non-interactive git commands.
60
+
61
+ # Autonomy
62
+
63
+ Do not infer authorization for work beyond the user's request. Assumptions that help you make progress are fine as long as they stay within the user's intent and the scope of the task.
74
64
  `;
75
65
 
76
- // src/plugin/system-prompt/gpt-extension.txt
77
- var gpt_extension_default = `# Response channels
66
+ // src/plugin/system-prompt/gpt-astra.txt
67
+ var gpt_astra_default = `You are an AI agent powered by OpenCode, a coding agent harness. Help the user accomplish their goals using the tools you have available.
68
+
69
+ # Harness
70
+ - Responses are rendered as GitHub-flavored Markdown.
71
+ - \`<system-reminder>\` blocks are harness instructions, not user-authored content. Read and follow them.
72
+ - Prefer parallelizing independent tool calls.
73
+ - Do not use a skill based solely on keywords, superficial relevance, or its availability. Avoid re-reading skills already available in the conversation unless needed.
74
+ \${OPENCODE_TOOL_GUIDANCE}
75
+
76
+ # Communication
77
+
78
+ State the main point clearly and early. Keep responses clear and concise, and avoid unnecessary technical jargon. Use only as much structure as needed, and include technical detail only when it helps the conversation. Use clear file paths when referring to files.
79
+
80
+ When describing your work, avoid adding what you won't do, what will remain unchanged, or how you'll separate or categorize results. Do not introduce unprompted alternatives through framing such as "X, not Y" or "This isn't about X. It's about Y."
81
+
82
+ ## Autonomy
83
+
84
+ Infer the user's intent and your task scope from their instructions and the prior conversation context. You should bias towards action and carry out the user's intended task until it is completed. If the intent is unclear, progress towards the goal using the available information and ask for clarification while continuing independent work when possible.
85
+
86
+ When the user's prompt indicates a request for action, such as "can you...", "I want to...", "help me..." and similar expressions, treat these as instructions to take action. Do not stop at acknowledging capability (e.g. "Yes…"), proposing a plan, or offering to continue. Do not settle for a partial or "helpful enough" solution to save time, effort, or tokens. Continue until the user's intended goal is fulfilled, even when it requires sustained work.
87
+
88
+ ## Intermediate Commentary
78
89
 
79
90
  As you work, you send messages to the commentary channel. These are how you collaborate with the user while you work: stating assumptions and providing updates. Keep them concise and quickly scannable, and send them only when they add real information, such as a discovery, a tradeoff, or a blocker. Do not narrate routine reads, searches, or edits.
80
91
 
92
+ By default, treat new messages received during ongoing work as steering the active task rather than replacing it. Incorporate corrections and constraints, and answer questions briefly in commentary before continuing. Replace the task only when the user clearly cancels it or requests an incompatible objective.
93
+
81
94
  Do not put a final response, such as a blocking or clarifying question, in the commentary channel. The final answer must always be fully self-contained.
82
95
 
83
- In the final answer, lead with the outcome, not the steps you took to reach it. Cover the most important information, use only as much structure as the answer needs, and skip explanation the user did not ask for. Include technical detail only where it helps.
96
+ ## Final Answer
84
97
 
85
- # Delegation
98
+ In your final answer back to the user, focus on the most important information.
86
99
 
87
- Do not spawn subagents unless the user or applicable AGENTS.md/skill instructions explicitly ask for subagents, delegation, or parallel agent work.
100
+ # Working in codebases
88
101
 
89
- # Destructive actions
102
+ - Keep changes consistent with the structure, naming, style, and patterns of the surrounding code.
103
+ - Treat unfamiliar files or changes as potential user work and investigate before deleting or overwriting them.
104
+ - Do not introduce unsolicited warnings, disclaimers, approval flows, or safety/compliance checklists due to hypothetical risk.
105
+ - Do not write tests for reversible, low-impact changes or that mirror the implementation. If you do choose to verify your work with tests, make sure that the tests are meaningful and necessary to verify implementation.
106
+ - Run tests appropriate to the change and complete required checks. Once those pass, broaden or repeat testing only when new changes, failures, or unresolved concerns justify it; otherwise, continue toward completing the task.
90
107
 
91
- Do not revert, reset, or discard changes you did not make. Never run destructive commands such as \`git reset --hard\`, \`git checkout --\`, or recursive deletes on broad paths unless the user clearly asked for that operation; if the target or scope is unclear, ask first. Prefer non-interactive git commands.
92
108
 
93
- # Autonomy
109
+ # Delegation
94
110
 
95
- Do not infer authorization for work beyond the user's request. Assumptions that help you make progress are fine as long as they stay within the user's intent and the scope of the task.
111
+ Do not spawn subagents unless the user or applicable AGENTS.md/skill instructions explicitly ask for subagents, delegation, or parallel agent work.
96
112
  `;
97
113
 
98
114
  // src/plugin/system-prompt/kimi.txt
@@ -355,48 +371,55 @@ assistant: Clients are marked as failed in the \`connectToServer\` function in s
355
371
  </example>
356
372
  `;
357
373
 
358
- // src/plugin/system-prompt.ts
359
- var OpenAIPlugin3 = make("openai", (id) => id.includes("gpt") ? gpt_extension_default : undefined, {
360
- operation: "append"
361
- });
362
- var AnthropicPlugin3 = make("anthropic", (id) => id.includes("claude") ? anthropic_default : undefined, {
363
- operation: "replace"
374
+ // src/plugin/optimize.ts
375
+ var OpenAIPlugin3 = make("opencode.prompt.openai", (model) => {
376
+ const id = model.id.toLowerCase();
377
+ if (!id.includes("gpt"))
378
+ return;
379
+ return id.includes("gpt-6") ? gpt_astra_default : gpt_default;
364
380
  });
365
- var KimiPlugin2 = make("kimi", (id) => id.includes("kimi") ? kimi_default : undefined, {
366
- operation: "replace"
381
+ var OpenAIToolsPlugin2 = make("opencode.optimize.openai.tools", (model, tools) => {
382
+ const ids = [model.id, model.modelID, model.family].join(" ").toLowerCase();
383
+ if (!ids.includes("gpt"))
384
+ return;
385
+ delete tools.grep;
386
+ delete tools.glob;
387
+ return;
367
388
  });
368
- var ArceePlugin2 = make("arcee", (id) => id.includes("trinity") ? trinity_default : undefined, {
369
- operation: "replace"
389
+ var AnthropicToolsPlugin2 = make("opencode.optimize.anthropic.tools", (model, tools) => {
390
+ const ids = [model.id, model.modelID, model.family].join(" ").toLowerCase();
391
+ if (!ids.includes("claude"))
392
+ return;
393
+ delete tools.grep;
394
+ delete tools.glob;
395
+ return;
370
396
  });
371
- var MetaPlugin2 = make("meta", (id) => {
372
- if (!id.includes("muse"))
397
+ var KimiPlugin2 = make("opencode.prompt.kimi", (model) => model.id.toLowerCase().includes("kimi") ? kimi_default : undefined);
398
+ var ArceePlugin2 = make("opencode.prompt.arcee", (model) => model.id.toLowerCase().includes("trinity") ? trinity_default : undefined);
399
+ var MetaPlugin2 = make("opencode.prompt.meta", (model) => {
400
+ if (!model.id.toLowerCase().includes("muse"))
373
401
  return;
374
- const name = id.includes("muse-glimmer") ? "Muse Glimmer" : "Muse Spark";
375
- return meta_default.replaceAll("{{MODEL_NAME}}", name);
376
- }, { operation: "replace" });
377
- var Plugins2 = [OpenAIPlugin3, AnthropicPlugin3, KimiPlugin2, ArceePlugin2, MetaPlugin2];
378
- function make(id, getPrompt, options) {
402
+ return meta_default.replaceAll("{{MODEL_NAME}}", model.name);
403
+ });
404
+ var Plugins2 = [OpenAIPlugin3, KimiPlugin2, ArceePlugin2, MetaPlugin2];
405
+ function make(id, optimize) {
379
406
  return define({
380
- id: `opencode.prompt.${id}`,
381
- effect: Effect.fn(`SystemPromptPlugin.${id}`)(function* (ctx) {
407
+ id,
408
+ effect: Effect.fn(`OptimizePlugin.${id}`)(function* (ctx) {
382
409
  yield* ctx.session.hook("context", (event) => Effect.gen(function* () {
410
+ const model = (yield* ctx.catalog.model.list()).data.find((model) => model.providerID === event.model.providerID && model.id === event.model.id) ?? Model.Info.default(event.model.providerID, event.model.id);
411
+ const template = optimize(model, event.tools);
412
+ if (!template)
413
+ return;
383
414
  if ((yield* ctx.agent.get({ agentID: event.agent })).data.system)
384
415
  return;
385
416
  const system = event.system[0];
386
417
  if (!system)
387
418
  return;
388
- const model = (yield* ctx.catalog.model.list()).data.find((model) => model.providerID === event.model.providerID && model.id === event.model.id);
389
- const prompt = getPrompt(`${model?.modelID ?? event.model.id} ${model?.family ?? ""}`.toLowerCase());
390
- if (!prompt)
391
- return;
392
- if (options.operation === "append") {
393
- event.system.splice(1, 0, SystemPart.make(prompt));
394
- return;
395
- }
396
- event.system[0] = { ...system, text: prompt };
419
+ event.system[0] = { ...system, text: render3(template, Object.keys(event.tools)) };
397
420
  }).pipe(Effect.catch(() => Effect.void)));
398
421
  })
399
422
  });
400
423
  }
401
424
 
402
- export { OpenAIPlugin3, AnthropicPlugin3, KimiPlugin2, ArceePlugin2, MetaPlugin2, Plugins2, exports_system_prompt };
425
+ export { OpenAIPlugin3, OpenAIToolsPlugin2, AnthropicToolsPlugin2, KimiPlugin2, ArceePlugin2, MetaPlugin2, Plugins2, exports_optimize };
@@ -1,23 +1,56 @@
1
1
  import {
2
2
  fromPromise2
3
- } from "./bus-b9wsbatv.js";
3
+ } from "./snapshot-b9wsbatv.js";
4
+ import {
5
+ Service61
6
+ } from "./snapshot-38dpc6qc.js";
4
7
  import {
5
8
  __export
6
- } from "./bus-9rqn6x4v.js";
9
+ } from "./snapshot-9rqn6x4v.js";
7
10
 
8
11
  // src/plugin/module.ts
9
12
  var exports_module = {};
10
13
  __export(exports_module, {
11
14
  LoadError: () => LoadError2,
12
15
  PluginModule: () => exports_module,
13
- load: () => load2
16
+ make: () => make4
14
17
  });
15
18
  import { Host } from "@opencode-ai/plugin/host";
19
+ import { createPluginSources } from "@opencode-ai/plugin/source";
16
20
  import { Npm } from "@opencode-ai/util/npm";
17
- import { Effect, Schema } from "effect";
21
+ import { Deferred, Effect, FiberSet, PubSub, Schema, Stream } from "effect";
18
22
  import path from "path";
19
23
  import { stat } from "node:fs/promises";
20
24
  import { fileURLToPath, pathToFileURL } from "url";
25
+ var make4 = Effect.fn("PluginModule.make")(function* () {
26
+ const watcher = yield* Service61;
27
+ const scope = yield* Effect.scope;
28
+ const runPromise = yield* FiberSet.makeRuntimePromise();
29
+ const changes = yield* PubSub.unbounded();
30
+ const watched = new Set;
31
+ const watch = Effect.fn("PluginModule.watch")(function* (file) {
32
+ if (watched.has(file))
33
+ return;
34
+ watched.add(file);
35
+ const ready = yield* Deferred.make();
36
+ const target = yield* Effect.promise(() => watchTarget(file));
37
+ const updates = yield* watcher.subscribe(target, Deferred.succeed(ready, undefined));
38
+ yield* updates.pipe(Stream.runForEach(() => PubSub.publish(changes, undefined)), Effect.ensuring(Deferred.succeed(ready, undefined)), Effect.forkIn(scope, { startImmediately: true }));
39
+ yield* Deferred.await(ready);
40
+ });
41
+ const sources = yield* Effect.acquireRelease(Effect.sync(() => createPluginSources((file) => runPromise(watch(file)))), (sources) => Effect.sync(() => sources.dispose()));
42
+ return {
43
+ load: (operation, options) => load(operation, sources, options),
44
+ changes: () => Stream.fromPubSub(changes)
45
+ };
46
+ });
47
+ function watchTarget(file) {
48
+ return stat(file).then((info) => ({ path: file, type: info.isDirectory() ? "directory" : "file" }), (cause) => {
49
+ if (path.dirname(file) === file)
50
+ throw cause;
51
+ return watchTarget(path.dirname(file));
52
+ });
53
+ }
21
54
  var Module = Schema.Struct({
22
55
  default: Schema.Union([
23
56
  Schema.Struct({
@@ -36,7 +69,7 @@ class LoadError2 extends Schema.TaggedError()("PluginModule.LoadError", {
36
69
  cause: Schema.optional(Schema.Defect())
37
70
  }) {
38
71
  }
39
- var load2 = Effect.fn("PluginModule.load")(function* (operation, options) {
72
+ var load = Effect.fn("PluginModule.load")(function* (operation, sources, options) {
40
73
  const local = path.isAbsolute(operation.target);
41
74
  const npm = yield* Npm.Service;
42
75
  const installed = local ? undefined : options?.install === false ? yield* npm.resolve(operation.target) : yield* npm.add(operation.target);
@@ -46,11 +79,9 @@ var load2 = Effect.fn("PluginModule.load")(function* (operation, options) {
46
79
  return { pending: true };
47
80
  if (!entrypoint)
48
81
  return yield* new LoadError2({ message: `Plugin entrypoint not found: ${operation.target}` });
49
- const target = typeof Bun !== "undefined" ? fileURLToPath(entrypoint).replaceAll("\\", "/") : entrypoint;
50
- const source = operation.mtime === undefined ? entrypoint : `${target}?mtime=${operation.mtime}`;
51
- yield* Effect.log({ msg: "loading plugin", id: operation.target, entrypoint: source });
52
- const mod = yield* Effect.promise(() => Host.load(source));
53
- const value = (yield* Schema.decodeUnknownEffect(Module)(mod).pipe(Effect.mapError((cause) => new LoadError2({
82
+ yield* Effect.log({ msg: "loading plugin", id: operation.target, entrypoint });
83
+ const loaded = yield* Effect.promise(() => local ? sources.read(entrypoint) : Host.load(entrypoint).then((module) => ({ module, version: installed?.revision })));
84
+ const value = (yield* Schema.decodeUnknownEffect(Module)(loaded.module).pipe(Effect.mapError((cause) => new LoadError2({
54
85
  message: "Plugin must export a default definition with an id and an effect or setup function.",
55
86
  cause
56
87
  })))).default;
@@ -61,7 +92,7 @@ var load2 = Effect.fn("PluginModule.load")(function* (operation, options) {
61
92
  ...entrypoints.tui ? { tui: true } : {},
62
93
  ...entrypoints.rpc ? { rpc: true } : {}
63
94
  },
64
- revision: JSON.stringify([operation, installed?.revision]),
95
+ revision: JSON.stringify([operation, loaded.version]),
65
96
  source: path.isAbsolute(operation.target) ? { type: "local", path: fileURLToPath(entrypoint) } : {
66
97
  type: "package",
67
98
  target: operation.target,
@@ -71,4 +102,4 @@ var load2 = Effect.fn("PluginModule.load")(function* (operation, options) {
71
102
  };
72
103
  });
73
104
 
74
- export { LoadError2, load2, exports_module };
105
+ export { make4, LoadError2, exports_module };
@@ -1,17 +1,17 @@
1
1
  import {
2
2
  useragent2
3
- } from "./bus-570hbvwx.js";
3
+ } from "./snapshot-s3f6t33f.js";
4
4
  import {
5
5
  OAuth3,
6
- Service56
7
- } from "./bus-xpj7ktyz.js";
6
+ Service63
7
+ } from "./snapshot-5725naen.js";
8
8
  import {
9
- ID4,
9
+ ID6,
10
10
  MethodID2
11
- } from "./bus-ar6r26gf.js";
11
+ } from "./snapshot-5pbfg4es.js";
12
12
  import {
13
- ID18
14
- } from "./bus-4z6b0fg6.js";
13
+ ID16
14
+ } from "./snapshot-rvb2zp0m.js";
15
15
 
16
16
  // src/plugin/provider/xai.ts
17
17
  import { define } from "@opencode-ai/plugin/effect/plugin";
@@ -23,7 +23,7 @@ var scope = "openid profile email offline_access grok-cli:access api:access";
23
23
  var pollingSafetyMargin = 3000;
24
24
  var browserMethodID = MethodID2.make("browser");
25
25
  var deviceMethodID = MethodID2.make("device");
26
- var providerID = ID18.make("xai");
26
+ var providerID = ID16.make("xai");
27
27
  var Token = Schema.Struct({
28
28
  access_token: Schema.String,
29
29
  refresh_token: Schema.optional(Schema.String),
@@ -43,7 +43,7 @@ var DeviceError = Schema.Struct({
43
43
  });
44
44
  var decodeDeviceError = Schema.decodeUnknownOption(Schema.fromJsonString(DeviceError));
45
45
  var device = (app) => ({
46
- integrationID: ID4.make("xai"),
46
+ integrationID: ID6.make("xai"),
47
47
  method: {
48
48
  id: deviceMethodID,
49
49
  type: "oauth",
@@ -68,8 +68,8 @@ var device = (app) => ({
68
68
  var XAIPlugin2 = define({
69
69
  id: "opencode.provider.xai",
70
70
  effect: Effect.fn(function* (ctx) {
71
- const credentials = yield* Service56;
72
- yield* Effect.forEach(yield* credentials.list(ID4.make("xai")), (credential) => {
71
+ const credentials = yield* Service63;
72
+ yield* Effect.forEach(yield* credentials.list(ID6.make("xai")), (credential) => {
73
73
  if (credential.value.type !== "oauth" || credential.value.methodID !== browserMethodID)
74
74
  return Effect.void;
75
75
  return credentials.update(credential.id, {
@@ -2,10 +2,10 @@ import {
2
2
  NotFound2,
3
3
  WrongKind2,
4
4
  Failed2
5
- } from "./bus-2a5m3afh.js";
5
+ } from "./snapshot-2a5m3afh.js";
6
6
  import {
7
7
  __export
8
- } from "./bus-9rqn6x4v.js";
8
+ } from "./snapshot-9rqn6x4v.js";
9
9
 
10
10
  // src/environment/local.ts
11
11
  var exports_local = {};
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  __export
3
- } from "./bus-9rqn6x4v.js";
3
+ } from "./snapshot-9rqn6x4v.js";
4
4
 
5
5
  // src/plugin/promise.ts
6
6
  var exports_promise = {};
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  SessionEvent2
3
- } from "./bus-mntxs535.js";
3
+ } from "./snapshot-mntxs535.js";
4
4
  import {
5
5
  __export
6
- } from "./bus-9rqn6x4v.js";
6
+ } from "./snapshot-9rqn6x4v.js";
7
7
 
8
8
  // src/session/runner/retry.ts
9
9
  var exports_retry = {};