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

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 (478) hide show
  1. package/dist/agent.js +65 -65
  2. package/dist/aisdk-native.js +63 -63
  3. package/dist/aisdk.js +68 -68
  4. package/dist/app.js +9 -9
  5. package/dist/bus.js +55 -55
  6. package/dist/chunks/{location-36v99zb6.js → location-09asyzbj.js} +10 -10
  7. package/dist/chunks/{location-q0xm7vwc.js → location-0j77ygfz.js} +4 -4
  8. package/dist/chunks/{location-gseqh7y5.js → location-0p1raf8m.js} +21 -21
  9. package/dist/chunks/{location-wcab5d7q.js → location-0r16tc9t.js} +6 -6
  10. package/dist/chunks/{location-eapgentd.js → location-15z50455.js} +19 -19
  11. package/dist/chunks/{location-m3971pjk.js → location-19asy4jh.js} +16 -16
  12. package/dist/chunks/{location-rhraev7y.js → location-1acjjqhc.js} +3 -3
  13. package/dist/chunks/{location-6d5my1ea.js → location-1ffbm2jk.js} +9 -9
  14. package/dist/chunks/{location-pedttwxr.js → location-1g96y08y.js} +7 -7
  15. package/dist/chunks/{location-eqj35hys.js → location-1j6m9z8v.js} +31 -31
  16. package/dist/chunks/{location-7fj5dwt0.js → location-1x11rq2a.js} +4 -4
  17. package/dist/chunks/{location-p9w1c4fh.js → location-1yhdpabq.js} +12 -12
  18. package/dist/chunks/{location-77xysqe6.js → location-21zr8p49.js} +5 -5
  19. package/dist/chunks/{location-wssyxk27.js → location-2btnaz5j.js} +18 -18
  20. package/dist/chunks/{location-4ts7tf6z.js → location-2ccvkpx1.js} +1 -1
  21. package/dist/chunks/{location-3ftqq3j8.js → location-2d0zrvb9.js} +181 -181
  22. package/dist/chunks/{location-a8bn8zg0.js → location-2pnhn36q.js} +20 -20
  23. package/dist/chunks/{location-1y9xp183.js → location-2rehhz5t.js} +8 -8
  24. package/dist/chunks/{location-0z2z9ezx.js → location-2rzygbsc.js} +7 -7
  25. package/dist/chunks/{location-savccbnq.js → location-2sdrxmhf.js} +31 -31
  26. package/dist/chunks/{location-f73rjn58.js → location-2vs2nh1n.js} +3 -3
  27. package/dist/chunks/{location-4gvf9rzc.js → location-32vwv81y.js} +2 -2
  28. package/dist/chunks/{location-1ygqh575.js → location-33w4ejhs.js} +4 -4
  29. package/dist/chunks/{location-4n607a2z.js → location-3bc8czyk.js} +3 -3
  30. package/dist/chunks/{location-twanzasj.js → location-3bnybhwv.js} +5 -5
  31. package/dist/chunks/{location-farvs0j6.js → location-3bv3jwr8.js} +13 -13
  32. package/dist/chunks/{location-5tpw5fwb.js → location-3g10c0nv.js} +4 -4
  33. package/dist/chunks/{location-rj1g0c9z.js → location-3k3te7za.js} +4 -4
  34. package/dist/chunks/{location-czy5pfnh.js → location-3msgmyha.js} +7 -7
  35. package/dist/chunks/{location-288wtq47.js → location-3nchn6gg.js} +8 -8
  36. package/dist/chunks/{location-f9ergr2z.js → location-3ra60fwk.js} +8 -8
  37. package/dist/chunks/{location-rnnnfbw7.js → location-46f7t24m.js} +13 -13
  38. package/dist/chunks/{location-11dqjexa.js → location-4nj4bn9q.js} +7 -7
  39. package/dist/chunks/{location-g1bc2t46.js → location-4t6c5kv5.js} +24 -24
  40. package/dist/chunks/{location-brggcc39.js → location-4y5nd1mc.js} +30 -30
  41. package/dist/chunks/{location-gw7cjrad.js → location-5dkn69vz.js} +3 -3
  42. package/dist/chunks/{location-7ekcnbwa.js → location-5jjk48mt.js} +26 -26
  43. package/dist/chunks/{location-k6367mvk.js → location-5jx09pxm.js} +25 -25
  44. package/dist/chunks/location-5t9rrsta.js +26 -0
  45. package/dist/chunks/{location-510enc9r.js → location-5tmy9zrn.js} +9 -9
  46. package/dist/chunks/{location-1kexfm1y.js → location-69y7y1vt.js} +87 -87
  47. package/dist/chunks/{location-d41hc979.js → location-6eebjgwm.js} +3 -3
  48. package/dist/chunks/{location-33gaavb8.js → location-6jt2mj9c.js} +33 -33
  49. package/dist/chunks/{location-swtxrcf0.js → location-6mkt9mm7.js} +33 -33
  50. package/dist/chunks/{location-d8ck81wr.js → location-6sqw58ss.js} +8 -8
  51. package/dist/chunks/{location-mcrt8a46.js → location-6x4f2nxf.js} +19 -19
  52. package/dist/chunks/{location-1pxz8ven.js → location-6yz0wx8n.js} +3 -3
  53. package/dist/chunks/{location-368k0mgv.js → location-756q5zcd.js} +15 -15
  54. package/dist/chunks/{location-1qrp5yz4.js → location-75bh4ajr.js} +6 -6
  55. package/dist/chunks/{location-7ke8vxpx.js → location-7bq79643.js} +37 -37
  56. package/dist/chunks/{location-djqvkhft.js → location-7cxwgp8h.js} +10 -10
  57. package/dist/chunks/{location-af8mc2ra.js → location-7jhf9c6g.js} +7 -7
  58. package/dist/chunks/{location-pw5zjs1v.js → location-7p986w0g.js} +9 -9
  59. package/dist/chunks/{location-msn8sz9h.js → location-7r962cny.js} +20 -20
  60. package/dist/chunks/{location-fn64ej17.js → location-7s5y6dw1.js} +48 -48
  61. package/dist/chunks/{location-5v2fwzy1.js → location-7taj1gp1.js} +33 -33
  62. package/dist/chunks/{location-k09pycdv.js → location-82ztv55b.js} +18 -18
  63. package/dist/chunks/{location-2ha1v7qw.js → location-830hjgb9.js} +1 -1
  64. package/dist/chunks/{location-63db42yp.js → location-85xxa1xb.js} +1 -1
  65. package/dist/chunks/{location-srq8z0b0.js → location-8a6ws7jr.js} +7 -7
  66. package/dist/chunks/{location-63krnhgr.js → location-8e1vnns2.js} +1 -1
  67. package/dist/chunks/{location-6hjayvw0.js → location-8pxk0waf.js} +4 -4
  68. package/dist/chunks/{location-bkp7wwcv.js → location-8sb414s3.js} +39 -39
  69. package/dist/chunks/{location-rq5t05qg.js → location-8snsr8xz.js} +18 -18
  70. package/dist/chunks/{location-cfsekr6v.js → location-8sze2n9a.js} +5 -5
  71. package/dist/chunks/{location-9k8v6d5w.js → location-8tb93y3v.js} +6 -6
  72. package/dist/chunks/{location-cyhsea0k.js → location-8tt02aa5.js} +7 -7
  73. package/dist/chunks/{location-w9w8c5s2.js → location-8vd0j1f8.js} +13 -13
  74. package/dist/chunks/{location-fcrnmcwp.js → location-95ee23zy.js} +1 -1
  75. package/dist/chunks/{location-gjbyz4wh.js → location-966y4f2f.js} +16 -16
  76. package/dist/chunks/{location-pkm68pcq.js → location-98bzyxjk.js} +23 -23
  77. package/dist/chunks/{location-2wcpgrf5.js → location-9ay8cp4x.js} +7 -7
  78. package/dist/chunks/{location-jb2r3891.js → location-9de4qsp2.js} +20 -20
  79. package/dist/chunks/{location-5qjvepv9.js → location-9dpd9382.js} +8 -8
  80. package/dist/chunks/{location-tghtnfzz.js → location-9jvk4y4z.js} +89 -89
  81. package/dist/chunks/{location-mhkvc446.js → location-a1gpj94z.js} +2 -2
  82. package/dist/chunks/{location-8xcxajtx.js → location-a2eq7efn.js} +14 -14
  83. package/dist/chunks/{location-zajgawmg.js → location-a7jqre2k.js} +23 -23
  84. package/dist/chunks/{location-86qzxe6p.js → location-a89e0tac.js} +3 -3
  85. package/dist/chunks/{location-frz66pft.js → location-aeqpwm0h.js} +11 -11
  86. package/dist/chunks/{location-pkqb68ka.js → location-as7cf5zz.js} +1 -1
  87. package/dist/chunks/{location-qbjx7vtc.js → location-asbt5hc3.js} +9 -9
  88. package/dist/chunks/{location-3ng9c4h1.js → location-atrnmt3x.js} +25 -25
  89. package/dist/chunks/{location-q5z81sq7.js → location-ax1c0hpd.js} +44 -44
  90. package/dist/chunks/{location-eb1krxtt.js → location-ayf7de5y.js} +22 -22
  91. package/dist/chunks/{location-kfw6wn9j.js → location-ayk9da8a.js} +63 -63
  92. package/dist/chunks/{location-5nesw8k5.js → location-aymppdes.js} +18 -18
  93. package/dist/chunks/{location-f0rkppvs.js → location-b0cjfwep.js} +10 -10
  94. package/dist/chunks/{location-qygbw77c.js → location-b3f8fkhc.js} +3 -3
  95. package/dist/chunks/{location-ss358qx3.js → location-ba07h9gm.js} +3 -3
  96. package/dist/chunks/{location-s111bhqz.js → location-bah8gbxw.js} +7 -7
  97. package/dist/chunks/{location-r7srsjaq.js → location-bf4gbvg4.js} +12 -12
  98. package/dist/chunks/{location-v6vf82bk.js → location-bfdarn04.js} +30 -30
  99. package/dist/chunks/{location-h5z75e8b.js → location-bhjqanaq.js} +7 -7
  100. package/dist/chunks/{location-c4apb3t6.js → location-bprjyzj4.js} +14 -14
  101. package/dist/chunks/{location-frypca04.js → location-bqgthy8n.js} +9 -9
  102. package/dist/chunks/{location-jp0p4yja.js → location-brwsd5y5.js} +28 -28
  103. package/dist/chunks/{location-hpbkp3jv.js → location-c3k6pm0m.js} +9 -9
  104. package/dist/chunks/{location-4vygzm8z.js → location-c529yjm2.js} +15 -15
  105. package/dist/chunks/{location-mxyxeq91.js → location-c9jygpac.js} +326 -326
  106. package/dist/chunks/{location-9qap1kz0.js → location-cadbnk3n.js} +22 -22
  107. package/dist/chunks/{location-1z0fzhfg.js → location-cek985gc.js} +22 -22
  108. package/dist/chunks/{location-296sdbys.js → location-cy5473yv.js} +61 -61
  109. package/dist/chunks/{location-nvq72y7j.js → location-cycet1pr.js} +1 -1
  110. package/dist/chunks/{location-9hn6k4tm.js → location-czfptnv9.js} +7 -7
  111. package/dist/chunks/{location-n456zfcg.js → location-d1zydk9p.js} +30 -30
  112. package/dist/chunks/{location-bf3zn255.js → location-d8q1c04z.js} +15 -15
  113. package/dist/chunks/{location-2kxzs1z5.js → location-d9hw3rrm.js} +25 -25
  114. package/dist/chunks/{location-89bv08xb.js → location-da7cwfsq.js} +27 -27
  115. package/dist/chunks/{location-x5zkgxzc.js → location-dca2v3qb.js} +8 -8
  116. package/dist/chunks/{location-5a6870bg.js → location-dq9pghd8.js} +16 -16
  117. package/dist/chunks/{location-tzph5200.js → location-dv5jzpe1.js} +4 -4
  118. package/dist/chunks/{location-ssesc4qa.js → location-dxnfbexj.js} +6 -6
  119. package/dist/chunks/{location-94t80y57.js → location-dyjc66w4.js} +27 -27
  120. package/dist/chunks/{location-bfexnhf9.js → location-e3bfyvz4.js} +54 -54
  121. package/dist/chunks/{location-5qd3pb7m.js → location-e3qxr5gk.js} +2 -2
  122. package/dist/chunks/{location-4yxknn6d.js → location-e4w2kpmf.js} +9 -9
  123. package/dist/chunks/{location-gen3kpyr.js → location-e66rkf12.js} +19 -19
  124. package/dist/chunks/{location-0m0pvxq1.js → location-e6fsf12c.js} +10 -10
  125. package/dist/chunks/{location-jkr4b8s0.js → location-e9f9fkm3.js} +30 -30
  126. package/dist/chunks/{location-fag3n04b.js → location-ea95x05p.js} +24 -24
  127. package/dist/chunks/{location-e8vwfchq.js → location-eaezvagx.js} +7 -7
  128. package/dist/chunks/{location-a0tnr6vv.js → location-ek753qrj.js} +5 -5
  129. package/dist/chunks/{location-rpep4epa.js → location-exm7qxnh.js} +21 -21
  130. package/dist/chunks/{location-38phfjcn.js → location-eye44qas.js} +7 -7
  131. package/dist/chunks/{location-00q60weh.js → location-f0q4wdtr.js} +16 -16
  132. package/dist/chunks/{location-n2gztfrf.js → location-f3nmm34k.js} +21 -21
  133. package/dist/chunks/{location-7vgmnxtx.js → location-f5ca9dwf.js} +4 -4
  134. package/dist/chunks/{location-7dqw4kz8.js → location-fcrkznn8.js} +4 -4
  135. package/dist/chunks/{location-y9jy459z.js → location-fwbpahwh.js} +2 -2
  136. package/dist/chunks/{location-bm46emxx.js → location-fwh2zgtw.js} +10 -10
  137. package/dist/chunks/{location-xm77r8mk.js → location-g9ak4sjw.js} +9 -9
  138. package/dist/chunks/{location-bgqmeeks.js → location-g9fnv454.js} +38 -38
  139. package/dist/chunks/{location-4gpcyrrc.js → location-gb9b0k6n.js} +9 -9
  140. package/dist/chunks/{location-syqhgwq0.js → location-gknjsggn.js} +3 -3
  141. package/dist/chunks/{location-pddm9hjh.js → location-gspcenjq.js} +5 -5
  142. package/dist/chunks/{location-9mm32rc6.js → location-gwfc688y.js} +14 -14
  143. package/dist/chunks/{location-geg4sp68.js → location-gy93zegn.js} +8 -8
  144. package/dist/chunks/{location-5psc1bef.js → location-h12ndvyr.js} +12 -12
  145. package/dist/chunks/{location-dmqcgk4z.js → location-h7s7r6s9.js} +6 -5
  146. package/dist/chunks/location-hed9jrmp.js +253 -0
  147. package/dist/chunks/{location-bb98p2sm.js → location-hekf1c5w.js} +7 -7
  148. package/dist/chunks/{location-rsc8qfyv.js → location-hg7mrb4w.js} +7 -7
  149. package/dist/chunks/{location-r4czyjgq.js → location-hhd5kg11.js} +11 -11
  150. package/dist/chunks/{location-y1vh2ynk.js → location-hjkk9tvw.js} +14 -14
  151. package/dist/chunks/{location-fw4jt8zs.js → location-hp2pwxv9.js} +31 -31
  152. package/dist/chunks/{location-7qkbpcez.js → location-j1qv9ecs.js} +6 -6
  153. package/dist/chunks/{location-n0ntqt9g.js → location-jc2mtm7q.js} +43 -43
  154. package/dist/chunks/{location-fqb2p7cx.js → location-jfqtm2ew.js} +3 -3
  155. package/dist/chunks/{location-7zt5x37y.js → location-jhdf29st.js} +1 -1
  156. package/dist/chunks/{location-yrwx0ryy.js → location-js51bcx5.js} +18 -18
  157. package/dist/chunks/{location-taakedrx.js → location-k8p89crg.js} +43 -43
  158. package/dist/chunks/{location-15a8baq2.js → location-kjms2vrd.js} +9 -9
  159. package/dist/chunks/{location-1wg0848n.js → location-kpgz6ev9.js} +32 -32
  160. package/dist/chunks/{location-0901hh4n.js → location-kttg2wpw.js} +38 -38
  161. package/dist/chunks/{location-fcryy9bm.js → location-kvkh2tnc.js} +9 -9
  162. package/dist/chunks/{location-d0n0cznh.js → location-kxg060tx.js} +23 -23
  163. package/dist/chunks/{location-6penkyg2.js → location-mdp3e6p6.js} +32 -32
  164. package/dist/chunks/{location-22e0sng0.js → location-mjac82m3.js} +14 -14
  165. package/dist/chunks/{location-jv7qrkz2.js → location-mk1p5ebg.js} +20 -20
  166. package/dist/chunks/{location-1hd2en9h.js → location-n21dbq43.js} +1 -1
  167. package/dist/chunks/{location-twfjgwa6.js → location-nbrfrcy0.js} +2 -2
  168. package/dist/chunks/{location-4w5gk0mh.js → location-ngkn9htn.js} +13 -13
  169. package/dist/chunks/{location-rj26dvxy.js → location-ntemkh0x.js} +29 -29
  170. package/dist/chunks/{location-0eednbcc.js → location-nw13281a.js} +10 -10
  171. package/dist/chunks/{location-sacwgt96.js → location-p0aj1n0s.js} +46 -46
  172. package/dist/chunks/{location-ccyehgd0.js → location-pw009p93.js} +2 -2
  173. package/dist/chunks/{location-bvjs27d2.js → location-qam56xsc.js} +1 -1
  174. package/dist/chunks/{location-20ketkdt.js → location-qccn18aw.js} +20 -20
  175. package/dist/chunks/{location-pcj0rjsp.js → location-qer0ttcg.js} +5 -5
  176. package/dist/chunks/{location-smnkpcw6.js → location-qjskteme.js} +4 -4
  177. package/dist/chunks/{location-0r3c1bmw.js → location-qne3fa44.js} +3 -3
  178. package/dist/chunks/{location-czbv8z0y.js → location-qpg39g1v.js} +28 -28
  179. package/dist/chunks/{location-nc482bkw.js → location-qzrn5gaa.js} +8 -8
  180. package/dist/chunks/{location-w7r147nf.js → location-r23aaksv.js} +1 -1
  181. package/dist/chunks/{location-q753jdth.js → location-rdxaq8bh.js} +21 -21
  182. package/dist/chunks/{location-bhhh305g.js → location-rg98346q.js} +17 -17
  183. package/dist/chunks/{location-wv396vej.js → location-rhjbct0v.js} +7 -7
  184. package/dist/chunks/{location-32yxbfvn.js → location-rkxa6zgp.js} +16 -16
  185. package/dist/chunks/{location-ch1g95xj.js → location-rp0hxcbj.js} +9 -9
  186. package/dist/chunks/{location-r3s6mbe4.js → location-rsxcvxxn.js} +9 -9
  187. package/dist/chunks/{location-ckhb8p3a.js → location-rz5rekj6.js} +11 -11
  188. package/dist/chunks/{location-zwdpfek5.js → location-rza1ksjw.js} +29 -29
  189. package/dist/chunks/{location-yvvvp4gn.js → location-rzs3gq0x.js} +7 -7
  190. package/dist/chunks/{location-8fefh7g5.js → location-s0828w64.js} +27 -27
  191. package/dist/chunks/{location-8mc742af.js → location-s7ng95pt.js} +23 -23
  192. package/dist/chunks/{location-m7er9qjp.js → location-sejb9e2v.js} +15 -15
  193. package/dist/chunks/{location-p67zypcs.js → location-sx4ak346.js} +10 -10
  194. package/dist/chunks/{location-fpq9acqp.js → location-sxzvkvgj.js} +5 -5
  195. package/dist/chunks/{location-h4ckqw4f.js → location-tc14gx3q.js} +9 -9
  196. package/dist/chunks/{location-avjs8rwt.js → location-ted02x33.js} +51 -51
  197. package/dist/chunks/{location-f7a9ata7.js → location-tgzbhyj9.js} +3 -3
  198. package/dist/chunks/{location-w81mkxs7.js → location-tkj00vfs.js} +3 -3
  199. package/dist/chunks/{location-ezy2bptn.js → location-tprb9ykm.js} +5 -5
  200. package/dist/chunks/{location-wmwmmf9p.js → location-tsq3qyw6.js} +11 -11
  201. package/dist/chunks/{location-cyhwh2m5.js → location-v85wqnzs.js} +18 -18
  202. package/dist/chunks/{location-p1cpmwyf.js → location-vc4tj14c.js} +16 -16
  203. package/dist/chunks/{location-44ak30pa.js → location-vfjhn2wd.js} +3 -3
  204. package/dist/chunks/{location-s1337sdb.js → location-vgbc38w6.js} +21 -21
  205. package/dist/chunks/{location-pfvarswz.js → location-vkzh2jfz.js} +20 -20
  206. package/dist/chunks/{location-q4vqpvdd.js → location-w6nf2t4d.js} +15 -15
  207. package/dist/chunks/{location-edjm0cp8.js → location-w86wbf1j.js} +41 -41
  208. package/dist/chunks/{location-y2zmc9zv.js → location-wgrzeraf.js} +18 -18
  209. package/dist/chunks/{location-hyzby332.js → location-wmvjtpcg.js} +15 -15
  210. package/dist/chunks/{location-z2q0v0ax.js → location-wnbbbc1f.js} +8 -8
  211. package/dist/chunks/{location-2j4zxht4.js → location-wraxjda7.js} +13 -13
  212. package/dist/chunks/{location-w89t5azj.js → location-x1ayq2cp.js} +20 -20
  213. package/dist/chunks/{location-v099rn53.js → location-x375nta7.js} +2 -2
  214. package/dist/chunks/{location-dy2ggsev.js → location-x3g43msc.js} +25 -25
  215. package/dist/chunks/{location-a9568cjm.js → location-x45ymrje.js} +31 -31
  216. package/dist/chunks/{location-1krkd5b8.js → location-x46t862s.js} +11 -11
  217. package/dist/chunks/{location-9f668h4q.js → location-x4s254pk.js} +9 -9
  218. package/dist/chunks/{location-db2wf4at.js → location-x661k3y3.js} +3 -3
  219. package/dist/chunks/{location-jnra9z53.js → location-x9q78qat.js} +15 -15
  220. package/dist/chunks/{location-g5w8qwbj.js → location-xfkkasph.js} +3 -3
  221. package/dist/chunks/{location-4c4k5wey.js → location-xs9sm4qv.js} +14 -14
  222. package/dist/chunks/{location-qp5zfzrm.js → location-y2072sec.js} +13 -13
  223. package/dist/chunks/{location-4bfey5n7.js → location-y7h48m45.js} +4 -4
  224. package/dist/chunks/{location-q9fmzgve.js → location-ychzzj24.js} +4 -4
  225. package/dist/chunks/{location-jwbqxjt0.js → location-yda4wkbn.js} +16 -16
  226. package/dist/chunks/{location-ma4d79jn.js → location-yern2px4.js} +18 -18
  227. package/dist/chunks/{location-fgj24z8y.js → location-z5xex4x1.js} +12 -12
  228. package/dist/chunks/{location-qw00nmad.js → location-z86epv9q.js} +21 -21
  229. package/dist/chunks/{location-x7x00081.js → location-zc6x355b.js} +1 -1
  230. package/dist/codemode/instructions.js +6 -6
  231. package/dist/command.js +65 -65
  232. package/dist/config/discovery.js +58 -58
  233. package/dist/config/normalize.js +72 -72
  234. package/dist/config/plugin/agent.js +85 -85
  235. package/dist/config/plugin/command.js +168 -168
  236. package/dist/config/plugin/compaction.js +119 -119
  237. package/dist/config/plugin/compatibility.js +103 -103
  238. package/dist/config/plugin/formatter.js +86 -86
  239. package/dist/config/plugin/image.js +85 -85
  240. package/dist/config/plugin/instruction.js +65 -65
  241. package/dist/config/plugin/location-watcher.js +84 -84
  242. package/dist/config/plugin/mcp.js +93 -93
  243. package/dist/config/plugin/policy.js +86 -86
  244. package/dist/config/plugin/provider.js +85 -85
  245. package/dist/config/plugin/reference.js +87 -87
  246. package/dist/config/plugin/shell.js +85 -85
  247. package/dist/config/plugin/skill-file.js +73 -73
  248. package/dist/config/plugin/skill.js +104 -104
  249. package/dist/config/plugin/snapshot.js +85 -85
  250. package/dist/config/plugin/source.js +88 -88
  251. package/dist/config/plugin/tool-output.js +86 -86
  252. package/dist/config/plugin/websearch.js +84 -84
  253. package/dist/config/plugin/worktree.js +86 -86
  254. package/dist/config/variable.js +2 -2
  255. package/dist/config.js +91 -91
  256. package/dist/credential.js +64 -64
  257. package/dist/database/database.js +50 -50
  258. package/dist/database/drizzle/effect-sqlite/driver.js +7 -7
  259. package/dist/database/drizzle/effect-sqlite/index.js +4 -4
  260. package/dist/database/drizzle/effect-sqlite/session.js +6 -6
  261. package/dist/database/drizzle/index.js +8 -8
  262. package/dist/database/drizzle/sqlite-core/effect/db.js +4 -4
  263. package/dist/database/drizzle/sqlite-core/effect/index.js +2 -2
  264. package/dist/database/drizzle/sqlite-core/effect/session.js +5 -5
  265. package/dist/database/drizzle.js +8 -8
  266. package/dist/database/migration.gen.js +40 -40
  267. package/dist/database/migration.js +41 -41
  268. package/dist/database/v1-migration.bun.js +9 -9
  269. package/dist/effect/app-node-builder.js +235 -235
  270. package/dist/environment/environment.js +65 -65
  271. package/dist/environment/index.js +67 -67
  272. package/dist/event-logger.js +13 -13
  273. package/dist/file-access.js +76 -76
  274. package/dist/file-mutation.js +66 -66
  275. package/dist/filesystem/location-watcher.js +182 -182
  276. package/dist/filesystem/search.js +73 -73
  277. package/dist/filesystem/watcher-binding.js +3 -3
  278. package/dist/filesystem/watcher.js +14 -14
  279. package/dist/filesystem.js +76 -76
  280. package/dist/form.js +68 -68
  281. package/dist/formatter/builtins.js +3 -3
  282. package/dist/formatter.js +63 -63
  283. package/dist/generate.js +73 -73
  284. package/dist/git.js +6 -6
  285. package/dist/github-copilot/chat/openai-compatible-chat-language-model.js +4 -4
  286. package/dist/github-copilot/copilot-provider.js +3 -3
  287. package/dist/github-copilot/models.js +65 -65
  288. package/dist/github-copilot/responses/openai-responses-language-model.js +7 -7
  289. package/dist/github-copilot/responses/openai-responses-prepare-tools.js +3 -3
  290. package/dist/image/photon.js +1 -1
  291. package/dist/image.js +5 -5
  292. package/dist/instance/service.js +5 -5
  293. package/dist/instance.js +311 -311
  294. package/dist/instruction-discovery.js +66 -66
  295. package/dist/instructions/builtins.js +63 -63
  296. package/dist/instructions/index.js +5 -5
  297. package/dist/integration/connection.js +3 -3
  298. package/dist/integration.js +66 -66
  299. package/dist/job.js +59 -59
  300. package/dist/kv.js +55 -55
  301. package/dist/location-activity.js +55 -55
  302. package/dist/location-lifecycle.js +79 -79
  303. package/dist/location-service-map.js +62 -62
  304. package/dist/location-services.js +307 -307
  305. package/dist/location.js +61 -61
  306. package/dist/managed-policy.js +7 -7
  307. package/dist/mcp/client.js +16 -16
  308. package/dist/mcp/index.js +79 -79
  309. package/dist/mcp/instructions.js +97 -97
  310. package/dist/mcp/oauth.js +13 -13
  311. package/dist/mcp/stdio.js +62 -62
  312. package/dist/modal/models.js +65 -65
  313. package/dist/model-resolver.js +72 -72
  314. package/dist/model.js +74 -74
  315. package/dist/models-dev.js +81 -81
  316. package/dist/permission/saved.js +61 -61
  317. package/dist/permission.js +89 -89
  318. package/dist/persistent-pty/index.js +69 -69
  319. package/dist/persistent-pty.js +55 -55
  320. package/dist/plugin/agent.js +56 -56
  321. package/dist/plugin/command.js +70 -70
  322. package/dist/plugin/hooks.js +5 -5
  323. package/dist/plugin/host.js +176 -176
  324. package/dist/plugin/identity.js +3 -3
  325. package/dist/plugin/instance.js +5 -5
  326. package/dist/plugin/internal.js +284 -284
  327. package/dist/plugin/mcp-codemode-defaults.js +3 -3
  328. package/dist/plugin/models-dev.js +70 -70
  329. package/dist/plugin/module.js +84 -84
  330. package/dist/plugin/optimize.js +4 -4
  331. package/dist/plugin/plan.js +74 -74
  332. package/dist/plugin/provider/amazon-bedrock.js +64 -64
  333. package/dist/plugin/provider/azure.js +86 -86
  334. package/dist/plugin/provider/chatgpt.js +66 -66
  335. package/dist/plugin/provider/cloudflare-ai-gateway.js +83 -83
  336. package/dist/plugin/provider/cloudflare-workers-ai.js +83 -83
  337. package/dist/plugin/provider/configured.js +82 -82
  338. package/dist/plugin/provider/digitalocean.js +66 -66
  339. package/dist/plugin/provider/github-copilot.js +68 -68
  340. package/dist/plugin/provider/gitlab.js +66 -66
  341. package/dist/plugin/provider/google-vertex.js +83 -83
  342. package/dist/plugin/provider/llmgateway.js +57 -57
  343. package/dist/plugin/provider/lmstudio.js +86 -86
  344. package/dist/plugin/provider/local.js +83 -83
  345. package/dist/plugin/provider/modal.js +66 -66
  346. package/dist/plugin/provider/ollama.js +86 -86
  347. package/dist/plugin/provider/openai.js +67 -67
  348. package/dist/plugin/provider/opencode.js +71 -71
  349. package/dist/plugin/provider/openrouter.js +65 -65
  350. package/dist/plugin/provider/poe.js +57 -57
  351. package/dist/plugin/provider/prompt-cache-key.js +64 -64
  352. package/dist/plugin/provider/sap-ai-core.js +64 -64
  353. package/dist/plugin/provider/snowflake-cortex.js +84 -84
  354. package/dist/plugin/provider/vercel.js +64 -64
  355. package/dist/plugin/provider/vllm.js +86 -86
  356. package/dist/plugin/provider/xai.js +65 -65
  357. package/dist/plugin/provider.js +121 -121
  358. package/dist/plugin/sdk.js +52 -52
  359. package/dist/plugin/service.js +3 -3
  360. package/dist/plugin/skill.js +104 -104
  361. package/dist/plugin/supervisor.js +299 -299
  362. package/dist/plugin/tool-input-repair.js +3 -3
  363. package/dist/plugin/update.js +5 -5
  364. package/dist/plugin/vcs/git.js +62 -62
  365. package/dist/plugin/vcs/hg.js +62 -62
  366. package/dist/plugin/verbosity.js +67 -67
  367. package/dist/plugin/warming.js +84 -84
  368. package/dist/plugin/websearch/exa.js +6 -6
  369. package/dist/plugin/websearch/firecrawl.js +7 -7
  370. package/dist/plugin/websearch/index.js +8 -8
  371. package/dist/plugin/websearch/mcp.js +3 -3
  372. package/dist/plugin/websearch/parallel.js +5 -5
  373. package/dist/plugin/websearch/tavily.js +6 -6
  374. package/dist/plugin/websearch/tinyfish.js +7 -7
  375. package/dist/plugin.js +183 -183
  376. package/dist/project.js +60 -60
  377. package/dist/provider.js +75 -75
  378. package/dist/pty.js +64 -64
  379. package/dist/reference/instructions.js +65 -65
  380. package/dist/reference.js +69 -69
  381. package/dist/repository-cache.js +59 -59
  382. package/dist/ripgrep.js +68 -68
  383. package/dist/rpc.js +62 -62
  384. package/dist/session/command.js +56 -56
  385. package/dist/session/compaction.js +103 -103
  386. package/dist/session/context.js +119 -119
  387. package/dist/session/diff.js +62 -62
  388. package/dist/session/environment.js +5 -5
  389. package/dist/session/error.js +6 -6
  390. package/dist/session/execution/restart.js +116 -116
  391. package/dist/session/execution.js +99 -99
  392. package/dist/session/generate.js +118 -118
  393. package/dist/session/history.js +8 -8
  394. package/dist/session/inbox.js +63 -63
  395. package/dist/session/info.js +2 -2
  396. package/dist/session/instruction-entry.js +58 -58
  397. package/dist/session/instruction-state.js +2 -2
  398. package/dist/session/instructions.js +70 -70
  399. package/dist/session/message-updater.js +3 -3
  400. package/dist/session/model-request.js +89 -89
  401. package/dist/session/model-transport.js +7 -7
  402. package/dist/session/move.js +101 -101
  403. package/dist/session/projector.js +61 -61
  404. package/dist/session/prompt.js +76 -76
  405. package/dist/session/provider-context.js +3 -3
  406. package/dist/session/revert.js +63 -63
  407. package/dist/session/run-coordinator.js +3 -3
  408. package/dist/session/runner/index.js +3 -3
  409. package/dist/session/runner/llm.js +187 -187
  410. package/dist/session/runner/model.js +72 -72
  411. package/dist/session/runner/publish-llm-event.js +84 -84
  412. package/dist/session/runner/retry.js +3 -3
  413. package/dist/session/runner/step.js +93 -93
  414. package/dist/session/runner/to-llm-message.js +2 -2
  415. package/dist/session/schema.js +5 -5
  416. package/dist/session/session.js +131 -131
  417. package/dist/session/shell.js +98 -98
  418. package/dist/session/skill.js +75 -75
  419. package/dist/session/stats.js +8 -8
  420. package/dist/session/store.js +64 -64
  421. package/dist/session/subagent-job.js +167 -167
  422. package/dist/session/system-prompt.js +3 -3
  423. package/dist/session/title.js +116 -116
  424. package/dist/session/to-session-error.js +83 -83
  425. package/dist/session/transfer.js +113 -113
  426. package/dist/session.js +178 -178
  427. package/dist/shell/parse.js +4 -4
  428. package/dist/shell/select.js +12 -12
  429. package/dist/shell.js +101 -101
  430. package/dist/skill/discovery.js +5 -5
  431. package/dist/skill/instructions.js +79 -79
  432. package/dist/skill.js +82 -82
  433. package/dist/snapshot.js +69 -69
  434. package/dist/tool/mcp.js +96 -96
  435. package/dist/tool/plugin/edit.js +85 -85
  436. package/dist/tool/plugin/glob.js +92 -92
  437. package/dist/tool/plugin/grep.js +94 -94
  438. package/dist/tool/plugin/mcp-resource.js +87 -87
  439. package/dist/tool/plugin/opencode.js +81 -81
  440. package/dist/tool/plugin/patch.js +91 -91
  441. package/dist/tool/plugin/question.js +75 -75
  442. package/dist/tool/plugin/read.js +95 -95
  443. package/dist/tool/plugin/shell.js +173 -173
  444. package/dist/tool/plugin/skill.js +83 -83
  445. package/dist/tool/plugin/subagent.js +176 -176
  446. package/dist/tool/plugin/webfetch.js +83 -83
  447. package/dist/tool/plugin/websearch.js +84 -84
  448. package/dist/tool/plugin/write.js +93 -93
  449. package/dist/tool/read-filesystem.js +70 -70
  450. package/dist/tool-output.js +5 -5
  451. package/dist/tool.js +11 -11
  452. package/dist/types/session/history.d.ts +32 -0
  453. package/dist/types/session/transfer.d.ts +19 -0
  454. package/dist/v1/config/agent.js +6 -6
  455. package/dist/v1/config/command.js +3 -3
  456. package/dist/v1/config/error.js +3 -3
  457. package/dist/v1/config/mcp.js +3 -3
  458. package/dist/v1/config/migrate.js +65 -65
  459. package/dist/v1/config/permission.js +7 -7
  460. package/dist/v1/config/plugin.js +3 -3
  461. package/dist/v1/config/provider.js +3 -3
  462. package/dist/variant.js +65 -65
  463. package/dist/vcs.js +65 -65
  464. package/dist/websearch.js +61 -61
  465. package/dist/wellknown/plugin.js +57 -57
  466. package/dist/wellknown.js +62 -62
  467. package/dist/workspace/driver.js +5 -5
  468. package/dist/workspace.js +62 -62
  469. package/dist/worktree/git.js +5 -5
  470. package/dist/worktree/strategies.js +64 -64
  471. package/dist/worktree.js +70 -70
  472. package/package.json +8 -8
  473. package/dist/chunks/location-350gfnr7.js +0 -26
  474. package/dist/chunks/location-xzkm26z5.js +0 -253
  475. /package/dist/chunks/{location-y8dg3yja.js → location-b564mtnb.js} +0 -0
  476. /package/dist/chunks/{location-kerhshr9.js → location-fegk541e.js} +0 -0
  477. /package/dist/chunks/{location-5camtqdd.js → location-shfh3dfx.js} +0 -0
  478. /package/dist/chunks/{location-c0gy5km3.js → location-wfyw2gqh.js} +0 -0
@@ -1,34 +1,34 @@
1
1
  import {
2
- ID15,
3
- Service74
4
- } from "./location-dy2ggsev.js";
2
+ ID8,
3
+ Service53
4
+ } from "./location-x3g43msc.js";
5
5
  import {
6
6
  Ref2,
7
- Service63
8
- } from "./location-fw4jt8zs.js";
7
+ Service73
8
+ } from "./location-hp2pwxv9.js";
9
9
  import {
10
10
  latest2,
11
- Service48
12
- } from "./location-n0ntqt9g.js";
11
+ Service70
12
+ } from "./location-jc2mtm7q.js";
13
13
  import {
14
14
  SessionSchema2
15
- } from "./location-ss358qx3.js";
15
+ } from "./location-ba07h9gm.js";
16
16
  import {
17
- Service65
18
- } from "./location-c4apb3t6.js";
17
+ Service44
18
+ } from "./location-bprjyzj4.js";
19
19
  import {
20
20
  evaluate2,
21
- Service71
22
- } from "./location-296sdbys.js";
21
+ Service50
22
+ } from "./location-cy5473yv.js";
23
23
  import {
24
- Service29
25
- } from "./location-tghtnfzz.js";
24
+ Service19
25
+ } from "./location-9jvk4y4z.js";
26
26
  import {
27
27
  NO_TEXT2
28
28
  } from "./location-6xb47vfp.js";
29
29
  import {
30
- make10
31
- } from "./location-r3s6mbe4.js";
30
+ make9
31
+ } from "./location-rsxcvxxn.js";
32
32
  import {
33
33
  __export
34
34
  } from "./location-9rqn6x4v.js";
@@ -36,16 +36,16 @@ import {
36
36
  // src/tool/plugin/subagent.ts
37
37
  var exports_subagent = {};
38
38
  __export(exports_subagent, {
39
- Input: () => Input2,
40
- Output: () => Output2,
41
- Plugin: () => Plugin19,
39
+ Input: () => Input12,
40
+ Output: () => Output8,
41
+ Plugin: () => Plugin15,
42
42
  SubagentTool: () => exports_subagent,
43
- description: () => description2,
44
- name: () => name2
43
+ description: () => description5,
44
+ name: () => name12
45
45
  });
46
46
  import { ToolFailure } from "@opencode/ai";
47
47
  import { Effect, Predicate, Schema } from "effect";
48
- var name2 = "subagent";
48
+ var name12 = "subagent";
49
49
  var backgroundResult = (sessionID) => ({
50
50
  sessionID,
51
51
  status: "running",
@@ -56,7 +56,7 @@ var backgroundResult = (sessionID) => ({
56
56
  ].join(`
57
57
  `)
58
58
  });
59
- var Input2 = Schema.Struct({
59
+ var Input12 = Schema.Struct({
60
60
  agent: Schema.String.annotate({
61
61
  description: "The type of specialized agent to use for this task. If the user asks for a subagent by a name that is not one of the available subagents, they most likely mean a model: pick a suitable agent and pass the name through the model parameter instead."
62
62
  }),
@@ -72,12 +72,12 @@ var Input2 = Schema.Struct({
72
72
  description: "Run the subagent in the background and return immediately. You will be notified when it completes. DO NOT sleep, poll, or proactively check on its progress."
73
73
  })
74
74
  });
75
- var Output2 = Schema.Struct({
75
+ var Output8 = Schema.Struct({
76
76
  sessionID: SessionSchema2.ID,
77
77
  status: Schema.Literals(["completed", "running"]),
78
78
  output: Schema.String
79
79
  });
80
- var description2 = [
80
+ var description5 = [
81
81
  "Spawns an agent in a child session to work on the specified task.",
82
82
  "The output includes a sessionID you can pass back later to continue that specific conversation with the subagent.",
83
83
  "New child sessions start with fresh context, so include all relevant context and instructions when you don't pass a sessionID.",
@@ -86,16 +86,16 @@ var description2 = [
86
86
  "Use background only for independent work that can run while you continue elsewhere."
87
87
  ].join(`
88
88
  `);
89
- var Plugin19 = {
89
+ var Plugin15 = {
90
90
  id: "opencode.tool.subagent",
91
91
  effect: Effect.fn("SubagentTool.Plugin")(function* (ctx) {
92
- const sessions = yield* Service29;
93
- const jobs = yield* Service65;
94
- const agents = yield* Service74;
95
- const config = yield* Service48;
96
- const permission = yield* Service71;
97
- const models = yield* Service63;
98
- const subagents = yield* make10;
92
+ const sessions = yield* Service19;
93
+ const jobs = yield* Service44;
94
+ const agents = yield* Service53;
95
+ const config = yield* Service70;
96
+ const permission = yield* Service50;
97
+ const models = yield* Service73;
98
+ const subagents = yield* make9;
99
99
  const resolveModel = Effect.fn("SubagentTool.resolveModel")(function* (input) {
100
100
  const ref = yield* Effect.try({
101
101
  try: () => Ref2.parse(input),
@@ -115,11 +115,11 @@ var Plugin19 = {
115
115
  return ref;
116
116
  });
117
117
  yield* ctx.tool.transform((editor) => editor.add({
118
- name: name2,
118
+ name: name12,
119
119
  options: { codemode: false },
120
- description: description2,
121
- input: Input2,
122
- output: Output2,
120
+ description: description5,
121
+ input: Input12,
122
+ output: Output8,
123
123
  execute: (input, context) => Effect.gen(function* () {
124
124
  const parent = yield* sessions.get(context.sessionID).pipe(Effect.mapError((error) => new ToolFailure({ message: `Parent session not found: ${context.sessionID}`, error })));
125
125
  let current = parent;
@@ -139,7 +139,7 @@ var Plugin19 = {
139
139
  if (agent.mode === "primary")
140
140
  return yield* new ToolFailure({ message: `Agent ${input.agent} cannot run as a subagent` });
141
141
  yield* permission.assert({
142
- action: name2,
142
+ action: name12,
143
143
  resources: [agent.id],
144
144
  save: [agent.id],
145
145
  sessionID: context.sessionID,
@@ -168,7 +168,7 @@ var Plugin19 = {
168
168
  const child = existing ?? (yield* sessions.create({
169
169
  parentID: context.sessionID,
170
170
  title: input.description,
171
- agent: ID15.make(input.agent),
171
+ agent: ID8.make(input.agent),
172
172
  model
173
173
  }).pipe(Effect.mapError((error) => new ToolFailure({ message: `Parent session not found: ${context.sessionID}`, error }))));
174
174
  const background = input.background === true;
@@ -218,7 +218,7 @@ ${output.output}
218
218
  })))
219
219
  })).pipe(Effect.orDie);
220
220
  yield* ctx.tool.hook("execute.before", (event) => Effect.sync(() => {
221
- if (event.tool !== name2 || !Predicate.isObject(event.input))
221
+ if (event.tool !== name12 || !Predicate.isObject(event.input))
222
222
  return;
223
223
  if (event.input.model !== "" && event.input.sessionID !== "")
224
224
  return;
@@ -230,13 +230,13 @@ ${output.output}
230
230
  event.input = input;
231
231
  }));
232
232
  const hook = (event) => Effect.gen(function* () {
233
- const tool = event.tools[name2];
233
+ const tool = event.tools[name12];
234
234
  if (!tool)
235
235
  return;
236
236
  const selected = yield* agents.resolve(event.agent);
237
237
  if (!selected)
238
238
  return;
239
- const available = (yield* agents.list()).filter((agent) => agent.mode !== "primary" && !agent.hidden && evaluate2(name2, agent.id, selected.permissions).effect !== "deny").toSorted((a, b) => a.id.localeCompare(b.id));
239
+ const available = (yield* agents.list()).filter((agent) => agent.mode !== "primary" && !agent.hidden && evaluate2(name12, agent.id, selected.permissions).effect !== "deny").toSorted((a, b) => a.id.localeCompare(b.id));
240
240
  if (available.length === 0)
241
241
  return;
242
242
  tool.description = [
@@ -253,4 +253,4 @@ ${output.output}
253
253
  })
254
254
  };
255
255
 
256
- export { name2, Input2, Output2, description2, Plugin19, exports_subagent };
256
+ export { name12, Input12, Output8, description5, Plugin15, exports_subagent };
@@ -1,10 +1,10 @@
1
1
  import {
2
2
  latest2,
3
- Service48
4
- } from "./location-n0ntqt9g.js";
3
+ Service70
4
+ } from "./location-jc2mtm7q.js";
5
5
  import {
6
- Service46
7
- } from "./location-v6vf82bk.js";
6
+ Service65
7
+ } from "./location-bfdarn04.js";
8
8
  import {
9
9
  observe2
10
10
  } from "./location-qsdy395h.js";
@@ -16,15 +16,15 @@ import {
16
16
  var exports_snapshot = {};
17
17
  __export(exports_snapshot, {
18
18
  ConfigSnapshotPlugin: () => exports_snapshot,
19
- Plugin: () => Plugin36
19
+ Plugin: () => Plugin49
20
20
  });
21
21
  import { define } from "@opencode/plugin/effect/plugin";
22
22
  import { Effect } from "effect";
23
- var Plugin36 = define({
23
+ var Plugin49 = define({
24
24
  id: "opencode.config.snapshot",
25
25
  effect: Effect.fn(function* (ctx) {
26
- const config = yield* Service48;
27
- const snapshot = yield* Service46;
26
+ const config = yield* Service70;
27
+ const snapshot = yield* Service65;
28
28
  const loaded = yield* observe2(config, ctx.event, snapshot.reload());
29
29
  yield* snapshot.transform((editor) => {
30
30
  const configured = latest2(loaded.entries, "snapshots");
@@ -35,4 +35,4 @@ var Plugin36 = define({
35
35
  })
36
36
  });
37
37
 
38
- export { Plugin36, exports_snapshot };
38
+ export { Plugin49, exports_snapshot };
@@ -4,13 +4,13 @@ import {
4
4
  RelativePath2
5
5
  } from "./location-z5v4ffb3.js";
6
6
  import {
7
- Service75,
8
- node79
9
- } from "./location-w9w8c5s2.js";
7
+ Service80,
8
+ node84
9
+ } from "./location-8vd0j1f8.js";
10
10
  import {
11
- Service19,
12
- node21
13
- } from "./location-89bv08xb.js";
11
+ Service56,
12
+ node59
13
+ } from "./location-da7cwfsq.js";
14
14
  import {
15
15
  __export
16
16
  } from "./location-9rqn6x4v.js";
@@ -18,26 +18,26 @@ import {
18
18
  // src/filesystem.ts
19
19
  var exports_filesystem = {};
20
20
  __export(exports_filesystem, {
21
- Content: () => Content2,
21
+ Content: () => Content3,
22
22
  DEFAULT_SEARCH_LIMIT: () => DEFAULT_SEARCH_LIMIT2,
23
23
  DEFAULT_SEARCH_TIMEOUT_MS: () => DEFAULT_SEARCH_TIMEOUT_MS2,
24
24
  DirectoryAccessDeniedError: () => DirectoryAccessDeniedError2,
25
25
  DirectoryNotFoundError: () => DirectoryNotFoundError2,
26
26
  Entry: () => Entry2,
27
- Event: () => Event4,
27
+ Event: () => Event12,
28
28
  FileSystem: () => exports_filesystem,
29
29
  FindInput: () => FindInput2,
30
30
  GlobInput: () => GlobInput2,
31
31
  GrepInput: () => GrepInput2,
32
- ListInput: () => ListInput2,
32
+ ListInput: () => ListInput5,
33
33
  Match: () => Match2,
34
- NotFoundError: () => NotFoundError3,
34
+ NotFoundError: () => NotFoundError8,
35
35
  ReadInput: () => ReadInput2,
36
- Service: () => Service18,
36
+ Service: () => Service55,
37
37
  Submatch: () => Submatch2,
38
38
  Write: () => Write2,
39
39
  WriteInput: () => WriteInput2,
40
- node: () => node20
40
+ node: () => node58
41
41
  });
42
42
  import { makeLocationNode } from "@opencode/util/effect/app-node";
43
43
  import path from "path";
@@ -53,7 +53,7 @@ var WriteInput2 = Schema.Struct({
53
53
  data: Schema.Uint8Array
54
54
  });
55
55
 
56
- class NotFoundError3 extends Schema.TaggedError()("FileSystem.NotFoundError", {
56
+ class NotFoundError8 extends Schema.TaggedError()("FileSystem.NotFoundError", {
57
57
  path: RelativePath2
58
58
  }) {
59
59
  }
@@ -75,14 +75,14 @@ class DirectoryAccessDeniedError2 extends Schema.TaggedError()("FileSystem.Direc
75
75
  return `Access denied to directory: ${this.directory}`;
76
76
  }
77
77
  }
78
- var Content2 = Schema.Struct({
78
+ var Content3 = Schema.Struct({
79
79
  uri: Schema.String,
80
80
  name: Schema.String.pipe(Schema.optional),
81
81
  content: Schema.String,
82
82
  encoding: Schema.Literals(["utf8", "base64"]),
83
83
  mime: Schema.String
84
84
  }).annotate({ identifier: "FileSystem.Content" });
85
- var ListInput2 = Schema.Struct({
85
+ var ListInput5 = Schema.Struct({
86
86
  path: Schema.String.pipe(Schema.optional)
87
87
  });
88
88
  var DEFAULT_SEARCH_LIMIT2 = 100;
@@ -105,14 +105,14 @@ class GrepInput2 extends Schema.Class("FileSystem.GrepInput")({
105
105
  limit: Schema.optionalKey(PositiveInt2)
106
106
  }) {
107
107
  }
108
- var Event4 = FileSystem.Event;
108
+ var Event12 = FileSystem.Event;
109
109
 
110
- class Service18 extends Context.Service()("@opencode/FileSystem") {
110
+ class Service55 extends Context.Service()("@opencode/FileSystem") {
111
111
  }
112
- var baseLayer = Layer.effect(Service18, Effect.gen(function* () {
112
+ var baseLayer = Layer.effect(Service55, Effect.gen(function* () {
113
113
  const fs = yield* FSUtil.Service;
114
- const location = yield* Service75;
115
- const search = yield* Service19;
114
+ const location = yield* Service80;
115
+ const search = yield* Service56;
116
116
  const root = location.workspaceID ? location.directory : yield* fs.realPath(location.directory).pipe(Effect.catch((cause) => {
117
117
  if (cause.reason._tag === "NotFound")
118
118
  return Effect.fail(new DirectoryNotFoundError2({ directory: location.directory, cause }));
@@ -122,22 +122,22 @@ var baseLayer = Layer.effect(Service18, Effect.gen(function* () {
122
122
  }));
123
123
  const resolve = Effect.fnUntraced(function* (input) {
124
124
  if (input.includes("\x00"))
125
- return yield* Effect.fail(new NotFoundError3({ path: input }));
125
+ return yield* Effect.fail(new NotFoundError8({ path: input }));
126
126
  const absolute = path.resolve(location.directory, input);
127
127
  if (!FSUtil.contains(location.directory, absolute))
128
- return yield* Effect.fail(new NotFoundError3({ path: input }));
129
- const real = yield* fs.realPath(absolute).pipe(Effect.catchReason("PlatformError", "NotFound", () => Effect.fail(new NotFoundError3({ path: input })), (_, error) => Effect.die(error)));
128
+ return yield* Effect.fail(new NotFoundError8({ path: input }));
129
+ const real = yield* fs.realPath(absolute).pipe(Effect.catchReason("PlatformError", "NotFound", () => Effect.fail(new NotFoundError8({ path: input })), (_, error) => Effect.die(error)));
130
130
  if (!FSUtil.contains(root, real))
131
- return yield* Effect.fail(new NotFoundError3({ path: input }));
131
+ return yield* Effect.fail(new NotFoundError8({ path: input }));
132
132
  return { absolute, real, directory: location.directory };
133
133
  });
134
- return Service18.of({
134
+ return Service55.of({
135
135
  find: search.find,
136
136
  read: Effect.fn("FileSystem.read")(function* (input) {
137
137
  const target = yield* resolve(input.path);
138
- const info = yield* fs.stat(target.real).pipe(Effect.catchReason("PlatformError", "NotFound", () => Effect.fail(new NotFoundError3({ path: input.path })), (_, error) => Effect.die(error)));
138
+ const info = yield* fs.stat(target.real).pipe(Effect.catchReason("PlatformError", "NotFound", () => Effect.fail(new NotFoundError8({ path: input.path })), (_, error) => Effect.die(error)));
139
139
  if (info.type !== "File")
140
- return yield* Effect.fail(new NotFoundError3({ path: input.path }));
140
+ return yield* Effect.fail(new NotFoundError8({ path: input.path }));
141
141
  return {
142
142
  mime: FSUtil.mimeType(target.real),
143
143
  size: Number(info.size),
@@ -147,7 +147,7 @@ var baseLayer = Layer.effect(Service18, Effect.gen(function* () {
147
147
  }),
148
148
  list: Effect.fn("FileSystem.list")(function* (input = {}) {
149
149
  const directory = path.resolve(location.directory, input.path ?? ".");
150
- const missing = new NotFoundError3({ path: RelativePath2.make(input.path ?? ".") });
150
+ const missing = new NotFoundError8({ path: RelativePath2.make(input.path ?? ".") });
151
151
  const info = yield* fs.stat(directory).pipe(Effect.catchReason("PlatformError", "NotFound", () => Effect.fail(missing), (_, error) => Effect.die(error)));
152
152
  if (info.type !== "Directory")
153
153
  return yield* missing;
@@ -171,10 +171,10 @@ var baseLayer = Layer.effect(Service18, Effect.gen(function* () {
171
171
  })
172
172
  });
173
173
  }));
174
- var node20 = makeLocationNode({
175
- service: Service18,
174
+ var node58 = makeLocationNode({
175
+ service: Service55,
176
176
  layer: baseLayer,
177
- deps: [FSUtil.node, node79, node21]
177
+ deps: [FSUtil.node, node84, node59]
178
178
  });
179
179
 
180
- export { FindInput2, Write2, ReadInput2, WriteInput2, NotFoundError3, DirectoryNotFoundError2, DirectoryAccessDeniedError2, Content2, ListInput2, DEFAULT_SEARCH_LIMIT2, DEFAULT_SEARCH_TIMEOUT_MS2, GlobInput2, GrepInput2, Event4, Service18, node20, exports_filesystem, Entry2, Match2, Submatch2 };
180
+ export { FindInput2, Write2, ReadInput2, WriteInput2, NotFoundError8, DirectoryNotFoundError2, DirectoryAccessDeniedError2, Content3, ListInput5, DEFAULT_SEARCH_LIMIT2, DEFAULT_SEARCH_TIMEOUT_MS2, GlobInput2, GrepInput2, Event12, Service55, node58, exports_filesystem, Entry2, Match2, Submatch2 };
@@ -1,46 +1,46 @@
1
1
  import {
2
- Service78,
3
- node82
4
- } from "./location-510enc9r.js";
2
+ Service83,
3
+ node87
4
+ } from "./location-5tmy9zrn.js";
5
5
  import {
6
- node52
7
- } from "./location-9qap1kz0.js";
6
+ node75
7
+ } from "./location-cadbnk3n.js";
8
8
  import {
9
- Service11,
10
- node13
11
- } from "./location-k6367mvk.js";
9
+ Service12,
10
+ node14
11
+ } from "./location-5jx09pxm.js";
12
12
  import {
13
- Service82
14
- } from "./location-5qjvepv9.js";
13
+ Service59
14
+ } from "./location-9dpd9382.js";
15
15
  import {
16
- Service38
17
- } from "./location-7fj5dwt0.js";
16
+ Service27
17
+ } from "./location-1x11rq2a.js";
18
18
  import {
19
- node24,
19
+ node20,
20
20
  ID3
21
- } from "./location-k09pycdv.js";
21
+ } from "./location-82ztv55b.js";
22
22
  import {
23
- Service3,
24
- node4
25
- } from "./location-9hn6k4tm.js";
23
+ Service6,
24
+ node7
25
+ } from "./location-czfptnv9.js";
26
26
  import {
27
27
  requirements2,
28
28
  guarded2,
29
29
  list2
30
- } from "./location-mxyxeq91.js";
30
+ } from "./location-c9jygpac.js";
31
31
  import {
32
32
  make3,
33
33
  LoadError2
34
- } from "./location-4yxknn6d.js";
34
+ } from "./location-e4w2kpmf.js";
35
35
  import {
36
36
  Updated2,
37
37
  Service4,
38
38
  node5
39
- } from "./location-twanzasj.js";
39
+ } from "./location-3bnybhwv.js";
40
40
  import {
41
- Service2,
42
- node3
43
- } from "./location-11dqjexa.js";
41
+ Service5,
42
+ node6
43
+ } from "./location-4nj4bn9q.js";
44
44
  import {
45
45
  __export
46
46
  } from "./location-9rqn6x4v.js";
@@ -50,7 +50,7 @@ var exports_supervisor = {};
50
50
  __export(exports_supervisor, {
51
51
  PluginSupervisor: () => exports_supervisor,
52
52
  layer: () => layer3,
53
- node: () => node2
53
+ node: () => node3
54
54
  });
55
55
  import { Event } from "@opencode/schema/config";
56
56
  import { Cause, Effect, Layer, Queue, Stream } from "effect";
@@ -137,14 +137,14 @@ var resolve = Effect.fn("PluginSupervisor.resolve")(function* (modules, pre, pos
137
137
  };
138
138
  });
139
139
  var layer3 = Layer.effectDiscard(Effect.gen(function* () {
140
- const managed = yield* Service82;
141
- const registry = yield* Service38;
140
+ const managed = yield* Service59;
141
+ const registry = yield* Service27;
142
142
  const sdk = yield* Service4;
143
- const instance = yield* Service3;
144
- const sources = yield* Service11;
143
+ const instance = yield* Service6;
144
+ const sources = yield* Service12;
145
145
  const modules = yield* make3();
146
- const bus = yield* Service78;
147
- const updates = yield* Service2;
146
+ const bus = yield* Service83;
147
+ const updates = yield* Service5;
148
148
  const internal = yield* list2();
149
149
  let release = yield* registry.hold();
150
150
  yield* Effect.addFinalizer(() => release ?? Effect.void);
@@ -220,14 +220,14 @@ var layer3 = Layer.effectDiscard(Effect.gen(function* () {
220
220
  })), Effect.forkScoped({ startImmediately: true }));
221
221
  }));
222
222
  var nodeDeps = [
223
- node24,
223
+ node20,
224
224
  node5,
225
- node4,
226
- node13,
227
- node3,
228
- node82,
225
+ node7,
226
+ node14,
227
+ node6,
228
+ node87,
229
229
  Npm.node,
230
- node52,
230
+ node75,
231
231
  requirements2
232
232
  ];
233
233
  function pluginSource(target) {
@@ -235,6 +235,6 @@ function pluginSource(target) {
235
235
  return { type: "local", path: target };
236
236
  return { type: "package", target };
237
237
  }
238
- var node2 = makeLocationNode({ name: "plugin-supervisor", layer: layer3, deps: nodeDeps });
238
+ var node3 = makeLocationNode({ name: "plugin-supervisor", layer: layer3, deps: nodeDeps });
239
239
 
240
- export { layer3, node2, exports_supervisor };
240
+ export { layer3, node3, exports_supervisor };
@@ -1,9 +1,9 @@
1
1
  import {
2
- Service48
3
- } from "./location-n0ntqt9g.js";
2
+ Service70
3
+ } from "./location-jc2mtm7q.js";
4
4
  import {
5
- Service39
6
- } from "./location-avjs8rwt.js";
5
+ Service29
6
+ } from "./location-ted02x33.js";
7
7
  import {
8
8
  __export
9
9
  } from "./location-9rqn6x4v.js";
@@ -12,20 +12,20 @@ import {
12
12
  var exports_mcp2 = {};
13
13
  __export(exports_mcp2, {
14
14
  ConfigMcpPlugin: () => exports_mcp2,
15
- Plugin: () => Plugin37,
15
+ Plugin: () => Plugin32,
16
16
  register: () => register2
17
17
  });
18
18
  import { define } from "@opencode/plugin/effect/plugin";
19
19
  import { Effect, Stream } from "effect";
20
- var Plugin37 = define({
20
+ var Plugin32 = 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* Service48;
28
- const mcp = yield* Service39;
27
+ const config = yield* Service70;
28
+ const mcp = yield* Service29;
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 { Plugin37, register2, exports_mcp2 };
49
+ export { Plugin32, register2, exports_mcp2 };
@@ -1,7 +1,7 @@
1
1
  import {
2
- Service78,
3
- node82
4
- } from "./location-510enc9r.js";
2
+ Service83,
3
+ node87
4
+ } from "./location-5tmy9zrn.js";
5
5
  import {
6
6
  create3
7
7
  } from "./location-rdw6cm16.js";
@@ -13,21 +13,21 @@ import {
13
13
  var exports_command4 = {};
14
14
  __export(exports_command4, {
15
15
  Command: () => exports_command4,
16
- Event: () => Event9,
16
+ Event: () => Event5,
17
17
  ExecutionError: () => ExecutionError2,
18
- Info: () => Info8,
19
- NotFoundError: () => NotFoundError7,
20
- Service: () => Service45,
21
- layer: () => layer17,
22
- node: () => node48
18
+ Info: () => Info6,
19
+ NotFoundError: () => NotFoundError4,
20
+ Service: () => Service35,
21
+ layer: () => layer14,
22
+ node: () => node38
23
23
  });
24
24
  import { Command } from "@opencode/schema/command";
25
25
  import { makeLocationNode } from "@opencode/util/effect/app-node";
26
26
  import { Context, Effect, Layer, Schema } from "effect";
27
- import { Event as Event9 } from "@opencode/schema/command";
28
- var Info8 = Command.Info;
27
+ import { Event as Event5 } from "@opencode/schema/command";
28
+ var Info6 = Command.Info;
29
29
 
30
- class NotFoundError7 extends Schema.TaggedError()("Command.NotFoundError", {
30
+ class NotFoundError4 extends Schema.TaggedError()("Command.NotFoundError", {
31
31
  command: Schema.String,
32
32
  message: Schema.String
33
33
  }) {
@@ -39,10 +39,10 @@ class ExecutionError2 extends Schema.TaggedError()("Command.ExecutionError", {
39
39
  }) {
40
40
  }
41
41
 
42
- class Service45 extends Context.Service()("@opencode/Command") {
42
+ class Service35 extends Context.Service()("@opencode/Command") {
43
43
  }
44
- var layer17 = Layer.effect(Service45, Effect.gen(function* () {
45
- const bus = yield* Service78;
44
+ var layer14 = Layer.effect(Service35, Effect.gen(function* () {
45
+ const bus = yield* Service83;
46
46
  const state = create3({
47
47
  name: "command",
48
48
  initial: () => new Map,
@@ -51,11 +51,11 @@ var layer17 = Layer.effect(Service45, Effect.gen(function* () {
51
51
  }),
52
52
  notify: () => bus.publish(Command.Event.Updated, {}).pipe(Effect.asVoid)
53
53
  });
54
- const info = (definition) => Info8.make({
54
+ const info = (definition) => Info6.make({
55
55
  name: definition.name,
56
56
  description: definition.description
57
57
  });
58
- return Service45.of({
58
+ return Service35.of({
59
59
  reload: state.reload,
60
60
  transform: state.transform,
61
61
  get: Effect.fn("Command.get")((name) => Effect.sync(() => {
@@ -66,15 +66,15 @@ var layer17 = Layer.effect(Service45, Effect.gen(function* () {
66
66
  execute: Effect.fn("Command.execute")(function* (input) {
67
67
  const definition = state.get().get(input.name);
68
68
  if (!definition)
69
- return yield* new NotFoundError7({ command: input.name, message: `Command not found: ${input.name}` });
69
+ return yield* new NotFoundError4({ command: input.name, message: `Command not found: ${input.name}` });
70
70
  return yield* definition.execute(input.invocation).pipe(Effect.tapError((error) => Effect.logError("command execution failed", { command: input.name, error })), Effect.mapError((error) => new ExecutionError2({ command: input.name, message: errorMessage(error) })));
71
71
  })
72
72
  });
73
73
  }));
74
- var node48 = makeLocationNode({
75
- service: Service45,
76
- layer: layer17,
77
- deps: [node82]
74
+ var node38 = makeLocationNode({
75
+ service: Service35,
76
+ layer: layer14,
77
+ deps: [node87]
78
78
  });
79
79
  function errorMessage(error) {
80
80
  if (error instanceof Error)
@@ -86,4 +86,4 @@ function errorMessage(error) {
86
86
  return "Command execution failed";
87
87
  }
88
88
 
89
- export { Info8, NotFoundError7, ExecutionError2, Service45, layer17, node48, exports_command4, Event9 };
89
+ export { Info6, NotFoundError4, ExecutionError2, Service35, layer14, node38, exports_command4, Event5 };