@opencode/core 0.0.0-dev-19555 → 0.0.0-dev-19557

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 (456) hide show
  1. package/dist/agent.js +59 -59
  2. package/dist/aisdk.js +5 -5
  3. package/dist/app.js +5 -5
  4. package/dist/bus.js +52 -52
  5. package/dist/catalog.js +60 -60
  6. package/dist/chunks/{job-0txtnz1b.js → job-04nkpb80.js} +27 -27
  7. package/dist/chunks/{job-y967r97z.js → job-05q1c7jv.js} +17 -17
  8. package/dist/chunks/{job-hrndf12w.js → job-06dxphr1.js} +3 -3
  9. package/dist/chunks/{job-eaj1djv9.js → job-0gdmqesm.js} +7 -7
  10. package/dist/chunks/{job-qkbswgt8.js → job-1aafjjmy.js} +12 -12
  11. package/dist/chunks/{job-mvfsc1pv.js → job-1bbkgx8g.js} +2 -2
  12. package/dist/chunks/{job-ayqgk1rz.js → job-1cbk4m95.js} +6 -6
  13. package/dist/chunks/{job-tqnjdgqx.js → job-1f18karc.js} +7 -7
  14. package/dist/chunks/{job-7r67ffzj.js → job-1h8wy6rp.js} +4 -4
  15. package/dist/chunks/{job-1qmxeza1.js → job-1v4bbw1w.js} +13 -13
  16. package/dist/chunks/{job-m68gwfjx.js → job-1vfb6rfn.js} +9 -9
  17. package/dist/chunks/{job-v8mrwv36.js → job-1vgmz48p.js} +18 -18
  18. package/dist/chunks/{job-1hd2ve9k.js → job-1x4rb0xf.js} +20 -20
  19. package/dist/chunks/{job-88bx71ta.js → job-23n0jqa5.js} +4 -4
  20. package/dist/chunks/{job-ze2stjj9.js → job-24d5a50f.js} +19 -19
  21. package/dist/chunks/{job-kmkwybff.js → job-2d57kztd.js} +3 -3
  22. package/dist/chunks/{job-y598pph1.js → job-2ghf1d8t.js} +7 -7
  23. package/dist/chunks/{job-hc4qzd77.js → job-2gv9w80n.js} +19 -19
  24. package/dist/chunks/{job-2qj77kr5.js → job-2hmt10pc.js} +7 -7
  25. package/dist/chunks/{job-s285pp5e.js → job-2hv6rtfk.js} +20 -20
  26. package/dist/chunks/job-2jb5v7tm.js +26 -0
  27. package/dist/chunks/{job-7pynw3er.js → job-2vcs4n8f.js} +2 -2
  28. package/dist/chunks/{job-k7ayhz31.js → job-3beqzx6k.js} +32 -32
  29. package/dist/chunks/job-3c10da2j.js +247 -0
  30. package/dist/chunks/{job-2v6b9h32.js → job-3gv83b7t.js} +10 -10
  31. package/dist/chunks/{job-t41048xy.js → job-3h8766hn.js} +25 -25
  32. package/dist/chunks/{job-zwgvw149.js → job-3hww0q87.js} +13 -13
  33. package/dist/chunks/{job-s76nk363.js → job-3mp8pt0x.js} +8 -8
  34. package/dist/chunks/{job-enb7w1dx.js → job-3r7hejq5.js} +7 -7
  35. package/dist/chunks/{job-d87ppnb3.js → job-3w0fmcng.js} +3 -3
  36. package/dist/chunks/{job-hdghkyj7.js → job-41hc3ma8.js} +32 -32
  37. package/dist/chunks/{job-ww3fkjst.js → job-4cje3eb8.js} +13 -13
  38. package/dist/chunks/{job-pt41xxpe.js → job-4gx2v1gk.js} +1 -1
  39. package/dist/chunks/{job-n6hxp5zt.js → job-4hx14hj9.js} +36 -36
  40. package/dist/chunks/{job-7f85ph34.js → job-4xhhjths.js} +6 -6
  41. package/dist/chunks/{job-fjrby77b.js → job-4yamf6fe.js} +18 -18
  42. package/dist/chunks/{job-z17wmtte.js → job-53zdrc7w.js} +13 -13
  43. package/dist/chunks/{job-z4n2bvx3.js → job-58pw51yy.js} +1 -1
  44. package/dist/chunks/{job-tpn93ec3.js → job-5c91nd8t.js} +7 -7
  45. package/dist/chunks/{job-p113jynx.js → job-5cehzqsf.js} +3 -3
  46. package/dist/chunks/{job-204defbx.js → job-5e1wh1k3.js} +33 -33
  47. package/dist/chunks/{job-dc943t0f.js → job-5jqv2hdv.js} +24 -24
  48. package/dist/chunks/{job-ayq5fd8r.js → job-5k817vsx.js} +14 -14
  49. package/dist/chunks/{job-ez5w4qh9.js → job-5qvvkpap.js} +91 -91
  50. package/dist/chunks/{job-3rptcns3.js → job-5t42e72n.js} +37 -37
  51. package/dist/chunks/{job-s5h1yxee.js → job-648q9dvv.js} +6 -6
  52. package/dist/chunks/{job-6tmt97vh.js → job-64ddj6v7.js} +1 -1
  53. package/dist/chunks/{job-x3ht5j8c.js → job-65ymqtf8.js} +11 -11
  54. package/dist/chunks/{job-8qsxzbfj.js → job-66pxayt3.js} +10 -10
  55. package/dist/chunks/{job-mw359feh.js → job-67byjnjd.js} +21 -21
  56. package/dist/chunks/{job-mmz0tt7d.js → job-6933ywkd.js} +1 -1
  57. package/dist/chunks/{job-p0856xd2.js → job-6fyb1tt4.js} +1 -1
  58. package/dist/chunks/{job-rath0bzd.js → job-6jrat8e1.js} +9 -9
  59. package/dist/chunks/job-6kdq0pjd.js +4 -0
  60. package/dist/chunks/{job-h0ts1a45.js → job-6mjv2hgg.js} +22 -22
  61. package/dist/chunks/{job-108cvae8.js → job-770wfc60.js} +21 -21
  62. package/dist/chunks/{job-ycy59s3d.js → job-7d719r6t.js} +19 -19
  63. package/dist/chunks/{job-qgn6gcr1.js → job-7dqw4kz8.js} +4 -4
  64. package/dist/chunks/{job-4679gabf.js → job-7gscs43p.js} +7 -7
  65. package/dist/chunks/{job-zj09a0ew.js → job-7j92jdde.js} +3 -3
  66. package/dist/chunks/{job-x4vn4x13.js → job-7n7cc3vm.js} +9 -9
  67. package/dist/chunks/{job-zqwgfckq.js → job-7vesx3h4.js} +29 -29
  68. package/dist/chunks/{job-rerm1236.js → job-7z0gr6x1.js} +7 -7
  69. package/dist/chunks/{job-nkxe001t.js → job-80e13nyn.js} +25 -25
  70. package/dist/chunks/{job-9yvtwad1.js → job-84aps5my.js} +11 -11
  71. package/dist/chunks/{job-rt08j7ja.js → job-8657wa92.js} +35 -35
  72. package/dist/chunks/{job-x1watz0w.js → job-88emgjyy.js} +1 -1
  73. package/dist/chunks/{job-avwmhd8q.js → job-8b2bdwgb.js} +89 -89
  74. package/dist/chunks/{job-qt3pz6e0.js → job-8d3t8xg7.js} +13 -13
  75. package/dist/chunks/{job-gcwy4efh.js → job-8g4pmx6v.js} +21 -21
  76. package/dist/chunks/{job-tba20byx.js → job-8pnsnrrh.js} +27 -27
  77. package/dist/chunks/{job-zt03gkt5.js → job-8tpwn33w.js} +3 -3
  78. package/dist/chunks/{job-g309gs0r.js → job-8yjy7zng.js} +9 -9
  79. package/dist/chunks/{job-edccm7rj.js → job-98c9aj8x.js} +9 -9
  80. package/dist/chunks/{job-q8m37a4m.js → job-98dg3375.js} +7 -7
  81. package/dist/chunks/{job-5schvsm4.js → job-9frsytr6.js} +27 -27
  82. package/dist/chunks/{job-s14h8ch1.js → job-9gddqbe1.js} +11 -11
  83. package/dist/chunks/{job-s56gw65d.js → job-9jrdgtty.js} +6 -6
  84. package/dist/chunks/{job-qg8kvqbc.js → job-a17g06ed.js} +56 -56
  85. package/dist/chunks/{job-5c4hm403.js → job-a1bz86dw.js} +1 -1
  86. package/dist/chunks/{job-pffwq7f2.js → job-a39cgwdb.js} +33 -33
  87. package/dist/chunks/{job-zpd6x7fe.js → job-a3r4dcrj.js} +1 -1
  88. package/dist/chunks/{job-w82mzkgp.js → job-abebd5qx.js} +9 -9
  89. package/dist/chunks/{job-gc4dqs6v.js → job-aec3nrfr.js} +2 -2
  90. package/dist/chunks/{job-eyfhw2pw.js → job-amgske17.js} +9 -9
  91. package/dist/chunks/{job-tnmy4c6w.js → job-ap99qs88.js} +2 -2
  92. package/dist/chunks/{job-nt5k960m.js → job-b21rrpfv.js} +9 -9
  93. package/dist/chunks/{job-rz42ta6t.js → job-b3wvxjn9.js} +3 -3
  94. package/dist/chunks/{job-5kkb4rg3.js → job-b89ddxb9.js} +8 -8
  95. package/dist/chunks/{job-bf0ztrs3.js → job-bct739vz.js} +3 -3
  96. package/dist/chunks/{job-awt0af35.js → job-bd4wb5dj.js} +16 -16
  97. package/dist/chunks/{job-cb4qrnem.js → job-c1165j3g.js} +9 -9
  98. package/dist/chunks/{job-p0pwt4pp.js → job-c7ppp6eb.js} +3 -3
  99. package/dist/chunks/{job-gvxaq0cy.js → job-c9y5ammp.js} +12 -12
  100. package/dist/chunks/{job-zepncfka.js → job-cavr175a.js} +20 -20
  101. package/dist/chunks/{job-m0jqrx5p.js → job-cfpkc3c9.js} +1 -1
  102. package/dist/chunks/{job-107zebhb.js → job-ctbj8s8t.js} +1 -1
  103. package/dist/chunks/{job-s5dtz0xy.js → job-danc237s.js} +22 -22
  104. package/dist/chunks/{job-yg90b9ch.js → job-deft6591.js} +16 -16
  105. package/dist/chunks/{job-mjncxbbh.js → job-dg5bcj4q.js} +3 -3
  106. package/dist/chunks/{job-sc1tjfme.js → job-dkk4x6n7.js} +26 -26
  107. package/dist/chunks/{job-f87sstgy.js → job-dvv5h0qn.js} +58 -58
  108. package/dist/chunks/{job-f8j8fe6d.js → job-dxttfc41.js} +15 -15
  109. package/dist/chunks/{job-2kr6azcb.js → job-e2s7qp6r.js} +8 -8
  110. package/dist/chunks/{job-bs4ej5rm.js → job-e2wc9a92.js} +8 -8
  111. package/dist/chunks/{job-bndc73cn.js → job-e5nv3ght.js} +3 -3
  112. package/dist/chunks/{job-c99ms63n.js → job-eatkrtr4.js} +2 -2
  113. package/dist/chunks/{job-jybmh2dy.js → job-eh9f57h6.js} +19 -19
  114. package/dist/chunks/{job-mnbh32fx.js → job-emzsebxx.js} +5 -5
  115. package/dist/chunks/{job-b0qbgy8p.js → job-et83npb1.js} +4 -4
  116. package/dist/chunks/{job-xwmngbzd.js → job-ewzk1mjh.js} +6 -6
  117. package/dist/chunks/{job-ms97y41h.js → job-ey45p7wh.js} +9 -9
  118. package/dist/chunks/{job-nk1twcpn.js → job-f1av08zj.js} +39 -39
  119. package/dist/chunks/{job-hdnk95c8.js → job-f828m53h.js} +1 -1
  120. package/dist/chunks/{job-ccfa4wxs.js → job-ff0htmxq.js} +5 -5
  121. package/dist/chunks/{job-gxpqbsz6.js → job-fnjmrqm4.js} +29 -29
  122. package/dist/chunks/{job-98gy3eww.js → job-fyd8j9ny.js} +44 -44
  123. package/dist/chunks/{job-ft3sdwqk.js → job-g7znvwgp.js} +59 -59
  124. package/dist/chunks/{job-fg7rbsd2.js → job-g8jasmdt.js} +9 -9
  125. package/dist/chunks/{job-5qe90vg1.js → job-gfr26vqf.js} +4 -4
  126. package/dist/chunks/{job-b1c4vsaq.js → job-gv9pfq09.js} +13 -13
  127. package/dist/chunks/{job-tnz8hk1d.js → job-gvp81x5g.js} +5 -5
  128. package/dist/chunks/{job-6cvqcnqg.js → job-h6tgnsmw.js} +10 -10
  129. package/dist/chunks/{job-xdkqrd4t.js → job-h7mr6e23.js} +39 -39
  130. package/dist/chunks/{job-dv250zvr.js → job-jexxy024.js} +3 -3
  131. package/dist/chunks/{job-sapr1j9h.js → job-jfa9ssce.js} +13 -13
  132. package/dist/chunks/{job-ws27ccxm.js → job-jgks5tvc.js} +9 -9
  133. package/dist/chunks/{job-xkt6wjyn.js → job-jyt8k1ng.js} +17 -17
  134. package/dist/chunks/{job-kr9a5zmg.js → job-k5axrfmk.js} +21 -21
  135. package/dist/chunks/{job-wqc8jatc.js → job-k9m849z2.js} +23 -23
  136. package/dist/chunks/{job-y8557sgs.js → job-kfyyfpez.js} +30 -30
  137. package/dist/chunks/{job-fhq0ekbb.js → job-kz0zrsdg.js} +27 -27
  138. package/dist/chunks/{job-2qv5tkk5.js → job-kzdavpkk.js} +17 -17
  139. package/dist/chunks/{job-c8z0qg74.js → job-m1g6hraw.js} +18 -18
  140. package/dist/chunks/{job-bknvwxkd.js → job-m22jsh4r.js} +24 -24
  141. package/dist/chunks/{job-gpxp53a2.js → job-n1nx5qrt.js} +16 -16
  142. package/dist/chunks/{job-h9te1vqn.js → job-n6x0hvgd.js} +26 -26
  143. package/dist/chunks/{job-36eerbqd.js → job-n7mjdw8a.js} +286 -286
  144. package/dist/chunks/{job-dxj72tfx.js → job-n95b3jav.js} +4 -4
  145. package/dist/chunks/{job-cwwr1jvz.js → job-ne989dng.js} +7 -7
  146. package/dist/chunks/{job-1dyg3zh4.js → job-nepyd80j.js} +14 -14
  147. package/dist/chunks/{job-7gx041tx.js → job-ngts6ef0.js} +7 -7
  148. package/dist/chunks/{job-dr275rwc.js → job-ngx9j5n7.js} +23 -23
  149. package/dist/chunks/{job-hjt4xg1x.js → job-nhy5jxhy.js} +3 -3
  150. package/dist/chunks/{job-8vqqww87.js → job-nq0ndpqh.js} +32 -32
  151. package/dist/chunks/{job-tx9qvpbt.js → job-nv5vn7qx.js} +5 -5
  152. package/dist/chunks/{job-s0rmj92q.js → job-nvez6yjy.js} +49 -49
  153. package/dist/chunks/{job-t6kh2ke1.js → job-p2k8yj8g.js} +17 -17
  154. package/dist/chunks/{job-sra9araw.js → job-p44d8wdy.js} +3 -3
  155. package/dist/chunks/{job-j935v87r.js → job-paphc93g.js} +2 -2
  156. package/dist/chunks/{job-jw9k1g94.js → job-pccq6abf.js} +11 -11
  157. package/dist/chunks/{job-4q0rk4pc.js → job-pf4ag2jn.js} +18 -18
  158. package/dist/chunks/{job-jx8vh84p.js → job-ph6t2mdm.js} +16 -16
  159. package/dist/chunks/{job-jjs74g98.js → job-pnv527nz.js} +7 -7
  160. package/dist/chunks/{job-6vzevhqv.js → job-ppt7x97n.js} +15 -15
  161. package/dist/chunks/{job-8jxpyx5d.js → job-pq3g4fff.js} +10 -10
  162. package/dist/chunks/{job-rc2324vf.js → job-pqd1mzxt.js} +7 -7
  163. package/dist/chunks/{job-n3pdwg8n.js → job-q0kqdcn6.js} +26 -26
  164. package/dist/chunks/{job-ksc3740k.js → job-q2d66v75.js} +20 -20
  165. package/dist/chunks/{job-0d4tph5f.js → job-qes2k3jx.js} +28 -28
  166. package/dist/chunks/{job-d7bh9k9a.js → job-qgp8zp4q.js} +26 -26
  167. package/dist/chunks/{job-jxj1131m.js → job-qmajteq1.js} +30 -30
  168. package/dist/chunks/{job-emw29q3b.js → job-qqb9cay3.js} +6 -6
  169. package/dist/chunks/{job-3fex3hkv.js → job-qsyea6f9.js} +13 -13
  170. package/dist/chunks/{job-m15eze35.js → job-qtma8z35.js} +13 -13
  171. package/dist/chunks/{job-s16zmce3.js → job-qw4e7zjd.js} +9 -9
  172. package/dist/chunks/{job-v40khde1.js → job-r9asyhme.js} +6 -6
  173. package/dist/chunks/{job-a5gt7g2r.js → job-r9njkn2h.js} +7 -7
  174. package/dist/chunks/{job-vns4mfzt.js → job-r9we50jt.js} +29 -29
  175. package/dist/chunks/{job-d739dymv.js → job-rmmkwdem.js} +160 -160
  176. package/dist/chunks/{job-5swzx872.js → job-rnvsv9qp.js} +12 -12
  177. package/dist/chunks/{job-a2ys5r57.js → job-rr4zqxht.js} +3 -3
  178. package/dist/chunks/{job-m8k10yn9.js → job-rtr77gbg.js} +48 -48
  179. package/dist/chunks/{job-vv6k2bgw.js → job-rxz6bkw1.js} +16 -16
  180. package/dist/chunks/{job-bb9021j4.js → job-rzb9r8hj.js} +40 -40
  181. package/dist/chunks/{job-ah6t2c5c.js → job-s6yfxd82.js} +1 -1
  182. package/dist/chunks/{job-jzpfkve7.js → job-s8fzv502.js} +3 -3
  183. package/dist/chunks/{job-4mkmbf5n.js → job-sapgmee8.js} +17 -17
  184. package/dist/chunks/{job-fey34q6a.js → job-stzaxg6d.js} +22 -22
  185. package/dist/chunks/{job-62n8c76s.js → job-swm5zkc7.js} +4 -4
  186. package/dist/chunks/{job-5pb980ms.js → job-t08rskcp.js} +15 -15
  187. package/dist/chunks/{job-epwheqpr.js → job-t1aepcmv.js} +10 -10
  188. package/dist/chunks/{job-19vf66h0.js → job-t2fc4mz5.js} +3 -3
  189. package/dist/chunks/{job-5xtgfte3.js → job-tpw6cwsb.js} +7 -7
  190. package/dist/chunks/{job-80t0g78y.js → job-ttmf09qd.js} +11 -11
  191. package/dist/chunks/{job-2tym2mwq.js → job-v33xfvcj.js} +7 -7
  192. package/dist/chunks/{job-vvbjhqct.js → job-v3kx3386.js} +6 -6
  193. package/dist/chunks/{job-pqw62kwh.js → job-v84z85pp.js} +14 -14
  194. package/dist/chunks/{job-ae01ggp0.js → job-vkxpz7g2.js} +2 -2
  195. package/dist/chunks/{job-39yq9nhp.js → job-w49xm5fj.js} +7 -7
  196. package/dist/chunks/{job-5yqtht8v.js → job-w6qfaagh.js} +18 -18
  197. package/dist/chunks/{job-prwf69zp.js → job-wa3vagtd.js} +13 -13
  198. package/dist/chunks/{job-dksw2ccb.js → job-wtpfsk05.js} +28 -28
  199. package/dist/chunks/{job-758gvv9k.js → job-x1ayndpw.js} +19 -19
  200. package/dist/chunks/{job-3cwb9jzf.js → job-x8gz1y8e.js} +7 -7
  201. package/dist/chunks/{job-0rdqt693.js → job-xnhhv6qr.js} +21 -21
  202. package/dist/chunks/{job-py3p69fp.js → job-xnqrd04x.js} +12 -12
  203. package/dist/chunks/{job-b9ggw2e0.js → job-xpkcfpne.js} +15 -15
  204. package/dist/chunks/{job-fsbq1nfg.js → job-y16464wz.js} +27 -27
  205. package/dist/chunks/{job-3sdn4tp0.js → job-y3tkmzj7.js} +22 -22
  206. package/dist/chunks/{job-px1kjndr.js → job-y7g06hay.js} +15 -15
  207. package/dist/chunks/{job-t3pn2srw.js → job-ybhbtxjg.js} +7 -7
  208. package/dist/chunks/{job-2azrjmwj.js → job-ycejwvtx.js} +9 -9
  209. package/dist/chunks/{job-qte5z7bc.js → job-yjptyezs.js} +3 -3
  210. package/dist/chunks/{job-1acjjqhc.js → job-yp2x3t23.js} +3 -3
  211. package/dist/chunks/{job-s4enseaf.js → job-yrznvahk.js} +1 -1
  212. package/dist/chunks/{job-03aegmhm.js → job-z0v4hsh2.js} +6 -6
  213. package/dist/chunks/{job-f8qtms30.js → job-z2yhn1jz.js} +6 -6
  214. package/dist/chunks/{job-29x78va6.js → job-z63w68vq.js} +4 -4
  215. package/dist/chunks/{job-jnrafvk7.js → job-zcrm4481.js} +7 -7
  216. package/dist/chunks/{job-kps5zkd7.js → job-zq3a93d4.js} +26 -26
  217. package/dist/chunks/{job-xab4x8gd.js → job-zrk62573.js} +19 -19
  218. package/dist/chunks/{job-ttqh24zm.js → job-zvt5dnpc.js} +3 -3
  219. package/dist/codemode/instructions.js +8 -8
  220. package/dist/command.js +61 -61
  221. package/dist/config/discovery.js +56 -56
  222. package/dist/config/normalize.js +15 -15
  223. package/dist/config/plugin/agent.js +85 -85
  224. package/dist/config/plugin/command.js +171 -171
  225. package/dist/config/plugin/compaction.js +119 -119
  226. package/dist/config/plugin/formatter.js +87 -87
  227. package/dist/config/plugin/image.js +85 -85
  228. package/dist/config/plugin/instruction.js +63 -63
  229. package/dist/config/plugin/location-watcher.js +85 -85
  230. package/dist/config/plugin/mcp.js +95 -95
  231. package/dist/config/plugin/policy.js +85 -85
  232. package/dist/config/plugin/provider.js +84 -84
  233. package/dist/config/plugin/reference.js +87 -87
  234. package/dist/config/plugin/shell.js +86 -86
  235. package/dist/config/plugin/skill-file.js +72 -72
  236. package/dist/config/plugin/skill.js +104 -104
  237. package/dist/config/plugin/snapshot.js +85 -85
  238. package/dist/config/plugin/source.js +82 -82
  239. package/dist/config/plugin/tool-output.js +87 -87
  240. package/dist/config/plugin/websearch.js +84 -84
  241. package/dist/config/plugin/worktree.js +86 -86
  242. package/dist/config/variable.js +2 -2
  243. package/dist/config.js +87 -87
  244. package/dist/credential.js +62 -62
  245. package/dist/database/database.js +51 -51
  246. package/dist/database/drizzle/effect-sqlite/driver.js +8 -8
  247. package/dist/database/drizzle/effect-sqlite/index.js +4 -4
  248. package/dist/database/drizzle/effect-sqlite/session.js +7 -7
  249. package/dist/database/drizzle/index.js +9 -9
  250. package/dist/database/drizzle/sqlite-core/effect/db.js +5 -5
  251. package/dist/database/drizzle/sqlite-core/effect/index.js +2 -2
  252. package/dist/database/drizzle/sqlite-core/effect/session.js +6 -6
  253. package/dist/database/drizzle.js +9 -9
  254. package/dist/database/migration.gen.js +36 -36
  255. package/dist/database/migration.js +37 -37
  256. package/dist/database/v1-migration.bun.js +14 -14
  257. package/dist/effect/app-node-builder.js +225 -225
  258. package/dist/environment/environment.js +63 -63
  259. package/dist/environment/index.js +65 -65
  260. package/dist/event-logger.js +13 -13
  261. package/dist/file-access.js +75 -75
  262. package/dist/file-mutation.js +64 -64
  263. package/dist/filesystem/location-watcher-policy.js +5 -5
  264. package/dist/filesystem/location-watcher.js +182 -182
  265. package/dist/filesystem/search.js +66 -66
  266. package/dist/filesystem/watcher-binding.js +3 -3
  267. package/dist/filesystem/watcher.js +8 -8
  268. package/dist/filesystem.js +69 -69
  269. package/dist/form.js +65 -65
  270. package/dist/formatter/builtins.js +3 -3
  271. package/dist/formatter.js +61 -61
  272. package/dist/generate.js +66 -66
  273. package/dist/git.js +5 -5
  274. package/dist/github-copilot/chat/openai-compatible-chat-language-model.js +4 -4
  275. package/dist/github-copilot/copilot-provider.js +3 -3
  276. package/dist/github-copilot/models.js +5 -5
  277. package/dist/github-copilot/responses/openai-responses-language-model.js +7 -7
  278. package/dist/github-copilot/responses/openai-responses-prepare-tools.js +3 -3
  279. package/dist/image/photon.js +1 -1
  280. package/dist/image.js +5 -5
  281. package/dist/instance/service.js +5 -5
  282. package/dist/instance.js +297 -297
  283. package/dist/instruction-discovery.js +63 -63
  284. package/dist/instructions/builtins.js +61 -61
  285. package/dist/instructions/index.js +5 -5
  286. package/dist/integration.js +65 -65
  287. package/dist/job.js +54 -54
  288. package/dist/kv.js +52 -52
  289. package/dist/location-activity.js +58 -58
  290. package/dist/location-mutation.js +34 -34
  291. package/dist/location-service-map.js +60 -60
  292. package/dist/location-services.js +294 -294
  293. package/dist/location.js +63 -63
  294. package/dist/mcp/client.js +19 -19
  295. package/dist/mcp/index.js +78 -78
  296. package/dist/mcp/instructions.js +92 -92
  297. package/dist/mcp/stdio.js +60 -60
  298. package/dist/modal/models.js +5 -5
  299. package/dist/model-resolver.js +63 -63
  300. package/dist/models-dev.js +64 -64
  301. package/dist/permission/saved.js +59 -59
  302. package/dist/permission/sql.js +3 -3
  303. package/dist/permission.js +84 -84
  304. package/dist/persistent-pty/index.js +62 -62
  305. package/dist/persistent-pty.js +50 -50
  306. package/dist/plugin/agent.js +73 -73
  307. package/dist/plugin/command.js +69 -69
  308. package/dist/plugin/hooks.js +5 -5
  309. package/dist/plugin/host.js +177 -177
  310. package/dist/plugin/instance.js +5 -5
  311. package/dist/plugin/internal.js +269 -269
  312. package/dist/plugin/mcp-codemode-exclusion.js +3 -3
  313. package/dist/plugin/models-dev.js +53 -53
  314. package/dist/plugin/module.js +3 -3
  315. package/dist/plugin/optimize.js +4 -4
  316. package/dist/plugin/plan.js +73 -73
  317. package/dist/plugin/provider/azure.js +88 -88
  318. package/dist/plugin/provider/cloudflare-ai-gateway.js +87 -87
  319. package/dist/plugin/provider/cloudflare-workers-ai.js +87 -87
  320. package/dist/plugin/provider/configured.js +85 -85
  321. package/dist/plugin/provider/digitalocean.js +55 -55
  322. package/dist/plugin/provider/github-copilot.js +57 -57
  323. package/dist/plugin/provider/gitlab.js +2 -2
  324. package/dist/plugin/provider/llmgateway.js +54 -54
  325. package/dist/plugin/provider/lmstudio.js +88 -88
  326. package/dist/plugin/provider/modal.js +56 -56
  327. package/dist/plugin/provider/ollama.js +86 -86
  328. package/dist/plugin/provider/openai.js +57 -57
  329. package/dist/plugin/provider/opencode.js +57 -57
  330. package/dist/plugin/provider/poe.js +54 -54
  331. package/dist/plugin/provider/snowflake-cortex.js +87 -87
  332. package/dist/plugin/provider/vllm.js +88 -88
  333. package/dist/plugin/provider/xai.js +55 -55
  334. package/dist/plugin/provider.js +118 -118
  335. package/dist/plugin/sdk.js +53 -53
  336. package/dist/plugin/service.js +3 -3
  337. package/dist/plugin/skill.js +102 -102
  338. package/dist/plugin/supervisor.js +284 -284
  339. package/dist/plugin/vcs/git.js +60 -60
  340. package/dist/plugin/vcs/hg.js +60 -60
  341. package/dist/plugin/warming.js +84 -84
  342. package/dist/plugin/websearch/exa.js +5 -5
  343. package/dist/plugin/websearch/firecrawl.js +4 -4
  344. package/dist/plugin/websearch/index.js +7 -7
  345. package/dist/plugin/websearch/parallel.js +6 -6
  346. package/dist/plugin/websearch/tavily.js +6 -6
  347. package/dist/plugin/websearch/tinyfish.js +6 -6
  348. package/dist/plugin.js +188 -188
  349. package/dist/project/schema.js +7 -7
  350. package/dist/project/sql.js +2 -2
  351. package/dist/project.js +64 -64
  352. package/dist/pty/schema.js +3 -3
  353. package/dist/pty.js +72 -72
  354. package/dist/reference/instructions.js +62 -62
  355. package/dist/reference.js +64 -64
  356. package/dist/repository-cache.js +55 -55
  357. package/dist/ripgrep.js +65 -65
  358. package/dist/rpc.js +60 -60
  359. package/dist/session/command.js +52 -52
  360. package/dist/session/compaction.js +97 -97
  361. package/dist/session/context.js +115 -115
  362. package/dist/session/diff.js +61 -61
  363. package/dist/session/environment.js +5 -5
  364. package/dist/session/error.js +6 -6
  365. package/dist/session/execution/restart.js +122 -122
  366. package/dist/session/execution.js +96 -96
  367. package/dist/session/generate.js +116 -116
  368. package/dist/session/history.js +11 -11
  369. package/dist/session/inbox.js +65 -65
  370. package/dist/session/info.js +2 -2
  371. package/dist/session/instruction-entry.js +56 -56
  372. package/dist/session/instruction-state.js +5 -5
  373. package/dist/session/instructions.js +69 -69
  374. package/dist/session/message-updater.js +3 -3
  375. package/dist/session/model-request.js +85 -85
  376. package/dist/session/model-transport.js +7 -7
  377. package/dist/session/move.js +97 -97
  378. package/dist/session/projector.js +60 -60
  379. package/dist/session/prompt.js +76 -76
  380. package/dist/session/provider-context.js +3 -3
  381. package/dist/session/revert.js +63 -63
  382. package/dist/session/run-coordinator.js +3 -3
  383. package/dist/session/runner/index.js +3 -3
  384. package/dist/session/runner/llm.js +183 -183
  385. package/dist/session/runner/model.js +63 -63
  386. package/dist/session/runner/retry.js +82 -82
  387. package/dist/session/runner/step.js +87 -87
  388. package/dist/session/runner/to-llm-message.js +2 -2
  389. package/dist/session/schema.js +5 -5
  390. package/dist/session/session.js +137 -137
  391. package/dist/session/shell.js +100 -100
  392. package/dist/session/skill.js +74 -74
  393. package/dist/session/sql.js +3 -3
  394. package/dist/session/stats.js +12 -12
  395. package/dist/session/store.js +62 -62
  396. package/dist/session/subagent-job.js +168 -168
  397. package/dist/session/system-prompt.js +3 -3
  398. package/dist/session/title.js +118 -118
  399. package/dist/session/to-session-error.js +81 -81
  400. package/dist/session/transfer.js +123 -123
  401. package/dist/session.js +179 -179
  402. package/dist/shell/parse.js +3 -3
  403. package/dist/shell/select.js +11 -11
  404. package/dist/shell.js +103 -103
  405. package/dist/skill/discovery.js +5 -5
  406. package/dist/skill/instructions.js +76 -76
  407. package/dist/skill.js +83 -83
  408. package/dist/snapshot.js +65 -65
  409. package/dist/tool/mcp.js +91 -91
  410. package/dist/tool/plugin/edit.js +86 -86
  411. package/dist/tool/plugin/glob.js +90 -90
  412. package/dist/tool/plugin/grep.js +92 -92
  413. package/dist/tool/plugin/opencode.js +3 -3
  414. package/dist/tool/plugin/patch.js +90 -90
  415. package/dist/tool/plugin/question.js +74 -74
  416. package/dist/tool/plugin/read.js +93 -93
  417. package/dist/tool/plugin/shell.js +176 -176
  418. package/dist/tool/plugin/skill.js +78 -78
  419. package/dist/tool/plugin/subagent.js +179 -179
  420. package/dist/tool/plugin/webfetch.js +76 -76
  421. package/dist/tool/plugin/websearch.js +80 -80
  422. package/dist/tool/plugin/write.js +90 -90
  423. package/dist/tool/read-filesystem.js +69 -69
  424. package/dist/tool-output.js +5 -5
  425. package/dist/tool.js +7 -7
  426. package/dist/v1/config/agent.js +6 -6
  427. package/dist/v1/config/attachment.js +3 -3
  428. package/dist/v1/config/command.js +3 -3
  429. package/dist/v1/config/config.js +13 -13
  430. package/dist/v1/config/error.js +3 -3
  431. package/dist/v1/config/formatter.js +3 -3
  432. package/dist/v1/config/lsp.js +3 -3
  433. package/dist/v1/config/mcp.js +3 -3
  434. package/dist/v1/config/permission.js +7 -7
  435. package/dist/v1/config/plugin.js +3 -3
  436. package/dist/v1/config/provider.js +3 -3
  437. package/dist/v1/config/skills.js +3 -3
  438. package/dist/vcs.js +63 -63
  439. package/dist/websearch.js +61 -61
  440. package/dist/wellknown/plugin.js +53 -53
  441. package/dist/wellknown.js +54 -54
  442. package/dist/workspace/driver.js +5 -5
  443. package/dist/workspace.js +59 -59
  444. package/dist/worktree/git.js +2 -2
  445. package/dist/worktree/refresh.js +287 -287
  446. package/dist/worktree/sql.js +3 -3
  447. package/dist/worktree.js +66 -66
  448. package/package.json +8 -8
  449. package/dist/chunks/job-0mesazry.js +0 -4
  450. package/dist/chunks/job-1ke5xcds.js +0 -26
  451. package/dist/chunks/job-npm6xkqa.js +0 -247
  452. /package/dist/chunks/{job-9yq90rfy.js → job-1tzh7qsg.js} +0 -0
  453. /package/dist/chunks/{job-dj2t23y0.js → job-8p4f9s12.js} +0 -0
  454. /package/dist/chunks/{job-5e15319b.js → job-kerhshr9.js} +0 -0
  455. /package/dist/chunks/{job-rsr0ytjc.js → job-phr9a6m0.js} +0 -0
  456. /package/dist/chunks/{job-q5zafh14.js → job-t6msp11s.js} +0 -0
@@ -1,7 +1,7 @@
1
1
  import {
2
- Service78,
3
- node83
4
- } from "./job-b1c4vsaq.js";
2
+ Service79,
3
+ node84
4
+ } from "./job-gv9pfq09.js";
5
5
  import {
6
6
  __export
7
7
  } from "./job-9rqn6x4v.js";
@@ -12,40 +12,40 @@ __export(exports_form, {
12
12
  AlreadyExistsError: () => AlreadyExistsError2,
13
13
  AlreadySettledError: () => AlreadySettledError2,
14
14
  Answer: () => Answer2,
15
- Event: () => Event12,
15
+ Event: () => Event19,
16
16
  Field: () => Field2,
17
17
  Fields: () => Fields2,
18
18
  Form: () => exports_form,
19
- ID: () => ID9,
20
- Info: () => Info13,
19
+ ID: () => ID15,
20
+ Info: () => Info30,
21
21
  InvalidAnswerError: () => InvalidAnswerError2,
22
22
  InvalidFormError: () => InvalidFormError2,
23
- NotFoundError: () => NotFoundError8,
24
- Reply: () => Reply2,
25
- Service: () => Service60,
23
+ NotFoundError: () => NotFoundError11,
24
+ Reply: () => Reply3,
25
+ Service: () => Service77,
26
26
  State: () => State3,
27
27
  When: () => When2,
28
- layer: () => layer20,
29
- node: () => node64,
28
+ layer: () => layer25,
29
+ node: () => node82,
30
30
  validateAnswer: () => validateAnswer2,
31
31
  validateFields: () => validateFields2
32
32
  });
33
33
  import { Form } from "@opencode/schema/form";
34
34
  import { Cache, Context, Deferred, Duration, Effect, Exit, Layer, Option, Schema } from "effect";
35
35
  import { makeLocationNode } from "@opencode/util/effect/app-node";
36
- import { Event as Event12 } from "@opencode/schema/form";
36
+ import { Event as Event19 } from "@opencode/schema/form";
37
37
  var RETENTION = Duration.minutes(10);
38
- var ID9 = Form.ID;
39
- var Info13 = Form.Info;
38
+ var ID15 = Form.ID;
39
+ var Info30 = Form.Info;
40
40
  var Field2 = Form.Field;
41
41
  var Fields2 = Form.Fields;
42
42
  var When2 = Form.When;
43
43
  var State3 = Form.State;
44
44
  var Answer2 = Form.Answer;
45
- var Reply2 = Form.Reply;
45
+ var Reply3 = Form.Reply;
46
46
 
47
- class NotFoundError8 extends Schema.TaggedError()("Form.NotFoundError", {
48
- id: ID9
47
+ class NotFoundError11 extends Schema.TaggedError()("Form.NotFoundError", {
48
+ id: ID15
49
49
  }) {
50
50
  get message() {
51
51
  return `Form not found: ${this.id}`;
@@ -53,7 +53,7 @@ class NotFoundError8 extends Schema.TaggedError()("Form.NotFoundError", {
53
53
  }
54
54
 
55
55
  class AlreadySettledError2 extends Schema.TaggedError()("Form.AlreadySettledError", {
56
- id: ID9
56
+ id: ID15
57
57
  }) {
58
58
  get message() {
59
59
  return `Form already settled: ${this.id}`;
@@ -61,7 +61,7 @@ class AlreadySettledError2 extends Schema.TaggedError()("Form.AlreadySettledErro
61
61
  }
62
62
 
63
63
  class AlreadyExistsError2 extends Schema.TaggedError()("Form.AlreadyExistsError", {
64
- id: ID9
64
+ id: ID15
65
65
  }) {
66
66
  get message() {
67
67
  return `Form already exists: ${this.id}`;
@@ -69,7 +69,7 @@ class AlreadyExistsError2 extends Schema.TaggedError()("Form.AlreadyExistsError"
69
69
  }
70
70
 
71
71
  class InvalidAnswerError2 extends Schema.TaggedError()("Form.InvalidAnswerError", {
72
- id: ID9,
72
+ id: ID15,
73
73
  message: Schema.String
74
74
  }) {
75
75
  }
@@ -79,17 +79,17 @@ class InvalidFormError2 extends Schema.TaggedError()("Form.InvalidFormError", {
79
79
  }) {
80
80
  }
81
81
 
82
- class Service60 extends Context.Service()("@opencode/Form") {
82
+ class Service77 extends Context.Service()("@opencode/Form") {
83
83
  }
84
- var layer20 = Layer.effect(Service60, Effect.gen(function* () {
85
- const bus = yield* Service78;
84
+ var layer25 = Layer.effect(Service77, Effect.gen(function* () {
85
+ const bus = yield* Service79;
86
86
  const forms = yield* Cache.makeWith(() => Effect.die(new Error("Form cache must be used via set/getSuccess, never get")), {
87
87
  capacity: Number.MAX_SAFE_INTEGER,
88
88
  timeToLive: (exit) => Exit.isSuccess(exit) && exit.value.state.status === "pending" ? Duration.infinity : RETENTION
89
89
  });
90
- const requireEntry = Effect.fn("Form.requireEntry")((id) => Cache.getSuccess(forms, id).pipe(Effect.flatMap((entry) => Effect.fromOption(entry, () => new NotFoundError8({ id })))));
90
+ const requireEntry = Effect.fn("Form.requireEntry")((id) => Cache.getSuccess(forms, id).pipe(Effect.flatMap((entry) => Effect.fromOption(entry, () => new NotFoundError11({ id })))));
91
91
  const create = Effect.fn("Form.create")((input) => Effect.uninterruptible(Effect.gen(function* () {
92
- const id = input.id ?? ID9.create();
92
+ const id = input.id ?? ID15.create();
93
93
  const existing = yield* Cache.getSuccess(forms, id);
94
94
  if (Option.isSome(existing))
95
95
  return yield* new AlreadyExistsError2({ id });
@@ -153,9 +153,9 @@ var layer20 = Layer.effect(Service60, Effect.gen(function* () {
153
153
  yield* Deferred.succeed(entry.deferred, next);
154
154
  })));
155
155
  yield* Effect.addFinalizer(() => Cache.values(forms).pipe(Effect.flatMap((entries) => Effect.forEach(Array.from(entries).filter((entry) => entry.state.status === "pending"), (entry) => cancel(entry.form.id).pipe(Effect.ignore), { discard: true }))));
156
- return Service60.of({ create, ask, get, list, state, reply, cancel });
156
+ return Service77.of({ create, ask, get, list, state, reply, cancel });
157
157
  }));
158
- var node64 = makeLocationNode({ service: Service60, layer: layer20, deps: [node83] });
158
+ var node82 = makeLocationNode({ service: Service77, layer: layer25, deps: [node84] });
159
159
  function validateAnswer2(form, answer) {
160
160
  const fields = new Map(form.map((field) => [field.key, field]));
161
161
  for (const key of Object.keys(answer)) {
@@ -307,4 +307,4 @@ function isDateTime(value) {
307
307
  return !Number.isNaN(new Date(value).getTime());
308
308
  }
309
309
 
310
- export { ID9, Info13, Field2, Fields2, When2, State3, Answer2, Reply2, NotFoundError8, AlreadySettledError2, AlreadyExistsError2, InvalidAnswerError2, InvalidFormError2, Service60, layer20, node64, validateAnswer2, validateFields2, exports_form, Event12 };
310
+ export { ID15, Info30, Field2, Fields2, When2, State3, Answer2, Reply3, NotFoundError11, AlreadySettledError2, AlreadyExistsError2, InvalidAnswerError2, InvalidFormError2, Service77, layer25, node82, validateAnswer2, validateFields2, exports_form, Event19 };
@@ -14,13 +14,13 @@ import {
14
14
  makeMemoryDriver2
15
15
  } from "./job-aaet6srn.js";
16
16
  import {
17
- Service72,
18
- node76
19
- } from "./job-yg90b9ch.js";
17
+ Service68,
18
+ node73
19
+ } from "./job-deft6591.js";
20
20
  import {
21
- Service50,
22
- node54
23
- } from "./job-n3pdwg8n.js";
21
+ Service64,
22
+ node67
23
+ } from "./job-q0kqdcn6.js";
24
24
  import {
25
25
  __export
26
26
  } from "./job-9rqn6x4v.js";
@@ -29,8 +29,8 @@ import {
29
29
  var exports_environment2 = {};
30
30
  __export(exports_environment2, {
31
31
  EnvironmentService: () => exports_environment2,
32
- Service: () => Service37,
33
- node: () => node41
32
+ Service: () => Service63,
33
+ node: () => node66
34
34
  });
35
35
  import { CrossSpawnSpawner } from "@opencode/util/cross-spawn-spawner";
36
36
  import { makeLocationNode } from "@opencode/util/effect/app-node";
@@ -43,13 +43,13 @@ __export(exports_environment3, {
43
43
  Environment: () => exports_environment3,
44
44
  Failed: () => Failed2,
45
45
  NotFound: () => NotFound2,
46
- Service: () => Service37,
46
+ Service: () => Service63,
47
47
  WrongKind: () => WrongKind2,
48
48
  execDefaults: () => execDefaults2,
49
49
  makeFiles: () => makeFiles2,
50
50
  makeLocalDriver: () => makeLocalDriver2,
51
51
  makeMemoryDriver: () => makeMemoryDriver2,
52
- node: () => node41,
52
+ node: () => node66,
53
53
  typeFollowing: () => typeFollowing2
54
54
  });
55
55
  var makeFiles2 = (driver) => ({
@@ -58,19 +58,19 @@ var makeFiles2 = (driver) => ({
58
58
  });
59
59
 
60
60
  // src/environment/environment.ts
61
- class Service37 extends Context.Service()("@opencode/Environment") {
61
+ class Service63 extends Context.Service()("@opencode/Environment") {
62
62
  }
63
- var layer = Layer.effect(Service37, Effect.gen(function* () {
63
+ var layer = Layer.effect(Service63, Effect.gen(function* () {
64
64
  const spawner = yield* ChildProcessSpawner;
65
- const location = yield* Service72;
66
- const workspace = yield* Service50;
65
+ const location = yield* Service68;
66
+ const workspace = yield* Service64;
67
67
  const driver = location.workspaceID ? yield* workspace.connect(location.workspaceID).pipe(Effect.mapError((cause) => new Error(`Failed to bind Environment to workspace ${location.workspaceID}`, { cause })), Effect.orDie) : makeLocalDriver2(spawner);
68
- return Service37.of({ files: makeFiles2(driver), spawner: driver.spawner });
68
+ return Service63.of({ files: makeFiles2(driver), spawner: driver.spawner });
69
69
  }));
70
- var node41 = makeLocationNode({
71
- service: Service37,
70
+ var node66 = makeLocationNode({
71
+ service: Service63,
72
72
  layer,
73
- deps: [CrossSpawnSpawner.node, node76, node54]
73
+ deps: [CrossSpawnSpawner.node, node73, node67]
74
74
  });
75
75
 
76
- export { Service37, node41, exports_environment2, makeFiles2, exports_environment3 };
76
+ export { Service63, node66, exports_environment2, makeFiles2, exports_environment3 };
@@ -5,18 +5,18 @@ import {
5
5
  // src/session/environment.ts
6
6
  var exports_environment = {};
7
7
  __export(exports_environment, {
8
- Service: () => Service35,
8
+ Service: () => Service51,
9
9
  SessionEnvironment: () => exports_environment,
10
- node: () => node39
10
+ node: () => node54
11
11
  });
12
12
  import { Context, Effect, Layer } from "effect";
13
13
  import { makeGlobalNode } from "@opencode/util/effect/app-node";
14
14
 
15
- class Service35 extends Context.Service()("@opencode/SessionEnvironment") {
15
+ class Service51 extends Context.Service()("@opencode/SessionEnvironment") {
16
16
  }
17
- var layer = Layer.sync(Service35, () => {
17
+ var layer = Layer.sync(Service51, () => {
18
18
  const environments = new Map;
19
- return Service35.of({
19
+ return Service51.of({
20
20
  get: (sessionID) => Effect.sync(() => environments.get(sessionID)),
21
21
  set: (sessionID, variables) => Effect.sync(() => {
22
22
  environments.set(sessionID, { ...variables });
@@ -26,6 +26,6 @@ var layer = Layer.sync(Service35, () => {
26
26
  })
27
27
  });
28
28
  });
29
- var node39 = makeGlobalNode({ service: Service35, layer, deps: [] });
29
+ var node54 = makeGlobalNode({ service: Service51, layer, deps: [] });
30
30
 
31
- export { Service35, node39, exports_environment };
31
+ export { Service51, node54, exports_environment };
@@ -1,19 +1,19 @@
1
1
  import {
2
- Service79
3
- } from "./job-2v6b9h32.js";
2
+ Service80
3
+ } from "./job-3gv83b7t.js";
4
4
  import {
5
- Service78
6
- } from "./job-b1c4vsaq.js";
5
+ Service79
6
+ } from "./job-gv9pfq09.js";
7
7
  import {
8
- Service56
9
- } from "./job-ccfa4wxs.js";
8
+ Service45
9
+ } from "./job-ff0htmxq.js";
10
10
  import {
11
11
  RelativePath2
12
12
  } from "./job-922hggd3.js";
13
13
  import {
14
- ID6,
15
- Service43
16
- } from "./job-h0ts1a45.js";
14
+ ID5,
15
+ Service56
16
+ } from "./job-6mjv2hgg.js";
17
17
  import {
18
18
  SessionEvent2
19
19
  } from "./job-ec1grn59.js";
@@ -22,10 +22,10 @@ import {
22
22
  } from "./job-gftt206x.js";
23
23
  import {
24
24
  MessageNotFoundError2
25
- } from "./job-t3pn2srw.js";
25
+ } from "./job-ybhbtxjg.js";
26
26
  import {
27
27
  SessionMessageTable2
28
- } from "./job-5c4hm403.js";
28
+ } from "./job-a1bz86dw.js";
29
29
  import {
30
30
  __export
31
31
  } from "./job-9rqn6x4v.js";
@@ -42,12 +42,12 @@ __export(exports_revert, {
42
42
  import { and, asc, eq, gt } from "drizzle-orm";
43
43
  import { Effect, Schema } from "effect";
44
44
  var stage2 = Effect.fn("SessionRevert.stage")(function* (input) {
45
- const instances = yield* Service56;
46
- const database = yield* Service79;
47
- const bus = yield* Service78;
45
+ const instances = yield* Service45;
46
+ const database = yield* Service80;
47
+ const bus = yield* Service79;
48
48
  return yield* Effect.gen(function* () {
49
- const snapshot = yield* Service43;
50
- const original = input.session.revert?.snapshot ? ID6.make(input.session.revert.snapshot) : yield* snapshot.capture();
49
+ const snapshot = yield* Service56;
50
+ const original = input.session.revert?.snapshot ? ID5.make(input.session.revert.snapshot) : yield* snapshot.capture();
51
51
  const next = yield* plan(database.db, { sessionID: input.session.id, messageID: input.messageID });
52
52
  const restore = new Map;
53
53
  if (original) {
@@ -74,13 +74,13 @@ var stage2 = Effect.fn("SessionRevert.stage")(function* (input) {
74
74
  }).pipe(instances.provide(input.session));
75
75
  });
76
76
  var clear2 = Effect.fn("SessionRevert.clear")(function* (session) {
77
- const instances = yield* Service56;
78
- const bus = yield* Service78;
77
+ const instances = yield* Service45;
78
+ const bus = yield* Service79;
79
79
  yield* Effect.gen(function* () {
80
- const snapshot = yield* Service43;
80
+ const snapshot = yield* Service56;
81
81
  if (!session.revert)
82
82
  return;
83
- const original = session.revert.snapshot ? ID6.make(session.revert.snapshot) : undefined;
83
+ const original = session.revert.snapshot ? ID5.make(session.revert.snapshot) : undefined;
84
84
  if (original)
85
85
  yield* snapshot.restore({
86
86
  files: new Map((session.revert.files ?? []).map((file) => [RelativePath2.make(file.file), original]))
@@ -111,7 +111,7 @@ var plan = Effect.fn("SessionRevert.plan")(function* (db, input) {
111
111
  continue;
112
112
  for (const file of message.snapshot.files ?? [])
113
113
  if (!files.has(file))
114
- files.set(file, ID6.make(message.snapshot.start));
114
+ files.set(file, ID5.make(message.snapshot.start));
115
115
  }
116
116
  return files;
117
117
  });
@@ -5,12 +5,12 @@ import {
5
5
  ModelInitializationError3,
6
6
  UnresolvedProviderVariablesError3,
7
7
  UnsupportedCompactionError3,
8
- Service57,
9
- node61
10
- } from "./job-nkxe001t.js";
8
+ Service73,
9
+ node78
10
+ } from "./job-80e13nyn.js";
11
11
  import {
12
12
  SessionSchema2
13
- } from "./job-dv250zvr.js";
13
+ } from "./job-jexxy024.js";
14
14
  import {
15
15
  __export
16
16
  } from "./job-9rqn6x4v.js";
@@ -22,13 +22,13 @@ __export(exports_model, {
22
22
  ModelInitializationError: () => ModelInitializationError2,
23
23
  ModelNotSelectedError: () => ModelNotSelectedError2,
24
24
  ModelUnavailableError: () => ModelUnavailableError2,
25
- Service: () => Service55,
25
+ Service: () => Service47,
26
26
  SessionRunnerModel: () => exports_model,
27
27
  UnresolvedProviderVariablesError: () => UnresolvedProviderVariablesError2,
28
28
  UnsupportedCompactionError: () => UnsupportedCompactionError2,
29
29
  UnsupportedPackageError: () => UnsupportedPackageError2,
30
30
  VariantUnavailableError: () => VariantUnavailableError2,
31
- node: () => node59,
31
+ node: () => node50,
32
32
  resolved: () => resolved2
33
33
  });
34
34
  import { makeLocationNode } from "@opencode/util/effect/app-node";
@@ -57,7 +57,7 @@ var ModelInitializationError2 = ModelInitializationError3;
57
57
  var UnresolvedProviderVariablesError2 = UnresolvedProviderVariablesError3;
58
58
  var UnsupportedCompactionError2 = UnsupportedCompactionError3;
59
59
 
60
- class Service55 extends Context.Service()("@opencode/SessionRunnerModel") {
60
+ class Service47 extends Context.Service()("@opencode/SessionRunnerModel") {
61
61
  }
62
62
  var resolved2 = (model, options) => ({
63
63
  model,
@@ -72,9 +72,9 @@ var resolved2 = (model, options) => ({
72
72
  compaction: options.compaction,
73
73
  websocket: options.websocket ?? false
74
74
  });
75
- var layer = Layer.effect(Service55, Effect.gen(function* () {
76
- const resolver = yield* Service57;
77
- return Service55.of({
75
+ var layer = Layer.effect(Service47, Effect.gen(function* () {
76
+ const resolver = yield* Service73;
77
+ return Service47.of({
78
78
  resolve: Effect.fn("SessionRunnerModel.resolve")(function* (session, available) {
79
79
  if (!session.model) {
80
80
  const resolved = yield* resolver.resolve();
@@ -92,6 +92,6 @@ var layer = Layer.effect(Service55, Effect.gen(function* () {
92
92
  })
93
93
  });
94
94
  }));
95
- var node59 = makeLocationNode({ service: Service55, layer, deps: [node61] });
95
+ var node50 = makeLocationNode({ service: Service47, layer, deps: [node78] });
96
96
 
97
- export { ModelNotSelectedError2, ModelUnavailableError2, VariantUnavailableError2, UnsupportedPackageError2, ModelConfigurationError2, ModelInitializationError2, UnresolvedProviderVariablesError2, UnsupportedCompactionError2, Service55, resolved2, node59, exports_model };
97
+ export { ModelNotSelectedError2, ModelUnavailableError2, VariantUnavailableError2, UnsupportedPackageError2, ModelConfigurationError2, ModelInitializationError2, UnresolvedProviderVariablesError2, UnsupportedCompactionError2, Service47, resolved2, node50, exports_model };
@@ -1,12 +1,12 @@
1
1
  import {
2
2
  ephemeral2,
3
- Service78,
4
- node83
5
- } from "./job-b1c4vsaq.js";
3
+ Service79,
4
+ node84
5
+ } from "./job-gv9pfq09.js";
6
6
  import {
7
- Service76,
8
- node81
9
- } from "./job-s14h8ch1.js";
7
+ Service72,
8
+ node77
9
+ } from "./job-9gddqbe1.js";
10
10
  import {
11
11
  __export
12
12
  } from "./job-9rqn6x4v.js";
@@ -19,10 +19,10 @@ __export(exports_wellknown, {
19
19
  Event: () => Event16,
20
20
  Manifest: () => Manifest2,
21
21
  RemoteConfig: () => RemoteConfig2,
22
- Service: () => Service70,
22
+ Service: () => Service71,
23
23
  WellKnown: () => exports_wellknown,
24
24
  inspect: () => inspect2,
25
- node: () => node74,
25
+ node: () => node76,
26
26
  resolve: () => resolve3
27
27
  });
28
28
  import { Integration } from "@opencode/schema/integration";
@@ -46,7 +46,7 @@ var Manifest2 = Schema.Struct({
46
46
  remote_config: Schema.optional(RemoteConfig2)
47
47
  }).annotate({ identifier: "WellKnown.Manifest" });
48
48
 
49
- class Service70 extends Context.Service()("@opencode/WellKnown") {
49
+ class Service71 extends Context.Service()("@opencode/WellKnown") {
50
50
  }
51
51
  var Event16 = {
52
52
  Updated: ephemeral2({ type: "wellknown.updated", schema: {} })
@@ -75,10 +75,10 @@ var resolveEntry = Effect.fnUntraced(function* (entry, variables) {
75
75
  });
76
76
  var sourcesKey = "wellknown:sources";
77
77
  var Sources = Schema.Array(Schema.String);
78
- var layer = Layer.effect(Service70, Effect.gen(function* () {
78
+ var layer = Layer.effect(Service71, Effect.gen(function* () {
79
79
  const http = yield* HttpClient.HttpClient;
80
- const kv = yield* Service76;
81
- const bus = yield* Service78;
80
+ const kv = yield* Service72;
81
+ const bus = yield* Service79;
82
82
  const cache = yield* Ref.make(new Map);
83
83
  const lock = Semaphore.makeUnsafe(1);
84
84
  const loadEntry = Effect.fn("WellKnown.loadEntry")(function* (origin) {
@@ -112,7 +112,7 @@ var layer = Layer.effect(Service70, Effect.gen(function* () {
112
112
  yield* bus.publish(Event16.Updated, {});
113
113
  return true;
114
114
  }, (effect) => lock.withPermit(effect));
115
- return Service70.of({
115
+ return Service71.of({
116
116
  entries: load,
117
117
  snapshot: () => Array.from(Ref.getUnsafe(cache).values()),
118
118
  refresh,
@@ -143,6 +143,6 @@ var layer = Layer.effect(Service70, Effect.gen(function* () {
143
143
  resolve: Effect.fn("WellKnown.resolveEntry")((entry, variables) => resolveEntry(entry, variables).pipe(Effect.provideService(HttpClient.HttpClient, http)))
144
144
  });
145
145
  }));
146
- var node74 = makeGlobalNode({ service: Service70, layer, deps: [httpClient, node81, node83] });
146
+ var node76 = makeGlobalNode({ service: Service71, layer, deps: [httpClient, node77, node84] });
147
147
 
148
- export { Auth2, RemoteConfig2, Config2, Manifest2, Service70, Event16, inspect2, resolve3, node74, exports_wellknown };
148
+ export { Auth2, RemoteConfig2, Config2, Manifest2, Service71, Event16, inspect2, resolve3, node76, exports_wellknown };
@@ -1,24 +1,24 @@
1
1
  import {
2
- Service72
3
- } from "./job-yg90b9ch.js";
2
+ Service68
3
+ } from "./job-deft6591.js";
4
4
  import {
5
- Service37
6
- } from "./job-758gvv9k.js";
5
+ Service63
6
+ } from "./job-x1ayndpw.js";
7
7
  import {
8
- Service14,
8
+ Service25,
9
9
  readText2,
10
10
  syncTextBom2
11
- } from "./job-80t0g78y.js";
11
+ } from "./job-ttmf09qd.js";
12
12
  import {
13
- Service47
14
- } from "./job-1qmxeza1.js";
13
+ Service21
14
+ } from "./job-1v4bbw1w.js";
15
15
  import {
16
- Service61
17
- } from "./job-qg8kvqbc.js";
16
+ Service58
17
+ } from "./job-a17g06ed.js";
18
18
  import {
19
- Service18,
19
+ Service22,
20
20
  resolvePath2
21
- } from "./job-awt0af35.js";
21
+ } from "./job-bd4wb5dj.js";
22
22
  import {
23
23
  fileDiff2
24
24
  } from "./job-6prwharc.js";
@@ -30,17 +30,17 @@ import {
30
30
  var exports_edit = {};
31
31
  __export(exports_edit, {
32
32
  EditTool: () => exports_edit,
33
- Input: () => Input8,
33
+ Input: () => Input7,
34
34
  Output: () => Output5,
35
- Plugin: () => Plugin41,
36
- name: () => name8
35
+ Plugin: () => Plugin39,
36
+ name: () => name7
37
37
  });
38
38
  import { ToolFailure } from "@opencode/ai";
39
39
  import { FileDiff } from "@opencode/schema/file-diff";
40
40
  import { Bom } from "@opencode/util/bom";
41
41
  import { Effect, Schema } from "effect";
42
- var name8 = "edit";
43
- var Input8 = Schema.Struct({
42
+ var name7 = "edit";
43
+ var Input7 = Schema.Struct({
44
44
  path: Schema.String.annotate({
45
45
  description: "File to edit"
46
46
  }),
@@ -103,20 +103,20 @@ var findLineOccurrences = (content, search) => {
103
103
  return result;
104
104
  }, []);
105
105
  };
106
- var Plugin41 = {
106
+ var Plugin39 = {
107
107
  id: "opencode.tool.edit",
108
108
  effect: Effect.fn("EditTool.Plugin")(function* (ctx) {
109
- const access = yield* Service18;
110
- const fileMutation = yield* Service14;
111
- const environment = yield* Service37;
112
- const formatter = yield* Service47;
113
- const location = yield* Service72;
114
- const permission = yield* Service61;
109
+ const access = yield* Service22;
110
+ const fileMutation = yield* Service25;
111
+ const environment = yield* Service63;
112
+ const formatter = yield* Service21;
113
+ const location = yield* Service68;
114
+ const permission = yield* Service58;
115
115
  yield* ctx.tool.transform((editor) => editor.add({
116
- name: name8,
116
+ name: name7,
117
117
  options: { codemode: false, permission: "edit" },
118
118
  description: "Edit the contents of a file by finding and replacing exact text. When editing text from Read output, preserve the exact indentation (tabs or spaces) and omit the line-number prefix, such as `1: `. Never include the prefix in oldString or newString. The edit fails if oldString is not found. By default, oldString must identify a UNIQUE location. Multiple matches FAIL unless replaceAll is true. Add more surrounding context to disambiguate, or set replaceAll to true to replace every occurrence. Use replaceAll when the change should apply to every occurrence, such as renaming a variable.",
119
- input: Input8,
119
+ input: Input7,
120
120
  output: Output5,
121
121
  execute: (input, context) => {
122
122
  return Effect.gen(function* () {
@@ -194,4 +194,4 @@ var Plugin41 = {
194
194
  })
195
195
  };
196
196
 
197
- export { name8, Input8, Output5, Plugin41, exports_edit };
197
+ export { name7, Input7, Output5, Plugin39, exports_edit };
@@ -1,26 +1,26 @@
1
1
  import {
2
- Service69
3
- } from "./job-jx8vh84p.js";
2
+ Service53
3
+ } from "./job-ph6t2mdm.js";
4
4
  import {
5
5
  AbsolutePath2
6
6
  } from "./job-922hggd3.js";
7
- import {
8
- Service72
9
- } from "./job-yg90b9ch.js";
10
7
  import {
11
8
  Service68
12
- } from "./job-n6hxp5zt.js";
9
+ } from "./job-deft6591.js";
10
+ import {
11
+ Service52
12
+ } from "./job-4hx14hj9.js";
13
13
  import {
14
14
  DirectorySource2,
15
15
  UrlSource2,
16
- Source3
17
- } from "./job-kps5zkd7.js";
16
+ Source4
17
+ } from "./job-zq3a93d4.js";
18
18
  import {
19
- Service6
20
- } from "./job-jjs74g98.js";
19
+ Service9
20
+ } from "./job-pnv527nz.js";
21
21
  import {
22
22
  parse2
23
- } from "./job-jzpfkve7.js";
23
+ } from "./job-s8fzv502.js";
24
24
  import {
25
25
  __export
26
26
  } from "./job-9rqn6x4v.js";
@@ -29,22 +29,22 @@ import {
29
29
  var exports_skill = {};
30
30
  __export(exports_skill, {
31
31
  ConfigSkillPlugin: () => exports_skill,
32
- Plugin: () => Plugin14
32
+ Plugin: () => Plugin13
33
33
  });
34
34
  import { define } from "@opencode/plugin/effect/plugin";
35
35
  import { FSUtil } from "@opencode/util/fs-util";
36
36
  import { Global } from "@opencode/util/global";
37
37
  import path from "path";
38
38
  import { Effect, FiberMap, PubSub, Semaphore, Stream } from "effect";
39
- var Plugin14 = define({
39
+ var Plugin13 = define({
40
40
  id: "opencode.config.skill",
41
41
  effect: Effect.fn(function* (ctx) {
42
- const config = yield* Service68;
43
- const discovery = yield* Service6;
42
+ const config = yield* Service52;
43
+ const discovery = yield* Service9;
44
44
  const fs = yield* FSUtil.Service;
45
45
  const global = yield* Global.Service;
46
- const location = yield* Service72;
47
- const watcher = yield* Service69;
46
+ const location = yield* Service68;
47
+ const watcher = yield* Service53;
48
48
  const loaded = {
49
49
  entries: yield* config.entries(),
50
50
  skills: []
@@ -87,7 +87,7 @@ var Plugin14 = define({
87
87
  const sources = () => {
88
88
  const result = [];
89
89
  const add = (source) => {
90
- if (result.some((item) => Source3.equals(item, source)))
90
+ if (result.some((item) => Source4.equals(item, source)))
91
91
  return;
92
92
  result.push(source);
93
93
  };
@@ -117,7 +117,7 @@ var Plugin14 = define({
117
117
  };
118
118
  const load = Effect.fn("ConfigSkillPlugin.load")(function* (source) {
119
119
  const directories = source.type === "directory" ? [source.path] : yield* discovery.pull(source.url).pipe(Effect.catchCause((cause) => Effect.logWarning("failed to load skill source", {
120
- source: Source3.key(source),
120
+ source: Source4.key(source),
121
121
  cause
122
122
  }).pipe(Effect.as([]))));
123
123
  const roots = (yield* Effect.forEach(directories, watchDirectory)).flat();
@@ -146,7 +146,7 @@ var Plugin14 = define({
146
146
  }
147
147
  }
148
148
  yield* Effect.logDebug("skill source loaded", {
149
- source: Source3.key(source),
149
+ source: Source4.key(source),
150
150
  type: source.type,
151
151
  directories,
152
152
  skills: skills.map((skill) => skill.id)
@@ -165,7 +165,7 @@ var Plugin14 = define({
165
165
  if (file) {
166
166
  yield* Effect.logInfo("skills rescanned", {
167
167
  file,
168
- sources: current.map(Source3.key),
168
+ sources: current.map(Source4.key),
169
169
  skills: loaded.skills.map((skill) => skill.id)
170
170
  });
171
171
  }
@@ -181,4 +181,4 @@ var Plugin14 = define({
181
181
  })
182
182
  });
183
183
 
184
- export { Plugin14, exports_skill };
184
+ export { Plugin13, exports_skill };