@opencode/core 0.0.0-dev-19596 → 0.0.0-dev-19599

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 (810) hide show
  1. package/dist/account/sql.js +1 -1
  2. package/dist/agent.js +80 -80
  3. package/dist/aisdk-native.js +89 -2
  4. package/dist/aisdk.js +93 -6
  5. package/dist/app.js +9 -9
  6. package/dist/bus.js +74 -74
  7. package/dist/chunks/{schema-0paq2nw3.js → tool-0paq2nw3.js} +1 -1
  8. package/dist/chunks/{schema-0q0f95c6.js → tool-0q0f95c6.js} +1 -1
  9. package/dist/chunks/{schema-ckp1ht4p.js → tool-16jeg0qk.js} +310 -304
  10. package/dist/chunks/{schema-eyqq4r43.js → tool-17j9h1rv.js} +11 -11
  11. package/dist/chunks/{schema-sx1n432n.js → tool-1a6p2twq.js} +4 -4
  12. package/dist/chunks/{schema-g5rn0d52.js → tool-1bkx5pwe.js} +18 -18
  13. package/dist/chunks/{schema-fvwtc7m7.js → tool-1d4jdnc8.js} +22 -36
  14. package/dist/chunks/{schema-1dazxqgg.js → tool-1dazxqgg.js} +2 -2
  15. package/dist/chunks/{schema-7f0264at.js → tool-1gfn0ycf.js} +35 -34
  16. package/dist/chunks/{schema-wpcmngey.js → tool-21dj5k26.js} +9 -9
  17. package/dist/chunks/{schema-460nzhf0.js → tool-21f2rsjd.js} +13 -13
  18. package/dist/chunks/{schema-21r38tys.js → tool-21r38tys.js} +1 -1
  19. package/dist/chunks/{schema-2402vzrj.js → tool-2402vzrj.js} +1 -1
  20. package/dist/chunks/{schema-mx4nfnwv.js → tool-253bq4qw.js} +3 -3
  21. package/dist/chunks/{schema-z63w68vq.js → tool-29x78va6.js} +6 -6
  22. package/dist/chunks/{schema-2a5m3afh.js → tool-2a5m3afh.js} +1 -1
  23. package/dist/chunks/{schema-3a6re68j.js → tool-2d57kztd.js} +6 -6
  24. package/dist/chunks/{schema-wavq5vqb.js → tool-2gkxg42g.js} +4 -4
  25. package/dist/chunks/{schema-b83gcn6t.js → tool-2h74skrz.js} +22 -22
  26. package/dist/chunks/{schema-t0x5rdq8.js → tool-2mq1h16s.js} +9 -9
  27. package/dist/chunks/{schema-p8ee7rnh.js → tool-2vg6efqn.js} +15 -15
  28. package/dist/chunks/{schema-ctmr8zqa.js → tool-2vs2nh1n.js} +4 -4
  29. package/dist/chunks/{schema-gg2v66ak.js → tool-2wvxgkaf.js} +36 -36
  30. package/dist/chunks/{schema-4n7x7n3b.js → tool-2x9c36ps.js} +43 -43
  31. package/dist/chunks/{schema-mw7ftrc1.js → tool-383meeh8.js} +47 -47
  32. package/dist/chunks/{schema-febxpxrj.js → tool-3f6m7h4m.js} +9 -9
  33. package/dist/chunks/{schema-3fc6dm20.js → tool-3fc6dm20.js} +1 -1
  34. package/dist/chunks/{schema-70d2s7af.js → tool-3g77v28p.js} +4 -4
  35. package/dist/chunks/{schema-3hepkmqq.js → tool-3hepkmqq.js} +1 -1
  36. package/dist/chunks/{schema-3smtnn6g.js → tool-3smtnn6g.js} +1 -1
  37. package/dist/chunks/{schema-3tvqynh2.js → tool-3tvqynh2.js} +1 -1
  38. package/dist/chunks/{schema-c78bbtc9.js → tool-3w0fmcng.js} +5 -5
  39. package/dist/chunks/{schema-7j034exa.js → tool-3y6z2ty2.js} +21 -20
  40. package/dist/chunks/{schema-33n3bzdy.js → tool-40tbggcp.js} +169 -7
  41. package/dist/chunks/{schema-mp0exg3w.js → tool-4an599d2.js} +11 -11
  42. package/dist/chunks/{schema-a3dxz99s.js → tool-4e0pbrm7.js} +11 -11
  43. package/dist/chunks/{schema-zwv68h5q.js → tool-4gnyebnw.js} +7 -7
  44. package/dist/chunks/{schema-gj5yqrt5.js → tool-4gp9przv.js} +8 -8
  45. package/dist/chunks/{schema-nwejh57z.js → tool-4kbjb3sr.js} +22 -22
  46. package/dist/chunks/{schema-cwtxttrt.js → tool-4vkh6st7.js} +19 -19
  47. package/dist/chunks/{schema-1ygqh575.js → tool-56gdpj1q.js} +9 -9
  48. package/dist/chunks/{schema-x00t4nfm.js → tool-57ez7d0k.js} +9 -9
  49. package/dist/chunks/{schema-5daktx2q.js → tool-5daktx2q.js} +1 -1
  50. package/dist/chunks/{schema-9n8afz82.js → tool-5hsgp0bq.js} +18 -18
  51. package/dist/chunks/{schema-nkszaa5g.js → tool-5k338v2a.js} +22 -22
  52. package/dist/chunks/{schema-bfn7mtpr.js → tool-5qdj1v4m.js} +13 -13
  53. package/dist/chunks/{schema-5t3nmthw.js → tool-5t3nmthw.js} +2 -2
  54. package/dist/chunks/{schema-9776sn27.js → tool-5w7fqkzx.js} +17 -17
  55. package/dist/chunks/{schema-qr42g2ex.js → tool-5y9tx54q.js} +12 -12
  56. package/dist/chunks/{schema-mz6ae2yf.js → tool-63dea9jd.js} +4 -4
  57. package/dist/chunks/{schema-669tq793.js → tool-669tq793.js} +1 -1
  58. package/dist/chunks/{schema-6sk8rnq7.js → tool-66qmevrd.js} +43 -43
  59. package/dist/chunks/{schema-qgtwsm4a.js → tool-66yyaz7c.js} +51 -51
  60. package/dist/chunks/{schema-8hqm76n9.js → tool-6d1tapbz.js} +37 -24
  61. package/dist/chunks/{schema-9cwgx80s.js → tool-6j9t704q.js} +15 -15
  62. package/dist/chunks/{schema-6msgmcgs.js → tool-6msgmcgs.js} +1 -1
  63. package/dist/chunks/{schema-t9qn8q8w.js → tool-6qkc0t3x.js} +8 -8
  64. package/dist/chunks/{schema-nsc0z153.js → tool-6sg447na.js} +9 -9
  65. package/dist/chunks/{schema-sez5jh81.js → tool-6sr3ve8g.js} +21 -21
  66. package/dist/chunks/{schema-7d2a7xbs.js → tool-6vq97qmv.js} +5 -5
  67. package/dist/chunks/{schema-q53mw4kv.js → tool-6yy9wark.js} +11 -11
  68. package/dist/chunks/{schema-71q4at8m.js → tool-71q4at8m.js} +1 -1
  69. package/dist/chunks/{schema-74jczd3p.js → tool-7355chmd.js} +3 -3
  70. package/dist/chunks/{schema-fnt00pdw.js → tool-7933w99v.js} +96 -96
  71. package/dist/chunks/{schema-7bmhse3q.js → tool-7bmhse3q.js} +1 -1
  72. package/dist/chunks/{schema-j0kcbam5.js → tool-7eyb1ky7.js} +17 -17
  73. package/dist/chunks/{schema-a9bb11qt.js → tool-7m0wx7n2.js} +5 -5
  74. package/dist/chunks/{schema-cyyebbpd.js → tool-7q67xa21.js} +20 -20
  75. package/dist/chunks/{schema-kdmcvb0r.js → tool-7tw3btct.js} +4 -4
  76. package/dist/chunks/tool-7v2wf9c4.js +201 -0
  77. package/dist/chunks/{schema-7h6eczm7.js → tool-7vnx6y3p.js} +20 -20
  78. package/dist/chunks/{schema-eq6c3fte.js → tool-884gyjym.js} +17 -9
  79. package/dist/chunks/{schema-mfhfdr54.js → tool-88sz8qcd.js} +4 -4
  80. package/dist/chunks/{schema-8d7r5vzw.js → tool-8d7r5vzw.js} +1 -1
  81. package/dist/chunks/{schema-7cdavrgt.js → tool-8dp74fdk.js} +22 -22
  82. package/dist/chunks/{schema-2bvm5bng.js → tool-8e117wbv.js} +3 -3
  83. package/dist/chunks/{schema-hv9ta9e9.js → tool-8kacz6a1.js} +27 -27
  84. package/dist/chunks/{schema-8p4f9s12.js → tool-8p4f9s12.js} +2 -2
  85. package/dist/chunks/{schema-c5nvra9m.js → tool-8y01k5fy.js} +4 -4
  86. package/dist/chunks/{schema-3dmtdf19.js → tool-92s0cqnp.js} +12 -12
  87. package/dist/chunks/{schema-bswyt25e.js → tool-95vfjh4q.js} +13 -13
  88. package/dist/chunks/{schema-f6agekp8.js → tool-964t6598.js} +14 -17
  89. package/dist/chunks/{schema-gj03f4ek.js → tool-98f484r8.js} +14 -14
  90. package/dist/chunks/{schema-7a8p0xnb.js → tool-99yh2pdr.js} +15 -15
  91. package/dist/chunks/{schema-352w66m8.js → tool-9d4sgpz8.js} +9 -9
  92. package/dist/chunks/{schema-1cbk4m95.js → tool-9kvb8f9y.js} +26 -19
  93. package/dist/chunks/{schema-k5ahzgcr.js → tool-9q34vwzw.js} +29 -29
  94. package/dist/chunks/tool-9sh4wc5j.js +18 -0
  95. package/dist/chunks/{schema-a1bz86dw.js → tool-a1bz86dw.js} +3 -3
  96. package/dist/chunks/{schema-7vgg5bre.js → tool-a6d3kgp8.js} +17 -17
  97. package/dist/chunks/{schema-aaet6srn.js → tool-aaet6srn.js} +2 -2
  98. package/dist/chunks/{schema-0artwwxx.js → tool-acpnwff5.js} +6 -6
  99. package/dist/chunks/{schema-dcrj6gad.js → tool-acxcbb38.js} +22 -22
  100. package/dist/chunks/{schema-r66k216p.js → tool-akvwqyjh.js} +26 -26
  101. package/dist/chunks/{schema-hjnnbnbb.js → tool-awzpd58r.js} +9 -9
  102. package/dist/chunks/{schema-t6vsspdg.js → tool-axtvtek4.js} +4 -4
  103. package/dist/chunks/{schema-9ee4bqq5.js → tool-ayrzd4q0.js} +18 -18
  104. package/dist/chunks/{schema-y9ytwzzt.js → tool-b4655sfp.js} +51 -50
  105. package/dist/chunks/{schema-h2ksjayj.js → tool-b5vpxnpr.js} +26 -26
  106. package/dist/chunks/{schema-b6gygkdw.js → tool-b6gygkdw.js} +2 -2
  107. package/dist/chunks/{schema-wtx5fp6w.js → tool-b7n5ecmq.js} +42 -42
  108. package/dist/chunks/{schema-4p8fzzdy.js → tool-bajakh74.js} +4 -4
  109. package/dist/chunks/{schema-aqd42mcz.js → tool-bbaxns64.js} +10 -10
  110. package/dist/chunks/{schema-zpbz1axx.js → tool-bmnapqat.js} +8 -8
  111. package/dist/chunks/{schema-160w9f8h.js → tool-bv9pnvgp.js} +4 -4
  112. package/dist/chunks/{schema-ttvjx6p5.js → tool-bwfqemah.js} +18 -18
  113. package/dist/chunks/{schema-kgt4jx9n.js → tool-c0g4q567.js} +20 -20
  114. package/dist/chunks/{schema-jb92a43k.js → tool-c31h4aj0.js} +51 -51
  115. package/dist/chunks/{schema-nnaq0ssc.js → tool-c5f1xghs.js} +36 -36
  116. package/dist/chunks/{schema-a2mmkps9.js → tool-c8r4c7x7.js} +27 -27
  117. package/dist/chunks/{schema-qcyk0ctz.js → tool-cddy6wgw.js} +14 -14
  118. package/dist/chunks/{schema-sxwejk34.js → tool-cdx2nmd2.js} +63 -63
  119. package/dist/chunks/{schema-hhgwwrzt.js → tool-ce8sn01r.js} +43 -43
  120. package/dist/chunks/{schema-1pqwnjx4.js → tool-cejrj8y8.js} +16 -16
  121. package/dist/chunks/{schema-cfpkc3c9.js → tool-cfpkc3c9.js} +2 -2
  122. package/dist/chunks/{schema-j5dzb3vg.js → tool-chp1ctqz.js} +11 -11
  123. package/dist/chunks/{schema-9n9wwhvc.js → tool-cseyvs3z.js} +27 -27
  124. package/dist/chunks/{schema-6kyz0a76.js → tool-ctn2km86.js} +9 -9
  125. package/dist/chunks/{schema-cyhsea0k.js → tool-d383cjmk.js} +8 -8
  126. package/dist/chunks/{schema-aqqw58sn.js → tool-d55qd04d.js} +32 -32
  127. package/dist/chunks/{schema-vve3ffxw.js → tool-da1ppnzr.js} +32 -32
  128. package/dist/chunks/tool-dadjnxcz.js +26 -0
  129. package/dist/chunks/{schema-w52sm2v7.js → tool-djh8651g.js} +35 -35
  130. package/dist/chunks/{schema-jwcy2c2z.js → tool-dpkg50ah.js} +4 -4
  131. package/dist/chunks/{schema-46kds8gk.js → tool-dy775f0c.js} +17 -17
  132. package/dist/chunks/{schema-xafa45y0.js → tool-e0b694rp.js} +23 -23
  133. package/dist/chunks/{schema-paphc93g.js → tool-e3qxr5gk.js} +2 -2
  134. package/dist/chunks/{schema-100j1g9v.js → tool-e4yvw0pn.js} +34 -34
  135. package/dist/chunks/{schema-e5nv3ght.js → tool-e5nv3ght.js} +2 -2
  136. package/dist/chunks/{schema-yfbgkrwe.js → tool-e8rb0fk9.js} +8 -8
  137. package/dist/chunks/{schema-hkfg6fzm.js → tool-ead3g9p8.js} +5 -5
  138. package/dist/chunks/{schema-pta0m0y2.js → tool-ebx0djr7.js} +10 -10
  139. package/dist/chunks/{schema-shh6fz4q.js → tool-ec8389mk.js} +4 -4
  140. package/dist/chunks/{schema-ef5x83kb.js → tool-ef5x83kb.js} +1 -1
  141. package/dist/chunks/{schema-h6ar4aba.js → tool-efxhpxf5.js} +21 -21
  142. package/dist/chunks/tool-emgx2tje.js +53 -0
  143. package/dist/chunks/{schema-ew8epg43.js → tool-erw0n60b.js} +8 -8
  144. package/dist/chunks/{schema-etq0c3wd.js → tool-etq0c3wd.js} +1 -1
  145. package/dist/chunks/{schema-3hf7z3yq.js → tool-f1ts345w.js} +11 -11
  146. package/dist/chunks/{schema-d4d34sqm.js → tool-f1xrsf6k.js} +17 -17
  147. package/dist/chunks/{schema-cxnfc116.js → tool-f38hchcj.js} +16 -16
  148. package/dist/chunks/{schema-0n4jht4c.js → tool-f3yjyja6.js} +18 -18
  149. package/dist/chunks/{schema-f828m53h.js → tool-f828m53h.js} +2 -2
  150. package/dist/chunks/{schema-2xmxfdkw.js → tool-f9a3pmyr.js} +13 -13
  151. package/dist/chunks/{schema-607tc6va.js → tool-fcrkznn8.js} +5 -5
  152. package/dist/chunks/{schema-7hztb8a6.js → tool-fdftwakz.js} +17 -17
  153. package/dist/chunks/{schema-14a1bm7w.js → tool-fgb2mcbr.js} +24 -24
  154. package/dist/chunks/{schema-zm862yqt.js → tool-fspd6qjs.js} +36 -36
  155. package/dist/chunks/{schema-jxbxppp8.js → tool-fsqnn3fv.js} +26 -26
  156. package/dist/chunks/{schema-fxbjtjnd.js → tool-fxbjtjnd.js} +1 -1
  157. package/dist/chunks/{schema-59fjh03s.js → tool-fyfytr13.js} +9 -9
  158. package/dist/chunks/{schema-w4cz4w8n.js → tool-gan2aag1.js} +2 -2
  159. package/dist/chunks/{schema-sxj88q7q.js → tool-gbex3acd.js} +36 -36
  160. package/dist/chunks/{schema-gd4qta3r.js → tool-gd4qta3r.js} +1 -1
  161. package/dist/chunks/{schema-eng2bkh5.js → tool-ggz7fzf6.js} +6 -6
  162. package/dist/chunks/{schema-yaj99xd7.js → tool-gjh1s6ya.js} +18 -18
  163. package/dist/chunks/{schema-t16yqmmz.js → tool-gjtgcmhe.js} +8 -10
  164. package/dist/chunks/{schema-th5km1p3.js → tool-gv6a8nnw.js} +5 -5
  165. package/dist/chunks/{schema-h03wrkyp.js → tool-h03wrkyp.js} +2 -2
  166. package/dist/chunks/{schema-p8rnrv0y.js → tool-h0cab0jj.js} +9 -9
  167. package/dist/chunks/tool-h6r3nrb9.js +24 -0
  168. package/dist/chunks/{schema-h6vf3j39.js → tool-h6vf3j39.js} +1 -1
  169. package/dist/chunks/{schema-57kf9cn6.js → tool-hddv9rh5.js} +11 -11
  170. package/dist/chunks/{schema-e6hmchc5.js → tool-hnr5yq9h.js} +5 -5
  171. package/dist/chunks/{schema-219neeqh.js → tool-hs2aqah5.js} +5 -5
  172. package/dist/chunks/{schema-88jrr0c1.js → tool-hswenssz.js} +20 -20
  173. package/dist/chunks/{schema-j56e64zr.js → tool-j56e64zr.js} +1 -1
  174. package/dist/chunks/{schema-hj0g3228.js → tool-jez6grfh.js} +13 -13
  175. package/dist/chunks/{schema-8b5a8700.js → tool-jj2x8ya3.js} +30 -30
  176. package/dist/chunks/{schema-crptryd9.js → tool-jjs74g98.js} +5 -5
  177. package/dist/chunks/{schema-szvcpp15.js → tool-jndxpbzp.js} +34 -34
  178. package/dist/chunks/{schema-1gr0tcdy.js → tool-jpsh07gn.js} +4 -4
  179. package/dist/chunks/{schema-fay8vjw6.js → tool-jqvwbgns.js} +11 -11
  180. package/dist/chunks/{schema-qpv0n9y2.js → tool-jscm6k4t.js} +13 -13
  181. package/dist/chunks/{schema-8tasdpw9.js → tool-jxrvs0y0.js} +17 -17
  182. package/dist/chunks/{schema-dtsq3qdh.js → tool-jzzy94zk.js} +9 -9
  183. package/dist/chunks/{schema-9xdtwryq.js → tool-k56b83dc.js} +35 -33
  184. package/dist/chunks/{schema-3p2ed7sd.js → tool-kcxpnbwn.js} +21 -21
  185. package/dist/chunks/{schema-skkcpn4x.js → tool-kj8x889q.js} +17 -17
  186. package/dist/chunks/{schema-yea1wtgt.js → tool-knc2ad2x.js} +93 -92
  187. package/dist/chunks/{schema-0pb75hch.js → tool-m46abj74.js} +8 -8
  188. package/dist/chunks/{schema-m9w0rfyh.js → tool-m9w0rfyh.js} +1 -1
  189. package/dist/chunks/{schema-zdyqqjkd.js → tool-may1xj9k.js} +201 -188
  190. package/dist/chunks/{schema-8g7dzdwc.js → tool-metb0c44.js} +11 -11
  191. package/dist/chunks/{schema-49m0b0hg.js → tool-mf4jvz0z.js} +12 -12
  192. package/dist/chunks/{schema-61tweh31.js → tool-mksr8qt3.js} +11 -11
  193. package/dist/chunks/{schema-xr4pykw3.js → tool-mrk4e56b.js} +16 -16
  194. package/dist/chunks/{schema-r9asyhme.js → tool-mtxfs5k5.js} +25 -18
  195. package/dist/chunks/{schema-73tb2d7t.js → tool-mvfsc1pv.js} +3 -3
  196. package/dist/chunks/{schema-rggx3fk4.js → tool-mwp9jd7s.js} +8 -8
  197. package/dist/chunks/{schema-s32qcjvy.js → tool-n83tpar3.js} +46 -46
  198. package/dist/chunks/{schema-17ccpqma.js → tool-n9a9ascx.js} +38 -31
  199. package/dist/chunks/{schema-yp37mb71.js → tool-nafczmzp.js} +26 -26
  200. package/dist/chunks/{schema-35hkzk16.js → tool-nb4aeq3b.js} +7 -7
  201. package/dist/chunks/{schema-ak553geh.js → tool-nbzw66ce.js} +26 -26
  202. package/dist/chunks/{schema-35wynegs.js → tool-nef32yex.js} +2 -2
  203. package/dist/chunks/{schema-w5np17bk.js → tool-nffnkmsf.js} +32 -32
  204. package/dist/chunks/{schema-e82z9tr0.js → tool-nhy5jxhy.js} +7 -7
  205. package/dist/chunks/{schema-tz9c6nnc.js → tool-nr5q34ns.js} +15 -15
  206. package/dist/chunks/{schema-6bsje7ws.js → tool-nvxqht09.js} +3 -3
  207. package/dist/chunks/{schema-b11403r6.js → tool-nw3p9810.js} +4 -4
  208. package/dist/chunks/{schema-844ef7ks.js → tool-p42hj8p8.js} +8 -8
  209. package/dist/chunks/{schema-8tpwn33w.js → tool-p7cb5w0v.js} +4 -4
  210. package/dist/chunks/{schema-t46k7n4n.js → tool-pd0fnjnr.js} +29 -29
  211. package/dist/chunks/{schema-pjvnvgmy.js → tool-pjvnvgmy.js} +1 -1
  212. package/dist/chunks/{schema-pknna89w.js → tool-pknna89w.js} +1 -1
  213. package/dist/chunks/{schema-d6e8k2gz.js → tool-pmwf0w9a.js} +34 -34
  214. package/dist/chunks/{schema-qdeq33kz.js → tool-pngq9dd9.js} +20 -20
  215. package/dist/chunks/{schema-k7ytje6f.js → tool-prres578.js} +36 -35
  216. package/dist/chunks/{schema-bnf5aq9z.js → tool-ptg6kxy0.js} +22 -22
  217. package/dist/chunks/{schema-zf2yj53h.js → tool-q4wkz71m.js} +36 -30
  218. package/dist/chunks/{schema-15nepkqg.js → tool-q7wajf8z.js} +8 -8
  219. package/dist/chunks/{schema-tgp4vj3e.js → tool-qh3h8fjc.js} +25 -25
  220. package/dist/chunks/{schema-qpxa9xfm.js → tool-qkttm6v0.js} +11 -11
  221. package/dist/chunks/{schema-qsdy395h.js → tool-qsdy395h.js} +1 -1
  222. package/dist/chunks/{schema-f3fywrrk.js → tool-r1dtnce0.js} +21 -21
  223. package/dist/chunks/{schema-nrzpy080.js → tool-r2gzwywa.js} +32 -32
  224. package/dist/chunks/{schema-cvtmmhw6.js → tool-r6fz4byc.js} +4 -4
  225. package/dist/chunks/{schema-r9mregkx.js → tool-r9mregkx.js} +2 -2
  226. package/dist/chunks/{schema-f4ygn7kd.js → tool-rcptzcjb.js} +25 -25
  227. package/dist/chunks/{schema-kg06axw8.js → tool-rdw6cm16.js} +3 -1
  228. package/dist/chunks/{schema-02nqk1b9.js → tool-rfbvv5xc.js} +4 -4
  229. package/dist/chunks/{schema-xcz5qpew.js → tool-rkdpvaam.js} +15 -15
  230. package/dist/chunks/{schema-mh093k67.js → tool-rm9n4pe2.js} +32 -32
  231. package/dist/chunks/{schema-yrznvahk.js → tool-s4enseaf.js} +2 -2
  232. package/dist/chunks/{schema-yn73hxa9.js → tool-s4k2xazs.js} +15 -15
  233. package/dist/chunks/{schema-265kqrgy.js → tool-s9pnwdwt.js} +4 -4
  234. package/dist/chunks/{schema-fch79rh9.js → tool-scq4khx8.js} +1 -1
  235. package/dist/chunks/{schema-14getyrd.js → tool-smthb8q2.js} +24 -24
  236. package/dist/chunks/{schema-yzesgjc2.js → tool-sr5hsr7h.js} +31 -31
  237. package/dist/chunks/{schema-vrf9z43g.js → tool-sy7efrgz.js} +27 -27
  238. package/dist/chunks/{schema-5rs2mggp.js → tool-t06sf88e.js} +8 -8
  239. package/dist/chunks/{schema-02nrjc1r.js → tool-t550f9t1.js} +8 -8
  240. package/dist/chunks/{schema-pdamhna9.js → tool-t97w6b9c.js} +14 -14
  241. package/dist/chunks/{schema-tazgh4e4.js → tool-tazgh4e4.js} +1 -1
  242. package/dist/chunks/{schema-1qghmjy0.js → tool-tbht75y9.js} +9 -9
  243. package/dist/chunks/{schema-89znhe33.js → tool-tcezcvh9.js} +4 -4
  244. package/dist/chunks/{schema-tdstcens.js → tool-tdstcens.js} +1 -1
  245. package/dist/chunks/{schema-nvck40qe.js → tool-tg3z6q21.js} +11 -11
  246. package/dist/chunks/{schema-30c1nq7z.js → tool-tprb9ykm.js} +8 -8
  247. package/dist/chunks/{schema-ff0svapt.js → tool-tqkrwgse.js} +2 -2
  248. package/dist/chunks/{schema-cvnh4hxe.js → tool-tqq7t134.js} +11 -11
  249. package/dist/chunks/{schema-3qte0bkw.js → tool-tqsepttq.js} +11 -11
  250. package/dist/chunks/{schema-c09skazh.js → tool-ttyd6mwr.js} +9 -9
  251. package/dist/chunks/{schema-9xbky303.js → tool-tvmnx93k.js} +72 -72
  252. package/dist/chunks/{schema-tvtrv512.js → tool-tvtrv512.js} +1 -1
  253. package/dist/chunks/{schema-c1660zyq.js → tool-v0hcs57f.js} +4 -4
  254. package/dist/chunks/{schema-vazxaftq.js → tool-v64wsefy.js} +15 -15
  255. package/dist/chunks/{schema-9cdcqr3z.js → tool-va79mfn6.js} +24 -24
  256. package/dist/chunks/{schema-94wn97cy.js → tool-vas055je.js} +9 -9
  257. package/dist/chunks/{schema-y5dj3dxk.js → tool-vdyyrf70.js} +6 -6
  258. package/dist/chunks/{schema-vzm76b3t.js → tool-ve6nm2s5.js} +6 -6
  259. package/dist/chunks/{schema-veqvce7d.js → tool-veqvce7d.js} +1 -1
  260. package/dist/chunks/{schema-gd8pphrc.js → tool-vgf270yp.js} +1 -1
  261. package/dist/chunks/{schema-na2rb754.js → tool-vmyza7nt.js} +50 -50
  262. package/dist/chunks/{schema-dm8kv9e9.js → tool-vqdbe12f.js} +49 -49
  263. package/dist/chunks/{schema-vzcthcp8.js → tool-vzcthcp8.js} +1 -1
  264. package/dist/chunks/{schema-w3wsvvr9.js → tool-w3wsvvr9.js} +1 -1
  265. package/dist/chunks/{schema-wb1a395f.js → tool-w9rsy75j.js} +26 -26
  266. package/dist/chunks/{schema-wd87259q.js → tool-wd87259q.js} +1 -1
  267. package/dist/chunks/{schema-tax233da.js → tool-wjjsbp8j.js} +13 -13
  268. package/dist/chunks/{schema-zqk4v51d.js → tool-wzvtb6ev.js} +23 -23
  269. package/dist/chunks/{schema-x1ezjp6w.js → tool-x1ezjp6w.js} +1 -1
  270. package/dist/chunks/{schema-6z8qh9hd.js → tool-x7ajdgre.js} +49 -20
  271. package/dist/chunks/{schema-qjkj1w27.js → tool-xerjptys.js} +5 -5
  272. package/dist/chunks/{schema-nsy21xt9.js → tool-xkc29y86.js} +36 -36
  273. package/dist/chunks/{schema-t2tp6kph.js → tool-xsghnh50.js} +9 -9
  274. package/dist/chunks/{schema-0e0qwbc3.js → tool-y0rh7a7t.js} +32 -32
  275. package/dist/chunks/{schema-bdqrk2vk.js → tool-y10wk092.js} +9 -9
  276. package/dist/chunks/{schema-y1fvbwt7.js → tool-y1fvbwt7.js} +1 -1
  277. package/dist/chunks/{schema-16502g6j.js → tool-y3acf7kc.js} +19 -19
  278. package/dist/chunks/{schema-yp2x3t23.js → tool-yp2x3t23.js} +1 -1
  279. package/dist/chunks/tool-yqybgd19.js +251 -0
  280. package/dist/chunks/{schema-yrhqyw5v.js → tool-yrhqyw5v.js} +1 -1
  281. package/dist/chunks/{schema-k7yxbrfp.js → tool-yyqa94g7.js} +41 -41
  282. package/dist/chunks/{schema-z0bkrqjs.js → tool-z0bkrqjs.js} +1 -1
  283. package/dist/chunks/{schema-9cwdscm4.js → tool-z4t82ehr.js} +6 -6
  284. package/dist/chunks/{schema-jj8s0vwv.js → tool-zdvgxm63.js} +25 -25
  285. package/dist/chunks/{schema-varphpm5.js → tool-ze59vjzs.js} +61 -54
  286. package/dist/chunks/{schema-zeh9ct20.js → tool-zeh9ct20.js} +2 -2
  287. package/dist/chunks/{schema-zr2ceqn5.js → tool-zr2ceqn5.js} +1 -1
  288. package/dist/chunks/{schema-6756pezh.js → tool-zr6g55aw.js} +12 -12
  289. package/dist/chunks/{schema-zxq2ej10.js → tool-zxq2ej10.js} +1 -1
  290. package/dist/codemode/catalog.js +1 -1
  291. package/dist/codemode/instructions.js +9 -9
  292. package/dist/codemode/tool.js +2 -2
  293. package/dist/command.js +82 -82
  294. package/dist/config/discovery.js +83 -83
  295. package/dist/config/markdown.js +1 -1
  296. package/dist/config/normalize.js +105 -19
  297. package/dist/config/plugin/agent.js +124 -121
  298. package/dist/config/plugin/command.js +213 -213
  299. package/dist/config/plugin/compaction.js +159 -159
  300. package/dist/config/plugin/compatibility.js +140 -137
  301. package/dist/config/plugin/entry-observer.js +1 -1
  302. package/dist/config/plugin/formatter.js +123 -120
  303. package/dist/config/plugin/image.js +122 -119
  304. package/dist/config/plugin/instruction.js +89 -89
  305. package/dist/config/plugin/location-watcher.js +124 -121
  306. package/dist/config/plugin/mcp.js +131 -130
  307. package/dist/config/plugin/policy.js +122 -118
  308. package/dist/config/plugin/provider.js +121 -117
  309. package/dist/config/plugin/reference.js +124 -121
  310. package/dist/config/plugin/shell.js +122 -119
  311. package/dist/config/plugin/skill-file.js +101 -101
  312. package/dist/config/plugin/skill.js +143 -140
  313. package/dist/config/plugin/snapshot.js +122 -119
  314. package/dist/config/plugin/source.js +125 -121
  315. package/dist/config/plugin/tool-output.js +124 -121
  316. package/dist/config/plugin/websearch.js +121 -117
  317. package/dist/config/plugin/worktree.js +125 -122
  318. package/dist/config/variable.js +3 -3
  319. package/dist/config/watch.js +1 -1
  320. package/dist/config.js +127 -123
  321. package/dist/credential/sql.js +2 -2
  322. package/dist/credential.js +84 -84
  323. package/dist/database/database.js +73 -73
  324. package/dist/database/drizzle/effect-sqlite/driver.js +12 -12
  325. package/dist/database/drizzle/effect-sqlite/index.js +12 -12
  326. package/dist/database/drizzle/effect-sqlite/session.js +11 -11
  327. package/dist/database/drizzle/index.js +13 -13
  328. package/dist/database/drizzle/internal/drizzle-utils.js +1 -1
  329. package/dist/database/drizzle/sqlite-core/effect/count.js +1 -1
  330. package/dist/database/drizzle/sqlite-core/effect/db.js +9 -9
  331. package/dist/database/drizzle/sqlite-core/effect/delete.js +2 -2
  332. package/dist/database/drizzle/sqlite-core/effect/index.js +10 -10
  333. package/dist/database/drizzle/sqlite-core/effect/insert.js +2 -2
  334. package/dist/database/drizzle/sqlite-core/effect/query.js +1 -1
  335. package/dist/database/drizzle/sqlite-core/effect/raw.js +1 -1
  336. package/dist/database/drizzle/sqlite-core/effect/select.js +2 -2
  337. package/dist/database/drizzle/sqlite-core/effect/session.js +10 -10
  338. package/dist/database/drizzle/sqlite-core/effect/update.js +2 -2
  339. package/dist/database/drizzle.js +14 -14
  340. package/dist/database/migration/20260127222353_familiar_lady_ursula.js +1 -1
  341. package/dist/database/migration/20260211171708_add_project_commands.js +1 -1
  342. package/dist/database/migration/20260213144116_wakeful_the_professor.js +1 -1
  343. package/dist/database/migration/20260225215848_workspace.js +1 -1
  344. package/dist/database/migration/20260227213759_add_session_workspace_id.js +1 -1
  345. package/dist/database/migration/20260228203230_blue_harpoon.js +1 -1
  346. package/dist/database/migration/20260303231226_add_workspace_fields.js +1 -1
  347. package/dist/database/migration/20260309230000_move_org_to_state.js +1 -1
  348. package/dist/database/migration/20260312043431_session_message_cursor.js +1 -1
  349. package/dist/database/migration/20260323234822_events.js +1 -1
  350. package/dist/database/migration/20260410174513_workspace-name.js +1 -1
  351. package/dist/database/migration/20260413175956_chief_energizer.js +1 -1
  352. package/dist/database/migration/20260423070820_add_icon_url_override.js +1 -1
  353. package/dist/database/migration/20260427172553_slow_nightmare.js +1 -1
  354. package/dist/database/migration/20260428004200_add_session_path.js +1 -1
  355. package/dist/database/migration/20260501142318_next_venus.js +1 -1
  356. package/dist/database/migration/20260504145000_add_sync_owner.js +1 -1
  357. package/dist/database/migration/20260507164347_add_workspace_time.js +1 -1
  358. package/dist/database/migration/20260510033149_session_usage.js +1 -1
  359. package/dist/database/migration/20260511000411_data_migration_state.js +1 -1
  360. package/dist/database/migration/20260511173437_session-metadata.js +1 -1
  361. package/dist/database/migration/20260601010001_normalize_storage_paths.js +1 -1
  362. package/dist/database/migration/20260601202201_amazing_prowler.js +1 -1
  363. package/dist/database/migration/20260602002951_lowly_union_jack.js +1 -1
  364. package/dist/database/migration/20260602182828_add_project_directories.js +1 -1
  365. package/dist/database/migration/20260603001617_session_message_projection_indexes.js +1 -1
  366. package/dist/database/migration/20260603040000_session_message_projection_order.js +1 -1
  367. package/dist/database/migration/20260603141458_session_input_inbox.js +1 -1
  368. package/dist/database/migration/20260603160727_jittery_ezekiel_stane.js +1 -1
  369. package/dist/database/migration/20260604172448_event_sourced_session_input.js +1 -1
  370. package/dist/database/migration/20260605003541_add_session_context_snapshot.js +1 -1
  371. package/dist/database/migration/20260605042240_add_context_epoch_agent.js +1 -1
  372. package/dist/database/migration/20260611035744_credential.js +1 -1
  373. package/dist/database/migration/20260611192811_lush_chimera.js +1 -1
  374. package/dist/database/migration/20260612174303_project_dir_strategy.js +1 -1
  375. package/dist/database/migration/20260622142730_simplify_session_context_epoch.js +1 -1
  376. package/dist/database/migration/20260622170816_reset_v2_session_state.js +1 -1
  377. package/dist/database/migration/20260622202450_simplify_session_input.js +1 -1
  378. package/dist/database/migration/20260804233008_loose_psylocke.js +1 -1
  379. package/dist/database/migration/20260805200742_import_legacy_credentials.js +1 -1
  380. package/dist/database/migration/20260808023530_workspace_domain.js +1 -1
  381. package/dist/database/migration/20260811161259_execution_claim_attempts.js +1 -1
  382. package/dist/database/migration/20260812181746_session_inbox.js +1 -1
  383. package/dist/database/migration/20260812213948_worktree.js +1 -1
  384. package/dist/database/migration/20260819222447_session_viewed_state.js +1 -1
  385. package/dist/database/migration/20260823191254_nullable_workspace_binding.js +1 -1
  386. package/dist/database/migration/20260910120000_clear_v1_session_permission.js +1 -1
  387. package/dist/database/migration.gen.js +48 -48
  388. package/dist/database/migration.js +50 -50
  389. package/dist/database/path.js +2 -2
  390. package/dist/database/schema.gen.js +1 -1
  391. package/dist/database/schema.sql.js +1 -1
  392. package/dist/database/sqlite.bun.js +1 -1
  393. package/dist/database/sqlite.js +1 -1
  394. package/dist/database/sqlite.node.js +1 -1
  395. package/dist/database/sqlite.workerd.js +1 -1
  396. package/dist/database/v1-migration.bun.js +78 -78
  397. package/dist/database/v1-migration.js +1 -1
  398. package/dist/effect/app-node-builder.js +365 -365
  399. package/dist/effect/app-node-platform.js +2 -2
  400. package/dist/effect/keyed-mutex.js +3 -3
  401. package/dist/effect/websocket-constructor.js +1 -1
  402. package/dist/environment/driver.js +1 -1
  403. package/dist/environment/environment.js +92 -92
  404. package/dist/environment/exec-defaults.js +2 -2
  405. package/dist/environment/files.js +1 -1
  406. package/dist/environment/index.js +94 -94
  407. package/dist/environment/local.js +2 -2
  408. package/dist/environment/memory.js +2 -2
  409. package/dist/environment/unavailable.js +1 -1
  410. package/dist/event/sql.js +1 -1
  411. package/dist/event-logger.js +74 -74
  412. package/dist/file-access.js +103 -103
  413. package/dist/file-mutation.js +93 -93
  414. package/dist/file-retention.js +1 -1
  415. package/dist/file.js +1 -1
  416. package/dist/filesystem/fff.bun.js +2 -2
  417. package/dist/filesystem/fff.js +1 -1
  418. package/dist/filesystem/fff.node.js +2 -2
  419. package/dist/filesystem/fff.workerd.js +2 -2
  420. package/dist/filesystem/ignore.js +1 -1
  421. package/dist/filesystem/location-watcher-policy.js +6 -6
  422. package/dist/filesystem/location-watcher.js +225 -225
  423. package/dist/filesystem/protected.js +3 -3
  424. package/dist/filesystem/search.js +102 -102
  425. package/dist/filesystem/watcher-binding.js +3 -3
  426. package/dist/filesystem/watcher.js +15 -15
  427. package/dist/filesystem.js +107 -107
  428. package/dist/form.js +83 -83
  429. package/dist/formatter/builtins.js +4 -4
  430. package/dist/formatter.js +88 -88
  431. package/dist/generate.js +101 -90
  432. package/dist/git.js +10 -10
  433. package/dist/github-copilot/chat/convert-to-openai-compatible-chat-messages.js +1 -1
  434. package/dist/github-copilot/chat/get-response-metadata.js +1 -1
  435. package/dist/github-copilot/chat/map-openai-compatible-finish-reason.js +1 -1
  436. package/dist/github-copilot/chat/openai-compatible-chat-language-model.js +7 -7
  437. package/dist/github-copilot/chat/openai-compatible-chat-options.js +1 -1
  438. package/dist/github-copilot/chat/openai-compatible-prepare-tools.js +1 -1
  439. package/dist/github-copilot/copilot-provider.js +17 -17
  440. package/dist/github-copilot/models.js +98 -7
  441. package/dist/github-copilot/openai-compatible-error.js +1 -1
  442. package/dist/github-copilot/responses/convert-to-openai-responses-input.js +1 -1
  443. package/dist/github-copilot/responses/map-openai-responses-finish-reason.js +1 -1
  444. package/dist/github-copilot/responses/openai-error.js +1 -1
  445. package/dist/github-copilot/responses/openai-responses-language-model.js +10 -10
  446. package/dist/github-copilot/responses/openai-responses-prepare-tools.js +6 -6
  447. package/dist/github-copilot/responses/tool/code-interpreter.js +1 -1
  448. package/dist/github-copilot/responses/tool/file-search.js +1 -1
  449. package/dist/github-copilot/responses/tool/image-generation.js +1 -1
  450. package/dist/github-copilot/responses/tool/web-search-preview.js +1 -1
  451. package/dist/github-copilot/responses/tool/web-search.js +1 -1
  452. package/dist/id/id.js +1 -1
  453. package/dist/image/photon.js +2 -2
  454. package/dist/image.js +6 -6
  455. package/dist/instance/service.js +5 -5
  456. package/dist/instance.js +356 -356
  457. package/dist/instruction-discovery.js +84 -84
  458. package/dist/instructions/builtins.js +84 -84
  459. package/dist/instructions/index.js +5 -5
  460. package/dist/integration/connection.js +11 -19
  461. package/dist/integration.js +87 -87
  462. package/dist/job.js +76 -76
  463. package/dist/kv/sql.js +2 -2
  464. package/dist/kv.js +72 -72
  465. package/dist/location-activity.js +137 -137
  466. package/dist/location-mutation.js +103 -103
  467. package/dist/location-service-map.js +87 -87
  468. package/dist/location-services.js +353 -353
  469. package/dist/location.js +88 -88
  470. package/dist/mcp/client.js +90 -90
  471. package/dist/mcp/index.js +103 -103
  472. package/dist/mcp/instructions.js +120 -120
  473. package/dist/mcp/oauth.js +77 -77
  474. package/dist/mcp/stdio.js +89 -89
  475. package/dist/mime.js +1 -1
  476. package/dist/modal/models.js +98 -7
  477. package/dist/model-resolver.js +98 -87
  478. package/dist/model.js +102 -9
  479. package/dist/models-dev.js +105 -87
  480. package/dist/oauth/page.js +1 -1
  481. package/dist/permission/saved.js +77 -77
  482. package/dist/permission/sql.js +5 -5
  483. package/dist/permission.js +112 -112
  484. package/dist/persistent-pty/binary.bun.js +1 -1
  485. package/dist/persistent-pty/daemon.js +1 -1
  486. package/dist/persistent-pty/index.js +85 -85
  487. package/dist/persistent-pty/pty-binding.js +1 -1
  488. package/dist/persistent-pty.js +74 -74
  489. package/dist/plugin/agent.js +103 -103
  490. package/dist/plugin/command.js +100 -100
  491. package/dist/plugin/hooks.js +5 -5
  492. package/dist/plugin/host.js +216 -216
  493. package/dist/plugin/instance.js +5 -5
  494. package/dist/plugin/internal.js +327 -327
  495. package/dist/plugin/mcp-codemode-exclusion.js +3 -3
  496. package/dist/plugin/models-dev.js +94 -76
  497. package/dist/plugin/module.js +7 -7
  498. package/dist/plugin/optimize.js +4 -4
  499. package/dist/plugin/plan.js +101 -101
  500. package/dist/plugin/promise.js +1 -1
  501. package/dist/plugin/provider/alibaba.js +2 -2
  502. package/dist/plugin/provider/amazon-bedrock.js +89 -2
  503. package/dist/plugin/provider/azure.js +121 -121
  504. package/dist/plugin/provider/cerebras.js +89 -2
  505. package/dist/plugin/provider/cloudflare-ai-gateway.js +121 -121
  506. package/dist/plugin/provider/cloudflare-workers-ai.js +121 -121
  507. package/dist/plugin/provider/cohere.js +2 -2
  508. package/dist/plugin/provider/configured.js +118 -118
  509. package/dist/plugin/provider/digitalocean.js +92 -80
  510. package/dist/plugin/provider/dynamic.js +2 -2
  511. package/dist/plugin/provider/factory.js +1 -1
  512. package/dist/plugin/provider/gateway.js +2 -2
  513. package/dist/plugin/provider/github-copilot.js +92 -81
  514. package/dist/plugin/provider/gitlab.js +90 -3
  515. package/dist/plugin/provider/google-vertex.js +89 -2
  516. package/dist/plugin/provider/kilo.js +89 -2
  517. package/dist/plugin/provider/llmgateway.js +89 -77
  518. package/dist/plugin/provider/lmstudio.js +121 -121
  519. package/dist/plugin/provider/modal.js +91 -80
  520. package/dist/plugin/provider/nvidia.js +89 -2
  521. package/dist/plugin/provider/ollama.js +119 -119
  522. package/dist/plugin/provider/openai-compatible.js +1 -1
  523. package/dist/plugin/provider/openai.js +93 -81
  524. package/dist/plugin/provider/opencode.js +92 -80
  525. package/dist/plugin/provider/openrouter.js +90 -3
  526. package/dist/plugin/provider/perplexity.js +2 -2
  527. package/dist/plugin/provider/poe.js +77 -77
  528. package/dist/plugin/provider/sap-ai-core.js +90 -3
  529. package/dist/plugin/provider/sdk-factory.js +1 -1
  530. package/dist/plugin/provider/snowflake-cortex.js +121 -121
  531. package/dist/plugin/provider/venice.js +2 -2
  532. package/dist/plugin/provider/vercel.js +89 -2
  533. package/dist/plugin/provider/vllm.js +121 -121
  534. package/dist/plugin/provider/xai.js +90 -78
  535. package/dist/plugin/provider/zenmux.js +89 -2
  536. package/dist/plugin/provider.js +159 -159
  537. package/dist/plugin/sdk.js +71 -71
  538. package/dist/plugin/service.js +3 -3
  539. package/dist/plugin/skill.js +140 -137
  540. package/dist/plugin/source-directory.js +1 -1
  541. package/dist/plugin/supervisor.js +346 -346
  542. package/dist/plugin/update.js +6 -6
  543. package/dist/plugin/variant.js +91 -4
  544. package/dist/plugin/vcs/git.js +85 -85
  545. package/dist/plugin/vcs/hg.js +85 -85
  546. package/dist/plugin/warming.js +120 -116
  547. package/dist/plugin/websearch/exa.js +7 -7
  548. package/dist/plugin/websearch/firecrawl.js +8 -8
  549. package/dist/plugin/websearch/index.js +9 -9
  550. package/dist/plugin/websearch/mcp.js +6 -6
  551. package/dist/plugin/websearch/parallel.js +8 -8
  552. package/dist/plugin/websearch/tavily.js +6 -6
  553. package/dist/plugin/websearch/tinyfish.js +8 -8
  554. package/dist/plugin.js +223 -223
  555. package/dist/project/schema.js +8 -8
  556. package/dist/project/sql.js +4 -4
  557. package/dist/project.js +87 -87
  558. package/dist/provider.js +99 -6
  559. package/dist/pty/protocol.js +1 -1
  560. package/dist/pty/schema.js +1 -1
  561. package/dist/pty/ticket.js +1 -1
  562. package/dist/pty.js +85 -85
  563. package/dist/reference/instructions.js +88 -88
  564. package/dist/reference.js +90 -90
  565. package/dist/repository-cache.js +80 -80
  566. package/dist/repository.js +1 -1
  567. package/dist/ripgrep/binary.js +2 -2
  568. package/dist/ripgrep.js +96 -96
  569. package/dist/rpc.js +83 -83
  570. package/dist/schema.js +1 -1
  571. package/dist/session/command.js +73 -73
  572. package/dist/session/compaction.js +131 -131
  573. package/dist/session/context.js +151 -151
  574. package/dist/session/diff.js +87 -87
  575. package/dist/session/environment.js +5 -5
  576. package/dist/session/error.js +7 -7
  577. package/dist/session/event.js +1 -1
  578. package/dist/session/execution/restart.js +223 -223
  579. package/dist/session/execution.js +128 -128
  580. package/dist/session/generate.js +150 -150
  581. package/dist/session/history.js +15 -15
  582. package/dist/session/inbox.js +87 -87
  583. package/dist/session/info.js +3 -3
  584. package/dist/session/instruction-entry.js +76 -76
  585. package/dist/session/instruction-state.js +8 -8
  586. package/dist/session/instructions.js +96 -96
  587. package/dist/session/message-updater.js +2 -2
  588. package/dist/session/message.js +1 -1
  589. package/dist/session/model-request.js +117 -117
  590. package/dist/session/model-transport.js +9 -9
  591. package/dist/session/move.js +130 -130
  592. package/dist/session/projector.js +85 -85
  593. package/dist/session/prompt.js +104 -104
  594. package/dist/session/provider-context.js +3 -3
  595. package/dist/session/revert.js +89 -89
  596. package/dist/session/run-coordinator.js +1 -1
  597. package/dist/session/runner/index.js +3 -3
  598. package/dist/session/runner/llm.js +228 -228
  599. package/dist/session/runner/max-steps.js +1 -1
  600. package/dist/session/runner/model.js +98 -87
  601. package/dist/session/runner/publish-llm-event.js +3 -3
  602. package/dist/session/runner/retry.js +114 -114
  603. package/dist/session/runner/step.js +125 -125
  604. package/dist/session/runner/to-llm-message.js +2 -2
  605. package/dist/session/schema.js +5 -5
  606. package/dist/session/session.js +170 -170
  607. package/dist/session/shell.js +137 -134
  608. package/dist/session/skill.js +102 -102
  609. package/dist/session/sql.js +5 -5
  610. package/dist/session/stats.js +76 -75
  611. package/dist/session/store.js +86 -86
  612. package/dist/session/subagent-completion.js +1 -1
  613. package/dist/session/subagent-job.js +209 -209
  614. package/dist/session/system-prompt.js +5 -5
  615. package/dist/session/title.js +155 -155
  616. package/dist/session/to-session-error.js +111 -111
  617. package/dist/session/transfer.js +222 -222
  618. package/dist/session/usage.js +1 -1
  619. package/dist/session.js +219 -219
  620. package/dist/shell/parse.js +6 -6
  621. package/dist/shell/result.js +1 -1
  622. package/dist/shell/scan.js +1 -1
  623. package/dist/shell/select.js +9 -9
  624. package/dist/shell.js +139 -136
  625. package/dist/skill/discovery.js +4 -4
  626. package/dist/skill/instructions.js +106 -106
  627. package/dist/skill.js +109 -109
  628. package/dist/snapshot.js +88 -88
  629. package/dist/state.js +1 -1
  630. package/dist/tool/html-markdown.js +1 -1
  631. package/dist/tool/http-body.js +1 -1
  632. package/dist/tool/mcp.js +121 -121
  633. package/dist/tool/plugin/edit.js +119 -119
  634. package/dist/tool/plugin/file-diff.js +1 -1
  635. package/dist/tool/plugin/glob.js +121 -121
  636. package/dist/tool/plugin/grep.js +121 -121
  637. package/dist/tool/plugin/opencode.js +3 -3
  638. package/dist/tool/plugin/patch.js +121 -121
  639. package/dist/tool/plugin/question.js +102 -102
  640. package/dist/tool/plugin/read.js +124 -124
  641. package/dist/tool/plugin/shell.js +214 -214
  642. package/dist/tool/plugin/skill.js +112 -112
  643. package/dist/tool/plugin/subagent.js +216 -216
  644. package/dist/tool/plugin/webfetch.js +111 -111
  645. package/dist/tool/plugin/websearch.js +111 -111
  646. package/dist/tool/plugin/write.js +121 -121
  647. package/dist/tool/read-filesystem.js +99 -99
  648. package/dist/tool/runtime.js +1 -1
  649. package/dist/tool-output.js +8 -8
  650. package/dist/tool.js +15 -15
  651. package/dist/types/github-copilot/models.d.ts +61 -0
  652. package/dist/types/instance.d.ts +3 -2
  653. package/dist/types/integration/connection.d.ts +8 -0
  654. package/dist/types/integration.d.ts +2 -0
  655. package/dist/types/modal/models.d.ts +30 -0
  656. package/dist/types/model-resolver.d.ts +2 -3
  657. package/dist/types/model.d.ts +33 -0
  658. package/dist/types/plugin/host.d.ts +4 -3
  659. package/dist/types/plugin/internal.d.ts +4 -3
  660. package/dist/types/plugin/provider/azure.d.ts +2 -1
  661. package/dist/types/plugin/provider/cloudflare-ai-gateway.d.ts +2 -1
  662. package/dist/types/plugin/provider/cloudflare-workers-ai.d.ts +2 -1
  663. package/dist/types/plugin/provider/configured.d.ts +1 -2
  664. package/dist/types/plugin/provider/github-copilot.d.ts +2 -2
  665. package/dist/types/plugin/provider/modal.d.ts +2 -2
  666. package/dist/types/plugin/provider/snowflake-cortex.d.ts +2 -1
  667. package/dist/types/provider.d.ts +43 -1
  668. package/dist/types/state.d.ts +4 -0
  669. package/dist/types/v1/config/migrate.d.ts +3 -3
  670. package/dist/util/error-summary.js +1 -1
  671. package/dist/util/error.js +1 -1
  672. package/dist/util/git-executable.js +2 -2
  673. package/dist/util/iife.js +1 -1
  674. package/dist/util/lazy.js +1 -1
  675. package/dist/util/slug.js +1 -1
  676. package/dist/util/token.js +1 -1
  677. package/dist/util/which.js +1 -1
  678. package/dist/util/wildcard.js +1 -1
  679. package/dist/v1/config/agent.js +7 -7
  680. package/dist/v1/config/attachment.js +4 -4
  681. package/dist/v1/config/command.js +3 -3
  682. package/dist/v1/config/config.js +16 -16
  683. package/dist/v1/config/error.js +4 -4
  684. package/dist/v1/config/formatter.js +7 -7
  685. package/dist/v1/config/layout.js +1 -1
  686. package/dist/v1/config/lsp.js +5 -5
  687. package/dist/v1/config/mcp.js +4 -4
  688. package/dist/v1/config/migrate.js +91 -4
  689. package/dist/v1/config/permission.js +7 -7
  690. package/dist/v1/config/plugin.js +3 -3
  691. package/dist/v1/config/provider-options.js +1 -1
  692. package/dist/v1/config/provider.js +4 -4
  693. package/dist/v1/config/server.js +2 -2
  694. package/dist/v1/config/skills.js +3 -3
  695. package/dist/v1/permission.js +1 -1
  696. package/dist/vcs/patch.js +1 -1
  697. package/dist/vcs.js +88 -88
  698. package/dist/websearch.js +81 -81
  699. package/dist/wellknown/plugin.js +75 -75
  700. package/dist/wellknown.js +78 -78
  701. package/dist/workspace/driver.js +7 -7
  702. package/dist/workspace/sql.js +1 -1
  703. package/dist/workspace.js +79 -79
  704. package/dist/worktree/directory.js +4 -4
  705. package/dist/worktree/git.js +10 -10
  706. package/dist/worktree/refresh.js +345 -345
  707. package/dist/worktree/sql.js +5 -5
  708. package/dist/worktree.js +93 -93
  709. package/package.json +8 -8
  710. package/dist/catalog.js +0 -89
  711. package/dist/chunks/schema-2rnk416m.js +0 -247
  712. package/dist/chunks/schema-bsgewm40.js +0 -26
  713. package/dist/chunks/schema-c3s2gn8c.js +0 -49
  714. package/dist/chunks/schema-jr3e8pb9.js +0 -55
  715. package/dist/chunks/schema-qdyb70sk.js +0 -18
  716. package/dist/chunks/schema-yh4as7xh.js +0 -193
  717. package/dist/types/catalog.d.ts +0 -49
  718. /package/dist/chunks/{schema-0mesazry.js → tool-0mesazry.js} +0 -0
  719. /package/dist/chunks/{schema-0qkdqm5v.js → tool-0qkdqm5v.js} +0 -0
  720. /package/dist/chunks/{schema-0zkw76rk.js → tool-0zkw76rk.js} +0 -0
  721. /package/dist/chunks/{schema-17cy0kzp.js → tool-17cy0kzp.js} +0 -0
  722. /package/dist/chunks/{schema-1cnp2v09.js → tool-1cnp2v09.js} +0 -0
  723. /package/dist/chunks/{schema-1kg9ymc8.js → tool-1kg9ymc8.js} +0 -0
  724. /package/dist/chunks/{schema-2710q6r3.js → tool-2710q6r3.js} +0 -0
  725. /package/dist/chunks/{schema-2axfhc9x.js → tool-2axfhc9x.js} +0 -0
  726. /package/dist/chunks/{schema-2c3vjs8z.js → tool-2c3vjs8z.js} +0 -0
  727. /package/dist/chunks/{schema-359p4xyc.js → tool-359p4xyc.js} +0 -0
  728. /package/dist/chunks/{schema-3asan66x.js → tool-3asan66x.js} +0 -0
  729. /package/dist/chunks/{schema-3v8g72cx.js → tool-3v8g72cx.js} +0 -0
  730. /package/dist/chunks/{schema-3w5fmr99.js → tool-3w5fmr99.js} +0 -0
  731. /package/dist/chunks/{schema-3wcehsnq.js → tool-3wcehsnq.js} +0 -0
  732. /package/dist/chunks/{schema-43n2bw4t.js → tool-43n2bw4t.js} +0 -0
  733. /package/dist/chunks/{schema-4knz6hnm.js → tool-4knz6hnm.js} +0 -0
  734. /package/dist/chunks/{schema-4vcrnpx2.js → tool-4vcrnpx2.js} +0 -0
  735. /package/dist/chunks/{schema-4y7fprxs.js → tool-4y7fprxs.js} +0 -0
  736. /package/dist/chunks/{schema-53557ph1.js → tool-53557ph1.js} +0 -0
  737. /package/dist/chunks/{schema-550bvhaj.js → tool-550bvhaj.js} +0 -0
  738. /package/dist/chunks/{schema-6prwharc.js → tool-6prwharc.js} +0 -0
  739. /package/dist/chunks/{schema-7akdwqpd.js → tool-7akdwqpd.js} +0 -0
  740. /package/dist/chunks/{schema-7m9af43g.js → tool-7m9af43g.js} +0 -0
  741. /package/dist/chunks/{schema-822emrt2.js → tool-822emrt2.js} +0 -0
  742. /package/dist/chunks/{schema-88xbtdfr.js → tool-88xbtdfr.js} +0 -0
  743. /package/dist/chunks/{schema-8n3pysct.js → tool-8n3pysct.js} +0 -0
  744. /package/dist/chunks/{schema-922hggd3.js → tool-922hggd3.js} +0 -0
  745. /package/dist/chunks/{schema-9a4afbnw.js → tool-9a4afbnw.js} +0 -0
  746. /package/dist/chunks/{schema-9rqn6x4v.js → tool-9rqn6x4v.js} +0 -0
  747. /package/dist/chunks/{schema-a6k6eb26.js → tool-a6k6eb26.js} +0 -0
  748. /package/dist/chunks/{schema-af5trqkr.js → tool-af5trqkr.js} +0 -0
  749. /package/dist/chunks/{schema-afrmfg78.js → tool-afrmfg78.js} +0 -0
  750. /package/dist/chunks/{schema-aqzs7mqg.js → tool-aqzs7mqg.js} +0 -0
  751. /package/dist/chunks/{schema-atq7p7m5.js → tool-atq7p7m5.js} +0 -0
  752. /package/dist/chunks/{schema-bkyjaxrp.js → tool-bkyjaxrp.js} +0 -0
  753. /package/dist/chunks/{schema-bmr6ed5q.js → tool-bmr6ed5q.js} +0 -0
  754. /package/dist/chunks/{schema-cf4snx6d.js → tool-cf4snx6d.js} +0 -0
  755. /package/dist/chunks/{schema-cvy3z8tj.js → tool-cvy3z8tj.js} +0 -0
  756. /package/dist/chunks/{schema-d9fn303g.js → tool-d9fn303g.js} +0 -0
  757. /package/dist/chunks/{schema-d9jj8t3e.js → tool-d9jj8t3e.js} +0 -0
  758. /package/dist/chunks/{schema-dajrwvna.js → tool-dajrwvna.js} +0 -0
  759. /package/dist/chunks/{schema-dap0rakb.js → tool-dap0rakb.js} +0 -0
  760. /package/dist/chunks/{schema-df08tz66.js → tool-df08tz66.js} +0 -0
  761. /package/dist/chunks/{schema-dy18nga0.js → tool-dy18nga0.js} +0 -0
  762. /package/dist/chunks/{schema-e5kj55wp.js → tool-e5kj55wp.js} +0 -0
  763. /package/dist/chunks/{schema-e73j6tqm.js → tool-e73j6tqm.js} +0 -0
  764. /package/dist/chunks/{schema-ec1grn59.js → tool-ec1grn59.js} +0 -0
  765. /package/dist/chunks/{schema-eh3zwz77.js → tool-eh3zwz77.js} +0 -0
  766. /package/dist/chunks/{schema-emrn6kk6.js → tool-emrn6kk6.js} +0 -0
  767. /package/dist/chunks/{schema-f0mxakyp.js → tool-f0mxakyp.js} +0 -0
  768. /package/dist/chunks/{schema-f6n9ztr4.js → tool-f6n9ztr4.js} +0 -0
  769. /package/dist/chunks/{schema-faypxj3z.js → tool-faypxj3z.js} +0 -0
  770. /package/dist/chunks/{schema-fd410y7t.js → tool-fd410y7t.js} +0 -0
  771. /package/dist/chunks/{schema-fxgpk5d8.js → tool-fxgpk5d8.js} +0 -0
  772. /package/dist/chunks/{schema-g4wezp1m.js → tool-g4wezp1m.js} +0 -0
  773. /package/dist/chunks/{schema-g86h250q.js → tool-g86h250q.js} +0 -0
  774. /package/dist/chunks/{schema-gebd4c9n.js → tool-gebd4c9n.js} +0 -0
  775. /package/dist/chunks/{schema-gftt206x.js → tool-gftt206x.js} +0 -0
  776. /package/dist/chunks/{schema-hjbc5kem.js → tool-hjbc5kem.js} +0 -0
  777. /package/dist/chunks/{schema-hk9envan.js → tool-hk9envan.js} +0 -0
  778. /package/dist/chunks/{schema-hrnqkpcd.js → tool-hrnqkpcd.js} +0 -0
  779. /package/dist/chunks/{schema-j2ntwpah.js → tool-j2ntwpah.js} +0 -0
  780. /package/dist/chunks/{schema-j5zkgpj8.js → tool-j5zkgpj8.js} +0 -0
  781. /package/dist/chunks/{schema-jr7sbwjy.js → tool-jr7sbwjy.js} +0 -0
  782. /package/dist/chunks/{schema-jwfs4k6c.js → tool-jwfs4k6c.js} +0 -0
  783. /package/dist/chunks/{schema-jzg6c2d5.js → tool-jzg6c2d5.js} +0 -0
  784. /package/dist/chunks/{schema-mp448xyj.js → tool-mp448xyj.js} +0 -0
  785. /package/dist/chunks/{schema-msx8hqn2.js → tool-msx8hqn2.js} +0 -0
  786. /package/dist/chunks/{schema-n05xt0ee.js → tool-n05xt0ee.js} +0 -0
  787. /package/dist/chunks/{schema-n3j8tn72.js → tool-n3j8tn72.js} +0 -0
  788. /package/dist/chunks/{schema-njntx4h6.js → tool-njntx4h6.js} +0 -0
  789. /package/dist/chunks/{schema-q3sfg36h.js → tool-q3sfg36h.js} +0 -0
  790. /package/dist/chunks/{schema-q74kybfr.js → tool-q74kybfr.js} +0 -0
  791. /package/dist/chunks/{schema-qaymkmh1.js → tool-qaymkmh1.js} +0 -0
  792. /package/dist/chunks/{schema-qb87gjwd.js → tool-qb87gjwd.js} +0 -0
  793. /package/dist/chunks/{schema-qfa1cgps.js → tool-qfa1cgps.js} +0 -0
  794. /package/dist/chunks/{schema-qrg20bc0.js → tool-qrg20bc0.js} +0 -0
  795. /package/dist/chunks/{schema-rcb2kzg1.js → tool-rcb2kzg1.js} +0 -0
  796. /package/dist/chunks/{schema-sdp7kfr6.js → tool-sdp7kfr6.js} +0 -0
  797. /package/dist/chunks/{schema-sk3qaz4a.js → tool-sk3qaz4a.js} +0 -0
  798. /package/dist/chunks/{schema-ssg3fenm.js → tool-ssg3fenm.js} +0 -0
  799. /package/dist/chunks/{schema-twg0f83k.js → tool-twg0f83k.js} +0 -0
  800. /package/dist/chunks/{schema-w803qqfp.js → tool-w803qqfp.js} +0 -0
  801. /package/dist/chunks/{schema-wer8tq1h.js → tool-wer8tq1h.js} +0 -0
  802. /package/dist/chunks/{schema-wtztk69x.js → tool-wtztk69x.js} +0 -0
  803. /package/dist/chunks/{schema-x0ckcb58.js → tool-x0ckcb58.js} +0 -0
  804. /package/dist/chunks/{schema-x61499pn.js → tool-x61499pn.js} +0 -0
  805. /package/dist/chunks/{schema-y44na4kk.js → tool-y44na4kk.js} +0 -0
  806. /package/dist/chunks/{schema-y8cydn3q.js → tool-y8cydn3q.js} +0 -0
  807. /package/dist/chunks/{schema-y8f7s663.js → tool-y8f7s663.js} +0 -0
  808. /package/dist/chunks/{schema-ygaqb7jw.js → tool-ygaqb7jw.js} +0 -0
  809. /package/dist/chunks/{schema-ym463w8f.js → tool-ym463w8f.js} +0 -0
  810. /package/dist/chunks/{schema-z9919s4g.js → tool-z9919s4g.js} +0 -0
@@ -1,38 +1,38 @@
1
1
  import {
2
- Service40
3
- } from "./schema-dm8kv9e9.js";
2
+ Service60
3
+ } from "./tool-vqdbe12f.js";
4
4
  import {
5
5
  match2
6
- } from "./schema-y1fvbwt7.js";
6
+ } from "./tool-y1fvbwt7.js";
7
7
  import {
8
8
  observe2
9
- } from "./schema-qsdy395h.js";
9
+ } from "./tool-qsdy395h.js";
10
10
  import {
11
11
  __export
12
- } from "./schema-9rqn6x4v.js";
12
+ } from "./tool-9rqn6x4v.js";
13
13
 
14
14
  // src/config/plugin/policy.ts
15
15
  var exports_policy = {};
16
16
  __export(exports_policy, {
17
17
  ConfigPolicyPlugin: () => exports_policy,
18
- Plugin: () => Plugin19
18
+ Plugin: () => Plugin17
19
19
  });
20
20
  import { define } from "@opencode/plugin/effect/plugin";
21
21
  import { Effect } from "effect";
22
- var Plugin19 = define({
22
+ var Plugin17 = define({
23
23
  id: "opencode.config.policy",
24
24
  effect: Effect.fn(function* (ctx) {
25
- const config = yield* Service40;
26
- const loaded = yield* observe2(config, ctx.event, ctx.catalog.reload());
27
- yield* ctx.catalog.transform((catalog) => {
25
+ const config = yield* Service60;
26
+ const loaded = yield* observe2(config, ctx.event, ctx.provider.reload());
27
+ yield* ctx.provider.transform((providers) => {
28
28
  const policies = loaded.entries.filter((entry) => entry.type === "document").toReversed().flatMap((entry) => entry.info.experimental?.policies ?? []);
29
- for (const record of catalog.provider.list()) {
29
+ for (const record of providers.list()) {
30
30
  const policy = policies.findLast((policy) => match2(record.provider.id, policy.resource));
31
31
  if (policy?.effect === "deny")
32
- catalog.provider.remove(record.provider.id);
32
+ providers.remove(record.provider.id);
33
33
  }
34
34
  });
35
35
  })
36
36
  });
37
37
 
38
- export { Plugin19, exports_policy };
38
+ export { Plugin17, exports_policy };
@@ -1,17 +1,17 @@
1
1
  import {
2
2
  useragent2
3
- } from "./schema-3hf7z3yq.js";
3
+ } from "./tool-f1ts345w.js";
4
4
  import {
5
5
  OAuth3,
6
- Service63
7
- } from "./schema-gg2v66ak.js";
6
+ Service75
7
+ } from "./tool-2wvxgkaf.js";
8
8
  import {
9
- ID9,
9
+ ID14,
10
10
  MethodID2
11
- } from "./schema-7f0264at.js";
11
+ } from "./tool-1gfn0ycf.js";
12
12
  import {
13
- ID18
14
- } from "./schema-33n3bzdy.js";
13
+ ID13
14
+ } from "./tool-40tbggcp.js";
15
15
 
16
16
  // src/plugin/provider/xai.ts
17
17
  import { define } from "@opencode/plugin/effect/plugin";
@@ -23,7 +23,7 @@ var scope = "openid profile email offline_access grok-cli:access api:access";
23
23
  var pollingSafetyMargin = 3000;
24
24
  var browserMethodID = MethodID2.make("browser");
25
25
  var deviceMethodID = MethodID2.make("device");
26
- var providerID = ID18.make("xai");
26
+ var providerID = ID13.make("xai");
27
27
  var Token = Schema.Struct({
28
28
  access_token: Schema.String,
29
29
  refresh_token: Schema.optional(Schema.String),
@@ -43,7 +43,7 @@ var DeviceError = Schema.Struct({
43
43
  });
44
44
  var decodeDeviceError = Schema.decodeUnknownOption(Schema.fromJsonString(DeviceError));
45
45
  var device = (app) => ({
46
- integrationID: ID9.make("xai"),
46
+ integrationID: ID14.make("xai"),
47
47
  method: {
48
48
  id: deviceMethodID,
49
49
  type: "oauth",
@@ -68,8 +68,8 @@ var device = (app) => ({
68
68
  var XAIPlugin2 = define({
69
69
  id: "opencode.provider.xai",
70
70
  effect: Effect.fn(function* (ctx) {
71
- const credentials = yield* Service63;
72
- yield* Effect.forEach(yield* credentials.list(ID9.make("xai")), (credential) => {
71
+ const credentials = yield* Service75;
72
+ yield* Effect.forEach(yield* credentials.list(ID14.make("xai")), (credential) => {
73
73
  if (credential.value.type !== "oauth" || credential.value.methodID !== browserMethodID)
74
74
  return Effect.void;
75
75
  return credentials.update(credential.id, {
@@ -83,12 +83,9 @@ var XAIPlugin2 = define({
83
83
  editor.method.update(device(ctx.app));
84
84
  editor.method.update({ integrationID: "xai", method: { type: "key", label: "Manually enter API Key" } });
85
85
  });
86
- yield* ctx.catalog.transform((catalog) => {
87
- const provider = catalog.provider.get(providerID);
88
- if (!provider)
89
- return;
90
- for (const model of provider.models.values()) {
91
- catalog.model.update(providerID, model.id, (draft) => {
86
+ yield* ctx.model.transform((models) => {
87
+ for (const model of models.list(providerID)) {
88
+ models.update(providerID, model.id, (draft) => {
92
89
  draft.capabilities.responsesWebsockets = true;
93
90
  draft.websocket = true;
94
91
  });
@@ -1,27 +1,27 @@
1
1
  import {
2
- Service80
3
- } from "./schema-p8ee7rnh.js";
2
+ Service81
3
+ } from "./tool-2vg6efqn.js";
4
4
  import {
5
- Service34
6
- } from "./schema-vzm76b3t.js";
5
+ Service43
6
+ } from "./tool-ve6nm2s5.js";
7
7
  import {
8
8
  awaitActivation2
9
- } from "./schema-qdyb70sk.js";
9
+ } from "./tool-9sh4wc5j.js";
10
10
  import {
11
11
  provenance2
12
- } from "./schema-mfhfdr54.js";
12
+ } from "./tool-88sz8qcd.js";
13
13
  import {
14
14
  preview2
15
- } from "./schema-nvck40qe.js";
15
+ } from "./tool-tg3z6q21.js";
16
16
  import {
17
17
  baseTranscript2
18
- } from "./schema-aqqw58sn.js";
18
+ } from "./tool-d55qd04d.js";
19
19
  import {
20
- Service19
21
- } from "./schema-yea1wtgt.js";
20
+ Service22
21
+ } from "./tool-knc2ad2x.js";
22
22
  import {
23
23
  __export
24
- } from "./schema-9rqn6x4v.js";
24
+ } from "./tool-9rqn6x4v.js";
25
25
 
26
26
  // src/session/generate.ts
27
27
  var exports_generate = {};
@@ -32,12 +32,12 @@ __export(exports_generate, {
32
32
  import { LLMClient, Message } from "@opencode/ai";
33
33
  import { Effect } from "effect";
34
34
  var generate3 = Effect.fn("SessionGenerate.generate")(function* (input) {
35
- const instances = yield* Service34;
36
- const database = yield* Service80;
35
+ const instances = yield* Service43;
36
+ const database = yield* Service81;
37
37
  const llm = yield* LLMClient.Service;
38
38
  return yield* Effect.gen(function* () {
39
39
  yield* awaitActivation2;
40
- const context = yield* Service19;
40
+ const context = yield* Service22;
41
41
  const selection = yield* context.select(input.session.id);
42
42
  const model = yield* context.resolveModel(selection.session);
43
43
  const history = yield* preview2(database.db, selection.session.id, selection.instructions, provenance2(model) ?? "local");
@@ -1,45 +1,45 @@
1
1
  import {
2
- Service41
3
- } from "./schema-14a1bm7w.js";
2
+ Service61
3
+ } from "./tool-fgb2mcbr.js";
4
4
  import {
5
5
  unavailable3
6
- } from "./schema-02nrjc1r.js";
6
+ } from "./tool-t550f9t1.js";
7
7
  import {
8
8
  AbsolutePath2
9
- } from "./schema-922hggd3.js";
9
+ } from "./tool-922hggd3.js";
10
10
  import {
11
11
  File2,
12
- Service76
13
- } from "./schema-8b5a8700.js";
12
+ Service37
13
+ } from "./tool-jj2x8ya3.js";
14
14
  import {
15
- Service70
16
- } from "./schema-skkcpn4x.js";
15
+ Service77
16
+ } from "./tool-kj8x889q.js";
17
17
  import {
18
18
  __export
19
- } from "./schema-9rqn6x4v.js";
19
+ } from "./tool-9rqn6x4v.js";
20
20
 
21
21
  // src/config/plugin/instruction.ts
22
22
  var exports_instruction = {};
23
23
  __export(exports_instruction, {
24
24
  ConfigInstructionPlugin: () => exports_instruction,
25
- Plugin: () => Plugin29
25
+ Plugin: () => Plugin12
26
26
  });
27
27
  import { define } from "@opencode/plugin/effect/plugin";
28
28
  import { FSUtil } from "@opencode/util/fs-util";
29
29
  import { Global } from "@opencode/util/global";
30
30
  import { dirname, join } from "path";
31
31
  import { Effect, PubSub, Semaphore, Stream } from "effect";
32
- var Plugin29 = define({
32
+ var Plugin12 = define({
33
33
  id: "opencode.config.instruction",
34
34
  effect: Effect.fn(function* () {
35
- const discovery = yield* Service76;
35
+ const discovery = yield* Service37;
36
36
  if (!discovery.project && !discovery.global)
37
37
  return;
38
38
  yield* Effect.gen(function* () {
39
39
  const fs = yield* FSUtil.Service;
40
40
  const global = yield* Global.Service;
41
- const location = yield* Service70;
42
- const watcher = yield* Service41;
41
+ const location = yield* Service77;
42
+ const watcher = yield* Service61;
43
43
  const changes = yield* PubSub.sliding(1);
44
44
  const lock = Semaphore.makeUnsafe(1);
45
45
  const start = yield* fs.resolve(location.directory);
@@ -114,4 +114,4 @@ function ancestorDirectories(start, stop) {
114
114
  return [start, ...ancestorDirectories(dirname(start), stop)];
115
115
  }
116
116
 
117
- export { Plugin29, exports_instruction };
117
+ export { Plugin12, exports_instruction };
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  create3
3
- } from "./schema-kg06axw8.js";
3
+ } from "./tool-rdw6cm16.js";
4
4
  import {
5
5
  __export
6
- } from "./schema-9rqn6x4v.js";
6
+ } from "./tool-9rqn6x4v.js";
7
7
 
8
8
  // src/image.ts
9
9
  var exports_image2 = {};
@@ -11,9 +11,9 @@ __export(exports_image2, {
11
11
  DecodeError: () => DecodeError2,
12
12
  Image: () => exports_image2,
13
13
  ResizerUnavailableError: () => ResizerUnavailableError2,
14
- Service: () => Service47,
14
+ Service: () => Service66,
15
15
  SizeError: () => SizeError2,
16
- node: () => node50
16
+ node: () => node71
17
17
  });
18
18
  import { makeLocationNode } from "@opencode/util/effect/app-node";
19
19
  import { Context, Effect, Layer, Schema } from "effect";
@@ -42,9 +42,9 @@ class SizeError2 extends Schema.TaggedError()("Image.SizeError", {
42
42
  }
43
43
  }
44
44
 
45
- class Service47 extends Context.Service()("@opencode/Image") {
45
+ class Service66 extends Context.Service()("@opencode/Image") {
46
46
  }
47
- var layer = Layer.effect(Service47, Effect.gen(function* () {
47
+ var layer = Layer.effect(Service66, Effect.gen(function* () {
48
48
  const state = create3({
49
49
  name: "image",
50
50
  initial: () => ({
@@ -74,8 +74,8 @@ var layer = Layer.effect(Service47, Effect.gen(function* () {
74
74
  const normalize = yield* loadAdapter;
75
75
  return yield* normalize(resource, content, state.get());
76
76
  });
77
- return Service47.of({ transform: state.transform, reload: state.reload, normalize });
77
+ return Service66.of({ transform: state.transform, reload: state.reload, normalize });
78
78
  }));
79
- var node50 = makeLocationNode({ service: Service47, layer, deps: [] });
79
+ var node71 = makeLocationNode({ service: Service66, layer, deps: [] });
80
80
 
81
- export { ResizerUnavailableError2, DecodeError2, SizeError2, Service47, node50, exports_image2 };
81
+ export { ResizerUnavailableError2, DecodeError2, SizeError2, Service66, node71, exports_image2 };
@@ -1,27 +1,29 @@
1
1
  import {
2
- ID18,
2
+ ID13,
3
3
  aisdk2,
4
4
  mergeOverlay2
5
- } from "./schema-33n3bzdy.js";
5
+ } from "./tool-40tbggcp.js";
6
6
  import {
7
- ID17,
7
+ ID12,
8
8
  VariantID2,
9
- Info32,
9
+ Info26,
10
10
  compatibility2
11
- } from "./schema-c3s2gn8c.js";
11
+ } from "./tool-7v2wf9c4.js";
12
12
  import {
13
13
  __export
14
- } from "./schema-9rqn6x4v.js";
14
+ } from "./tool-9rqn6x4v.js";
15
15
 
16
16
  // src/modal/models.ts
17
- var exports_models = {};
18
- __export(exports_models, {
19
- ModalModels: () => exports_models,
20
- get: () => get2
17
+ var exports_models2 = {};
18
+ __export(exports_models2, {
19
+ ModalModels: () => exports_models2,
20
+ derive: () => derive3,
21
+ get: () => get3,
22
+ load: () => load3
21
23
  });
22
24
  import { Money } from "@opencode/schema/money";
23
25
  import { Option, Schema } from "effect";
24
- var providerID = ID18.make("modal");
26
+ var providerID = ID13.make("modal");
25
27
  var ReasoningOption = Schema.Struct({
26
28
  type: Schema.Literal("effort"),
27
29
  values: Schema.Array(Schema.NullOr(Schema.String))
@@ -53,7 +55,10 @@ var RemoteModel = Schema.Struct({
53
55
  var Response = Schema.Struct({ data: Schema.Array(Schema.Unknown) });
54
56
  var decodeResponse = Schema.decodeUnknownSync(Response);
55
57
  var decodeModel = Schema.decodeUnknownOption(RemoteModel);
56
- async function get2(baseURL, apiKey, existing) {
58
+ async function get3(baseURL, apiKey, existing) {
59
+ return derive3(baseURL, await load3(baseURL, apiKey), existing);
60
+ }
61
+ async function load3(baseURL, apiKey) {
57
62
  const response = await fetch(`${baseURL.replace(/\/+$/, "")}/models`, {
58
63
  headers: {
59
64
  Authorization: `Bearer ${apiKey}`
@@ -62,15 +67,17 @@ async function get2(baseURL, apiKey, existing) {
62
67
  });
63
68
  if (!response.ok)
64
69
  throw new Error(`Failed to fetch Modal models: ${response.status}`);
65
- const remote = decodeResponse(await response.json()).data.flatMap((raw) => {
70
+ return decodeResponse(await response.json()).data.flatMap((raw) => {
66
71
  const model = Option.getOrUndefined(decodeModel(raw));
67
72
  return model ? [model] : [];
68
73
  });
74
+ }
75
+ function derive3(baseURL, remote, existing) {
69
76
  const templates = new Map(existing.map((model) => [model.id, model]));
70
77
  const result = new Map;
71
78
  for (const item of remote) {
72
- const template = templates.get(ID17.make(item.base_model_id ?? item.hugging_face_id ?? item.id));
73
- const id = ID17.make(item.id);
79
+ const template = templates.get(ID12.make(item.base_model_id ?? item.hugging_face_id ?? item.id));
80
+ const id = ID12.make(item.id);
74
81
  result.set(id, build(id, item, baseURL, template));
75
82
  }
76
83
  return result;
@@ -88,10 +95,10 @@ function limit(value, fallback) {
88
95
  function build(id, remote, baseURL, previous) {
89
96
  const cost = previous?.cost[0];
90
97
  const input = previous?.limit.input;
91
- return Info32.make({
92
- ...Info32.default(providerID, id),
98
+ return Info26.make({
99
+ ...Info26.default(providerID, id),
93
100
  id,
94
- modelID: ID17.make(remote.id),
101
+ modelID: ID12.make(remote.id),
95
102
  providerID,
96
103
  name: remote.name ?? previous?.name ?? remote.id,
97
104
  family: previous?.family,
@@ -138,4 +145,4 @@ function variants(remote) {
138
145
  return [...seen.values()];
139
146
  }
140
147
 
141
- export { get2, exports_models };
148
+ export { get3, load3, derive3, exports_models2 };
@@ -1,56 +1,56 @@
1
1
  import {
2
- Service79,
3
- node83
4
- } from "./schema-g5rn0d52.js";
2
+ Service80,
3
+ node85
4
+ } from "./tool-1bkx5pwe.js";
5
5
  import {
6
6
  parse4,
7
7
  parseRemote2,
8
8
  validateBranch3,
9
9
  isRemote2,
10
10
  cachePath2
11
- } from "./schema-2402vzrj.js";
11
+ } from "./tool-2402vzrj.js";
12
12
  import {
13
13
  AbsolutePath2
14
- } from "./schema-922hggd3.js";
14
+ } from "./tool-922hggd3.js";
15
15
  import {
16
- Service74,
17
- node78
18
- } from "./schema-88jrr0c1.js";
16
+ Service69,
17
+ node74
18
+ } from "./tool-hswenssz.js";
19
19
  import {
20
20
  create3
21
- } from "./schema-kg06axw8.js";
21
+ } from "./tool-rdw6cm16.js";
22
22
  import {
23
23
  __export
24
- } from "./schema-9rqn6x4v.js";
24
+ } from "./tool-9rqn6x4v.js";
25
25
 
26
26
  // src/reference.ts
27
27
  var exports_reference2 = {};
28
28
  __export(exports_reference2, {
29
- Event: () => Event18,
29
+ Event: () => Event6,
30
30
  GitSource: () => GitSource2,
31
- Info: () => Info31,
31
+ Info: () => Info5,
32
32
  LocalSource: () => LocalSource2,
33
33
  Reference: () => exports_reference2,
34
- Service: () => Service73,
35
- Source: () => Source5,
36
- node: () => node77
34
+ Service: () => Service33,
35
+ Source: () => Source3,
36
+ node: () => node37
37
37
  });
38
38
  import { makeLocationNode } from "@opencode/util/effect/app-node";
39
39
  import { Context, Effect, Layer, Scope } from "effect";
40
40
  import { Reference } from "@opencode/schema/reference";
41
41
  import { Global } from "@opencode/util/global";
42
- import { Event as Event18 } from "@opencode/schema/reference";
42
+ import { Event as Event6 } from "@opencode/schema/reference";
43
43
  var LocalSource2 = Reference.LocalSource;
44
44
  var GitSource2 = Reference.GitSource;
45
- var Source5 = Reference.Source;
46
- var Info31 = Reference.Info;
45
+ var Source3 = Reference.Source;
46
+ var Info5 = Reference.Info;
47
47
 
48
- class Service73 extends Context.Service()("@opencode/Reference") {
48
+ class Service33 extends Context.Service()("@opencode/Reference") {
49
49
  }
50
- var layer = Layer.effect(Service73, Effect.gen(function* () {
50
+ var layer = Layer.effect(Service33, Effect.gen(function* () {
51
51
  const global = yield* Global.Service;
52
- const bus = yield* Service79;
53
- const cache = yield* Service74;
52
+ const bus = yield* Service80;
53
+ const cache = yield* Service69;
54
54
  const scope = yield* Scope.Scope;
55
55
  const list = () => Array.from(state.get().sources).flatMap(([name, source]) => {
56
56
  const info = {
@@ -60,7 +60,7 @@ var layer = Layer.effect(Service73, Effect.gen(function* () {
60
60
  ...source.hidden === undefined ? {} : { hidden: source.hidden }
61
61
  };
62
62
  if (source.type === "local")
63
- return [Info31.make({ ...info, path: source.path })];
63
+ return [Info5.make({ ...info, path: source.path })];
64
64
  const repository = parse4(source.repository);
65
65
  if (!repository || !isRemote2(repository))
66
66
  return [];
@@ -72,7 +72,7 @@ var layer = Layer.effect(Service73, Effect.gen(function* () {
72
72
  }
73
73
  }
74
74
  return [
75
- Info31.make({
75
+ Info5.make({
76
76
  ...info,
77
77
  path: AbsolutePath2.make(cachePath2(global.repos, repository, source.branch))
78
78
  })
@@ -104,7 +104,7 @@ var layer = Layer.effect(Service73, Effect.gen(function* () {
104
104
  })
105
105
  });
106
106
  yield* Effect.sleep("1 hour").pipe(Effect.andThen(refresh()), Effect.forever, Effect.forkScoped);
107
- return Service73.of({
107
+ return Service33.of({
108
108
  transform: state.transform,
109
109
  reload: state.reload,
110
110
  list: Effect.fn("Reference.list")(function* () {
@@ -112,10 +112,10 @@ var layer = Layer.effect(Service73, Effect.gen(function* () {
112
112
  })
113
113
  });
114
114
  }));
115
- var node77 = makeLocationNode({
116
- service: Service73,
115
+ var node37 = makeLocationNode({
116
+ service: Service33,
117
117
  layer,
118
- deps: [Global.node, node83, node78]
118
+ deps: [Global.node, node85, node74]
119
119
  });
120
120
 
121
- export { LocalSource2, GitSource2, Source5, Info31, Service73, node77, exports_reference2, Event18 };
121
+ export { LocalSource2, GitSource2, Source3, Info5, Service33, node37, exports_reference2, Event6 };
@@ -0,0 +1,18 @@
1
+ import {
2
+ __export
3
+ } from "./tool-9rqn6x4v.js";
4
+
5
+ // src/plugin/service.ts
6
+ var exports_service = {};
7
+ __export(exports_service, {
8
+ Plugin: () => exports_service,
9
+ Service: () => Service32,
10
+ awaitActivation: () => awaitActivation2
11
+ });
12
+ import { Context } from "effect";
13
+
14
+ class Service32 extends Context.Service()("@opencode/Plugin") {
15
+ }
16
+ var awaitActivation2 = Service32.use((plugins) => plugins.awaitActivation);
17
+
18
+ export { Service32, awaitActivation2, exports_service };
@@ -1,13 +1,13 @@
1
1
  import {
2
2
  directoryColumn2,
3
3
  pathColumn2
4
- } from "./schema-6msgmcgs.js";
4
+ } from "./tool-6msgmcgs.js";
5
5
  import {
6
6
  Timestamps2
7
- } from "./schema-qfa1cgps.js";
7
+ } from "./tool-qfa1cgps.js";
8
8
  import {
9
9
  ProjectTable2
10
- } from "./schema-8p4f9s12.js";
10
+ } from "./tool-8p4f9s12.js";
11
11
 
12
12
  // src/session/sql.ts
13
13
  import { sqliteTable, text, integer, index, primaryKey, real, uniqueIndex } from "drizzle-orm/sqlite-core";
@@ -1,31 +1,31 @@
1
1
  import {
2
2
  ID8
3
- } from "./schema-h6ar4aba.js";
3
+ } from "./tool-efxhpxf5.js";
4
4
  import {
5
5
  AbsolutePath2
6
- } from "./schema-922hggd3.js";
6
+ } from "./tool-922hggd3.js";
7
7
  import {
8
- Info7
9
- } from "./schema-eyqq4r43.js";
8
+ Info18
9
+ } from "./tool-17j9h1rv.js";
10
10
  import {
11
11
  migrateAgent2
12
- } from "./schema-b11403r6.js";
12
+ } from "./tool-nw3p9810.js";
13
13
  import {
14
14
  latest2,
15
- Service40
16
- } from "./schema-dm8kv9e9.js";
15
+ Service60
16
+ } from "./tool-vqdbe12f.js";
17
17
  import {
18
18
  parseOption2
19
- } from "./schema-5daktx2q.js";
19
+ } from "./tool-5daktx2q.js";
20
20
  import {
21
21
  __export
22
- } from "./schema-9rqn6x4v.js";
22
+ } from "./tool-9rqn6x4v.js";
23
23
 
24
24
  // src/config/plugin/agent.ts
25
- var exports_agent2 = {};
26
- __export(exports_agent2, {
27
- ConfigAgentPlugin: () => exports_agent2,
28
- Plugin: () => Plugin18
25
+ var exports_agent = {};
26
+ __export(exports_agent, {
27
+ ConfigAgentPlugin: () => exports_agent,
28
+ Plugin: () => Plugin13
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(Info7);
43
+ var decodeLegacyAgent = Schema.decodeUnknownOption(Info18);
44
44
  var decodeConfig = Schema.decodeUnknownOption(Info);
45
45
  var pathActions = ["external_directory", "read", "edit"];
46
46
  var agentKeys = new Set(["variant", ...Object.keys(ConfigAgent.Info.fields)]);
47
- var Plugin18 = define({
47
+ var Plugin13 = define({
48
48
  id: "opencode.config.agent",
49
49
  effect: Effect.fn(function* (ctx) {
50
- const config = yield* Service40;
50
+ const config = yield* Service60;
51
51
  const fs = yield* FSUtil.Service;
52
52
  const global = yield* Global.Service;
53
53
  const loadEntry = Effect.fnUntraced(function* (entry) {
@@ -161,4 +161,4 @@ function decode(file, content) {
161
161
  return new Document({ type: "document", path: AbsolutePath2.make(file.filepath), info });
162
162
  }
163
163
 
164
- export { Plugin18, exports_agent2 };
164
+ export { Plugin13, exports_agent };
@@ -2,10 +2,10 @@ import {
2
2
  NotFound2,
3
3
  WrongKind2,
4
4
  Failed2
5
- } from "./schema-2a5m3afh.js";
5
+ } from "./tool-2a5m3afh.js";
6
6
  import {
7
7
  __export
8
- } from "./schema-9rqn6x4v.js";
8
+ } from "./tool-9rqn6x4v.js";
9
9
 
10
10
  // src/environment/memory.ts
11
11
  var exports_memory = {};
@@ -1,7 +1,7 @@
1
1
  import {
2
- ID18,
2
+ ID13,
3
3
  packageName2
4
- } from "./schema-33n3bzdy.js";
4
+ } from "./tool-40tbggcp.js";
5
5
 
6
6
  // src/plugin/provider/amazon-bedrock.ts
7
7
  import { Effect } from "effect";
@@ -22,15 +22,15 @@ var AmazonBedrockPlugin2 = define({
22
22
  effect: Effect.fn(function* (ctx) {
23
23
  yield* ctx.integration.transform((editor) => {
24
24
  editor.method.update({
25
- integrationID: ID18.amazonBedrock,
25
+ integrationID: ID13.amazonBedrock,
26
26
  method: { type: "env", names: ["AWS_BEARER_TOKEN_BEDROCK"] }
27
27
  });
28
28
  });
29
- yield* ctx.catalog.transform((evt) => {
30
- for (const item of evt.provider.list()) {
29
+ yield* ctx.provider.transform((evt) => {
30
+ for (const item of evt.list()) {
31
31
  if (!isBedrock(item.provider))
32
32
  continue;
33
- evt.provider.update(item.provider.id, (provider) => {
33
+ evt.update(item.provider.id, (provider) => {
34
34
  const settings = provider.settings ?? {};
35
35
  const chain = typeof settings.profile === "string" || CHAIN_ENV.some((name) => process.env[name]);
36
36
  if (chain && provider.activation === "auto")