@opencode/core 0.0.0-dev-466 → 0.0.0-dev-468

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 (538) hide show
  1. package/dist/agent.js +75 -75
  2. package/dist/aisdk-native.js +73 -73
  3. package/dist/aisdk.js +78 -78
  4. package/dist/app.js +9 -9
  5. package/dist/artifact.js +198 -198
  6. package/dist/bus.js +61 -61
  7. package/dist/chunks/{tool-output-djw2zn7q.js → tool-output-003nb3x9.js} +6 -6
  8. package/dist/chunks/{tool-output-n0nkwf14.js → tool-output-0f7cqh9y.js} +19 -19
  9. package/dist/chunks/{tool-output-yb225m05.js → tool-output-0g084y6g.js} +8 -8
  10. package/dist/chunks/{tool-output-gnwamg3p.js → tool-output-0mncc170.js} +18 -18
  11. package/dist/chunks/{tool-output-jx32s6s7.js → tool-output-0qn973hg.js} +41 -41
  12. package/dist/chunks/{tool-output-cf9r8vqq.js → tool-output-0w5jtxws.js} +2 -2
  13. package/dist/chunks/{tool-output-x87ytaxf.js → tool-output-10xvpzbz.js} +8 -8
  14. package/dist/chunks/{tool-output-w6zbx7sx.js → tool-output-15x6q7ay.js} +27 -27
  15. package/dist/chunks/{tool-output-h187kc3f.js → tool-output-1dzaet6x.js} +22 -22
  16. package/dist/chunks/{tool-output-7eev1cf5.js → tool-output-1k3fpg92.js} +16 -16
  17. package/dist/chunks/{tool-output-26wfx3k0.js → tool-output-1q07fp1w.js} +3 -3
  18. package/dist/chunks/{tool-output-f341sazs.js → tool-output-1vbrkdbs.js} +1 -1
  19. package/dist/chunks/{tool-output-v9ez2kgh.js → tool-output-1yq9hg58.js} +4 -4
  20. package/dist/chunks/{tool-output-pxp22qz6.js → tool-output-1zyreaf5.js} +5 -5
  21. package/dist/chunks/{tool-output-8zfy3skd.js → tool-output-20f8tgrs.js} +84 -84
  22. package/dist/chunks/{tool-output-dkrnptrz.js → tool-output-233argac.js} +6 -6
  23. package/dist/chunks/{tool-output-66sfkq4p.js → tool-output-24e6ax7n.js} +21 -21
  24. package/dist/chunks/{tool-output-8b3vzgkx.js → tool-output-25h84942.js} +3 -3
  25. package/dist/chunks/{tool-output-kdrvp24z.js → tool-output-26b1y7rt.js} +15 -15
  26. package/dist/chunks/{tool-output-0p4pmdhq.js → tool-output-2mekcvss.js} +19 -28
  27. package/dist/chunks/{tool-output-5sx3441x.js → tool-output-2mjf8t6w.js} +12 -12
  28. package/dist/chunks/{tool-output-kpa09rhw.js → tool-output-2mn1j6hz.js} +7 -7
  29. package/dist/chunks/{tool-output-ahedfgv0.js → tool-output-2p0swzms.js} +3 -3
  30. package/dist/chunks/{tool-output-0x3mztr9.js → tool-output-2wxwzjqh.js} +16 -16
  31. package/dist/chunks/{tool-output-dcbgjmsj.js → tool-output-34mdyaah.js} +19 -19
  32. package/dist/chunks/{tool-output-anvcme1c.js → tool-output-38aws4xb.js} +3 -3
  33. package/dist/chunks/{tool-output-d2fmx1yk.js → tool-output-3d7bg7jv.js} +17 -17
  34. package/dist/chunks/{tool-output-6sfn6t41.js → tool-output-3hgz1z2m.js} +9 -9
  35. package/dist/chunks/{tool-output-sx8d7w52.js → tool-output-3jc4acfe.js} +23 -23
  36. package/dist/chunks/{tool-output-x7bw7bgf.js → tool-output-3n7vn1tw.js} +24 -24
  37. package/dist/chunks/{tool-output-gnjy40cd.js → tool-output-3vgty9hw.js} +31 -31
  38. package/dist/chunks/{tool-output-2s709x84.js → tool-output-3wyhrqfb.js} +7 -7
  39. package/dist/chunks/{tool-output-7ns7jg7q.js → tool-output-4q33662b.js} +15 -15
  40. package/dist/chunks/{tool-output-hykqydna.js → tool-output-4ze21y5e.js} +15 -15
  41. package/dist/chunks/{tool-output-vatt5ny9.js → tool-output-56pf6jzp.js} +6 -6
  42. package/dist/chunks/{tool-output-m0kck7zd.js → tool-output-58ep7nm1.js} +27 -27
  43. package/dist/chunks/{tool-output-gd47j70e.js → tool-output-5bkchar3.js} +29 -29
  44. package/dist/chunks/{tool-output-hcysfq1n.js → tool-output-5cne3tjk.js} +29 -29
  45. package/dist/chunks/{tool-output-z29mj6ce.js → tool-output-5cvxvtjb.js} +13 -13
  46. package/dist/chunks/{tool-output-ndksvsqq.js → tool-output-5ftq3225.js} +3 -3
  47. package/dist/chunks/{tool-output-4j9dw2d0.js → tool-output-5gvc3re6.js} +28 -28
  48. package/dist/chunks/{tool-output-t3ax3ke3.js → tool-output-5mhm4vfj.js} +16 -16
  49. package/dist/chunks/{tool-output-2r6mdnfq.js → tool-output-5n09j8yg.js} +7 -7
  50. package/dist/chunks/{tool-output-y63ywa2k.js → tool-output-5t6r72gb.js} +9 -9
  51. package/dist/chunks/{tool-output-h4v5z7wp.js → tool-output-60869ztc.js} +3 -3
  52. package/dist/chunks/{tool-output-xksw6ev0.js → tool-output-67wwskyb.js} +3 -3
  53. package/dist/chunks/{tool-output-pdgyk44n.js → tool-output-694pnq3x.js} +1 -25
  54. package/dist/chunks/{tool-output-q1ev5fjc.js → tool-output-69mqj339.js} +12 -12
  55. package/dist/chunks/{tool-output-ycj63wkd.js → tool-output-6d0d1q6g.js} +1 -1
  56. package/dist/chunks/{tool-output-73ps2g3c.js → tool-output-6v0patxj.js} +22 -22
  57. package/dist/chunks/{tool-output-pbfjpsb7.js → tool-output-6x3ndttp.js} +4 -4
  58. package/dist/chunks/{tool-output-sfzk71g3.js → tool-output-6xskjdg4.js} +5 -5
  59. package/dist/chunks/{tool-output-sth9zcg7.js → tool-output-6y88akds.js} +5 -5
  60. package/dist/chunks/{tool-output-bzrt1caw.js → tool-output-76293m8w.js} +31 -31
  61. package/dist/chunks/{tool-output-a78wj5dv.js → tool-output-784aez8k.js} +7 -7
  62. package/dist/chunks/{tool-output-wvr8xscb.js → tool-output-79k544d0.js} +6 -6
  63. package/dist/chunks/{tool-output-we2g0r14.js → tool-output-7bdqzxt9.js} +4 -4
  64. package/dist/chunks/{tool-output-2jft24my.js → tool-output-7bf7hj9s.js} +15 -15
  65. package/dist/chunks/{tool-output-jjvq20ys.js → tool-output-7fc9d4g7.js} +12 -12
  66. package/dist/chunks/{tool-output-hhntqeqf.js → tool-output-7fv8psxd.js} +4 -4
  67. package/dist/chunks/{tool-output-ngc4k3z1.js → tool-output-7jewgrz3.js} +2 -2
  68. package/dist/chunks/{tool-output-yz3xmvrq.js → tool-output-7jm9ds1n.js} +11 -11
  69. package/dist/chunks/{tool-output-5hn8w8k6.js → tool-output-7m6c0hj2.js} +8 -8
  70. package/dist/chunks/{tool-output-byaw3b0t.js → tool-output-7qk9epd7.js} +36 -45
  71. package/dist/chunks/{tool-output-est9w4fd.js → tool-output-7whn3c9q.js} +9 -9
  72. package/dist/chunks/{tool-output-qjsezd78.js → tool-output-8gjkw0js.js} +9 -9
  73. package/dist/chunks/{tool-output-xjhqr95z.js → tool-output-8r9v0q4w.js} +10 -10
  74. package/dist/chunks/{tool-output-qw2t3dzn.js → tool-output-8wjgamp7.js} +3 -3
  75. package/dist/chunks/{tool-output-ab8r1jbv.js → tool-output-93fxe9zc.js} +31 -31
  76. package/dist/chunks/{tool-output-68cs06h1.js → tool-output-963hk181.js} +3 -3
  77. package/dist/chunks/{tool-output-y5h5r084.js → tool-output-98sn12ya.js} +9 -9
  78. package/dist/chunks/{tool-output-5eyjw0yz.js → tool-output-9cb2b2x0.js} +19 -19
  79. package/dist/chunks/{tool-output-aa24rdx2.js → tool-output-9g038b7v.js} +4 -4
  80. package/dist/chunks/{tool-output-v3tjqm7n.js → tool-output-9hyv3ajx.js} +2 -2
  81. package/dist/chunks/{tool-output-0xq8s71y.js → tool-output-9q24xs2v.js} +12 -12
  82. package/dist/chunks/{tool-output-42mcpepz.js → tool-output-a9d80qez.js} +2 -2
  83. package/dist/chunks/{tool-output-cvmhw006.js → tool-output-a9zrx39y.js} +11 -11
  84. package/dist/chunks/{tool-output-qvqcv7sy.js → tool-output-ac2zwpmx.js} +1 -1
  85. package/dist/chunks/{tool-output-10jzpw8f.js → tool-output-adnc1c99.js} +2 -2
  86. package/dist/chunks/{tool-output-ra34yqmw.js → tool-output-ag4egyv9.js} +5 -5
  87. package/dist/chunks/{tool-output-qvgx1mgd.js → tool-output-aj83cngs.js} +4 -4
  88. package/dist/chunks/{tool-output-xztvf178.js → tool-output-atz91cs9.js} +69 -69
  89. package/dist/chunks/{tool-output-h6jcj9p8.js → tool-output-b1w7ct0q.js} +7 -7
  90. package/dist/chunks/{tool-output-5nnwax6m.js → tool-output-b6vsg801.js} +3 -3
  91. package/dist/chunks/{tool-output-n3bkb5q1.js → tool-output-ba7dfhfp.js} +3 -3
  92. package/dist/chunks/{tool-output-q3kq69cx.js → tool-output-bh8w17xh.js} +16 -16
  93. package/dist/chunks/{tool-output-5p8cescm.js → tool-output-bterja0n.js} +3 -3
  94. package/dist/chunks/{tool-output-fjdc7vet.js → tool-output-c9zhd1c6.js} +1 -1
  95. package/dist/chunks/{tool-output-4nqe5hb4.js → tool-output-cat0vb1y.js} +11 -11
  96. package/dist/chunks/{tool-output-4h4fbn9p.js → tool-output-cbt2qz57.js} +8 -8
  97. package/dist/chunks/{tool-output-f2xjtcez.js → tool-output-cncmn02m.js} +10 -10
  98. package/dist/chunks/{tool-output-yngvyh0w.js → tool-output-d34c0f98.js} +3 -3
  99. package/dist/chunks/{tool-output-c5zvymhv.js → tool-output-dg5naf6e.js} +3 -3
  100. package/dist/chunks/tool-output-dj32dvym.js +261 -0
  101. package/dist/chunks/{tool-output-qsfsht85.js → tool-output-drgga8bz.js} +1 -1
  102. package/dist/chunks/{tool-output-2p5k36f2.js → tool-output-dvxnt4qw.js} +30 -30
  103. package/dist/chunks/{tool-output-n7d48jjh.js → tool-output-dxsywhez.js} +7 -7
  104. package/dist/chunks/{tool-output-4g7xdd9d.js → tool-output-e0vqfz96.js} +15 -15
  105. package/dist/chunks/{tool-output-82351en7.js → tool-output-e2cspmt5.js} +10 -10
  106. package/dist/chunks/{tool-output-yszbb02h.js → tool-output-e3d9wnyc.js} +9 -9
  107. package/dist/chunks/{tool-output-xym735jc.js → tool-output-e44hy6kp.js} +3 -3
  108. package/dist/chunks/{tool-output-dsd8sep6.js → tool-output-e4befdmj.js} +7 -7
  109. package/dist/chunks/{tool-output-f1szzr5n.js → tool-output-e8sv3ecx.js} +20 -20
  110. package/dist/chunks/{tool-output-4seebxp0.js → tool-output-eck7g38n.js} +8 -8
  111. package/dist/chunks/{tool-output-8s0gjrq3.js → tool-output-efk301g8.js} +18 -18
  112. package/dist/chunks/{tool-output-gyrwg2kg.js → tool-output-ej9jn8mj.js} +23 -23
  113. package/dist/chunks/{tool-output-5w0rdcwe.js → tool-output-ekqb8f4k.js} +7 -7
  114. package/dist/chunks/{tool-output-z5wh7n3m.js → tool-output-eqad68fz.js} +14 -14
  115. package/dist/chunks/{tool-output-2ty1qw88.js → tool-output-er9xytph.js} +3 -3
  116. package/dist/chunks/{tool-output-xxt856rx.js → tool-output-es1eqkr0.js} +1 -1
  117. package/dist/chunks/{tool-output-tj8zavg0.js → tool-output-ev3m9bcx.js} +11 -11
  118. package/dist/chunks/{tool-output-yk6dfxq1.js → tool-output-ewdy5g4h.js} +3 -3
  119. package/dist/chunks/{tool-output-yc3c4tkd.js → tool-output-ewr5gkwb.js} +10 -10
  120. package/dist/chunks/{tool-output-6zjm2phc.js → tool-output-ezna1kdx.js} +4 -4
  121. package/dist/chunks/{tool-output-adfvhgh8.js → tool-output-f4317sb4.js} +9 -9
  122. package/dist/chunks/{tool-output-qnc8gnan.js → tool-output-fcqh8bpp.js} +28 -28
  123. package/dist/chunks/{tool-output-r8rq6y8n.js → tool-output-ffqz4qa7.js} +10 -10
  124. package/dist/chunks/{tool-output-prq7xxp2.js → tool-output-fg9p65nk.js} +4 -4
  125. package/dist/chunks/{tool-output-bph1244c.js → tool-output-fjxgnb22.js} +21 -21
  126. package/dist/chunks/{tool-output-p64ky49f.js → tool-output-fvhkzny2.js} +22 -22
  127. package/dist/chunks/{tool-output-w687dnns.js → tool-output-fznmdakp.js} +3 -3
  128. package/dist/chunks/{tool-output-wb4c515f.js → tool-output-gb8v6gwe.js} +1 -1
  129. package/dist/chunks/{tool-output-mef8ekqr.js → tool-output-gdzky9ye.js} +16 -16
  130. package/dist/chunks/{tool-output-axq9n4nd.js → tool-output-ggsyfnd7.js} +7 -7
  131. package/dist/chunks/{tool-output-58y85ej2.js → tool-output-h4cqsg37.js} +13 -13
  132. package/dist/chunks/{tool-output-9cdgjr65.js → tool-output-h5bwdsb5.js} +30 -30
  133. package/dist/chunks/{tool-output-18a09hjh.js → tool-output-h5x6jdbe.js} +20 -20
  134. package/dist/chunks/{tool-output-1h3sfksp.js → tool-output-h6qp7cak.js} +4 -4
  135. package/dist/chunks/{tool-output-wt6a3mqf.js → tool-output-h9hc66h4.js} +3 -3
  136. package/dist/chunks/{tool-output-xja22b89.js → tool-output-he0d9e52.js} +8 -8
  137. package/dist/chunks/{tool-output-aqdx993p.js → tool-output-hr4kpn3s.js} +27 -27
  138. package/dist/chunks/{tool-output-a3fn0gmm.js → tool-output-hretfjjx.js} +1 -1
  139. package/dist/chunks/{tool-output-6nnr6ddx.js → tool-output-ht9cd5a6.js} +19 -19
  140. package/dist/chunks/{tool-output-7qg3mtbn.js → tool-output-j1fsn7bn.js} +20 -22
  141. package/dist/chunks/{tool-output-6rpcq00a.js → tool-output-j3rhnfwy.js} +23 -23
  142. package/dist/chunks/{tool-output-fdd0tmq7.js → tool-output-jkrj3e3r.js} +12 -12
  143. package/dist/chunks/{tool-output-wn5njeqz.js → tool-output-jkw133re.js} +8 -8
  144. package/dist/chunks/{tool-output-58vvnw5h.js → tool-output-jsb54h12.js} +9 -9
  145. package/dist/chunks/{tool-output-ps0ytyna.js → tool-output-jy9vhdfa.js} +10 -10
  146. package/dist/chunks/{tool-output-qr3qf9ct.js → tool-output-jyzwnaxr.js} +20 -20
  147. package/dist/chunks/{tool-output-mw0ek7me.js → tool-output-k0nmr3d0.js} +9 -9
  148. package/dist/chunks/{tool-output-2j18gx8c.js → tool-output-k12c5f6w.js} +27 -27
  149. package/dist/chunks/{tool-output-4d5xkhzj.js → tool-output-k3gnvwmc.js} +7 -7
  150. package/dist/chunks/{tool-output-m4ftx5nk.js → tool-output-kfnngk0d.js} +30 -30
  151. package/dist/chunks/{tool-output-fyaaepwe.js → tool-output-kg500zpr.js} +28 -28
  152. package/dist/chunks/{tool-output-hj1t8ssm.js → tool-output-krmwacza.js} +20 -20
  153. package/dist/chunks/{tool-output-4ew25cb5.js → tool-output-krxsh9ks.js} +23 -23
  154. package/dist/chunks/{tool-output-d3aj8f3h.js → tool-output-kv2t3cyj.js} +9 -9
  155. package/dist/chunks/{tool-output-ex8kn217.js → tool-output-m17rt52q.js} +7 -7
  156. package/dist/chunks/{tool-output-ppvp06zs.js → tool-output-m2vvefb9.js} +23 -23
  157. package/dist/chunks/{tool-output-2jjfs7g5.js → tool-output-m6cfdtf3.js} +3 -3
  158. package/dist/chunks/{tool-output-qxa8694e.js → tool-output-mbqn2nbf.js} +12 -12
  159. package/dist/chunks/{tool-output-f5g6d0qb.js → tool-output-mc2p1ws7.js} +20 -20
  160. package/dist/chunks/{tool-output-95kj44hy.js → tool-output-mk99ka2e.js} +7 -7
  161. package/dist/chunks/{tool-output-xvhx3fzq.js → tool-output-mn5s68kz.js} +8 -8
  162. package/dist/chunks/{tool-output-q1edwbg5.js → tool-output-mq4pmep5.js} +16 -16
  163. package/dist/chunks/{tool-output-sf3r2nj7.js → tool-output-mxnpz060.js} +2 -2
  164. package/dist/chunks/tool-output-n5wmf7e7.js +26 -0
  165. package/dist/chunks/{tool-output-sbfaben9.js → tool-output-nd2qx06s.js} +7 -7
  166. package/dist/chunks/{tool-output-d0pyrcv2.js → tool-output-nf1q0ebc.js} +47 -47
  167. package/dist/chunks/{tool-output-ateksmxm.js → tool-output-ngbqbpny.js} +14 -14
  168. package/dist/chunks/{tool-output-p53k08rd.js → tool-output-nq646sks.js} +23 -23
  169. package/dist/chunks/{tool-output-4r6p4fek.js → tool-output-nq8r7s52.js} +4 -4
  170. package/dist/chunks/{tool-output-qfz6bxfd.js → tool-output-nr915jn7.js} +3 -3
  171. package/dist/chunks/{tool-output-2n444ktb.js → tool-output-nv2c5e9q.js} +3 -3
  172. package/dist/chunks/{tool-output-h77r3w1s.js → tool-output-nw1saj90.js} +28 -28
  173. package/dist/chunks/{tool-output-hxrjgpzw.js → tool-output-nz9pn5jw.js} +9 -9
  174. package/dist/chunks/{tool-output-yxjmegqv.js → tool-output-nzaxwfce.js} +30 -30
  175. package/dist/chunks/{tool-output-t6vp9y58.js → tool-output-nzm9kpg0.js} +43 -43
  176. package/dist/chunks/{tool-output-vv9ywpgj.js → tool-output-p2sff4ab.js} +2 -2
  177. package/dist/chunks/{tool-output-hsnq1va6.js → tool-output-p55ejza0.js} +3 -3
  178. package/dist/chunks/{tool-output-60w1zvt0.js → tool-output-pf3vmkke.js} +58 -58
  179. package/dist/chunks/{tool-output-7z9zc7fv.js → tool-output-ppbjty95.js} +34 -34
  180. package/dist/chunks/{tool-output-qykgtxne.js → tool-output-pr168ar6.js} +22 -22
  181. package/dist/chunks/{tool-output-eka5gqec.js → tool-output-pxv0r0tk.js} +18 -18
  182. package/dist/chunks/{tool-output-6r9ht2s4.js → tool-output-q3z02may.js} +2 -2
  183. package/dist/chunks/{tool-output-c83t1a4q.js → tool-output-q3z0vr5a.js} +5 -5
  184. package/dist/chunks/{tool-output-6sxbqbzw.js → tool-output-qa8vg83d.js} +9 -9
  185. package/dist/chunks/{tool-output-parb2748.js → tool-output-qg6qvrnm.js} +2 -2
  186. package/dist/chunks/{tool-output-jc49e2ak.js → tool-output-qgmkp9j8.js} +24 -24
  187. package/dist/chunks/{tool-output-ydd7qh3d.js → tool-output-qhwrm2rz.js} +1 -1
  188. package/dist/chunks/{tool-output-erd82hzj.js → tool-output-qnk9w869.js} +23 -23
  189. package/dist/chunks/{tool-output-xf3q1v2n.js → tool-output-qpmemebt.js} +1 -1
  190. package/dist/chunks/{tool-output-e63h50qx.js → tool-output-qrwmr4mb.js} +24 -24
  191. package/dist/chunks/{tool-output-v093k11a.js → tool-output-qs0v2njn.js} +1 -1
  192. package/dist/chunks/{tool-output-p4g6dtgh.js → tool-output-qyb0apjn.js} +14 -14
  193. package/dist/chunks/{tool-output-py9rnfbe.js → tool-output-rcv43n97.js} +21 -21
  194. package/dist/chunks/{tool-output-4p9gmmpp.js → tool-output-rfwkesfc.js} +33 -33
  195. package/dist/chunks/{tool-output-fjp9qcz0.js → tool-output-rhte1d85.js} +11 -11
  196. package/dist/chunks/{tool-output-nef4x0fv.js → tool-output-rj5f6m6g.js} +17 -17
  197. package/dist/chunks/{tool-output-jdzjtwv2.js → tool-output-rk2h67k3.js} +77 -77
  198. package/dist/chunks/{tool-output-w19hfjk6.js → tool-output-rk6pkc68.js} +10 -10
  199. package/dist/chunks/{tool-output-g6mxdxvy.js → tool-output-rv8zvzdc.js} +6 -6
  200. package/dist/chunks/{tool-output-9rytrcgt.js → tool-output-rxmrkyph.js} +7 -7
  201. package/dist/chunks/{tool-output-530xg6vw.js → tool-output-s4kyhetj.js} +1 -1
  202. package/dist/chunks/{tool-output-3y4xzgma.js → tool-output-s6h1tbfj.js} +12 -12
  203. package/dist/chunks/{tool-output-2cdjxzfg.js → tool-output-sbz71ybr.js} +2 -2
  204. package/dist/chunks/{tool-output-kb33k53g.js → tool-output-sqj1fmw3.js} +7 -7
  205. package/dist/chunks/{tool-output-0j7gp832.js → tool-output-sqjzf8x2.js} +3 -3
  206. package/dist/chunks/{tool-output-ztf6n3de.js → tool-output-syncbfr5.js} +3 -3
  207. package/dist/chunks/{tool-output-80pdnbfy.js → tool-output-t1c5djej.js} +28 -28
  208. package/dist/chunks/{tool-output-jpdapree.js → tool-output-t5pccnhe.js} +13 -13
  209. package/dist/chunks/{tool-output-ww0cyf3z.js → tool-output-tcbneg83.js} +48 -48
  210. package/dist/chunks/{tool-output-e5y560y7.js → tool-output-th2hp9ev.js} +7 -7
  211. package/dist/chunks/{tool-output-d904zbqa.js → tool-output-tj4hnhpr.js} +25 -25
  212. package/dist/chunks/{tool-output-m6f9p571.js → tool-output-tjm2sr5g.js} +21 -21
  213. package/dist/chunks/{tool-output-mpq8mfwy.js → tool-output-tkmbybpd.js} +6 -6
  214. package/dist/chunks/{tool-output-tvgyr2bd.js → tool-output-tn27k7n2.js} +12 -12
  215. package/dist/chunks/{tool-output-vr4vq26x.js → tool-output-tpc5s4y5.js} +43 -43
  216. package/dist/chunks/{tool-output-8a2xbwhq.js → tool-output-v74x3na4.js} +6 -6
  217. package/dist/chunks/{tool-output-amrdb7ww.js → tool-output-v77zgkhm.js} +4 -4
  218. package/dist/chunks/{tool-output-6jbcaht7.js → tool-output-vakqs29q.js} +1 -1
  219. package/dist/chunks/{tool-output-4y71by1a.js → tool-output-vbthxz0p.js} +15 -15
  220. package/dist/chunks/{tool-output-gmg2m67c.js → tool-output-vc37r1zq.js} +6 -6
  221. package/dist/chunks/{tool-output-115b3ms3.js → tool-output-veq5jnq3.js} +9 -9
  222. package/dist/chunks/{tool-output-bgm817xr.js → tool-output-vrcsa8qx.js} +7 -7
  223. package/dist/chunks/{tool-output-x7de2wha.js → tool-output-vt4r9rmy.js} +7 -7
  224. package/dist/chunks/{tool-output-yf1a4qa7.js → tool-output-vtkgm0rk.js} +3 -3
  225. package/dist/chunks/{tool-output-wd84ymt0.js → tool-output-vx0rqq3s.js} +25 -25
  226. package/dist/chunks/{tool-output-wqszm3cq.js → tool-output-vx8z5gpr.js} +5 -5
  227. package/dist/chunks/{tool-output-fv23p420.js → tool-output-vzyjvy19.js} +352 -352
  228. package/dist/chunks/{tool-output-kbd1k1ej.js → tool-output-w2wjze7r.js} +9 -9
  229. package/dist/chunks/{tool-output-f8enq2ta.js → tool-output-w5zv77p4.js} +4 -4
  230. package/dist/chunks/{tool-output-qq4f8yjf.js → tool-output-wfmpece2.js} +19 -19
  231. package/dist/chunks/{tool-output-8t99kr38.js → tool-output-wfs84ra6.js} +3 -3
  232. package/dist/chunks/{tool-output-r11wa1x2.js → tool-output-wk8jtf2z.js} +17 -17
  233. package/dist/chunks/{tool-output-8eap5edk.js → tool-output-wmv27f9c.js} +3 -3
  234. package/dist/chunks/{tool-output-s4xb5t7y.js → tool-output-wshxcgwp.js} +31 -31
  235. package/dist/chunks/{tool-output-81e7rhct.js → tool-output-wt3svnfa.js} +30 -30
  236. package/dist/chunks/{tool-output-9djsjk3f.js → tool-output-wvwgxcbr.js} +37 -37
  237. package/dist/chunks/{tool-output-5r1jnhxq.js → tool-output-wwax6h97.js} +20 -20
  238. package/dist/chunks/{tool-output-ys2kpqh4.js → tool-output-wy9q57d6.js} +10 -10
  239. package/dist/chunks/{tool-output-7nqkf5r1.js → tool-output-x4mcewfn.js} +3 -3
  240. package/dist/chunks/{tool-output-z16qtg1w.js → tool-output-x6613ah8.js} +13 -13
  241. package/dist/chunks/{tool-output-6y63rby9.js → tool-output-xd3zm682.js} +13 -13
  242. package/dist/chunks/{tool-output-2t908x44.js → tool-output-xe8ck1p9.js} +19 -19
  243. package/dist/chunks/{tool-output-22ywg2me.js → tool-output-xft6dn0a.js} +7 -7
  244. package/dist/chunks/{tool-output-55gp94gm.js → tool-output-xtfjfdah.js} +29 -29
  245. package/dist/chunks/{tool-output-v06mza8y.js → tool-output-xw4jh0fq.js} +10 -10
  246. package/dist/chunks/{tool-output-pzp284mp.js → tool-output-y0dmyt4t.js} +23 -23
  247. package/dist/chunks/{tool-output-gqgdr040.js → tool-output-y4ahsw2v.js} +6 -6
  248. package/dist/chunks/{tool-output-w9qm3w4z.js → tool-output-y9wqzmeb.js} +8 -8
  249. package/dist/chunks/{tool-output-bfhbvqd5.js → tool-output-ybr9qycb.js} +20 -20
  250. package/dist/chunks/{tool-output-k1zxkq7r.js → tool-output-yk1y9yyc.js} +8 -8
  251. package/dist/chunks/{tool-output-cq3q9vsf.js → tool-output-ykqp9ed4.js} +19 -19
  252. package/dist/chunks/{tool-output-g5ae1s2z.js → tool-output-ynqstxnz.js} +145 -145
  253. package/dist/chunks/{tool-output-rjz4d94e.js → tool-output-yrevsbh2.js} +7 -7
  254. package/dist/chunks/{tool-output-e0wzwgvk.js → tool-output-z0fjqy87.js} +3 -3
  255. package/dist/chunks/{tool-output-yydqqga9.js → tool-output-zfyb5tr4.js} +3 -3
  256. package/dist/chunks/{tool-output-n18wzqne.js → tool-output-zrc3e38m.js} +1 -1
  257. package/dist/chunks/{tool-output-phn32fwn.js → tool-output-zx10qtpe.js} +17 -17
  258. package/dist/codemode/execution.js +3 -3
  259. package/dist/codemode/fetch.js +107 -107
  260. package/dist/codemode/instructions.js +8 -8
  261. package/dist/codemode/tool.js +112 -112
  262. package/dist/command.js +75 -75
  263. package/dist/config/discovery.js +68 -68
  264. package/dist/config/integration.js +3 -3
  265. package/dist/config/normalize.js +79 -79
  266. package/dist/config/plugin/agent.js +93 -93
  267. package/dist/config/plugin/command.js +180 -180
  268. package/dist/config/plugin/compaction.js +127 -127
  269. package/dist/config/plugin/compatibility.js +110 -110
  270. package/dist/config/plugin/formatter.js +94 -94
  271. package/dist/config/plugin/image.js +93 -93
  272. package/dist/config/plugin/instruction.js +94 -94
  273. package/dist/config/plugin/location-watcher.js +95 -95
  274. package/dist/config/plugin/mcp.js +97 -97
  275. package/dist/config/plugin/policy.js +93 -93
  276. package/dist/config/plugin/provider.js +93 -93
  277. package/dist/config/plugin/reference.js +94 -94
  278. package/dist/config/plugin/shell.js +95 -95
  279. package/dist/config/plugin/skill-file.js +107 -107
  280. package/dist/config/plugin/skill.js +113 -113
  281. package/dist/config/plugin/snapshot.js +93 -93
  282. package/dist/config/plugin/source.js +96 -96
  283. package/dist/config/plugin/tool-output.js +94 -94
  284. package/dist/config/plugin/websearch.js +94 -94
  285. package/dist/config/plugin/worktree.js +94 -94
  286. package/dist/config.js +97 -97
  287. package/dist/credential.js +75 -75
  288. package/dist/database/database.js +60 -60
  289. package/dist/database/drizzle/effect-sqlite/driver.js +8 -8
  290. package/dist/database/drizzle/effect-sqlite/index.js +4 -4
  291. package/dist/database/drizzle/effect-sqlite/session.js +7 -7
  292. package/dist/database/drizzle/index.js +9 -9
  293. package/dist/database/drizzle/sqlite-core/effect/db.js +5 -5
  294. package/dist/database/drizzle/sqlite-core/effect/index.js +2 -2
  295. package/dist/database/drizzle/sqlite-core/effect/session.js +6 -6
  296. package/dist/database/drizzle.js +9 -9
  297. package/dist/database/migration.gen.js +49 -49
  298. package/dist/database/migration.js +50 -50
  299. package/dist/database/v1-migration.bun.js +15 -15
  300. package/dist/effect/app-node-builder.js +265 -265
  301. package/dist/environment/environment.js +75 -75
  302. package/dist/environment/index.js +75 -75
  303. package/dist/environment/unavailable.js +3 -3
  304. package/dist/event-logger.js +9 -9
  305. package/dist/file-access.js +114 -114
  306. package/dist/file-mutation.js +76 -76
  307. package/dist/filesystem/file-watch.js +12 -12
  308. package/dist/filesystem/location-watcher-policy.js +5 -5
  309. package/dist/filesystem/location-watcher.js +196 -196
  310. package/dist/filesystem/search.js +79 -79
  311. package/dist/filesystem/watcher.js +7 -7
  312. package/dist/filesystem.js +82 -82
  313. package/dist/form.js +76 -76
  314. package/dist/formatter/builtins.js +3 -3
  315. package/dist/formatter.js +73 -73
  316. package/dist/generate.js +88 -88
  317. package/dist/git.js +7 -7
  318. package/dist/github-copilot/chat/openai-compatible-chat-language-model.js +4 -4
  319. package/dist/github-copilot/copilot-provider.js +3 -3
  320. package/dist/github-copilot/models.js +75 -75
  321. package/dist/github-copilot/responses/openai-responses-language-model.js +7 -7
  322. package/dist/github-copilot/responses/openai-responses-prepare-tools.js +4 -4
  323. package/dist/image/notice.js +3 -3
  324. package/dist/image/photon.js +1 -1
  325. package/dist/image.js +5 -5
  326. package/dist/instance/service.js +5 -5
  327. package/dist/instance.js +351 -351
  328. package/dist/instruction-discovery.js +78 -78
  329. package/dist/instructions/builtins.js +73 -73
  330. package/dist/instructions/index.js +5 -5
  331. package/dist/integration.js +72 -72
  332. package/dist/job.js +68 -68
  333. package/dist/kv.js +65 -65
  334. package/dist/location-activity.js +72 -72
  335. package/dist/location-lifecycle.js +112 -112
  336. package/dist/location-service-map.js +72 -72
  337. package/dist/location-services.js +349 -349
  338. package/dist/location.js +73 -73
  339. package/dist/managed-policy.js +2 -2
  340. package/dist/mcp/client.js +17 -17
  341. package/dist/mcp/index.js +89 -89
  342. package/dist/mcp/instructions.js +136 -136
  343. package/dist/mcp/oauth.js +13 -13
  344. package/dist/mcp/stdio.js +72 -72
  345. package/dist/modal/models.js +75 -75
  346. package/dist/model-resolver.js +82 -82
  347. package/dist/model.js +80 -80
  348. package/dist/models-dev.js +89 -89
  349. package/dist/permission/saved.js +67 -67
  350. package/dist/permission.js +113 -113
  351. package/dist/persistent-pty/index.js +80 -80
  352. package/dist/persistent-pty.js +64 -64
  353. package/dist/plugin/agent.js +66 -66
  354. package/dist/plugin/command.js +80 -80
  355. package/dist/plugin/goal.js +3 -3
  356. package/dist/plugin/hooks.js +3 -3
  357. package/dist/plugin/host.js +187 -187
  358. package/dist/plugin/identity.js +5 -5
  359. package/dist/plugin/internal.js +329 -329
  360. package/dist/plugin/mcp-codemode-defaults.js +3 -3
  361. package/dist/plugin/models-dev.js +80 -80
  362. package/dist/plugin/module.js +90 -90
  363. package/dist/plugin/optimize.js +2 -2
  364. package/dist/plugin/plan.js +108 -108
  365. package/dist/plugin/provider/amazon-bedrock.js +75 -75
  366. package/dist/plugin/provider/azure.js +96 -96
  367. package/dist/plugin/provider/chatgpt.js +92 -92
  368. package/dist/plugin/provider/claude-agent/aisdk.js +85 -85
  369. package/dist/plugin/provider/claude-agent/claude/query-options.js +2 -2
  370. package/dist/plugin/provider/claude-agent/claude/sessions.js +10 -10
  371. package/dist/plugin/provider/claude-agent/claude/status.js +3 -3
  372. package/dist/plugin/provider/claude-agent/index.js +103 -103
  373. package/dist/plugin/provider/claude-agent/instructions.js +81 -81
  374. package/dist/plugin/provider/claude-agent/integration.js +80 -80
  375. package/dist/plugin/provider/claude-agent/language-model/claude-agent-error.js +3 -3
  376. package/dist/plugin/provider/claude-agent/language-model/claude-agent-language-model.js +5 -5
  377. package/dist/plugin/provider/claude-agent/language-model/convert-claude-stream.js +5 -5
  378. package/dist/plugin/provider/claude-agent/language-model/system-prompt.js +3 -3
  379. package/dist/plugin/provider/claude-agent/language-model/usage.js +3 -3
  380. package/dist/plugin/provider/claude-agent/provider.js +77 -77
  381. package/dist/plugin/provider/claude-agent/session.js +80 -80
  382. package/dist/plugin/provider/claude-agent/sync/catch-up.js +2 -2
  383. package/dist/plugin/provider/claude-agent/sync/record.js +3 -3
  384. package/dist/plugin/provider/claude-agent/tools/pending.js +3 -3
  385. package/dist/plugin/provider/claude-agent/tools/result.js +2 -2
  386. package/dist/plugin/provider/cloudflare-ai-gateway.js +92 -92
  387. package/dist/plugin/provider/cloudflare-workers-ai.js +92 -92
  388. package/dist/plugin/provider/configured.js +90 -90
  389. package/dist/plugin/provider/credential-settings.js +64 -64
  390. package/dist/plugin/provider/digitalocean.js +78 -78
  391. package/dist/plugin/provider/github-copilot.js +80 -80
  392. package/dist/plugin/provider/gitlab.js +77 -77
  393. package/dist/plugin/provider/google-vertex.js +91 -91
  394. package/dist/plugin/provider/llmgateway.js +67 -67
  395. package/dist/plugin/provider/lmstudio.js +99 -99
  396. package/dist/plugin/provider/local.js +96 -96
  397. package/dist/plugin/provider/modal.js +78 -78
  398. package/dist/plugin/provider/ollama.js +99 -99
  399. package/dist/plugin/provider/openai-context-caps.js +74 -74
  400. package/dist/plugin/provider/openai.js +92 -92
  401. package/dist/plugin/provider/opencode.js +94 -94
  402. package/dist/plugin/provider/openrouter.js +75 -75
  403. package/dist/plugin/provider/poe.js +67 -67
  404. package/dist/plugin/provider/refresh.js +65 -65
  405. package/dist/plugin/provider/sap-ai-core.js +74 -74
  406. package/dist/plugin/provider/snowflake-cortex.js +92 -92
  407. package/dist/plugin/provider/vllm.js +99 -99
  408. package/dist/plugin/provider/xai.js +75 -75
  409. package/dist/plugin/provider.js +157 -157
  410. package/dist/plugin/sdk.js +66 -66
  411. package/dist/plugin/service.js +3 -3
  412. package/dist/plugin/skill.js +109 -109
  413. package/dist/plugin/supervisor.js +335 -335
  414. package/dist/plugin/tool-input-repair.js +3 -3
  415. package/dist/plugin/update.js +5 -5
  416. package/dist/plugin/vcs/git.js +72 -72
  417. package/dist/plugin/vcs/hg.js +72 -72
  418. package/dist/plugin/verbosity.js +77 -77
  419. package/dist/plugin/warming.js +94 -94
  420. package/dist/plugin/websearch/exa.js +3 -3
  421. package/dist/plugin/websearch/firecrawl.js +4 -4
  422. package/dist/plugin/websearch/index.js +7 -7
  423. package/dist/plugin/websearch/parallel.js +6 -6
  424. package/dist/plugin/websearch/tavily.js +6 -6
  425. package/dist/plugin/websearch/tinyfish.js +6 -6
  426. package/dist/plugin.js +196 -196
  427. package/dist/project/schema.js +3 -3
  428. package/dist/project.js +74 -74
  429. package/dist/provider.js +79 -79
  430. package/dist/pty.js +86 -86
  431. package/dist/reference/instructions.js +74 -74
  432. package/dist/reference.js +74 -74
  433. package/dist/repository-cache.js +69 -69
  434. package/dist/ripgrep.js +78 -78
  435. package/dist/rpc.js +72 -72
  436. package/dist/schedule/check.js +191 -191
  437. package/dist/schedule.js +198 -198
  438. package/dist/session/blob.js +92 -92
  439. package/dist/session/command.js +66 -66
  440. package/dist/session/compaction.js +128 -128
  441. package/dist/session/context.js +152 -152
  442. package/dist/session/diff.js +72 -72
  443. package/dist/session/environment.js +5 -5
  444. package/dist/session/error.js +2 -2
  445. package/dist/session/execution/restart.js +122 -122
  446. package/dist/session/execution.js +121 -121
  447. package/dist/session/generate.js +152 -152
  448. package/dist/session/history.js +98 -98
  449. package/dist/session/inbox.js +109 -109
  450. package/dist/session/info.js +2 -2
  451. package/dist/session/instruction-entry.js +68 -68
  452. package/dist/session/instruction-state.js +2 -2
  453. package/dist/session/instructions.js +103 -103
  454. package/dist/session/message-updater.js +3 -3
  455. package/dist/session/model-request.js +122 -122
  456. package/dist/session/model-transport.js +5 -5
  457. package/dist/session/move.js +124 -124
  458. package/dist/session/projector.js +104 -104
  459. package/dist/session/prompt.js +110 -110
  460. package/dist/session/revert.js +101 -101
  461. package/dist/session/runner/index.js +3 -3
  462. package/dist/session/runner/llm.js +198 -198
  463. package/dist/session/runner/model.js +83 -83
  464. package/dist/session/runner/publish-llm-event.js +110 -110
  465. package/dist/session/runner/retry.js +4 -4
  466. package/dist/session/runner/step.js +123 -123
  467. package/dist/session/runner/to-llm-message.js +99 -99
  468. package/dist/session/schema.js +5 -5
  469. package/dist/session/session.js +135 -135
  470. package/dist/session/shell.js +103 -103
  471. package/dist/session/skill.js +109 -109
  472. package/dist/session/stats.js +8 -8
  473. package/dist/session/store.js +104 -104
  474. package/dist/session/stored.js +3 -3
  475. package/dist/session/subagent-completion.js +3 -3
  476. package/dist/session/subagent-job.js +181 -181
  477. package/dist/session/system-prompt.js +5 -5
  478. package/dist/session/title.js +153 -153
  479. package/dist/session/to-session-error.js +109 -109
  480. package/dist/session/transfer.js +116 -116
  481. package/dist/session.js +187 -187
  482. package/dist/shared-cache.js +3 -3
  483. package/dist/shell/parse.js +3 -3
  484. package/dist/shell/select.js +14 -14
  485. package/dist/shell.js +106 -106
  486. package/dist/skill/discovery.js +5 -5
  487. package/dist/skill/instructions.js +113 -113
  488. package/dist/skill.js +118 -118
  489. package/dist/snapshot.js +77 -77
  490. package/dist/tool/mcp.js +135 -135
  491. package/dist/tool/plugin/artifact.js +179 -179
  492. package/dist/tool/plugin/edit.js +115 -115
  493. package/dist/tool/plugin/glob.js +124 -124
  494. package/dist/tool/plugin/grep.js +124 -124
  495. package/dist/tool/plugin/image-generate.js +189 -189
  496. package/dist/tool/plugin/mcp-resource.js +118 -118
  497. package/dist/tool/plugin/opencode.js +117 -117
  498. package/dist/tool/plugin/patch.js +123 -123
  499. package/dist/tool/plugin/question.js +110 -110
  500. package/dist/tool/plugin/read.js +125 -125
  501. package/dist/tool/plugin/schedule.js +195 -195
  502. package/dist/tool/plugin/shell.js +182 -182
  503. package/dist/tool/plugin/skill.js +117 -117
  504. package/dist/tool/plugin/subagent.js +186 -186
  505. package/dist/tool/plugin/todo.js +108 -108
  506. package/dist/tool/plugin/webfetch.js +116 -116
  507. package/dist/tool/plugin/websearch.js +117 -117
  508. package/dist/tool/plugin/write.js +123 -123
  509. package/dist/tool/read-filesystem.js +80 -80
  510. package/dist/tool-output.js +5 -5
  511. package/dist/tool.js +118 -118
  512. package/dist/types/session/model-request.d.ts +2 -2
  513. package/dist/usage-limits.js +77 -77
  514. package/dist/v1/config/agent.js +5 -5
  515. package/dist/v1/config/migrate.js +75 -75
  516. package/dist/v1/config/plugin.js +3 -3
  517. package/dist/v1/config/provider.js +3 -3
  518. package/dist/variant.js +75 -75
  519. package/dist/vcs.js +75 -75
  520. package/dist/voice.js +77 -77
  521. package/dist/websearch.js +80 -80
  522. package/dist/wellknown/plugin.js +66 -66
  523. package/dist/wellknown.js +71 -71
  524. package/dist/workspace/driver.js +7 -7
  525. package/dist/workspace.js +71 -71
  526. package/dist/worktree/git.js +4 -4
  527. package/dist/worktree/strategies.js +74 -74
  528. package/dist/worktree.js +78 -78
  529. package/package.json +8 -8
  530. package/dist/chunks/tool-output-2k0qjd71.js +0 -261
  531. package/dist/chunks/tool-output-h8kmj787.js +0 -26
  532. /package/dist/chunks/{tool-output-9b00c1fb.js → tool-output-5ebw3s4g.js} +0 -0
  533. /package/dist/chunks/{tool-output-pd14fbdd.js → tool-output-78hmycys.js} +0 -0
  534. /package/dist/chunks/{tool-output-775hqbnd.js → tool-output-80mg3ag8.js} +0 -0
  535. /package/dist/chunks/{tool-output-mfjzh9b6.js → tool-output-b00xhfda.js} +0 -0
  536. /package/dist/chunks/{tool-output-ybfg1fv3.js → tool-output-kmysz3kf.js} +0 -0
  537. /package/dist/chunks/{tool-output-287n1fg5.js → tool-output-x0tb4wca.js} +0 -0
  538. /package/dist/chunks/{tool-output-j9nxzz3g.js → tool-output-ze75qvmd.js} +0 -0
@@ -1,33 +1,33 @@
1
1
  import {
2
2
  Service89
3
- } from "./tool-output-v093k11a.js";
3
+ } from "./tool-output-qs0v2njn.js";
4
4
  import {
5
- Service51
6
- } from "./tool-output-fyaaepwe.js";
5
+ Service77
6
+ } from "./tool-output-kg500zpr.js";
7
7
  import {
8
8
  StepFailedError2
9
- } from "./tool-output-530xg6vw.js";
9
+ } from "./tool-output-s4kyhetj.js";
10
10
  import {
11
11
  SessionEvent2
12
12
  } from "./tool-output-ec1grn59.js";
13
13
  import {
14
14
  toSessionError2
15
- } from "./tool-output-pxp22qz6.js";
15
+ } from "./tool-output-1zyreaf5.js";
16
16
  import {
17
17
  Error2
18
- } from "./tool-output-8s0gjrq3.js";
18
+ } from "./tool-output-efk301g8.js";
19
19
  import {
20
- Service64
21
- } from "./tool-output-x87ytaxf.js";
20
+ Service79
21
+ } from "./tool-output-10xvpzbz.js";
22
22
  import {
23
23
  record2
24
24
  } from "./tool-output-4f25tdd0.js";
25
25
  import {
26
26
  createLLMEventPublisher2
27
- } from "./tool-output-pdgyk44n.js";
27
+ } from "./tool-output-694pnq3x.js";
28
28
  import {
29
29
  isRetryable2
30
- } from "./tool-output-qw2t3dzn.js";
30
+ } from "./tool-output-8wjgamp7.js";
31
31
  import {
32
32
  __export
33
33
  } from "./tool-output-9rqn6x4v.js";
@@ -37,13 +37,12 @@ var exports_step = {};
37
37
  __export(exports_step, {
38
38
  Outcome: () => Outcome2,
39
39
  SessionStep: () => exports_step,
40
- make: () => make19
40
+ make: () => make18
41
41
  });
42
42
  import {
43
43
  AIError,
44
44
  InvalidProviderOutputError,
45
45
  LLMClient,
46
- LLMEvent,
47
46
  isContextOverflowFailure
48
47
  } from "@opencode/ai/effect";
49
48
  import { Cause, Clock, Data, Effect, Exit, Fiber, Option, Stream } from "effect";
@@ -51,11 +50,11 @@ var Outcome2 = Data.taggedEnum();
51
50
  var TOOLS_INTERRUPTED = { type: "aborted", message: "Tool execution interrupted" };
52
51
  var STEP_INTERRUPTED = { type: "aborted", message: "Step interrupted" };
53
52
  var RESULT_MISSING = { type: "tool.result-missing", message: "Provider did not return a tool result" };
54
- var make19 = Effect.gen(function* () {
53
+ var make18 = Effect.gen(function* () {
55
54
  const bus = yield* Service89;
56
55
  const llm = yield* LLMClient.Service;
57
- const snapshots = yield* Service51;
58
- const toolOutput = yield* Service64;
56
+ const snapshots = yield* Service77;
57
+ const toolOutput = yield* Service79;
59
58
  const attempt = Effect.fn("SessionStep.attempt")(function* (input) {
60
59
  const pendingStartSnapshot = yield* snapshots.capture().pipe(Effect.forkScoped);
61
60
  const started = yield* Clock.currentTimeMillis;
@@ -86,16 +85,11 @@ var make19 = Effect.gen(function* () {
86
85
  progress: (update) => publisher.progress(call.id, update)
87
86
  });
88
87
  };
89
- let overflowFailure;
90
88
  const providerStream = llm.stream(input.prepared.request, input.prepared.options).pipe(Stream.runForEach((event) => Effect.gen(function* () {
91
- if (overflowFailure || publisher.hasProviderError())
89
+ if (publisher.hasProviderError())
92
90
  return;
93
91
  if (!publisher.hasStarted())
94
92
  yield* Fiber.join(pendingStartSnapshot);
95
- if (LLMEvent.is.providerError(event) && isContextOverflowFailure(event) && !publisher.record().outputStarted) {
96
- overflowFailure = event;
97
- return;
98
- }
99
93
  yield* publisher.publish(event);
100
94
  if (firstOutputAt === undefined && publisher.record().outputStarted)
101
95
  firstOutputAt = yield* Clock.currentTimeMillis;
@@ -112,7 +106,7 @@ var make19 = Effect.gen(function* () {
112
106
  const streamInterrupted = Exit.hasInterrupts(stream);
113
107
  if (Exit.isFailure(stream) && streamInterrupted && !publisher.hasStarted() && !pendingStartSnapshot.pollUnsafe())
114
108
  return yield* Effect.failCause(stream.cause);
115
- if (!overflowFailure && publisher.hasStarted())
109
+ if (publisher.hasStarted())
116
110
  yield* publisher.streamed();
117
111
  if (streamInterrupted)
118
112
  yield* interruptTools;
@@ -120,17 +114,14 @@ var make19 = Effect.gen(function* () {
120
114
  if (Exit.isFailure(joined))
121
115
  yield* interruptTools;
122
116
  const tools = classifyToolExits(joined, toolRuns);
123
- const overflow = overflowFailure ?? streamFailure;
124
- if (!publisher.record().outputStarted && isContextOverflowFailure(overflow) && (yield* restore(input.recoverOverflow))) {
117
+ if (!publisher.record().outputStarted && isContextOverflowFailure(streamFailure) && (yield* restore(input.recoverOverflow))) {
125
118
  yield* Effect.logWarning("provider rejected the request as too long; compacting", {
126
119
  sessionID: input.sessionID,
127
120
  model: input.model.ref,
128
- message: overflow?.message
121
+ message: streamFailure?.message
129
122
  });
130
123
  return Outcome2.Compacted();
131
124
  }
132
- if (overflowFailure)
133
- yield* publisher.publish(overflowFailure);
134
125
  const recorded = publisher.record();
135
126
  const unknownFinish = Exit.isSuccess(stream) && recorded.finish?.finish === "unknown" ? new AIError({
136
127
  reason: new InvalidProviderOutputError({
@@ -240,4 +231,4 @@ var classifyToolExits = (settled, runs) => {
240
231
  return { interrupted: causes.some(Cause.hasInterrupts), declines, failure };
241
232
  };
242
233
 
243
- export { Outcome2, make19, exports_step };
234
+ export { Outcome2, make18, exports_step };
@@ -1,29 +1,29 @@
1
1
  import {
2
2
  useragent2
3
- } from "./tool-output-ys2kpqh4.js";
3
+ } from "./tool-output-wy9q57d6.js";
4
4
  import {
5
5
  Service89
6
- } from "./tool-output-v093k11a.js";
6
+ } from "./tool-output-qs0v2njn.js";
7
7
  import {
8
8
  OAuth3,
9
- Event18,
10
- Service79
11
- } from "./tool-output-w6zbx7sx.js";
9
+ Event19,
10
+ Service84
11
+ } from "./tool-output-15x6q7ay.js";
12
12
  import {
13
13
  ID18,
14
14
  MethodID2,
15
- Service77
16
- } from "./tool-output-66sfkq4p.js";
15
+ Service83
16
+ } from "./tool-output-24e6ax7n.js";
17
17
  import {
18
18
  success2,
19
19
  error2
20
20
  } from "./tool-output-yb20nhc3.js";
21
21
  import {
22
22
  ID17
23
- } from "./tool-output-bfhbvqd5.js";
23
+ } from "./tool-output-ybr9qycb.js";
24
24
  import {
25
25
  configuredSettings2
26
- } from "./tool-output-djw2zn7q.js";
26
+ } from "./tool-output-003nb3x9.js";
27
27
 
28
28
  // src/plugin/provider/snowflake-cortex.ts
29
29
  import { define } from "@opencode/plugin/effect/plugin";
@@ -53,8 +53,8 @@ var SnowflakeCortexPlugin2 = define({
53
53
  id: "opencode.provider.snowflake.cortex",
54
54
  effect: Effect.fn(function* (ctx) {
55
55
  const http = yield* HttpClient.HttpClient;
56
- const credentials = yield* Service79;
57
- const integrations = yield* Service77;
56
+ const credentials = yield* Service84;
57
+ const integrations = yield* Service83;
58
58
  const bus = yield* Service89;
59
59
  const configured = yield* configuredSettings2(providerID);
60
60
  const account = { value: "" };
@@ -188,7 +188,7 @@ var SnowflakeCortexPlugin2 = define({
188
188
  });
189
189
  }
190
190
  });
191
- yield* bus.subscribe(Event18.Switched).pipe(Stream.filter((event) => event.data.integrationID === integrationID), Stream.runForEach(() => load.pipe(Effect.flatMap((changed) => changed ? ctx.provider.reload() : Effect.void))), Effect.forkScoped({ startImmediately: true }));
191
+ yield* bus.subscribe(Event19.Switched).pipe(Stream.filter((event) => event.data.integrationID === integrationID), Stream.runForEach(() => load.pipe(Effect.flatMap((changed) => changed ? ctx.provider.reload() : Effect.void))), Effect.forkScoped({ startImmediately: true }));
192
192
  yield* ctx.session.hook("http.request", (event) => Effect.sync(() => {
193
193
  const token = envToken();
194
194
  if (token)
@@ -6,12 +6,12 @@ import {
6
6
  var exports_driver = {};
7
7
  __export(exports_driver, {
8
8
  Binding: () => Binding2,
9
- Error: () => Error5,
9
+ Error: () => Error4,
10
10
  ProviderNotFound: () => ProviderNotFound2,
11
11
  RegistryService: () => RegistryService2,
12
12
  WorkspaceDriver: () => exports_driver,
13
- make: () => make30,
14
- node: () => node64,
13
+ make: () => make26,
14
+ node: () => node62,
15
15
  registry: () => registry3,
16
16
  registryNode: () => registryNode2
17
17
  });
@@ -19,7 +19,7 @@ import { makeGlobalNode } from "@opencode/util/effect/app-node";
19
19
  import { Context, Effect, Layer, Schema } from "effect";
20
20
  var Binding2 = Schema.Record(Schema.String, Schema.Json);
21
21
 
22
- class Error5 extends Schema.TaggedError()("WorkspaceDriver.Error", {
22
+ class Error4 extends Schema.TaggedError()("WorkspaceDriver.Error", {
23
23
  message: Schema.optional(Schema.String),
24
24
  cause: Schema.optional(Schema.Defect())
25
25
  }) {
@@ -29,7 +29,7 @@ class ProviderNotFound2 extends Schema.TaggedError()("WorkspaceDriver.ProviderNo
29
29
  provider: Schema.String
30
30
  }) {
31
31
  }
32
- var make30 = (driver) => driver;
32
+ var make26 = (driver) => driver;
33
33
 
34
34
  class RegistryService2 extends Context.Service()("@opencode/WorkspaceDriverRegistry") {
35
35
  }
@@ -44,6 +44,6 @@ var registryNode2 = (drivers) => makeGlobalNode({
44
44
  layer: Layer.succeed(RegistryService2, RegistryService2.of(registry3(drivers))),
45
45
  deps: []
46
46
  });
47
- var node64 = registryNode2({});
47
+ var node62 = registryNode2({});
48
48
 
49
- export { Binding2, Error5, ProviderNotFound2, make30, RegistryService2, registry3, registryNode2, node64, exports_driver };
49
+ export { Binding2, Error4, ProviderNotFound2, make26, RegistryService2, registry3, registryNode2, node62, exports_driver };
@@ -1,16 +1,16 @@
1
1
  import {
2
2
  ID17,
3
3
  aisdk2
4
- } from "./tool-output-bfhbvqd5.js";
4
+ } from "./tool-output-ybr9qycb.js";
5
5
  import {
6
6
  ID16,
7
7
  VariantID2,
8
8
  Family2,
9
9
  Info24
10
- } from "./tool-output-18a09hjh.js";
10
+ } from "./tool-output-h5x6jdbe.js";
11
11
  import {
12
12
  connectionEnv2
13
- } from "./tool-output-287n1fg5.js";
13
+ } from "./tool-output-x0tb4wca.js";
14
14
  import {
15
15
  __export
16
16
  } from "./tool-output-9rqn6x4v.js";
@@ -2,18 +2,18 @@ import {
2
2
  AbsolutePath2
3
3
  } from "./tool-output-z5v4ffb3.js";
4
4
  import {
5
- node88
6
- } from "./tool-output-e5y560y7.js";
5
+ node91
6
+ } from "./tool-output-th2hp9ev.js";
7
7
  import {
8
- Service83,
9
- node86
10
- } from "./tool-output-7ns7jg7q.js";
8
+ Service85,
9
+ node88
10
+ } from "./tool-output-4q33662b.js";
11
11
  import {
12
12
  create4
13
13
  } from "./tool-output-40y6dtc2.js";
14
14
  import {
15
15
  make22
16
- } from "./tool-output-8eap5edk.js";
16
+ } from "./tool-output-wmv27f9c.js";
17
17
  import {
18
18
  __export
19
19
  } from "./tool-output-9rqn6x4v.js";
@@ -21,9 +21,9 @@ import {
21
21
  // src/worktree/strategies.ts
22
22
  var exports_strategies = {};
23
23
  __export(exports_strategies, {
24
- Service: () => Service22,
24
+ Service: () => Service21,
25
25
  WorktreeStrategies: () => exports_strategies,
26
- node: () => node25
26
+ node: () => node24
27
27
  });
28
28
  import { Context, Effect, Layer } from "effect";
29
29
  import path from "path";
@@ -31,10 +31,10 @@ import { makeLocationNode } from "@opencode/util/effect/app-node";
31
31
  import { Global } from "@opencode/util/global";
32
32
  import { FSUtil } from "@opencode/util/fs-util";
33
33
 
34
- class Service22 extends Context.Service()("@opencode/WorktreeStrategies") {
34
+ class Service21 extends Context.Service()("@opencode/WorktreeStrategies") {
35
35
  }
36
- var layer = Layer.effect(Service22, Effect.gen(function* () {
37
- const location = yield* Service83;
36
+ var layer = Layer.effect(Service21, Effect.gen(function* () {
37
+ const location = yield* Service85;
38
38
  const global = yield* Global.Service;
39
39
  const git = yield* make22;
40
40
  const state = create4({
@@ -55,12 +55,12 @@ var layer = Layer.effect(Service22, Effect.gen(function* () {
55
55
  }
56
56
  })
57
57
  });
58
- return Service22.of({ ...state, directory: location.directory });
58
+ return Service21.of({ ...state, directory: location.directory });
59
59
  }));
60
- var node25 = makeLocationNode({
61
- service: Service22,
60
+ var node24 = makeLocationNode({
61
+ service: Service21,
62
62
  layer,
63
- deps: [node86, Global.node, node88, FSUtil.node]
63
+ deps: [node88, Global.node, node91, FSUtil.node]
64
64
  });
65
65
 
66
- export { Service22, node25, exports_strategies };
66
+ export { Service21, node24, exports_strategies };
@@ -11,19 +11,19 @@ import {
11
11
  // src/shell/select.ts
12
12
  var exports_select = {};
13
13
  __export(exports_select, {
14
- Options: () => Options8,
15
- Service: () => Service88,
14
+ Options: () => Options6,
15
+ Service: () => Service52,
16
16
  ShellSelect: () => exports_select,
17
17
  args: () => args2,
18
- configured: () => configured12,
18
+ configured: () => configured6,
19
19
  environment: () => environment2,
20
20
  gitbash: () => gitbash2,
21
- list: () => list4,
21
+ list: () => list3,
22
22
  login: () => login2,
23
23
  name: () => name17,
24
- node: () => node91,
24
+ node: () => node54,
25
25
  ps: () => ps2,
26
- resolve: () => resolve4
26
+ resolve: () => resolve3
27
27
  });
28
28
  import path from "path";
29
29
  import { readFile } from "fs/promises";
@@ -43,11 +43,11 @@ var META = {
43
43
  sh: { login: true },
44
44
  zsh: { login: true }
45
45
  };
46
- var Options8 = Schema.Struct({
46
+ var Options6 = Schema.Struct({
47
47
  gitbash: Schema.optional(Schema.String)
48
48
  });
49
49
 
50
- class Service88 extends Context.Service()("@opencode/ShellSelect") {
50
+ class Service52 extends Context.Service()("@opencode/ShellSelect") {
51
51
  }
52
52
  function stat(file) {
53
53
  return statSync(file, { throwIfNoEntry: false }) ?? undefined;
@@ -164,7 +164,7 @@ function environment2(bin, filter) {
164
164
  }
165
165
  var defaultConfigured;
166
166
  var defaultCompatible;
167
- function resolve4(input, configShell, options, bin) {
167
+ function resolve3(input, configShell, options, bin) {
168
168
  const filter = input.priority === "compat" ? { compatible: true } : undefined;
169
169
  if (configShell)
170
170
  return select(configShell, options, filter, bin);
@@ -180,15 +180,15 @@ function resolve4(input, configShell, options, bin) {
180
180
  defaultConfigured = { bin, value };
181
181
  return value;
182
182
  }
183
- resolve4.reset = () => {
183
+ resolve3.reset = () => {
184
184
  defaultConfigured = undefined;
185
185
  defaultCompatible = undefined;
186
186
  };
187
- async function list4(options, bin) {
187
+ async function list3(options, bin) {
188
188
  const shells = process.platform === "win32" ? win(options, bin) : await unix();
189
189
  return shells.filter((shell) => executable(shell, options, bin)).map((shell) => info(shell, options, bin));
190
190
  }
191
- var layer = (options) => Layer.effect(Service88, Effect.gen(function* () {
191
+ var layer = (options) => Layer.effect(Service52, Effect.gen(function* () {
192
192
  const global = yield* Global.Service;
193
193
  const state = create4({
194
194
  name: "shell-select",
@@ -199,16 +199,16 @@ var layer = (options) => Layer.effect(Service88, Effect.gen(function* () {
199
199
  }
200
200
  })
201
201
  });
202
- return Service88.of({
202
+ return Service52.of({
203
203
  transform: state.transform,
204
204
  reload: state.reload,
205
- resolve: (input) => Effect.sync(() => resolve4(input, state.get().shell, options, global.bin)),
206
- list: () => Effect.promise(() => list4(options, global.bin))
205
+ resolve: (input) => Effect.sync(() => resolve3(input, state.get().shell, options, global.bin)),
206
+ list: () => Effect.promise(() => list3(options, global.bin))
207
207
  });
208
208
  }));
209
- function configured12(options) {
210
- return makeLocationNode({ service: Service88, layer: layer(options), deps: [Global.node] });
209
+ function configured6(options) {
210
+ return makeLocationNode({ service: Service52, layer: layer(options), deps: [Global.node] });
211
211
  }
212
- var node91 = configured12();
212
+ var node54 = configured6();
213
213
 
214
- export { Options8, Service88, gitbash2, name17, login2, ps2, args2, environment2, resolve4, list4, configured12, node91, exports_select };
214
+ export { Options6, Service52, gitbash2, name17, login2, ps2, args2, environment2, resolve3, list3, configured6, node54, exports_select };
@@ -6,9 +6,9 @@ import {
6
6
  var exports_claude_agent_error = {};
7
7
  __export(exports_claude_agent_error, {
8
8
  ClaudeAgentError: () => exports_claude_agent_error,
9
- make: () => make8
9
+ make: () => make10
10
10
  });
11
- function make8() {
11
+ function make10() {
12
12
  let code;
13
13
  let rejected;
14
14
  return (message) => {
@@ -40,4 +40,4 @@ function make8() {
40
40
  };
41
41
  }
42
42
 
43
- export { make8, exports_claude_agent_error };
43
+ export { make10, exports_claude_agent_error };
@@ -1,16 +1,16 @@
1
1
  import {
2
2
  Service89
3
- } from "./tool-output-v093k11a.js";
3
+ } from "./tool-output-qs0v2njn.js";
4
4
  import {
5
- Event18,
6
- Service79
7
- } from "./tool-output-w6zbx7sx.js";
5
+ Event19,
6
+ Service84
7
+ } from "./tool-output-15x6q7ay.js";
8
8
  import {
9
9
  batch2
10
10
  } from "./tool-output-40y6dtc2.js";
11
11
  import {
12
12
  suppliers2
13
- } from "./tool-output-8t99kr38.js";
13
+ } from "./tool-output-wfs84ra6.js";
14
14
  import {
15
15
  match3
16
16
  } from "./tool-output-1aqsckx4.js";
@@ -19,13 +19,13 @@ import {
19
19
  decision2,
20
20
  integrationResource2,
21
21
  accounts2
22
- } from "./tool-output-f341sazs.js";
22
+ } from "./tool-output-1vbrkdbs.js";
23
23
  import {
24
- Service72
25
- } from "./tool-output-t6vp9y58.js";
24
+ Service73
25
+ } from "./tool-output-nzm9kpg0.js";
26
26
  import {
27
- Service49
28
- } from "./tool-output-gnjy40cd.js";
27
+ Service26
28
+ } from "./tool-output-3vgty9hw.js";
29
29
  import {
30
30
  observe2
31
31
  } from "./tool-output-hpg1pkwy.js";
@@ -37,16 +37,16 @@ import {
37
37
  var exports_policy = {};
38
38
  __export(exports_policy, {
39
39
  ConfigPolicyPlugin: () => exports_policy,
40
- Plugin: () => Plugin37
40
+ Plugin: () => Plugin15
41
41
  });
42
42
  import { define } from "@opencode/plugin/effect/plugin";
43
43
  import { Effect, Stream } from "effect";
44
- var Plugin37 = define({
44
+ var Plugin15 = define({
45
45
  id: "opencode.config.policy",
46
46
  effect: Effect.fn(function* (ctx) {
47
- const config = yield* Service72;
48
- const credentials = yield* Service79;
49
- const websearch = yield* Service49;
47
+ const config = yield* Service73;
48
+ const credentials = yield* Service84;
49
+ const websearch = yield* Service26;
50
50
  const bus = yield* Service89;
51
51
  const reload = batch2(Effect.all([ctx.provider.reload(), ctx.mcp.reload(), ctx.skill.reload(), websearch.reload()], {
52
52
  discard: true
@@ -54,7 +54,7 @@ var Plugin37 = define({
54
54
  const loaded = yield* observe2(config, ctx.event, reload);
55
55
  const policies = () => statements2(loaded.entries);
56
56
  const current = { accounts: accounts2(yield* credentials.all()) };
57
- yield* bus.subscribe([Event18.Updated, Event18.Switched]).pipe(Stream.runForEach(() => Effect.gen(function* () {
57
+ yield* bus.subscribe([Event19.Updated, Event19.Switched]).pipe(Stream.runForEach(() => Effect.gen(function* () {
58
58
  const next = accounts2(yield* credentials.all());
59
59
  if (next.size === current.accounts.size && Array.from(next).every(([id, account]) => current.accounts.get(id) === account))
60
60
  return;
@@ -110,4 +110,4 @@ var Plugin37 = define({
110
110
  })
111
111
  });
112
112
 
113
- export { Plugin37, exports_policy };
113
+ export { Plugin15, exports_policy };
@@ -1,9 +1,9 @@
1
1
  import {
2
- Service72
3
- } from "./tool-output-t6vp9y58.js";
2
+ Service73
3
+ } from "./tool-output-nzm9kpg0.js";
4
4
  import {
5
- Service34
6
- } from "./tool-output-d0pyrcv2.js";
5
+ Service44
6
+ } from "./tool-output-nf1q0ebc.js";
7
7
  import {
8
8
  __export
9
9
  } from "./tool-output-9rqn6x4v.js";
@@ -12,20 +12,20 @@ import {
12
12
  var exports_mcp2 = {};
13
13
  __export(exports_mcp2, {
14
14
  ConfigMcpPlugin: () => exports_mcp2,
15
- Plugin: () => Plugin46,
15
+ Plugin: () => Plugin35,
16
16
  register: () => register7
17
17
  });
18
18
  import { define } from "@opencode/plugin/effect/plugin";
19
19
  import { Effect, Stream } from "effect";
20
- var Plugin46 = define({
20
+ var Plugin35 = define({
21
21
  id: "opencode.config.mcp",
22
22
  effect: Effect.fn(function* (ctx) {
23
23
  yield* register7(ctx.event.subscribe({ types: ["config.updated"] }));
24
24
  })
25
25
  });
26
26
  var register7 = Effect.fn("ConfigMCPPlugin.register")(function* (events) {
27
- const config = yield* Service72;
28
- const mcp = yield* Service34;
27
+ const config = yield* Service73;
28
+ const mcp = yield* Service44;
29
29
  const loaded = { entries: [] };
30
30
  yield* events.pipe(Stream.filter((event) => event.type === "config.updated"), Stream.runForEach(() => config.entries().pipe(Effect.tap((entries) => Effect.sync(() => loaded.entries = entries)), Effect.andThen(mcp.reload()), Effect.catchCause((cause) => Effect.logError("failed to reload MCP config", { cause })))), Effect.ignore, Effect.forkScoped({ startImmediately: true }));
31
31
  loaded.entries = yield* config.entries();
@@ -46,4 +46,4 @@ var register7 = Effect.fn("ConfigMCPPlugin.register")(function* (events) {
46
46
  });
47
47
  });
48
48
 
49
- export { Plugin46, register7, exports_mcp2 };
49
+ export { Plugin35, register7, exports_mcp2 };
@@ -4,9 +4,9 @@ import {
4
4
  } from "./tool-output-kt3bjfbg.js";
5
5
  import {
6
6
  ID18,
7
- Service77,
8
- node80
9
- } from "./tool-output-66sfkq4p.js";
7
+ Service83,
8
+ node86
9
+ } from "./tool-output-24e6ax7n.js";
10
10
  import {
11
11
  __export
12
12
  } from "./tool-output-9rqn6x4v.js";
@@ -14,12 +14,12 @@ import {
14
14
  // src/usage-limits.ts
15
15
  var exports_usage_limits = {};
16
16
  __export(exports_usage_limits, {
17
- Info: () => Info3,
18
- Service: () => Service17,
19
- UnavailableError: () => UnavailableError3,
17
+ Info: () => Info8,
18
+ Service: () => Service27,
19
+ UnavailableError: () => UnavailableError5,
20
20
  UsageLimits: () => exports_usage_limits,
21
- layer: () => layer11,
22
- node: () => node19
21
+ layer: () => layer13,
22
+ node: () => node30
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 Info8 = UsageLimits.Info;
33
33
 
34
- class UnavailableError3 extends Schema.TaggedError()("UsageLimits.UnavailableError", {
34
+ class UnavailableError5 extends Schema.TaggedError()("UsageLimits.UnavailableError", {
35
35
  message: Schema.String
36
36
  }) {
37
37
  }
38
38
 
39
- class Service17 extends Context.Service()("@opencode/UsageLimits") {
39
+ class Service27 extends Context.Service()("@opencode/UsageLimits") {
40
40
  }
41
- var layer11 = Layer.effect(Service17, Effect.gen(function* () {
42
- const integrations = yield* Service77;
41
+ var layer13 = Layer.effect(Service27, Effect.gen(function* () {
42
+ const integrations = yield* Service83;
43
43
  const http = yield* HttpClient.HttpClient;
44
44
  const get = Effect.fn("UsageLimits.get")(function* () {
45
45
  const connection = yield* integrations.connection.active(ID18.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 UnavailableError5({ 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 layer11 = Layer.effect(Service17, 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 UnavailableError5({ message: "OpenCode Console usage limits timed out" }))
58
58
  }));
59
59
  return {
60
60
  workspace: {
@@ -66,12 +66,12 @@ var layer11 = Layer.effect(Service17, Effect.gen(function* () {
66
66
  budgets
67
67
  };
68
68
  });
69
- return Service17.of({ get });
69
+ return Service27.of({ get });
70
70
  }));
71
- var node19 = makeLocationNode({
72
- service: Service17,
73
- layer: layer11,
74
- deps: [node80, httpClient]
71
+ var node30 = makeLocationNode({
72
+ service: Service27,
73
+ layer: layer13,
74
+ deps: [node86, 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 UnavailableError5({ 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 UnavailableError5({ 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, UnavailableError3, Service17, layer11, node19, exports_usage_limits };
133
+ export { Info8, UnavailableError5, Service27, layer13, node30, exports_usage_limits };