@opencode/core 0.0.0-dev-20775 → 0.0.0-dev-20777

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 (470) hide show
  1. package/dist/agent.js +66 -66
  2. package/dist/aisdk-native.js +64 -64
  3. package/dist/aisdk.js +69 -69
  4. package/dist/app.js +7 -7
  5. package/dist/bus.js +52 -52
  6. package/dist/chunks/{location-f0q4wdtr.js → location-02609e96.js} +13 -13
  7. package/dist/chunks/{location-x46t862s.js → location-05p4mhbg.js} +6 -6
  8. package/dist/chunks/location-0gzjc7ft.js +253 -0
  9. package/dist/chunks/{location-cycet1pr.js → location-15xcwm9t.js} +1 -1
  10. package/dist/chunks/location-1fq0wp1e.js +26 -0
  11. package/dist/chunks/{location-jc2mtm7q.js → location-1g5f91mn.js} +29 -29
  12. package/dist/chunks/{location-hg7mrb4w.js → location-1gmkcf0p.js} +7 -7
  13. package/dist/chunks/{location-fwh2zgtw.js → location-1h8se44f.js} +10 -10
  14. package/dist/chunks/{location-g9ak4sjw.js → location-1ts7y3cx.js} +9 -9
  15. package/dist/chunks/{location-3bv3jwr8.js → location-1v74vwhm.js} +11 -11
  16. package/dist/chunks/{location-7taj1gp1.js → location-1v9scpnw.js} +17 -17
  17. package/dist/chunks/{location-x9q78qat.js → location-1z20pv40.js} +15 -15
  18. package/dist/chunks/{location-7r962cny.js → location-22tdpft4.js} +20 -20
  19. package/dist/chunks/{location-6x4f2nxf.js → location-24skg3e0.js} +22 -22
  20. package/dist/chunks/{location-vgbc38w6.js → location-257vwa0c.js} +17 -17
  21. package/dist/chunks/{location-4t6c5kv5.js → location-283v9wt3.js} +13 -13
  22. package/dist/chunks/{location-8e1vnns2.js → location-2a084xpy.js} +1 -1
  23. package/dist/chunks/{location-2sdrxmhf.js → location-2fpnaz5h.js} +19 -19
  24. package/dist/chunks/{location-rkxa6zgp.js → location-2jy94dam.js} +17 -17
  25. package/dist/chunks/{location-ted02x33.js → location-2kw5qtk9.js} +39 -39
  26. package/dist/chunks/{location-yern2px4.js → location-3jpnnrb4.js} +12 -12
  27. package/dist/chunks/{location-98bzyxjk.js → location-3pxsat6s.js} +21 -21
  28. package/dist/chunks/{location-95ee23zy.js → location-3qb0mese.js} +1 -1
  29. package/dist/chunks/{location-kvkh2tnc.js → location-42y5raaz.js} +12 -12
  30. package/dist/chunks/{location-e4w2kpmf.js → location-44rac60e.js} +12 -12
  31. package/dist/chunks/{location-qne3fa44.js → location-47jkzegy.js} +3 -3
  32. package/dist/chunks/{location-e6fsf12c.js → location-47r5a3mx.js} +8 -8
  33. package/dist/chunks/{location-dxnfbexj.js → location-4b5b0vhn.js} +6 -6
  34. package/dist/chunks/{location-dyjc66w4.js → location-4bar7sar.js} +28 -28
  35. package/dist/chunks/{location-aeqpwm0h.js → location-4pedpz6c.js} +11 -11
  36. package/dist/chunks/{location-2ccvkpx1.js → location-4ts7tf6z.js} +1 -1
  37. package/dist/chunks/{location-9jvk4y4z.js → location-4vvqa2vj.js} +76 -76
  38. package/dist/chunks/{location-6yz0wx8n.js → location-4xpgt2w9.js} +3 -3
  39. package/dist/chunks/{location-7cxwgp8h.js → location-4zxfccqq.js} +16 -16
  40. package/dist/chunks/{location-cek985gc.js → location-50pnv838.js} +17 -17
  41. package/dist/chunks/{location-sxzvkvgj.js → location-51f5btjf.js} +5 -5
  42. package/dist/chunks/{location-4y5nd1mc.js → location-57ehm7c4.js} +19 -19
  43. package/dist/chunks/{location-ychzzj24.js → location-5h0p9j5c.js} +4 -4
  44. package/dist/chunks/{location-aymppdes.js → location-5hps0jc8.js} +3 -3
  45. package/dist/chunks/{location-e3qxr5gk.js → location-5qd3pb7m.js} +2 -2
  46. package/dist/chunks/{location-bqgthy8n.js → location-6hcrkmvd.js} +7 -7
  47. package/dist/chunks/{location-wraxjda7.js → location-6qv3krp1.js} +7 -7
  48. package/dist/chunks/{location-pw009p93.js → location-6t1m34v8.js} +2 -2
  49. package/dist/chunks/{location-vc4tj14c.js → location-6tyzbyh4.js} +12 -12
  50. package/dist/chunks/{location-k8p89crg.js → location-6whpyrs3.js} +40 -40
  51. package/dist/chunks/{location-8sb414s3.js → location-6zztp22y.js} +42 -42
  52. package/dist/chunks/{location-wmvjtpcg.js → location-724avf7x.js} +15 -15
  53. package/dist/chunks/{location-gwfc688y.js → location-73gdyt7p.js} +8 -8
  54. package/dist/chunks/{location-9ay8cp4x.js → location-77392vks.js} +7 -7
  55. package/dist/chunks/{location-15z50455.js → location-7am7j62s.js} +7 -7
  56. package/dist/chunks/{location-y2072sec.js → location-7fyyg3d8.js} +13 -13
  57. package/dist/chunks/{location-8vd0j1f8.js → location-7wpc5jwh.js} +1 -1
  58. package/dist/chunks/{location-a1gpj94z.js → location-7yh4e7ss.js} +2 -2
  59. package/dist/chunks/{location-2rzygbsc.js → location-7z0vcwsq.js} +5 -5
  60. package/dist/chunks/{location-c9jygpac.js → location-7zz0tb2m.js} +316 -316
  61. package/dist/chunks/{location-hp2pwxv9.js → location-83vepgva.js} +18 -18
  62. package/dist/chunks/{location-z5xex4x1.js → location-8b345ry2.js} +6 -6
  63. package/dist/chunks/{location-0p1raf8m.js → location-8pfsh0gj.js} +21 -21
  64. package/dist/chunks/{location-qzrn5gaa.js → location-8snddydh.js} +1 -1
  65. package/dist/chunks/{location-c3k6pm0m.js → location-8y8dfhw6.js} +9 -9
  66. package/dist/chunks/{location-d1zydk9p.js → location-922xc4bs.js} +13 -13
  67. package/dist/chunks/{location-e9f9fkm3.js → location-9cwykwg4.js} +30 -30
  68. package/dist/chunks/{location-rhjbct0v.js → location-9t7a50xb.js} +3 -3
  69. package/dist/chunks/{location-2pnhn36q.js → location-a8bn8zg0.js} +20 -20
  70. package/dist/chunks/{location-x375nta7.js → location-ac3dnfkw.js} +5 -5
  71. package/dist/chunks/{location-x661k3y3.js → location-addxnjmp.js} +3 -3
  72. package/dist/chunks/{location-7jhf9c6g.js → location-agg46hj7.js} +7 -7
  73. package/dist/chunks/{location-ba07h9gm.js → location-arz7hw7x.js} +3 -3
  74. package/dist/chunks/{location-x1ayq2cp.js → location-asvfb1gz.js} +20 -20
  75. package/dist/chunks/{location-d9hw3rrm.js → location-b3e58hyc.js} +25 -25
  76. package/dist/chunks/{location-vkzh2jfz.js → location-b4m962yk.js} +20 -20
  77. package/dist/chunks/{location-f5ca9dwf.js → location-b69x7x7h.js} +2 -2
  78. package/dist/chunks/{location-1j6m9z8v.js → location-b8d9rq7p.js} +26 -26
  79. package/dist/chunks/{location-82ztv55b.js → location-bem8en1s.js} +14 -14
  80. package/dist/chunks/{location-qer0ttcg.js → location-bmq95mvw.js} +3 -3
  81. package/dist/chunks/{location-5tmy9zrn.js → location-by659cs7.js} +1 -1
  82. package/dist/chunks/{location-8snsr8xz.js → location-c00fv4ar.js} +13 -13
  83. package/dist/chunks/{location-rz5rekj6.js → location-c26ps2t9.js} +11 -11
  84. package/dist/chunks/{location-bhjqanaq.js → location-c5g770ce.js} +7 -7
  85. package/dist/chunks/{location-gy93zegn.js → location-ch3qpzfg.js} +8 -8
  86. package/dist/chunks/{location-5jjk48mt.js → location-cnwjz3s5.js} +22 -22
  87. package/dist/chunks/{location-vfjhn2wd.js → location-cp937pt4.js} +3 -3
  88. package/dist/chunks/{location-y7h48m45.js → location-crvcnxkj.js} +2 -2
  89. package/dist/chunks/{location-qccn18aw.js → location-cvmt8rk0.js} +14 -14
  90. package/dist/chunks/{location-5jx09pxm.js → location-das60bkc.js} +22 -22
  91. package/dist/chunks/{location-3g10c0nv.js → location-dc34mbvf.js} +1 -1
  92. package/dist/chunks/{location-rsxcvxxn.js → location-dhddhhrc.js} +9 -9
  93. package/dist/chunks/{location-ea95x05p.js → location-ds1wy84x.js} +13 -13
  94. package/dist/chunks/{location-1x11rq2a.js → location-dxj72tfx.js} +4 -4
  95. package/dist/chunks/{location-bah8gbxw.js → location-dzt4t18k.js} +5 -5
  96. package/dist/chunks/{location-bprjyzj4.js → location-eba7m2bv.js} +9 -9
  97. package/dist/chunks/{location-dv5jzpe1.js → location-ejfryj65.js} +2 -2
  98. package/dist/chunks/{location-21zr8p49.js → location-enppsyr8.js} +1 -1
  99. package/dist/chunks/{location-e66rkf12.js → location-ep4m400e.js} +16 -16
  100. package/dist/chunks/{location-a89e0tac.js → location-ermxvwhp.js} +3 -3
  101. package/dist/chunks/{location-mdp3e6p6.js → location-essarsw2.js} +24 -24
  102. package/dist/chunks/{location-hjkk9tvw.js → location-etvz4dq0.js} +17 -17
  103. package/dist/chunks/{location-gspcenjq.js → location-ey3qhexw.js} +5 -5
  104. package/dist/chunks/{location-j1qv9ecs.js → location-f2332hgj.js} +9 -9
  105. package/dist/chunks/{location-2rehhz5t.js → location-f2mw6jyj.js} +8 -8
  106. package/dist/chunks/{location-7bq79643.js → location-f4jsfm31.js} +28 -28
  107. package/dist/chunks/{location-75bh4ajr.js → location-ffa51ey5.js} +9 -9
  108. package/dist/chunks/{location-hhd5kg11.js → location-fgkdc7jh.js} +16 -16
  109. package/dist/chunks/{location-fwbpahwh.js → location-fsvxdad5.js} +2 -2
  110. package/dist/chunks/{location-gb9b0k6n.js → location-fyb3fekh.js} +11 -11
  111. package/dist/chunks/{location-830hjgb9.js → location-fzpqnkcj.js} +1 -1
  112. package/dist/chunks/{location-w6nf2t4d.js → location-g6z45s58.js} +9 -9
  113. package/dist/chunks/{location-xs9sm4qv.js → location-ge2jb4mz.js} +14 -14
  114. package/dist/chunks/{location-7p986w0g.js → location-geyqfexr.js} +9 -9
  115. package/dist/chunks/{location-rdxaq8bh.js → location-gy1mt2vm.js} +11 -11
  116. package/dist/chunks/{location-yda4wkbn.js → location-h2xnf45v.js} +15 -15
  117. package/dist/chunks/{location-tc14gx3q.js → location-h4ckqw4f.js} +9 -9
  118. package/dist/chunks/{location-x3g43msc.js → location-h72xck84.js} +22 -22
  119. package/dist/chunks/{location-exm7qxnh.js → location-h788nv4n.js} +16 -16
  120. package/dist/chunks/{location-a2eq7efn.js → location-hfpbvkxs.js} +14 -14
  121. package/dist/chunks/{location-rzs3gq0x.js → location-hpfvhvya.js} +7 -7
  122. package/dist/chunks/{location-1yhdpabq.js → location-hzfdd747.js} +10 -10
  123. package/dist/chunks/{location-kttg2wpw.js → location-j793y9ay.js} +37 -37
  124. package/dist/chunks/{location-eaezvagx.js → location-j8s9ab9g.js} +7 -7
  125. package/dist/chunks/{location-tsq3qyw6.js → location-j97mndf0.js} +6 -6
  126. package/dist/chunks/{location-mk1p5ebg.js → location-jph2mfn8.js} +10 -10
  127. package/dist/chunks/{location-cadbnk3n.js → location-k2v3a0tj.js} +16 -16
  128. package/dist/chunks/{location-966y4f2f.js → location-k58rqv26.js} +6 -6
  129. package/dist/chunks/{location-8a6ws7jr.js → location-k70p9jzb.js} +7 -7
  130. package/dist/chunks/{location-atrnmt3x.js → location-kf8rbkby.js} +22 -22
  131. package/dist/chunks/{location-6mkt9mm7.js → location-m46z4pcf.js} +302 -302
  132. package/dist/chunks/{location-9dpd9382.js → location-m55qy151.js} +8 -8
  133. package/dist/chunks/{location-wnbbbc1f.js → location-m9an57nd.js} +8 -8
  134. package/dist/chunks/{location-g9fnv454.js → location-mc5akg63.js} +30 -30
  135. package/dist/chunks/{location-33w4ejhs.js → location-mfqp6xfm.js} +7 -7
  136. package/dist/chunks/{location-c529yjm2.js → location-mn8ry2gg.js} +13 -13
  137. package/dist/chunks/{location-2btnaz5j.js → location-mq882t6m.js} +10 -10
  138. package/dist/chunks/{location-x4s254pk.js → location-mt66mygc.js} +9 -9
  139. package/dist/chunks/{location-0r16tc9t.js → location-mt74ad40.js} +6 -6
  140. package/dist/chunks/{location-46f7t24m.js → location-mw9b1c9f.js} +9 -9
  141. package/dist/chunks/{location-dq9pghd8.js → location-mye8z46x.js} +17 -17
  142. package/dist/chunks/{location-1ffbm2jk.js → location-n0kpyt58.js} +8 -8
  143. package/dist/chunks/{location-32vwv81y.js → location-n7yx15r7.js} +2 -2
  144. package/dist/chunks/{location-f3nmm34k.js → location-na7ss97r.js} +14 -14
  145. package/dist/chunks/{location-tgzbhyj9.js → location-np6bm2as.js} +3 -3
  146. package/dist/chunks/{location-85xxa1xb.js → location-nqxj0yn4.js} +1 -1
  147. package/dist/chunks/{location-3bnybhwv.js → location-nxpp2y2e.js} +9 -9
  148. package/dist/chunks/{location-3bc8czyk.js → location-nyqx1cb3.js} +3 -3
  149. package/dist/chunks/{location-ngkn9htn.js → location-p0cpcvwn.js} +13 -13
  150. package/dist/chunks/{location-rp0hxcbj.js → location-p3pp3bgs.js} +12 -12
  151. package/dist/chunks/{location-czfptnv9.js → location-pa8pe2x7.js} +3 -3
  152. package/dist/chunks/{location-rg98346q.js → location-pbavp9d4.js} +10 -10
  153. package/dist/chunks/{location-b0cjfwep.js → location-pjvjbv32.js} +10 -10
  154. package/dist/chunks/{location-1g96y08y.js → location-pnaxc6j9.js} +7 -7
  155. package/dist/chunks/{location-jhdf29st.js → location-pnzf6mjf.js} +1 -1
  156. package/dist/chunks/{location-qjskteme.js → location-ppc2pnsb.js} +4 -4
  157. package/dist/chunks/{location-cy5473yv.js → location-pqxmmrpw.js} +52 -52
  158. package/dist/chunks/{location-sx4ak346.js → location-py28mc1m.js} +8 -8
  159. package/dist/chunks/{location-8sze2n9a.js → location-py3kkmfq.js} +4 -4
  160. package/dist/chunks/{location-0j77ygfz.js → location-q0xm7vwc.js} +4 -4
  161. package/dist/chunks/{location-tprb9ykm.js → location-qa96c720.js} +7 -7
  162. package/dist/chunks/{location-3ra60fwk.js → location-qh3vb1tn.js} +8 -8
  163. package/dist/chunks/{location-w86wbf1j.js → location-qhqe7njz.js} +34 -34
  164. package/dist/chunks/{location-djszqvmq.js → location-qmqgtz8f.js} +7 -7
  165. package/dist/chunks/{location-e3bfyvz4.js → location-qmxh83kc.js} +45 -45
  166. package/dist/chunks/{location-kxg060tx.js → location-qr0pk10y.js} +19 -19
  167. package/dist/chunks/{location-7s5y6dw1.js → location-qww9nh48.js} +39 -39
  168. package/dist/chunks/{location-p0aj1n0s.js → location-qxp4d2xp.js} +15 -15
  169. package/dist/chunks/{location-nw13281a.js → location-r58s4v78.js} +7 -7
  170. package/dist/chunks/{location-6sqw58ss.js → location-r5atvkz9.js} +8 -8
  171. package/dist/chunks/{location-3k3te7za.js → location-rb6kc9en.js} +4 -4
  172. package/dist/chunks/{location-bfdarn04.js → location-rf5ebq4s.js} +22 -22
  173. package/dist/chunks/{location-3nchn6gg.js → location-rmg8r6ny.js} +8 -8
  174. package/dist/chunks/{location-6eebjgwm.js → location-rnffhph3.js} +1 -1
  175. package/dist/chunks/{location-qpg39g1v.js → location-s1rrpmaa.js} +23 -23
  176. package/dist/chunks/{location-s0828w64.js → location-sdq79vbt.js} +18 -18
  177. package/dist/chunks/{location-js51bcx5.js → location-sfe13qt9.js} +15 -15
  178. package/dist/chunks/{location-6jt2mj9c.js → location-smz349yv.js} +25 -25
  179. package/dist/chunks/{location-ntemkh0x.js → location-spvg49p3.js} +30 -30
  180. package/dist/chunks/{location-zc6x355b.js → location-sws9dtgm.js} +3 -3
  181. package/dist/chunks/{location-jfqtm2ew.js → location-t2fc4mz5.js} +3 -3
  182. package/dist/chunks/{location-8pxk0waf.js → location-t5z5wvj2.js} +4 -4
  183. package/dist/chunks/{location-s7ng95pt.js → location-t6wbbrfa.js} +24 -24
  184. package/dist/chunks/{location-qam56xsc.js → location-t7cpp3m0.js} +1 -1
  185. package/dist/chunks/{location-bf4gbvg4.js → location-t9ew0xaf.js} +7 -7
  186. package/dist/chunks/{location-v85wqnzs.js → location-t9xcwzrx.js} +13 -13
  187. package/dist/chunks/{location-ayk9da8a.js → location-ta6y1msd.js} +63 -63
  188. package/dist/chunks/{location-n21dbq43.js → location-thkbvcgx.js} +1 -1
  189. package/dist/chunks/{location-ax1c0hpd.js → location-tnr8ce74.js} +27 -27
  190. package/dist/chunks/{location-8tb93y3v.js → location-tz3m3brz.js} +4 -4
  191. package/dist/chunks/{location-dca2v3qb.js → location-v7yprycd.js} +8 -8
  192. package/dist/chunks/{location-756q5zcd.js → location-v8jdkmfs.js} +12 -12
  193. package/dist/chunks/{location-h12ndvyr.js → location-v9tbcfk2.js} +11 -11
  194. package/dist/chunks/{location-kpgz6ev9.js → location-vaskyz0h.js} +29 -29
  195. package/dist/chunks/{location-as7cf5zz.js → location-vn72gsba.js} +1 -1
  196. package/dist/chunks/{location-3msgmyha.js → location-w0nqy3aq.js} +5 -5
  197. package/dist/chunks/{location-9de4qsp2.js → location-wb7mg7fb.js} +6 -6
  198. package/dist/chunks/{location-eye44qas.js → location-wbt9zsn3.js} +7 -7
  199. package/dist/chunks/{location-da7cwfsq.js → location-wp8xfje7.js} +22 -22
  200. package/dist/chunks/{location-tkj00vfs.js → location-ws2bx7td.js} +1 -1
  201. package/dist/chunks/{location-nbrfrcy0.js → location-wt19589t.js} +2 -2
  202. package/dist/chunks/{location-rza1ksjw.js → location-x2tcbxjk.js} +26 -26
  203. package/dist/chunks/{location-d8q1c04z.js → location-xfgbrct6.js} +15 -15
  204. package/dist/chunks/{location-kjms2vrd.js → location-xn2v0njk.js} +9 -9
  205. package/dist/chunks/{location-z86epv9q.js → location-xpfnkknw.js} +28 -28
  206. package/dist/chunks/{location-a7jqre2k.js → location-xpg5nf0s.js} +28 -28
  207. package/dist/chunks/{location-gknjsggn.js → location-xpt096d7.js} +1 -1
  208. package/dist/chunks/{location-8tt02aa5.js → location-xs12am9p.js} +5 -5
  209. package/dist/chunks/{location-sejb9e2v.js → location-xvf4b5tc.js} +22 -22
  210. package/dist/chunks/{location-09asyzbj.js → location-y0hnatt9.js} +13 -13
  211. package/dist/chunks/{location-asbt5hc3.js → location-y4eq9c7t.js} +9 -9
  212. package/dist/chunks/{location-4nj4bn9q.js → location-y56ehv6b.js} +3 -3
  213. package/dist/chunks/{location-mjac82m3.js → location-y7rk29wk.js} +12 -12
  214. package/dist/chunks/{location-2d0zrvb9.js → location-ya99b1bg.js} +127 -127
  215. package/dist/chunks/{location-ayf7de5y.js → location-yb1pbjke.js} +23 -23
  216. package/dist/chunks/{location-19asy4jh.js → location-yjzd8xzf.js} +9 -9
  217. package/dist/chunks/{location-5dkn69vz.js → location-yrcj3v3g.js} +3 -3
  218. package/dist/chunks/{location-brwsd5y5.js → location-ywcwnstf.js} +10 -10
  219. package/dist/chunks/{location-69y7y1vt.js → location-yx4j6h9t.js} +75 -75
  220. package/dist/chunks/{location-wgrzeraf.js → location-z8nhrpf5.js} +17 -17
  221. package/dist/chunks/{location-2vs2nh1n.js → location-zcrspsvn.js} +3 -3
  222. package/dist/chunks/{location-ek753qrj.js → location-zdw14zwb.js} +8 -8
  223. package/dist/chunks/{location-r23aaksv.js → location-zg3gffzg.js} +1 -1
  224. package/dist/chunks/{location-b3f8fkhc.js → location-zyk1yjk8.js} +3 -3
  225. package/dist/chunks/{location-x45ymrje.js → location-zzz4tyg8.js} +25 -25
  226. package/dist/codemode/instructions.js +4 -4
  227. package/dist/command.js +66 -66
  228. package/dist/config/discovery.js +59 -59
  229. package/dist/config/normalize.js +72 -72
  230. package/dist/config/plugin/agent.js +87 -87
  231. package/dist/config/plugin/command.js +165 -165
  232. package/dist/config/plugin/compaction.js +117 -117
  233. package/dist/config/plugin/compatibility.js +103 -103
  234. package/dist/config/plugin/formatter.js +86 -86
  235. package/dist/config/plugin/image.js +85 -85
  236. package/dist/config/plugin/instruction.js +66 -66
  237. package/dist/config/plugin/location-watcher.js +85 -85
  238. package/dist/config/plugin/mcp.js +92 -92
  239. package/dist/config/plugin/policy.js +86 -86
  240. package/dist/config/plugin/provider.js +85 -85
  241. package/dist/config/plugin/reference.js +87 -87
  242. package/dist/config/plugin/shell.js +87 -87
  243. package/dist/config/plugin/skill-file.js +75 -75
  244. package/dist/config/plugin/skill.js +106 -106
  245. package/dist/config/plugin/snapshot.js +85 -85
  246. package/dist/config/plugin/source.js +88 -88
  247. package/dist/config/plugin/tool-output.js +86 -86
  248. package/dist/config/plugin/websearch.js +86 -86
  249. package/dist/config/plugin/worktree.js +87 -87
  250. package/dist/config/variable.js +2 -2
  251. package/dist/config.js +85 -85
  252. package/dist/credential.js +60 -60
  253. package/dist/database/database.js +51 -51
  254. package/dist/database/drizzle/effect-sqlite/driver.js +8 -8
  255. package/dist/database/drizzle/effect-sqlite/index.js +4 -4
  256. package/dist/database/drizzle/effect-sqlite/session.js +7 -7
  257. package/dist/database/drizzle/index.js +9 -9
  258. package/dist/database/drizzle/sqlite-core/effect/db.js +5 -5
  259. package/dist/database/drizzle/sqlite-core/effect/index.js +2 -2
  260. package/dist/database/drizzle/sqlite-core/effect/session.js +6 -6
  261. package/dist/database/drizzle.js +9 -9
  262. package/dist/database/migration.gen.js +39 -39
  263. package/dist/database/migration.js +41 -41
  264. package/dist/database/v1-migration.bun.js +9 -9
  265. package/dist/effect/app-node-builder.js +232 -232
  266. package/dist/environment/environment.js +67 -67
  267. package/dist/environment/index.js +69 -69
  268. package/dist/event-logger.js +9 -9
  269. package/dist/file-access.js +78 -78
  270. package/dist/file-mutation.js +68 -68
  271. package/dist/filesystem/location-watcher-policy.js +5 -5
  272. package/dist/filesystem/location-watcher.js +177 -177
  273. package/dist/filesystem/search.js +75 -75
  274. package/dist/filesystem/watcher-binding.js +3 -3
  275. package/dist/filesystem/watcher.js +8 -8
  276. package/dist/filesystem.js +78 -78
  277. package/dist/form.js +59 -59
  278. package/dist/formatter/builtins.js +3 -3
  279. package/dist/formatter.js +64 -64
  280. package/dist/generate.js +74 -74
  281. package/dist/git.js +2 -2
  282. package/dist/github-copilot/chat/openai-compatible-chat-language-model.js +4 -4
  283. package/dist/github-copilot/copilot-provider.js +3 -3
  284. package/dist/github-copilot/models.js +74 -74
  285. package/dist/github-copilot/responses/openai-responses-language-model.js +7 -7
  286. package/dist/github-copilot/responses/openai-responses-prepare-tools.js +4 -4
  287. package/dist/image/photon.js +1 -1
  288. package/dist/image.js +5 -5
  289. package/dist/instance/service.js +5 -5
  290. package/dist/instance.js +307 -307
  291. package/dist/instruction-discovery.js +65 -65
  292. package/dist/instructions/builtins.js +64 -64
  293. package/dist/instructions/index.js +3 -3
  294. package/dist/integration/connection.js +3 -3
  295. package/dist/integration.js +64 -64
  296. package/dist/job.js +58 -58
  297. package/dist/kv.js +52 -52
  298. package/dist/location-activity.js +51 -51
  299. package/dist/location-lifecycle.js +81 -81
  300. package/dist/location-service-map.js +63 -63
  301. package/dist/location-services.js +306 -306
  302. package/dist/location.js +58 -58
  303. package/dist/managed-policy.js +7 -7
  304. package/dist/mcp/client.js +16 -16
  305. package/dist/mcp/index.js +81 -81
  306. package/dist/mcp/instructions.js +98 -98
  307. package/dist/mcp/oauth.js +13 -13
  308. package/dist/mcp/stdio.js +64 -64
  309. package/dist/modal/models.js +74 -74
  310. package/dist/model-resolver.js +73 -73
  311. package/dist/model.js +71 -71
  312. package/dist/models-dev.js +81 -81
  313. package/dist/permission/saved.js +62 -62
  314. package/dist/permission.js +89 -89
  315. package/dist/persistent-pty/index.js +70 -70
  316. package/dist/persistent-pty.js +56 -56
  317. package/dist/plugin/agent.js +59 -59
  318. package/dist/plugin/command.js +74 -74
  319. package/dist/plugin/hooks.js +5 -5
  320. package/dist/plugin/host.js +170 -170
  321. package/dist/plugin/identity.js +3 -3
  322. package/dist/plugin/instance.js +3 -3
  323. package/dist/plugin/internal.js +280 -280
  324. package/dist/plugin/mcp-codemode-defaults.js +3 -3
  325. package/dist/plugin/models-dev.js +70 -70
  326. package/dist/plugin/module.js +86 -86
  327. package/dist/plugin/optimize.js +3 -3
  328. package/dist/plugin/plan.js +76 -76
  329. package/dist/plugin/provider/amazon-bedrock.js +65 -65
  330. package/dist/plugin/provider/azure.js +86 -86
  331. package/dist/plugin/provider/chatgpt.js +67 -67
  332. package/dist/plugin/provider/cloudflare-ai-gateway.js +83 -83
  333. package/dist/plugin/provider/cloudflare-workers-ai.js +83 -83
  334. package/dist/plugin/provider/configured.js +82 -82
  335. package/dist/plugin/provider/digitalocean.js +67 -67
  336. package/dist/plugin/provider/github-copilot.js +69 -69
  337. package/dist/plugin/provider/gitlab.js +67 -67
  338. package/dist/plugin/provider/google-vertex.js +83 -83
  339. package/dist/plugin/provider/llmgateway.js +59 -59
  340. package/dist/plugin/provider/lmstudio.js +86 -86
  341. package/dist/plugin/provider/local.js +83 -83
  342. package/dist/plugin/provider/modal.js +67 -67
  343. package/dist/plugin/provider/ollama.js +86 -86
  344. package/dist/plugin/provider/openai.js +68 -68
  345. package/dist/plugin/provider/opencode.js +70 -70
  346. package/dist/plugin/provider/openrouter.js +66 -66
  347. package/dist/plugin/provider/poe.js +59 -59
  348. package/dist/plugin/provider/prompt-cache-key.js +65 -65
  349. package/dist/plugin/provider/sap-ai-core.js +65 -65
  350. package/dist/plugin/provider/snowflake-cortex.js +84 -84
  351. package/dist/plugin/provider/vercel.js +65 -65
  352. package/dist/plugin/provider/vllm.js +86 -86
  353. package/dist/plugin/provider/xai.js +66 -66
  354. package/dist/plugin/provider.js +121 -121
  355. package/dist/plugin/sdk.js +59 -59
  356. package/dist/plugin/service.js +3 -3
  357. package/dist/plugin/skill.js +100 -100
  358. package/dist/plugin/supervisor.js +298 -298
  359. package/dist/plugin/tool-input-repair.js +3 -3
  360. package/dist/plugin/update.js +3 -3
  361. package/dist/plugin/vcs/git.js +63 -63
  362. package/dist/plugin/vcs/hg.js +63 -63
  363. package/dist/plugin/verbosity.js +68 -68
  364. package/dist/plugin/warming.js +84 -84
  365. package/dist/plugin/websearch/exa.js +4 -4
  366. package/dist/plugin/websearch/firecrawl.js +7 -7
  367. package/dist/plugin/websearch/index.js +8 -8
  368. package/dist/plugin/websearch/mcp.js +5 -5
  369. package/dist/plugin/websearch/parallel.js +7 -7
  370. package/dist/plugin/websearch/tavily.js +6 -6
  371. package/dist/plugin/websearch/tinyfish.js +7 -7
  372. package/dist/plugin.js +179 -179
  373. package/dist/project.js +57 -57
  374. package/dist/provider.js +70 -70
  375. package/dist/pty.js +67 -67
  376. package/dist/reference/instructions.js +67 -67
  377. package/dist/reference.js +69 -69
  378. package/dist/repository-cache.js +60 -60
  379. package/dist/ripgrep.js +70 -70
  380. package/dist/rpc.js +63 -63
  381. package/dist/session/command.js +57 -57
  382. package/dist/session/compaction.js +101 -101
  383. package/dist/session/context.js +117 -117
  384. package/dist/session/diff.js +63 -63
  385. package/dist/session/environment.js +5 -5
  386. package/dist/session/error.js +6 -6
  387. package/dist/session/execution/restart.js +109 -109
  388. package/dist/session/execution.js +95 -95
  389. package/dist/session/generate.js +116 -116
  390. package/dist/session/history.js +8 -8
  391. package/dist/session/inbox.js +63 -63
  392. package/dist/session/info.js +2 -2
  393. package/dist/session/instruction-entry.js +57 -57
  394. package/dist/session/instruction-state.js +2 -2
  395. package/dist/session/instructions.js +71 -71
  396. package/dist/session/model-request.js +87 -87
  397. package/dist/session/model-transport.js +5 -5
  398. package/dist/session/move.js +98 -98
  399. package/dist/session/projector.js +62 -62
  400. package/dist/session/prompt.js +78 -78
  401. package/dist/session/provider-context.js +3 -3
  402. package/dist/session/revert.js +64 -64
  403. package/dist/session/runner/index.js +3 -3
  404. package/dist/session/runner/llm.js +181 -181
  405. package/dist/session/runner/model.js +69 -69
  406. package/dist/session/runner/publish-llm-event.js +84 -84
  407. package/dist/session/runner/retry.js +3 -3
  408. package/dist/session/runner/step.js +92 -92
  409. package/dist/session/runner/to-llm-message.js +2 -2
  410. package/dist/session/schema.js +5 -5
  411. package/dist/session/session.js +126 -126
  412. package/dist/session/shell.js +96 -96
  413. package/dist/session/skill.js +77 -77
  414. package/dist/session/stats.js +8 -8
  415. package/dist/session/store.js +63 -63
  416. package/dist/session/subagent-job.js +161 -161
  417. package/dist/session/title.js +120 -120
  418. package/dist/session/to-session-error.js +83 -83
  419. package/dist/session/transfer.js +103 -103
  420. package/dist/session.js +176 -176
  421. package/dist/shell/parse.js +4 -4
  422. package/dist/shell/select.js +8 -8
  423. package/dist/shell.js +99 -99
  424. package/dist/skill/discovery.js +5 -5
  425. package/dist/skill/instructions.js +81 -81
  426. package/dist/skill.js +84 -84
  427. package/dist/snapshot.js +68 -68
  428. package/dist/tool/mcp.js +97 -97
  429. package/dist/tool/plugin/edit.js +93 -93
  430. package/dist/tool/plugin/glob.js +96 -96
  431. package/dist/tool/plugin/grep.js +92 -92
  432. package/dist/tool/plugin/mcp-resource.js +89 -89
  433. package/dist/tool/plugin/opencode.js +83 -83
  434. package/dist/tool/plugin/patch.js +87 -87
  435. package/dist/tool/plugin/question.js +77 -77
  436. package/dist/tool/plugin/read.js +91 -91
  437. package/dist/tool/plugin/shell.js +169 -169
  438. package/dist/tool/plugin/skill.js +81 -81
  439. package/dist/tool/plugin/subagent.js +168 -168
  440. package/dist/tool/plugin/webfetch.js +85 -85
  441. package/dist/tool/plugin/websearch.js +87 -87
  442. package/dist/tool/plugin/write.js +95 -95
  443. package/dist/tool/read-filesystem.js +72 -72
  444. package/dist/tool-output.js +5 -5
  445. package/dist/tool.js +11 -11
  446. package/dist/v1/config/agent.js +6 -6
  447. package/dist/v1/config/command.js +3 -3
  448. package/dist/v1/config/error.js +3 -3
  449. package/dist/v1/config/mcp.js +3 -3
  450. package/dist/v1/config/migrate.js +66 -66
  451. package/dist/v1/config/permission.js +7 -7
  452. package/dist/v1/config/provider.js +3 -3
  453. package/dist/variant.js +68 -68
  454. package/dist/vcs.js +66 -66
  455. package/dist/websearch.js +64 -64
  456. package/dist/wellknown/plugin.js +56 -56
  457. package/dist/wellknown.js +63 -63
  458. package/dist/workspace/driver.js +7 -7
  459. package/dist/workspace.js +61 -61
  460. package/dist/worktree/git.js +5 -5
  461. package/dist/worktree/strategies.js +65 -65
  462. package/dist/worktree.js +71 -71
  463. package/package.json +8 -8
  464. package/dist/chunks/location-5t9rrsta.js +0 -26
  465. package/dist/chunks/location-hed9jrmp.js +0 -253
  466. /package/dist/chunks/{location-b564mtnb.js → location-08mjp3pt.js} +0 -0
  467. /package/dist/chunks/{location-fegk541e.js → location-0t098hqn.js} +0 -0
  468. /package/dist/chunks/{location-wfyw2gqh.js → location-3xqh13de.js} +0 -0
  469. /package/dist/chunks/{location-hekf1c5w.js → location-efgnm1d6.js} +0 -0
  470. /package/dist/chunks/{location-shfh3dfx.js → location-w0pdyb55.js} +0 -0
@@ -1,23 +1,23 @@
1
1
  import {
2
- Service32,
3
- node35
4
- } from "./location-atrnmt3x.js";
2
+ Service72,
3
+ node76
4
+ } from "./location-kf8rbkby.js";
5
5
  import {
6
6
  Key3,
7
7
  removed2,
8
- make20,
8
+ make22,
9
9
  diffByKey2
10
- } from "./location-rhjbct0v.js";
10
+ } from "./location-9t7a50xb.js";
11
11
  import {
12
12
  __export
13
13
  } from "./location-9rqn6x4v.js";
14
14
 
15
15
  // src/reference/instructions.ts
16
- var exports_instructions5 = {};
17
- __export(exports_instructions5, {
18
- ReferenceInstructions: () => exports_instructions5,
19
- Service: () => Service25,
20
- node: () => node29
16
+ var exports_instructions4 = {};
17
+ __export(exports_instructions4, {
18
+ ReferenceInstructions: () => exports_instructions4,
19
+ Service: () => Service33,
20
+ node: () => node36
21
21
  });
22
22
  import { makeLocationNode } from "@opencode/util/effect/app-node";
23
23
  import { Context, Effect, Layer, Schema } from "effect";
@@ -57,18 +57,18 @@ var update = (previous, current) => {
57
57
  `);
58
58
  };
59
59
 
60
- class Service25 extends Context.Service()("@opencode/ReferenceInstructions") {
60
+ class Service33 extends Context.Service()("@opencode/ReferenceInstructions") {
61
61
  }
62
- var layer = Layer.effect(Service25, Effect.gen(function* () {
63
- const references = yield* Service32;
64
- return Service25.of({
62
+ var layer = Layer.effect(Service33, Effect.gen(function* () {
63
+ const references = yield* Service72;
64
+ return Service33.of({
65
65
  load: Effect.fn("ReferenceInstructions.load")(function* () {
66
66
  const available = (yield* references.list()).filter((reference) => reference.description !== undefined).map((reference) => ({
67
67
  name: reference.name,
68
68
  path: reference.path,
69
69
  description: reference.description
70
70
  })).toSorted((a, b) => a.name.localeCompare(b.name));
71
- return make20({
71
+ return make22({
72
72
  key: Key3.make("core/reference-guidance"),
73
73
  codec: Schema.toCodecJson(Schema.Array(Summary)),
74
74
  read: Effect.succeed(available.length === 0 ? removed2 : available),
@@ -81,6 +81,6 @@ var layer = Layer.effect(Service25, Effect.gen(function* () {
81
81
  })
82
82
  });
83
83
  }));
84
- var node29 = makeLocationNode({ service: Service25, layer, deps: [node35] });
84
+ var node36 = makeLocationNode({ service: Service33, layer, deps: [node76] });
85
85
 
86
- export { Service25, node29, exports_instructions5 };
86
+ export { Service33, node36, exports_instructions4 };
@@ -4,25 +4,25 @@ import {
4
4
  import {
5
5
  Service83,
6
6
  node87
7
- } from "./location-5tmy9zrn.js";
7
+ } from "./location-by659cs7.js";
8
8
  import {
9
9
  Event19,
10
- Service77,
11
- node81
12
- } from "./location-d1zydk9p.js";
10
+ Service78,
11
+ node82
12
+ } from "./location-922xc4bs.js";
13
13
  import {
14
14
  Service80,
15
15
  node84
16
- } from "./location-8vd0j1f8.js";
16
+ } from "./location-7wpc5jwh.js";
17
17
  import {
18
- Service63,
19
- node66
20
- } from "./location-e66rkf12.js";
18
+ Service56,
19
+ node59
20
+ } from "./location-ep4m400e.js";
21
21
  import {
22
22
  ID16,
23
- Service78,
24
- node82
25
- } from "./location-brwsd5y5.js";
23
+ Service79,
24
+ node83
25
+ } from "./location-ywcwnstf.js";
26
26
  import {
27
27
  reconcile2,
28
28
  create3
@@ -30,9 +30,9 @@ import {
30
30
  import {
31
31
  ID14,
32
32
  MethodID2,
33
- Service76,
34
- node80
35
- } from "./location-2sdrxmhf.js";
33
+ Service77,
34
+ node81
35
+ } from "./location-2fpnaz5h.js";
36
36
  import {
37
37
  __export
38
38
  } from "./location-9rqn6x4v.js";
@@ -41,20 +41,20 @@ import {
41
41
  var exports_mcp4 = {};
42
42
  __export(exports_mcp4, {
43
43
  Mcp: () => exports_mcp4,
44
- NotFoundError: () => NotFoundError3,
45
- Options: () => Options2,
44
+ NotFoundError: () => NotFoundError5,
45
+ Options: () => Options5,
46
46
  PromptsChanged: () => PromptsChanged2,
47
47
  Resource: () => Resource2,
48
48
  ResourceCatalog: () => ResourceCatalog2,
49
49
  ResourceContent: () => ResourceContent2,
50
50
  ResourceTemplate: () => ResourceTemplate2,
51
51
  ServerName: () => ServerName2,
52
- Service: () => Service29,
52
+ Service: () => Service35,
53
53
  Status: () => Status2,
54
54
  ToolCallError: () => ToolCallError2,
55
- configured: () => configured2,
56
- layer: () => layer11,
57
- node: () => node32
55
+ configured: () => configured5,
56
+ layer: () => layer17,
57
+ node: () => node38
58
58
  });
59
59
  import { Mcp } from "@opencode/schema/mcp";
60
60
  import { McpEvent } from "@opencode/schema/mcp-event";
@@ -72,7 +72,7 @@ var ResourceTemplate2 = Mcp.ResourceTemplate;
72
72
  var ResourceCatalog2 = Mcp.ResourceCatalog;
73
73
  var ResourceContent2 = Mcp.ResourceContent;
74
74
 
75
- class NotFoundError3 extends Schema.TaggedError()("MCP.NotFoundError", {
75
+ class NotFoundError5 extends Schema.TaggedError()("MCP.NotFoundError", {
76
76
  server: ServerName2
77
77
  }) {
78
78
  get message() {
@@ -103,21 +103,21 @@ var URL_ELICITATION_FIELD_KEY = "elicitation";
103
103
  var endpointLoads = makeUnsafe2();
104
104
  var cloneConfig = (config) => structuredClone(config);
105
105
 
106
- class Service29 extends Context.Service()("@opencode/MCP") {
106
+ class Service35 extends Context.Service()("@opencode/MCP") {
107
107
  }
108
- var Options2 = Schema.Struct({
108
+ var Options5 = Schema.Struct({
109
109
  clientInfo: Schema.optional(Schema.Struct({
110
110
  name: Schema.String,
111
111
  version: Schema.String
112
112
  }))
113
113
  });
114
- var layer11 = (options) => Layer.effect(Service29, Effect.gen(function* () {
114
+ var layer17 = (options) => Layer.effect(Service35, Effect.gen(function* () {
115
115
  const location = yield* Service80;
116
- const environment = yield* Service63;
116
+ const environment = yield* Service56;
117
117
  const bus = yield* Service83;
118
- const forms = yield* Service78;
119
- const integration = yield* Service76;
120
- const credentials = yield* Service77;
118
+ const forms = yield* Service79;
119
+ const integration = yield* Service77;
120
+ const credentials = yield* Service78;
121
121
  const root = yield* Effect.scope;
122
122
  const fork = yield* FiberSet.makeRuntime();
123
123
  const entries = new Map;
@@ -145,7 +145,7 @@ var layer11 = (options) => Layer.effect(Service29, Effect.gen(function* () {
145
145
  method: { id: methodID, type: "oauth", label: name },
146
146
  authorize: () => Effect.gen(function* () {
147
147
  const { McpOAuth } = yield* Effect.promise(() => import("../mcp/oauth.js"));
148
- return yield* McpOAuth.authorize({ name, config: remote, integrationID, methodID }).pipe(Effect.provideService(Service77, credentials));
148
+ return yield* McpOAuth.authorize({ name, config: remote, integrationID, methodID }).pipe(Effect.provideService(Service78, credentials));
149
149
  })
150
150
  });
151
151
  }).pipe(Scope.provide(scope));
@@ -154,14 +154,14 @@ var layer11 = (options) => Layer.effect(Service29, Effect.gen(function* () {
154
154
  const name = ServerName2.make(server);
155
155
  const entry = entries.get(name);
156
156
  if (!entry)
157
- return yield* new NotFoundError3({ server: name });
157
+ return yield* new NotFoundError5({ server: name });
158
158
  return { name, entry };
159
159
  });
160
160
  const connectProvider = Effect.fnUntraced(function* (entry) {
161
161
  if (entry.config.type !== "remote" || !entry.integrationID)
162
162
  return;
163
163
  const { McpOAuth } = yield* Effect.promise(() => import("../mcp/oauth.js"));
164
- return yield* McpOAuth.connectProvider({ config: entry.config, integrationID: entry.integrationID }).pipe(Effect.provideService(Service77, credentials));
164
+ return yield* McpOAuth.connectProvider({ config: entry.config, integrationID: entry.integrationID }).pipe(Effect.provideService(Service78, credentials));
165
165
  });
166
166
  const elicitation = {
167
167
  create: (input) => Effect.gen(function* () {
@@ -269,7 +269,7 @@ var layer11 = (options) => Layer.effect(Service29, Effect.gen(function* () {
269
269
  entry.scope = scope;
270
270
  const authProvider = yield* connectProvider(entry);
271
271
  const { McpClient } = yield* Effect.promise(() => import("../mcp/client.js"));
272
- const load = McpClient.connect(name, entry.config, location.directory, authProvider, elicitation, options?.clientInfo).pipe(Effect.flatMap((connection) => connection.tools().pipe(Effect.map((tools) => ({ connection, tools })))), Effect.provideService(Service63, environment), Scope.provide(scope));
272
+ const load = McpClient.connect(name, entry.config, location.directory, authProvider, elicitation, options?.clientInfo).pipe(Effect.flatMap((connection) => connection.tools().pipe(Effect.map((tools) => ({ connection, tools })))), Effect.provideService(Service56, environment), Scope.provide(scope));
273
273
  const result = yield* (entry.config.type === "remote" ? endpointLoads.withLock(entry.config.url)(load) : load).pipe(Effect.exit);
274
274
  if (Exit.isSuccess(result)) {
275
275
  entry.client = result.value.connection;
@@ -420,7 +420,7 @@ var layer11 = (options) => Layer.effect(Service29, Effect.gen(function* () {
420
420
  }),
421
421
  notify: () => reconcile2(root, fork, () => reconcileLock.withPermit(reconcile()))
422
422
  });
423
- return Service29.of({
423
+ return Service35.of({
424
424
  transform: state.transform,
425
425
  reload: state.reload,
426
426
  servers: Effect.fn("MCP.servers")(function* () {
@@ -530,14 +530,14 @@ function mergeCatalogs(catalogs) {
530
530
  templates: catalogs.flatMap((catalog) => catalog.templates).toSorted((a, b) => a.server.localeCompare(b.server) || a.name.localeCompare(b.name) || a.uriTemplate.localeCompare(b.uriTemplate))
531
531
  });
532
532
  }
533
- function configured2(options) {
533
+ function configured5(options) {
534
534
  return makeLocationNode({
535
- service: Service29,
536
- layer: layer11(options),
537
- deps: [node84, node66, node87, node82, node80, node81]
535
+ service: Service35,
536
+ layer: layer17(options),
537
+ deps: [node84, node59, node87, node83, node81, node82]
538
538
  });
539
539
  }
540
- var node32 = configured2();
540
+ var node38 = configured5();
541
541
  function toElicitationField(key, property, required) {
542
542
  const machineTitle = /^(boolean|string|number|integer|array|object)(\s+with\b.*|\s+in\b.*)?$/i;
543
543
  const title = property.title && !machineTitle.test(property.title.trim()) ? property.title : property.description ?? key;
@@ -588,4 +588,4 @@ function toElicitationField(key, property, required) {
588
588
  }
589
589
  }
590
590
 
591
- export { ServerName2, PromptsChanged2, Status2, Resource2, ResourceTemplate2, ResourceCatalog2, ResourceContent2, NotFoundError3, ToolCallError2, Service29, Options2, layer11, configured2, node32, exports_mcp4 };
591
+ export { ServerName2, PromptsChanged2, Status2, Resource2, ResourceTemplate2, ResourceCatalog2, ResourceContent2, NotFoundError5, ToolCallError2, Service35, Options5, layer17, configured5, node38, exports_mcp4 };
@@ -1,12 +1,12 @@
1
1
  import {
2
2
  Service80,
3
3
  node84
4
- } from "./location-8vd0j1f8.js";
4
+ } from "./location-7wpc5jwh.js";
5
5
  import {
6
6
  Key3,
7
- make20,
7
+ make22,
8
8
  combine2
9
- } from "./location-rhjbct0v.js";
9
+ } from "./location-9t7a50xb.js";
10
10
  import {
11
11
  __export
12
12
  } from "./location-9rqn6x4v.js";
@@ -15,20 +15,20 @@ import {
15
15
  var exports_builtins = {};
16
16
  __export(exports_builtins, {
17
17
  InstructionBuiltIns: () => exports_builtins,
18
- Service: () => Service23,
19
- node: () => node27
18
+ Service: () => Service36,
19
+ node: () => node39
20
20
  });
21
21
  import { makeLocationNode } from "@opencode/util/effect/app-node";
22
22
  import { Context, DateTime, Effect, Layer, Schema } from "effect";
23
23
  import { Global } from "@opencode/util/global";
24
- class Service23 extends Context.Service()("@opencode/InstructionBuiltIns") {
24
+ class Service36 extends Context.Service()("@opencode/InstructionBuiltIns") {
25
25
  }
26
- var layer = Layer.effect(Service23, Effect.gen(function* () {
26
+ var layer = Layer.effect(Service36, Effect.gen(function* () {
27
27
  const global = yield* Global.Service;
28
28
  const location = yield* Service80;
29
- return Service23.of({
29
+ return Service36.of({
30
30
  load: () => Effect.succeed(combine2([
31
- make20({
31
+ make22({
32
32
  key: Key3.make("core/date"),
33
33
  codec: Schema.toCodecJson(Schema.String),
34
34
  read: DateTime.nowAsDate.pipe(Effect.map((date) => date.toDateString())),
@@ -37,7 +37,7 @@ var layer = Layer.effect(Service23, Effect.gen(function* () {
37
37
  changed: (_previous, date) => `Today's date is now: ${date}`
38
38
  }
39
39
  }),
40
- make20({
40
+ make22({
41
41
  key: Key3.make("core/environment"),
42
42
  codec: Schema.toCodecJson(Schema.String),
43
43
  read: Effect.sync(() => [
@@ -60,6 +60,6 @@ var layer = Layer.effect(Service23, Effect.gen(function* () {
60
60
  ]))
61
61
  });
62
62
  }));
63
- var node27 = makeLocationNode({ service: Service23, layer, deps: [Global.node, node84] });
63
+ var node39 = makeLocationNode({ service: Service36, layer, deps: [Global.node, node84] });
64
64
 
65
- export { Service23, node27, exports_builtins };
65
+ export { Service36, node39, exports_builtins };
@@ -1,15 +1,15 @@
1
1
  import {
2
2
  Service84,
3
3
  node88
4
- } from "./location-pw009p93.js";
4
+ } from "./location-6t1m34v8.js";
5
5
  import {
6
6
  makeUnsafe2
7
7
  } from "./location-dpkg50ah.js";
8
8
  import {
9
9
  Binding2,
10
10
  RegistryService2,
11
- node68
12
- } from "./location-tprb9ykm.js";
11
+ node62
12
+ } from "./location-qa96c720.js";
13
13
  import {
14
14
  WorkspaceTable2
15
15
  } from "./location-faypxj3z.js";
@@ -21,13 +21,13 @@ import {
21
21
  var exports_workspace = {};
22
22
  __export(exports_workspace, {
23
23
  CreateConflict: () => CreateConflict2,
24
- ID: () => ID10,
25
- Info: () => Info13,
24
+ ID: () => ID7,
25
+ Info: () => Info9,
26
26
  NotFound: () => NotFound3,
27
- Service: () => Service64,
27
+ Service: () => Service58,
28
28
  Workspace: () => exports_workspace,
29
29
  configured: () => configured9,
30
- node: () => node67
30
+ node: () => node61
31
31
  });
32
32
  import { Workspace } from "@opencode/schema/workspace";
33
33
  import { makeGlobalNode } from "@opencode/util/effect/app-node";
@@ -35,10 +35,10 @@ import { eq } from "drizzle-orm";
35
35
  import { Clock, Context, Deferred, Duration, Effect, Exit, FiberSet, Layer, Ref, Schedule, Schema, Scope } from "effect";
36
36
  import { systemError } from "effect/PlatformError";
37
37
  import { make } from "effect/unstable/process/ChildProcessSpawner";
38
- var ID10 = Workspace.ID;
38
+ var ID7 = Workspace.ID;
39
39
 
40
- class Info13 extends Schema.Class("Workspace.Info")({
41
- id: ID10,
40
+ class Info9 extends Schema.Class("Workspace.Info")({
41
+ id: ID7,
42
42
  provider: Schema.String,
43
43
  binding: Binding2,
44
44
  createdAt: Schema.Number,
@@ -46,24 +46,24 @@ class Info13 extends Schema.Class("Workspace.Info")({
46
46
  }) {
47
47
  }
48
48
 
49
- class NotFound3 extends Schema.TaggedError()("Workspace.NotFound", { workspaceID: ID10 }) {
49
+ class NotFound3 extends Schema.TaggedError()("Workspace.NotFound", { workspaceID: ID7 }) {
50
50
  }
51
51
 
52
52
  class CreateConflict2 extends Schema.TaggedError()("Workspace.CreateConflict", {
53
- workspaceID: ID10,
53
+ workspaceID: ID7,
54
54
  provider: Schema.String,
55
55
  existingProvider: Schema.String
56
56
  }) {
57
57
  }
58
58
 
59
- class Service64 extends Context.Service()("@opencode/Workspace") {
59
+ class Service58 extends Context.Service()("@opencode/Workspace") {
60
60
  }
61
61
  var configured9 = (options = {}) => makeGlobalNode({
62
- service: Service64,
62
+ service: Service58,
63
63
  layer: layer(options),
64
- deps: [node88, node68]
64
+ deps: [node88, node62]
65
65
  });
66
- var layer = (options) => Layer.effect(Service64, Effect.gen(function* () {
66
+ var layer = (options) => Layer.effect(Service58, Effect.gen(function* () {
67
67
  const db = (yield* Service84).db;
68
68
  const registry = yield* RegistryService2;
69
69
  const lifetime = yield* Scope.Scope;
@@ -80,7 +80,7 @@ var layer = (options) => Layer.effect(Service64, Effect.gen(function* () {
80
80
  return row;
81
81
  });
82
82
  const saveBinding = (workspaceID, binding) => db.update(WorkspaceTable2).set({ binding }).where(eq(WorkspaceTable2.id, workspaceID)).run().pipe(Effect.orDie);
83
- const info = (row, binding) => new Info13({
83
+ const info = (row, binding) => new Info9({
84
84
  id: row.id,
85
85
  provider: row.provider,
86
86
  binding,
@@ -154,9 +154,9 @@ var layer = (options) => Layer.effect(Service64, Effect.gen(function* () {
154
154
  yield* Scope.close(connection.scope, Exit.void);
155
155
  }).pipe(Effect.catchCause((cause) => Effect.logError("workspace idle suspension failed", cause)))), { concurrency: "unbounded", discard: true });
156
156
  }).pipe(Effect.repeat(Schedule.spaced(options.pollInterval ?? Duration.minutes(1))), Effect.forkScoped);
157
- return Service64.of({
157
+ return Service58.of({
158
158
  create: Effect.fn("Workspace.create")(function* (input) {
159
- const workspaceID = input.id ?? ID10.create();
159
+ const workspaceID = input.id ?? ID7.create();
160
160
  const existing = yield* db.select({ provider: WorkspaceTable2.provider }).from(WorkspaceTable2).where(eq(WorkspaceTable2.id, workspaceID)).get().pipe(Effect.orDie);
161
161
  if (existing) {
162
162
  if (existing.provider === input.provider)
@@ -221,6 +221,6 @@ var layer = (options) => Layer.effect(Service64, Effect.gen(function* () {
221
221
  })
222
222
  });
223
223
  }));
224
- var node67 = configured9();
224
+ var node61 = configured9();
225
225
 
226
- export { ID10, Info13, NotFound3, CreateConflict2, Service64, configured9, node67, exports_workspace };
226
+ export { ID7, Info9, NotFound3, CreateConflict2, Service58, configured9, node61, exports_workspace };
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  name15,
3
3
  ps2
4
- } from "./location-vc4tj14c.js";
4
+ } from "./location-6tyzbyh4.js";
5
5
  import {
6
6
  lazy2
7
7
  } from "./location-88xbtdfr.js";
@@ -1,31 +1,31 @@
1
1
  import {
2
- Service70
3
- } from "./location-jc2mtm7q.js";
2
+ Service59
3
+ } from "./location-1g5f91mn.js";
4
4
  import {
5
- Service29
6
- } from "./location-ted02x33.js";
5
+ Service35
6
+ } from "./location-2kw5qtk9.js";
7
7
  import {
8
8
  __export
9
9
  } from "./location-9rqn6x4v.js";
10
10
 
11
11
  // src/config/plugin/mcp.ts
12
- var exports_mcp2 = {};
13
- __export(exports_mcp2, {
14
- ConfigMcpPlugin: () => exports_mcp2,
15
- Plugin: () => Plugin32,
12
+ var exports_mcp = {};
13
+ __export(exports_mcp, {
14
+ ConfigMcpPlugin: () => exports_mcp,
15
+ Plugin: () => Plugin12,
16
16
  register: () => register2
17
17
  });
18
18
  import { define } from "@opencode/plugin/effect/plugin";
19
19
  import { Effect, Stream } from "effect";
20
- var Plugin32 = define({
20
+ var Plugin12 = define({
21
21
  id: "opencode.config.mcp",
22
22
  effect: Effect.fn(function* (ctx) {
23
23
  yield* register2(ctx.event.subscribe());
24
24
  })
25
25
  });
26
26
  var register2 = Effect.fn("ConfigMCPPlugin.register")(function* (events) {
27
- const config = yield* Service70;
28
- const mcp = yield* Service29;
27
+ const config = yield* Service59;
28
+ const mcp = yield* Service35;
29
29
  const loaded = { entries: [] };
30
30
  yield* events.pipe(Stream.filter((event) => event.type === "config.updated"), Stream.runForEach(() => config.entries().pipe(Effect.tap((entries) => Effect.sync(() => loaded.entries = entries)), Effect.andThen(mcp.reload()), Effect.catchCause((cause) => Effect.logError("failed to reload MCP config", { cause })))), Effect.ignore, Effect.forkScoped({ startImmediately: true }));
31
31
  loaded.entries = yield* config.entries();
@@ -46,4 +46,4 @@ var register2 = Effect.fn("ConfigMCPPlugin.register")(function* (events) {
46
46
  });
47
47
  });
48
48
 
49
- export { Plugin32, register2, exports_mcp2 };
49
+ export { Plugin12, register2, exports_mcp };
@@ -2,16 +2,16 @@ import {
2
2
  fromPromise2
3
3
  } from "./location-zr2ceqn5.js";
4
4
  import {
5
- Service71
6
- } from "./location-cadbnk3n.js";
5
+ Service60
6
+ } from "./location-k2v3a0tj.js";
7
7
  import {
8
- Service70
9
- } from "./location-jc2mtm7q.js";
8
+ Service59
9
+ } from "./location-1g5f91mn.js";
10
10
  import {
11
- Service59,
11
+ Service13,
12
12
  statements2,
13
13
  decision2
14
- } from "./location-9dpd9382.js";
14
+ } from "./location-m55qy151.js";
15
15
  import {
16
16
  __export
17
17
  } from "./location-9rqn6x4v.js";
@@ -21,7 +21,7 @@ var exports_module = {};
21
21
  __export(exports_module, {
22
22
  LoadError: () => LoadError2,
23
23
  PluginModule: () => exports_module,
24
- make: () => make3
24
+ make: () => make4
25
25
  });
26
26
  import { Host } from "@opencode/plugin/host";
27
27
  import { createPluginSources } from "@opencode/plugin/source";
@@ -30,10 +30,10 @@ import { Deferred, Effect, FiberSet, PubSub, Schema, Stream } from "effect";
30
30
  import path from "path";
31
31
  import { stat } from "node:fs/promises";
32
32
  import { fileURLToPath, pathToFileURL } from "url";
33
- var make3 = Effect.fn("PluginModule.make")(function* () {
34
- const config = yield* Service70;
35
- const managed = yield* Service59;
36
- const watcher = yield* Service71;
33
+ var make4 = Effect.fn("PluginModule.make")(function* () {
34
+ const config = yield* Service59;
35
+ const managed = yield* Service13;
36
+ const watcher = yield* Service60;
37
37
  const scope = yield* Effect.scope;
38
38
  const runPromise = yield* FiberSet.makeRuntimePromise();
39
39
  const changes = yield* PubSub.unbounded();
@@ -118,4 +118,4 @@ var load = Effect.fn("PluginModule.load")(function* (operation, sources, options
118
118
  };
119
119
  });
120
120
 
121
- export { make3, LoadError2, exports_module };
121
+ export { make4, LoadError2, exports_module };
@@ -9,7 +9,7 @@ import {
9
9
  var exports_provider2 = {};
10
10
  __export(exports_provider2, {
11
11
  ConfigProviderV1: () => exports_provider2,
12
- Info: () => Info17,
12
+ Info: () => Info14,
13
13
  Model: () => Model2,
14
14
  ModelStatus: () => ModelStatus2
15
15
  });
@@ -61,7 +61,7 @@ var Model2 = Schema.Struct({
61
61
  disabled: Schema.optional(Schema.Boolean).annotate({ description: "Disable this variant for the model" })
62
62
  }), [Schema.Record(Schema.String, Schema.Any)])).annotate({ description: "Variant-specific configuration" }))
63
63
  });
64
- var Info17 = Schema.Struct({
64
+ var Info14 = Schema.Struct({
65
65
  api: Schema.optional(Schema.String),
66
66
  name: Schema.optional(Schema.String),
67
67
  env: Schema.optional(Schema.mutable(Schema.Array(Schema.String))),
@@ -95,4 +95,4 @@ var Info17 = Schema.Struct({
95
95
  models: Schema.optional(Schema.Record(Schema.String, Model2))
96
96
  }).annotate({ identifier: "ProviderConfig" });
97
97
 
98
- export { ModelStatus2, Model2, Info17, exports_provider2 };
98
+ export { ModelStatus2, Model2, Info14, exports_provider2 };
@@ -3,14 +3,14 @@ import {
3
3
  } from "./location-z5v4ffb3.js";
4
4
  import {
5
5
  Service80
6
- } from "./location-8vd0j1f8.js";
6
+ } from "./location-7wpc5jwh.js";
7
7
  import {
8
- Service70
9
- } from "./location-jc2mtm7q.js";
8
+ Service59
9
+ } from "./location-1g5f91mn.js";
10
10
  import {
11
11
  LocalSource2,
12
12
  GitSource2
13
- } from "./location-atrnmt3x.js";
13
+ } from "./location-kf8rbkby.js";
14
14
  import {
15
15
  observe2
16
16
  } from "./location-qsdy395h.js";
@@ -22,16 +22,16 @@ import {
22
22
  var exports_reference = {};
23
23
  __export(exports_reference, {
24
24
  ConfigReferencePlugin: () => exports_reference,
25
- Plugin: () => Plugin38
25
+ Plugin: () => Plugin19
26
26
  });
27
27
  import { define } from "@opencode/plugin/effect/plugin";
28
28
  import path from "path";
29
29
  import { Effect } from "effect";
30
30
  import { Global } from "@opencode/util/global";
31
- var Plugin38 = define({
31
+ var Plugin19 = define({
32
32
  id: "opencode.config.reference",
33
33
  effect: Effect.fn(function* (ctx) {
34
- const config = yield* Service70;
34
+ const config = yield* Service59;
35
35
  const location = yield* Service80;
36
36
  const global = yield* Global.Service;
37
37
  const loaded = yield* observe2(config, ctx.event, ctx.reference.reload());
@@ -72,4 +72,4 @@ function localPath(directory, home, value) {
72
72
  return path.isAbsolute(value) ? value : path.resolve(directory, value);
73
73
  }
74
74
 
75
- export { Plugin38, exports_reference };
75
+ export { Plugin19, exports_reference };
@@ -1,17 +1,17 @@
1
1
  import {
2
2
  mergeOverlay2,
3
- Service75
4
- } from "./location-6mkt9mm7.js";
3
+ Service76
4
+ } from "./location-m46z4pcf.js";
5
5
  import {
6
- Service70
7
- } from "./location-jc2mtm7q.js";
6
+ Service59
7
+ } from "./location-1g5f91mn.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* Service75;
12
+ const providers = yield* Service76;
13
13
  const current = (yield* providers.get(id))?.settings;
14
- const service = yield* Effect.serviceOption(Service70);
14
+ const service = yield* Effect.serviceOption(Service59);
15
15
  const entries = Option.isSome(service) ? yield* service.value.entries() : [];
16
16
  return foldSettings2(entries, id, current);
17
17
  });