@opencode/core 0.0.0-dev-572 → 0.0.0-dev-575

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 (932) hide show
  1. package/dist/account/sql.js +1 -1
  2. package/dist/agent.js +84 -84
  3. package/dist/aisdk-native.js +102 -102
  4. package/dist/aisdk.js +106 -106
  5. package/dist/app.js +7 -7
  6. package/dist/artifact.js +248 -248
  7. package/dist/bus.js +86 -86
  8. package/dist/chunks/{reference-qdess7qm.js → project-019n5914.js} +27 -27
  9. package/dist/chunks/{reference-034tev2y.js → project-034tev2y.js} +2 -2
  10. package/dist/chunks/{reference-2hjsqf89.js → project-04xdb978.js} +23 -23
  11. package/dist/chunks/{reference-gn2zye69.js → project-07a6zqrb.js} +14 -14
  12. package/dist/chunks/{reference-t67p36zk.js → project-0j1zqr2k.js} +10 -10
  13. package/dist/chunks/{reference-5r9mks47.js → project-0jbw3gkr.js} +10 -10
  14. package/dist/chunks/{reference-atyx0n5q.js → project-0jf3g4p5.js} +30 -30
  15. package/dist/chunks/{reference-0ma9gw4f.js → project-0ma9gw4f.js} +2 -2
  16. package/dist/chunks/{reference-2hnx7p23.js → project-0nxdczg9.js} +31 -31
  17. package/dist/chunks/{reference-9dp51m1t.js → project-0svgr7xd.js} +20 -20
  18. package/dist/chunks/project-0t4nwps0.js +16 -0
  19. package/dist/chunks/{reference-s3r0jkg8.js → project-0twfw88w.js} +7 -7
  20. package/dist/chunks/{reference-2ta3xcqa.js → project-0wpz3h74.js} +20 -20
  21. package/dist/chunks/{reference-6wmf7jyj.js → project-0yw17pkx.js} +13 -13
  22. package/dist/chunks/{reference-4ke1sdaf.js → project-135jvntg.js} +31 -31
  23. package/dist/chunks/{reference-ck5jdqth.js → project-16a46khb.js} +24 -24
  24. package/dist/chunks/{reference-jdk019fs.js → project-16jxsy3y.js} +5 -5
  25. package/dist/chunks/{reference-1aqsckx4.js → project-1aqsckx4.js} +1 -1
  26. package/dist/chunks/{reference-1ep2p91f.js → project-1ep2p91f.js} +2 -2
  27. package/dist/chunks/{reference-qsdghx1p.js → project-1fjzrn8a.js} +4 -4
  28. package/dist/chunks/{reference-bdv8sqrq.js → project-1gdzt2xj.js} +1 -1
  29. package/dist/chunks/{reference-xn61qhd8.js → project-1kmqmr0e.js} +38 -38
  30. package/dist/chunks/{reference-wgy2m6zh.js → project-1mpqg9fr.js} +17 -17
  31. package/dist/chunks/{reference-py8xjxyt.js → project-1tgvq00n.js} +32 -32
  32. package/dist/chunks/{reference-1x2knyw4.js → project-1x2knyw4.js} +1 -1
  33. package/dist/chunks/{reference-42yqcdz9.js → project-1xdkex0j.js} +44 -44
  34. package/dist/chunks/{reference-39r7m9zj.js → project-1ym5fh8n.js} +31 -31
  35. package/dist/chunks/{reference-8b3vzgkx.js → project-25h84942.js} +4 -4
  36. package/dist/chunks/{reference-tsvtqc2e.js → project-290cbanv.js} +10 -10
  37. package/dist/chunks/{reference-95x2gesx.js → project-29gg63gz.js} +3 -3
  38. package/dist/chunks/{reference-y8xep5t8.js → project-29x9sgby.js} +10 -10
  39. package/dist/chunks/{reference-1scgcwfj.js → project-2cdjxzfg.js} +3 -3
  40. package/dist/chunks/{reference-krtsfw0k.js → project-2e2qfbf4.js} +26 -26
  41. package/dist/chunks/{reference-ry5s2gm0.js → project-2kpqbs2m.js} +34 -34
  42. package/dist/chunks/{reference-t7x8kn27.js → project-2pyr13f1.js} +32 -32
  43. package/dist/chunks/{reference-ykd1k0bk.js → project-343zgq8q.js} +78 -59
  44. package/dist/chunks/{reference-c2d6jz65.js → project-3696pwfc.js} +29 -29
  45. package/dist/chunks/{reference-2swc61r8.js → project-36t74d6c.js} +11 -11
  46. package/dist/chunks/{reference-tbc5nv78.js → project-37jqyv1h.js} +4 -4
  47. package/dist/chunks/{reference-tm5605ws.js → project-39hyj06c.js} +36 -36
  48. package/dist/chunks/{reference-xjbsd7zy.js → project-3adw4bt5.js} +9 -9
  49. package/dist/chunks/{reference-2smp010m.js → project-3d92dp21.js} +11 -11
  50. package/dist/chunks/{reference-emaveete.js → project-3dkr1mc7.js} +12 -12
  51. package/dist/chunks/{reference-sv2nzebw.js → project-3gr38rez.js} +6 -6
  52. package/dist/chunks/{reference-3hepkmqq.js → project-3hepkmqq.js} +1 -1
  53. package/dist/chunks/{reference-3nnrz6f6.js → project-3nnrz6f6.js} +1 -1
  54. package/dist/chunks/{reference-t62dywgn.js → project-3spf441s.js} +6 -6
  55. package/dist/chunks/{reference-1mp4f3yt.js → project-3v25rph8.js} +8 -7
  56. package/dist/chunks/{reference-40y6dtc2.js → project-40y6dtc2.js} +1 -1
  57. package/dist/chunks/{reference-40za9wsf.js → project-40za9wsf.js} +2 -2
  58. package/dist/chunks/{reference-6r3j5rq4.js → project-43mz42wn.js} +10 -10
  59. package/dist/chunks/{reference-bbw35q2q.js → project-46mmnvnq.js} +36 -36
  60. package/dist/chunks/{reference-f356pky6.js → project-4a9adyq1.js} +31 -31
  61. package/dist/chunks/{reference-4dx1dgte.js → project-4dx1dgte.js} +1 -1
  62. package/dist/chunks/{reference-4f25tdd0.js → project-4f25tdd0.js} +1 -1
  63. package/dist/chunks/{reference-a884m5kj.js → project-4pngysgc.js} +35 -35
  64. package/dist/chunks/{reference-4pyp9zr9.js → project-4pyp9zr9.js} +1 -1
  65. package/dist/chunks/{reference-4v008n1t.js → project-4v008n1t.js} +1 -1
  66. package/dist/chunks/{reference-dsy6v1fe.js → project-52f5a6rd.js} +11 -11
  67. package/dist/chunks/{reference-jqfrpy0b.js → project-539dw32x.js} +4 -4
  68. package/dist/chunks/{reference-kt3bjfbg.js → project-53nv8vz9.js} +12 -2
  69. package/dist/chunks/{reference-vhhswwyd.js → project-5eagrnsn.js} +58 -58
  70. package/dist/chunks/{reference-hretfjjx.js → project-5jandp8q.js} +2 -2
  71. package/dist/chunks/{reference-5m9w47nd.js → project-5m9w47nd.js} +1 -1
  72. package/dist/chunks/{reference-v8wxce3j.js → project-5nbmkez3.js} +18 -18
  73. package/dist/chunks/{reference-ytex9bjn.js → project-5pcajhdb.js} +18 -18
  74. package/dist/chunks/{reference-z4cw7ht6.js → project-5x6zgx5a.js} +180 -180
  75. package/dist/chunks/{reference-9k76nara.js → project-64rjgvdt.js} +11 -11
  76. package/dist/chunks/{reference-nta6dm7p.js → project-69xp77xe.js} +9 -9
  77. package/dist/chunks/{reference-qefxaq5v.js → project-70c7swy8.js} +12 -14
  78. package/dist/chunks/{reference-s4kyhetj.js → project-716k91av.js} +6 -6
  79. package/dist/chunks/{reference-knpjw1zf.js → project-71ky0fxt.js} +4 -4
  80. package/dist/chunks/{reference-fvjma0rg.js → project-726km6eh.js} +59 -59
  81. package/dist/chunks/{reference-7bmhse3q.js → project-7bmhse3q.js} +1 -1
  82. package/dist/chunks/{reference-m0efzj7r.js → project-7hxvez1g.js} +18 -18
  83. package/dist/chunks/{reference-xz07m27x.js → project-7nqkf5r1.js} +2 -2
  84. package/dist/chunks/{reference-q8a85cdf.js → project-7prjwx2s.js} +5 -5
  85. package/dist/chunks/{reference-0ynhw1wj.js → project-7r0camkz.js} +11 -11
  86. package/dist/chunks/{reference-7w2ypzdf.js → project-7w2ypzdf.js} +1 -1
  87. package/dist/chunks/{reference-7weczvnd.js → project-7weczvnd.js} +1 -1
  88. package/dist/chunks/{reference-8grrarsh.js → project-7yyxz3fg.js} +30 -30
  89. package/dist/chunks/{reference-80mg3ag8.js → project-80mg3ag8.js} +3 -3
  90. package/dist/chunks/{reference-9g1m21dx.js → project-821n8anj.js} +21 -21
  91. package/dist/chunks/{reference-f32m8sjz.js → project-82phgae0.js} +5 -5
  92. package/dist/chunks/{reference-wa9t2f6b.js → project-85a5jd0r.js} +49 -49
  93. package/dist/chunks/{reference-89287pr7.js → project-89287pr7.js} +1 -1
  94. package/dist/chunks/{reference-8cg7mtm3.js → project-8cg7mtm3.js} +1 -1
  95. package/dist/chunks/{reference-pdm4ywp3.js → project-8dqkg4s0.js} +7 -7
  96. package/dist/chunks/{reference-rgr196vp.js → project-8sb7jtsn.js} +9 -9
  97. package/dist/chunks/{reference-8sxe6kv8.js → project-8sxe6kv8.js} +2 -2
  98. package/dist/chunks/{reference-8wtp7s3z.js → project-8wtp7s3z.js} +1 -1
  99. package/dist/chunks/{reference-90zstvax.js → project-90zstvax.js} +1 -1
  100. package/dist/chunks/{reference-kn4zqwcq.js → project-94e33dpz.js} +3 -3
  101. package/dist/chunks/{reference-2eb83ex8.js → project-96cftbda.js} +38 -38
  102. package/dist/chunks/{reference-szwm4crx.js → project-96djdqw5.js} +4 -4
  103. package/dist/chunks/{reference-mhx1h2m0.js → project-98b85hpm.js} +11 -11
  104. package/dist/chunks/{reference-ax0z0xv7.js → project-9a0r90ad.js} +5 -5
  105. package/dist/chunks/{reference-teav1bzy.js → project-9f3jsh1d.js} +9 -9
  106. package/dist/chunks/{reference-kprr32nt.js → project-9gvz502r.js} +14 -14
  107. package/dist/chunks/{reference-782ftqzm.js → project-9jx6pde7.js} +16 -16
  108. package/dist/chunks/{reference-p9x26950.js → project-9jxpbjsa.js} +8 -8
  109. package/dist/chunks/{reference-hm3v9m15.js → project-9m02z06j.js} +36 -36
  110. package/dist/chunks/{reference-00g1yw63.js → project-9w0mq0qd.js} +28 -28
  111. package/dist/chunks/{reference-963hk181.js → project-a0fq0pbv.js} +9 -9
  112. package/dist/chunks/{reference-s2pfznc4.js → project-a0kwzn5j.js} +6 -6
  113. package/dist/chunks/{reference-kkb7zeg6.js → project-a1td16et.js} +8 -8
  114. package/dist/chunks/{reference-0ac1knw3.js → project-a260d95k.js} +8 -8
  115. package/dist/chunks/{reference-6xg5mvc6.js → project-a90k0e99.js} +9 -9
  116. package/dist/chunks/{reference-90ct6wq4.js → project-anvcme1c.js} +4 -4
  117. package/dist/chunks/{reference-5ms49gm2.js → project-av5hzh88.js} +5 -5
  118. package/dist/chunks/{reference-f3qwesrw.js → project-axhyxf2f.js} +8 -8
  119. package/dist/chunks/{reference-ayjs7tqn.js → project-ayjs7tqn.js} +2 -2
  120. package/dist/chunks/{reference-whw1pa3p.js → project-aynzz71e.js} +6 -6
  121. package/dist/chunks/{reference-hgxg4bd5.js → project-b1x8zrb5.js} +12 -12
  122. package/dist/chunks/{reference-yzg0z8vt.js → project-b5p2pymq.js} +9 -9
  123. package/dist/chunks/{reference-b6vsg801.js → project-b6vsg801.js} +2 -2
  124. package/dist/chunks/{reference-03xjjwe3.js → project-b7ke1cet.js} +1 -1
  125. package/dist/chunks/{reference-9pevz77s.js → project-bb3r9wxm.js} +5 -5
  126. package/dist/chunks/{reference-ftjmg9qs.js → project-bbmsnk0w.js} +13 -13
  127. package/dist/chunks/{reference-rdmk0mq4.js → project-bbvh3bsr.js} +12 -12
  128. package/dist/chunks/{reference-1yq9hg58.js → project-bdhd9h6e.js} +5 -5
  129. package/dist/chunks/{reference-nvrbz68q.js → project-besf4p6f.js} +15 -15
  130. package/dist/chunks/{reference-647a467t.js → project-bmj3n0tq.js} +15 -15
  131. package/dist/chunks/{reference-5ay8k29b.js → project-bn2zw3xc.js} +5 -5
  132. package/dist/chunks/{reference-fd03a0jw.js → project-bpzq4rbg.js} +9 -9
  133. package/dist/chunks/{reference-bstexjd6.js → project-bstexjd6.js} +1 -1
  134. package/dist/chunks/{reference-j9s9xvf1.js → project-byxbe7hm.js} +20 -20
  135. package/dist/chunks/{reference-kz1jwzt0.js → project-c15gyfbj.js} +5 -5
  136. package/dist/chunks/{reference-rj7j5fvs.js → project-c5zvymhv.js} +4 -4
  137. package/dist/chunks/{reference-7ct4w35d.js → project-cbpf86ap.js} +27 -27
  138. package/dist/chunks/{reference-hmpgak6v.js → project-cdhapxv9.js} +3 -3
  139. package/dist/chunks/{reference-jjv6dbs2.js → project-ce6vjyqc.js} +18 -18
  140. package/dist/chunks/{reference-40b0605t.js → project-cka6ngk0.js} +12 -12
  141. package/dist/chunks/{reference-dys0v8r2.js → project-ckcb1bmd.js} +30 -30
  142. package/dist/chunks/{reference-93xmyh8q.js → project-ckk44cdz.js} +5 -5
  143. package/dist/chunks/{reference-khtjmheq.js → project-cmmsak4z.js} +17 -17
  144. package/dist/chunks/{reference-fwz1byk4.js → project-cnh7rm97.js} +5 -5
  145. package/dist/chunks/{reference-cpvd08na.js → project-cpvd08na.js} +1 -1
  146. package/dist/chunks/{reference-d841hfc3.js → project-cqff7g0c.js} +19 -19
  147. package/dist/chunks/{reference-djpnqkt2.js → project-csx4k8k5.js} +9 -9
  148. package/dist/chunks/{reference-cwrgdav8.js → project-cwrgdav8.js} +2 -2
  149. package/dist/chunks/{reference-d4v9tmah.js → project-d4v9tmah.js} +2 -2
  150. package/dist/chunks/{reference-mghkq3nv.js → project-dgq98zw6.js} +8 -8
  151. package/dist/chunks/{reference-w0gyare9.js → project-dmwh07z0.js} +5 -5
  152. package/dist/chunks/{reference-dt77769w.js → project-dt77769w.js} +1 -1
  153. package/dist/chunks/{reference-w75sbm79.js → project-dv9xw74s.js} +11 -11
  154. package/dist/chunks/{reference-88595d5t.js → project-e04vrpbp.js} +19 -19
  155. package/dist/chunks/{reference-fr3xfwew.js → project-e18cc8yy.js} +12 -12
  156. package/dist/chunks/{reference-jdxhd634.js → project-e4dxw20e.js} +20 -20
  157. package/dist/chunks/{reference-yxcjxpza.js → project-e6q22qz5.js} +54 -54
  158. package/dist/chunks/{reference-qe2tdkb2.js → project-e81060zc.js} +41 -41
  159. package/dist/chunks/{reference-e834z07m.js → project-e834z07m.js} +1 -1
  160. package/dist/chunks/{reference-w7s430yt.js → project-ek60h7nh.js} +4 -4
  161. package/dist/chunks/{reference-kse531ts.js → project-ek7r9692.js} +6 -6
  162. package/dist/chunks/{reference-eqw4pqj1.js → project-eqw4pqj1.js} +2 -2
  163. package/dist/chunks/{reference-381w5cv2.js → project-er5qm13q.js} +65 -61
  164. package/dist/chunks/{reference-31avdb49.js → project-etrnj9s7.js} +8 -8
  165. package/dist/chunks/{reference-ngwykzwa.js → project-exgqh01h.js} +26 -26
  166. package/dist/chunks/{reference-nv2c5e9q.js → project-ez4sqtdc.js} +3 -3
  167. package/dist/chunks/project-f521vhbp.js +26 -0
  168. package/dist/chunks/{reference-w5vfw1k0.js → project-f53z0w0m.js} +75 -75
  169. package/dist/chunks/{reference-78hx0q36.js → project-fe3t4ebc.js} +17 -17
  170. package/dist/chunks/{reference-fffv3p7h.js → project-fffv3p7h.js} +1 -1
  171. package/dist/chunks/{reference-fg9p65nk.js → project-fg9p65nk.js} +2 -2
  172. package/dist/chunks/{reference-nf348xcb.js → project-fm535swd.js} +4 -4
  173. package/dist/chunks/{reference-hmrw4ntv.js → project-fn5qj37w.js} +51 -51
  174. package/dist/chunks/{reference-k3p33cht.js → project-fqhgsedn.js} +19 -19
  175. package/dist/chunks/{reference-e45fk36t.js → project-fstdtr31.js} +4 -4
  176. package/dist/chunks/{reference-8339jj3p.js → project-ftepgs6m.js} +14 -14
  177. package/dist/chunks/{reference-ctyc4gz6.js → project-fvg0bsm6.js} +24 -24
  178. package/dist/chunks/{reference-vtbhdzrb.js → project-g8kza3j3.js} +13 -13
  179. package/dist/chunks/{reference-gbjdnr5j.js → project-gbjdnr5j.js} +2 -2
  180. package/dist/chunks/{reference-8mcxc71g.js → project-gc7a2s80.js} +39 -39
  181. package/dist/chunks/{reference-bnfdbx95.js → project-gcrq2pb2.js} +4 -4
  182. package/dist/chunks/{reference-14qfxjyt.js → project-ge5jw5a3.js} +36 -36
  183. package/dist/chunks/{reference-ghrv1g9c.js → project-ghrv1g9c.js} +1 -1
  184. package/dist/chunks/{reference-4w0wjrsb.js → project-gjj1a6n2.js} +28 -28
  185. package/dist/chunks/{reference-crpj5dzf.js → project-gnv8580k.js} +3 -3
  186. package/dist/chunks/{reference-gxs71cxp.js → project-gxs71cxp.js} +1 -1
  187. package/dist/chunks/{reference-8ggtc5cf.js → project-h792trvy.js} +14 -14
  188. package/dist/chunks/{reference-ndgw3s2s.js → project-h7vd8y7b.js} +12 -12
  189. package/dist/chunks/{reference-q94fsdzs.js → project-h9fh7y94.js} +11 -11
  190. package/dist/chunks/{reference-61msdqca.js → project-h9q35say.js} +30 -30
  191. package/dist/chunks/{reference-bnrgpspr.js → project-hcz18hcw.js} +22 -22
  192. package/dist/chunks/{reference-t16fqg33.js → project-hfcxeq1b.js} +5 -5
  193. package/dist/chunks/{reference-6e4p0b5k.js → project-hknx3ga7.js} +38 -38
  194. package/dist/chunks/{reference-ywm210e4.js → project-hmeh6bv9.js} +35 -35
  195. package/dist/chunks/{reference-17b8a7h3.js → project-hrfsj0r4.js} +11 -11
  196. package/dist/chunks/{reference-hr05g0yp.js → project-hyppwetb.js} +4 -4
  197. package/dist/chunks/{reference-ceh9hyhz.js → project-hzaj9ats.js} +9 -9
  198. package/dist/chunks/{reference-ehb04tzd.js → project-j13j23vt.js} +14 -14
  199. package/dist/chunks/{reference-tr8x705m.js → project-j376ae4e.js} +5 -5
  200. package/dist/chunks/{reference-6aw533fg.js → project-j7wjfnya.js} +12 -12
  201. package/dist/chunks/{reference-v095fdbr.js → project-jjcdyn1v.js} +2 -2
  202. package/dist/chunks/{reference-vhvty3qh.js → project-jjwnx7m3.js} +13 -13
  203. package/dist/chunks/{reference-c3e0rej3.js → project-jkrqcqs0.js} +11 -11
  204. package/dist/chunks/{reference-2y8q1569.js → project-jnhgr88h.js} +6 -6
  205. package/dist/chunks/{reference-x8rzqjkp.js → project-jqdm0egr.js} +23 -23
  206. package/dist/chunks/{reference-44pmzq9c.js → project-jxd6f16v.js} +2 -2
  207. package/dist/chunks/{reference-ynd6x6p8.js → project-kb2fafn8.js} +83 -83
  208. package/dist/chunks/{reference-kh8gdsej.js → project-kh8gdsej.js} +1 -1
  209. package/dist/chunks/{reference-fdwgpv3x.js → project-km2jt1n7.js} +43 -43
  210. package/dist/chunks/{reference-hrw51qw6.js → project-kmgqb0hj.js} +6 -6
  211. package/dist/chunks/{reference-wtpwnj4b.js → project-kp6q3yge.js} +11 -11
  212. package/dist/chunks/{reference-hn0qvtyz.js → project-kpmjj9dj.js} +21 -21
  213. package/dist/chunks/{reference-gznjef8r.js → project-kpr8r4gf.js} +9 -9
  214. package/dist/chunks/{reference-snghghw3.js → project-kwp8h6ge.js} +11 -11
  215. package/dist/chunks/{reference-kzczzf4v.js → project-kzczzf4v.js} +1 -1
  216. package/dist/chunks/{reference-txqeed8d.js → project-m0wanvqp.js} +39 -39
  217. package/dist/chunks/{reference-t8b37839.js → project-m15jf2d8.js} +17 -17
  218. package/dist/chunks/{reference-m1714858.js → project-m1714858.js} +1 -1
  219. package/dist/chunks/{reference-c5c32ebd.js → project-m7df3mfn.js} +22 -22
  220. package/dist/chunks/{reference-m9w0rfyh.js → project-m9w0rfyh.js} +1 -1
  221. package/dist/chunks/{reference-mb7mbhnz.js → project-mb7mbhnz.js} +3 -3
  222. package/dist/chunks/project-me0dhgxs.js +18 -0
  223. package/dist/chunks/{reference-gp5w1wtp.js → project-me2yvmr0.js} +58 -54
  224. package/dist/chunks/{reference-y062q5ej.js → project-mha933gq.js} +24 -24
  225. package/dist/chunks/{reference-tvtps2q9.js → project-mm06edep.js} +7 -6
  226. package/dist/chunks/{reference-d2p78d1f.js → project-mxmv149a.js} +15 -15
  227. package/dist/chunks/{reference-3d1097x7.js → project-mybwhcb5.js} +33 -33
  228. package/dist/chunks/{reference-y5fqa56h.js → project-mz7yysnf.js} +20 -20
  229. package/dist/chunks/{reference-dsz7b6ct.js → project-mzsvv2v9.js} +20 -20
  230. package/dist/chunks/{reference-2z3htntm.js → project-n0jv45dk.js} +3 -3
  231. package/dist/chunks/{reference-sf4zgaj4.js → project-n59qcj3f.js} +14 -14
  232. package/dist/chunks/{reference-f5rkjw9s.js → project-n6cgafjz.js} +16 -16
  233. package/dist/chunks/{reference-06t4fpg4.js → project-n78mes17.js} +12 -12
  234. package/dist/chunks/{reference-71jzrrng.js → project-naxg1y3z.js} +4 -4
  235. package/dist/chunks/{reference-8h4byctv.js → project-nfgvz23f.js} +2 -2
  236. package/dist/chunks/{reference-gf3dp8br.js → project-nhrefdj7.js} +12 -12
  237. package/dist/chunks/{reference-9rqhy0gk.js → project-nj82evve.js} +7 -7
  238. package/dist/chunks/{reference-pknna89w.js → project-pknna89w.js} +1 -1
  239. package/dist/chunks/{reference-ryy905h1.js → project-pnhr1vvr.js} +5 -5
  240. package/dist/chunks/{reference-4bjxqc3y.js → project-pvs7bvhv.js} +360 -352
  241. package/dist/chunks/{reference-d57rvnhv.js → project-pwdej7e7.js} +32 -32
  242. package/dist/chunks/{reference-bqq6ewbb.js → project-pwep5jdf.js} +8 -8
  243. package/dist/chunks/{reference-sd74kdpv.js → project-pwz30w5f.js} +19 -19
  244. package/dist/chunks/{reference-1thmwbjb.js → project-q11t1skj.js} +17 -17
  245. package/dist/chunks/{reference-jhwp234h.js → project-q65mdntm.js} +4 -4
  246. package/dist/chunks/{reference-0cvmjxzj.js → project-qaazn6f8.js} +8 -8
  247. package/dist/chunks/{reference-pa19eq4n.js → project-qava8dj6.js} +11 -11
  248. package/dist/chunks/{reference-tgaynfn5.js → project-qbh5071r.js} +18 -18
  249. package/dist/chunks/{reference-kzs9t8x7.js → project-qbqv0dqm.js} +34 -34
  250. package/dist/chunks/{reference-mh67hebd.js → project-qbrwtzwr.js} +23 -23
  251. package/dist/chunks/{reference-edjeqbg4.js → project-qe9ewq4x.js} +12 -12
  252. package/dist/chunks/{reference-s11vyctz.js → project-qfhrpw0k.js} +15 -15
  253. package/dist/chunks/{reference-qp7r0hxv.js → project-qp7r0hxv.js} +1 -1
  254. package/dist/chunks/{reference-qw2t3dzn.js → project-qw2t3dzn.js} +3 -3
  255. package/dist/chunks/{reference-egmfbr6n.js → project-qx91edma.js} +9 -9
  256. package/dist/chunks/{reference-3qgwywyc.js → project-r17fbvme.js} +4 -4
  257. package/dist/chunks/{reference-7mybvnhq.js → project-r259dfpz.js} +26 -26
  258. package/dist/chunks/{reference-zhtx80hn.js → project-r55m6wx9.js} +3 -3
  259. package/dist/chunks/{reference-cdk4fzb8.js → project-r6grmmj8.js} +21 -21
  260. package/dist/chunks/{reference-4nejw68x.js → project-r7e9vx2n.js} +30 -30
  261. package/dist/chunks/{reference-hk7q23wz.js → project-r8zaw36y.js} +34 -34
  262. package/dist/chunks/{reference-rb9dy4dg.js → project-rb9dy4dg.js} +1 -1
  263. package/dist/chunks/{reference-rgc9cx3e.js → project-rgc9cx3e.js} +2 -2
  264. package/dist/chunks/{reference-5ez0nn78.js → project-rgw9km2s.js} +12 -12
  265. package/dist/chunks/{reference-rt5dr6hb.js → project-rt5dr6hb.js} +1 -1
  266. package/dist/chunks/{reference-xnx0h343.js → project-rvztm0f0.js} +21 -21
  267. package/dist/chunks/{reference-2p60zmnr.js → project-s1ba0vj0.js} +2 -2
  268. package/dist/chunks/project-s1ntesz6.js +265 -0
  269. package/dist/chunks/{reference-1w1c54a8.js → project-s3q7a4yt.js} +9 -9
  270. package/dist/chunks/{reference-sa3fpqfw.js → project-sa3fpqfw.js} +2 -2
  271. package/dist/chunks/{reference-sbya78hr.js → project-sbya78hr.js} +1 -1
  272. package/dist/chunks/{reference-0j7gp832.js → project-sqjzf8x2.js} +4 -4
  273. package/dist/chunks/{reference-svcy3p9a.js → project-svcy3p9a.js} +1 -1
  274. package/dist/chunks/{reference-hvnk3yew.js → project-swv67jcs.js} +3 -3
  275. package/dist/chunks/{reference-vbrb3wb4.js → project-t103h60z.js} +25 -25
  276. package/dist/chunks/{reference-ztsca96a.js → project-t3yg9b49.js} +63 -63
  277. package/dist/chunks/{reference-xjr6c8m4.js → project-t54kw4zq.js} +7 -7
  278. package/dist/chunks/{reference-0xaj1zzf.js → project-t5nywe1c.js} +38 -38
  279. package/dist/chunks/{reference-xrtq227w.js → project-t848fhp4.js} +6 -6
  280. package/dist/chunks/{reference-9zwexsxs.js → project-t8erkws8.js} +5 -5
  281. package/dist/chunks/{reference-14gz4c3q.js → project-t9ttf0gw.js} +12 -12
  282. package/dist/chunks/{reference-tczq8hjw.js → project-tczq8hjw.js} +1 -1
  283. package/dist/chunks/{reference-tg1vr1qt.js → project-tg1vr1qt.js} +1 -1
  284. package/dist/chunks/{reference-spx8r9sv.js → project-tk5z3f6w.js} +15 -15
  285. package/dist/chunks/{reference-3jw4bp35.js → project-tk7vtk68.js} +14 -12
  286. package/dist/chunks/{reference-6gvfabyz.js → project-tnyzx988.js} +18 -18
  287. package/dist/chunks/{reference-z1khe0aq.js → project-tnzw11y9.js} +5 -5
  288. package/dist/chunks/{reference-h134rhff.js → project-tpg7h1py.js} +8 -8
  289. package/dist/chunks/{reference-79ef09mr.js → project-tpqghdpg.js} +21 -21
  290. package/dist/chunks/{reference-4kmrrt4a.js → project-tpv0drx9.js} +6 -6
  291. package/dist/chunks/{reference-9ysx6p1b.js → project-tpycw7ak.js} +24 -24
  292. package/dist/chunks/{reference-dq3e4dc7.js → project-tq53n54w.js} +5 -5
  293. package/dist/chunks/{reference-twssxy5n.js → project-twssxy5n.js} +2 -2
  294. package/dist/chunks/{reference-h3b857xk.js → project-tx91wa5k.js} +4 -4
  295. package/dist/chunks/{reference-v2r1d0zg.js → project-v2r1d0zg.js} +1 -1
  296. package/dist/chunks/{reference-tb2mrvc9.js → project-v4bj6baw.js} +4 -4
  297. package/dist/chunks/{reference-0nk8vgec.js → project-v7jw4qpb.js} +32 -31
  298. package/dist/chunks/{reference-5z7nwpm6.js → project-vcfmb0aa.js} +11 -11
  299. package/dist/chunks/{reference-w6dzzgd0.js → project-vfkrvvzg.js} +3 -3
  300. package/dist/chunks/{reference-jqthpbgk.js → project-vgajs0a2.js} +8 -8
  301. package/dist/chunks/{reference-6mzz38vb.js → project-vgf0s298.js} +7 -7
  302. package/dist/chunks/{reference-cndqxqvv.js → project-vhc965fw.js} +6 -6
  303. package/dist/chunks/{reference-vjf35v1f.js → project-vjf35v1f.js} +1 -1
  304. package/dist/chunks/{reference-bhfd478d.js → project-vmxsyvj6.js} +4 -4
  305. package/dist/chunks/{reference-144cfcmr.js → project-vn14q1vs.js} +15 -15
  306. package/dist/chunks/{reference-be4v52w8.js → project-w19854z7.js} +11 -11
  307. package/dist/chunks/{reference-j3adhq3q.js → project-w3aygza5.js} +18 -18
  308. package/dist/chunks/{reference-w3wsvvr9.js → project-w3wsvvr9.js} +1 -1
  309. package/dist/chunks/{reference-wr3re1en.js → project-w687dnns.js} +4 -4
  310. package/dist/chunks/{reference-v0t96s7a.js → project-w79nt68w.js} +4 -4
  311. package/dist/chunks/{reference-m891dem5.js → project-w7f2dp2w.js} +16 -16
  312. package/dist/chunks/{reference-wakvkjy4.js → project-wakvkjy4.js} +1 -1
  313. package/dist/chunks/{reference-wd87259q.js → project-wd87259q.js} +1 -1
  314. package/dist/chunks/{reference-wegkxhrn.js → project-wegkxhrn.js} +2 -2
  315. package/dist/chunks/{reference-wnhgecwx.js → project-wnhgecwx.js} +1 -1
  316. package/dist/chunks/{reference-bzznm7ry.js → project-wsx9wyaa.js} +13 -13
  317. package/dist/chunks/{reference-6y2b864j.js → project-wvr8xscb.js} +4 -4
  318. package/dist/chunks/{reference-3trf7cca.js → project-ww2x1zr9.js} +6 -6
  319. package/dist/chunks/{reference-kj9n5bvh.js → project-wzfa06mn.js} +4 -4
  320. package/dist/chunks/{reference-pksc74pe.js → project-x1c7xtkj.js} +27 -27
  321. package/dist/chunks/{reference-bgvr7nj9.js → project-xdbtyszx.js} +15 -15
  322. package/dist/chunks/{reference-xksw6ev0.js → project-xksw6ev0.js} +1 -1
  323. package/dist/chunks/{reference-frkpq432.js → project-xtjdmje4.js} +43 -43
  324. package/dist/chunks/{reference-075knt2m.js → project-xxq7an4k.js} +20 -20
  325. package/dist/chunks/{reference-0t8nby67.js → project-xz8fwc3w.js} +11 -11
  326. package/dist/chunks/{reference-9g36e1vm.js → project-xzq4ysw5.js} +7 -7
  327. package/dist/chunks/{reference-rqqdyhrh.js → project-y1drznxv.js} +43 -43
  328. package/dist/chunks/{reference-3nde6fhg.js → project-y31awznh.js} +15 -15
  329. package/dist/chunks/{reference-yb20nhc3.js → project-yb20nhc3.js} +1 -1
  330. package/dist/chunks/{reference-1v2g13eq.js → project-ybws1qgk.js} +4 -4
  331. package/dist/chunks/{reference-k9dzae1r.js → project-yms3hkvm.js} +31 -31
  332. package/dist/chunks/{reference-yr705xyq.js → project-yr705xyq.js} +1 -1
  333. package/dist/chunks/{reference-yvtc2x31.js → project-yvtc2x31.js} +1 -1
  334. package/dist/chunks/{reference-amhmzkbr.js → project-yxpmhp3m.js} +14 -14
  335. package/dist/chunks/{reference-9sdka5yd.js → project-yzdn5123.js} +27 -27
  336. package/dist/chunks/{reference-kb90r49x.js → project-yzjzbeq7.js} +28 -28
  337. package/dist/chunks/{reference-wpz76m6n.js → project-z7gt2z0p.js} +5 -5
  338. package/dist/chunks/{reference-c25pd9t8.js → project-z7p9cwh7.js} +8 -8
  339. package/dist/chunks/{reference-fdd5z8e8.js → project-z864cskq.js} +17 -17
  340. package/dist/chunks/{reference-ze75qvmd.js → project-ze75qvmd.js} +3 -3
  341. package/dist/chunks/{reference-sdp94t6k.js → project-zg6rj2t1.js} +27 -27
  342. package/dist/chunks/{reference-yayn8afj.js → project-zmmeasjg.js} +36 -36
  343. package/dist/chunks/{reference-mc07p528.js → project-znqcmc13.js} +9 -9
  344. package/dist/chunks/{reference-zpdbqgja.js → project-zpdbqgja.js} +1 -1
  345. package/dist/chunks/{reference-tbt2628x.js → project-zx32m1gd.js} +9 -9
  346. package/dist/chunks/{reference-kapdsjwd.js → project-zxnv3p5n.js} +30 -30
  347. package/dist/codemode/catalog.js +1 -1
  348. package/dist/codemode/execution.js +5 -5
  349. package/dist/codemode/fetch.js +145 -145
  350. package/dist/codemode/instructions.js +5 -5
  351. package/dist/codemode/tool.js +151 -151
  352. package/dist/command.js +92 -92
  353. package/dist/config/discovery.js +95 -95
  354. package/dist/config/integration.js +3 -3
  355. package/dist/config/managed.js +1 -1
  356. package/dist/config/markdown.js +1 -1
  357. package/dist/config/normalize.js +112 -112
  358. package/dist/config/plugin/agent.js +131 -131
  359. package/dist/config/plugin/command.js +234 -234
  360. package/dist/config/plugin/compaction.js +171 -171
  361. package/dist/config/plugin/compatibility.js +150 -150
  362. package/dist/config/plugin/entry-observer.js +1 -1
  363. package/dist/config/plugin/formatter.js +131 -131
  364. package/dist/config/plugin/image.js +130 -130
  365. package/dist/config/plugin/instruction.js +130 -130
  366. package/dist/config/plugin/location-watcher.js +132 -132
  367. package/dist/config/plugin/mcp.js +139 -139
  368. package/dist/config/plugin/policy.js +130 -130
  369. package/dist/config/plugin/provider.js +130 -130
  370. package/dist/config/plugin/reference.js +132 -132
  371. package/dist/config/plugin/shell.js +132 -132
  372. package/dist/config/plugin/skill-file.js +146 -146
  373. package/dist/config/plugin/skill-scan.js +1 -1
  374. package/dist/config/plugin/skill.js +153 -153
  375. package/dist/config/plugin/snapshot.js +130 -130
  376. package/dist/config/plugin/source.js +134 -134
  377. package/dist/config/plugin/tool-output.js +131 -131
  378. package/dist/config/plugin/websearch.js +131 -131
  379. package/dist/config/plugin/worktree.js +132 -132
  380. package/dist/config/variable.js +1 -1
  381. package/dist/config/watch.js +1 -1
  382. package/dist/config.js +135 -135
  383. package/dist/console-access.js +7 -1
  384. package/dist/credential/sql.js +2 -2
  385. package/dist/credential.js +94 -94
  386. package/dist/database/database.js +83 -83
  387. package/dist/database/drizzle/effect-sqlite/driver.js +12 -12
  388. package/dist/database/drizzle/effect-sqlite/index.js +12 -12
  389. package/dist/database/drizzle/effect-sqlite/session.js +11 -11
  390. package/dist/database/drizzle/index.js +13 -13
  391. package/dist/database/drizzle/internal/drizzle-utils.js +1 -1
  392. package/dist/database/drizzle/sqlite-core/effect/count.js +1 -1
  393. package/dist/database/drizzle/sqlite-core/effect/db.js +9 -9
  394. package/dist/database/drizzle/sqlite-core/effect/delete.js +2 -2
  395. package/dist/database/drizzle/sqlite-core/effect/index.js +10 -10
  396. package/dist/database/drizzle/sqlite-core/effect/insert.js +2 -2
  397. package/dist/database/drizzle/sqlite-core/effect/query.js +1 -1
  398. package/dist/database/drizzle/sqlite-core/effect/raw.js +1 -1
  399. package/dist/database/drizzle/sqlite-core/effect/select.js +2 -2
  400. package/dist/database/drizzle/sqlite-core/effect/session.js +10 -10
  401. package/dist/database/drizzle/sqlite-core/effect/update.js +2 -2
  402. package/dist/database/drizzle.js +14 -14
  403. package/dist/database/migration/20260127222353_familiar_lady_ursula.js +1 -1
  404. package/dist/database/migration/20260211171708_add_project_commands.js +1 -1
  405. package/dist/database/migration/20260213144116_wakeful_the_professor.js +1 -1
  406. package/dist/database/migration/20260225215848_workspace.js +1 -1
  407. package/dist/database/migration/20260227213759_add_session_workspace_id.js +1 -1
  408. package/dist/database/migration/20260228203230_blue_harpoon.js +1 -1
  409. package/dist/database/migration/20260303231226_add_workspace_fields.js +1 -1
  410. package/dist/database/migration/20260309230000_move_org_to_state.js +1 -1
  411. package/dist/database/migration/20260312043431_session_message_cursor.js +1 -1
  412. package/dist/database/migration/20260323234822_events.js +1 -1
  413. package/dist/database/migration/20260410174513_workspace-name.js +1 -1
  414. package/dist/database/migration/20260413175956_chief_energizer.js +1 -1
  415. package/dist/database/migration/20260423070820_add_icon_url_override.js +1 -1
  416. package/dist/database/migration/20260427172553_slow_nightmare.js +1 -1
  417. package/dist/database/migration/20260428004200_add_session_path.js +1 -1
  418. package/dist/database/migration/20260501142318_next_venus.js +1 -1
  419. package/dist/database/migration/20260504145000_add_sync_owner.js +1 -1
  420. package/dist/database/migration/20260507164347_add_workspace_time.js +1 -1
  421. package/dist/database/migration/20260510033149_session_usage.js +1 -1
  422. package/dist/database/migration/20260511000411_data_migration_state.js +1 -1
  423. package/dist/database/migration/20260511173437_session-metadata.js +1 -1
  424. package/dist/database/migration/20260601010001_normalize_storage_paths.js +1 -1
  425. package/dist/database/migration/20260601202201_amazing_prowler.js +1 -1
  426. package/dist/database/migration/20260602002951_lowly_union_jack.js +1 -1
  427. package/dist/database/migration/20260602182828_add_project_directories.js +1 -1
  428. package/dist/database/migration/20260603001617_session_message_projection_indexes.js +1 -1
  429. package/dist/database/migration/20260603040000_session_message_projection_order.js +1 -1
  430. package/dist/database/migration/20260603141458_session_input_inbox.js +1 -1
  431. package/dist/database/migration/20260603160727_jittery_ezekiel_stane.js +1 -1
  432. package/dist/database/migration/20260604172448_event_sourced_session_input.js +1 -1
  433. package/dist/database/migration/20260605003541_add_session_context_snapshot.js +1 -1
  434. package/dist/database/migration/20260605042240_add_context_epoch_agent.js +1 -1
  435. package/dist/database/migration/20260611035744_credential.js +1 -1
  436. package/dist/database/migration/20260611192811_lush_chimera.js +1 -1
  437. package/dist/database/migration/20260612174303_project_dir_strategy.js +1 -1
  438. package/dist/database/migration/20260622142730_simplify_session_context_epoch.js +1 -1
  439. package/dist/database/migration/20260622170816_reset_v2_session_state.js +1 -1
  440. package/dist/database/migration/20260622202450_simplify_session_input.js +1 -1
  441. package/dist/database/migration/20260804233008_loose_psylocke.js +1 -1
  442. package/dist/database/migration/20260805200742_import_legacy_credentials.js +1 -1
  443. package/dist/database/migration/20260808023530_workspace_domain.js +1 -1
  444. package/dist/database/migration/20260811161259_execution_claim_attempts.js +1 -1
  445. package/dist/database/migration/20260812181746_session_inbox.js +1 -1
  446. package/dist/database/migration/20260812213948_worktree.js +1 -1
  447. package/dist/database/migration/20260819222447_session_viewed_state.js +1 -1
  448. package/dist/database/migration/20260823191254_nullable_workspace_binding.js +1 -1
  449. package/dist/database/migration/20260910120000_clear_v1_session_permission.js +1 -1
  450. package/dist/database/migration/20260923013825_project_time_active.js +1 -1
  451. package/dist/database/migration/20261007190000_azure_cli_external_credential.js +1 -1
  452. package/dist/database/migration/20261010180456_project_time_archived.js +1 -1
  453. package/dist/database/migration/20261024002554_session_allowance.js +1 -1
  454. package/dist/database/migration/20261024175301_drop_session_allowance.js +1 -1
  455. package/dist/database/migration/20261025123711_blob.js +1 -1
  456. package/dist/database/migration/20261025154125_drop_session_pending.js +1 -1
  457. package/dist/database/migration/20261026223005_schedule.js +1 -1
  458. package/dist/database/migration/20261029002625_session_part.js +1 -1
  459. package/dist/database/migration/20261029073502_session_time_busy.js +1 -1
  460. package/dist/database/migration/20261029165540_schedule_checks.js +1 -1
  461. package/dist/database/migration/20261030054400_job.js +1 -1
  462. package/dist/database/migration.gen.js +60 -60
  463. package/dist/database/migration.js +62 -62
  464. package/dist/database/path.js +2 -2
  465. package/dist/database/schema.gen.js +1 -1
  466. package/dist/database/schema.sql.js +1 -1
  467. package/dist/database/v1-migration.bun.js +105 -105
  468. package/dist/database/v1-migration.js +1 -1
  469. package/dist/effect/app-node-builder.js +437 -437
  470. package/dist/effect/app-node-platform.js +2 -2
  471. package/dist/effect/keyed-mutex.js +1 -1
  472. package/dist/effect/websocket-constructor.js +1 -1
  473. package/dist/environment/driver.js +1 -1
  474. package/dist/environment/environment.js +103 -103
  475. package/dist/environment/exec-defaults.js +2 -2
  476. package/dist/environment/files.js +1 -1
  477. package/dist/environment/index.js +105 -105
  478. package/dist/environment/local.js +2 -2
  479. package/dist/environment/memory.js +2 -2
  480. package/dist/environment/unavailable.js +3 -3
  481. package/dist/event/sql.js +1 -1
  482. package/dist/event-logger.js +85 -85
  483. package/dist/file-access.js +157 -157
  484. package/dist/file-mutation.js +108 -108
  485. package/dist/file-retention.js +1 -1
  486. package/dist/file-write.js +161 -161
  487. package/dist/filesystem/fff.bun.js +2 -2
  488. package/dist/filesystem/fff.js +1 -1
  489. package/dist/filesystem/fff.node.js +2 -2
  490. package/dist/filesystem/fff.workerd.js +2 -2
  491. package/dist/filesystem/file-watch.js +91 -91
  492. package/dist/filesystem/location-watcher-policy.js +6 -6
  493. package/dist/filesystem/location-watcher.js +249 -249
  494. package/dist/filesystem/protected.js +1 -1
  495. package/dist/filesystem/search.js +113 -113
  496. package/dist/filesystem/watcher-binding.js +1 -1
  497. package/dist/filesystem/watcher.js +11 -11
  498. package/dist/filesystem.js +116 -116
  499. package/dist/form.js +93 -93
  500. package/dist/formatter/builtins.js +4 -4
  501. package/dist/formatter.js +100 -100
  502. package/dist/generate.js +120 -120
  503. package/dist/git.js +11 -11
  504. package/dist/github-copilot/chat/convert-to-openai-compatible-chat-messages.js +1 -1
  505. package/dist/github-copilot/chat/get-response-metadata.js +1 -1
  506. package/dist/github-copilot/chat/map-openai-compatible-finish-reason.js +1 -1
  507. package/dist/github-copilot/chat/openai-compatible-chat-language-model.js +7 -7
  508. package/dist/github-copilot/chat/openai-compatible-chat-options.js +1 -1
  509. package/dist/github-copilot/chat/openai-compatible-prepare-tools.js +1 -1
  510. package/dist/github-copilot/copilot-provider.js +17 -17
  511. package/dist/github-copilot/models.js +104 -104
  512. package/dist/github-copilot/openai-compatible-error.js +1 -1
  513. package/dist/github-copilot/responses/convert-to-openai-responses-input.js +1 -1
  514. package/dist/github-copilot/responses/map-openai-responses-finish-reason.js +1 -1
  515. package/dist/github-copilot/responses/openai-error.js +1 -1
  516. package/dist/github-copilot/responses/openai-responses-language-model.js +10 -10
  517. package/dist/github-copilot/responses/openai-responses-prepare-tools.js +6 -6
  518. package/dist/github-copilot/responses/tool/code-interpreter.js +1 -1
  519. package/dist/github-copilot/responses/tool/file-search.js +1 -1
  520. package/dist/github-copilot/responses/tool/image-generation.js +1 -1
  521. package/dist/github-copilot/responses/tool/web-search-preview.js +1 -1
  522. package/dist/github-copilot/responses/tool/web-search.js +1 -1
  523. package/dist/image/notice.js +3 -3
  524. package/dist/image/photon-normalize.js +1 -1
  525. package/dist/image/photon-worker.js +1 -1
  526. package/dist/image/photon.js +4 -4
  527. package/dist/image.js +6 -6
  528. package/dist/instance/service.js +5 -5
  529. package/dist/instance.js +428 -428
  530. package/dist/instruction-discovery.js +95 -95
  531. package/dist/instructions/builtins.js +98 -98
  532. package/dist/instructions/index.js +5 -5
  533. package/dist/integration/connection.js +3 -3
  534. package/dist/integration.js +100 -100
  535. package/dist/job/list.js +7 -7
  536. package/dist/job/recovery.js +2 -2
  537. package/dist/job/sql.js +2 -2
  538. package/dist/job.js +90 -90
  539. package/dist/kv/sql.js +2 -2
  540. package/dist/kv.js +84 -84
  541. package/dist/location-activity.js +180 -180
  542. package/dist/location-lifecycle.js +150 -150
  543. package/dist/location-service-map.js +99 -99
  544. package/dist/location-services.js +425 -425
  545. package/dist/location.js +102 -102
  546. package/dist/managed-policy.js +3 -3
  547. package/dist/mcp/client.js +155 -155
  548. package/dist/mcp/connection.js +106 -106
  549. package/dist/mcp/index.js +120 -120
  550. package/dist/mcp/instructions.js +181 -181
  551. package/dist/mcp/oauth.js +115 -107
  552. package/dist/mcp/socket-client.js +1 -1
  553. package/dist/mcp/stdio.js +154 -154
  554. package/dist/mime.js +1 -1
  555. package/dist/modal/models.js +104 -104
  556. package/dist/model-resolver.js +110 -110
  557. package/dist/model-retry.js +1 -1
  558. package/dist/model.js +113 -113
  559. package/dist/models-dev/v1.js +1 -1
  560. package/dist/models-dev.js +121 -121
  561. package/dist/oauth/page.js +1 -1
  562. package/dist/permission/saved.js +89 -89
  563. package/dist/permission/sql.js +5 -5
  564. package/dist/permission.js +147 -147
  565. package/dist/persistent-pty/binary.bun.js +1 -1
  566. package/dist/persistent-pty/daemon.js +1 -1
  567. package/dist/persistent-pty/index.js +99 -99
  568. package/dist/persistent-pty/pty-binding.js +1 -1
  569. package/dist/persistent-pty.js +86 -86
  570. package/dist/plugin/agent.js +85 -85
  571. package/dist/plugin/command.js +115 -115
  572. package/dist/plugin/goal.js +3 -3
  573. package/dist/plugin/hooks.js +5 -5
  574. package/dist/plugin/host.js +240 -240
  575. package/dist/plugin/identity.js +5 -5
  576. package/dist/plugin/instance.js +1 -1
  577. package/dist/plugin/internal.js +404 -404
  578. package/dist/plugin/mcp-codemode-defaults.js +3 -3
  579. package/dist/plugin/models-dev.js +110 -110
  580. package/dist/plugin/module.js +129 -129
  581. package/dist/plugin/optimize.js +2 -2
  582. package/dist/plugin/plan.js +146 -146
  583. package/dist/plugin/promise.js +1 -1
  584. package/dist/plugin/provider/amazon-bedrock.js +106 -106
  585. package/dist/plugin/provider/azure.js +133 -133
  586. package/dist/plugin/provider/cerebras.js +1 -1
  587. package/dist/plugin/provider/chatgpt.js +133 -133
  588. package/dist/plugin/provider/claude-agent/aisdk.js +117 -117
  589. package/dist/plugin/provider/claude-agent/claude/fork.js +2 -2
  590. package/dist/plugin/provider/claude-agent/claude/io.js +4 -4
  591. package/dist/plugin/provider/claude-agent/claude/probe.js +2 -2
  592. package/dist/plugin/provider/claude-agent/claude/query-options.js +4 -4
  593. package/dist/plugin/provider/claude-agent/claude/sdk.js +3 -3
  594. package/dist/plugin/provider/claude-agent/claude/session.js +4 -4
  595. package/dist/plugin/provider/claude-agent/claude/sessions.js +16 -16
  596. package/dist/plugin/provider/claude-agent/claude/status.js +9 -9
  597. package/dist/plugin/provider/claude-agent/index.js +148 -148
  598. package/dist/plugin/provider/claude-agent/instructions.js +112 -112
  599. package/dist/plugin/provider/claude-agent/integration.js +115 -115
  600. package/dist/plugin/provider/claude-agent/language-model/claude-agent-error.js +3 -3
  601. package/dist/plugin/provider/claude-agent/language-model/claude-agent-language-model.js +7 -7
  602. package/dist/plugin/provider/claude-agent/language-model/convert-claude-stream.js +6 -6
  603. package/dist/plugin/provider/claude-agent/language-model/convert-to-claude-message.js +1 -1
  604. package/dist/plugin/provider/claude-agent/language-model/request-kind.js +1 -1
  605. package/dist/plugin/provider/claude-agent/language-model/system-prompt.js +3 -3
  606. package/dist/plugin/provider/claude-agent/language-model/usage.js +3 -3
  607. package/dist/plugin/provider/claude-agent/provider.js +112 -112
  608. package/dist/plugin/provider/claude-agent/session.js +112 -112
  609. package/dist/plugin/provider/claude-agent/sync/catch-up.js +3 -3
  610. package/dist/plugin/provider/claude-agent/sync/checkpoints.js +2 -2
  611. package/dist/plugin/provider/claude-agent/sync/decide.js +2 -2
  612. package/dist/plugin/provider/claude-agent/sync/fingerprint.js +1 -1
  613. package/dist/plugin/provider/claude-agent/sync/record.js +1 -1
  614. package/dist/plugin/provider/claude-agent/tools/hooks.js +3 -3
  615. package/dist/plugin/provider/claude-agent/tools/names.js +1 -1
  616. package/dist/plugin/provider/claude-agent/tools/pending.js +3 -3
  617. package/dist/plugin/provider/claude-agent/tools/result.js +3 -3
  618. package/dist/plugin/provider/claude-agent/tools/server.js +4 -4
  619. package/dist/plugin/provider/cloudflare-ai-gateway.js +130 -130
  620. package/dist/plugin/provider/cloudflare-workers-ai.js +130 -130
  621. package/dist/plugin/provider/configured.js +126 -126
  622. package/dist/plugin/provider/credential-settings.js +88 -88
  623. package/dist/plugin/provider/databricks.js +1 -1
  624. package/dist/plugin/provider/digitalocean.js +109 -109
  625. package/dist/plugin/provider/dynamic.js +2 -2
  626. package/dist/plugin/provider/github-copilot.js +111 -111
  627. package/dist/plugin/provider/gitlab.js +109 -109
  628. package/dist/plugin/provider/google-vertex.js +127 -127
  629. package/dist/plugin/provider/kilo.js +1 -1
  630. package/dist/plugin/provider/llmgateway.js +89 -89
  631. package/dist/plugin/provider/lmstudio.js +140 -140
  632. package/dist/plugin/provider/local.js +137 -137
  633. package/dist/plugin/provider/modal.js +108 -108
  634. package/dist/plugin/provider/neon.js +1 -1
  635. package/dist/plugin/provider/nvidia.js +1 -1
  636. package/dist/plugin/provider/ollama.js +140 -140
  637. package/dist/plugin/provider/openai-context-caps.js +106 -106
  638. package/dist/plugin/provider/openai.js +133 -133
  639. package/dist/plugin/provider/opencode.js +157 -157
  640. package/dist/plugin/provider/openrouter.js +104 -104
  641. package/dist/plugin/provider/poe.js +90 -90
  642. package/dist/plugin/provider/prompt-cache-key.js +1 -1
  643. package/dist/plugin/provider/refresh.js +87 -87
  644. package/dist/plugin/provider/sap-ai-core.js +104 -104
  645. package/dist/plugin/provider/sdk-factory.js +1 -1
  646. package/dist/plugin/provider/snowflake-cortex.js +131 -131
  647. package/dist/plugin/provider/vllm.js +140 -140
  648. package/dist/plugin/provider/xai.js +104 -104
  649. package/dist/plugin/provider/zenmux.js +1 -1
  650. package/dist/plugin/provider.js +235 -235
  651. package/dist/plugin/sdk.js +87 -87
  652. package/dist/plugin/service.js +3 -3
  653. package/dist/plugin/skill.js +145 -145
  654. package/dist/plugin/source-directory.js +1 -1
  655. package/dist/plugin/supervisor.js +412 -412
  656. package/dist/plugin/tool-input-repair.js +4 -4
  657. package/dist/plugin/update.js +6 -6
  658. package/dist/plugin/vcs/git.js +99 -99
  659. package/dist/plugin/vcs/hg.js +99 -99
  660. package/dist/plugin/verbosity.js +106 -106
  661. package/dist/plugin/warming.js +130 -130
  662. package/dist/plugin/websearch/exa.js +8 -8
  663. package/dist/plugin/websearch/firecrawl.js +9 -9
  664. package/dist/plugin/websearch/index.js +10 -10
  665. package/dist/plugin/websearch/mcp.js +2 -2
  666. package/dist/plugin/websearch/parallel.js +9 -9
  667. package/dist/plugin/websearch/provider.js +5 -5
  668. package/dist/plugin/websearch/tavily.js +7 -7
  669. package/dist/plugin/websearch/tinyfish.js +9 -9
  670. package/dist/plugin.js +249 -249
  671. package/dist/project/icon.js +5 -5
  672. package/dist/project/schema.js +8 -8
  673. package/dist/project/sql.js +4 -4
  674. package/dist/project.js +105 -105
  675. package/dist/provider.js +108 -108
  676. package/dist/pty/protocol.js +1 -1
  677. package/dist/pty/ticket.js +1 -1
  678. package/dist/pty.js +109 -109
  679. package/dist/reference/instructions.js +101 -101
  680. package/dist/reference.js +101 -101
  681. package/dist/repository-cache.js +93 -93
  682. package/dist/repository.js +1 -1
  683. package/dist/ripgrep/binary.js +2 -2
  684. package/dist/ripgrep.js +111 -111
  685. package/dist/rpc.js +99 -99
  686. package/dist/schedule/check.js +245 -245
  687. package/dist/schedule/sql.js +6 -6
  688. package/dist/schedule.js +255 -255
  689. package/dist/schema.js +1 -1
  690. package/dist/session/affinity.js +1 -1
  691. package/dist/session/background.js +1 -1
  692. package/dist/session/blob.js +131 -131
  693. package/dist/session/command.js +85 -85
  694. package/dist/session/compaction.js +169 -169
  695. package/dist/session/context.js +196 -196
  696. package/dist/session/diff.js +101 -101
  697. package/dist/session/environment.js +5 -5
  698. package/dist/session/error.js +5 -5
  699. package/dist/session/event.js +1 -1
  700. package/dist/session/execution/restart.js +248 -248
  701. package/dist/session/execution.js +167 -167
  702. package/dist/session/generate.js +200 -200
  703. package/dist/session/history.js +136 -136
  704. package/dist/session/inbox.js +149 -149
  705. package/dist/session/info.js +3 -3
  706. package/dist/session/instruction-entry.js +88 -88
  707. package/dist/session/instruction-state.js +8 -8
  708. package/dist/session/instructions.js +141 -141
  709. package/dist/session/message-updater.js +2 -2
  710. package/dist/session/message.js +1 -1
  711. package/dist/session/model-request.js +168 -168
  712. package/dist/session/model-transport.js +9 -9
  713. package/dist/session/move.js +163 -163
  714. package/dist/session/projector.js +141 -141
  715. package/dist/session/prompt.js +148 -148
  716. package/dist/session/recent-text.js +1 -1
  717. package/dist/session/revert.js +139 -139
  718. package/dist/session/run-coordinator.js +3 -3
  719. package/dist/session/runner/index.js +3 -3
  720. package/dist/session/runner/llm.js +254 -254
  721. package/dist/session/runner/max-steps.js +1 -1
  722. package/dist/session/runner/model.js +111 -111
  723. package/dist/session/runner/publish-llm-event.js +149 -149
  724. package/dist/session/runner/retry.js +3 -3
  725. package/dist/session/runner/step.js +163 -163
  726. package/dist/session/runner/to-llm-message.js +137 -137
  727. package/dist/session/schema.js +5 -5
  728. package/dist/session/session.js +182 -182
  729. package/dist/session/shell.js +145 -145
  730. package/dist/session/skill.js +147 -147
  731. package/dist/session/sql.js +5 -5
  732. package/dist/session/stats.js +84 -84
  733. package/dist/session/store.js +140 -140
  734. package/dist/session/stored.js +2 -2
  735. package/dist/session/subagent-completion.js +3 -3
  736. package/dist/session/subagent-job.js +233 -233
  737. package/dist/session/system-prompt.js +3 -3
  738. package/dist/session/title.js +204 -204
  739. package/dist/session/to-session-error.js +148 -148
  740. package/dist/session/transfer.js +244 -244
  741. package/dist/session/usage.js +1 -1
  742. package/dist/session.js +235 -235
  743. package/dist/shared-cache.js +5 -5
  744. package/dist/shell/parse.js +6 -6
  745. package/dist/shell/result.js +1 -1
  746. package/dist/shell/scan.js +1 -1
  747. package/dist/shell/select.js +11 -11
  748. package/dist/shell.js +145 -145
  749. package/dist/skill/discovery.js +6 -6
  750. package/dist/skill/instructions.js +151 -151
  751. package/dist/skill.js +152 -152
  752. package/dist/snapshot.js +106 -106
  753. package/dist/state.js +1 -1
  754. package/dist/tool/html-markdown.js +1 -1
  755. package/dist/tool/http-body.js +1 -1
  756. package/dist/tool/mcp.js +180 -180
  757. package/dist/tool/plugin/artifact.js +232 -232
  758. package/dist/tool/plugin/edit.js +165 -165
  759. package/dist/tool/plugin/file-diff.js +1 -1
  760. package/dist/tool/plugin/glob.js +171 -171
  761. package/dist/tool/plugin/grep.js +170 -170
  762. package/dist/tool/plugin/image-generate.js +243 -243
  763. package/dist/tool/plugin/mcp-resource.js +164 -164
  764. package/dist/tool/plugin/opencode.js +163 -163
  765. package/dist/tool/plugin/patch.js +166 -166
  766. package/dist/tool/plugin/question.js +148 -148
  767. package/dist/tool/plugin/read.js +172 -172
  768. package/dist/tool/plugin/schedule.js +251 -251
  769. package/dist/tool/plugin/shell.js +239 -239
  770. package/dist/tool/plugin/skill.js +157 -157
  771. package/dist/tool/plugin/subagent.js +240 -240
  772. package/dist/tool/plugin/todo.js +153 -153
  773. package/dist/tool/plugin/webfetch.js +155 -155
  774. package/dist/tool/plugin/websearch.js +155 -155
  775. package/dist/tool/plugin/write.js +164 -164
  776. package/dist/tool/read-filesystem.js +114 -114
  777. package/dist/tool/runtime.js +1 -1
  778. package/dist/tool/search.js +109 -109
  779. package/dist/tool-output.js +7 -7
  780. package/dist/tool.js +157 -157
  781. package/dist/types/config/integration.d.ts +4 -4
  782. package/dist/types/config/plugin/entry-observer.d.ts +5 -1
  783. package/dist/types/config.d.ts +5 -0
  784. package/dist/types/console-access.d.ts +12 -0
  785. package/dist/types/managed-policy.d.ts +1 -1
  786. package/dist/types/mcp/connection.d.ts +2 -0
  787. package/dist/types/plugin/internal.d.ts +3 -1
  788. package/dist/usage-limits.js +100 -100
  789. package/dist/util/error-summary.js +1 -1
  790. package/dist/util/git-executable.js +3 -3
  791. package/dist/util/lazy.js +1 -1
  792. package/dist/util/slug.js +1 -1
  793. package/dist/util/token.js +1 -1
  794. package/dist/util/which.js +1 -1
  795. package/dist/util/wildcard.js +1 -1
  796. package/dist/v1/config/agent.js +5 -5
  797. package/dist/v1/config/command.js +1 -1
  798. package/dist/v1/config/mcp.js +4 -4
  799. package/dist/v1/config/migrate.js +105 -105
  800. package/dist/v1/config/permission.js +3 -3
  801. package/dist/v1/config/plugin.js +3 -3
  802. package/dist/v1/config/provider-options.js +1 -1
  803. package/dist/v1/config/provider.js +4 -4
  804. package/dist/variant.js +104 -104
  805. package/dist/vcs/patch.js +1 -1
  806. package/dist/vcs.js +102 -102
  807. package/dist/voice.js +101 -101
  808. package/dist/websearch.js +101 -101
  809. package/dist/wellknown/plugin.js +85 -85
  810. package/dist/wellknown.js +88 -88
  811. package/dist/workspace/driver.js +3 -3
  812. package/dist/workspace/sql.js +1 -1
  813. package/dist/workspace.js +91 -91
  814. package/dist/worktree/directory.js +2 -2
  815. package/dist/worktree/git.js +9 -9
  816. package/dist/worktree/sql.js +5 -5
  817. package/dist/worktree/strategies.js +102 -102
  818. package/dist/worktree.js +107 -107
  819. package/package.json +8 -8
  820. package/dist/chunks/reference-3k4vyfzg.js +0 -26
  821. package/dist/chunks/reference-3qhreq2y.js +0 -16
  822. package/dist/chunks/reference-dtkhn1ga.js +0 -265
  823. package/dist/chunks/reference-qmh7vbk2.js +0 -18
  824. /package/dist/chunks/{reference-0qkdqm5v.js → project-0qkdqm5v.js} +0 -0
  825. /package/dist/chunks/{reference-0zkw76rk.js → project-0zkw76rk.js} +0 -0
  826. /package/dist/chunks/{reference-108x4f4w.js → project-108x4f4w.js} +0 -0
  827. /package/dist/chunks/{reference-17cy0kzp.js → project-17cy0kzp.js} +0 -0
  828. /package/dist/chunks/{reference-1cnp2v09.js → project-1cnp2v09.js} +0 -0
  829. /package/dist/chunks/{reference-1kah00gy.js → project-1kah00gy.js} +0 -0
  830. /package/dist/chunks/{reference-24dcb14g.js → project-24dcb14g.js} +0 -0
  831. /package/dist/chunks/{reference-2710q6r3.js → project-2710q6r3.js} +0 -0
  832. /package/dist/chunks/{reference-2bv980vf.js → project-2bv980vf.js} +0 -0
  833. /package/dist/chunks/{reference-2c3vjs8z.js → project-2c3vjs8z.js} +0 -0
  834. /package/dist/chunks/{reference-359p4xyc.js → project-359p4xyc.js} +0 -0
  835. /package/dist/chunks/{reference-3af0jn4w.js → project-3af0jn4w.js} +0 -0
  836. /package/dist/chunks/{reference-3asan66x.js → project-3asan66x.js} +0 -0
  837. /package/dist/chunks/{reference-3v8g72cx.js → project-3v8g72cx.js} +0 -0
  838. /package/dist/chunks/{reference-3wcehsnq.js → project-3wcehsnq.js} +0 -0
  839. /package/dist/chunks/{reference-43n2bw4t.js → project-43n2bw4t.js} +0 -0
  840. /package/dist/chunks/{reference-4knz6hnm.js → project-4knz6hnm.js} +0 -0
  841. /package/dist/chunks/{reference-4qk9sjk2.js → project-4qk9sjk2.js} +0 -0
  842. /package/dist/chunks/{reference-4y7fprxs.js → project-4y7fprxs.js} +0 -0
  843. /package/dist/chunks/{reference-53557ph1.js → project-53557ph1.js} +0 -0
  844. /package/dist/chunks/{reference-550bvhaj.js → project-550bvhaj.js} +0 -0
  845. /package/dist/chunks/{reference-5w3e23ze.js → project-5w3e23ze.js} +0 -0
  846. /package/dist/chunks/{reference-6agm2x70.js → project-6agm2x70.js} +0 -0
  847. /package/dist/chunks/{reference-6prwharc.js → project-6prwharc.js} +0 -0
  848. /package/dist/chunks/{reference-6q2bdcd1.js → project-6q2bdcd1.js} +0 -0
  849. /package/dist/chunks/{reference-7akdwqpd.js → project-7akdwqpd.js} +0 -0
  850. /package/dist/chunks/{reference-7m9af43g.js → project-7m9af43g.js} +0 -0
  851. /package/dist/chunks/{reference-822emrt2.js → project-822emrt2.js} +0 -0
  852. /package/dist/chunks/{reference-84wd9syh.js → project-84wd9syh.js} +0 -0
  853. /package/dist/chunks/{reference-88xbtdfr.js → project-88xbtdfr.js} +0 -0
  854. /package/dist/chunks/{reference-8n3pysct.js → project-8n3pysct.js} +0 -0
  855. /package/dist/chunks/{reference-8wj87zfr.js → project-8wj87zfr.js} +0 -0
  856. /package/dist/chunks/{reference-9a4afbnw.js → project-9a4afbnw.js} +0 -0
  857. /package/dist/chunks/{reference-9rqn6x4v.js → project-9rqn6x4v.js} +0 -0
  858. /package/dist/chunks/{reference-a6k6eb26.js → project-a6k6eb26.js} +0 -0
  859. /package/dist/chunks/{reference-af5trqkr.js → project-af5trqkr.js} +0 -0
  860. /package/dist/chunks/{reference-afrmfg78.js → project-afrmfg78.js} +0 -0
  861. /package/dist/chunks/{reference-aqzs7mqg.js → project-aqzs7mqg.js} +0 -0
  862. /package/dist/chunks/{reference-atq7p7m5.js → project-atq7p7m5.js} +0 -0
  863. /package/dist/chunks/{reference-beh6qq61.js → project-beh6qq61.js} +0 -0
  864. /package/dist/chunks/{reference-bhmrqjy3.js → project-bhmrqjy3.js} +0 -0
  865. /package/dist/chunks/{reference-bkyjaxrp.js → project-bkyjaxrp.js} +0 -0
  866. /package/dist/chunks/{reference-bmr6ed5q.js → project-bmr6ed5q.js} +0 -0
  867. /package/dist/chunks/{reference-cf4snx6d.js → project-cf4snx6d.js} +0 -0
  868. /package/dist/chunks/{reference-cqv5kn06.js → project-cqv5kn06.js} +0 -0
  869. /package/dist/chunks/{reference-cvy3z8tj.js → project-cvy3z8tj.js} +0 -0
  870. /package/dist/chunks/{reference-d9fn303g.js → project-d9fn303g.js} +0 -0
  871. /package/dist/chunks/{reference-d9jj8t3e.js → project-d9jj8t3e.js} +0 -0
  872. /package/dist/chunks/{reference-dap0rakb.js → project-dap0rakb.js} +0 -0
  873. /package/dist/chunks/{reference-df08tz66.js → project-df08tz66.js} +0 -0
  874. /package/dist/chunks/{reference-dy18nga0.js → project-dy18nga0.js} +0 -0
  875. /package/dist/chunks/{reference-e5kj55wp.js → project-e5kj55wp.js} +0 -0
  876. /package/dist/chunks/{reference-ean2d8b5.js → project-ean2d8b5.js} +0 -0
  877. /package/dist/chunks/{reference-ec1grn59.js → project-ec1grn59.js} +0 -0
  878. /package/dist/chunks/{reference-emrn6kk6.js → project-emrn6kk6.js} +0 -0
  879. /package/dist/chunks/{reference-f0mxakyp.js → project-f0mxakyp.js} +0 -0
  880. /package/dist/chunks/{reference-f6n9ztr4.js → project-f6n9ztr4.js} +0 -0
  881. /package/dist/chunks/{reference-faypxj3z.js → project-faypxj3z.js} +0 -0
  882. /package/dist/chunks/{reference-fd410y7t.js → project-fd410y7t.js} +0 -0
  883. /package/dist/chunks/{reference-fkpq3x5p.js → project-fkpq3x5p.js} +0 -0
  884. /package/dist/chunks/{reference-g4wezp1m.js → project-g4wezp1m.js} +0 -0
  885. /package/dist/chunks/{reference-g86h250q.js → project-g86h250q.js} +0 -0
  886. /package/dist/chunks/{reference-gebd4c9n.js → project-gebd4c9n.js} +0 -0
  887. /package/dist/chunks/{reference-gftt206x.js → project-gftt206x.js} +0 -0
  888. /package/dist/chunks/{reference-hcxmzztb.js → project-hcxmzztb.js} +0 -0
  889. /package/dist/chunks/{reference-hk9envan.js → project-hk9envan.js} +0 -0
  890. /package/dist/chunks/{reference-j2ntwpah.js → project-j2ntwpah.js} +0 -0
  891. /package/dist/chunks/{reference-j5zkgpj8.js → project-j5zkgpj8.js} +0 -0
  892. /package/dist/chunks/{reference-jjkms2e6.js → project-jjkms2e6.js} +0 -0
  893. /package/dist/chunks/{reference-jr7sbwjy.js → project-jr7sbwjy.js} +0 -0
  894. /package/dist/chunks/{reference-jwfs4k6c.js → project-jwfs4k6c.js} +0 -0
  895. /package/dist/chunks/{reference-jwr30sdr.js → project-jwr30sdr.js} +0 -0
  896. /package/dist/chunks/{reference-jzg6c2d5.js → project-jzg6c2d5.js} +0 -0
  897. /package/dist/chunks/{reference-m18g726c.js → project-m18g726c.js} +0 -0
  898. /package/dist/chunks/{reference-mp448xyj.js → project-mp448xyj.js} +0 -0
  899. /package/dist/chunks/{reference-msx8hqn2.js → project-msx8hqn2.js} +0 -0
  900. /package/dist/chunks/{reference-n05xt0ee.js → project-n05xt0ee.js} +0 -0
  901. /package/dist/chunks/{reference-n3j8tn72.js → project-n3j8tn72.js} +0 -0
  902. /package/dist/chunks/{reference-nh4v3znn.js → project-nh4v3znn.js} +0 -0
  903. /package/dist/chunks/{reference-njntx4h6.js → project-njntx4h6.js} +0 -0
  904. /package/dist/chunks/{reference-p71gwv9c.js → project-p71gwv9c.js} +0 -0
  905. /package/dist/chunks/{reference-q3sfg36h.js → project-q3sfg36h.js} +0 -0
  906. /package/dist/chunks/{reference-q74kybfr.js → project-q74kybfr.js} +0 -0
  907. /package/dist/chunks/{reference-qaymkmh1.js → project-qaymkmh1.js} +0 -0
  908. /package/dist/chunks/{reference-qb87gjwd.js → project-qb87gjwd.js} +0 -0
  909. /package/dist/chunks/{reference-qfa1cgps.js → project-qfa1cgps.js} +0 -0
  910. /package/dist/chunks/{reference-qg3g05ea.js → project-qg3g05ea.js} +0 -0
  911. /package/dist/chunks/{reference-qrg20bc0.js → project-qrg20bc0.js} +0 -0
  912. /package/dist/chunks/{reference-rcb2kzg1.js → project-rcb2kzg1.js} +0 -0
  913. /package/dist/chunks/{reference-sdp7kfr6.js → project-sdp7kfr6.js} +0 -0
  914. /package/dist/chunks/{reference-ssg3fenm.js → project-ssg3fenm.js} +0 -0
  915. /package/dist/chunks/{reference-syrav9an.js → project-syrav9an.js} +0 -0
  916. /package/dist/chunks/{reference-t03h4f5z.js → project-t03h4f5z.js} +0 -0
  917. /package/dist/chunks/{reference-ty7weeps.js → project-ty7weeps.js} +0 -0
  918. /package/dist/chunks/{reference-ve7vex1e.js → project-ve7vex1e.js} +0 -0
  919. /package/dist/chunks/{reference-vtarvj67.js → project-vtarvj67.js} +0 -0
  920. /package/dist/chunks/{reference-w803qqfp.js → project-w803qqfp.js} +0 -0
  921. /package/dist/chunks/{reference-wc3fc9cn.js → project-wc3fc9cn.js} +0 -0
  922. /package/dist/chunks/{reference-wer8tq1h.js → project-wer8tq1h.js} +0 -0
  923. /package/dist/chunks/{reference-wtztk69x.js → project-wtztk69x.js} +0 -0
  924. /package/dist/chunks/{reference-x0ckcb58.js → project-x0ckcb58.js} +0 -0
  925. /package/dist/chunks/{reference-x61499pn.js → project-x61499pn.js} +0 -0
  926. /package/dist/chunks/{reference-y44na4kk.js → project-y44na4kk.js} +0 -0
  927. /package/dist/chunks/{reference-y8f7s663.js → project-y8f7s663.js} +0 -0
  928. /package/dist/chunks/{reference-ygaqb7jw.js → project-ygaqb7jw.js} +0 -0
  929. /package/dist/chunks/{reference-z0h12gs8.js → project-z0h12gs8.js} +0 -0
  930. /package/dist/chunks/{reference-z5v4ffb3.js → project-z5v4ffb3.js} +0 -0
  931. /package/dist/chunks/{reference-z9919s4g.js → project-z9919s4g.js} +0 -0
  932. /package/dist/chunks/{reference-zxpyjp51.js → project-zxpyjp51.js} +0 -0
@@ -1,37 +1,37 @@
1
1
  import {
2
2
  create4
3
- } from "./reference-40y6dtc2.js";
3
+ } from "./project-40y6dtc2.js";
4
4
  import {
5
5
  match3
6
- } from "./reference-1aqsckx4.js";
6
+ } from "./project-1aqsckx4.js";
7
7
  import {
8
- Service77,
9
- node80
10
- } from "./reference-p9x26950.js";
8
+ Service74,
9
+ node78
10
+ } from "./project-9jxpbjsa.js";
11
11
  import {
12
- Service73,
13
- node76
14
- } from "./reference-hm3v9m15.js";
12
+ Service71,
13
+ node75
14
+ } from "./project-9m02z06j.js";
15
15
  import {
16
16
  definition2,
17
17
  execute3,
18
18
  normalizeContent2,
19
19
  normalizedName2,
20
20
  effectiveName2
21
- } from "./reference-z0h12gs8.js";
21
+ } from "./project-z0h12gs8.js";
22
22
  import {
23
23
  create3,
24
24
  catalog2,
25
25
  check2,
26
26
  qualifiedName2
27
- } from "./reference-6xg5mvc6.js";
27
+ } from "./project-a90k0e99.js";
28
28
  import {
29
- Service67,
30
- node70
31
- } from "./reference-yzg0z8vt.js";
29
+ Service61,
30
+ node66
31
+ } from "./project-b5p2pymq.js";
32
32
  import {
33
33
  __export
34
- } from "./reference-9rqn6x4v.js";
34
+ } from "./project-9rqn6x4v.js";
35
35
 
36
36
  // src/tool.ts
37
37
  var exports_tool = {};
@@ -41,10 +41,10 @@ __export(exports_tool, {
41
41
  Error: () => Error5,
42
42
  FileContent: () => FileContent3,
43
43
  RegistrationError: () => RegistrationError2,
44
- Service: () => Service65,
44
+ Service: () => Service59,
45
45
  TextContent: () => TextContent2,
46
46
  Tool: () => exports_tool,
47
- node: () => node69
47
+ node: () => node65
48
48
  });
49
49
  import { CallID as CallID2, Content as Content4, Error as Error5, FileContent as FileContent3, TextContent as TextContent2 } from "@opencode/schema/tool";
50
50
  import { ToolDefinition } from "@opencode/ai/effect";
@@ -57,12 +57,12 @@ class RegistrationError2 extends Schema.TaggedError()("Tool.RegistrationError",
57
57
  }) {
58
58
  }
59
59
 
60
- class Service65 extends Context.Service()("@opencode/Tool") {
60
+ class Service59 extends Context.Service()("@opencode/Tool") {
61
61
  }
62
- var layer = Layer.effect(Service65, Effect.gen(function* () {
63
- const hooks = yield* Service77;
64
- const image = yield* Service67;
65
- const permission = yield* Service73;
62
+ var layer = Layer.effect(Service59, Effect.gen(function* () {
63
+ const hooks = yield* Service74;
64
+ const image = yield* Service61;
65
+ const permission = yield* Service71;
66
66
  const normalizeImages = Effect.fnUntraced(function* (content) {
67
67
  const normalized = yield* Effect.forEach(content, (item) => {
68
68
  if (item.type !== "file" || !item.mime.startsWith("image/"))
@@ -189,7 +189,7 @@ var layer = Layer.effect(Service65, Effect.gen(function* () {
189
189
  }), { discard: true });
190
190
  }
191
191
  });
192
- return Service65.of({
192
+ return Service59.of({
193
193
  transform: state.transform,
194
194
  reload: state.reload,
195
195
  list: () => Effect.sync(() => Array.from(state.get().tools.values())),
@@ -319,10 +319,10 @@ function namespaceError(name) {
319
319
  return;
320
320
  return new RegistrationError2({ name, message: `Invalid tool namespace: ${JSON.stringify(name)}` });
321
321
  }
322
- var node69 = makeLocationNode({
323
- service: Service65,
322
+ var node65 = makeLocationNode({
323
+ service: Service59,
324
324
  layer,
325
- deps: [node80, node70, node76]
325
+ deps: [node78, node66, node75]
326
326
  });
327
327
 
328
- export { RegistrationError2, Service65, node69, exports_tool, CallID2, Content4, Error5, FileContent3, TextContent2 };
328
+ export { RegistrationError2, Service59, node65, exports_tool, CallID2, Content4, Error5, FileContent3, TextContent2 };
@@ -1,47 +1,47 @@
1
1
  import {
2
- Service89,
3
- node92
4
- } from "./reference-782ftqzm.js";
2
+ Service90,
3
+ node94
4
+ } from "./project-9jx6pde7.js";
5
5
  import {
6
- node82
7
- } from "./reference-v8wxce3j.js";
6
+ node81
7
+ } from "./project-5nbmkez3.js";
8
8
  import {
9
- Service12,
10
- node14
11
- } from "./reference-kb90r49x.js";
9
+ Service5,
10
+ node6
11
+ } from "./project-yzjzbeq7.js";
12
12
  import {
13
- Service37
14
- } from "./reference-qmh7vbk2.js";
13
+ Service31
14
+ } from "./project-me0dhgxs.js";
15
15
  import {
16
- node18,
16
+ node26,
17
17
  ID6
18
- } from "./reference-jjv6dbs2.js";
18
+ } from "./project-ce6vjyqc.js";
19
19
  import {
20
20
  Service4,
21
21
  node5
22
- } from "./reference-tg1vr1qt.js";
22
+ } from "./project-tg1vr1qt.js";
23
23
  import {
24
24
  requirements2,
25
25
  guarded2,
26
26
  list2
27
- } from "./reference-4bjxqc3y.js";
27
+ } from "./project-pvs7bvhv.js";
28
28
  import {
29
- make3,
29
+ make17,
30
30
  source2,
31
31
  LoadError2
32
- } from "./reference-6aw533fg.js";
32
+ } from "./project-j7wjfnya.js";
33
33
  import {
34
34
  Updated2,
35
- Service2,
36
- node3
37
- } from "./reference-d2p78d1f.js";
38
- import {
39
35
  Service3,
40
36
  node4
41
- } from "./reference-rgr196vp.js";
37
+ } from "./project-mxmv149a.js";
38
+ import {
39
+ Service2,
40
+ node3
41
+ } from "./project-8sb7jtsn.js";
42
42
  import {
43
43
  __export
44
- } from "./reference-9rqn6x4v.js";
44
+ } from "./project-9rqn6x4v.js";
45
45
 
46
46
  // src/plugin/supervisor.ts
47
47
  var exports_supervisor = {};
@@ -134,13 +134,13 @@ var resolve = Effect.fn("PluginSupervisor.resolve")(function* (modules, pre, pos
134
134
  };
135
135
  });
136
136
  var layer3 = Layer.effectDiscard(Effect.gen(function* () {
137
- const registry = yield* Service37;
138
- const sdk = yield* Service2;
137
+ const registry = yield* Service31;
138
+ const sdk = yield* Service3;
139
139
  const instance = yield* Service4;
140
- const sources = yield* Service12;
141
- const modules = yield* make3();
142
- const bus = yield* Service89;
143
- const updates = yield* Service3;
140
+ const sources = yield* Service5;
141
+ const modules = yield* make17();
142
+ const bus = yield* Service90;
143
+ const updates = yield* Service2;
144
144
  const internal = yield* list2();
145
145
  let release = yield* registry.hold();
146
146
  yield* Effect.addFinalizer(() => release ?? Effect.void);
@@ -207,14 +207,14 @@ var layer3 = Layer.effectDiscard(Effect.gen(function* () {
207
207
  })), Effect.forkScoped({ startImmediately: true }));
208
208
  }));
209
209
  var nodeDeps = [
210
- node18,
211
- node3,
212
- node5,
213
- node14,
210
+ node26,
214
211
  node4,
215
- node92,
212
+ node5,
213
+ node6,
214
+ node3,
215
+ node94,
216
216
  Npm.node,
217
- node82,
217
+ node81,
218
218
  requirements2
219
219
  ];
220
220
  var node2 = makeLocationNode({ name: "plugin-supervisor", layer: layer3, deps: nodeDeps });
@@ -1,34 +1,34 @@
1
1
  import {
2
2
  Service91,
3
- node94
4
- } from "./reference-tsvtqc2e.js";
3
+ node95
4
+ } from "./project-290cbanv.js";
5
5
  import {
6
- Service89,
7
- node92
8
- } from "./reference-782ftqzm.js";
6
+ Service90,
7
+ node94
8
+ } from "./project-9jx6pde7.js";
9
9
  import {
10
10
  CredentialTable2
11
- } from "./reference-pknna89w.js";
11
+ } from "./project-pknna89w.js";
12
12
  import {
13
13
  from2
14
- } from "./reference-m1714858.js";
14
+ } from "./project-m1714858.js";
15
15
  import {
16
16
  __export
17
- } from "./reference-9rqn6x4v.js";
17
+ } from "./project-9rqn6x4v.js";
18
18
 
19
19
  // src/credential.ts
20
20
  var exports_credential = {};
21
21
  __export(exports_credential, {
22
22
  Credential: () => exports_credential,
23
- Event: () => Event20,
23
+ Event: () => Event21,
24
24
  External: () => External2,
25
- ID: () => ID20,
26
- Info: () => Info29,
25
+ ID: () => ID22,
26
+ Info: () => Info32,
27
27
  Key: () => Key4,
28
28
  OAuth: () => OAuth3,
29
- Service: () => Service85,
29
+ Service: () => Service89,
30
30
  Value: () => Value2,
31
- node: () => node88
31
+ node: () => node93
32
32
  });
33
33
  import { asc, desc, eq } from "drizzle-orm";
34
34
  import { Cause, Context, Effect, Fiber, Layer, Schema } from "effect";
@@ -37,26 +37,26 @@ import { CredentialLegacy } from "@opencode/schema/credential-legacy";
37
37
  import { Integration } from "@opencode/schema/integration";
38
38
  import { makeGlobalNode } from "@opencode/util/effect/app-node";
39
39
  import { EffectFlock } from "@opencode/util/effect-flock";
40
- var ID20 = Credential.ID;
40
+ var ID22 = Credential.ID;
41
41
  var OAuth3 = Credential.OAuth;
42
42
  var Key4 = Credential.Key;
43
43
  var External2 = Credential.External;
44
44
  var Value2 = Credential.Value;
45
- var Event20 = Credential.Event;
45
+ var Event21 = Credential.Event;
46
46
 
47
- class Info29 extends Schema.Class("Credential.Info")({
48
- id: ID20,
47
+ class Info32 extends Schema.Class("Credential.Info")({
48
+ id: ID22,
49
49
  integrationID: Integration.ID,
50
50
  label: Schema.String,
51
51
  value: Value2
52
52
  }) {
53
53
  }
54
54
 
55
- class Service85 extends Context.Service()("@opencode/Credential") {
55
+ class Service89 extends Context.Service()("@opencode/Credential") {
56
56
  }
57
- var layer = Layer.effect(Service85, Effect.gen(function* () {
57
+ var layer = Layer.effect(Service89, Effect.gen(function* () {
58
58
  const db = (yield* Service91).db;
59
- const bus = yield* Service89;
59
+ const bus = yield* Service90;
60
60
  const flock = yield* EffectFlock.Service;
61
61
  const scope = yield* Effect.scope;
62
62
  const pending = new Map;
@@ -64,7 +64,7 @@ var layer = Layer.effect(Service85, Effect.gen(function* () {
64
64
  const stored = (row) => {
65
65
  if (!row.integration_id)
66
66
  return;
67
- return new Info29({
67
+ return new Info32({
68
68
  id: row.id,
69
69
  integrationID: row.integration_id,
70
70
  label: row.label,
@@ -83,7 +83,7 @@ var layer = Layer.effect(Service85, Effect.gen(function* () {
83
83
  yield* tx.update(CredentialTable2).set({ active: true }).where(eq(CredentialTable2.id, id)).run();
84
84
  });
85
85
  const logFailure = (message, fields) => (effect) => effect.pipe(Effect.onError((cause) => Effect.logError(message, { ...fields, errors: from2(Cause.squash(cause)) })), Effect.orDie);
86
- return Service85.of({
86
+ return Service89.of({
87
87
  lock: Effect.fn("Credential.lock")((id, operation) => Effect.uninterruptibleMask((restore) => Effect.gen(function* () {
88
88
  const current = pending.get(id);
89
89
  if (current)
@@ -99,8 +99,8 @@ var layer = Layer.effect(Service85, Effect.gen(function* () {
99
99
  return row ? stored(row) : undefined;
100
100
  }),
101
101
  create: Effect.fn("Credential.create")(function* (input) {
102
- const credential = new Info29({
103
- id: input.id ?? ID20.create(),
102
+ const credential = new Info32({
103
+ id: input.id ?? ID22.create(),
104
104
  integrationID: input.integrationID,
105
105
  label: input.label ?? "default",
106
106
  value: input.value
@@ -130,9 +130,9 @@ var layer = Layer.effect(Service85, Effect.gen(function* () {
130
130
  type: credential.value.type,
131
131
  active: activated
132
132
  });
133
- yield* bus.publish(Event20.Updated, {}, { global: true });
133
+ yield* bus.publish(Event21.Updated, {}, { global: true });
134
134
  if (activated)
135
- yield* bus.publish(Event20.Switched, { integrationID: credential.integrationID, credentialID: credential.id }, { global: true });
135
+ yield* bus.publish(Event21.Switched, { integrationID: credential.integrationID, credentialID: credential.id }, { global: true });
136
136
  return credential;
137
137
  }),
138
138
  activate: Effect.fn("Credential.activate")(function* (id) {
@@ -148,7 +148,7 @@ var layer = Layer.effect(Service85, Effect.gen(function* () {
148
148
  })).pipe(logFailure("credential activate failed", { credentialID: id }));
149
149
  if (integrationID) {
150
150
  yield* Effect.logInfo("credential activated", { integrationID, credentialID: id });
151
- yield* bus.publish(Event20.Switched, { integrationID, credentialID: id }, { global: true });
151
+ yield* bus.publish(Event21.Switched, { integrationID, credentialID: id }, { global: true });
152
152
  }
153
153
  }),
154
154
  update: Effect.fn("Credential.update")(function* (id, updates) {
@@ -173,7 +173,7 @@ var layer = Layer.effect(Service85, Effect.gen(function* () {
173
173
  labelChanged: updates.label !== undefined && updates.label !== credential.label
174
174
  });
175
175
  if (updates.label !== undefined && updates.label !== credential.label)
176
- yield* bus.publish(Event20.Updated, {}, { global: true });
176
+ yield* bus.publish(Event21.Updated, {}, { global: true });
177
177
  }),
178
178
  remove: Effect.fn("Credential.remove")(function* (id) {
179
179
  const removed = yield* db.transaction((tx) => Effect.gen(function* () {
@@ -201,12 +201,12 @@ var layer = Layer.effect(Service85, Effect.gen(function* () {
201
201
  active: removed.switched,
202
202
  ...removed.switched ? { replacementID: removed.credentialID } : {}
203
203
  });
204
- yield* bus.publish(Event20.Updated, {}, { global: true });
204
+ yield* bus.publish(Event21.Updated, {}, { global: true });
205
205
  if (removed.switched)
206
- yield* bus.publish(Event20.Switched, { integrationID: removed.integrationID, credentialID: removed.credentialID }, { global: true });
206
+ yield* bus.publish(Event21.Switched, { integrationID: removed.integrationID, credentialID: removed.credentialID }, { global: true });
207
207
  })
208
208
  });
209
209
  }));
210
- var node88 = makeGlobalNode({ service: Service85, layer, deps: [node94, node92, EffectFlock.node] });
210
+ var node93 = makeGlobalNode({ service: Service89, layer, deps: [node95, node94, EffectFlock.node] });
211
211
 
212
- export { ID20, OAuth3, Key4, External2, Value2, Event20, Info29, Service85, node88, exports_credential };
212
+ export { ID22, OAuth3, Key4, External2, Value2, Event21, Info32, Service89, node93, exports_credential };
@@ -1,66 +1,68 @@
1
1
  import {
2
2
  useragent2
3
- } from "./reference-t67p36zk.js";
3
+ } from "./project-0j1zqr2k.js";
4
4
  import {
5
- ID20,
5
+ ID22,
6
6
  OAuth3
7
- } from "./reference-t7x8kn27.js";
7
+ } from "./project-2pyr13f1.js";
8
8
  import {
9
9
  AbsolutePath2
10
- } from "./reference-z5v4ffb3.js";
10
+ } from "./project-z5v4ffb3.js";
11
11
  import {
12
12
  key2
13
- } from "./reference-jhwp234h.js";
13
+ } from "./project-q65mdntm.js";
14
14
  import {
15
- ID18,
15
+ ID20,
16
16
  MethodID2,
17
17
  AuthorizationError2
18
- } from "./reference-4ke1sdaf.js";
18
+ } from "./project-135jvntg.js";
19
19
  import {
20
- ID17
21
- } from "./reference-kapdsjwd.js";
20
+ ID16
21
+ } from "./project-zxnv3p5n.js";
22
22
  import {
23
23
  Remote3,
24
24
  Document3,
25
- make33
26
- } from "./reference-3qgwywyc.js";
25
+ make32
26
+ } from "./project-r17fbvme.js";
27
27
  import {
28
- Service78
29
- } from "./reference-381w5cv2.js";
28
+ Service76
29
+ } from "./project-er5qm13q.js";
30
30
  import {
31
31
  integrate2
32
- } from "./reference-edjeqbg4.js";
32
+ } from "./project-qe9ewq4x.js";
33
33
  import {
34
34
  uri2,
35
- Service72
36
- } from "./reference-mh67hebd.js";
35
+ Service51
36
+ } from "./project-qbrwtzwr.js";
37
37
  import {
38
38
  parse2
39
- } from "./reference-xrtq227w.js";
39
+ } from "./project-t848fhp4.js";
40
40
  import {
41
+ Options2,
41
42
  defaultServer2,
42
43
  server2,
43
44
  headers2
44
- } from "./reference-kt3bjfbg.js";
45
+ } from "./project-53nv8vz9.js";
45
46
  import {
46
47
  File2,
47
- Service54
48
- } from "./reference-qdess7qm.js";
48
+ Service50
49
+ } from "./project-019n5914.js";
49
50
  import {
50
- Service26
51
- } from "./reference-f3qwesrw.js";
51
+ Service15,
52
+ fingerprint2
53
+ } from "./project-axhyxf2f.js";
52
54
  import {
53
55
  isSafeSegment2,
54
56
  isSafeRelativePath2
55
- } from "./reference-xjbsd7zy.js";
57
+ } from "./project-3adw4bt5.js";
56
58
  import {
57
- ID10,
58
- Input16,
59
+ ID7,
60
+ Input15,
59
61
  Response2
60
- } from "./reference-yayn8afj.js";
62
+ } from "./project-zmmeasjg.js";
61
63
  import {
62
64
  onSwitch2
63
- } from "./reference-gznjef8r.js";
65
+ } from "./project-kpr8r4gf.js";
64
66
 
65
67
  // src/plugin/provider/opencode.ts
66
68
  import { Duration, Effect, Equal, FiberHandle, Option, Schema, Scope, Semaphore } from "effect";
@@ -123,7 +125,7 @@ class SignedOutError extends Schema.TaggedError()("OpencodeConsole.SignedOut", {
123
125
  }
124
126
  function oauth(http) {
125
127
  return {
126
- integrationID: ID18.make("opencode"),
128
+ integrationID: ID20.make("opencode"),
127
129
  method: {
128
130
  id: methodID,
129
131
  type: "oauth",
@@ -190,13 +192,14 @@ var OpencodePlugin2 = define({
190
192
  const disableFree = ["1", "true"].includes(process.env.OPENCODE_DISABLE_FREE_MODELS?.toLowerCase() ?? "");
191
193
  const client = yield* HttpClient.HttpClient;
192
194
  const http = HttpClient.mapRequest(client, HttpClientRequest.setHeader("User-Agent", useragent2(ctx.app)));
193
- const config = yield* Service78;
194
- const discovery = yield* Service54;
195
- const skills = yield* Service72;
196
- const cache = yield* Service26;
195
+ const config = yield* Service76;
196
+ const discovery = yield* Service50;
197
+ const skills = yield* Service51;
198
+ const cache = yield* Service15;
197
199
  const scope = yield* Scope.Scope;
200
+ const settings = yield* Options2;
198
201
  const loading = Semaphore.makeUnsafe(1);
199
- let snapshot = { remote: undefined, connection: undefined, organization: undefined };
202
+ let snapshot = { remote: undefined, connection: undefined, organization: undefined, access: undefined };
200
203
  let instructions = [];
201
204
  let librarySkills = { owner: "", items: [] };
202
205
  const owner = (from) => `${key2(from.connection) ?? ""}:${from.organization ?? ""}`;
@@ -207,7 +210,7 @@ var OpencodePlugin2 = define({
207
210
  const connection = yield* ctx.integration.connection.active("opencode");
208
211
  if (!connection) {
209
212
  reported = undefined;
210
- return { remote: undefined, connection, organization: undefined };
213
+ return { _tag: "Loaded", next: { remote: undefined, connection, organization: undefined, access: undefined } };
211
214
  }
212
215
  const status = (status) => {
213
216
  reported = status;
@@ -215,7 +218,7 @@ var OpencodePlugin2 = define({
215
218
  };
216
219
  return yield* ctx.integration.connection.resolve(connection).pipe(Effect.flatMap((credential) => {
217
220
  if (!credential || credential.type === "external")
218
- return Effect.succeed({ remote: undefined, connection, organization: undefined });
221
+ return Effect.succeed({ remote: undefined, connection, organization: undefined, access: undefined });
219
222
  return cache.get({
220
223
  key: `opencode-console:${workspaceKey(connection, credential)}`,
221
224
  interval: maxAge,
@@ -223,25 +226,27 @@ var OpencodePlugin2 = define({
223
226
  }).pipe(Effect.flatMap((result) => ("failed" in result) ? Effect.fail(result.failed) : Effect.succeed(result.remote)), Effect.map((remote) => ({
224
227
  remote,
225
228
  connection,
226
- organization: organizationName(credential)
229
+ organization: organizationName(credential),
230
+ access: accessFingerprint(credential)
227
231
  })));
228
- }), Effect.tap(() => status(undefined)), Effect.catch((cause) => Effect.gen(function* () {
232
+ }), Effect.tap(() => status(undefined)), Effect.map((next) => ({ _tag: "Loaded", next })), Effect.catch((cause) => Effect.gen(function* () {
229
233
  const next = connectionStatus(cause);
230
234
  if (next)
231
235
  yield* status(next);
232
236
  yield* Effect.logWarning("failed to load OpenCode provider config", { cause });
233
- return key2(connection) === key2(snapshot.connection) ? { remote: snapshot.remote, connection, organization: snapshot.organization } : { remote: undefined, connection, organization: undefined };
237
+ return { _tag: "Failed", connection };
234
238
  })));
235
239
  });
240
+ const fallback = (connection) => key2(connection) === key2(snapshot.connection) ? { ...snapshot, connection } : { remote: undefined, connection, organization: undefined, access: undefined };
236
241
  let integrated;
237
242
  const integrate = Effect.fnUntraced(function* (document) {
238
- yield* config.integration?.(ID18.make("opencode"), document) ?? Effect.void;
239
- integrated = (yield* config.entries()).find((entry) => entry instanceof Document3 && entry.integrationID === ID18.make("opencode"));
243
+ yield* config.integration?.(ID20.make("opencode"), document) ?? Effect.void;
244
+ integrated = (yield* config.entries()).find((entry) => entry instanceof Document3 && entry.integrationID === ID20.make("opencode"));
240
245
  });
241
246
  const publish = Effect.fnUntraced(function* (next) {
242
- const document = next.remote && next.connection && make33({
243
- integrationID: ID18.make("opencode"),
244
- connection: next.connection.type === "credential" ? { ...next.connection, id: ID20.make(next.connection.id) } : next.connection,
247
+ const document = next.remote && next.connection && make32({
248
+ integrationID: ID20.make("opencode"),
249
+ connection: next.connection.type === "credential" ? { ...next.connection, id: ID22.make(next.connection.id) } : next.connection,
245
250
  organization: next.organization,
246
251
  info: next.remote
247
252
  });
@@ -292,7 +297,7 @@ var OpencodePlugin2 = define({
292
297
  const orgID = typeof metadata?.orgID === "string" ? metadata.orgID : undefined;
293
298
  const token = credential.type === "oauth" ? credential.access : credential.key;
294
299
  const server = yield* normalizeServer(server2(credential));
295
- const request = yield* HttpClientRequest.post(`${server}/api/websearch`).pipe(HttpClientRequest.acceptJson, HttpClientRequest.bearerToken(token), HttpClientRequest.setHeaders(orgID ? { "x-org-id": orgID } : {}), HttpClientRequest.schemaBodyJson(Input16)({
300
+ const request = yield* HttpClientRequest.post(`${server}/api/websearch`).pipe(HttpClientRequest.acceptJson, HttpClientRequest.bearerToken(token), HttpClientRequest.setHeaders(orgID ? { "x-org-id": orgID } : {}), HttpClientRequest.schemaBodyJson(Input15)({
296
301
  query: input.query,
297
302
  providerID
298
303
  }));
@@ -313,14 +318,15 @@ var OpencodePlugin2 = define({
313
318
  editor.method.update(oauth(http));
314
319
  editor.method.update({ integrationID: "opencode", method: { type: "key", label: "API key (service account)" } });
315
320
  });
316
- snapshot = yield* load();
321
+ const initial = yield* load();
322
+ snapshot = initial._tag === "Loaded" ? initial.next : fallback(initial.connection);
317
323
  yield* publish(snapshot);
318
324
  yield* ctx.provider.transform((providers) => {
319
325
  if (integrated)
320
326
  integrate2(providers, integrated);
321
327
  });
322
328
  yield* ctx.provider.transform((providers) => {
323
- const item = providers.get(ID17.opencode);
329
+ const item = providers.get(ID16.opencode);
324
330
  if (!item)
325
331
  return;
326
332
  const hasKey = Boolean(process.env.OPENCODE_API_KEY || snapshot.connection || item.provider.settings?.apiKey);
@@ -332,7 +338,7 @@ var OpencodePlugin2 = define({
332
338
  });
333
339
  });
334
340
  yield* ctx.model.transform((models) => {
335
- const item = models.provider.get(ID17.opencode);
341
+ const item = models.provider.get(ID16.opencode);
336
342
  if (!item)
337
343
  return;
338
344
  const hasKey = Boolean(process.env.OPENCODE_API_KEY || snapshot.connection || item.provider.settings?.apiKey && item.provider.settings.apiKey !== "public");
@@ -347,7 +353,7 @@ var OpencodePlugin2 = define({
347
353
  }
348
354
  });
349
355
  yield* ctx.websearch.transform((editor) => {
350
- const provider = ID10.make("opencode");
356
+ const provider = ID7.make("opencode");
351
357
  if (snapshot.remote?.websearch && snapshot.remote.websearch.provider === provider && snapshot.connection)
352
358
  editor.add(search(provider, snapshot.connection));
353
359
  });
@@ -363,12 +369,20 @@ var OpencodePlugin2 = define({
363
369
  yield* guard(next);
364
370
  yield* Effect.all([ctx.provider.reload(), ctx.websearch.reload(), ctx.mcp.reload(), discovery.reload(), skills.reload()], { concurrency: 5, discard: true });
365
371
  });
366
- const refresh = () => loading.withPermit(load().pipe(Effect.andThen(apply)));
367
- const check = (maxAge) => loading.withPermit(Effect.gen(function* () {
368
- const next = yield* load(maxAge);
369
- if (!Equal.equals(snapshot, next))
370
- yield* apply(next);
371
- }));
372
+ const check = (maxAge, wait) => Effect.gen(function* () {
373
+ const outcome = wait === undefined ? yield* load(maxAge) : Option.getOrUndefined(yield* load(maxAge).pipe(Effect.timeoutOption(wait)));
374
+ if (!outcome)
375
+ return;
376
+ yield* loading.withPermit(Effect.gen(function* () {
377
+ const loaded = outcome._tag === "Loaded" ? outcome.next.connection : outcome.connection;
378
+ const active = yield* ctx.integration.connection.active("opencode");
379
+ if (key2(loaded) !== key2(active))
380
+ return;
381
+ const next = outcome._tag === "Loaded" ? outcome.next : fallback(outcome.connection);
382
+ if (!Equal.equals(snapshot, next))
383
+ yield* apply(next);
384
+ }));
385
+ });
372
386
  const explain = (event) => Effect.gen(function* () {
373
387
  if (event.response.status !== 401 && event.response.status !== 403)
374
388
  return;
@@ -386,18 +400,19 @@ var OpencodePlugin2 = define({
386
400
  });
387
401
  const guard = Effect.fn("OpencodePlugin.guard")(function* (next) {
388
402
  yield* Effect.forEach(explainers, (registration) => registration.dispose, { discard: true });
389
- explainers = yield* Effect.forEach(next.connection ? new Set([ID17.opencode, ...Object.keys(next.remote?.providers ?? {})]) : [], (providerID) => ctx.session.hook("http.response", explain, { providerID }).pipe(Scope.provide(scope)));
403
+ explainers = yield* Effect.forEach(next.connection ? new Set([ID16.opencode, ...Object.keys(next.remote?.providers ?? {})]) : [], (providerID) => ctx.session.hook("http.response", explain, { providerID }).pipe(Scope.provide(scope)));
390
404
  });
391
405
  yield* guard(snapshot);
406
+ yield* ctx.session.hook("prompt", () => check(Duration.minutes(1), Duration.seconds(3)));
392
407
  const polling = yield* FiberHandle.make();
393
408
  const poll = Effect.fnUntraced(function* () {
394
- if (!snapshot.connection)
409
+ if (!snapshot.connection || !settings.poll)
395
410
  return yield* FiberHandle.clear(polling);
396
411
  yield* FiberHandle.run(polling, Effect.sleep(Duration.minutes(1)).pipe(Effect.andThen(check()), Effect.forever), {
397
412
  onlyIfMissing: true
398
413
  });
399
414
  });
400
- yield* onSwitch2("opencode", refresh().pipe(Effect.andThen(poll())));
415
+ yield* onSwitch2("opencode", check().pipe(Effect.andThen(poll())));
401
416
  yield* poll();
402
417
  })
403
418
  });
@@ -420,7 +435,7 @@ function fetchConfig(http, value) {
420
435
  }
421
436
  const body = yield* HttpClientResponse.filterStatusOk(response).pipe(Effect.flatMap((ok) => ok.json));
422
437
  return yield* Schema.decodeUnknownEffect(ConsoleConfig)(body);
423
- })), Effect.scoped);
438
+ })), Effect.scoped, Effect.timeout(Duration.seconds(5)));
424
439
  }
425
440
  function ssoUrl(server, connectionID) {
426
441
  return normalizeServer(server).pipe(Effect.map((base) => {
@@ -443,9 +458,13 @@ function workspaceKey(connection, credential) {
443
458
  return JSON.stringify([
444
459
  server2(credential),
445
460
  key2(connection),
446
- credential.metadata?.orgID
461
+ credential.metadata?.orgID,
462
+ accessFingerprint(credential)
447
463
  ]);
448
464
  }
465
+ function accessFingerprint(credential) {
466
+ return credential.type === "key" ? fingerprint2(credential.key) : undefined;
467
+ }
449
468
  function organizationName(credential) {
450
469
  return typeof credential.metadata?.orgName === "string" ? credential.metadata.orgName : undefined;
451
470
  }