@opencode/core 0.0.0-dev-21020 → 0.0.0-dev-21022

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 (788) hide show
  1. package/dist/account/sql.js +1 -1
  2. package/dist/agent.js +83 -83
  3. package/dist/aisdk-native.js +91 -91
  4. package/dist/aisdk.js +96 -96
  5. package/dist/app.js +5 -5
  6. package/dist/bus.js +75 -75
  7. package/dist/chunks/{git-0gdmqesm.js → generate-02nrjc1r.js} +8 -8
  8. package/dist/chunks/{git-6cdy90xd.js → generate-03qpgtxm.js} +39 -39
  9. package/dist/chunks/{git-h5p5sqw4.js → generate-08xsmh6n.js} +3 -3
  10. package/dist/chunks/{git-qsy2hnp3.js → generate-0a8ksa24.js} +10 -10
  11. package/dist/chunks/{git-85wq36yf.js → generate-0crr0gfc.js} +19 -19
  12. package/dist/chunks/{git-hfbyhya8.js → generate-0d5fjz2h.js} +10 -10
  13. package/dist/chunks/{git-4nj4bn9q.js → generate-0jq9fyba.js} +9 -9
  14. package/dist/chunks/{git-1qqnj077.js → generate-0sg4sx3g.js} +43 -43
  15. package/dist/chunks/{git-0vbcp93d.js → generate-0vbcp93d.js} +2 -2
  16. package/dist/chunks/{git-zz7jnkzn.js → generate-0ywb27hw.js} +24 -24
  17. package/dist/chunks/{git-2e7f9scb.js → generate-1eg42xax.js} +24 -24
  18. package/dist/chunks/{git-wjr9rjd7.js → generate-1ffvrpkg.js} +9 -9
  19. package/dist/chunks/{git-akmhe6es.js → generate-1stxgd8c.js} +16 -16
  20. package/dist/chunks/{git-hz1jhskc.js → generate-1w8fdk0d.js} +10 -10
  21. package/dist/chunks/{git-04wnsr0b.js → generate-1wqw6d7n.js} +7 -7
  22. package/dist/chunks/{git-fanhrq7d.js → generate-2fkkh717.js} +13 -13
  23. package/dist/chunks/{git-9hq9njac.js → generate-2hk2ydh2.js} +3 -3
  24. package/dist/chunks/{git-2k8khapm.js → generate-2k8khapm.js} +1 -1
  25. package/dist/chunks/{git-yssqz2tb.js → generate-2mr82eke.js} +4 -4
  26. package/dist/chunks/{git-6h9ztbaz.js → generate-2zq4dj3s.js} +19 -19
  27. package/dist/chunks/{git-2m90p0f2.js → generate-319jyy1m.js} +17 -17
  28. package/dist/chunks/{git-dvzj1xmf.js → generate-32gpd1xw.js} +10 -10
  29. package/dist/chunks/generate-38rcd1wy.js +26 -0
  30. package/dist/chunks/{git-1426e4tb.js → generate-3cb4vsbh.js} +35 -35
  31. package/dist/chunks/{git-3fc6dm20.js → generate-3fc6dm20.js} +1 -1
  32. package/dist/chunks/{git-3hepkmqq.js → generate-3hepkmqq.js} +1 -1
  33. package/dist/chunks/{git-3hwn7j4h.js → generate-3hwn7j4h.js} +2 -2
  34. package/dist/chunks/{git-sg6pmba3.js → generate-3pm9ry58.js} +11 -11
  35. package/dist/chunks/{git-3smtnn6g.js → generate-3smtnn6g.js} +1 -1
  36. package/dist/chunks/{git-3tvqynh2.js → generate-3tvqynh2.js} +1 -1
  37. package/dist/chunks/{git-3zsf4n22.js → generate-3zsf4n22.js} +1 -1
  38. package/dist/chunks/{git-77sc6xgt.js → generate-457s9w80.js} +10 -10
  39. package/dist/chunks/{git-4a7gy6vj.js → generate-48kw51zw.js} +3 -3
  40. package/dist/chunks/{git-kjzp4feh.js → generate-4e0p0fpd.js} +50 -50
  41. package/dist/chunks/{git-4ekscj25.js → generate-4ekscj25.js} +2 -2
  42. package/dist/chunks/{git-c5jgzh5f.js → generate-4evbv4gb.js} +22 -22
  43. package/dist/chunks/{git-mhprw537.js → generate-4fvt83t5.js} +3 -3
  44. package/dist/chunks/{git-327r5152.js → generate-4rx0zshk.js} +8 -8
  45. package/dist/chunks/{git-fzmbt9me.js → generate-4z39z968.js} +1 -1
  46. package/dist/chunks/{git-7gnyf1a7.js → generate-51qcsxgk.js} +11 -11
  47. package/dist/chunks/{git-54ma36ye.js → generate-54ma36ye.js} +1 -1
  48. package/dist/chunks/{git-ambchc19.js → generate-5fhve76z.js} +45 -45
  49. package/dist/chunks/{git-5m9w47nd.js → generate-5m9w47nd.js} +1 -1
  50. package/dist/chunks/{git-esbhy878.js → generate-5pr12dw0.js} +15 -15
  51. package/dist/chunks/{git-e3qxr5gk.js → generate-5qd3pb7m.js} +2 -2
  52. package/dist/chunks/{git-s2qn355b.js → generate-61va9acd.js} +19 -19
  53. package/dist/chunks/{git-0rmr5qer.js → generate-6424kev6.js} +15 -15
  54. package/dist/chunks/{git-bpq8bv7g.js → generate-647metxh.js} +75 -75
  55. package/dist/chunks/{git-arnhpe0z.js → generate-66x3e96s.js} +11 -11
  56. package/dist/chunks/{git-q4kb9483.js → generate-68yg9n24.js} +14 -14
  57. package/dist/chunks/{git-w323274d.js → generate-6gkwybtq.js} +15 -15
  58. package/dist/chunks/{git-8sze2n9a.js → generate-6pc27hjz.js} +2 -2
  59. package/dist/chunks/{git-6xb47vfp.js → generate-6xb47vfp.js} +1 -1
  60. package/dist/chunks/{git-2qdgnb1c.js → generate-6xg49yv5.js} +21 -21
  61. package/dist/chunks/{git-pm8e59zn.js → generate-71c3ma91.js} +2 -2
  62. package/dist/chunks/{git-775gj3j1.js → generate-775gj3j1.js} +2 -2
  63. package/dist/chunks/{git-7bmhse3q.js → generate-7bmhse3q.js} +1 -1
  64. package/dist/chunks/{git-dx0ahrbs.js → generate-7hhqs9ev.js} +11 -11
  65. package/dist/chunks/{git-ppy949mp.js → generate-7ph0vnsv.js} +8 -8
  66. package/dist/chunks/{git-7djggyfs.js → generate-7r0r2nec.js} +35 -35
  67. package/dist/chunks/{git-1mvfkh72.js → generate-820m75ay.js} +23 -23
  68. package/dist/chunks/{git-ka537s8x.js → generate-82jnz8vq.js} +17 -17
  69. package/dist/chunks/{git-ctz7jbry.js → generate-8aaqm6qj.js} +8 -8
  70. package/dist/chunks/{git-bxr47hc4.js → generate-8g2t0nrb.js} +11 -11
  71. package/dist/chunks/{git-tjztzgd5.js → generate-8j6692t6.js} +7 -7
  72. package/dist/chunks/{git-j1441nnn.js → generate-8k39r2mp.js} +11 -11
  73. package/dist/chunks/{git-8m6m0r52.js → generate-8m6m0r52.js} +1 -1
  74. package/dist/chunks/{git-160pwc7a.js → generate-8npnmh1j.js} +7 -7
  75. package/dist/chunks/{git-d5z54tqc.js → generate-8qqj46vq.js} +17 -17
  76. package/dist/chunks/{git-kg0qcfxc.js → generate-8tm3358f.js} +16 -16
  77. package/dist/chunks/{git-q52nff5p.js → generate-8xf62mhm.js} +22 -22
  78. package/dist/chunks/{git-8q7ghtqs.js → generate-8yrtv903.js} +14 -14
  79. package/dist/chunks/{git-tcay1cqt.js → generate-909p1r3q.js} +6 -6
  80. package/dist/chunks/{git-5fmkgt82.js → generate-90nc1nhv.js} +45 -45
  81. package/dist/chunks/{git-91qna3x0.js → generate-91qna3x0.js} +3 -3
  82. package/dist/chunks/{git-tapzf8fe.js → generate-9at6tv1c.js} +9 -9
  83. package/dist/chunks/{git-27qbm3z0.js → generate-9cgjtbjp.js} +20 -20
  84. package/dist/chunks/{git-tcd7y0pj.js → generate-9d8ha7wk.js} +3 -3
  85. package/dist/chunks/{git-xdjerwe0.js → generate-9eb0cyrw.js} +13 -13
  86. package/dist/chunks/{git-0w1y0rgd.js → generate-9jhc6p5j.js} +11 -11
  87. package/dist/chunks/{git-ed0h16fb.js → generate-9mp1bzg1.js} +19 -19
  88. package/dist/chunks/{git-h0eapdxh.js → generate-9xxh1q1e.js} +5 -5
  89. package/dist/chunks/{git-9gjm14vs.js → generate-9znwrv1e.js} +32 -32
  90. package/dist/chunks/{git-a1pzv0af.js → generate-ad8sbtaf.js} +5 -5
  91. package/dist/chunks/{git-e16y58tk.js → generate-agbrrg4r.js} +18 -18
  92. package/dist/chunks/{git-qkc9yjvc.js → generate-ak963xne.js} +33 -33
  93. package/dist/chunks/{git-2frv8mpr.js → generate-amcg9hk8.js} +30 -30
  94. package/dist/chunks/{git-6bt2wg6w.js → generate-azdezd4n.js} +35 -35
  95. package/dist/chunks/{git-q0d6zxbh.js → generate-b1nmds8p.js} +20 -20
  96. package/dist/chunks/{git-fpgxzyw5.js → generate-b3sm7x6w.js} +28 -28
  97. package/dist/chunks/{git-y971thnt.js → generate-b65pmv0k.js} +27 -27
  98. package/dist/chunks/{git-bd94ff7m.js → generate-bg9pb3hs.js} +8 -8
  99. package/dist/chunks/{git-gb7d80af.js → generate-bjnagtpr.js} +9 -9
  100. package/dist/chunks/{git-4d2zqy8g.js → generate-bmz30bfc.js} +11 -11
  101. package/dist/chunks/{git-vmj9fr13.js → generate-bt618zmv.js} +22 -22
  102. package/dist/chunks/generate-by5v678g.js +18 -0
  103. package/dist/chunks/{git-c1fqxshp.js → generate-c1fqxshp.js} +3 -3
  104. package/dist/chunks/{git-chy8rxbs.js → generate-c3k8fx1y.js} +16 -16
  105. package/dist/chunks/{git-gbh65n66.js → generate-c9wbyant.js} +4 -4
  106. package/dist/chunks/{git-t2qr8xwz.js → generate-cfybw0sz.js} +11 -11
  107. package/dist/chunks/{git-d6p1hscb.js → generate-ck04n157.js} +28 -28
  108. package/dist/chunks/{git-80nz7nyq.js → generate-ctzqdfkd.js} +15 -15
  109. package/dist/chunks/{git-v6ghzfeb.js → generate-d9wzmzc3.js} +5 -5
  110. package/dist/chunks/{git-3y377wv9.js → generate-db2wf4at.js} +4 -4
  111. package/dist/chunks/{git-6mt4s7pc.js → generate-dc5wd9ye.js} +15 -15
  112. package/dist/chunks/{git-k02bsv5j.js → generate-dk51qrek.js} +32 -32
  113. package/dist/chunks/{git-dqxsqydv.js → generate-dqxsqydv.js} +1 -1
  114. package/dist/chunks/{git-5q44j617.js → generate-dr348f92.js} +13 -13
  115. package/dist/chunks/{git-xfkkasph.js → generate-drwq78ky.js} +4 -4
  116. package/dist/chunks/{git-h8hrp1zc.js → generate-dw8wxjxb.js} +4 -4
  117. package/dist/chunks/{git-rjw0cna6.js → generate-e4p24ara.js} +14 -14
  118. package/dist/chunks/{git-fbft5n7v.js → generate-e7n3ya83.js} +35 -35
  119. package/dist/chunks/{git-c7zza6wf.js → generate-e80seqcp.js} +3 -3
  120. package/dist/chunks/{git-pppx0110.js → generate-eabkatpb.js} +4 -4
  121. package/dist/chunks/{git-az0b5dgs.js → generate-ed2aanj4.js} +6 -6
  122. package/dist/chunks/{git-eej6y6fw.js → generate-eej6y6fw.js} +2 -2
  123. package/dist/chunks/{git-ef5x83kb.js → generate-ef5x83kb.js} +1 -1
  124. package/dist/chunks/{git-g6gm77cp.js → generate-evsxga0j.js} +11 -11
  125. package/dist/chunks/{git-camaazgp.js → generate-ewprqnzw.js} +26 -26
  126. package/dist/chunks/{git-5dkn69vz.js → generate-f29mbr7f.js} +4 -4
  127. package/dist/chunks/{git-yp2x3t23.js → generate-f2n192rq.js} +4 -4
  128. package/dist/chunks/{git-qpbqb2nr.js → generate-f5xe0mk2.js} +23 -23
  129. package/dist/chunks/{git-0xcda8sn.js → generate-fa0b3k97.js} +12 -12
  130. package/dist/chunks/{git-f4yxj0vv.js → generate-ff1ymwtx.js} +23 -23
  131. package/dist/chunks/{git-4434d9q2.js → generate-fpecnkgp.js} +9 -9
  132. package/dist/chunks/{git-3gs24s9g.js → generate-fs96esax.js} +26 -26
  133. package/dist/chunks/{git-1besy32e.js → generate-fsj12tdk.js} +11 -11
  134. package/dist/chunks/{git-eys57y9b.js → generate-g0445xdp.js} +8 -8
  135. package/dist/chunks/{git-v1vh7s4p.js → generate-g686f6pq.js} +9 -9
  136. package/dist/chunks/{git-vbzwagc9.js → generate-gcb2m958.js} +30 -30
  137. package/dist/chunks/{git-gd4qta3r.js → generate-gd4qta3r.js} +1 -1
  138. package/dist/chunks/{git-wd0vxgyq.js → generate-gm2e0st7.js} +18 -18
  139. package/dist/chunks/{git-hzn12ym2.js → generate-gr2xtfax.js} +11 -11
  140. package/dist/chunks/{git-nz760qet.js → generate-gwaq8jy9.js} +24 -24
  141. package/dist/chunks/{git-bhz85x75.js → generate-h2mwb1rt.js} +8 -8
  142. package/dist/chunks/{git-hyqew7s4.js → generate-h3k0sdzw.js} +9 -9
  143. package/dist/chunks/{git-kg5y8km3.js → generate-h61jsw8z.js} +26 -26
  144. package/dist/chunks/{git-h6vf3j39.js → generate-h6vf3j39.js} +1 -1
  145. package/dist/chunks/{git-h7s7r6s9.js → generate-h7s7r6s9.js} +2 -2
  146. package/dist/chunks/{git-n6mj5fd0.js → generate-hbqwyh5b.js} +9 -9
  147. package/dist/chunks/{git-hgz4x7wa.js → generate-hgz4x7wa.js} +1 -1
  148. package/dist/chunks/{git-y276d5pa.js → generate-hsakzz9a.js} +14 -14
  149. package/dist/chunks/{git-d0nnwg73.js → generate-hzkveby0.js} +6 -6
  150. package/dist/chunks/{git-bjqx3wez.js → generate-j3nkb9wj.js} +12 -12
  151. package/dist/chunks/{git-ca9ag5jd.js → generate-jerzhz83.js} +13 -13
  152. package/dist/chunks/{git-cm15zwkz.js → generate-jj2708p2.js} +5 -5
  153. package/dist/chunks/{git-6g107h22.js → generate-jk540des.js} +2 -2
  154. package/dist/chunks/{git-06tsrf37.js → generate-jm2dqw0s.js} +6 -6
  155. package/dist/chunks/{git-cqa25d74.js → generate-jsre8083.js} +38 -38
  156. package/dist/chunks/{git-zeakd07k.js → generate-k01atk97.js} +37 -37
  157. package/dist/chunks/{git-4z7vdsey.js → generate-k045zbz9.js} +45 -45
  158. package/dist/chunks/{git-e264yjjw.js → generate-k1bs2h3f.js} +23 -23
  159. package/dist/chunks/{git-vaz5x21m.js → generate-k2esz74z.js} +197 -197
  160. package/dist/chunks/{git-ty3gh6kk.js → generate-k7qgnp9n.js} +19 -19
  161. package/dist/chunks/{git-axms0aaz.js → generate-kdn70dry.js} +21 -21
  162. package/dist/chunks/{git-hpchzyjw.js → generate-kgs10km5.js} +1 -1
  163. package/dist/chunks/{git-dhmh7aw6.js → generate-kne8f3cn.js} +4 -4
  164. package/dist/chunks/{git-cr0f5pn5.js → generate-kxxbqm5f.js} +62 -62
  165. package/dist/chunks/{git-5yq7dtg5.js → generate-m1efmtwr.js} +47 -47
  166. package/dist/chunks/{git-av3rebby.js → generate-m1ywmr27.js} +5 -5
  167. package/dist/chunks/{git-dxdsq1ga.js → generate-m3emc3g7.js} +51 -51
  168. package/dist/chunks/{git-qa2ngjj1.js → generate-m6twg17p.js} +13 -13
  169. package/dist/chunks/{git-m9w0rfyh.js → generate-m9w0rfyh.js} +1 -1
  170. package/dist/chunks/{git-maspj1v3.js → generate-maspj1v3.js} +1 -1
  171. package/dist/chunks/{git-3k91j3pc.js → generate-mfxyg6fd.js} +2 -2
  172. package/dist/chunks/{git-9rqfmaaw.js → generate-mrm6qzaa.js} +27 -27
  173. package/dist/chunks/{git-80q3tzn0.js → generate-mtntnqk5.js} +29 -29
  174. package/dist/chunks/{git-s7a7q68w.js → generate-mv100j38.js} +8 -8
  175. package/dist/chunks/{git-n2srvep7.js → generate-nb9p6b26.js} +4 -4
  176. package/dist/chunks/{git-j23xp3rg.js → generate-nhyepbsc.js} +14 -14
  177. package/dist/chunks/{git-h64syw7g.js → generate-njf7rzjw.js} +17 -17
  178. package/dist/chunks/{git-2kbxssc4.js → generate-nq3r004t.js} +6 -6
  179. package/dist/chunks/{git-fxaymqdw.js → generate-ny8edt06.js} +4 -4
  180. package/dist/chunks/{git-tqpy3vfr.js → generate-nyb09g2v.js} +24 -24
  181. package/dist/chunks/{git-6ejxrw0z.js → generate-nz00s972.js} +9 -9
  182. package/dist/chunks/{git-2mvdces3.js → generate-p1thmww4.js} +12 -12
  183. package/dist/chunks/{git-v40jhfgv.js → generate-p5p106c5.js} +28 -28
  184. package/dist/chunks/{git-2cb3tdsa.js → generate-p79ar1np.js} +8 -8
  185. package/dist/chunks/{git-saft7jqm.js → generate-p9r2c5t1.js} +7 -7
  186. package/dist/chunks/{git-tq54tggv.js → generate-pab3ay35.js} +23 -23
  187. package/dist/chunks/{git-nk04yc8p.js → generate-pe1ys5ng.js} +20 -20
  188. package/dist/chunks/{git-962642t6.js → generate-pe36awch.js} +16 -16
  189. package/dist/chunks/{git-cwa399ss.js → generate-ph6a4evn.js} +19 -19
  190. package/dist/chunks/{git-pjvnvgmy.js → generate-pjvnvgmy.js} +1 -1
  191. package/dist/chunks/{git-pknna89w.js → generate-pknna89w.js} +1 -1
  192. package/dist/chunks/{git-b1rn6ejy.js → generate-pnq2asy9.js} +20 -20
  193. package/dist/chunks/generate-pp5qxgcs.js +253 -0
  194. package/dist/chunks/{git-800pf2ey.js → generate-pvywfm1n.js} +4 -4
  195. package/dist/chunks/{git-fb77j2tq.js → generate-q0bv3cn2.js} +59 -59
  196. package/dist/chunks/{git-20wnnq6g.js → generate-q0wwkmtc.js} +18 -18
  197. package/dist/chunks/{git-0j77ygfz.js → generate-q0xm7vwc.js} +6 -6
  198. package/dist/chunks/{git-yefkbma1.js → generate-q1x1rvbe.js} +29 -29
  199. package/dist/chunks/{git-3bvntg95.js → generate-q4q0tmjh.js} +38 -38
  200. package/dist/chunks/{git-jhdf29st.js → generate-q5e7cmwt.js} +1 -1
  201. package/dist/chunks/{git-ehxvrac8.js → generate-q806gczq.js} +13 -13
  202. package/dist/chunks/{git-3mkrhvdx.js → generate-q92qcf3t.js} +13 -13
  203. package/dist/chunks/{git-w8t6yxk8.js → generate-qaw4ptrj.js} +13 -13
  204. package/dist/chunks/{git-yb885tzd.js → generate-qbkpptp7.js} +22 -22
  205. package/dist/chunks/{git-5aeb062r.js → generate-qfzqcc6n.js} +33 -33
  206. package/dist/chunks/{git-cfgt6bdr.js → generate-qjvd7p01.js} +17 -17
  207. package/dist/chunks/{git-8tvc8s6h.js → generate-qmkghy1h.js} +11 -11
  208. package/dist/chunks/{git-79qaa2kf.js → generate-qmqgtz8f.js} +9 -9
  209. package/dist/chunks/{git-qnc92qwc.js → generate-qnc92qwc.js} +1 -1
  210. package/dist/chunks/{git-qsdy395h.js → generate-qsdy395h.js} +1 -1
  211. package/dist/chunks/{git-rdw6cm16.js → generate-rdw6cm16.js} +1 -1
  212. package/dist/chunks/{git-rert0e01.js → generate-rert0e01.js} +2 -2
  213. package/dist/chunks/{git-y7zsnxq4.js → generate-rgy34r50.js} +4 -4
  214. package/dist/chunks/{git-axe0bz6b.js → generate-rhk74dyv.js} +39 -39
  215. package/dist/chunks/{git-rj3eygr5.js → generate-rj3eygr5.js} +2 -2
  216. package/dist/chunks/{git-w0tfgnf2.js → generate-rqa1jxse.js} +2 -2
  217. package/dist/chunks/{git-tz74y624.js → generate-rr2frrzn.js} +22 -22
  218. package/dist/chunks/{git-6tse523n.js → generate-rr58t4fd.js} +23 -23
  219. package/dist/chunks/{git-tkmwgdpd.js → generate-ryr25ayn.js} +7 -7
  220. package/dist/chunks/{git-r73gxetb.js → generate-s3cm33sf.js} +10 -10
  221. package/dist/chunks/{git-sa8ekw3f.js → generate-sa8ekw3f.js} +2 -2
  222. package/dist/chunks/{git-b3f8fkhc.js → generate-scgrse2b.js} +5 -5
  223. package/dist/chunks/{git-qx7s22zk.js → generate-sfhqvnpf.js} +28 -28
  224. package/dist/chunks/{git-jwvm7gej.js → generate-sjqh3mj3.js} +5 -5
  225. package/dist/chunks/{git-ws3nt8g0.js → generate-svmrvdvs.js} +14 -14
  226. package/dist/chunks/{git-syv4x271.js → generate-syv4x271.js} +1 -1
  227. package/dist/chunks/{git-045nn9pc.js → generate-sz15zhhw.js} +9 -9
  228. package/dist/chunks/{git-gnbgkv9z.js → generate-t5wwwxkh.js} +5 -5
  229. package/dist/chunks/{git-tazgh4e4.js → generate-tazgh4e4.js} +1 -1
  230. package/dist/chunks/{git-tcezcvh9.js → generate-tcezcvh9.js} +1 -1
  231. package/dist/chunks/{git-95tq7yv1.js → generate-tdf8hw5n.js} +88 -88
  232. package/dist/chunks/{git-tdstcens.js → generate-tdstcens.js} +1 -1
  233. package/dist/chunks/{git-esdsw5hn.js → generate-tgk3qf8f.js} +9 -9
  234. package/dist/chunks/{git-tm0kqsz3.js → generate-tm0kqsz3.js} +1 -1
  235. package/dist/chunks/{git-tyytaxap.js → generate-tyytaxap.js} +1 -1
  236. package/dist/chunks/{git-fy3mehht.js → generate-v4mqz3w8.js} +5 -5
  237. package/dist/chunks/{git-2zknaymx.js → generate-v4zj8138.js} +27 -27
  238. package/dist/chunks/{git-0wj29s15.js → generate-v5p3rnnz.js} +333 -333
  239. package/dist/chunks/{git-v7p4zvkq.js → generate-v7p4zvkq.js} +2 -2
  240. package/dist/chunks/{git-veqvce7d.js → generate-veqvce7d.js} +1 -1
  241. package/dist/chunks/{git-9m3sgeft.js → generate-vhtfstd8.js} +14 -14
  242. package/dist/chunks/{git-rda2qpa7.js → generate-vjkbc1z2.js} +5 -5
  243. package/dist/chunks/{git-nmg59fc6.js → generate-vnv9wwnh.js} +11 -11
  244. package/dist/chunks/{git-1qg3q56q.js → generate-vpxrjyh9.js} +22 -22
  245. package/dist/chunks/{git-0c8x1b4f.js → generate-vw95np9e.js} +40 -40
  246. package/dist/chunks/{git-vzs5sf6e.js → generate-vzs5sf6e.js} +1 -1
  247. package/dist/chunks/{git-w1eejvng.js → generate-w1eejvng.js} +1 -1
  248. package/dist/chunks/{git-w3wsvvr9.js → generate-w3wsvvr9.js} +1 -1
  249. package/dist/chunks/{git-xvtqr6gp.js → generate-w5zzhgd0.js} +8 -8
  250. package/dist/chunks/{git-ngwpesc0.js → generate-wafexnmx.js} +29 -29
  251. package/dist/chunks/{git-rb4mbqq0.js → generate-wb0v33rf.js} +15 -15
  252. package/dist/chunks/{git-wd87259q.js → generate-wd87259q.js} +1 -1
  253. package/dist/chunks/{git-kjdm35cs.js → generate-wh6zw745.js} +5 -5
  254. package/dist/chunks/{git-e6nbdtth.js → generate-whebsv80.js} +93 -93
  255. package/dist/chunks/{git-cg22jcxb.js → generate-wkcx7fj9.js} +6 -6
  256. package/dist/chunks/{git-qfb2n6w8.js → generate-ws8gre0k.js} +4 -4
  257. package/dist/chunks/{git-d737nyfv.js → generate-xdx7acry.js} +9 -9
  258. package/dist/chunks/{git-6kcqcecw.js → generate-xhtmvx5q.js} +12 -12
  259. package/dist/chunks/{git-3bscz66d.js → generate-xkm5zh6x.js} +29 -29
  260. package/dist/chunks/{git-9gbtz9hn.js → generate-xnt6fver.js} +40 -40
  261. package/dist/chunks/{git-3my7b5tm.js → generate-xtbhb3vb.js} +4 -4
  262. package/dist/chunks/{git-4dr476sk.js → generate-xy02r08k.js} +4 -4
  263. package/dist/chunks/{git-y1fvbwt7.js → generate-y1fvbwt7.js} +1 -1
  264. package/dist/chunks/{git-1caamthg.js → generate-y39tjqdd.js} +24 -24
  265. package/dist/chunks/{git-v76w5y0p.js → generate-y6agp0rp.js} +17 -17
  266. package/dist/chunks/{git-ra5e1p3e.js → generate-y6nmpnm5.js} +34 -34
  267. package/dist/chunks/{git-x0qfghwr.js → generate-y6t3xqc7.js} +36 -36
  268. package/dist/chunks/{git-dpkg50ah.js → generate-y71avatq.js} +4 -4
  269. package/dist/chunks/{git-m1y5bjyb.js → generate-y932fbb5.js} +20 -20
  270. package/dist/chunks/{git-3pykwxdf.js → generate-y9pr6q2f.js} +33 -33
  271. package/dist/chunks/{git-ex36thft.js → generate-yc4d889b.js} +17 -17
  272. package/dist/chunks/{git-szsx7q7s.js → generate-yeereb2r.js} +19 -19
  273. package/dist/chunks/{git-jtcm6ah7.js → generate-yfxs65tx.js} +21 -21
  274. package/dist/chunks/{git-9hwaqfsw.js → generate-ygdna4kr.js} +5 -5
  275. package/dist/chunks/{git-30846h32.js → generate-ypw91m64.js} +8 -8
  276. package/dist/chunks/{git-20wzg7fj.js → generate-yz9yqyt1.js} +8 -8
  277. package/dist/chunks/{git-bvch94c9.js → generate-yzt2x2kg.js} +45 -45
  278. package/dist/chunks/{git-z0bkrqjs.js → generate-z0bkrqjs.js} +1 -1
  279. package/dist/chunks/{git-nmc4rv8c.js → generate-z0bysbaa.js} +35 -35
  280. package/dist/chunks/{git-bbnvtmzd.js → generate-z8fpjdp3.js} +47 -47
  281. package/dist/chunks/{git-yjhx1jvs.js → generate-z964fg8a.js} +24 -24
  282. package/dist/chunks/{git-zr2ceqn5.js → generate-zr2ceqn5.js} +1 -1
  283. package/dist/chunks/{git-zxq2ej10.js → generate-zxq2ej10.js} +1 -1
  284. package/dist/chunks/{git-zy43x3f1.js → generate-zy43x3f1.js} +1 -1
  285. package/dist/codemode/catalog.js +1 -1
  286. package/dist/codemode/instructions.js +5 -5
  287. package/dist/codemode/tool.js +3 -3
  288. package/dist/codemode/web.js +1 -1
  289. package/dist/command.js +87 -87
  290. package/dist/config/discovery.js +84 -84
  291. package/dist/config/markdown.js +1 -1
  292. package/dist/config/normalize.js +101 -101
  293. package/dist/config/plugin/agent.js +120 -120
  294. package/dist/config/plugin/command.js +209 -209
  295. package/dist/config/plugin/compaction.js +156 -156
  296. package/dist/config/plugin/compatibility.js +136 -136
  297. package/dist/config/plugin/entry-observer.js +1 -1
  298. package/dist/config/plugin/formatter.js +119 -119
  299. package/dist/config/plugin/image.js +118 -118
  300. package/dist/config/plugin/instruction.js +118 -118
  301. package/dist/config/plugin/location-watcher.js +118 -118
  302. package/dist/config/plugin/mcp.js +127 -127
  303. package/dist/config/plugin/policy.js +119 -119
  304. package/dist/config/plugin/provider.js +118 -118
  305. package/dist/config/plugin/reference.js +120 -120
  306. package/dist/config/plugin/shell.js +120 -120
  307. package/dist/config/plugin/skill-file.js +104 -104
  308. package/dist/config/plugin/skill.js +139 -139
  309. package/dist/config/plugin/snapshot.js +118 -118
  310. package/dist/config/plugin/source.js +121 -121
  311. package/dist/config/plugin/tool-output.js +119 -119
  312. package/dist/config/plugin/websearch.js +119 -119
  313. package/dist/config/plugin/worktree.js +120 -120
  314. package/dist/config/variable.js +3 -3
  315. package/dist/config/watch.js +1 -1
  316. package/dist/config.js +117 -117
  317. package/dist/credential/sql.js +2 -2
  318. package/dist/credential.js +87 -87
  319. package/dist/database/database.js +68 -68
  320. package/dist/database/drizzle/effect-sqlite/driver.js +14 -14
  321. package/dist/database/drizzle/effect-sqlite/index.js +14 -14
  322. package/dist/database/drizzle/effect-sqlite/session.js +11 -11
  323. package/dist/database/drizzle/index.js +15 -15
  324. package/dist/database/drizzle/internal/drizzle-utils.js +1 -1
  325. package/dist/database/drizzle/sqlite-core/effect/count.js +1 -1
  326. package/dist/database/drizzle/sqlite-core/effect/db.js +9 -9
  327. package/dist/database/drizzle/sqlite-core/effect/delete.js +2 -2
  328. package/dist/database/drizzle/sqlite-core/effect/index.js +10 -10
  329. package/dist/database/drizzle/sqlite-core/effect/insert.js +2 -2
  330. package/dist/database/drizzle/sqlite-core/effect/query.js +1 -1
  331. package/dist/database/drizzle/sqlite-core/effect/raw.js +1 -1
  332. package/dist/database/drizzle/sqlite-core/effect/select.js +2 -2
  333. package/dist/database/drizzle/sqlite-core/effect/session.js +10 -10
  334. package/dist/database/drizzle/sqlite-core/effect/update.js +2 -2
  335. package/dist/database/drizzle.js +16 -16
  336. package/dist/database/migration/20260127222353_familiar_lady_ursula.js +1 -1
  337. package/dist/database/migration/20260211171708_add_project_commands.js +1 -1
  338. package/dist/database/migration/20260213144116_wakeful_the_professor.js +1 -1
  339. package/dist/database/migration/20260225215848_workspace.js +1 -1
  340. package/dist/database/migration/20260227213759_add_session_workspace_id.js +1 -1
  341. package/dist/database/migration/20260228203230_blue_harpoon.js +1 -1
  342. package/dist/database/migration/20260303231226_add_workspace_fields.js +1 -1
  343. package/dist/database/migration/20260309230000_move_org_to_state.js +1 -1
  344. package/dist/database/migration/20260312043431_session_message_cursor.js +1 -1
  345. package/dist/database/migration/20260323234822_events.js +1 -1
  346. package/dist/database/migration/20260410174513_workspace-name.js +1 -1
  347. package/dist/database/migration/20260413175956_chief_energizer.js +1 -1
  348. package/dist/database/migration/20260423070820_add_icon_url_override.js +1 -1
  349. package/dist/database/migration/20260427172553_slow_nightmare.js +1 -1
  350. package/dist/database/migration/20260428004200_add_session_path.js +1 -1
  351. package/dist/database/migration/20260501142318_next_venus.js +1 -1
  352. package/dist/database/migration/20260504145000_add_sync_owner.js +1 -1
  353. package/dist/database/migration/20260507164347_add_workspace_time.js +1 -1
  354. package/dist/database/migration/20260510033149_session_usage.js +1 -1
  355. package/dist/database/migration/20260511000411_data_migration_state.js +1 -1
  356. package/dist/database/migration/20260511173437_session-metadata.js +1 -1
  357. package/dist/database/migration/20260601010001_normalize_storage_paths.js +1 -1
  358. package/dist/database/migration/20260601202201_amazing_prowler.js +1 -1
  359. package/dist/database/migration/20260602002951_lowly_union_jack.js +1 -1
  360. package/dist/database/migration/20260602182828_add_project_directories.js +1 -1
  361. package/dist/database/migration/20260603001617_session_message_projection_indexes.js +1 -1
  362. package/dist/database/migration/20260603040000_session_message_projection_order.js +1 -1
  363. package/dist/database/migration/20260603141458_session_input_inbox.js +1 -1
  364. package/dist/database/migration/20260603160727_jittery_ezekiel_stane.js +1 -1
  365. package/dist/database/migration/20260604172448_event_sourced_session_input.js +1 -1
  366. package/dist/database/migration/20260605003541_add_session_context_snapshot.js +1 -1
  367. package/dist/database/migration/20260605042240_add_context_epoch_agent.js +1 -1
  368. package/dist/database/migration/20260611035744_credential.js +1 -1
  369. package/dist/database/migration/20260611192811_lush_chimera.js +1 -1
  370. package/dist/database/migration/20260612174303_project_dir_strategy.js +1 -1
  371. package/dist/database/migration/20260622142730_simplify_session_context_epoch.js +1 -1
  372. package/dist/database/migration/20260622170816_reset_v2_session_state.js +1 -1
  373. package/dist/database/migration/20260622202450_simplify_session_input.js +1 -1
  374. package/dist/database/migration/20260804233008_loose_psylocke.js +1 -1
  375. package/dist/database/migration/20260805200742_import_legacy_credentials.js +1 -1
  376. package/dist/database/migration/20260808023530_workspace_domain.js +1 -1
  377. package/dist/database/migration/20260811161259_execution_claim_attempts.js +1 -1
  378. package/dist/database/migration/20260812181746_session_inbox.js +1 -1
  379. package/dist/database/migration/20260812213948_worktree.js +1 -1
  380. package/dist/database/migration/20260819222447_session_viewed_state.js +1 -1
  381. package/dist/database/migration/20260823191254_nullable_workspace_binding.js +1 -1
  382. package/dist/database/migration/20260910120000_clear_v1_session_permission.js +1 -1
  383. package/dist/database/migration/20260923013825_project_time_active.js +1 -1
  384. package/dist/database/migration/20261007190000_azure_cli_external_credential.js +1 -1
  385. package/dist/database/migration/20261010180456_project_time_archived.js +1 -1
  386. package/dist/database/migration.gen.js +51 -51
  387. package/dist/database/migration.js +53 -53
  388. package/dist/database/path.js +2 -2
  389. package/dist/database/schema.gen.js +1 -1
  390. package/dist/database/schema.sql.js +1 -1
  391. package/dist/database/sqlite.bun.js +1 -1
  392. package/dist/database/sqlite.js +1 -1
  393. package/dist/database/sqlite.node.js +1 -1
  394. package/dist/database/sqlite.workerd.js +1 -1
  395. package/dist/database/v1-migration.bun.js +78 -78
  396. package/dist/database/v1-migration.js +1 -1
  397. package/dist/effect/app-node-builder.js +368 -368
  398. package/dist/effect/app-node-platform.js +2 -2
  399. package/dist/effect/keyed-mutex.js +3 -3
  400. package/dist/effect/websocket-constructor.js +1 -1
  401. package/dist/environment/driver.js +1 -1
  402. package/dist/environment/environment.js +95 -95
  403. package/dist/environment/exec-defaults.js +2 -2
  404. package/dist/environment/files.js +1 -1
  405. package/dist/environment/index.js +97 -97
  406. package/dist/environment/local.js +2 -2
  407. package/dist/environment/memory.js +2 -2
  408. package/dist/environment/unavailable.js +3 -3
  409. package/dist/event/sql.js +1 -1
  410. package/dist/event-logger.js +76 -76
  411. package/dist/file-access.js +106 -106
  412. package/dist/file-mutation.js +96 -96
  413. package/dist/file-retention.js +1 -1
  414. package/dist/filesystem/fff.bun.js +2 -2
  415. package/dist/filesystem/fff.js +1 -1
  416. package/dist/filesystem/fff.node.js +2 -2
  417. package/dist/filesystem/fff.workerd.js +2 -2
  418. package/dist/filesystem/location-watcher-policy.js +6 -6
  419. package/dist/filesystem/location-watcher.js +216 -216
  420. package/dist/filesystem/protected.js +1 -1
  421. package/dist/filesystem/search.js +105 -105
  422. package/dist/filesystem/watcher-binding.js +3 -3
  423. package/dist/filesystem/watcher.js +9 -9
  424. package/dist/filesystem.js +104 -104
  425. package/dist/form.js +78 -78
  426. package/dist/formatter/builtins.js +4 -4
  427. package/dist/formatter.js +89 -89
  428. package/dist/generate.js +105 -105
  429. package/dist/git.js +10 -10
  430. package/dist/github-copilot/chat/convert-to-openai-compatible-chat-messages.js +1 -1
  431. package/dist/github-copilot/chat/get-response-metadata.js +1 -1
  432. package/dist/github-copilot/chat/map-openai-compatible-finish-reason.js +1 -1
  433. package/dist/github-copilot/chat/openai-compatible-chat-language-model.js +7 -7
  434. package/dist/github-copilot/chat/openai-compatible-chat-options.js +1 -1
  435. package/dist/github-copilot/chat/openai-compatible-prepare-tools.js +1 -1
  436. package/dist/github-copilot/copilot-provider.js +17 -17
  437. package/dist/github-copilot/models.js +101 -101
  438. package/dist/github-copilot/openai-compatible-error.js +1 -1
  439. package/dist/github-copilot/responses/convert-to-openai-responses-input.js +1 -1
  440. package/dist/github-copilot/responses/map-openai-responses-finish-reason.js +1 -1
  441. package/dist/github-copilot/responses/openai-error.js +1 -1
  442. package/dist/github-copilot/responses/openai-responses-language-model.js +10 -10
  443. package/dist/github-copilot/responses/openai-responses-prepare-tools.js +6 -6
  444. package/dist/github-copilot/responses/tool/code-interpreter.js +1 -1
  445. package/dist/github-copilot/responses/tool/file-search.js +1 -1
  446. package/dist/github-copilot/responses/tool/image-generation.js +1 -1
  447. package/dist/github-copilot/responses/tool/web-search-preview.js +1 -1
  448. package/dist/github-copilot/responses/tool/web-search.js +1 -1
  449. package/dist/image/photon.js +2 -2
  450. package/dist/image.js +6 -6
  451. package/dist/instance/service.js +5 -5
  452. package/dist/instance.js +359 -359
  453. package/dist/instruction-discovery.js +86 -86
  454. package/dist/instructions/builtins.js +89 -89
  455. package/dist/instructions/index.js +5 -5
  456. package/dist/integration/connection.js +3 -3
  457. package/dist/integration.js +91 -91
  458. package/dist/job.js +80 -80
  459. package/dist/kv/sql.js +2 -2
  460. package/dist/kv.js +75 -75
  461. package/dist/location-activity.js +136 -136
  462. package/dist/location-lifecycle.js +109 -109
  463. package/dist/location-service-map.js +88 -88
  464. package/dist/location-services.js +356 -356
  465. package/dist/location.js +91 -91
  466. package/dist/managed-policy.js +8 -8
  467. package/dist/mcp/client.js +93 -93
  468. package/dist/mcp/index.js +107 -107
  469. package/dist/mcp/instructions.js +127 -127
  470. package/dist/mcp/oauth.js +80 -80
  471. package/dist/mcp/stdio.js +92 -92
  472. package/dist/mime.js +1 -1
  473. package/dist/modal/models.js +101 -101
  474. package/dist/model-resolver.js +100 -100
  475. package/dist/model.js +102 -102
  476. package/dist/models-dev.js +109 -109
  477. package/dist/oauth/page.js +1 -1
  478. package/dist/permission/saved.js +82 -82
  479. package/dist/permission/sql.js +5 -5
  480. package/dist/permission.js +119 -119
  481. package/dist/persistent-pty/binary.bun.js +1 -1
  482. package/dist/persistent-pty/daemon.js +1 -1
  483. package/dist/persistent-pty/index.js +86 -86
  484. package/dist/persistent-pty/pty-binding.js +1 -1
  485. package/dist/persistent-pty.js +77 -77
  486. package/dist/plugin/agent.js +78 -78
  487. package/dist/plugin/command.js +104 -104
  488. package/dist/plugin/hooks.js +5 -5
  489. package/dist/plugin/host.js +213 -213
  490. package/dist/plugin/identity.js +3 -3
  491. package/dist/plugin/instance.js +5 -5
  492. package/dist/plugin/internal.js +331 -331
  493. package/dist/plugin/mcp-codemode-defaults.js +1 -1
  494. package/dist/plugin/models-dev.js +98 -98
  495. package/dist/plugin/module.js +119 -119
  496. package/dist/plugin/optimize.js +2 -2
  497. package/dist/plugin/plan.js +102 -102
  498. package/dist/plugin/promise.js +1 -1
  499. package/dist/plugin/provider/amazon-bedrock.js +92 -92
  500. package/dist/plugin/provider/azure.js +118 -118
  501. package/dist/plugin/provider/cerebras.js +1 -1
  502. package/dist/plugin/provider/chatgpt.js +118 -118
  503. package/dist/plugin/provider/cloudflare-ai-gateway.js +115 -115
  504. package/dist/plugin/provider/cloudflare-workers-ai.js +116 -116
  505. package/dist/plugin/provider/cohere.js +2 -2
  506. package/dist/plugin/provider/configured.js +114 -114
  507. package/dist/plugin/provider/databricks.js +1 -1
  508. package/dist/plugin/provider/digitalocean.js +95 -95
  509. package/dist/plugin/provider/dynamic.js +2 -2
  510. package/dist/plugin/provider/factory.js +1 -1
  511. package/dist/plugin/provider/github-copilot.js +97 -97
  512. package/dist/plugin/provider/gitlab.js +95 -95
  513. package/dist/plugin/provider/google-vertex.js +115 -115
  514. package/dist/plugin/provider/kilo.js +1 -1
  515. package/dist/plugin/provider/llmgateway.js +80 -80
  516. package/dist/plugin/provider/lmstudio.js +127 -127
  517. package/dist/plugin/provider/local.js +124 -124
  518. package/dist/plugin/provider/modal.js +94 -94
  519. package/dist/plugin/provider/neon.js +1 -1
  520. package/dist/plugin/provider/nvidia.js +1 -1
  521. package/dist/plugin/provider/ollama.js +127 -127
  522. package/dist/plugin/provider/openai.js +118 -118
  523. package/dist/plugin/provider/opencode.js +99 -99
  524. package/dist/plugin/provider/openrouter.js +93 -93
  525. package/dist/plugin/provider/perplexity.js +2 -2
  526. package/dist/plugin/provider/poe.js +81 -81
  527. package/dist/plugin/provider/prompt-cache-key.js +1 -1
  528. package/dist/plugin/provider/sap-ai-core.js +93 -93
  529. package/dist/plugin/provider/sdk-factory.js +1 -1
  530. package/dist/plugin/provider/snowflake-cortex.js +117 -117
  531. package/dist/plugin/provider/vercel.js +92 -92
  532. package/dist/plugin/provider/vllm.js +127 -127
  533. package/dist/plugin/provider/xai.js +93 -93
  534. package/dist/plugin/provider/zenmux.js +1 -1
  535. package/dist/plugin/provider.js +169 -169
  536. package/dist/plugin/sdk.js +76 -76
  537. package/dist/plugin/service.js +3 -3
  538. package/dist/plugin/skill.js +132 -132
  539. package/dist/plugin/source-directory.js +1 -1
  540. package/dist/plugin/supervisor.js +346 -346
  541. package/dist/plugin/tool-input-repair.js +2 -2
  542. package/dist/plugin/update.js +6 -6
  543. package/dist/plugin/vcs/git.js +88 -88
  544. package/dist/plugin/vcs/hg.js +88 -88
  545. package/dist/plugin/verbosity.js +95 -95
  546. package/dist/plugin/warming.js +116 -116
  547. package/dist/plugin/websearch/exa.js +7 -7
  548. package/dist/plugin/websearch/firecrawl.js +8 -8
  549. package/dist/plugin/websearch/index.js +9 -9
  550. package/dist/plugin/websearch/mcp.js +6 -6
  551. package/dist/plugin/websearch/parallel.js +6 -6
  552. package/dist/plugin/websearch/tavily.js +6 -6
  553. package/dist/plugin/websearch/tinyfish.js +8 -8
  554. package/dist/plugin.js +224 -224
  555. package/dist/project/schema.js +8 -8
  556. package/dist/project/sql.js +4 -4
  557. package/dist/project.js +90 -90
  558. package/dist/provider.js +103 -103
  559. package/dist/pty/protocol.js +1 -1
  560. package/dist/pty/ticket.js +1 -1
  561. package/dist/pty.js +97 -97
  562. package/dist/reference/instructions.js +89 -89
  563. package/dist/reference.js +93 -93
  564. package/dist/repository-cache.js +83 -83
  565. package/dist/repository.js +1 -1
  566. package/dist/ripgrep/binary.js +2 -2
  567. package/dist/ripgrep.js +97 -97
  568. package/dist/rpc.js +88 -88
  569. package/dist/schema.js +1 -1
  570. package/dist/session/affinity.js +1 -1
  571. package/dist/session/command.js +76 -76
  572. package/dist/session/compaction.js +135 -135
  573. package/dist/session/context.js +155 -155
  574. package/dist/session/diff.js +90 -90
  575. package/dist/session/environment.js +5 -5
  576. package/dist/session/error.js +7 -7
  577. package/dist/session/event.js +1 -1
  578. package/dist/session/execution/restart.js +219 -219
  579. package/dist/session/execution.js +129 -129
  580. package/dist/session/generate.js +156 -156
  581. package/dist/session/history.js +15 -15
  582. package/dist/session/inbox.js +88 -88
  583. package/dist/session/info.js +3 -3
  584. package/dist/session/instruction-entry.js +81 -81
  585. package/dist/session/instruction-state.js +8 -8
  586. package/dist/session/instructions.js +99 -99
  587. package/dist/session/message-updater.js +2 -2
  588. package/dist/session/message.js +1 -1
  589. package/dist/session/model-request.js +122 -122
  590. package/dist/session/model-transport.js +9 -9
  591. package/dist/session/move.js +131 -131
  592. package/dist/session/projector.js +88 -88
  593. package/dist/session/prompt.js +107 -107
  594. package/dist/session/provider-context.js +3 -3
  595. package/dist/session/revert.js +92 -92
  596. package/dist/session/run-coordinator.js +3 -3
  597. package/dist/session/runner/index.js +3 -3
  598. package/dist/session/runner/llm.js +226 -226
  599. package/dist/session/runner/max-steps.js +1 -1
  600. package/dist/session/runner/model.js +100 -100
  601. package/dist/session/runner/publish-llm-event.js +115 -115
  602. package/dist/session/runner/retry.js +4 -4
  603. package/dist/session/runner/step.js +127 -127
  604. package/dist/session/runner/to-llm-message.js +2 -2
  605. package/dist/session/schema.js +5 -5
  606. package/dist/session/session.js +166 -166
  607. package/dist/session/shell.js +132 -132
  608. package/dist/session/skill.js +105 -105
  609. package/dist/session/sql.js +5 -5
  610. package/dist/session/stats.js +75 -75
  611. package/dist/session/store.js +87 -87
  612. package/dist/session/subagent-completion.js +1 -1
  613. package/dist/session/subagent-job.js +207 -207
  614. package/dist/session/system-prompt.js +3 -3
  615. package/dist/session/title.js +159 -159
  616. package/dist/session/to-session-error.js +113 -113
  617. package/dist/session/transfer.js +215 -215
  618. package/dist/session/usage.js +1 -1
  619. package/dist/session.js +213 -213
  620. package/dist/shell/parse.js +6 -6
  621. package/dist/shell/result.js +1 -1
  622. package/dist/shell/scan.js +1 -1
  623. package/dist/shell/select.js +11 -11
  624. package/dist/shell.js +134 -134
  625. package/dist/skill/discovery.js +6 -6
  626. package/dist/skill/instructions.js +107 -107
  627. package/dist/skill.js +114 -114
  628. package/dist/snapshot.js +91 -91
  629. package/dist/state.js +1 -1
  630. package/dist/tool/html-markdown.js +1 -1
  631. package/dist/tool/http-body.js +1 -1
  632. package/dist/tool/mcp.js +130 -130
  633. package/dist/tool/plugin/edit.js +118 -118
  634. package/dist/tool/plugin/file-diff.js +1 -1
  635. package/dist/tool/plugin/glob.js +126 -126
  636. package/dist/tool/plugin/grep.js +126 -126
  637. package/dist/tool/plugin/mcp-resource.js +119 -119
  638. package/dist/tool/plugin/opencode.js +111 -111
  639. package/dist/tool/plugin/patch.js +124 -124
  640. package/dist/tool/plugin/question.js +105 -105
  641. package/dist/tool/plugin/read.js +127 -127
  642. package/dist/tool/plugin/shell.js +208 -208
  643. package/dist/tool/plugin/skill.js +115 -115
  644. package/dist/tool/plugin/subagent.js +214 -214
  645. package/dist/tool/plugin/webfetch.js +114 -114
  646. package/dist/tool/plugin/websearch.js +116 -116
  647. package/dist/tool/plugin/write.js +118 -118
  648. package/dist/tool/read-filesystem.js +102 -102
  649. package/dist/tool/runtime.js +1 -1
  650. package/dist/tool-output.js +7 -7
  651. package/dist/tool.js +14 -14
  652. package/dist/util/error-summary.js +1 -1
  653. package/dist/util/error.js +1 -1
  654. package/dist/util/git-executable.js +2 -2
  655. package/dist/util/iife.js +1 -1
  656. package/dist/util/lazy.js +1 -1
  657. package/dist/util/slug.js +1 -1
  658. package/dist/util/token.js +1 -1
  659. package/dist/util/which.js +1 -1
  660. package/dist/util/wildcard.js +1 -1
  661. package/dist/v1/config/agent.js +5 -5
  662. package/dist/v1/config/command.js +5 -5
  663. package/dist/v1/config/error.js +4 -4
  664. package/dist/v1/config/mcp.js +4 -4
  665. package/dist/v1/config/migrate.js +94 -94
  666. package/dist/v1/config/permission.js +7 -7
  667. package/dist/v1/config/plugin.js +1 -1
  668. package/dist/v1/config/provider-options.js +1 -1
  669. package/dist/v1/config/provider.js +4 -4
  670. package/dist/variant.js +95 -95
  671. package/dist/vcs/patch.js +1 -1
  672. package/dist/vcs.js +91 -91
  673. package/dist/websearch.js +84 -84
  674. package/dist/wellknown/plugin.js +78 -78
  675. package/dist/wellknown.js +79 -79
  676. package/dist/workspace/driver.js +7 -7
  677. package/dist/workspace/sql.js +1 -1
  678. package/dist/workspace.js +82 -82
  679. package/dist/worktree/directory.js +2 -2
  680. package/dist/worktree/git.js +10 -10
  681. package/dist/worktree/sql.js +5 -5
  682. package/dist/worktree/strategies.js +91 -91
  683. package/dist/worktree.js +98 -98
  684. package/package.json +8 -8
  685. package/dist/chunks/git-9sh4wc5j.js +0 -18
  686. package/dist/chunks/git-s8xv3ahs.js +0 -253
  687. package/dist/chunks/git-x0jcc5yc.js +0 -26
  688. /package/dist/chunks/{git-0qkdqm5v.js → generate-0qkdqm5v.js} +0 -0
  689. /package/dist/chunks/{git-0zkw76rk.js → generate-0zkw76rk.js} +0 -0
  690. /package/dist/chunks/{git-17cy0kzp.js → generate-17cy0kzp.js} +0 -0
  691. /package/dist/chunks/{git-1cnp2v09.js → generate-1cnp2v09.js} +0 -0
  692. /package/dist/chunks/{git-1kg9ymc8.js → generate-1kg9ymc8.js} +0 -0
  693. /package/dist/chunks/{git-24dcb14g.js → generate-24dcb14g.js} +0 -0
  694. /package/dist/chunks/{git-2710q6r3.js → generate-2710q6r3.js} +0 -0
  695. /package/dist/chunks/{git-2axfhc9x.js → generate-2axfhc9x.js} +0 -0
  696. /package/dist/chunks/{git-2bv980vf.js → generate-2bv980vf.js} +0 -0
  697. /package/dist/chunks/{git-2c3vjs8z.js → generate-2c3vjs8z.js} +0 -0
  698. /package/dist/chunks/{git-359p4xyc.js → generate-359p4xyc.js} +0 -0
  699. /package/dist/chunks/{git-3asan66x.js → generate-3asan66x.js} +0 -0
  700. /package/dist/chunks/{git-3t0ybcrp.js → generate-3t0ybcrp.js} +0 -0
  701. /package/dist/chunks/{git-3v8g72cx.js → generate-3v8g72cx.js} +0 -0
  702. /package/dist/chunks/{git-3wcehsnq.js → generate-3wcehsnq.js} +0 -0
  703. /package/dist/chunks/{git-43n2bw4t.js → generate-43n2bw4t.js} +0 -0
  704. /package/dist/chunks/{git-4knz6hnm.js → generate-4knz6hnm.js} +0 -0
  705. /package/dist/chunks/{git-4vcrnpx2.js → generate-4vcrnpx2.js} +0 -0
  706. /package/dist/chunks/{git-4y7fprxs.js → generate-4y7fprxs.js} +0 -0
  707. /package/dist/chunks/{git-53557ph1.js → generate-53557ph1.js} +0 -0
  708. /package/dist/chunks/{git-550bvhaj.js → generate-550bvhaj.js} +0 -0
  709. /package/dist/chunks/{git-6prwharc.js → generate-6prwharc.js} +0 -0
  710. /package/dist/chunks/{git-6q2bdcd1.js → generate-6q2bdcd1.js} +0 -0
  711. /package/dist/chunks/{git-7akdwqpd.js → generate-7akdwqpd.js} +0 -0
  712. /package/dist/chunks/{git-7m9af43g.js → generate-7m9af43g.js} +0 -0
  713. /package/dist/chunks/{git-822emrt2.js → generate-822emrt2.js} +0 -0
  714. /package/dist/chunks/{git-84wd9syh.js → generate-84wd9syh.js} +0 -0
  715. /package/dist/chunks/{git-88xbtdfr.js → generate-88xbtdfr.js} +0 -0
  716. /package/dist/chunks/{git-8n3pysct.js → generate-8n3pysct.js} +0 -0
  717. /package/dist/chunks/{git-8wj87zfr.js → generate-8wj87zfr.js} +0 -0
  718. /package/dist/chunks/{git-9a4afbnw.js → generate-9a4afbnw.js} +0 -0
  719. /package/dist/chunks/{git-9rqn6x4v.js → generate-9rqn6x4v.js} +0 -0
  720. /package/dist/chunks/{git-a6k6eb26.js → generate-a6k6eb26.js} +0 -0
  721. /package/dist/chunks/{git-af5trqkr.js → generate-af5trqkr.js} +0 -0
  722. /package/dist/chunks/{git-afrmfg78.js → generate-afrmfg78.js} +0 -0
  723. /package/dist/chunks/{git-aqzs7mqg.js → generate-aqzs7mqg.js} +0 -0
  724. /package/dist/chunks/{git-atq7p7m5.js → generate-atq7p7m5.js} +0 -0
  725. /package/dist/chunks/{git-bkyjaxrp.js → generate-bkyjaxrp.js} +0 -0
  726. /package/dist/chunks/{git-bmr6ed5q.js → generate-bmr6ed5q.js} +0 -0
  727. /package/dist/chunks/{git-cf4snx6d.js → generate-cf4snx6d.js} +0 -0
  728. /package/dist/chunks/{git-cvy3z8tj.js → generate-cvy3z8tj.js} +0 -0
  729. /package/dist/chunks/{git-d9fn303g.js → generate-d9fn303g.js} +0 -0
  730. /package/dist/chunks/{git-d9jj8t3e.js → generate-d9jj8t3e.js} +0 -0
  731. /package/dist/chunks/{git-dajrwvna.js → generate-dajrwvna.js} +0 -0
  732. /package/dist/chunks/{git-dap0rakb.js → generate-dap0rakb.js} +0 -0
  733. /package/dist/chunks/{git-df08tz66.js → generate-df08tz66.js} +0 -0
  734. /package/dist/chunks/{git-dy18nga0.js → generate-dy18nga0.js} +0 -0
  735. /package/dist/chunks/{git-e5kj55wp.js → generate-e5kj55wp.js} +0 -0
  736. /package/dist/chunks/{git-e73j6tqm.js → generate-e73j6tqm.js} +0 -0
  737. /package/dist/chunks/{git-ec1grn59.js → generate-ec1grn59.js} +0 -0
  738. /package/dist/chunks/{git-eh3zwz77.js → generate-eh3zwz77.js} +0 -0
  739. /package/dist/chunks/{git-emrn6kk6.js → generate-emrn6kk6.js} +0 -0
  740. /package/dist/chunks/{git-f0mxakyp.js → generate-f0mxakyp.js} +0 -0
  741. /package/dist/chunks/{git-f6n9ztr4.js → generate-f6n9ztr4.js} +0 -0
  742. /package/dist/chunks/{git-faypxj3z.js → generate-faypxj3z.js} +0 -0
  743. /package/dist/chunks/{git-fd410y7t.js → generate-fd410y7t.js} +0 -0
  744. /package/dist/chunks/{git-g4wezp1m.js → generate-g4wezp1m.js} +0 -0
  745. /package/dist/chunks/{git-g86h250q.js → generate-g86h250q.js} +0 -0
  746. /package/dist/chunks/{git-gebd4c9n.js → generate-gebd4c9n.js} +0 -0
  747. /package/dist/chunks/{git-gftt206x.js → generate-gftt206x.js} +0 -0
  748. /package/dist/chunks/{git-hcxmzztb.js → generate-hcxmzztb.js} +0 -0
  749. /package/dist/chunks/{git-hk9envan.js → generate-hk9envan.js} +0 -0
  750. /package/dist/chunks/{git-j2ntwpah.js → generate-j2ntwpah.js} +0 -0
  751. /package/dist/chunks/{git-j5zkgpj8.js → generate-j5zkgpj8.js} +0 -0
  752. /package/dist/chunks/{git-jjkms2e6.js → generate-jjkms2e6.js} +0 -0
  753. /package/dist/chunks/{git-jr7sbwjy.js → generate-jr7sbwjy.js} +0 -0
  754. /package/dist/chunks/{git-jwfs4k6c.js → generate-jwfs4k6c.js} +0 -0
  755. /package/dist/chunks/{git-jze0r7bz.js → generate-jze0r7bz.js} +0 -0
  756. /package/dist/chunks/{git-jzg6c2d5.js → generate-jzg6c2d5.js} +0 -0
  757. /package/dist/chunks/{git-m18g726c.js → generate-m18g726c.js} +0 -0
  758. /package/dist/chunks/{git-mp448xyj.js → generate-mp448xyj.js} +0 -0
  759. /package/dist/chunks/{git-msx8hqn2.js → generate-msx8hqn2.js} +0 -0
  760. /package/dist/chunks/{git-n05xt0ee.js → generate-n05xt0ee.js} +0 -0
  761. /package/dist/chunks/{git-n3j8tn72.js → generate-n3j8tn72.js} +0 -0
  762. /package/dist/chunks/{git-njntx4h6.js → generate-njntx4h6.js} +0 -0
  763. /package/dist/chunks/{git-pkyv6v7h.js → generate-pkyv6v7h.js} +0 -0
  764. /package/dist/chunks/{git-pyv0edze.js → generate-pyv0edze.js} +0 -0
  765. /package/dist/chunks/{git-q3sfg36h.js → generate-q3sfg36h.js} +0 -0
  766. /package/dist/chunks/{git-q74kybfr.js → generate-q74kybfr.js} +0 -0
  767. /package/dist/chunks/{git-qaymkmh1.js → generate-qaymkmh1.js} +0 -0
  768. /package/dist/chunks/{git-qb87gjwd.js → generate-qb87gjwd.js} +0 -0
  769. /package/dist/chunks/{git-qfa1cgps.js → generate-qfa1cgps.js} +0 -0
  770. /package/dist/chunks/{git-qg3g05ea.js → generate-qg3g05ea.js} +0 -0
  771. /package/dist/chunks/{git-qrg20bc0.js → generate-qrg20bc0.js} +0 -0
  772. /package/dist/chunks/{git-rcb2kzg1.js → generate-rcb2kzg1.js} +0 -0
  773. /package/dist/chunks/{git-sdp7kfr6.js → generate-sdp7kfr6.js} +0 -0
  774. /package/dist/chunks/{git-ssg3fenm.js → generate-ssg3fenm.js} +0 -0
  775. /package/dist/chunks/{git-ve7vex1e.js → generate-ve7vex1e.js} +0 -0
  776. /package/dist/chunks/{git-w803qqfp.js → generate-w803qqfp.js} +0 -0
  777. /package/dist/chunks/{git-wc3fc9cn.js → generate-wc3fc9cn.js} +0 -0
  778. /package/dist/chunks/{git-wer8tq1h.js → generate-wer8tq1h.js} +0 -0
  779. /package/dist/chunks/{git-wjj7prxr.js → generate-wjj7prxr.js} +0 -0
  780. /package/dist/chunks/{git-wtztk69x.js → generate-wtztk69x.js} +0 -0
  781. /package/dist/chunks/{git-x0ckcb58.js → generate-x0ckcb58.js} +0 -0
  782. /package/dist/chunks/{git-x61499pn.js → generate-x61499pn.js} +0 -0
  783. /package/dist/chunks/{git-y44na4kk.js → generate-y44na4kk.js} +0 -0
  784. /package/dist/chunks/{git-y8f7s663.js → generate-y8f7s663.js} +0 -0
  785. /package/dist/chunks/{git-ygaqb7jw.js → generate-ygaqb7jw.js} +0 -0
  786. /package/dist/chunks/{git-ym463w8f.js → generate-ym463w8f.js} +0 -0
  787. /package/dist/chunks/{git-z5v4ffb3.js → generate-z5v4ffb3.js} +0 -0
  788. /package/dist/chunks/{git-z9919s4g.js → generate-z9919s4g.js} +0 -0
@@ -1,49 +1,49 @@
1
1
  import {
2
2
  AbsolutePath2
3
- } from "./git-z5v4ffb3.js";
3
+ } from "./generate-z5v4ffb3.js";
4
4
  import {
5
5
  Service85,
6
6
  node89
7
- } from "./git-9hq9njac.js";
8
- import {
9
- Service81,
10
- node85
11
- } from "./git-bjqx3wez.js";
7
+ } from "./generate-2hk2ydh2.js";
12
8
  import {
13
9
  Service84,
14
10
  node88
15
- } from "./git-0xcda8sn.js";
11
+ } from "./generate-j3nkb9wj.js";
12
+ import {
13
+ Service82,
14
+ node85
15
+ } from "./generate-fa0b3k97.js";
16
16
  import {
17
- ID15,
17
+ ID17,
18
18
  Current3,
19
- Info25,
19
+ Info28,
20
20
  UpdateInput4,
21
- Event18,
21
+ Event20,
22
22
  Vcs3
23
- } from "./git-4434d9q2.js";
23
+ } from "./generate-fpecnkgp.js";
24
24
  import {
25
25
  ProjectTable2,
26
26
  upsertProject2
27
- } from "./git-rj3eygr5.js";
27
+ } from "./generate-rj3eygr5.js";
28
28
  import {
29
29
  WorktreeTable2
30
- } from "./git-sa8ekw3f.js";
30
+ } from "./generate-sa8ekw3f.js";
31
31
  import {
32
32
  __export
33
- } from "./git-9rqn6x4v.js";
33
+ } from "./generate-9rqn6x4v.js";
34
34
 
35
35
  // src/project.ts
36
36
  var exports_project = {};
37
37
  __export(exports_project, {
38
38
  Current: () => Current2,
39
- ID: () => ID14,
40
- Info: () => Info24,
39
+ ID: () => ID16,
40
+ Info: () => Info27,
41
41
  NotFoundError: () => NotFoundError10,
42
42
  Project: () => exports_project,
43
- Service: () => Service77,
43
+ Service: () => Service81,
44
44
  UpdateInput: () => UpdateInput3,
45
45
  Vcs: () => Vcs2,
46
- node: () => node81,
46
+ node: () => node84,
47
47
  root: () => root2,
48
48
  sweepNode: () => sweepNode2
49
49
  });
@@ -56,14 +56,14 @@ import { FSUtil } from "@opencode/util/fs-util";
56
56
  import { AppProcess } from "@opencode/util/process";
57
57
  import { makeGlobalNode } from "@opencode/util/effect/app-node";
58
58
  import { Hash } from "@opencode/util/hash";
59
- var ID14 = ID15;
59
+ var ID16 = ID17;
60
60
  var Vcs2 = Vcs3;
61
61
  var Current2 = Current3;
62
- var Info24 = Info25;
62
+ var Info27 = Info28;
63
63
  var UpdateInput3 = UpdateInput4;
64
64
 
65
65
  class NotFoundError10 extends Schema.TaggedError()("Project.NotFoundError", {
66
- projectID: ID14
66
+ projectID: ID16
67
67
  }) {
68
68
  }
69
69
  var root2 = Effect.fn("Project.root")(function* (fs, input, markers = [".git", ".hg"]) {
@@ -74,7 +74,7 @@ var root2 = Effect.fn("Project.root")(function* (fs, input, markers = [".git", "
74
74
  var ACTIVATE_INTERVAL = 60000;
75
75
  var SWEEP_INTERVAL = Duration.hours(1);
76
76
 
77
- class Service77 extends Context.Service()("@opencode/Project") {
77
+ class Service81 extends Context.Service()("@opencode/Project") {
78
78
  }
79
79
  function fromRow(row) {
80
80
  const icon = row.icon_url || row.icon_url_override || row.icon_color ? {
@@ -98,11 +98,11 @@ function fromRow(row) {
98
98
  sandboxes: row.sandboxes
99
99
  };
100
100
  }
101
- var layer = Layer.effect(Service77, Effect.gen(function* () {
101
+ var layer = Layer.effect(Service81, Effect.gen(function* () {
102
102
  const fs = yield* FSUtil.Service;
103
- const git = yield* Service84;
103
+ const git = yield* Service82;
104
104
  const proc = yield* AppProcess.Service;
105
- const bus = yield* Service81;
105
+ const bus = yield* Service84;
106
106
  const db = (yield* Service85).db;
107
107
  const announcing = new Set;
108
108
  const persist = Effect.fnUntraced(function* (project) {
@@ -112,7 +112,7 @@ var layer = Layer.effect(Service77, Effect.gen(function* () {
112
112
  const replaced = previous && previous.canonical !== project.canonical && !(yield* fs.exists(previous.canonical).pipe(Effect.orElseSucceed(() => true))) ? yield* db.update(ProjectTable2).set({ worktree: project.canonical }).where(eq(ProjectTable2.id, project.id)).returning().get().pipe(Effect.orDie) : undefined;
113
113
  const changed = replaced ?? unarchived;
114
114
  if (changed)
115
- yield* bus.publish(Event18.Updated, fromRow(changed));
115
+ yield* bus.publish(Event20.Updated, fromRow(changed));
116
116
  if (!project.vcs)
117
117
  return project;
118
118
  const directories = [
@@ -148,7 +148,7 @@ var layer = Layer.effect(Service77, Effect.gen(function* () {
148
148
  yield* bus.publish(Worktree.Event.Resolved, {
149
149
  projectID: item.projectID,
150
150
  directory: item.directory,
151
- previous: project.previous ?? ID14.global,
151
+ previous: project.previous ?? ID16.global,
152
152
  ...adopted.length ? { adopted: adopted.map((candidate) => candidate.id) } : {}
153
153
  }, {
154
154
  commit: () => db.insert(WorktreeTable2).values({ project_id: item.projectID, directory: item.directory, strategy: item.strategy }).onConflictDoNothing().run().pipe(Effect.orDie, Effect.asVoid)
@@ -173,7 +173,7 @@ var layer = Layer.effect(Service77, Effect.gen(function* () {
173
173
  if (!row)
174
174
  return yield* new NotFoundError10({ projectID: input.projectID });
175
175
  const project = fromRow(row);
176
- yield* bus.publish(Event18.Updated, project);
176
+ yield* bus.publish(Event20.Updated, project);
177
177
  return project;
178
178
  });
179
179
  const activated = new Map;
@@ -184,10 +184,10 @@ var layer = Layer.effect(Service77, Effect.gen(function* () {
184
184
  activated.set(projectID, now);
185
185
  const row = yield* db.update(ProjectTable2).set({ time_active: now, time_updated: sql`${ProjectTable2.time_updated}` }).where(eq(ProjectTable2.id, projectID)).returning().get().pipe(Effect.orDie);
186
186
  if (row)
187
- yield* bus.publish(Event18.Updated, fromRow(row));
187
+ yield* bus.publish(Event20.Updated, fromRow(row));
188
188
  });
189
189
  const cached = Effect.fnUntraced(function* (dir) {
190
- return yield* fs.readFileString(path.join(dir, "opencode")).pipe(Effect.map((value) => value.trim()), Effect.map((value) => value ? ID14.make(value) : undefined), Effect.orElseSucceed(() => {
190
+ return yield* fs.readFileString(path.join(dir, "opencode")).pipe(Effect.map((value) => value.trim()), Effect.map((value) => value ? ID16.make(value) : undefined), Effect.orElseSucceed(() => {
191
191
  return;
192
192
  }));
193
193
  });
@@ -198,7 +198,7 @@ var layer = Layer.effect(Service77, Effect.gen(function* () {
198
198
  const normalized = url(origin);
199
199
  if (!normalized)
200
200
  return;
201
- return ID14.make(Hash.fast(`git-remote:${normalized}`));
201
+ return ID16.make(Hash.fast(`git-remote:${normalized}`));
202
202
  });
203
203
  function url(input) {
204
204
  const value = input.trim();
@@ -223,7 +223,7 @@ var layer = Layer.effect(Service77, Effect.gen(function* () {
223
223
  }
224
224
  const rootCommit = Effect.fnUntraced(function* (repo) {
225
225
  const root = (yield* git.history.rootCommits(repo))[0];
226
- return root ? ID14.make(root) : undefined;
226
+ return root ? ID16.make(root) : undefined;
227
227
  });
228
228
  const hgRoot = Effect.fnUntraced(function* (worktree) {
229
229
  const result = yield* proc.run(ChildProcess.make("hg", ["log", "-r", "roots(all())", "-T", `{node}
@@ -239,7 +239,7 @@ var layer = Layer.effect(Service77, Effect.gen(function* () {
239
239
  return;
240
240
  const node = result.stdout.toString("utf8").split(`
241
241
  `).map((item) => item.trim()).filter(Boolean).toSorted()[0];
242
- return node ? ID14.make(node) : undefined;
242
+ return node ? ID16.make(node) : undefined;
243
243
  });
244
244
  const hgDiscover = Effect.fnUntraced(function* (dotHg) {
245
245
  const worktree = AbsolutePath2.make(path.dirname(dotHg));
@@ -248,7 +248,7 @@ var layer = Layer.effect(Service77, Effect.gen(function* () {
248
248
  const id = previous ?? (yield* hgRoot(worktree));
249
249
  return {
250
250
  previous,
251
- id: id ?? ID14.global,
251
+ id: id ?? ID16.global,
252
252
  directory: worktree,
253
253
  vcs: { type: "hg", store }
254
254
  };
@@ -265,7 +265,7 @@ var layer = Layer.effect(Service77, Effect.gen(function* () {
265
265
  const canonical = repo.gitDirectory === repo.commonDirectory ? repo.worktree : yield* git.worktree.list(repo).pipe(Effect.map((items) => items.find((item) => item.kind === "main")?.directory ?? repo.worktree), Effect.orElseSucceed(() => repo.worktree));
266
266
  return yield* persist({
267
267
  previous,
268
- id: id ?? ID14.global,
268
+ id: id ?? ID16.global,
269
269
  directory: repo.worktree,
270
270
  canonical,
271
271
  vcs: { type: "git", store: repo.commonDirectory }
@@ -279,7 +279,7 @@ var layer = Layer.effect(Service77, Effect.gen(function* () {
279
279
  });
280
280
  }
281
281
  return yield* persist({
282
- id: ID14.make(Hash.fast(`directory:${directory}`)),
282
+ id: ID16.make(Hash.fast(`directory:${directory}`)),
283
283
  directory,
284
284
  canonical: directory,
285
285
  vcs: undefined
@@ -288,7 +288,7 @@ var layer = Layer.effect(Service77, Effect.gen(function* () {
288
288
  const sweep = Effect.fn("Project.sweep")(function* () {
289
289
  const cutoff = Date.now() - Duration.toMillis(SWEEP_INTERVAL);
290
290
  const idle = and(isNull(ProjectTable2.time_archived), lt(ProjectTable2.time_updated, cutoff), lt(ProjectTable2.time_active, cutoff));
291
- const projects = yield* db.select({ id: ProjectTable2.id, canonical: ProjectTable2.worktree }).from(ProjectTable2).where(and(idle, ne(ProjectTable2.id, ID14.global))).all().pipe(Effect.orDie);
291
+ const projects = yield* db.select({ id: ProjectTable2.id, canonical: ProjectTable2.worktree }).from(ProjectTable2).where(and(idle, ne(ProjectTable2.id, ID16.global))).all().pipe(Effect.orDie);
292
292
  const worktrees = yield* db.select().from(WorktreeTable2).all().pipe(Effect.orDie);
293
293
  const exists = (directory) => fs.exists(directory).pipe(Effect.orElseSucceed(() => true));
294
294
  yield* Effect.forEach(projects, Effect.fnUntraced(function* (project) {
@@ -301,23 +301,23 @@ var layer = Layer.effect(Service77, Effect.gen(function* () {
301
301
  return;
302
302
  const row = yield* db.update(ProjectTable2).set(main ? { worktree: main.directory } : { time_archived: Date.now(), time_updated: sql`${ProjectTable2.time_updated}` }).where(and(eq(ProjectTable2.id, project.id), idle)).returning().get().pipe(Effect.orDie);
303
303
  if (row)
304
- yield* bus.publish(Event18.Updated, fromRow(row));
304
+ yield* bus.publish(Event20.Updated, fromRow(row));
305
305
  }), { concurrency: 8, discard: true });
306
306
  });
307
- return Service77.of({ list, update, activate, resolve, sweep });
307
+ return Service81.of({ list, update, activate, resolve, sweep });
308
308
  }));
309
- var node81 = makeGlobalNode({
310
- service: Service77,
309
+ var node84 = makeGlobalNode({
310
+ service: Service81,
311
311
  layer,
312
- deps: [node85, node89, FSUtil.node, node88, AppProcess.node]
312
+ deps: [node88, node89, FSUtil.node, node85, AppProcess.node]
313
313
  });
314
314
  var sweepNode2 = makeGlobalNode({
315
315
  name: "project-archive-sweep",
316
316
  layer: Layer.effectDiscard(Effect.gen(function* () {
317
- const project = yield* Service77;
317
+ const project = yield* Service81;
318
318
  yield* project.sweep().pipe(Effect.ignoreCause({ log: "Error", message: "Project archive sweep failed" }), Effect.repeat(Schedule.spaced(SWEEP_INTERVAL)), Effect.forkScoped);
319
319
  })),
320
- deps: [node81]
320
+ deps: [node84]
321
321
  });
322
322
 
323
- export { ID14, Vcs2, Current2, Info24, UpdateInput3, NotFoundError10, root2, Service77, node81, sweepNode2, exports_project };
323
+ export { ID16, Vcs2, Current2, Info27, UpdateInput3, NotFoundError10, root2, Service81, node84, sweepNode2, exports_project };
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  createProviderPlugin2
3
- } from "./git-ym463w8f.js";
3
+ } from "./generate-ym463w8f.js";
4
4
 
5
5
  // src/plugin/provider/cohere.ts
6
6
  var CoherePlugin2 = createProviderPlugin2({
@@ -1,51 +1,51 @@
1
1
  import {
2
2
  typeFollowing2
3
- } from "./git-hgz4x7wa.js";
3
+ } from "./generate-hgz4x7wa.js";
4
4
  import {
5
5
  RelativePath2
6
- } from "./git-z5v4ffb3.js";
6
+ } from "./generate-z5v4ffb3.js";
7
7
  import {
8
- Service76
9
- } from "./git-2m90p0f2.js";
8
+ Service80
9
+ } from "./generate-319jyy1m.js";
10
10
  import {
11
- Service61
12
- } from "./git-2e7f9scb.js";
11
+ Service55
12
+ } from "./generate-1eg42xax.js";
13
13
  import {
14
14
  InvalidPatternError2,
15
- Service21
16
- } from "./git-rjw0cna6.js";
15
+ Service23
16
+ } from "./generate-e4p24ara.js";
17
17
  import {
18
18
  DEFAULT_SEARCH_LIMIT2,
19
19
  DEFAULT_SEARCH_TIMEOUT_MS2,
20
20
  GrepInput2,
21
21
  Entry2,
22
22
  Match2
23
- } from "./git-2frv8mpr.js";
23
+ } from "./generate-amcg9hk8.js";
24
24
  import {
25
- Service51
26
- } from "./git-cr0f5pn5.js";
25
+ Service74
26
+ } from "./generate-kxxbqm5f.js";
27
27
  import {
28
- Service14
29
- } from "./git-wd0vxgyq.js";
28
+ Service24
29
+ } from "./generate-gm2e0st7.js";
30
30
  import {
31
31
  __export
32
- } from "./git-9rqn6x4v.js";
32
+ } from "./generate-9rqn6x4v.js";
33
33
 
34
34
  // src/tool/plugin/grep.ts
35
35
  var exports_grep = {};
36
36
  __export(exports_grep, {
37
37
  GrepTool: () => exports_grep,
38
- Input: () => Input11,
39
- Output: () => Output8,
40
- Plugin: () => Plugin48,
41
- name: () => name11,
42
- toModelContent: () => toModelContent6
38
+ Input: () => Input6,
39
+ Output: () => Output4,
40
+ Plugin: () => Plugin6,
41
+ name: () => name6,
42
+ toModelContent: () => toModelContent5
43
43
  });
44
44
  import { ToolFailure } from "@opencode/ai";
45
45
  import { Effect, Schema } from "effect";
46
46
  import path from "path";
47
- var name11 = "grep";
48
- var Input11 = Schema.Struct({
47
+ var name6 = "grep";
48
+ var Input6 = Schema.Struct({
49
49
  pattern: GrepInput2.fields.pattern.check(Schema.isMinLength(1, { message: "Pattern must not be empty" })).annotate({
50
50
  description: "Regular expression or literal text to match in file contents."
51
51
  }),
@@ -65,8 +65,8 @@ var Input11 = Schema.Struct({
65
65
  description: `Maximum number of matching lines to return (default: ${DEFAULT_SEARCH_LIMIT2})`
66
66
  })
67
67
  });
68
- var Output8 = Schema.Array(Match2);
69
- var toModelContent6 = (matches, truncated = false) => {
68
+ var Output4 = Schema.Array(Match2);
69
+ var toModelContent5 = (matches, truncated = false) => {
70
70
  const lines = matches.length === 0 ? ["No matches found"] : [`Found ${matches.length} matches`];
71
71
  let current = "";
72
72
  for (const match of matches) {
@@ -83,26 +83,26 @@ var toModelContent6 = (matches, truncated = false) => {
83
83
  return lines.join(`
84
84
  `);
85
85
  };
86
- var Plugin48 = {
86
+ var Plugin6 = {
87
87
  id: "opencode.tool.grep",
88
88
  effect: Effect.fn("GrepTool.Plugin")(function* (ctx) {
89
- const environment = yield* Service61;
90
- const ripgrep = yield* Service21;
91
- const location = yield* Service76;
92
- const access = yield* Service14;
93
- const permission = yield* Service51;
89
+ const environment = yield* Service55;
90
+ const ripgrep = yield* Service23;
91
+ const location = yield* Service80;
92
+ const access = yield* Service24;
93
+ const permission = yield* Service74;
94
94
  yield* ctx.tool.transform((editor) => editor.add({
95
- name: name11,
95
+ name: name6,
96
96
  options: { codemode: false },
97
97
  description: "Search file contents using ripgrep's regular expression syntax or literal text matching. Use it to locate specific code, symbols, or text patterns, and narrow searches with `path` or `include`. Returns matching file paths, line numbers, and line previews.",
98
- input: Input11,
99
- output: Output8,
98
+ input: Input6,
99
+ output: Output4,
100
100
  execute: (input, context) => Effect.gen(function* () {
101
101
  const source = { type: "tool", messageID: context.messageID, id: context.id };
102
102
  const target = yield* access.resolve({ path: input.path ?? "." });
103
103
  yield* access.authorizeExternal([target], context);
104
104
  yield* permission.assert({
105
- action: name11,
105
+ action: name6,
106
106
  resources: [input.pattern],
107
107
  save: ["*"],
108
108
  metadata: {
@@ -144,7 +144,7 @@ var Plugin48 = {
144
144
  return { matches: matches.slice(0, limit), truncated: matches.length > limit };
145
145
  }).pipe(Effect.map((result) => ({
146
146
  output: result.matches,
147
- content: toModelContent6(result.matches.map((match) => ({
147
+ content: toModelContent5(result.matches.map((match) => ({
148
148
  ...match,
149
149
  entry: { ...match.entry, path: path.resolve(location.directory, match.entry.path) }
150
150
  })), result.truncated),
@@ -154,4 +154,4 @@ var Plugin48 = {
154
154
  })
155
155
  };
156
156
 
157
- export { name11, Input11, Output8, toModelContent6, Plugin48, exports_grep };
157
+ export { name6, Input6, Output4, toModelContent5, Plugin6, exports_grep };
@@ -1,34 +1,34 @@
1
1
  import {
2
2
  useragent2
3
- } from "./git-160pwc7a.js";
3
+ } from "./generate-8npnmh1j.js";
4
4
  import {
5
- Service81
6
- } from "./git-bjqx3wez.js";
5
+ Service84
6
+ } from "./generate-j3nkb9wj.js";
7
7
  import {
8
- ID17,
9
- Event20,
10
- Service79
11
- } from "./git-3pykwxdf.js";
8
+ ID11,
9
+ Event16,
10
+ Service68
11
+ } from "./generate-y9pr6q2f.js";
12
12
  import {
13
13
  key2
14
- } from "./git-3y377wv9.js";
14
+ } from "./generate-db2wf4at.js";
15
15
  import {
16
- ID16,
16
+ ID10,
17
17
  MethodID2
18
- } from "./git-1426e4tb.js";
18
+ } from "./generate-3cb4vsbh.js";
19
19
  import {
20
20
  which2
21
- } from "./git-qaymkmh1.js";
21
+ } from "./generate-qaymkmh1.js";
22
22
  import {
23
- ID13,
24
- Service75
25
- } from "./git-7djggyfs.js";
23
+ ID9,
24
+ Service66
25
+ } from "./generate-7r0r2nec.js";
26
26
  import {
27
- ID12
28
- } from "./git-ra5e1p3e.js";
27
+ ID8
28
+ } from "./generate-y6nmpnm5.js";
29
29
  import {
30
30
  configuredSettings2
31
- } from "./git-cg22jcxb.js";
31
+ } from "./generate-wkcx7fj9.js";
32
32
 
33
33
  // src/plugin/provider/azure.ts
34
34
  import { Clock, Effect, FiberHandle, Option, Schema, Semaphore, Stream } from "effect";
@@ -63,18 +63,18 @@ var decodeManagementDeployment = Schema.decodeUnknownOption(Schema.Struct({
63
63
  }));
64
64
  var ResourceQuery = Schema.Struct({ query: Schema.String });
65
65
  var Resources = Schema.Struct({ data: Schema.Array(Schema.Struct({ id: Schema.NonEmptyString })) });
66
- function make4(endpoints = {
66
+ function make5(endpoints = {
67
67
  resource: (name) => `https://${name}.openai.azure.com/openai`,
68
68
  management: "https://management.azure.com"
69
69
  }) {
70
70
  return define({
71
71
  id: "opencode.provider.azure",
72
72
  effect: Effect.fn(function* (ctx) {
73
- const configured = yield* configuredSettings2(ID13.azure);
73
+ const configured = yield* configuredSettings2(ID9.azure);
74
74
  const processes = yield* AppProcess.Service;
75
- const bus = yield* Service81;
76
- const credentials = yield* Service79;
77
- const providers = yield* Service75;
75
+ const bus = yield* Service84;
76
+ const credentials = yield* Service68;
77
+ const providers = yield* Service66;
78
78
  const http = HttpClient.filterStatusOk(yield* HttpClient.HttpClient);
79
79
  const tokens = new Map;
80
80
  const resourceIDs = new Map;
@@ -100,11 +100,11 @@ function make4(endpoints = {
100
100
  const configuredResource = Boolean(resolveResourceName(configured) || typeof configured?.baseURL === "string");
101
101
  yield* ctx.integration.transform((editor) => {
102
102
  editor.method.update({
103
- integrationID: ID13.azure,
103
+ integrationID: ID9.azure,
104
104
  method: { type: "env", names: ["AZURE_API_KEY", "AZURE_COGNITIVE_SERVICES_API_KEY"] }
105
105
  });
106
106
  editor.method.update({
107
- integrationID: ID13.azure,
107
+ integrationID: ID9.azure,
108
108
  method: {
109
109
  type: "key",
110
110
  label: "API key",
@@ -122,7 +122,7 @@ function make4(endpoints = {
122
122
  if (!available)
123
123
  return;
124
124
  editor.method.update({
125
- integrationID: ID13.azure,
125
+ integrationID: ID9.azure,
126
126
  method: {
127
127
  id: methodID,
128
128
  type: "external",
@@ -142,8 +142,8 @@ function make4(endpoints = {
142
142
  });
143
143
  });
144
144
  const load = Effect.fn("AzurePlugin.load")(function* () {
145
- const connection = yield* ctx.integration.connection.active(ID13.azure);
146
- const stored = connection?.type === "credential" ? yield* credentials.get(ID17.make(connection.id)) : undefined;
145
+ const connection = yield* ctx.integration.connection.active(ID9.azure);
146
+ const stored = connection?.type === "credential" ? yield* credentials.get(ID11.make(connection.id)) : undefined;
147
147
  return { connection, resource: credentialResource(stored?.value) };
148
148
  });
149
149
  const findResource = Effect.fn("AzurePlugin.findResource")(function* (resource) {
@@ -182,7 +182,7 @@ function make4(endpoints = {
182
182
  }));
183
183
  const discover = Effect.fn("AzurePlugin.discover")(function* () {
184
184
  const connection = loaded.connection;
185
- const settings = (yield* providers.get(ID13.azure))?.settings;
185
+ const settings = (yield* providers.get(ID9.azure))?.settings;
186
186
  const name = loaded.resource ?? resolveResourceName(settings);
187
187
  const url = connection && name !== undefined && resourcePattern.test(name) && typeof settings?.baseURL !== "string" ? `${endpoints.resource(name)}/deployments?api-version=2022-12-01` : undefined;
188
188
  if (loaded.connection !== connection)
@@ -204,11 +204,11 @@ function make4(endpoints = {
204
204
  const found = yield* deployments(url, name, credential).pipe(Effect.map((list) => list.toSorted((a, b) => a.name.localeCompare(b.name))), Effect.catch((cause) => Effect.logWarning("failed to sync Azure deployments", { cause }).pipe(Effect.as(undefined))));
205
205
  if (!found)
206
206
  return;
207
- if (loaded.connection !== connection || key2(connection) !== key2(yield* ctx.integration.connection.active(ID13.azure)))
207
+ if (loaded.connection !== connection || key2(connection) !== key2(yield* ctx.integration.connection.active(ID9.azure)))
208
208
  return;
209
209
  if (JSON.stringify(found) === JSON.stringify(loaded.deployments))
210
210
  return;
211
- const catalog = new Map(Array.from((yield* providers.snapshot()).records.get(ID13.azure)?.models.keys() ?? [], (id) => [
211
+ const catalog = new Map(Array.from((yield* providers.snapshot()).records.get(ID9.azure)?.models.keys() ?? [], (id) => [
212
212
  id.toLowerCase(),
213
213
  id
214
214
  ]));
@@ -221,11 +221,11 @@ function make4(endpoints = {
221
221
  yield* ctx.model.reload();
222
222
  });
223
223
  const refresh = () => rebind().pipe(Effect.andThen(FiberHandle.run(discovery, discover())));
224
- const resourceFor = (provider) => provider.id === ID13.azure ? loaded.resource ?? resolveResourceName(provider.settings) : resolveResourceName(provider.settings, loaded.resource);
224
+ const resourceFor = (provider) => provider.id === ID9.azure ? loaded.resource ?? resolveResourceName(provider.settings) : resolveResourceName(provider.settings, loaded.resource);
225
225
  Object.assign(loaded, yield* load());
226
226
  yield* ctx.provider.transform((evt) => {
227
227
  for (const item of evt.list()) {
228
- if (item.provider.id !== ID13.azure && !item.provider.package.startsWith("@opencode/ai/providers/azure/"))
228
+ if (item.provider.id !== ID9.azure && !item.provider.package.startsWith("@opencode/ai/providers/azure/"))
229
229
  continue;
230
230
  const resourceName = resourceFor(item.provider);
231
231
  const websocket = responsesWebSocketCapable(item.provider);
@@ -240,7 +240,7 @@ function make4(endpoints = {
240
240
  };
241
241
  });
242
242
  }
243
- const item = evt.get(ID13.azure);
243
+ const item = evt.get(ID9.azure);
244
244
  if (!item)
245
245
  return;
246
246
  evt.add({
@@ -251,7 +251,7 @@ function make4(endpoints = {
251
251
  });
252
252
  yield* ctx.model.transform((models) => {
253
253
  for (const item of models.provider.list()) {
254
- if (item.provider.id !== ID13.azure && !item.provider.package.startsWith("@opencode/ai/providers/azure/"))
254
+ if (item.provider.id !== ID9.azure && !item.provider.package.startsWith("@opencode/ai/providers/azure/"))
255
255
  continue;
256
256
  const resourceName = resourceFor(item.provider);
257
257
  for (const model of models.list(item.provider.id)) {
@@ -263,20 +263,20 @@ function make4(endpoints = {
263
263
  }
264
264
  if (!loaded.deployments)
265
265
  return;
266
- const catalog = models.list(ID13.azure);
266
+ const catalog = models.list(ID9.azure);
267
267
  const deployed = deployedModels(loaded.deployments, catalog);
268
268
  for (const model of catalog) {
269
269
  if (!deployed.has(model.id))
270
- models.remove(ID13.azure, model.id);
270
+ models.remove(ID9.azure, model.id);
271
271
  }
272
272
  for (const [id, model] of deployed) {
273
- models.update(ID13.azure, id, (draft) => Object.assign(draft, model));
273
+ models.update(ID9.azure, id, (draft) => Object.assign(draft, model));
274
274
  }
275
275
  });
276
- yield* bus.subscribe(Event20.Switched).pipe(Stream.filter((event) => event.data.integrationID === ID16.make("azure")), Stream.runForEach(() => refresh()), Effect.forkScoped({ startImmediately: true }));
276
+ yield* bus.subscribe(Event16.Switched).pipe(Stream.filter((event) => event.data.integrationID === ID10.make("azure")), Stream.runForEach(() => refresh()), Effect.forkScoped({ startImmediately: true }));
277
277
  yield* refresh().pipe(Effect.forkScoped);
278
278
  const bearer = Effect.fn("AzurePlugin.bearer")(function* (url) {
279
- const connection = yield* ctx.integration.connection.active(ID13.azure);
279
+ const connection = yield* ctx.integration.connection.active(ID9.azure);
280
280
  const credential = connection ? yield* ctx.integration.connection.resolve(connection).pipe(Effect.orElseSucceed(() => {
281
281
  return;
282
282
  })) : undefined;
@@ -288,7 +288,7 @@ function make4(endpoints = {
288
288
  return `Bearer ${current.access}`;
289
289
  });
290
290
  yield* ctx.session.hook("http.request", (evt) => Effect.gen(function* () {
291
- if (evt.model.providerID !== ID13.azure)
291
+ if (evt.model.providerID !== ID9.azure)
292
292
  return;
293
293
  const authorization = yield* bearer(evt.request.url);
294
294
  if (!authorization)
@@ -297,9 +297,9 @@ function make4(endpoints = {
297
297
  evt.request.headers.delete("x-api-key");
298
298
  evt.request.headers.set("authorization", authorization);
299
299
  evt.request.headers.set("user-agent", useragent2(ctx.app));
300
- }), { providerID: ID13.azure });
300
+ }), { providerID: ID9.azure });
301
301
  yield* ctx.session.hook("experimental.ws.handshake", (evt) => Effect.gen(function* () {
302
- if (evt.model.providerID !== ID13.azure)
302
+ if (evt.model.providerID !== ID9.azure)
303
303
  return;
304
304
  const authorization = yield* bearer(evt.url);
305
305
  if (!authorization)
@@ -308,11 +308,11 @@ function make4(endpoints = {
308
308
  delete evt.headers["x-api-key"];
309
309
  evt.headers.authorization = authorization;
310
310
  evt.headers["user-agent"] = useragent2(ctx.app);
311
- }), { providerID: ID13.azure });
311
+ }), { providerID: ID9.azure });
312
312
  })
313
313
  });
314
314
  }
315
- var AzurePlugin2 = make4();
315
+ var AzurePlugin2 = make5();
316
316
  function resolveResourceName(settings, fallback) {
317
317
  const configured = settings?.resourceName;
318
318
  if (typeof configured === "string" && configured.trim() !== "")
@@ -342,11 +342,11 @@ function deployedModels(deployments, catalog) {
342
342
  const model = catalogModel(models, deployment);
343
343
  if (!model)
344
344
  return [];
345
- const id = ID12.make(deployment.name.toLowerCase());
345
+ const id = ID8.make(deployment.name.toLowerCase());
346
346
  const info = {
347
347
  ...structuredClone(model),
348
348
  id,
349
- modelID: ID12.make(deployment.name),
349
+ modelID: ID8.make(deployment.name),
350
350
  name: id === model.id.toLowerCase() ? model.name : `${model.name} (${deployment.name})`
351
351
  };
352
352
  return [[id, info]];
@@ -368,4 +368,4 @@ function responsesWebSocketCapable(provider) {
368
368
  return /^https:\/\/[^/]+\.openai\.azure\.com(?:\/|$)/i.test(settings.baseURL);
369
369
  }
370
370
 
371
- export { make4, AzurePlugin2 };
371
+ export { make5, AzurePlugin2 };