@opencode/core 2.2.0 → 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 (868) hide show
  1. package/dist/account/sql.js +1 -1
  2. package/dist/agent.js +86 -85
  3. package/dist/aisdk-native.js +98 -97
  4. package/dist/aisdk.js +104 -103
  5. package/dist/app.js +9 -9
  6. package/dist/bus.js +76 -75
  7. package/dist/chunks/{tool-r8dwygj6.js → credential-010tfxz5.js} +57 -46
  8. package/dist/chunks/{tool-034tev2y.js → credential-034tev2y.js} +2 -2
  9. package/dist/chunks/{tool-hy05jz59.js → credential-0473z1ea.js} +4 -4
  10. package/dist/chunks/{tool-27c23e33.js → credential-05gcnbx9.js} +11 -11
  11. package/dist/chunks/{tool-spqj5yby.js → credential-0gmzdafk.js} +31 -31
  12. package/dist/chunks/{tool-rzh929cz.js → credential-0hgyyj2f.js} +13 -13
  13. package/dist/chunks/{tool-ayv543vf.js → credential-0hy252xp.js} +18 -18
  14. package/dist/chunks/credential-0yf36v3f.js +332 -0
  15. package/dist/chunks/{tool-q2z4k2x9.js → credential-0yrc0qsb.js} +17 -17
  16. package/dist/chunks/{tool-7mwfr1ya.js → credential-12dezc3d.js} +23 -23
  17. package/dist/chunks/{tool-gjasn01h.js → credential-14f8gty7.js} +4 -4
  18. package/dist/chunks/{tool-41sh1bbt.js → credential-1egdjfep.js} +9 -11
  19. package/dist/chunks/{tool-1ep2p91f.js → credential-1ep2p91f.js} +2 -2
  20. package/dist/chunks/{tool-39j6yt37.js → credential-1hayz8ad.js} +27 -19
  21. package/dist/chunks/credential-1mdvq69k.js +179 -0
  22. package/dist/chunks/{tool-28pnz6dy.js → credential-1p6bnm4j.js} +30 -42
  23. package/dist/chunks/{tool-dtfj6qhp.js → credential-1p97rsrw.js} +80 -80
  24. package/dist/chunks/{tool-1x2knyw4.js → credential-1x2knyw4.js} +1 -1
  25. package/dist/chunks/{tool-y7287ygs.js → credential-1x73k67a.js} +8 -8
  26. package/dist/chunks/{tool-204s3925.js → credential-204s3925.js} +1 -1
  27. package/dist/chunks/{tool-vsqvcqta.js → credential-26x8chrq.js} +6 -6
  28. package/dist/chunks/{tool-3k7t0q4z.js → credential-2agjkr66.js} +29 -20
  29. package/dist/chunks/{tool-d893c1qn.js → credential-2d25yes2.js} +17 -17
  30. package/dist/chunks/{tool-vvj7j8xf.js → credential-2fbmf7r0.js} +3 -3
  31. package/dist/chunks/{tool-3t4066nw.js → credential-2ktpft3m.js} +16 -16
  32. package/dist/chunks/{tool-47cq5kqw.js → credential-2r6emfn3.js} +4 -4
  33. package/dist/chunks/{tool-3f13jy3s.js → credential-303mq5q0.js} +21 -21
  34. package/dist/chunks/{tool-cnga39w3.js → credential-313ht5vg.js} +15 -15
  35. package/dist/chunks/{tool-3hepkmqq.js → credential-3hepkmqq.js} +1 -1
  36. package/dist/chunks/{tool-09bv4atg.js → credential-3j1m3tq4.js} +5 -5
  37. package/dist/chunks/{tool-8wc2fpae.js → credential-3kdbrncp.js} +5 -5
  38. package/dist/chunks/{tool-3nnrz6f6.js → credential-3nnrz6f6.js} +1 -1
  39. package/dist/chunks/{tool-gtqjgkpw.js → credential-3sf9fkhp.js} +3 -3
  40. package/dist/chunks/{tool-8rk0v0nw.js → credential-3t284k5r.js} +49 -46
  41. package/dist/chunks/{tool-ymky0t0b.js → credential-3tcpaccq.js} +5 -5
  42. package/dist/chunks/{tool-w2eysc6j.js → credential-40za9wsf.js} +9 -9
  43. package/dist/chunks/{tool-xqxzn5yn.js → credential-44wjxh8g.js} +14 -14
  44. package/dist/chunks/{tool-nh9ma6fe.js → credential-491m2zwm.js} +11 -11
  45. package/dist/chunks/{tool-vvqzd10p.js → credential-4czk4k18.js} +35 -35
  46. package/dist/chunks/{tool-3jy1f5rc.js → credential-4f3e2fe5.js} +38 -38
  47. package/dist/chunks/{tool-39tkfg3g.js → credential-4fes9nxq.js} +9 -9
  48. package/dist/chunks/{tool-j3xa31ke.js → credential-4hn0zw0c.js} +5 -5
  49. package/dist/chunks/{tool-4pyp9zr9.js → credential-4pyp9zr9.js} +1 -1
  50. package/dist/chunks/{tool-4v008n1t.js → credential-4v008n1t.js} +1 -1
  51. package/dist/chunks/credential-539dw32x.js +410 -0
  52. package/dist/chunks/{tool-7gm95e0b.js → credential-5e4fvpp9.js} +6 -6
  53. package/dist/chunks/{tool-2qgpse07.js → credential-5jandae5.js} +10 -10
  54. package/dist/chunks/{tool-1b236rmr.js → credential-5k74q2xq.js} +188 -188
  55. package/dist/chunks/{tool-5m9w47nd.js → credential-5m9w47nd.js} +1 -1
  56. package/dist/chunks/{tool-2nkqvy4a.js → credential-5macz2df.js} +30 -30
  57. package/dist/chunks/{tool-4zsrmah6.js → credential-5sc8268w.js} +42 -42
  58. package/dist/chunks/{tool-9e6q8a6s.js → credential-5zpj5z5z.js} +13 -13
  59. package/dist/chunks/{tool-jszqqvxf.js → credential-65m06x48.js} +9 -9
  60. package/dist/chunks/{tool-6esdw8yj.js → credential-6esdw8yj.js} +1 -1
  61. package/dist/chunks/{tool-d3qmtx3n.js → credential-6qh3pn8d.js} +20 -20
  62. package/dist/chunks/{tool-1vpe07px.js → credential-6te9kxba.js} +77 -20
  63. package/dist/chunks/{tool-pbwrhxm9.js → credential-6vyrcjf5.js} +18 -18
  64. package/dist/chunks/{tool-yzaa036j.js → credential-6xtf9y56.js} +27 -27
  65. package/dist/chunks/{tool-76cb1hcw.js → credential-76cb1hcw.js} +1 -1
  66. package/dist/chunks/{tool-7bmhse3q.js → credential-7bmhse3q.js} +1 -1
  67. package/dist/chunks/{tool-v6njdshh.js → credential-7dyk5r5p.js} +20 -20
  68. package/dist/chunks/{tool-c347jtgq.js → credential-7jad4yjq.js} +22 -22
  69. package/dist/chunks/{tool-7w2ypzdf.js → credential-7w2ypzdf.js} +1 -1
  70. package/dist/chunks/{tool-012mq190.js → credential-7yt5s0f0.js} +31 -31
  71. package/dist/chunks/{tool-edkh5za3.js → credential-82nhjx58.js} +2 -2
  72. package/dist/chunks/{tool-vacfhfey.js → credential-8411r79r.js} +7 -7
  73. package/dist/chunks/{tool-5858b97a.js → credential-87bz1bn4.js} +12 -12
  74. package/dist/chunks/{tool-maq43m3m.js → credential-89bbjwma.js} +11 -11
  75. package/dist/chunks/{tool-xasx590j.js → credential-8ecyv6n4.js} +14 -14
  76. package/dist/chunks/{tool-11hfp36g.js → credential-8jztxfpf.js} +4 -4
  77. package/dist/chunks/{tool-18s0c7mk.js → credential-8ppy984g.js} +10 -10
  78. package/dist/chunks/{tool-xhrs65th.js → credential-8s8ht7fz.js} +6 -6
  79. package/dist/chunks/{tool-8wtp7s3z.js → credential-8wtp7s3z.js} +1 -1
  80. package/dist/chunks/{tool-90zstvax.js → credential-90zstvax.js} +1 -1
  81. package/dist/chunks/{tool-r850md5t.js → credential-93e1rsjq.js} +15 -15
  82. package/dist/chunks/{tool-g2pxrbdf.js → credential-96zj6efe.js} +106 -75
  83. package/dist/chunks/{tool-9q8g9sv8.js → credential-9axz1114.js} +4 -4
  84. package/dist/chunks/{tool-3nr2yc9a.js → credential-9d99svmd.js} +3 -3
  85. package/dist/chunks/{tool-7hsh0za6.js → credential-9f8nz412.js} +40 -45
  86. package/dist/chunks/{tool-r9zrswe1.js → credential-9r0x1bva.js} +9 -9
  87. package/dist/chunks/{tool-9f3sjfep.js → credential-9z9tayqc.js} +9 -9
  88. package/dist/chunks/{tool-k66e5v3s.js → credential-a7vdyqvq.js} +11 -11
  89. package/dist/chunks/{tool-9taxa3wa.js → credential-a81capfc.js} +9 -9
  90. package/dist/chunks/{tool-0a2sm9cp.js → credential-acns5kb5.js} +13 -13
  91. package/dist/chunks/{tool-2jrrfqe1.js → credential-agqd6nxz.js} +2 -2
  92. package/dist/chunks/{tool-gn0hevf2.js → credential-anaq8tyr.js} +26 -26
  93. package/dist/chunks/{tool-yytcp89d.js → credential-apyyhtqv.js} +26 -26
  94. package/dist/chunks/{tool-cnh9xgcw.js → credential-arc1qckg.js} +32 -32
  95. package/dist/chunks/{tool-ayjs7tqn.js → credential-ayjs7tqn.js} +2 -2
  96. package/dist/chunks/{tool-xpx0z35b.js → credential-ayq7z3yq.js} +14 -14
  97. package/dist/chunks/{tool-sbj9xhv5.js → credential-b2dk96k1.js} +19 -19
  98. package/dist/chunks/{tool-qhfm6m5r.js → credential-b5pzs38m.js} +21 -21
  99. package/dist/chunks/{tool-b6vsg801.js → credential-b6vsg801.js} +2 -2
  100. package/dist/chunks/{tool-r023m38x.js → credential-b6x8f3en.js} +20 -14
  101. package/dist/chunks/{tool-6wz31r82.js → credential-bgtvwfds.js} +11 -11
  102. package/dist/chunks/{tool-0ahs07zn.js → credential-br0kkpnn.js} +7 -7
  103. package/dist/chunks/credential-bs2ewjth.js +26 -0
  104. package/dist/chunks/{tool-f449218g.js → credential-bsefsz8j.js} +5 -5
  105. package/dist/chunks/{tool-6adqbtbr.js → credential-bwva959e.js} +31 -31
  106. package/dist/chunks/{tool-pnwsrq7c.js → credential-c0xjp2a3.js} +8 -8
  107. package/dist/chunks/{tool-61ennm6n.js → credential-cac0wmbb.js} +6 -6
  108. package/dist/chunks/{tool-sws77t7f.js → credential-cjqs9axx.js} +11 -11
  109. package/dist/chunks/{tool-zyqv3h6k.js → credential-cth8y227.js} +8 -8
  110. package/dist/chunks/{tool-cwrgdav8.js → credential-cwrgdav8.js} +2 -2
  111. package/dist/chunks/{tool-d4v9tmah.js → credential-d4v9tmah.js} +2 -2
  112. package/dist/chunks/credential-d77dj7jw.js +18 -0
  113. package/dist/chunks/{tool-a35byqw0.js → credential-d8q8hp8x.js} +28 -28
  114. package/dist/chunks/{tool-5fgj30xe.js → credential-dcgwasx3.js} +26 -26
  115. package/dist/chunks/{tool-d9hg8633.js → credential-dk3hpat9.js} +12 -12
  116. package/dist/chunks/{tool-rbhebfmq.js → credential-dkj2h5cm.js} +10 -10
  117. package/dist/chunks/{tool-nyw2x12k.js → credential-dkxwsr1g.js} +1 -1
  118. package/dist/chunks/{tool-dt77769w.js → credential-dt77769w.js} +1 -1
  119. package/dist/chunks/{tool-qcsk8x8g.js → credential-e14rv8n7.js} +46 -49
  120. package/dist/chunks/{tool-zw3yjf62.js → credential-e1n7p4ag.js} +10 -10
  121. package/dist/chunks/{tool-s9zns2yk.js → credential-e23z2b6q.js} +12 -12
  122. package/dist/chunks/{tool-kh9rt25c.js → credential-e71x36jh.js} +14 -14
  123. package/dist/chunks/{tool-e834z07m.js → credential-e834z07m.js} +1 -1
  124. package/dist/chunks/credential-etcm32bf.js +356 -0
  125. package/dist/chunks/{tool-5n6snyjt.js → credential-eth7w1ws.js} +42 -32
  126. package/dist/chunks/{tool-5k0vn9gs.js → credential-f3erva9m.js} +10 -5
  127. package/dist/chunks/{tool-x75vegnr.js → credential-f5ydn5fg.js} +11 -11
  128. package/dist/chunks/{tool-5wtqv2es.js → credential-f7s46jf6.js} +5 -5
  129. package/dist/chunks/{tool-kcw9vyak.js → credential-fds3jynx.js} +11 -11
  130. package/dist/chunks/{tool-fffv3p7h.js → credential-fffv3p7h.js} +1 -1
  131. package/dist/chunks/{tool-prq7xxp2.js → credential-fg9p65nk.js} +6 -6
  132. package/dist/chunks/{tool-pckyv4f2.js → credential-fh43wqrx.js} +30 -30
  133. package/dist/chunks/{tool-agmw1zcy.js → credential-fneb0zf4.js} +44 -44
  134. package/dist/chunks/{tool-f1kzydc9.js → credential-fpap23jy.js} +24 -24
  135. package/dist/chunks/{tool-qakjdagf.js → credential-fpg34aj9.js} +21 -21
  136. package/dist/chunks/{tool-nn3qjkhj.js → credential-fqx72tyj.js} +11 -11
  137. package/dist/chunks/{tool-yqveydy6.js → credential-fwp9mfc9.js} +4 -4
  138. package/dist/chunks/{tool-wr3re1en.js → credential-fznmdakp.js} +4 -4
  139. package/dist/chunks/{tool-2esqe60t.js → credential-g38vz1ag.js} +15 -15
  140. package/dist/chunks/{tool-j56qcejd.js → credential-g4hd4tqj.js} +348 -330
  141. package/dist/chunks/{tool-ds82yrjj.js → credential-g5nf4rjy.js} +22 -22
  142. package/dist/chunks/{tool-nfq3amnp.js → credential-g9r4jbb8.js} +23 -23
  143. package/dist/chunks/{tool-e4vy1v26.js → credential-ge9gsrez.js} +21 -21
  144. package/dist/chunks/{tool-78kz22ny.js → credential-gfk2zkvt.js} +26 -26
  145. package/dist/chunks/{tool-gg8p9cgs.js → credential-gg8p9cgs.js} +3 -3
  146. package/dist/chunks/{tool-bgs9y14h.js → credential-ghrzdqqx.js} +5 -5
  147. package/dist/chunks/{tool-mpvgefqy.js → credential-gkw5tmj9.js} +4 -4
  148. package/dist/chunks/{tool-sa46y2cf.js → credential-grghrhjz.js} +18 -18
  149. package/dist/chunks/{tool-8feq5yxx.js → credential-gx1r7nq1.js} +18 -18
  150. package/dist/chunks/{tool-bavxd7np.js → credential-gx98ktag.js} +16 -16
  151. package/dist/chunks/{tool-pfstxkm2.js → credential-gxz26haq.js} +14 -6
  152. package/dist/chunks/{tool-1qb2fn2e.js → credential-h0gszfyz.js} +11 -11
  153. package/dist/chunks/{tool-m89ew3ks.js → credential-hby6rmzj.js} +26 -26
  154. package/dist/chunks/{tool-9nkjg9qd.js → credential-hn4sj8vd.js} +5 -5
  155. package/dist/chunks/{tool-19y1mz66.js → credential-hpcxzwwk.js} +5 -5
  156. package/dist/chunks/{tool-hpg1pkwy.js → credential-hpg1pkwy.js} +1 -1
  157. package/dist/chunks/{tool-vb80j1wh.js → credential-hqxkkta1.js} +3 -3
  158. package/dist/chunks/{tool-j04c4e1z.js → credential-hw81h15x.js} +57 -28
  159. package/dist/chunks/{tool-jsqg4353.js → credential-j5gjnx76.js} +19 -19
  160. package/dist/chunks/{tool-p84syj9g.js → credential-j63f8txt.js} +26 -26
  161. package/dist/chunks/{tool-wz464gjx.js → credential-j71pyjxy.js} +8 -8
  162. package/dist/chunks/{tool-8cvc109z.js → credential-j9m7wknr.js} +20 -20
  163. package/dist/chunks/{tool-6twykydk.js → credential-jcqm84fr.js} +9 -9
  164. package/dist/chunks/{tool-jfaecv01.js → credential-jfaecv01.js} +1 -1
  165. package/dist/chunks/{tool-jtnps1zs.js → credential-jtnps1zs.js} +2 -2
  166. package/dist/chunks/{tool-1px95g66.js → credential-jyeaxm3w.js} +22 -22
  167. package/dist/chunks/{tool-xw4ev616.js → credential-jzyke2ba.js} +22 -22
  168. package/dist/chunks/{tool-k814nvkf.js → credential-k814nvkf.js} +1 -1
  169. package/dist/chunks/{tool-2xw2f3vf.js → credential-k8qb7q2x.js} +11 -11
  170. package/dist/chunks/{tool-yxjvbhxs.js → credential-k98prhpv.js} +4 -4
  171. package/dist/chunks/{tool-e07q2w5p.js → credential-k9zkdd2y.js} +4 -4
  172. package/dist/chunks/{tool-0fhbvqtr.js → credential-kaa2rt48.js} +7 -7
  173. package/dist/chunks/{tool-hdfrs5mg.js → credential-kcg78dnn.js} +7 -7
  174. package/dist/chunks/{tool-7harcha2.js → credential-kgxvfcjx.js} +5 -5
  175. package/dist/chunks/{tool-ra6js1h8.js → credential-kmzgegqq.js} +8 -8
  176. package/dist/chunks/{tool-kt3bjfbg.js → credential-kt3bjfbg.js} +1 -1
  177. package/dist/chunks/{tool-67cvb3ht.js → credential-kyzgttvd.js} +9 -9
  178. package/dist/chunks/{tool-m1714858.js → credential-m1714858.js} +1 -1
  179. package/dist/chunks/{tool-8y4jps98.js → credential-m37sd98t.js} +4 -4
  180. package/dist/chunks/{tool-f8jj8vg7.js → credential-m8683jv8.js} +10 -10
  181. package/dist/chunks/{tool-m9w0rfyh.js → credential-m9w0rfyh.js} +1 -1
  182. package/dist/chunks/{tool-sw5vdw2h.js → credential-mc5t9a7x.js} +11 -11
  183. package/dist/chunks/{tool-4t7jqkaw.js → credential-mg801ykt.js} +13 -13
  184. package/dist/chunks/{tool-h8wtbm19.js → credential-mpewzr3m.js} +47 -47
  185. package/dist/chunks/{tool-5dme8x4x.js → credential-mpsc7bv4.js} +8 -8
  186. package/dist/chunks/{tool-8t8mrqrh.js → credential-mqqd3hk5.js} +6 -6
  187. package/dist/chunks/{tool-c065g2ca.js → credential-mvd85fn1.js} +59 -55
  188. package/dist/chunks/credential-mxqz9txa.js +34 -0
  189. package/dist/chunks/{tool-4m86bj6y.js → credential-myztnk54.js} +24 -0
  190. package/dist/chunks/{tool-p56gnsnx.js → credential-n3gyxhch.js} +28 -28
  191. package/dist/chunks/{tool-780q7vq9.js → credential-n3tfvvbp.js} +5 -5
  192. package/dist/chunks/{tool-770pw0s1.js → credential-nah043kf.js} +4 -4
  193. package/dist/chunks/{tool-6rfxa98r.js → credential-ndnqagje.js} +26 -26
  194. package/dist/chunks/credential-nh4v3znn.js +36 -0
  195. package/dist/chunks/{tool-ewr5k9wg.js → credential-nm4377q9.js} +5 -5
  196. package/dist/chunks/{tool-tt79p4vp.js → credential-nmw1n2a0.js} +16 -16
  197. package/dist/chunks/{tool-nvxqht09.js → credential-np3cybhk.js} +3 -3
  198. package/dist/chunks/{tool-752zwhsj.js → credential-nr0dnw6m.js} +5 -5
  199. package/dist/chunks/{tool-12cx84te.js → credential-ntx01z7a.js} +20 -20
  200. package/dist/chunks/{tool-7467kx48.js → credential-nycpe6mm.js} +31 -31
  201. package/dist/chunks/{tool-p015t6z3.js → credential-p015t6z3.js} +2 -2
  202. package/dist/chunks/{tool-w08h028t.js → credential-p1njj0by.js} +9 -9
  203. package/dist/chunks/{tool-6mmkz41v.js → credential-p1pcd2wf.js} +12 -12
  204. package/dist/chunks/{tool-st7p3hwb.js → credential-p755an0a.js} +2 -2
  205. package/dist/chunks/{tool-p7vhpwh8.js → credential-p7vhpwh8.js} +1 -1
  206. package/dist/chunks/{tool-pbbktnbz.js → credential-pbbktnbz.js} +4 -4
  207. package/dist/chunks/{tool-pknna89w.js → credential-pknna89w.js} +1 -1
  208. package/dist/chunks/{tool-c1y12bqd.js → credential-pnr9fk74.js} +4 -4
  209. package/dist/chunks/{tool-v91xp2c8.js → credential-pnvhe9nj.js} +11 -11
  210. package/dist/chunks/{tool-8jkecmvj.js → credential-pqqhbn30.js} +24 -24
  211. package/dist/chunks/{tool-14kcwm24.js → credential-prsrv2zx.js} +12 -12
  212. package/dist/chunks/{tool-b7286km2.js → credential-pybyazwk.js} +9 -9
  213. package/dist/chunks/{tool-pfnzsr07.js → credential-q8djhvnf.js} +36 -36
  214. package/dist/chunks/{tool-0t332zg2.js → credential-q91aphyp.js} +6 -6
  215. package/dist/chunks/{tool-cwq9059v.js → credential-qbfny989.js} +21 -21
  216. package/dist/chunks/{tool-88degkwg.js → credential-qc3z06b5.js} +9 -9
  217. package/dist/chunks/{tool-nz89qvcx.js → credential-qgtmjkbw.js} +24 -24
  218. package/dist/chunks/{tool-mrzap57y.js → credential-qmpcwza3.js} +6 -6
  219. package/dist/chunks/{tool-qp7r0hxv.js → credential-qp7r0hxv.js} +1 -1
  220. package/dist/chunks/credential-qqvy8y24.js +45 -0
  221. package/dist/chunks/{tool-n0w6tq5t.js → credential-qvbj290y.js} +6 -6
  222. package/dist/chunks/{tool-rgmk1r1t.js → credential-qxpk38rz.js} +8 -8
  223. package/dist/chunks/{tool-mvzrjhep.js → credential-qyh39dz8.js} +12 -6
  224. package/dist/chunks/{tool-r0yr0wbs.js → credential-r0yr0wbs.js} +1 -1
  225. package/dist/chunks/{tool-r542h3bh.js → credential-r542h3bh.js} +1 -1
  226. package/dist/chunks/{tool-4pw98qd4.js → credential-r96ere88.js} +4 -4
  227. package/dist/chunks/{tool-rb9dy4dg.js → credential-rb9dy4dg.js} +1 -1
  228. package/dist/chunks/{tool-y5kjjy07.js → credential-rc1hggec.js} +30 -30
  229. package/dist/chunks/{tool-b08y6na7.js → credential-rchdkk7p.js} +2 -2
  230. package/dist/chunks/credential-rgzggw2r.js +33 -0
  231. package/dist/chunks/{tool-02nh8ewm.js → credential-rm3qbz2f.js} +12 -12
  232. package/dist/chunks/{tool-rt5dr6hb.js → credential-rt5dr6hb.js} +1 -1
  233. package/dist/chunks/{tool-jz5b6eqf.js → credential-rzd5m2bc.js} +21 -21
  234. package/dist/chunks/{tool-ks473cwm.js → credential-s3r7jzb8.js} +21 -21
  235. package/dist/chunks/{tool-zgkm4kzm.js → credential-s7gmm2q3.js} +9 -5
  236. package/dist/chunks/{tool-6qtsf31h.js → credential-s9fv6dbg.js} +5 -5
  237. package/dist/chunks/{tool-sa3fpqfw.js → credential-sa3fpqfw.js} +2 -2
  238. package/dist/chunks/{tool-kzvqqj4g.js → credential-sar30ebp.js} +19 -19
  239. package/dist/chunks/{tool-4czcg6bs.js → credential-sdb9e0vb.js} +25 -17
  240. package/dist/chunks/{tool-vmx0pqdh.js → credential-sh6m4nea.js} +16 -16
  241. package/dist/chunks/{tool-dvbyh3pq.js → credential-sm0vs1nj.js} +16 -16
  242. package/dist/chunks/{tool-sqjzf8x2.js → credential-sqjzf8x2.js} +1 -1
  243. package/dist/chunks/{tool-ssfehs1z.js → credential-ssfehs1z.js} +1 -1
  244. package/dist/chunks/{tool-6jehphsq.js → credential-sv6qbdb8.js} +27 -27
  245. package/dist/chunks/{tool-svcy3p9a.js → credential-svcy3p9a.js} +1 -1
  246. package/dist/chunks/{tool-ks0qaf84.js → credential-svmg43vj.js} +20 -20
  247. package/dist/chunks/{tool-r0yvbzfa.js → credential-szazyy8v.js} +39 -39
  248. package/dist/chunks/{tool-pvzzwdfq.js → credential-t3wbeppe.js} +13 -13
  249. package/dist/chunks/{tool-w9z9y32t.js → credential-t42546yy.js} +16 -16
  250. package/dist/chunks/{tool-s6jj6eh0.js → credential-tc4qgq7j.js} +14 -17
  251. package/dist/chunks/{tool-6h9hqrxp.js → credential-tchg2t0x.js} +17 -17
  252. package/dist/chunks/{tool-tczq8hjw.js → credential-tczq8hjw.js} +1 -1
  253. package/dist/chunks/{tool-f68rfrfr.js → credential-tqnhxgm9.js} +36 -35
  254. package/dist/chunks/{tool-798y36pp.js → credential-tt2179fk.js} +14 -16
  255. package/dist/chunks/{tool-twssxy5n.js → credential-twssxy5n.js} +2 -2
  256. package/dist/chunks/{tool-dwxkhmt2.js → credential-v1fpgjhe.js} +19 -19
  257. package/dist/chunks/{tool-r2z94j39.js → credential-v1jfr34d.js} +6 -6
  258. package/dist/chunks/{tool-v2r1d0zg.js → credential-v2r1d0zg.js} +1 -1
  259. package/dist/chunks/{tool-hs9cwcgs.js → credential-v3n3vpwq.js} +27 -27
  260. package/dist/chunks/{tool-nfk1y8jw.js → credential-v4mmdv09.js} +28 -28
  261. package/dist/chunks/{tool-twcztz12.js → credential-v55n1npn.js} +43 -78
  262. package/dist/chunks/{tool-zdkwz0rs.js → credential-v8h33378.js} +3 -3
  263. package/dist/chunks/{tool-yqsmg75a.js → credential-va3vstze.js} +42 -37
  264. package/dist/chunks/{tool-rjf5h5f7.js → credential-vqew4rxv.js} +8 -8
  265. package/dist/chunks/{tool-vycsk1c7.js → credential-w1wt7qh1.js} +8 -8
  266. package/dist/chunks/{tool-w3wsvvr9.js → credential-w3wsvvr9.js} +1 -1
  267. package/dist/chunks/{tool-8d9gtfa7.js → credential-wa091f1c.js} +45 -45
  268. package/dist/chunks/{tool-wakvkjy4.js → credential-wakvkjy4.js} +1 -1
  269. package/dist/chunks/{tool-wd87259q.js → credential-wd87259q.js} +1 -1
  270. package/dist/chunks/{tool-1dvrssaw.js → credential-we7ts2z8.js} +4 -4
  271. package/dist/chunks/{tool-5887ft1y.js → credential-wmzrz68n.js} +9 -9
  272. package/dist/chunks/{tool-wnhgecwx.js → credential-wnhgecwx.js} +1 -1
  273. package/dist/chunks/{tool-sc5azq8x.js → credential-wp68tbf9.js} +29 -29
  274. package/dist/chunks/{tool-nfga29bv.js → credential-x8c5qhdb.js} +22 -22
  275. package/dist/chunks/{tool-bstexjd6.js → credential-xd9cc171.js} +5 -5
  276. package/dist/chunks/{tool-rvy8xhsv.js → credential-xfg2wzq9.js} +28 -28
  277. package/dist/chunks/{tool-ge4qdnbb.js → credential-xj3m7ras.js} +13 -13
  278. package/dist/chunks/{tool-7tjh76vn.js → credential-xkrp785j.js} +7 -7
  279. package/dist/chunks/{tool-y420wvgt.js → credential-xpryanwe.js} +40 -40
  280. package/dist/chunks/{tool-g3b4788n.js → credential-xr858cgz.js} +28 -28
  281. package/dist/chunks/{tool-xt0z8zst.js → credential-xt0z8zst.js} +1 -1
  282. package/dist/chunks/{tool-pjtyf8t7.js → credential-xwyk9x3x.js} +27 -27
  283. package/dist/chunks/{tool-h0ya90rh.js → credential-xxw17ph9.js} +18 -18
  284. package/dist/chunks/{tool-94as0g8p.js → credential-xy0fx19g.js} +24 -24
  285. package/dist/chunks/{tool-jhz9911s.js → credential-y8rhj72b.js} +12 -12
  286. package/dist/chunks/{tool-8e0gbf5j.js → credential-yap2aqf7.js} +38 -38
  287. package/dist/chunks/{tool-yara3q77.js → credential-yara3q77.js} +2 -2
  288. package/dist/chunks/{tool-yb20nhc3.js → credential-yb20nhc3.js} +1 -1
  289. package/dist/chunks/credential-ymz7p2c9.js +31 -0
  290. package/dist/chunks/{tool-rr19gkj4.js → credential-yv7s2sp4.js} +7 -7
  291. package/dist/chunks/{tool-z38nccrw.js → credential-z38nccrw.js} +1 -1
  292. package/dist/chunks/{tool-3ewwa9eq.js → credential-z54nca32.js} +25 -25
  293. package/dist/chunks/{tool-bk7xq8bh.js → credential-zdn46m04.js} +8 -8
  294. package/dist/chunks/credential-zdy8es89.js +257 -0
  295. package/dist/chunks/{tool-4jw80zew.js → credential-zfad7fba.js} +82 -82
  296. package/dist/chunks/{tool-30wtetgq.js → credential-zgy820yb.js} +48 -48
  297. package/dist/chunks/{tool-ycd18cxa.js → credential-zhyc4r0c.js} +11 -11
  298. package/dist/chunks/{tool-q63v4kjv.js → credential-zk58pg8w.js} +14 -14
  299. package/dist/chunks/{tool-9t5cp16p.js → credential-zr9ea7v2.js} +29 -18
  300. package/dist/chunks/{tool-nq0efya9.js → credential-zxfqvegw.js} +7 -7
  301. package/dist/codemode/catalog.js +1 -1
  302. package/dist/codemode/instructions.js +7 -7
  303. package/dist/codemode/tool.js +3 -3
  304. package/dist/codemode/web.js +1 -1
  305. package/dist/command.js +92 -91
  306. package/dist/config/discovery.js +91 -90
  307. package/dist/config/integration.js +3 -3
  308. package/dist/config/markdown.js +1 -1
  309. package/dist/config/normalize.js +108 -107
  310. package/dist/config/plugin/agent.js +124 -123
  311. package/dist/config/plugin/command.js +222 -221
  312. package/dist/config/plugin/compaction.js +163 -162
  313. package/dist/config/plugin/compatibility.js +143 -142
  314. package/dist/config/plugin/entry-observer.js +1 -1
  315. package/dist/config/plugin/formatter.js +123 -122
  316. package/dist/config/plugin/image.js +122 -121
  317. package/dist/config/plugin/instruction.js +122 -121
  318. package/dist/config/plugin/location-watcher.js +124 -123
  319. package/dist/config/plugin/mcp.js +131 -130
  320. package/dist/config/plugin/policy.js +124 -123
  321. package/dist/config/plugin/provider.js +123 -122
  322. package/dist/config/plugin/reference.js +124 -123
  323. package/dist/config/plugin/shell.js +122 -121
  324. package/dist/config/plugin/skill-file.js +139 -138
  325. package/dist/config/plugin/skill-scan.js +3 -3
  326. package/dist/config/plugin/skill.js +146 -145
  327. package/dist/config/plugin/snapshot.js +122 -121
  328. package/dist/config/plugin/source.js +123 -122
  329. package/dist/config/plugin/tool-output.js +123 -122
  330. package/dist/config/plugin/websearch.js +121 -120
  331. package/dist/config/plugin/worktree.js +124 -123
  332. package/dist/config/variable.js +1 -1
  333. package/dist/config/watch.js +1 -1
  334. package/dist/config.js +123 -122
  335. package/dist/console-access.js +1 -1
  336. package/dist/credential/sql.js +2 -2
  337. package/dist/credential.js +90 -89
  338. package/dist/database/database.js +75 -74
  339. package/dist/database/drizzle/effect-sqlite/driver.js +14 -14
  340. package/dist/database/drizzle/effect-sqlite/index.js +14 -14
  341. package/dist/database/drizzle/effect-sqlite/session.js +11 -11
  342. package/dist/database/drizzle/index.js +15 -15
  343. package/dist/database/drizzle/internal/drizzle-utils.js +1 -1
  344. package/dist/database/drizzle/sqlite-core/effect/count.js +1 -1
  345. package/dist/database/drizzle/sqlite-core/effect/db.js +9 -9
  346. package/dist/database/drizzle/sqlite-core/effect/delete.js +2 -2
  347. package/dist/database/drizzle/sqlite-core/effect/index.js +10 -10
  348. package/dist/database/drizzle/sqlite-core/effect/insert.js +2 -2
  349. package/dist/database/drizzle/sqlite-core/effect/query.js +1 -1
  350. package/dist/database/drizzle/sqlite-core/effect/raw.js +1 -1
  351. package/dist/database/drizzle/sqlite-core/effect/select.js +2 -2
  352. package/dist/database/drizzle/sqlite-core/effect/session.js +10 -10
  353. package/dist/database/drizzle/sqlite-core/effect/update.js +2 -2
  354. package/dist/database/drizzle.js +16 -16
  355. package/dist/database/migration/20260127222353_familiar_lady_ursula.js +1 -1
  356. package/dist/database/migration/20260211171708_add_project_commands.js +1 -1
  357. package/dist/database/migration/20260213144116_wakeful_the_professor.js +1 -1
  358. package/dist/database/migration/20260225215848_workspace.js +1 -1
  359. package/dist/database/migration/20260227213759_add_session_workspace_id.js +1 -1
  360. package/dist/database/migration/20260228203230_blue_harpoon.js +1 -1
  361. package/dist/database/migration/20260303231226_add_workspace_fields.js +1 -1
  362. package/dist/database/migration/20260309230000_move_org_to_state.js +1 -1
  363. package/dist/database/migration/20260312043431_session_message_cursor.js +1 -1
  364. package/dist/database/migration/20260323234822_events.js +1 -1
  365. package/dist/database/migration/20260410174513_workspace-name.js +1 -1
  366. package/dist/database/migration/20260413175956_chief_energizer.js +1 -1
  367. package/dist/database/migration/20260423070820_add_icon_url_override.js +1 -1
  368. package/dist/database/migration/20260427172553_slow_nightmare.js +1 -1
  369. package/dist/database/migration/20260428004200_add_session_path.js +1 -1
  370. package/dist/database/migration/20260501142318_next_venus.js +1 -1
  371. package/dist/database/migration/20260504145000_add_sync_owner.js +1 -1
  372. package/dist/database/migration/20260507164347_add_workspace_time.js +1 -1
  373. package/dist/database/migration/20260510033149_session_usage.js +1 -1
  374. package/dist/database/migration/20260511000411_data_migration_state.js +1 -1
  375. package/dist/database/migration/20260511173437_session-metadata.js +1 -1
  376. package/dist/database/migration/20260601010001_normalize_storage_paths.js +1 -1
  377. package/dist/database/migration/20260601202201_amazing_prowler.js +1 -1
  378. package/dist/database/migration/20260602002951_lowly_union_jack.js +1 -1
  379. package/dist/database/migration/20260602182828_add_project_directories.js +1 -1
  380. package/dist/database/migration/20260603001617_session_message_projection_indexes.js +1 -1
  381. package/dist/database/migration/20260603040000_session_message_projection_order.js +1 -1
  382. package/dist/database/migration/20260603141458_session_input_inbox.js +1 -1
  383. package/dist/database/migration/20260603160727_jittery_ezekiel_stane.js +1 -1
  384. package/dist/database/migration/20260604172448_event_sourced_session_input.js +1 -1
  385. package/dist/database/migration/20260605003541_add_session_context_snapshot.js +1 -1
  386. package/dist/database/migration/20260605042240_add_context_epoch_agent.js +1 -1
  387. package/dist/database/migration/20260611035744_credential.js +1 -1
  388. package/dist/database/migration/20260611192811_lush_chimera.js +1 -1
  389. package/dist/database/migration/20260612174303_project_dir_strategy.js +1 -1
  390. package/dist/database/migration/20260622142730_simplify_session_context_epoch.js +1 -1
  391. package/dist/database/migration/20260622170816_reset_v2_session_state.js +1 -1
  392. package/dist/database/migration/20260622202450_simplify_session_input.js +1 -1
  393. package/dist/database/migration/20260804233008_loose_psylocke.js +1 -1
  394. package/dist/database/migration/20260805200742_import_legacy_credentials.js +1 -1
  395. package/dist/database/migration/20260808023530_workspace_domain.js +1 -1
  396. package/dist/database/migration/20260811161259_execution_claim_attempts.js +1 -1
  397. package/dist/database/migration/20260812181746_session_inbox.js +1 -1
  398. package/dist/database/migration/20260812213948_worktree.js +1 -1
  399. package/dist/database/migration/20260819222447_session_viewed_state.js +1 -1
  400. package/dist/database/migration/20260823191254_nullable_workspace_binding.js +1 -1
  401. package/dist/database/migration/20260910120000_clear_v1_session_permission.js +1 -1
  402. package/dist/database/migration/20260923013825_project_time_active.js +1 -1
  403. package/dist/database/migration/20261007190000_azure_cli_external_credential.js +1 -1
  404. package/dist/database/migration/20261010180456_project_time_archived.js +1 -1
  405. package/dist/database/migration/20261024002554_session_allowance.js +1 -1
  406. package/dist/database/migration/20261024175301_drop_session_allowance.js +1 -1
  407. package/dist/database/migration/20261025123711_blob.js +1 -1
  408. package/dist/database/migration/20261025154125_drop_session_pending.js +1 -1
  409. package/dist/database/migration/20261026223005_schedule.js +6 -0
  410. package/dist/database/migration.gen.js +56 -55
  411. package/dist/database/migration.js +58 -57
  412. package/dist/database/path.js +2 -2
  413. package/dist/database/schema.gen.js +1 -1
  414. package/dist/database/schema.sql.js +1 -1
  415. package/dist/database/sqlite.bun.js +1 -1
  416. package/dist/database/sqlite.js +1 -1
  417. package/dist/database/sqlite.node.js +1 -1
  418. package/dist/database/sqlite.workerd.js +1 -1
  419. package/dist/database/v1-migration.bun.js +99 -98
  420. package/dist/database/v1-migration.js +1 -1
  421. package/dist/effect/app-node-builder.js +383 -380
  422. package/dist/effect/app-node-platform.js +2 -2
  423. package/dist/effect/keyed-mutex.js +3 -3
  424. package/dist/effect/websocket-constructor.js +1 -1
  425. package/dist/environment/driver.js +1 -1
  426. package/dist/environment/environment.js +102 -101
  427. package/dist/environment/exec-defaults.js +2 -2
  428. package/dist/environment/files.js +1 -1
  429. package/dist/environment/index.js +104 -103
  430. package/dist/environment/local.js +2 -2
  431. package/dist/environment/memory.js +2 -2
  432. package/dist/environment/unavailable.js +3 -3
  433. package/dist/event/sql.js +1 -1
  434. package/dist/event-logger.js +77 -76
  435. package/dist/file-access.js +149 -148
  436. package/dist/file-mutation.js +103 -102
  437. package/dist/file-retention.js +1 -1
  438. package/dist/filesystem/fff.bun.js +2 -2
  439. package/dist/filesystem/fff.js +1 -1
  440. package/dist/filesystem/fff.node.js +2 -2
  441. package/dist/filesystem/fff.workerd.js +2 -2
  442. package/dist/filesystem/file-watch.js +84 -83
  443. package/dist/filesystem/location-watcher-policy.js +6 -6
  444. package/dist/filesystem/location-watcher.js +235 -234
  445. package/dist/filesystem/protected.js +1 -1
  446. package/dist/filesystem/search.js +108 -107
  447. package/dist/filesystem/watcher-binding.js +1 -1
  448. package/dist/filesystem/watcher.js +9 -9
  449. package/dist/filesystem.js +111 -110
  450. package/dist/form.js +93 -92
  451. package/dist/formatter/builtins.js +4 -4
  452. package/dist/formatter.js +96 -95
  453. package/dist/generate.js +110 -109
  454. package/dist/git.js +7 -7
  455. package/dist/github-copilot/chat/convert-to-openai-compatible-chat-messages.js +1 -1
  456. package/dist/github-copilot/chat/get-response-metadata.js +1 -1
  457. package/dist/github-copilot/chat/map-openai-compatible-finish-reason.js +1 -1
  458. package/dist/github-copilot/chat/openai-compatible-chat-language-model.js +7 -7
  459. package/dist/github-copilot/chat/openai-compatible-chat-options.js +1 -1
  460. package/dist/github-copilot/chat/openai-compatible-prepare-tools.js +1 -1
  461. package/dist/github-copilot/copilot-provider.js +17 -17
  462. package/dist/github-copilot/models.js +108 -107
  463. package/dist/github-copilot/openai-compatible-error.js +1 -1
  464. package/dist/github-copilot/responses/convert-to-openai-responses-input.js +1 -1
  465. package/dist/github-copilot/responses/map-openai-responses-finish-reason.js +1 -1
  466. package/dist/github-copilot/responses/openai-error.js +1 -1
  467. package/dist/github-copilot/responses/openai-responses-language-model.js +10 -10
  468. package/dist/github-copilot/responses/openai-responses-prepare-tools.js +6 -6
  469. package/dist/github-copilot/responses/tool/code-interpreter.js +1 -1
  470. package/dist/github-copilot/responses/tool/file-search.js +1 -1
  471. package/dist/github-copilot/responses/tool/image-generation.js +1 -1
  472. package/dist/github-copilot/responses/tool/web-search-preview.js +1 -1
  473. package/dist/github-copilot/responses/tool/web-search.js +1 -1
  474. package/dist/image/photon-normalize.js +1 -1
  475. package/dist/image/photon-worker.js +1 -1
  476. package/dist/image/photon.js +4 -4
  477. package/dist/image.js +6 -6
  478. package/dist/instance/service.js +3 -3
  479. package/dist/instance.js +374 -371
  480. package/dist/instruction-discovery.js +93 -92
  481. package/dist/instructions/builtins.js +96 -95
  482. package/dist/instructions/index.js +1 -1
  483. package/dist/integration/connection.js +5 -5
  484. package/dist/integration.js +94 -93
  485. package/dist/job.js +83 -82
  486. package/dist/kv/sql.js +2 -2
  487. package/dist/kv.js +80 -79
  488. package/dist/location-activity.js +164 -163
  489. package/dist/location-lifecycle.js +143 -142
  490. package/dist/location-service-map.js +95 -94
  491. package/dist/location-services.js +373 -370
  492. package/dist/location.js +92 -91
  493. package/dist/managed-policy.js +5 -11
  494. package/dist/mcp/client.js +100 -99
  495. package/dist/mcp/index.js +118 -117
  496. package/dist/mcp/instructions.js +169 -168
  497. package/dist/mcp/oauth.js +85 -84
  498. package/dist/mcp/socket-client.js +1 -1
  499. package/dist/mcp/stdio.js +99 -98
  500. package/dist/mime.js +1 -1
  501. package/dist/modal/models.js +108 -107
  502. package/dist/model-resolver.js +106 -105
  503. package/dist/model-retry.js +1 -1
  504. package/dist/model.js +111 -110
  505. package/dist/models-dev/v1.js +1 -1
  506. package/dist/models-dev.js +117 -116
  507. package/dist/oauth/page.js +1 -1
  508. package/dist/permission/saved.js +87 -86
  509. package/dist/permission/sql.js +5 -5
  510. package/dist/permission.js +150 -149
  511. package/dist/persistent-pty/binary.bun.js +1 -1
  512. package/dist/persistent-pty/daemon.js +1 -1
  513. package/dist/persistent-pty/index.js +91 -90
  514. package/dist/persistent-pty/pty-binding.js +1 -1
  515. package/dist/persistent-pty.js +82 -81
  516. package/dist/plugin/agent.js +83 -82
  517. package/dist/plugin/command.js +111 -110
  518. package/dist/plugin/goal.js +16 -0
  519. package/dist/plugin/hooks.js +5 -5
  520. package/dist/plugin/host.js +228 -227
  521. package/dist/plugin/identity.js +5 -5
  522. package/dist/plugin/instance.js +5 -5
  523. package/dist/plugin/internal.js +346 -343
  524. package/dist/plugin/mcp-codemode-defaults.js +3 -3
  525. package/dist/plugin/models-dev.js +106 -105
  526. package/dist/plugin/module.js +124 -123
  527. package/dist/plugin/optimize.js +2 -2
  528. package/dist/plugin/plan.js +139 -138
  529. package/dist/plugin/promise.js +1 -1
  530. package/dist/plugin/provider/amazon-bedrock.js +100 -98
  531. package/dist/plugin/provider/azure.js +122 -121
  532. package/dist/plugin/provider/cerebras.js +1 -1
  533. package/dist/plugin/provider/chatgpt.js +122 -121
  534. package/dist/plugin/provider/cloudflare-ai-gateway.js +120 -118
  535. package/dist/plugin/provider/cloudflare-workers-ai.js +120 -118
  536. package/dist/plugin/provider/configured.js +118 -117
  537. package/dist/plugin/provider/credential-settings.js +88 -0
  538. package/dist/plugin/provider/databricks.js +1 -1
  539. package/dist/plugin/provider/digitalocean.js +102 -101
  540. package/dist/plugin/provider/dynamic.js +2 -2
  541. package/dist/plugin/provider/github-copilot.js +104 -103
  542. package/dist/plugin/provider/gitlab.js +103 -101
  543. package/dist/plugin/provider/google-vertex.js +119 -118
  544. package/dist/plugin/provider/kilo.js +1 -1
  545. package/dist/plugin/provider/llmgateway.js +85 -84
  546. package/dist/plugin/provider/lmstudio.js +131 -130
  547. package/dist/plugin/provider/local.js +128 -127
  548. package/dist/plugin/provider/modal.js +101 -100
  549. package/dist/plugin/provider/neon.js +1 -1
  550. package/dist/plugin/provider/nvidia.js +1 -1
  551. package/dist/plugin/provider/ollama.js +131 -130
  552. package/dist/plugin/provider/openai-context-caps.js +99 -98
  553. package/dist/plugin/provider/openai.js +122 -121
  554. package/dist/plugin/provider/opencode.js +125 -127
  555. package/dist/plugin/provider/openrouter.js +100 -99
  556. package/dist/plugin/provider/poe.js +86 -85
  557. package/dist/plugin/provider/prompt-cache-key.js +1 -1
  558. package/dist/plugin/provider/sap-ai-core.js +100 -99
  559. package/dist/plugin/provider/sdk-factory.js +1 -1
  560. package/dist/plugin/provider/snowflake-cortex.js +121 -120
  561. package/dist/plugin/provider/vllm.js +131 -130
  562. package/dist/plugin/provider/xai.js +100 -99
  563. package/dist/plugin/provider/zenmux.js +1 -1
  564. package/dist/plugin/provider.js +173 -178
  565. package/dist/plugin/sdk.js +83 -82
  566. package/dist/plugin/service.js +3 -3
  567. package/dist/plugin/skill.js +142 -141
  568. package/dist/plugin/source-directory.js +1 -1
  569. package/dist/plugin/supervisor.js +364 -362
  570. package/dist/plugin/tool-input-repair.js +4 -4
  571. package/dist/plugin/update.js +6 -6
  572. package/dist/plugin/vcs/git.js +95 -94
  573. package/dist/plugin/vcs/hg.js +95 -94
  574. package/dist/plugin/verbosity.js +102 -101
  575. package/dist/plugin/warming.js +120 -119
  576. package/dist/plugin/websearch/exa.js +5 -5
  577. package/dist/plugin/websearch/firecrawl.js +8 -8
  578. package/dist/plugin/websearch/index.js +9 -9
  579. package/dist/plugin/websearch/mcp.js +6 -6
  580. package/dist/plugin/websearch/parallel.js +8 -8
  581. package/dist/plugin/websearch/tavily.js +6 -6
  582. package/dist/plugin/websearch/tinyfish.js +8 -8
  583. package/dist/plugin.js +235 -234
  584. package/dist/project/icon.js +5 -5
  585. package/dist/project/schema.js +6 -6
  586. package/dist/project/sql.js +4 -4
  587. package/dist/project.js +95 -94
  588. package/dist/provider.js +110 -109
  589. package/dist/pty/protocol.js +1 -1
  590. package/dist/pty/ticket.js +1 -1
  591. package/dist/pty.js +107 -106
  592. package/dist/reference/instructions.js +95 -94
  593. package/dist/reference.js +99 -98
  594. package/dist/repository-cache.js +89 -88
  595. package/dist/repository.js +3 -3
  596. package/dist/ripgrep/binary.js +2 -2
  597. package/dist/ripgrep.js +106 -105
  598. package/dist/rpc.js +95 -94
  599. package/dist/schedule/sql.js +11 -0
  600. package/dist/schedule.js +247 -0
  601. package/dist/schema.js +1 -1
  602. package/dist/session/affinity.js +1 -1
  603. package/dist/session/background.js +8 -0
  604. package/dist/session/blob.js +121 -120
  605. package/dist/session/command.js +81 -80
  606. package/dist/session/compaction.js +163 -162
  607. package/dist/session/context.js +189 -188
  608. package/dist/session/diff.js +97 -96
  609. package/dist/session/environment.js +5 -5
  610. package/dist/session/error.js +5 -5
  611. package/dist/session/event.js +1 -1
  612. package/dist/session/execution/restart.js +250 -228
  613. package/dist/session/execution.js +153 -152
  614. package/dist/session/generate.js +189 -188
  615. package/dist/session/history.js +128 -127
  616. package/dist/session/inbox.js +137 -136
  617. package/dist/session/info.js +3 -3
  618. package/dist/session/instruction-entry.js +86 -85
  619. package/dist/session/instruction-state.js +8 -8
  620. package/dist/session/instructions.js +133 -132
  621. package/dist/session/message-updater.js +2 -2
  622. package/dist/session/message.js +1 -1
  623. package/dist/session/model-request.js +156 -155
  624. package/dist/session/model-transport.js +9 -9
  625. package/dist/session/move.js +157 -156
  626. package/dist/session/projector.js +135 -134
  627. package/dist/session/prompt.js +141 -140
  628. package/dist/session/recent-text.js +1 -1
  629. package/dist/session/revert.js +131 -130
  630. package/dist/session/run-coordinator.js +1 -1
  631. package/dist/session/runner/index.js +3 -3
  632. package/dist/session/runner/llm.js +240 -238
  633. package/dist/session/runner/max-steps.js +1 -1
  634. package/dist/session/runner/model.js +107 -106
  635. package/dist/session/runner/publish-llm-event.js +142 -141
  636. package/dist/session/runner/retry.js +5 -5
  637. package/dist/session/runner/step.js +155 -154
  638. package/dist/session/runner/to-llm-message.js +129 -128
  639. package/dist/session/schema.js +5 -5
  640. package/dist/session/session.js +173 -172
  641. package/dist/session/shell.js +136 -135
  642. package/dist/session/skill.js +140 -139
  643. package/dist/session/sql.js +5 -5
  644. package/dist/session/stats.js +80 -79
  645. package/dist/session/store.js +134 -133
  646. package/dist/session/stored.js +4 -4
  647. package/dist/session/subagent-completion.js +1 -1
  648. package/dist/session/subagent-job.js +218 -217
  649. package/dist/session/system-prompt.js +3 -3
  650. package/dist/session/title.js +193 -192
  651. package/dist/session/to-session-error.js +141 -140
  652. package/dist/session/transfer.js +222 -221
  653. package/dist/session/usage.js +1 -1
  654. package/dist/session.js +226 -225
  655. package/dist/shell/parse.js +8 -8
  656. package/dist/shell/result.js +1 -1
  657. package/dist/shell/scan.js +1 -1
  658. package/dist/shell/select.js +15 -15
  659. package/dist/shell.js +138 -137
  660. package/dist/skill/discovery.js +6 -6
  661. package/dist/skill/instructions.js +144 -143
  662. package/dist/skill.js +149 -148
  663. package/dist/snapshot.js +102 -101
  664. package/dist/state.js +1 -1
  665. package/dist/tool/html-markdown.js +1 -1
  666. package/dist/tool/http-body.js +1 -1
  667. package/dist/tool/mcp.js +166 -165
  668. package/dist/tool/plugin/edit.js +157 -156
  669. package/dist/tool/plugin/file-diff.js +1 -1
  670. package/dist/tool/plugin/glob.js +159 -158
  671. package/dist/tool/plugin/grep.js +159 -158
  672. package/dist/tool/plugin/image-generate.js +238 -0
  673. package/dist/tool/plugin/mcp-resource.js +155 -154
  674. package/dist/tool/plugin/opencode.js +154 -153
  675. package/dist/tool/plugin/patch.js +157 -156
  676. package/dist/tool/plugin/question.js +147 -146
  677. package/dist/tool/plugin/read.js +160 -159
  678. package/dist/tool/plugin/schedule.js +229 -0
  679. package/dist/tool/plugin/shell.js +223 -222
  680. package/dist/tool/plugin/skill.js +150 -149
  681. package/dist/tool/plugin/subagent.js +227 -226
  682. package/dist/tool/plugin/todo.js +146 -145
  683. package/dist/tool/plugin/webfetch.js +152 -149
  684. package/dist/tool/plugin/websearch.js +146 -145
  685. package/dist/tool/plugin/write.js +155 -154
  686. package/dist/tool/read-filesystem.js +111 -110
  687. package/dist/tool/runtime.js +1 -1
  688. package/dist/tool-output.js +7 -7
  689. package/dist/tool.js +14 -14
  690. package/dist/types/codemode/web.d.ts +23 -1
  691. package/dist/types/config/plugin/policy.d.ts +1 -2
  692. package/dist/types/database/migration/20261026223005_schedule.d.ts +3 -0
  693. package/dist/types/job.d.ts +7 -0
  694. package/dist/types/managed-policy.d.ts +2 -20
  695. package/dist/types/model.d.ts +3 -13
  696. package/dist/types/permission.d.ts +2 -0
  697. package/dist/types/plugin/goal.d.ts +8 -0
  698. package/dist/types/plugin/internal.d.ts +4 -3
  699. package/dist/types/plugin/module.d.ts +1 -2
  700. package/dist/types/plugin/provider/amazon-bedrock.d.ts +1 -1
  701. package/dist/types/plugin/provider/cloudflare-ai-gateway.d.ts +1 -1
  702. package/dist/types/plugin/provider/cloudflare-workers-ai.d.ts +1 -1
  703. package/dist/types/plugin/provider/credential-settings.d.ts +33 -0
  704. package/dist/types/plugin/provider/gitlab.d.ts +2 -1
  705. package/dist/types/plugin/provider/opencode.d.ts +1 -2
  706. package/dist/types/schedule/sql.d.ts +298 -0
  707. package/dist/types/schedule.d.ts +193 -0
  708. package/dist/types/session/background.d.ts +40 -0
  709. package/dist/types/session/model-request.d.ts +1 -1
  710. package/dist/types/session/runner/index.d.ts +16 -0
  711. package/dist/types/tool/plugin/image-generate.d.ts +35 -0
  712. package/dist/types/tool/plugin/opencode.d.ts +1 -0
  713. package/dist/types/tool/plugin/schedule.d.ts +46 -0
  714. package/dist/types/tool/plugin/webfetch.d.ts +1 -0
  715. package/dist/usage-limits.js +96 -95
  716. package/dist/util/error-summary.js +1 -1
  717. package/dist/util/git-executable.js +3 -3
  718. package/dist/util/lazy.js +1 -1
  719. package/dist/util/slug.js +1 -1
  720. package/dist/util/token.js +1 -1
  721. package/dist/util/which.js +1 -1
  722. package/dist/util/wildcard.js +1 -1
  723. package/dist/v1/config/agent.js +5 -5
  724. package/dist/v1/config/command.js +5 -5
  725. package/dist/v1/config/mcp.js +4 -4
  726. package/dist/v1/config/migrate.js +101 -100
  727. package/dist/v1/config/permission.js +3 -3
  728. package/dist/v1/config/plugin.js +1 -1
  729. package/dist/v1/config/provider-options.js +1 -1
  730. package/dist/v1/config/provider.js +4 -4
  731. package/dist/variant.js +102 -101
  732. package/dist/vcs/patch.js +1 -1
  733. package/dist/vcs.js +98 -97
  734. package/dist/voice.js +95 -94
  735. package/dist/websearch.js +91 -90
  736. package/dist/wellknown/plugin.js +83 -82
  737. package/dist/wellknown.js +86 -85
  738. package/dist/workspace/driver.js +7 -7
  739. package/dist/workspace/sql.js +1 -1
  740. package/dist/workspace.js +89 -88
  741. package/dist/worktree/directory.js +2 -2
  742. package/dist/worktree/git.js +11 -11
  743. package/dist/worktree/sql.js +5 -5
  744. package/dist/worktree/strategies.js +98 -97
  745. package/dist/worktree.js +109 -108
  746. package/package.json +11 -14
  747. package/dist/chunks/tool-6bshxcsx.js +0 -18
  748. package/dist/chunks/tool-7f02p6s5.js +0 -32
  749. package/dist/chunks/tool-9kqcsae8.js +0 -59
  750. package/dist/chunks/tool-asd4mxps.js +0 -26
  751. package/dist/chunks/tool-j775gmwt.js +0 -171
  752. package/dist/chunks/tool-veqvce7d.js +0 -15
  753. package/dist/chunks/tool-ym463w8f.js +0 -17
  754. package/dist/chunks/tool-z0bkrqjs.js +0 -15
  755. package/dist/chunks/tool-zfjx7vmh.js +0 -257
  756. package/dist/plugin/provider/cohere.js +0 -7
  757. package/dist/plugin/provider/factory.js +0 -6
  758. package/dist/plugin/provider/opencode-legacy.js +0 -119
  759. package/dist/plugin/provider/perplexity.js +0 -7
  760. package/dist/plugin/provider/vercel.js +0 -103
  761. package/dist/types/plugin/provider/cohere.d.ts +0 -1
  762. package/dist/types/plugin/provider/factory.d.ts +0 -6
  763. package/dist/types/plugin/provider/opencode-legacy.d.ts +0 -69
  764. package/dist/types/plugin/provider/perplexity.d.ts +0 -1
  765. package/dist/types/plugin/provider/vercel.d.ts +0 -1
  766. /package/dist/chunks/{tool-0qkdqm5v.js → credential-0qkdqm5v.js} +0 -0
  767. /package/dist/chunks/{tool-0zkw76rk.js → credential-0zkw76rk.js} +0 -0
  768. /package/dist/chunks/{tool-17cy0kzp.js → credential-17cy0kzp.js} +0 -0
  769. /package/dist/chunks/{tool-1cnp2v09.js → credential-1cnp2v09.js} +0 -0
  770. /package/dist/chunks/{tool-1jakw16s.js → credential-1jakw16s.js} +0 -0
  771. /package/dist/chunks/{tool-24dcb14g.js → credential-24dcb14g.js} +0 -0
  772. /package/dist/chunks/{tool-2710q6r3.js → credential-2710q6r3.js} +0 -0
  773. /package/dist/chunks/{tool-2bv980vf.js → credential-2bv980vf.js} +0 -0
  774. /package/dist/chunks/{tool-2c3vjs8z.js → credential-2c3vjs8z.js} +0 -0
  775. /package/dist/chunks/{tool-359p4xyc.js → credential-359p4xyc.js} +0 -0
  776. /package/dist/chunks/{tool-3asan66x.js → credential-3asan66x.js} +0 -0
  777. /package/dist/chunks/{tool-3v8g72cx.js → credential-3v8g72cx.js} +0 -0
  778. /package/dist/chunks/{tool-3wcehsnq.js → credential-3wcehsnq.js} +0 -0
  779. /package/dist/chunks/{tool-43n2bw4t.js → credential-43n2bw4t.js} +0 -0
  780. /package/dist/chunks/{tool-4knz6hnm.js → credential-4knz6hnm.js} +0 -0
  781. /package/dist/chunks/{tool-4vcrnpx2.js → credential-4vcrnpx2.js} +0 -0
  782. /package/dist/chunks/{tool-4y7fprxs.js → credential-4y7fprxs.js} +0 -0
  783. /package/dist/chunks/{tool-53557ph1.js → credential-53557ph1.js} +0 -0
  784. /package/dist/chunks/{tool-550bvhaj.js → credential-550bvhaj.js} +0 -0
  785. /package/dist/chunks/{tool-5w3e23ze.js → credential-5w3e23ze.js} +0 -0
  786. /package/dist/chunks/{tool-6prwharc.js → credential-6prwharc.js} +0 -0
  787. /package/dist/chunks/{tool-6q2bdcd1.js → credential-6q2bdcd1.js} +0 -0
  788. /package/dist/chunks/{tool-7akdwqpd.js → credential-7akdwqpd.js} +0 -0
  789. /package/dist/chunks/{tool-7m9af43g.js → credential-7m9af43g.js} +0 -0
  790. /package/dist/chunks/{tool-822emrt2.js → credential-822emrt2.js} +0 -0
  791. /package/dist/chunks/{tool-84wd9syh.js → credential-84wd9syh.js} +0 -0
  792. /package/dist/chunks/{tool-88xbtdfr.js → credential-88xbtdfr.js} +0 -0
  793. /package/dist/chunks/{tool-8n3pysct.js → credential-8n3pysct.js} +0 -0
  794. /package/dist/chunks/{tool-8wj87zfr.js → credential-8wj87zfr.js} +0 -0
  795. /package/dist/chunks/{tool-9a4afbnw.js → credential-9a4afbnw.js} +0 -0
  796. /package/dist/chunks/{tool-9rqn6x4v.js → credential-9rqn6x4v.js} +0 -0
  797. /package/dist/chunks/{tool-a058387c.js → credential-a058387c.js} +0 -0
  798. /package/dist/chunks/{tool-a6k6eb26.js → credential-a6k6eb26.js} +0 -0
  799. /package/dist/chunks/{tool-af5trqkr.js → credential-af5trqkr.js} +0 -0
  800. /package/dist/chunks/{tool-afrmfg78.js → credential-afrmfg78.js} +0 -0
  801. /package/dist/chunks/{tool-aqzs7mqg.js → credential-aqzs7mqg.js} +0 -0
  802. /package/dist/chunks/{tool-atq7p7m5.js → credential-atq7p7m5.js} +0 -0
  803. /package/dist/chunks/{tool-beh6qq61.js → credential-beh6qq61.js} +0 -0
  804. /package/dist/chunks/{tool-bkyjaxrp.js → credential-bkyjaxrp.js} +0 -0
  805. /package/dist/chunks/{tool-bmr6ed5q.js → credential-bmr6ed5q.js} +0 -0
  806. /package/dist/chunks/{tool-cf4snx6d.js → credential-cf4snx6d.js} +0 -0
  807. /package/dist/chunks/{tool-cqv5kn06.js → credential-cqv5kn06.js} +0 -0
  808. /package/dist/chunks/{tool-cvy3z8tj.js → credential-cvy3z8tj.js} +0 -0
  809. /package/dist/chunks/{tool-d9fn303g.js → credential-d9fn303g.js} +0 -0
  810. /package/dist/chunks/{tool-d9jj8t3e.js → credential-d9jj8t3e.js} +0 -0
  811. /package/dist/chunks/{tool-dajrwvna.js → credential-dajrwvna.js} +0 -0
  812. /package/dist/chunks/{tool-dap0rakb.js → credential-dap0rakb.js} +0 -0
  813. /package/dist/chunks/{tool-df08tz66.js → credential-df08tz66.js} +0 -0
  814. /package/dist/chunks/{tool-dy18nga0.js → credential-dy18nga0.js} +0 -0
  815. /package/dist/chunks/{tool-e5kj55wp.js → credential-e5kj55wp.js} +0 -0
  816. /package/dist/chunks/{tool-e73j6tqm.js → credential-e73j6tqm.js} +0 -0
  817. /package/dist/chunks/{tool-ec1grn59.js → credential-ec1grn59.js} +0 -0
  818. /package/dist/chunks/{tool-eh3zwz77.js → credential-eh3zwz77.js} +0 -0
  819. /package/dist/chunks/{tool-emrn6kk6.js → credential-emrn6kk6.js} +0 -0
  820. /package/dist/chunks/{tool-f0mxakyp.js → credential-f0mxakyp.js} +0 -0
  821. /package/dist/chunks/{tool-f6n9ztr4.js → credential-f6n9ztr4.js} +0 -0
  822. /package/dist/chunks/{tool-faypxj3z.js → credential-faypxj3z.js} +0 -0
  823. /package/dist/chunks/{tool-fd410y7t.js → credential-fd410y7t.js} +0 -0
  824. /package/dist/chunks/{tool-fkpq3x5p.js → credential-fkpq3x5p.js} +0 -0
  825. /package/dist/chunks/{tool-g4wezp1m.js → credential-g4wezp1m.js} +0 -0
  826. /package/dist/chunks/{tool-g86h250q.js → credential-g86h250q.js} +0 -0
  827. /package/dist/chunks/{tool-gebd4c9n.js → credential-gebd4c9n.js} +0 -0
  828. /package/dist/chunks/{tool-gftt206x.js → credential-gftt206x.js} +0 -0
  829. /package/dist/chunks/{tool-hcxmzztb.js → credential-hcxmzztb.js} +0 -0
  830. /package/dist/chunks/{tool-hk9envan.js → credential-hk9envan.js} +0 -0
  831. /package/dist/chunks/{tool-j2ntwpah.js → credential-j2ntwpah.js} +0 -0
  832. /package/dist/chunks/{tool-j5zkgpj8.js → credential-j5zkgpj8.js} +0 -0
  833. /package/dist/chunks/{tool-jjkms2e6.js → credential-jjkms2e6.js} +0 -0
  834. /package/dist/chunks/{tool-jr7sbwjy.js → credential-jr7sbwjy.js} +0 -0
  835. /package/dist/chunks/{tool-jwfs4k6c.js → credential-jwfs4k6c.js} +0 -0
  836. /package/dist/chunks/{tool-jwr30sdr.js → credential-jwr30sdr.js} +0 -0
  837. /package/dist/chunks/{tool-jze0r7bz.js → credential-jze0r7bz.js} +0 -0
  838. /package/dist/chunks/{tool-jzg6c2d5.js → credential-jzg6c2d5.js} +0 -0
  839. /package/dist/chunks/{tool-m18g726c.js → credential-m18g726c.js} +0 -0
  840. /package/dist/chunks/{tool-mp448xyj.js → credential-mp448xyj.js} +0 -0
  841. /package/dist/chunks/{tool-msx8hqn2.js → credential-msx8hqn2.js} +0 -0
  842. /package/dist/chunks/{tool-n05xt0ee.js → credential-n05xt0ee.js} +0 -0
  843. /package/dist/chunks/{tool-n3j8tn72.js → credential-n3j8tn72.js} +0 -0
  844. /package/dist/chunks/{tool-ncqqe42p.js → credential-ncqqe42p.js} +0 -0
  845. /package/dist/chunks/{tool-njntx4h6.js → credential-njntx4h6.js} +0 -0
  846. /package/dist/chunks/{tool-p71gwv9c.js → credential-p71gwv9c.js} +0 -0
  847. /package/dist/chunks/{tool-q3sfg36h.js → credential-q3sfg36h.js} +0 -0
  848. /package/dist/chunks/{tool-q74kybfr.js → credential-q74kybfr.js} +0 -0
  849. /package/dist/chunks/{tool-qaymkmh1.js → credential-qaymkmh1.js} +0 -0
  850. /package/dist/chunks/{tool-qb87gjwd.js → credential-qb87gjwd.js} +0 -0
  851. /package/dist/chunks/{tool-qfa1cgps.js → credential-qfa1cgps.js} +0 -0
  852. /package/dist/chunks/{tool-qg3g05ea.js → credential-qg3g05ea.js} +0 -0
  853. /package/dist/chunks/{tool-qrg20bc0.js → credential-qrg20bc0.js} +0 -0
  854. /package/dist/chunks/{tool-rcb2kzg1.js → credential-rcb2kzg1.js} +0 -0
  855. /package/dist/chunks/{tool-sdp7kfr6.js → credential-sdp7kfr6.js} +0 -0
  856. /package/dist/chunks/{tool-ssg3fenm.js → credential-ssg3fenm.js} +0 -0
  857. /package/dist/chunks/{tool-ve7vex1e.js → credential-ve7vex1e.js} +0 -0
  858. /package/dist/chunks/{tool-w803qqfp.js → credential-w803qqfp.js} +0 -0
  859. /package/dist/chunks/{tool-wc3fc9cn.js → credential-wc3fc9cn.js} +0 -0
  860. /package/dist/chunks/{tool-wer8tq1h.js → credential-wer8tq1h.js} +0 -0
  861. /package/dist/chunks/{tool-wtztk69x.js → credential-wtztk69x.js} +0 -0
  862. /package/dist/chunks/{tool-x0ckcb58.js → credential-x0ckcb58.js} +0 -0
  863. /package/dist/chunks/{tool-x61499pn.js → credential-x61499pn.js} +0 -0
  864. /package/dist/chunks/{tool-y44na4kk.js → credential-y44na4kk.js} +0 -0
  865. /package/dist/chunks/{tool-y8f7s663.js → credential-y8f7s663.js} +0 -0
  866. /package/dist/chunks/{tool-ygaqb7jw.js → credential-ygaqb7jw.js} +0 -0
  867. /package/dist/chunks/{tool-z5v4ffb3.js → credential-z5v4ffb3.js} +0 -0
  868. /package/dist/chunks/{tool-z9919s4g.js → credential-z9919s4g.js} +0 -0
@@ -1,21 +1,21 @@
1
1
  import {
2
2
  AbsolutePath2,
3
3
  RelativePath2
4
- } from "./tool-z5v4ffb3.js";
4
+ } from "./credential-z5v4ffb3.js";
5
5
  import {
6
6
  makeUnsafe2
7
- } from "./tool-11hfp36g.js";
7
+ } from "./credential-8jztxfpf.js";
8
8
  import {
9
9
  MAX_TOTAL_PATCH_BYTES2,
10
10
  emptyPatch2,
11
11
  chunksByFile2
12
- } from "./tool-rb9dy4dg.js";
12
+ } from "./credential-rb9dy4dg.js";
13
13
  import {
14
14
  gitExecutable2
15
- } from "./tool-sa3fpqfw.js";
15
+ } from "./credential-sa3fpqfw.js";
16
16
  import {
17
17
  __export
18
- } from "./tool-9rqn6x4v.js";
18
+ } from "./credential-9rqn6x4v.js";
19
19
 
20
20
  // src/git.ts
21
21
  var exports_git3 = {};
@@ -32,7 +32,7 @@ __export(exports_git3, {
32
32
  });
33
33
  import os from "os";
34
34
  import path from "path";
35
- import { Cause, Context, Effect, Exit, Layer, Option, Schedule, Schema } from "effect";
35
+ import { Cause, Context, Deferred, Effect, Exit, Layer, Option, Schedule, Schema } from "effect";
36
36
  import { ChildProcess } from "effect/process";
37
37
  import { FSUtil } from "@opencode/util/fs-util";
38
38
  import { AppProcess } from "@opencode/util/process";
@@ -337,13 +337,22 @@ var layer = Layer.effect(Service85, Effect.gen(function* () {
337
337
  yield* fs.ensureDir(path.join(input.directory, "objects", "info")).pipe(Effect.mapError(operationError("Failed to configure shared Git objects")));
338
338
  yield* fs.writeFileString(path.join(input.directory, "objects", "info", "alternates"), path.join(input.seed.commonDirectory, "objects") + `
339
339
  `).pipe(Effect.mapError(operationError("Failed to configure shared Git objects")));
340
- yield* fs.copyFile(path.join(input.seed.gitDirectory, "index"), path.join(input.directory, "index")).pipe(Effect.ignore);
340
+ const index = path.join(input.directory, "index");
341
+ yield* seedIndex(new Repository2({ worktree: input.worktree, gitDirectory: input.directory, commonDirectory: input.directory }), input.seed, index).pipe(Effect.catch(() => fs.remove(index, { force: true })), Effect.ignore);
341
342
  });
342
- const listChanges = Effect.fnUntraced(function* (repository, scope, index) {
343
+ const listChanges = Effect.fnUntraced(function* (repository, scope, index, excludeFrom) {
343
344
  const list = (args) => repositoryOperation("refresh", repository, args, { index }).pipe(Effect.map((result) => nuls(result.text).map((file) => RelativePath2.make(file.replace(/\/$/, "")))));
344
345
  const [tracked, untracked] = yield* Effect.all([
345
346
  list(["diff-files", "--name-only", "-z", "--", literalPathspec(scope)]),
346
- list(["ls-files", "--others", "--exclude-standard", "-z", "--", literalPathspec(scope)])
347
+ list([
348
+ "ls-files",
349
+ "--others",
350
+ ...excludeFrom ? [`--exclude-from=${excludeFrom}`] : [],
351
+ "--exclude-standard",
352
+ "-z",
353
+ "--",
354
+ literalPathspec(scope)
355
+ ])
347
356
  ], { concurrency: 2 });
348
357
  return { tracked, untracked };
349
358
  });
@@ -413,6 +422,17 @@ var layer = Layer.effect(Service85, Effect.gen(function* () {
413
422
  if (mtime)
414
423
  yield* fs.utimes(to, Option.getOrElse(info.atime, () => mtime), mtime).pipe(Effect.ignore);
415
424
  });
425
+ const seedIndex = Effect.fnUntraced(function* (store, source, target) {
426
+ yield* copyIndex(path.join(source.gitDirectory, "index"), target);
427
+ const shared = (yield* fs.readDirectory(source.gitDirectory)).filter((entry) => entry.startsWith("sharedindex."));
428
+ if (shared.length === 0)
429
+ return;
430
+ yield* Effect.forEach(shared, (entry) => {
431
+ const from = path.join(source.gitDirectory, entry);
432
+ const to = path.join(store.gitDirectory, entry);
433
+ return fs.link(from, to).pipe(Effect.catch(() => fs.copyFile(from, to)));
434
+ }).pipe(Effect.andThen(repositoryOperation("refresh", store, ["update-index", "--no-split-index"], { index: target })), Effect.ensuring(Effect.forEach(shared, (entry) => fs.remove(path.join(store.gitDirectory, entry), { force: true }).pipe(Effect.ignore))));
435
+ });
416
436
  const withTemporaryIndex = (repository, use) => Effect.acquireUseRelease(Effect.gen(function* () {
417
437
  const current = indexFile(repository);
418
438
  const index = temporaryIndex(repository);
@@ -439,20 +459,26 @@ var layer = Layer.effect(Service85, Effect.gen(function* () {
439
459
  }), (index) => fs.remove(index, { force: true }).pipe(Effect.ignore));
440
460
  const lastCaptures = new Map;
441
461
  const preparedStores = new Set;
462
+ const pendingCaptures = new Map;
463
+ const oversizedFiles = new Map;
442
464
  const attemptCapture = Effect.fnUntraced(function* (input) {
465
+ const sourceExclude = input.ignores ? path.join(input.ignores.commonDirectory, "info", "exclude") : undefined;
466
+ const excludeFrom = sourceExclude && (yield* fs.existsSafe(sourceExclude)) ? sourceExclude : undefined;
443
467
  const result = yield* withTemporaryIndex(input.repository, (index) => Effect.gen(function* () {
444
468
  const scanned = yield* indexFingerprint(index);
445
- const changes = yield* Effect.forEach(input.scopes, (scope) => listChanges(input.repository, scope, index), {
446
- concurrency: "unbounded"
447
- });
469
+ const changes = yield* Effect.forEach(input.scopes, (scope) => listChanges(input.repository, scope, index, excludeFrom), { concurrency: "unbounded" });
448
470
  const last = lastCaptures.get(input.repository.gitDirectory);
449
471
  const untracked = changes.flatMap((change) => change.untracked);
450
- const excluded = scanned && last?.fingerprint === scanned && changes.every((change) => !change.tracked.length) ? input.ignores ? yield* ignored({ repository: input.ignores, paths: untracked }) : new Set : undefined;
451
- if (last && excluded && untracked.every((file) => excluded.has(file)))
472
+ const oversized = oversizedFiles.get(input.repository.gitDirectory);
473
+ const stillOversized = new Set(oversized ? (yield* Effect.forEach(untracked.filter((file) => oversized.has(file)), (file) => oversizedStamp(input, file).pipe(Effect.map((current) => current && current === oversized.get(file) ? file : undefined)), { concurrency: 8 })).filter((file) => file !== undefined) : []);
474
+ const excluded = scanned && last?.fingerprint === scanned && changes.every((change) => !change.tracked.length) ? input.ignores ? yield* ignored({
475
+ repository: input.ignores,
476
+ paths: untracked.filter((file) => !stillOversized.has(file))
477
+ }) : new Set : undefined;
478
+ if (last && excluded && untracked.every((file) => excluded.has(file) || stillOversized.has(file)))
452
479
  return last.tree;
453
- yield* Effect.forEach(changes, (change) => updateIndex({ ...input, changes: change, index, excluded }), {
454
- discard: true
455
- });
480
+ const skipped = (yield* Effect.forEach(changes, (change) => updateIndex({ ...input, changes: change, index, excluded }))).flatMap((update) => update.skipped);
481
+ oversizedFiles.set(input.repository.gitDirectory, new Map((yield* Effect.forEach(skipped, (file) => oversizedStamp(input, file).pipe(Effect.map((value) => [file, value])), { concurrency: 8 })).filter((entry) => entry[1] !== undefined)));
456
482
  return yield* writeTree(input.repository, index);
457
483
  }));
458
484
  if (result.installed)
@@ -461,7 +487,38 @@ var layer = Layer.effect(Service85, Effect.gen(function* () {
461
487
  lastCaptures.delete(input.repository.gitDirectory);
462
488
  return result.value;
463
489
  });
464
- const captureTree = Effect.fn("Git.tree.capture")((input) => locked(input.repository, Effect.gen(function* () {
490
+ const oversizedStamp = (input, file) => fs.stat(path.join(input.repository.worktree, file)).pipe(Effect.map((info) => input.maximumUntrackedFileBytes && info.type === "File" && Number(info.size) > input.maximumUntrackedFileBytes ? `${info.size}:${Option.getOrUndefined(info.mtime)?.getTime()}` : undefined), Effect.orElseSucceed(() => {
491
+ return;
492
+ }));
493
+ const captureTree = Effect.fn("Git.tree.capture")(function* (input) {
494
+ const key = JSON.stringify([
495
+ input.repository.gitDirectory,
496
+ input.repository.worktree,
497
+ input.scopes,
498
+ input.ignores?.gitDirectory,
499
+ input.maximumUntrackedFileBytes
500
+ ]);
501
+ const pending = pendingCaptures.get(key);
502
+ if (pending) {
503
+ const exit = yield* Effect.exit(Deferred.await(pending));
504
+ if (Exit.isSuccess(exit) || !Cause.hasInterruptsOnly(exit.cause))
505
+ return yield* exit;
506
+ }
507
+ const deferred = Deferred.makeUnsafe();
508
+ const release = () => {
509
+ if (pendingCaptures.get(key) === deferred)
510
+ pendingCaptures.delete(key);
511
+ };
512
+ return yield* Effect.uninterruptibleMask((restore) => {
513
+ pendingCaptures.set(key, deferred);
514
+ return restore(captureLocked(input, release)).pipe(Effect.onExit((exit) => {
515
+ release();
516
+ return Deferred.done(deferred, exit);
517
+ }));
518
+ });
519
+ });
520
+ const captureLocked = (input, onStart) => locked(input.repository, Effect.gen(function* () {
521
+ onStart();
465
522
  if (!preparedStores.has(input.repository.gitDirectory)) {
466
523
  preparedStores.add(input.repository.gitDirectory);
467
524
  yield* sweepTemporaryIndexes(input.repository);
@@ -477,7 +534,7 @@ var layer = Layer.effect(Service85, Effect.gen(function* () {
477
534
  yield* rebuildIndex(input.repository, input.ignores);
478
535
  return yield* attemptCapture(input);
479
536
  })));
480
- })));
537
+ }));
481
538
  const isIndexUnreadable = Effect.fnUntraced(function* (repository) {
482
539
  if (!(yield* fs.existsSafe(indexFile(repository))))
483
540
  return false;
@@ -491,7 +548,7 @@ var layer = Layer.effect(Service85, Effect.gen(function* () {
491
548
  const rebuildIndex = Effect.fnUntraced(function* (repository, source) {
492
549
  lastCaptures.delete(repository.gitDirectory);
493
550
  const temporary = temporaryIndex(repository);
494
- const copied = source ? yield* copyIndex(path.join(source.gitDirectory, "index"), temporary).pipe(Effect.as(true), Effect.orElseSucceed(() => false)) : false;
551
+ const copied = source ? yield* seedIndex(repository, source, temporary).pipe(Effect.as(true), Effect.orElseSucceed(() => false)) : false;
495
552
  yield* (copied ? fs.rename(temporary, indexFile(repository)) : fs.remove(indexFile(repository), { force: true })).pipe(Effect.ignore, Effect.ensuring(fs.remove(temporary, { force: true }).pipe(Effect.ignore)));
496
553
  });
497
554
  const ensureSnapshotConfig = Effect.fnUntraced(function* (repository) {
@@ -3,29 +3,29 @@ import {
3
3
  removed2,
4
4
  make20,
5
5
  diffByKey2
6
- } from "./tool-xt0z8zst.js";
6
+ } from "./credential-xt0z8zst.js";
7
7
  import {
8
- ID5,
8
+ ID7,
9
9
  Name2,
10
10
  available4,
11
- Service41,
12
- node44
13
- } from "./tool-nfq3amnp.js";
11
+ Service59,
12
+ node63
13
+ } from "./credential-g9r4jbb8.js";
14
14
  import {
15
15
  __export
16
- } from "./tool-9rqn6x4v.js";
16
+ } from "./credential-9rqn6x4v.js";
17
17
 
18
18
  // src/skill/instructions.ts
19
- var exports_instructions5 = {};
20
- __export(exports_instructions5, {
21
- Service: () => Service38,
22
- SkillInstructions: () => exports_instructions5,
23
- node: () => node42
19
+ var exports_instructions4 = {};
20
+ __export(exports_instructions4, {
21
+ Service: () => Service33,
22
+ SkillInstructions: () => exports_instructions4,
23
+ node: () => node36
24
24
  });
25
25
  import { makeLocationNode } from "@opencode/util/effect/app-node";
26
26
  import { Context, Effect, Layer, Schema } from "effect";
27
27
  var Summary = Schema.Struct({
28
- id: ID5,
28
+ id: ID7,
29
29
  name: Name2,
30
30
  description: Schema.String
31
31
  });
@@ -64,11 +64,11 @@ var update = (previous, current) => {
64
64
  `);
65
65
  };
66
66
 
67
- class Service38 extends Context.Service()("@opencode/SkillInstructions") {
67
+ class Service33 extends Context.Service()("@opencode/SkillInstructions") {
68
68
  }
69
- var layer = Layer.effect(Service38, Effect.gen(function* () {
70
- const skills = yield* Service41;
71
- return Service38.of({
69
+ var layer = Layer.effect(Service33, Effect.gen(function* () {
70
+ const skills = yield* Service59;
71
+ return Service33.of({
72
72
  load: Effect.fn("SkillInstructions.load")(function* (permissions) {
73
73
  const available = available4(yield* skills.list(), permissions).flatMap((skill) => skill.description === undefined || skill.autoinvoke === false ? [] : [{ id: skill.id, name: skill.name, description: skill.description }]).toSorted((a, b) => a.id.localeCompare(b.id));
74
74
  return make20({
@@ -84,6 +84,6 @@ var layer = Layer.effect(Service38, Effect.gen(function* () {
84
84
  })
85
85
  });
86
86
  }));
87
- var node42 = makeLocationNode({ service: Service38, layer, deps: [node44] });
87
+ var node36 = makeLocationNode({ service: Service33, layer, deps: [node63] });
88
88
 
89
- export { Service38, node42, exports_instructions5 };
89
+ export { Service33, node36, exports_instructions4 };
@@ -1,54 +1,54 @@
1
1
  import {
2
2
  Service86,
3
3
  node90
4
- } from "./tool-c1y12bqd.js";
4
+ } from "./credential-pnr9fk74.js";
5
5
  import {
6
6
  Service85,
7
7
  node89
8
- } from "./tool-1vpe07px.js";
8
+ } from "./credential-6te9kxba.js";
9
9
  import {
10
10
  Service83,
11
11
  node87
12
- } from "./tool-j3xa31ke.js";
12
+ } from "./credential-4hn0zw0c.js";
13
13
  import {
14
- Service70,
15
- node73
16
- } from "./tool-vmx0pqdh.js";
14
+ Service65,
15
+ node69
16
+ } from "./credential-sh6m4nea.js";
17
17
  import {
18
18
  awaitActivation2
19
- } from "./tool-6bshxcsx.js";
19
+ } from "./credential-d77dj7jw.js";
20
20
  import {
21
- node21
22
- } from "./tool-qakjdagf.js";
21
+ node22
22
+ } from "./credential-fpg34aj9.js";
23
23
  import {
24
- Service10,
25
- node12
26
- } from "./tool-9f3sjfep.js";
24
+ Service8,
25
+ node9
26
+ } from "./credential-9z9tayqc.js";
27
27
  import {
28
28
  __export
29
- } from "./tool-9rqn6x4v.js";
29
+ } from "./credential-9rqn6x4v.js";
30
30
 
31
31
  // src/filesystem/location-watcher.ts
32
- var exports_location_watcher = {};
33
- __export(exports_location_watcher, {
34
- LocationWatcher: () => exports_location_watcher,
35
- Service: () => Service3,
36
- node: () => node4
32
+ var exports_location_watcher2 = {};
33
+ __export(exports_location_watcher2, {
34
+ LocationWatcher: () => exports_location_watcher2,
35
+ Service: () => Service7,
36
+ node: () => node8
37
37
  });
38
38
  import { makeLocationNode } from "@opencode/util/effect/app-node";
39
39
  import { Cause, Context, Effect, Exit, Layer, Scope, Semaphore, Stream } from "effect";
40
40
  import { FileSystem } from "@opencode/schema/filesystem";
41
41
  import path from "path";
42
42
  import { FSUtil } from "@opencode/util/fs-util";
43
- class Service3 extends Context.Service()("@opencode/LocationWatcher") {
43
+ class Service7 extends Context.Service()("@opencode/LocationWatcher") {
44
44
  }
45
- var layer = Layer.effect(Service3, Effect.gen(function* () {
45
+ var layer = Layer.effect(Service7, Effect.gen(function* () {
46
46
  const location = yield* Service83;
47
- const watcher = yield* Service70;
47
+ const watcher = yield* Service65;
48
48
  const bus = yield* Service86;
49
49
  const fs = yield* FSUtil.Service;
50
50
  const git = yield* Service85;
51
- const policy = yield* Service10;
51
+ const policy = yield* Service8;
52
52
  const publish = (update) => bus.publish(FileSystem.Event.Changed, {
53
53
  file: update.path,
54
54
  event: update.type === "create" ? "add" : update.type === "update" ? "change" : "unlink"
@@ -100,12 +100,12 @@ var layer = Layer.effect(Service3, Effect.gen(function* () {
100
100
  yield* awaitActivation2;
101
101
  yield* reconcile();
102
102
  }).pipe(Effect.catchCauseIf((cause) => !Cause.hasInterrupts(cause), (cause) => Effect.logError("failed to start location watcher", { cause })), Effect.forkScoped({ startImmediately: true }));
103
- return Service3.of({});
103
+ return Service7.of({});
104
104
  }));
105
- var node4 = makeLocationNode({
106
- service: Service3,
105
+ var node8 = makeLocationNode({
106
+ service: Service7,
107
107
  layer,
108
- deps: [node73, FSUtil.node, node87, node89, node90, node21, node12]
108
+ deps: [node69, FSUtil.node, node87, node89, node90, node22, node9]
109
109
  });
110
110
 
111
- export { Service3, node4, exports_location_watcher };
111
+ export { Service7, node8, exports_location_watcher2 };
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  __export
3
- } from "./tool-9rqn6x4v.js";
3
+ } from "./credential-9rqn6x4v.js";
4
4
 
5
5
  // src/filesystem/protected.ts
6
6
  var exports_protected = {};
@@ -2,7 +2,7 @@ import {
2
2
  getTableColumnsRuntime2,
3
3
  orderSelectedFields2,
4
4
  mapUpdateSet2
5
- } from "./tool-emrn6kk6.js";
5
+ } from "./credential-emrn6kk6.js";
6
6
 
7
7
  // src/database/drizzle/sqlite-core/effect/insert.ts
8
8
  import { applyEffectWrapper } from "drizzle-orm/effect-core/query-effect";
@@ -1,31 +1,31 @@
1
1
  import {
2
- ID8
3
- } from "./tool-dvbyh3pq.js";
2
+ ID10
3
+ } from "./credential-sm0vs1nj.js";
4
4
  import {
5
5
  AbsolutePath2
6
- } from "./tool-z5v4ffb3.js";
6
+ } from "./credential-z5v4ffb3.js";
7
7
  import {
8
- Info18
9
- } from "./tool-pnwsrq7c.js";
8
+ Info13
9
+ } from "./credential-c0xjp2a3.js";
10
10
  import {
11
11
  migrateAgent2
12
- } from "./tool-1dvrssaw.js";
12
+ } from "./credential-we7ts2z8.js";
13
13
  import {
14
14
  latest2,
15
- Service69
16
- } from "./tool-3jy1f5rc.js";
15
+ Service64
16
+ } from "./credential-4f3e2fe5.js";
17
17
  import {
18
18
  parseOption2
19
- } from "./tool-e834z07m.js";
19
+ } from "./credential-e834z07m.js";
20
20
  import {
21
21
  __export
22
- } from "./tool-9rqn6x4v.js";
22
+ } from "./credential-9rqn6x4v.js";
23
23
 
24
24
  // src/config/plugin/agent.ts
25
- var exports_agent = {};
26
- __export(exports_agent, {
27
- ConfigAgentPlugin: () => exports_agent,
28
- Plugin: () => Plugin22
25
+ var exports_agent2 = {};
26
+ __export(exports_agent2, {
27
+ ConfigAgentPlugin: () => exports_agent2,
28
+ Plugin: () => Plugin39
29
29
  });
30
30
  import { define } from "@opencode/plugin/effect/plugin";
31
31
  import { Document, Info } from "@opencode/schema/config";
@@ -40,14 +40,14 @@ var legacySources = [
40
40
  ];
41
41
  var sourceDirectories = ["agent", "agents", "mode", "modes"];
42
42
  var decodeAgent = Schema.decodeUnknownOption(ConfigAgent.Info);
43
- var decodeLegacyAgent = Schema.decodeUnknownOption(Info18);
43
+ var decodeLegacyAgent = Schema.decodeUnknownOption(Info13);
44
44
  var pathActions = ["external_directory", "read", "edit"];
45
45
  var agentKeys = new Set(["variant", ...Object.keys(ConfigAgent.Info.fields)]);
46
46
  var nativeKeys = ["permissions", "request", "system", "disabled"];
47
- var Plugin22 = define({
47
+ var Plugin39 = define({
48
48
  id: "opencode.config.agent",
49
49
  effect: Effect.fn(function* (ctx) {
50
- const config = yield* Service69;
50
+ const config = yield* Service64;
51
51
  const fs = yield* FSUtil.Service;
52
52
  const global = yield* Global.Service;
53
53
  const loadEntry = Effect.fnUntraced(function* (entry) {
@@ -76,13 +76,13 @@ var Plugin22 = define({
76
76
  const permissions = expandPermissions(loaded.documents.flatMap((document) => document.info.permissions ?? []), global.home);
77
77
  const configuredDefault = latest2(loaded.documents, "default_agent");
78
78
  if (configuredDefault !== undefined)
79
- editor.default(ID8.make(configuredDefault));
79
+ editor.default(ID10.make(configuredDefault));
80
80
  for (const current of editor.list()) {
81
81
  editor.update(current.id, (agent) => agent.permissions.push(...permissions));
82
82
  }
83
83
  for (const document of loaded.documents) {
84
84
  for (const [id, item] of Object.entries(document.info.agents ?? {})) {
85
- const agentID = ID8.make(id);
85
+ const agentID = ID10.make(id);
86
86
  if (item.disabled) {
87
87
  editor.remove(agentID);
88
88
  continue;
@@ -163,4 +163,4 @@ var decode = Effect.fnUntraced(function* (file, content) {
163
163
  return new Document({ type: "document", path: AbsolutePath2.make(file.filepath), info });
164
164
  });
165
165
 
166
- export { Plugin22, exports_agent };
166
+ export { Plugin39, exports_agent2 };
@@ -1,18 +1,18 @@
1
1
  import {
2
2
  AbsolutePath2
3
- } from "./tool-z5v4ffb3.js";
3
+ } from "./credential-z5v4ffb3.js";
4
4
  import {
5
5
  Service83
6
- } from "./tool-j3xa31ke.js";
6
+ } from "./credential-4hn0zw0c.js";
7
7
  import {
8
8
  NotFound3
9
- } from "./tool-svcy3p9a.js";
9
+ } from "./credential-svcy3p9a.js";
10
10
  import {
11
- Service13
12
- } from "./tool-ds82yrjj.js";
11
+ Service18
12
+ } from "./credential-g5nf4rjy.js";
13
13
  import {
14
- Service7
15
- } from "./tool-ge4qdnbb.js";
14
+ Service10
15
+ } from "./credential-xj3m7ras.js";
16
16
  import {
17
17
  BinaryFileError2,
18
18
  MediaIngestLimitError2,
@@ -22,26 +22,26 @@ import {
22
22
  FileContent2,
23
23
  TextPage2,
24
24
  ListPage2,
25
- Service37
26
- } from "./tool-jsqg4353.js";
25
+ Service32
26
+ } from "./credential-j5gjnx76.js";
27
27
  import {
28
28
  __export
29
- } from "./tool-9rqn6x4v.js";
29
+ } from "./credential-9rqn6x4v.js";
30
30
 
31
31
  // src/tool/plugin/read.ts
32
32
  var exports_read = {};
33
33
  __export(exports_read, {
34
- Input: () => Input7,
35
- Plugin: () => Plugin8,
34
+ Input: () => Input6,
35
+ Plugin: () => Plugin23,
36
36
  ReadTool: () => exports_read,
37
- name: () => name7,
37
+ name: () => name6,
38
38
  toModelContent: () => toModelContent3
39
39
  });
40
40
  import { basename, dirname, join } from "path";
41
41
  import { ToolFailure } from "@opencode/ai/effect";
42
42
  import { Effect, Schema } from "effect";
43
43
  import { FSUtil } from "@opencode/util/fs-util";
44
- var name7 = "read";
44
+ var name6 = "read";
45
45
  var FILENAME = "AGENTS.md";
46
46
  var LocationInput = Schema.Struct({
47
47
  path: Schema.String.annotate({ description: "File or directory to read" }),
@@ -52,21 +52,21 @@ var LocationInput = Schema.Struct({
52
52
  description: "The maximum number of lines or directory entries to read (defaults to and capped at 2000)"
53
53
  })
54
54
  });
55
- var Input7 = LocationInput;
55
+ var Input6 = LocationInput;
56
56
  var Output = Schema.Union([FileContent2, TextPage2, ListPage2]);
57
- var Plugin8 = {
57
+ var Plugin23 = {
58
58
  id: "opencode.tool.read",
59
59
  effect: Effect.fn("ReadTool.Plugin")(function* (ctx) {
60
- const reader = yield* Service37;
61
- const access = yield* Service13;
62
- const sessionInstructions = yield* Service7;
60
+ const reader = yield* Service32;
61
+ const access = yield* Service18;
62
+ const sessionInstructions = yield* Service10;
63
63
  const fs = yield* FSUtil.Service;
64
64
  const location = yield* Service83;
65
65
  yield* ctx.tool.transform((editor) => editor.add({
66
- name: name7,
66
+ name: name6,
67
67
  options: { codemode: false },
68
68
  description: "Read the contents of a file or directory. Supports text files, images, and PDFs. Images and PDFs are presented directly to the model. Each text line is prefixed by its 1-based line number as <line>: <content>. The prefix is for reference and is not part of the file content. Directory entries are returned one per line. Use offset and limit to read large files or directories in sections. Prefer one larger read over many small slices, and use grep to find specific content in large files.",
69
- input: Input7,
69
+ input: Input6,
70
70
  output: Output,
71
71
  execute: (input, context) => {
72
72
  return Effect.gen(function* () {
@@ -179,4 +179,4 @@ var toModelContent3 = (path, offset, output) => {
179
179
  `);
180
180
  };
181
181
 
182
- export { name7, Input7, Plugin8, toModelContent3, exports_read };
182
+ export { name6, Input6, Plugin23, toModelContent3, exports_read };
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  __export
3
- } from "./tool-9rqn6x4v.js";
3
+ } from "./credential-9rqn6x4v.js";
4
4
 
5
5
  // src/config/variable.ts
6
6
  var exports_variable = {};
@@ -1,42 +1,42 @@
1
1
  import {
2
2
  Service86,
3
3
  node90
4
- } from "./tool-c1y12bqd.js";
4
+ } from "./credential-pnr9fk74.js";
5
5
  import {
6
- Service40,
7
- node43
8
- } from "./tool-30wtetgq.js";
6
+ Service34,
7
+ node37
8
+ } from "./credential-zgy820yb.js";
9
9
  import {
10
10
  isTextual2
11
- } from "./tool-4pyp9zr9.js";
11
+ } from "./credential-4pyp9zr9.js";
12
12
  import {
13
- Service47,
14
- node49
15
- } from "./tool-r8dwygj6.js";
13
+ Service60,
14
+ node64
15
+ } from "./credential-010tfxz5.js";
16
16
  import {
17
- Service71,
18
- node74
19
- } from "./tool-94as0g8p.js";
17
+ Service51,
18
+ node54
19
+ } from "./credential-xy0fx19g.js";
20
20
  import {
21
- Service54,
22
- node56
23
- } from "./tool-6wz31r82.js";
21
+ Service55,
22
+ node58
23
+ } from "./credential-bgtvwfds.js";
24
24
  import {
25
25
  MEDIA_MIMES2
26
- } from "./tool-jsqg4353.js";
26
+ } from "./credential-j5gjnx76.js";
27
27
  import {
28
28
  __export
29
- } from "./tool-9rqn6x4v.js";
29
+ } from "./credential-9rqn6x4v.js";
30
30
 
31
31
  // src/tool/mcp.ts
32
32
  var exports_mcp3 = {};
33
33
  __export(exports_mcp3, {
34
34
  McpTool: () => exports_mcp3,
35
- Service: () => Service36,
36
- layer: () => layer17,
35
+ Service: () => Service31,
36
+ layer: () => layer15,
37
37
  name: () => name15,
38
38
  namespace: () => namespace2,
39
- node: () => node40
39
+ node: () => node34
40
40
  });
41
41
  import { ToolFailure } from "@opencode/ai/effect";
42
42
  import { McpEvent } from "@opencode/schema/mcp-event";
@@ -47,14 +47,14 @@ var decodeJson = Schema.decodeUnknownOption(Schema.fromJsonString(Schema.Unknown
47
47
  var namespace2 = (server) => server.replace(/[^a-zA-Z0-9_-]/g, "_");
48
48
  var name15 = (server, tool) => `${namespace2(server)}_${tool.replace(/[^a-zA-Z0-9_-]/g, "_")}`;
49
49
 
50
- class Service36 extends Context.Service()("@opencode/McpTool") {
50
+ class Service31 extends Context.Service()("@opencode/McpTool") {
51
51
  }
52
- var layer17 = Layer.effect(Service36, Effect.gen(function* () {
53
- const mcp = yield* Service40;
54
- const tools = yield* Service71;
52
+ var layer15 = Layer.effect(Service31, Effect.gen(function* () {
53
+ const mcp = yield* Service34;
54
+ const tools = yield* Service51;
55
55
  const bus = yield* Service86;
56
- const permission = yield* Service47;
57
- const toolOutput = yield* Service54;
56
+ const permission = yield* Service60;
57
+ const toolOutput = yield* Service55;
58
58
  const lock = Semaphore.makeUnsafe(1);
59
59
  let discovered = [];
60
60
  const initial = yield* lock.withPermit(Effect.gen(function* () {
@@ -124,7 +124,7 @@ var layer17 = Layer.effect(Service36, Effect.gen(function* () {
124
124
  yield* bus.subscribe(McpEvent.ToolsChanged).pipe(Stream.runForEach(() => PubSub.publish(changes, undefined)), Effect.forkScoped({ startImmediately: true }));
125
125
  const updates = yield* PubSub.subscribe(changes);
126
126
  yield* Stream.fromSubscription(updates).pipe(Stream.debounce("100 millis"), Stream.runForEach(() => reconcile), Effect.forkScoped({ startImmediately: true }));
127
- return Service36.of({ flush: Effect.asVoid(Fiber.await(initial)) });
127
+ return Service31.of({ flush: Effect.asVoid(Fiber.await(initial)) });
128
128
  }));
129
129
  var toContent = Effect.fnUntraced(function* (part, toolOutput) {
130
130
  if (part.type === "text")
@@ -144,10 +144,10 @@ ${bytes.toString("utf8")}` };
144
144
  text: `[Binary resource ${label} (${part.mimeType}, ${bytes.byteLength} bytes) saved to ${file}]`
145
145
  };
146
146
  });
147
- var node40 = makeLocationNode({
148
- service: Service36,
149
- layer: layer17,
150
- deps: [node74, node43, node90, node49, node56]
147
+ var node34 = makeLocationNode({
148
+ service: Service31,
149
+ layer: layer15,
150
+ deps: [node54, node37, node90, node64, node58]
151
151
  });
152
152
 
153
- export { namespace2, name15, Service36, layer17, node40, exports_mcp3 };
153
+ export { namespace2, name15, Service31, layer15, node34, exports_mcp3 };