@opencode/core 0.0.0-dev-884 → 0.0.0-dev-900

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 (935) hide show
  1. package/dist/account/sql.js +1 -1
  2. package/dist/agent.js +92 -92
  3. package/dist/aisdk-native.js +102 -102
  4. package/dist/aisdk.js +108 -108
  5. package/dist/app.js +9 -9
  6. package/dist/artifact.js +244 -244
  7. package/dist/bus.js +84 -84
  8. package/dist/chunks/filesystem-00ve6mdn.js +18 -0
  9. package/dist/chunks/{snapshot-rjnan0bx.js → filesystem-02z2ds17.js} +4 -4
  10. package/dist/chunks/{snapshot-034tev2y.js → filesystem-034tev2y.js} +2 -2
  11. package/dist/chunks/{snapshot-035wadpx.js → filesystem-035wadpx.js} +3 -3
  12. package/dist/chunks/{snapshot-913skc7f.js → filesystem-0a2yyxmk.js} +7 -7
  13. package/dist/chunks/{snapshot-yfm306we.js → filesystem-0ezh5f4m.js} +11 -11
  14. package/dist/chunks/{snapshot-t8jzme4s.js → filesystem-0f9gmxqb.js} +18 -18
  15. package/dist/chunks/{snapshot-1zc261y1.js → filesystem-0gwbn6a0.js} +8 -8
  16. package/dist/chunks/{snapshot-0j7gp832.js → filesystem-0j7gp832.js} +1 -1
  17. package/dist/chunks/{snapshot-36b0prz5.js → filesystem-0jm1xj0f.js} +23 -23
  18. package/dist/chunks/{snapshot-0ma9gw4f.js → filesystem-0ma9gw4f.js} +2 -2
  19. package/dist/chunks/{snapshot-nqna2x1c.js → filesystem-0tfj7kb5.js} +16 -16
  20. package/dist/chunks/{snapshot-cwzne6d4.js → filesystem-0xrhftmq.js} +11 -11
  21. package/dist/chunks/{snapshot-13q849fv.js → filesystem-0yhbbq00.js} +7 -7
  22. package/dist/chunks/{snapshot-1cjcwy47.js → filesystem-15z4wtk0.js} +29 -29
  23. package/dist/chunks/{snapshot-vnft64my.js → filesystem-17sb9jwz.js} +18 -18
  24. package/dist/chunks/{snapshot-zdhpy7hh.js → filesystem-17vt7wwr.js} +30 -30
  25. package/dist/chunks/{snapshot-q7dza1tc.js → filesystem-181902zs.js} +21 -21
  26. package/dist/chunks/{snapshot-5ykf0n0g.js → filesystem-19aj727q.js} +11 -11
  27. package/dist/chunks/{snapshot-vvsvw583.js → filesystem-1a5bb6as.js} +6 -6
  28. package/dist/chunks/{snapshot-1aqsckx4.js → filesystem-1aqsckx4.js} +1 -1
  29. package/dist/chunks/{snapshot-d3e900d4.js → filesystem-1dm1rjcg.js} +33 -33
  30. package/dist/chunks/{snapshot-1ep2p91f.js → filesystem-1ep2p91f.js} +2 -2
  31. package/dist/chunks/{snapshot-wefbn46m.js → filesystem-1fbngjjy.js} +21 -21
  32. package/dist/chunks/{snapshot-78wnxje4.js → filesystem-1k7rps55.js} +11 -11
  33. package/dist/chunks/{snapshot-vhha1j41.js → filesystem-1na8pg7t.js} +11 -11
  34. package/dist/chunks/{snapshot-1v2g13eq.js → filesystem-1v2g13eq.js} +4 -4
  35. package/dist/chunks/{snapshot-p10y9ezy.js → filesystem-1wpz8b97.js} +19 -19
  36. package/dist/chunks/{snapshot-1x2knyw4.js → filesystem-1x2knyw4.js} +1 -1
  37. package/dist/chunks/{snapshot-mngt2jxm.js → filesystem-1zez8a6k.js} +9 -9
  38. package/dist/chunks/{snapshot-te4nf74j.js → filesystem-25rr9byq.js} +18 -18
  39. package/dist/chunks/{snapshot-b6fwgt4w.js → filesystem-2dfq8ch4.js} +16 -16
  40. package/dist/chunks/{snapshot-2fc7eemy.js → filesystem-2fc7eemy.js} +1 -1
  41. package/dist/chunks/{snapshot-fznz9sv4.js → filesystem-2fk4msj1.js} +8 -8
  42. package/dist/chunks/{snapshot-v0t96s7a.js → filesystem-2kg89srt.js} +4 -4
  43. package/dist/chunks/{snapshot-2p60zmnr.js → filesystem-2p60zmnr.js} +2 -2
  44. package/dist/chunks/{snapshot-sp4fkeyn.js → filesystem-2t6zpmzs.js} +6 -6
  45. package/dist/chunks/{snapshot-c2c96kqq.js → filesystem-2wk0sjak.js} +9 -9
  46. package/dist/chunks/{snapshot-vk2efkt7.js → filesystem-2ynhg311.js} +25 -25
  47. package/dist/chunks/{snapshot-sx8acyer.js → filesystem-3adw4bt5.js} +9 -9
  48. package/dist/chunks/{snapshot-h44aqkpg.js → filesystem-3ag897fb.js} +25 -25
  49. package/dist/chunks/{snapshot-3hepkmqq.js → filesystem-3hepkmqq.js} +1 -1
  50. package/dist/chunks/{snapshot-3nnrz6f6.js → filesystem-3nnrz6f6.js} +1 -1
  51. package/dist/chunks/{snapshot-xyh7v9rs.js → filesystem-3nzasfxf.js} +54 -54
  52. package/dist/chunks/{snapshot-3q65nx2c.js → filesystem-3r13rg9x.js} +369 -375
  53. package/dist/chunks/{snapshot-7fkzvs1a.js → filesystem-3vcxs8xg.js} +29 -29
  54. package/dist/chunks/{snapshot-ve8hem02.js → filesystem-3ws7347k.js} +7 -7
  55. package/dist/chunks/{snapshot-00zh2tpm.js → filesystem-3wyhrqfb.js} +8 -8
  56. package/dist/chunks/{snapshot-40y6dtc2.js → filesystem-40y6dtc2.js} +1 -1
  57. package/dist/chunks/{snapshot-40za9wsf.js → filesystem-40za9wsf.js} +2 -2
  58. package/dist/chunks/{snapshot-kxjtsbty.js → filesystem-42csrcj6.js} +7 -7
  59. package/dist/chunks/{snapshot-44pmzq9c.js → filesystem-44pmzq9c.js} +2 -2
  60. package/dist/chunks/{snapshot-nr455nww.js → filesystem-45xfphr3.js} +4 -4
  61. package/dist/chunks/{snapshot-3c0ek75q.js → filesystem-46esafq5.js} +14 -12
  62. package/dist/chunks/{snapshot-t2m109me.js → filesystem-48wgh0r5.js} +10 -10
  63. package/dist/chunks/{snapshot-7jntc4vd.js → filesystem-4d76xdka.js} +19 -19
  64. package/dist/chunks/{snapshot-4dx1dgte.js → filesystem-4dx1dgte.js} +1 -1
  65. package/dist/chunks/{snapshot-4f25tdd0.js → filesystem-4f25tdd0.js} +1 -1
  66. package/dist/chunks/{snapshot-pdhwqybq.js → filesystem-4jcpm909.js} +5 -5
  67. package/dist/chunks/{snapshot-4pyp9zr9.js → filesystem-4pyp9zr9.js} +1 -1
  68. package/dist/chunks/{snapshot-1gwaqmw6.js → filesystem-4qtvx9g1.js} +22 -22
  69. package/dist/chunks/{snapshot-hrb22e3z.js → filesystem-4r8hh93p.js} +12 -12
  70. package/dist/chunks/{snapshot-b1qan57e.js → filesystem-4tnszcv9.js} +7 -7
  71. package/dist/chunks/{snapshot-4v008n1t.js → filesystem-4v008n1t.js} +1 -1
  72. package/dist/chunks/{snapshot-knzmfptj.js → filesystem-50pr8z8j.js} +18 -18
  73. package/dist/chunks/{snapshot-kh0hrg97.js → filesystem-539dw32x.js} +4 -4
  74. package/dist/chunks/{snapshot-et4v4qpp.js → filesystem-55g2q5p5.js} +2 -2
  75. package/dist/chunks/{snapshot-69x7h8mq.js → filesystem-5ejp9ww5.js} +16 -16
  76. package/dist/chunks/{snapshot-k3zn86gw.js → filesystem-5jp6ksrm.js} +12 -12
  77. package/dist/chunks/{snapshot-5m9w47nd.js → filesystem-5m9w47nd.js} +1 -1
  78. package/dist/chunks/{snapshot-s0x73czj.js → filesystem-5stch7mz.js} +10 -10
  79. package/dist/chunks/{snapshot-mnpvypcd.js → filesystem-5tm0nqws.js} +18 -18
  80. package/dist/chunks/{snapshot-cjamm0h7.js → filesystem-5x1njh48.js} +23 -23
  81. package/dist/chunks/{snapshot-3hks0vxv.js → filesystem-648ay51t.js} +31 -31
  82. package/dist/chunks/{snapshot-h0ek1bwq.js → filesystem-6kyk5zwt.js} +16 -16
  83. package/dist/chunks/{snapshot-mrmc452x.js → filesystem-6pgb0c6g.js} +4 -4
  84. package/dist/chunks/{snapshot-gf6pfkck.js → filesystem-6rgg22fb.js} +3 -3
  85. package/dist/chunks/{snapshot-gcjrqp15.js → filesystem-6rkgwr3t.js} +14 -14
  86. package/dist/chunks/{snapshot-ejzwn84h.js → filesystem-6sfcjb92.js} +15 -15
  87. package/dist/chunks/{snapshot-q4aeeqk4.js → filesystem-6vth7jmw.js} +20 -20
  88. package/dist/chunks/{snapshot-4qr2pvqd.js → filesystem-6zj50wfk.js} +20 -20
  89. package/dist/chunks/{snapshot-rfy91wty.js → filesystem-718p8p18.js} +46 -46
  90. package/dist/chunks/{snapshot-30t367nv.js → filesystem-72rhbnyr.js} +43 -43
  91. package/dist/chunks/{snapshot-r1pe2bj8.js → filesystem-7559cqc2.js} +43 -43
  92. package/dist/chunks/{snapshot-775hqbnd.js → filesystem-775hqbnd.js} +3 -3
  93. package/dist/chunks/{snapshot-xw5cs1yx.js → filesystem-78jb72c0.js} +18 -18
  94. package/dist/chunks/{snapshot-7kjbfm52.js → filesystem-79bbe8py.js} +18 -18
  95. package/dist/chunks/{snapshot-7bmhse3q.js → filesystem-7bmhse3q.js} +1 -1
  96. package/dist/chunks/{snapshot-4a509k8y.js → filesystem-7cwg0q3v.js} +13 -13
  97. package/dist/chunks/{snapshot-4eef0qtx.js → filesystem-7h6anj5r.js} +5 -5
  98. package/dist/chunks/{snapshot-hpazsyxj.js → filesystem-7j2v9es1.js} +8 -8
  99. package/dist/chunks/{snapshot-7nqkf5r1.js → filesystem-7nqkf5r1.js} +2 -2
  100. package/dist/chunks/{snapshot-7w2ypzdf.js → filesystem-7w2ypzdf.js} +1 -1
  101. package/dist/chunks/{snapshot-7weczvnd.js → filesystem-7weczvnd.js} +1 -1
  102. package/dist/chunks/{snapshot-08myk1q4.js → filesystem-7zzyr76m.js} +38 -38
  103. package/dist/chunks/{snapshot-8y6r0x8w.js → filesystem-882t1npe.js} +23 -23
  104. package/dist/chunks/{snapshot-89287pr7.js → filesystem-89287pr7.js} +1 -1
  105. package/dist/chunks/{snapshot-8b3vzgkx.js → filesystem-8b3vzgkx.js} +1 -1
  106. package/dist/chunks/{snapshot-7jk2nv2g.js → filesystem-8bfbfs0m.js} +21 -21
  107. package/dist/chunks/{snapshot-8cg7mtm3.js → filesystem-8cg7mtm3.js} +1 -1
  108. package/dist/chunks/{snapshot-8es3pha2.js → filesystem-8es3pha2.js} +4 -4
  109. package/dist/chunks/{snapshot-7gy29tx9.js → filesystem-8ff7z165.js} +6 -6
  110. package/dist/chunks/{snapshot-8sxe6kv8.js → filesystem-8sxe6kv8.js} +2 -2
  111. package/dist/chunks/{snapshot-8wtp7s3z.js → filesystem-8wtp7s3z.js} +1 -1
  112. package/dist/chunks/{snapshot-fs33x32a.js → filesystem-8xs1szqy.js} +8 -8
  113. package/dist/chunks/{snapshot-8zv0xmg5.js → filesystem-8zv0xmg5.js} +1 -1
  114. package/dist/chunks/{snapshot-z77fw289.js → filesystem-921qrkta.js} +2 -2
  115. package/dist/chunks/{snapshot-450k4kg1.js → filesystem-938jxp85.js} +8 -8
  116. package/dist/chunks/{snapshot-qgz555ck.js → filesystem-95chw932.js} +30 -30
  117. package/dist/chunks/{snapshot-963hk181.js → filesystem-963hk181.js} +2 -2
  118. package/dist/chunks/{snapshot-6q5dgbh8.js → filesystem-9650aqwr.js} +20 -20
  119. package/dist/chunks/{snapshot-w8thymk6.js → filesystem-9936y3jg.js} +8 -8
  120. package/dist/chunks/{snapshot-1mrq5tdt.js → filesystem-9bf0jn0y.js} +24 -24
  121. package/dist/chunks/{snapshot-77mb5vex.js → filesystem-9dxkw32d.js} +16 -16
  122. package/dist/chunks/{snapshot-9tdrtzgx.js → filesystem-9e67kptv.js} +29 -29
  123. package/dist/chunks/{snapshot-fkasyrab.js → filesystem-9yqjp86x.js} +6 -6
  124. package/dist/chunks/{snapshot-qe52cmrf.js → filesystem-a6b3g8hx.js} +25 -25
  125. package/dist/chunks/{snapshot-pgm12qnv.js → filesystem-ag6wve2c.js} +7 -7
  126. package/dist/chunks/{snapshot-rd7xhtes.js → filesystem-ar2hvv65.js} +24 -24
  127. package/dist/chunks/{snapshot-emar828g.js → filesystem-at088wgp.js} +36 -36
  128. package/dist/chunks/{snapshot-rdj6qkp4.js → filesystem-avz8bhs5.js} +15 -15
  129. package/dist/chunks/{snapshot-nj442n97.js → filesystem-ay4fx4x8.js} +29 -29
  130. package/dist/chunks/{snapshot-ayjs7tqn.js → filesystem-ayjs7tqn.js} +2 -2
  131. package/dist/chunks/{snapshot-ngcjj8e2.js → filesystem-b1pxs4mx.js} +11 -11
  132. package/dist/chunks/{snapshot-b26ddj6h.js → filesystem-b26ddj6h.js} +4 -4
  133. package/dist/chunks/{snapshot-m3c9svsm.js → filesystem-ba9sjspj.js} +12 -12
  134. package/dist/chunks/{snapshot-qp1yrhw2.js → filesystem-bcjnxnhp.js} +57 -76
  135. package/dist/chunks/{snapshot-hvch271v.js → filesystem-bgwzppbt.js} +13 -13
  136. package/dist/chunks/{snapshot-c9tf7z6m.js → filesystem-bh17vazq.js} +31 -31
  137. package/dist/chunks/{snapshot-xd9cc171.js → filesystem-bstexjd6.js} +5 -5
  138. package/dist/chunks/{snapshot-zpdbqgja.js → filesystem-by8ty0bx.js} +4 -4
  139. package/dist/chunks/{snapshot-d12b0rcp.js → filesystem-c17c5xy0.js} +19 -19
  140. package/dist/chunks/{snapshot-6j1qeake.js → filesystem-c1edwwnv.js} +19 -19
  141. package/dist/chunks/{snapshot-ckw604z9.js → filesystem-c2shajz4.js} +29 -29
  142. package/dist/chunks/{snapshot-z71kt9zt.js → filesystem-c5sns9rs.js} +43 -43
  143. package/dist/chunks/{snapshot-c7cw818c.js → filesystem-c7cw818c.js} +2 -2
  144. package/dist/chunks/{snapshot-zg9g3f9s.js → filesystem-cdnzabwv.js} +23 -23
  145. package/dist/chunks/{snapshot-thhbjez9.js → filesystem-cdvjn5dz.js} +14 -14
  146. package/dist/chunks/{snapshot-3z0eczra.js → filesystem-cf8mej1f.js} +54 -60
  147. package/dist/chunks/{snapshot-n16q9wcr.js → filesystem-ck7e0r21.js} +62 -63
  148. package/dist/chunks/{snapshot-gwyytpcj.js → filesystem-ckn0kvtp.js} +6 -6
  149. package/dist/chunks/{snapshot-6fp8sfjz.js → filesystem-cmm5btky.js} +90 -90
  150. package/dist/chunks/{snapshot-3ryz99p0.js → filesystem-cpvd08na.js} +4 -4
  151. package/dist/chunks/{snapshot-qec3s47p.js → filesystem-cqv7tc87.js} +39 -39
  152. package/dist/chunks/{snapshot-vq0qa3sh.js → filesystem-ctmpqb7w.js} +9 -9
  153. package/dist/chunks/{snapshot-y0cp9zqc.js → filesystem-cvwe7hsa.js} +6 -6
  154. package/dist/chunks/{snapshot-cwrgdav8.js → filesystem-cwrgdav8.js} +2 -2
  155. package/dist/chunks/{snapshot-cxab28sr.js → filesystem-cxab28sr.js} +2 -2
  156. package/dist/chunks/{snapshot-czqb1qjr.js → filesystem-czqb1qjr.js} +4 -4
  157. package/dist/chunks/{snapshot-mp0nhefz.js → filesystem-d0pmvwgf.js} +9 -9
  158. package/dist/chunks/{snapshot-09hem2y6.js → filesystem-d2bwycwa.js} +10 -10
  159. package/dist/chunks/{snapshot-31avdb49.js → filesystem-d390zwf3.js} +8 -8
  160. package/dist/chunks/{snapshot-d4v9tmah.js → filesystem-d4v9tmah.js} +2 -2
  161. package/dist/chunks/{snapshot-47kaxns9.js → filesystem-d9qmvhen.js} +45 -45
  162. package/dist/chunks/{snapshot-pvyvb84j.js → filesystem-dg5es6ze.js} +2 -2
  163. package/dist/chunks/{snapshot-xq4js8g1.js → filesystem-dgb83nsm.js} +14 -14
  164. package/dist/chunks/{snapshot-dhsebttr.js → filesystem-dpj6gsfx.js} +9 -9
  165. package/dist/chunks/{snapshot-a7rrpap6.js → filesystem-dr1vsqzj.js} +13 -13
  166. package/dist/chunks/{snapshot-dt77769w.js → filesystem-dt77769w.js} +1 -1
  167. package/dist/chunks/{snapshot-x4g42yn7.js → filesystem-e070wvce.js} +20 -20
  168. package/dist/chunks/{snapshot-6fxgvz2x.js → filesystem-e2d6g660.js} +22 -22
  169. package/dist/chunks/{snapshot-ej8sf5xq.js → filesystem-e4cczzb6.js} +3 -3
  170. package/dist/chunks/{snapshot-e834z07m.js → filesystem-e834z07m.js} +1 -1
  171. package/dist/chunks/{snapshot-stvqdm49.js → filesystem-e851vs6d.js} +20 -20
  172. package/dist/chunks/{snapshot-nanth87n.js → filesystem-ec7kz664.js} +84 -84
  173. package/dist/chunks/{snapshot-dbwvxspc.js → filesystem-ep6snxvm.js} +5 -5
  174. package/dist/chunks/{snapshot-zqnbrh9j.js → filesystem-epsw3z7t.js} +4 -4
  175. package/dist/chunks/{snapshot-77m7fn8c.js → filesystem-epywfnkq.js} +85 -85
  176. package/dist/chunks/{snapshot-w6m3z1ss.js → filesystem-eq6zysp6.js} +3 -3
  177. package/dist/chunks/{snapshot-eqw4pqj1.js → filesystem-eqw4pqj1.js} +2 -2
  178. package/dist/chunks/{snapshot-pewxk8rv.js → filesystem-f0mr1pc6.js} +30 -30
  179. package/dist/chunks/{snapshot-bqe98046.js → filesystem-f2vx8x8a.js} +12 -12
  180. package/dist/chunks/{snapshot-fcrd7kek.js → filesystem-fcrd7kek.js} +1 -1
  181. package/dist/chunks/{snapshot-n2ewxgb0.js → filesystem-fe9jvyxb.js} +8 -8
  182. package/dist/chunks/{snapshot-fffv3p7h.js → filesystem-fffv3p7h.js} +1 -1
  183. package/dist/chunks/{snapshot-fg9p65nk.js → filesystem-fg9p65nk.js} +2 -2
  184. package/dist/chunks/{snapshot-2hmytcqx.js → filesystem-fqshqzv0.js} +5 -5
  185. package/dist/chunks/{snapshot-5xvxqfdp.js → filesystem-ft24z9as.js} +19 -19
  186. package/dist/chunks/{snapshot-d643rz4m.js → filesystem-g7m0qqq0.js} +22 -22
  187. package/dist/chunks/{snapshot-66ekey1y.js → filesystem-g9t47zy8.js} +35 -35
  188. package/dist/chunks/{snapshot-gbjdnr5j.js → filesystem-gbjdnr5j.js} +2 -2
  189. package/dist/chunks/{snapshot-07qpf0xg.js → filesystem-ge2z13zp.js} +19 -19
  190. package/dist/chunks/{snapshot-h4zx6409.js → filesystem-gg7m0nzr.js} +11 -11
  191. package/dist/chunks/{snapshot-y5z5vmz5.js → filesystem-gk0cbdm8.js} +5 -5
  192. package/dist/chunks/{snapshot-z585aq9s.js → filesystem-gwv3crrh.js} +12 -12
  193. package/dist/chunks/{snapshot-gxs71cxp.js → filesystem-gxs71cxp.js} +1 -1
  194. package/dist/chunks/{snapshot-je6qejk6.js → filesystem-gy4928xg.js} +15 -15
  195. package/dist/chunks/{snapshot-e8719nv4.js → filesystem-h0pfp02j.js} +12 -12
  196. package/dist/chunks/{snapshot-h5chy42v.js → filesystem-h5chy42v.js} +3 -3
  197. package/dist/chunks/filesystem-hcv8rxnm.js +265 -0
  198. package/dist/chunks/{snapshot-hgzwgvze.js → filesystem-hgzwgvze.js} +2 -2
  199. package/dist/chunks/{snapshot-xjydydpx.js → filesystem-hpgky7br.js} +16 -16
  200. package/dist/chunks/{snapshot-xgdf4cey.js → filesystem-hsgagtv4.js} +13 -13
  201. package/dist/chunks/{snapshot-jqk5n19q.js → filesystem-hvj3ek6w.js} +46 -46
  202. package/dist/chunks/{snapshot-3787pfz0.js → filesystem-hx5nh5s3.js} +27 -27
  203. package/dist/chunks/{snapshot-by6hbs1e.js → filesystem-hxcyyd46.js} +31 -31
  204. package/dist/chunks/{snapshot-k0678490.js → filesystem-hzz3fta6.js} +20 -20
  205. package/dist/chunks/{snapshot-vrhw3zq5.js → filesystem-j181v3gh.js} +30 -30
  206. package/dist/chunks/{snapshot-j9nxzz3g.js → filesystem-j9nxzz3g.js} +3 -3
  207. package/dist/chunks/{snapshot-zd76dthk.js → filesystem-jaed4v45.js} +1 -1
  208. package/dist/chunks/{snapshot-75bqzfff.js → filesystem-jb1c1e15.js} +34 -34
  209. package/dist/chunks/{snapshot-0n4x7vsq.js → filesystem-jhsnhsa7.js} +32 -32
  210. package/dist/chunks/{snapshot-jkdcm5hg.js → filesystem-jkdcm5hg.js} +1 -1
  211. package/dist/chunks/{snapshot-jm70asfg.js → filesystem-jm70asfg.js} +1 -1
  212. package/dist/chunks/{snapshot-5pxddvpe.js → filesystem-jmknrr9q.js} +19 -19
  213. package/dist/chunks/{snapshot-ng14t4fb.js → filesystem-jtgc3vqj.js} +24 -24
  214. package/dist/chunks/{snapshot-dbvjbd3r.js → filesystem-jvxqx3e4.js} +10 -10
  215. package/dist/chunks/{snapshot-fdwz45w7.js → filesystem-jwbahhn3.js} +28 -28
  216. package/dist/chunks/{snapshot-89472aq0.js → filesystem-jy0jnkzv.js} +9 -9
  217. package/dist/chunks/{snapshot-dt2qxtqs.js → filesystem-jz2wm8q8.js} +43 -43
  218. package/dist/chunks/{snapshot-k46dd5bg.js → filesystem-k46dd5bg.js} +1 -1
  219. package/dist/chunks/{snapshot-dsetyb2w.js → filesystem-k4qe4bdb.js} +6 -6
  220. package/dist/chunks/{snapshot-gnbydxfx.js → filesystem-kb2t6asd.js} +41 -41
  221. package/dist/chunks/{snapshot-xksw6ev0.js → filesystem-kbgs7tyr.js} +4 -4
  222. package/dist/chunks/{snapshot-zjfcjdhd.js → filesystem-kf0dj0r3.js} +23 -23
  223. package/dist/chunks/{snapshot-f2h8w54n.js → filesystem-km4jpkz6.js} +4 -4
  224. package/dist/chunks/{snapshot-kbg1k638.js → filesystem-kq6p0m63.js} +28 -28
  225. package/dist/chunks/{snapshot-4wfmxbt4.js → filesystem-kqa1ww29.js} +9 -9
  226. package/dist/chunks/{snapshot-w6vmf32x.js → filesystem-kssh28p5.js} +8 -8
  227. package/dist/chunks/{snapshot-hyvk50ha.js → filesystem-kt3bjfbg.js} +2 -12
  228. package/dist/chunks/{snapshot-57ddcrqj.js → filesystem-kyggev0f.js} +30 -30
  229. package/dist/chunks/{snapshot-kzczzf4v.js → filesystem-kzczzf4v.js} +1 -1
  230. package/dist/chunks/{snapshot-m1714858.js → filesystem-m1714858.js} +1 -1
  231. package/dist/chunks/{snapshot-m9w0rfyh.js → filesystem-m9w0rfyh.js} +1 -1
  232. package/dist/chunks/{snapshot-mb7mbhnz.js → filesystem-mb7mbhnz.js} +3 -3
  233. package/dist/chunks/filesystem-mf97tfts.js +26 -0
  234. package/dist/chunks/{snapshot-m5ycxf6r.js → filesystem-mpq7brr0.js} +19 -19
  235. package/dist/chunks/{snapshot-j37ng9j1.js → filesystem-mrzew5a0.js} +8 -8
  236. package/dist/chunks/{snapshot-39qd127q.js → filesystem-mskkk8kf.js} +13 -13
  237. package/dist/chunks/{snapshot-7knp8k57.js → filesystem-n084kdnf.js} +16 -16
  238. package/dist/chunks/{snapshot-3a8zszvc.js → filesystem-n9vcj540.js} +13 -13
  239. package/dist/chunks/{snapshot-f32m8sjz.js → filesystem-nchw3v9s.js} +5 -5
  240. package/dist/chunks/{snapshot-yk1hvwmh.js → filesystem-njg3q12r.js} +12 -12
  241. package/dist/chunks/{snapshot-tsedw9zt.js → filesystem-nkphb79f.js} +26 -26
  242. package/dist/chunks/{snapshot-rgn6m92n.js → filesystem-nnfhsy33.js} +26 -26
  243. package/dist/chunks/{snapshot-q2ws1mt0.js → filesystem-nqx1ern4.js} +9 -9
  244. package/dist/chunks/{snapshot-xbwrw8zy.js → filesystem-nqy8vhw1.js} +18 -18
  245. package/dist/chunks/{snapshot-fet53xje.js → filesystem-nv1t5fvd.js} +11 -11
  246. package/dist/chunks/{snapshot-ak34fkrk.js → filesystem-nw5eecxx.js} +1 -1
  247. package/dist/chunks/{snapshot-p10mzfnc.js → filesystem-p10mzfnc.js} +2 -2
  248. package/dist/chunks/{snapshot-4jpkdnbq.js → filesystem-p17589ft.js} +5 -5
  249. package/dist/chunks/{snapshot-rgr196vp.js → filesystem-p2tvx8t7.js} +9 -9
  250. package/dist/chunks/{snapshot-dqtt3422.js → filesystem-p6mqzsa5.js} +4 -4
  251. package/dist/chunks/{snapshot-bdhd9h6e.js → filesystem-p7vhpwh8.js} +5 -5
  252. package/dist/chunks/{snapshot-swt76a95.js → filesystem-pd5348f3.js} +36 -36
  253. package/dist/chunks/{snapshot-ph2hg484.js → filesystem-ph2hg484.js} +1 -1
  254. package/dist/chunks/{snapshot-pknna89w.js → filesystem-pknna89w.js} +1 -1
  255. package/dist/chunks/{snapshot-dvatt37d.js → filesystem-pks4cj27.js} +9 -9
  256. package/dist/chunks/{snapshot-s79v6bct.js → filesystem-px7qpgcn.js} +4 -4
  257. package/dist/chunks/{snapshot-cqstyfw9.js → filesystem-q1yqs2c4.js} +5 -5
  258. package/dist/chunks/{snapshot-b52kq2fb.js → filesystem-q6ses74x.js} +19 -19
  259. package/dist/chunks/{snapshot-xbh74875.js → filesystem-qa3zm6vn.js} +11 -11
  260. package/dist/chunks/{snapshot-hcragpck.js → filesystem-qe76v4mn.js} +4 -4
  261. package/dist/chunks/{snapshot-qp7r0hxv.js → filesystem-qp7r0hxv.js} +1 -1
  262. package/dist/chunks/{snapshot-m3skfh7c.js → filesystem-qph9r1p4.js} +47 -18
  263. package/dist/chunks/{snapshot-qsdghx1p.js → filesystem-qsdghx1p.js} +1 -1
  264. package/dist/chunks/{snapshot-rfrmafb1.js → filesystem-qwz12hkq.js} +4 -4
  265. package/dist/chunks/{snapshot-r17fbvme.js → filesystem-r17fbvme.js} +1 -1
  266. package/dist/chunks/{snapshot-bhdzb81c.js → filesystem-r1xy8wjw.js} +44 -44
  267. package/dist/chunks/{snapshot-rb9dy4dg.js → filesystem-rb9dy4dg.js} +1 -1
  268. package/dist/chunks/{snapshot-90a2yw5a.js → filesystem-rbebbts0.js} +5 -5
  269. package/dist/chunks/{snapshot-cnj75yzs.js → filesystem-rbg54dp1.js} +4 -4
  270. package/dist/chunks/{snapshot-7pft5vj9.js → filesystem-rdn5fp89.js} +9 -9
  271. package/dist/chunks/{snapshot-rgc9cx3e.js → filesystem-rgc9cx3e.js} +2 -2
  272. package/dist/chunks/{snapshot-ajnwb0bp.js → filesystem-rrcsvc7m.js} +35 -35
  273. package/dist/chunks/{snapshot-xwyva30a.js → filesystem-rsdvfnet.js} +11 -11
  274. package/dist/chunks/{snapshot-rt5dr6hb.js → filesystem-rt5dr6hb.js} +1 -1
  275. package/dist/chunks/{snapshot-5dp02h02.js → filesystem-rxdvn915.js} +6 -6
  276. package/dist/chunks/{snapshot-qvyxa1kc.js → filesystem-s063p80t.js} +20 -20
  277. package/dist/chunks/{snapshot-w9vrt7sa.js → filesystem-s41e1wzc.js} +6 -6
  278. package/dist/chunks/{snapshot-qawse3yx.js → filesystem-s6v5r3nd.js} +13 -13
  279. package/dist/chunks/{snapshot-sbya78hr.js → filesystem-sbya78hr.js} +1 -1
  280. package/dist/chunks/{snapshot-sxa9vs6w.js → filesystem-scy8vkan.js} +11 -11
  281. package/dist/chunks/{snapshot-ghrv1g9c.js → filesystem-sdt5j0rm.js} +4 -4
  282. package/dist/chunks/{snapshot-d2awp3gt.js → filesystem-skbh59st.js} +27 -27
  283. package/dist/chunks/{snapshot-jft552z8.js → filesystem-ssh841z8.js} +6 -6
  284. package/dist/chunks/{snapshot-svcy3p9a.js → filesystem-svcy3p9a.js} +1 -1
  285. package/dist/chunks/{snapshot-dbatw319.js → filesystem-t48jrnqq.js} +3 -3
  286. package/dist/chunks/{snapshot-78p2h4ex.js → filesystem-t8erkws8.js} +5 -5
  287. package/dist/chunks/{snapshot-y2b1w3ea.js → filesystem-taa6ksrb.js} +3 -3
  288. package/dist/chunks/{snapshot-tb2mrvc9.js → filesystem-tb2mrvc9.js} +1 -1
  289. package/dist/chunks/{snapshot-tbpn7jtk.js → filesystem-tbpn7jtk.js} +1 -1
  290. package/dist/chunks/{snapshot-tczq8hjw.js → filesystem-tczq8hjw.js} +1 -1
  291. package/dist/chunks/{snapshot-fq2jm6c8.js → filesystem-th0477r0.js} +11 -11
  292. package/dist/chunks/{snapshot-c6zfksrk.js → filesystem-tk96nzak.js} +29 -29
  293. package/dist/chunks/{snapshot-tr8x705m.js → filesystem-tr8x705m.js} +1 -1
  294. package/dist/chunks/{snapshot-5famdb69.js → filesystem-trz3127x.js} +23 -23
  295. package/dist/chunks/{snapshot-mm06edep.js → filesystem-tvtps2q9.js} +6 -7
  296. package/dist/chunks/{snapshot-twssxy5n.js → filesystem-twssxy5n.js} +2 -2
  297. package/dist/chunks/{snapshot-3n9szx6q.js → filesystem-v1ps7nwg.js} +8 -8
  298. package/dist/chunks/{snapshot-v2r1d0zg.js → filesystem-v2r1d0zg.js} +1 -1
  299. package/dist/chunks/{snapshot-tg1vr1qt.js → filesystem-v5hpj9dd.js} +8 -8
  300. package/dist/chunks/{snapshot-0w75ztav.js → filesystem-v7rmebyy.js} +15 -15
  301. package/dist/chunks/{snapshot-z9x7gw2c.js → filesystem-vcbvzcay.js} +3 -3
  302. package/dist/chunks/{snapshot-xy6wb3az.js → filesystem-vhmjqsfk.js} +3 -3
  303. package/dist/chunks/{snapshot-vjf35v1f.js → filesystem-vjf35v1f.js} +1 -1
  304. package/dist/chunks/{snapshot-rqj3n39p.js → filesystem-vkxtbcsc.js} +19 -19
  305. package/dist/chunks/{snapshot-m9xw7dn6.js → filesystem-vp24eq8c.js} +5 -5
  306. package/dist/chunks/{snapshot-tdb8rj00.js → filesystem-vq0y6bse.js} +11 -11
  307. package/dist/chunks/{snapshot-xwyq36ag.js → filesystem-vsbgvdf0.js} +23 -18
  308. package/dist/chunks/{snapshot-kbs8tas7.js → filesystem-vyzkhsyt.js} +12 -12
  309. package/dist/chunks/{snapshot-31a81mga.js → filesystem-w0jedvew.js} +31 -31
  310. package/dist/chunks/{snapshot-w3wsvvr9.js → filesystem-w3wsvvr9.js} +1 -1
  311. package/dist/chunks/{snapshot-mw5svyy8.js → filesystem-w4zkc3a0.js} +12 -12
  312. package/dist/chunks/{snapshot-w687dnns.js → filesystem-w687dnns.js} +1 -1
  313. package/dist/chunks/{snapshot-wakvkjy4.js → filesystem-wakvkjy4.js} +1 -1
  314. package/dist/chunks/{snapshot-wd87259q.js → filesystem-wd87259q.js} +1 -1
  315. package/dist/chunks/{snapshot-wegkxhrn.js → filesystem-wegkxhrn.js} +2 -2
  316. package/dist/chunks/{snapshot-72dfj4ss.js → filesystem-weqc7sb9.js} +3 -3
  317. package/dist/chunks/{snapshot-ame3chwq.js → filesystem-wfxxzfe0.js} +15 -15
  318. package/dist/chunks/{snapshot-8hn9zefq.js → filesystem-wk3tvmbz.js} +25 -25
  319. package/dist/chunks/{snapshot-tpqt9x8s.js → filesystem-wq8rmehe.js} +24 -24
  320. package/dist/chunks/{snapshot-46471mr8.js → filesystem-wryyvkqn.js} +22 -22
  321. package/dist/chunks/{snapshot-wvr8xscb.js → filesystem-wvr8xscb.js} +1 -1
  322. package/dist/chunks/{snapshot-aqfeayxz.js → filesystem-wzcb695t.js} +59 -59
  323. package/dist/chunks/{snapshot-svqs76ey.js → filesystem-x1hgtw2f.js} +6 -6
  324. package/dist/chunks/{snapshot-x35fem2t.js → filesystem-x5cd4jne.js} +6 -6
  325. package/dist/chunks/{snapshot-zayrwdfm.js → filesystem-x6jvqskc.js} +19 -19
  326. package/dist/chunks/{snapshot-etw491jc.js → filesystem-x7e420mc.js} +8 -8
  327. package/dist/chunks/{snapshot-jyyf701r.js → filesystem-x83082rg.js} +185 -185
  328. package/dist/chunks/{snapshot-n0ebgend.js → filesystem-x9tgsr9g.js} +6 -6
  329. package/dist/chunks/{snapshot-0fesqxmw.js → filesystem-xep6jqgx.js} +45 -45
  330. package/dist/chunks/{snapshot-xjr6c8m4.js → filesystem-xjr6c8m4.js} +1 -1
  331. package/dist/chunks/{snapshot-408ec29k.js → filesystem-xrf5bdyr.js} +11 -11
  332. package/dist/chunks/{snapshot-82nh0246.js → filesystem-xv6av45t.js} +11 -11
  333. package/dist/chunks/{snapshot-d0rn797r.js → filesystem-xxphw40g.js} +8 -8
  334. package/dist/chunks/{snapshot-0cvyppvf.js → filesystem-y2jyke39.js} +7 -7
  335. package/dist/chunks/{snapshot-z7e2d9bf.js → filesystem-y6psyawz.js} +22 -22
  336. package/dist/chunks/{snapshot-c4n8yphk.js → filesystem-y7k285qd.js} +34 -34
  337. package/dist/chunks/{snapshot-9d5rr669.js → filesystem-y9yxqpkb.js} +16 -16
  338. package/dist/chunks/{snapshot-yb20nhc3.js → filesystem-yb20nhc3.js} +1 -1
  339. package/dist/chunks/{snapshot-wkmc7x5w.js → filesystem-yqhvz5dd.js} +60 -64
  340. package/dist/chunks/{snapshot-yr705xyq.js → filesystem-yr705xyq.js} +1 -1
  341. package/dist/chunks/{snapshot-yvtc2x31.js → filesystem-yvtc2x31.js} +1 -1
  342. package/dist/chunks/{snapshot-y00x4xpa.js → filesystem-yydqqga9.js} +4 -4
  343. package/dist/chunks/{snapshot-z080rjh6.js → filesystem-z080rjh6.js} +1 -1
  344. package/dist/chunks/{snapshot-a0txt7nz.js → filesystem-z1y40jkr.js} +12 -12
  345. package/dist/chunks/{snapshot-573ve1sd.js → filesystem-z664tc7y.js} +3 -3
  346. package/dist/chunks/{snapshot-6h7qzf96.js → filesystem-z9cq7218.js} +1 -1
  347. package/dist/chunks/{snapshot-bsje94eq.js → filesystem-zaqe5xsm.js} +1 -1
  348. package/dist/chunks/{snapshot-pr88qeks.js → filesystem-zdgre5kj.js} +21 -21
  349. package/dist/chunks/{snapshot-gbkvskfj.js → filesystem-zsp4v0js.js} +11 -11
  350. package/dist/codemode/catalog.js +1 -1
  351. package/dist/codemode/execution.js +3 -3
  352. package/dist/codemode/fetch.js +148 -148
  353. package/dist/codemode/instructions.js +7 -7
  354. package/dist/codemode/tool.js +155 -155
  355. package/dist/command.js +94 -94
  356. package/dist/config/discovery.js +97 -97
  357. package/dist/config/integration.js +1 -1
  358. package/dist/config/managed.js +1 -1
  359. package/dist/config/markdown.js +1 -1
  360. package/dist/config/normalize.js +112 -112
  361. package/dist/config/plugin/agent.js +131 -131
  362. package/dist/config/plugin/command.js +238 -238
  363. package/dist/config/plugin/compaction.js +173 -173
  364. package/dist/config/plugin/compatibility.js +153 -153
  365. package/dist/config/plugin/entry-observer.js +1 -1
  366. package/dist/config/plugin/formatter.js +131 -131
  367. package/dist/config/plugin/image.js +130 -130
  368. package/dist/config/plugin/instruction.js +130 -130
  369. package/dist/config/plugin/location-watcher.js +130 -130
  370. package/dist/config/plugin/mcp.js +141 -141
  371. package/dist/config/plugin/policy.js +130 -130
  372. package/dist/config/plugin/provider.js +130 -130
  373. package/dist/config/plugin/reference.js +132 -132
  374. package/dist/config/plugin/shell.js +132 -132
  375. package/dist/config/plugin/skill-file.js +149 -149
  376. package/dist/config/plugin/skill-scan.js +1 -1
  377. package/dist/config/plugin/skill.js +156 -156
  378. package/dist/config/plugin/snapshot.js +130 -130
  379. package/dist/config/plugin/source.js +132 -132
  380. package/dist/config/plugin/tool-output.js +131 -131
  381. package/dist/config/plugin/websearch.js +131 -131
  382. package/dist/config/plugin/worktree.js +132 -132
  383. package/dist/config/variable.js +1 -1
  384. package/dist/config/watch.js +1 -1
  385. package/dist/config.js +133 -133
  386. package/dist/console-access.js +1 -7
  387. package/dist/credential/sql.js +2 -2
  388. package/dist/credential.js +92 -92
  389. package/dist/database/batch.js +1 -1
  390. package/dist/database/database.js +83 -83
  391. package/dist/database/drizzle/effect-sqlite/driver.js +12 -12
  392. package/dist/database/drizzle/effect-sqlite/index.js +12 -12
  393. package/dist/database/drizzle/effect-sqlite/session.js +11 -11
  394. package/dist/database/drizzle/index.js +13 -13
  395. package/dist/database/drizzle/internal/drizzle-utils.js +1 -1
  396. package/dist/database/drizzle/sqlite-core/effect/count.js +1 -1
  397. package/dist/database/drizzle/sqlite-core/effect/db.js +9 -9
  398. package/dist/database/drizzle/sqlite-core/effect/delete.js +2 -2
  399. package/dist/database/drizzle/sqlite-core/effect/index.js +10 -10
  400. package/dist/database/drizzle/sqlite-core/effect/insert.js +2 -2
  401. package/dist/database/drizzle/sqlite-core/effect/query.js +1 -1
  402. package/dist/database/drizzle/sqlite-core/effect/raw.js +1 -1
  403. package/dist/database/drizzle/sqlite-core/effect/select.js +2 -2
  404. package/dist/database/drizzle/sqlite-core/effect/session.js +10 -10
  405. package/dist/database/drizzle/sqlite-core/effect/update.js +2 -2
  406. package/dist/database/drizzle.js +14 -14
  407. package/dist/database/migration/20260127222353_familiar_lady_ursula.js +1 -1
  408. package/dist/database/migration/20260211171708_add_project_commands.js +1 -1
  409. package/dist/database/migration/20260213144116_wakeful_the_professor.js +1 -1
  410. package/dist/database/migration/20260225215848_workspace.js +1 -1
  411. package/dist/database/migration/20260227213759_add_session_workspace_id.js +1 -1
  412. package/dist/database/migration/20260228203230_blue_harpoon.js +1 -1
  413. package/dist/database/migration/20260303231226_add_workspace_fields.js +1 -1
  414. package/dist/database/migration/20260309230000_move_org_to_state.js +1 -1
  415. package/dist/database/migration/20260312043431_session_message_cursor.js +1 -1
  416. package/dist/database/migration/20260323234822_events.js +1 -1
  417. package/dist/database/migration/20260410174513_workspace-name.js +1 -1
  418. package/dist/database/migration/20260413175956_chief_energizer.js +1 -1
  419. package/dist/database/migration/20260423070820_add_icon_url_override.js +1 -1
  420. package/dist/database/migration/20260427172553_slow_nightmare.js +1 -1
  421. package/dist/database/migration/20260428004200_add_session_path.js +1 -1
  422. package/dist/database/migration/20260501142318_next_venus.js +1 -1
  423. package/dist/database/migration/20260504145000_add_sync_owner.js +1 -1
  424. package/dist/database/migration/20260507164347_add_workspace_time.js +1 -1
  425. package/dist/database/migration/20260510033149_session_usage.js +1 -1
  426. package/dist/database/migration/20260511000411_data_migration_state.js +1 -1
  427. package/dist/database/migration/20260511173437_session-metadata.js +1 -1
  428. package/dist/database/migration/20260601010001_normalize_storage_paths.js +1 -1
  429. package/dist/database/migration/20260601202201_amazing_prowler.js +1 -1
  430. package/dist/database/migration/20260602002951_lowly_union_jack.js +1 -1
  431. package/dist/database/migration/20260602182828_add_project_directories.js +1 -1
  432. package/dist/database/migration/20260603001617_session_message_projection_indexes.js +1 -1
  433. package/dist/database/migration/20260603040000_session_message_projection_order.js +1 -1
  434. package/dist/database/migration/20260603141458_session_input_inbox.js +1 -1
  435. package/dist/database/migration/20260603160727_jittery_ezekiel_stane.js +1 -1
  436. package/dist/database/migration/20260604172448_event_sourced_session_input.js +1 -1
  437. package/dist/database/migration/20260605003541_add_session_context_snapshot.js +1 -1
  438. package/dist/database/migration/20260605042240_add_context_epoch_agent.js +1 -1
  439. package/dist/database/migration/20260611035744_credential.js +1 -1
  440. package/dist/database/migration/20260611192811_lush_chimera.js +1 -1
  441. package/dist/database/migration/20260612174303_project_dir_strategy.js +1 -1
  442. package/dist/database/migration/20260622142730_simplify_session_context_epoch.js +1 -1
  443. package/dist/database/migration/20260622170816_reset_v2_session_state.js +1 -1
  444. package/dist/database/migration/20260622202450_simplify_session_input.js +1 -1
  445. package/dist/database/migration/20260804233008_loose_psylocke.js +1 -1
  446. package/dist/database/migration/20260805200742_import_legacy_credentials.js +1 -1
  447. package/dist/database/migration/20260808023530_workspace_domain.js +1 -1
  448. package/dist/database/migration/20260811161259_execution_claim_attempts.js +1 -1
  449. package/dist/database/migration/20260812181746_session_inbox.js +1 -1
  450. package/dist/database/migration/20260812213948_worktree.js +1 -1
  451. package/dist/database/migration/20260819222447_session_viewed_state.js +1 -1
  452. package/dist/database/migration/20260823191254_nullable_workspace_binding.js +1 -1
  453. package/dist/database/migration/20260910120000_clear_v1_session_permission.js +1 -1
  454. package/dist/database/migration/20260923013825_project_time_active.js +1 -1
  455. package/dist/database/migration/20261007190000_azure_cli_external_credential.js +1 -1
  456. package/dist/database/migration/20261010180456_project_time_archived.js +1 -1
  457. package/dist/database/migration/20261024002554_session_allowance.js +1 -1
  458. package/dist/database/migration/20261024175301_drop_session_allowance.js +1 -1
  459. package/dist/database/migration/20261025123711_blob.js +1 -1
  460. package/dist/database/migration/20261025154125_drop_session_pending.js +1 -1
  461. package/dist/database/migration/20261026223005_schedule.js +1 -1
  462. package/dist/database/migration/20261029002625_session_part.js +1 -1
  463. package/dist/database/migration/20261029073502_session_time_busy.js +1 -1
  464. package/dist/database/migration/20261029165540_schedule_checks.js +1 -1
  465. package/dist/database/migration/20261030054400_job.js +1 -1
  466. package/dist/database/migration.gen.js +60 -60
  467. package/dist/database/migration.js +76 -76
  468. package/dist/database/path.js +2 -2
  469. package/dist/database/schema.gen.js +1 -1
  470. package/dist/database/schema.sql.js +1 -1
  471. package/dist/database/v1-migration.bun.js +98 -98
  472. package/dist/database/v1-migration.js +1 -1
  473. package/dist/effect/app-node-builder.js +440 -440
  474. package/dist/effect/app-node-platform.js +2 -2
  475. package/dist/effect/keyed-mutex.js +1 -1
  476. package/dist/effect/websocket-constructor.js +1 -1
  477. package/dist/environment/driver.js +1 -1
  478. package/dist/environment/environment.js +105 -105
  479. package/dist/environment/exec-defaults.js +2 -2
  480. package/dist/environment/files.js +1 -1
  481. package/dist/environment/index.js +109 -109
  482. package/dist/environment/local.js +2 -2
  483. package/dist/environment/memory.js +2 -2
  484. package/dist/environment/unavailable.js +1 -1
  485. package/dist/event/sql.js +1 -1
  486. package/dist/event-logger.js +83 -83
  487. package/dist/file-access.js +160 -160
  488. package/dist/file-mutation.js +108 -108
  489. package/dist/file-retention.js +1 -1
  490. package/dist/file-write.js +164 -164
  491. package/dist/filesystem/fff.bun.js +2 -2
  492. package/dist/filesystem/fff.js +1 -1
  493. package/dist/filesystem/fff.node.js +2 -2
  494. package/dist/filesystem/fff.workerd.js +2 -2
  495. package/dist/filesystem/file-watch.js +90 -90
  496. package/dist/filesystem/location-watcher-policy.js +6 -6
  497. package/dist/filesystem/location-watcher.js +251 -251
  498. package/dist/filesystem/protected.js +3 -3
  499. package/dist/filesystem/search.js +113 -113
  500. package/dist/filesystem/watcher-binding.js +1 -1
  501. package/dist/filesystem/watcher.js +9 -9
  502. package/dist/filesystem.js +116 -116
  503. package/dist/flag.js +129 -129
  504. package/dist/form.js +91 -91
  505. package/dist/formatter/builtins.js +4 -4
  506. package/dist/formatter.js +100 -100
  507. package/dist/generate.js +114 -114
  508. package/dist/git.js +11 -11
  509. package/dist/github-copilot/chat/convert-to-openai-compatible-chat-messages.js +1 -1
  510. package/dist/github-copilot/chat/get-response-metadata.js +1 -1
  511. package/dist/github-copilot/chat/map-openai-compatible-finish-reason.js +1 -1
  512. package/dist/github-copilot/chat/openai-compatible-chat-language-model.js +7 -7
  513. package/dist/github-copilot/chat/openai-compatible-chat-options.js +1 -1
  514. package/dist/github-copilot/chat/openai-compatible-prepare-tools.js +1 -1
  515. package/dist/github-copilot/copilot-provider.js +17 -17
  516. package/dist/github-copilot/models.js +112 -112
  517. package/dist/github-copilot/openai-compatible-error.js +1 -1
  518. package/dist/github-copilot/responses/convert-to-openai-responses-input.js +1 -1
  519. package/dist/github-copilot/responses/map-openai-responses-finish-reason.js +1 -1
  520. package/dist/github-copilot/responses/openai-error.js +1 -1
  521. package/dist/github-copilot/responses/openai-responses-language-model.js +10 -10
  522. package/dist/github-copilot/responses/openai-responses-prepare-tools.js +6 -6
  523. package/dist/github-copilot/responses/tool/code-interpreter.js +1 -1
  524. package/dist/github-copilot/responses/tool/file-search.js +1 -1
  525. package/dist/github-copilot/responses/tool/image-generation.js +1 -1
  526. package/dist/github-copilot/responses/tool/web-search-preview.js +1 -1
  527. package/dist/github-copilot/responses/tool/web-search.js +1 -1
  528. package/dist/image/notice.js +1 -1
  529. package/dist/image/photon-normalize.js +1 -1
  530. package/dist/image/photon-worker.js +1 -1
  531. package/dist/image/photon.js +4 -4
  532. package/dist/image.js +6 -6
  533. package/dist/instance/service.js +5 -5
  534. package/dist/instance.js +431 -431
  535. package/dist/instruction-discovery.js +91 -91
  536. package/dist/instructions/builtins.js +100 -100
  537. package/dist/instructions/index.js +1 -1
  538. package/dist/integration/connection.js +1 -1
  539. package/dist/integration.js +96 -96
  540. package/dist/job/list.js +5 -5
  541. package/dist/job/recovery.js +2 -2
  542. package/dist/job/sql.js +2 -2
  543. package/dist/job.js +90 -90
  544. package/dist/kv/sql.js +2 -2
  545. package/dist/kv.js +82 -82
  546. package/dist/location-activity.js +184 -184
  547. package/dist/location-lifecycle.js +153 -153
  548. package/dist/location-service-map.js +99 -99
  549. package/dist/location-services.js +428 -428
  550. package/dist/location.js +96 -96
  551. package/dist/managed-policy.js +3 -3
  552. package/dist/mcp/client.js +158 -158
  553. package/dist/mcp/connection.js +106 -106
  554. package/dist/mcp/index.js +122 -122
  555. package/dist/mcp/instructions.js +189 -189
  556. package/dist/mcp/oauth.js +89 -89
  557. package/dist/mcp/pool.js +112 -112
  558. package/dist/mcp/socket-client.js +1 -1
  559. package/dist/mcp/stdio.js +157 -157
  560. package/dist/mime.js +1 -1
  561. package/dist/modal/models.js +112 -112
  562. package/dist/model-resolver.js +110 -110
  563. package/dist/model-retry.js +1 -1
  564. package/dist/model.js +113 -113
  565. package/dist/models-dev/v1.js +1 -1
  566. package/dist/models-dev.js +117 -117
  567. package/dist/oauth/page.js +1 -1
  568. package/dist/permission/saved.js +91 -91
  569. package/dist/permission/sql.js +5 -5
  570. package/dist/permission.js +156 -156
  571. package/dist/persistent-pty/binary.bun.js +1 -1
  572. package/dist/persistent-pty/daemon.js +1 -1
  573. package/dist/persistent-pty/index.js +99 -99
  574. package/dist/persistent-pty/pty-binding.js +1 -1
  575. package/dist/persistent-pty.js +86 -86
  576. package/dist/plugin/agent.js +85 -85
  577. package/dist/plugin/command.js +117 -117
  578. package/dist/plugin/goal.js +3 -3
  579. package/dist/plugin/hooks.js +5 -5
  580. package/dist/plugin/host.js +244 -244
  581. package/dist/plugin/identity.js +3 -3
  582. package/dist/plugin/instance.js +5 -5
  583. package/dist/plugin/internal.js +409 -409
  584. package/dist/plugin/mcp-codemode-defaults.js +3 -3
  585. package/dist/plugin/models-dev.js +110 -110
  586. package/dist/plugin/module.js +129 -129
  587. package/dist/plugin/optimize.js +2 -2
  588. package/dist/plugin/plan.js +149 -149
  589. package/dist/plugin/promise.js +1 -1
  590. package/dist/plugin/provider/amazon-bedrock.js +106 -106
  591. package/dist/plugin/provider/azure.js +133 -133
  592. package/dist/plugin/provider/cerebras.js +1 -1
  593. package/dist/plugin/provider/chatgpt.js +133 -133
  594. package/dist/plugin/provider/claude-agent/aisdk.js +115 -115
  595. package/dist/plugin/provider/claude-agent/claude/fork.js +2 -2
  596. package/dist/plugin/provider/claude-agent/claude/io.js +4 -4
  597. package/dist/plugin/provider/claude-agent/claude/probe.js +2 -2
  598. package/dist/plugin/provider/claude-agent/claude/query-options.js +4 -4
  599. package/dist/plugin/provider/claude-agent/claude/sdk.js +1 -1
  600. package/dist/plugin/provider/claude-agent/claude/session.js +4 -4
  601. package/dist/plugin/provider/claude-agent/claude/sessions.js +16 -16
  602. package/dist/plugin/provider/claude-agent/claude/status.js +9 -9
  603. package/dist/plugin/provider/claude-agent/index.js +148 -148
  604. package/dist/plugin/provider/claude-agent/instructions.js +112 -112
  605. package/dist/plugin/provider/claude-agent/integration.js +115 -115
  606. package/dist/plugin/provider/claude-agent/language-model/claude-agent-error.js +1 -1
  607. package/dist/plugin/provider/claude-agent/language-model/claude-agent-language-model.js +7 -7
  608. package/dist/plugin/provider/claude-agent/language-model/convert-claude-stream.js +4 -4
  609. package/dist/plugin/provider/claude-agent/language-model/convert-to-claude-message.js +1 -1
  610. package/dist/plugin/provider/claude-agent/language-model/request-kind.js +1 -1
  611. package/dist/plugin/provider/claude-agent/language-model/system-prompt.js +1 -1
  612. package/dist/plugin/provider/claude-agent/language-model/usage.js +1 -1
  613. package/dist/plugin/provider/claude-agent/provider.js +108 -108
  614. package/dist/plugin/provider/claude-agent/session.js +112 -112
  615. package/dist/plugin/provider/claude-agent/sync/catch-up.js +3 -3
  616. package/dist/plugin/provider/claude-agent/sync/checkpoints.js +2 -2
  617. package/dist/plugin/provider/claude-agent/sync/decide.js +2 -2
  618. package/dist/plugin/provider/claude-agent/sync/fingerprint.js +1 -1
  619. package/dist/plugin/provider/claude-agent/sync/record.js +3 -3
  620. package/dist/plugin/provider/claude-agent/tools/hooks.js +1 -1
  621. package/dist/plugin/provider/claude-agent/tools/names.js +1 -1
  622. package/dist/plugin/provider/claude-agent/tools/pending.js +3 -3
  623. package/dist/plugin/provider/claude-agent/tools/result.js +3 -3
  624. package/dist/plugin/provider/claude-agent/tools/server.js +2 -2
  625. package/dist/plugin/provider/cloudflare-ai-gateway.js +130 -130
  626. package/dist/plugin/provider/cloudflare-workers-ai.js +130 -130
  627. package/dist/plugin/provider/configured.js +126 -126
  628. package/dist/plugin/provider/credential-settings.js +88 -88
  629. package/dist/plugin/provider/databricks.js +1 -1
  630. package/dist/plugin/provider/digitalocean.js +109 -109
  631. package/dist/plugin/provider/dynamic.js +2 -2
  632. package/dist/plugin/provider/github-copilot.js +111 -111
  633. package/dist/plugin/provider/gitlab.js +109 -109
  634. package/dist/plugin/provider/google-vertex.js +127 -127
  635. package/dist/plugin/provider/kilo.js +1 -1
  636. package/dist/plugin/provider/llmgateway.js +89 -89
  637. package/dist/plugin/provider/lmstudio.js +138 -138
  638. package/dist/plugin/provider/local.js +137 -137
  639. package/dist/plugin/provider/modal.js +108 -108
  640. package/dist/plugin/provider/neon.js +1 -1
  641. package/dist/plugin/provider/nvidia.js +1 -1
  642. package/dist/plugin/provider/ollama.js +138 -138
  643. package/dist/plugin/provider/openai-context-caps.js +106 -106
  644. package/dist/plugin/provider/openai.js +133 -133
  645. package/dist/plugin/provider/opencode.js +159 -159
  646. package/dist/plugin/provider/openrouter.js +104 -104
  647. package/dist/plugin/provider/poe.js +90 -90
  648. package/dist/plugin/provider/prompt-cache-key.js +1 -1
  649. package/dist/plugin/provider/refresh.js +87 -87
  650. package/dist/plugin/provider/sap-ai-core.js +104 -104
  651. package/dist/plugin/provider/sdk-factory.js +1 -1
  652. package/dist/plugin/provider/snowflake-cortex.js +131 -131
  653. package/dist/plugin/provider/vllm.js +140 -140
  654. package/dist/plugin/provider/xai.js +104 -104
  655. package/dist/plugin/provider/zenmux.js +1 -1
  656. package/dist/plugin/provider.js +237 -237
  657. package/dist/plugin/sdk.js +87 -87
  658. package/dist/plugin/service.js +3 -3
  659. package/dist/plugin/skill.js +150 -150
  660. package/dist/plugin/source-directory.js +1 -1
  661. package/dist/plugin/supervisor.js +419 -419
  662. package/dist/plugin/tool-input-repair.js +4 -4
  663. package/dist/plugin/update.js +6 -6
  664. package/dist/plugin/vcs/git.js +99 -99
  665. package/dist/plugin/vcs/hg.js +99 -99
  666. package/dist/plugin/verbosity.js +106 -106
  667. package/dist/plugin/warming.js +130 -130
  668. package/dist/plugin/websearch/exa.js +6 -6
  669. package/dist/plugin/websearch/firecrawl.js +9 -9
  670. package/dist/plugin/websearch/index.js +10 -10
  671. package/dist/plugin/websearch/mcp.js +2 -2
  672. package/dist/plugin/websearch/parallel.js +7 -7
  673. package/dist/plugin/websearch/provider.js +1 -1
  674. package/dist/plugin/websearch/tavily.js +5 -5
  675. package/dist/plugin/websearch/tinyfish.js +9 -9
  676. package/dist/plugin.js +255 -255
  677. package/dist/project/icon.js +5 -5
  678. package/dist/project/schema.js +2 -2
  679. package/dist/project/sql.js +4 -4
  680. package/dist/project.js +97 -97
  681. package/dist/provider.js +110 -110
  682. package/dist/pty/protocol.js +1 -1
  683. package/dist/pty/ticket.js +1 -1
  684. package/dist/pty.js +113 -113
  685. package/dist/reference/instructions.js +101 -101
  686. package/dist/reference.js +103 -103
  687. package/dist/repository-cache.js +93 -93
  688. package/dist/repository.js +3 -3
  689. package/dist/ripgrep/binary.js +2 -2
  690. package/dist/ripgrep.js +111 -111
  691. package/dist/rpc.js +99 -99
  692. package/dist/schedule/check.js +249 -249
  693. package/dist/schedule/sql.js +6 -6
  694. package/dist/schedule.js +251 -251
  695. package/dist/schema.js +1 -1
  696. package/dist/session/affinity.js +1 -1
  697. package/dist/session/background.js +3 -3
  698. package/dist/session/blob.js +132 -132
  699. package/dist/session/command.js +85 -85
  700. package/dist/session/compaction.js +173 -173
  701. package/dist/session/context.js +205 -205
  702. package/dist/session/diff.js +101 -101
  703. package/dist/session/environment.js +5 -5
  704. package/dist/session/error.js +5 -5
  705. package/dist/session/event.js +1 -1
  706. package/dist/session/execution/restart.js +249 -249
  707. package/dist/session/execution.js +165 -165
  708. package/dist/session/generate.js +204 -204
  709. package/dist/session/history.js +139 -139
  710. package/dist/session/inbox.js +146 -146
  711. package/dist/session/info.js +3 -3
  712. package/dist/session/instruction-entry.js +88 -88
  713. package/dist/session/instruction-state.js +8 -8
  714. package/dist/session/instructions.js +144 -144
  715. package/dist/session/message-updater.js +2 -2
  716. package/dist/session/message.js +1 -1
  717. package/dist/session/model-request.js +171 -171
  718. package/dist/session/model-transport.js +9 -9
  719. package/dist/session/move.js +171 -171
  720. package/dist/session/projector.js +144 -144
  721. package/dist/session/prompt.js +151 -151
  722. package/dist/session/recent-text.js +1 -1
  723. package/dist/session/revert.js +142 -142
  724. package/dist/session/run-coordinator.js +1 -1
  725. package/dist/session/runner/index.js +3 -3
  726. package/dist/session/runner/llm.js +258 -258
  727. package/dist/session/runner/max-steps.js +1 -1
  728. package/dist/session/runner/model.js +113 -113
  729. package/dist/session/runner/publish-llm-event.js +153 -153
  730. package/dist/session/runner/retry.js +5 -5
  731. package/dist/session/runner/step.js +166 -166
  732. package/dist/session/runner/to-llm-message.js +140 -140
  733. package/dist/session/schema.js +5 -5
  734. package/dist/session/session.js +188 -188
  735. package/dist/session/shell.js +145 -145
  736. package/dist/session/skill.js +150 -150
  737. package/dist/session/sql.js +5 -5
  738. package/dist/session/stats.js +85 -85
  739. package/dist/session/store.js +145 -145
  740. package/dist/session/stored.js +2 -2
  741. package/dist/session/subagent-completion.js +1 -1
  742. package/dist/session/subagent-job.js +237 -237
  743. package/dist/session/system-prompt.js +1 -1
  744. package/dist/session/title.js +209 -209
  745. package/dist/session/to-session-error.js +152 -152
  746. package/dist/session/transfer.js +246 -246
  747. package/dist/session/usage.js +1 -1
  748. package/dist/session.js +243 -243
  749. package/dist/shared-cache.js +5 -5
  750. package/dist/shell/parse.js +6 -6
  751. package/dist/shell/result.js +1 -1
  752. package/dist/shell/scan.js +1 -1
  753. package/dist/shell/select.js +15 -15
  754. package/dist/shell.js +145 -145
  755. package/dist/skill/discovery.js +6 -6
  756. package/dist/skill/instructions.js +154 -154
  757. package/dist/skill.js +159 -159
  758. package/dist/snapshot.js +104 -104
  759. package/dist/state.js +1 -1
  760. package/dist/tool/html-markdown.js +1 -1
  761. package/dist/tool/http-body.js +1 -1
  762. package/dist/tool/mcp.js +188 -188
  763. package/dist/tool/plugin/artifact.js +236 -236
  764. package/dist/tool/plugin/edit.js +170 -170
  765. package/dist/tool/plugin/file-diff.js +1 -1
  766. package/dist/tool/plugin/glob.js +174 -174
  767. package/dist/tool/plugin/grep.js +173 -173
  768. package/dist/tool/plugin/image-generate.js +245 -245
  769. package/dist/tool/plugin/mcp-resource.js +169 -169
  770. package/dist/tool/plugin/opencode.js +166 -166
  771. package/dist/tool/plugin/patch.js +169 -169
  772. package/dist/tool/plugin/question.js +151 -151
  773. package/dist/tool/plugin/read.js +175 -175
  774. package/dist/tool/plugin/schedule.js +255 -255
  775. package/dist/tool/plugin/shell.js +243 -243
  776. package/dist/tool/plugin/skill.js +158 -158
  777. package/dist/tool/plugin/subagent.js +244 -244
  778. package/dist/tool/plugin/todo.js +156 -156
  779. package/dist/tool/plugin/webfetch.js +158 -158
  780. package/dist/tool/plugin/websearch.js +158 -158
  781. package/dist/tool/plugin/write.js +171 -171
  782. package/dist/tool/read-filesystem.js +116 -116
  783. package/dist/tool/runtime.js +1 -1
  784. package/dist/tool/search.js +109 -109
  785. package/dist/tool-output.js +7 -7
  786. package/dist/tool.js +161 -161
  787. package/dist/types/config/plugin/entry-observer.d.ts +1 -5
  788. package/dist/types/config.d.ts +0 -5
  789. package/dist/types/console-access.d.ts +0 -12
  790. package/dist/types/mcp/index.d.ts +1 -2
  791. package/dist/types/plugin/internal.d.ts +1 -3
  792. package/dist/usage-limits.js +96 -96
  793. package/dist/util/error-summary.js +1 -1
  794. package/dist/util/git-executable.js +3 -3
  795. package/dist/util/lazy.js +1 -1
  796. package/dist/util/slug.js +1 -1
  797. package/dist/util/token.js +1 -1
  798. package/dist/util/which.js +1 -1
  799. package/dist/util/wildcard.js +1 -1
  800. package/dist/v1/config/agent.js +5 -5
  801. package/dist/v1/config/command.js +3 -3
  802. package/dist/v1/config/mcp.js +4 -4
  803. package/dist/v1/config/migrate.js +105 -105
  804. package/dist/v1/config/permission.js +3 -3
  805. package/dist/v1/config/plugin.js +3 -3
  806. package/dist/v1/config/provider-options.js +1 -1
  807. package/dist/v1/config/provider.js +4 -4
  808. package/dist/variant.js +104 -104
  809. package/dist/vcs/patch.js +1 -1
  810. package/dist/vcs.js +102 -102
  811. package/dist/voice.js +99 -99
  812. package/dist/websearch.js +95 -95
  813. package/dist/wellknown/plugin.js +87 -87
  814. package/dist/wellknown.js +92 -92
  815. package/dist/workspace/driver.js +7 -7
  816. package/dist/workspace/sql.js +1 -1
  817. package/dist/workspace.js +93 -93
  818. package/dist/worktree/directory.js +2 -2
  819. package/dist/worktree/git.js +11 -11
  820. package/dist/worktree/sql.js +5 -5
  821. package/dist/worktree/strategies.js +102 -102
  822. package/dist/worktree.js +113 -113
  823. package/package.json +8 -8
  824. package/dist/chunks/snapshot-3pmmkb0k.js +0 -26
  825. package/dist/chunks/snapshot-6zjm2phc.js +0 -18
  826. package/dist/chunks/snapshot-7zfgnb90.js +0 -265
  827. /package/dist/chunks/{snapshot-0qkdqm5v.js → filesystem-0qkdqm5v.js} +0 -0
  828. /package/dist/chunks/{snapshot-0zkw76rk.js → filesystem-0zkw76rk.js} +0 -0
  829. /package/dist/chunks/{snapshot-108x4f4w.js → filesystem-108x4f4w.js} +0 -0
  830. /package/dist/chunks/{snapshot-17cy0kzp.js → filesystem-17cy0kzp.js} +0 -0
  831. /package/dist/chunks/{snapshot-1cnp2v09.js → filesystem-1cnp2v09.js} +0 -0
  832. /package/dist/chunks/{snapshot-1kah00gy.js → filesystem-1kah00gy.js} +0 -0
  833. /package/dist/chunks/{snapshot-24dcb14g.js → filesystem-24dcb14g.js} +0 -0
  834. /package/dist/chunks/{snapshot-2710q6r3.js → filesystem-2710q6r3.js} +0 -0
  835. /package/dist/chunks/{snapshot-2bv980vf.js → filesystem-2bv980vf.js} +0 -0
  836. /package/dist/chunks/{snapshot-2c3vjs8z.js → filesystem-2c3vjs8z.js} +0 -0
  837. /package/dist/chunks/{snapshot-359p4xyc.js → filesystem-359p4xyc.js} +0 -0
  838. /package/dist/chunks/{snapshot-3af0jn4w.js → filesystem-3af0jn4w.js} +0 -0
  839. /package/dist/chunks/{snapshot-3asan66x.js → filesystem-3asan66x.js} +0 -0
  840. /package/dist/chunks/{snapshot-3v8g72cx.js → filesystem-3v8g72cx.js} +0 -0
  841. /package/dist/chunks/{snapshot-3wcehsnq.js → filesystem-3wcehsnq.js} +0 -0
  842. /package/dist/chunks/{snapshot-43n2bw4t.js → filesystem-43n2bw4t.js} +0 -0
  843. /package/dist/chunks/{snapshot-4knz6hnm.js → filesystem-4knz6hnm.js} +0 -0
  844. /package/dist/chunks/{snapshot-4qk9sjk2.js → filesystem-4qk9sjk2.js} +0 -0
  845. /package/dist/chunks/{snapshot-4y7fprxs.js → filesystem-4y7fprxs.js} +0 -0
  846. /package/dist/chunks/{snapshot-53557ph1.js → filesystem-53557ph1.js} +0 -0
  847. /package/dist/chunks/{snapshot-550bvhaj.js → filesystem-550bvhaj.js} +0 -0
  848. /package/dist/chunks/{snapshot-5w3e23ze.js → filesystem-5w3e23ze.js} +0 -0
  849. /package/dist/chunks/{snapshot-6agm2x70.js → filesystem-6agm2x70.js} +0 -0
  850. /package/dist/chunks/{snapshot-6prwharc.js → filesystem-6prwharc.js} +0 -0
  851. /package/dist/chunks/{snapshot-6q2bdcd1.js → filesystem-6q2bdcd1.js} +0 -0
  852. /package/dist/chunks/{snapshot-7akdwqpd.js → filesystem-7akdwqpd.js} +0 -0
  853. /package/dist/chunks/{snapshot-7m9af43g.js → filesystem-7m9af43g.js} +0 -0
  854. /package/dist/chunks/{snapshot-822emrt2.js → filesystem-822emrt2.js} +0 -0
  855. /package/dist/chunks/{snapshot-84wd9syh.js → filesystem-84wd9syh.js} +0 -0
  856. /package/dist/chunks/{snapshot-88xbtdfr.js → filesystem-88xbtdfr.js} +0 -0
  857. /package/dist/chunks/{snapshot-8n3pysct.js → filesystem-8n3pysct.js} +0 -0
  858. /package/dist/chunks/{snapshot-8wj87zfr.js → filesystem-8wj87zfr.js} +0 -0
  859. /package/dist/chunks/{snapshot-9a4afbnw.js → filesystem-9a4afbnw.js} +0 -0
  860. /package/dist/chunks/{snapshot-9rqn6x4v.js → filesystem-9rqn6x4v.js} +0 -0
  861. /package/dist/chunks/{snapshot-a6k6eb26.js → filesystem-a6k6eb26.js} +0 -0
  862. /package/dist/chunks/{snapshot-af5trqkr.js → filesystem-af5trqkr.js} +0 -0
  863. /package/dist/chunks/{snapshot-afrmfg78.js → filesystem-afrmfg78.js} +0 -0
  864. /package/dist/chunks/{snapshot-aqzs7mqg.js → filesystem-aqzs7mqg.js} +0 -0
  865. /package/dist/chunks/{snapshot-atq7p7m5.js → filesystem-atq7p7m5.js} +0 -0
  866. /package/dist/chunks/{snapshot-beh6qq61.js → filesystem-beh6qq61.js} +0 -0
  867. /package/dist/chunks/{snapshot-bhmrqjy3.js → filesystem-bhmrqjy3.js} +0 -0
  868. /package/dist/chunks/{snapshot-bkyjaxrp.js → filesystem-bkyjaxrp.js} +0 -0
  869. /package/dist/chunks/{snapshot-bmr6ed5q.js → filesystem-bmr6ed5q.js} +0 -0
  870. /package/dist/chunks/{snapshot-cf4snx6d.js → filesystem-cf4snx6d.js} +0 -0
  871. /package/dist/chunks/{snapshot-cqv5kn06.js → filesystem-cqv5kn06.js} +0 -0
  872. /package/dist/chunks/{snapshot-cvy3z8tj.js → filesystem-cvy3z8tj.js} +0 -0
  873. /package/dist/chunks/{snapshot-d9fn303g.js → filesystem-d9fn303g.js} +0 -0
  874. /package/dist/chunks/{snapshot-d9jj8t3e.js → filesystem-d9jj8t3e.js} +0 -0
  875. /package/dist/chunks/{snapshot-dap0rakb.js → filesystem-dap0rakb.js} +0 -0
  876. /package/dist/chunks/{snapshot-df08tz66.js → filesystem-df08tz66.js} +0 -0
  877. /package/dist/chunks/{snapshot-dy18nga0.js → filesystem-dy18nga0.js} +0 -0
  878. /package/dist/chunks/{snapshot-e5kj55wp.js → filesystem-e5kj55wp.js} +0 -0
  879. /package/dist/chunks/{snapshot-ean2d8b5.js → filesystem-ean2d8b5.js} +0 -0
  880. /package/dist/chunks/{snapshot-ec1grn59.js → filesystem-ec1grn59.js} +0 -0
  881. /package/dist/chunks/{snapshot-emrn6kk6.js → filesystem-emrn6kk6.js} +0 -0
  882. /package/dist/chunks/{snapshot-f0mxakyp.js → filesystem-f0mxakyp.js} +0 -0
  883. /package/dist/chunks/{snapshot-f6n9ztr4.js → filesystem-f6n9ztr4.js} +0 -0
  884. /package/dist/chunks/{snapshot-faypxj3z.js → filesystem-faypxj3z.js} +0 -0
  885. /package/dist/chunks/{snapshot-fd410y7t.js → filesystem-fd410y7t.js} +0 -0
  886. /package/dist/chunks/{snapshot-fkpq3x5p.js → filesystem-fkpq3x5p.js} +0 -0
  887. /package/dist/chunks/{snapshot-g4wezp1m.js → filesystem-g4wezp1m.js} +0 -0
  888. /package/dist/chunks/{snapshot-g86h250q.js → filesystem-g86h250q.js} +0 -0
  889. /package/dist/chunks/{snapshot-gebd4c9n.js → filesystem-gebd4c9n.js} +0 -0
  890. /package/dist/chunks/{snapshot-gftt206x.js → filesystem-gftt206x.js} +0 -0
  891. /package/dist/chunks/{snapshot-hcxmzztb.js → filesystem-hcxmzztb.js} +0 -0
  892. /package/dist/chunks/{snapshot-hk9envan.js → filesystem-hk9envan.js} +0 -0
  893. /package/dist/chunks/{snapshot-j2ntwpah.js → filesystem-j2ntwpah.js} +0 -0
  894. /package/dist/chunks/{snapshot-j5zkgpj8.js → filesystem-j5zkgpj8.js} +0 -0
  895. /package/dist/chunks/{snapshot-jjkms2e6.js → filesystem-jjkms2e6.js} +0 -0
  896. /package/dist/chunks/{snapshot-jr7sbwjy.js → filesystem-jr7sbwjy.js} +0 -0
  897. /package/dist/chunks/{snapshot-jwfs4k6c.js → filesystem-jwfs4k6c.js} +0 -0
  898. /package/dist/chunks/{snapshot-jwr30sdr.js → filesystem-jwr30sdr.js} +0 -0
  899. /package/dist/chunks/{snapshot-jzg6c2d5.js → filesystem-jzg6c2d5.js} +0 -0
  900. /package/dist/chunks/{snapshot-m18g726c.js → filesystem-m18g726c.js} +0 -0
  901. /package/dist/chunks/{snapshot-mp448xyj.js → filesystem-mp448xyj.js} +0 -0
  902. /package/dist/chunks/{snapshot-msx8hqn2.js → filesystem-msx8hqn2.js} +0 -0
  903. /package/dist/chunks/{snapshot-n05xt0ee.js → filesystem-n05xt0ee.js} +0 -0
  904. /package/dist/chunks/{snapshot-n3j8tn72.js → filesystem-n3j8tn72.js} +0 -0
  905. /package/dist/chunks/{snapshot-nh4v3znn.js → filesystem-nh4v3znn.js} +0 -0
  906. /package/dist/chunks/{snapshot-njntx4h6.js → filesystem-njntx4h6.js} +0 -0
  907. /package/dist/chunks/{snapshot-p71gwv9c.js → filesystem-p71gwv9c.js} +0 -0
  908. /package/dist/chunks/{snapshot-q3sfg36h.js → filesystem-q3sfg36h.js} +0 -0
  909. /package/dist/chunks/{snapshot-q74kybfr.js → filesystem-q74kybfr.js} +0 -0
  910. /package/dist/chunks/{snapshot-qb87gjwd.js → filesystem-qb87gjwd.js} +0 -0
  911. /package/dist/chunks/{snapshot-qfa1cgps.js → filesystem-qfa1cgps.js} +0 -0
  912. /package/dist/chunks/{snapshot-qg3g05ea.js → filesystem-qg3g05ea.js} +0 -0
  913. /package/dist/chunks/{snapshot-qrg20bc0.js → filesystem-qrg20bc0.js} +0 -0
  914. /package/dist/chunks/{snapshot-rcb2kzg1.js → filesystem-rcb2kzg1.js} +0 -0
  915. /package/dist/chunks/{snapshot-sdp7kfr6.js → filesystem-sdp7kfr6.js} +0 -0
  916. /package/dist/chunks/{snapshot-ssg3fenm.js → filesystem-ssg3fenm.js} +0 -0
  917. /package/dist/chunks/{snapshot-syrav9an.js → filesystem-syrav9an.js} +0 -0
  918. /package/dist/chunks/{snapshot-t03h4f5z.js → filesystem-t03h4f5z.js} +0 -0
  919. /package/dist/chunks/{snapshot-ty7weeps.js → filesystem-ty7weeps.js} +0 -0
  920. /package/dist/chunks/{snapshot-ve7vex1e.js → filesystem-ve7vex1e.js} +0 -0
  921. /package/dist/chunks/{snapshot-vtarvj67.js → filesystem-vtarvj67.js} +0 -0
  922. /package/dist/chunks/{snapshot-w803qqfp.js → filesystem-w803qqfp.js} +0 -0
  923. /package/dist/chunks/{snapshot-wc3fc9cn.js → filesystem-wc3fc9cn.js} +0 -0
  924. /package/dist/chunks/{snapshot-wer8tq1h.js → filesystem-wer8tq1h.js} +0 -0
  925. /package/dist/chunks/{snapshot-wtztk69x.js → filesystem-wtztk69x.js} +0 -0
  926. /package/dist/chunks/{snapshot-x0ckcb58.js → filesystem-x0ckcb58.js} +0 -0
  927. /package/dist/chunks/{snapshot-x4th4bpe.js → filesystem-x4th4bpe.js} +0 -0
  928. /package/dist/chunks/{snapshot-x61499pn.js → filesystem-x61499pn.js} +0 -0
  929. /package/dist/chunks/{snapshot-y44na4kk.js → filesystem-y44na4kk.js} +0 -0
  930. /package/dist/chunks/{snapshot-y8f7s663.js → filesystem-y8f7s663.js} +0 -0
  931. /package/dist/chunks/{snapshot-ygaqb7jw.js → filesystem-ygaqb7jw.js} +0 -0
  932. /package/dist/chunks/{snapshot-z0h12gs8.js → filesystem-z0h12gs8.js} +0 -0
  933. /package/dist/chunks/{snapshot-z5v4ffb3.js → filesystem-z5v4ffb3.js} +0 -0
  934. /package/dist/chunks/{snapshot-z9919s4g.js → filesystem-z9919s4g.js} +0 -0
  935. /package/dist/chunks/{snapshot-zxpyjp51.js → filesystem-zxpyjp51.js} +0 -0
@@ -1,26 +1,26 @@
1
1
  import {
2
- Service71,
3
- node75
4
- } from "./snapshot-q7dza1tc.js";
2
+ Service64,
3
+ node65
4
+ } from "./filesystem-181902zs.js";
5
5
  import {
6
- Service65,
6
+ Service66,
7
7
  node68
8
- } from "./snapshot-dt2qxtqs.js";
8
+ } from "./filesystem-jz2wm8q8.js";
9
9
  import {
10
10
  SessionSchema2
11
- } from "./snapshot-72dfj4ss.js";
11
+ } from "./filesystem-weqc7sb9.js";
12
12
  import {
13
13
  __export
14
- } from "./snapshot-9rqn6x4v.js";
14
+ } from "./filesystem-9rqn6x4v.js";
15
15
 
16
16
  // src/session/runner/model.ts
17
17
  var exports_model = {};
18
18
  __export(exports_model, {
19
19
  ModelNotSelectedError: () => ModelNotSelectedError2,
20
20
  ModelUnavailableError: () => ModelUnavailableError2,
21
- Service: () => Service64,
21
+ Service: () => Service59,
22
22
  SessionRunnerModel: () => exports_model,
23
- node: () => node67,
23
+ node: () => node60,
24
24
  resolved: () => resolved2
25
25
  });
26
26
  import { makeLocationNode } from "@opencode/util/effect/app-node";
@@ -43,7 +43,7 @@ class ModelUnavailableError2 extends Schema.TaggedError()("SessionRunnerModel.Mo
43
43
  }
44
44
  }
45
45
 
46
- class Service64 extends Context.Service()("@opencode/SessionRunnerModel") {
46
+ class Service59 extends Context.Service()("@opencode/SessionRunnerModel") {
47
47
  }
48
48
  var resolved2 = (model, options) => ({
49
49
  model,
@@ -58,10 +58,10 @@ var resolved2 = (model, options) => ({
58
58
  compaction: options.compaction,
59
59
  transport: options.transport
60
60
  });
61
- var layer = Layer.effect(Service64, Effect.gen(function* () {
62
- const resolver = yield* Service65;
63
- const agents = yield* Service71;
64
- return Service64.of({
61
+ var layer = Layer.effect(Service59, Effect.gen(function* () {
62
+ const resolver = yield* Service66;
63
+ const agents = yield* Service64;
64
+ return Service59.of({
65
65
  resolve: Effect.fn("SessionRunnerModel.resolve")(function* (session, available) {
66
66
  if (!session.model) {
67
67
  const agent = (yield* agents.select(session.agent)).info?.model;
@@ -81,6 +81,6 @@ var layer = Layer.effect(Service64, Effect.gen(function* () {
81
81
  })
82
82
  });
83
83
  }));
84
- var node67 = makeLocationNode({ service: Service64, layer, deps: [node68, node75] });
84
+ var node60 = makeLocationNode({ service: Service59, layer, deps: [node68, node65] });
85
85
 
86
- export { ModelNotSelectedError2, ModelUnavailableError2, Service64, resolved2, node67, exports_model };
86
+ export { ModelNotSelectedError2, ModelUnavailableError2, Service59, resolved2, node60, exports_model };
@@ -1,30 +1,30 @@
1
1
  import {
2
2
  Service92,
3
- node96
4
- } from "./snapshot-vhha1j41.js";
3
+ node95
4
+ } from "./filesystem-1na8pg7t.js";
5
5
  import {
6
6
  SessionTable2,
7
7
  SessionMessageTable2
8
- } from "./snapshot-mb7mbhnz.js";
8
+ } from "./filesystem-mb7mbhnz.js";
9
9
  import {
10
10
  decodeMessageRows2,
11
11
  decodeMessageRowsWithRefs2,
12
12
  load6
13
- } from "./snapshot-dbvjbd3r.js";
13
+ } from "./filesystem-jvxqx3e4.js";
14
14
  import {
15
15
  fromRow2
16
- } from "./snapshot-et4v4qpp.js";
16
+ } from "./filesystem-55g2q5p5.js";
17
17
  import {
18
18
  __export
19
- } from "./snapshot-9rqn6x4v.js";
19
+ } from "./filesystem-9rqn6x4v.js";
20
20
 
21
21
  // src/session/store.ts
22
22
  var exports_store = {};
23
23
  __export(exports_store, {
24
24
  ListInput: () => ListInput3,
25
- Service: () => Service68,
25
+ Service: () => Service62,
26
26
  SessionStore: () => exports_store,
27
- node: () => node71
27
+ node: () => node63
28
28
  });
29
29
  import { and, asc, desc, eq, gt, isNotNull, isNull, like, lt, notInArray, or, sql } from "drizzle-orm";
30
30
  import { Context, Effect, Layer, Schema } from "effect";
@@ -54,9 +54,9 @@ var ListProjectInput = Schema.Struct({
54
54
  var ListAllInput = Schema.Struct(ListInputBase);
55
55
  var ListInput3 = Schema.Union([ListDirectoryInput, ListProjectInput, ListAllInput]);
56
56
 
57
- class Service68 extends Context.Service()("@opencode/SessionStore") {
57
+ class Service62 extends Context.Service()("@opencode/SessionStore") {
58
58
  }
59
- var layer = Layer.effect(Service68, Effect.gen(function* () {
59
+ var layer = Layer.effect(Service62, Effect.gen(function* () {
60
60
  const { db } = yield* Service92;
61
61
  const messageRows = Effect.fnUntraced(function* (input) {
62
62
  const direction = input.cursor?.direction ?? "next";
@@ -71,7 +71,7 @@ var layer = Layer.effect(Service68, Effect.gen(function* () {
71
71
  return direction === "previous" ? rows.toReversed() : rows;
72
72
  });
73
73
  const messageRow = (messageID) => db.select().from(SessionMessageTable2).where(eq(SessionMessageTable2.id, messageID)).get().pipe(Effect.orDie);
74
- return Service68.of({
74
+ return Service62.of({
75
75
  get: Effect.fnUntraced(function* (sessionID) {
76
76
  const row = yield* db.select().from(SessionTable2).where(eq(SessionTable2.id, sessionID)).get().pipe(Effect.orDie);
77
77
  return row ? fromRow2(row) : undefined;
@@ -143,6 +143,6 @@ var layer = Layer.effect(Service68, Effect.gen(function* () {
143
143
  })
144
144
  });
145
145
  }));
146
- var node71 = makeGlobalNode({ service: Service68, layer, deps: [node96] });
146
+ var node63 = makeGlobalNode({ service: Service62, layer, deps: [node95] });
147
147
 
148
- export { ListInput3, Service68, node71, exports_store };
148
+ export { ListInput3, Service62, node63, exports_store };
@@ -1,62 +1,62 @@
1
1
  import {
2
2
  toolFailure2
3
- } from "./snapshot-z0h12gs8.js";
3
+ } from "./filesystem-z0h12gs8.js";
4
4
  import {
5
5
  Ref3,
6
- Service76
7
- } from "./snapshot-c9tf7z6m.js";
6
+ Service72
7
+ } from "./filesystem-bh17vazq.js";
8
8
  import {
9
- Service73
10
- } from "./snapshot-wkmc7x5w.js";
9
+ Service69
10
+ } from "./filesystem-yqhvz5dd.js";
11
11
  import {
12
12
  observe2
13
- } from "./snapshot-mm06edep.js";
13
+ } from "./filesystem-tvtps2q9.js";
14
14
  import {
15
- Service50
16
- } from "./snapshot-xbwrw8zy.js";
15
+ Service82
16
+ } from "./filesystem-nqy8vhw1.js";
17
17
  import {
18
18
  SessionMessage2
19
- } from "./snapshot-gftt206x.js";
19
+ } from "./filesystem-gftt206x.js";
20
20
  import {
21
21
  invocation2,
22
- Service66
23
- } from "./snapshot-0fesqxmw.js";
22
+ Service61
23
+ } from "./filesystem-xep6jqgx.js";
24
24
  import {
25
- Service49
26
- } from "./snapshot-zg9g3f9s.js";
25
+ Service17
26
+ } from "./filesystem-cdnzabwv.js";
27
27
  import {
28
- Service21
29
- } from "./snapshot-7jntc4vd.js";
28
+ Service22
29
+ } from "./filesystem-4d76xdka.js";
30
30
  import {
31
31
  text2
32
- } from "./snapshot-8b3vzgkx.js";
32
+ } from "./filesystem-8b3vzgkx.js";
33
33
  import {
34
- Service70
35
- } from "./snapshot-7knp8k57.js";
34
+ Service65
35
+ } from "./filesystem-n084kdnf.js";
36
36
  import {
37
37
  detect2
38
- } from "./snapshot-4pyp9zr9.js";
38
+ } from "./filesystem-4pyp9zr9.js";
39
39
  import {
40
- Service23
41
- } from "./snapshot-6fp8sfjz.js";
40
+ Service24
41
+ } from "./filesystem-cmm5btky.js";
42
42
  import {
43
43
  collectBoundedResponseBody2
44
- } from "./snapshot-3v8g72cx.js";
44
+ } from "./filesystem-3v8g72cx.js";
45
45
  import {
46
46
  __export
47
- } from "./snapshot-9rqn6x4v.js";
47
+ } from "./filesystem-9rqn6x4v.js";
48
48
 
49
49
  // src/tool/plugin/image-generate.ts
50
50
  var exports_image_generate = {};
51
51
  __export(exports_image_generate, {
52
52
  ImageGenerateTool: () => exports_image_generate,
53
- Input: () => Input3,
53
+ Input: () => Input2,
54
54
  MAX_INPUT_BYTES: () => MAX_INPUT_BYTES2,
55
55
  Output: () => Output2,
56
- Plugin: () => Plugin25,
56
+ Plugin: () => Plugin38,
57
57
  defaultModel: () => defaultModel2,
58
- description: () => description4,
59
- name: () => name3
58
+ description: () => description3,
59
+ name: () => name2
60
60
  });
61
61
  import path from "path";
62
62
  import { ToolFailure } from "@opencode/ai/effect";
@@ -64,7 +64,7 @@ import { Identifier } from "@opencode/schema/identifier";
64
64
  import { Global } from "@opencode/util/global";
65
65
  import { Duration, Effect, Schema, Scope, Stream } from "effect";
66
66
  import { HttpClient, HttpClientRequest, HttpClientResponse } from "effect/http";
67
- var name3 = "experimental_image_generate";
67
+ var name2 = "experimental_image_generate";
68
68
  var MAX_INPUT_BYTES2 = 20 * 1024 * 1024;
69
69
  var DOWNLOAD_TIMEOUT = Duration.seconds(30);
70
70
  var GENERATE_TIMEOUT = Duration.minutes(30);
@@ -75,7 +75,7 @@ var EXTENSIONS = {
75
75
  "image/webp": ".webp",
76
76
  "image/gif": ".gif"
77
77
  };
78
- var description4 = [
78
+ var description3 = [
79
79
  "Generates a new image, or edits existing ones.",
80
80
  "Only call this when the user asks you to create or edit an image. If you think an image would help but the user didn't ask for one, ask them first instead of generating it.",
81
81
  "Images you pass are used as the source to edit, or as references for style and subject.",
@@ -84,7 +84,7 @@ var description4 = [
84
84
  "Don't repeat a request unless the user asks."
85
85
  ].join(`
86
86
  `);
87
- var Input3 = Schema.Struct({
87
+ var Input2 = Schema.Struct({
88
88
  prompt: Schema.String.check(Schema.isMinLength(1)).annotate({
89
89
  description: "What to create, or for edits, what to change. Be specific about subject, style, composition and any text that should appear in the image."
90
90
  }),
@@ -103,20 +103,20 @@ var Output2 = Schema.Struct({
103
103
  path: Schema.String.annotate({ description: "Where the image is saved, without its extension" }),
104
104
  model: Schema.String.annotate({ description: "providerID/modelID" })
105
105
  });
106
- var Plugin25 = {
106
+ var Plugin38 = {
107
107
  id: "opencode.tool.image-generate",
108
108
  effect: Effect.fn("ImageGenerateTool.Plugin")(function* (ctx) {
109
- const access = yield* Service49;
110
- const environment = yield* Service50;
111
- const generate = yield* Service21;
109
+ const access = yield* Service17;
110
+ const environment = yield* Service82;
111
+ const generate = yield* Service22;
112
112
  const global = yield* Global.Service;
113
113
  const http = yield* HttpClient.HttpClient;
114
- const config = yield* Service73;
115
- const jobs = yield* Service70;
114
+ const config = yield* Service69;
115
+ const jobs = yield* Service65;
116
116
  const scope = yield* Scope.Scope;
117
- const sessions = yield* Service23;
118
- const models = yield* Service76;
119
- const permission = yield* Service66;
117
+ const sessions = yield* Service24;
118
+ const models = yield* Service72;
119
+ const permission = yield* Service61;
120
120
  const resolveModel = Effect.fn("ImageGenerateTool.resolveModel")(function* (input, sessionID, images) {
121
121
  const available = yield* models.available(["image"]);
122
122
  if (!input) {
@@ -201,7 +201,7 @@ var Plugin25 = {
201
201
  state: info.status,
202
202
  body: info.status === "completed" ? info.output ?? "" : info.status === "error" ? info.error ?? `Image request failed for ${input.file}.` : `Image request for ${input.file} was cancelled.`
203
203
  }),
204
- metadata: { source: name3, jobID: input.id, state: info.status, path: input.file }
204
+ metadata: { source: name2, jobID: input.id, state: info.status, path: input.file }
205
205
  });
206
206
  yield* jobs.completeBackground(input.notificationID);
207
207
  }, Effect.forkIn(scope, { startImmediately: true }));
@@ -220,10 +220,10 @@ var Plugin25 = {
220
220
  if (!enabled || imageGenerate(loaded.entries) === false)
221
221
  return;
222
222
  editor.add({
223
- name: name3,
223
+ name: name2,
224
224
  options: { codemode: false },
225
- description: description4,
226
- input: Input3,
225
+ description: description3,
226
+ input: Input2,
227
227
  output: Output2,
228
228
  execute: (input, context) => Effect.gen(function* () {
229
229
  const resolved = yield* resolveModel(input.model, context.sessionID, input.images !== undefined);
@@ -233,7 +233,7 @@ var Plugin25 = {
233
233
  const target = input.path ? yield* access.resolve({ path: input.path, kind: "file" }) : undefined;
234
234
  const stem = target ? target.absolute.slice(0, target.absolute.length - path.extname(target.absolute).length) : path.join(global.tmp, "images", context.sessionID, `image_${Identifier.create(false)}`);
235
235
  yield* permission.assert({
236
- action: name3,
236
+ action: name2,
237
237
  resources: [ref],
238
238
  save: ["*"],
239
239
  metadata: { ...input, model: ref },
@@ -287,7 +287,7 @@ Use the read tool on this path to view the image.`;
287
287
  yield* jobs.start({
288
288
  id,
289
289
  notificationID,
290
- type: name3,
290
+ type: name2,
291
291
  title: input.prompt,
292
292
  metadata: { sessionID: context.sessionID, path: stem, model: ref },
293
293
  recovery: { kind: "image", sessionID: context.sessionID, path: stem, model: ref },
@@ -326,4 +326,4 @@ function acceptsImages(model) {
326
326
  return model.capabilities.input.some((item) => item.startsWith("image"));
327
327
  }
328
328
 
329
- export { name3, MAX_INPUT_BYTES2, description4, Input3, Output2, Plugin25, defaultModel2, exports_image_generate };
329
+ export { name2, MAX_INPUT_BYTES2, description3, Input2, Output2, Plugin38, defaultModel2, exports_image_generate };
@@ -1,34 +1,34 @@
1
1
  import {
2
2
  Service92,
3
- node96
4
- } from "./snapshot-vhha1j41.js";
3
+ node95
4
+ } from "./filesystem-1na8pg7t.js";
5
5
  import {
6
- Service88,
6
+ Service89,
7
7
  node92
8
- } from "./snapshot-0w75ztav.js";
8
+ } from "./filesystem-v7rmebyy.js";
9
9
  import {
10
10
  CredentialTable2
11
- } from "./snapshot-pknna89w.js";
11
+ } from "./filesystem-pknna89w.js";
12
12
  import {
13
13
  from2
14
- } from "./snapshot-m1714858.js";
14
+ } from "./filesystem-m1714858.js";
15
15
  import {
16
16
  __export
17
- } from "./snapshot-9rqn6x4v.js";
17
+ } from "./filesystem-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: () => Event18,
23
+ Event: () => Event17,
24
24
  External: () => External2,
25
- ID: () => ID19,
25
+ ID: () => ID17,
26
26
  Info: () => Info26,
27
27
  Key: () => Key4,
28
28
  OAuth: () => OAuth3,
29
- Service: () => Service79,
29
+ Service: () => Service75,
30
30
  Value: () => Value2,
31
- node: () => node83
31
+ node: () => node77
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 ID19 = Credential.ID;
40
+ var ID17 = 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 Event18 = Credential.Event;
45
+ var Event17 = Credential.Event;
46
46
 
47
47
  class Info26 extends Schema.Class("Credential.Info")({
48
- id: ID19,
48
+ id: ID17,
49
49
  integrationID: Integration.ID,
50
50
  label: Schema.String,
51
51
  value: Value2
52
52
  }) {
53
53
  }
54
54
 
55
- class Service79 extends Context.Service()("@opencode/Credential") {
55
+ class Service75 extends Context.Service()("@opencode/Credential") {
56
56
  }
57
- var layer = Layer.effect(Service79, Effect.gen(function* () {
57
+ var layer = Layer.effect(Service75, Effect.gen(function* () {
58
58
  const db = (yield* Service92).db;
59
- const bus = yield* Service88;
59
+ const bus = yield* Service89;
60
60
  const flock = yield* EffectFlock.Service;
61
61
  const scope = yield* Effect.scope;
62
62
  const pending = new Map;
@@ -83,7 +83,7 @@ var layer = Layer.effect(Service79, 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 Service79.of({
86
+ return Service75.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)
@@ -100,7 +100,7 @@ var layer = Layer.effect(Service79, Effect.gen(function* () {
100
100
  }),
101
101
  create: Effect.fn("Credential.create")(function* (input) {
102
102
  const credential = new Info26({
103
- id: input.id ?? ID19.create(),
103
+ id: input.id ?? ID17.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(Service79, Effect.gen(function* () {
130
130
  type: credential.value.type,
131
131
  active: activated
132
132
  });
133
- yield* bus.publish(Event18.Updated, {}, { global: true });
133
+ yield* bus.publish(Event17.Updated, {}, { global: true });
134
134
  if (activated)
135
- yield* bus.publish(Event18.Switched, { integrationID: credential.integrationID, credentialID: credential.id }, { global: true });
135
+ yield* bus.publish(Event17.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(Service79, 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(Event18.Switched, { integrationID, credentialID: id }, { global: true });
151
+ yield* bus.publish(Event17.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(Service79, 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(Event18.Updated, {}, { global: true });
176
+ yield* bus.publish(Event17.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(Service79, Effect.gen(function* () {
201
201
  active: removed.switched,
202
202
  ...removed.switched ? { replacementID: removed.credentialID } : {}
203
203
  });
204
- yield* bus.publish(Event18.Updated, {}, { global: true });
204
+ yield* bus.publish(Event17.Updated, {}, { global: true });
205
205
  if (removed.switched)
206
- yield* bus.publish(Event18.Switched, { integrationID: removed.integrationID, credentialID: removed.credentialID }, { global: true });
206
+ yield* bus.publish(Event17.Switched, { integrationID: removed.integrationID, credentialID: removed.credentialID }, { global: true });
207
207
  })
208
208
  });
209
209
  }));
210
- var node83 = makeGlobalNode({ service: Service79, layer, deps: [node96, node92, EffectFlock.node] });
210
+ var node77 = makeGlobalNode({ service: Service75, layer, deps: [node95, node92, EffectFlock.node] });
211
211
 
212
- export { ID19, OAuth3, Key4, External2, Value2, Event18, Info26, Service79, node83, exports_credential };
212
+ export { ID17, OAuth3, Key4, External2, Value2, Event17, Info26, Service75, node77, exports_credential };
@@ -1,51 +1,51 @@
1
1
  import {
2
- Service50,
3
- node53
4
- } from "./snapshot-xbwrw8zy.js";
2
+ Service82,
3
+ node84
4
+ } from "./filesystem-nqy8vhw1.js";
5
5
  import {
6
6
  invocation2,
7
- Service66,
8
- node69
9
- } from "./snapshot-0fesqxmw.js";
10
- import {
11
- Service49,
12
- node52
13
- } from "./snapshot-zg9g3f9s.js";
7
+ Service61,
8
+ node62
9
+ } from "./filesystem-xep6jqgx.js";
14
10
  import {
15
11
  Service17,
12
+ node19
13
+ } from "./filesystem-cdnzabwv.js";
14
+ import {
15
+ Service78,
16
16
  readOptionalText2,
17
17
  syncTextBom2,
18
- node19
19
- } from "./snapshot-3a8zszvc.js";
18
+ node80
19
+ } from "./filesystem-n9vcj540.js";
20
20
  import {
21
- Service18,
22
- node20
23
- } from "./snapshot-qawse3yx.js";
21
+ Service16,
22
+ node18
23
+ } from "./filesystem-s6v5r3nd.js";
24
24
  import {
25
25
  fileDiff2
26
- } from "./snapshot-6prwharc.js";
26
+ } from "./filesystem-6prwharc.js";
27
27
  import {
28
28
  __export
29
- } from "./snapshot-9rqn6x4v.js";
29
+ } from "./filesystem-9rqn6x4v.js";
30
30
 
31
31
  // src/file-write.ts
32
32
  var exports_file_write = {};
33
33
  __export(exports_file_write, {
34
34
  FileWrite: () => exports_file_write,
35
- Service: () => Service12,
36
- node: () => node14
35
+ Service: () => Service15,
36
+ node: () => node17
37
37
  });
38
38
  import { makeLocationNode } from "@opencode/util/effect/app-node";
39
39
  import { Bom } from "@opencode/util/bom";
40
40
  import { Context, Effect, Layer } from "effect";
41
- class Service12 extends Context.Service()("@opencode/FileWrite") {
41
+ class Service15 extends Context.Service()("@opencode/FileWrite") {
42
42
  }
43
- var layer = Layer.effect(Service12, Effect.gen(function* () {
44
- const access = yield* Service49;
45
- const environment = yield* Service50;
46
- const fileMutation = yield* Service17;
47
- const formatter = yield* Service18;
48
- const permission = yield* Service66;
43
+ var layer = Layer.effect(Service15, Effect.gen(function* () {
44
+ const access = yield* Service17;
45
+ const environment = yield* Service82;
46
+ const fileMutation = yield* Service78;
47
+ const formatter = yield* Service16;
48
+ const permission = yield* Service61;
49
49
  const target = Effect.fn("FileWrite.target")(function* (file, context) {
50
50
  const target = yield* access.resolve({ path: file, kind: "file" });
51
51
  yield* access.authorizeExternal([target], context);
@@ -75,12 +75,12 @@ var layer = Layer.effect(Service12, Effect.gen(function* () {
75
75
  yield* authorize(resolved, context, fileDiff2(resolved.resource, current?.text ?? "", Bom.split(input.content).text, current ? "modified" : "added"));
76
76
  return yield* commit(resolved, input.content);
77
77
  });
78
- return Service12.of({ target, authorize, commit, write });
78
+ return Service15.of({ target, authorize, commit, write });
79
79
  }));
80
- var node14 = makeLocationNode({
81
- service: Service12,
80
+ var node17 = makeLocationNode({
81
+ service: Service15,
82
82
  layer,
83
- deps: [node53, node52, node19, node20, node69]
83
+ deps: [node84, node19, node80, node18, node62]
84
84
  });
85
85
 
86
- export { Service12, node14, exports_file_write };
86
+ export { Service15, node17, exports_file_write };
@@ -1,29 +1,29 @@
1
1
  import {
2
- ID17,
2
+ ID15,
3
3
  mergeOverlay2
4
- } from "./snapshot-d2awp3gt.js";
4
+ } from "./filesystem-skbh59st.js";
5
5
  import {
6
- ID16,
6
+ ID14,
7
7
  VariantID2,
8
8
  Info22,
9
9
  compatibility2
10
- } from "./snapshot-c9tf7z6m.js";
10
+ } from "./filesystem-bh17vazq.js";
11
11
  import {
12
12
  __export
13
- } from "./snapshot-9rqn6x4v.js";
13
+ } from "./filesystem-9rqn6x4v.js";
14
14
 
15
15
  // src/modal/models.ts
16
- var exports_models2 = {};
17
- __export(exports_models2, {
18
- ModalModels: () => exports_models2,
19
- derive: () => derive3,
20
- get: () => get3,
21
- load: () => load5
16
+ var exports_models = {};
17
+ __export(exports_models, {
18
+ ModalModels: () => exports_models,
19
+ derive: () => derive2,
20
+ get: () => get2,
21
+ load: () => load4
22
22
  });
23
23
  import { Money } from "@opencode/schema/money";
24
24
  import { Effect, Option, Schema } from "effect";
25
25
  import { HttpClient, HttpClientRequest, HttpClientResponse } from "effect/http";
26
- var providerID = ID17.make("modal");
26
+ var providerID = ID15.make("modal");
27
27
  var ReasoningOption = Schema.Struct({
28
28
  type: Schema.Literal("effort"),
29
29
  values: Schema.Array(Schema.NullOr(Schema.String))
@@ -54,22 +54,22 @@ var RemoteModel = Schema.Struct({
54
54
  });
55
55
  var Response = Schema.Struct({ data: Schema.Array(Schema.Unknown) });
56
56
  var decodeModel = Schema.decodeUnknownOption(RemoteModel);
57
- function get3(http, baseURL, apiKey, existing) {
58
- return load5(http, baseURL, apiKey).pipe(Effect.map((remote) => derive3(baseURL, remote, existing)));
57
+ function get2(http, baseURL, apiKey, existing) {
58
+ return load4(http, baseURL, apiKey).pipe(Effect.map((remote) => derive2(baseURL, remote, existing)));
59
59
  }
60
- var load5 = Effect.fn("ModalModels.load")(function* (http, baseURL, apiKey) {
60
+ var load4 = Effect.fn("ModalModels.load")(function* (http, baseURL, apiKey) {
61
61
  const response = yield* HttpClient.filterStatusOk(http).execute(HttpClientRequest.get(`${baseURL.replace(/\/+$/, "")}/models`).pipe(HttpClientRequest.bearerToken(apiKey))).pipe(Effect.flatMap(HttpClientResponse.schemaBodyJson(Response)), Effect.timeout("3 seconds"));
62
62
  return response.data.flatMap((raw) => {
63
63
  const model = Option.getOrUndefined(decodeModel(raw));
64
64
  return model ? [model] : [];
65
65
  });
66
66
  });
67
- function derive3(baseURL, remote, existing) {
67
+ function derive2(baseURL, remote, existing) {
68
68
  const templates = new Map(existing.map((model) => [model.id, model]));
69
69
  const result = new Map;
70
70
  for (const item of remote) {
71
- const template = templates.get(ID16.make(item.base_model_id ?? item.hugging_face_id ?? item.id));
72
- const id = ID16.make(item.id);
71
+ const template = templates.get(ID14.make(item.base_model_id ?? item.hugging_face_id ?? item.id));
72
+ const id = ID14.make(item.id);
73
73
  result.set(id, build(id, item, baseURL, template));
74
74
  }
75
75
  return result;
@@ -90,7 +90,7 @@ function build(id, remote, baseURL, previous) {
90
90
  return Info22.make({
91
91
  ...Info22.default(providerID, id),
92
92
  id,
93
- modelID: ID16.make(remote.id),
93
+ modelID: ID14.make(remote.id),
94
94
  providerID,
95
95
  name: remote.name ?? previous?.name ?? remote.id,
96
96
  family: previous?.family,
@@ -137,4 +137,4 @@ function variants(remote) {
137
137
  return [...seen.values()];
138
138
  }
139
139
 
140
- export { get3, load5, derive3, exports_models2 };
140
+ export { get2, load4, derive2, exports_models };