@opencode/core 0.0.0-dev-80 → 0.0.0-dev-81

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 (821) hide show
  1. package/dist/account/sql.js +1 -1
  2. package/dist/agent.js +89 -89
  3. package/dist/aisdk-native.js +97 -97
  4. package/dist/aisdk.js +103 -103
  5. package/dist/app.js +9 -9
  6. package/dist/bus.js +79 -79
  7. package/dist/chunks/{ripgrep-aj7mw0zk.js → generate-034tev2y.js} +2 -2
  8. package/dist/chunks/{ripgrep-k28m6mdm.js → generate-03efvwc7.js} +12 -12
  9. package/dist/chunks/{ripgrep-cb54j1zr.js → generate-09a8m3xd.js} +9 -9
  10. package/dist/chunks/{ripgrep-87cy3nxk.js → generate-0brwp79y.js} +14 -14
  11. package/dist/chunks/{ripgrep-df17qpd9.js → generate-0j37w4ym.js} +4 -4
  12. package/dist/chunks/{ripgrep-56hhdn6r.js → generate-0vpw1p67.js} +15 -15
  13. package/dist/chunks/{ripgrep-jsvd7yjj.js → generate-0yrgkn6z.js} +21 -21
  14. package/dist/chunks/{ripgrep-x8nvjgx0.js → generate-11hfp36g.js} +4 -4
  15. package/dist/chunks/{ripgrep-g1ttnxq8.js → generate-138apfz4.js} +41 -41
  16. package/dist/chunks/{ripgrep-8d2bz6m6.js → generate-160yv0cs.js} +8 -8
  17. package/dist/chunks/{ripgrep-med93trz.js → generate-1ce0rtfx.js} +4 -4
  18. package/dist/chunks/{ripgrep-fjf4pq9j.js → generate-1d6rqfwz.js} +15 -15
  19. package/dist/chunks/{ripgrep-27w5k9zf.js → generate-1ep2p91f.js} +2 -2
  20. package/dist/chunks/{ripgrep-rsjqfdc9.js → generate-1gpknkjr.js} +1 -1
  21. package/dist/chunks/{ripgrep-c3mymrd0.js → generate-1hkqnyxs.js} +5 -5
  22. package/dist/chunks/{ripgrep-s9j2kwh6.js → generate-1p5r6cjt.js} +45 -45
  23. package/dist/chunks/{ripgrep-sqbb0ctm.js → generate-1q5awywt.js} +5 -5
  24. package/dist/chunks/{ripgrep-pfj0xs0p.js → generate-1w4xpz6a.js} +21 -21
  25. package/dist/chunks/{ripgrep-1x2knyw4.js → generate-1x2knyw4.js} +1 -1
  26. package/dist/chunks/{ripgrep-9pskqgbs.js → generate-1yebjb7n.js} +21 -21
  27. package/dist/chunks/{ripgrep-1yq9hg58.js → generate-1yq9hg58.js} +1 -1
  28. package/dist/chunks/{ripgrep-204s3925.js → generate-204s3925.js} +1 -1
  29. package/dist/chunks/{ripgrep-2mdz3tk1.js → generate-20ax9mvp.js} +15 -15
  30. package/dist/chunks/{ripgrep-6d3rx8wt.js → generate-20yb03sy.js} +25 -25
  31. package/dist/chunks/{ripgrep-8k2vnwwb.js → generate-21gczqff.js} +15 -15
  32. package/dist/chunks/{ripgrep-r5493qw4.js → generate-22b1x2mz.js} +18 -18
  33. package/dist/chunks/{ripgrep-5b4c6ssz.js → generate-251v4ac3.js} +30 -30
  34. package/dist/chunks/{ripgrep-7fx6peza.js → generate-25rhbghy.js} +5 -5
  35. package/dist/chunks/{ripgrep-9at5fq9s.js → generate-2gp0ejb3.js} +13 -13
  36. package/dist/chunks/{ripgrep-e2ne77ac.js → generate-2jrrfqe1.js} +4 -4
  37. package/dist/chunks/{ripgrep-cxy0d1dt.js → generate-2k5h4fp7.js} +1 -1
  38. package/dist/chunks/{ripgrep-32pwgmem.js → generate-2r5swsc6.js} +13 -13
  39. package/dist/chunks/{ripgrep-6rdptfg1.js → generate-2xh3b742.js} +6 -6
  40. package/dist/chunks/{ripgrep-hsxwhxza.js → generate-2zp4fvvj.js} +42 -42
  41. package/dist/chunks/{ripgrep-gfrk9heb.js → generate-301e04c8.js} +18 -18
  42. package/dist/chunks/{ripgrep-xn661xyh.js → generate-36639cz4.js} +23 -23
  43. package/dist/chunks/{ripgrep-kz0q6sc1.js → generate-3bpzsehq.js} +18 -18
  44. package/dist/chunks/{ripgrep-3hepkmqq.js → generate-3hepkmqq.js} +1 -1
  45. package/dist/chunks/{ripgrep-rfcwtbbn.js → generate-3n7cxz37.js} +27 -27
  46. package/dist/chunks/{ripgrep-3nnrz6f6.js → generate-3nnrz6f6.js} +1 -1
  47. package/dist/chunks/{ripgrep-5rcvdxf6.js → generate-3p1ghjfc.js} +3 -3
  48. package/dist/chunks/{ripgrep-v4vw7d5e.js → generate-40smdzyz.js} +22 -22
  49. package/dist/chunks/{ripgrep-7c7a89na.js → generate-40ykd73j.js} +5 -5
  50. package/dist/chunks/generate-47mgcevd.js +18 -0
  51. package/dist/chunks/{ripgrep-yhnsyv94.js → generate-4gry5n0p.js} +8 -8
  52. package/dist/chunks/{ripgrep-rvdapjqy.js → generate-4p3cqz3x.js} +11 -11
  53. package/dist/chunks/{ripgrep-4pyp9zr9.js → generate-4pyp9zr9.js} +1 -1
  54. package/dist/chunks/{ripgrep-y00x4xpa.js → generate-4tqs0jzk.js} +4 -4
  55. package/dist/chunks/{ripgrep-4v008n1t.js → generate-4v008n1t.js} +1 -1
  56. package/dist/chunks/{ripgrep-yby3zgg4.js → generate-4x344z2c.js} +2 -2
  57. package/dist/chunks/{ripgrep-mxbg502x.js → generate-500djfy4.js} +43 -43
  58. package/dist/chunks/{ripgrep-4s6kdcz7.js → generate-53antfq0.js} +34 -34
  59. package/dist/chunks/{ripgrep-088pd99w.js → generate-54vd48rk.js} +38 -38
  60. package/dist/chunks/{ripgrep-yzhzc5rz.js → generate-54x4knwr.js} +14 -14
  61. package/dist/chunks/{ripgrep-369akvbe.js → generate-5h88a2js.js} +22 -22
  62. package/dist/chunks/{ripgrep-5m9w47nd.js → generate-5m9w47nd.js} +1 -1
  63. package/dist/chunks/{ripgrep-6ttkwnky.js → generate-5n5cq6dk.js} +5 -5
  64. package/dist/chunks/{ripgrep-3tbr4cqx.js → generate-5p98y19k.js} +92 -92
  65. package/dist/chunks/{ripgrep-kn05yypj.js → generate-5zch7wr3.js} +33 -33
  66. package/dist/chunks/{ripgrep-ar2j3j0f.js → generate-61ennm6n.js} +4 -4
  67. package/dist/chunks/{ripgrep-atft9rda.js → generate-63mgg1rp.js} +11 -11
  68. package/dist/chunks/{ripgrep-egbe5b71.js → generate-6712xt67.js} +12 -12
  69. package/dist/chunks/{ripgrep-c4rtwfmc.js → generate-67scqdth.js} +14 -14
  70. package/dist/chunks/{ripgrep-4bj5kpb7.js → generate-6ak84kja.js} +6 -6
  71. package/dist/chunks/{ripgrep-wj35k8fd.js → generate-6dwbj699.js} +18 -18
  72. package/dist/chunks/{ripgrep-6esdw8yj.js → generate-6esdw8yj.js} +1 -1
  73. package/dist/chunks/{ripgrep-2p6ra54c.js → generate-6f3v2fef.js} +47 -47
  74. package/dist/chunks/{ripgrep-18g90bpv.js → generate-6twykydk.js} +9 -9
  75. package/dist/chunks/{ripgrep-hetdxzf5.js → generate-6yfzf5e6.js} +6 -6
  76. package/dist/chunks/{ripgrep-af5csmsa.js → generate-71wjfbxa.js} +36 -36
  77. package/dist/chunks/{ripgrep-jjk3mcr6.js → generate-72sg82ve.js} +39 -39
  78. package/dist/chunks/{ripgrep-nah043kf.js → generate-770pw0s1.js} +4 -4
  79. package/dist/chunks/{ripgrep-whpc6sfg.js → generate-79nptycn.js} +5 -5
  80. package/dist/chunks/{ripgrep-7bmhse3q.js → generate-7bmhse3q.js} +1 -1
  81. package/dist/chunks/{ripgrep-beftacqj.js → generate-7h4tq4n1.js} +11 -11
  82. package/dist/chunks/{ripgrep-fe9sakca.js → generate-7w1eqnvf.js} +27 -27
  83. package/dist/chunks/{ripgrep-7w2ypzdf.js → generate-7w2ypzdf.js} +1 -1
  84. package/dist/chunks/{ripgrep-80svsvjd.js → generate-7wemp1j9.js} +3 -3
  85. package/dist/chunks/{ripgrep-s01r1pv0.js → generate-7x1s9yws.js} +47 -47
  86. package/dist/chunks/{ripgrep-xbazz2d9.js → generate-8ekhwd22.js} +11 -11
  87. package/dist/chunks/{ripgrep-wsh0m2bq.js → generate-8essger0.js} +11 -11
  88. package/dist/chunks/{ripgrep-t2yw8h65.js → generate-8g8pwsx1.js} +19 -19
  89. package/dist/chunks/{ripgrep-e8e8nyhn.js → generate-8hesv9dy.js} +9 -9
  90. package/dist/chunks/{ripgrep-jfwapypb.js → generate-8n33y3k3.js} +32 -32
  91. package/dist/chunks/{ripgrep-8wtp7s3z.js → generate-8wtp7s3z.js} +1 -1
  92. package/dist/chunks/{ripgrep-g7esga4v.js → generate-8y4jps98.js} +7 -7
  93. package/dist/chunks/{ripgrep-90zstvax.js → generate-90zstvax.js} +1 -1
  94. package/dist/chunks/{ripgrep-f40h8bb4.js → generate-91p4ggbh.js} +27 -27
  95. package/dist/chunks/{ripgrep-1k1debk9.js → generate-9c8mgkwd.js} +21 -21
  96. package/dist/chunks/{ripgrep-d6x0x4gv.js → generate-9d7mqhyt.js} +9 -9
  97. package/dist/chunks/{ripgrep-eyemdhec.js → generate-9nzqwf7d.js} +13 -13
  98. package/dist/chunks/{ripgrep-egvqapfn.js → generate-9r6pmcfc.js} +15 -15
  99. package/dist/chunks/{ripgrep-znpwn00m.js → generate-9t0hde1r.js} +6 -6
  100. package/dist/chunks/{ripgrep-dp66fs17.js → generate-9t2khtsw.js} +11 -11
  101. package/dist/chunks/{ripgrep-ekj5s85x.js → generate-9w44n7hp.js} +42 -42
  102. package/dist/chunks/{ripgrep-bvysct2v.js → generate-a38kcqy6.js} +4 -4
  103. package/dist/chunks/{ripgrep-whwj36b7.js → generate-a5rsj065.js} +28 -28
  104. package/dist/chunks/{ripgrep-avm9nspx.js → generate-aed20f0x.js} +22 -22
  105. package/dist/chunks/{ripgrep-gtgtppsz.js → generate-afb5aatv.js} +6 -6
  106. package/dist/chunks/{ripgrep-0g9tw212.js → generate-akqe8dt6.js} +21 -21
  107. package/dist/chunks/{ripgrep-7fdjd8sw.js → generate-apyew4sh.js} +16 -16
  108. package/dist/chunks/{ripgrep-h5qpngq0.js → generate-aq5yna8t.js} +23 -23
  109. package/dist/chunks/{ripgrep-waaaz1pk.js → generate-as0atjke.js} +88 -88
  110. package/dist/chunks/{ripgrep-n441rgj1.js → generate-axp9e7dj.js} +19 -19
  111. package/dist/chunks/{ripgrep-3cbjf1nt.js → generate-ayjs7tqn.js} +2 -2
  112. package/dist/chunks/{ripgrep-7v7pq9bn.js → generate-b5kdkb71.js} +22 -22
  113. package/dist/chunks/{ripgrep-b6vsg801.js → generate-b6vsg801.js} +2 -2
  114. package/dist/chunks/{ripgrep-p7jhty20.js → generate-bbba65ws.js} +22 -22
  115. package/dist/chunks/{ripgrep-bz7kwm0q.js → generate-be81zkxx.js} +4 -4
  116. package/dist/chunks/{ripgrep-kkew1p9e.js → generate-bh1et42v.js} +6 -6
  117. package/dist/chunks/{ripgrep-26kaq2yd.js → generate-br8sx1gf.js} +27 -27
  118. package/dist/chunks/{ripgrep-5s0mcww8.js → generate-brk3g9gh.js} +34 -34
  119. package/dist/chunks/{ripgrep-xd9cc171.js → generate-bstexjd6.js} +5 -5
  120. package/dist/chunks/{ripgrep-9j0qcbqj.js → generate-c3e7yfrv.js} +14 -14
  121. package/dist/chunks/{ripgrep-7vgs011g.js → generate-c5gtzg91.js} +22 -22
  122. package/dist/chunks/{ripgrep-tqgfaemp.js → generate-cnf0gdnp.js} +16 -16
  123. package/dist/chunks/{ripgrep-yjk9nwe0.js → generate-cpnzy11t.js} +14 -14
  124. package/dist/chunks/{ripgrep-dqdq9hrz.js → generate-cr86k73f.js} +5 -5
  125. package/dist/chunks/{ripgrep-wcxk9yeq.js → generate-crfddmzc.js} +8 -8
  126. package/dist/chunks/{ripgrep-58t0zvek.js → generate-csmn30a6.js} +18 -18
  127. package/dist/chunks/{ripgrep-0ak2x9h8.js → generate-cwbxe8yb.js} +330 -330
  128. package/dist/chunks/{ripgrep-cwrgdav8.js → generate-cwrgdav8.js} +2 -2
  129. package/dist/chunks/{ripgrep-b134vsz7.js → generate-cy3hxfvf.js} +7 -7
  130. package/dist/chunks/{ripgrep-d4v9tmah.js → generate-d4v9tmah.js} +2 -2
  131. package/dist/chunks/{ripgrep-9np782jn.js → generate-d5drkmka.js} +29 -29
  132. package/dist/chunks/{ripgrep-s6qcrcda.js → generate-dcqept39.js} +49 -49
  133. package/dist/chunks/{ripgrep-fczcv4ax.js → generate-dfrvr67t.js} +4 -4
  134. package/dist/chunks/{ripgrep-k7ngd8gp.js → generate-ds023f62.js} +43 -43
  135. package/dist/chunks/{ripgrep-dt77769w.js → generate-dt77769w.js} +1 -1
  136. package/dist/chunks/{ripgrep-94r7trmv.js → generate-e38cwtn4.js} +14 -14
  137. package/dist/chunks/{ripgrep-e834z07m.js → generate-e834z07m.js} +1 -1
  138. package/dist/chunks/{ripgrep-xtd7xn7c.js → generate-e8gkemrs.js} +16 -16
  139. package/dist/chunks/{ripgrep-qnghve6e.js → generate-ez1g32xq.js} +8 -8
  140. package/dist/chunks/{ripgrep-4m70se6x.js → generate-f0wnzmyw.js} +21 -21
  141. package/dist/chunks/{ripgrep-b24mhxf9.js → generate-f62s2454.js} +18 -18
  142. package/dist/chunks/generate-f8t92yxe.js +26 -0
  143. package/dist/chunks/{ripgrep-g60sf386.js → generate-fbbqkjna.js} +15 -15
  144. package/dist/chunks/{ripgrep-fffv3p7h.js → generate-fffv3p7h.js} +1 -1
  145. package/dist/chunks/{ripgrep-fg9p65nk.js → generate-fg9p65nk.js} +2 -2
  146. package/dist/chunks/{ripgrep-zj9d1drk.js → generate-fhc9sedx.js} +8 -8
  147. package/dist/chunks/{ripgrep-n1ebme49.js → generate-fvw7fpk2.js} +7 -7
  148. package/dist/chunks/{ripgrep-pt95v14f.js → generate-g3t4yj1z.js} +11 -11
  149. package/dist/chunks/{ripgrep-v1stdd41.js → generate-g7e5n1s9.js} +22 -22
  150. package/dist/chunks/{ripgrep-khv4yf1p.js → generate-g9h88g1w.js} +9 -9
  151. package/dist/chunks/{ripgrep-wqwapjjj.js → generate-gbnxd7gn.js} +12 -12
  152. package/dist/chunks/{ripgrep-2ab3aktw.js → generate-gbqwd2zm.js} +16 -16
  153. package/dist/chunks/{ripgrep-ep59zg61.js → generate-gg8p9cgs.js} +3 -3
  154. package/dist/chunks/{ripgrep-szez8t3h.js → generate-gnef790b.js} +45 -45
  155. package/dist/chunks/{ripgrep-3w5nebbj.js → generate-gqvm7anc.js} +20 -20
  156. package/dist/chunks/{ripgrep-mh86pja4.js → generate-gwx54z98.js} +28 -28
  157. package/dist/chunks/{ripgrep-f2zj0t6k.js → generate-h2vbff59.js} +19 -19
  158. package/dist/chunks/{ripgrep-mnjz2ecc.js → generate-h5j7qrbp.js} +30 -30
  159. package/dist/chunks/{ripgrep-hdfrs5mg.js → generate-hdfrs5mg.js} +2 -2
  160. package/dist/chunks/{ripgrep-ncqtsx5w.js → generate-hfj3jdg6.js} +20 -20
  161. package/dist/chunks/{ripgrep-hpg1pkwy.js → generate-hpg1pkwy.js} +1 -1
  162. package/dist/chunks/{ripgrep-d2k0mtej.js → generate-htfy1f57.js} +8 -8
  163. package/dist/chunks/{ripgrep-ef7fp8z8.js → generate-j08vsdds.js} +11 -11
  164. package/dist/chunks/{ripgrep-ese4m9k3.js → generate-j3x9csx9.js} +15 -15
  165. package/dist/chunks/{ripgrep-mhvjr1t0.js → generate-j9e1a4db.js} +11 -11
  166. package/dist/chunks/{ripgrep-vbjqtebd.js → generate-j9krqxqk.js} +11 -11
  167. package/dist/chunks/{ripgrep-jfaecv01.js → generate-jfaecv01.js} +1 -1
  168. package/dist/chunks/{ripgrep-wakh2edy.js → generate-jh3ekwcy.js} +18 -18
  169. package/dist/chunks/{ripgrep-smfe966e.js → generate-jhbdwcm4.js} +24 -24
  170. package/dist/chunks/{ripgrep-k1r1j926.js → generate-jsq7ewwj.js} +185 -185
  171. package/dist/chunks/{ripgrep-jtnps1zs.js → generate-jtnps1zs.js} +2 -2
  172. package/dist/chunks/{ripgrep-5ac7ycjy.js → generate-k0gkqvt1.js} +11 -11
  173. package/dist/chunks/{ripgrep-6gchybz4.js → generate-k0n1bgzs.js} +17 -17
  174. package/dist/chunks/{ripgrep-8xdd5vcj.js → generate-k0ysn4xj.js} +33 -33
  175. package/dist/chunks/{ripgrep-z83xd19b.js → generate-k3yt60zb.js} +10 -10
  176. package/dist/chunks/{ripgrep-k814nvkf.js → generate-k814nvkf.js} +1 -1
  177. package/dist/chunks/{ripgrep-qqg9c0kv.js → generate-kd4chd64.js} +7 -7
  178. package/dist/chunks/{ripgrep-1ax49313.js → generate-khsakms0.js} +30 -30
  179. package/dist/chunks/{ripgrep-ak3gvmya.js → generate-kkdts8xr.js} +15 -15
  180. package/dist/chunks/{ripgrep-s2rjrqgv.js → generate-kn76f024.js} +29 -29
  181. package/dist/chunks/{ripgrep-aqkr4v1j.js → generate-ksdhek8b.js} +25 -25
  182. package/dist/chunks/{ripgrep-kt3bjfbg.js → generate-kt3bjfbg.js} +1 -1
  183. package/dist/chunks/{ripgrep-2c98r4e2.js → generate-kwvnq2ts.js} +14 -14
  184. package/dist/chunks/{ripgrep-m1714858.js → generate-m1714858.js} +1 -1
  185. package/dist/chunks/{ripgrep-46wzcrep.js → generate-m2th4j2b.js} +9 -9
  186. package/dist/chunks/{ripgrep-9hfpmwpz.js → generate-m32vg8vz.js} +17 -17
  187. package/dist/chunks/{ripgrep-pbcm2cp0.js → generate-m3vm7evr.js} +31 -31
  188. package/dist/chunks/{ripgrep-m9w0rfyh.js → generate-m9w0rfyh.js} +1 -1
  189. package/dist/chunks/{ripgrep-jce146zy.js → generate-mfrr2svg.js} +33 -33
  190. package/dist/chunks/{ripgrep-0g35qp0e.js → generate-mfxp7adw.js} +11 -11
  191. package/dist/chunks/{ripgrep-qkqjbc48.js → generate-mqe7nf5n.js} +3 -3
  192. package/dist/chunks/{ripgrep-s7k6069s.js → generate-mqwrzhmg.js} +18 -18
  193. package/dist/chunks/{ripgrep-kd78bhya.js → generate-mr14th8x.js} +14 -14
  194. package/dist/chunks/{ripgrep-h15brmzx.js → generate-mvj3t52g.js} +9 -9
  195. package/dist/chunks/{ripgrep-8whp40kv.js → generate-my4zabxr.js} +3 -3
  196. package/dist/chunks/{ripgrep-axb490gr.js → generate-ne4tt1ep.js} +9 -9
  197. package/dist/chunks/{ripgrep-6gkj1px0.js → generate-njamm2cm.js} +12 -12
  198. package/dist/chunks/{ripgrep-bhak5syd.js → generate-njmvt0nj.js} +4 -4
  199. package/dist/chunks/{ripgrep-m8c2jzgg.js → generate-njwjh564.js} +4 -4
  200. package/dist/chunks/{ripgrep-xmdremne.js → generate-nmtbp73c.js} +5 -5
  201. package/dist/chunks/{ripgrep-70ha973v.js → generate-nnt30w3v.js} +8 -8
  202. package/dist/chunks/{ripgrep-v3vj6w0p.js → generate-ntp0m708.js} +37 -37
  203. package/dist/chunks/{ripgrep-w5q9nec7.js → generate-nvfej1dx.js} +55 -55
  204. package/dist/chunks/{ripgrep-p015t6z3.js → generate-p015t6z3.js} +2 -2
  205. package/dist/chunks/{ripgrep-dfsm4808.js → generate-p1vte9h6.js} +11 -11
  206. package/dist/chunks/{ripgrep-nsxce02n.js → generate-p7snmzw9.js} +2 -2
  207. package/dist/chunks/{ripgrep-26x8chrq.js → generate-p869v6ff.js} +6 -6
  208. package/dist/chunks/{ripgrep-6zs6nt10.js → generate-pbbktnbz.js} +4 -4
  209. package/dist/chunks/{ripgrep-epbqh0vp.js → generate-pcty9z1k.js} +4 -4
  210. package/dist/chunks/{ripgrep-pknna89w.js → generate-pknna89w.js} +1 -1
  211. package/dist/chunks/{ripgrep-ehhyyyn7.js → generate-pzgm482x.js} +46 -46
  212. package/dist/chunks/{ripgrep-41b5jrt2.js → generate-q174ee3q.js} +9 -9
  213. package/dist/chunks/{ripgrep-zgd7st2n.js → generate-q18as39h.js} +29 -29
  214. package/dist/chunks/generate-q331f19b.js +257 -0
  215. package/dist/chunks/{ripgrep-cbrygq68.js → generate-q526re3s.js} +3 -3
  216. package/dist/chunks/{ripgrep-754mq792.js → generate-q9k672yb.js} +9 -9
  217. package/dist/chunks/{ripgrep-nfzcmjp8.js → generate-qaf4nrm9.js} +16 -16
  218. package/dist/chunks/{ripgrep-3a7jzk54.js → generate-qcxq8hjc.js} +24 -24
  219. package/dist/chunks/{ripgrep-577qsrq7.js → generate-qp6mrnfa.js} +7 -7
  220. package/dist/chunks/{ripgrep-qp7r0hxv.js → generate-qp7r0hxv.js} +1 -1
  221. package/dist/chunks/{ripgrep-tqf554py.js → generate-qsh779tg.js} +16 -16
  222. package/dist/chunks/{ripgrep-r0yr0wbs.js → generate-r0yr0wbs.js} +1 -1
  223. package/dist/chunks/{ripgrep-r542h3bh.js → generate-r542h3bh.js} +1 -1
  224. package/dist/chunks/{ripgrep-x3y1gccb.js → generate-raxq219f.js} +25 -25
  225. package/dist/chunks/{ripgrep-rb9dy4dg.js → generate-rb9dy4dg.js} +1 -1
  226. package/dist/chunks/{ripgrep-8r9nj4s8.js → generate-rcbjwvze.js} +4 -4
  227. package/dist/chunks/{ripgrep-9wzjb77v.js → generate-rfy1qsv0.js} +5 -5
  228. package/dist/chunks/{ripgrep-rt5dr6hb.js → generate-rt5dr6hb.js} +1 -1
  229. package/dist/chunks/{ripgrep-rw0vxzvv.js → generate-s7jh2bt2.js} +12 -12
  230. package/dist/chunks/{ripgrep-sa3fpqfw.js → generate-sa3fpqfw.js} +2 -2
  231. package/dist/chunks/{ripgrep-4wvca7dx.js → generate-spqbgcqv.js} +5 -5
  232. package/dist/chunks/{ripgrep-sqjzf8x2.js → generate-sqjzf8x2.js} +1 -1
  233. package/dist/chunks/{ripgrep-c9t2ty9q.js → generate-ssfehs1z.js} +4 -4
  234. package/dist/chunks/{ripgrep-svcy3p9a.js → generate-svcy3p9a.js} +1 -1
  235. package/dist/chunks/{ripgrep-szcgc7h4.js → generate-szcgc7h4.js} +2 -2
  236. package/dist/chunks/{ripgrep-67v8yagg.js → generate-t1fs0nta.js} +8 -8
  237. package/dist/chunks/{ripgrep-06ezgrzy.js → generate-t2hws329.js} +6 -6
  238. package/dist/chunks/{ripgrep-tczq8hjw.js → generate-tczq8hjw.js} +1 -1
  239. package/dist/chunks/{ripgrep-xjzq7hnt.js → generate-tgwbm25x.js} +13 -13
  240. package/dist/chunks/{ripgrep-qzm6q9ch.js → generate-tkcrbpkc.js} +6 -6
  241. package/dist/chunks/{ripgrep-twssxy5n.js → generate-twssxy5n.js} +2 -2
  242. package/dist/chunks/{ripgrep-v2r1d0zg.js → generate-v2r1d0zg.js} +1 -1
  243. package/dist/chunks/{ripgrep-km92jeaq.js → generate-v5ahc3ch.js} +15 -15
  244. package/dist/chunks/{ripgrep-b3aag47p.js → generate-v7bnf05s.js} +17 -17
  245. package/dist/chunks/{ripgrep-cgjret3e.js → generate-vcvg2s1w.js} +11 -11
  246. package/dist/chunks/{ripgrep-81pg0v03.js → generate-vdpapx9q.js} +13 -13
  247. package/dist/chunks/{ripgrep-veqvce7d.js → generate-veqvce7d.js} +1 -1
  248. package/dist/chunks/{ripgrep-gw22fdws.js → generate-vgx7atgj.js} +39 -39
  249. package/dist/chunks/{ripgrep-c2rtzjd7.js → generate-vyv0j8nn.js} +25 -25
  250. package/dist/chunks/{ripgrep-cy5ayqt4.js → generate-vzd7w2ek.js} +43 -43
  251. package/dist/chunks/{ripgrep-40za9wsf.js → generate-w2eysc6j.js} +9 -9
  252. package/dist/chunks/{ripgrep-h7d4rbrg.js → generate-w35wzz9x.js} +4 -4
  253. package/dist/chunks/{ripgrep-w3wsvvr9.js → generate-w3wsvvr9.js} +1 -1
  254. package/dist/chunks/{ripgrep-wyyb2rea.js → generate-w43zhwmv.js} +2 -2
  255. package/dist/chunks/{ripgrep-fv2q085q.js → generate-w8gkdedy.js} +11 -11
  256. package/dist/chunks/{ripgrep-76cb1hcw.js → generate-w8qtt4th.js} +4 -4
  257. package/dist/chunks/{ripgrep-51d35nkj.js → generate-wa8k00xj.js} +6 -6
  258. package/dist/chunks/{ripgrep-wakvkjy4.js → generate-wakvkjy4.js} +1 -1
  259. package/dist/chunks/{ripgrep-wd87259q.js → generate-wd87259q.js} +1 -1
  260. package/dist/chunks/{ripgrep-ap93h9h9.js → generate-wdccw9aa.js} +9 -9
  261. package/dist/chunks/{ripgrep-rrjn135q.js → generate-wfwbmxj9.js} +22 -22
  262. package/dist/chunks/{ripgrep-xsvyg0zg.js → generate-wfxkb6jf.js} +12 -12
  263. package/dist/chunks/{ripgrep-chtd0as3.js → generate-wncvwmyx.js} +73 -73
  264. package/dist/chunks/{ripgrep-wnhgecwx.js → generate-wnhgecwx.js} +1 -1
  265. package/dist/chunks/{ripgrep-kh5b5n0x.js → generate-wr0x8q8w.js} +11 -11
  266. package/dist/chunks/{ripgrep-w687dnns.js → generate-wr3re1en.js} +4 -4
  267. package/dist/chunks/{ripgrep-9mv4bqkt.js → generate-wresbwaf.js} +11 -11
  268. package/dist/chunks/{ripgrep-25841xge.js → generate-wwpqwb19.js} +33 -33
  269. package/dist/chunks/{ripgrep-3marnbwx.js → generate-x2jb7586.js} +20 -20
  270. package/dist/chunks/{ripgrep-h3tz4d10.js → generate-x8kf0qe2.js} +30 -30
  271. package/dist/chunks/{ripgrep-x2gs057w.js → generate-xgh8r5md.js} +19 -19
  272. package/dist/chunks/{ripgrep-ssky9yg5.js → generate-xjrcb2hz.js} +4 -4
  273. package/dist/chunks/{ripgrep-xt0z8zst.js → generate-xt0z8zst.js} +1 -1
  274. package/dist/chunks/{ripgrep-8haq8m5n.js → generate-y0nfsw3x.js} +25 -25
  275. package/dist/chunks/{ripgrep-6b33zqre.js → generate-y3pzht0c.js} +5 -5
  276. package/dist/chunks/{ripgrep-qkw2jr9b.js → generate-yara3q77.js} +2 -2
  277. package/dist/chunks/{ripgrep-yb20nhc3.js → generate-yb20nhc3.js} +1 -1
  278. package/dist/chunks/{ripgrep-w52ybf1s.js → generate-yrxdp6ww.js} +54 -54
  279. package/dist/chunks/{ripgrep-h0p593e3.js → generate-yw016jnw.js} +21 -21
  280. package/dist/chunks/{ripgrep-z0bkrqjs.js → generate-z0bkrqjs.js} +1 -1
  281. package/dist/chunks/{ripgrep-z38nccrw.js → generate-z38nccrw.js} +1 -1
  282. package/dist/chunks/{ripgrep-rqynnb9h.js → generate-z72vmst9.js} +14 -14
  283. package/dist/chunks/{ripgrep-bxe7n28z.js → generate-zavmbsdh.js} +8 -8
  284. package/dist/chunks/{ripgrep-zegc5h6d.js → generate-zbwtxs0r.js} +20 -20
  285. package/dist/chunks/{ripgrep-g3dtbvmz.js → generate-zcvy3frr.js} +12 -12
  286. package/dist/chunks/{ripgrep-y1eshr2q.js → generate-zcxysqg2.js} +13 -13
  287. package/dist/chunks/{ripgrep-zgkm4kzm.js → generate-zgkm4kzm.js} +3 -3
  288. package/dist/chunks/{ripgrep-zh7bbm8x.js → generate-zh7bbm8x.js} +2 -2
  289. package/dist/chunks/{ripgrep-vwvg46tm.js → generate-zmwx25fz.js} +2 -2
  290. package/dist/chunks/{ripgrep-9hd5kt3n.js → generate-zqy7k0qn.js} +7 -7
  291. package/dist/chunks/{ripgrep-9knspxm5.js → generate-zs3j1aq1.js} +18 -18
  292. package/dist/chunks/{ripgrep-bwsv21wr.js → generate-zs7h2624.js} +34 -34
  293. package/dist/chunks/{ripgrep-a3rq0v5y.js → generate-zskc75ww.js} +18 -18
  294. package/dist/chunks/{ripgrep-e5vtkg49.js → generate-zw4834mw.js} +26 -26
  295. package/dist/chunks/{ripgrep-qrg0trs5.js → generate-zxxmr6sq.js} +8 -8
  296. package/dist/codemode/catalog.js +1 -1
  297. package/dist/codemode/instructions.js +9 -9
  298. package/dist/codemode/tool.js +3 -3
  299. package/dist/codemode/web.js +1 -1
  300. package/dist/command.js +91 -91
  301. package/dist/config/discovery.js +92 -92
  302. package/dist/config/integration.js +3 -3
  303. package/dist/config/markdown.js +1 -1
  304. package/dist/config/normalize.js +107 -107
  305. package/dist/config/plugin/agent.js +123 -123
  306. package/dist/config/plugin/command.js +221 -221
  307. package/dist/config/plugin/compaction.js +162 -162
  308. package/dist/config/plugin/compatibility.js +142 -142
  309. package/dist/config/plugin/entry-observer.js +1 -1
  310. package/dist/config/plugin/formatter.js +122 -122
  311. package/dist/config/plugin/image.js +121 -121
  312. package/dist/config/plugin/instruction.js +121 -121
  313. package/dist/config/plugin/location-watcher.js +121 -121
  314. package/dist/config/plugin/mcp.js +132 -132
  315. package/dist/config/plugin/policy.js +123 -123
  316. package/dist/config/plugin/provider.js +122 -122
  317. package/dist/config/plugin/reference.js +123 -123
  318. package/dist/config/plugin/shell.js +123 -123
  319. package/dist/config/plugin/skill-file.js +138 -138
  320. package/dist/config/plugin/skill-scan.js +3 -3
  321. package/dist/config/plugin/skill.js +143 -143
  322. package/dist/config/plugin/snapshot.js +121 -121
  323. package/dist/config/plugin/source.js +124 -124
  324. package/dist/config/plugin/tool-output.js +122 -122
  325. package/dist/config/plugin/websearch.js +122 -122
  326. package/dist/config/plugin/worktree.js +123 -123
  327. package/dist/config/variable.js +1 -1
  328. package/dist/config/watch.js +1 -1
  329. package/dist/config.js +124 -124
  330. package/dist/console-access.js +1 -1
  331. package/dist/credential/sql.js +2 -2
  332. package/dist/credential.js +89 -89
  333. package/dist/database/database.js +76 -76
  334. package/dist/database/drizzle/effect-sqlite/driver.js +14 -14
  335. package/dist/database/drizzle/effect-sqlite/index.js +14 -14
  336. package/dist/database/drizzle/effect-sqlite/session.js +11 -11
  337. package/dist/database/drizzle/index.js +15 -15
  338. package/dist/database/drizzle/internal/drizzle-utils.js +1 -1
  339. package/dist/database/drizzle/sqlite-core/effect/count.js +1 -1
  340. package/dist/database/drizzle/sqlite-core/effect/db.js +9 -9
  341. package/dist/database/drizzle/sqlite-core/effect/delete.js +2 -2
  342. package/dist/database/drizzle/sqlite-core/effect/index.js +10 -10
  343. package/dist/database/drizzle/sqlite-core/effect/insert.js +2 -2
  344. package/dist/database/drizzle/sqlite-core/effect/query.js +1 -1
  345. package/dist/database/drizzle/sqlite-core/effect/raw.js +1 -1
  346. package/dist/database/drizzle/sqlite-core/effect/select.js +2 -2
  347. package/dist/database/drizzle/sqlite-core/effect/session.js +10 -10
  348. package/dist/database/drizzle/sqlite-core/effect/update.js +2 -2
  349. package/dist/database/drizzle.js +16 -16
  350. package/dist/database/migration/20260127222353_familiar_lady_ursula.js +1 -1
  351. package/dist/database/migration/20260211171708_add_project_commands.js +1 -1
  352. package/dist/database/migration/20260213144116_wakeful_the_professor.js +1 -1
  353. package/dist/database/migration/20260225215848_workspace.js +1 -1
  354. package/dist/database/migration/20260227213759_add_session_workspace_id.js +1 -1
  355. package/dist/database/migration/20260228203230_blue_harpoon.js +1 -1
  356. package/dist/database/migration/20260303231226_add_workspace_fields.js +1 -1
  357. package/dist/database/migration/20260309230000_move_org_to_state.js +1 -1
  358. package/dist/database/migration/20260312043431_session_message_cursor.js +1 -1
  359. package/dist/database/migration/20260323234822_events.js +1 -1
  360. package/dist/database/migration/20260410174513_workspace-name.js +1 -1
  361. package/dist/database/migration/20260413175956_chief_energizer.js +1 -1
  362. package/dist/database/migration/20260423070820_add_icon_url_override.js +1 -1
  363. package/dist/database/migration/20260427172553_slow_nightmare.js +1 -1
  364. package/dist/database/migration/20260428004200_add_session_path.js +1 -1
  365. package/dist/database/migration/20260501142318_next_venus.js +1 -1
  366. package/dist/database/migration/20260504145000_add_sync_owner.js +1 -1
  367. package/dist/database/migration/20260507164347_add_workspace_time.js +1 -1
  368. package/dist/database/migration/20260510033149_session_usage.js +1 -1
  369. package/dist/database/migration/20260511000411_data_migration_state.js +1 -1
  370. package/dist/database/migration/20260511173437_session-metadata.js +1 -1
  371. package/dist/database/migration/20260601010001_normalize_storage_paths.js +1 -1
  372. package/dist/database/migration/20260601202201_amazing_prowler.js +1 -1
  373. package/dist/database/migration/20260602002951_lowly_union_jack.js +1 -1
  374. package/dist/database/migration/20260602182828_add_project_directories.js +1 -1
  375. package/dist/database/migration/20260603001617_session_message_projection_indexes.js +1 -1
  376. package/dist/database/migration/20260603040000_session_message_projection_order.js +1 -1
  377. package/dist/database/migration/20260603141458_session_input_inbox.js +1 -1
  378. package/dist/database/migration/20260603160727_jittery_ezekiel_stane.js +1 -1
  379. package/dist/database/migration/20260604172448_event_sourced_session_input.js +1 -1
  380. package/dist/database/migration/20260605003541_add_session_context_snapshot.js +1 -1
  381. package/dist/database/migration/20260605042240_add_context_epoch_agent.js +1 -1
  382. package/dist/database/migration/20260611035744_credential.js +1 -1
  383. package/dist/database/migration/20260611192811_lush_chimera.js +1 -1
  384. package/dist/database/migration/20260612174303_project_dir_strategy.js +1 -1
  385. package/dist/database/migration/20260622142730_simplify_session_context_epoch.js +1 -1
  386. package/dist/database/migration/20260622170816_reset_v2_session_state.js +1 -1
  387. package/dist/database/migration/20260622202450_simplify_session_input.js +1 -1
  388. package/dist/database/migration/20260804233008_loose_psylocke.js +1 -1
  389. package/dist/database/migration/20260805200742_import_legacy_credentials.js +1 -1
  390. package/dist/database/migration/20260808023530_workspace_domain.js +1 -1
  391. package/dist/database/migration/20260811161259_execution_claim_attempts.js +1 -1
  392. package/dist/database/migration/20260812181746_session_inbox.js +1 -1
  393. package/dist/database/migration/20260812213948_worktree.js +1 -1
  394. package/dist/database/migration/20260819222447_session_viewed_state.js +1 -1
  395. package/dist/database/migration/20260823191254_nullable_workspace_binding.js +1 -1
  396. package/dist/database/migration/20260910120000_clear_v1_session_permission.js +1 -1
  397. package/dist/database/migration/20260923013825_project_time_active.js +1 -1
  398. package/dist/database/migration/20261007190000_azure_cli_external_credential.js +1 -1
  399. package/dist/database/migration/20261010180456_project_time_archived.js +1 -1
  400. package/dist/database/migration/20261024002554_session_allowance.js +1 -1
  401. package/dist/database/migration/20261024175301_drop_session_allowance.js +1 -1
  402. package/dist/database/migration/20261025123711_blob.js +1 -1
  403. package/dist/database/migration/20261025154125_drop_session_pending.js +1 -1
  404. package/dist/database/migration.gen.js +55 -55
  405. package/dist/database/migration.js +57 -57
  406. package/dist/database/path.js +2 -2
  407. package/dist/database/schema.gen.js +1 -1
  408. package/dist/database/schema.sql.js +1 -1
  409. package/dist/database/sqlite.bun.js +1 -1
  410. package/dist/database/sqlite.js +1 -1
  411. package/dist/database/sqlite.node.js +1 -1
  412. package/dist/database/sqlite.workerd.js +1 -1
  413. package/dist/database/v1-migration.bun.js +96 -96
  414. package/dist/database/v1-migration.js +1 -1
  415. package/dist/effect/app-node-builder.js +382 -382
  416. package/dist/effect/app-node-platform.js +2 -2
  417. package/dist/effect/keyed-mutex.js +3 -3
  418. package/dist/effect/websocket-constructor.js +1 -1
  419. package/dist/environment/driver.js +1 -1
  420. package/dist/environment/environment.js +101 -101
  421. package/dist/environment/exec-defaults.js +2 -2
  422. package/dist/environment/files.js +1 -1
  423. package/dist/environment/index.js +103 -103
  424. package/dist/environment/local.js +2 -2
  425. package/dist/environment/memory.js +2 -2
  426. package/dist/environment/unavailable.js +3 -3
  427. package/dist/event/sql.js +1 -1
  428. package/dist/event-logger.js +80 -80
  429. package/dist/file-access.js +148 -148
  430. package/dist/file-mutation.js +102 -102
  431. package/dist/file-retention.js +1 -1
  432. package/dist/filesystem/fff.bun.js +2 -2
  433. package/dist/filesystem/fff.js +1 -1
  434. package/dist/filesystem/fff.node.js +2 -2
  435. package/dist/filesystem/fff.workerd.js +2 -2
  436. package/dist/filesystem/file-watch.js +86 -86
  437. package/dist/filesystem/location-watcher-policy.js +2 -2
  438. package/dist/filesystem/location-watcher.js +232 -232
  439. package/dist/filesystem/protected.js +3 -3
  440. package/dist/filesystem/search.js +107 -107
  441. package/dist/filesystem/watcher-binding.js +1 -1
  442. package/dist/filesystem/watcher.js +11 -11
  443. package/dist/filesystem.js +110 -110
  444. package/dist/form.js +86 -86
  445. package/dist/formatter/builtins.js +4 -4
  446. package/dist/formatter.js +95 -95
  447. package/dist/generate.js +117 -117
  448. package/dist/git.js +11 -11
  449. package/dist/github-copilot/chat/convert-to-openai-compatible-chat-messages.js +1 -1
  450. package/dist/github-copilot/chat/get-response-metadata.js +1 -1
  451. package/dist/github-copilot/chat/map-openai-compatible-finish-reason.js +1 -1
  452. package/dist/github-copilot/chat/openai-compatible-chat-language-model.js +7 -7
  453. package/dist/github-copilot/chat/openai-compatible-chat-options.js +1 -1
  454. package/dist/github-copilot/chat/openai-compatible-prepare-tools.js +1 -1
  455. package/dist/github-copilot/copilot-provider.js +17 -17
  456. package/dist/github-copilot/models.js +99 -99
  457. package/dist/github-copilot/openai-compatible-error.js +1 -1
  458. package/dist/github-copilot/responses/convert-to-openai-responses-input.js +1 -1
  459. package/dist/github-copilot/responses/map-openai-responses-finish-reason.js +1 -1
  460. package/dist/github-copilot/responses/openai-error.js +1 -1
  461. package/dist/github-copilot/responses/openai-responses-language-model.js +10 -10
  462. package/dist/github-copilot/responses/openai-responses-prepare-tools.js +6 -6
  463. package/dist/github-copilot/responses/tool/code-interpreter.js +1 -1
  464. package/dist/github-copilot/responses/tool/file-search.js +1 -1
  465. package/dist/github-copilot/responses/tool/image-generation.js +1 -1
  466. package/dist/github-copilot/responses/tool/web-search-preview.js +1 -1
  467. package/dist/github-copilot/responses/tool/web-search.js +1 -1
  468. package/dist/image/photon-normalize.js +1 -1
  469. package/dist/image/photon-worker.js +1 -1
  470. package/dist/image/photon.js +4 -4
  471. package/dist/image.js +6 -6
  472. package/dist/instance/service.js +5 -5
  473. package/dist/instance.js +373 -373
  474. package/dist/instruction-discovery.js +90 -90
  475. package/dist/instructions/builtins.js +95 -95
  476. package/dist/instructions/index.js +1 -1
  477. package/dist/integration/connection.js +3 -3
  478. package/dist/integration.js +93 -93
  479. package/dist/job.js +84 -84
  480. package/dist/kv/sql.js +2 -2
  481. package/dist/kv.js +77 -77
  482. package/dist/location-activity.js +166 -166
  483. package/dist/location-lifecycle.js +142 -142
  484. package/dist/location-service-map.js +94 -94
  485. package/dist/location-services.js +370 -370
  486. package/dist/location.js +89 -89
  487. package/dist/managed-policy.js +9 -9
  488. package/dist/mcp/client.js +99 -99
  489. package/dist/mcp/index.js +115 -115
  490. package/dist/mcp/instructions.js +166 -166
  491. package/dist/mcp/oauth.js +84 -84
  492. package/dist/mcp/socket-client.js +1 -1
  493. package/dist/mcp/stdio.js +98 -98
  494. package/dist/mime.js +1 -1
  495. package/dist/modal/models.js +99 -99
  496. package/dist/model-resolver.js +107 -107
  497. package/dist/model-retry.js +1 -1
  498. package/dist/model.js +110 -110
  499. package/dist/models-dev/v1.js +1 -1
  500. package/dist/models-dev.js +116 -116
  501. package/dist/oauth/page.js +1 -1
  502. package/dist/permission/saved.js +86 -86
  503. package/dist/permission/sql.js +5 -5
  504. package/dist/permission.js +143 -143
  505. package/dist/persistent-pty/binary.bun.js +1 -1
  506. package/dist/persistent-pty/daemon.js +1 -1
  507. package/dist/persistent-pty/index.js +88 -88
  508. package/dist/persistent-pty/pty-binding.js +1 -1
  509. package/dist/persistent-pty.js +81 -81
  510. package/dist/plugin/agent.js +82 -82
  511. package/dist/plugin/command.js +110 -110
  512. package/dist/plugin/hooks.js +5 -5
  513. package/dist/plugin/host.js +225 -225
  514. package/dist/plugin/identity.js +5 -5
  515. package/dist/plugin/instance.js +5 -5
  516. package/dist/plugin/internal.js +343 -343
  517. package/dist/plugin/mcp-codemode-defaults.js +3 -3
  518. package/dist/plugin/models-dev.js +105 -105
  519. package/dist/plugin/module.js +123 -123
  520. package/dist/plugin/optimize.js +2 -2
  521. package/dist/plugin/plan.js +138 -138
  522. package/dist/plugin/promise.js +1 -1
  523. package/dist/plugin/provider/amazon-bedrock.js +98 -98
  524. package/dist/plugin/provider/azure.js +121 -121
  525. package/dist/plugin/provider/cerebras.js +1 -1
  526. package/dist/plugin/provider/chatgpt.js +121 -121
  527. package/dist/plugin/provider/cloudflare-ai-gateway.js +118 -118
  528. package/dist/plugin/provider/cloudflare-workers-ai.js +118 -118
  529. package/dist/plugin/provider/cohere.js +2 -2
  530. package/dist/plugin/provider/configured.js +117 -117
  531. package/dist/plugin/provider/databricks.js +1 -1
  532. package/dist/plugin/provider/digitalocean.js +101 -101
  533. package/dist/plugin/provider/dynamic.js +2 -2
  534. package/dist/plugin/provider/factory.js +1 -1
  535. package/dist/plugin/provider/github-copilot.js +103 -103
  536. package/dist/plugin/provider/gitlab.js +101 -101
  537. package/dist/plugin/provider/google-vertex.js +118 -118
  538. package/dist/plugin/provider/kilo.js +1 -1
  539. package/dist/plugin/provider/llmgateway.js +84 -84
  540. package/dist/plugin/provider/lmstudio.js +130 -130
  541. package/dist/plugin/provider/local.js +127 -127
  542. package/dist/plugin/provider/modal.js +100 -100
  543. package/dist/plugin/provider/neon.js +1 -1
  544. package/dist/plugin/provider/nvidia.js +1 -1
  545. package/dist/plugin/provider/ollama.js +130 -130
  546. package/dist/plugin/provider/openai-context-caps.js +98 -98
  547. package/dist/plugin/provider/openai.js +121 -121
  548. package/dist/plugin/provider/opencode-legacy.js +108 -108
  549. package/dist/plugin/provider/opencode.js +127 -127
  550. package/dist/plugin/provider/openrouter.js +99 -99
  551. package/dist/plugin/provider/perplexity.js +2 -2
  552. package/dist/plugin/provider/poe.js +85 -85
  553. package/dist/plugin/provider/prompt-cache-key.js +1 -1
  554. package/dist/plugin/provider/sap-ai-core.js +99 -99
  555. package/dist/plugin/provider/sdk-factory.js +1 -1
  556. package/dist/plugin/provider/snowflake-cortex.js +120 -120
  557. package/dist/plugin/provider/vercel.js +98 -98
  558. package/dist/plugin/provider/vllm.js +130 -130
  559. package/dist/plugin/provider/xai.js +99 -99
  560. package/dist/plugin/provider/zenmux.js +1 -1
  561. package/dist/plugin/provider.js +178 -178
  562. package/dist/plugin/sdk.js +82 -82
  563. package/dist/plugin/service.js +3 -3
  564. package/dist/plugin/skill.js +141 -141
  565. package/dist/plugin/source-directory.js +1 -1
  566. package/dist/plugin/supervisor.js +360 -360
  567. package/dist/plugin/tool-input-repair.js +4 -4
  568. package/dist/plugin/update.js +6 -6
  569. package/dist/plugin/vcs/git.js +94 -94
  570. package/dist/plugin/vcs/hg.js +94 -94
  571. package/dist/plugin/verbosity.js +101 -101
  572. package/dist/plugin/warming.js +119 -119
  573. package/dist/plugin/websearch/exa.js +7 -7
  574. package/dist/plugin/websearch/firecrawl.js +8 -8
  575. package/dist/plugin/websearch/index.js +9 -9
  576. package/dist/plugin/websearch/mcp.js +6 -6
  577. package/dist/plugin/websearch/parallel.js +8 -8
  578. package/dist/plugin/websearch/tavily.js +6 -6
  579. package/dist/plugin/websearch/tinyfish.js +8 -8
  580. package/dist/plugin.js +230 -230
  581. package/dist/project/icon.js +5 -5
  582. package/dist/project/schema.js +2 -2
  583. package/dist/project/sql.js +4 -4
  584. package/dist/project.js +88 -88
  585. package/dist/provider.js +107 -107
  586. package/dist/pty/protocol.js +1 -1
  587. package/dist/pty/ticket.js +1 -1
  588. package/dist/pty.js +94 -94
  589. package/dist/reference/instructions.js +96 -96
  590. package/dist/reference.js +96 -96
  591. package/dist/repository-cache.js +88 -88
  592. package/dist/repository.js +3 -3
  593. package/dist/ripgrep/binary.js +2 -2
  594. package/dist/ripgrep.js +103 -103
  595. package/dist/rpc.js +94 -94
  596. package/dist/schema.js +1 -1
  597. package/dist/session/affinity.js +1 -1
  598. package/dist/session/blob.js +120 -120
  599. package/dist/session/command.js +80 -80
  600. package/dist/session/compaction.js +162 -162
  601. package/dist/session/context.js +188 -188
  602. package/dist/session/diff.js +96 -96
  603. package/dist/session/environment.js +5 -5
  604. package/dist/session/error.js +5 -5
  605. package/dist/session/event.js +1 -1
  606. package/dist/session/execution/restart.js +231 -231
  607. package/dist/session/execution.js +152 -152
  608. package/dist/session/generate.js +190 -190
  609. package/dist/session/history.js +127 -127
  610. package/dist/session/inbox.js +138 -138
  611. package/dist/session/info.js +3 -3
  612. package/dist/session/instruction-entry.js +85 -85
  613. package/dist/session/instruction-state.js +8 -8
  614. package/dist/session/instructions.js +132 -132
  615. package/dist/session/message-updater.js +2 -2
  616. package/dist/session/message.js +1 -1
  617. package/dist/session/model-request.js +155 -155
  618. package/dist/session/model-transport.js +9 -9
  619. package/dist/session/move.js +156 -156
  620. package/dist/session/projector.js +134 -134
  621. package/dist/session/prompt.js +140 -140
  622. package/dist/session/recent-text.js +1 -1
  623. package/dist/session/revert.js +130 -130
  624. package/dist/session/run-coordinator.js +3 -3
  625. package/dist/session/runner/index.js +3 -3
  626. package/dist/session/runner/llm.js +238 -238
  627. package/dist/session/runner/max-steps.js +1 -1
  628. package/dist/session/runner/model.js +108 -108
  629. package/dist/session/runner/publish-llm-event.js +141 -141
  630. package/dist/session/runner/retry.js +5 -5
  631. package/dist/session/runner/step.js +152 -152
  632. package/dist/session/runner/to-llm-message.js +128 -128
  633. package/dist/session/schema.js +5 -5
  634. package/dist/session/session.js +172 -172
  635. package/dist/session/shell.js +135 -135
  636. package/dist/session/skill.js +139 -139
  637. package/dist/session/sql.js +5 -5
  638. package/dist/session/stats.js +81 -81
  639. package/dist/session/store.js +133 -133
  640. package/dist/session/stored.js +2 -2
  641. package/dist/session/subagent-completion.js +1 -1
  642. package/dist/session/subagent-job.js +219 -219
  643. package/dist/session/system-prompt.js +5 -5
  644. package/dist/session/title.js +190 -190
  645. package/dist/session/to-session-error.js +140 -140
  646. package/dist/session/transfer.js +227 -227
  647. package/dist/session/usage.js +1 -1
  648. package/dist/session.js +223 -223
  649. package/dist/shell/parse.js +8 -8
  650. package/dist/shell/result.js +1 -1
  651. package/dist/shell/scan.js +1 -1
  652. package/dist/shell/select.js +9 -9
  653. package/dist/shell.js +135 -135
  654. package/dist/skill/discovery.js +6 -6
  655. package/dist/skill/instructions.js +143 -143
  656. package/dist/skill.js +146 -146
  657. package/dist/snapshot.js +97 -97
  658. package/dist/state.js +1 -1
  659. package/dist/tool/html-markdown.js +1 -1
  660. package/dist/tool/http-body.js +1 -1
  661. package/dist/tool/mcp.js +167 -167
  662. package/dist/tool/plugin/edit.js +150 -150
  663. package/dist/tool/plugin/file-diff.js +1 -1
  664. package/dist/tool/plugin/glob.js +160 -160
  665. package/dist/tool/plugin/grep.js +160 -160
  666. package/dist/tool/plugin/mcp-resource.js +154 -154
  667. package/dist/tool/plugin/opencode.js +153 -153
  668. package/dist/tool/plugin/patch.js +158 -158
  669. package/dist/tool/plugin/question.js +140 -140
  670. package/dist/tool/plugin/read.js +159 -159
  671. package/dist/tool/plugin/shell.js +224 -224
  672. package/dist/tool/plugin/skill.js +145 -145
  673. package/dist/tool/plugin/subagent.js +226 -226
  674. package/dist/tool/plugin/todo.js +143 -143
  675. package/dist/tool/plugin/webfetch.js +147 -147
  676. package/dist/tool/plugin/websearch.js +147 -147
  677. package/dist/tool/plugin/write.js +158 -158
  678. package/dist/tool/read-filesystem.js +110 -110
  679. package/dist/tool/runtime.js +1 -1
  680. package/dist/tool-output.js +7 -7
  681. package/dist/tool.js +12 -12
  682. package/dist/usage-limits.js +95 -95
  683. package/dist/util/error-summary.js +1 -1
  684. package/dist/util/git-executable.js +3 -3
  685. package/dist/util/lazy.js +1 -1
  686. package/dist/util/slug.js +1 -1
  687. package/dist/util/token.js +1 -1
  688. package/dist/util/which.js +1 -1
  689. package/dist/util/wildcard.js +1 -1
  690. package/dist/v1/config/agent.js +7 -7
  691. package/dist/v1/config/command.js +5 -5
  692. package/dist/v1/config/mcp.js +4 -4
  693. package/dist/v1/config/migrate.js +100 -100
  694. package/dist/v1/config/permission.js +3 -3
  695. package/dist/v1/config/plugin.js +1 -1
  696. package/dist/v1/config/provider-options.js +1 -1
  697. package/dist/v1/config/provider.js +2 -2
  698. package/dist/variant.js +101 -101
  699. package/dist/vcs/patch.js +1 -1
  700. package/dist/vcs.js +97 -97
  701. package/dist/voice.js +96 -96
  702. package/dist/websearch.js +90 -90
  703. package/dist/wellknown/plugin.js +82 -82
  704. package/dist/wellknown.js +85 -85
  705. package/dist/workspace/driver.js +5 -5
  706. package/dist/workspace/sql.js +1 -1
  707. package/dist/workspace.js +88 -88
  708. package/dist/worktree/directory.js +2 -2
  709. package/dist/worktree/git.js +11 -11
  710. package/dist/worktree/sql.js +5 -5
  711. package/dist/worktree/strategies.js +97 -97
  712. package/dist/worktree.js +106 -106
  713. package/package.json +8 -8
  714. package/dist/chunks/ripgrep-4hbcjkqy.js +0 -257
  715. package/dist/chunks/ripgrep-j1207za8.js +0 -26
  716. package/dist/chunks/ripgrep-jztn5z23.js +0 -18
  717. /package/dist/chunks/{ripgrep-0qkdqm5v.js → generate-0qkdqm5v.js} +0 -0
  718. /package/dist/chunks/{ripgrep-0zkw76rk.js → generate-0zkw76rk.js} +0 -0
  719. /package/dist/chunks/{ripgrep-17cy0kzp.js → generate-17cy0kzp.js} +0 -0
  720. /package/dist/chunks/{ripgrep-1cnp2v09.js → generate-1cnp2v09.js} +0 -0
  721. /package/dist/chunks/{ripgrep-1jakw16s.js → generate-1jakw16s.js} +0 -0
  722. /package/dist/chunks/{ripgrep-24dcb14g.js → generate-24dcb14g.js} +0 -0
  723. /package/dist/chunks/{ripgrep-2710q6r3.js → generate-2710q6r3.js} +0 -0
  724. /package/dist/chunks/{ripgrep-2bv980vf.js → generate-2bv980vf.js} +0 -0
  725. /package/dist/chunks/{ripgrep-2c3vjs8z.js → generate-2c3vjs8z.js} +0 -0
  726. /package/dist/chunks/{ripgrep-359p4xyc.js → generate-359p4xyc.js} +0 -0
  727. /package/dist/chunks/{ripgrep-3asan66x.js → generate-3asan66x.js} +0 -0
  728. /package/dist/chunks/{ripgrep-3v8g72cx.js → generate-3v8g72cx.js} +0 -0
  729. /package/dist/chunks/{ripgrep-3wcehsnq.js → generate-3wcehsnq.js} +0 -0
  730. /package/dist/chunks/{ripgrep-43n2bw4t.js → generate-43n2bw4t.js} +0 -0
  731. /package/dist/chunks/{ripgrep-4knz6hnm.js → generate-4knz6hnm.js} +0 -0
  732. /package/dist/chunks/{ripgrep-4m86bj6y.js → generate-4m86bj6y.js} +0 -0
  733. /package/dist/chunks/{ripgrep-4vcrnpx2.js → generate-4vcrnpx2.js} +0 -0
  734. /package/dist/chunks/{ripgrep-4y7fprxs.js → generate-4y7fprxs.js} +0 -0
  735. /package/dist/chunks/{ripgrep-53557ph1.js → generate-53557ph1.js} +0 -0
  736. /package/dist/chunks/{ripgrep-550bvhaj.js → generate-550bvhaj.js} +0 -0
  737. /package/dist/chunks/{ripgrep-5w3e23ze.js → generate-5w3e23ze.js} +0 -0
  738. /package/dist/chunks/{ripgrep-6prwharc.js → generate-6prwharc.js} +0 -0
  739. /package/dist/chunks/{ripgrep-6q2bdcd1.js → generate-6q2bdcd1.js} +0 -0
  740. /package/dist/chunks/{ripgrep-7akdwqpd.js → generate-7akdwqpd.js} +0 -0
  741. /package/dist/chunks/{ripgrep-7m9af43g.js → generate-7m9af43g.js} +0 -0
  742. /package/dist/chunks/{ripgrep-822emrt2.js → generate-822emrt2.js} +0 -0
  743. /package/dist/chunks/{ripgrep-84wd9syh.js → generate-84wd9syh.js} +0 -0
  744. /package/dist/chunks/{ripgrep-88xbtdfr.js → generate-88xbtdfr.js} +0 -0
  745. /package/dist/chunks/{ripgrep-8n3pysct.js → generate-8n3pysct.js} +0 -0
  746. /package/dist/chunks/{ripgrep-8wj87zfr.js → generate-8wj87zfr.js} +0 -0
  747. /package/dist/chunks/{ripgrep-9a4afbnw.js → generate-9a4afbnw.js} +0 -0
  748. /package/dist/chunks/{ripgrep-9rqn6x4v.js → generate-9rqn6x4v.js} +0 -0
  749. /package/dist/chunks/{ripgrep-a058387c.js → generate-a058387c.js} +0 -0
  750. /package/dist/chunks/{ripgrep-a6k6eb26.js → generate-a6k6eb26.js} +0 -0
  751. /package/dist/chunks/{ripgrep-af5trqkr.js → generate-af5trqkr.js} +0 -0
  752. /package/dist/chunks/{ripgrep-afrmfg78.js → generate-afrmfg78.js} +0 -0
  753. /package/dist/chunks/{ripgrep-aqzs7mqg.js → generate-aqzs7mqg.js} +0 -0
  754. /package/dist/chunks/{ripgrep-atq7p7m5.js → generate-atq7p7m5.js} +0 -0
  755. /package/dist/chunks/{ripgrep-beh6qq61.js → generate-beh6qq61.js} +0 -0
  756. /package/dist/chunks/{ripgrep-bkyjaxrp.js → generate-bkyjaxrp.js} +0 -0
  757. /package/dist/chunks/{ripgrep-bmr6ed5q.js → generate-bmr6ed5q.js} +0 -0
  758. /package/dist/chunks/{ripgrep-cf4snx6d.js → generate-cf4snx6d.js} +0 -0
  759. /package/dist/chunks/{ripgrep-cqv5kn06.js → generate-cqv5kn06.js} +0 -0
  760. /package/dist/chunks/{ripgrep-cvy3z8tj.js → generate-cvy3z8tj.js} +0 -0
  761. /package/dist/chunks/{ripgrep-d9fn303g.js → generate-d9fn303g.js} +0 -0
  762. /package/dist/chunks/{ripgrep-d9jj8t3e.js → generate-d9jj8t3e.js} +0 -0
  763. /package/dist/chunks/{ripgrep-dajrwvna.js → generate-dajrwvna.js} +0 -0
  764. /package/dist/chunks/{ripgrep-dap0rakb.js → generate-dap0rakb.js} +0 -0
  765. /package/dist/chunks/{ripgrep-df08tz66.js → generate-df08tz66.js} +0 -0
  766. /package/dist/chunks/{ripgrep-dy18nga0.js → generate-dy18nga0.js} +0 -0
  767. /package/dist/chunks/{ripgrep-e5kj55wp.js → generate-e5kj55wp.js} +0 -0
  768. /package/dist/chunks/{ripgrep-e73j6tqm.js → generate-e73j6tqm.js} +0 -0
  769. /package/dist/chunks/{ripgrep-ec1grn59.js → generate-ec1grn59.js} +0 -0
  770. /package/dist/chunks/{ripgrep-eh3zwz77.js → generate-eh3zwz77.js} +0 -0
  771. /package/dist/chunks/{ripgrep-emrn6kk6.js → generate-emrn6kk6.js} +0 -0
  772. /package/dist/chunks/{ripgrep-f0mxakyp.js → generate-f0mxakyp.js} +0 -0
  773. /package/dist/chunks/{ripgrep-f6n9ztr4.js → generate-f6n9ztr4.js} +0 -0
  774. /package/dist/chunks/{ripgrep-faypxj3z.js → generate-faypxj3z.js} +0 -0
  775. /package/dist/chunks/{ripgrep-fd410y7t.js → generate-fd410y7t.js} +0 -0
  776. /package/dist/chunks/{ripgrep-fkpq3x5p.js → generate-fkpq3x5p.js} +0 -0
  777. /package/dist/chunks/{ripgrep-g4wezp1m.js → generate-g4wezp1m.js} +0 -0
  778. /package/dist/chunks/{ripgrep-g86h250q.js → generate-g86h250q.js} +0 -0
  779. /package/dist/chunks/{ripgrep-gebd4c9n.js → generate-gebd4c9n.js} +0 -0
  780. /package/dist/chunks/{ripgrep-gftt206x.js → generate-gftt206x.js} +0 -0
  781. /package/dist/chunks/{ripgrep-hcxmzztb.js → generate-hcxmzztb.js} +0 -0
  782. /package/dist/chunks/{ripgrep-hk9envan.js → generate-hk9envan.js} +0 -0
  783. /package/dist/chunks/{ripgrep-j2ntwpah.js → generate-j2ntwpah.js} +0 -0
  784. /package/dist/chunks/{ripgrep-j5zkgpj8.js → generate-j5zkgpj8.js} +0 -0
  785. /package/dist/chunks/{ripgrep-jjkms2e6.js → generate-jjkms2e6.js} +0 -0
  786. /package/dist/chunks/{ripgrep-jr7sbwjy.js → generate-jr7sbwjy.js} +0 -0
  787. /package/dist/chunks/{ripgrep-jwfs4k6c.js → generate-jwfs4k6c.js} +0 -0
  788. /package/dist/chunks/{ripgrep-jwr30sdr.js → generate-jwr30sdr.js} +0 -0
  789. /package/dist/chunks/{ripgrep-jze0r7bz.js → generate-jze0r7bz.js} +0 -0
  790. /package/dist/chunks/{ripgrep-jzg6c2d5.js → generate-jzg6c2d5.js} +0 -0
  791. /package/dist/chunks/{ripgrep-m18g726c.js → generate-m18g726c.js} +0 -0
  792. /package/dist/chunks/{ripgrep-mp448xyj.js → generate-mp448xyj.js} +0 -0
  793. /package/dist/chunks/{ripgrep-msx8hqn2.js → generate-msx8hqn2.js} +0 -0
  794. /package/dist/chunks/{ripgrep-n05xt0ee.js → generate-n05xt0ee.js} +0 -0
  795. /package/dist/chunks/{ripgrep-n3j8tn72.js → generate-n3j8tn72.js} +0 -0
  796. /package/dist/chunks/{ripgrep-ncqqe42p.js → generate-ncqqe42p.js} +0 -0
  797. /package/dist/chunks/{ripgrep-njntx4h6.js → generate-njntx4h6.js} +0 -0
  798. /package/dist/chunks/{ripgrep-p71gwv9c.js → generate-p71gwv9c.js} +0 -0
  799. /package/dist/chunks/{ripgrep-q3sfg36h.js → generate-q3sfg36h.js} +0 -0
  800. /package/dist/chunks/{ripgrep-q74kybfr.js → generate-q74kybfr.js} +0 -0
  801. /package/dist/chunks/{ripgrep-qaymkmh1.js → generate-qaymkmh1.js} +0 -0
  802. /package/dist/chunks/{ripgrep-qb87gjwd.js → generate-qb87gjwd.js} +0 -0
  803. /package/dist/chunks/{ripgrep-qfa1cgps.js → generate-qfa1cgps.js} +0 -0
  804. /package/dist/chunks/{ripgrep-qg3g05ea.js → generate-qg3g05ea.js} +0 -0
  805. /package/dist/chunks/{ripgrep-qrg20bc0.js → generate-qrg20bc0.js} +0 -0
  806. /package/dist/chunks/{ripgrep-rcb2kzg1.js → generate-rcb2kzg1.js} +0 -0
  807. /package/dist/chunks/{ripgrep-sdp7kfr6.js → generate-sdp7kfr6.js} +0 -0
  808. /package/dist/chunks/{ripgrep-ssg3fenm.js → generate-ssg3fenm.js} +0 -0
  809. /package/dist/chunks/{ripgrep-ve7vex1e.js → generate-ve7vex1e.js} +0 -0
  810. /package/dist/chunks/{ripgrep-w803qqfp.js → generate-w803qqfp.js} +0 -0
  811. /package/dist/chunks/{ripgrep-wc3fc9cn.js → generate-wc3fc9cn.js} +0 -0
  812. /package/dist/chunks/{ripgrep-wer8tq1h.js → generate-wer8tq1h.js} +0 -0
  813. /package/dist/chunks/{ripgrep-wtztk69x.js → generate-wtztk69x.js} +0 -0
  814. /package/dist/chunks/{ripgrep-x0ckcb58.js → generate-x0ckcb58.js} +0 -0
  815. /package/dist/chunks/{ripgrep-x61499pn.js → generate-x61499pn.js} +0 -0
  816. /package/dist/chunks/{ripgrep-y44na4kk.js → generate-y44na4kk.js} +0 -0
  817. /package/dist/chunks/{ripgrep-y8f7s663.js → generate-y8f7s663.js} +0 -0
  818. /package/dist/chunks/{ripgrep-ygaqb7jw.js → generate-ygaqb7jw.js} +0 -0
  819. /package/dist/chunks/{ripgrep-ym463w8f.js → generate-ym463w8f.js} +0 -0
  820. /package/dist/chunks/{ripgrep-z5v4ffb3.js → generate-z5v4ffb3.js} +0 -0
  821. /package/dist/chunks/{ripgrep-z9919s4g.js → generate-z9919s4g.js} +0 -0
@@ -1,34 +1,34 @@
1
1
  import {
2
- Service55
3
- } from "./ripgrep-cy5ayqt4.js";
2
+ Service58
3
+ } from "./generate-vzd7w2ek.js";
4
4
  import {
5
- ID4,
5
+ ID6,
6
6
  Name2,
7
7
  toModelOutput3,
8
8
  prepare3,
9
- Service37
10
- } from "./ripgrep-8haq8m5n.js";
9
+ Service55
10
+ } from "./generate-y0nfsw3x.js";
11
11
  import {
12
12
  __export
13
- } from "./ripgrep-9rqn6x4v.js";
13
+ } from "./generate-9rqn6x4v.js";
14
14
 
15
15
  // src/tool/plugin/skill.ts
16
- var exports_skill3 = {};
17
- __export(exports_skill3, {
18
- Input: () => Input2,
16
+ var exports_skill = {};
17
+ __export(exports_skill, {
18
+ Input: () => Input3,
19
19
  Output: () => Output2,
20
- Plugin: () => Plugin37,
21
- SkillTool: () => exports_skill3,
20
+ Plugin: () => Plugin4,
21
+ SkillTool: () => exports_skill,
22
22
  description: () => description2,
23
- name: () => name2,
23
+ name: () => name3,
24
24
  toModelOutput: () => toModelOutput2
25
25
  });
26
26
  import { ToolFailure } from "@opencode/ai/effect";
27
27
  import { Effect, Schema } from "effect";
28
28
  import { FSUtil } from "@opencode/util/fs-util";
29
- var name2 = "skill";
30
- var Input2 = Schema.Struct({
31
- id: ID4.annotate({ description: "The ID of an available skill or a skill explicitly referenced by the user" })
29
+ var name3 = "skill";
30
+ var Input3 = Schema.Struct({
31
+ id: ID6.annotate({ description: "The ID of an available skill or a skill explicitly referenced by the user" })
32
32
  });
33
33
  var Output2 = Schema.Struct({
34
34
  name: Name2,
@@ -43,17 +43,17 @@ var description2 = [
43
43
  `);
44
44
  var toModelOutput2 = toModelOutput3;
45
45
  var unableToLoad = (name, error) => new ToolFailure({ message: `Unable to load skill ${name}`, error });
46
- var Plugin37 = {
46
+ var Plugin4 = {
47
47
  id: "opencode.tool.skill",
48
48
  effect: Effect.fn("SkillTool.Plugin")(function* (ctx) {
49
49
  const fs = yield* FSUtil.Service;
50
- const skills = yield* Service37;
51
- const permission = yield* Service55;
50
+ const skills = yield* Service55;
51
+ const permission = yield* Service58;
52
52
  yield* ctx.tool.transform((editor) => editor.add({
53
- name: name2,
53
+ name: name3,
54
54
  options: { codemode: false },
55
55
  description: description2,
56
- input: Input2,
56
+ input: Input3,
57
57
  output: Output2,
58
58
  execute: (input, context) => Effect.gen(function* () {
59
59
  const skill = yield* skills.get(input.id);
@@ -61,7 +61,7 @@ var Plugin37 = {
61
61
  return yield* unableToLoad(input.id);
62
62
  return yield* Effect.gen(function* () {
63
63
  yield* permission.assert({
64
- action: name2,
64
+ action: name3,
65
65
  resources: [skill.id],
66
66
  save: [skill.id],
67
67
  sessionID: context.sessionID,
@@ -79,4 +79,4 @@ var Plugin37 = {
79
79
  })
80
80
  };
81
81
 
82
- export { name2, Input2, Output2, description2, toModelOutput2, Plugin37, exports_skill3 };
82
+ export { name3, Input3, Output2, description2, toModelOutput2, Plugin4, exports_skill };
@@ -1,15 +1,15 @@
1
1
  import {
2
- ID8
3
- } from "./ripgrep-mnjz2ecc.js";
2
+ ID13
3
+ } from "./generate-h5j7qrbp.js";
4
4
  import {
5
5
  configuredSettings2
6
- } from "./ripgrep-6rdptfg1.js";
6
+ } from "./generate-2xh3b742.js";
7
7
 
8
8
  // src/plugin/provider/cloudflare-workers-ai.ts
9
9
  import { Effect } from "effect";
10
10
  import { define } from "@opencode/plugin/effect/plugin";
11
11
  import { Form } from "@opencode/schema/form";
12
- var providerID = ID8.make("cloudflare-workers-ai");
12
+ var providerID = ID13.make("cloudflare-workers-ai");
13
13
  var CloudflareWorkersAIPlugin2 = define({
14
14
  id: "opencode.provider.cloudflare.workers.ai",
15
15
  effect: Effect.fn(function* (ctx) {
@@ -1,12 +1,12 @@
1
1
  import {
2
2
  SessionMessage2
3
- } from "./ripgrep-gftt206x.js";
3
+ } from "./generate-gftt206x.js";
4
4
  import {
5
5
  SessionSchema2
6
- } from "./ripgrep-8whp40kv.js";
6
+ } from "./generate-my4zabxr.js";
7
7
  import {
8
8
  __export
9
- } from "./ripgrep-9rqn6x4v.js";
9
+ } from "./generate-9rqn6x4v.js";
10
10
 
11
11
  // src/session/error.ts
12
12
  var exports_error = {};
@@ -20,7 +20,7 @@ __export(exports_error, {
20
20
  InvalidListCursorError: () => InvalidListCursorError2,
21
21
  MessageDecodeError: () => MessageDecodeError2,
22
22
  MessageNotFoundError: () => MessageNotFoundError2,
23
- NotFoundError: () => NotFoundError9,
23
+ NotFoundError: () => NotFoundError8,
24
24
  PromptConflictError: () => PromptConflictError2,
25
25
  SessionErrors: () => exports_error,
26
26
  SkillNotFoundError: () => SkillNotFoundError2,
@@ -32,7 +32,7 @@ import { Agent } from "@opencode/schema/agent";
32
32
  import { Skill } from "@opencode/schema/skill";
33
33
  import { SessionError } from "@opencode/schema/session-error";
34
34
 
35
- class NotFoundError9 extends Schema.TaggedError()("Session.NotFoundError", {
35
+ class NotFoundError8 extends Schema.TaggedError()("Session.NotFoundError", {
36
36
  sessionID: SessionSchema2.ID
37
37
  }) {
38
38
  }
@@ -123,4 +123,4 @@ class SkillNotFoundError2 extends Schema.TaggedError()("Session.SkillNotFoundErr
123
123
  }) {
124
124
  }
125
125
 
126
- export { NotFoundError9, InvalidListCursorError2, MessageNotFoundError2, ForkEmptyError2, MessageDecodeError2, AgentNotFoundError2, StepFailedError2, PromptConflictError2, SyntheticConflictError2, AttachmentError2, CompactionConflictError2, BusyError2, InboxConflictError2, SkillNotFoundError2, exports_error };
126
+ export { NotFoundError8, InvalidListCursorError2, MessageNotFoundError2, ForkEmptyError2, MessageDecodeError2, AgentNotFoundError2, StepFailedError2, PromptConflictError2, SyntheticConflictError2, AttachmentError2, CompactionConflictError2, BusyError2, InboxConflictError2, SkillNotFoundError2, exports_error };
@@ -1,25 +1,25 @@
1
1
  import {
2
2
  server2,
3
3
  headers2
4
- } from "./ripgrep-kt3bjfbg.js";
4
+ } from "./generate-kt3bjfbg.js";
5
5
  import {
6
- ID9,
7
- Service64,
8
- node67
9
- } from "./ripgrep-zgd7st2n.js";
6
+ ID14,
7
+ Service80,
8
+ node84
9
+ } from "./generate-q18as39h.js";
10
10
  import {
11
11
  __export
12
- } from "./ripgrep-9rqn6x4v.js";
12
+ } from "./generate-9rqn6x4v.js";
13
13
 
14
14
  // src/usage-limits.ts
15
15
  var exports_usage_limits = {};
16
16
  __export(exports_usage_limits, {
17
- Info: () => Info3,
18
- Service: () => Service13,
19
- UnavailableError: () => UnavailableError2,
17
+ Info: () => Info6,
18
+ Service: () => Service25,
19
+ UnavailableError: () => UnavailableError4,
20
20
  UsageLimits: () => exports_usage_limits,
21
- layer: () => layer9,
22
- node: () => node15
21
+ layer: () => layer13,
22
+ node: () => node28
23
23
  });
24
24
  import { Model } from "@opencode/schema/model";
25
25
  import { Money } from "@opencode/schema/money";
@@ -29,23 +29,23 @@ import { makeLocationNode } from "@opencode/util/effect/app-node";
29
29
  import { httpClient } from "@opencode/util/effect/app-node-platform";
30
30
  import { Context, Duration, Effect, Layer, Schema } from "effect";
31
31
  import { HttpClient, HttpClientRequest, HttpClientResponse } from "effect/http";
32
- var Info3 = UsageLimits.Info;
32
+ var Info6 = UsageLimits.Info;
33
33
 
34
- class UnavailableError2 extends Schema.TaggedError()("UsageLimits.UnavailableError", {
34
+ class UnavailableError4 extends Schema.TaggedError()("UsageLimits.UnavailableError", {
35
35
  message: Schema.String
36
36
  }) {
37
37
  }
38
38
 
39
- class Service13 extends Context.Service()("@opencode/UsageLimits") {
39
+ class Service25 extends Context.Service()("@opencode/UsageLimits") {
40
40
  }
41
- var layer9 = Layer.effect(Service13, Effect.gen(function* () {
42
- const integrations = yield* Service64;
41
+ var layer13 = Layer.effect(Service25, Effect.gen(function* () {
42
+ const integrations = yield* Service80;
43
43
  const http = yield* HttpClient.HttpClient;
44
44
  const get = Effect.fn("UsageLimits.get")(function* () {
45
- const connection = yield* integrations.connection.active(ID9.make("opencode"));
45
+ const connection = yield* integrations.connection.active(ID14.make("opencode"));
46
46
  if (!connection)
47
47
  return;
48
- const credential = yield* integrations.connection.resolve(connection).pipe(Effect.mapError((error) => new UnavailableError2({ message: error.message })));
48
+ const credential = yield* integrations.connection.resolve(connection).pipe(Effect.mapError((error) => new UnavailableError4({ message: error.message })));
49
49
  if (!credential || credential.type === "external")
50
50
  return;
51
51
  const workspaceID = credential.metadata?.orgID;
@@ -54,7 +54,7 @@ var layer9 = Layer.effect(Service13, Effect.gen(function* () {
54
54
  const server = server2(credential);
55
55
  const [budgets, go] = yield* Effect.all([readBudgets(http, server, credential), readGo(http, server, credential, workspaceID)], { concurrency: 2 }).pipe(Effect.timeoutOrElse({
56
56
  duration: Duration.seconds(15),
57
- orElse: () => Effect.fail(new UnavailableError2({ message: "OpenCode Console usage limits timed out" }))
57
+ orElse: () => Effect.fail(new UnavailableError4({ message: "OpenCode Console usage limits timed out" }))
58
58
  }));
59
59
  return {
60
60
  workspace: {
@@ -66,12 +66,12 @@ var layer9 = Layer.effect(Service13, Effect.gen(function* () {
66
66
  budgets
67
67
  };
68
68
  });
69
- return Service13.of({ get });
69
+ return Service25.of({ get });
70
70
  }));
71
- var node15 = makeLocationNode({
72
- service: Service13,
73
- layer: layer9,
74
- deps: [node67, httpClient]
71
+ var node28 = makeLocationNode({
72
+ service: Service25,
73
+ layer: layer13,
74
+ deps: [node84, httpClient]
75
75
  });
76
76
  var ConsoleBudget = Schema.Struct({
77
77
  ruleID: Schema.String,
@@ -117,17 +117,17 @@ function readBudgets(http, server, credential) {
117
117
  picked: budget.picked,
118
118
  shared: budget.shared,
119
119
  resetsAt: budget.resetsAt.getTime()
120
- }))))), Effect.scoped, Effect.mapError((error) => new UnavailableError2({ message: `OpenCode Console budgets are unavailable: ${error.message}` })));
120
+ }))))), Effect.scoped, Effect.mapError((error) => new UnavailableError4({ message: `OpenCode Console budgets are unavailable: ${error.message}` })));
121
121
  }
122
122
  function readGo(http, server, credential, workspaceID) {
123
123
  return HttpClient.withScope(http).execute(HttpClientRequest.get(`${new URL(server).origin}/zen/go/v1/usage`).pipe(HttpClientRequest.acceptJson, HttpClientRequest.bearerToken(credential.type === "oauth" ? credential.access : credential.key), HttpClientRequest.setHeader("x-opencode-org-id", workspaceID))).pipe(Effect.flatMap((response) => response.status === 403 ? Effect.succeed(undefined) : HttpClientResponse.filterStatusOk(response).pipe(Effect.flatMap(HttpClientResponse.schemaBodyJson(GoUsage)), Effect.map((body) => ({
124
124
  rolling: meter(body.usage.rolling),
125
125
  weekly: meter(body.usage.weekly),
126
126
  monthly: meter(body.usage.monthly)
127
- })))), Effect.scoped, Effect.mapError((error) => new UnavailableError2({ message: `OpenCode Go usage is unavailable: ${error.message}` })));
127
+ })))), Effect.scoped, Effect.mapError((error) => new UnavailableError4({ message: `OpenCode Go usage is unavailable: ${error.message}` })));
128
128
  }
129
129
  function meter(value) {
130
130
  return { percent: value.percent, limited: value.status === "rate-limited", resetsAt: value.resetsAt.getTime() };
131
131
  }
132
132
 
133
- export { Info3, UnavailableError2, Service13, layer9, node15, exports_usage_limits };
133
+ export { Info6, UnavailableError4, Service25, layer13, node28, exports_usage_limits };
@@ -1,39 +1,39 @@
1
1
  import {
2
2
  key2
3
- } from "./ripgrep-ar2j3j0f.js";
3
+ } from "./generate-61ennm6n.js";
4
4
  import {
5
- Service85
6
- } from "./ripgrep-tqf554py.js";
5
+ Service86
6
+ } from "./generate-qsh779tg.js";
7
7
  import {
8
8
  OAuth3,
9
- Event14
10
- } from "./ripgrep-kn05yypj.js";
9
+ Event19
10
+ } from "./generate-5zch7wr3.js";
11
11
  import {
12
- ID9,
12
+ ID14,
13
13
  MethodID2
14
- } from "./ripgrep-zgd7st2n.js";
14
+ } from "./generate-q18as39h.js";
15
15
  import {
16
- ID8,
16
+ ID13,
17
17
  aisdk2,
18
18
  mergeOverlay2,
19
- Service63
20
- } from "./ripgrep-mnjz2ecc.js";
19
+ Service79
20
+ } from "./generate-h5j7qrbp.js";
21
21
  import {
22
- ID7
23
- } from "./ripgrep-bwsv21wr.js";
22
+ ID11
23
+ } from "./generate-zs7h2624.js";
24
24
  import {
25
25
  load4,
26
26
  derive3
27
- } from "./ripgrep-wsh0m2bq.js";
27
+ } from "./generate-8essger0.js";
28
28
  import {
29
29
  useragent2
30
- } from "./ripgrep-dfsm4808.js";
30
+ } from "./generate-p1vte9h6.js";
31
31
  import {
32
- ID14
33
- } from "./ripgrep-aqkr4v1j.js";
32
+ ID9
33
+ } from "./generate-ksdhek8b.js";
34
34
  import {
35
35
  get5
36
- } from "./ripgrep-3nnrz6f6.js";
36
+ } from "./generate-3nnrz6f6.js";
37
37
 
38
38
  // src/plugin/provider/github-copilot.ts
39
39
  import { isRecord } from "@opencode/util/record";
@@ -66,7 +66,7 @@ var decodeUser = Schema.decodeUnknownOption(User);
66
66
  var JsonBody = Schema.fromJsonString(Schema.Unknown);
67
67
  var decodeBody = Schema.decodeUnknownOption(JsonBody);
68
68
  var oauth = (app) => ({
69
- integrationID: ID9.make("github-copilot"),
69
+ integrationID: ID14.make("github-copilot"),
70
70
  method: {
71
71
  id: methodID,
72
72
  type: "oauth",
@@ -164,8 +164,8 @@ var oauth = (app) => ({
164
164
  var GithubCopilotPlugin2 = define({
165
165
  id: "opencode.provider.github.copilot",
166
166
  effect: Effect.fn(function* (ctx) {
167
- const providers = yield* Service63;
168
- const bus = yield* Service85;
167
+ const providers = yield* Service79;
168
+ const bus = yield* Service86;
169
169
  const loading = Semaphore.makeUnsafe(1);
170
170
  const loaded = {};
171
171
  const load = Effect.fn("GithubCopilotPlugin.load")(function* () {
@@ -181,7 +181,7 @@ var GithubCopilotPlugin2 = define({
181
181
  return;
182
182
  }
183
183
  const url = copilotBaseURL2(credential.metadata) ?? baseURL();
184
- const provider = yield* providers.get(ID8.githubCopilot);
184
+ const provider = yield* providers.get(ID13.githubCopilot);
185
185
  const remote = yield* Effect.tryPromise({
186
186
  try: () => load4(url, {
187
187
  ...provider?.headers,
@@ -203,7 +203,7 @@ var GithubCopilotPlugin2 = define({
203
203
  editor.method.update(oauth(ctx.app));
204
204
  });
205
205
  yield* ctx.provider.transform((evt) => {
206
- const item = evt.get(ID8.githubCopilot);
206
+ const item = evt.get(ID13.githubCopilot);
207
207
  if (!item)
208
208
  return;
209
209
  if (loaded.models) {
@@ -231,17 +231,17 @@ var GithubCopilotPlugin2 = define({
231
231
  }
232
232
  });
233
233
  yield* ctx.model.transform((models) => {
234
- if (models.get(ID8.githubCopilot, ID7.make("gpt-5-chat-latest"))) {
235
- models.update(ID8.githubCopilot, ID7.make("gpt-5-chat-latest"), (model) => {
234
+ if (models.get(ID13.githubCopilot, ID11.make("gpt-5-chat-latest"))) {
235
+ models.update(ID13.githubCopilot, ID11.make("gpt-5-chat-latest"), (model) => {
236
236
  model.enabled = false;
237
237
  });
238
238
  }
239
239
  });
240
240
  const refresh = () => loading.withPermit(load().pipe(Effect.andThen(ctx.provider.reload())));
241
- yield* bus.subscribe(Event14.Switched).pipe(Stream.filter((event) => event.data.integrationID === ID9.make("github-copilot")), Stream.runForEach(refresh), Effect.forkScoped({ startImmediately: true }));
241
+ yield* bus.subscribe(Event19.Switched).pipe(Stream.filter((event) => event.data.integrationID === ID14.make("github-copilot")), Stream.runForEach(refresh), Effect.forkScoped({ startImmediately: true }));
242
242
  yield* refresh().pipe(Effect.forkScoped);
243
243
  yield* ctx.aisdk.hook("sdk", Effect.fn(function* (evt) {
244
- if (evt.model.providerID !== ID8.githubCopilot)
244
+ if (evt.model.providerID !== ID13.githubCopilot)
245
245
  return;
246
246
  if (evt.package !== "@ai-sdk/github-copilot")
247
247
  return;
@@ -250,7 +250,7 @@ var GithubCopilotPlugin2 = define({
250
250
  evt.sdk = mod.createOpenaiCompatible(evt.options);
251
251
  }));
252
252
  yield* ctx.session.hook("model.request", (evt) => Effect.gen(function* () {
253
- if (evt.model.providerID !== ID8.githubCopilot)
253
+ if (evt.model.providerID !== ID13.githubCopilot)
254
254
  return;
255
255
  const session = yield* ctx.session.get({ sessionID: evt.sessionID }).pipe(Effect.orElseSucceed(() => {
256
256
  return;
@@ -260,13 +260,13 @@ var GithubCopilotPlugin2 = define({
260
260
  evt.headers["X-Interaction-Id"] = session ? get5(session) : evt.sessionID;
261
261
  if (interaction !== "conversation-agent")
262
262
  evt.headers["x-initiator"] = "agent";
263
- }), { providerID: ID8.githubCopilot });
263
+ }), { providerID: ID13.githubCopilot });
264
264
  yield* ctx.session.hook("title", (evt) => Effect.gen(function* () {
265
- if (evt.model.providerID !== ID8.githubCopilot)
265
+ if (evt.model.providerID !== ID13.githubCopilot)
266
266
  return;
267
267
  if (!loaded.baseURL || !loaded.token || !loaded.models)
268
268
  return;
269
- const agent = yield* ctx.agent.get({ agentID: ID14.make("title") }).pipe(Effect.orElseSucceed(() => {
269
+ const agent = yield* ctx.agent.get({ agentID: ID9.make("title") }).pipe(Effect.orElseSucceed(() => {
270
270
  return;
271
271
  }));
272
272
  if (agent?.data.model)
@@ -277,9 +277,9 @@ var GithubCopilotPlugin2 = define({
277
277
  evt.result = yield* utilityTitle2({ baseURL: loaded.baseURL, token: loaded.token, model, app: ctx.app }, evt).pipe(Effect.tapError((cause) => Effect.logDebug("Copilot utility title failed", { model, cause })), Effect.orElseSucceed(() => {
278
278
  return;
279
279
  }));
280
- }), { providerID: ID8.githubCopilot });
280
+ }), { providerID: ID13.githubCopilot });
281
281
  yield* ctx.session.hook("http.request", (evt) => Effect.gen(function* () {
282
- if (evt.model.providerID !== ID8.githubCopilot)
282
+ if (evt.model.providerID !== ID13.githubCopilot)
283
283
  return;
284
284
  const token = evt.request.headers.get("x-api-key");
285
285
  if (!token)
@@ -287,9 +287,9 @@ var GithubCopilotPlugin2 = define({
287
287
  const text = yield* Effect.promise(() => evt.request.clone().text());
288
288
  const body = Option.getOrUndefined(decodeBody(text));
289
289
  applyHeaders(evt.request.headers, token, ctx.app, requestMetadata(evt.request.url, body), true);
290
- }), { providerID: ID8.githubCopilot });
290
+ }), { providerID: ID13.githubCopilot });
291
291
  yield* ctx.aisdk.hook("language", Effect.fn(function* (evt) {
292
- if (evt.model.providerID !== ID8.githubCopilot)
292
+ if (evt.model.providerID !== ID13.githubCopilot)
293
293
  return;
294
294
  if (evt.sdk.responses === undefined && evt.sdk.chat === undefined) {
295
295
  evt.language = evt.sdk.languageModel(evt.model.modelID ?? evt.model.id);
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  __export
3
- } from "./ripgrep-9rqn6x4v.js";
3
+ } from "./generate-9rqn6x4v.js";
4
4
 
5
5
  // src/repository.ts
6
6
  var exports_repository = {};
@@ -13,7 +13,7 @@ __export(exports_repository, {
13
13
  cachePath: () => cachePath2,
14
14
  isFile: () => isFile2,
15
15
  isRemote: () => isRemote2,
16
- parse: () => parse5,
16
+ parse: () => parse4,
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 parse5(input) {
42
+ function parse4(input) {
43
43
  const cleaned = normalizeInput(input);
44
44
  if (!cleaned)
45
45
  return;
@@ -72,7 +72,7 @@ function parse5(input) {
72
72
  }
73
73
  }
74
74
  function parseRemote2(input) {
75
- const reference = parse5(input);
75
+ const reference = parse4(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, parse5, parseRemote2, validateBranch3, isFile2, isRemote2, cachePath2, cacheIdentity2, same2, exports_repository };
175
+ export { InvalidReferenceError2, UnsupportedLocalRepositoryError2, InvalidBranchError3, parse4, parseRemote2, validateBranch3, isFile2, isRemote2, cachePath2, cacheIdentity2, same2, exports_repository };
@@ -1,29 +1,29 @@
1
1
  import {
2
- Service66
3
- } from "./ripgrep-h5qpngq0.js";
2
+ Service81
3
+ } from "./generate-aq5yna8t.js";
4
4
  import {
5
- Service55
6
- } from "./ripgrep-cy5ayqt4.js";
5
+ Service58
6
+ } from "./generate-vzd7w2ek.js";
7
7
  import {
8
8
  __export
9
- } from "./ripgrep-9rqn6x4v.js";
9
+ } from "./generate-9rqn6x4v.js";
10
10
 
11
11
  // src/tool/plugin/question.ts
12
12
  var exports_question = {};
13
13
  __export(exports_question, {
14
14
  CancelledError: () => CancelledError2,
15
- Input: () => Input14,
15
+ Input: () => Input15,
16
16
  Output: () => Output10,
17
17
  Plugin: () => Plugin51,
18
18
  QuestionTool: () => exports_question,
19
19
  description: () => description6,
20
- name: () => name14,
20
+ name: () => name15,
21
21
  toModelContent: () => toModelContent7
22
22
  });
23
23
  import { ToolFailure } from "@opencode/ai/effect";
24
24
  import { Effect, Schema } from "effect";
25
25
  import { Question } from "@opencode/schema/question";
26
- var name14 = "question";
26
+ var name15 = "question";
27
27
  var description6 = `Use this tool when you need to ask the user questions during execution. This allows you to:
28
28
  1. Gather user preferences or requirements
29
29
  2. Clarify ambiguous instructions
@@ -34,7 +34,7 @@ Usage notes:
34
34
  - A "Type your own answer" option is added automatically; don't include a separate option for free form answers
35
35
  - Set \`multiple: true\` to allow selecting more than one option
36
36
  - If you recommend a specific option, make that the first option in the list and add "(Recommended)" at the end of the label`;
37
- var Input14 = Schema.Struct({
37
+ var Input15 = Schema.Struct({
38
38
  questions: Schema.Array(Question.Prompt).check(Schema.isNonEmpty()).annotate({ description: "Questions to ask" })
39
39
  });
40
40
  var Output10 = Schema.Struct({
@@ -53,13 +53,13 @@ var toModelContent7 = (questions, answers) => {
53
53
  var Plugin51 = {
54
54
  id: "opencode.tool.question",
55
55
  effect: Effect.fn("QuestionTool.Plugin")(function* (ctx) {
56
- const forms = yield* Service66;
57
- const permission = yield* Service55;
56
+ const forms = yield* Service81;
57
+ const permission = yield* Service58;
58
58
  yield* ctx.tool.transform((editor) => editor.add({
59
- name: name14,
59
+ name: name15,
60
60
  options: { codemode: false },
61
61
  description: description6,
62
- input: Input14,
62
+ input: Input15,
63
63
  output: Output10,
64
64
  execute: (input, context) => permission.assert({
65
65
  action: "question",
@@ -117,4 +117,4 @@ function toField(question, index) {
117
117
  };
118
118
  }
119
119
 
120
- export { name14, description6, Input14, Output10, CancelledError2, toModelContent7, Plugin51, exports_question };
120
+ export { name15, description6, Input15, Output10, CancelledError2, toModelContent7, Plugin51, exports_question };
@@ -1,49 +1,49 @@
1
1
  import {
2
- Service86,
3
- node90
4
- } from "./ripgrep-9mv4bqkt.js";
2
+ Service87,
3
+ node91
4
+ } from "./generate-wresbwaf.js";
5
5
  import {
6
6
  PermissionTable2
7
- } from "./ripgrep-27w5k9zf.js";
7
+ } from "./generate-1ep2p91f.js";
8
8
  import {
9
9
  __export
10
- } from "./ripgrep-9rqn6x4v.js";
10
+ } from "./generate-9rqn6x4v.js";
11
11
 
12
12
  // src/permission/saved.ts
13
13
  var exports_saved = {};
14
14
  __export(exports_saved, {
15
15
  ConflictError: () => ConflictError2,
16
- ID: () => ID6,
16
+ ID: () => ID8,
17
17
  Info: () => Info11,
18
- NotFoundError: () => NotFoundError10,
18
+ NotFoundError: () => NotFoundError7,
19
19
  PermissionSaved: () => exports_saved,
20
- Service: () => Service57,
21
- node: () => node60
20
+ Service: () => Service59,
21
+ node: () => node61
22
22
  });
23
23
  import { eq } from "drizzle-orm";
24
24
  import { Cause, Context, DateTime, Effect, Layer, Schema } from "effect";
25
25
  import { isSqlError } from "effect/sql/SqlError";
26
26
  import { makeGlobalNode } from "@opencode/util/effect/app-node";
27
27
  import { PermissionSaved } from "@opencode/schema/permission-saved";
28
- var ID6 = PermissionSaved.ID;
28
+ var ID8 = PermissionSaved.ID;
29
29
  var Info11 = PermissionSaved.Info;
30
30
 
31
- class NotFoundError10 extends Schema.TaggedError()("PermissionSaved.NotFoundError", {
32
- id: ID6
31
+ class NotFoundError7 extends Schema.TaggedError()("PermissionSaved.NotFoundError", {
32
+ id: ID8
33
33
  }) {
34
34
  }
35
35
 
36
36
  class ConflictError2 extends Schema.TaggedError()("PermissionSaved.ConflictError", {
37
- id: ID6,
37
+ id: ID8,
38
38
  action: Schema.String,
39
39
  resource: Schema.String
40
40
  }) {
41
41
  }
42
42
 
43
- class Service57 extends Context.Service()("@opencode/PermissionSaved") {
43
+ class Service59 extends Context.Service()("@opencode/PermissionSaved") {
44
44
  }
45
- var layer = Layer.effect(Service57, Effect.gen(function* () {
46
- const db = (yield* Service86).db;
45
+ var layer = Layer.effect(Service59, Effect.gen(function* () {
46
+ const db = (yield* Service87).db;
47
47
  const list = Effect.fnUntraced(function* (input) {
48
48
  const rows = yield* db.select().from(PermissionTable2).where(input?.projectID ? eq(PermissionTable2.project_id, input.projectID) : undefined).all().pipe(Effect.orDie);
49
49
  return rows.map(info);
@@ -52,7 +52,7 @@ var layer = Layer.effect(Service57, Effect.gen(function* () {
52
52
  if (!input.resources.length)
53
53
  return;
54
54
  yield* db.insert(PermissionTable2).values(input.resources.map((resource) => ({
55
- id: ID6.create(),
55
+ id: ID8.create(),
56
56
  project_id: input.projectID,
57
57
  action: input.action,
58
58
  resource
@@ -61,18 +61,18 @@ var layer = Layer.effect(Service57, Effect.gen(function* () {
61
61
  const update = Effect.fn("PermissionSaved.update")(function* (input) {
62
62
  const current = yield* db.select().from(PermissionTable2).where(eq(PermissionTable2.id, input.id)).get().pipe(Effect.orDie);
63
63
  if (!current)
64
- return yield* new NotFoundError10({ id: input.id });
64
+ return yield* new NotFoundError7({ id: input.id });
65
65
  const action = input.action ?? current.action;
66
66
  const resource = input.resource ?? current.resource;
67
67
  const updated = yield* db.update(PermissionTable2).set({ action, resource }).where(eq(PermissionTable2.id, input.id)).returning().get().pipe(Effect.catchIf(isUniqueViolation, () => new ConflictError2({ id: input.id, action, resource })), Effect.catchTag("EffectDrizzleQueryError", (error) => Effect.die(error)));
68
68
  if (!updated)
69
- return yield* new NotFoundError10({ id: input.id });
69
+ return yield* new NotFoundError7({ id: input.id });
70
70
  return info(updated);
71
71
  });
72
72
  const remove = Effect.fn("PermissionSaved.remove")(function* (id) {
73
73
  yield* db.delete(PermissionTable2).where(eq(PermissionTable2.id, id)).run().pipe(Effect.orDie);
74
74
  });
75
- return Service57.of({ list, add, update, remove });
75
+ return Service59.of({ list, add, update, remove });
76
76
  }));
77
77
  var isUniqueViolation = (error) => {
78
78
  const sql = Cause.isCause(error.cause) ? Cause.squash(error.cause) : error.cause;
@@ -90,6 +90,6 @@ var info = (row) => ({
90
90
  updated: DateTime.makeUnsafe(row.time_updated)
91
91
  }
92
92
  });
93
- var node60 = makeGlobalNode({ service: Service57, layer, deps: [node90] });
93
+ var node61 = makeGlobalNode({ service: Service59, layer, deps: [node91] });
94
94
 
95
- export { ID6, Info11, NotFoundError10, ConflictError2, Service57, node60, exports_saved };
95
+ export { ID8, Info11, NotFoundError7, ConflictError2, Service59, node61, exports_saved };