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

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 (474) hide show
  1. package/dist/agent.js +73 -73
  2. package/dist/aisdk-native.js +71 -71
  3. package/dist/aisdk.js +76 -76
  4. package/dist/app.js +9 -9
  5. package/dist/bus.js +65 -65
  6. package/dist/chunks/{model-zwh4a1ab.js → model-04ym1fwe.js} +5 -5
  7. package/dist/chunks/{model-efwcmd71.js → model-0fjeggm9.js} +9 -9
  8. package/dist/chunks/{model-7j1a6jdx.js → model-0m0wxxk9.js} +18 -18
  9. package/dist/chunks/{model-d8mxpyz7.js → model-0njq27v6.js} +37 -37
  10. package/dist/chunks/{model-cwzd7x1t.js → model-0ppgc59f.js} +4 -4
  11. package/dist/chunks/{model-0nsjxa2x.js → model-13wqnzak.js} +3 -3
  12. package/dist/chunks/{model-w1yg9qkm.js → model-16nrxpzh.js} +16 -16
  13. package/dist/chunks/{model-r2jsz6zh.js → model-1a5352wv.js} +4 -4
  14. package/dist/chunks/{model-v9j8n8rs.js → model-1bwe3qwc.js} +8 -8
  15. package/dist/chunks/{model-x804m9tz.js → model-1dds5gcz.js} +23 -23
  16. package/dist/chunks/{model-7vfd4xz9.js → model-1gpb38yh.js} +5 -5
  17. package/dist/chunks/{model-tzgwpa0q.js → model-1qreg6w5.js} +30 -30
  18. package/dist/chunks/{model-fxaymqdw.js → model-1w2wqhfv.js} +3 -3
  19. package/dist/chunks/{model-t66atx3n.js → model-1wv6ewf4.js} +16 -16
  20. package/dist/chunks/{model-2k71kv7p.js → model-1y283654.js} +3 -3
  21. package/dist/chunks/{model-aq7k84zy.js → model-20zrxk89.js} +12 -12
  22. package/dist/chunks/{model-2h69y2j1.js → model-228yc791.js} +25 -25
  23. package/dist/chunks/{model-cqbr470d.js → model-249n4y23.js} +4 -4
  24. package/dist/chunks/{model-5y480sgp.js → model-2eegacq4.js} +7 -7
  25. package/dist/chunks/{model-t1vvqrnj.js → model-2gft9see.js} +21 -21
  26. package/dist/chunks/{model-fcrkznn8.js → model-2k8khapm.js} +4 -4
  27. package/dist/chunks/{model-810ve36t.js → model-30ezw4dz.js} +20 -20
  28. package/dist/chunks/{model-dw52cd0g.js → model-30x88qrh.js} +3 -3
  29. package/dist/chunks/{model-gd0tnyjc.js → model-3g8j9he4.js} +1 -1
  30. package/dist/chunks/{model-6qyp6q13.js → model-3n54exg3.js} +12 -12
  31. package/dist/chunks/{model-674w987k.js → model-3vhfphj7.js} +32 -32
  32. package/dist/chunks/{model-zxf3xmnj.js → model-3xvck7mv.js} +14 -14
  33. package/dist/chunks/{model-cz1na6pr.js → model-41k1h118.js} +16 -16
  34. package/dist/chunks/{model-87qbasm5.js → model-453djzx7.js} +8 -8
  35. package/dist/chunks/{model-4wytv71p.js → model-4e171ha0.js} +1 -1
  36. package/dist/chunks/{model-dc27vedx.js → model-4kca7kha.js} +25 -25
  37. package/dist/chunks/{model-nng5j9h6.js → model-4p1qn5j9.js} +3 -3
  38. package/dist/chunks/{model-1e0t64bm.js → model-4z3vwhnt.js} +9 -9
  39. package/dist/chunks/{model-svdem9xa.js → model-4zjcfn6g.js} +16 -16
  40. package/dist/chunks/{model-hk9t36gz.js → model-568arzm9.js} +3 -3
  41. package/dist/chunks/{model-h83xjv7f.js → model-57myy5jh.js} +3 -3
  42. package/dist/chunks/{model-vjvcezxg.js → model-5a7z4yxf.js} +8 -8
  43. package/dist/chunks/{model-n7m069ya.js → model-5e81dfca.js} +39 -39
  44. package/dist/chunks/{model-e3qxr5gk.js → model-5qd3pb7m.js} +2 -2
  45. package/dist/chunks/{model-mksqe0jy.js → model-5s0x098x.js} +19 -19
  46. package/dist/chunks/{model-5agp6482.js → model-5xzyc826.js} +26 -26
  47. package/dist/chunks/{model-09cyt2wq.js → model-61sfa1aj.js} +24 -24
  48. package/dist/chunks/{model-m77chmsg.js → model-6897dy4y.js} +8 -8
  49. package/dist/chunks/{model-yyq8xdja.js → model-68yh2fx3.js} +320 -320
  50. package/dist/chunks/{model-mm8a7tkj.js → model-6eadky4a.js} +48 -48
  51. package/dist/chunks/{model-w8038a0g.js → model-6epe09p4.js} +37 -37
  52. package/dist/chunks/{model-da571fjn.js → model-6exrpman.js} +22 -22
  53. package/dist/chunks/{model-a63pq2m6.js → model-6hh0p4jj.js} +9 -9
  54. package/dist/chunks/{model-wgahhr0x.js → model-6kg1vfnr.js} +7 -7
  55. package/dist/chunks/{model-dt5p2gzz.js → model-6nsfmgdp.js} +25 -25
  56. package/dist/chunks/model-6vb0jgt0.js +26 -0
  57. package/dist/chunks/{model-xscv4v2z.js → model-6w1q88cy.js} +7 -7
  58. package/dist/chunks/{model-hsn420a8.js → model-6x53d5fk.js} +13 -13
  59. package/dist/chunks/{model-e29c15sd.js → model-782zrs06.js} +3 -3
  60. package/dist/chunks/{model-11n2fvbk.js → model-79rwpvn4.js} +38 -38
  61. package/dist/chunks/{model-kas6drz3.js → model-7hbcydxm.js} +30 -30
  62. package/dist/chunks/{model-zy3z5mtm.js → model-7j4s1nts.js} +13 -13
  63. package/dist/chunks/{model-k16ggyyw.js → model-7nh8f0wn.js} +26 -26
  64. package/dist/chunks/{model-gsxrv0fy.js → model-7pw8yz1b.js} +9 -9
  65. package/dist/chunks/{model-fe4vsmnr.js → model-7x0qfkxs.js} +9 -9
  66. package/dist/chunks/{model-gwda5h78.js → model-81njmjsm.js} +9 -9
  67. package/dist/chunks/{model-w30whbb5.js → model-866gnewa.js} +12 -12
  68. package/dist/chunks/{model-n5ckd50m.js → model-868thhtj.js} +33 -33
  69. package/dist/chunks/{model-8a6bygkp.js → model-8beabzaw.js} +8 -8
  70. package/dist/chunks/{model-agkn6djb.js → model-8bv2d044.js} +17 -17
  71. package/dist/chunks/{model-wge3n3kq.js → model-8kamc0n0.js} +7 -7
  72. package/dist/chunks/{model-sfk668n4.js → model-8rez7pc9.js} +4 -4
  73. package/dist/chunks/{model-v577e917.js → model-918hk0p8.js} +17 -17
  74. package/dist/chunks/{model-142fkw1n.js → model-97868axb.js} +15 -15
  75. package/dist/chunks/{model-tg4ne0mz.js → model-9dk8dbn0.js} +51 -51
  76. package/dist/chunks/{model-mn4hnxkt.js → model-9jryrv3a.js} +12 -12
  77. package/dist/chunks/{model-nktcn7bv.js → model-9m88xfvv.js} +35 -35
  78. package/dist/chunks/{model-tfpgne2e.js → model-9syxb0r3.js} +10 -10
  79. package/dist/chunks/{model-gsndwzqv.js → model-ac9zsgge.js} +17 -17
  80. package/dist/chunks/{model-x661k3y3.js → model-addxnjmp.js} +3 -3
  81. package/dist/chunks/{model-z5crsmww.js → model-ajzsbz6h.js} +3 -3
  82. package/dist/chunks/{model-2ach13s2.js → model-ap7d67yw.js} +42 -42
  83. package/dist/chunks/{model-dyvsbq8q.js → model-apnwk0zd.js} +10 -10
  84. package/dist/chunks/{model-5gw5nkjt.js → model-aspgww5t.js} +82 -82
  85. package/dist/chunks/{model-kx2n7v0t.js → model-avj7e4e4.js} +10 -10
  86. package/dist/chunks/{model-m82j3vqr.js → model-b1et22ex.js} +26 -26
  87. package/dist/chunks/{model-7z93154z.js → model-b3dw1nxt.js} +21 -21
  88. package/dist/chunks/{model-hs2sc01j.js → model-bcffw6zz.js} +41 -41
  89. package/dist/chunks/{model-rgrzrdjr.js → model-bpxpvztg.js} +22 -22
  90. package/dist/chunks/{model-e5yhdxdz.js → model-bq5355gp.js} +41 -41
  91. package/dist/chunks/{model-cmwkp3r5.js → model-br0tr5aq.js} +7 -7
  92. package/dist/chunks/{model-cxmm8qc0.js → model-bsqtyhzw.js} +27 -27
  93. package/dist/chunks/{model-909p1r3q.js → model-c8bydgjz.js} +5 -5
  94. package/dist/chunks/{model-6w89m9p1.js → model-cazcby7s.js} +19 -19
  95. package/dist/chunks/{model-zswvs50y.js → model-csjk4z4y.js} +17 -17
  96. package/dist/chunks/{model-mxjbaaz4.js → model-dbz9e5sv.js} +20 -20
  97. package/dist/chunks/{model-msyrw4bq.js → model-dd5e861g.js} +4 -4
  98. package/dist/chunks/{model-m5b2t9yd.js → model-dexdmn7s.js} +55 -55
  99. package/dist/chunks/{model-k6zkg7sr.js → model-dhfmk2zr.js} +7 -7
  100. package/dist/chunks/{model-zvt5dnpc.js → model-dhmh7aw6.js} +3 -3
  101. package/dist/chunks/{model-8sgxnewj.js → model-dm0nfydx.js} +8 -8
  102. package/dist/chunks/{model-y71avatq.js → model-dpkg50ah.js} +3 -3
  103. package/dist/chunks/{model-ktgr00t7.js → model-drnf6xwf.js} +1 -1
  104. package/dist/chunks/{model-f6g8pkb4.js → model-dxw5vmgr.js} +16 -16
  105. package/dist/chunks/{model-t9fz1x23.js → model-e01gj4cd.js} +62 -62
  106. package/dist/chunks/{model-r2z489rp.js → model-ed1g29hy.js} +2 -2
  107. package/dist/chunks/{model-nsnm0d77.js → model-efjxf17k.js} +38 -38
  108. package/dist/chunks/{model-y2tp8ndf.js → model-ekw32q82.js} +9 -9
  109. package/dist/chunks/{model-1gh4n1ba.js → model-es9h6wy0.js} +4 -4
  110. package/dist/chunks/{model-xkcm35ep.js → model-exwpqpdy.js} +4 -4
  111. package/dist/chunks/{model-zn6ek04n.js → model-f6fz9g7x.js} +6 -6
  112. package/dist/chunks/{model-z1dnb0jf.js → model-f6j4pfw7.js} +12 -12
  113. package/dist/chunks/{model-4v7qdvcn.js → model-f81tjggh.js} +4 -4
  114. package/dist/chunks/{model-gyksvwm5.js → model-ff251rbv.js} +15 -15
  115. package/dist/chunks/{model-7src2pyj.js → model-fjb8erg1.js} +6 -6
  116. package/dist/chunks/{model-zvk9pegx.js → model-fng1q3a6.js} +34 -34
  117. package/dist/chunks/{model-0996nyz8.js → model-fqcgpcra.js} +8 -8
  118. package/dist/chunks/{model-1rd80ksx.js → model-g5ppxhgr.js} +16 -16
  119. package/dist/chunks/{model-xthmztap.js → model-gj1adh3k.js} +20 -20
  120. package/dist/chunks/{model-z6c3x22d.js → model-gj71zhbs.js} +3 -3
  121. package/dist/chunks/{model-qxcp4ttm.js → model-gs2he756.js} +182 -182
  122. package/dist/chunks/{model-cxkbmgp7.js → model-gtr46jpy.js} +12 -12
  123. package/dist/chunks/{model-hrg0xqaw.js → model-h3cseehx.js} +27 -27
  124. package/dist/chunks/{model-x5wrmng7.js → model-hcv80w8f.js} +9 -9
  125. package/dist/chunks/{model-8kw59tg1.js → model-hh74v2b0.js} +16 -16
  126. package/dist/chunks/{model-gxra9ntr.js → model-hjd8wwja.js} +22 -22
  127. package/dist/chunks/{model-0b5g1ynf.js → model-hkffa77z.js} +1 -1
  128. package/dist/chunks/{model-2ypdw6v4.js → model-hvh251q6.js} +8 -8
  129. package/dist/chunks/{model-605fdbxk.js → model-hz9wj0ed.js} +1 -1
  130. package/dist/chunks/{model-7sr4khpq.js → model-j142m76w.js} +16 -16
  131. package/dist/chunks/{model-q79edn6k.js → model-jcgcvvgv.js} +19 -19
  132. package/dist/chunks/{model-7dmr3qxn.js → model-jj9d5szw.js} +11 -11
  133. package/dist/chunks/{model-6g107h22.js → model-jk540des.js} +1 -1
  134. package/dist/chunks/{model-zm14bp5n.js → model-jmkbrx6z.js} +40 -40
  135. package/dist/chunks/{model-wr9rbap8.js → model-jvjaj5rz.js} +14 -14
  136. package/dist/chunks/{model-xeea7gjf.js → model-jwwy4gf7.js} +5 -5
  137. package/dist/chunks/{model-x076sjt5.js → model-k4h0p2n0.js} +6 -6
  138. package/dist/chunks/{model-2p142bke.js → model-k6fa6tfe.js} +14 -14
  139. package/dist/chunks/{model-11m4y6qd.js → model-k83c78af.js} +26 -26
  140. package/dist/chunks/{model-sddez406.js → model-kkjc9dy5.js} +13 -13
  141. package/dist/chunks/{model-8dt2m3qt.js → model-kvw3mq9v.js} +9 -9
  142. package/dist/chunks/{model-rs6n5dpz.js → model-kx1gjmzp.js} +5 -5
  143. package/dist/chunks/{model-em98dst4.js → model-m0b7pkkd.js} +28 -28
  144. package/dist/chunks/{model-b1a1n7cj.js → model-my4zabxr.js} +3 -3
  145. package/dist/chunks/{model-4z58m4b4.js → model-n1n192bv.js} +3 -3
  146. package/dist/chunks/{model-tdw1jchh.js → model-n5n1zjbv.js} +32 -32
  147. package/dist/chunks/{model-zhspmtmh.js → model-n724kc2b.js} +3 -3
  148. package/dist/chunks/{model-xheas1rx.js → model-n8ja6an3.js} +8 -8
  149. package/dist/chunks/{model-0d7p0p78.js → model-nd7vcjm8.js} +13 -13
  150. package/dist/chunks/{model-kh162zpt.js → model-nf4ty3xq.js} +21 -21
  151. package/dist/chunks/{model-y8k4q3en.js → model-nf63sdyz.js} +19 -19
  152. package/dist/chunks/{model-xsa1hygm.js → model-nfh0qqsf.js} +21 -21
  153. package/dist/chunks/{model-2stkn66k.js → model-nftsbvkz.js} +25 -25
  154. package/dist/chunks/{model-4ybf7fnk.js → model-npyp060g.js} +8 -8
  155. package/dist/chunks/{model-jekssrtq.js → model-npypc4rd.js} +7 -7
  156. package/dist/chunks/{model-h2ssqnba.js → model-p2c1p7fg.js} +4 -4
  157. package/dist/chunks/{model-smdpqrpz.js → model-p3mytphf.js} +22 -22
  158. package/dist/chunks/{model-5z0y4e44.js → model-p7jr90hv.js} +15 -15
  159. package/dist/chunks/{model-0br3sbwn.js → model-pg3d8dpb.js} +3 -3
  160. package/dist/chunks/{model-d7x0sh0y.js → model-phz50fbd.js} +7 -7
  161. package/dist/chunks/{model-2pfz9zj6.js → model-pk4brtys.js} +29 -29
  162. package/dist/chunks/{model-xnv46bg2.js → model-pyz1vfrp.js} +21 -21
  163. package/dist/chunks/{model-0j77ygfz.js → model-q0xm7vwc.js} +4 -4
  164. package/dist/chunks/{model-kaxyez5z.js → model-q2736rqt.js} +17 -17
  165. package/dist/chunks/{model-2qg26xbp.js → model-q504mf2g.js} +2 -2
  166. package/dist/chunks/{model-cekk119z.js → model-q81gz903.js} +3 -3
  167. package/dist/chunks/{model-2mcax4ft.js → model-qbfqzset.js} +12 -12
  168. package/dist/chunks/{model-kbxmpcp5.js → model-qjcj5bxx.js} +9 -9
  169. package/dist/chunks/{model-999bzrsf.js → model-qpzj3qa9.js} +5 -5
  170. package/dist/chunks/{model-k4dt4j6g.js → model-qwsskq9g.js} +20 -20
  171. package/dist/chunks/{model-zqm6kvvn.js → model-qy52ep8z.js} +16 -16
  172. package/dist/chunks/{model-rdza6gx1.js → model-r2a53ztr.js} +13 -13
  173. package/dist/chunks/{model-8vkaqw1w.js → model-r35mg9et.js} +12 -12
  174. package/dist/chunks/{model-f20efee0.js → model-r6734q5n.js} +10 -10
  175. package/dist/chunks/{model-qxhhhvy1.js → model-r6xwq2vk.js} +17 -17
  176. package/dist/chunks/{model-rm6mdncc.js → model-r7ka9ch8.js} +18 -18
  177. package/dist/chunks/{model-sbem282a.js → model-rgqhra37.js} +25 -25
  178. package/dist/chunks/{model-gj4dz15w.js → model-rh2yf6b2.js} +11 -11
  179. package/dist/chunks/{model-stfafkkt.js → model-rpxwryvh.js} +8 -8
  180. package/dist/chunks/{model-9c2gx1av.js → model-rsswyzw7.js} +12 -12
  181. package/dist/chunks/{model-s7ev4p20.js → model-rzn7k92n.js} +2 -2
  182. package/dist/chunks/{model-hpje1asd.js → model-s4q167yz.js} +16 -16
  183. package/dist/chunks/{model-t550f9t1.js → model-s8d7rejh.js} +3 -3
  184. package/dist/chunks/{model-479aec3e.js → model-sffa00cj.js} +26 -26
  185. package/dist/chunks/{model-b8rasqmm.js → model-sfj6zb2f.js} +85 -85
  186. package/dist/chunks/{model-pygwap58.js → model-sjyz1h2d.js} +24 -24
  187. package/dist/chunks/{model-8arnnpza.js → model-sk663hk0.js} +26 -26
  188. package/dist/chunks/{model-nhyne0rh.js → model-sxkxnm8w.js} +4 -4
  189. package/dist/chunks/{model-a2ew8a62.js → model-sxz6gkc3.js} +6 -6
  190. package/dist/chunks/{model-j1mj860n.js → model-tat11k01.js} +7 -7
  191. package/dist/chunks/{model-b22wppy7.js → model-ts98378q.js} +4 -4
  192. package/dist/chunks/{model-1j6m29mr.js → model-txm3e8qz.js} +8 -8
  193. package/dist/chunks/{model-dw5aamzj.js → model-tyawky02.js} +15 -15
  194. package/dist/chunks/{model-6g7e4dd5.js → model-v0es1rhs.js} +5 -5
  195. package/dist/chunks/{model-0f58zsv5.js → model-v9sgcpv9.js} +41 -41
  196. package/dist/chunks/{model-h9v0byjp.js → model-v9vx4ha1.js} +7 -7
  197. package/dist/chunks/{model-neg72jb9.js → model-vbktcqf2.js} +18 -18
  198. package/dist/chunks/{model-jwah6ncg.js → model-vdqx43ex.js} +1 -1
  199. package/dist/chunks/{model-t89fqycx.js → model-vgx6weyf.js} +7 -7
  200. package/dist/chunks/{model-nzep555n.js → model-vpdcaygd.js} +36 -36
  201. package/dist/chunks/{model-jqjtjqm5.js → model-vta2cxva.js} +14 -14
  202. package/dist/chunks/{model-6hernfpx.js → model-vtdgthxf.js} +20 -20
  203. package/dist/chunks/{model-84txncab.js → model-w1eejvng.js} +4 -4
  204. package/dist/chunks/{model-b3f8fkhc.js → model-wecqtg5s.js} +3 -3
  205. package/dist/chunks/{model-yb5kpwm0.js → model-wj5z0n6a.js} +16 -16
  206. package/dist/chunks/{model-pff3x97k.js → model-wk6sqcc5.js} +8 -8
  207. package/dist/chunks/model-wk815h5a.js +253 -0
  208. package/dist/chunks/{model-3aq39rmm.js → model-wr3xabqx.js} +11 -11
  209. package/dist/chunks/{model-x76z1jaq.js → model-wwhqjdsn.js} +16 -16
  210. package/dist/chunks/{model-edr8mr1d.js → model-wwncb6zf.js} +12 -12
  211. package/dist/chunks/{model-gs3mfcxs.js → model-wzf7q3t7.js} +27 -27
  212. package/dist/chunks/{model-s8cdmyqk.js → model-wzvjkcye.js} +17 -17
  213. package/dist/chunks/{model-x4za3xcr.js → model-x04pqkrt.js} +1 -1
  214. package/dist/chunks/{model-c0eqp439.js → model-xea223yn.js} +1 -1
  215. package/dist/chunks/{model-mvp4hync.js → model-xmk3nhga.js} +17 -17
  216. package/dist/chunks/{model-1b2xjh8d.js → model-y9yrahrn.js} +16 -16
  217. package/dist/chunks/{model-bjx1sjef.js → model-ywt8jp22.js} +7 -7
  218. package/dist/chunks/{model-z7tka8yh.js → model-yxebmv17.js} +21 -21
  219. package/dist/chunks/{model-c4ads7bv.js → model-z164wy97.js} +14 -14
  220. package/dist/chunks/{model-b888nyxg.js → model-z1j5fswa.js} +1 -1
  221. package/dist/chunks/{model-f3ttcj74.js → model-z4526mx1.js} +15 -15
  222. package/dist/chunks/{model-22xnzr80.js → model-z5d5yc96.js} +9 -9
  223. package/dist/chunks/{model-t4dv37ma.js → model-zm0hys1r.js} +18 -18
  224. package/dist/chunks/{model-y8y4787y.js → model-zmfgr60r.js} +7 -7
  225. package/dist/chunks/{model-bc32chh7.js → model-zmtn6p76.js} +12 -12
  226. package/dist/chunks/{model-fketk0k4.js → model-znj2jcy4.js} +8 -8
  227. package/dist/chunks/{model-az68kh8z.js → model-zr2nq6gp.js} +1 -1
  228. package/dist/chunks/{model-57w6ys69.js → model-zzdhwppw.js} +45 -45
  229. package/dist/codemode/instructions.js +2 -2
  230. package/dist/command.js +75 -75
  231. package/dist/config/discovery.js +66 -66
  232. package/dist/config/normalize.js +80 -80
  233. package/dist/config/plugin/agent.js +96 -96
  234. package/dist/config/plugin/command.js +177 -177
  235. package/dist/config/plugin/compaction.js +126 -126
  236. package/dist/config/plugin/compatibility.js +111 -111
  237. package/dist/config/plugin/formatter.js +95 -95
  238. package/dist/config/plugin/image.js +94 -94
  239. package/dist/config/plugin/instruction.js +93 -93
  240. package/dist/config/plugin/location-watcher.js +94 -94
  241. package/dist/config/plugin/mcp.js +104 -104
  242. package/dist/config/plugin/policy.js +95 -95
  243. package/dist/config/plugin/provider.js +92 -92
  244. package/dist/config/plugin/reference.js +96 -96
  245. package/dist/config/plugin/shell.js +96 -96
  246. package/dist/config/plugin/skill-file.js +81 -81
  247. package/dist/config/plugin/skill.js +112 -112
  248. package/dist/config/plugin/snapshot.js +94 -94
  249. package/dist/config/plugin/source.js +97 -97
  250. package/dist/config/plugin/tool-output.js +95 -95
  251. package/dist/config/plugin/websearch.js +95 -95
  252. package/dist/config/plugin/worktree.js +95 -95
  253. package/dist/config/variable.js +2 -2
  254. package/dist/config.js +96 -96
  255. package/dist/credential.js +67 -67
  256. package/dist/database/database.js +63 -63
  257. package/dist/database/drizzle/effect-sqlite/driver.js +9 -9
  258. package/dist/database/drizzle/effect-sqlite/index.js +6 -6
  259. package/dist/database/drizzle/effect-sqlite/session.js +6 -6
  260. package/dist/database/drizzle/index.js +10 -10
  261. package/dist/database/drizzle/sqlite-core/effect/db.js +4 -4
  262. package/dist/database/drizzle/sqlite-core/effect/index.js +2 -2
  263. package/dist/database/drizzle/sqlite-core/effect/session.js +5 -5
  264. package/dist/database/drizzle.js +10 -10
  265. package/dist/database/migration.gen.js +40 -40
  266. package/dist/database/migration.js +42 -42
  267. package/dist/database/v1-migration.bun.js +12 -12
  268. package/dist/effect/app-node-builder.js +234 -234
  269. package/dist/effect/keyed-mutex.js +3 -3
  270. package/dist/environment/environment.js +75 -75
  271. package/dist/environment/index.js +80 -80
  272. package/dist/environment/unavailable.js +3 -3
  273. package/dist/event-logger.js +14 -14
  274. package/dist/file-access.js +84 -84
  275. package/dist/file-mutation.js +76 -76
  276. package/dist/filesystem/location-watcher.js +187 -187
  277. package/dist/filesystem/search.js +79 -79
  278. package/dist/filesystem/watcher-binding.js +3 -3
  279. package/dist/filesystem/watcher.js +8 -8
  280. package/dist/filesystem.js +76 -76
  281. package/dist/form.js +66 -66
  282. package/dist/formatter/builtins.js +3 -3
  283. package/dist/formatter.js +71 -71
  284. package/dist/generate.js +83 -83
  285. package/dist/git.js +7 -7
  286. package/dist/github-copilot/chat/openai-compatible-chat-language-model.js +3 -3
  287. package/dist/github-copilot/copilot-provider.js +3 -3
  288. package/dist/github-copilot/models.js +81 -81
  289. package/dist/github-copilot/responses/openai-responses-language-model.js +4 -4
  290. package/dist/github-copilot/responses/openai-responses-prepare-tools.js +2 -2
  291. package/dist/image/photon.js +1 -1
  292. package/dist/image.js +5 -5
  293. package/dist/instance/service.js +5 -5
  294. package/dist/instance.js +317 -317
  295. package/dist/instruction-discovery.js +74 -74
  296. package/dist/instructions/builtins.js +71 -71
  297. package/dist/instructions/index.js +3 -3
  298. package/dist/integration/connection.js +3 -3
  299. package/dist/integration.js +71 -71
  300. package/dist/job.js +65 -65
  301. package/dist/kv.js +62 -62
  302. package/dist/location-activity.js +56 -56
  303. package/dist/location-lifecycle.js +87 -87
  304. package/dist/location-service-map.js +70 -70
  305. package/dist/location-services.js +316 -316
  306. package/dist/location.js +71 -71
  307. package/dist/managed-policy.js +7 -7
  308. package/dist/mcp/client.js +18 -18
  309. package/dist/mcp/index.js +87 -87
  310. package/dist/mcp/instructions.js +107 -107
  311. package/dist/mcp/oauth.js +11 -11
  312. package/dist/mcp/stdio.js +72 -72
  313. package/dist/modal/models.js +81 -81
  314. package/dist/model-resolver.js +80 -80
  315. package/dist/model.js +80 -80
  316. package/dist/models-dev.js +89 -89
  317. package/dist/permission/saved.js +66 -66
  318. package/dist/permission.js +91 -91
  319. package/dist/persistent-pty/index.js +76 -76
  320. package/dist/persistent-pty.js +62 -62
  321. package/dist/plugin/agent.js +66 -66
  322. package/dist/plugin/command.js +84 -84
  323. package/dist/plugin/hooks.js +5 -5
  324. package/dist/plugin/host.js +181 -181
  325. package/dist/plugin/identity.js +3 -3
  326. package/dist/plugin/instance.js +5 -5
  327. package/dist/plugin/internal.js +290 -290
  328. package/dist/plugin/mcp-codemode-defaults.js +3 -3
  329. package/dist/plugin/models-dev.js +78 -78
  330. package/dist/plugin/module.js +95 -95
  331. package/dist/plugin/plan.js +82 -82
  332. package/dist/plugin/provider/amazon-bedrock.js +72 -72
  333. package/dist/plugin/provider/azure.js +95 -95
  334. package/dist/plugin/provider/chatgpt.js +93 -93
  335. package/dist/plugin/provider/cloudflare-ai-gateway.js +92 -92
  336. package/dist/plugin/provider/cloudflare-workers-ai.js +92 -92
  337. package/dist/plugin/provider/configured.js +91 -91
  338. package/dist/plugin/provider/digitalocean.js +74 -74
  339. package/dist/plugin/provider/github-copilot.js +76 -76
  340. package/dist/plugin/provider/gitlab.js +74 -74
  341. package/dist/plugin/provider/google-vertex.js +92 -92
  342. package/dist/plugin/provider/llmgateway.js +66 -66
  343. package/dist/plugin/provider/lmstudio.js +104 -104
  344. package/dist/plugin/provider/local.js +101 -101
  345. package/dist/plugin/provider/modal.js +74 -74
  346. package/dist/plugin/provider/ollama.js +104 -104
  347. package/dist/plugin/provider/openai.js +93 -93
  348. package/dist/plugin/provider/opencode.js +79 -79
  349. package/dist/plugin/provider/openrouter.js +73 -73
  350. package/dist/plugin/provider/poe.js +66 -66
  351. package/dist/plugin/provider/sap-ai-core.js +72 -72
  352. package/dist/plugin/provider/snowflake-cortex.js +93 -93
  353. package/dist/plugin/provider/vercel.js +72 -72
  354. package/dist/plugin/provider/vllm.js +104 -104
  355. package/dist/plugin/provider/xai.js +73 -73
  356. package/dist/plugin/provider.js +138 -138
  357. package/dist/plugin/sdk.js +66 -66
  358. package/dist/plugin/service.js +3 -3
  359. package/dist/plugin/skill.js +112 -112
  360. package/dist/plugin/supervisor.js +307 -307
  361. package/dist/plugin/tool-input-repair.js +3 -3
  362. package/dist/plugin/update.js +6 -6
  363. package/dist/plugin/vcs/git.js +70 -70
  364. package/dist/plugin/vcs/hg.js +70 -70
  365. package/dist/plugin/verbosity.js +75 -75
  366. package/dist/plugin/warming.js +93 -93
  367. package/dist/plugin/websearch/exa.js +6 -6
  368. package/dist/plugin/websearch/firecrawl.js +7 -7
  369. package/dist/plugin/websearch/index.js +8 -8
  370. package/dist/plugin/websearch/mcp.js +5 -5
  371. package/dist/plugin/websearch/parallel.js +7 -7
  372. package/dist/plugin/websearch/tavily.js +6 -6
  373. package/dist/plugin/websearch/tinyfish.js +7 -7
  374. package/dist/plugin.js +194 -194
  375. package/dist/project/schema.js +5 -5
  376. package/dist/project.js +72 -72
  377. package/dist/provider.js +77 -77
  378. package/dist/pty.js +82 -82
  379. package/dist/reference/instructions.js +76 -76
  380. package/dist/reference.js +74 -74
  381. package/dist/repository-cache.js +68 -68
  382. package/dist/repository.js +3 -3
  383. package/dist/ripgrep.js +76 -76
  384. package/dist/rpc.js +70 -70
  385. package/dist/session/command.js +64 -64
  386. package/dist/session/compaction.js +107 -107
  387. package/dist/session/context.js +126 -126
  388. package/dist/session/diff.js +70 -70
  389. package/dist/session/environment.js +5 -5
  390. package/dist/session/error.js +4 -4
  391. package/dist/session/execution/restart.js +116 -116
  392. package/dist/session/execution.js +102 -102
  393. package/dist/session/generate.js +127 -127
  394. package/dist/session/history.js +8 -8
  395. package/dist/session/inbox.js +70 -70
  396. package/dist/session/info.js +2 -2
  397. package/dist/session/instruction-entry.js +63 -63
  398. package/dist/session/instruction-state.js +2 -2
  399. package/dist/session/instructions.js +78 -78
  400. package/dist/session/model-request.js +94 -94
  401. package/dist/session/model-transport.js +5 -5
  402. package/dist/session/move.js +104 -104
  403. package/dist/session/projector.js +68 -68
  404. package/dist/session/prompt.js +85 -85
  405. package/dist/session/provider-context.js +3 -3
  406. package/dist/session/revert.js +71 -71
  407. package/dist/session/runner/index.js +3 -3
  408. package/dist/session/runner/llm.js +189 -189
  409. package/dist/session/runner/model.js +80 -80
  410. package/dist/session/runner/publish-llm-event.js +90 -90
  411. package/dist/session/runner/retry.js +3 -3
  412. package/dist/session/runner/step.js +100 -100
  413. package/dist/session/runner/to-llm-message.js +2 -2
  414. package/dist/session/schema.js +5 -5
  415. package/dist/session/session.js +138 -138
  416. package/dist/session/shell.js +108 -108
  417. package/dist/session/skill.js +83 -83
  418. package/dist/session/stats.js +10 -10
  419. package/dist/session/store.js +69 -69
  420. package/dist/session/subagent-job.js +175 -175
  421. package/dist/session/title.js +123 -123
  422. package/dist/session/to-session-error.js +89 -89
  423. package/dist/session/transfer.js +116 -116
  424. package/dist/session.js +180 -180
  425. package/dist/shell/parse.js +3 -3
  426. package/dist/shell/select.js +11 -11
  427. package/dist/shell.js +111 -111
  428. package/dist/skill/discovery.js +5 -5
  429. package/dist/skill/instructions.js +87 -87
  430. package/dist/skill.js +92 -92
  431. package/dist/snapshot.js +73 -73
  432. package/dist/tool/mcp.js +104 -104
  433. package/dist/tool/plugin/edit.js +99 -99
  434. package/dist/tool/plugin/glob.js +102 -102
  435. package/dist/tool/plugin/grep.js +100 -100
  436. package/dist/tool/plugin/mcp-resource.js +95 -95
  437. package/dist/tool/plugin/opencode.js +87 -87
  438. package/dist/tool/plugin/patch.js +101 -101
  439. package/dist/tool/plugin/question.js +83 -83
  440. package/dist/tool/plugin/read.js +103 -103
  441. package/dist/tool/plugin/shell.js +181 -181
  442. package/dist/tool/plugin/skill.js +91 -91
  443. package/dist/tool/plugin/subagent.js +182 -182
  444. package/dist/tool/plugin/webfetch.js +89 -89
  445. package/dist/tool/plugin/websearch.js +94 -94
  446. package/dist/tool/plugin/write.js +101 -101
  447. package/dist/tool/read-filesystem.js +79 -79
  448. package/dist/tool-output.js +6 -6
  449. package/dist/tool.js +9 -9
  450. package/dist/v1/config/agent.js +6 -6
  451. package/dist/v1/config/command.js +5 -5
  452. package/dist/v1/config/error.js +3 -3
  453. package/dist/v1/config/mcp.js +3 -3
  454. package/dist/v1/config/migrate.js +73 -73
  455. package/dist/v1/config/permission.js +7 -7
  456. package/dist/v1/config/plugin.js +3 -3
  457. package/dist/v1/config/provider.js +3 -3
  458. package/dist/variant.js +73 -73
  459. package/dist/vcs.js +73 -73
  460. package/dist/websearch.js +73 -73
  461. package/dist/wellknown/plugin.js +65 -65
  462. package/dist/wellknown.js +70 -70
  463. package/dist/workspace/driver.js +7 -7
  464. package/dist/workspace.js +71 -71
  465. package/dist/worktree/git.js +4 -4
  466. package/dist/worktree/strategies.js +72 -72
  467. package/dist/worktree.js +80 -80
  468. package/package.json +8 -8
  469. package/dist/chunks/model-fz6md8dw.js +0 -26
  470. package/dist/chunks/model-s3zr8hxy.js +0 -253
  471. /package/dist/chunks/{model-5hx7d1d6.js → model-6xw3seg4.js} +0 -0
  472. /package/dist/chunks/{model-f1q4hcq2.js → model-khxmfjj5.js} +0 -0
  473. /package/dist/chunks/{model-d7hemvnj.js → model-n7gz5fxy.js} +0 -0
  474. /package/dist/chunks/{model-f7ma11rg.js → model-nzs7qp78.js} +0 -0
@@ -3,18 +3,18 @@ import {
3
3
  } from "./model-z5v4ffb3.js";
4
4
  import {
5
5
  WorktreeError2
6
- } from "./model-2ypdw6v4.js";
6
+ } from "./model-hvh251q6.js";
7
7
  import {
8
8
  Slug2
9
9
  } from "./model-gebd4c9n.js";
10
10
  import {
11
- Service85,
12
- node89
13
- } from "./model-edr8mr1d.js";
11
+ Service83,
12
+ node87
13
+ } from "./model-wwncb6zf.js";
14
14
  import {
15
- Service81,
16
- node84
17
- } from "./model-zqm6kvvn.js";
15
+ Service82,
16
+ node86
17
+ } from "./model-qy52ep8z.js";
18
18
  import {
19
19
  ProjectTable2
20
20
  } from "./model-rj3eygr5.js";
@@ -22,23 +22,23 @@ import {
22
22
  WorktreeTable2
23
23
  } from "./model-sa8ekw3f.js";
24
24
  import {
25
- ID16,
25
+ ID17,
26
26
  NotFoundError11
27
- } from "./model-zm14bp5n.js";
27
+ } from "./model-jmkbrx6z.js";
28
28
  import {
29
29
  Ref4
30
- } from "./model-gyksvwm5.js";
30
+ } from "./model-ff251rbv.js";
31
31
  import {
32
- Service69,
33
- node71
34
- } from "./model-stfafkkt.js";
32
+ Service53,
33
+ node55
34
+ } from "./model-rpxwryvh.js";
35
35
  import {
36
36
  DirectoryUnavailableError2,
37
37
  canonical2
38
38
  } from "./model-0vbcp93d.js";
39
39
  import {
40
- Service23
41
- } from "./model-1rd80ksx.js";
40
+ Service20
41
+ } from "./model-g5ppxhgr.js";
42
42
  import {
43
43
  __export
44
44
  } from "./model-9rqn6x4v.js";
@@ -46,22 +46,22 @@ import {
46
46
  // src/worktree.ts
47
47
  var exports_worktree2 = {};
48
48
  __export(exports_worktree2, {
49
- CreateInput: () => CreateInput3,
49
+ CreateInput: () => CreateInput2,
50
50
  DestinationExistsError: () => DestinationExistsError2,
51
51
  DirectoryUnavailableError: () => DirectoryUnavailableError2,
52
- Event: () => Event6,
53
- Info: () => Info4,
52
+ Event: () => Event5,
53
+ Info: () => Info3,
54
54
  InvalidDirectoryError: () => InvalidDirectoryError2,
55
55
  List: () => List2,
56
56
  ListEntry: () => ListEntry3,
57
57
  OperationError: () => OperationError2,
58
58
  RemoveInput: () => RemoveInput2,
59
- Service: () => Service22,
59
+ Service: () => Service19,
60
60
  SourceDirectoryNotFoundError: () => SourceDirectoryNotFoundError2,
61
61
  StrategyID: () => StrategyID2,
62
62
  StrategyUnavailableError: () => StrategyUnavailableError2,
63
63
  Worktree: () => exports_worktree2,
64
- node: () => node25
64
+ node: () => node22
65
65
  });
66
66
  import { Context, Effect, Layer, Schema } from "effect";
67
67
  import { and, asc, desc, eq, isNull, sql } from "drizzle-orm";
@@ -73,13 +73,13 @@ import { AppProcess } from "@opencode/util/process";
73
73
  import { ChildProcess } from "effect/process";
74
74
  import { OperationError as OperationError2 } from "@opencode/schema/worktree";
75
75
  var StrategyID2 = Worktree.StrategyID;
76
- var CreateInput3 = Worktree.CreateInput;
76
+ var CreateInput2 = Worktree.CreateInput;
77
77
  var RemoveInput2 = Worktree.RemoveInput;
78
- var Info4 = Worktree.Info;
78
+ var Info3 = Worktree.Info;
79
79
  var List2 = Worktree.List;
80
80
  var ListEntry3 = Worktree.ListEntry;
81
81
 
82
- class SourceDirectoryNotFoundError2 extends Schema.TaggedError()("Worktree.SourceDirectoryNotFoundError", { projectID: ID16, directory: Schema.optional(AbsolutePath2) }) {
82
+ class SourceDirectoryNotFoundError2 extends Schema.TaggedError()("Worktree.SourceDirectoryNotFoundError", { projectID: ID17, directory: Schema.optional(AbsolutePath2) }) {
83
83
  }
84
84
 
85
85
  class DestinationExistsError2 extends Schema.TaggedError()("Worktree.DestinationExistsError", { directory: AbsolutePath2 }) {
@@ -90,17 +90,17 @@ class InvalidDirectoryError2 extends Schema.TaggedError()("Worktree.InvalidDirec
90
90
 
91
91
  class StrategyUnavailableError2 extends Schema.TaggedError()("Worktree.StrategyUnavailableError", { strategy: StrategyID2 }) {
92
92
  }
93
- var Event6 = Worktree.Event;
93
+ var Event5 = Worktree.Event;
94
94
 
95
- class Service22 extends Context.Service()("@opencode/Worktree") {
95
+ class Service19 extends Context.Service()("@opencode/Worktree") {
96
96
  }
97
- var layer = Layer.effect(Service22, Effect.gen(function* () {
97
+ var layer = Layer.effect(Service19, Effect.gen(function* () {
98
98
  const fs = yield* FSUtil.Service;
99
- const database = yield* Service85;
99
+ const database = yield* Service83;
100
100
  const db = database.db;
101
- const bus = yield* Service81;
101
+ const bus = yield* Service82;
102
102
  const processService = yield* AppProcess.Service;
103
- const locations = yield* Service69;
103
+ const locations = yield* Service53;
104
104
  const project = Effect.fnUntraced(function* (projectID) {
105
105
  const row = yield* db.select().from(ProjectTable2).where(eq(ProjectTable2.id, projectID)).get().pipe(Effect.orDie);
106
106
  if (!row)
@@ -115,11 +115,11 @@ var layer = Layer.effect(Service22, Effect.gen(function* () {
115
115
  const { Plugin } = yield* Effect.promise(() => import("../plugin.js"));
116
116
  const context = yield* locations.contextEffect(Ref4.make({ directory }));
117
117
  yield* Context.get(context, Plugin.Service).awaitActivation;
118
- return Context.get(context, Service23).get();
118
+ return Context.get(context, Service20).get();
119
119
  });
120
120
  const changed = Effect.fnUntraced(function* (projectID, update) {
121
121
  if (update)
122
- yield* bus.publish(Event6.Updated, { projectID });
122
+ yield* bus.publish(Event5.Updated, { projectID });
123
123
  });
124
124
  const ops = {
125
125
  list: Effect.fnUntraced(function* (projectID) {
@@ -246,7 +246,7 @@ var layer = Layer.effect(Service22, Effect.gen(function* () {
246
246
  })).pipe(Effect.orDie);
247
247
  yield* changed(input.projectID, changes.updated.length > 0 || changes.removed.length > 0);
248
248
  }, Effect.scoped);
249
- return Service22.of({
249
+ return Service19.of({
250
250
  list: Effect.fn("Worktree.list")(function* (input) {
251
251
  yield* project(input.projectID);
252
252
  return yield* ops.list(input.projectID);
@@ -256,10 +256,10 @@ var layer = Layer.effect(Service22, Effect.gen(function* () {
256
256
  refresh
257
257
  });
258
258
  }));
259
- var node25 = Node.makeGlobalNode({
260
- service: Service22,
259
+ var node22 = Node.makeGlobalNode({
260
+ service: Service19,
261
261
  layer,
262
- deps: [FSUtil.node, node84, node89, AppProcess.node, node71]
262
+ deps: [FSUtil.node, node86, node87, AppProcess.node, node55]
263
263
  });
264
264
  function operationError(strategy, operation, error) {
265
265
  if (error instanceof WorktreeError2 || error instanceof DirectoryUnavailableError2 || error instanceof Worktree.OperationError)
@@ -269,4 +269,4 @@ function operationError(strategy, operation, error) {
269
269
  });
270
270
  }
271
271
 
272
- export { StrategyID2, CreateInput3, RemoveInput2, Info4, List2, ListEntry3, SourceDirectoryNotFoundError2, DestinationExistsError2, InvalidDirectoryError2, StrategyUnavailableError2, Event6, Service22, node25, exports_worktree2, OperationError2 };
272
+ export { StrategyID2, CreateInput2, RemoveInput2, Info3, List2, ListEntry3, SourceDirectoryNotFoundError2, DestinationExistsError2, InvalidDirectoryError2, StrategyUnavailableError2, Event5, Service19, node22, exports_worktree2, OperationError2 };
@@ -1,22 +1,22 @@
1
1
  import {
2
- Service78
3
- } from "./model-gyksvwm5.js";
2
+ Service79
3
+ } from "./model-ff251rbv.js";
4
4
  import {
5
- ID11,
5
+ ID12,
6
6
  Family2
7
- } from "./model-x804m9tz.js";
7
+ } from "./model-1dds5gcz.js";
8
8
  import {
9
- Service64
10
- } from "./model-n7m069ya.js";
9
+ Service56
10
+ } from "./model-5e81dfca.js";
11
11
  import {
12
- Service77
13
- } from "./model-6w89m9p1.js";
12
+ Service62
13
+ } from "./model-cazcby7s.js";
14
14
  import {
15
15
  spawner2
16
- } from "./model-fxaymqdw.js";
16
+ } from "./model-1w2wqhfv.js";
17
17
  import {
18
18
  foldSettings2
19
- } from "./model-nhyne0rh.js";
19
+ } from "./model-sxkxnm8w.js";
20
20
 
21
21
  // src/plugin/provider/local.ts
22
22
  import { define } from "@opencode/plugin/effect/plugin";
@@ -32,9 +32,9 @@ function createLocalProviderPlugin2(input) {
32
32
  id: input.id,
33
33
  effect: Effect.fn(function* (ctx) {
34
34
  const http = HttpClient.filterStatusOk(yield* HttpClient.HttpClient);
35
- const config = yield* Service64;
36
- const environment = yield* Effect.serviceOption(Service77);
37
- const location = yield* Effect.serviceOption(Service78);
35
+ const config = yield* Service56;
36
+ const environment = yield* Effect.serviceOption(Service62);
37
+ const location = yield* Effect.serviceOption(Service79);
38
38
  const defaultOrigin = origin ?? (shellParserWasm.bash === "" || Option.isSome(location) && location.value.workspaceID !== undefined || Option.isSome(environment) && environment.value.spawner === spawner2 ? undefined : input.origin);
39
39
  const source = { current: configured(yield* config.entries(), input.providerID, defaultOrigin, suffix) };
40
40
  const loaded = { models: [], hash: "[]" };
@@ -63,7 +63,7 @@ function createLocalProviderPlugin2(input) {
63
63
  for (const item of loaded.models) {
64
64
  const spec = input.model(item);
65
65
  providers.models.update(input.providerID, spec.id, (model) => {
66
- model.modelID = ID11.make(spec.id);
66
+ model.modelID = ID12.make(spec.id);
67
67
  model.name = spec.name || spec.id;
68
68
  model.family = spec.family ? Family2.make(spec.family) : undefined;
69
69
  model.capabilities = {
@@ -1,14 +1,14 @@
1
1
  import {
2
- Service85,
3
- node89
4
- } from "./model-edr8mr1d.js";
2
+ Service83,
3
+ node87
4
+ } from "./model-wwncb6zf.js";
5
5
  import {
6
6
  makeUnsafe2
7
- } from "./model-y71avatq.js";
7
+ } from "./model-dpkg50ah.js";
8
8
  import {
9
- Service81,
10
- node84
11
- } from "./model-zqm6kvvn.js";
9
+ Service82,
10
+ node86
11
+ } from "./model-qy52ep8z.js";
12
12
  import {
13
13
  SessionEvent2
14
14
  } from "./model-ec1grn59.js";
@@ -17,7 +17,7 @@ import {
17
17
  } from "./model-gftt206x.js";
18
18
  import {
19
19
  SessionSchema2
20
- } from "./model-b1a1n7cj.js";
20
+ } from "./model-my4zabxr.js";
21
21
  import {
22
22
  SessionMessageTable2,
23
23
  SessionInboxTable2
@@ -32,12 +32,12 @@ __export(exports_inbox, {
32
32
  Compaction: () => Compaction2,
33
33
  CompactionPayload: () => CompactionPayload2,
34
34
  Delivery: () => Delivery2,
35
- Info: () => Info9,
35
+ Info: () => Info8,
36
36
  Item: () => Item2,
37
37
  LifecycleConflict: () => LifecycleConflict2,
38
38
  Move: () => Move2,
39
39
  MovePayload: () => MovePayload2,
40
- Service: () => Service45,
40
+ Service: () => Service47,
41
41
  SessionInbox: () => exports_inbox,
42
42
  Synthetic: () => Synthetic2,
43
43
  SyntheticPayload: () => SyntheticPayload2,
@@ -45,12 +45,12 @@ __export(exports_inbox, {
45
45
  UserPayload: () => UserPayload2,
46
46
  find: () => find2,
47
47
  has: () => has2,
48
- layer: () => layer18,
48
+ layer: () => layer20,
49
49
  list: () => list3,
50
50
  make: () => make17,
51
51
  moveIDs: () => moveIDs2,
52
52
  nextPromotable: () => nextPromotable2,
53
- node: () => node47,
53
+ node: () => node49,
54
54
  projectAdmitted: () => projectAdmitted2,
55
55
  projectCancelled: () => projectCancelled2,
56
56
  projectDelivered: () => projectDelivered2,
@@ -65,7 +65,7 @@ import {
65
65
  Compaction as Compaction2,
66
66
  CompactionPayload as CompactionPayload2,
67
67
  Delivery as Delivery2,
68
- Info as Info9,
68
+ Info as Info8,
69
69
  Item as Item2,
70
70
  Move as Move2,
71
71
  MovePayload as MovePayload2,
@@ -151,12 +151,12 @@ var promotedFromMessage = Effect.fn("SessionInbox.promotedFromMessage")(function
151
151
  return yield* new LifecycleConflict2({ id });
152
152
  });
153
153
 
154
- class Service45 extends Context.Service()("@opencode/SessionInbox") {
154
+ class Service47 extends Context.Service()("@opencode/SessionInbox") {
155
155
  }
156
156
  var make17 = Effect.fn("SessionInbox.make")(function* () {
157
- const database = yield* Service85;
157
+ const database = yield* Service83;
158
158
  const db = database.db;
159
- const bus = yield* Service81;
159
+ const bus = yield* Service82;
160
160
  const reconcile = Effect.fn("SessionInbox.reconcile")(function* (request) {
161
161
  const existing = (yield* find2(db, request.id)) ?? (yield* promotedFromMessage(db, request.sessionID, request.id, request.delivery));
162
162
  if (existing === undefined)
@@ -173,7 +173,7 @@ var make17 = Effect.fn("SessionInbox.make")(function* () {
173
173
  inboxID: request.id,
174
174
  sessionID: request.sessionID,
175
175
  item: request.item
176
- }).pipe(Effect.map((event) => Info9.make({
176
+ }).pipe(Effect.map((event) => Info8.make({
177
177
  id: request.id,
178
178
  sessionID: request.sessionID,
179
179
  time: { created: DateTime.makeUnsafe(event.created) },
@@ -227,8 +227,8 @@ var make17 = Effect.fn("SessionInbox.make")(function* () {
227
227
  queue
228
228
  };
229
229
  });
230
- var layer18 = Layer.effect(Service45, make17());
231
- var node47 = makeGlobalNode({ service: Service45, layer: layer18, deps: [node89, node84] });
230
+ var layer20 = Layer.effect(Service47, make17());
231
+ var node49 = makeGlobalNode({ service: Service47, layer: layer20, deps: [node87, node86] });
232
232
  var projectAdmitted2 = Effect.fn("SessionInbox.projectAdmitted")(function* (db, request) {
233
233
  const message = yield* db.select({ id: SessionMessageTable2.id }).from(SessionMessageTable2).where(eq(SessionMessageTable2.id, request.id)).get().pipe(Effect.orDie);
234
234
  if (message !== undefined)
@@ -326,4 +326,4 @@ var pendingSteers = (db, sessionID) => db.select().from(SessionInboxTable2).wher
326
326
  return rows;
327
327
  }));
328
328
 
329
- export { Compaction2, CompactionPayload2, Delivery2, Info9, Item2, Move2, MovePayload2, Synthetic2, SyntheticPayload2, User2, UserPayload2, serialized2, LifecycleConflict2, find2, Service45, make17, layer18, node47, projectAdmitted2, projectDelivered2, projectCancelled2, projectDeliveryChanged2, list3, moveIDs2, nextPromotable2, has2, promote2, exports_inbox };
329
+ export { Compaction2, CompactionPayload2, Delivery2, Info8, Item2, Move2, MovePayload2, Synthetic2, SyntheticPayload2, User2, UserPayload2, serialized2, LifecycleConflict2, find2, Service47, make17, layer20, node49, projectAdmitted2, projectDelivered2, projectCancelled2, projectDeliveryChanged2, list3, moveIDs2, nextPromotable2, has2, promote2, exports_inbox };
@@ -13,7 +13,7 @@ __export(exports_repository, {
13
13
  cachePath: () => cachePath2,
14
14
  isFile: () => isFile2,
15
15
  isRemote: () => isRemote2,
16
- parse: () => parse4,
16
+ parse: () => parse5,
17
17
  parseRemote: () => parseRemote2,
18
18
  same: () => same2,
19
19
  validateBranch: () => validateBranch3
@@ -39,7 +39,7 @@ class InvalidBranchError3 extends Schema.TaggedError()("RepositoryInvalidBranchE
39
39
  message: Schema.String
40
40
  }) {
41
41
  }
42
- function parse4(input) {
42
+ function parse5(input) {
43
43
  const cleaned = normalizeInput(input);
44
44
  if (!cleaned)
45
45
  return;
@@ -72,7 +72,7 @@ function parse4(input) {
72
72
  }
73
73
  }
74
74
  function parseRemote2(input) {
75
- const reference = parse4(input);
75
+ const reference = parse5(input);
76
76
  if (!reference) {
77
77
  throw new InvalidReferenceError2({
78
78
  repository: input,
@@ -172,4 +172,4 @@ function buildFile(input) {
172
172
  };
173
173
  }
174
174
 
175
- export { InvalidReferenceError2, UnsupportedLocalRepositoryError2, InvalidBranchError3, parse4, parseRemote2, validateBranch3, isFile2, isRemote2, cachePath2, cacheIdentity2, same2, exports_repository };
175
+ export { InvalidReferenceError2, UnsupportedLocalRepositoryError2, InvalidBranchError3, parse5, parseRemote2, validateBranch3, isFile2, isRemote2, cachePath2, cacheIdentity2, same2, exports_repository };
@@ -10,7 +10,7 @@ var exports_retry = {};
10
10
  __export(exports_retry, {
11
11
  SessionRunnerRetry: () => exports_retry,
12
12
  isRetryable: () => isRetryable2,
13
- make: () => make10,
13
+ make: () => make4,
14
14
  policy: () => policy2
15
15
  });
16
16
  import { isRetryable as isRetryable2 } from "@opencode/ai";
@@ -60,7 +60,7 @@ var policy2 = (sessionID) => Effect.gen(function* () {
60
60
  return { retry: true, attempt, delay: normalized };
61
61
  });
62
62
  });
63
- var make10 = (bus, sessionID) => Effect.gen(function* () {
63
+ var make4 = (bus, sessionID) => Effect.gen(function* () {
64
64
  const decide = yield* policy2(sessionID);
65
65
  const wait = (input) => Effect.gen(function* () {
66
66
  const scheduled = yield* Clock.currentTimeMillis;
@@ -77,4 +77,4 @@ var make10 = (bus, sessionID) => Effect.gen(function* () {
77
77
  return { decide, wait };
78
78
  });
79
79
 
80
- export { isRetryable2, policy2, make10, exports_retry };
80
+ export { isRetryable2, policy2, make4, exports_retry };
@@ -1,7 +1,7 @@
1
1
  import {
2
- Service85,
3
- node89
4
- } from "./model-edr8mr1d.js";
2
+ Service83,
3
+ node87
4
+ } from "./model-wwncb6zf.js";
5
5
  import {
6
6
  PermissionTable2
7
7
  } from "./model-rert0e01.js";
@@ -13,20 +13,20 @@ import {
13
13
  var exports_saved = {};
14
14
  __export(exports_saved, {
15
15
  AddInput: () => AddInput2,
16
- ID: () => ID7,
17
- Info: () => Info12,
16
+ ID: () => ID9,
17
+ Info: () => Info18,
18
18
  ListInput: () => ListInput5,
19
19
  PermissionSaved: () => exports_saved,
20
- Service: () => Service60,
21
- node: () => node62
20
+ Service: () => Service66,
21
+ node: () => node70
22
22
  });
23
23
  import { eq } from "drizzle-orm";
24
24
  import { Context, DateTime, Effect, Layer, Schema } from "effect";
25
25
  import { Project } from "@opencode/schema/project";
26
26
  import { makeGlobalNode } from "@opencode/util/effect/app-node";
27
27
  import { PermissionSaved } from "@opencode/schema/permission-saved";
28
- var ID7 = PermissionSaved.ID;
29
- var Info12 = PermissionSaved.Info;
28
+ var ID9 = PermissionSaved.ID;
29
+ var Info18 = PermissionSaved.Info;
30
30
  var ListInput5 = Schema.Struct({
31
31
  projectID: Project.ID.pipe(Schema.optional)
32
32
  }).annotate({ identifier: "PermissionSaved.ListInput" });
@@ -36,10 +36,10 @@ var AddInput2 = Schema.Struct({
36
36
  resources: Schema.Array(Schema.String)
37
37
  }).annotate({ identifier: "PermissionSaved.AddInput" });
38
38
 
39
- class Service60 extends Context.Service()("@opencode/PermissionSaved") {
39
+ class Service66 extends Context.Service()("@opencode/PermissionSaved") {
40
40
  }
41
- var layer = Layer.effect(Service60, Effect.gen(function* () {
42
- const db = (yield* Service85).db;
41
+ var layer = Layer.effect(Service66, Effect.gen(function* () {
42
+ const db = (yield* Service83).db;
43
43
  const list = Effect.fnUntraced(function* (input) {
44
44
  const rows = yield* db.select().from(PermissionTable2).where(input?.projectID ? eq(PermissionTable2.project_id, input.projectID) : undefined).all().pipe(Effect.orDie);
45
45
  return rows.map((row) => ({
@@ -57,7 +57,7 @@ var layer = Layer.effect(Service60, Effect.gen(function* () {
57
57
  if (!input.resources.length)
58
58
  return;
59
59
  yield* db.insert(PermissionTable2).values(input.resources.map((resource) => ({
60
- id: ID7.create(),
60
+ id: ID9.create(),
61
61
  project_id: input.projectID,
62
62
  action: input.action,
63
63
  resource
@@ -66,8 +66,8 @@ var layer = Layer.effect(Service60, Effect.gen(function* () {
66
66
  const remove = Effect.fn("PermissionSaved.remove")(function* (id) {
67
67
  yield* db.delete(PermissionTable2).where(eq(PermissionTable2.id, id)).run().pipe(Effect.orDie);
68
68
  });
69
- return Service60.of({ list, add, remove });
69
+ return Service66.of({ list, add, remove });
70
70
  }));
71
- var node62 = makeGlobalNode({ service: Service60, layer, deps: [node89] });
71
+ var node70 = makeGlobalNode({ service: Service66, layer, deps: [node87] });
72
72
 
73
- export { ID7, Info12, ListInput5, AddInput2, Service60, node62, exports_saved };
73
+ export { ID9, Info18, ListInput5, AddInput2, Service66, node70, exports_saved };
@@ -9,22 +9,22 @@ import {
9
9
  var exports_managed_policy = {};
10
10
  __export(exports_managed_policy, {
11
11
  ManagedPolicy: () => exports_managed_policy,
12
- Service: () => Service75,
12
+ Service: () => Service84,
13
13
  decision: () => decision2,
14
- layer: () => layer27,
15
- node: () => node78,
14
+ layer: () => layer28,
15
+ node: () => node88,
16
16
  statements: () => statements2
17
17
  });
18
18
  import { isDeepStrictEqual } from "node:util";
19
19
  import { Context, Effect, Layer, PubSub, Stream } from "effect";
20
20
  import { makeGlobalNode } from "@opencode/util/effect/app-node";
21
21
 
22
- class Service75 extends Context.Service()("@opencode/ManagedPolicy") {
22
+ class Service84 extends Context.Service()("@opencode/ManagedPolicy") {
23
23
  }
24
- var layer27 = Layer.effect(Service75, Effect.gen(function* () {
24
+ var layer28 = Layer.effect(Service84, Effect.gen(function* () {
25
25
  const changes = yield* PubSub.unbounded();
26
26
  const state = { current: { statements: [] } };
27
- return Service75.of({
27
+ return Service84.of({
28
28
  changes: () => Stream.fromPubSub(changes),
29
29
  current: () => state.current,
30
30
  set: (next) => Effect.gen(function* () {
@@ -36,7 +36,7 @@ var layer27 = Layer.effect(Service75, Effect.gen(function* () {
36
36
  })
37
37
  });
38
38
  }));
39
- var node78 = makeGlobalNode({ service: Service75, layer: layer27, deps: [] });
39
+ var node88 = makeGlobalNode({ service: Service84, layer: layer28, deps: [] });
40
40
  function statements2(entries, organization) {
41
41
  return [
42
42
  ...entries.filter((entry) => entry.type === "document").toReversed().flatMap((entry) => entry.info.policies ?? []).map((policy) => ({ ...policy, message: "Blocked by configuration policy" })),
@@ -50,4 +50,4 @@ function decision2(policies, action, resource) {
50
50
  return policies.findLast((policy) => policy.action === action && match2(resource, policy.resource))?.effect ?? "allow";
51
51
  }
52
52
 
53
- export { Service75, layer27, node78, statements2, decision2, exports_managed_policy };
53
+ export { Service84, layer28, node88, statements2, decision2, exports_managed_policy };