@opencode/core 0.0.0-dev-21793 → 0.0.0-dev-21795

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 (802) hide show
  1. package/dist/account/sql.js +1 -1
  2. package/dist/agent.js +83 -83
  3. package/dist/aisdk-native.js +94 -94
  4. package/dist/aisdk.js +100 -100
  5. package/dist/app.js +9 -9
  6. package/dist/bus.js +73 -73
  7. package/dist/chunks/{file-mutation-034tev2y.js → managed-policy-034tev2y.js} +2 -2
  8. package/dist/chunks/{file-mutation-qvzyn69b.js → managed-policy-0myb0hv8.js} +7 -7
  9. package/dist/chunks/{file-mutation-9na97aeg.js → managed-policy-0t0ezgkn.js} +23 -23
  10. package/dist/chunks/{file-mutation-cppvt4zp.js → managed-policy-0xn02ny1.js} +3 -3
  11. package/dist/chunks/{file-mutation-20nwq5j7.js → managed-policy-0zq9v72r.js} +10 -10
  12. package/dist/chunks/{file-mutation-htgm1bds.js → managed-policy-14txj3e5.js} +3 -3
  13. package/dist/chunks/{file-mutation-nnra64kg.js → managed-policy-15cyj2pd.js} +52 -52
  14. package/dist/chunks/{file-mutation-bgm817xr.js → managed-policy-18g90bpv.js} +9 -9
  15. package/dist/chunks/{file-mutation-s0a3xd7q.js → managed-policy-18mmfe1f.js} +11 -11
  16. package/dist/chunks/{file-mutation-1ep2p91f.js → managed-policy-1ep2p91f.js} +2 -2
  17. package/dist/chunks/{file-mutation-mppte30v.js → managed-policy-1mpbznjz.js} +32 -32
  18. package/dist/chunks/{file-mutation-sqgyj4gx.js → managed-policy-1n4z0p15.js} +55 -55
  19. package/dist/chunks/{file-mutation-4rwjg7ym.js → managed-policy-1pfp6hjn.js} +14 -14
  20. package/dist/chunks/{file-mutation-xn4rg1bt.js → managed-policy-1wyv5fds.js} +36 -36
  21. package/dist/chunks/{file-mutation-1x2knyw4.js → managed-policy-1x2knyw4.js} +1 -1
  22. package/dist/chunks/{file-mutation-1y0wdj51.js → managed-policy-1y0wdj51.js} +1 -1
  23. package/dist/chunks/{file-mutation-fzw3ggbd.js → managed-policy-1yv6gjd4.js} +5 -5
  24. package/dist/chunks/{file-mutation-qye7m5mc.js → managed-policy-25ngw1b7.js} +15 -15
  25. package/dist/chunks/{file-mutation-42c08vbd.js → managed-policy-27jk1en4.js} +12 -12
  26. package/dist/chunks/{file-mutation-mt039edz.js → managed-policy-29525h7k.js} +34 -34
  27. package/dist/chunks/{file-mutation-mpw1k9ag.js → managed-policy-2bshgvsd.js} +3 -3
  28. package/dist/chunks/{file-mutation-j9gv32p7.js → managed-policy-2ffq6khn.js} +24 -24
  29. package/dist/chunks/{file-mutation-emq6awqh.js → managed-policy-2m2g9ynh.js} +4 -4
  30. package/dist/chunks/{file-mutation-hvnmtape.js → managed-policy-2rrayadd.js} +30 -30
  31. package/dist/chunks/{file-mutation-tdaksa41.js → managed-policy-2sde7pdr.js} +24 -24
  32. package/dist/chunks/{file-mutation-hvjpqjdc.js → managed-policy-2tfzkff6.js} +16 -16
  33. package/dist/chunks/{file-mutation-zx6dx56d.js → managed-policy-2tst3b9e.js} +9 -9
  34. package/dist/chunks/{file-mutation-2z1j29yd.js → managed-policy-2z1j29yd.js} +1 -1
  35. package/dist/chunks/{file-mutation-xf0kw6r5.js → managed-policy-33hmfn8k.js} +10 -10
  36. package/dist/chunks/{file-mutation-bqwdyg2t.js → managed-policy-39kss88q.js} +9 -9
  37. package/dist/chunks/{file-mutation-pq7xjvmm.js → managed-policy-3dp3y17e.js} +69 -69
  38. package/dist/chunks/{file-mutation-3hepkmqq.js → managed-policy-3hepkmqq.js} +1 -1
  39. package/dist/chunks/{file-mutation-mh72q75k.js → managed-policy-3n7egtfq.js} +9 -9
  40. package/dist/chunks/{file-mutation-3nnrz6f6.js → managed-policy-3nnrz6f6.js} +1 -1
  41. package/dist/chunks/{file-mutation-06t7n8q8.js → managed-policy-3qh28kw9.js} +27 -27
  42. package/dist/chunks/{file-mutation-yy2edg57.js → managed-policy-3sn0zmr9.js} +18 -18
  43. package/dist/chunks/{file-mutation-r41sfy63.js → managed-policy-40za9wsf.js} +6 -6
  44. package/dist/chunks/{file-mutation-s2fjhn33.js → managed-policy-4f6wjw9b.js} +11 -11
  45. package/dist/chunks/{file-mutation-n9pam4rb.js → managed-policy-4fx8k1s6.js} +21 -21
  46. package/dist/chunks/{file-mutation-jkk3563p.js → managed-policy-4gy3hbk0.js} +10 -10
  47. package/dist/chunks/{file-mutation-s6h5wwd7.js → managed-policy-4nz8cp64.js} +17 -17
  48. package/dist/chunks/{file-mutation-jajr2nk9.js → managed-policy-4pavydbz.js} +2 -2
  49. package/dist/chunks/{file-mutation-4v008n1t.js → managed-policy-4v008n1t.js} +1 -1
  50. package/dist/chunks/{file-mutation-x39k9451.js → managed-policy-4x3extsw.js} +8 -8
  51. package/dist/chunks/{file-mutation-jah766w3.js → managed-policy-4xbynjts.js} +1 -1
  52. package/dist/chunks/{file-mutation-r385tprj.js → managed-policy-4zyp4rz1.js} +13 -13
  53. package/dist/chunks/{file-mutation-4k9b8ckd.js → managed-policy-50ra4brc.js} +9 -9
  54. package/dist/chunks/{file-mutation-aye484sv.js → managed-policy-51jhpxmm.js} +19 -19
  55. package/dist/chunks/{file-mutation-n93ct7p0.js → managed-policy-55w14brw.js} +17 -17
  56. package/dist/chunks/{file-mutation-0j822yer.js → managed-policy-5be5tbrh.js} +30 -30
  57. package/dist/chunks/{file-mutation-ne9926sq.js → managed-policy-5bn25yvx.js} +9 -9
  58. package/dist/chunks/{file-mutation-5m9w47nd.js → managed-policy-5m9w47nd.js} +1 -1
  59. package/dist/chunks/{file-mutation-9h0z3fxn.js → managed-policy-5w95pjhr.js} +13 -13
  60. package/dist/chunks/{file-mutation-xm251h68.js → managed-policy-5zcvddpv.js} +33 -33
  61. package/dist/chunks/{file-mutation-ppvrw4s2.js → managed-policy-5zwc8z7d.js} +4 -4
  62. package/dist/chunks/{file-mutation-ak0nv30a.js → managed-policy-6080abd8.js} +18 -18
  63. package/dist/chunks/{file-mutation-16ef7g89.js → managed-policy-62nka828.js} +10 -10
  64. package/dist/chunks/{file-mutation-6esdw8yj.js → managed-policy-6esdw8yj.js} +1 -1
  65. package/dist/chunks/{file-mutation-znfqxp8f.js → managed-policy-6fkpavy9.js} +28 -28
  66. package/dist/chunks/{file-mutation-6pjqjmy2.js → managed-policy-6pjqjmy2.js} +1 -1
  67. package/dist/chunks/{file-mutation-d42sg7e1.js → managed-policy-6v9rn0ba.js} +27 -27
  68. package/dist/chunks/{file-mutation-583v5ha0.js → managed-policy-6z9q0fb1.js} +19 -19
  69. package/dist/chunks/{file-mutation-6cmnpesq.js → managed-policy-711wh92p.js} +6 -6
  70. package/dist/chunks/{file-mutation-wzkhz6q0.js → managed-policy-75137ffn.js} +4 -4
  71. package/dist/chunks/{file-mutation-w8qtt4th.js → managed-policy-76cb1hcw.js} +4 -4
  72. package/dist/chunks/{file-mutation-770pw0s1.js → managed-policy-770pw0s1.js} +1 -1
  73. package/dist/chunks/{file-mutation-npqr99vp.js → managed-policy-79yy74tq.js} +180 -180
  74. package/dist/chunks/{file-mutation-7bmhse3q.js → managed-policy-7bmhse3q.js} +1 -1
  75. package/dist/chunks/{file-mutation-e9jwpacd.js → managed-policy-7c9yzdv1.js} +28 -28
  76. package/dist/chunks/{file-mutation-9d1m9pmn.js → managed-policy-7dg649xm.js} +21 -21
  77. package/dist/chunks/{file-mutation-1nf7yf0j.js → managed-policy-7f4s0p3m.js} +42 -42
  78. package/dist/chunks/{file-mutation-fwrhh8te.js → managed-policy-7f63ea2z.js} +28 -28
  79. package/dist/chunks/{file-mutation-9z8a2djx.js → managed-policy-7pghdm2f.js} +31 -31
  80. package/dist/chunks/{file-mutation-7w2ypzdf.js → managed-policy-7w2ypzdf.js} +1 -1
  81. package/dist/chunks/{file-mutation-ad85zqd0.js → managed-policy-7z3stfjh.js} +35 -35
  82. package/dist/chunks/{file-mutation-h5tgkdcy.js → managed-policy-82jsfkky.js} +11 -11
  83. package/dist/chunks/{file-mutation-gdfaxg1p.js → managed-policy-838e58y8.js} +11 -11
  84. package/dist/chunks/{file-mutation-b0yyfzfw.js → managed-policy-84dphpr9.js} +17 -17
  85. package/dist/chunks/{file-mutation-pyyefh93.js → managed-policy-851zh3j0.js} +10 -10
  86. package/dist/chunks/{file-mutation-zcz1zead.js → managed-policy-86gmn33h.js} +16 -16
  87. package/dist/chunks/{file-mutation-jf98v3pw.js → managed-policy-86pjed9p.js} +8 -8
  88. package/dist/chunks/{file-mutation-xyeba02v.js → managed-policy-8aspdrzb.js} +1 -1
  89. package/dist/chunks/{file-mutation-0pj9ddaq.js → managed-policy-8aw03fbr.js} +3 -3
  90. package/dist/chunks/{file-mutation-j6emb5q4.js → managed-policy-8d3xcys2.js} +26 -26
  91. package/dist/chunks/{file-mutation-gjn8q2kb.js → managed-policy-8ej614zm.js} +5 -5
  92. package/dist/chunks/{file-mutation-w4aahjgf.js → managed-policy-8ht73479.js} +30 -30
  93. package/dist/chunks/managed-policy-8tdc4bs4.js +261 -0
  94. package/dist/chunks/{file-mutation-pdh4yr0t.js → managed-policy-8ty1fwe5.js} +12 -12
  95. package/dist/chunks/{file-mutation-8wtp7s3z.js → managed-policy-8wtp7s3z.js} +1 -1
  96. package/dist/chunks/{file-mutation-14zwc1tm.js → managed-policy-8zj2w8ry.js} +18 -18
  97. package/dist/chunks/{file-mutation-91rj84md.js → managed-policy-91rj84md.js} +1 -1
  98. package/dist/chunks/{file-mutation-wcm504gr.js → managed-policy-95n777kh.js} +23 -23
  99. package/dist/chunks/{file-mutation-3ycsgzwh.js → managed-policy-96fsyy14.js} +16 -16
  100. package/dist/chunks/{file-mutation-hvvf9qw8.js → managed-policy-97cewran.js} +6 -6
  101. package/dist/chunks/{file-mutation-998yhzzq.js → managed-policy-998yhzzq.js} +3 -3
  102. package/dist/chunks/{file-mutation-fvc4bqe2.js → managed-policy-9b28cy4d.js} +5 -5
  103. package/dist/chunks/{file-mutation-86e3dsdc.js → managed-policy-9gnx14jc.js} +18 -18
  104. package/dist/chunks/{file-mutation-hx36yvej.js → managed-policy-9p83n4ag.js} +14 -14
  105. package/dist/chunks/{file-mutation-5q1634ts.js → managed-policy-9qwx7yq4.js} +23 -23
  106. package/dist/chunks/{file-mutation-k10dwtqd.js → managed-policy-9r00qwzx.js} +4 -4
  107. package/dist/chunks/{file-mutation-a0e2vy3h.js → managed-policy-9ttr7wg4.js} +25 -25
  108. package/dist/chunks/{file-mutation-7jev2p96.js → managed-policy-9zrtw0ng.js} +37 -37
  109. package/dist/chunks/{file-mutation-e65cdmhb.js → managed-policy-a7hcemwv.js} +6 -6
  110. package/dist/chunks/{file-mutation-7vrycr0x.js → managed-policy-abatyzxm.js} +21 -21
  111. package/dist/chunks/{file-mutation-szcgc7h4.js → managed-policy-afmnpta1.js} +5 -5
  112. package/dist/chunks/{file-mutation-jc236n4m.js → managed-policy-agyg961t.js} +3 -3
  113. package/dist/chunks/{file-mutation-cvqwb722.js → managed-policy-an8erekz.js} +3 -3
  114. package/dist/chunks/{file-mutation-hj4sgq0k.js → managed-policy-arckp0tt.js} +49 -49
  115. package/dist/chunks/{file-mutation-99z41sf4.js → managed-policy-arz7hw7x.js} +2 -2
  116. package/dist/chunks/{file-mutation-8kf7njae.js → managed-policy-ay70qn8v.js} +9 -9
  117. package/dist/chunks/{file-mutation-ayjs7tqn.js → managed-policy-ayjs7tqn.js} +2 -2
  118. package/dist/chunks/{file-mutation-dbhxdrr0.js → managed-policy-aynbw0zy.js} +11 -11
  119. package/dist/chunks/{file-mutation-b0mv4wxm.js → managed-policy-b0mv4wxm.js} +2 -2
  120. package/dist/chunks/{file-mutation-b6vsg801.js → managed-policy-b6vsg801.js} +2 -2
  121. package/dist/chunks/{file-mutation-9dyr6dbd.js → managed-policy-baphfknr.js} +13 -13
  122. package/dist/chunks/managed-policy-bc5k4005.js +517 -0
  123. package/dist/chunks/{file-mutation-rpyyyxcq.js → managed-policy-bewwd09f.js} +28 -28
  124. package/dist/chunks/{file-mutation-xd9cc171.js → managed-policy-bstexjd6.js} +5 -5
  125. package/dist/chunks/{file-mutation-x4a10420.js → managed-policy-c1fej57t.js} +5 -5
  126. package/dist/chunks/{file-mutation-4w13ygjb.js → managed-policy-c6b16rft.js} +4 -4
  127. package/dist/chunks/{file-mutation-qx48z7fz.js → managed-policy-c7ce2teg.js} +18 -18
  128. package/dist/chunks/{file-mutation-1z6jjy5p.js → managed-policy-c8666r4c.js} +6 -6
  129. package/dist/chunks/{file-mutation-t79q4a8s.js → managed-policy-ccx0tj3k.js} +15 -15
  130. package/dist/chunks/{file-mutation-0f6r689f.js → managed-policy-cgky5gqb.js} +4 -4
  131. package/dist/chunks/{file-mutation-x1rh1q6n.js → managed-policy-ch7yww4p.js} +24 -24
  132. package/dist/chunks/{file-mutation-f378m401.js → managed-policy-ckq7ezzg.js} +28 -28
  133. package/dist/chunks/{file-mutation-b8g5x7py.js → managed-policy-csb4wctr.js} +30 -30
  134. package/dist/chunks/{file-mutation-kng2vz2g.js → managed-policy-cz0we2g4.js} +32 -32
  135. package/dist/chunks/{file-mutation-engkm2d6.js → managed-policy-d1r5081s.js} +5 -5
  136. package/dist/chunks/{file-mutation-kbn4pv95.js → managed-policy-d1vrg4at.js} +35 -35
  137. package/dist/chunks/{file-mutation-d4v9tmah.js → managed-policy-d4v9tmah.js} +2 -2
  138. package/dist/chunks/{file-mutation-hvz0d71n.js → managed-policy-dfexp956.js} +6 -6
  139. package/dist/chunks/{file-mutation-q27sz64n.js → managed-policy-dn35p0ms.js} +15 -15
  140. package/dist/chunks/{file-mutation-9qc30j8j.js → managed-policy-dr1fr17h.js} +22 -22
  141. package/dist/chunks/{file-mutation-pgga6m9y.js → managed-policy-dxfx83kj.js} +28 -28
  142. package/dist/chunks/{file-mutation-sqa3z3dz.js → managed-policy-e063jx1w.js} +11 -11
  143. package/dist/chunks/{file-mutation-m168f1q5.js → managed-policy-e22n6ctv.js} +17 -17
  144. package/dist/chunks/{file-mutation-jq88ke7r.js → managed-policy-e2x7gzav.js} +9 -9
  145. package/dist/chunks/{file-mutation-28ymys8g.js → managed-policy-e45v1dq9.js} +24 -24
  146. package/dist/chunks/{file-mutation-e834z07m.js → managed-policy-e834z07m.js} +1 -1
  147. package/dist/chunks/{file-mutation-18a9gpqs.js → managed-policy-eap9pty2.js} +15 -15
  148. package/dist/chunks/{file-mutation-n6vey4v0.js → managed-policy-ee5m4gs1.js} +18 -18
  149. package/dist/chunks/{file-mutation-412bryh6.js → managed-policy-eet2c32v.js} +20 -20
  150. package/dist/chunks/{file-mutation-rx9zn29t.js → managed-policy-er6b0kzz.js} +12 -12
  151. package/dist/chunks/{file-mutation-5et2web4.js → managed-policy-f8g33fbf.js} +32 -32
  152. package/dist/chunks/{file-mutation-ry63fkbp.js → managed-policy-fdn62rcc.js} +6 -6
  153. package/dist/chunks/{file-mutation-6wded51y.js → managed-policy-fe0b0wqf.js} +10 -10
  154. package/dist/chunks/{file-mutation-fffv3p7h.js → managed-policy-fffv3p7h.js} +1 -1
  155. package/dist/chunks/{file-mutation-5fzv3jtq.js → managed-policy-fgkarqjp.js} +24 -24
  156. package/dist/chunks/{file-mutation-a77zgm32.js → managed-policy-fhrpjj0r.js} +4 -4
  157. package/dist/chunks/{file-mutation-ydgk5ecx.js → managed-policy-frmwq4jb.js} +2 -2
  158. package/dist/chunks/{file-mutation-9bsvgzkn.js → managed-policy-g3pptkv5.js} +21 -21
  159. package/dist/chunks/{file-mutation-ah9fbd82.js → managed-policy-g5304s1h.js} +33 -33
  160. package/dist/chunks/{file-mutation-g5h9c0rr.js → managed-policy-g5h9c0rr.js} +2 -2
  161. package/dist/chunks/{file-mutation-td4wpn7p.js → managed-policy-g5yjf9jg.js} +4 -4
  162. package/dist/chunks/{file-mutation-2n8qcs80.js → managed-policy-g644dnqe.js} +26 -26
  163. package/dist/chunks/{file-mutation-agqd6nxz.js → managed-policy-g6dfma3d.js} +6 -6
  164. package/dist/chunks/{file-mutation-rv3msfz7.js → managed-policy-gf6hc92a.js} +19 -19
  165. package/dist/chunks/{file-mutation-7fkfpscz.js → managed-policy-gf8234ax.js} +5 -5
  166. package/dist/chunks/{file-mutation-c781gd4g.js → managed-policy-gpby3js0.js} +14 -14
  167. package/dist/chunks/{file-mutation-jqnr3q0b.js → managed-policy-hc8rr0f7.js} +11 -11
  168. package/dist/chunks/{file-mutation-r9vxfp52.js → managed-policy-he9da3ry.js} +24 -24
  169. package/dist/chunks/{file-mutation-zqx4v1dp.js → managed-policy-hhafapa0.js} +2 -2
  170. package/dist/chunks/{file-mutation-agt7cqbv.js → managed-policy-hzyqcp35.js} +8 -8
  171. package/dist/chunks/{file-mutation-j113cymg.js → managed-policy-j113cymg.js} +1 -1
  172. package/dist/chunks/{file-mutation-fntjqd6t.js → managed-policy-j5ekttm8.js} +48 -48
  173. package/dist/chunks/{file-mutation-m4n458ne.js → managed-policy-jg4gd8ks.js} +36 -36
  174. package/dist/chunks/{file-mutation-wfjf3dbs.js → managed-policy-jhnq0906.js} +4 -4
  175. package/dist/chunks/{file-mutation-jchrqzf6.js → managed-policy-jneg3k74.js} +4 -4
  176. package/dist/chunks/{file-mutation-c8b8mnkb.js → managed-policy-k1ss8rm4.js} +43 -43
  177. package/dist/chunks/{file-mutation-n3h7tt9m.js → managed-policy-k3gjgtk1.js} +18 -18
  178. package/dist/chunks/{file-mutation-k814nvkf.js → managed-policy-k814nvkf.js} +1 -1
  179. package/dist/chunks/{file-mutation-dycw1daa.js → managed-policy-k8zf2em2.js} +83 -83
  180. package/dist/chunks/{file-mutation-njm07axa.js → managed-policy-kgdbym9g.js} +83 -83
  181. package/dist/chunks/{file-mutation-wkv9y70z.js → managed-policy-kkrmzvm1.js} +11 -11
  182. package/dist/chunks/{file-mutation-wn5tx07g.js → managed-policy-knp52wmd.js} +42 -42
  183. package/dist/chunks/{file-mutation-kt3bjfbg.js → managed-policy-kt3bjfbg.js} +1 -1
  184. package/dist/chunks/{file-mutation-d3kt6ywa.js → managed-policy-kttwta8x.js} +24 -24
  185. package/dist/chunks/{file-mutation-jgx5v8fy.js → managed-policy-kygz8tjd.js} +20 -20
  186. package/dist/chunks/{file-mutation-azzgb3g2.js → managed-policy-kz8nn0w5.js} +7 -7
  187. package/dist/chunks/{file-mutation-ta48ntn4.js → managed-policy-m10jqfx1.js} +10 -10
  188. package/dist/chunks/{file-mutation-m1714858.js → managed-policy-m1714858.js} +1 -1
  189. package/dist/chunks/managed-policy-m1rhczw0.js +26 -0
  190. package/dist/chunks/{file-mutation-m37sd98t.js → managed-policy-m37sd98t.js} +1 -1
  191. package/dist/chunks/{file-mutation-c8j7dx8q.js → managed-policy-m5t3njjp.js} +11 -11
  192. package/dist/chunks/{file-mutation-v2map4bj.js → managed-policy-m607dzpx.js} +14 -14
  193. package/dist/chunks/{file-mutation-m9w0rfyh.js → managed-policy-m9w0rfyh.js} +1 -1
  194. package/dist/chunks/{file-mutation-maspj1v3.js → managed-policy-maspj1v3.js} +1 -1
  195. package/dist/chunks/{file-mutation-by4yhs9f.js → managed-policy-mbfac0q8.js} +7 -7
  196. package/dist/chunks/{file-mutation-rkfx65sc.js → managed-policy-mchxfxvw.js} +5 -5
  197. package/dist/chunks/{file-mutation-0ja23t1b.js → managed-policy-mf0qgk01.js} +18 -18
  198. package/dist/chunks/{file-mutation-0fpyks1q.js → managed-policy-mj47herm.js} +10 -10
  199. package/dist/chunks/{file-mutation-w1gspdc4.js → managed-policy-mpwa3hnt.js} +19 -19
  200. package/dist/chunks/{file-mutation-x9v18vd1.js → managed-policy-n03at03x.js} +11 -11
  201. package/dist/chunks/{file-mutation-n0p0277s.js → managed-policy-n0p0277s.js} +1 -1
  202. package/dist/chunks/{file-mutation-1xnx50jx.js → managed-policy-n6x2fb8a.js} +1 -1
  203. package/dist/chunks/{file-mutation-pkmtmf38.js → managed-policy-n7wnam13.js} +8 -8
  204. package/dist/chunks/{file-mutation-vpgtgc27.js → managed-policy-ncdbbenb.js} +4 -4
  205. package/dist/chunks/{file-mutation-ts53k1nz.js → managed-policy-nh4r2aae.js} +16 -16
  206. package/dist/chunks/{file-mutation-vxq3rjst.js → managed-policy-nt9bdxr0.js} +5 -5
  207. package/dist/chunks/{file-mutation-p015t6z3.js → managed-policy-p015t6z3.js} +2 -2
  208. package/dist/chunks/{file-mutation-spw53e2n.js → managed-policy-p3nedr2s.js} +11 -11
  209. package/dist/chunks/{file-mutation-wtfvr6dg.js → managed-policy-p3q23q4d.js} +25 -25
  210. package/dist/chunks/{file-mutation-jee9mcyq.js → managed-policy-p5w84a5e.js} +25 -25
  211. package/dist/chunks/{file-mutation-v9ez2kgh.js → managed-policy-p7vhpwh8.js} +5 -5
  212. package/dist/chunks/{file-mutation-dh62xe4r.js → managed-policy-pc1v25hk.js} +3 -3
  213. package/dist/chunks/{file-mutation-gzd9h9wc.js → managed-policy-pfmze3yn.js} +26 -26
  214. package/dist/chunks/{file-mutation-pknna89w.js → managed-policy-pknna89w.js} +1 -1
  215. package/dist/chunks/{file-mutation-2pmnyg9r.js → managed-policy-pkv6rmrq.js} +9 -9
  216. package/dist/chunks/{file-mutation-q4b90a1g.js → managed-policy-pq2p86g1.js} +8 -8
  217. package/dist/chunks/{file-mutation-fzpx1t84.js → managed-policy-pw9p4tf0.js} +11 -11
  218. package/dist/chunks/{file-mutation-b4mwhj0w.js → managed-policy-pzmysmsy.js} +9 -9
  219. package/dist/chunks/{file-mutation-jve1z22x.js → managed-policy-q21mtmnq.js} +2 -2
  220. package/dist/chunks/{file-mutation-qjgzc4b4.js → managed-policy-qjgzc4b4.js} +1 -1
  221. package/dist/chunks/{file-mutation-y29v8fx6.js → managed-policy-qjnb67tm.js} +6 -6
  222. package/dist/chunks/{file-mutation-tkawvzsd.js → managed-policy-qsqpg9tp.js} +7 -7
  223. package/dist/chunks/{file-mutation-d32ywmm3.js → managed-policy-qy0f7jh7.js} +9 -9
  224. package/dist/chunks/{file-mutation-r0yr0wbs.js → managed-policy-r0yr0wbs.js} +1 -1
  225. package/dist/chunks/{file-mutation-34y5t1s2.js → managed-policy-r1vtm56b.js} +12 -12
  226. package/dist/chunks/{file-mutation-ev1t90qk.js → managed-policy-r3jkh5w9.js} +19 -19
  227. package/dist/chunks/{file-mutation-tt1npxdc.js → managed-policy-r3x2rc5q.js} +13 -13
  228. package/dist/chunks/{file-mutation-r542h3bh.js → managed-policy-r542h3bh.js} +1 -1
  229. package/dist/chunks/{file-mutation-tw3w7kk6.js → managed-policy-r61tydse.js} +9 -9
  230. package/dist/chunks/{file-mutation-5w1mdqt7.js → managed-policy-r96ere88.js} +4 -4
  231. package/dist/chunks/{file-mutation-rb9dy4dg.js → managed-policy-rb9dy4dg.js} +1 -1
  232. package/dist/chunks/{file-mutation-jppfcdsv.js → managed-policy-rbha4e8j.js} +15 -15
  233. package/dist/chunks/{file-mutation-x9bfykwd.js → managed-policy-rc7nqfyw.js} +5 -5
  234. package/dist/chunks/{file-mutation-nc7nfcmn.js → managed-policy-rd395641.js} +5 -5
  235. package/dist/chunks/{file-mutation-je176taz.js → managed-policy-rmve5ma1.js} +2 -2
  236. package/dist/chunks/{file-mutation-rt5dr6hb.js → managed-policy-rt5dr6hb.js} +1 -1
  237. package/dist/chunks/{file-mutation-thhhq1vt.js → managed-policy-s3ezegtz.js} +16 -16
  238. package/dist/chunks/{file-mutation-zzdv5d93.js → managed-policy-s626qfae.js} +4 -4
  239. package/dist/chunks/{file-mutation-sa3fpqfw.js → managed-policy-sa3fpqfw.js} +2 -2
  240. package/dist/chunks/{file-mutation-e8zejd8s.js → managed-policy-scn35n2s.js} +47 -47
  241. package/dist/chunks/{file-mutation-5fjb7ams.js → managed-policy-sjmm3wxa.js} +14 -4
  242. package/dist/chunks/{file-mutation-st8aw945.js → managed-policy-smyv8e6m.js} +11 -11
  243. package/dist/chunks/{file-mutation-sqjzf8x2.js → managed-policy-sqjzf8x2.js} +1 -1
  244. package/dist/chunks/{file-mutation-c9t2ty9q.js → managed-policy-ssfehs1z.js} +4 -4
  245. package/dist/chunks/{file-mutation-tczq8hjw.js → managed-policy-tczq8hjw.js} +1 -1
  246. package/dist/chunks/{file-mutation-6krm39vr.js → managed-policy-tdqeyjar.js} +11 -11
  247. package/dist/chunks/{file-mutation-tg1vr1qt.js → managed-policy-tg1vr1qt.js} +1 -1
  248. package/dist/chunks/{file-mutation-twv2r8f4.js → managed-policy-twv2r8f4.js} +2 -2
  249. package/dist/chunks/{file-mutation-v2r1d0zg.js → managed-policy-v2r1d0zg.js} +1 -1
  250. package/dist/chunks/{file-mutation-3wyhrqfb.js → managed-policy-v8vd993n.js} +8 -8
  251. package/dist/chunks/{file-mutation-nkkjs32s.js → managed-policy-vb2g9h2k.js} +11 -11
  252. package/dist/chunks/{file-mutation-vd3b3yk9.js → managed-policy-vd3b3yk9.js} +1 -1
  253. package/dist/chunks/managed-policy-vdh3rgac.js +18 -0
  254. package/dist/chunks/{file-mutation-veqvce7d.js → managed-policy-veqvce7d.js} +1 -1
  255. package/dist/chunks/{file-mutation-dz8hhvgv.js → managed-policy-vgk61ywp.js} +9 -9
  256. package/dist/chunks/{file-mutation-b47kxsq8.js → managed-policy-w3fjdyms.js} +15 -15
  257. package/dist/chunks/{file-mutation-w3wsvvr9.js → managed-policy-w3wsvvr9.js} +1 -1
  258. package/dist/chunks/{file-mutation-dk5xnaxx.js → managed-policy-w7zjqt6n.js} +4 -4
  259. package/dist/chunks/{file-mutation-awz66qxh.js → managed-policy-w89ca4k9.js} +8 -8
  260. package/dist/chunks/{file-mutation-wakvkjy4.js → managed-policy-wakvkjy4.js} +1 -1
  261. package/dist/chunks/{file-mutation-s1tpjhgy.js → managed-policy-waq4kccd.js} +24 -24
  262. package/dist/chunks/{file-mutation-hq99wsn5.js → managed-policy-wbye8qn8.js} +13 -13
  263. package/dist/chunks/{file-mutation-kt2hvhfc.js → managed-policy-wcxnm9b3.js} +15 -15
  264. package/dist/chunks/{file-mutation-wd87259q.js → managed-policy-wd87259q.js} +1 -1
  265. package/dist/chunks/{file-mutation-0n9958p8.js → managed-policy-wkss3vh5.js} +32 -32
  266. package/dist/chunks/{file-mutation-fznmdakp.js → managed-policy-wr3re1en.js} +4 -4
  267. package/dist/chunks/{file-mutation-681w63qn.js → managed-policy-wt1sed5t.js} +2 -2
  268. package/dist/chunks/{file-mutation-184a1rnm.js → managed-policy-wwye013q.js} +4 -4
  269. package/dist/chunks/{file-mutation-5bk3jjmc.js → managed-policy-x7hdnsxb.js} +17 -17
  270. package/dist/chunks/{file-mutation-gkxweqzn.js → managed-policy-xf4m4z3t.js} +21 -21
  271. package/dist/chunks/{file-mutation-21f4f1g1.js → managed-policy-xjtwdmvz.js} +18 -18
  272. package/dist/chunks/{file-mutation-4xvmh7wp.js → managed-policy-xkfczkpn.js} +3 -3
  273. package/dist/chunks/{file-mutation-nva7xeab.js → managed-policy-xsbcx01h.js} +17 -17
  274. package/dist/chunks/{file-mutation-sv1g5dmz.js → managed-policy-xzjf81fw.js} +43 -43
  275. package/dist/chunks/{file-mutation-bs6kz8fr.js → managed-policy-y9a3321v.js} +43 -43
  276. package/dist/chunks/{file-mutation-7be1feys.js → managed-policy-y9x4pn1g.js} +6 -6
  277. package/dist/chunks/{file-mutation-jyfkkafv.js → managed-policy-yahmaqe8.js} +6 -6
  278. package/dist/chunks/{file-mutation-yb20nhc3.js → managed-policy-yb20nhc3.js} +1 -1
  279. package/dist/chunks/{file-mutation-z9etxwmp.js → managed-policy-yc4ja266.js} +17 -17
  280. package/dist/chunks/{file-mutation-ynx2y6bw.js → managed-policy-ycnqh90j.js} +16 -16
  281. package/dist/chunks/{file-mutation-e5mc6wd5.js → managed-policy-yd8f2aar.js} +15 -15
  282. package/dist/chunks/{file-mutation-rxrr3qdh.js → managed-policy-ymtqdgzg.js} +8 -8
  283. package/dist/chunks/{file-mutation-z0bkrqjs.js → managed-policy-z0bkrqjs.js} +1 -1
  284. package/dist/chunks/{file-mutation-z38nccrw.js → managed-policy-z38nccrw.js} +1 -1
  285. package/dist/chunks/{file-mutation-m6v7brdr.js → managed-policy-z5x59bbe.js} +20 -20
  286. package/dist/chunks/{file-mutation-sqz5s9dc.js → managed-policy-z7bc1hkz.js} +19 -19
  287. package/dist/chunks/{file-mutation-3c9yzw43.js → managed-policy-za2sj63g.js} +7 -7
  288. package/dist/chunks/{file-mutation-zkg84ctx.js → managed-policy-zkg84ctx.js} +1 -1
  289. package/dist/chunks/{file-mutation-5mn06ewq.js → managed-policy-zp0mbxe0.js} +23 -23
  290. package/dist/chunks/{file-mutation-vvrrv243.js → managed-policy-zttkbwvn.js} +37 -37
  291. package/dist/codemode/catalog.js +1 -1
  292. package/dist/codemode/instructions.js +5 -5
  293. package/dist/codemode/tool.js +3 -3
  294. package/dist/codemode/web.js +1 -1
  295. package/dist/command.js +87 -87
  296. package/dist/config/discovery.js +89 -89
  297. package/dist/config/markdown.js +1 -1
  298. package/dist/config/normalize.js +104 -104
  299. package/dist/config/plugin/agent.js +118 -118
  300. package/dist/config/plugin/command.js +214 -214
  301. package/dist/config/plugin/compaction.js +157 -157
  302. package/dist/config/plugin/compatibility.js +137 -137
  303. package/dist/config/plugin/entry-observer.js +1 -1
  304. package/dist/config/plugin/formatter.js +119 -119
  305. package/dist/config/plugin/image.js +118 -118
  306. package/dist/config/plugin/instruction.js +118 -118
  307. package/dist/config/plugin/location-watcher.js +118 -118
  308. package/dist/config/plugin/mcp.js +125 -125
  309. package/dist/config/plugin/policy.js +119 -119
  310. package/dist/config/plugin/provider.js +118 -118
  311. package/dist/config/plugin/reference.js +120 -120
  312. package/dist/config/plugin/shell.js +116 -116
  313. package/dist/config/plugin/skill-file.js +107 -107
  314. package/dist/config/plugin/skill-scan.js +1 -1
  315. package/dist/config/plugin/skill.js +138 -138
  316. package/dist/config/plugin/snapshot.js +118 -118
  317. package/dist/config/plugin/source.js +121 -121
  318. package/dist/config/plugin/tool-output.js +119 -119
  319. package/dist/config/plugin/websearch.js +117 -117
  320. package/dist/config/plugin/worktree.js +120 -120
  321. package/dist/config/variable.js +1 -1
  322. package/dist/config/watch.js +1 -1
  323. package/dist/config.js +123 -123
  324. package/dist/console-access.js +1 -1
  325. package/dist/credential/sql.js +2 -2
  326. package/dist/credential.js +87 -87
  327. package/dist/database/database.js +70 -70
  328. package/dist/database/drizzle/effect-sqlite/driver.js +12 -12
  329. package/dist/database/drizzle/effect-sqlite/index.js +12 -12
  330. package/dist/database/drizzle/effect-sqlite/session.js +11 -11
  331. package/dist/database/drizzle/index.js +13 -13
  332. package/dist/database/drizzle/internal/drizzle-utils.js +1 -1
  333. package/dist/database/drizzle/sqlite-core/effect/count.js +1 -1
  334. package/dist/database/drizzle/sqlite-core/effect/db.js +9 -9
  335. package/dist/database/drizzle/sqlite-core/effect/delete.js +2 -2
  336. package/dist/database/drizzle/sqlite-core/effect/index.js +10 -10
  337. package/dist/database/drizzle/sqlite-core/effect/insert.js +2 -2
  338. package/dist/database/drizzle/sqlite-core/effect/query.js +1 -1
  339. package/dist/database/drizzle/sqlite-core/effect/raw.js +1 -1
  340. package/dist/database/drizzle/sqlite-core/effect/select.js +2 -2
  341. package/dist/database/drizzle/sqlite-core/effect/session.js +10 -10
  342. package/dist/database/drizzle/sqlite-core/effect/update.js +2 -2
  343. package/dist/database/drizzle.js +14 -14
  344. package/dist/database/migration/20260127222353_familiar_lady_ursula.js +1 -1
  345. package/dist/database/migration/20260211171708_add_project_commands.js +1 -1
  346. package/dist/database/migration/20260213144116_wakeful_the_professor.js +1 -1
  347. package/dist/database/migration/20260225215848_workspace.js +1 -1
  348. package/dist/database/migration/20260227213759_add_session_workspace_id.js +1 -1
  349. package/dist/database/migration/20260228203230_blue_harpoon.js +1 -1
  350. package/dist/database/migration/20260303231226_add_workspace_fields.js +1 -1
  351. package/dist/database/migration/20260309230000_move_org_to_state.js +1 -1
  352. package/dist/database/migration/20260312043431_session_message_cursor.js +1 -1
  353. package/dist/database/migration/20260323234822_events.js +1 -1
  354. package/dist/database/migration/20260410174513_workspace-name.js +1 -1
  355. package/dist/database/migration/20260413175956_chief_energizer.js +1 -1
  356. package/dist/database/migration/20260423070820_add_icon_url_override.js +1 -1
  357. package/dist/database/migration/20260427172553_slow_nightmare.js +1 -1
  358. package/dist/database/migration/20260428004200_add_session_path.js +1 -1
  359. package/dist/database/migration/20260501142318_next_venus.js +1 -1
  360. package/dist/database/migration/20260504145000_add_sync_owner.js +1 -1
  361. package/dist/database/migration/20260507164347_add_workspace_time.js +1 -1
  362. package/dist/database/migration/20260510033149_session_usage.js +1 -1
  363. package/dist/database/migration/20260511000411_data_migration_state.js +1 -1
  364. package/dist/database/migration/20260511173437_session-metadata.js +1 -1
  365. package/dist/database/migration/20260601010001_normalize_storage_paths.js +1 -1
  366. package/dist/database/migration/20260601202201_amazing_prowler.js +1 -1
  367. package/dist/database/migration/20260602002951_lowly_union_jack.js +1 -1
  368. package/dist/database/migration/20260602182828_add_project_directories.js +1 -1
  369. package/dist/database/migration/20260603001617_session_message_projection_indexes.js +1 -1
  370. package/dist/database/migration/20260603040000_session_message_projection_order.js +1 -1
  371. package/dist/database/migration/20260603141458_session_input_inbox.js +1 -1
  372. package/dist/database/migration/20260603160727_jittery_ezekiel_stane.js +1 -1
  373. package/dist/database/migration/20260604172448_event_sourced_session_input.js +1 -1
  374. package/dist/database/migration/20260605003541_add_session_context_snapshot.js +1 -1
  375. package/dist/database/migration/20260605042240_add_context_epoch_agent.js +1 -1
  376. package/dist/database/migration/20260611035744_credential.js +1 -1
  377. package/dist/database/migration/20260611192811_lush_chimera.js +1 -1
  378. package/dist/database/migration/20260612174303_project_dir_strategy.js +1 -1
  379. package/dist/database/migration/20260622142730_simplify_session_context_epoch.js +1 -1
  380. package/dist/database/migration/20260622170816_reset_v2_session_state.js +1 -1
  381. package/dist/database/migration/20260622202450_simplify_session_input.js +1 -1
  382. package/dist/database/migration/20260804233008_loose_psylocke.js +1 -1
  383. package/dist/database/migration/20260805200742_import_legacy_credentials.js +1 -1
  384. package/dist/database/migration/20260808023530_workspace_domain.js +1 -1
  385. package/dist/database/migration/20260811161259_execution_claim_attempts.js +1 -1
  386. package/dist/database/migration/20260812181746_session_inbox.js +1 -1
  387. package/dist/database/migration/20260812213948_worktree.js +1 -1
  388. package/dist/database/migration/20260819222447_session_viewed_state.js +1 -1
  389. package/dist/database/migration/20260823191254_nullable_workspace_binding.js +1 -1
  390. package/dist/database/migration/20260910120000_clear_v1_session_permission.js +1 -1
  391. package/dist/database/migration/20260923013825_project_time_active.js +1 -1
  392. package/dist/database/migration/20261007190000_azure_cli_external_credential.js +1 -1
  393. package/dist/database/migration/20261010180456_project_time_archived.js +1 -1
  394. package/dist/database/migration/20261024002554_session_allowance.js +1 -1
  395. package/dist/database/migration/20261024175301_drop_session_allowance.js +1 -1
  396. package/dist/database/migration.gen.js +53 -53
  397. package/dist/database/migration.js +55 -55
  398. package/dist/database/path.js +2 -2
  399. package/dist/database/schema.gen.js +1 -1
  400. package/dist/database/schema.sql.js +1 -1
  401. package/dist/database/sqlite.bun.js +1 -1
  402. package/dist/database/sqlite.js +1 -1
  403. package/dist/database/sqlite.node.js +1 -1
  404. package/dist/database/sqlite.workerd.js +1 -1
  405. package/dist/database/v1-migration.bun.js +97 -97
  406. package/dist/database/v1-migration.js +1 -1
  407. package/dist/effect/app-node-builder.js +374 -374
  408. package/dist/effect/app-node-platform.js +2 -2
  409. package/dist/effect/keyed-mutex.js +1 -1
  410. package/dist/effect/websocket-constructor.js +1 -1
  411. package/dist/environment/driver.js +1 -1
  412. package/dist/environment/environment.js +98 -98
  413. package/dist/environment/exec-defaults.js +2 -2
  414. package/dist/environment/files.js +1 -1
  415. package/dist/environment/index.js +98 -98
  416. package/dist/environment/local.js +2 -2
  417. package/dist/environment/memory.js +2 -2
  418. package/dist/environment/unavailable.js +3 -3
  419. package/dist/event/sql.js +1 -1
  420. package/dist/event-logger.js +74 -74
  421. package/dist/file-access.js +109 -109
  422. package/dist/file-mutation.js +99 -99
  423. package/dist/file-retention.js +1 -1
  424. package/dist/filesystem/fff.bun.js +2 -2
  425. package/dist/filesystem/fff.js +1 -1
  426. package/dist/filesystem/fff.node.js +2 -2
  427. package/dist/filesystem/fff.workerd.js +2 -2
  428. package/dist/filesystem/location-watcher-policy.js +6 -6
  429. package/dist/filesystem/location-watcher.js +227 -227
  430. package/dist/filesystem/protected.js +3 -3
  431. package/dist/filesystem/search.js +102 -102
  432. package/dist/filesystem/watcher-binding.js +1 -1
  433. package/dist/filesystem/watcher.js +11 -11
  434. package/dist/filesystem.js +107 -107
  435. package/dist/form.js +88 -88
  436. package/dist/formatter/builtins.js +4 -4
  437. package/dist/formatter.js +92 -92
  438. package/dist/generate.js +110 -110
  439. package/dist/git.js +11 -11
  440. package/dist/github-copilot/chat/convert-to-openai-compatible-chat-messages.js +1 -1
  441. package/dist/github-copilot/chat/get-response-metadata.js +1 -1
  442. package/dist/github-copilot/chat/map-openai-compatible-finish-reason.js +1 -1
  443. package/dist/github-copilot/chat/openai-compatible-chat-language-model.js +7 -7
  444. package/dist/github-copilot/chat/openai-compatible-chat-options.js +1 -1
  445. package/dist/github-copilot/chat/openai-compatible-prepare-tools.js +1 -1
  446. package/dist/github-copilot/copilot-provider.js +17 -17
  447. package/dist/github-copilot/models.js +96 -96
  448. package/dist/github-copilot/openai-compatible-error.js +1 -1
  449. package/dist/github-copilot/responses/convert-to-openai-responses-input.js +1 -1
  450. package/dist/github-copilot/responses/map-openai-responses-finish-reason.js +1 -1
  451. package/dist/github-copilot/responses/openai-error.js +1 -1
  452. package/dist/github-copilot/responses/openai-responses-language-model.js +10 -10
  453. package/dist/github-copilot/responses/openai-responses-prepare-tools.js +6 -6
  454. package/dist/github-copilot/responses/tool/code-interpreter.js +1 -1
  455. package/dist/github-copilot/responses/tool/file-search.js +1 -1
  456. package/dist/github-copilot/responses/tool/image-generation.js +1 -1
  457. package/dist/github-copilot/responses/tool/web-search-preview.js +1 -1
  458. package/dist/github-copilot/responses/tool/web-search.js +1 -1
  459. package/dist/image/photon.js +2 -2
  460. package/dist/image.js +6 -6
  461. package/dist/instance/service.js +5 -5
  462. package/dist/instance.js +365 -365
  463. package/dist/instruction-discovery.js +88 -88
  464. package/dist/instructions/builtins.js +92 -92
  465. package/dist/instructions/index.js +3 -3
  466. package/dist/integration/connection.js +3 -3
  467. package/dist/integration.js +93 -93
  468. package/dist/job.js +82 -82
  469. package/dist/kv/sql.js +2 -2
  470. package/dist/kv.js +77 -77
  471. package/dist/location-activity.js +158 -158
  472. package/dist/location-lifecycle.js +112 -112
  473. package/dist/location-service-map.js +91 -91
  474. package/dist/location-services.js +362 -362
  475. package/dist/location.js +94 -94
  476. package/dist/managed-policy.js +8 -8
  477. package/dist/mcp/client.js +96 -96
  478. package/dist/mcp/index.js +112 -112
  479. package/dist/mcp/instructions.js +143 -143
  480. package/dist/mcp/oauth.js +82 -82
  481. package/dist/mcp/socket-client.js +1 -1
  482. package/dist/mcp/stdio.js +95 -95
  483. package/dist/mime.js +1 -1
  484. package/dist/modal/models.js +96 -96
  485. package/dist/model-resolver.js +104 -104
  486. package/dist/model-retry.js +1 -1
  487. package/dist/model.js +107 -107
  488. package/dist/models-dev.js +112 -112
  489. package/dist/oauth/page.js +1 -1
  490. package/dist/permission/saved.js +84 -84
  491. package/dist/permission/sql.js +5 -5
  492. package/dist/permission.js +112 -112
  493. package/dist/persistent-pty/binary.bun.js +1 -1
  494. package/dist/persistent-pty/daemon.js +1 -1
  495. package/dist/persistent-pty/index.js +92 -92
  496. package/dist/persistent-pty/pty-binding.js +1 -1
  497. package/dist/persistent-pty.js +79 -79
  498. package/dist/plugin/agent.js +78 -78
  499. package/dist/plugin/command.js +105 -105
  500. package/dist/plugin/hooks.js +5 -5
  501. package/dist/plugin/host.js +220 -220
  502. package/dist/plugin/identity.js +5 -5
  503. package/dist/plugin/instance.js +1 -1
  504. package/dist/plugin/internal.js +335 -335
  505. package/dist/plugin/mcp-codemode-defaults.js +3 -3
  506. package/dist/plugin/models-dev.js +101 -101
  507. package/dist/plugin/module.js +119 -119
  508. package/dist/plugin/optimize.js +4 -4
  509. package/dist/plugin/plan.js +107 -107
  510. package/dist/plugin/promise.js +1 -1
  511. package/dist/plugin/provider/amazon-bedrock.js +95 -95
  512. package/dist/plugin/provider/azure.js +118 -118
  513. package/dist/plugin/provider/cerebras.js +1 -1
  514. package/dist/plugin/provider/chatgpt.js +118 -118
  515. package/dist/plugin/provider/cloudflare-ai-gateway.js +115 -115
  516. package/dist/plugin/provider/cloudflare-workers-ai.js +115 -115
  517. package/dist/plugin/provider/cohere.js +2 -2
  518. package/dist/plugin/provider/configured.js +114 -114
  519. package/dist/plugin/provider/databricks.js +1 -1
  520. package/dist/plugin/provider/digitalocean.js +98 -98
  521. package/dist/plugin/provider/dynamic.js +2 -2
  522. package/dist/plugin/provider/factory.js +1 -1
  523. package/dist/plugin/provider/github-copilot.js +100 -100
  524. package/dist/plugin/provider/gitlab.js +98 -98
  525. package/dist/plugin/provider/google-vertex.js +115 -115
  526. package/dist/plugin/provider/kilo.js +1 -1
  527. package/dist/plugin/provider/llmgateway.js +82 -82
  528. package/dist/plugin/provider/lmstudio.js +127 -127
  529. package/dist/plugin/provider/local.js +124 -124
  530. package/dist/plugin/provider/modal.js +97 -97
  531. package/dist/plugin/provider/neon.js +1 -1
  532. package/dist/plugin/provider/nvidia.js +1 -1
  533. package/dist/plugin/provider/ollama.js +127 -127
  534. package/dist/plugin/provider/openai-context-caps.js +95 -95
  535. package/dist/plugin/provider/openai.js +120 -120
  536. package/dist/plugin/provider/opencode.js +104 -104
  537. package/dist/plugin/provider/openrouter.js +96 -96
  538. package/dist/plugin/provider/perplexity.js +2 -2
  539. package/dist/plugin/provider/poe.js +83 -83
  540. package/dist/plugin/provider/prompt-cache-key.js +1 -1
  541. package/dist/plugin/provider/sap-ai-core.js +96 -96
  542. package/dist/plugin/provider/sdk-factory.js +1 -1
  543. package/dist/plugin/provider/snowflake-cortex.js +117 -117
  544. package/dist/plugin/provider/vercel.js +95 -95
  545. package/dist/plugin/provider/vllm.js +127 -127
  546. package/dist/plugin/provider/xai.js +96 -96
  547. package/dist/plugin/provider/zenmux.js +1 -1
  548. package/dist/plugin/provider.js +171 -171
  549. package/dist/plugin/sdk.js +78 -78
  550. package/dist/plugin/service.js +3 -3
  551. package/dist/plugin/skill.js +136 -136
  552. package/dist/plugin/source-directory.js +1 -1
  553. package/dist/plugin/supervisor.js +350 -350
  554. package/dist/plugin/tool-input-repair.js +4 -4
  555. package/dist/plugin/update.js +6 -6
  556. package/dist/plugin/vcs/git.js +91 -91
  557. package/dist/plugin/vcs/hg.js +91 -91
  558. package/dist/plugin/verbosity.js +98 -98
  559. package/dist/plugin/warming.js +116 -116
  560. package/dist/plugin/websearch/exa.js +5 -5
  561. package/dist/plugin/websearch/firecrawl.js +8 -8
  562. package/dist/plugin/websearch/index.js +9 -9
  563. package/dist/plugin/websearch/mcp.js +4 -4
  564. package/dist/plugin/websearch/parallel.js +6 -6
  565. package/dist/plugin/websearch/tavily.js +6 -6
  566. package/dist/plugin/websearch/tinyfish.js +8 -8
  567. package/dist/plugin.js +227 -227
  568. package/dist/project/schema.js +8 -8
  569. package/dist/project/sql.js +4 -4
  570. package/dist/project.js +93 -93
  571. package/dist/provider.js +102 -102
  572. package/dist/pty/protocol.js +1 -1
  573. package/dist/pty/ticket.js +1 -1
  574. package/dist/pty.js +101 -101
  575. package/dist/reference/instructions.js +94 -94
  576. package/dist/reference.js +96 -96
  577. package/dist/repository-cache.js +86 -86
  578. package/dist/repository.js +3 -3
  579. package/dist/ripgrep/binary.js +2 -2
  580. package/dist/ripgrep.js +102 -102
  581. package/dist/rpc.js +91 -91
  582. package/dist/schema.js +1 -1
  583. package/dist/session/affinity.js +1 -1
  584. package/dist/session/command.js +78 -78
  585. package/dist/session/compaction.js +141 -141
  586. package/dist/session/context.js +167 -167
  587. package/dist/session/diff.js +93 -93
  588. package/dist/session/environment.js +5 -5
  589. package/dist/session/error.js +5 -5
  590. package/dist/session/event.js +1 -1
  591. package/dist/session/execution/restart.js +223 -223
  592. package/dist/session/execution.js +133 -133
  593. package/dist/session/generate.js +167 -167
  594. package/dist/session/history.js +13 -13
  595. package/dist/session/inbox.js +97 -97
  596. package/dist/session/info.js +3 -3
  597. package/dist/session/instruction-entry.js +83 -83
  598. package/dist/session/instruction-state.js +8 -8
  599. package/dist/session/instructions.js +102 -102
  600. package/dist/session/message-updater.js +2 -2
  601. package/dist/session/message.js +1 -1
  602. package/dist/session/model-request.js +125 -125
  603. package/dist/session/model-transport.js +9 -9
  604. package/dist/session/move.js +135 -135
  605. package/dist/session/projector.js +93 -93
  606. package/dist/session/prompt.js +110 -110
  607. package/dist/session/recent-text.js +1 -1
  608. package/dist/session/revert.js +99 -99
  609. package/dist/session/run-coordinator.js +3 -3
  610. package/dist/session/runner/index.js +3 -3
  611. package/dist/session/runner/llm.js +233 -233
  612. package/dist/session/runner/max-steps.js +1 -1
  613. package/dist/session/runner/model.js +105 -105
  614. package/dist/session/runner/publish-llm-event.js +118 -118
  615. package/dist/session/runner/retry.js +5 -5
  616. package/dist/session/runner/step.js +131 -131
  617. package/dist/session/runner/to-llm-message.js +14 -14
  618. package/dist/session/schema.js +3 -3
  619. package/dist/session/session.js +165 -165
  620. package/dist/session/shell.js +132 -132
  621. package/dist/session/skill.js +108 -108
  622. package/dist/session/sql.js +5 -5
  623. package/dist/session/stats.js +77 -77
  624. package/dist/session/store.js +89 -89
  625. package/dist/session/subagent-completion.js +1 -1
  626. package/dist/session/subagent-job.js +214 -214
  627. package/dist/session/system-prompt.js +1 -1
  628. package/dist/session/title.js +171 -171
  629. package/dist/session/to-session-error.js +117 -117
  630. package/dist/session/transfer.js +219 -219
  631. package/dist/session/usage.js +1 -1
  632. package/dist/session.js +216 -216
  633. package/dist/shell/parse.js +6 -6
  634. package/dist/shell/result.js +1 -1
  635. package/dist/shell/scan.js +1 -1
  636. package/dist/shell/select.js +13 -13
  637. package/dist/shell.js +134 -134
  638. package/dist/skill/discovery.js +6 -6
  639. package/dist/skill/instructions.js +110 -110
  640. package/dist/skill.js +117 -117
  641. package/dist/snapshot.js +98 -98
  642. package/dist/state.js +1 -1
  643. package/dist/tool/html-markdown.js +1 -1
  644. package/dist/tool/http-body.js +1 -1
  645. package/dist/tool/mcp.js +140 -140
  646. package/dist/tool/plugin/edit.js +119 -119
  647. package/dist/tool/plugin/file-diff.js +1 -1
  648. package/dist/tool/plugin/glob.js +127 -127
  649. package/dist/tool/plugin/grep.js +127 -127
  650. package/dist/tool/plugin/mcp-resource.js +129 -129
  651. package/dist/tool/plugin/opencode.js +114 -114
  652. package/dist/tool/plugin/patch.js +127 -127
  653. package/dist/tool/plugin/question.js +108 -108
  654. package/dist/tool/plugin/read.js +128 -128
  655. package/dist/tool/plugin/shell.js +217 -217
  656. package/dist/tool/plugin/skill.js +118 -118
  657. package/dist/tool/plugin/subagent.js +221 -221
  658. package/dist/tool/plugin/todo.js +140 -140
  659. package/dist/tool/plugin/webfetch.js +118 -118
  660. package/dist/tool/plugin/websearch.js +113 -113
  661. package/dist/tool/plugin/write.js +127 -127
  662. package/dist/tool/read-filesystem.js +105 -105
  663. package/dist/tool/runtime.js +1 -1
  664. package/dist/tool-output.js +7 -7
  665. package/dist/tool.js +12 -12
  666. package/dist/usage-limits.js +93 -93
  667. package/dist/util/error-summary.js +1 -1
  668. package/dist/util/git-executable.js +3 -3
  669. package/dist/util/lazy.js +1 -1
  670. package/dist/util/slug.js +1 -1
  671. package/dist/util/token.js +1 -1
  672. package/dist/util/which.js +1 -1
  673. package/dist/util/wildcard.js +1 -1
  674. package/dist/v1/config/agent.js +5 -5
  675. package/dist/v1/config/command.js +3 -3
  676. package/dist/v1/config/mcp.js +4 -4
  677. package/dist/v1/config/migrate.js +97 -97
  678. package/dist/v1/config/permission.js +1 -1
  679. package/dist/v1/config/plugin.js +3 -3
  680. package/dist/v1/config/provider-options.js +1 -1
  681. package/dist/v1/config/provider.js +4 -4
  682. package/dist/variant.js +98 -98
  683. package/dist/vcs/patch.js +1 -1
  684. package/dist/vcs.js +94 -94
  685. package/dist/voice.js +92 -92
  686. package/dist/websearch.js +88 -88
  687. package/dist/wellknown/plugin.js +78 -78
  688. package/dist/wellknown.js +85 -85
  689. package/dist/workspace/driver.js +5 -5
  690. package/dist/workspace/sql.js +1 -1
  691. package/dist/workspace.js +86 -86
  692. package/dist/worktree/directory.js +2 -2
  693. package/dist/worktree/git.js +9 -9
  694. package/dist/worktree/sql.js +5 -5
  695. package/dist/worktree/strategies.js +94 -94
  696. package/dist/worktree.js +101 -101
  697. package/package.json +8 -8
  698. package/dist/chunks/file-mutation-f9b0xc0f.js +0 -26
  699. package/dist/chunks/file-mutation-pp26ka9h.js +0 -261
  700. package/dist/chunks/file-mutation-qrbmkj4e.js +0 -517
  701. package/dist/chunks/file-mutation-z7bdqmx5.js +0 -18
  702. /package/dist/chunks/{file-mutation-0qkdqm5v.js → managed-policy-0qkdqm5v.js} +0 -0
  703. /package/dist/chunks/{file-mutation-0zkw76rk.js → managed-policy-0zkw76rk.js} +0 -0
  704. /package/dist/chunks/{file-mutation-17cy0kzp.js → managed-policy-17cy0kzp.js} +0 -0
  705. /package/dist/chunks/{file-mutation-1cnp2v09.js → managed-policy-1cnp2v09.js} +0 -0
  706. /package/dist/chunks/{file-mutation-24dcb14g.js → managed-policy-24dcb14g.js} +0 -0
  707. /package/dist/chunks/{file-mutation-2710q6r3.js → managed-policy-2710q6r3.js} +0 -0
  708. /package/dist/chunks/{file-mutation-2bv980vf.js → managed-policy-2bv980vf.js} +0 -0
  709. /package/dist/chunks/{file-mutation-2c3vjs8z.js → managed-policy-2c3vjs8z.js} +0 -0
  710. /package/dist/chunks/{file-mutation-359p4xyc.js → managed-policy-359p4xyc.js} +0 -0
  711. /package/dist/chunks/{file-mutation-3asan66x.js → managed-policy-3asan66x.js} +0 -0
  712. /package/dist/chunks/{file-mutation-3v8g72cx.js → managed-policy-3v8g72cx.js} +0 -0
  713. /package/dist/chunks/{file-mutation-3wcehsnq.js → managed-policy-3wcehsnq.js} +0 -0
  714. /package/dist/chunks/{file-mutation-43n2bw4t.js → managed-policy-43n2bw4t.js} +0 -0
  715. /package/dist/chunks/{file-mutation-4knz6hnm.js → managed-policy-4knz6hnm.js} +0 -0
  716. /package/dist/chunks/{file-mutation-4vcrnpx2.js → managed-policy-4vcrnpx2.js} +0 -0
  717. /package/dist/chunks/{file-mutation-4y7fprxs.js → managed-policy-4y7fprxs.js} +0 -0
  718. /package/dist/chunks/{file-mutation-53557ph1.js → managed-policy-53557ph1.js} +0 -0
  719. /package/dist/chunks/{file-mutation-550bvhaj.js → managed-policy-550bvhaj.js} +0 -0
  720. /package/dist/chunks/{file-mutation-5qd3pb7m.js → managed-policy-5qd3pb7m.js} +0 -0
  721. /package/dist/chunks/{file-mutation-6prwharc.js → managed-policy-6prwharc.js} +0 -0
  722. /package/dist/chunks/{file-mutation-6q2bdcd1.js → managed-policy-6q2bdcd1.js} +0 -0
  723. /package/dist/chunks/{file-mutation-7akdwqpd.js → managed-policy-7akdwqpd.js} +0 -0
  724. /package/dist/chunks/{file-mutation-7m9af43g.js → managed-policy-7m9af43g.js} +0 -0
  725. /package/dist/chunks/{file-mutation-822emrt2.js → managed-policy-822emrt2.js} +0 -0
  726. /package/dist/chunks/{file-mutation-84wd9syh.js → managed-policy-84wd9syh.js} +0 -0
  727. /package/dist/chunks/{file-mutation-88xbtdfr.js → managed-policy-88xbtdfr.js} +0 -0
  728. /package/dist/chunks/{file-mutation-8n3pysct.js → managed-policy-8n3pysct.js} +0 -0
  729. /package/dist/chunks/{file-mutation-8wj87zfr.js → managed-policy-8wj87zfr.js} +0 -0
  730. /package/dist/chunks/{file-mutation-9a4afbnw.js → managed-policy-9a4afbnw.js} +0 -0
  731. /package/dist/chunks/{file-mutation-9rqn6x4v.js → managed-policy-9rqn6x4v.js} +0 -0
  732. /package/dist/chunks/{file-mutation-a058387c.js → managed-policy-a058387c.js} +0 -0
  733. /package/dist/chunks/{file-mutation-a6k6eb26.js → managed-policy-a6k6eb26.js} +0 -0
  734. /package/dist/chunks/{file-mutation-af5trqkr.js → managed-policy-af5trqkr.js} +0 -0
  735. /package/dist/chunks/{file-mutation-afrmfg78.js → managed-policy-afrmfg78.js} +0 -0
  736. /package/dist/chunks/{file-mutation-aqzs7mqg.js → managed-policy-aqzs7mqg.js} +0 -0
  737. /package/dist/chunks/{file-mutation-atq7p7m5.js → managed-policy-atq7p7m5.js} +0 -0
  738. /package/dist/chunks/{file-mutation-bkyjaxrp.js → managed-policy-bkyjaxrp.js} +0 -0
  739. /package/dist/chunks/{file-mutation-bmr6ed5q.js → managed-policy-bmr6ed5q.js} +0 -0
  740. /package/dist/chunks/{file-mutation-cf4snx6d.js → managed-policy-cf4snx6d.js} +0 -0
  741. /package/dist/chunks/{file-mutation-cqv5kn06.js → managed-policy-cqv5kn06.js} +0 -0
  742. /package/dist/chunks/{file-mutation-cvy3z8tj.js → managed-policy-cvy3z8tj.js} +0 -0
  743. /package/dist/chunks/{file-mutation-d9fn303g.js → managed-policy-d9fn303g.js} +0 -0
  744. /package/dist/chunks/{file-mutation-d9jj8t3e.js → managed-policy-d9jj8t3e.js} +0 -0
  745. /package/dist/chunks/{file-mutation-dajrwvna.js → managed-policy-dajrwvna.js} +0 -0
  746. /package/dist/chunks/{file-mutation-dap0rakb.js → managed-policy-dap0rakb.js} +0 -0
  747. /package/dist/chunks/{file-mutation-df08tz66.js → managed-policy-df08tz66.js} +0 -0
  748. /package/dist/chunks/{file-mutation-dy18nga0.js → managed-policy-dy18nga0.js} +0 -0
  749. /package/dist/chunks/{file-mutation-e5kj55wp.js → managed-policy-e5kj55wp.js} +0 -0
  750. /package/dist/chunks/{file-mutation-e73j6tqm.js → managed-policy-e73j6tqm.js} +0 -0
  751. /package/dist/chunks/{file-mutation-ec1grn59.js → managed-policy-ec1grn59.js} +0 -0
  752. /package/dist/chunks/{file-mutation-eh3zwz77.js → managed-policy-eh3zwz77.js} +0 -0
  753. /package/dist/chunks/{file-mutation-emrn6kk6.js → managed-policy-emrn6kk6.js} +0 -0
  754. /package/dist/chunks/{file-mutation-f0mxakyp.js → managed-policy-f0mxakyp.js} +0 -0
  755. /package/dist/chunks/{file-mutation-f6n9ztr4.js → managed-policy-f6n9ztr4.js} +0 -0
  756. /package/dist/chunks/{file-mutation-faypxj3z.js → managed-policy-faypxj3z.js} +0 -0
  757. /package/dist/chunks/{file-mutation-fd410y7t.js → managed-policy-fd410y7t.js} +0 -0
  758. /package/dist/chunks/{file-mutation-g4wezp1m.js → managed-policy-g4wezp1m.js} +0 -0
  759. /package/dist/chunks/{file-mutation-g86h250q.js → managed-policy-g86h250q.js} +0 -0
  760. /package/dist/chunks/{file-mutation-gebd4c9n.js → managed-policy-gebd4c9n.js} +0 -0
  761. /package/dist/chunks/{file-mutation-gftt206x.js → managed-policy-gftt206x.js} +0 -0
  762. /package/dist/chunks/{file-mutation-hcxmzztb.js → managed-policy-hcxmzztb.js} +0 -0
  763. /package/dist/chunks/{file-mutation-hk9envan.js → managed-policy-hk9envan.js} +0 -0
  764. /package/dist/chunks/{file-mutation-j2ntwpah.js → managed-policy-j2ntwpah.js} +0 -0
  765. /package/dist/chunks/{file-mutation-j5zkgpj8.js → managed-policy-j5zkgpj8.js} +0 -0
  766. /package/dist/chunks/{file-mutation-jjkms2e6.js → managed-policy-jjkms2e6.js} +0 -0
  767. /package/dist/chunks/{file-mutation-jr7sbwjy.js → managed-policy-jr7sbwjy.js} +0 -0
  768. /package/dist/chunks/{file-mutation-jwfs4k6c.js → managed-policy-jwfs4k6c.js} +0 -0
  769. /package/dist/chunks/{file-mutation-jwr30sdr.js → managed-policy-jwr30sdr.js} +0 -0
  770. /package/dist/chunks/{file-mutation-jze0r7bz.js → managed-policy-jze0r7bz.js} +0 -0
  771. /package/dist/chunks/{file-mutation-jzg6c2d5.js → managed-policy-jzg6c2d5.js} +0 -0
  772. /package/dist/chunks/{file-mutation-m18g726c.js → managed-policy-m18g726c.js} +0 -0
  773. /package/dist/chunks/{file-mutation-mp448xyj.js → managed-policy-mp448xyj.js} +0 -0
  774. /package/dist/chunks/{file-mutation-msx8hqn2.js → managed-policy-msx8hqn2.js} +0 -0
  775. /package/dist/chunks/{file-mutation-n05xt0ee.js → managed-policy-n05xt0ee.js} +0 -0
  776. /package/dist/chunks/{file-mutation-n3j8tn72.js → managed-policy-n3j8tn72.js} +0 -0
  777. /package/dist/chunks/{file-mutation-njntx4h6.js → managed-policy-njntx4h6.js} +0 -0
  778. /package/dist/chunks/{file-mutation-pkyv6v7h.js → managed-policy-pkyv6v7h.js} +0 -0
  779. /package/dist/chunks/{file-mutation-q3sfg36h.js → managed-policy-q3sfg36h.js} +0 -0
  780. /package/dist/chunks/{file-mutation-q74kybfr.js → managed-policy-q74kybfr.js} +0 -0
  781. /package/dist/chunks/{file-mutation-qaymkmh1.js → managed-policy-qaymkmh1.js} +0 -0
  782. /package/dist/chunks/{file-mutation-qb87gjwd.js → managed-policy-qb87gjwd.js} +0 -0
  783. /package/dist/chunks/{file-mutation-qfa1cgps.js → managed-policy-qfa1cgps.js} +0 -0
  784. /package/dist/chunks/{file-mutation-qg3g05ea.js → managed-policy-qg3g05ea.js} +0 -0
  785. /package/dist/chunks/{file-mutation-qrg20bc0.js → managed-policy-qrg20bc0.js} +0 -0
  786. /package/dist/chunks/{file-mutation-rcb2kzg1.js → managed-policy-rcb2kzg1.js} +0 -0
  787. /package/dist/chunks/{file-mutation-sdp7kfr6.js → managed-policy-sdp7kfr6.js} +0 -0
  788. /package/dist/chunks/{file-mutation-ssg3fenm.js → managed-policy-ssg3fenm.js} +0 -0
  789. /package/dist/chunks/{file-mutation-ve7vex1e.js → managed-policy-ve7vex1e.js} +0 -0
  790. /package/dist/chunks/{file-mutation-w803qqfp.js → managed-policy-w803qqfp.js} +0 -0
  791. /package/dist/chunks/{file-mutation-wc3fc9cn.js → managed-policy-wc3fc9cn.js} +0 -0
  792. /package/dist/chunks/{file-mutation-wer8tq1h.js → managed-policy-wer8tq1h.js} +0 -0
  793. /package/dist/chunks/{file-mutation-wjj7prxr.js → managed-policy-wjj7prxr.js} +0 -0
  794. /package/dist/chunks/{file-mutation-wtztk69x.js → managed-policy-wtztk69x.js} +0 -0
  795. /package/dist/chunks/{file-mutation-x0ckcb58.js → managed-policy-x0ckcb58.js} +0 -0
  796. /package/dist/chunks/{file-mutation-x61499pn.js → managed-policy-x61499pn.js} +0 -0
  797. /package/dist/chunks/{file-mutation-y44na4kk.js → managed-policy-y44na4kk.js} +0 -0
  798. /package/dist/chunks/{file-mutation-y8f7s663.js → managed-policy-y8f7s663.js} +0 -0
  799. /package/dist/chunks/{file-mutation-ygaqb7jw.js → managed-policy-ygaqb7jw.js} +0 -0
  800. /package/dist/chunks/{file-mutation-ym463w8f.js → managed-policy-ym463w8f.js} +0 -0
  801. /package/dist/chunks/{file-mutation-z5v4ffb3.js → managed-policy-z5v4ffb3.js} +0 -0
  802. /package/dist/chunks/{file-mutation-z9919s4g.js → managed-policy-z9919s4g.js} +0 -0
@@ -1,37 +1,37 @@
1
1
  import {
2
2
  batch2
3
- } from "./file-mutation-vd3b3yk9.js";
3
+ } from "./managed-policy-vd3b3yk9.js";
4
4
  import {
5
- Service51
6
- } from "./file-mutation-fntjqd6t.js";
5
+ Service62
6
+ } from "./managed-policy-j5ekttm8.js";
7
7
  import {
8
8
  match2
9
- } from "./file-mutation-z38nccrw.js";
9
+ } from "./managed-policy-z38nccrw.js";
10
10
  import {
11
- Service13,
11
+ Service54,
12
12
  statements2,
13
13
  decision2
14
- } from "./file-mutation-20nwq5j7.js";
14
+ } from "./managed-policy-0zq9v72r.js";
15
15
  import {
16
16
  observe2
17
- } from "./file-mutation-6pjqjmy2.js";
17
+ } from "./managed-policy-6pjqjmy2.js";
18
18
  import {
19
19
  __export
20
- } from "./file-mutation-9rqn6x4v.js";
20
+ } from "./managed-policy-9rqn6x4v.js";
21
21
 
22
22
  // src/config/plugin/policy.ts
23
23
  var exports_policy = {};
24
24
  __export(exports_policy, {
25
25
  ConfigPolicyPlugin: () => exports_policy,
26
- Plugin: () => Plugin40
26
+ Plugin: () => Plugin44
27
27
  });
28
28
  import { define } from "@opencode/plugin/effect/plugin";
29
29
  import { Effect, Stream } from "effect";
30
- var Plugin40 = define({
30
+ var Plugin44 = define({
31
31
  id: "opencode.config.policy",
32
32
  effect: Effect.fn(function* (ctx) {
33
- const config = yield* Service51;
34
- const managed = yield* Service13;
33
+ const config = yield* Service62;
34
+ const managed = yield* Service54;
35
35
  const reload = batch2(Effect.all([ctx.provider.reload(), ctx.mcp.reload(), ctx.skill.reload()], { discard: true }));
36
36
  const loaded = yield* observe2(config, ctx.event, reload);
37
37
  yield* managed.changes().pipe(Stream.runForEach(() => reload), Effect.forkScoped({ startImmediately: true }));
@@ -76,4 +76,4 @@ var Plugin40 = define({
76
76
  })
77
77
  });
78
78
 
79
- export { Plugin40, exports_policy };
79
+ export { Plugin44, exports_policy };
@@ -1,55 +1,55 @@
1
1
  import {
2
2
  AbsolutePath2,
3
3
  RelativePath2
4
- } from "./file-mutation-z5v4ffb3.js";
4
+ } from "./managed-policy-z5v4ffb3.js";
5
5
  import {
6
6
  Repository2,
7
7
  TreeID2,
8
- Service80,
9
- node83
10
- } from "./file-mutation-pdh4yr0t.js";
8
+ Service84,
9
+ node88
10
+ } from "./managed-policy-8ty1fwe5.js";
11
11
  import {
12
- Service78,
13
- node81
14
- } from "./file-mutation-m168f1q5.js";
12
+ Service82,
13
+ node86
14
+ } from "./managed-policy-e22n6ctv.js";
15
15
  import {
16
16
  create3
17
- } from "./file-mutation-vd3b3yk9.js";
17
+ } from "./managed-policy-vd3b3yk9.js";
18
18
  import {
19
19
  __export
20
- } from "./file-mutation-9rqn6x4v.js";
20
+ } from "./managed-policy-9rqn6x4v.js";
21
21
 
22
22
  // src/snapshot.ts
23
23
  var exports_snapshot2 = {};
24
24
  __export(exports_snapshot2, {
25
- Error: () => Error4,
26
- ID: () => ID10,
27
- Service: () => Service69,
25
+ Error: () => Error3,
26
+ ID: () => ID5,
27
+ Service: () => Service44,
28
28
  Snapshot: () => exports_snapshot2,
29
- node: () => node71,
30
- noopLayer: () => noopLayer3
29
+ node: () => node47,
30
+ noopLayer: () => noopLayer2
31
31
  });
32
32
  import { makeLocationNode } from "@opencode/util/effect/app-node";
33
33
  import path from "path";
34
34
  import { Clock, Context, Effect, Fiber, Layer, Schema, Scope } from "effect";
35
35
  import { FSUtil } from "@opencode/util/fs-util";
36
36
  import { Global } from "@opencode/util/global";
37
- import { ID as ID10 } from "@opencode/schema/snapshot";
37
+ import { ID as ID5 } from "@opencode/schema/snapshot";
38
38
  import { Hash } from "@opencode/util/hash";
39
- class Error4 extends Schema.TaggedError()("Snapshot.Error", {
39
+ class Error3 extends Schema.TaggedError()("Snapshot.Error", {
40
40
  operation: Schema.Literals(["capture", "files", "diff", "restore"]),
41
41
  message: Schema.String,
42
42
  cause: Schema.optional(Schema.Defect())
43
43
  }) {
44
44
  }
45
45
 
46
- class Service69 extends Context.Service()("@opencode/Snapshot") {
46
+ class Service44 extends Context.Service()("@opencode/Snapshot") {
47
47
  }
48
- var layer = Layer.effect(Service69, Effect.gen(function* () {
48
+ var layer = Layer.effect(Service44, Effect.gen(function* () {
49
49
  const fs = yield* FSUtil.Service;
50
- const git = yield* Service80;
50
+ const git = yield* Service84;
51
51
  const global = yield* Global.Service;
52
- const location = yield* Service78;
52
+ const location = yield* Service82;
53
53
  const lifetime = yield* Scope.Scope;
54
54
  const state = create3({
55
55
  name: "snapshot",
@@ -63,7 +63,7 @@ var layer = Layer.effect(Service69, Effect.gen(function* () {
63
63
  const repositoryFiber = yield* Effect.cached(Effect.gen(function* () {
64
64
  const source = yield* git.repo.discover(location.project.directory);
65
65
  if (!source)
66
- return yield* new Error4({ operation: "capture", message: "Project is not a Git repository" });
66
+ return yield* new Error3({ operation: "capture", message: "Project is not a Git repository" });
67
67
  const worktree = AbsolutePath2.make(yield* fs.realPath(source.worktree).pipe(Effect.orDie));
68
68
  const gitDirectory = AbsolutePath2.make(path.join(global.data, "snapshot", location.project.id, Hash.fast(worktree)));
69
69
  const snapshotRepository = (yield* fs.existsSafe(path.join(gitDirectory, "HEAD"))) ? new Repository2({ worktree, gitDirectory, commonDirectory: gitDirectory }) : yield* git.repo.create({ worktree, gitDirectory, seed: source }).pipe(Effect.mapError((cause) => failure("capture", cause)));
@@ -72,7 +72,7 @@ var layer = Layer.effect(Service69, Effect.gen(function* () {
72
72
  const repository = repositoryFiber.pipe(Effect.uninterruptible, Effect.flatMap(Fiber.join));
73
73
  const scope = Effect.fnUntraced(function* (worktree) {
74
74
  if (!FSUtil.contains(worktree, location.directory))
75
- return yield* new Error4({ operation: "capture", message: "Location is outside the project" });
75
+ return yield* new Error3({ operation: "capture", message: "Location is outside the project" });
76
76
  return RelativePath2.make(path.relative(worktree, location.directory).replaceAll("\\", "/") || ".");
77
77
  });
78
78
  const enabled = () => location.vcs?.type === "git" && state.get().enabled;
@@ -96,7 +96,7 @@ var layer = Layer.effect(Service69, Effect.gen(function* () {
96
96
  maximumUntrackedFileBytes: 2 * 1024 * 1024
97
97
  });
98
98
  yield* packWhenDue(repo.snapshotRepository);
99
- return ID10.make(tree);
99
+ return ID5.make(tree);
100
100
  }).pipe(Effect.catch((cause) => Effect.logWarning("failed to capture snapshot", { cause }).pipe(Effect.as(undefined))));
101
101
  });
102
102
  const comparison = Effect.fnUntraced(function* (operation, input) {
@@ -141,25 +141,25 @@ var layer = Layer.effect(Service69, Effect.gen(function* () {
141
141
  for (const [file, snapshot] of input.files) {
142
142
  const absolute = path.resolve(worktree, file);
143
143
  if (!FSUtil.contains(worktree, absolute))
144
- return yield* new Error4({ operation: "restore", message: `Path escapes the project: ${file}` });
144
+ return yield* new Error3({ operation: "restore", message: `Path escapes the project: ${file}` });
145
145
  files.set(file, TreeID2.make(snapshot));
146
146
  }
147
147
  return files;
148
148
  });
149
149
  const restore = Effect.fn("Snapshot.restore")(function* (input) {
150
150
  if (!enabled())
151
- return yield* new Error4({ operation: "restore", message: "Snapshots are disabled" });
151
+ return yield* new Error3({ operation: "restore", message: "Snapshots are disabled" });
152
152
  const repo = yield* repository.pipe(Effect.mapError((cause) => failure("restore", cause)));
153
153
  yield* git.tree.restore({ repository: repo.snapshotRepository, files: yield* plan(repo.worktree, input) }).pipe(Effect.mapError((cause) => failure("restore", cause)));
154
154
  });
155
- return Service69.of({ transform: state.transform, reload: state.reload, capture, files, diff, restore });
155
+ return Service44.of({ transform: state.transform, reload: state.reload, capture, files, diff, restore });
156
156
  }).pipe(Effect.withSpan("Snapshot.boot")));
157
- var node71 = makeLocationNode({
158
- service: Service69,
157
+ var node47 = makeLocationNode({
158
+ service: Service44,
159
159
  layer,
160
- deps: [FSUtil.node, node83, Global.node, node81]
160
+ deps: [FSUtil.node, node88, Global.node, node86]
161
161
  });
162
- var noopLayer3 = Layer.succeed(Service69, Service69.of({
162
+ var noopLayer2 = Layer.succeed(Service44, Service44.of({
163
163
  transform: () => Effect.succeed({ dispose: Effect.void }),
164
164
  reload: () => Effect.void,
165
165
  capture: () => Effect.undefined,
@@ -168,13 +168,13 @@ var noopLayer3 = Layer.succeed(Service69, Service69.of({
168
168
  restore: () => Effect.void
169
169
  }));
170
170
  function failure(operation, cause) {
171
- if (cause instanceof Error4 && cause.operation === operation)
171
+ if (cause instanceof Error3 && cause.operation === operation)
172
172
  return cause;
173
- return new Error4({
173
+ return new Error3({
174
174
  operation,
175
175
  message: cause instanceof globalThis.Error ? cause.message : String(cause),
176
176
  cause
177
177
  });
178
178
  }
179
179
 
180
- export { ID10, Error4, Service69, node71, noopLayer3, exports_snapshot2 };
180
+ export { ID5, Error3, Service44, node47, noopLayer2, exports_snapshot2 };
@@ -1,17 +1,17 @@
1
1
  import {
2
2
  Service87,
3
3
  node91
4
- } from "./file-mutation-0pj9ddaq.js";
4
+ } from "./managed-policy-8aw03fbr.js";
5
5
  import {
6
6
  EventSequenceTable2,
7
7
  EventTable2
8
- } from "./file-mutation-2710q6r3.js";
8
+ } from "./managed-policy-2710q6r3.js";
9
9
  import {
10
10
  makeUnsafe2
11
- } from "./file-mutation-qjgzc4b4.js";
11
+ } from "./managed-policy-qjgzc4b4.js";
12
12
  import {
13
13
  __export
14
- } from "./file-mutation-9rqn6x4v.js";
14
+ } from "./managed-policy-9rqn6x4v.js";
15
15
 
16
16
  // src/bus.ts
17
17
  var exports_bus = {};
@@ -2,26 +2,26 @@ import {
2
2
  NonNegativeInt2,
3
3
  PositiveInt2,
4
4
  RelativePath2
5
- } from "./file-mutation-z5v4ffb3.js";
5
+ } from "./managed-policy-z5v4ffb3.js";
6
6
  import {
7
- Service71,
8
- node73
9
- } from "./file-mutation-x1rh1q6n.js";
7
+ Service48,
8
+ node52
9
+ } from "./managed-policy-ch7yww4p.js";
10
10
  import {
11
11
  RipgrepBinary2
12
- } from "./file-mutation-maspj1v3.js";
12
+ } from "./managed-policy-maspj1v3.js";
13
13
  import {
14
14
  __export
15
- } from "./file-mutation-9rqn6x4v.js";
15
+ } from "./managed-policy-9rqn6x4v.js";
16
16
 
17
17
  // src/ripgrep.ts
18
18
  var exports_ripgrep = {};
19
19
  __export(exports_ripgrep, {
20
- Error: () => Error3,
20
+ Error: () => Error4,
21
21
  InvalidPatternError: () => InvalidPatternError2,
22
22
  Ripgrep: () => exports_ripgrep,
23
- Service: () => Service56,
24
- node: () => node58
23
+ Service: () => Service47,
24
+ node: () => node50
25
25
  });
26
26
  import { Context, Effect, Fiber, Layer, Schema, Stream } from "effect";
27
27
  import { ChildProcess } from "effect/process";
@@ -46,7 +46,7 @@ var RawMatch = Schema.Struct({
46
46
  });
47
47
  var decodeJsonRecord = Schema.decodeUnknownEffect(Schema.fromJsonString(Schema.Unknown));
48
48
 
49
- class Error3 extends Schema.TaggedError()("Ripgrep.Error", {
49
+ class Error4 extends Schema.TaggedError()("Ripgrep.Error", {
50
50
  message: Schema.String,
51
51
  cause: Schema.optional(Schema.Defect())
52
52
  }) {
@@ -58,13 +58,13 @@ class InvalidPatternError2 extends Schema.TaggedError()("Ripgrep.InvalidPatternE
58
58
  }) {
59
59
  }
60
60
 
61
- class Service56 extends Context.Service()("@opencode/Ripgrep") {
61
+ class Service47 extends Context.Service()("@opencode/Ripgrep") {
62
62
  }
63
- var failure = (message, cause) => new Error3({ message, cause });
63
+ var failure = (message, cause) => new Error4({ message, cause });
64
64
  var normalizePath = (value) => value.replace(/^(?:\.[\\/])+/u, "").replace(/^[\\/]+/u, "").replaceAll("\\", "/");
65
65
  var isInvalidPattern = (stderr) => stderr.includes("regex parse error") || stderr.includes("error parsing regex");
66
- var layer = Layer.effect(Service56, Effect.gen(function* () {
67
- const environment = yield* Service71;
66
+ var layer = Layer.effect(Service47, Effect.gen(function* () {
67
+ const environment = yield* Service48;
68
68
  const binary = yield* RipgrepBinary2.Service;
69
69
  const run = (input) => {
70
70
  const program = Effect.scoped(Effect.gen(function* () {
@@ -90,9 +90,9 @@ var layer = Layer.effect(Service56, Effect.gen(function* () {
90
90
  return code === 1 ? [] : rows;
91
91
  }));
92
92
  const abortable = input.signal ? program.pipe(Effect.raceFirst(waitForAbort(input.signal))) : program;
93
- return abortable.pipe(Effect.mapError((cause) => cause instanceof Error3 || cause instanceof InvalidPatternError2 ? cause : failure("ripgrep execution failed", cause)));
93
+ return abortable.pipe(Effect.mapError((cause) => cause instanceof Error4 || cause instanceof InvalidPatternError2 ? cause : failure("ripgrep execution failed", cause)));
94
94
  };
95
- return Service56.of({
95
+ return Service47.of({
96
96
  glob: (input) => run({
97
97
  cwd: input.cwd,
98
98
  limit: input.limit,
@@ -175,6 +175,6 @@ var layer = Layer.effect(Service56, Effect.gen(function* () {
175
175
  }))))
176
176
  });
177
177
  }));
178
- var node58 = makeLocationNode({ service: Service56, layer, deps: [node73, RipgrepBinary2.node] });
178
+ var node50 = makeLocationNode({ service: Service47, layer, deps: [node52, RipgrepBinary2.node] });
179
179
 
180
- export { Error3, InvalidPatternError2, Service56, node58, exports_ripgrep };
180
+ export { Error4, InvalidPatternError2, Service47, node50, exports_ripgrep };
@@ -5,24 +5,24 @@ import {
5
5
  emptyPatch2,
6
6
  splitGitPatch2,
7
7
  chunksByFile2
8
- } from "./file-mutation-rb9dy4dg.js";
8
+ } from "./managed-policy-rb9dy4dg.js";
9
9
  import {
10
10
  gitExecutable2
11
- } from "./file-mutation-sa3fpqfw.js";
11
+ } from "./managed-policy-sa3fpqfw.js";
12
12
  import {
13
- Service78
14
- } from "./file-mutation-m168f1q5.js";
13
+ Service82
14
+ } from "./managed-policy-e22n6ctv.js";
15
15
  import {
16
16
  DiffError2
17
- } from "./file-mutation-n9pam4rb.js";
17
+ } from "./managed-policy-4fx8k1s6.js";
18
18
  import {
19
19
  __export
20
- } from "./file-mutation-9rqn6x4v.js";
20
+ } from "./managed-policy-9rqn6x4v.js";
21
21
 
22
22
  // src/plugin/vcs/git.ts
23
23
  var exports_git = {};
24
24
  __export(exports_git, {
25
- Plugin: () => Plugin23,
25
+ Plugin: () => Plugin2,
26
26
  VcsGitPlugin: () => exports_git
27
27
  });
28
28
  import { randomUUID } from "crypto";
@@ -33,10 +33,10 @@ import { define } from "@opencode/plugin/effect/plugin";
33
33
  import { Effect } from "effect";
34
34
  import { ChildProcess } from "effect/process";
35
35
  import { AppProcess } from "@opencode/util/process";
36
- var Plugin23 = define({
36
+ var Plugin2 = define({
37
37
  id: "opencode.vcs.git",
38
38
  effect: Effect.fn("VcsGitPlugin")(function* (ctx) {
39
- const location = yield* Service78;
39
+ const location = yield* Service82;
40
40
  if (location.vcs && location.vcs.type !== "git")
41
41
  return;
42
42
  const processes = yield* AppProcess.Service;
@@ -553,4 +553,4 @@ var track = Effect.fnUntraced(function* (ctx, ref, options) {
553
553
  return yield* diffAgainstRef(ctx, ref, options);
554
554
  });
555
555
 
556
- export { Plugin23, exports_git };
556
+ export { Plugin2, exports_git };
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  __export
3
- } from "./file-mutation-9rqn6x4v.js";
3
+ } from "./managed-policy-9rqn6x4v.js";
4
4
 
5
5
  // src/plugin/source-directory.ts
6
6
  var exports_source_directory = {};
@@ -1,39 +1,39 @@
1
1
  import {
2
2
  Failed2
3
- } from "./file-mutation-zkg84ctx.js";
3
+ } from "./managed-policy-zkg84ctx.js";
4
4
  import {
5
5
  execDefaults2
6
- } from "./file-mutation-g5h9c0rr.js";
6
+ } from "./managed-policy-g5h9c0rr.js";
7
7
  import {
8
8
  Service87,
9
9
  node91
10
- } from "./file-mutation-0pj9ddaq.js";
10
+ } from "./managed-policy-8aw03fbr.js";
11
11
  import {
12
12
  makeUnsafe2
13
- } from "./file-mutation-qjgzc4b4.js";
13
+ } from "./managed-policy-qjgzc4b4.js";
14
14
  import {
15
15
  Binding2,
16
16
  RegistryService2,
17
- node85
18
- } from "./file-mutation-ry63fkbp.js";
17
+ node54
18
+ } from "./managed-policy-fdn62rcc.js";
19
19
  import {
20
20
  WorkspaceTable2
21
- } from "./file-mutation-faypxj3z.js";
21
+ } from "./managed-policy-faypxj3z.js";
22
22
  import {
23
23
  __export
24
- } from "./file-mutation-9rqn6x4v.js";
24
+ } from "./managed-policy-9rqn6x4v.js";
25
25
 
26
26
  // src/workspace.ts
27
27
  var exports_workspace = {};
28
28
  __export(exports_workspace, {
29
29
  CreateConflict: () => CreateConflict2,
30
- ID: () => ID15,
31
- Info: () => Info26,
30
+ ID: () => ID6,
31
+ Info: () => Info9,
32
32
  NotFound: () => NotFound2,
33
- Service: () => Service81,
33
+ Service: () => Service49,
34
34
  Workspace: () => exports_workspace,
35
- configured: () => configured11,
36
- node: () => node84
35
+ configured: () => configured8,
36
+ node: () => node53
37
37
  });
38
38
  import { Workspace } from "@opencode/schema/workspace";
39
39
  import { makeGlobalNode } from "@opencode/util/effect/app-node";
@@ -41,10 +41,10 @@ import { eq } from "drizzle-orm";
41
41
  import { Clock, Context, Deferred, Duration, Effect, Exit, FiberSet, Layer, Ref, Schedule, Schema, Scope } from "effect";
42
42
  import { systemError } from "effect/PlatformError";
43
43
  import { make } from "effect/process/ChildProcessSpawner";
44
- var ID15 = Workspace.ID;
44
+ var ID6 = Workspace.ID;
45
45
 
46
- class Info26 extends Schema.Class("Workspace.Info")({
47
- id: ID15,
46
+ class Info9 extends Schema.Class("Workspace.Info")({
47
+ id: ID6,
48
48
  provider: Schema.String,
49
49
  binding: Binding2,
50
50
  createdAt: Schema.Number,
@@ -52,24 +52,24 @@ class Info26 extends Schema.Class("Workspace.Info")({
52
52
  }) {
53
53
  }
54
54
 
55
- class NotFound2 extends Schema.TaggedError()("Workspace.NotFound", { workspaceID: ID15 }) {
55
+ class NotFound2 extends Schema.TaggedError()("Workspace.NotFound", { workspaceID: ID6 }) {
56
56
  }
57
57
 
58
58
  class CreateConflict2 extends Schema.TaggedError()("Workspace.CreateConflict", {
59
- workspaceID: ID15,
59
+ workspaceID: ID6,
60
60
  provider: Schema.String,
61
61
  existingProvider: Schema.String
62
62
  }) {
63
63
  }
64
64
 
65
- class Service81 extends Context.Service()("@opencode/Workspace") {
65
+ class Service49 extends Context.Service()("@opencode/Workspace") {
66
66
  }
67
- var configured11 = (options = {}) => makeGlobalNode({
68
- service: Service81,
67
+ var configured8 = (options = {}) => makeGlobalNode({
68
+ service: Service49,
69
69
  layer: layer(options),
70
- deps: [node91, node85]
70
+ deps: [node91, node54]
71
71
  });
72
- var layer = (options) => Layer.effect(Service81, Effect.gen(function* () {
72
+ var layer = (options) => Layer.effect(Service49, Effect.gen(function* () {
73
73
  const db = (yield* Service87).db;
74
74
  const registry = yield* RegistryService2;
75
75
  const lifetime = yield* Scope.Scope;
@@ -86,7 +86,7 @@ var layer = (options) => Layer.effect(Service81, Effect.gen(function* () {
86
86
  return row;
87
87
  });
88
88
  const saveBinding = (workspaceID, binding) => db.update(WorkspaceTable2).set({ binding }).where(eq(WorkspaceTable2.id, workspaceID)).run().pipe(Effect.orDie);
89
- const info = (row, binding) => new Info26({
89
+ const info = (row, binding) => new Info9({
90
90
  id: row.id,
91
91
  provider: row.provider,
92
92
  binding,
@@ -164,9 +164,9 @@ var layer = (options) => Layer.effect(Service81, Effect.gen(function* () {
164
164
  yield* Scope.close(connection.scope, Exit.void);
165
165
  }).pipe(Effect.catchCause((cause) => Effect.logError("workspace idle suspension failed", cause)))), { concurrency: "unbounded", discard: true });
166
166
  }).pipe(Effect.repeat(Schedule.spaced(options.pollInterval ?? Duration.minutes(1))), Effect.forkScoped);
167
- return Service81.of({
167
+ return Service49.of({
168
168
  create: Effect.fn("Workspace.create")(function* (input) {
169
- const workspaceID = input.id ?? ID15.create();
169
+ const workspaceID = input.id ?? ID6.create();
170
170
  const existing = yield* db.select({ provider: WorkspaceTable2.provider }).from(WorkspaceTable2).where(eq(WorkspaceTable2.id, workspaceID)).get().pipe(Effect.orDie);
171
171
  if (existing) {
172
172
  if (existing.provider === input.provider)
@@ -242,6 +242,6 @@ var layer = (options) => Layer.effect(Service81, Effect.gen(function* () {
242
242
  })
243
243
  });
244
244
  }));
245
- var node84 = configured11();
245
+ var node53 = configured8();
246
246
 
247
- export { ID15, Info26, NotFound2, CreateConflict2, Service81, configured11, node84, exports_workspace };
247
+ export { ID6, Info9, NotFound2, CreateConflict2, Service49, configured8, node53, exports_workspace };
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  __export
3
- } from "./file-mutation-9rqn6x4v.js";
3
+ } from "./managed-policy-9rqn6x4v.js";
4
4
 
5
5
  // src/config/plugin/entry-observer.ts
6
6
  var exports_entry_observer = {};
@@ -1,25 +1,25 @@
1
1
  import {
2
2
  server2,
3
3
  headers2
4
- } from "./file-mutation-kt3bjfbg.js";
4
+ } from "./managed-policy-kt3bjfbg.js";
5
5
  import {
6
- ID16,
7
- Service83,
8
- node87
9
- } from "./file-mutation-rpyyyxcq.js";
6
+ ID13,
7
+ Service76,
8
+ node80
9
+ } from "./managed-policy-bewwd09f.js";
10
10
  import {
11
11
  __export
12
- } from "./file-mutation-9rqn6x4v.js";
12
+ } from "./managed-policy-9rqn6x4v.js";
13
13
 
14
14
  // src/usage-limits.ts
15
15
  var exports_usage_limits = {};
16
16
  __export(exports_usage_limits, {
17
- Info: () => Info15,
18
- Service: () => Service57,
19
- UnavailableError: () => UnavailableError3,
17
+ Info: () => Info3,
18
+ Service: () => Service14,
19
+ UnavailableError: () => UnavailableError2,
20
20
  UsageLimits: () => exports_usage_limits,
21
- layer: () => layer22,
22
- node: () => node59
21
+ layer: () => layer9,
22
+ node: () => node16
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 Info15 = UsageLimits.Info;
32
+ var Info3 = UsageLimits.Info;
33
33
 
34
- class UnavailableError3 extends Schema.TaggedError()("UsageLimits.UnavailableError", {
34
+ class UnavailableError2 extends Schema.TaggedError()("UsageLimits.UnavailableError", {
35
35
  message: Schema.String
36
36
  }) {
37
37
  }
38
38
 
39
- class Service57 extends Context.Service()("@opencode/UsageLimits") {
39
+ class Service14 extends Context.Service()("@opencode/UsageLimits") {
40
40
  }
41
- var layer22 = Layer.effect(Service57, Effect.gen(function* () {
42
- const integrations = yield* Service83;
41
+ var layer9 = Layer.effect(Service14, Effect.gen(function* () {
42
+ const integrations = yield* Service76;
43
43
  const http = yield* HttpClient.HttpClient;
44
44
  const get = Effect.fn("UsageLimits.get")(function* () {
45
- const connection = yield* integrations.connection.active(ID16.make("opencode"));
45
+ const connection = yield* integrations.connection.active(ID13.make("opencode"));
46
46
  if (!connection)
47
47
  return;
48
- const credential = yield* integrations.connection.resolve(connection).pipe(Effect.mapError((error) => new UnavailableError3({ message: error.message })));
48
+ const credential = yield* integrations.connection.resolve(connection).pipe(Effect.mapError((error) => new UnavailableError2({ 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 layer22 = Layer.effect(Service57, 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 UnavailableError3({ message: "OpenCode Console usage limits timed out" }))
57
+ orElse: () => Effect.fail(new UnavailableError2({ message: "OpenCode Console usage limits timed out" }))
58
58
  }));
59
59
  return {
60
60
  workspace: {
@@ -66,12 +66,12 @@ var layer22 = Layer.effect(Service57, Effect.gen(function* () {
66
66
  budgets
67
67
  };
68
68
  });
69
- return Service57.of({ get });
69
+ return Service14.of({ get });
70
70
  }));
71
- var node59 = makeLocationNode({
72
- service: Service57,
73
- layer: layer22,
74
- deps: [node87, httpClient]
71
+ var node16 = makeLocationNode({
72
+ service: Service14,
73
+ layer: layer9,
74
+ deps: [node80, 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 UnavailableError3({ message: `OpenCode Console budgets are unavailable: ${error.message}` })));
120
+ }))))), Effect.scoped, Effect.mapError((error) => new UnavailableError2({ 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 UnavailableError3({ message: `OpenCode Go usage is unavailable: ${error.message}` })));
127
+ })))), Effect.scoped, Effect.mapError((error) => new UnavailableError2({ 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 { Info15, UnavailableError3, Service57, layer22, node59, exports_usage_limits };
133
+ export { Info3, UnavailableError2, Service14, layer9, node16, exports_usage_limits };