@opencode/core 2.1.4 → 2.2.1

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 (960) hide show
  1. package/dist/account/sql.js +1 -1
  2. package/dist/agent.js +90 -85
  3. package/dist/aisdk-native.js +98 -91
  4. package/dist/aisdk.js +104 -97
  5. package/dist/app.js +9 -9
  6. package/dist/bus.js +80 -75
  7. package/dist/chunks/{location-tseqrb92.js → credential-010tfxz5.js} +64 -53
  8. package/dist/chunks/{location-034tev2y.js → credential-034tev2y.js} +2 -2
  9. package/dist/chunks/{location-t09yj0zj.js → credential-0473z1ea.js} +4 -4
  10. package/dist/chunks/{location-wxy5qeqz.js → credential-05gcnbx9.js} +15 -15
  11. package/dist/chunks/{location-z359x3zf.js → credential-0gmzdafk.js} +39 -39
  12. package/dist/chunks/{location-v3q8ezdd.js → credential-0hgyyj2f.js} +13 -13
  13. package/dist/chunks/{location-7jrmq8v4.js → credential-0hy252xp.js} +18 -18
  14. package/dist/chunks/credential-0yf36v3f.js +332 -0
  15. package/dist/chunks/{location-qbgwvbz8.js → credential-0yrc0qsb.js} +17 -17
  16. package/dist/chunks/{location-pt3agb94.js → credential-12dezc3d.js} +21 -21
  17. package/dist/chunks/{location-w00s5rdr.js → credential-14f8gty7.js} +4 -4
  18. package/dist/chunks/{location-239z01gj.js → credential-1egdjfep.js} +8 -8
  19. package/dist/chunks/{location-1ep2p91f.js → credential-1ep2p91f.js} +2 -2
  20. package/dist/chunks/{location-yx8gesms.js → credential-1hayz8ad.js} +29 -21
  21. package/dist/chunks/{location-5fjb7ams.js → credential-1jakw16s.js} +2 -2
  22. package/dist/chunks/credential-1mdvq69k.js +179 -0
  23. package/dist/chunks/{location-rttdb5jp.js → credential-1p6bnm4j.js} +30 -42
  24. package/dist/chunks/{location-d5m0d1jd.js → credential-1p97rsrw.js} +120 -93
  25. package/dist/chunks/{location-1x2knyw4.js → credential-1x2knyw4.js} +1 -1
  26. package/dist/chunks/{location-3wef9mrz.js → credential-1x73k67a.js} +6 -6
  27. package/dist/chunks/{location-vd3b3yk9.js → credential-204s3925.js} +13 -2
  28. package/dist/chunks/{location-c8666r4c.js → credential-26x8chrq.js} +7 -7
  29. package/dist/chunks/{location-2n0y9ar2.js → credential-2agjkr66.js} +31 -22
  30. package/dist/chunks/{location-2h6s5afk.js → credential-2d25yes2.js} +19 -19
  31. package/dist/chunks/{location-3e8nvsz7.js → credential-2fbmf7r0.js} +3 -3
  32. package/dist/chunks/{location-p184mqc5.js → credential-2ktpft3m.js} +17 -17
  33. package/dist/chunks/{location-fjnhz8nn.js → credential-2r6emfn3.js} +4 -4
  34. package/dist/chunks/{location-x3w3gr0t.js → credential-303mq5q0.js} +29 -29
  35. package/dist/chunks/{location-6p8ga3wk.js → credential-313ht5vg.js} +17 -17
  36. package/dist/chunks/{location-3hepkmqq.js → credential-3hepkmqq.js} +1 -1
  37. package/dist/chunks/{location-9b28cy4d.js → credential-3j1m3tq4.js} +13 -7
  38. package/dist/chunks/{location-afmnpta1.js → credential-3kdbrncp.js} +5 -5
  39. package/dist/chunks/{location-3nnrz6f6.js → credential-3nnrz6f6.js} +1 -1
  40. package/dist/chunks/{location-fcfxs1zj.js → credential-3sf9fkhp.js} +3 -3
  41. package/dist/chunks/{location-a5h3ke48.js → credential-3t284k5r.js} +54 -51
  42. package/dist/chunks/{location-kb4gstwj.js → credential-3tcpaccq.js} +5 -5
  43. package/dist/chunks/{location-40za9wsf.js → credential-40za9wsf.js} +2 -2
  44. package/dist/chunks/{location-37c15ztt.js → credential-44wjxh8g.js} +11 -11
  45. package/dist/chunks/{location-t9sf4w0m.js → credential-491m2zwm.js} +11 -11
  46. package/dist/chunks/{location-b46dzrwk.js → credential-4czk4k18.js} +44 -44
  47. package/dist/chunks/{location-4v3515yy.js → credential-4f3e2fe5.js} +70 -53
  48. package/dist/chunks/{location-09wmedhs.js → credential-4fes9nxq.js} +9 -9
  49. package/dist/chunks/{location-5ysrq0ad.js → credential-4hn0zw0c.js} +17 -17
  50. package/dist/chunks/{location-2z1j29yd.js → credential-4pyp9zr9.js} +19 -3
  51. package/dist/chunks/{location-4v008n1t.js → credential-4v008n1t.js} +1 -1
  52. package/dist/chunks/credential-539dw32x.js +410 -0
  53. package/dist/chunks/{location-1xwgv2nq.js → credential-5e4fvpp9.js} +3 -3
  54. package/dist/chunks/{location-rkvk32bt.js → credential-5jandae5.js} +10 -10
  55. package/dist/chunks/{location-jz6d5c41.js → credential-5k74q2xq.js} +249 -199
  56. package/dist/chunks/{location-5m9w47nd.js → credential-5m9w47nd.js} +1 -1
  57. package/dist/chunks/{location-cxat4xx2.js → credential-5macz2df.js} +36 -36
  58. package/dist/chunks/{location-4y92vxjf.js → credential-5sc8268w.js} +50 -50
  59. package/dist/chunks/credential-5w3e23ze.js +16 -0
  60. package/dist/chunks/{location-633qbm06.js → credential-5zpj5z5z.js} +11 -11
  61. package/dist/chunks/{location-8bf8d73q.js → credential-65m06x48.js} +3 -3
  62. package/dist/chunks/{location-6esdw8yj.js → credential-6esdw8yj.js} +1 -1
  63. package/dist/chunks/{location-rxz7t1tx.js → credential-6qh3pn8d.js} +73 -41
  64. package/dist/chunks/{location-y9awcm76.js → credential-6te9kxba.js} +150 -38
  65. package/dist/chunks/{location-nbvb24gq.js → credential-6vyrcjf5.js} +22 -22
  66. package/dist/chunks/{location-b93307df.js → credential-6xtf9y56.js} +34 -34
  67. package/dist/chunks/{location-76cb1hcw.js → credential-76cb1hcw.js} +1 -1
  68. package/dist/chunks/{location-7bmhse3q.js → credential-7bmhse3q.js} +1 -1
  69. package/dist/chunks/{location-dxbw252c.js → credential-7dyk5r5p.js} +16 -16
  70. package/dist/chunks/{location-z06f5xk1.js → credential-7jad4yjq.js} +29 -29
  71. package/dist/chunks/{location-7w2ypzdf.js → credential-7w2ypzdf.js} +1 -1
  72. package/dist/chunks/{location-xyswfhq2.js → credential-7yt5s0f0.js} +35 -35
  73. package/dist/chunks/{location-0928y98p.js → credential-82nhjx58.js} +3 -3
  74. package/dist/chunks/{location-q1rqw855.js → credential-8411r79r.js} +8 -8
  75. package/dist/chunks/{location-j6sw43tq.js → credential-87bz1bn4.js} +15 -15
  76. package/dist/chunks/{location-7jg3h9xc.js → credential-89bbjwma.js} +11 -11
  77. package/dist/chunks/{location-m0gv7qej.js → credential-8ecyv6n4.js} +12 -12
  78. package/dist/chunks/{location-8jztxfpf.js → credential-8jztxfpf.js} +1 -1
  79. package/dist/chunks/{location-jw4xm41e.js → credential-8ppy984g.js} +13 -13
  80. package/dist/chunks/{location-mjey6v08.js → credential-8s8ht7fz.js} +7 -7
  81. package/dist/chunks/{location-8wtp7s3z.js → credential-8wtp7s3z.js} +1 -1
  82. package/dist/chunks/{location-maspj1v3.js → credential-90zstvax.js} +44 -8
  83. package/dist/chunks/{location-fjngd7fj.js → credential-93e1rsjq.js} +17 -17
  84. package/dist/chunks/{location-eh71ek0g.js → credential-96zj6efe.js} +136 -92
  85. package/dist/chunks/{location-1y0wdj51.js → credential-9axz1114.js} +8 -8
  86. package/dist/chunks/{location-dvpv1qqw.js → credential-9d99svmd.js} +5 -5
  87. package/dist/chunks/{location-ckr4b3py.js → credential-9f8nz412.js} +37 -42
  88. package/dist/chunks/{location-0gbb59p9.js → credential-9r0x1bva.js} +9 -9
  89. package/dist/chunks/{location-3mgb105e.js → credential-9z9tayqc.js} +8 -8
  90. package/dist/chunks/{location-6z79x2sm.js → credential-a7vdyqvq.js} +13 -13
  91. package/dist/chunks/{location-9dxz0jcc.js → credential-a81capfc.js} +15 -12
  92. package/dist/chunks/{location-jdcya02q.js → credential-acns5kb5.js} +19 -19
  93. package/dist/chunks/{location-997dsrmm.js → credential-agqd6nxz.js} +17 -7
  94. package/dist/chunks/{location-w67r90k6.js → credential-anaq8tyr.js} +29 -29
  95. package/dist/chunks/{location-r3083m8p.js → credential-apyyhtqv.js} +30 -30
  96. package/dist/chunks/{location-n1ryh798.js → credential-arc1qckg.js} +41 -39
  97. package/dist/chunks/{location-ayjs7tqn.js → credential-ayjs7tqn.js} +2 -2
  98. package/dist/chunks/{location-qyx1nkkd.js → credential-ayq7z3yq.js} +19 -19
  99. package/dist/chunks/{location-nte6bvsd.js → credential-b2dk96k1.js} +79 -53
  100. package/dist/chunks/{location-r20swzxr.js → credential-b5pzs38m.js} +27 -25
  101. package/dist/chunks/{location-b6vsg801.js → credential-b6vsg801.js} +2 -2
  102. package/dist/chunks/{location-jh9pmtvm.js → credential-b6x8f3en.js} +22 -16
  103. package/dist/chunks/{location-wjj7prxr.js → credential-beh6qq61.js} +11 -0
  104. package/dist/chunks/{location-s9ty2h8k.js → credential-bgtvwfds.js} +11 -11
  105. package/dist/chunks/{location-2jq4ff38.js → credential-br0kkpnn.js} +7 -7
  106. package/dist/chunks/{location-khh5ttga.js → credential-bs2ewjth.js} +11 -11
  107. package/dist/chunks/{location-bm60t44w.js → credential-bsefsz8j.js} +5 -5
  108. package/dist/chunks/{location-6b66j3w1.js → credential-bwva959e.js} +50 -39
  109. package/dist/chunks/{location-a7hcemwv.js → credential-c0xjp2a3.js} +7 -7
  110. package/dist/chunks/{location-bjhzkqyk.js → credential-cac0wmbb.js} +6 -6
  111. package/dist/chunks/{location-g3avwj86.js → credential-cjqs9axx.js} +11 -11
  112. package/dist/chunks/credential-cqv5kn06.js +13 -0
  113. package/dist/chunks/{location-s1t9wfqz.js → credential-cth8y227.js} +8 -8
  114. package/dist/chunks/{location-b0mv4wxm.js → credential-cwrgdav8.js} +2 -2
  115. package/dist/chunks/{location-d4v9tmah.js → credential-d4v9tmah.js} +2 -2
  116. package/dist/chunks/credential-d77dj7jw.js +18 -0
  117. package/dist/chunks/{location-8vjz6zkc.js → credential-d8q8hp8x.js} +24 -24
  118. package/dist/chunks/{location-86439gfw.js → credential-dcgwasx3.js} +30 -30
  119. package/dist/chunks/{location-7th4r57j.js → credential-dk3hpat9.js} +19 -19
  120. package/dist/chunks/{location-rgyfs092.js → credential-dkj2h5cm.js} +12 -12
  121. package/dist/chunks/{location-hyvp8sn8.js → credential-dkxwsr1g.js} +1 -1
  122. package/dist/chunks/{location-j113cymg.js → credential-dt77769w.js} +2 -2
  123. package/dist/chunks/{location-xewrm1yq.js → credential-e14rv8n7.js} +132 -85
  124. package/dist/chunks/{location-hwqvnpa6.js → credential-e1n7p4ag.js} +12 -12
  125. package/dist/chunks/{location-3sfq932m.js → credential-e23z2b6q.js} +25 -32
  126. package/dist/chunks/{location-fphnwtmq.js → credential-e71x36jh.js} +14 -14
  127. package/dist/chunks/{location-e834z07m.js → credential-e834z07m.js} +1 -1
  128. package/dist/chunks/credential-etcm32bf.js +356 -0
  129. package/dist/chunks/{location-dgj49q4q.js → credential-eth7w1ws.js} +76 -50
  130. package/dist/chunks/{location-q89bkvf2.js → credential-f3erva9m.js} +10 -5
  131. package/dist/chunks/{location-wf8nwwfn.js → credential-f5ydn5fg.js} +11 -11
  132. package/dist/chunks/{location-89c7n5pz.js → credential-f7s46jf6.js} +5 -5
  133. package/dist/chunks/{location-8c8xwrnt.js → credential-fds3jynx.js} +14 -14
  134. package/dist/chunks/{location-fffv3p7h.js → credential-fffv3p7h.js} +1 -1
  135. package/dist/chunks/credential-fg9p65nk.js +37 -0
  136. package/dist/chunks/{location-e6ke8dsh.js → credential-fh43wqrx.js} +36 -36
  137. package/dist/chunks/credential-fkpq3x5p.js +36 -0
  138. package/dist/chunks/{location-dg6zbqet.js → credential-fneb0zf4.js} +60 -60
  139. package/dist/chunks/{location-snh71vez.js → credential-fpap23jy.js} +33 -32
  140. package/dist/chunks/{location-hfkcnh3h.js → credential-fpg34aj9.js} +42 -32
  141. package/dist/chunks/{location-4kb4jvb8.js → credential-fqx72tyj.js} +24 -24
  142. package/dist/chunks/{location-e45fk36t.js → credential-fwp9mfc9.js} +4 -4
  143. package/dist/chunks/{location-w687dnns.js → credential-fznmdakp.js} +4 -4
  144. package/dist/chunks/credential-g38vz1ag.js +252 -0
  145. package/dist/chunks/credential-g4hd4tqj.js +535 -0
  146. package/dist/chunks/{location-x6zjgj80.js → credential-g5nf4rjy.js} +35 -22
  147. package/dist/chunks/{location-z24fzt3x.js → credential-g9r4jbb8.js} +29 -28
  148. package/dist/chunks/{location-ky7vvs7w.js → credential-ge9gsrez.js} +90 -38
  149. package/dist/chunks/{location-sk6vvdwr.js → credential-gfk2zkvt.js} +26 -26
  150. package/dist/chunks/{location-998yhzzq.js → credential-gg8p9cgs.js} +24 -18
  151. package/dist/chunks/{location-b29mbqx6.js → credential-ghrzdqqx.js} +5 -5
  152. package/dist/chunks/{location-2brc2rvy.js → credential-gkw5tmj9.js} +4 -4
  153. package/dist/chunks/{location-qbm0r1ap.js → credential-grghrhjz.js} +22 -20
  154. package/dist/chunks/{location-81va5nb7.js → credential-gx1r7nq1.js} +16 -16
  155. package/dist/chunks/{location-0pm6fm3r.js → credential-gx98ktag.js} +91 -67
  156. package/dist/chunks/{location-kjb4x69f.js → credential-gxz26haq.js} +14 -6
  157. package/dist/chunks/{location-vxybbfew.js → credential-h0gszfyz.js} +12 -12
  158. package/dist/chunks/{location-zakhs7qb.js → credential-hby6rmzj.js} +33 -33
  159. package/dist/chunks/{location-s2pfznc4.js → credential-hn4sj8vd.js} +6 -6
  160. package/dist/chunks/{location-2ggqsqg3.js → credential-hpcxzwwk.js} +7 -7
  161. package/dist/chunks/{location-6pjqjmy2.js → credential-hpg1pkwy.js} +2 -2
  162. package/dist/chunks/{location-pc1v25hk.js → credential-hqxkkta1.js} +4 -4
  163. package/dist/chunks/{location-y2hbnz15.js → credential-hw81h15x.js} +55 -26
  164. package/dist/chunks/{location-tx9vmxa7.js → credential-j5gjnx76.js} +19 -19
  165. package/dist/chunks/{location-nes0ks30.js → credential-j63f8txt.js} +35 -33
  166. package/dist/chunks/credential-j71pyjxy.js +42 -0
  167. package/dist/chunks/{location-2cjxs9ry.js → credential-j9m7wknr.js} +25 -25
  168. package/dist/chunks/{location-rjnacbrz.js → credential-jcqm84fr.js} +9 -9
  169. package/dist/chunks/{location-91rj84md.js → credential-jfaecv01.js} +2 -2
  170. package/dist/chunks/{location-g5h9c0rr.js → credential-jtnps1zs.js} +2 -2
  171. package/dist/chunks/credential-jwr30sdr.js +13 -0
  172. package/dist/chunks/{location-cp65cvxr.js → credential-jyeaxm3w.js} +22 -22
  173. package/dist/chunks/{location-r1s8qxhz.js → credential-jzyke2ba.js} +23 -23
  174. package/dist/chunks/{location-k814nvkf.js → credential-k814nvkf.js} +1 -1
  175. package/dist/chunks/{location-aft2va8r.js → credential-k8qb7q2x.js} +11 -11
  176. package/dist/chunks/{location-6qtdkhme.js → credential-k98prhpv.js} +4 -4
  177. package/dist/chunks/credential-k9zkdd2y.js +83 -0
  178. package/dist/chunks/{location-ytsgm675.js → credential-kaa2rt48.js} +6 -6
  179. package/dist/chunks/{location-c3cfh5w6.js → credential-kcg78dnn.js} +7 -7
  180. package/dist/chunks/{location-4bvc8sjz.js → credential-kgxvfcjx.js} +5 -5
  181. package/dist/chunks/{location-kmzgegqq.js → credential-kmzgegqq.js} +1 -1
  182. package/dist/chunks/credential-kt3bjfbg.js +26 -0
  183. package/dist/chunks/{location-9s6wb0ev.js → credential-kyzgttvd.js} +9 -9
  184. package/dist/chunks/{location-m1714858.js → credential-m1714858.js} +1 -1
  185. package/dist/chunks/{location-g7esga4v.js → credential-m37sd98t.js} +7 -7
  186. package/dist/chunks/{location-h8rac0eh.js → credential-m8683jv8.js} +10 -10
  187. package/dist/chunks/{location-m9w0rfyh.js → credential-m9w0rfyh.js} +1 -1
  188. package/dist/chunks/{location-jznc3yn3.js → credential-mc5t9a7x.js} +12 -12
  189. package/dist/chunks/{location-7vd4enbp.js → credential-mg801ykt.js} +15 -15
  190. package/dist/chunks/{location-p894etz3.js → credential-mpewzr3m.js} +49 -49
  191. package/dist/chunks/{location-et9e0jv5.js → credential-mpsc7bv4.js} +11 -11
  192. package/dist/chunks/{location-ptcpq2hv.js → credential-mqqd3hk5.js} +6 -6
  193. package/dist/chunks/{location-xy22cvcr.js → credential-mvd85fn1.js} +71 -51
  194. package/dist/chunks/credential-mxqz9txa.js +34 -0
  195. package/dist/chunks/{location-pkyv6v7h.js → credential-myztnk54.js} +48 -15
  196. package/dist/chunks/{location-hgn7fvrd.js → credential-n3gyxhch.js} +25 -25
  197. package/dist/chunks/{location-mh30raav.js → credential-n3tfvvbp.js} +9 -7
  198. package/dist/chunks/{location-nah043kf.js → credential-nah043kf.js} +1 -1
  199. package/dist/chunks/{location-5qd3pb7m.js → credential-ncqqe42p.js} +2 -2
  200. package/dist/chunks/{location-txg5xg0c.js → credential-ndnqagje.js} +21 -21
  201. package/dist/chunks/credential-nh4v3znn.js +36 -0
  202. package/dist/chunks/{location-nm4377q9.js → credential-nm4377q9.js} +2 -2
  203. package/dist/chunks/{location-b259twyp.js → credential-nmw1n2a0.js} +21 -21
  204. package/dist/chunks/{location-axe3mf62.js → credential-np3cybhk.js} +3 -3
  205. package/dist/chunks/{location-0hpjzkz5.js → credential-nr0dnw6m.js} +20 -14
  206. package/dist/chunks/credential-ntx01z7a.js +224 -0
  207. package/dist/chunks/{location-xr94g6d3.js → credential-nycpe6mm.js} +55 -36
  208. package/dist/chunks/{location-p015t6z3.js → credential-p015t6z3.js} +2 -2
  209. package/dist/chunks/{location-1qtv120j.js → credential-p1njj0by.js} +9 -9
  210. package/dist/chunks/{location-1bmrwaa5.js → credential-p1pcd2wf.js} +13 -13
  211. package/dist/chunks/credential-p71gwv9c.js +153 -0
  212. package/dist/chunks/{location-3j92816q.js → credential-p755an0a.js} +2 -2
  213. package/dist/chunks/{location-1yq9hg58.js → credential-p7vhpwh8.js} +5 -5
  214. package/dist/chunks/{location-zkgq49d1.js → credential-pbbktnbz.js} +6 -6
  215. package/dist/chunks/{location-pknna89w.js → credential-pknna89w.js} +1 -1
  216. package/dist/chunks/{location-wedh6qfb.js → credential-pnr9fk74.js} +35 -37
  217. package/dist/chunks/{location-j2cjg2qt.js → credential-pnvhe9nj.js} +17 -17
  218. package/dist/chunks/credential-pqqhbn30.js +111 -0
  219. package/dist/chunks/{location-6pe7vn7p.js → credential-prsrv2zx.js} +15 -15
  220. package/dist/chunks/{location-m9ga4zyy.js → credential-pybyazwk.js} +9 -9
  221. package/dist/chunks/{location-2satw072.js → credential-q8djhvnf.js} +39 -39
  222. package/dist/chunks/{location-3y1df9hb.js → credential-q91aphyp.js} +6 -6
  223. package/dist/chunks/{location-m5nnd4yj.js → credential-qbfny989.js} +26 -24
  224. package/dist/chunks/{location-5qebhevh.js → credential-qc3z06b5.js} +48 -23
  225. package/dist/chunks/{location-hqgpx30z.js → credential-qgtmjkbw.js} +31 -29
  226. package/dist/chunks/credential-qmpcwza3.js +295 -0
  227. package/dist/chunks/credential-qp7r0hxv.js +120 -0
  228. package/dist/chunks/credential-qqvy8y24.js +45 -0
  229. package/dist/chunks/{location-1dqke238.js → credential-qvbj290y.js} +8 -8
  230. package/dist/chunks/{location-xzb17nsd.js → credential-qxpk38rz.js} +59 -24
  231. package/dist/chunks/{location-42hxtx4a.js → credential-qyh39dz8.js} +12 -6
  232. package/dist/chunks/{location-r0yr0wbs.js → credential-r0yr0wbs.js} +1 -1
  233. package/dist/chunks/{location-tw8zr1ps.js → credential-r542h3bh.js} +5 -2
  234. package/dist/chunks/{location-ddwaa558.js → credential-r96ere88.js} +4 -4
  235. package/dist/chunks/{location-rb9dy4dg.js → credential-rb9dy4dg.js} +1 -1
  236. package/dist/chunks/{location-2d2g0mpf.js → credential-rc1hggec.js} +33 -33
  237. package/dist/chunks/{location-scdee33y.js → credential-rchdkk7p.js} +2 -2
  238. package/dist/chunks/credential-rgzggw2r.js +33 -0
  239. package/dist/chunks/{location-80cqk4v7.js → credential-rm3qbz2f.js} +18 -14
  240. package/dist/chunks/{location-rt5dr6hb.js → credential-rt5dr6hb.js} +1 -1
  241. package/dist/chunks/{location-vqpjc3nz.js → credential-rzd5m2bc.js} +26 -20
  242. package/dist/chunks/{location-raq1s93x.js → credential-s3r7jzb8.js} +22 -22
  243. package/dist/chunks/{location-4xvmh7wp.js → credential-s7gmm2q3.js} +9 -5
  244. package/dist/chunks/{location-eggkdbge.js → credential-s9fv6dbg.js} +5 -5
  245. package/dist/chunks/credential-sa3fpqfw.js +46 -0
  246. package/dist/chunks/{location-ran0pwn3.js → credential-sar30ebp.js} +24 -24
  247. package/dist/chunks/{location-2ahfrs74.js → credential-sdb9e0vb.js} +26 -18
  248. package/dist/chunks/{location-s56jz2hb.js → credential-sh6m4nea.js} +30 -31
  249. package/dist/chunks/{location-dqc1xg2h.js → credential-sm0vs1nj.js} +51 -48
  250. package/dist/chunks/{location-sqjzf8x2.js → credential-sqjzf8x2.js} +1 -1
  251. package/dist/chunks/{location-d2887f8n.js → credential-ssfehs1z.js} +4 -4
  252. package/dist/chunks/{location-37d4mgj3.js → credential-sv6qbdb8.js} +37 -37
  253. package/dist/chunks/{location-zkg84ctx.js → credential-svcy3p9a.js} +4 -2
  254. package/dist/chunks/{location-005psrwt.js → credential-svmg43vj.js} +26 -24
  255. package/dist/chunks/{location-4fspmagn.js → credential-szazyy8v.js} +85 -70
  256. package/dist/chunks/{location-fqzd2d2r.js → credential-t3wbeppe.js} +18 -18
  257. package/dist/chunks/{location-30bn4rx3.js → credential-t42546yy.js} +21 -21
  258. package/dist/chunks/{location-q55b1wrz.js → credential-tc4qgq7j.js} +13 -16
  259. package/dist/chunks/{location-830bkp7y.js → credential-tchg2t0x.js} +26 -24
  260. package/dist/chunks/{location-tczq8hjw.js → credential-tczq8hjw.js} +1 -1
  261. package/dist/chunks/{location-k6wybhe4.js → credential-tqnhxgm9.js} +45 -47
  262. package/dist/chunks/{location-kp4ctdbn.js → credential-tt2179fk.js} +48 -30
  263. package/dist/chunks/{location-twv2r8f4.js → credential-twssxy5n.js} +2 -2
  264. package/dist/chunks/{location-ye1xrrbs.js → credential-v1fpgjhe.js} +22 -24
  265. package/dist/chunks/{location-f7ma11rg.js → credential-v1jfr34d.js} +6 -6
  266. package/dist/chunks/{location-v2r1d0zg.js → credential-v2r1d0zg.js} +1 -1
  267. package/dist/chunks/{location-7hk3fzbx.js → credential-v3n3vpwq.js} +30 -30
  268. package/dist/chunks/{location-nfdwtzhc.js → credential-v4mmdv09.js} +29 -29
  269. package/dist/chunks/credential-v55n1npn.js +444 -0
  270. package/dist/chunks/{location-9mrr08ev.js → credential-v8h33378.js} +5 -8
  271. package/dist/chunks/{location-ght5gt7k.js → credential-va3vstze.js} +88 -49
  272. package/dist/chunks/{location-nb3nrvbh.js → credential-vqew4rxv.js} +8 -8
  273. package/dist/chunks/{location-k732j073.js → credential-w1wt7qh1.js} +8 -8
  274. package/dist/chunks/{location-w3wsvvr9.js → credential-w3wsvvr9.js} +1 -1
  275. package/dist/chunks/{location-3yy2vhmn.js → credential-wa091f1c.js} +56 -49
  276. package/dist/chunks/{location-wakvkjy4.js → credential-wakvkjy4.js} +1 -1
  277. package/dist/chunks/{location-wd87259q.js → credential-wd87259q.js} +1 -1
  278. package/dist/chunks/{location-gnkrmvzs.js → credential-we7ts2z8.js} +6 -4
  279. package/dist/chunks/{location-2s6r54qs.js → credential-wmzrz68n.js} +6 -6
  280. package/dist/chunks/{location-n0p0277s.js → credential-wnhgecwx.js} +35 -4
  281. package/dist/chunks/{location-ke7vzy3f.js → credential-wp68tbf9.js} +92 -60
  282. package/dist/chunks/{location-t35vpv8z.js → credential-x8c5qhdb.js} +31 -30
  283. package/dist/chunks/{location-bstexjd6.js → credential-xd9cc171.js} +5 -5
  284. package/dist/chunks/{location-x2adk3yy.js → credential-xfg2wzq9.js} +27 -26
  285. package/dist/chunks/{location-rkdfvdar.js → credential-xj3m7ras.js} +28 -25
  286. package/dist/chunks/{location-7bgh3hsv.js → credential-xkrp785j.js} +28 -9
  287. package/dist/chunks/{location-4c6ksw65.js → credential-xpryanwe.js} +47 -47
  288. package/dist/chunks/{location-v0ajt838.js → credential-xr858cgz.js} +46 -34
  289. package/dist/chunks/{location-jneg3k74.js → credential-xt0z8zst.js} +6 -6
  290. package/dist/chunks/credential-xwyk9x3x.js +133 -0
  291. package/dist/chunks/{location-v0h1q5gr.js → credential-xxw17ph9.js} +19 -15
  292. package/dist/chunks/{location-j8pg8rcr.js → credential-xy0fx19g.js} +63 -43
  293. package/dist/chunks/{location-3043t2hd.js → credential-y8rhj72b.js} +46 -31
  294. package/dist/chunks/credential-yap2aqf7.js +537 -0
  295. package/dist/chunks/credential-yara3q77.js +132 -0
  296. package/dist/chunks/{location-yb20nhc3.js → credential-yb20nhc3.js} +1 -1
  297. package/dist/chunks/credential-ymz7p2c9.js +31 -0
  298. package/dist/chunks/{location-5nankzt7.js → credential-yv7s2sp4.js} +11 -11
  299. package/dist/chunks/{location-z38nccrw.js → credential-z38nccrw.js} +1 -1
  300. package/dist/chunks/{location-2bymr7vt.js → credential-z54nca32.js} +25 -25
  301. package/dist/chunks/{location-v6h5bgwd.js → credential-zdn46m04.js} +8 -8
  302. package/dist/chunks/credential-zdy8es89.js +257 -0
  303. package/dist/chunks/{location-9zetw7am.js → credential-zfad7fba.js} +89 -89
  304. package/dist/chunks/{location-c34bh8hr.js → credential-zgy820yb.js} +56 -51
  305. package/dist/chunks/{location-9ypen6gf.js → credential-zhyc4r0c.js} +11 -11
  306. package/dist/chunks/{location-4jbtvrw1.js → credential-zk58pg8w.js} +19 -14
  307. package/dist/chunks/{location-t6dn99ca.js → credential-zr9ea7v2.js} +35 -19
  308. package/dist/chunks/{location-9p7ryr2b.js → credential-zxfqvegw.js} +7 -7
  309. package/dist/codemode/catalog.js +1 -1
  310. package/dist/codemode/instructions.js +7 -7
  311. package/dist/codemode/tool.js +3 -3
  312. package/dist/codemode/web.js +1 -1
  313. package/dist/command.js +92 -87
  314. package/dist/config/discovery.js +91 -84
  315. package/dist/config/integration.js +14 -0
  316. package/dist/config/markdown.js +1 -1
  317. package/dist/config/normalize.js +110 -103
  318. package/dist/config/plugin/agent.js +122 -116
  319. package/dist/config/plugin/command.js +220 -212
  320. package/dist/config/plugin/compaction.js +163 -155
  321. package/dist/config/plugin/compatibility.js +143 -135
  322. package/dist/config/plugin/entry-observer.js +1 -1
  323. package/dist/config/plugin/formatter.js +123 -117
  324. package/dist/config/plugin/image.js +122 -116
  325. package/dist/config/plugin/instruction.js +122 -116
  326. package/dist/config/plugin/location-watcher.js +124 -118
  327. package/dist/config/plugin/mcp.js +129 -123
  328. package/dist/config/plugin/policy.js +124 -117
  329. package/dist/config/plugin/provider.js +125 -116
  330. package/dist/config/plugin/reference.js +124 -118
  331. package/dist/config/plugin/shell.js +124 -118
  332. package/dist/config/plugin/skill-file.js +139 -104
  333. package/dist/config/plugin/skill-scan.js +1 -1
  334. package/dist/config/plugin/skill.js +146 -138
  335. package/dist/config/plugin/snapshot.js +122 -116
  336. package/dist/config/plugin/source.js +125 -119
  337. package/dist/config/plugin/tool-output.js +123 -117
  338. package/dist/config/plugin/websearch.js +123 -117
  339. package/dist/config/plugin/worktree.js +124 -118
  340. package/dist/config/variable.js +1 -1
  341. package/dist/config/watch.js +1 -1
  342. package/dist/config.js +127 -121
  343. package/dist/console-access.js +12 -0
  344. package/dist/credential/sql.js +2 -2
  345. package/dist/credential.js +90 -85
  346. package/dist/database/database.js +77 -72
  347. package/dist/database/drizzle/effect-sqlite/driver.js +14 -14
  348. package/dist/database/drizzle/effect-sqlite/index.js +14 -14
  349. package/dist/database/drizzle/effect-sqlite/session.js +11 -11
  350. package/dist/database/drizzle/index.js +15 -15
  351. package/dist/database/drizzle/internal/drizzle-utils.js +1 -1
  352. package/dist/database/drizzle/sqlite-core/effect/count.js +1 -1
  353. package/dist/database/drizzle/sqlite-core/effect/db.js +9 -9
  354. package/dist/database/drizzle/sqlite-core/effect/delete.js +2 -2
  355. package/dist/database/drizzle/sqlite-core/effect/index.js +10 -10
  356. package/dist/database/drizzle/sqlite-core/effect/insert.js +2 -2
  357. package/dist/database/drizzle/sqlite-core/effect/query.js +1 -1
  358. package/dist/database/drizzle/sqlite-core/effect/raw.js +1 -1
  359. package/dist/database/drizzle/sqlite-core/effect/select.js +2 -2
  360. package/dist/database/drizzle/sqlite-core/effect/session.js +10 -10
  361. package/dist/database/drizzle/sqlite-core/effect/update.js +2 -2
  362. package/dist/database/drizzle.js +16 -16
  363. package/dist/database/migration/20260127222353_familiar_lady_ursula.js +1 -1
  364. package/dist/database/migration/20260211171708_add_project_commands.js +1 -1
  365. package/dist/database/migration/20260213144116_wakeful_the_professor.js +1 -1
  366. package/dist/database/migration/20260225215848_workspace.js +1 -1
  367. package/dist/database/migration/20260227213759_add_session_workspace_id.js +1 -1
  368. package/dist/database/migration/20260228203230_blue_harpoon.js +1 -1
  369. package/dist/database/migration/20260303231226_add_workspace_fields.js +1 -1
  370. package/dist/database/migration/20260309230000_move_org_to_state.js +1 -1
  371. package/dist/database/migration/20260312043431_session_message_cursor.js +1 -1
  372. package/dist/database/migration/20260323234822_events.js +1 -1
  373. package/dist/database/migration/20260410174513_workspace-name.js +1 -1
  374. package/dist/database/migration/20260413175956_chief_energizer.js +1 -1
  375. package/dist/database/migration/20260423070820_add_icon_url_override.js +1 -1
  376. package/dist/database/migration/20260427172553_slow_nightmare.js +1 -1
  377. package/dist/database/migration/20260428004200_add_session_path.js +1 -1
  378. package/dist/database/migration/20260501142318_next_venus.js +1 -1
  379. package/dist/database/migration/20260504145000_add_sync_owner.js +1 -1
  380. package/dist/database/migration/20260507164347_add_workspace_time.js +1 -1
  381. package/dist/database/migration/20260510033149_session_usage.js +1 -1
  382. package/dist/database/migration/20260511000411_data_migration_state.js +1 -1
  383. package/dist/database/migration/20260511173437_session-metadata.js +1 -1
  384. package/dist/database/migration/20260601010001_normalize_storage_paths.js +1 -1
  385. package/dist/database/migration/20260601202201_amazing_prowler.js +1 -1
  386. package/dist/database/migration/20260602002951_lowly_union_jack.js +1 -1
  387. package/dist/database/migration/20260602182828_add_project_directories.js +1 -1
  388. package/dist/database/migration/20260603001617_session_message_projection_indexes.js +1 -1
  389. package/dist/database/migration/20260603040000_session_message_projection_order.js +1 -1
  390. package/dist/database/migration/20260603141458_session_input_inbox.js +1 -1
  391. package/dist/database/migration/20260603160727_jittery_ezekiel_stane.js +1 -1
  392. package/dist/database/migration/20260604172448_event_sourced_session_input.js +1 -1
  393. package/dist/database/migration/20260605003541_add_session_context_snapshot.js +1 -1
  394. package/dist/database/migration/20260605042240_add_context_epoch_agent.js +1 -1
  395. package/dist/database/migration/20260611035744_credential.js +1 -1
  396. package/dist/database/migration/20260611192811_lush_chimera.js +1 -1
  397. package/dist/database/migration/20260612174303_project_dir_strategy.js +1 -1
  398. package/dist/database/migration/20260622142730_simplify_session_context_epoch.js +1 -1
  399. package/dist/database/migration/20260622170816_reset_v2_session_state.js +1 -1
  400. package/dist/database/migration/20260622202450_simplify_session_input.js +1 -1
  401. package/dist/database/migration/20260804233008_loose_psylocke.js +1 -1
  402. package/dist/database/migration/20260805200742_import_legacy_credentials.js +1 -1
  403. package/dist/database/migration/20260808023530_workspace_domain.js +1 -1
  404. package/dist/database/migration/20260811161259_execution_claim_attempts.js +1 -1
  405. package/dist/database/migration/20260812181746_session_inbox.js +1 -1
  406. package/dist/database/migration/20260812213948_worktree.js +1 -1
  407. package/dist/database/migration/20260819222447_session_viewed_state.js +1 -1
  408. package/dist/database/migration/20260823191254_nullable_workspace_binding.js +1 -1
  409. package/dist/database/migration/20260910120000_clear_v1_session_permission.js +1 -1
  410. package/dist/database/migration/20260923013825_project_time_active.js +1 -1
  411. package/dist/database/migration/20261007190000_azure_cli_external_credential.js +1 -1
  412. package/dist/database/migration/20261010180456_project_time_archived.js +1 -1
  413. package/dist/database/migration/20261024002554_session_allowance.js +6 -0
  414. package/dist/database/migration/20261024175301_drop_session_allowance.js +6 -0
  415. package/dist/database/migration/20261025123711_blob.js +6 -0
  416. package/dist/database/migration/20261025154125_drop_session_pending.js +6 -0
  417. package/dist/database/migration/20261026223005_schedule.js +6 -0
  418. package/dist/database/migration.gen.js +56 -51
  419. package/dist/database/migration.js +58 -53
  420. package/dist/database/path.js +2 -2
  421. package/dist/database/schema.gen.js +1 -1
  422. package/dist/database/schema.sql.js +1 -1
  423. package/dist/database/sqlite.bun.js +1 -1
  424. package/dist/database/sqlite.js +1 -1
  425. package/dist/database/sqlite.node.js +1 -1
  426. package/dist/database/sqlite.workerd.js +1 -1
  427. package/dist/database/v1-migration.bun.js +104 -97
  428. package/dist/database/v1-migration.js +1 -1
  429. package/dist/effect/app-node-builder.js +389 -372
  430. package/dist/effect/app-node-platform.js +2 -2
  431. package/dist/effect/keyed-mutex.js +1 -1
  432. package/dist/effect/websocket-constructor.js +1 -1
  433. package/dist/environment/driver.js +1 -1
  434. package/dist/environment/environment.js +102 -95
  435. package/dist/environment/exec-defaults.js +2 -2
  436. package/dist/environment/files.js +3 -1
  437. package/dist/environment/index.js +105 -96
  438. package/dist/environment/local.js +2 -2
  439. package/dist/environment/memory.js +2 -2
  440. package/dist/environment/unavailable.js +3 -3
  441. package/dist/event/sql.js +1 -1
  442. package/dist/event-logger.js +81 -76
  443. package/dist/file-access.js +149 -106
  444. package/dist/file-mutation.js +103 -96
  445. package/dist/file-retention.js +1 -1
  446. package/dist/filesystem/fff.bun.js +2 -2
  447. package/dist/filesystem/fff.js +1 -1
  448. package/dist/filesystem/fff.node.js +2 -2
  449. package/dist/filesystem/fff.workerd.js +2 -2
  450. package/dist/filesystem/file-watch.js +222 -0
  451. package/dist/filesystem/location-watcher-policy.js +4 -4
  452. package/dist/filesystem/location-watcher.js +235 -227
  453. package/dist/filesystem/protected.js +1 -1
  454. package/dist/filesystem/search.js +110 -101
  455. package/dist/filesystem/watcher-binding.js +3 -3
  456. package/dist/filesystem/watcher.js +11 -11
  457. package/dist/filesystem.js +111 -104
  458. package/dist/form.js +93 -88
  459. package/dist/formatter/builtins.js +4 -4
  460. package/dist/formatter.js +96 -89
  461. package/dist/generate.js +126 -111
  462. package/dist/git.js +13 -10
  463. package/dist/github-copilot/chat/convert-to-openai-compatible-chat-messages.js +1 -1
  464. package/dist/github-copilot/chat/get-response-metadata.js +1 -1
  465. package/dist/github-copilot/chat/map-openai-compatible-finish-reason.js +1 -1
  466. package/dist/github-copilot/chat/openai-compatible-chat-language-model.js +7 -7
  467. package/dist/github-copilot/chat/openai-compatible-chat-options.js +1 -1
  468. package/dist/github-copilot/chat/openai-compatible-prepare-tools.js +1 -1
  469. package/dist/github-copilot/copilot-provider.js +17 -17
  470. package/dist/github-copilot/models.js +108 -101
  471. package/dist/github-copilot/openai-compatible-error.js +1 -1
  472. package/dist/github-copilot/responses/convert-to-openai-responses-input.js +1 -1
  473. package/dist/github-copilot/responses/map-openai-responses-finish-reason.js +1 -1
  474. package/dist/github-copilot/responses/openai-error.js +1 -1
  475. package/dist/github-copilot/responses/openai-responses-language-model.js +10 -10
  476. package/dist/github-copilot/responses/openai-responses-prepare-tools.js +6 -6
  477. package/dist/github-copilot/responses/tool/code-interpreter.js +1 -1
  478. package/dist/github-copilot/responses/tool/file-search.js +1 -1
  479. package/dist/github-copilot/responses/tool/image-generation.js +1 -1
  480. package/dist/github-copilot/responses/tool/web-search-preview.js +1 -1
  481. package/dist/github-copilot/responses/tool/web-search.js +1 -1
  482. package/dist/image/photon-normalize.js +12 -0
  483. package/dist/image/photon-worker.js +19 -0
  484. package/dist/image/photon.js +125 -79
  485. package/dist/image.js +6 -6
  486. package/dist/instance/service.js +5 -5
  487. package/dist/instance.js +376 -361
  488. package/dist/instruction-discovery.js +89 -84
  489. package/dist/instructions/builtins.js +92 -85
  490. package/dist/instructions/index.js +5 -5
  491. package/dist/integration/connection.js +5 -5
  492. package/dist/integration.js +98 -93
  493. package/dist/job.js +85 -80
  494. package/dist/kv/sql.js +2 -2
  495. package/dist/kv.js +80 -75
  496. package/dist/location-activity.js +170 -164
  497. package/dist/location-lifecycle.js +143 -109
  498. package/dist/location-service-map.js +95 -88
  499. package/dist/location-services.js +373 -358
  500. package/dist/location.js +98 -91
  501. package/dist/managed-policy.js +3 -8
  502. package/dist/mcp/client.js +126 -95
  503. package/dist/mcp/index.js +114 -107
  504. package/dist/mcp/instructions.js +169 -140
  505. package/dist/mcp/oauth.js +85 -80
  506. package/dist/mcp/socket-client.js +1 -1
  507. package/dist/mcp/stdio.js +99 -92
  508. package/dist/mime.js +1 -1
  509. package/dist/modal/models.js +106 -99
  510. package/dist/model-resolver.js +110 -103
  511. package/dist/model-retry.js +4 -2
  512. package/dist/model.js +113 -104
  513. package/dist/models-dev/v1.js +8 -0
  514. package/dist/models-dev.js +115 -105
  515. package/dist/oauth/page.js +1 -1
  516. package/dist/permission/saved.js +89 -84
  517. package/dist/permission/sql.js +5 -5
  518. package/dist/permission.js +152 -117
  519. package/dist/persistent-pty/binary.bun.js +1 -1
  520. package/dist/persistent-pty/daemon.js +1 -1
  521. package/dist/persistent-pty/index.js +93 -88
  522. package/dist/persistent-pty/pty-binding.js +1 -1
  523. package/dist/persistent-pty.js +82 -77
  524. package/dist/plugin/agent.js +81 -76
  525. package/dist/plugin/command.js +109 -102
  526. package/dist/plugin/goal.js +16 -0
  527. package/dist/plugin/hooks.js +5 -5
  528. package/dist/plugin/host.js +228 -220
  529. package/dist/plugin/identity.js +5 -3
  530. package/dist/plugin/instance.js +1 -1
  531. package/dist/plugin/internal.js +346 -333
  532. package/dist/plugin/mcp-codemode-defaults.js +3 -3
  533. package/dist/plugin/models-dev.js +106 -98
  534. package/dist/plugin/module.js +124 -117
  535. package/dist/plugin/optimize.js +5 -3
  536. package/dist/plugin/plan.js +139 -104
  537. package/dist/plugin/promise.js +1 -1
  538. package/dist/plugin/provider/amazon-bedrock.js +100 -92
  539. package/dist/plugin/provider/azure.js +122 -116
  540. package/dist/plugin/provider/cerebras.js +1 -1
  541. package/dist/plugin/provider/chatgpt.js +122 -116
  542. package/dist/plugin/provider/cloudflare-ai-gateway.js +120 -113
  543. package/dist/plugin/provider/cloudflare-workers-ai.js +120 -113
  544. package/dist/plugin/provider/configured.js +118 -112
  545. package/dist/plugin/provider/credential-settings.js +88 -0
  546. package/dist/plugin/provider/databricks.js +1 -1
  547. package/dist/plugin/provider/digitalocean.js +102 -95
  548. package/dist/plugin/provider/dynamic.js +2 -2
  549. package/dist/plugin/provider/github-copilot.js +104 -97
  550. package/dist/plugin/provider/gitlab.js +103 -95
  551. package/dist/plugin/provider/google-vertex.js +119 -113
  552. package/dist/plugin/provider/kilo.js +1 -1
  553. package/dist/plugin/provider/llmgateway.js +85 -80
  554. package/dist/plugin/provider/lmstudio.js +131 -125
  555. package/dist/plugin/provider/local.js +128 -122
  556. package/dist/plugin/provider/modal.js +101 -94
  557. package/dist/plugin/provider/neon.js +1 -1
  558. package/dist/plugin/provider/nvidia.js +1 -1
  559. package/dist/plugin/provider/ollama.js +131 -125
  560. package/dist/plugin/provider/openai-context-caps.js +99 -92
  561. package/dist/plugin/provider/openai.js +122 -116
  562. package/dist/plugin/provider/opencode.js +125 -103
  563. package/dist/plugin/provider/openrouter.js +100 -93
  564. package/dist/plugin/provider/poe.js +86 -81
  565. package/dist/plugin/provider/prompt-cache-key.js +1 -1
  566. package/dist/plugin/provider/sap-ai-core.js +100 -93
  567. package/dist/plugin/provider/sdk-factory.js +1 -1
  568. package/dist/plugin/provider/snowflake-cortex.js +121 -115
  569. package/dist/plugin/provider/vllm.js +131 -125
  570. package/dist/plugin/provider/xai.js +100 -93
  571. package/dist/plugin/provider/zenmux.js +1 -1
  572. package/dist/plugin/provider.js +173 -171
  573. package/dist/plugin/sdk.js +81 -76
  574. package/dist/plugin/service.js +3 -3
  575. package/dist/plugin/skill.js +140 -132
  576. package/dist/plugin/source-directory.js +1 -1
  577. package/dist/plugin/supervisor.js +360 -348
  578. package/dist/plugin/tool-input-repair.js +4 -4
  579. package/dist/plugin/update.js +6 -6
  580. package/dist/plugin/vcs/git.js +93 -86
  581. package/dist/plugin/vcs/hg.js +93 -86
  582. package/dist/plugin/verbosity.js +102 -95
  583. package/dist/plugin/warming.js +120 -114
  584. package/dist/plugin/websearch/exa.js +3 -3
  585. package/dist/plugin/websearch/firecrawl.js +8 -8
  586. package/dist/plugin/websearch/index.js +9 -9
  587. package/dist/plugin/websearch/mcp.js +2 -2
  588. package/dist/plugin/websearch/parallel.js +4 -4
  589. package/dist/plugin/websearch/tavily.js +6 -6
  590. package/dist/plugin/websearch/tinyfish.js +8 -8
  591. package/dist/plugin.js +237 -227
  592. package/dist/project/icon.js +14 -0
  593. package/dist/project/schema.js +6 -6
  594. package/dist/project/sql.js +4 -4
  595. package/dist/project.js +99 -92
  596. package/dist/provider.js +112 -103
  597. package/dist/pty/protocol.js +1 -1
  598. package/dist/pty/ticket.js +1 -1
  599. package/dist/pty.js +107 -101
  600. package/dist/reference/instructions.js +97 -91
  601. package/dist/reference.js +93 -87
  602. package/dist/repository-cache.js +89 -83
  603. package/dist/repository.js +3 -3
  604. package/dist/ripgrep/binary.js +2 -2
  605. package/dist/ripgrep.js +104 -97
  606. package/dist/rpc.js +97 -88
  607. package/dist/schedule/sql.js +11 -0
  608. package/dist/schedule.js +247 -0
  609. package/dist/schema.js +1 -1
  610. package/dist/session/affinity.js +1 -1
  611. package/dist/session/background.js +8 -0
  612. package/dist/session/blob.js +158 -0
  613. package/dist/session/command.js +81 -76
  614. package/dist/session/compaction.js +163 -136
  615. package/dist/session/context.js +189 -164
  616. package/dist/session/diff.js +97 -90
  617. package/dist/session/environment.js +5 -5
  618. package/dist/session/error.js +3 -3
  619. package/dist/session/event.js +1 -1
  620. package/dist/session/execution/restart.js +254 -225
  621. package/dist/session/execution.js +153 -128
  622. package/dist/session/generate.js +191 -166
  623. package/dist/session/history.js +135 -14
  624. package/dist/session/inbox.js +147 -95
  625. package/dist/session/info.js +3 -3
  626. package/dist/session/instruction-entry.js +86 -81
  627. package/dist/session/instruction-state.js +8 -8
  628. package/dist/session/instructions.js +133 -99
  629. package/dist/session/message-updater.js +2 -2
  630. package/dist/session/message.js +1 -1
  631. package/dist/session/model-request.js +156 -122
  632. package/dist/session/model-transport.js +9 -9
  633. package/dist/session/move.js +157 -132
  634. package/dist/session/projector.js +135 -91
  635. package/dist/session/prompt.js +141 -107
  636. package/dist/session/recent-text.js +1 -1
  637. package/dist/session/revert.js +131 -96
  638. package/dist/session/run-coordinator.js +3 -3
  639. package/dist/session/runner/index.js +3 -3
  640. package/dist/session/runner/llm.js +240 -231
  641. package/dist/session/runner/max-steps.js +1 -1
  642. package/dist/session/runner/model.js +109 -102
  643. package/dist/session/runner/publish-llm-event.js +142 -116
  644. package/dist/session/runner/retry.js +5 -5
  645. package/dist/session/runner/step.js +155 -128
  646. package/dist/session/runner/to-llm-message.js +129 -14
  647. package/dist/session/schema.js +5 -5
  648. package/dist/session/session.js +171 -163
  649. package/dist/session/shell.js +136 -130
  650. package/dist/session/skill.js +140 -105
  651. package/dist/session/sql.js +10 -8
  652. package/dist/session/stats.js +82 -77
  653. package/dist/session/store.js +134 -87
  654. package/dist/session/stored.js +23 -0
  655. package/dist/session/subagent-completion.js +1 -1
  656. package/dist/session/subagent-job.js +220 -212
  657. package/dist/session/system-prompt.js +5 -5
  658. package/dist/session/title.js +193 -168
  659. package/dist/session/to-session-error.js +141 -114
  660. package/dist/session/transfer.js +231 -223
  661. package/dist/session/usage.js +1 -1
  662. package/dist/session.js +222 -214
  663. package/dist/shell/parse.js +6 -6
  664. package/dist/shell/result.js +1 -1
  665. package/dist/shell/scan.js +1 -1
  666. package/dist/shell/select.js +15 -15
  667. package/dist/shell.js +138 -132
  668. package/dist/skill/discovery.js +6 -6
  669. package/dist/skill/instructions.js +144 -109
  670. package/dist/skill.js +149 -114
  671. package/dist/snapshot.js +96 -89
  672. package/dist/state.js +3 -1
  673. package/dist/tool/html-markdown.js +1 -1
  674. package/dist/tool/http-body.js +1 -1
  675. package/dist/tool/mcp.js +166 -137
  676. package/dist/tool/plugin/edit.js +157 -122
  677. package/dist/tool/plugin/file-diff.js +1 -1
  678. package/dist/tool/plugin/glob.js +161 -126
  679. package/dist/tool/plugin/grep.js +161 -126
  680. package/dist/tool/plugin/image-generate.js +238 -0
  681. package/dist/tool/plugin/mcp-resource.js +155 -126
  682. package/dist/tool/plugin/opencode.js +154 -111
  683. package/dist/tool/plugin/patch.js +153 -118
  684. package/dist/tool/plugin/question.js +147 -113
  685. package/dist/tool/plugin/read.js +162 -127
  686. package/dist/tool/plugin/schedule.js +229 -0
  687. package/dist/tool/plugin/shell.js +225 -217
  688. package/dist/tool/plugin/skill.js +150 -115
  689. package/dist/tool/plugin/subagent.js +227 -219
  690. package/dist/tool/plugin/todo.js +146 -138
  691. package/dist/tool/plugin/webfetch.js +150 -113
  692. package/dist/tool/plugin/websearch.js +148 -116
  693. package/dist/tool/plugin/write.js +157 -122
  694. package/dist/tool/read-filesystem.js +111 -104
  695. package/dist/tool/runtime.js +1 -1
  696. package/dist/tool-output.js +7 -7
  697. package/dist/tool.js +14 -14
  698. package/dist/types/agent.d.ts +5 -0
  699. package/dist/types/aisdk.d.ts +1 -1
  700. package/dist/types/codemode/web.d.ts +23 -1
  701. package/dist/types/config/integration.d.ts +81 -0
  702. package/dist/types/config/plugin/command.d.ts +1 -1
  703. package/dist/types/config/plugin/policy.d.ts +1 -2
  704. package/dist/types/config/plugin/provider.d.ts +8 -0
  705. package/dist/types/config.d.ts +8 -1
  706. package/dist/types/console-access.d.ts +7 -0
  707. package/dist/types/credential.d.ts +2 -0
  708. package/dist/types/database/migration/20261024002554_session_allowance.d.ts +3 -0
  709. package/dist/types/database/migration/20261024175301_drop_session_allowance.d.ts +3 -0
  710. package/dist/types/database/migration/20261025123711_blob.d.ts +3 -0
  711. package/dist/types/database/migration/20261025154125_drop_session_pending.d.ts +3 -0
  712. package/dist/types/database/migration/20261026223005_schedule.d.ts +3 -0
  713. package/dist/types/effect/app-node-platform.d.ts +3 -2
  714. package/dist/types/environment/files.d.ts +2 -0
  715. package/dist/types/environment/index.d.ts +1 -1
  716. package/dist/types/file-access.d.ts +3 -3
  717. package/dist/types/filesystem/fff.d.ts +1 -0
  718. package/dist/types/filesystem/file-watch.d.ts +33 -0
  719. package/dist/types/filesystem/search.d.ts +3 -0
  720. package/dist/types/generate.d.ts +39 -7
  721. package/dist/types/git.d.ts +17 -2
  722. package/dist/types/image/photon-normalize.d.ts +28 -0
  723. package/dist/types/image/photon-worker.d.ts +12 -0
  724. package/dist/types/image/photon.d.ts +14 -4
  725. package/dist/types/instance/service.d.ts +2 -0
  726. package/dist/types/instance.d.ts +2 -2
  727. package/dist/types/job.d.ts +7 -0
  728. package/dist/types/managed-policy.d.ts +2 -20
  729. package/dist/types/mcp/client.d.ts +2 -0
  730. package/dist/types/mcp/index.d.ts +1 -1
  731. package/dist/types/mime.d.ts +1 -1
  732. package/dist/types/model-resolver.d.ts +8 -1
  733. package/dist/types/model-retry.d.ts +3 -1
  734. package/dist/types/model.d.ts +21 -4
  735. package/dist/types/models-dev/v1.d.ts +3 -0
  736. package/dist/types/models-dev.d.ts +3 -3
  737. package/dist/types/permission.d.ts +2 -0
  738. package/dist/types/plugin/goal.d.ts +8 -0
  739. package/dist/types/plugin/host.d.ts +3 -2
  740. package/dist/types/plugin/internal.d.ts +4 -4
  741. package/dist/types/plugin/module.d.ts +11 -2
  742. package/dist/types/plugin/optimize.d.ts +26 -0
  743. package/dist/types/plugin/provider/amazon-bedrock.d.ts +1 -1
  744. package/dist/types/plugin/provider/azure.d.ts +2 -2
  745. package/dist/types/plugin/provider/chatgpt.d.ts +1 -1
  746. package/dist/types/plugin/provider/cloudflare-ai-gateway.d.ts +1 -1
  747. package/dist/types/plugin/provider/cloudflare-workers-ai.d.ts +1 -1
  748. package/dist/types/plugin/provider/credential-settings.d.ts +33 -0
  749. package/dist/types/plugin/provider/github-copilot.d.ts +1 -1
  750. package/dist/types/plugin/provider/gitlab.d.ts +2 -1
  751. package/dist/types/plugin/provider/google-vertex.d.ts +1 -1
  752. package/dist/types/plugin/provider/modal.d.ts +1 -1
  753. package/dist/types/plugin/provider/openai.d.ts +1 -1
  754. package/dist/types/plugin/provider/opencode.d.ts +2 -3
  755. package/dist/types/plugin/provider/snowflake-cortex.d.ts +1 -1
  756. package/dist/types/plugin/service.d.ts +12 -0
  757. package/dist/types/plugin.d.ts +1 -1
  758. package/dist/types/project/icon.d.ts +26 -0
  759. package/dist/types/project.d.ts +3 -2
  760. package/dist/types/provider.d.ts +33 -3
  761. package/dist/types/ripgrep/binary.d.ts +1 -0
  762. package/dist/types/rpc.d.ts +2 -0
  763. package/dist/types/schedule/sql.d.ts +298 -0
  764. package/dist/types/schedule.d.ts +193 -0
  765. package/dist/types/session/background.d.ts +40 -0
  766. package/dist/types/session/blob.d.ts +2687 -0
  767. package/dist/types/session/compaction.d.ts +13 -10
  768. package/dist/types/session/generate.d.ts +2 -2
  769. package/dist/types/session/history.d.ts +2078 -23
  770. package/dist/types/session/inbox.d.ts +73 -114
  771. package/dist/types/session/instruction-entry.d.ts +1 -1
  772. package/dist/types/session/model-request.d.ts +3 -3
  773. package/dist/types/session/prompt.d.ts +6 -2
  774. package/dist/types/session/recent-text.d.ts +2 -1
  775. package/dist/types/session/runner/index.d.ts +17 -1
  776. package/dist/types/session/runner/model.d.ts +1 -1
  777. package/dist/types/session/runner/publish-llm-event.d.ts +4 -2
  778. package/dist/types/session/runner/retry.d.ts +1 -1
  779. package/dist/types/session/runner/step.d.ts +2 -2
  780. package/dist/types/session/runner/to-llm-message.d.ts +1 -1
  781. package/dist/types/session/schema.d.ts +4 -0
  782. package/dist/types/session/sql.d.ts +196 -122
  783. package/dist/types/session/store.d.ts +7 -0
  784. package/dist/types/session/stored.d.ts +462 -0
  785. package/dist/types/session/title.d.ts +1 -1
  786. package/dist/types/session/to-session-error.d.ts +1 -1
  787. package/dist/types/session/transfer.d.ts +4 -0
  788. package/dist/types/session/usage.d.ts +1 -1
  789. package/dist/types/session.d.ts +9 -0
  790. package/dist/types/state.d.ts +6 -0
  791. package/dist/types/tool/plugin/edit.d.ts +2 -1
  792. package/dist/types/tool/plugin/glob.d.ts +1 -1
  793. package/dist/types/tool/plugin/grep.d.ts +1 -1
  794. package/dist/types/tool/plugin/image-generate.d.ts +35 -0
  795. package/dist/types/tool/plugin/opencode.d.ts +1 -0
  796. package/dist/types/tool/plugin/patch.d.ts +2 -1
  797. package/dist/types/tool/plugin/schedule.d.ts +46 -0
  798. package/dist/types/tool/plugin/shell.d.ts +1 -1
  799. package/dist/types/tool/plugin/subagent.d.ts +1 -1
  800. package/dist/types/tool/plugin/webfetch.d.ts +1 -0
  801. package/dist/types/tool/plugin/write.d.ts +1 -1
  802. package/dist/types/tool/runtime.d.ts +1 -1
  803. package/dist/types/tool.d.ts +1 -1
  804. package/dist/types/usage-limits.d.ts +103 -0
  805. package/dist/types/util/git-executable.d.ts +6 -2
  806. package/dist/types/v1/config/mcp.d.ts +4 -0
  807. package/dist/types/v1/config/migrate.d.ts +2 -0
  808. package/dist/types/vcs.d.ts +3 -2
  809. package/dist/types/voice.d.ts +3 -31
  810. package/dist/types/wellknown/plugin.d.ts +1 -1
  811. package/dist/usage-limits.js +101 -0
  812. package/dist/util/error-summary.js +1 -1
  813. package/dist/util/git-executable.js +5 -2
  814. package/dist/util/lazy.js +1 -1
  815. package/dist/util/slug.js +1 -1
  816. package/dist/util/token.js +1 -1
  817. package/dist/util/which.js +1 -1
  818. package/dist/util/wildcard.js +1 -1
  819. package/dist/v1/config/agent.js +5 -5
  820. package/dist/v1/config/command.js +5 -5
  821. package/dist/v1/config/mcp.js +6 -6
  822. package/dist/v1/config/migrate.js +101 -94
  823. package/dist/v1/config/permission.js +5 -5
  824. package/dist/v1/config/plugin.js +3 -3
  825. package/dist/v1/config/provider-options.js +1 -1
  826. package/dist/v1/config/provider.js +4 -4
  827. package/dist/variant.js +100 -93
  828. package/dist/vcs/patch.js +1 -1
  829. package/dist/vcs.js +100 -91
  830. package/dist/voice.js +95 -90
  831. package/dist/websearch.js +91 -86
  832. package/dist/wellknown/plugin.js +83 -78
  833. package/dist/wellknown.js +86 -81
  834. package/dist/workspace/driver.js +5 -5
  835. package/dist/workspace/sql.js +1 -1
  836. package/dist/workspace.js +87 -82
  837. package/dist/worktree/directory.js +2 -2
  838. package/dist/worktree/git.js +11 -10
  839. package/dist/worktree/sql.js +5 -5
  840. package/dist/worktree/strategies.js +98 -91
  841. package/dist/worktree.js +109 -102
  842. package/package.json +13 -15
  843. package/dist/chunks/location-00ve6mdn.js +0 -18
  844. package/dist/chunks/location-584rjm98.js +0 -32
  845. package/dist/chunks/location-8230236v.js +0 -257
  846. package/dist/chunks/location-akfw3dm8.js +0 -321
  847. package/dist/chunks/location-ef5x83kb.js +0 -15
  848. package/dist/chunks/location-gb9gmc0j.js +0 -39
  849. package/dist/chunks/location-hzsp1kxy.js +0 -107
  850. package/dist/chunks/location-jbt1xm3n.js +0 -523
  851. package/dist/chunks/location-mx81xwtn.js +0 -82
  852. package/dist/chunks/location-veqvce7d.js +0 -15
  853. package/dist/chunks/location-ym463w8f.js +0 -17
  854. package/dist/chunks/location-ytvhabzn.js +0 -53
  855. package/dist/chunks/location-z0bkrqjs.js +0 -15
  856. package/dist/chunks/location-z1f2n5q4.js +0 -621
  857. package/dist/chunks/location-zfwjf24c.js +0 -219
  858. package/dist/plugin/provider/cohere.js +0 -7
  859. package/dist/plugin/provider/factory.js +0 -6
  860. package/dist/plugin/provider/perplexity.js +0 -7
  861. package/dist/plugin/provider/vercel.js +0 -97
  862. package/dist/types/plugin/provider/cohere.d.ts +0 -1
  863. package/dist/types/plugin/provider/factory.d.ts +0 -6
  864. package/dist/types/plugin/provider/perplexity.d.ts +0 -1
  865. package/dist/types/plugin/provider/vercel.d.ts +0 -1
  866. /package/dist/chunks/{location-0qkdqm5v.js → credential-0qkdqm5v.js} +0 -0
  867. /package/dist/chunks/{location-0zkw76rk.js → credential-0zkw76rk.js} +0 -0
  868. /package/dist/chunks/{location-17cy0kzp.js → credential-17cy0kzp.js} +0 -0
  869. /package/dist/chunks/{location-1cnp2v09.js → credential-1cnp2v09.js} +0 -0
  870. /package/dist/chunks/{location-24dcb14g.js → credential-24dcb14g.js} +0 -0
  871. /package/dist/chunks/{location-2710q6r3.js → credential-2710q6r3.js} +0 -0
  872. /package/dist/chunks/{location-2bv980vf.js → credential-2bv980vf.js} +0 -0
  873. /package/dist/chunks/{location-2c3vjs8z.js → credential-2c3vjs8z.js} +0 -0
  874. /package/dist/chunks/{location-359p4xyc.js → credential-359p4xyc.js} +0 -0
  875. /package/dist/chunks/{location-3asan66x.js → credential-3asan66x.js} +0 -0
  876. /package/dist/chunks/{location-3v8g72cx.js → credential-3v8g72cx.js} +0 -0
  877. /package/dist/chunks/{location-3wcehsnq.js → credential-3wcehsnq.js} +0 -0
  878. /package/dist/chunks/{location-43n2bw4t.js → credential-43n2bw4t.js} +0 -0
  879. /package/dist/chunks/{location-4knz6hnm.js → credential-4knz6hnm.js} +0 -0
  880. /package/dist/chunks/{location-4vcrnpx2.js → credential-4vcrnpx2.js} +0 -0
  881. /package/dist/chunks/{location-4y7fprxs.js → credential-4y7fprxs.js} +0 -0
  882. /package/dist/chunks/{location-53557ph1.js → credential-53557ph1.js} +0 -0
  883. /package/dist/chunks/{location-550bvhaj.js → credential-550bvhaj.js} +0 -0
  884. /package/dist/chunks/{location-6prwharc.js → credential-6prwharc.js} +0 -0
  885. /package/dist/chunks/{location-6q2bdcd1.js → credential-6q2bdcd1.js} +0 -0
  886. /package/dist/chunks/{location-7akdwqpd.js → credential-7akdwqpd.js} +0 -0
  887. /package/dist/chunks/{location-7m9af43g.js → credential-7m9af43g.js} +0 -0
  888. /package/dist/chunks/{location-822emrt2.js → credential-822emrt2.js} +0 -0
  889. /package/dist/chunks/{location-84wd9syh.js → credential-84wd9syh.js} +0 -0
  890. /package/dist/chunks/{location-88xbtdfr.js → credential-88xbtdfr.js} +0 -0
  891. /package/dist/chunks/{location-8n3pysct.js → credential-8n3pysct.js} +0 -0
  892. /package/dist/chunks/{location-8wj87zfr.js → credential-8wj87zfr.js} +0 -0
  893. /package/dist/chunks/{location-9a4afbnw.js → credential-9a4afbnw.js} +0 -0
  894. /package/dist/chunks/{location-9rqn6x4v.js → credential-9rqn6x4v.js} +0 -0
  895. /package/dist/chunks/{location-a058387c.js → credential-a058387c.js} +0 -0
  896. /package/dist/chunks/{location-a6k6eb26.js → credential-a6k6eb26.js} +0 -0
  897. /package/dist/chunks/{location-af5trqkr.js → credential-af5trqkr.js} +0 -0
  898. /package/dist/chunks/{location-afrmfg78.js → credential-afrmfg78.js} +0 -0
  899. /package/dist/chunks/{location-aqzs7mqg.js → credential-aqzs7mqg.js} +0 -0
  900. /package/dist/chunks/{location-atq7p7m5.js → credential-atq7p7m5.js} +0 -0
  901. /package/dist/chunks/{location-bkyjaxrp.js → credential-bkyjaxrp.js} +0 -0
  902. /package/dist/chunks/{location-bmr6ed5q.js → credential-bmr6ed5q.js} +0 -0
  903. /package/dist/chunks/{location-cf4snx6d.js → credential-cf4snx6d.js} +0 -0
  904. /package/dist/chunks/{location-cvy3z8tj.js → credential-cvy3z8tj.js} +0 -0
  905. /package/dist/chunks/{location-d9fn303g.js → credential-d9fn303g.js} +0 -0
  906. /package/dist/chunks/{location-d9jj8t3e.js → credential-d9jj8t3e.js} +0 -0
  907. /package/dist/chunks/{location-dajrwvna.js → credential-dajrwvna.js} +0 -0
  908. /package/dist/chunks/{location-dap0rakb.js → credential-dap0rakb.js} +0 -0
  909. /package/dist/chunks/{location-df08tz66.js → credential-df08tz66.js} +0 -0
  910. /package/dist/chunks/{location-dy18nga0.js → credential-dy18nga0.js} +0 -0
  911. /package/dist/chunks/{location-e5kj55wp.js → credential-e5kj55wp.js} +0 -0
  912. /package/dist/chunks/{location-e73j6tqm.js → credential-e73j6tqm.js} +0 -0
  913. /package/dist/chunks/{location-ec1grn59.js → credential-ec1grn59.js} +0 -0
  914. /package/dist/chunks/{location-eh3zwz77.js → credential-eh3zwz77.js} +0 -0
  915. /package/dist/chunks/{location-emrn6kk6.js → credential-emrn6kk6.js} +0 -0
  916. /package/dist/chunks/{location-f0mxakyp.js → credential-f0mxakyp.js} +0 -0
  917. /package/dist/chunks/{location-f6n9ztr4.js → credential-f6n9ztr4.js} +0 -0
  918. /package/dist/chunks/{location-faypxj3z.js → credential-faypxj3z.js} +0 -0
  919. /package/dist/chunks/{location-fd410y7t.js → credential-fd410y7t.js} +0 -0
  920. /package/dist/chunks/{location-g4wezp1m.js → credential-g4wezp1m.js} +0 -0
  921. /package/dist/chunks/{location-g86h250q.js → credential-g86h250q.js} +0 -0
  922. /package/dist/chunks/{location-gebd4c9n.js → credential-gebd4c9n.js} +0 -0
  923. /package/dist/chunks/{location-gftt206x.js → credential-gftt206x.js} +0 -0
  924. /package/dist/chunks/{location-hcxmzztb.js → credential-hcxmzztb.js} +0 -0
  925. /package/dist/chunks/{location-hk9envan.js → credential-hk9envan.js} +0 -0
  926. /package/dist/chunks/{location-j2ntwpah.js → credential-j2ntwpah.js} +0 -0
  927. /package/dist/chunks/{location-j5zkgpj8.js → credential-j5zkgpj8.js} +0 -0
  928. /package/dist/chunks/{location-jjkms2e6.js → credential-jjkms2e6.js} +0 -0
  929. /package/dist/chunks/{location-jr7sbwjy.js → credential-jr7sbwjy.js} +0 -0
  930. /package/dist/chunks/{location-jwfs4k6c.js → credential-jwfs4k6c.js} +0 -0
  931. /package/dist/chunks/{location-jze0r7bz.js → credential-jze0r7bz.js} +0 -0
  932. /package/dist/chunks/{location-jzg6c2d5.js → credential-jzg6c2d5.js} +0 -0
  933. /package/dist/chunks/{location-m18g726c.js → credential-m18g726c.js} +0 -0
  934. /package/dist/chunks/{location-mp448xyj.js → credential-mp448xyj.js} +0 -0
  935. /package/dist/chunks/{location-msx8hqn2.js → credential-msx8hqn2.js} +0 -0
  936. /package/dist/chunks/{location-n05xt0ee.js → credential-n05xt0ee.js} +0 -0
  937. /package/dist/chunks/{location-n3j8tn72.js → credential-n3j8tn72.js} +0 -0
  938. /package/dist/chunks/{location-njntx4h6.js → credential-njntx4h6.js} +0 -0
  939. /package/dist/chunks/{location-q3sfg36h.js → credential-q3sfg36h.js} +0 -0
  940. /package/dist/chunks/{location-q74kybfr.js → credential-q74kybfr.js} +0 -0
  941. /package/dist/chunks/{location-qaymkmh1.js → credential-qaymkmh1.js} +0 -0
  942. /package/dist/chunks/{location-qb87gjwd.js → credential-qb87gjwd.js} +0 -0
  943. /package/dist/chunks/{location-qfa1cgps.js → credential-qfa1cgps.js} +0 -0
  944. /package/dist/chunks/{location-qg3g05ea.js → credential-qg3g05ea.js} +0 -0
  945. /package/dist/chunks/{location-qrg20bc0.js → credential-qrg20bc0.js} +0 -0
  946. /package/dist/chunks/{location-rcb2kzg1.js → credential-rcb2kzg1.js} +0 -0
  947. /package/dist/chunks/{location-sdp7kfr6.js → credential-sdp7kfr6.js} +0 -0
  948. /package/dist/chunks/{location-ssg3fenm.js → credential-ssg3fenm.js} +0 -0
  949. /package/dist/chunks/{location-ve7vex1e.js → credential-ve7vex1e.js} +0 -0
  950. /package/dist/chunks/{location-w803qqfp.js → credential-w803qqfp.js} +0 -0
  951. /package/dist/chunks/{location-wc3fc9cn.js → credential-wc3fc9cn.js} +0 -0
  952. /package/dist/chunks/{location-wer8tq1h.js → credential-wer8tq1h.js} +0 -0
  953. /package/dist/chunks/{location-wtztk69x.js → credential-wtztk69x.js} +0 -0
  954. /package/dist/chunks/{location-x0ckcb58.js → credential-x0ckcb58.js} +0 -0
  955. /package/dist/chunks/{location-x61499pn.js → credential-x61499pn.js} +0 -0
  956. /package/dist/chunks/{location-y44na4kk.js → credential-y44na4kk.js} +0 -0
  957. /package/dist/chunks/{location-y8f7s663.js → credential-y8f7s663.js} +0 -0
  958. /package/dist/chunks/{location-ygaqb7jw.js → credential-ygaqb7jw.js} +0 -0
  959. /package/dist/chunks/{location-z5v4ffb3.js → credential-z5v4ffb3.js} +0 -0
  960. /package/dist/chunks/{location-z9919s4g.js → credential-z9919s4g.js} +0 -0
@@ -1,17 +1,17 @@
1
1
  import {
2
2
  BlockedError2
3
- } from "./location-tseqrb92.js";
3
+ } from "./credential-010tfxz5.js";
4
4
  import {
5
5
  __export
6
- } from "./location-9rqn6x4v.js";
6
+ } from "./credential-9rqn6x4v.js";
7
7
 
8
8
  // src/plugin/plan.ts
9
9
  var exports_plan = {};
10
10
  __export(exports_plan, {
11
11
  PlanPlugin: () => exports_plan,
12
- Plugin: () => Plugin15
12
+ Plugin: () => Plugin13
13
13
  });
14
- import { Message, ToolFailure } from "@opencode/ai";
14
+ import { Message, ToolFailure } from "@opencode/ai/effect";
15
15
  import { define } from "@opencode/plugin/effect/plugin";
16
16
  import { Agent } from "@opencode/schema/agent";
17
17
  import { Global } from "@opencode/util/global";
@@ -29,7 +29,7 @@ You remain in Plan mode until the user switches agents. If the user asks you to
29
29
  var leave = `<system-reminder>
30
30
  You are NO LONGER in Plan mode. The previous Plan restrictions no longer apply. Any Plan mode instructions from earlier in this conversation are no longer active.
31
31
  </system-reminder>`;
32
- var Plugin15 = define({
32
+ var Plugin13 = define({
33
33
  id: "opencode.plan",
34
34
  effect: Effect.fn(function* (ctx) {
35
35
  const global = yield* Global.Service;
@@ -70,7 +70,7 @@ var Plugin15 = define({
70
70
  event.messages.splice(at, 0, Message.user(text));
71
71
  return ctx.session.synthetic({ sessionID: event.sessionID, text, resume: false }).pipe(Effect.catchCause((cause) => Effect.logWarning("failed to persist Plan mode reminder", { sessionID: event.sessionID, cause })));
72
72
  });
73
- yield* ctx.event.subscribe().pipe(Stream.filter((event) => event.type === "session.created" || event.type === "session.agent.selected"), Stream.runForEach((event) => {
73
+ yield* ctx.event.subscribe({ types: ["session.created", "session.agent.selected"] }).pipe(Stream.runForEach((event) => {
74
74
  const text = switchReminder(event, enterReminder);
75
75
  if (!text)
76
76
  return Effect.void;
@@ -105,4 +105,4 @@ function lastReminder(messages, enterReminder) {
105
105
  }, undefined);
106
106
  }
107
107
 
108
- export { Plugin15, exports_plan };
108
+ export { Plugin13, exports_plan };
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  __export
3
- } from "./location-9rqn6x4v.js";
3
+ } from "./credential-9rqn6x4v.js";
4
4
 
5
5
  // src/config/plugin/entry-observer.ts
6
6
  var exports_entry_observer = {};
@@ -12,7 +12,7 @@ import { Effect, Stream } from "effect";
12
12
  var observe2 = Effect.fnUntraced(function* (config, event, reload) {
13
13
  const loaded = { entries: yield* config.entries() };
14
14
  const refresh = config.entries().pipe(Effect.tap((entries) => Effect.sync(() => loaded.entries = entries)), Effect.andThen(reload));
15
- yield* event.subscribe().pipe(Stream.filter((event) => event.type === "config.updated"), Stream.runForEach(() => refresh), Effect.forkScoped({ startImmediately: true }));
15
+ yield* event.subscribe({ types: ["config.updated"] }).pipe(Stream.runForEach(() => refresh), Effect.forkScoped({ startImmediately: true }));
16
16
  loaded.entries = yield* config.entries();
17
17
  return loaded;
18
18
  });
@@ -1,12 +1,12 @@
1
1
  import {
2
2
  which2
3
- } from "./location-qaymkmh1.js";
3
+ } from "./credential-qaymkmh1.js";
4
4
 
5
5
  // src/formatter/builtins.ts
6
6
  import { Effect } from "effect";
7
7
  import { ChildProcess } from "effect/process";
8
- import { isRecord } from "@opencode/ai/utils/record";
9
- function make10(input) {
8
+ import { isRecord } from "@opencode/util/record";
9
+ function make8(input) {
10
10
  const disabled = false;
11
11
  const findExecutable = (name) => which2(name, undefined, input.bin);
12
12
  const findUp = (target) => input.fs.findUp(target, input.directory, input.worktree);
@@ -259,4 +259,4 @@ function hasRecordKey(input, field, key) {
259
259
  return isRecord(input[field]) && key in input[field];
260
260
  }
261
261
 
262
- export { make10 };
262
+ export { make8 };
@@ -1,47 +1,48 @@
1
1
  import {
2
2
  isTextual2
3
- } from "./location-2z1j29yd.js";
3
+ } from "./credential-4pyp9zr9.js";
4
4
  import {
5
- Service72
6
- } from "./location-tseqrb92.js";
5
+ Service60
6
+ } from "./credential-010tfxz5.js";
7
7
  import {
8
8
  MAX_MARKDOWN_BYTES2,
9
9
  convertHTMLToMarkdown2
10
- } from "./location-4vcrnpx2.js";
10
+ } from "./credential-4vcrnpx2.js";
11
11
  import {
12
12
  collectBoundedResponseBody2
13
- } from "./location-3v8g72cx.js";
13
+ } from "./credential-3v8g72cx.js";
14
14
  import {
15
15
  __export
16
- } from "./location-9rqn6x4v.js";
16
+ } from "./credential-9rqn6x4v.js";
17
17
 
18
18
  // src/tool/plugin/webfetch.ts
19
19
  var exports_webfetch = {};
20
20
  __export(exports_webfetch, {
21
21
  DEFAULT_TIMEOUT_SECONDS: () => DEFAULT_TIMEOUT_SECONDS2,
22
- Input: () => Input8,
22
+ Input: () => Input4,
23
+ MAX_REDIRECTS: () => MAX_REDIRECTS2,
23
24
  MAX_RESPONSE_BYTES: () => MAX_RESPONSE_BYTES3,
24
25
  MAX_TIMEOUT_SECONDS: () => MAX_TIMEOUT_SECONDS2,
25
- Plugin: () => Plugin44,
26
+ Plugin: () => Plugin21,
26
27
  WebFetchTool: () => exports_webfetch,
27
28
  convertHTMLToMarkdown: () => convertHTMLToMarkdown2,
28
- description: () => description4,
29
+ description: () => description3,
29
30
  extractTextFromHTML: () => extractTextFromHTML2,
30
- name: () => name8
31
+ name: () => name4
31
32
  });
32
- import { ToolFailure } from "@opencode/ai";
33
+ import { ToolFailure } from "@opencode/ai/effect";
33
34
  import { Duration, Effect, Schema } from "effect";
34
- import { HttpClient, HttpClientRequest, HttpClientResponse } from "effect/http";
35
+ import { FetchHttpClient, HttpClient, HttpClientError, HttpClientRequest, HttpClientResponse } from "effect/http";
35
36
  import { Parser } from "htmlparser2";
36
- var name8 = "webfetch";
37
+ var name4 = "webfetch";
37
38
  var MAX_RESPONSE_BYTES3 = MAX_MARKDOWN_BYTES2;
38
39
  var DEFAULT_TIMEOUT_SECONDS2 = 30;
39
40
  var MAX_TIMEOUT_SECONDS2 = 120;
40
- var description4 = `Fetch content from an HTTP or HTTPS URL and return it as text, markdown, or HTML. Markdown is the default.
41
+ var description3 = `Fetch content from an HTTP or HTTPS URL and return it as text, markdown, or HTML. Markdown is the default.
41
42
 
42
43
  Use a more targeted tool when one is available. This tool is read-only. Large text results may be replaced with a preview while the complete output is retained in managed storage.`;
43
44
  var Timeout = Schema.Finite.check(Schema.isGreaterThan(0), Schema.isLessThanOrEqualTo(MAX_TIMEOUT_SECONDS2));
44
- var Input8 = Schema.Struct({
45
+ var Input4 = Schema.Struct({
45
46
  url: Schema.String.annotate({ description: "The HTTP or HTTPS URL to fetch content from" }),
46
47
  format: Schema.Literals(["text", "markdown", "html"]).annotate({ description: "The format to return the content in. Defaults to markdown." }).pipe(Schema.withDecodingDefaultKey(Effect.succeed("markdown"))),
47
48
  timeout: Schema.optionalKey(Timeout).annotate({
@@ -51,7 +52,7 @@ var Input8 = Schema.Struct({
51
52
  var Output = Schema.Struct({
52
53
  url: Schema.String,
53
54
  contentType: Schema.String,
54
- format: Input8.fields.format,
55
+ format: Input4.fields.format,
55
56
  output: Schema.String
56
57
  });
57
58
  var acceptHeader = (format) => {
@@ -71,7 +72,7 @@ var headers = (format, userAgent) => ({
71
72
  });
72
73
  var openCodeUserAgent = "Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko); compatible; OpenCode-User/1.0; +https://opencode.ai";
73
74
  var isCloudflareChallenge = (error) => {
74
- if (error.reason._tag !== "StatusCodeError")
75
+ if (!HttpClientError.isHttpClientError(error) || error.reason._tag !== "StatusCodeError")
75
76
  return false;
76
77
  const response = error.reason.response;
77
78
  return response.status === 403 && response.headers["cf-mitigated"] === "challenge";
@@ -81,7 +82,27 @@ var assertHttpUrl = (url) => {
81
82
  if (url.protocol !== "http:" && url.protocol !== "https:")
82
83
  throw new Error("URL must use http:// or https://");
83
84
  };
84
- var execute = (http, url, format, userAgent = openCodeUserAgent) => http.execute(request(url, format, userAgent)).pipe(Effect.flatMap(HttpClientResponse.filterStatusOk));
85
+ var MAX_REDIRECTS2 = 10;
86
+ var redirectStatuses = new Set([301, 302, 303, 307, 308]);
87
+ var execute = (http, check, url, format, userAgent = openCodeUserAgent, redirects = 0) => http.execute(request(url, format, userAgent)).pipe(Effect.provideService(FetchHttpClient.RequestInit, { redirect: "manual" }), Effect.flatMap((response) => {
88
+ const location = response.headers.location;
89
+ if (!redirectStatuses.has(response.status) || !location)
90
+ return HttpClientResponse.filterStatusOk(response);
91
+ if (redirects >= MAX_REDIRECTS2)
92
+ return Effect.fail(new Error(`Too many redirects (more than ${MAX_REDIRECTS2})`));
93
+ return Effect.gen(function* () {
94
+ const next = yield* Effect.try({
95
+ try: () => {
96
+ const target = new URL(location, url);
97
+ assertHttpUrl(target);
98
+ return target.href;
99
+ },
100
+ catch: (error) => error instanceof Error ? error : new Error(String(error))
101
+ });
102
+ yield* check(next);
103
+ return yield* execute(http, check, next, format, userAgent, redirects + 1);
104
+ });
105
+ }));
85
106
  var collectBody = (response) => collectBoundedResponseBody2(response, MAX_RESPONSE_BYTES3, () => new Error(`Response too large (exceeds ${MAX_RESPONSE_BYTES3} byte limit)`));
86
107
  var mimeFrom = (contentType) => contentType.split(";", 1)[0]?.trim().toLowerCase() ?? "";
87
108
  var isImageAttachment = (mime) => mime.startsWith("image/") && mime !== "image/svg+xml" && mime !== "image/vnd.fastbidsheet";
@@ -94,16 +115,16 @@ var convert = (content, contentType, format) => {
94
115
  return extractTextFromHTML2(content);
95
116
  return content;
96
117
  };
97
- var Plugin44 = {
118
+ var Plugin21 = {
98
119
  id: "opencode.tool.webfetch",
99
120
  effect: Effect.fn("WebFetchTool.Plugin")(function* (ctx) {
100
121
  const http = yield* HttpClient.HttpClient;
101
- const permission = yield* Service72;
122
+ const permission = yield* Service60;
102
123
  yield* ctx.tool.transform((editor) => editor.add({
103
- name: name8,
124
+ name: name4,
104
125
  options: { codemode: false },
105
- description: description4,
106
- input: Input8,
126
+ description: description3,
127
+ input: Input4,
107
128
  output: Output,
108
129
  execute: (input, context) => Effect.gen(function* () {
109
130
  yield* Effect.try({
@@ -111,7 +132,7 @@ var Plugin44 = {
111
132
  catch: (error) => error
112
133
  });
113
134
  yield* permission.assert({
114
- action: name8,
135
+ action: name4,
115
136
  resources: [input.url],
116
137
  save: ["*"],
117
138
  metadata: input,
@@ -120,7 +141,15 @@ var Plugin44 = {
120
141
  source: { type: "tool", messageID: context.messageID, id: context.id }
121
142
  });
122
143
  const { body, contentType } = yield* Effect.gen(function* () {
123
- const response = yield* execute(http, input.url, input.format).pipe(Effect.catchIf(isCloudflareChallenge, () => execute(http, input.url, input.format, "opencode")));
144
+ const check = (url) => permission.assertNotDenied({
145
+ action: name4,
146
+ resources: [url],
147
+ metadata: { ...input, url },
148
+ sessionID: context.sessionID,
149
+ agent: context.agent,
150
+ source: { type: "tool", messageID: context.messageID, id: context.id }
151
+ });
152
+ const response = yield* execute(http, check, input.url, input.format).pipe(Effect.catchIf(isCloudflareChallenge, () => execute(http, check, input.url, input.format, "opencode")));
124
153
  const contentType = response.headers["content-type"] || "";
125
154
  const mime = mimeFrom(contentType);
126
155
  if (isImageAttachment(mime))
@@ -169,4 +198,4 @@ function extractTextFromHTML2(html) {
169
198
  parser.end();
170
199
  return text.trim();
171
200
  }
172
- export { name8, MAX_RESPONSE_BYTES3, DEFAULT_TIMEOUT_SECONDS2, MAX_TIMEOUT_SECONDS2, description4, Input8, Plugin44, extractTextFromHTML2, exports_webfetch };
201
+ export { name4, MAX_RESPONSE_BYTES3, DEFAULT_TIMEOUT_SECONDS2, MAX_TIMEOUT_SECONDS2, description3, Input4, MAX_REDIRECTS2, Plugin21, extractTextFromHTML2, exports_webfetch };
@@ -2,27 +2,27 @@ import {
2
2
  NonNegativeInt2,
3
3
  PositiveInt2,
4
4
  RelativePath2
5
- } from "./location-z5v4ffb3.js";
5
+ } from "./credential-z5v4ffb3.js";
6
6
  import {
7
- Service60,
8
- node62
9
- } from "./location-r20swzxr.js";
7
+ Service56,
8
+ node59
9
+ } from "./credential-b5pzs38m.js";
10
10
  import {
11
11
  Content2
12
- } from "./location-7hk3fzbx.js";
12
+ } from "./credential-v3n3vpwq.js";
13
13
  import {
14
14
  detect2
15
- } from "./location-2z1j29yd.js";
15
+ } from "./credential-4pyp9zr9.js";
16
16
  import {
17
17
  __export
18
- } from "./location-9rqn6x4v.js";
18
+ } from "./credential-9rqn6x4v.js";
19
19
 
20
20
  // src/tool/read-filesystem.ts
21
21
  var exports_read_filesystem = {};
22
22
  __export(exports_read_filesystem, {
23
23
  BinaryFileError: () => BinaryFileError2,
24
24
  FileContent: () => FileContent2,
25
- ListEntry: () => ListEntry3,
25
+ ListEntry: () => ListEntry2,
26
26
  ListPage: () => ListPage2,
27
27
  MAX_MEDIA_INGEST_BYTES: () => MAX_MEDIA_INGEST_BYTES2,
28
28
  MAX_READ_BYTES: () => MAX_READ_BYTES2,
@@ -33,9 +33,9 @@ __export(exports_read_filesystem, {
33
33
  PageInput: () => PageInput2,
34
34
  PathKindError: () => PathKindError2,
35
35
  ReadToolFileSystem: () => exports_read_filesystem,
36
- Service: () => Service38,
36
+ Service: () => Service32,
37
37
  TextPage: () => TextPage2,
38
- node: () => node41,
38
+ node: () => node35,
39
39
  read: () => read2
40
40
  });
41
41
  import path from "path";
@@ -101,20 +101,20 @@ class TextPage2 extends Schema.Class("ReadTool.TextPage")({
101
101
  next: Schema.optionalKey(PositiveInt2)
102
102
  }) {
103
103
  }
104
- var ListEntry3 = Schema.Struct({
104
+ var ListEntry2 = Schema.Struct({
105
105
  path: RelativePath2,
106
106
  type: Schema.Literals(["file", "directory", "symlink"])
107
107
  }).annotate({ identifier: "ReadTool.ListEntry" });
108
108
 
109
109
  class ListPage2 extends Schema.Class("ReadTool.ListPage")({
110
110
  type: Schema.Literal("list-page"),
111
- entries: Schema.Array(ListEntry3),
111
+ entries: Schema.Array(ListEntry2),
112
112
  truncated: Schema.Boolean,
113
113
  next: Schema.optionalKey(PositiveInt2)
114
114
  }) {
115
115
  }
116
116
 
117
- class Service38 extends Context.Service()("@opencode/ReadToolFileSystem") {
117
+ class Service32 extends Context.Service()("@opencode/ReadToolFileSystem") {
118
118
  }
119
119
  var mimeType = (value) => lookup(value) || "application/octet-stream";
120
120
  var read2 = Effect.fn("ReadTool.read")(function* (files, input, resource, page = {}) {
@@ -227,7 +227,7 @@ var list = (items, page) => {
227
227
  const offset = page.offset || 1;
228
228
  const limit = Math.min(page.limit || MAX_READ_LINES2, MAX_READ_LINES2);
229
229
  const visible = items.flatMap((item) => item.type === "other" ? [] : [
230
- ListEntry3.make({
230
+ ListEntry2.make({
231
231
  path: RelativePath2.make(item.name + (item.type === "directory" ? path.sep : "")),
232
232
  type: item.type
233
233
  })
@@ -330,13 +330,13 @@ var nthNewline = (bytes, count) => {
330
330
  return index + 1;
331
331
  }
332
332
  };
333
- var layer = Layer.effect(Service38, Effect.gen(function* () {
334
- const environment = yield* Service60;
335
- return Service38.of({
333
+ var layer = Layer.effect(Service32, Effect.gen(function* () {
334
+ const environment = yield* Service56;
335
+ return Service32.of({
336
336
  list: environment.files.list,
337
337
  read: (path2, resource, page) => read2(environment.files, path2, resource, page)
338
338
  });
339
339
  }));
340
- var node41 = makeLocationNode({ service: Service38, layer, deps: [node62] });
340
+ var node35 = makeLocationNode({ service: Service32, layer, deps: [node59] });
341
341
 
342
- export { MAX_READ_LINES2, MAX_READ_BYTES2, MAX_MEDIA_INGEST_BYTES2, MEDIA_MIMES2, BinaryFileError2, MediaIngestLimitError2, OffsetOutOfRangeError2, PathKindError2, PageInput2, FileContent2, TextPage2, ListEntry3, ListPage2, Service38, read2, node41, exports_read_filesystem };
342
+ export { MAX_READ_LINES2, MAX_READ_BYTES2, MAX_MEDIA_INGEST_BYTES2, MEDIA_MIMES2, BinaryFileError2, MediaIngestLimitError2, OffsetOutOfRangeError2, PathKindError2, PageInput2, FileContent2, TextPage2, ListEntry2, ListPage2, Service32, read2, node35, exports_read_filesystem };
@@ -1,25 +1,26 @@
1
1
  import {
2
- Service85,
3
- node89
4
- } from "./location-wedh6qfb.js";
2
+ Service86,
3
+ node90
4
+ } from "./credential-pnr9fk74.js";
5
5
  import {
6
- Service66,
7
- node70
8
- } from "./location-jw4xm41e.js";
6
+ Service75,
7
+ node79
8
+ } from "./credential-8ppy984g.js";
9
9
  import {
10
+ changes2,
10
11
  create3
11
- } from "./location-vd3b3yk9.js";
12
+ } from "./credential-204s3925.js";
12
13
  import {
13
14
  __export
14
- } from "./location-9rqn6x4v.js";
15
+ } from "./credential-9rqn6x4v.js";
15
16
 
16
17
  // src/websearch.ts
17
18
  var exports_websearch3 = {};
18
19
  __export(exports_websearch3, {
19
20
  DisabledError: () => DisabledError2,
20
- Event: () => Event5,
21
- ID: () => ID4,
22
- Input: () => Input14,
21
+ Event: () => Event4,
22
+ ID: () => ID3,
23
+ Input: () => Input15,
23
24
  Provider: () => Provider2,
24
25
  ProviderKey: () => ProviderKey2,
25
26
  ProviderNotFoundError: () => ProviderNotFoundError2,
@@ -28,29 +29,29 @@ __export(exports_websearch3, {
28
29
  Response: () => Response2,
29
30
  Result: () => Result2,
30
31
  Selection: () => Selection2,
31
- Service: () => Service18,
32
+ Service: () => Service21,
32
33
  WebSearch: () => exports_websearch3,
33
- node: () => node21
34
+ node: () => node24
34
35
  });
35
36
  import { WebSearch } from "@opencode/schema/websearch";
36
37
  import { SessionEvent } from "@opencode/schema/session-event";
37
38
  import { Clock, Context, Effect, Layer, Option, Schema, Stream } from "effect";
38
39
  import { HttpClientError } from "effect/http";
39
40
  import { makeLocationNode } from "@opencode/util/effect/app-node";
40
- import { Event as Event5 } from "@opencode/schema/websearch";
41
- var ID4 = WebSearch.ID;
41
+ import { Event as Event4 } from "@opencode/schema/websearch";
42
+ var ID3 = WebSearch.ID;
42
43
  var Provider2 = WebSearch.Provider;
43
- var Input14 = WebSearch.Input;
44
+ var Input15 = WebSearch.Input;
44
45
  var Result2 = WebSearch.Result;
45
46
  var Response2 = WebSearch.Response;
46
47
  var ProviderKey2 = "websearch:provider";
47
- var Selection2 = Schema.Union([ID4, Schema.Literal("random"), Schema.Literal(false)]);
48
+ var Selection2 = Schema.Union([ID3, Schema.Literal("random"), Schema.Literal(false)]);
48
49
 
49
50
  class ProviderRequiredError2 extends Schema.TaggedError()("WebSearch.ProviderRequired", {}) {
50
51
  }
51
52
 
52
53
  class ProviderNotFoundError2 extends Schema.TaggedError()("WebSearch.ProviderNotFound", {
53
- providerID: ID4
54
+ providerID: ID3
54
55
  }) {
55
56
  }
56
57
 
@@ -58,16 +59,16 @@ class DisabledError2 extends Schema.TaggedError()("WebSearch.Disabled", {}) {
58
59
  }
59
60
 
60
61
  class RequestError2 extends Schema.TaggedError()("WebSearch.Request", {
61
- providerID: ID4,
62
+ providerID: ID3,
62
63
  cause: Schema.Defect()
63
64
  }) {
64
65
  }
65
66
 
66
- class Service18 extends Context.Service()("@opencode/WebSearch") {
67
+ class Service21 extends Context.Service()("@opencode/WebSearch") {
67
68
  }
68
- var layer = Layer.effect(Service18, Effect.gen(function* () {
69
- const bus = yield* Service85;
70
- const kv = yield* Service66;
69
+ var layer = Layer.effect(Service21, Effect.gen(function* () {
70
+ const bus = yield* Service86;
71
+ const kv = yield* Service75;
71
72
  const decodeResults = Schema.decodeUnknownEffect(Schema.Array(Result2));
72
73
  const cooldowns = new Map;
73
74
  const preferred = new Map;
@@ -75,6 +76,10 @@ var layer = Layer.effect(Service18, Effect.gen(function* () {
75
76
  yield* bus.subscribe([SessionEvent.Deleted, SessionEvent.Moved]).pipe(Stream.runForEach((event) => Effect.sync(() => {
76
77
  preferred.delete(event.data.sessionID);
77
78
  })), Effect.forkScoped({ startImmediately: true }));
79
+ const providers = (data) => Array.from(data.providers.values(), (provider) => ({
80
+ id: provider.id,
81
+ name: provider.name
82
+ })).toSorted((a, b) => a.name.localeCompare(b.name));
78
83
  const state = create3({
79
84
  initial: () => ({ providers: new Map }),
80
85
  editor: (editor) => ({
@@ -84,7 +89,7 @@ var layer = Layer.effect(Service18, Effect.gen(function* () {
84
89
  set: (selection) => editor.selection = selection
85
90
  }
86
91
  }),
87
- notify: () => bus.publish(WebSearch.Event.Updated, {}).pipe(Effect.asVoid)
92
+ notify: changes2(providers, () => bus.publish(WebSearch.Event.Updated, {}).pipe(Effect.asVoid))
88
93
  });
89
94
  const requireProvider = (providers, providerID) => {
90
95
  const provider = providers.get(providerID);
@@ -124,14 +129,11 @@ var layer = Layer.effect(Service18, Effect.gen(function* () {
124
129
  }
125
130
  return choice ? state.get().providers.get(choice) : undefined;
126
131
  });
127
- return Service18.of({
132
+ return Service21.of({
128
133
  transform: state.transform,
129
134
  reload: state.reload,
130
135
  providers: Effect.fn("WebSearch.providers")(function* () {
131
- return Array.from(state.get().providers.values(), (provider) => ({
132
- id: provider.id,
133
- name: provider.name
134
- })).toSorted((a, b) => a.name.localeCompare(b.name));
136
+ return providers(state.get());
135
137
  }),
136
138
  default: Effect.fn("WebSearch.defaultInfo")(function* () {
137
139
  const provider = yield* defaultProvider(yield* selection());
@@ -184,10 +186,10 @@ function cooldownMillis(value, now) {
184
186
  const date = Date.parse(value);
185
187
  return Number.isFinite(date) ? Math.max(0, date - now) : 60000;
186
188
  }
187
- var node21 = makeLocationNode({
188
- service: Service18,
189
+ var node24 = makeLocationNode({
190
+ service: Service21,
189
191
  layer,
190
- deps: [node89, node70]
192
+ deps: [node90, node79]
191
193
  });
192
194
 
193
- export { ID4, Provider2, Input14, Result2, Response2, ProviderKey2, Selection2, ProviderRequiredError2, ProviderNotFoundError2, DisabledError2, RequestError2, Service18, node21, exports_websearch3, Event5 };
195
+ export { ID3, Provider2, Input15, Result2, Response2, ProviderKey2, Selection2, ProviderRequiredError2, ProviderNotFoundError2, DisabledError2, RequestError2, Service21, node24, exports_websearch3, Event4 };
@@ -0,0 +1,42 @@
1
+ import {
2
+ Service76
3
+ } from "./credential-fpap23jy.js";
4
+ import {
5
+ Service44
6
+ } from "./credential-hn4sj8vd.js";
7
+ import {
8
+ awaitActivation2
9
+ } from "./credential-d77dj7jw.js";
10
+ import {
11
+ __export
12
+ } from "./credential-9rqn6x4v.js";
13
+
14
+ // src/session/command.ts
15
+ var exports_command3 = {};
16
+ __export(exports_command3, {
17
+ SessionCommand: () => exports_command3,
18
+ execute: () => execute2
19
+ });
20
+ import { Effect } from "effect";
21
+ var execute2 = Effect.fn("SessionCommand.execute")(function* (input) {
22
+ const instances = yield* Service44;
23
+ yield* Effect.gen(function* () {
24
+ yield* awaitActivation2;
25
+ const commands = yield* Service76;
26
+ yield* commands.execute({
27
+ name: input.command,
28
+ invocation: {
29
+ sessionID: input.session.id,
30
+ prompt: {
31
+ text: input.text,
32
+ files: input.files,
33
+ agents: input.agents,
34
+ skills: input.skills
35
+ },
36
+ delivery: input.delivery ?? "steer"
37
+ }
38
+ });
39
+ }).pipe(instances.provide(input.session));
40
+ });
41
+
42
+ export { execute2, exports_command3 };
@@ -1,43 +1,43 @@
1
1
  import {
2
- Service85
3
- } from "./location-wedh6qfb.js";
2
+ Service86
3
+ } from "./credential-pnr9fk74.js";
4
4
  import {
5
- Service41
6
- } from "./location-txg5xg0c.js";
5
+ Service39
6
+ } from "./credential-ndnqagje.js";
7
7
  import {
8
- Error5
9
- } from "./location-j8pg8rcr.js";
8
+ Error4
9
+ } from "./credential-xy0fx19g.js";
10
10
  import {
11
- Service62
12
- } from "./location-s9ty2h8k.js";
11
+ Service55
12
+ } from "./credential-bgtvwfds.js";
13
13
  import {
14
14
  StepFailedError2
15
- } from "./location-1xwgv2nq.js";
15
+ } from "./credential-5e4fvpp9.js";
16
16
  import {
17
17
  SessionEvent2
18
- } from "./location-ec1grn59.js";
18
+ } from "./credential-ec1grn59.js";
19
19
  import {
20
20
  toSessionError2
21
- } from "./location-0hpjzkz5.js";
21
+ } from "./credential-nr0dnw6m.js";
22
22
  import {
23
- calculateCost2
24
- } from "./location-tw8zr1ps.js";
23
+ record2
24
+ } from "./credential-r542h3bh.js";
25
25
  import {
26
26
  createLLMEventPublisher2
27
- } from "./location-9mrr08ev.js";
27
+ } from "./credential-v8h33378.js";
28
28
  import {
29
29
  isRetryable2
30
- } from "./location-c8666r4c.js";
30
+ } from "./credential-26x8chrq.js";
31
31
  import {
32
32
  __export
33
- } from "./location-9rqn6x4v.js";
33
+ } from "./credential-9rqn6x4v.js";
34
34
 
35
35
  // src/session/runner/step.ts
36
36
  var exports_step = {};
37
37
  __export(exports_step, {
38
38
  Outcome: () => Outcome2,
39
39
  SessionStep: () => exports_step,
40
- make: () => make8
40
+ make: () => make9
41
41
  });
42
42
  import {
43
43
  AIError,
@@ -45,17 +45,17 @@ import {
45
45
  LLMClient,
46
46
  LLMEvent,
47
47
  isContextOverflowFailure
48
- } from "@opencode/ai";
48
+ } from "@opencode/ai/effect";
49
49
  import { Cause, Clock, Data, Effect, Exit, Fiber, Option, Stream } from "effect";
50
50
  var Outcome2 = Data.taggedEnum();
51
51
  var TOOLS_INTERRUPTED = { type: "aborted", message: "Tool execution interrupted" };
52
52
  var STEP_INTERRUPTED = { type: "aborted", message: "Step interrupted" };
53
53
  var RESULT_MISSING = { type: "tool.result-missing", message: "Provider did not return a tool result" };
54
- var make8 = Effect.gen(function* () {
55
- const bus = yield* Service85;
54
+ var make9 = Effect.gen(function* () {
55
+ const bus = yield* Service86;
56
56
  const llm = yield* LLMClient.Service;
57
- const snapshots = yield* Service41;
58
- const toolOutput = yield* Service62;
57
+ const snapshots = yield* Service39;
58
+ const toolOutput = yield* Service55;
59
59
  const attempt = Effect.fn("SessionStep.attempt")(function* (input) {
60
60
  const pendingStartSnapshot = yield* snapshots.capture().pipe(Effect.forkScoped);
61
61
  const publisher = createLLMEventPublisher2(bus, {
@@ -71,7 +71,7 @@ var make8 = Effect.gen(function* () {
71
71
  const interruptTools = Effect.suspend(() => Fiber.interruptAll(toolRuns.map((run) => run.fiber)));
72
72
  const executeTool = (call) => {
73
73
  if (input.prepared.request.toolChoice?.type === "none")
74
- return new Error5({ message: "Tools are disabled after the maximum agent steps" });
74
+ return new Error4({ message: "Tools are disabled after the maximum agent steps" });
75
75
  return input.prepared.executeTool({
76
76
  sessionID: input.sessionID,
77
77
  agent: input.agent,
@@ -165,7 +165,7 @@ var make8 = Effect.gen(function* () {
165
165
  const files = startSnapshot && snapshot ? startSnapshot === snapshot ? [] : yield* snapshots.files({ from: startSnapshot, to: snapshot }).pipe(Effect.orElseSucceed(() => {
166
166
  return;
167
167
  })) : undefined;
168
- const usage = record.finish ? { cost: calculateCost2(input.model.cost, record.finish.tokens), tokens: record.finish.tokens } : undefined;
168
+ const usage = record.finish ? record2(record.finish.usage, input.model.cost) : undefined;
169
169
  if (record.failure)
170
170
  yield* publisher.publishStepFailure({ ...usage, snapshot, files });
171
171
  if (record.finish && usage && !record.failure)
@@ -223,4 +223,4 @@ var classifyToolExits = (settled, runs) => {
223
223
  return { interrupted: causes.some(Cause.hasInterrupts), declines, failure };
224
224
  };
225
225
 
226
- export { Outcome2, make8, exports_step };
226
+ export { Outcome2, make9, exports_step };