@opencode/core 0.0.0-dev-20284 → 0.0.0-dev-20285

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 (801) hide show
  1. package/dist/account/sql.js +1 -1
  2. package/dist/agent.js +83 -83
  3. package/dist/aisdk-native.js +89 -89
  4. package/dist/aisdk.js +94 -94
  5. package/dist/app.js +9 -9
  6. package/dist/bus.js +69 -69
  7. package/dist/chunks/file-retention-0awdyt48.js +26 -0
  8. package/dist/chunks/{integration-rhjbct0v.js → file-retention-0gdmqesm.js} +4 -4
  9. package/dist/chunks/{integration-6hjx5zpb.js → file-retention-0jq9fyba.js} +9 -9
  10. package/dist/chunks/{integration-yesqp7fw.js → file-retention-0m56zc8a.js} +12 -12
  11. package/dist/chunks/{integration-0paq2nw3.js → file-retention-0paq2nw3.js} +1 -1
  12. package/dist/chunks/{integration-87b0ccws.js → file-retention-0ywk5tx6.js} +4 -4
  13. package/dist/chunks/{integration-9erc8nq9.js → file-retention-14rxwr6z.js} +41 -41
  14. package/dist/chunks/{integration-jx4jx4s1.js → file-retention-16gx62bp.js} +2 -2
  15. package/dist/chunks/{integration-1acjjqhc.js → file-retention-1acjjqhc.js} +1 -1
  16. package/dist/chunks/{integration-mhkvc446.js → file-retention-1bbkgx8g.js} +3 -3
  17. package/dist/chunks/{integration-pkfxfszq.js → file-retention-1caf5nrg.js} +26 -26
  18. package/dist/chunks/{integration-1dazxqgg.js → file-retention-1dazxqgg.js} +2 -2
  19. package/dist/chunks/{integration-m2p4qxhv.js → file-retention-1fdwkrhc.js} +27 -27
  20. package/dist/chunks/{integration-3py9tntd.js → file-retention-1fscjbh9.js} +3 -3
  21. package/dist/chunks/{integration-3801kdgp.js → file-retention-1wr3xbz8.js} +5 -5
  22. package/dist/chunks/{integration-336jbapg.js → file-retention-20k655vp.js} +8 -8
  23. package/dist/chunks/{integration-1hsgezmh.js → file-retention-21b4tg1x.js} +11 -11
  24. package/dist/chunks/{integration-21r38tys.js → file-retention-21r38tys.js} +1 -1
  25. package/dist/chunks/{integration-z63w68vq.js → file-retention-29x78va6.js} +6 -6
  26. package/dist/chunks/{integration-dxt5nwr4.js → file-retention-2a31wvsa.js} +13 -13
  27. package/dist/chunks/{integration-2a5m3afh.js → file-retention-2a5m3afh.js} +1 -1
  28. package/dist/chunks/{integration-wefqzq4f.js → file-retention-2bef5nan.js} +304 -304
  29. package/dist/chunks/{integration-f60ve7xe.js → file-retention-2fz0za61.js} +16 -16
  30. package/dist/chunks/{integration-0jwsre1p.js → file-retention-2k8khapm.js} +5 -5
  31. package/dist/chunks/{integration-a8bn8zg0.js → file-retention-2pnhn36q.js} +21 -21
  32. package/dist/chunks/{integration-19eyspa8.js → file-retention-2yxf3rmy.js} +30 -30
  33. package/dist/chunks/{integration-p0sbmvqz.js → file-retention-30dn2p1d.js} +24 -24
  34. package/dist/chunks/{integration-a79rb00n.js → file-retention-341r3tte.js} +12 -12
  35. package/dist/chunks/{integration-a4ae1mqs.js → file-retention-3556dn8t.js} +1 -1
  36. package/dist/chunks/{integration-59xwxqv5.js → file-retention-36cgn824.js} +5 -5
  37. package/dist/chunks/{integration-qf37nfnm.js → file-retention-3czz45a3.js} +3 -3
  38. package/dist/chunks/{integration-3fc6dm20.js → file-retention-3fc6dm20.js} +1 -1
  39. package/dist/chunks/{integration-akqv09jd.js → file-retention-3gd62aj9.js} +172 -167
  40. package/dist/chunks/{integration-3hepkmqq.js → file-retention-3hepkmqq.js} +1 -1
  41. package/dist/chunks/{integration-k5c5twea.js → file-retention-3m43f51c.js} +23 -23
  42. package/dist/chunks/{integration-nydz2zbj.js → file-retention-3q73b6mj.js} +15 -15
  43. package/dist/chunks/{integration-3smtnn6g.js → file-retention-3smtnn6g.js} +1 -1
  44. package/dist/chunks/{integration-355jfwf8.js → file-retention-3st197qb.js} +50 -50
  45. package/dist/chunks/{integration-3tvqynh2.js → file-retention-3tvqynh2.js} +1 -1
  46. package/dist/chunks/{integration-med42bqn.js → file-retention-3vehk3w1.js} +15 -15
  47. package/dist/chunks/{integration-baes5359.js → file-retention-3vzfjtr8.js} +5 -5
  48. package/dist/chunks/{integration-3zsf4n22.js → file-retention-3zsf4n22.js} +1 -1
  49. package/dist/chunks/{integration-rbkd2d5v.js → file-retention-41rmpfss.js} +22 -22
  50. package/dist/chunks/{integration-9jft2ye4.js → file-retention-43m7x77p.js} +17 -17
  51. package/dist/chunks/{integration-cvhkk3hw.js → file-retention-47378fkq.js} +7 -7
  52. package/dist/chunks/{integration-zbsarep8.js → file-retention-474p48fz.js} +12 -12
  53. package/dist/chunks/{integration-y9vg1scn.js → file-retention-481cetth.js} +10 -10
  54. package/dist/chunks/{integration-m601tfh9.js → file-retention-4a49dmp5.js} +15 -15
  55. package/dist/chunks/{integration-h8vn6fjj.js → file-retention-4bgvjpaj.js} +14 -14
  56. package/dist/chunks/{integration-wztfhms8.js → file-retention-4bpxp8jr.js} +3 -3
  57. package/dist/chunks/{integration-941r3npm.js → file-retention-4dcyp64e.js} +11 -11
  58. package/dist/chunks/{integration-bt5vmpp6.js → file-retention-4f1mqxn7.js} +4 -4
  59. package/dist/chunks/{integration-s00bxgng.js → file-retention-4jrfqp12.js} +26 -26
  60. package/dist/chunks/{integration-r0bd36fr.js → file-retention-4pf42kt4.js} +6 -6
  61. package/dist/chunks/{integration-7r6wwy4a.js → file-retention-4q599fyn.js} +6 -6
  62. package/dist/chunks/{integration-3ayz7pdh.js → file-retention-4s8ysvrb.js} +31 -31
  63. package/dist/chunks/{integration-jxjcdxd0.js → file-retention-4x93m9qy.js} +17 -17
  64. package/dist/chunks/{integration-d2czbp48.js → file-retention-4z58m4b4.js} +4 -4
  65. package/dist/chunks/{integration-d0k1g5nx.js → file-retention-51f5btjf.js} +6 -6
  66. package/dist/chunks/{integration-54ma36ye.js → file-retention-54ma36ye.js} +1 -1
  67. package/dist/chunks/{integration-54tcyq79.js → file-retention-54tcyq79.js} +2 -2
  68. package/dist/chunks/{integration-5daktx2q.js → file-retention-5daktx2q.js} +1 -1
  69. package/dist/chunks/{integration-7b7x293f.js → file-retention-5dg6696f.js} +46 -27
  70. package/dist/chunks/{integration-03wz1akf.js → file-retention-5epvw41m.js} +39 -39
  71. package/dist/chunks/file-retention-5g7fvmhm.js +507 -0
  72. package/dist/chunks/{integration-14skzq0n.js → file-retention-5gerj4ra.js} +41 -41
  73. package/dist/chunks/{integration-m8dxka3f.js → file-retention-5khy2bd0.js} +33 -33
  74. package/dist/chunks/{integration-a2xz39qp.js → file-retention-5ndd65f1.js} +9 -9
  75. package/dist/chunks/{integration-4w3q00qb.js → file-retention-5pk58n1t.js} +18 -18
  76. package/dist/chunks/{integration-5t3nmthw.js → file-retention-5t3nmthw.js} +2 -2
  77. package/dist/chunks/{integration-hkxx6036.js → file-retention-60amgp41.js} +4 -4
  78. package/dist/chunks/{integration-bxp2jpa1.js → file-retention-60e937tk.js} +4 -4
  79. package/dist/chunks/{integration-3q756xqj.js → file-retention-61h3kr51.js} +33 -33
  80. package/dist/chunks/{integration-669tq793.js → file-retention-669tq793.js} +1 -1
  81. package/dist/chunks/{integration-r280vhkp.js → file-retention-679y6aj6.js} +16 -16
  82. package/dist/chunks/{integration-6msgmcgs.js → file-retention-6msgmcgs.js} +1 -1
  83. package/dist/chunks/{integration-g74mfj6n.js → file-retention-6scfp7gb.js} +9 -9
  84. package/dist/chunks/{integration-9kbags8k.js → file-retention-6zcagf6x.js} +9 -9
  85. package/dist/chunks/{integration-yqrrhp5w.js → file-retention-782bh3pr.js} +20 -20
  86. package/dist/chunks/{integration-7bmhse3q.js → file-retention-7bmhse3q.js} +1 -1
  87. package/dist/chunks/{integration-n264kn3f.js → file-retention-7h1rvsdd.js} +14 -14
  88. package/dist/chunks/{integration-hawc55qt.js → file-retention-7jn4cbqh.js} +6 -6
  89. package/dist/chunks/{integration-8hpx30f9.js → file-retention-7k8jnmap.js} +44 -44
  90. package/dist/chunks/{integration-3rtxz4nr.js → file-retention-7s2tn799.js} +8 -8
  91. package/dist/chunks/{integration-yfj39tds.js → file-retention-7yj99b4g.js} +25 -25
  92. package/dist/chunks/{integration-eahhehpg.js → file-retention-80scg3y3.js} +4 -4
  93. package/dist/chunks/{integration-84txncab.js → file-retention-84txncab.js} +1 -1
  94. package/dist/chunks/{integration-tcezcvh9.js → file-retention-89znhe33.js} +4 -4
  95. package/dist/chunks/{integration-8d7r5vzw.js → file-retention-8d7r5vzw.js} +1 -1
  96. package/dist/chunks/{integration-4xz89tjk.js → file-retention-8jxztqqt.js} +5 -5
  97. package/dist/chunks/{integration-1p07q0wb.js → file-retention-8sze2n9a.js} +8 -8
  98. package/dist/chunks/{integration-4p773rn4.js → file-retention-8xyqwyw4.js} +16 -16
  99. package/dist/chunks/{integration-hwaq6n4f.js → file-retention-958ry1en.js} +13 -13
  100. package/dist/chunks/{integration-10ce4g8v.js → file-retention-9asxwhye.js} +10 -10
  101. package/dist/chunks/{integration-s9htjpym.js → file-retention-9ckhpt6a.js} +28 -28
  102. package/dist/chunks/{integration-2y8s9x1b.js → file-retention-9gjt9gbs.js} +13 -13
  103. package/dist/chunks/{integration-d7ap0fky.js → file-retention-9gk01zf5.js} +11 -11
  104. package/dist/chunks/{integration-4wdgh5xv.js → file-retention-9hbvw80x.js} +2 -2
  105. package/dist/chunks/{integration-ngts6ef0.js → file-retention-9jbvj98d.js} +8 -8
  106. package/dist/chunks/{integration-aaet6srn.js → file-retention-aaet6srn.js} +2 -2
  107. package/dist/chunks/{integration-mh4rkcf4.js → file-retention-addykxcr.js} +24 -24
  108. package/dist/chunks/{integration-kaqgv1kk.js → file-retention-ah16ew7h.js} +11 -11
  109. package/dist/chunks/{integration-zfsz7c4a.js → file-retention-amhzemjk.js} +11 -11
  110. package/dist/chunks/{integration-fdv30zvt.js → file-retention-at5d07az.js} +7 -7
  111. package/dist/chunks/{integration-wnys78fq.js → file-retention-b0a139tp.js} +3 -3
  112. package/dist/chunks/{integration-wzmaxvc9.js → file-retention-b29g69qn.js} +30 -30
  113. package/dist/chunks/{integration-b6gygkdw.js → file-retention-b6gygkdw.js} +2 -2
  114. package/dist/chunks/{integration-df3df5tx.js → file-retention-bbb7krmb.js} +1 -1
  115. package/dist/chunks/{integration-bjtzbw4r.js → file-retention-bjtzbw4r.js} +3 -3
  116. package/dist/chunks/{integration-88b17fsa.js → file-retention-c01tdnkp.js} +35 -35
  117. package/dist/chunks/{integration-7w8vs4ab.js → file-retention-c1y4bq5r.js} +13 -13
  118. package/dist/chunks/file-retention-c2k3cth8.js +252 -0
  119. package/dist/chunks/{integration-fsmmwzws.js → file-retention-c9h5a3rv.js} +25 -25
  120. package/dist/chunks/{integration-jw0bqmef.js → file-retention-ccrmjght.js} +34 -34
  121. package/dist/chunks/{integration-k2aj64ym.js → file-retention-cg045a5a.js} +22 -22
  122. package/dist/chunks/{integration-41xbg949.js → file-retention-chthj8nn.js} +17 -17
  123. package/dist/chunks/{integration-b8t30bwq.js → file-retention-cjj4r78p.js} +12 -12
  124. package/dist/chunks/{integration-ssx3zy79.js → file-retention-d9bmnkpe.js} +17 -17
  125. package/dist/chunks/{integration-d9s573fh.js → file-retention-d9s573fh.js} +2 -2
  126. package/dist/chunks/{integration-nvrj0150.js → file-retention-dgk65g6a.js} +11 -11
  127. package/dist/chunks/{integration-q7z079fr.js → file-retention-dk1h4k3m.js} +24 -24
  128. package/dist/chunks/{integration-qf0b0eax.js → file-retention-dp089qyj.js} +11 -11
  129. package/dist/chunks/{integration-g2mx06y3.js → file-retention-dte89hxh.js} +27 -27
  130. package/dist/chunks/{integration-2c7hjkzv.js → file-retention-dvzj1xmf.js} +12 -12
  131. package/dist/chunks/{integration-jssdqx31.js → file-retention-dwwxx3ad.js} +24 -24
  132. package/dist/chunks/{integration-5qd3pb7m.js → file-retention-e3qxr5gk.js} +2 -2
  133. package/dist/chunks/{integration-jmv4csz4.js → file-retention-e4e0rb9m.js} +11 -11
  134. package/dist/chunks/{integration-13wsvgev.js → file-retention-e5etnha4.js} +11 -11
  135. package/dist/chunks/{integration-ecfe7b91.js → file-retention-ecfe7b91.js} +2 -2
  136. package/dist/chunks/{integration-ef5x83kb.js → file-retention-ef5x83kb.js} +1 -1
  137. package/dist/chunks/{integration-0qjwcdf0.js → file-retention-ekf0jtj0.js} +3 -3
  138. package/dist/chunks/{integration-etq0c3wd.js → file-retention-etq0c3wd.js} +1 -1
  139. package/dist/chunks/{integration-nf82b3wt.js → file-retention-etwdtmvh.js} +10 -10
  140. package/dist/chunks/{integration-v7tbbmm7.js → file-retention-ew2nq7xx.js} +5 -5
  141. package/dist/chunks/{integration-ns7tbk3m.js → file-retention-ez49j3s8.js} +24 -24
  142. package/dist/chunks/{integration-sn41jhqx.js → file-retention-f638v0k7.js} +15 -15
  143. package/dist/chunks/{integration-0w5jwg0z.js → file-retention-f79rnm05.js} +5 -5
  144. package/dist/chunks/{integration-287rg9sk.js → file-retention-f9v3w90c.js} +25 -25
  145. package/dist/chunks/{integration-1ag5f13t.js → file-retention-fe8gfspk.js} +11 -11
  146. package/dist/chunks/{integration-xsgk3b13.js → file-retention-fhff0x2d.js} +9 -9
  147. package/dist/chunks/{integration-y5sjzhg5.js → file-retention-frtvfavf.js} +4 -4
  148. package/dist/chunks/{integration-500fmqbd.js → file-retention-ftbwh1a1.js} +11 -11
  149. package/dist/chunks/{integration-dpja50vx.js → file-retention-fw2v9256.js} +8 -8
  150. package/dist/chunks/{integration-8ntmc9jd.js → file-retention-fx4fe4nq.js} +4 -4
  151. package/dist/chunks/{integration-j7kkg62r.js → file-retention-g0x0gx4j.js} +25 -25
  152. package/dist/chunks/{integration-fs86y4y8.js → file-retention-g298hghc.js} +25 -25
  153. package/dist/chunks/{integration-h3xyrx8k.js → file-retention-g2tbeqr5.js} +15 -15
  154. package/dist/chunks/{integration-xn76t6fc.js → file-retention-g5q29pcg.js} +16 -16
  155. package/dist/chunks/{integration-v4r6ds62.js → file-retention-g87nsqnj.js} +5 -5
  156. package/dist/chunks/{integration-gd4qta3r.js → file-retention-gd4qta3r.js} +1 -1
  157. package/dist/chunks/{integration-gfvb90ym.js → file-retention-gfvb90ym.js} +2 -2
  158. package/dist/chunks/{integration-h9055z12.js → file-retention-gja6y8ab.js} +20 -20
  159. package/dist/chunks/{integration-s9taesah.js → file-retention-gjyhvyzk.js} +11 -11
  160. package/dist/chunks/{integration-e2w4nw67.js → file-retention-gkcpgxvn.js} +11 -11
  161. package/dist/chunks/{integration-s2eagjy5.js → file-retention-grfgqh29.js} +25 -25
  162. package/dist/chunks/{integration-18fhcwyd.js → file-retention-gx02ghzj.js} +9 -9
  163. package/dist/chunks/{integration-99jc8f7r.js → file-retention-gzj4cxdc.js} +19 -19
  164. package/dist/chunks/{integration-k8s2g9k3.js → file-retention-gzsrjqqd.js} +69 -69
  165. package/dist/chunks/{integration-g26xt907.js → file-retention-h6p0mwy3.js} +20 -20
  166. package/dist/chunks/{integration-h6vf3j39.js → file-retention-h6vf3j39.js} +1 -1
  167. package/dist/chunks/{integration-zd5r1z3p.js → file-retention-h78cdha0.js} +33 -33
  168. package/dist/chunks/{integration-37dqmmxw.js → file-retention-hbsdh60r.js} +20 -20
  169. package/dist/chunks/{integration-5sxhaqv9.js → file-retention-hfym5axa.js} +13 -13
  170. package/dist/chunks/file-retention-ht5y0zrb.js +18 -0
  171. package/dist/chunks/{integration-j56e64zr.js → file-retention-j56e64zr.js} +1 -1
  172. package/dist/chunks/{integration-13ahtzqa.js → file-retention-j6wzn4gt.js} +14 -14
  173. package/dist/chunks/{integration-5r5ngwvx.js → file-retention-jdtz6xe6.js} +11 -11
  174. package/dist/chunks/{integration-2emg5d4r.js → file-retention-jpq1mxv8.js} +8 -8
  175. package/dist/chunks/{integration-tchf8bzg.js → file-retention-jrh7cjv9.js} +15 -15
  176. package/dist/chunks/{integration-g56r92cj.js → file-retention-jwhd9bgz.js} +14 -14
  177. package/dist/chunks/{integration-xr72202b.js → file-retention-jz6k0e3h.js} +3 -3
  178. package/dist/chunks/{integration-rzep3kdk.js → file-retention-k0aew57z.js} +8 -8
  179. package/dist/chunks/{integration-datgzbnb.js → file-retention-k1k1f0xx.js} +16 -16
  180. package/dist/chunks/{integration-2yx0kjta.js → file-retention-k6c967g7.js} +3 -3
  181. package/dist/chunks/{integration-enc8k7eb.js → file-retention-kag9wx21.js} +139 -31
  182. package/dist/chunks/{integration-5frpvc34.js → file-retention-kbegyq1c.js} +2 -2
  183. package/dist/chunks/{integration-w4arg62q.js → file-retention-kmkwybff.js} +4 -4
  184. package/dist/chunks/{integration-kcc7mh83.js → file-retention-kryy842e.js} +43 -43
  185. package/dist/chunks/{integration-tgcnk5sw.js → file-retention-kspsnyg5.js} +5 -5
  186. package/dist/chunks/{integration-m3fdjcah.js → file-retention-m3fdjcah.js} +1 -1
  187. package/dist/chunks/{integration-m9w0rfyh.js → file-retention-m9w0rfyh.js} +1 -1
  188. package/dist/chunks/{integration-1ygqh575.js → file-retention-mfqp6xfm.js} +6 -6
  189. package/dist/chunks/{integration-h6r3nrb9.js → file-retention-mpk0rfs5.js} +4 -2
  190. package/dist/chunks/{integration-2e55ks6z.js → file-retention-ms03nq7r.js} +13 -13
  191. package/dist/chunks/{integration-npzqcw4h.js → file-retention-n2az5f76.js} +12 -12
  192. package/dist/chunks/{integration-8q7cq0y1.js → file-retention-n7d88tpn.js} +3 -3
  193. package/dist/chunks/{integration-j6rk38x8.js → file-retention-nenvs776.js} +9 -9
  194. package/dist/chunks/{integration-56tk9z3j.js → file-retention-njhj3ca1.js} +13 -13
  195. package/dist/chunks/{integration-h3b20av4.js → file-retention-nnk7v8pm.js} +8 -8
  196. package/dist/chunks/{integration-txe61999.js → file-retention-nt2xy26d.js} +29 -29
  197. package/dist/chunks/{integration-k3c624dm.js → file-retention-nzks3jc8.js} +3 -3
  198. package/dist/chunks/{integration-5yzzbxa7.js → file-retention-p37cw4rj.js} +8 -8
  199. package/dist/chunks/{integration-ete09x6f.js → file-retention-p3t9fn4d.js} +9 -9
  200. package/dist/chunks/{integration-7rncv06g.js → file-retention-p9te1kmc.js} +43 -43
  201. package/dist/chunks/{integration-txzsewg6.js → file-retention-pg27pa1a.js} +30 -30
  202. package/dist/chunks/{integration-pjvnvgmy.js → file-retention-pjvnvgmy.js} +1 -1
  203. package/dist/chunks/{integration-pknna89w.js → file-retention-pknna89w.js} +1 -1
  204. package/dist/chunks/{integration-dd4dnbbb.js → file-retention-ps5z82g9.js} +5 -5
  205. package/dist/chunks/{integration-psazpmmj.js → file-retention-psazpmmj.js} +2 -2
  206. package/dist/chunks/{integration-8y7th7f2.js → file-retention-psbrwbtd.js} +5 -5
  207. package/dist/chunks/{integration-kc8mrxbe.js → file-retention-pzhy0znt.js} +14 -14
  208. package/dist/chunks/{integration-h9qb7c7q.js → file-retention-pzwaf65z.js} +32 -32
  209. package/dist/chunks/{integration-p4b86tx8.js → file-retention-q1n3a0d0.js} +6 -6
  210. package/dist/chunks/{integration-sht10b59.js → file-retention-q3cwr1ch.js} +52 -52
  211. package/dist/chunks/{integration-a7pt7jn1.js → file-retention-qcmd6j3d.js} +4 -4
  212. package/dist/chunks/{integration-t5ey9jjv.js → file-retention-qeb5ksby.js} +46 -46
  213. package/dist/chunks/{integration-amv7r7xf.js → file-retention-qgc72k7m.js} +8 -8
  214. package/dist/chunks/{integration-qsdy395h.js → file-retention-qsdy395h.js} +1 -1
  215. package/dist/chunks/{integration-cwa6csj7.js → file-retention-r2m716tb.js} +9 -9
  216. package/dist/chunks/{integration-576s5d3g.js → file-retention-r59n77gh.js} +24 -24
  217. package/dist/chunks/{integration-fj3c9ane.js → file-retention-r5d8z5dp.js} +10 -10
  218. package/dist/chunks/{integration-q2b1ymqp.js → file-retention-r98e92ep.js} +4 -4
  219. package/dist/chunks/{integration-y3ems7z9.js → file-retention-rb8xkgfd.js} +10 -10
  220. package/dist/chunks/{integration-rdw6cm16.js → file-retention-rdw6cm16.js} +1 -1
  221. package/dist/chunks/{integration-b2s2f9hy.js → file-retention-rjbmcc11.js} +11 -11
  222. package/dist/chunks/{integration-5798x35d.js → file-retention-rjpmn9fg.js} +23 -23
  223. package/dist/chunks/{integration-8xwjq0pe.js → file-retention-rkp2w2jx.js} +35 -35
  224. package/dist/chunks/{integration-rq775frq.js → file-retention-rq775frq.js} +2 -2
  225. package/dist/chunks/{integration-s0k7kba5.js → file-retention-rr5wp26c.js} +11 -11
  226. package/dist/chunks/{integration-mr90rcr6.js → file-retention-rrb87pxb.js} +17 -17
  227. package/dist/chunks/{integration-3e147rt9.js → file-retention-rwh68y4k.js} +9 -9
  228. package/dist/chunks/{integration-82206brs.js → file-retention-s1a7yt6d.js} +48 -48
  229. package/dist/chunks/{integration-kfktj5h5.js → file-retention-s2byz38y.js} +4 -4
  230. package/dist/chunks/{integration-yrznvahk.js → file-retention-s4enseaf.js} +2 -2
  231. package/dist/chunks/{integration-4yb1sc8z.js → file-retention-s6yj2pcz.js} +9 -9
  232. package/dist/chunks/{integration-5we7r0eg.js → file-retention-sc51f7bh.js} +8 -8
  233. package/dist/chunks/{integration-8parajs2.js → file-retention-snjen9h6.js} +42 -42
  234. package/dist/chunks/{integration-s3g84wna.js → file-retention-srey4qzw.js} +7 -7
  235. package/dist/chunks/{integration-exxm0dv4.js → file-retention-svx0194h.js} +24 -24
  236. package/dist/chunks/{integration-2va239gy.js → file-retention-szekdmz8.js} +21 -21
  237. package/dist/chunks/{integration-mpthp08p.js → file-retention-t3tn9a53.js} +9 -9
  238. package/dist/chunks/{integration-tazgh4e4.js → file-retention-tazgh4e4.js} +1 -1
  239. package/dist/chunks/{integration-j34bs4nz.js → file-retention-tb1cafh6.js} +4 -4
  240. package/dist/chunks/{integration-tdstcens.js → file-retention-tdstcens.js} +1 -1
  241. package/dist/chunks/{integration-8p70309a.js → file-retention-tffeed3q.js} +12 -12
  242. package/dist/chunks/{integration-e5d75q9m.js → file-retention-tnppw0jd.js} +31 -31
  243. package/dist/chunks/{integration-aby47wwy.js → file-retention-tv83fb5h.js} +23 -23
  244. package/dist/chunks/{integration-tvtrv512.js → file-retention-tvtrv512.js} +1 -1
  245. package/dist/chunks/{integration-qv1j0f1d.js → file-retention-twd39qy8.js} +13 -13
  246. package/dist/chunks/{integration-166agdv6.js → file-retention-v2hpcb12.js} +11 -11
  247. package/dist/chunks/{integration-r0d7dx27.js → file-retention-v9aw8j7f.js} +79 -79
  248. package/dist/chunks/{integration-xvp1j2dc.js → file-retention-vd7rzxqf.js} +5 -5
  249. package/dist/chunks/{integration-veqvce7d.js → file-retention-veqvce7d.js} +1 -1
  250. package/dist/chunks/{integration-kefef9st.js → file-retention-vk4wj6sj.js} +24 -24
  251. package/dist/chunks/{integration-2hg7qvzt.js → file-retention-vnwmzs4a.js} +5 -5
  252. package/dist/chunks/{integration-ycwy6ex1.js → file-retention-vsx1rdgx.js} +20 -20
  253. package/dist/chunks/{integration-0ta8ncat.js → file-retention-vxje23vy.js} +10 -10
  254. package/dist/chunks/{integration-pc4b88sv.js → file-retention-vxzh5eqq.js} +4 -4
  255. package/dist/chunks/{integration-vzcthcp8.js → file-retention-vzcthcp8.js} +1 -1
  256. package/dist/chunks/{integration-vzs5sf6e.js → file-retention-vzs5sf6e.js} +1 -1
  257. package/dist/chunks/{integration-dfmjf6m5.js → file-retention-w2wbxgzd.js} +7 -7
  258. package/dist/chunks/{integration-w3wsvvr9.js → file-retention-w3wsvvr9.js} +1 -1
  259. package/dist/chunks/{integration-zywn5321.js → file-retention-wapkz1da.js} +18 -18
  260. package/dist/chunks/{integration-6esbwhw5.js → file-retention-wd0xah3x.js} +32 -32
  261. package/dist/chunks/{integration-wd87259q.js → file-retention-wd87259q.js} +1 -1
  262. package/dist/chunks/{integration-x1ezjp6w.js → file-retention-x1ezjp6w.js} +1 -1
  263. package/dist/chunks/{integration-h8pmqzj1.js → file-retention-x1mx0z9d.js} +8 -8
  264. package/dist/chunks/{integration-57b9ws8p.js → file-retention-xfkkasph.js} +7 -7
  265. package/dist/chunks/{integration-1p2r191f.js → file-retention-xj0hxfaf.js} +12 -12
  266. package/dist/chunks/{integration-xkntkrq7.js → file-retention-xkntkrq7.js} +2 -2
  267. package/dist/chunks/{integration-r1mh77dy.js → file-retention-xsq4etav.js} +24 -24
  268. package/dist/chunks/{integration-vzfyd6yh.js → file-retention-xw6mcszy.js} +16 -16
  269. package/dist/chunks/{integration-fndw4the.js → file-retention-xznz5zdk.js} +1 -1
  270. package/dist/chunks/{integration-d1pkyphn.js → file-retention-y1afxrem.js} +5 -5
  271. package/dist/chunks/{integration-y1fvbwt7.js → file-retention-y1fvbwt7.js} +1 -1
  272. package/dist/chunks/{integration-tffktew3.js → file-retention-y1zeze83.js} +5 -5
  273. package/dist/chunks/{integration-cpyc35sh.js → file-retention-y4spq9gz.js} +83 -83
  274. package/dist/chunks/{integration-y71avatq.js → file-retention-y71avatq.js} +1 -1
  275. package/dist/chunks/{integration-evxqfha7.js → file-retention-yd5d63z4.js} +24 -24
  276. package/dist/chunks/{integration-mvfdckk2.js → file-retention-ydgy0jv4.js} +4 -4
  277. package/dist/chunks/{integration-a79tw4th.js → file-retention-yec3cmat.js} +5 -5
  278. package/dist/chunks/{integration-mkvne50z.js → file-retention-yg47fsda.js} +10 -10
  279. package/dist/chunks/{integration-m3v0axb2.js → file-retention-yr5t88vm.js} +5 -5
  280. package/dist/chunks/{integration-g3nv7gdt.js → file-retention-yrc0g15d.js} +3 -3
  281. package/dist/chunks/{integration-yrhqyw5v.js → file-retention-yrhqyw5v.js} +1 -1
  282. package/dist/chunks/{integration-7zdz69fq.js → file-retention-yte8k0cp.js} +18 -18
  283. package/dist/chunks/{integration-7evwkt5a.js → file-retention-yx0fmswe.js} +7 -7
  284. package/dist/chunks/{integration-yyb7tjpc.js → file-retention-yyb7tjpc.js} +2 -2
  285. package/dist/chunks/{integration-z0bkrqjs.js → file-retention-z0bkrqjs.js} +1 -1
  286. package/dist/chunks/{integration-ash82f75.js → file-retention-z5jasrp0.js} +13 -13
  287. package/dist/chunks/{integration-rpg9c19m.js → file-retention-zcrspsvn.js} +4 -4
  288. package/dist/chunks/{integration-fjnt6npx.js → file-retention-zd4enfcj.js} +18 -18
  289. package/dist/chunks/{integration-kxw6n92b.js → file-retention-zgw5b4rz.js} +13 -13
  290. package/dist/chunks/{integration-zr2ceqn5.js → file-retention-zr2ceqn5.js} +1 -1
  291. package/dist/chunks/{integration-zxq2ej10.js → file-retention-zxq2ej10.js} +1 -1
  292. package/dist/chunks/{integration-99ws31qd.js → file-retention-zzp9hs8b.js} +33 -33
  293. package/dist/codemode/catalog.js +1 -1
  294. package/dist/codemode/instructions.js +7 -7
  295. package/dist/codemode/tool.js +3 -3
  296. package/dist/codemode/web.js +1 -1
  297. package/dist/command.js +85 -85
  298. package/dist/config/discovery.js +84 -84
  299. package/dist/config/markdown.js +1 -1
  300. package/dist/config/normalize.js +106 -106
  301. package/dist/config/plugin/agent.js +125 -125
  302. package/dist/config/plugin/command.js +215 -215
  303. package/dist/config/plugin/compaction.js +161 -161
  304. package/dist/config/plugin/compatibility.js +141 -141
  305. package/dist/config/plugin/entry-observer.js +1 -1
  306. package/dist/config/plugin/formatter.js +124 -124
  307. package/dist/config/plugin/image.js +123 -123
  308. package/dist/config/plugin/instruction.js +90 -90
  309. package/dist/config/plugin/location-watcher.js +123 -123
  310. package/dist/config/plugin/mcp.js +132 -132
  311. package/dist/config/plugin/policy.js +124 -124
  312. package/dist/config/plugin/provider.js +123 -123
  313. package/dist/config/plugin/reference.js +125 -125
  314. package/dist/config/plugin/shell.js +123 -123
  315. package/dist/config/plugin/skill-file.js +102 -102
  316. package/dist/config/plugin/skill.js +144 -144
  317. package/dist/config/plugin/snapshot.js +123 -123
  318. package/dist/config/plugin/source.js +126 -126
  319. package/dist/config/plugin/tool-output.js +125 -125
  320. package/dist/config/plugin/websearch.js +122 -122
  321. package/dist/config/plugin/worktree.js +125 -125
  322. package/dist/config/variable.js +3 -3
  323. package/dist/config/watch.js +1 -1
  324. package/dist/config.js +128 -128
  325. package/dist/credential/sql.js +2 -2
  326. package/dist/credential.js +77 -77
  327. package/dist/database/database.js +66 -66
  328. package/dist/database/drizzle/effect-sqlite/driver.js +12 -12
  329. package/dist/database/drizzle/effect-sqlite/index.js +12 -12
  330. package/dist/database/drizzle/effect-sqlite/session.js +11 -11
  331. package/dist/database/drizzle/index.js +13 -13
  332. package/dist/database/drizzle/internal/drizzle-utils.js +1 -1
  333. package/dist/database/drizzle/sqlite-core/effect/count.js +1 -1
  334. package/dist/database/drizzle/sqlite-core/effect/db.js +9 -9
  335. package/dist/database/drizzle/sqlite-core/effect/delete.js +2 -2
  336. package/dist/database/drizzle/sqlite-core/effect/index.js +10 -10
  337. package/dist/database/drizzle/sqlite-core/effect/insert.js +2 -2
  338. package/dist/database/drizzle/sqlite-core/effect/query.js +1 -1
  339. package/dist/database/drizzle/sqlite-core/effect/raw.js +1 -1
  340. package/dist/database/drizzle/sqlite-core/effect/select.js +2 -2
  341. package/dist/database/drizzle/sqlite-core/effect/session.js +10 -10
  342. package/dist/database/drizzle/sqlite-core/effect/update.js +2 -2
  343. package/dist/database/drizzle.js +14 -14
  344. package/dist/database/migration/20260127222353_familiar_lady_ursula.js +1 -1
  345. package/dist/database/migration/20260211171708_add_project_commands.js +1 -1
  346. package/dist/database/migration/20260213144116_wakeful_the_professor.js +1 -1
  347. package/dist/database/migration/20260225215848_workspace.js +1 -1
  348. package/dist/database/migration/20260227213759_add_session_workspace_id.js +1 -1
  349. package/dist/database/migration/20260228203230_blue_harpoon.js +1 -1
  350. package/dist/database/migration/20260303231226_add_workspace_fields.js +1 -1
  351. package/dist/database/migration/20260309230000_move_org_to_state.js +1 -1
  352. package/dist/database/migration/20260312043431_session_message_cursor.js +1 -1
  353. package/dist/database/migration/20260323234822_events.js +1 -1
  354. package/dist/database/migration/20260410174513_workspace-name.js +1 -1
  355. package/dist/database/migration/20260413175956_chief_energizer.js +1 -1
  356. package/dist/database/migration/20260423070820_add_icon_url_override.js +1 -1
  357. package/dist/database/migration/20260427172553_slow_nightmare.js +1 -1
  358. package/dist/database/migration/20260428004200_add_session_path.js +1 -1
  359. package/dist/database/migration/20260501142318_next_venus.js +1 -1
  360. package/dist/database/migration/20260504145000_add_sync_owner.js +1 -1
  361. package/dist/database/migration/20260507164347_add_workspace_time.js +1 -1
  362. package/dist/database/migration/20260510033149_session_usage.js +1 -1
  363. package/dist/database/migration/20260511000411_data_migration_state.js +1 -1
  364. package/dist/database/migration/20260511173437_session-metadata.js +1 -1
  365. package/dist/database/migration/20260601010001_normalize_storage_paths.js +1 -1
  366. package/dist/database/migration/20260601202201_amazing_prowler.js +1 -1
  367. package/dist/database/migration/20260602002951_lowly_union_jack.js +1 -1
  368. package/dist/database/migration/20260602182828_add_project_directories.js +1 -1
  369. package/dist/database/migration/20260603001617_session_message_projection_indexes.js +1 -1
  370. package/dist/database/migration/20260603040000_session_message_projection_order.js +1 -1
  371. package/dist/database/migration/20260603141458_session_input_inbox.js +1 -1
  372. package/dist/database/migration/20260603160727_jittery_ezekiel_stane.js +1 -1
  373. package/dist/database/migration/20260604172448_event_sourced_session_input.js +1 -1
  374. package/dist/database/migration/20260605003541_add_session_context_snapshot.js +1 -1
  375. package/dist/database/migration/20260605042240_add_context_epoch_agent.js +1 -1
  376. package/dist/database/migration/20260611035744_credential.js +1 -1
  377. package/dist/database/migration/20260611192811_lush_chimera.js +1 -1
  378. package/dist/database/migration/20260612174303_project_dir_strategy.js +1 -1
  379. package/dist/database/migration/20260622142730_simplify_session_context_epoch.js +1 -1
  380. package/dist/database/migration/20260622170816_reset_v2_session_state.js +1 -1
  381. package/dist/database/migration/20260622202450_simplify_session_input.js +1 -1
  382. package/dist/database/migration/20260804233008_loose_psylocke.js +1 -1
  383. package/dist/database/migration/20260805200742_import_legacy_credentials.js +1 -1
  384. package/dist/database/migration/20260808023530_workspace_domain.js +1 -1
  385. package/dist/database/migration/20260811161259_execution_claim_attempts.js +1 -1
  386. package/dist/database/migration/20260812181746_session_inbox.js +1 -1
  387. package/dist/database/migration/20260812213948_worktree.js +1 -1
  388. package/dist/database/migration/20260819222447_session_viewed_state.js +1 -1
  389. package/dist/database/migration/20260823191254_nullable_workspace_binding.js +1 -1
  390. package/dist/database/migration/20260910120000_clear_v1_session_permission.js +1 -1
  391. package/dist/database/migration/20260923013825_project_time_active.js +1 -1
  392. package/dist/database/migration.gen.js +49 -49
  393. package/dist/database/migration.js +51 -51
  394. package/dist/database/path.js +2 -2
  395. package/dist/database/schema.gen.js +1 -1
  396. package/dist/database/schema.sql.js +1 -1
  397. package/dist/database/sqlite.bun.js +1 -1
  398. package/dist/database/sqlite.js +1 -1
  399. package/dist/database/sqlite.node.js +1 -1
  400. package/dist/database/sqlite.workerd.js +1 -1
  401. package/dist/database/v1-migration.bun.js +76 -76
  402. package/dist/database/v1-migration.js +1 -1
  403. package/dist/effect/app-node-builder.js +371 -371
  404. package/dist/effect/app-node-platform.js +2 -2
  405. package/dist/effect/keyed-mutex.js +1 -1
  406. package/dist/effect/websocket-constructor.js +1 -1
  407. package/dist/environment/driver.js +1 -1
  408. package/dist/environment/environment.js +93 -93
  409. package/dist/environment/exec-defaults.js +2 -2
  410. package/dist/environment/files.js +1 -1
  411. package/dist/environment/index.js +95 -95
  412. package/dist/environment/local.js +2 -2
  413. package/dist/environment/memory.js +2 -2
  414. package/dist/environment/unavailable.js +1 -1
  415. package/dist/event/sql.js +1 -1
  416. package/dist/event-logger.js +70 -70
  417. package/dist/file-access.js +104 -104
  418. package/dist/file-mutation.js +94 -94
  419. package/dist/file-retention.js +1 -1
  420. package/dist/filesystem/fff.bun.js +2 -2
  421. package/dist/filesystem/fff.js +1 -1
  422. package/dist/filesystem/fff.node.js +2 -2
  423. package/dist/filesystem/fff.workerd.js +2 -2
  424. package/dist/filesystem/ignore.js +1 -1
  425. package/dist/filesystem/location-watcher-policy.js +6 -6
  426. package/dist/filesystem/location-watcher.js +226 -226
  427. package/dist/filesystem/protected.js +3 -3
  428. package/dist/filesystem/search.js +103 -103
  429. package/dist/filesystem/watcher-binding.js +3 -3
  430. package/dist/filesystem/watcher.js +15 -15
  431. package/dist/filesystem.js +108 -108
  432. package/dist/form.js +84 -84
  433. package/dist/formatter/builtins.js +4 -4
  434. package/dist/formatter.js +89 -89
  435. package/dist/generate.js +101 -101
  436. package/dist/git.js +6 -6
  437. package/dist/github-copilot/chat/convert-to-openai-compatible-chat-messages.js +1 -1
  438. package/dist/github-copilot/chat/get-response-metadata.js +1 -1
  439. package/dist/github-copilot/chat/map-openai-compatible-finish-reason.js +1 -1
  440. package/dist/github-copilot/chat/openai-compatible-chat-language-model.js +7 -7
  441. package/dist/github-copilot/chat/openai-compatible-chat-options.js +1 -1
  442. package/dist/github-copilot/chat/openai-compatible-prepare-tools.js +1 -1
  443. package/dist/github-copilot/copilot-provider.js +17 -17
  444. package/dist/github-copilot/models.js +99 -99
  445. package/dist/github-copilot/openai-compatible-error.js +1 -1
  446. package/dist/github-copilot/responses/convert-to-openai-responses-input.js +1 -1
  447. package/dist/github-copilot/responses/map-openai-responses-finish-reason.js +1 -1
  448. package/dist/github-copilot/responses/openai-error.js +1 -1
  449. package/dist/github-copilot/responses/openai-responses-language-model.js +10 -10
  450. package/dist/github-copilot/responses/openai-responses-prepare-tools.js +6 -6
  451. package/dist/github-copilot/responses/tool/code-interpreter.js +1 -1
  452. package/dist/github-copilot/responses/tool/file-search.js +1 -1
  453. package/dist/github-copilot/responses/tool/image-generation.js +1 -1
  454. package/dist/github-copilot/responses/tool/web-search-preview.js +1 -1
  455. package/dist/github-copilot/responses/tool/web-search.js +1 -1
  456. package/dist/id/id.js +1 -1
  457. package/dist/image/photon.js +2 -2
  458. package/dist/image.js +6 -6
  459. package/dist/instance/service.js +5 -5
  460. package/dist/instance.js +362 -362
  461. package/dist/instruction-discovery.js +85 -85
  462. package/dist/instructions/builtins.js +87 -87
  463. package/dist/instructions/index.js +3 -3
  464. package/dist/integration/connection.js +3 -1
  465. package/dist/integration.js +87 -86
  466. package/dist/job.js +75 -75
  467. package/dist/kv/sql.js +2 -2
  468. package/dist/kv.js +73 -73
  469. package/dist/location-activity.js +132 -132
  470. package/dist/location-lifecycle.js +107 -107
  471. package/dist/location-service-map.js +86 -86
  472. package/dist/location-services.js +359 -359
  473. package/dist/location.js +81 -81
  474. package/dist/managed-policy.js +5 -5
  475. package/dist/mcp/client.js +91 -91
  476. package/dist/mcp/index.js +109 -108
  477. package/dist/mcp/instructions.js +125 -124
  478. package/dist/mcp/oauth.js +78 -78
  479. package/dist/mcp/stdio.js +90 -90
  480. package/dist/mime.js +1 -1
  481. package/dist/modal/models.js +99 -99
  482. package/dist/model-resolver.js +98 -98
  483. package/dist/model.js +100 -100
  484. package/dist/models-dev.js +107 -107
  485. package/dist/oauth/page.js +1 -1
  486. package/dist/permission/saved.js +82 -82
  487. package/dist/permission/sql.js +5 -5
  488. package/dist/permission.js +113 -113
  489. package/dist/persistent-pty/binary.bun.js +1 -1
  490. package/dist/persistent-pty/daemon.js +1 -1
  491. package/dist/persistent-pty/index.js +78 -78
  492. package/dist/persistent-pty/pty-binding.js +1 -1
  493. package/dist/persistent-pty.js +75 -75
  494. package/dist/plugin/agent.js +104 -104
  495. package/dist/plugin/command.js +102 -101
  496. package/dist/plugin/hooks.js +5 -5
  497. package/dist/plugin/host.js +219 -219
  498. package/dist/plugin/identity.js +3 -3
  499. package/dist/plugin/instance.js +5 -5
  500. package/dist/plugin/internal.js +334 -334
  501. package/dist/plugin/mcp-codemode-defaults.js +3 -3
  502. package/dist/plugin/models-dev.js +96 -96
  503. package/dist/plugin/module.js +5 -5
  504. package/dist/plugin/optimize.js +4 -4
  505. package/dist/plugin/plan.js +102 -102
  506. package/dist/plugin/promise.js +1 -1
  507. package/dist/plugin/provider/amazon-bedrock.js +90 -90
  508. package/dist/plugin/provider/azure.js +122 -122
  509. package/dist/plugin/provider/cerebras.js +1 -1
  510. package/dist/plugin/provider/cloudflare-ai-gateway.js +120 -120
  511. package/dist/plugin/provider/cloudflare-workers-ai.js +121 -121
  512. package/dist/plugin/provider/cohere.js +2 -2
  513. package/dist/plugin/provider/configured.js +119 -119
  514. package/dist/plugin/provider/digitalocean.js +93 -93
  515. package/dist/plugin/provider/dynamic.js +2 -2
  516. package/dist/plugin/provider/factory.js +1 -1
  517. package/dist/plugin/provider/gateway.js +2 -2
  518. package/dist/plugin/provider/github-copilot.js +95 -95
  519. package/dist/plugin/provider/gitlab.js +93 -93
  520. package/dist/plugin/provider/google-vertex.js +90 -90
  521. package/dist/plugin/provider/kilo.js +1 -1
  522. package/dist/plugin/provider/llmgateway.js +78 -77
  523. package/dist/plugin/provider/lmstudio.js +122 -122
  524. package/dist/plugin/provider/modal.js +92 -92
  525. package/dist/plugin/provider/nvidia.js +1 -1
  526. package/dist/plugin/provider/ollama.js +122 -122
  527. package/dist/plugin/provider/openai.js +95 -95
  528. package/dist/plugin/provider/opencode.js +95 -95
  529. package/dist/plugin/provider/openrouter.js +91 -91
  530. package/dist/plugin/provider/perplexity.js +2 -2
  531. package/dist/plugin/provider/poe.js +79 -78
  532. package/dist/plugin/provider/prompt-cache-key.js +90 -90
  533. package/dist/plugin/provider/sap-ai-core.js +91 -91
  534. package/dist/plugin/provider/sdk-factory.js +1 -1
  535. package/dist/plugin/provider/snowflake-cortex.js +122 -122
  536. package/dist/plugin/provider/venice.js +2 -2
  537. package/dist/plugin/provider/vercel.js +90 -90
  538. package/dist/plugin/provider/vllm.js +122 -122
  539. package/dist/plugin/provider/xai.js +91 -91
  540. package/dist/plugin/provider/zenmux.js +1 -1
  541. package/dist/plugin/provider.js +162 -162
  542. package/dist/plugin/sdk.js +76 -76
  543. package/dist/plugin/service.js +3 -3
  544. package/dist/plugin/skill.js +141 -141
  545. package/dist/plugin/source-directory.js +1 -1
  546. package/dist/plugin/supervisor.js +349 -349
  547. package/dist/plugin/tool-input-repair.js +4 -4
  548. package/dist/plugin/update.js +6 -6
  549. package/dist/plugin/vcs/git.js +86 -86
  550. package/dist/plugin/vcs/hg.js +86 -86
  551. package/dist/plugin/verbosity.js +93 -93
  552. package/dist/plugin/warming.js +121 -121
  553. package/dist/plugin/websearch/exa.js +7 -7
  554. package/dist/plugin/websearch/firecrawl.js +8 -8
  555. package/dist/plugin/websearch/index.js +9 -9
  556. package/dist/plugin/websearch/mcp.js +4 -4
  557. package/dist/plugin/websearch/parallel.js +8 -8
  558. package/dist/plugin/websearch/tavily.js +4 -4
  559. package/dist/plugin/websearch/tinyfish.js +8 -8
  560. package/dist/plugin.js +224 -224
  561. package/dist/project/schema.js +2 -2
  562. package/dist/project/sql.js +4 -4
  563. package/dist/project.js +80 -80
  564. package/dist/provider.js +99 -99
  565. package/dist/pty/protocol.js +1 -1
  566. package/dist/pty/ticket.js +1 -1
  567. package/dist/pty.js +99 -99
  568. package/dist/reference/instructions.js +89 -89
  569. package/dist/reference.js +91 -91
  570. package/dist/repository-cache.js +81 -81
  571. package/dist/repository.js +1 -1
  572. package/dist/ripgrep/binary.js +2 -2
  573. package/dist/ripgrep.js +95 -95
  574. package/dist/rpc.js +86 -86
  575. package/dist/schema.js +1 -1
  576. package/dist/session/affinity.js +1 -1
  577. package/dist/session/command.js +74 -74
  578. package/dist/session/compaction.js +135 -135
  579. package/dist/session/context.js +151 -151
  580. package/dist/session/diff.js +88 -88
  581. package/dist/session/environment.js +5 -5
  582. package/dist/session/error.js +7 -7
  583. package/dist/session/event.js +1 -1
  584. package/dist/session/execution/restart.js +221 -221
  585. package/dist/session/execution.js +126 -126
  586. package/dist/session/generate.js +152 -152
  587. package/dist/session/history.js +15 -15
  588. package/dist/session/inbox.js +90 -90
  589. package/dist/session/info.js +3 -3
  590. package/dist/session/instruction-entry.js +77 -77
  591. package/dist/session/instruction-state.js +8 -8
  592. package/dist/session/instructions.js +97 -97
  593. package/dist/session/message-updater.js +2 -2
  594. package/dist/session/message.js +1 -1
  595. package/dist/session/model-request.js +120 -120
  596. package/dist/session/model-transport.js +9 -9
  597. package/dist/session/move.js +130 -130
  598. package/dist/session/projector.js +86 -86
  599. package/dist/session/prompt.js +105 -105
  600. package/dist/session/provider-context.js +3 -3
  601. package/dist/session/revert.js +90 -90
  602. package/dist/session/run-coordinator.js +1 -1
  603. package/dist/session/runner/index.js +3 -3
  604. package/dist/session/runner/llm.js +232 -232
  605. package/dist/session/runner/max-steps.js +1 -1
  606. package/dist/session/runner/model.js +98 -98
  607. package/dist/session/runner/publish-llm-event.js +3 -3
  608. package/dist/session/runner/retry.js +4 -4
  609. package/dist/session/runner/step.js +126 -126
  610. package/dist/session/runner/to-llm-message.js +2 -2
  611. package/dist/session/schema.js +5 -5
  612. package/dist/session/session.js +170 -170
  613. package/dist/session/shell.js +138 -138
  614. package/dist/session/skill.js +103 -103
  615. package/dist/session/sql.js +5 -5
  616. package/dist/session/stats.js +73 -73
  617. package/dist/session/store.js +85 -85
  618. package/dist/session/subagent-completion.js +1 -1
  619. package/dist/session/subagent-job.js +211 -211
  620. package/dist/session/system-prompt.js +5 -5
  621. package/dist/session/title.js +157 -157
  622. package/dist/session/to-session-error.js +111 -111
  623. package/dist/session/transfer.js +215 -215
  624. package/dist/session/usage.js +1 -1
  625. package/dist/session.js +219 -219
  626. package/dist/shell/parse.js +6 -6
  627. package/dist/shell/result.js +1 -1
  628. package/dist/shell/scan.js +1 -1
  629. package/dist/shell/select.js +13 -13
  630. package/dist/shell.js +140 -140
  631. package/dist/skill/discovery.js +6 -6
  632. package/dist/skill/instructions.js +107 -107
  633. package/dist/skill.js +110 -110
  634. package/dist/snapshot.js +91 -91
  635. package/dist/state.js +1 -1
  636. package/dist/tool/html-markdown.js +1 -1
  637. package/dist/tool/http-body.js +1 -1
  638. package/dist/tool/mcp.js +126 -125
  639. package/dist/tool/plugin/edit.js +120 -120
  640. package/dist/tool/plugin/file-diff.js +1 -1
  641. package/dist/tool/plugin/glob.js +122 -122
  642. package/dist/tool/plugin/grep.js +124 -124
  643. package/dist/tool/plugin/mcp-resource.js +117 -116
  644. package/dist/tool/plugin/opencode.js +3 -3
  645. package/dist/tool/plugin/patch.js +122 -122
  646. package/dist/tool/plugin/question.js +101 -101
  647. package/dist/tool/plugin/read.js +125 -125
  648. package/dist/tool/plugin/shell.js +216 -216
  649. package/dist/tool/plugin/skill.js +105 -105
  650. package/dist/tool/plugin/subagent.js +218 -218
  651. package/dist/tool/plugin/webfetch.js +108 -108
  652. package/dist/tool/plugin/websearch.js +110 -110
  653. package/dist/tool/plugin/write.js +122 -122
  654. package/dist/tool/read-filesystem.js +100 -100
  655. package/dist/tool/runtime.js +1 -1
  656. package/dist/tool-output.js +8 -8
  657. package/dist/tool.js +16 -16
  658. package/dist/types/integration/connection.d.ts +42 -0
  659. package/dist/types/integration.d.ts +24 -0
  660. package/dist/types/plugin/provider/opencode.d.ts +1 -1
  661. package/dist/util/error-summary.js +1 -1
  662. package/dist/util/error.js +1 -1
  663. package/dist/util/git-executable.js +2 -2
  664. package/dist/util/iife.js +1 -1
  665. package/dist/util/lazy.js +1 -1
  666. package/dist/util/slug.js +1 -1
  667. package/dist/util/token.js +1 -1
  668. package/dist/util/which.js +1 -1
  669. package/dist/util/wildcard.js +1 -1
  670. package/dist/v1/config/agent.js +7 -7
  671. package/dist/v1/config/attachment.js +4 -4
  672. package/dist/v1/config/command.js +5 -5
  673. package/dist/v1/config/config.js +16 -16
  674. package/dist/v1/config/error.js +4 -4
  675. package/dist/v1/config/formatter.js +7 -7
  676. package/dist/v1/config/layout.js +1 -1
  677. package/dist/v1/config/lsp.js +3 -3
  678. package/dist/v1/config/mcp.js +4 -4
  679. package/dist/v1/config/migrate.js +92 -92
  680. package/dist/v1/config/permission.js +7 -7
  681. package/dist/v1/config/plugin.js +3 -3
  682. package/dist/v1/config/provider-options.js +1 -1
  683. package/dist/v1/config/provider.js +4 -4
  684. package/dist/v1/config/server.js +2 -2
  685. package/dist/v1/config/skills.js +3 -3
  686. package/dist/v1/permission.js +1 -1
  687. package/dist/variant.js +93 -93
  688. package/dist/vcs/patch.js +1 -1
  689. package/dist/vcs.js +89 -89
  690. package/dist/websearch.js +82 -82
  691. package/dist/wellknown/plugin.js +76 -76
  692. package/dist/wellknown.js +81 -81
  693. package/dist/workspace/driver.js +3 -3
  694. package/dist/workspace/sql.js +1 -1
  695. package/dist/workspace.js +78 -78
  696. package/dist/worktree/directory.js +2 -2
  697. package/dist/worktree/git.js +8 -8
  698. package/dist/worktree/sql.js +5 -5
  699. package/dist/worktree/strategies.js +89 -89
  700. package/dist/worktree.js +96 -96
  701. package/package.json +8 -8
  702. package/dist/chunks/integration-1x11rq2a.js +0 -18
  703. package/dist/chunks/integration-78b6byxs.js +0 -252
  704. package/dist/chunks/integration-a9zdxssk.js +0 -26
  705. package/dist/chunks/integration-efmr7s8w.js +0 -507
  706. /package/dist/chunks/{integration-0qkdqm5v.js → file-retention-0qkdqm5v.js} +0 -0
  707. /package/dist/chunks/{integration-0zkw76rk.js → file-retention-0zkw76rk.js} +0 -0
  708. /package/dist/chunks/{integration-17cy0kzp.js → file-retention-17cy0kzp.js} +0 -0
  709. /package/dist/chunks/{integration-1cnp2v09.js → file-retention-1cnp2v09.js} +0 -0
  710. /package/dist/chunks/{integration-1kg9ymc8.js → file-retention-1kg9ymc8.js} +0 -0
  711. /package/dist/chunks/{integration-24dcb14g.js → file-retention-24dcb14g.js} +0 -0
  712. /package/dist/chunks/{integration-2710q6r3.js → file-retention-2710q6r3.js} +0 -0
  713. /package/dist/chunks/{integration-2axfhc9x.js → file-retention-2axfhc9x.js} +0 -0
  714. /package/dist/chunks/{integration-2c3vjs8z.js → file-retention-2c3vjs8z.js} +0 -0
  715. /package/dist/chunks/{integration-34c7v6d4.js → file-retention-34c7v6d4.js} +0 -0
  716. /package/dist/chunks/{integration-359p4xyc.js → file-retention-359p4xyc.js} +0 -0
  717. /package/dist/chunks/{integration-3asan66x.js → file-retention-3asan66x.js} +0 -0
  718. /package/dist/chunks/{integration-3v8g72cx.js → file-retention-3v8g72cx.js} +0 -0
  719. /package/dist/chunks/{integration-3w5fmr99.js → file-retention-3w5fmr99.js} +0 -0
  720. /package/dist/chunks/{integration-3wcehsnq.js → file-retention-3wcehsnq.js} +0 -0
  721. /package/dist/chunks/{integration-43n2bw4t.js → file-retention-43n2bw4t.js} +0 -0
  722. /package/dist/chunks/{integration-4knz6hnm.js → file-retention-4knz6hnm.js} +0 -0
  723. /package/dist/chunks/{integration-4vcrnpx2.js → file-retention-4vcrnpx2.js} +0 -0
  724. /package/dist/chunks/{integration-4y7fprxs.js → file-retention-4y7fprxs.js} +0 -0
  725. /package/dist/chunks/{integration-53557ph1.js → file-retention-53557ph1.js} +0 -0
  726. /package/dist/chunks/{integration-550bvhaj.js → file-retention-550bvhaj.js} +0 -0
  727. /package/dist/chunks/{integration-6prwharc.js → file-retention-6prwharc.js} +0 -0
  728. /package/dist/chunks/{integration-7akdwqpd.js → file-retention-7akdwqpd.js} +0 -0
  729. /package/dist/chunks/{integration-7m9af43g.js → file-retention-7m9af43g.js} +0 -0
  730. /package/dist/chunks/{integration-822emrt2.js → file-retention-822emrt2.js} +0 -0
  731. /package/dist/chunks/{integration-88xbtdfr.js → file-retention-88xbtdfr.js} +0 -0
  732. /package/dist/chunks/{integration-8n3pysct.js → file-retention-8n3pysct.js} +0 -0
  733. /package/dist/chunks/{integration-8wj87zfr.js → file-retention-8wj87zfr.js} +0 -0
  734. /package/dist/chunks/{integration-922hggd3.js → file-retention-922hggd3.js} +0 -0
  735. /package/dist/chunks/{integration-9a4afbnw.js → file-retention-9a4afbnw.js} +0 -0
  736. /package/dist/chunks/{integration-9rqn6x4v.js → file-retention-9rqn6x4v.js} +0 -0
  737. /package/dist/chunks/{integration-a6k6eb26.js → file-retention-a6k6eb26.js} +0 -0
  738. /package/dist/chunks/{integration-af5trqkr.js → file-retention-af5trqkr.js} +0 -0
  739. /package/dist/chunks/{integration-afrmfg78.js → file-retention-afrmfg78.js} +0 -0
  740. /package/dist/chunks/{integration-aqzs7mqg.js → file-retention-aqzs7mqg.js} +0 -0
  741. /package/dist/chunks/{integration-atq7p7m5.js → file-retention-atq7p7m5.js} +0 -0
  742. /package/dist/chunks/{integration-bkyjaxrp.js → file-retention-bkyjaxrp.js} +0 -0
  743. /package/dist/chunks/{integration-bmr6ed5q.js → file-retention-bmr6ed5q.js} +0 -0
  744. /package/dist/chunks/{integration-cf4snx6d.js → file-retention-cf4snx6d.js} +0 -0
  745. /package/dist/chunks/{integration-cvy3z8tj.js → file-retention-cvy3z8tj.js} +0 -0
  746. /package/dist/chunks/{integration-d9fn303g.js → file-retention-d9fn303g.js} +0 -0
  747. /package/dist/chunks/{integration-d9jj8t3e.js → file-retention-d9jj8t3e.js} +0 -0
  748. /package/dist/chunks/{integration-dajrwvna.js → file-retention-dajrwvna.js} +0 -0
  749. /package/dist/chunks/{integration-dap0rakb.js → file-retention-dap0rakb.js} +0 -0
  750. /package/dist/chunks/{integration-df08tz66.js → file-retention-df08tz66.js} +0 -0
  751. /package/dist/chunks/{integration-dy18nga0.js → file-retention-dy18nga0.js} +0 -0
  752. /package/dist/chunks/{integration-e5kj55wp.js → file-retention-e5kj55wp.js} +0 -0
  753. /package/dist/chunks/{integration-e73j6tqm.js → file-retention-e73j6tqm.js} +0 -0
  754. /package/dist/chunks/{integration-ec1grn59.js → file-retention-ec1grn59.js} +0 -0
  755. /package/dist/chunks/{integration-eh3zwz77.js → file-retention-eh3zwz77.js} +0 -0
  756. /package/dist/chunks/{integration-emrn6kk6.js → file-retention-emrn6kk6.js} +0 -0
  757. /package/dist/chunks/{integration-f0mxakyp.js → file-retention-f0mxakyp.js} +0 -0
  758. /package/dist/chunks/{integration-f6n9ztr4.js → file-retention-f6n9ztr4.js} +0 -0
  759. /package/dist/chunks/{integration-faypxj3z.js → file-retention-faypxj3z.js} +0 -0
  760. /package/dist/chunks/{integration-fd410y7t.js → file-retention-fd410y7t.js} +0 -0
  761. /package/dist/chunks/{integration-fxgpk5d8.js → file-retention-fxgpk5d8.js} +0 -0
  762. /package/dist/chunks/{integration-g4wezp1m.js → file-retention-g4wezp1m.js} +0 -0
  763. /package/dist/chunks/{integration-g86h250q.js → file-retention-g86h250q.js} +0 -0
  764. /package/dist/chunks/{integration-gebd4c9n.js → file-retention-gebd4c9n.js} +0 -0
  765. /package/dist/chunks/{integration-gftt206x.js → file-retention-gftt206x.js} +0 -0
  766. /package/dist/chunks/{integration-hjbc5kem.js → file-retention-hjbc5kem.js} +0 -0
  767. /package/dist/chunks/{integration-hk9envan.js → file-retention-hk9envan.js} +0 -0
  768. /package/dist/chunks/{integration-j2ntwpah.js → file-retention-j2ntwpah.js} +0 -0
  769. /package/dist/chunks/{integration-j5zkgpj8.js → file-retention-j5zkgpj8.js} +0 -0
  770. /package/dist/chunks/{integration-jjkms2e6.js → file-retention-jjkms2e6.js} +0 -0
  771. /package/dist/chunks/{integration-jr7sbwjy.js → file-retention-jr7sbwjy.js} +0 -0
  772. /package/dist/chunks/{integration-jwfs4k6c.js → file-retention-jwfs4k6c.js} +0 -0
  773. /package/dist/chunks/{integration-jzg6c2d5.js → file-retention-jzg6c2d5.js} +0 -0
  774. /package/dist/chunks/{integration-mp448xyj.js → file-retention-mp448xyj.js} +0 -0
  775. /package/dist/chunks/{integration-msx8hqn2.js → file-retention-msx8hqn2.js} +0 -0
  776. /package/dist/chunks/{integration-n05xt0ee.js → file-retention-n05xt0ee.js} +0 -0
  777. /package/dist/chunks/{integration-n3j8tn72.js → file-retention-n3j8tn72.js} +0 -0
  778. /package/dist/chunks/{integration-njntx4h6.js → file-retention-njntx4h6.js} +0 -0
  779. /package/dist/chunks/{integration-q3sfg36h.js → file-retention-q3sfg36h.js} +0 -0
  780. /package/dist/chunks/{integration-q74kybfr.js → file-retention-q74kybfr.js} +0 -0
  781. /package/dist/chunks/{integration-qaymkmh1.js → file-retention-qaymkmh1.js} +0 -0
  782. /package/dist/chunks/{integration-qb87gjwd.js → file-retention-qb87gjwd.js} +0 -0
  783. /package/dist/chunks/{integration-qfa1cgps.js → file-retention-qfa1cgps.js} +0 -0
  784. /package/dist/chunks/{integration-qg3g05ea.js → file-retention-qg3g05ea.js} +0 -0
  785. /package/dist/chunks/{integration-qrg20bc0.js → file-retention-qrg20bc0.js} +0 -0
  786. /package/dist/chunks/{integration-rcb2kzg1.js → file-retention-rcb2kzg1.js} +0 -0
  787. /package/dist/chunks/{integration-sdp7kfr6.js → file-retention-sdp7kfr6.js} +0 -0
  788. /package/dist/chunks/{integration-sk3qaz4a.js → file-retention-sk3qaz4a.js} +0 -0
  789. /package/dist/chunks/{integration-ssg3fenm.js → file-retention-ssg3fenm.js} +0 -0
  790. /package/dist/chunks/{integration-w803qqfp.js → file-retention-w803qqfp.js} +0 -0
  791. /package/dist/chunks/{integration-wc3fc9cn.js → file-retention-wc3fc9cn.js} +0 -0
  792. /package/dist/chunks/{integration-wer8tq1h.js → file-retention-wer8tq1h.js} +0 -0
  793. /package/dist/chunks/{integration-wtztk69x.js → file-retention-wtztk69x.js} +0 -0
  794. /package/dist/chunks/{integration-x0ckcb58.js → file-retention-x0ckcb58.js} +0 -0
  795. /package/dist/chunks/{integration-x61499pn.js → file-retention-x61499pn.js} +0 -0
  796. /package/dist/chunks/{integration-y44na4kk.js → file-retention-y44na4kk.js} +0 -0
  797. /package/dist/chunks/{integration-y8cydn3q.js → file-retention-y8cydn3q.js} +0 -0
  798. /package/dist/chunks/{integration-y8f7s663.js → file-retention-y8f7s663.js} +0 -0
  799. /package/dist/chunks/{integration-ygaqb7jw.js → file-retention-ygaqb7jw.js} +0 -0
  800. /package/dist/chunks/{integration-ym463w8f.js → file-retention-ym463w8f.js} +0 -0
  801. /package/dist/chunks/{integration-z9919s4g.js → file-retention-z9919s4g.js} +0 -0
@@ -1,36 +1,37 @@
1
1
  import {
2
2
  useragent2
3
- } from "./integration-s9taesah.js";
3
+ } from "./file-retention-gjyhvyzk.js";
4
4
  import {
5
5
  Service83
6
- } from "./integration-bxp2jpa1.js";
6
+ } from "./file-retention-60e937tk.js";
7
7
  import {
8
8
  OAuth3,
9
9
  Event19
10
- } from "./integration-a79rb00n.js";
11
- import {
12
- ID14,
13
- MethodID2
14
- } from "./integration-7b7x293f.js";
10
+ } from "./file-retention-341r3tte.js";
15
11
  import {
16
12
  key2
17
- } from "./integration-h6r3nrb9.js";
18
- import {
19
- Service48
20
- } from "./integration-dpja50vx.js";
13
+ } from "./file-retention-mpk0rfs5.js";
21
14
  import {
22
15
  ID13,
16
+ MethodID2,
17
+ AuthorizationError2
18
+ } from "./file-retention-5dg6696f.js";
19
+ import {
20
+ Service15
21
+ } from "./file-retention-fw2v9256.js";
22
+ import {
23
+ ID12,
23
24
  mergeOverlay2,
24
25
  mergeHeaders2
25
- } from "./integration-wefqzq4f.js";
26
+ } from "./file-retention-2bef5nan.js";
26
27
  import {
27
- ID10,
28
+ ID8,
28
29
  Input14,
29
30
  Response2
30
- } from "./integration-5798x35d.js";
31
+ } from "./file-retention-rjpmn9fg.js";
31
32
 
32
33
  // src/plugin/provider/opencode.ts
33
- import { Duration, Effect, Equal, Schema, Semaphore, Stream } from "effect";
34
+ import { Duration, Effect, Equal, Option, Schema, Scope, Semaphore, Stream } from "effect";
34
35
  import { define } from "@opencode/plugin/effect/plugin";
35
36
  import { FetchHttpClient, HttpClient, HttpClientRequest, HttpClientResponse } from "effect/unstable/http";
36
37
  import { ConfigPolicy } from "@opencode/schema/config/policy";
@@ -43,7 +44,7 @@ var methodID = MethodID2.make("device");
43
44
  var RemoteResponse = Schema.Struct({
44
45
  providers: Schema.Record(Schema.String, ConfigProvider.Info),
45
46
  websearch: Schema.Struct({
46
- providerID: ID10
47
+ providerID: ID8
47
48
  }).pipe(Schema.optional),
48
49
  mcp: Schema.Struct({
49
50
  servers: Schema.Record(Schema.String, Schema.Struct({ ...Mcp.RemoteConfig.fields, auth: Schema.Literal("console").pipe(Schema.optional) }))
@@ -69,9 +70,33 @@ var TokenPending = Schema.Struct({ error: Schema.String });
69
70
  var DeviceToken = Schema.Union([Token, TokenPending]);
70
71
  var User = Schema.Struct({ id: Schema.String, email: Schema.String });
71
72
  var Org = Schema.Struct({ id: Schema.String, name: Schema.String });
73
+ var SsoRequired = Schema.Struct({
74
+ _tag: Schema.Literal("SsoRequired"),
75
+ orgId: Schema.String,
76
+ connectionId: Schema.String
77
+ });
78
+ var InvalidGrant = Schema.Struct({ error: Schema.Literal("invalid_grant") });
79
+ var Unauthorized = Schema.Struct({ _tag: Schema.Literal("Unauthorized") });
80
+ var signedOutMessage = "Reconnect OpenCode Console to continue";
81
+ var ssoMessage = (organization) => `Sign in with SSO again to use ${organization ?? "your OpenCode Console organization"}`;
82
+
83
+ class SsoRequiredError extends Schema.TaggedError()("OpencodeConsole.SsoRequired", {
84
+ organization: Schema.optional(Schema.String),
85
+ url: Schema.String
86
+ }) {
87
+ get message() {
88
+ return `${ssoMessage(this.organization)}: ${this.url}`;
89
+ }
90
+ }
91
+
92
+ class SignedOutError extends Schema.TaggedError()("OpencodeConsole.SignedOut", {}) {
93
+ get message() {
94
+ return `${signedOutMessage}.`;
95
+ }
96
+ }
72
97
  function oauth(http) {
73
98
  return {
74
- integrationID: ID14.make("opencode"),
99
+ integrationID: ID13.make("opencode"),
75
100
  method: {
76
101
  id: methodID,
77
102
  type: "oauth",
@@ -106,7 +131,17 @@ function oauth(http) {
106
131
  };
107
132
  }),
108
133
  refresh: (credential) => Effect.gen(function* () {
109
- const token = yield* post(http, `${serverUrl(credential)}/auth/device/token`, { grant_type: "refresh_token", refresh_token: credential.refresh, client_id: clientID }, Token);
134
+ const response = yield* send(http, `${serverUrl(credential)}/auth/device/token`, {
135
+ grant_type: "refresh_token",
136
+ refresh_token: credential.refresh,
137
+ client_id: clientID
138
+ });
139
+ if (response.status === 400) {
140
+ const body = yield* HttpClientResponse.schemaBodyJson(InvalidGrant)(response).pipe(Effect.option);
141
+ if (Option.isSome(body))
142
+ return yield* new SignedOutError;
143
+ }
144
+ const token = yield* HttpClientResponse.filterStatusOk(response).pipe(Effect.flatMap(HttpClientResponse.schemaBodyJson(Token)));
110
145
  return {
111
146
  ...credential,
112
147
  access: token.access_token,
@@ -128,23 +163,38 @@ var OpencodePlugin2 = define({
128
163
  const bus = yield* Service83;
129
164
  const client = yield* HttpClient.HttpClient;
130
165
  const http = HttpClient.mapRequest(client, HttpClientRequest.setHeader("User-Agent", useragent2(ctx.app)));
131
- const managed = yield* Service48;
166
+ const managed = yield* Service15;
167
+ const scope = yield* Scope.Scope;
132
168
  const loading = Semaphore.makeUnsafe(1);
133
169
  let snapshot = { config: undefined, connection: undefined, organization: undefined, mcp: undefined };
170
+ let reported;
171
+ let explainers = [];
134
172
  const load = Effect.fn("OpencodePlugin.load")(function* () {
135
173
  const connection = yield* ctx.integration.connection.active("opencode");
136
- if (!connection)
174
+ if (!connection) {
175
+ reported = undefined;
137
176
  return { config: undefined, connection, organization: undefined, mcp: undefined };
177
+ }
178
+ const status = (status) => {
179
+ reported = status;
180
+ return ctx.integration.connection.status({ integrationID: "opencode", connection, status });
181
+ };
138
182
  return yield* ctx.integration.connection.resolve(connection).pipe(Effect.flatMap((credential) => {
139
183
  if (!credential)
140
184
  return Effect.succeed({ config: undefined, connection, organization: undefined, mcp: undefined });
141
185
  return fetchConfig(http, credential).pipe(Effect.map((config) => ({
142
186
  config,
143
187
  connection,
144
- organization: typeof credential.metadata?.orgName === "string" ? credential.metadata.orgName : undefined,
188
+ organization: organizationName(credential),
145
189
  mcp: config?.mcp && { servers: config.mcp.servers, headers: credentialHeaders(credential) }
146
190
  })));
147
- }), Effect.catch((cause) => Effect.logWarning("failed to load OpenCode provider config", { cause }).pipe(Effect.as(key2(connection) === key2(snapshot.connection) ? { config: snapshot.config, connection, organization: snapshot.organization, mcp: snapshot.mcp } : { config: undefined, connection, organization: undefined, mcp: undefined }))));
191
+ }), Effect.tap(() => status(undefined)), Effect.catch((cause) => Effect.gen(function* () {
192
+ const next = connectionStatus(cause);
193
+ if (next)
194
+ yield* status(next);
195
+ yield* Effect.logWarning("failed to load OpenCode provider config", { cause });
196
+ return key2(connection) === key2(snapshot.connection) ? { config: snapshot.config, connection, organization: snapshot.organization, mcp: snapshot.mcp } : { config: undefined, connection, organization: undefined, mcp: undefined };
197
+ })));
148
198
  });
149
199
  const publish = (next) => managed.set({ statements: next.config?.experimental?.policies ?? [], organization: next.organization });
150
200
  yield* ctx.integration.transform((editor) => {
@@ -162,7 +212,7 @@ var OpencodePlugin2 = define({
162
212
  providers.update(providerID, (provider) => {
163
213
  if (source && source.provider !== provider)
164
214
  Object.assign(provider, structuredClone(source.provider), { id: provider.id });
165
- provider.integrationID = ID14.make("opencode");
215
+ provider.integrationID = ID13.make("opencode");
166
216
  if (item.canonical !== undefined)
167
217
  provider.canonical = item.canonical;
168
218
  if (item.name !== undefined)
@@ -232,7 +282,7 @@ var OpencodePlugin2 = define({
232
282
  sourceConnection: snapshot.connection
233
283
  });
234
284
  }
235
- const item = providers.get(ID13.opencode);
285
+ const item = providers.get(ID12.opencode);
236
286
  if (!item)
237
287
  return;
238
288
  const hasKey = Boolean(process.env.OPENCODE_API_KEY || snapshot.connection || item.provider.settings?.apiKey);
@@ -244,7 +294,7 @@ var OpencodePlugin2 = define({
244
294
  });
245
295
  });
246
296
  yield* ctx.model.transform((models) => {
247
- const item = models.provider.get(ID13.opencode);
297
+ const item = models.provider.get(ID12.opencode);
248
298
  if (!item)
249
299
  return;
250
300
  const hasKey = Boolean(process.env.OPENCODE_API_KEY || snapshot.connection || item.provider.settings?.apiKey && item.provider.settings.apiKey !== "public");
@@ -308,23 +358,78 @@ var OpencodePlugin2 = define({
308
358
  const apply = Effect.fn("OpencodePlugin.apply")(function* (next) {
309
359
  snapshot = next;
310
360
  yield* publish(next);
361
+ yield* guard(next);
311
362
  yield* Effect.all([ctx.provider.reload(), ctx.websearch.reload(), ctx.mcp.reload()], {
312
363
  concurrency: 3,
313
364
  discard: true
314
365
  });
315
366
  });
316
367
  const refresh = () => loading.withPermit(load().pipe(Effect.andThen(apply)));
317
- yield* bus.subscribe(Event19.Switched).pipe(Stream.filter((event) => event.data.integrationID === ID14.make("opencode")), Stream.runForEach(refresh), Effect.forkScoped({ startImmediately: true }));
318
- yield* Effect.sleep(Duration.minutes(1)).pipe(Effect.andThen(loading.withPermit(load().pipe(Effect.flatMap((next) => Equal.equals(snapshot, next) ? Effect.void : apply(next))))), Effect.forever, Effect.forkScoped);
368
+ const check = () => loading.withPermit(load().pipe(Effect.flatMap((next) => Equal.equals(snapshot, next) ? Effect.void : apply(next))));
369
+ const explain = (event) => Effect.gen(function* () {
370
+ if (event.response.status !== 401 && event.response.status !== 403)
371
+ return;
372
+ yield* check();
373
+ const status = reported;
374
+ if (!status)
375
+ return;
376
+ event.response.body?.cancel();
377
+ event.response = Response.json({
378
+ error: {
379
+ type: "authentication_error",
380
+ message: status.url ? `${status.message}: ${status.url}` : `${status.message}.`
381
+ }
382
+ }, { status: event.response.status });
383
+ });
384
+ const guard = Effect.fn("OpencodePlugin.guard")(function* (next) {
385
+ yield* Effect.forEach(explainers, (registration) => registration.dispose, { discard: true });
386
+ explainers = yield* Effect.forEach(next.connection ? new Set([ID12.opencode, ...Object.keys(next.config?.providers ?? {})]) : [], (providerID) => ctx.session.hook("http.response", explain, { providerID }).pipe(Scope.provide(scope)));
387
+ });
388
+ yield* guard(snapshot);
389
+ yield* bus.subscribe(Event19.Switched).pipe(Stream.filter((event) => event.data.integrationID === ID13.make("opencode")), Stream.runForEach(refresh), Effect.forkScoped({ startImmediately: true }));
390
+ yield* Effect.sleep(Duration.minutes(1)).pipe(Effect.andThen(check()), Effect.forever, Effect.forkScoped);
319
391
  })
320
392
  });
321
393
  function fetchConfig(http, value) {
322
- return http.execute(HttpClientRequest.get(`${serverUrl(value)}/api/v2/config`).pipe(HttpClientRequest.acceptJson, HttpClientRequest.setHeaders(credentialHeaders(value)))).pipe(Effect.flatMap((response) => {
394
+ return http.execute(HttpClientRequest.get(`${serverUrl(value)}/api/v2/config`).pipe(HttpClientRequest.acceptJson, HttpClientRequest.setHeaders(credentialHeaders(value)))).pipe(Effect.flatMap((response) => Effect.gen(function* () {
323
395
  if (response.status === 404)
324
- return Effect.undefined;
325
- return HttpClientResponse.filterStatusOk(response).pipe(Effect.flatMap(HttpClientResponse.schemaBodyJson(RemoteResponse)));
396
+ return;
397
+ if (response.status === 401) {
398
+ const body = yield* HttpClientResponse.schemaBodyJson(Unauthorized)(response).pipe(Effect.option);
399
+ if (Option.isSome(body))
400
+ return yield* new SignedOutError;
401
+ }
402
+ if (response.status === 403) {
403
+ const body = yield* HttpClientResponse.schemaBodyJson(SsoRequired)(response).pipe(Effect.option);
404
+ if (Option.isSome(body))
405
+ return yield* new SsoRequiredError({
406
+ organization: organizationName(value),
407
+ url: yield* ssoUrl(serverUrl(value), body.value.connectionId)
408
+ });
409
+ }
410
+ return yield* HttpClientResponse.filterStatusOk(response).pipe(Effect.flatMap(HttpClientResponse.schemaBodyJson(RemoteResponse)));
411
+ })));
412
+ }
413
+ function ssoUrl(server, connectionID) {
414
+ return normalizeServer(server).pipe(Effect.map((base) => {
415
+ const redirectTo = `${new URL(base).pathname.replace(/\/+$/, "")}/`;
416
+ return `${base}/auth/sso/${encodeURIComponent(connectionID)}/start?redirectTo=${encodeURIComponent(redirectTo)}`;
326
417
  }));
327
418
  }
419
+ function connectionStatus(cause) {
420
+ if (cause instanceof SsoRequiredError)
421
+ return {
422
+ status: "needs_auth",
423
+ message: ssoMessage(cause.organization),
424
+ url: cause.url
425
+ };
426
+ if (cause instanceof SignedOutError || cause instanceof AuthorizationError2 && cause.cause instanceof SignedOutError)
427
+ return { status: "needs_auth", message: signedOutMessage };
428
+ return;
429
+ }
430
+ function organizationName(credential) {
431
+ return typeof credential.metadata?.orgName === "string" ? credential.metadata.orgName : undefined;
432
+ }
328
433
  function credentialHeaders(value) {
329
434
  const orgID = value.metadata?.orgID;
330
435
  return {
@@ -400,7 +505,10 @@ function get(http, url, token, schema) {
400
505
  return HttpClient.filterStatusOk(http).execute(HttpClientRequest.get(url).pipe(HttpClientRequest.acceptJson, HttpClientRequest.bearerToken(token))).pipe(Effect.flatMap(HttpClientResponse.schemaBodyJson(schema)));
401
506
  }
402
507
  function post(http, url, body, schema, statusOk = true) {
403
- return HttpClientRequest.post(url).pipe(HttpClientRequest.acceptJson, HttpClientRequest.schemaBodyJson(Schema.Record(Schema.String, Schema.Union([Schema.String, Schema.Boolean])))(body), Effect.flatMap((request) => http.execute(request)), Effect.flatMap((response) => statusOk ? HttpClientResponse.filterStatusOk(response) : Effect.succeed(response)), Effect.flatMap(HttpClientResponse.schemaBodyJson(schema)));
508
+ return send(http, url, body).pipe(Effect.flatMap((response) => statusOk ? HttpClientResponse.filterStatusOk(response) : Effect.succeed(response)), Effect.flatMap(HttpClientResponse.schemaBodyJson(schema)));
509
+ }
510
+ function send(http, url, body) {
511
+ return HttpClientRequest.post(url).pipe(HttpClientRequest.acceptJson, HttpClientRequest.schemaBodyJson(Schema.Record(Schema.String, Schema.Union([Schema.String, Schema.Boolean])))(body), Effect.flatMap((request) => http.execute(request)));
404
512
  }
405
513
 
406
514
  export { OpencodePlugin2 };
@@ -1,10 +1,10 @@
1
1
  import {
2
2
  AbsolutePath2,
3
3
  RelativePath2
4
- } from "./integration-922hggd3.js";
4
+ } from "./file-retention-922hggd3.js";
5
5
  import {
6
6
  SessionSchema2
7
- } from "./integration-8q7cq0y1.js";
7
+ } from "./file-retention-n7d88tpn.js";
8
8
 
9
9
  // src/session/info.ts
10
10
  import { DateTime, Schema } from "effect";
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  __export
3
- } from "./integration-9rqn6x4v.js";
3
+ } from "./file-retention-9rqn6x4v.js";
4
4
 
5
5
  // src/v1/config/lsp.ts
6
6
  var exports_lsp = {};
@@ -8,7 +8,7 @@ __export(exports_lsp, {
8
8
  ConfigLSPV1: () => exports_lsp,
9
9
  Disabled: () => Disabled2,
10
10
  Entry: () => Entry3,
11
- Info: () => Info9,
11
+ Info: () => Info23,
12
12
  builtinServerIds: () => builtinServerIds2,
13
13
  requiresExtensionsForCustomServers: () => requiresExtensionsForCustomServers2
14
14
  });
@@ -79,6 +79,6 @@ var requiresExtensionsForCustomServers2 = Schema.makeFilter((data) => {
79
79
  });
80
80
  return ok ? undefined : "For custom LSP servers, 'extensions' array is required.";
81
81
  });
82
- var Info9 = Schema.Union([Schema.Boolean, Schema.Record(Schema.String, Entry3)]).check(requiresExtensionsForCustomServers2);
82
+ var Info23 = Schema.Union([Schema.Boolean, Schema.Record(Schema.String, Entry3)]).check(requiresExtensionsForCustomServers2);
83
83
 
84
- export { Disabled2, Entry3, builtinServerIds2, requiresExtensionsForCustomServers2, Info9, exports_lsp };
84
+ export { Disabled2, Entry3, builtinServerIds2, requiresExtensionsForCustomServers2, Info23, exports_lsp };
@@ -1,62 +1,62 @@
1
1
  import {
2
2
  NonNegativeInt2
3
- } from "./integration-922hggd3.js";
3
+ } from "./file-retention-922hggd3.js";
4
4
  import {
5
5
  latest2,
6
- Service37
7
- } from "./integration-9erc8nq9.js";
6
+ Service66
7
+ } from "./file-retention-14rxwr6z.js";
8
8
  import {
9
9
  typeFollowing2
10
- } from "./integration-2a5m3afh.js";
10
+ } from "./file-retention-2a5m3afh.js";
11
11
  import {
12
- Service70
13
- } from "./integration-2va239gy.js";
12
+ Service78
13
+ } from "./file-retention-szekdmz8.js";
14
14
  import {
15
- Service56
16
- } from "./integration-13ahtzqa.js";
15
+ Service57
16
+ } from "./file-retention-j6wzn4gt.js";
17
17
  import {
18
- Service58
19
- } from "./integration-sht10b59.js";
18
+ Service49
19
+ } from "./file-retention-q3cwr1ch.js";
20
20
  import {
21
- Service18,
21
+ Service16,
22
22
  resolvePath2
23
- } from "./integration-m601tfh9.js";
23
+ } from "./file-retention-4a49dmp5.js";
24
24
  import {
25
25
  output2,
26
26
  notice2,
27
27
  metadata2,
28
28
  notification2
29
- } from "./integration-vzs5sf6e.js";
29
+ } from "./file-retention-vzs5sf6e.js";
30
30
  import {
31
- Service41,
31
+ Service64,
32
32
  name15
33
- } from "./integration-g26xt907.js";
33
+ } from "./file-retention-h6p0mwy3.js";
34
34
  import {
35
- NotFoundError6,
36
- Service35
37
- } from "./integration-14skzq0n.js";
35
+ NotFoundError8,
36
+ Service61
37
+ } from "./file-retention-5gerj4ra.js";
38
38
  import {
39
- Service21
40
- } from "./integration-cpyc35sh.js";
39
+ Service19
40
+ } from "./file-retention-y4spq9gz.js";
41
41
  import {
42
42
  scan2
43
- } from "./integration-hkxx6036.js";
43
+ } from "./file-retention-60amgp41.js";
44
44
  import {
45
45
  __export
46
- } from "./integration-9rqn6x4v.js";
46
+ } from "./file-retention-9rqn6x4v.js";
47
47
 
48
48
  // src/tool/plugin/shell.ts
49
49
  var exports_shell2 = {};
50
50
  __export(exports_shell2, {
51
51
  DEFAULT_TIMEOUT_MS: () => DEFAULT_TIMEOUT_MS2,
52
- Input: () => Input7,
53
- Plugin: () => Plugin43,
52
+ Input: () => Input12,
53
+ Plugin: () => Plugin49,
54
54
  ShellTool: () => exports_shell2,
55
- name: () => name7
55
+ name: () => name12
56
56
  });
57
57
  import { ToolFailure } from "@opencode/ai";
58
58
  import { Deferred, Effect, Schema, Scope } from "effect";
59
- var name7 = "shell";
59
+ var name12 = "shell";
60
60
  var DEFAULT_TIMEOUT_MS2 = 2 * 60 * 1000;
61
61
  var BACKGROUND_INSTRUCTION = "You will be notified automatically when the command finishes. The notification will include the command's output. Unless the user explicitly asks otherwise, DO NOT poll for completion, even if you need the final result to continue. Repeatedly sleeping and reading or searching the output file is polling, not useful work. You may read the current output if it lets you do useful work now, but do not repeatedly check it while waiting for the command to finish. Keep working on anything that does not depend on the result. If you have nothing else to do, end your response; you will be resumed automatically when the command finishes.";
62
62
  var OS = process.platform === "darwin" ? "macOS" : process.platform === "win32" ? "Windows" : process.platform === "linux" ? "Linux" : process.platform;
@@ -70,7 +70,7 @@ var description = (shell) => [
70
70
  "Commands accept an optional timeout, background commands have no timeout by default.",
71
71
  "Background commands return immediately, and you will be notified when they complete."
72
72
  ].join(" ");
73
- var Input7 = Schema.Struct({
73
+ var Input12 = Schema.Struct({
74
74
  command: Schema.String.annotate({ description: "Shell command string to execute" }),
75
75
  workdir: Schema.optionalKey(Schema.String).annotate({
76
76
  description: "Working directory to execute the command in. Defaults to the current working directory. When possible, avoid changing directories in the command and set the working directory here instead."
@@ -116,19 +116,19 @@ Output is streaming to: ${file}`,
116
116
  truncated: false,
117
117
  status: "running"
118
118
  });
119
- var Plugin43 = {
119
+ var Plugin49 = {
120
120
  id: "opencode.tool.shell",
121
121
  effect: Effect.fn("ShellTool.Plugin")(function* (ctx) {
122
- const sessions = yield* Service21;
123
- const jobs = yield* Service56;
122
+ const sessions = yield* Service19;
123
+ const jobs = yield* Service57;
124
124
  const scope = yield* Scope.Scope;
125
- const environment = yield* Service70;
126
- const access = yield* Service18;
127
- const shell = yield* Service35;
128
- const shellSelect = yield* Service41;
125
+ const environment = yield* Service78;
126
+ const access = yield* Service16;
127
+ const shell = yield* Service61;
128
+ const shellSelect = yield* Service64;
129
129
  const compatibleShell = shellSelect.resolve({ priority: "compat" });
130
- const permission = yield* Service58;
131
- const config = yield* Service37;
130
+ const permission = yield* Service49;
131
+ const config = yield* Service66;
132
132
  const prepare = Effect.fn("ShellTool.prepare")(function* (invocation, context) {
133
133
  const source = {
134
134
  type: "tool",
@@ -147,7 +147,7 @@ var Plugin43 = {
147
147
  yield* access.authorizeExternal([target, ...directories], context);
148
148
  if (parsed.commands.length > 0)
149
149
  yield* permission.assert({
150
- action: name7,
150
+ action: name12,
151
151
  resources: parsed.commands.map((command) => command.resource),
152
152
  save: parsed.commands.map((command) => command.save),
153
153
  sessionID: context.sessionID,
@@ -184,10 +184,10 @@ var Plugin43 = {
184
184
  yield* jobs.completeBackground(info.notificationID);
185
185
  }, Effect.forkIn(scope, { startImmediately: true }));
186
186
  yield* ctx.tool.transform((editor) => editor.add({
187
- name: name7,
187
+ name: name12,
188
188
  options: { codemode: false },
189
189
  description: description(),
190
- input: Input7,
190
+ input: Input12,
191
191
  output: Output,
192
192
  execute: (input, context) => Effect.gen(function* () {
193
193
  const timeout = input.background === true ? input.timeout ?? 0 : input.timeout ?? DEFAULT_TIMEOUT_MS2;
@@ -210,7 +210,7 @@ var Plugin43 = {
210
210
  const run = Effect.gen(function* () {
211
211
  const result = yield* shell.result(info);
212
212
  if (!result.capture)
213
- return yield* new NotFoundError6({ id: info.id });
213
+ return yield* new NotFoundError8({ id: info.id });
214
214
  const output = output2(result);
215
215
  return {
216
216
  ...output,
@@ -224,7 +224,7 @@ Command exceeded timeout of ${finalTimeout} ms. Retry with a larger timeout if t
224
224
  `)), Effect.onInterrupt(() => shell.remove(info.id).pipe(Effect.ignore)));
225
225
  const job = yield* jobs.start({
226
226
  id: info.id,
227
- type: name7,
227
+ type: name12,
228
228
  title: info.command,
229
229
  metadata: { sessionID: context.sessionID, shellID: info.id },
230
230
  recovery: {
@@ -254,7 +254,7 @@ Command exceeded timeout of ${finalTimeout} ms. Retry with a larger timeout if t
254
254
  }).pipe(Effect.map(toolResult), Effect.mapError((error) => new ToolFailure({ message: `Unable to execute command: ${input.command}`, error })))
255
255
  })).pipe(Effect.orDie);
256
256
  const hook = (event) => Effect.gen(function* () {
257
- const tool = event.tools[name7];
257
+ const tool = event.tools[name12];
258
258
  if (!tool)
259
259
  return;
260
260
  tool.description = description(name15(yield* compatibleShell));
@@ -265,4 +265,4 @@ Command exceeded timeout of ${finalTimeout} ms. Retry with a larger timeout if t
265
265
  })
266
266
  };
267
267
 
268
- export { name7, DEFAULT_TIMEOUT_MS2, Input7, Plugin43, exports_shell2 };
268
+ export { name12, DEFAULT_TIMEOUT_MS2, Input12, Plugin49, exports_shell2 };
@@ -1,21 +1,21 @@
1
1
  import {
2
2
  AbsolutePath2,
3
3
  RelativePath2
4
- } from "./integration-922hggd3.js";
4
+ } from "./file-retention-922hggd3.js";
5
5
  import {
6
6
  makeUnsafe2
7
- } from "./integration-y71avatq.js";
7
+ } from "./file-retention-y71avatq.js";
8
8
  import {
9
9
  MAX_TOTAL_PATCH_BYTES2,
10
10
  emptyPatch2,
11
11
  chunksByFile2
12
- } from "./integration-tazgh4e4.js";
12
+ } from "./file-retention-tazgh4e4.js";
13
13
  import {
14
14
  gitExecutable2
15
- } from "./integration-ef5x83kb.js";
15
+ } from "./file-retention-ef5x83kb.js";
16
16
  import {
17
17
  __export
18
- } from "./integration-9rqn6x4v.js";
18
+ } from "./file-retention-9rqn6x4v.js";
19
19
 
20
20
  // src/git.ts
21
21
  var exports_git3 = {};
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  __export
3
- } from "./integration-9rqn6x4v.js";
3
+ } from "./file-retention-9rqn6x4v.js";
4
4
 
5
5
  // src/codemode/web.ts
6
6
  var exports_web = {};
@@ -4,7 +4,7 @@ import {
4
4
  orderSelectedFields2,
5
5
  mapUpdateSet2,
6
6
  getTableLikeName2
7
- } from "./integration-emrn6kk6.js";
7
+ } from "./file-retention-emrn6kk6.js";
8
8
 
9
9
  // src/database/drizzle/sqlite-core/effect/update.ts
10
10
  import { applyEffectWrapper } from "drizzle-orm/effect-core/query-effect";
@@ -1,15 +1,15 @@
1
1
  import {
2
2
  collectBoundedResponseBody2
3
- } from "./integration-3v8g72cx.js";
3
+ } from "./file-retention-3v8g72cx.js";
4
4
  import {
5
5
  __export
6
- } from "./integration-9rqn6x4v.js";
6
+ } from "./file-retention-9rqn6x4v.js";
7
7
 
8
8
  // src/plugin/websearch/mcp.ts
9
- var exports_mcp = {};
10
- __export(exports_mcp, {
9
+ var exports_mcp2 = {};
10
+ __export(exports_mcp2, {
11
11
  MAX_RESPONSE_BYTES: () => MAX_RESPONSE_BYTES2,
12
- WebSearchMcp: () => exports_mcp,
12
+ WebSearchMcp: () => exports_mcp2,
13
13
  call: () => call2,
14
14
  parseResponse: () => parseResponse2
15
15
  });
@@ -61,4 +61,4 @@ var call2 = (http, url, tool, schema, value, headers = {}) => Effect.gen(functio
61
61
  }));
62
62
  });
63
63
 
64
- export { MAX_RESPONSE_BYTES2, parseResponse2, call2, exports_mcp };
64
+ export { MAX_RESPONSE_BYTES2, parseResponse2, call2, exports_mcp2 };
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  __export
3
- } from "./integration-9rqn6x4v.js";
3
+ } from "./file-retention-9rqn6x4v.js";
4
4
 
5
5
  // src/integration/connection.ts
6
6
  var exports_connection = {};
@@ -9,16 +9,18 @@ __export(exports_connection, {
9
9
  EnvInfo: () => EnvInfo2,
10
10
  Info: () => Info28,
11
11
  IntegrationConnection: () => exports_connection,
12
+ Status: () => Status3,
12
13
  key: () => key2
13
14
  });
14
15
  import { Connection } from "@opencode/schema/connection";
15
16
  var CredentialInfo2 = Connection.CredentialInfo;
16
17
  var EnvInfo2 = Connection.EnvInfo;
17
18
  var Info28 = Connection.Info;
19
+ var Status3 = Connection.Status;
18
20
  function key2(connection) {
19
21
  if (!connection)
20
22
  return;
21
23
  return connection.type === "credential" ? `credential:${connection.id}` : `env:${connection.name}`;
22
24
  }
23
25
 
24
- export { CredentialInfo2, EnvInfo2, Info28, key2, exports_connection };
26
+ export { CredentialInfo2, EnvInfo2, Info28, Status3, key2, exports_connection };
@@ -1,22 +1,22 @@
1
1
  import {
2
- Service67,
3
- node70
4
- } from "./integration-8hpx30f9.js";
2
+ Service54,
3
+ node56
4
+ } from "./file-retention-7k8jnmap.js";
5
5
  import {
6
6
  SessionSchema2
7
- } from "./integration-8q7cq0y1.js";
7
+ } from "./file-retention-n7d88tpn.js";
8
8
  import {
9
9
  __export
10
- } from "./integration-9rqn6x4v.js";
10
+ } from "./file-retention-9rqn6x4v.js";
11
11
 
12
12
  // src/session/runner/model.ts
13
13
  var exports_model = {};
14
14
  __export(exports_model, {
15
15
  ModelNotSelectedError: () => ModelNotSelectedError2,
16
16
  ModelUnavailableError: () => ModelUnavailableError2,
17
- Service: () => Service55,
17
+ Service: () => Service43,
18
18
  SessionRunnerModel: () => exports_model,
19
- node: () => node58,
19
+ node: () => node45,
20
20
  resolved: () => resolved2
21
21
  });
22
22
  import { makeLocationNode } from "@opencode/util/effect/app-node";
@@ -39,7 +39,7 @@ class ModelUnavailableError2 extends Schema.TaggedError()("SessionRunnerModel.Mo
39
39
  }
40
40
  }
41
41
 
42
- class Service55 extends Context.Service()("@opencode/SessionRunnerModel") {
42
+ class Service43 extends Context.Service()("@opencode/SessionRunnerModel") {
43
43
  }
44
44
  var resolved2 = (model, options) => ({
45
45
  model,
@@ -54,9 +54,9 @@ var resolved2 = (model, options) => ({
54
54
  compaction: options.compaction,
55
55
  transport: options.transport
56
56
  });
57
- var layer = Layer.effect(Service55, Effect.gen(function* () {
58
- const resolver = yield* Service67;
59
- return Service55.of({
57
+ var layer = Layer.effect(Service43, Effect.gen(function* () {
58
+ const resolver = yield* Service54;
59
+ return Service43.of({
60
60
  resolve: Effect.fn("SessionRunnerModel.resolve")(function* (session, available) {
61
61
  if (!session.model) {
62
62
  const resolved = yield* resolver.resolve();
@@ -74,6 +74,6 @@ var layer = Layer.effect(Service55, Effect.gen(function* () {
74
74
  })
75
75
  });
76
76
  }));
77
- var node58 = makeLocationNode({ service: Service55, layer, deps: [node70] });
77
+ var node45 = makeLocationNode({ service: Service43, layer, deps: [node56] });
78
78
 
79
- export { ModelNotSelectedError2, ModelUnavailableError2, Service55, resolved2, node58, exports_model };
79
+ export { ModelNotSelectedError2, ModelUnavailableError2, Service43, resolved2, node45, exports_model };