@opencode/core 0.0.0-dev-19872 → 0.0.0-dev-19873

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 (794) hide show
  1. package/dist/account/sql.js +1 -1
  2. package/dist/agent.js +78 -78
  3. package/dist/aisdk-native.js +88 -88
  4. package/dist/aisdk.js +93 -93
  5. package/dist/app.js +5 -5
  6. package/dist/bus.js +68 -68
  7. package/dist/chunks/{worktree-dh787sn1.js → workspace-0065dgqy.js} +33 -33
  8. package/dist/chunks/{worktree-dz8x4rxg.js → workspace-036p5t1s.js} +4 -4
  9. package/dist/chunks/{worktree-dgrza9ek.js → workspace-0fz4zz3n.js} +13 -13
  10. package/dist/chunks/{worktree-11dqjexa.js → workspace-0jq9fyba.js} +9 -9
  11. package/dist/chunks/{worktree-0paq2nw3.js → workspace-0paq2nw3.js} +1 -1
  12. package/dist/chunks/{worktree-0q0f95c6.js → workspace-0q0f95c6.js} +1 -1
  13. package/dist/chunks/{worktree-6pbgrpz1.js → workspace-0sq7pbe4.js} +5 -5
  14. package/dist/chunks/{worktree-f62qkzqr.js → workspace-150yg2gd.js} +5 -5
  15. package/dist/chunks/{worktree-1ddefpyr.js → workspace-17qtn851.js} +20 -20
  16. package/dist/chunks/{worktree-73tb2d7t.js → workspace-1bbkgx8g.js} +3 -3
  17. package/dist/chunks/{worktree-1dazxqgg.js → workspace-1dazxqgg.js} +2 -2
  18. package/dist/chunks/{worktree-cem17g90.js → workspace-1jnm4jdm.js} +41 -41
  19. package/dist/chunks/{worktree-w5xsrbnb.js → workspace-1zs4mem0.js} +26 -26
  20. package/dist/chunks/{worktree-21r38tys.js → workspace-21r38tys.js} +1 -1
  21. package/dist/chunks/{worktree-adpqb9ts.js → workspace-22sm3a33.js} +6 -6
  22. package/dist/chunks/{worktree-2402vzrj.js → workspace-2402vzrj.js} +1 -1
  23. package/dist/chunks/{worktree-bnq6mr9x.js → workspace-299n82gd.js} +8 -8
  24. package/dist/chunks/{worktree-2a5m3afh.js → workspace-2a5m3afh.js} +1 -1
  25. package/dist/chunks/{worktree-0jkw1j53.js → workspace-2myva995.js} +6 -6
  26. package/dist/chunks/{worktree-k03db8z3.js → workspace-2nysdb6c.js} +17 -17
  27. package/dist/chunks/{worktree-qp8jc7h3.js → workspace-2r5z2msy.js} +9 -9
  28. package/dist/chunks/{worktree-myvehfjc.js → workspace-2vpqkgyn.js} +30 -30
  29. package/dist/chunks/{worktree-dmabgk2v.js → workspace-30gjtdfv.js} +8 -8
  30. package/dist/chunks/{worktree-3bapk1gs.js → workspace-31hf238s.js} +11 -11
  31. package/dist/chunks/{worktree-bxy5ajfv.js → workspace-34wh5bj8.js} +6 -6
  32. package/dist/chunks/{worktree-d2ax4fej.js → workspace-366sgdxg.js} +14 -14
  33. package/dist/chunks/{worktree-jaek9wet.js → workspace-3bnmr0bq.js} +27 -27
  34. package/dist/chunks/{worktree-3fc6dm20.js → workspace-3fc6dm20.js} +1 -1
  35. package/dist/chunks/{worktree-kccwy87p.js → workspace-3gkgte7t.js} +13 -13
  36. package/dist/chunks/{worktree-3hepkmqq.js → workspace-3hepkmqq.js} +1 -1
  37. package/dist/chunks/{worktree-f06r0vcj.js → workspace-3npj8t1e.js} +5 -5
  38. package/dist/chunks/{worktree-3smtnn6g.js → workspace-3smtnn6g.js} +1 -1
  39. package/dist/chunks/{worktree-b8gtgm9a.js → workspace-3tj000pn.js} +12 -12
  40. package/dist/chunks/{worktree-3tvqynh2.js → workspace-3tvqynh2.js} +1 -1
  41. package/dist/chunks/{worktree-24jxm842.js → workspace-41esmdat.js} +20 -20
  42. package/dist/chunks/{worktree-8mqynssf.js → workspace-4b85tpxd.js} +38 -38
  43. package/dist/chunks/{worktree-hmkf95c9.js → workspace-4d7v841x.js} +9 -9
  44. package/dist/chunks/{worktree-s3nqtxxj.js → workspace-4henhz1c.js} +20 -20
  45. package/dist/chunks/{worktree-cscxcgsg.js → workspace-4njxjgm5.js} +14 -14
  46. package/dist/chunks/{worktree-zh8xk7my.js → workspace-4xk002vj.js} +26 -26
  47. package/dist/chunks/{worktree-yjptyezs.js → workspace-510m7gjw.js} +5 -5
  48. package/dist/chunks/{worktree-dc6tzc5b.js → workspace-57ez7d0k.js} +9 -9
  49. package/dist/chunks/{worktree-06dxphr1.js → workspace-5c0f1prt.js} +4 -4
  50. package/dist/chunks/{worktree-5daktx2q.js → workspace-5daktx2q.js} +1 -1
  51. package/dist/chunks/{worktree-d4q36r9n.js → workspace-5e7dwadz.js} +16 -16
  52. package/dist/chunks/{worktree-0c5gn5bj.js → workspace-5pq41k6y.js} +8 -8
  53. package/dist/chunks/{worktree-3dfzya26.js → workspace-5qp4g9kd.js} +21 -21
  54. package/dist/chunks/{worktree-fbf3se4r.js → workspace-5t10t3wy.js} +19 -19
  55. package/dist/chunks/{worktree-5t3nmthw.js → workspace-5t3nmthw.js} +2 -2
  56. package/dist/chunks/{worktree-bggj1spx.js → workspace-61fxnknp.js} +43 -43
  57. package/dist/chunks/{worktree-669tq793.js → workspace-669tq793.js} +1 -1
  58. package/dist/chunks/{worktree-jyaxjask.js → workspace-6a1dxhbz.js} +8 -8
  59. package/dist/chunks/{worktree-8kzgg7jc.js → workspace-6b4ymytp.js} +12 -12
  60. package/dist/chunks/{worktree-dsymck0a.js → workspace-6j725dzc.js} +6 -6
  61. package/dist/chunks/{worktree-6msgmcgs.js → workspace-6msgmcgs.js} +1 -1
  62. package/dist/chunks/{worktree-rd8gh7p5.js → workspace-6rwaq330.js} +1 -1
  63. package/dist/chunks/{worktree-ma48de29.js → workspace-6vq97qmv.js} +5 -5
  64. package/dist/chunks/{worktree-x9w52knk.js → workspace-6yt6hxry.js} +14 -14
  65. package/dist/chunks/{worktree-bd4e439d.js → workspace-6zf41970.js} +16 -16
  66. package/dist/chunks/{worktree-t4ke9ew4.js → workspace-709xpvx9.js} +12 -12
  67. package/dist/chunks/{worktree-q17qcqnk.js → workspace-728mcprz.js} +11 -11
  68. package/dist/chunks/{worktree-k39q4sf2.js → workspace-76mtqfdb.js} +15 -15
  69. package/dist/chunks/{worktree-050bv84r.js → workspace-7bf9vhv9.js} +85 -85
  70. package/dist/chunks/{worktree-7bmhse3q.js → workspace-7bmhse3q.js} +1 -1
  71. package/dist/chunks/{worktree-1d5d9h0t.js → workspace-7c97fsd3.js} +2 -2
  72. package/dist/chunks/{worktree-6j2syc76.js → workspace-7r0jg88s.js} +4 -4
  73. package/dist/chunks/{worktree-30846h32.js → workspace-7s451enq.js} +8 -8
  74. package/dist/chunks/{worktree-8d7r5vzw.js → workspace-8d7r5vzw.js} +1 -1
  75. package/dist/chunks/workspace-8ks0wbke.js +26 -0
  76. package/dist/chunks/{worktree-8p4f9s12.js → workspace-8p4f9s12.js} +2 -2
  77. package/dist/chunks/{worktree-j93fbyzs.js → workspace-8qkm32xa.js} +13 -13
  78. package/dist/chunks/{worktree-wgz7hchk.js → workspace-92k45pvj.js} +6 -6
  79. package/dist/chunks/{worktree-sjwxqtfk.js → workspace-9am0prd5.js} +15 -15
  80. package/dist/chunks/{worktree-k03y7cqw.js → workspace-9gntjbfz.js} +28 -28
  81. package/dist/chunks/{worktree-pvr04t1x.js → workspace-9ke4xx6d.js} +20 -20
  82. package/dist/chunks/{worktree-d8c3ffv1.js → workspace-9q3zqkhg.js} +10 -10
  83. package/dist/chunks/{worktree-wder9crj.js → workspace-9v85pz74.js} +15 -15
  84. package/dist/chunks/{worktree-a1bz86dw.js → workspace-a1bz86dw.js} +3 -3
  85. package/dist/chunks/{worktree-6hh8tjw2.js → workspace-a2ew8a62.js} +4 -4
  86. package/dist/chunks/{worktree-ky3seynh.js → workspace-a3r4dcrj.js} +2 -2
  87. package/dist/chunks/{worktree-01xkgkan.js → workspace-a823bscf.js} +4 -4
  88. package/dist/chunks/{worktree-ykze60hc.js → workspace-a9x56jpx.js} +20 -20
  89. package/dist/chunks/{worktree-aaet6srn.js → workspace-aaet6srn.js} +2 -2
  90. package/dist/chunks/{worktree-gn0qs0ez.js → workspace-ac130235.js} +32 -32
  91. package/dist/chunks/{worktree-jtz05rza.js → workspace-ag0051rk.js} +41 -41
  92. package/dist/chunks/{worktree-kaagn64m.js → workspace-aj0pcar2.js} +27 -27
  93. package/dist/chunks/{worktree-p8d83q2f.js → workspace-ak9t2d76.js} +12 -12
  94. package/dist/chunks/{worktree-3eeqg3ch.js → workspace-amzgw2q1.js} +27 -27
  95. package/dist/chunks/{worktree-frr8ma5g.js → workspace-arzy6qnm.js} +13 -13
  96. package/dist/chunks/{worktree-35dwm1he.js → workspace-b0qpzj5b.js} +31 -31
  97. package/dist/chunks/{worktree-b6gygkdw.js → workspace-b6gygkdw.js} +2 -2
  98. package/dist/chunks/{worktree-z9yzr4jj.js → workspace-b9q4a9vz.js} +24 -24
  99. package/dist/chunks/{worktree-cd7c4bdb.js → workspace-b9x402gy.js} +9 -9
  100. package/dist/chunks/{worktree-9d5hdd7t.js → workspace-batje1zt.js} +14 -14
  101. package/dist/chunks/{worktree-w3x9v1nk.js → workspace-be7qvw84.js} +8 -8
  102. package/dist/chunks/{worktree-0z8c9324.js → workspace-bwckxjxx.js} +7 -7
  103. package/dist/chunks/{worktree-af4q118x.js → workspace-bwrt7pzn.js} +11 -11
  104. package/dist/chunks/{worktree-81pca9ss.js → workspace-c29k628a.js} +17 -17
  105. package/dist/chunks/{worktree-1ay3g9r2.js → workspace-c4fbdzkc.js} +16 -16
  106. package/dist/chunks/{worktree-3w0fmcng.js → workspace-c78bbtc9.js} +5 -5
  107. package/dist/chunks/{worktree-5we7r0eg.js → workspace-cd11xdjc.js} +8 -8
  108. package/dist/chunks/{worktree-cfpkc3c9.js → workspace-cfpkc3c9.js} +2 -2
  109. package/dist/chunks/{worktree-y7abhsg2.js → workspace-ck6bgcwy.js} +6 -6
  110. package/dist/chunks/{worktree-tnx6ann6.js → workspace-cms0fkmz.js} +1 -1
  111. package/dist/chunks/{worktree-23pqda6t.js → workspace-cpy6gm2a.js} +6 -6
  112. package/dist/chunks/{worktree-cq37gk0t.js → workspace-cq37gk0t.js} +4 -4
  113. package/dist/chunks/{worktree-mn14093j.js → workspace-d34adfd3.js} +8 -8
  114. package/dist/chunks/{worktree-8wgc21mb.js → workspace-d3s61q16.js} +42 -42
  115. package/dist/chunks/{worktree-djszqvmq.js → workspace-d4he2qe1.js} +9 -9
  116. package/dist/chunks/{worktree-y1ygrsmg.js → workspace-dn7ft6sh.js} +6 -6
  117. package/dist/chunks/{worktree-xfkkasph.js → workspace-drwq78ky.js} +4 -4
  118. package/dist/chunks/{worktree-75wt9k9g.js → workspace-e3jfww1d.js} +1 -1
  119. package/dist/chunks/{worktree-ackyxpj1.js → workspace-e9y2m1k9.js} +11 -11
  120. package/dist/chunks/{worktree-12egnza5.js → workspace-ea3stwpk.js} +9 -9
  121. package/dist/chunks/{worktree-qrq3k7hv.js → workspace-ecemc3e9.js} +38 -38
  122. package/dist/chunks/{worktree-ef5x83kb.js → workspace-ef5x83kb.js} +1 -1
  123. package/dist/chunks/{worktree-f40tx9v5.js → workspace-ehxvdgv8.js} +7 -7
  124. package/dist/chunks/{worktree-ja2xmr49.js → workspace-ejb8p0fe.js} +47 -47
  125. package/dist/chunks/{worktree-28zap5n3.js → workspace-ekqe8bgq.js} +24 -24
  126. package/dist/chunks/{worktree-erw5rpbs.js → workspace-erw5rpbs.js} +2 -2
  127. package/dist/chunks/{worktree-etq0c3wd.js → workspace-etq0c3wd.js} +1 -1
  128. package/dist/chunks/{worktree-3n1pthd2.js → workspace-evp5cbst.js} +9 -9
  129. package/dist/chunks/{worktree-cejdfrv6.js → workspace-ez1k2efz.js} +15 -15
  130. package/dist/chunks/{worktree-pydpba5n.js → workspace-f0cggr8e.js} +135 -135
  131. package/dist/chunks/{worktree-e63kay3b.js → workspace-f46kx12j.js} +32 -32
  132. package/dist/chunks/{worktree-f828m53h.js → workspace-f828m53h.js} +2 -2
  133. package/dist/chunks/{worktree-gzhks085.js → workspace-f870ndqn.js} +14 -14
  134. package/dist/chunks/{worktree-nwwa308c.js → workspace-fee2r8da.js} +7 -7
  135. package/dist/chunks/{worktree-44ke2mar.js → workspace-fkjmw100.js} +6 -6
  136. package/dist/chunks/{worktree-bk3tsm7g.js → workspace-fq0zj7p6.js} +5 -5
  137. package/dist/chunks/{worktree-mc5yagq3.js → workspace-fqqtw36s.js} +16 -16
  138. package/dist/chunks/{worktree-1gjr3geq.js → workspace-fsx0v75m.js} +14 -14
  139. package/dist/chunks/{worktree-ax36eyar.js → workspace-ftdzjz2b.js} +6 -6
  140. package/dist/chunks/{worktree-z2cyrkj5.js → workspace-fwyfeg68.js} +16 -16
  141. package/dist/chunks/{worktree-fxbjtjnd.js → workspace-fxbjtjnd.js} +1 -1
  142. package/dist/chunks/{worktree-9hn6k4tm.js → workspace-g0445xdp.js} +8 -8
  143. package/dist/chunks/{worktree-2k4q641w.js → workspace-g64y4927.js} +3 -3
  144. package/dist/chunks/{worktree-y9854d0h.js → workspace-g9snjwbm.js} +3 -3
  145. package/dist/chunks/{worktree-d737nyfv.js → workspace-gat4z9ax.js} +9 -9
  146. package/dist/chunks/{worktree-k78r674t.js → workspace-gbt3acfc.js} +30 -30
  147. package/dist/chunks/{worktree-gd4qta3r.js → workspace-gd4qta3r.js} +1 -1
  148. package/dist/chunks/{worktree-qpx06cdk.js → workspace-gdm1m1nd.js} +27 -27
  149. package/dist/chunks/{worktree-ef1sz92s.js → workspace-gdzrvykb.js} +20 -20
  150. package/dist/chunks/{worktree-2sz976k1.js → workspace-gqdw07cd.js} +46 -46
  151. package/dist/chunks/{worktree-gv6a8nnw.js → workspace-gv6a8nnw.js} +2 -2
  152. package/dist/chunks/{worktree-xzbq4t52.js → workspace-h33b861t.js} +35 -35
  153. package/dist/chunks/{worktree-h6r3nrb9.js → workspace-h6r3nrb9.js} +1 -1
  154. package/dist/chunks/{worktree-h6vf3j39.js → workspace-h6vf3j39.js} +1 -1
  155. package/dist/chunks/{worktree-tjedn1bk.js → workspace-h90v2x9d.js} +4 -4
  156. package/dist/chunks/{worktree-nq9nxgcr.js → workspace-h9fjvtgb.js} +20 -20
  157. package/dist/chunks/{worktree-xk8j9t28.js → workspace-h9kkq3gw.js} +25 -25
  158. package/dist/chunks/{worktree-ntn63d0h.js → workspace-habg3xh9.js} +24 -24
  159. package/dist/chunks/{worktree-hkfg6fzm.js → workspace-hkfg6fzm.js} +2 -2
  160. package/dist/chunks/{worktree-rr217x4v.js → workspace-hqxy7w3z.js} +26 -26
  161. package/dist/chunks/{worktree-49efg6hh.js → workspace-htw1ycyk.js} +7 -7
  162. package/dist/chunks/{worktree-m183j3hp.js → workspace-hvse0yze.js} +1 -1
  163. package/dist/chunks/workspace-hxa7m5za.js +4 -0
  164. package/dist/chunks/{worktree-rc43q7gj.js → workspace-hyetwb3r.js} +15 -15
  165. package/dist/chunks/{worktree-r5ec8tk0.js → workspace-j1tmabxy.js} +4 -4
  166. package/dist/chunks/{worktree-pnv527nz.js → workspace-j3s2z371.js} +9 -9
  167. package/dist/chunks/{worktree-j56e64zr.js → workspace-j56e64zr.js} +1 -1
  168. package/dist/chunks/{worktree-wkt0yqpq.js → workspace-j5jgtn81.js} +1 -1
  169. package/dist/chunks/{worktree-5j6r72e5.js → workspace-j7apm612.js} +1 -1
  170. package/dist/chunks/{worktree-c8a4jtjn.js → workspace-j7vmjvz2.js} +11 -11
  171. package/dist/chunks/{worktree-92frf9bc.js → workspace-j9hsr5q7.js} +19 -19
  172. package/dist/chunks/{worktree-xxynqx5z.js → workspace-jexxy024.js} +2 -2
  173. package/dist/chunks/{worktree-6e4g0mmd.js → workspace-jhw3tax7.js} +6 -6
  174. package/dist/chunks/{worktree-dk764wf3.js → workspace-jsq6a141.js} +24 -24
  175. package/dist/chunks/{worktree-v3n2aj7f.js → workspace-jv6grhmz.js} +32 -32
  176. package/dist/chunks/{worktree-mtthj00s.js → workspace-k2y3et8s.js} +37 -37
  177. package/dist/chunks/{worktree-k3c624dm.js → workspace-k3c624dm.js} +3 -3
  178. package/dist/chunks/{worktree-knhmpdmt.js → workspace-kmxpeyjb.js} +8 -8
  179. package/dist/chunks/{worktree-d0mt1vja.js → workspace-kyat6mcg.js} +12 -12
  180. package/dist/chunks/{worktree-f2da3tzf.js → workspace-kz0hyxfv.js} +18 -18
  181. package/dist/chunks/{worktree-f0svag7k.js → workspace-m0884n7j.js} +52 -52
  182. package/dist/chunks/{worktree-m3fdjcah.js → workspace-m3fdjcah.js} +1 -1
  183. package/dist/chunks/{worktree-1rpj62d2.js → workspace-m8mrc67f.js} +13 -13
  184. package/dist/chunks/{worktree-jvdmeb00.js → workspace-m8r6z6zn.js} +14 -14
  185. package/dist/chunks/{worktree-m9w0rfyh.js → workspace-m9w0rfyh.js} +1 -1
  186. package/dist/chunks/{worktree-jhyw6xje.js → workspace-mc4fxygv.js} +22 -22
  187. package/dist/chunks/{worktree-1ygqh575.js → workspace-mfqp6xfm.js} +6 -6
  188. package/dist/chunks/{worktree-nrdmrqsx.js → workspace-mjymc32g.js} +4 -4
  189. package/dist/chunks/{worktree-smyb6yf6.js → workspace-mmtx9bta.js} +21 -21
  190. package/dist/chunks/{worktree-yjmcsphm.js → workspace-mtmnqesv.js} +26 -26
  191. package/dist/chunks/{worktree-2tk7wazy.js → workspace-mvmfaxqs.js} +13 -13
  192. package/dist/chunks/{worktree-nye5f74f.js → workspace-mzkfzb9e.js} +11 -11
  193. package/dist/chunks/{worktree-rvemz3qf.js → workspace-n01n2rer.js} +6 -6
  194. package/dist/chunks/{worktree-530x511h.js → workspace-n624v759.js} +11 -11
  195. package/dist/chunks/{worktree-pd8tqg4h.js → workspace-n8xbtczc.js} +22 -22
  196. package/dist/chunks/{worktree-z5z5sd66.js → workspace-nmxvyzm3.js} +23 -23
  197. package/dist/chunks/{worktree-0029brse.js → workspace-p1c58hcx.js} +3 -3
  198. package/dist/chunks/{worktree-p28j5sbe.js → workspace-p28j5sbe.js} +2 -2
  199. package/dist/chunks/workspace-p2h6zvwc.js +18 -0
  200. package/dist/chunks/{worktree-nmb2jxzm.js → workspace-p3dn7th8.js} +24 -24
  201. package/dist/chunks/{worktree-d7m6g9v6.js → workspace-p4tc3cb6.js} +4 -4
  202. package/dist/chunks/{worktree-37zv03r8.js → workspace-p76fyj4y.js} +13 -13
  203. package/dist/chunks/{worktree-pjvnvgmy.js → workspace-pjvnvgmy.js} +1 -1
  204. package/dist/chunks/{worktree-pknna89w.js → workspace-pknna89w.js} +1 -1
  205. package/dist/chunks/{worktree-ydg01c3p.js → workspace-pmjbhseb.js} +15 -15
  206. package/dist/chunks/{worktree-bct739vz.js → workspace-pmr4s4kc.js} +4 -4
  207. package/dist/chunks/{worktree-3bvwqdfr.js → workspace-pp7vavzt.js} +4 -4
  208. package/dist/chunks/{worktree-r4v7sw5j.js → workspace-ptjqpx56.js} +3 -3
  209. package/dist/chunks/{worktree-47rg4hp1.js → workspace-q3xw2crg.js} +14 -14
  210. package/dist/chunks/{worktree-7dqw4kz8.js → workspace-qgn6gcr1.js} +5 -5
  211. package/dist/chunks/{worktree-q7hnyx62.js → workspace-qnkbfq4a.js} +11 -11
  212. package/dist/chunks/{worktree-nnc51gs2.js → workspace-qpnhjb69.js} +9 -9
  213. package/dist/chunks/{worktree-qsdy395h.js → workspace-qsdy395h.js} +1 -1
  214. package/dist/chunks/{worktree-mdpcq19b.js → workspace-r03g5xpg.js} +11 -11
  215. package/dist/chunks/{worktree-mnzq238h.js → workspace-r43562hj.js} +12 -12
  216. package/dist/chunks/{worktree-an1ythzp.js → workspace-r4wezeg5.js} +10 -10
  217. package/dist/chunks/{worktree-wv5sfath.js → workspace-r9ytktpp.js} +9 -9
  218. package/dist/chunks/{worktree-8c185vwj.js → workspace-rd906qww.js} +8 -8
  219. package/dist/chunks/{worktree-rdw6cm16.js → workspace-rdw6cm16.js} +1 -1
  220. package/dist/chunks/{worktree-rhjbct0v.js → workspace-rhjbct0v.js} +1 -1
  221. package/dist/chunks/{worktree-pnd0g9pf.js → workspace-rtcmmca7.js} +5 -5
  222. package/dist/chunks/{worktree-shh6fz4q.js → workspace-s0hza5ac.js} +4 -4
  223. package/dist/chunks/{worktree-5pj5yv8y.js → workspace-s121vsj8.js} +19 -19
  224. package/dist/chunks/workspace-s43a7vsr.js +252 -0
  225. package/dist/chunks/{worktree-w5npym6y.js → workspace-sdsrhnhg.js} +4 -4
  226. package/dist/chunks/{worktree-qd60702v.js → workspace-sk9ksbs2.js} +15 -15
  227. package/dist/chunks/{worktree-baaqp4zd.js → workspace-t2az9yje.js} +4 -4
  228. package/dist/chunks/{worktree-xrm9dfb1.js → workspace-t78sbhk0.js} +7 -7
  229. package/dist/chunks/{worktree-mhyqqp67.js → workspace-t85sgt19.js} +22 -22
  230. package/dist/chunks/{worktree-tazgh4e4.js → workspace-tazgh4e4.js} +1 -1
  231. package/dist/chunks/{worktree-2a2ncbm6.js → workspace-tb34wgbf.js} +20 -20
  232. package/dist/chunks/{worktree-tcezcvh9.js → workspace-tcezcvh9.js} +1 -1
  233. package/dist/chunks/{worktree-6skacn9s.js → workspace-tch7kx0e.js} +34 -34
  234. package/dist/chunks/{worktree-a68v6zx7.js → workspace-tdhe5xga.js} +8 -8
  235. package/dist/chunks/{worktree-tdstcens.js → workspace-tdstcens.js} +1 -1
  236. package/dist/chunks/{worktree-x2eykcsk.js → workspace-tfxyxzq3.js} +32 -32
  237. package/dist/chunks/{worktree-1rqq8hq9.js → workspace-tn5jqbt1.js} +2 -2
  238. package/dist/chunks/{worktree-ncv4r2bp.js → workspace-tpgy2yy7.js} +16 -16
  239. package/dist/chunks/{worktree-tvtrv512.js → workspace-tvtrv512.js} +1 -1
  240. package/dist/chunks/{worktree-w4ppdpd0.js → workspace-v0dk4zmw.js} +16 -16
  241. package/dist/chunks/{worktree-m81pe42t.js → workspace-v1pfr9ds.js} +16 -16
  242. package/dist/chunks/{worktree-ep7dn8jk.js → workspace-v1spkxxj.js} +17 -17
  243. package/dist/chunks/{worktree-veqvce7d.js → workspace-veqvce7d.js} +1 -1
  244. package/dist/chunks/{worktree-m2g4r6ez.js → workspace-vjbbtvxb.js} +8 -8
  245. package/dist/chunks/{worktree-9724qm49.js → workspace-vjpz43gy.js} +21 -21
  246. package/dist/chunks/{worktree-3ckfe0gn.js → workspace-vn84xtv1.js} +3 -3
  247. package/dist/chunks/{worktree-56400ha2.js → workspace-vw3vmw4j.js} +14 -14
  248. package/dist/chunks/{worktree-8hcfs6jd.js → workspace-vwbfz043.js} +25 -25
  249. package/dist/chunks/{worktree-vzcthcp8.js → workspace-vzcthcp8.js} +1 -1
  250. package/dist/chunks/{worktree-w3wsvvr9.js → workspace-w3wsvvr9.js} +1 -1
  251. package/dist/chunks/{worktree-k7zs4xcs.js → workspace-w6mrc2hv.js} +5 -5
  252. package/dist/chunks/{worktree-n4efq2p3.js → workspace-w8hedpe6.js} +20 -20
  253. package/dist/chunks/{worktree-1gvkbw2g.js → workspace-w8jkwtgt.js} +68 -68
  254. package/dist/chunks/{worktree-wd87259q.js → workspace-wd87259q.js} +1 -1
  255. package/dist/chunks/{worktree-83xp5e3e.js → workspace-wzd35x4r.js} +2 -2
  256. package/dist/chunks/{worktree-4jv7e9dq.js → workspace-wzz0kxab.js} +6 -6
  257. package/dist/chunks/{worktree-x1ezjp6w.js → workspace-x1ezjp6w.js} +1 -1
  258. package/dist/chunks/{worktree-90j31e8f.js → workspace-xa3hwzcs.js} +28 -28
  259. package/dist/chunks/{worktree-ng12e52f.js → workspace-xc23dxn4.js} +3 -3
  260. package/dist/chunks/{worktree-n48a3wtd.js → workspace-xf7akdj3.js} +9 -9
  261. package/dist/chunks/{worktree-6dpcvaj3.js → workspace-xfbvawkv.js} +33 -33
  262. package/dist/chunks/{worktree-qvb4r7jj.js → workspace-xtxqqyyy.js} +36 -36
  263. package/dist/chunks/{worktree-y1fvbwt7.js → workspace-y1fvbwt7.js} +1 -1
  264. package/dist/chunks/{worktree-18j04j79.js → workspace-y3gpcn7q.js} +21 -21
  265. package/dist/chunks/{worktree-8jgc84wx.js → workspace-y4n65h4x.js} +10 -10
  266. package/dist/chunks/{worktree-m2zz6rv6.js → workspace-y5df08dr.js} +12 -12
  267. package/dist/chunks/{worktree-ba2a1zxc.js → workspace-y60ttyad.js} +47 -47
  268. package/dist/chunks/{worktree-dje2ev5t.js → workspace-y6hmj301.js} +4 -4
  269. package/dist/chunks/{worktree-dpkg50ah.js → workspace-y71avatq.js} +4 -4
  270. package/dist/chunks/{worktree-cs064az4.js → workspace-y7q3kmd2.js} +10 -10
  271. package/dist/chunks/{worktree-wxffcvth.js → workspace-ybhbtxjg.js} +3 -3
  272. package/dist/chunks/{worktree-6snte3jf.js → workspace-ybjzvgkv.js} +3 -3
  273. package/dist/chunks/{worktree-7h6v3mqz.js → workspace-ycrpfg4y.js} +84 -84
  274. package/dist/chunks/{worktree-1acjjqhc.js → workspace-yp2x3t23.js} +4 -4
  275. package/dist/chunks/{worktree-yrhqyw5v.js → workspace-yrhqyw5v.js} +1 -1
  276. package/dist/chunks/{worktree-yrznvahk.js → workspace-yrznvahk.js} +2 -2
  277. package/dist/chunks/{worktree-smzykshb.js → workspace-yv3kt0hr.js} +6 -6
  278. package/dist/chunks/{worktree-z0bkrqjs.js → workspace-z0bkrqjs.js} +1 -1
  279. package/dist/chunks/{worktree-5xzwezzv.js → workspace-z3nmskby.js} +37 -37
  280. package/dist/chunks/{worktree-srq7twvs.js → workspace-z5680xyc.js} +27 -27
  281. package/dist/chunks/{worktree-z63w68vq.js → workspace-z63w68vq.js} +2 -2
  282. package/dist/chunks/{worktree-zeh9ct20.js → workspace-zeh9ct20.js} +2 -2
  283. package/dist/chunks/{worktree-bz85s9hh.js → workspace-zhq6vg7a.js} +1 -1
  284. package/dist/chunks/{worktree-zdfdg6f3.js → workspace-zjd4nskf.js} +322 -322
  285. package/dist/chunks/{worktree-gg184eje.js → workspace-zqnq95c4.js} +12 -12
  286. package/dist/chunks/{worktree-x96eb595.js → workspace-zqy44jh8.js} +26 -26
  287. package/dist/chunks/{worktree-zr2ceqn5.js → workspace-zr2ceqn5.js} +1 -1
  288. package/dist/chunks/{worktree-x9wq683r.js → workspace-zt9b931x.js} +10 -10
  289. package/dist/chunks/{worktree-zxq2ej10.js → workspace-zxq2ej10.js} +1 -1
  290. package/dist/codemode/catalog.js +1 -1
  291. package/dist/codemode/instructions.js +5 -5
  292. package/dist/codemode/tool.js +3 -3
  293. package/dist/codemode/web.js +1 -1
  294. package/dist/command.js +82 -82
  295. package/dist/config/discovery.js +81 -81
  296. package/dist/config/markdown.js +1 -1
  297. package/dist/config/normalize.js +105 -105
  298. package/dist/config/plugin/agent.js +124 -124
  299. package/dist/config/plugin/command.js +213 -213
  300. package/dist/config/plugin/compaction.js +161 -161
  301. package/dist/config/plugin/compatibility.js +140 -140
  302. package/dist/config/plugin/entry-observer.js +1 -1
  303. package/dist/config/plugin/formatter.js +123 -123
  304. package/dist/config/plugin/image.js +122 -122
  305. package/dist/config/plugin/instruction.js +89 -89
  306. package/dist/config/plugin/location-watcher.js +124 -124
  307. package/dist/config/plugin/mcp.js +131 -131
  308. package/dist/config/plugin/policy.js +122 -122
  309. package/dist/config/plugin/provider.js +122 -122
  310. package/dist/config/plugin/reference.js +124 -124
  311. package/dist/config/plugin/shell.js +124 -124
  312. package/dist/config/plugin/skill-file.js +101 -101
  313. package/dist/config/plugin/skill.js +143 -143
  314. package/dist/config/plugin/snapshot.js +122 -122
  315. package/dist/config/plugin/source.js +125 -125
  316. package/dist/config/plugin/tool-output.js +124 -124
  317. package/dist/config/plugin/websearch.js +123 -123
  318. package/dist/config/plugin/worktree.js +124 -124
  319. package/dist/config/variable.js +3 -3
  320. package/dist/config/watch.js +1 -1
  321. package/dist/config.js +127 -127
  322. package/dist/credential/sql.js +2 -2
  323. package/dist/credential.js +80 -80
  324. package/dist/database/database.js +65 -65
  325. package/dist/database/drizzle/effect-sqlite/driver.js +14 -14
  326. package/dist/database/drizzle/effect-sqlite/index.js +14 -14
  327. package/dist/database/drizzle/effect-sqlite/session.js +11 -11
  328. package/dist/database/drizzle/index.js +15 -15
  329. package/dist/database/drizzle/internal/drizzle-utils.js +1 -1
  330. package/dist/database/drizzle/sqlite-core/effect/count.js +1 -1
  331. package/dist/database/drizzle/sqlite-core/effect/db.js +9 -9
  332. package/dist/database/drizzle/sqlite-core/effect/delete.js +2 -2
  333. package/dist/database/drizzle/sqlite-core/effect/index.js +10 -10
  334. package/dist/database/drizzle/sqlite-core/effect/insert.js +2 -2
  335. package/dist/database/drizzle/sqlite-core/effect/query.js +1 -1
  336. package/dist/database/drizzle/sqlite-core/effect/raw.js +1 -1
  337. package/dist/database/drizzle/sqlite-core/effect/select.js +2 -2
  338. package/dist/database/drizzle/sqlite-core/effect/session.js +10 -10
  339. package/dist/database/drizzle/sqlite-core/effect/update.js +2 -2
  340. package/dist/database/drizzle.js +16 -16
  341. package/dist/database/migration/20260127222353_familiar_lady_ursula.js +1 -1
  342. package/dist/database/migration/20260211171708_add_project_commands.js +1 -1
  343. package/dist/database/migration/20260213144116_wakeful_the_professor.js +1 -1
  344. package/dist/database/migration/20260225215848_workspace.js +1 -1
  345. package/dist/database/migration/20260227213759_add_session_workspace_id.js +1 -1
  346. package/dist/database/migration/20260228203230_blue_harpoon.js +1 -1
  347. package/dist/database/migration/20260303231226_add_workspace_fields.js +1 -1
  348. package/dist/database/migration/20260309230000_move_org_to_state.js +1 -1
  349. package/dist/database/migration/20260312043431_session_message_cursor.js +1 -1
  350. package/dist/database/migration/20260323234822_events.js +1 -1
  351. package/dist/database/migration/20260410174513_workspace-name.js +1 -1
  352. package/dist/database/migration/20260413175956_chief_energizer.js +1 -1
  353. package/dist/database/migration/20260423070820_add_icon_url_override.js +1 -1
  354. package/dist/database/migration/20260427172553_slow_nightmare.js +1 -1
  355. package/dist/database/migration/20260428004200_add_session_path.js +1 -1
  356. package/dist/database/migration/20260501142318_next_venus.js +1 -1
  357. package/dist/database/migration/20260504145000_add_sync_owner.js +1 -1
  358. package/dist/database/migration/20260507164347_add_workspace_time.js +1 -1
  359. package/dist/database/migration/20260510033149_session_usage.js +1 -1
  360. package/dist/database/migration/20260511000411_data_migration_state.js +1 -1
  361. package/dist/database/migration/20260511173437_session-metadata.js +1 -1
  362. package/dist/database/migration/20260601010001_normalize_storage_paths.js +1 -1
  363. package/dist/database/migration/20260601202201_amazing_prowler.js +1 -1
  364. package/dist/database/migration/20260602002951_lowly_union_jack.js +1 -1
  365. package/dist/database/migration/20260602182828_add_project_directories.js +1 -1
  366. package/dist/database/migration/20260603001617_session_message_projection_indexes.js +1 -1
  367. package/dist/database/migration/20260603040000_session_message_projection_order.js +1 -1
  368. package/dist/database/migration/20260603141458_session_input_inbox.js +1 -1
  369. package/dist/database/migration/20260603160727_jittery_ezekiel_stane.js +1 -1
  370. package/dist/database/migration/20260604172448_event_sourced_session_input.js +1 -1
  371. package/dist/database/migration/20260605003541_add_session_context_snapshot.js +1 -1
  372. package/dist/database/migration/20260605042240_add_context_epoch_agent.js +1 -1
  373. package/dist/database/migration/20260611035744_credential.js +1 -1
  374. package/dist/database/migration/20260611192811_lush_chimera.js +1 -1
  375. package/dist/database/migration/20260612174303_project_dir_strategy.js +1 -1
  376. package/dist/database/migration/20260622142730_simplify_session_context_epoch.js +1 -1
  377. package/dist/database/migration/20260622170816_reset_v2_session_state.js +1 -1
  378. package/dist/database/migration/20260622202450_simplify_session_input.js +1 -1
  379. package/dist/database/migration/20260804233008_loose_psylocke.js +1 -1
  380. package/dist/database/migration/20260805200742_import_legacy_credentials.js +1 -1
  381. package/dist/database/migration/20260808023530_workspace_domain.js +1 -1
  382. package/dist/database/migration/20260811161259_execution_claim_attempts.js +1 -1
  383. package/dist/database/migration/20260812181746_session_inbox.js +1 -1
  384. package/dist/database/migration/20260812213948_worktree.js +1 -1
  385. package/dist/database/migration/20260819222447_session_viewed_state.js +1 -1
  386. package/dist/database/migration/20260823191254_nullable_workspace_binding.js +1 -1
  387. package/dist/database/migration/20260910120000_clear_v1_session_permission.js +1 -1
  388. package/dist/database/migration.gen.js +48 -48
  389. package/dist/database/migration.js +50 -50
  390. package/dist/database/path.js +2 -2
  391. package/dist/database/schema.gen.js +1 -1
  392. package/dist/database/schema.sql.js +1 -1
  393. package/dist/database/sqlite.bun.js +1 -1
  394. package/dist/database/sqlite.js +1 -1
  395. package/dist/database/sqlite.node.js +1 -1
  396. package/dist/database/sqlite.workerd.js +1 -1
  397. package/dist/database/v1-migration.bun.js +75 -75
  398. package/dist/database/v1-migration.js +1 -1
  399. package/dist/effect/app-node-builder.js +368 -368
  400. package/dist/effect/app-node-platform.js +2 -2
  401. package/dist/effect/keyed-mutex.js +3 -3
  402. package/dist/effect/websocket-constructor.js +1 -1
  403. package/dist/environment/driver.js +1 -1
  404. package/dist/environment/environment.js +92 -92
  405. package/dist/environment/exec-defaults.js +2 -2
  406. package/dist/environment/files.js +1 -1
  407. package/dist/environment/index.js +94 -94
  408. package/dist/environment/local.js +2 -2
  409. package/dist/environment/memory.js +2 -2
  410. package/dist/environment/unavailable.js +1 -1
  411. package/dist/event/sql.js +1 -1
  412. package/dist/event-logger.js +69 -69
  413. package/dist/file-access.js +103 -103
  414. package/dist/file-mutation.js +93 -93
  415. package/dist/file-retention.js +1 -1
  416. package/dist/file.js +1 -1
  417. package/dist/filesystem/fff.bun.js +2 -2
  418. package/dist/filesystem/fff.js +1 -1
  419. package/dist/filesystem/fff.node.js +2 -2
  420. package/dist/filesystem/fff.workerd.js +2 -2
  421. package/dist/filesystem/ignore.js +1 -1
  422. package/dist/filesystem/location-watcher-policy.js +6 -6
  423. package/dist/filesystem/location-watcher.js +226 -226
  424. package/dist/filesystem/protected.js +1 -1
  425. package/dist/filesystem/search.js +102 -102
  426. package/dist/filesystem/watcher-binding.js +1 -1
  427. package/dist/filesystem/watcher.js +13 -13
  428. package/dist/filesystem.js +99 -99
  429. package/dist/form.js +77 -77
  430. package/dist/formatter/builtins.js +4 -4
  431. package/dist/formatter.js +86 -86
  432. package/dist/generate.js +104 -104
  433. package/dist/git.js +10 -10
  434. package/dist/github-copilot/chat/convert-to-openai-compatible-chat-messages.js +1 -1
  435. package/dist/github-copilot/chat/get-response-metadata.js +1 -1
  436. package/dist/github-copilot/chat/map-openai-compatible-finish-reason.js +1 -1
  437. package/dist/github-copilot/chat/openai-compatible-chat-language-model.js +7 -7
  438. package/dist/github-copilot/chat/openai-compatible-chat-options.js +1 -1
  439. package/dist/github-copilot/chat/openai-compatible-prepare-tools.js +1 -1
  440. package/dist/github-copilot/copilot-provider.js +17 -17
  441. package/dist/github-copilot/models.js +98 -98
  442. package/dist/github-copilot/openai-compatible-error.js +1 -1
  443. package/dist/github-copilot/responses/convert-to-openai-responses-input.js +1 -1
  444. package/dist/github-copilot/responses/map-openai-responses-finish-reason.js +1 -1
  445. package/dist/github-copilot/responses/openai-error.js +1 -1
  446. package/dist/github-copilot/responses/openai-responses-language-model.js +10 -10
  447. package/dist/github-copilot/responses/openai-responses-prepare-tools.js +6 -6
  448. package/dist/github-copilot/responses/tool/code-interpreter.js +1 -1
  449. package/dist/github-copilot/responses/tool/file-search.js +1 -1
  450. package/dist/github-copilot/responses/tool/image-generation.js +1 -1
  451. package/dist/github-copilot/responses/tool/web-search-preview.js +1 -1
  452. package/dist/github-copilot/responses/tool/web-search.js +1 -1
  453. package/dist/id/id.js +1 -1
  454. package/dist/image/photon.js +2 -2
  455. package/dist/image.js +6 -6
  456. package/dist/instance/service.js +5 -5
  457. package/dist/instance.js +359 -359
  458. package/dist/instruction-discovery.js +84 -84
  459. package/dist/instructions/builtins.js +86 -86
  460. package/dist/instructions/index.js +1 -1
  461. package/dist/integration/connection.js +1 -1
  462. package/dist/integration.js +81 -81
  463. package/dist/job.js +78 -78
  464. package/dist/kv/sql.js +2 -2
  465. package/dist/kv.js +72 -72
  466. package/dist/location-activity.js +131 -131
  467. package/dist/location-lifecycle.js +105 -105
  468. package/dist/location-mutation.js +103 -103
  469. package/dist/location-service-map.js +85 -85
  470. package/dist/location-services.js +356 -356
  471. package/dist/location.js +86 -86
  472. package/dist/mcp/client.js +90 -90
  473. package/dist/mcp/index.js +105 -105
  474. package/dist/mcp/instructions.js +127 -127
  475. package/dist/mcp/oauth.js +77 -77
  476. package/dist/mcp/stdio.js +89 -89
  477. package/dist/mime.js +1 -1
  478. package/dist/modal/models.js +98 -98
  479. package/dist/model-resolver.js +97 -97
  480. package/dist/model.js +95 -95
  481. package/dist/models-dev.js +106 -106
  482. package/dist/oauth/page.js +1 -1
  483. package/dist/permission/saved.js +77 -77
  484. package/dist/permission/sql.js +5 -5
  485. package/dist/permission.js +106 -106
  486. package/dist/persistent-pty/binary.bun.js +1 -1
  487. package/dist/persistent-pty/daemon.js +1 -1
  488. package/dist/persistent-pty/index.js +85 -85
  489. package/dist/persistent-pty/pty-binding.js +1 -1
  490. package/dist/persistent-pty.js +74 -74
  491. package/dist/plugin/agent.js +103 -103
  492. package/dist/plugin/command.js +100 -100
  493. package/dist/plugin/compaction.js +132 -132
  494. package/dist/plugin/hooks.js +5 -5
  495. package/dist/plugin/host.js +217 -217
  496. package/dist/plugin/identity.js +3 -3
  497. package/dist/plugin/instance.js +5 -5
  498. package/dist/plugin/internal.js +330 -330
  499. package/dist/plugin/mcp-codemode-exclusion.js +3 -3
  500. package/dist/plugin/models-dev.js +95 -95
  501. package/dist/plugin/module.js +5 -5
  502. package/dist/plugin/optimize.js +4 -4
  503. package/dist/plugin/plan.js +101 -101
  504. package/dist/plugin/promise.js +1 -1
  505. package/dist/plugin/provider/amazon-bedrock.js +89 -89
  506. package/dist/plugin/provider/azure.js +121 -121
  507. package/dist/plugin/provider/cerebras.js +1 -1
  508. package/dist/plugin/provider/cloudflare-ai-gateway.js +120 -120
  509. package/dist/plugin/provider/cloudflare-workers-ai.js +120 -120
  510. package/dist/plugin/provider/cohere.js +2 -2
  511. package/dist/plugin/provider/configured.js +118 -118
  512. package/dist/plugin/provider/digitalocean.js +92 -92
  513. package/dist/plugin/provider/dynamic.js +2 -2
  514. package/dist/plugin/provider/factory.js +1 -1
  515. package/dist/plugin/provider/gateway.js +2 -2
  516. package/dist/plugin/provider/github-copilot.js +92 -92
  517. package/dist/plugin/provider/gitlab.js +90 -90
  518. package/dist/plugin/provider/google-vertex.js +89 -89
  519. package/dist/plugin/provider/kilo.js +1 -1
  520. package/dist/plugin/provider/llmgateway.js +76 -76
  521. package/dist/plugin/provider/lmstudio.js +121 -121
  522. package/dist/plugin/provider/modal.js +91 -91
  523. package/dist/plugin/provider/nvidia.js +1 -1
  524. package/dist/plugin/provider/ollama.js +121 -121
  525. package/dist/plugin/provider/openai.js +93 -93
  526. package/dist/plugin/provider/opencode.js +92 -92
  527. package/dist/plugin/provider/openrouter.js +90 -90
  528. package/dist/plugin/provider/perplexity.js +2 -2
  529. package/dist/plugin/provider/poe.js +77 -77
  530. package/dist/plugin/provider/prompt-cache-key.js +89 -89
  531. package/dist/plugin/provider/sap-ai-core.js +90 -90
  532. package/dist/plugin/provider/sdk-factory.js +1 -1
  533. package/dist/plugin/provider/snowflake-cortex.js +121 -121
  534. package/dist/plugin/provider/venice.js +2 -2
  535. package/dist/plugin/provider/vercel.js +89 -89
  536. package/dist/plugin/provider/vllm.js +121 -121
  537. package/dist/plugin/provider/xai.js +90 -90
  538. package/dist/plugin/provider/zenmux.js +1 -1
  539. package/dist/plugin/provider.js +158 -158
  540. package/dist/plugin/sdk.js +71 -71
  541. package/dist/plugin/service.js +3 -3
  542. package/dist/plugin/skill.js +140 -140
  543. package/dist/plugin/source-directory.js +1 -1
  544. package/dist/plugin/supervisor.js +345 -345
  545. package/dist/plugin/tool-input-repair.js +4 -4
  546. package/dist/plugin/update.js +6 -6
  547. package/dist/plugin/vcs/git.js +85 -85
  548. package/dist/plugin/vcs/hg.js +85 -85
  549. package/dist/plugin/warming.js +120 -120
  550. package/dist/plugin/websearch/exa.js +7 -7
  551. package/dist/plugin/websearch/firecrawl.js +8 -8
  552. package/dist/plugin/websearch/index.js +9 -9
  553. package/dist/plugin/websearch/mcp.js +4 -4
  554. package/dist/plugin/websearch/parallel.js +6 -6
  555. package/dist/plugin/websearch/tavily.js +4 -4
  556. package/dist/plugin/websearch/tinyfish.js +6 -6
  557. package/dist/plugin.js +222 -222
  558. package/dist/project/schema.js +8 -8
  559. package/dist/project/sql.js +4 -4
  560. package/dist/project.js +87 -87
  561. package/dist/provider.js +94 -94
  562. package/dist/pty/protocol.js +1 -1
  563. package/dist/pty/schema.js +3 -3
  564. package/dist/pty/ticket.js +1 -1
  565. package/dist/pty.js +97 -97
  566. package/dist/reference/instructions.js +88 -88
  567. package/dist/reference.js +90 -90
  568. package/dist/repository-cache.js +80 -80
  569. package/dist/repository.js +1 -1
  570. package/dist/ripgrep/binary.js +2 -2
  571. package/dist/ripgrep.js +94 -94
  572. package/dist/rpc.js +85 -85
  573. package/dist/schema.js +1 -1
  574. package/dist/session/command.js +73 -73
  575. package/dist/session/compaction.js +133 -133
  576. package/dist/session/context.js +151 -151
  577. package/dist/session/diff.js +87 -87
  578. package/dist/session/environment.js +5 -5
  579. package/dist/session/error.js +3 -3
  580. package/dist/session/event.js +1 -1
  581. package/dist/session/execution/restart.js +220 -220
  582. package/dist/session/execution.js +125 -125
  583. package/dist/session/generate.js +152 -152
  584. package/dist/session/history.js +13 -13
  585. package/dist/session/inbox.js +87 -87
  586. package/dist/session/info.js +3 -3
  587. package/dist/session/instruction-entry.js +78 -78
  588. package/dist/session/instruction-state.js +8 -8
  589. package/dist/session/instructions.js +96 -96
  590. package/dist/session/message-updater.js +2 -2
  591. package/dist/session/message.js +1 -1
  592. package/dist/session/model-request.js +118 -118
  593. package/dist/session/model-transport.js +9 -9
  594. package/dist/session/move.js +129 -129
  595. package/dist/session/projector.js +85 -85
  596. package/dist/session/prompt.js +104 -104
  597. package/dist/session/provider-context.js +3 -3
  598. package/dist/session/revert.js +89 -89
  599. package/dist/session/run-coordinator.js +3 -3
  600. package/dist/session/runner/index.js +3 -3
  601. package/dist/session/runner/llm.js +230 -230
  602. package/dist/session/runner/max-steps.js +1 -1
  603. package/dist/session/runner/model.js +97 -97
  604. package/dist/session/runner/publish-llm-event.js +3 -3
  605. package/dist/session/runner/retry.js +111 -111
  606. package/dist/session/runner/step.js +125 -125
  607. package/dist/session/runner/to-llm-message.js +2 -2
  608. package/dist/session/schema.js +3 -3
  609. package/dist/session/session.js +171 -171
  610. package/dist/session/shell.js +137 -137
  611. package/dist/session/skill.js +102 -102
  612. package/dist/session/sql.js +5 -5
  613. package/dist/session/stats.js +72 -72
  614. package/dist/session/store.js +84 -84
  615. package/dist/session/subagent-completion.js +1 -1
  616. package/dist/session/subagent-job.js +209 -209
  617. package/dist/session/system-prompt.js +3 -3
  618. package/dist/session/title.js +155 -155
  619. package/dist/session/to-session-error.js +110 -110
  620. package/dist/session/transfer.js +214 -214
  621. package/dist/session/usage.js +1 -1
  622. package/dist/session.js +211 -211
  623. package/dist/shell/parse.js +6 -6
  624. package/dist/shell/result.js +1 -1
  625. package/dist/shell/scan.js +1 -1
  626. package/dist/shell/select.js +13 -13
  627. package/dist/shell.js +139 -139
  628. package/dist/skill/discovery.js +6 -6
  629. package/dist/skill/instructions.js +106 -106
  630. package/dist/skill.js +107 -107
  631. package/dist/snapshot.js +88 -88
  632. package/dist/state.js +1 -1
  633. package/dist/tool/html-markdown.js +1 -1
  634. package/dist/tool/http-body.js +1 -1
  635. package/dist/tool/mcp.js +124 -124
  636. package/dist/tool/plugin/edit.js +119 -119
  637. package/dist/tool/plugin/file-diff.js +1 -1
  638. package/dist/tool/plugin/glob.js +123 -123
  639. package/dist/tool/plugin/grep.js +121 -121
  640. package/dist/tool/plugin/opencode.js +3 -3
  641. package/dist/tool/plugin/patch.js +121 -121
  642. package/dist/tool/plugin/question.js +104 -104
  643. package/dist/tool/plugin/read.js +124 -124
  644. package/dist/tool/plugin/shell.js +216 -216
  645. package/dist/tool/plugin/skill.js +112 -112
  646. package/dist/tool/plugin/subagent.js +218 -218
  647. package/dist/tool/plugin/webfetch.js +109 -109
  648. package/dist/tool/plugin/websearch.js +111 -111
  649. package/dist/tool/plugin/write.js +121 -121
  650. package/dist/tool/read-filesystem.js +99 -99
  651. package/dist/tool/runtime.js +1 -1
  652. package/dist/tool-output.js +8 -8
  653. package/dist/tool.js +14 -14
  654. package/dist/util/error-summary.js +1 -1
  655. package/dist/util/error.js +1 -1
  656. package/dist/util/git-executable.js +2 -2
  657. package/dist/util/iife.js +1 -1
  658. package/dist/util/lazy.js +1 -1
  659. package/dist/util/slug.js +1 -1
  660. package/dist/util/token.js +1 -1
  661. package/dist/util/which.js +1 -1
  662. package/dist/util/wildcard.js +1 -1
  663. package/dist/v1/config/agent.js +5 -5
  664. package/dist/v1/config/attachment.js +4 -4
  665. package/dist/v1/config/command.js +3 -3
  666. package/dist/v1/config/config.js +16 -16
  667. package/dist/v1/config/error.js +2 -2
  668. package/dist/v1/config/formatter.js +5 -5
  669. package/dist/v1/config/layout.js +1 -1
  670. package/dist/v1/config/lsp.js +5 -5
  671. package/dist/v1/config/mcp.js +2 -2
  672. package/dist/v1/config/migrate.js +91 -91
  673. package/dist/v1/config/permission.js +3 -3
  674. package/dist/v1/config/plugin.js +3 -3
  675. package/dist/v1/config/provider-options.js +1 -1
  676. package/dist/v1/config/provider.js +4 -4
  677. package/dist/v1/config/server.js +2 -2
  678. package/dist/v1/config/skills.js +3 -3
  679. package/dist/v1/permission.js +1 -1
  680. package/dist/variant.js +92 -92
  681. package/dist/vcs/patch.js +1 -1
  682. package/dist/vcs.js +88 -88
  683. package/dist/websearch.js +83 -83
  684. package/dist/wellknown/plugin.js +75 -75
  685. package/dist/wellknown.js +80 -80
  686. package/dist/workspace/driver.js +5 -5
  687. package/dist/workspace/sql.js +1 -1
  688. package/dist/workspace.js +73 -73
  689. package/dist/worktree/directory.js +2 -2
  690. package/dist/worktree/git.js +10 -10
  691. package/dist/worktree/sql.js +5 -5
  692. package/dist/worktree/strategies.js +88 -88
  693. package/dist/worktree.js +95 -95
  694. package/package.json +8 -8
  695. package/dist/chunks/worktree-6a3y69ev.js +0 -26
  696. package/dist/chunks/worktree-6kdq0pjd.js +0 -4
  697. package/dist/chunks/worktree-gqqsgceb.js +0 -252
  698. package/dist/chunks/worktree-jqh9b0xq.js +0 -18
  699. /package/dist/chunks/{worktree-0qkdqm5v.js → workspace-0qkdqm5v.js} +0 -0
  700. /package/dist/chunks/{worktree-0zkw76rk.js → workspace-0zkw76rk.js} +0 -0
  701. /package/dist/chunks/{worktree-17cy0kzp.js → workspace-17cy0kzp.js} +0 -0
  702. /package/dist/chunks/{worktree-1cnp2v09.js → workspace-1cnp2v09.js} +0 -0
  703. /package/dist/chunks/{worktree-1kg9ymc8.js → workspace-1kg9ymc8.js} +0 -0
  704. /package/dist/chunks/{worktree-24dcb14g.js → workspace-24dcb14g.js} +0 -0
  705. /package/dist/chunks/{worktree-2710q6r3.js → workspace-2710q6r3.js} +0 -0
  706. /package/dist/chunks/{worktree-2axfhc9x.js → workspace-2axfhc9x.js} +0 -0
  707. /package/dist/chunks/{worktree-2c3vjs8z.js → workspace-2c3vjs8z.js} +0 -0
  708. /package/dist/chunks/{worktree-359p4xyc.js → workspace-359p4xyc.js} +0 -0
  709. /package/dist/chunks/{worktree-3asan66x.js → workspace-3asan66x.js} +0 -0
  710. /package/dist/chunks/{worktree-3v8g72cx.js → workspace-3v8g72cx.js} +0 -0
  711. /package/dist/chunks/{worktree-3w5fmr99.js → workspace-3w5fmr99.js} +0 -0
  712. /package/dist/chunks/{worktree-3wcehsnq.js → workspace-3wcehsnq.js} +0 -0
  713. /package/dist/chunks/{worktree-43n2bw4t.js → workspace-43n2bw4t.js} +0 -0
  714. /package/dist/chunks/{worktree-4knz6hnm.js → workspace-4knz6hnm.js} +0 -0
  715. /package/dist/chunks/{worktree-4vcrnpx2.js → workspace-4vcrnpx2.js} +0 -0
  716. /package/dist/chunks/{worktree-4y7fprxs.js → workspace-4y7fprxs.js} +0 -0
  717. /package/dist/chunks/{worktree-53557ph1.js → workspace-53557ph1.js} +0 -0
  718. /package/dist/chunks/{worktree-550bvhaj.js → workspace-550bvhaj.js} +0 -0
  719. /package/dist/chunks/{worktree-5qd3pb7m.js → workspace-5qd3pb7m.js} +0 -0
  720. /package/dist/chunks/{worktree-6prwharc.js → workspace-6prwharc.js} +0 -0
  721. /package/dist/chunks/{worktree-7akdwqpd.js → workspace-7akdwqpd.js} +0 -0
  722. /package/dist/chunks/{worktree-7m9af43g.js → workspace-7m9af43g.js} +0 -0
  723. /package/dist/chunks/{worktree-822emrt2.js → workspace-822emrt2.js} +0 -0
  724. /package/dist/chunks/{worktree-88xbtdfr.js → workspace-88xbtdfr.js} +0 -0
  725. /package/dist/chunks/{worktree-8n3pysct.js → workspace-8n3pysct.js} +0 -0
  726. /package/dist/chunks/{worktree-922hggd3.js → workspace-922hggd3.js} +0 -0
  727. /package/dist/chunks/{worktree-9a4afbnw.js → workspace-9a4afbnw.js} +0 -0
  728. /package/dist/chunks/{worktree-9rqn6x4v.js → workspace-9rqn6x4v.js} +0 -0
  729. /package/dist/chunks/{worktree-a6k6eb26.js → workspace-a6k6eb26.js} +0 -0
  730. /package/dist/chunks/{worktree-af5trqkr.js → workspace-af5trqkr.js} +0 -0
  731. /package/dist/chunks/{worktree-afrmfg78.js → workspace-afrmfg78.js} +0 -0
  732. /package/dist/chunks/{worktree-aqzs7mqg.js → workspace-aqzs7mqg.js} +0 -0
  733. /package/dist/chunks/{worktree-atq7p7m5.js → workspace-atq7p7m5.js} +0 -0
  734. /package/dist/chunks/{worktree-bkyjaxrp.js → workspace-bkyjaxrp.js} +0 -0
  735. /package/dist/chunks/{worktree-bmr6ed5q.js → workspace-bmr6ed5q.js} +0 -0
  736. /package/dist/chunks/{worktree-cf4snx6d.js → workspace-cf4snx6d.js} +0 -0
  737. /package/dist/chunks/{worktree-cvy3z8tj.js → workspace-cvy3z8tj.js} +0 -0
  738. /package/dist/chunks/{worktree-d9fn303g.js → workspace-d9fn303g.js} +0 -0
  739. /package/dist/chunks/{worktree-d9jj8t3e.js → workspace-d9jj8t3e.js} +0 -0
  740. /package/dist/chunks/{worktree-dajrwvna.js → workspace-dajrwvna.js} +0 -0
  741. /package/dist/chunks/{worktree-dap0rakb.js → workspace-dap0rakb.js} +0 -0
  742. /package/dist/chunks/{worktree-df08tz66.js → workspace-df08tz66.js} +0 -0
  743. /package/dist/chunks/{worktree-dy18nga0.js → workspace-dy18nga0.js} +0 -0
  744. /package/dist/chunks/{worktree-e5kj55wp.js → workspace-e5kj55wp.js} +0 -0
  745. /package/dist/chunks/{worktree-e73j6tqm.js → workspace-e73j6tqm.js} +0 -0
  746. /package/dist/chunks/{worktree-ec1grn59.js → workspace-ec1grn59.js} +0 -0
  747. /package/dist/chunks/{worktree-eh3zwz77.js → workspace-eh3zwz77.js} +0 -0
  748. /package/dist/chunks/{worktree-emrn6kk6.js → workspace-emrn6kk6.js} +0 -0
  749. /package/dist/chunks/{worktree-f0mxakyp.js → workspace-f0mxakyp.js} +0 -0
  750. /package/dist/chunks/{worktree-f6n9ztr4.js → workspace-f6n9ztr4.js} +0 -0
  751. /package/dist/chunks/{worktree-faypxj3z.js → workspace-faypxj3z.js} +0 -0
  752. /package/dist/chunks/{worktree-fd410y7t.js → workspace-fd410y7t.js} +0 -0
  753. /package/dist/chunks/{worktree-fxgpk5d8.js → workspace-fxgpk5d8.js} +0 -0
  754. /package/dist/chunks/{worktree-g4wezp1m.js → workspace-g4wezp1m.js} +0 -0
  755. /package/dist/chunks/{worktree-g86h250q.js → workspace-g86h250q.js} +0 -0
  756. /package/dist/chunks/{worktree-gebd4c9n.js → workspace-gebd4c9n.js} +0 -0
  757. /package/dist/chunks/{worktree-gftt206x.js → workspace-gftt206x.js} +0 -0
  758. /package/dist/chunks/{worktree-hjbc5kem.js → workspace-hjbc5kem.js} +0 -0
  759. /package/dist/chunks/{worktree-hk9envan.js → workspace-hk9envan.js} +0 -0
  760. /package/dist/chunks/{worktree-j2ntwpah.js → workspace-j2ntwpah.js} +0 -0
  761. /package/dist/chunks/{worktree-j5zkgpj8.js → workspace-j5zkgpj8.js} +0 -0
  762. /package/dist/chunks/{worktree-jjkms2e6.js → workspace-jjkms2e6.js} +0 -0
  763. /package/dist/chunks/{worktree-jr7sbwjy.js → workspace-jr7sbwjy.js} +0 -0
  764. /package/dist/chunks/{worktree-jwfs4k6c.js → workspace-jwfs4k6c.js} +0 -0
  765. /package/dist/chunks/{worktree-jzg6c2d5.js → workspace-jzg6c2d5.js} +0 -0
  766. /package/dist/chunks/{worktree-mp448xyj.js → workspace-mp448xyj.js} +0 -0
  767. /package/dist/chunks/{worktree-msx8hqn2.js → workspace-msx8hqn2.js} +0 -0
  768. /package/dist/chunks/{worktree-n05xt0ee.js → workspace-n05xt0ee.js} +0 -0
  769. /package/dist/chunks/{worktree-n3j8tn72.js → workspace-n3j8tn72.js} +0 -0
  770. /package/dist/chunks/{worktree-njntx4h6.js → workspace-njntx4h6.js} +0 -0
  771. /package/dist/chunks/{worktree-q3sfg36h.js → workspace-q3sfg36h.js} +0 -0
  772. /package/dist/chunks/{worktree-q74kybfr.js → workspace-q74kybfr.js} +0 -0
  773. /package/dist/chunks/{worktree-qaymkmh1.js → workspace-qaymkmh1.js} +0 -0
  774. /package/dist/chunks/{worktree-qb87gjwd.js → workspace-qb87gjwd.js} +0 -0
  775. /package/dist/chunks/{worktree-qfa1cgps.js → workspace-qfa1cgps.js} +0 -0
  776. /package/dist/chunks/{worktree-qg3g05ea.js → workspace-qg3g05ea.js} +0 -0
  777. /package/dist/chunks/{worktree-qrg20bc0.js → workspace-qrg20bc0.js} +0 -0
  778. /package/dist/chunks/{worktree-rcb2kzg1.js → workspace-rcb2kzg1.js} +0 -0
  779. /package/dist/chunks/{worktree-sdp7kfr6.js → workspace-sdp7kfr6.js} +0 -0
  780. /package/dist/chunks/{worktree-sk3qaz4a.js → workspace-sk3qaz4a.js} +0 -0
  781. /package/dist/chunks/{worktree-ssg3fenm.js → workspace-ssg3fenm.js} +0 -0
  782. /package/dist/chunks/{worktree-twg0f83k.js → workspace-twg0f83k.js} +0 -0
  783. /package/dist/chunks/{worktree-w803qqfp.js → workspace-w803qqfp.js} +0 -0
  784. /package/dist/chunks/{worktree-wc3fc9cn.js → workspace-wc3fc9cn.js} +0 -0
  785. /package/dist/chunks/{worktree-wer8tq1h.js → workspace-wer8tq1h.js} +0 -0
  786. /package/dist/chunks/{worktree-wtztk69x.js → workspace-wtztk69x.js} +0 -0
  787. /package/dist/chunks/{worktree-x0ckcb58.js → workspace-x0ckcb58.js} +0 -0
  788. /package/dist/chunks/{worktree-x61499pn.js → workspace-x61499pn.js} +0 -0
  789. /package/dist/chunks/{worktree-y44na4kk.js → workspace-y44na4kk.js} +0 -0
  790. /package/dist/chunks/{worktree-y8cydn3q.js → workspace-y8cydn3q.js} +0 -0
  791. /package/dist/chunks/{worktree-y8f7s663.js → workspace-y8f7s663.js} +0 -0
  792. /package/dist/chunks/{worktree-ygaqb7jw.js → workspace-ygaqb7jw.js} +0 -0
  793. /package/dist/chunks/{worktree-ym463w8f.js → workspace-ym463w8f.js} +0 -0
  794. /package/dist/chunks/{worktree-z9919s4g.js → workspace-z9919s4g.js} +0 -0
@@ -1,34 +1,34 @@
1
1
  import {
2
2
  Service83
3
- } from "./worktree-0029brse.js";
3
+ } from "./workspace-p1c58hcx.js";
4
4
  import {
5
5
  Service82
6
- } from "./worktree-r5ec8tk0.js";
6
+ } from "./workspace-j1tmabxy.js";
7
7
  import {
8
- Service53
9
- } from "./worktree-0jkw1j53.js";
8
+ Service33
9
+ } from "./workspace-2myva995.js";
10
10
  import {
11
11
  RelativePath2
12
- } from "./worktree-922hggd3.js";
12
+ } from "./workspace-922hggd3.js";
13
13
  import {
14
- ID5,
15
- Service42
16
- } from "./worktree-z9yzr4jj.js";
14
+ ID3,
15
+ Service30
16
+ } from "./workspace-b9q4a9vz.js";
17
17
  import {
18
18
  SessionEvent2
19
- } from "./worktree-ec1grn59.js";
19
+ } from "./workspace-ec1grn59.js";
20
20
  import {
21
21
  SessionMessage2
22
- } from "./worktree-gftt206x.js";
22
+ } from "./workspace-gftt206x.js";
23
23
  import {
24
24
  MessageNotFoundError2
25
- } from "./worktree-wxffcvth.js";
25
+ } from "./workspace-ybhbtxjg.js";
26
26
  import {
27
27
  SessionMessageTable2
28
- } from "./worktree-a1bz86dw.js";
28
+ } from "./workspace-a1bz86dw.js";
29
29
  import {
30
30
  __export
31
- } from "./worktree-9rqn6x4v.js";
31
+ } from "./workspace-9rqn6x4v.js";
32
32
 
33
33
  // src/session/revert.ts
34
34
  var exports_revert = {};
@@ -42,12 +42,12 @@ __export(exports_revert, {
42
42
  import { and, asc, eq, gt } from "drizzle-orm";
43
43
  import { Effect, Schema } from "effect";
44
44
  var stage2 = Effect.fn("SessionRevert.stage")(function* (input) {
45
- const instances = yield* Service53;
45
+ const instances = yield* Service33;
46
46
  const database = yield* Service83;
47
47
  const bus = yield* Service82;
48
48
  return yield* Effect.gen(function* () {
49
- const snapshot = yield* Service42;
50
- const original = input.session.revert?.snapshot ? ID5.make(input.session.revert.snapshot) : yield* snapshot.capture();
49
+ const snapshot = yield* Service30;
50
+ const original = input.session.revert?.snapshot ? ID3.make(input.session.revert.snapshot) : yield* snapshot.capture();
51
51
  const next = yield* plan(database.db, { sessionID: input.session.id, messageID: input.messageID });
52
52
  const restore = new Map;
53
53
  if (original) {
@@ -74,13 +74,13 @@ var stage2 = Effect.fn("SessionRevert.stage")(function* (input) {
74
74
  }).pipe(instances.provide(input.session));
75
75
  });
76
76
  var clear2 = Effect.fn("SessionRevert.clear")(function* (session) {
77
- const instances = yield* Service53;
77
+ const instances = yield* Service33;
78
78
  const bus = yield* Service82;
79
79
  yield* Effect.gen(function* () {
80
- const snapshot = yield* Service42;
80
+ const snapshot = yield* Service30;
81
81
  if (!session.revert)
82
82
  return;
83
- const original = session.revert.snapshot ? ID5.make(session.revert.snapshot) : undefined;
83
+ const original = session.revert.snapshot ? ID3.make(session.revert.snapshot) : undefined;
84
84
  if (original)
85
85
  yield* snapshot.restore({
86
86
  files: new Map((session.revert.files ?? []).map((file) => [RelativePath2.make(file.file), original]))
@@ -111,7 +111,7 @@ var plan = Effect.fn("SessionRevert.plan")(function* (db, input) {
111
111
  continue;
112
112
  for (const file of message.snapshot.files ?? [])
113
113
  if (!files.has(file))
114
- files.set(file, ID5.make(message.snapshot.start));
114
+ files.set(file, ID3.make(message.snapshot.start));
115
115
  }
116
116
  return files;
117
117
  });
@@ -2,10 +2,10 @@ import {
2
2
  NotFound2,
3
3
  WrongKind2,
4
4
  Failed2
5
- } from "./worktree-2a5m3afh.js";
5
+ } from "./workspace-2a5m3afh.js";
6
6
  import {
7
7
  __export
8
- } from "./worktree-9rqn6x4v.js";
8
+ } from "./workspace-9rqn6x4v.js";
9
9
 
10
10
  // src/environment/memory.ts
11
11
  var exports_memory = {};
@@ -1,48 +1,48 @@
1
1
  import {
2
2
  Metadata2,
3
3
  useragent2,
4
- node83
5
- } from "./worktree-0z8c9324.js";
4
+ node76
5
+ } from "./workspace-bwckxjxx.js";
6
6
  import {
7
7
  provenance2,
8
8
  compatible2
9
- } from "./worktree-06dxphr1.js";
9
+ } from "./workspace-5c0f1prt.js";
10
10
  import {
11
- Service67,
12
- node70
13
- } from "./worktree-30846h32.js";
11
+ Service71,
12
+ node74
13
+ } from "./workspace-7s451enq.js";
14
14
  import {
15
15
  DeclinedError2
16
- } from "./worktree-mtthj00s.js";
16
+ } from "./workspace-k2y3et8s.js";
17
17
  import {
18
18
  CancelledError2
19
- } from "./worktree-gzhks085.js";
19
+ } from "./workspace-f870ndqn.js";
20
20
  import {
21
- Error5
22
- } from "./worktree-28zap5n3.js";
21
+ Error4
22
+ } from "./workspace-ekqe8bgq.js";
23
23
  import {
24
- Service40,
25
- node43
26
- } from "./worktree-530x511h.js";
24
+ Service26,
25
+ node29
26
+ } from "./workspace-n624v759.js";
27
27
  import {
28
- make15
29
- } from "./worktree-xfkkasph.js";
28
+ make14
29
+ } from "./workspace-drwq78ky.js";
30
30
  import {
31
31
  toLLMMessages2
32
- } from "./worktree-bz85s9hh.js";
32
+ } from "./workspace-zhq6vg7a.js";
33
33
  import {
34
34
  __export
35
- } from "./worktree-9rqn6x4v.js";
35
+ } from "./workspace-9rqn6x4v.js";
36
36
 
37
37
  // src/session/model-request.ts
38
38
  var exports_model_request = {};
39
39
  __export(exports_model_request, {
40
- Service: () => Service39,
40
+ Service: () => Service25,
41
41
  SessionModelRequest: () => exports_model_request,
42
42
  baseTranscript: () => baseTranscript2,
43
43
  boundImages: () => boundImages2,
44
- layer: () => layer15,
45
- node: () => node42,
44
+ layer: () => layer11,
45
+ node: () => node28,
46
46
  unsupportedParts: () => unsupportedParts2
47
47
  });
48
48
  import {
@@ -66,7 +66,7 @@ var baseTranscript2 = (input) => {
66
66
  return {
67
67
  providerMetadataKey,
68
68
  system: [
69
- input.agent.system ? input.agent.system : make15(input.tools.definitions.map((tool) => tool.name)),
69
+ input.agent.system ? input.agent.system : make14(input.tools.definitions.map((tool) => tool.name)),
70
70
  input.initial
71
71
  ].filter((part) => part.length > 0).map(SystemPart.make),
72
72
  messages: toLLMMessages2(input.messages, input.model.ref, providerMetadataKey)
@@ -150,11 +150,11 @@ var boundImages2 = (messages) => {
150
150
  }));
151
151
  };
152
152
 
153
- class Service39 extends Context.Service()("@opencode/SessionModelRequest") {
153
+ class Service25 extends Context.Service()("@opencode/SessionModelRequest") {
154
154
  }
155
- var layer15 = Layer.effect(Service39, Effect.gen(function* () {
156
- const hooks = yield* Service67;
157
- const transport = yield* Service40;
155
+ var layer11 = Layer.effect(Service25, Effect.gen(function* () {
156
+ const hooks = yield* Service71;
157
+ const transport = yield* Service26;
158
158
  const app = yield* Metadata2;
159
159
  const prepare = Effect.fn("SessionModelRequest.prepare")(function* (kind, input, shape) {
160
160
  const session = input.session;
@@ -162,7 +162,7 @@ var layer15 = Layer.effect(Service39, Effect.gen(function* () {
162
162
  const scope = { sessionID: session.id, agent: input.agent, model: model.ref, kind };
163
163
  const tools = input.tools ?? {
164
164
  definitions: [],
165
- execute: () => new Error5({ message: "Tools are not available for this request" })
165
+ execute: () => new Error4({ message: "Tools are not available for this request" })
166
166
  };
167
167
  const given = new Map(tools.definitions.map((t) => [{ description: t.description, input: { ...t.inputSchema } }, t]));
168
168
  const shaped = yield* shape({ sessionID: session.id, model: model.ref, system: input.system, messages: input.messages, options: {} }, Object.fromEntries(Array.from(given, ([d, t]) => [t.name, d])));
@@ -252,17 +252,17 @@ var layer15 = Layer.effect(Service39, Effect.gen(function* () {
252
252
  };
253
253
  });
254
254
  const agentHook = (name, agent) => (draft, tools) => hooks.trigger("session", name, { ...draft, agent, tools });
255
- return Service39.of({
255
+ return Service25.of({
256
256
  primary: (input) => prepare("primary", input, agentHook("context", input.agent)),
257
257
  compaction: (input) => prepare("compaction", input, agentHook("compaction", input.agent)),
258
258
  generate: (input) => prepare("generate", input, agentHook("generate", input.agent)),
259
259
  title: (input) => prepare("title", input, (draft) => hooks.trigger("session", "title", draft))
260
260
  });
261
261
  }));
262
- var node42 = makeLocationNode({
263
- service: Service39,
264
- layer: layer15,
265
- deps: [node70, node43, node83]
262
+ var node28 = makeLocationNode({
263
+ service: Service25,
264
+ layer: layer11,
265
+ deps: [node74, node29, node76]
266
266
  });
267
267
 
268
- export { baseTranscript2, unsupportedParts2, boundImages2, Service39, layer15, node42, exports_model_request };
268
+ export { baseTranscript2, unsupportedParts2, boundImages2, Service25, layer11, node28, exports_model_request };
@@ -1,56 +1,56 @@
1
1
  import {
2
2
  Service82,
3
3
  node86
4
- } from "./worktree-r5ec8tk0.js";
4
+ } from "./workspace-j1tmabxy.js";
5
5
  import {
6
6
  Event20,
7
- Service79,
8
- node82
9
- } from "./worktree-s3nqtxxj.js";
7
+ Service77,
8
+ node81
9
+ } from "./workspace-4henhz1c.js";
10
10
  import {
11
- Service47,
12
- node50
13
- } from "./worktree-nq9nxgcr.js";
11
+ Service56,
12
+ node58
13
+ } from "./workspace-h9fjvtgb.js";
14
14
  import {
15
15
  AbsolutePath2
16
- } from "./worktree-922hggd3.js";
16
+ } from "./workspace-922hggd3.js";
17
17
  import {
18
- Service76,
19
- node79
20
- } from "./worktree-ncv4r2bp.js";
18
+ Service79,
19
+ node83
20
+ } from "./workspace-tpgy2yy7.js";
21
21
  import {
22
22
  substitute2
23
- } from "./worktree-yrznvahk.js";
23
+ } from "./workspace-yrznvahk.js";
24
24
  import {
25
25
  normalize2
26
- } from "./worktree-mhyqqp67.js";
26
+ } from "./workspace-t85sgt19.js";
27
27
  import {
28
28
  names4,
29
29
  discover3
30
- } from "./worktree-6pbgrpz1.js";
30
+ } from "./workspace-0sq7pbe4.js";
31
31
  import {
32
32
  plan2
33
- } from "./worktree-j56e64zr.js";
33
+ } from "./workspace-j56e64zr.js";
34
34
  import {
35
- Service80,
36
- Event21,
37
- node84
38
- } from "./worktree-24jxm842.js";
35
+ Service58,
36
+ Event11,
37
+ node60
38
+ } from "./workspace-41esmdat.js";
39
39
  import {
40
40
  __export
41
- } from "./worktree-9rqn6x4v.js";
41
+ } from "./workspace-9rqn6x4v.js";
42
42
 
43
43
  // src/config.ts
44
44
  var exports_config = {};
45
45
  __export(exports_config, {
46
46
  Config: () => exports_config,
47
- Options: () => Options7,
48
- Service: () => Service46,
47
+ Options: () => Options6,
48
+ Service: () => Service55,
49
49
  Test: () => Test2,
50
- configured: () => configured7,
50
+ configured: () => configured6,
51
51
  latest: () => latest2,
52
- layer: () => layer19,
53
- node: () => node49,
52
+ layer: () => layer20,
53
+ node: () => node57,
54
54
  testLayer: () => testLayer2
55
55
  });
56
56
  import { makeLocationNode } from "@opencode/util/effect/app-node";
@@ -64,14 +64,14 @@ import { Global } from "@opencode/util/global";
64
64
  function latest2(entries, key) {
65
65
  return entries.findLast((entry) => entry.type === "document" && entry.info[key] !== undefined)?.info[key];
66
66
  }
67
- var Options7 = Schema.Struct({
67
+ var Options6 = Schema.Struct({
68
68
  project: Schema.optional(Schema.Boolean),
69
69
  global: Schema.optional(Schema.Boolean),
70
70
  file: Schema.optional(Schema.String),
71
71
  content: Schema.optional(Schema.String)
72
72
  });
73
73
 
74
- class Service46 extends Context.Service()("@opencode/Config") {
74
+ class Service55 extends Context.Service()("@opencode/Config") {
75
75
  }
76
76
 
77
77
  class Test2 extends Context.Service()("@opencode/Config/Test") {
@@ -89,16 +89,16 @@ var testLayer2 = (initial = [], compatibility = {
89
89
  setEntries: (next) => Ref.set(entries, next),
90
90
  emitChange: (update) => PubSub.publish(updates, update).pipe(Effect.asVoid)
91
91
  });
92
- return Context.empty().pipe(Context.add(Service46, service), Context.add(Test2, service));
92
+ return Context.empty().pipe(Context.add(Service55, service), Context.add(Test2, service));
93
93
  }));
94
- var layer19 = (options) => Layer.effect(Service46, Effect.gen(function* () {
94
+ var layer20 = (options) => Layer.effect(Service55, Effect.gen(function* () {
95
95
  const fs = yield* FSUtil.Service;
96
- const location = yield* Service76;
97
- const watcher = yield* Service47;
96
+ const location = yield* Service79;
97
+ const watcher = yield* Service56;
98
98
  const bus = yield* Service82;
99
- const credentials = yield* Service79;
99
+ const credentials = yield* Service77;
100
100
  const globalService = yield* Global.Service;
101
- const wellknown = yield* Service80;
101
+ const wellknown = yield* Service58;
102
102
  const reloadLock = Semaphore.makeUnsafe(1);
103
103
  const updateLock = Semaphore.makeUnsafe(1);
104
104
  const decodeOptions = { errors: "all", onExcessProperty: "ignore", propertyOrder: "original" };
@@ -222,7 +222,7 @@ var layer19 = (options) => Layer.effect(Service46, Effect.gen(function* () {
222
222
  const pendingReloads = yield* PubSub.subscribe(reloads);
223
223
  yield* Stream.fromSubscription(pendingReloads).pipe(Stream.debounce("100 millis"), Stream.runForEach(() => reload().pipe(Effect.catchCause((cause) => Effect.logError("failed to reload config", { cause })))), Effect.forkScoped({ startImmediately: true }));
224
224
  yield* bus.subscribe(Event20.Switched).pipe(Stream.filterEffect((event) => wellknown.entries().pipe(Effect.map((entries) => entries.some((entry) => entry.integrationID === event.data.integrationID)), Effect.orElseSucceed(() => false))), Stream.runForEach(() => reload().pipe(Effect.catchCause((cause) => Effect.logError("failed to reload wellknown config", { cause })))), Effect.forkScoped({ startImmediately: true }));
225
- yield* bus.subscribe(Event21.Updated).pipe(Stream.runForEach(() => reload().pipe(Effect.catchCause((cause) => Effect.logError("failed to reload wellknown sources", { cause })))), Effect.forkScoped({ startImmediately: true }));
225
+ yield* bus.subscribe(Event11.Updated).pipe(Stream.runForEach(() => reload().pipe(Effect.catchCause((cause) => Effect.logError("failed to reload wellknown sources", { cause })))), Effect.forkScoped({ startImmediately: true }));
226
226
  yield* Effect.sleep("10 minutes").pipe(Effect.andThen(Effect.suspend(() => {
227
227
  if (!wellknown.snapshot().length)
228
228
  return Effect.void;
@@ -250,7 +250,7 @@ var layer19 = (options) => Layer.effect(Service46, Effect.gen(function* () {
250
250
  `);
251
251
  yield* requestReload;
252
252
  }, (effect) => updateLock.withPermit(effect));
253
- return Service46.of({
253
+ return Service55.of({
254
254
  entries: Effect.fnUntraced(function* () {
255
255
  return configs;
256
256
  }),
@@ -262,13 +262,13 @@ var layer19 = (options) => Layer.effect(Service46, Effect.gen(function* () {
262
262
  update
263
263
  });
264
264
  }));
265
- function configured7(options) {
265
+ function configured6(options) {
266
266
  return makeLocationNode({
267
- service: Service46,
268
- layer: layer19(options),
269
- deps: [node50, node86, FSUtil.node, Global.node, node79, node82, node84]
267
+ service: Service55,
268
+ layer: layer20(options),
269
+ deps: [node58, node86, FSUtil.node, Global.node, node83, node81, node60]
270
270
  });
271
271
  }
272
- var node49 = configured7();
272
+ var node57 = configured6();
273
273
 
274
- export { latest2, Options7, Service46, Test2, testLayer2, layer19, configured7, node49, exports_config };
274
+ export { latest2, Options6, Service55, Test2, testLayer2, layer20, configured6, node57, exports_config };
@@ -1,18 +1,18 @@
1
1
  import {
2
2
  AbsolutePath2
3
- } from "./worktree-922hggd3.js";
3
+ } from "./workspace-922hggd3.js";
4
4
  import {
5
- Service76
6
- } from "./worktree-ncv4r2bp.js";
5
+ Service79
6
+ } from "./workspace-tpgy2yy7.js";
7
7
  import {
8
- Service21
9
- } from "./worktree-f2da3tzf.js";
8
+ Service66
9
+ } from "./workspace-kz0hyxfv.js";
10
10
  import {
11
- Service6
12
- } from "./worktree-92frf9bc.js";
11
+ Service11
12
+ } from "./workspace-j9hsr5q7.js";
13
13
  import {
14
14
  NotFound2
15
- } from "./worktree-2a5m3afh.js";
15
+ } from "./workspace-2a5m3afh.js";
16
16
  import {
17
17
  MEDIA_MIMES2,
18
18
  BinaryFileError2,
@@ -23,26 +23,26 @@ import {
23
23
  FileContent2,
24
24
  TextPage2,
25
25
  ListPage2,
26
- Service7
27
- } from "./worktree-sjwxqtfk.js";
26
+ Service12
27
+ } from "./workspace-9am0prd5.js";
28
28
  import {
29
29
  __export
30
- } from "./worktree-9rqn6x4v.js";
30
+ } from "./workspace-9rqn6x4v.js";
31
31
 
32
32
  // src/tool/plugin/read.ts
33
33
  var exports_read = {};
34
34
  __export(exports_read, {
35
- Input: () => Input10,
36
- Plugin: () => Plugin27,
35
+ Input: () => Input9,
36
+ Plugin: () => Plugin45,
37
37
  ReadTool: () => exports_read,
38
- name: () => name10,
39
- toModelContent: () => toModelContent4
38
+ name: () => name9,
39
+ toModelContent: () => toModelContent6
40
40
  });
41
41
  import { basename, dirname, join } from "path";
42
42
  import { ToolFailure } from "@opencode/ai";
43
43
  import { Effect, Schema } from "effect";
44
44
  import { FSUtil } from "@opencode/util/fs-util";
45
- var name10 = "read";
45
+ var name9 = "read";
46
46
  var FILENAME = "AGENTS.md";
47
47
  var LocationInput = Schema.Struct({
48
48
  path: Schema.String.annotate({ description: "File or directory to read" }),
@@ -53,21 +53,21 @@ var LocationInput = Schema.Struct({
53
53
  description: "The maximum number of lines or directory entries to read (defaults to 2000)"
54
54
  })
55
55
  });
56
- var Input10 = LocationInput;
56
+ var Input9 = LocationInput;
57
57
  var Output = Schema.Union([FileContent2, TextPage2, ListPage2]);
58
- var Plugin27 = {
58
+ var Plugin45 = {
59
59
  id: "opencode.tool.read",
60
60
  effect: Effect.fn("ReadTool.Plugin")(function* (ctx) {
61
- const reader = yield* Service7;
62
- const access = yield* Service21;
63
- const sessionInstructions = yield* Service6;
61
+ const reader = yield* Service12;
62
+ const access = yield* Service66;
63
+ const sessionInstructions = yield* Service11;
64
64
  const fs = yield* FSUtil.Service;
65
- const location = yield* Service76;
65
+ const location = yield* Service79;
66
66
  yield* ctx.tool.transform((editor) => editor.add({
67
- name: name10,
67
+ name: name9,
68
68
  options: { codemode: false },
69
69
  description: "Read the contents of a file or directory. Supports text files, images, and PDFs. Images and PDFs are presented directly to the model. Each text line is prefixed by its 1-based line number as <line>: <content>. The prefix is for reference and is not part of the file content. Directory entries are returned one per line. Use offset and limit to read large files or directories in sections. Prefer one larger read over many small slices, and use grep to find specific content in large files.",
70
- input: Input10,
70
+ input: Input9,
71
71
  output: Output,
72
72
  execute: (input, context) => {
73
73
  return Effect.gen(function* () {
@@ -112,7 +112,7 @@ var Plugin27 = {
112
112
  return { output: result.content, path: result.path };
113
113
  }).pipe(Effect.map((result) => ({
114
114
  output: result.output,
115
- content: toModelContent4(result.path, input.offset, result.output),
115
+ content: toModelContent6(result.path, input.offset, result.output),
116
116
  metadata: { truncated: result.output.type === "file" ? false : result.output.truncated }
117
117
  })), Effect.mapError((error) => {
118
118
  if (error instanceof ToolFailure)
@@ -144,7 +144,7 @@ ${suggestions.join(`
144
144
  });
145
145
  })
146
146
  };
147
- var toModelContent4 = (path, offset, output) => {
147
+ var toModelContent6 = (path, offset, output) => {
148
148
  if (output.type === "file" && output.encoding === "base64")
149
149
  return [
150
150
  { type: "text", text: output.mime === "application/pdf" ? "PDF read successfully" : "Image read successfully" },
@@ -180,4 +180,4 @@ var toModelContent4 = (path, offset, output) => {
180
180
  `);
181
181
  };
182
182
 
183
- export { name10, Input10, Plugin27, toModelContent4, exports_read };
183
+ export { name9, Input9, Plugin45, toModelContent6, exports_read };
@@ -1,26 +1,26 @@
1
1
  import {
2
2
  AbsolutePath2
3
- } from "./worktree-922hggd3.js";
3
+ } from "./workspace-922hggd3.js";
4
4
  import {
5
5
  Info19,
6
6
  ID6,
7
7
  Name2
8
- } from "./worktree-1ay3g9r2.js";
8
+ } from "./workspace-c4fbdzkc.js";
9
9
  import {
10
- Service46
11
- } from "./worktree-jtz05rza.js";
10
+ Service55
11
+ } from "./workspace-ag0051rk.js";
12
12
  import {
13
13
  __export
14
- } from "./worktree-9rqn6x4v.js";
14
+ } from "./workspace-9rqn6x4v.js";
15
15
 
16
16
  // src/plugin/skill.ts
17
- var exports_skill = {};
18
- __export(exports_skill, {
17
+ var exports_skill2 = {};
18
+ __export(exports_skill2, {
19
19
  OpencodeContent: () => OpencodeContent2,
20
20
  OpencodeDescription: () => OpencodeDescription2,
21
- Plugin: () => Plugin10,
21
+ Plugin: () => Plugin32,
22
22
  ReportContent: () => ReportContent2,
23
- SkillPlugin: () => exports_skill
23
+ SkillPlugin: () => exports_skill2
24
24
  });
25
25
  import { define } from "@opencode/plugin/effect/plugin";
26
26
  import { Effect } from "effect";
@@ -425,7 +425,7 @@ var OpencodeContent2 = opencode_default;
425
425
  var ReportContent2 = report_default;
426
426
  var OpencodeDescription2 = "Use this skill for any question about OpenCode itself, including how OpenCode works, using or configuring it, migrating from V1 to V2, troubleshooting it, developing plugins or integrations, using the OpenCode SDK, clients, server, or API, and contributing to the OpenCode codebase. Also use it for OpenCode agents, commands, skills, tools, permissions, MCP servers, providers, models, themes, keybinds, formatters, the CLI, TUI, desktop app, and web app.";
427
427
  var REPORT_DESCRIPTION = "Use when the user wants to report an opencode issue or bug. Collect standard diagnostics, add user-specific reproduction context, and publish the issue with GitHub CLI.";
428
- var Plugin10 = define({
428
+ var Plugin32 = define({
429
429
  id: "opencode.skill",
430
430
  effect: Effect.fn(function* (ctx) {
431
431
  const reportContent = yield* reportContentWithDiagnostics(ctx.app);
@@ -466,7 +466,7 @@ var reportContentWithDiagnostics = Effect.fn("SkillPlugin.reportContentWithDiagn
466
466
  `);
467
467
  });
468
468
  var configuredPlugins = Effect.fn("SkillPlugin.configuredPlugins")(function* () {
469
- const config = yield* Service46;
469
+ const config = yield* Service55;
470
470
  return (yield* config.entries()).filter((entry) => entry.type === "document").flatMap((entry) => entry.info.plugins ?? []).map((entry) => typeof entry === "string" ? entry : entry.package).toSorted();
471
471
  });
472
472
  function terminal() {
@@ -480,4 +480,4 @@ function shell() {
480
480
  return process.env.SHELL ?? process.env.ComSpec ?? process.env.COMSPEC ?? "Unavailable: shell environment variable is not set";
481
481
  }
482
482
 
483
- export { OpencodeContent2, ReportContent2, OpencodeDescription2, Plugin10, exports_skill };
483
+ export { OpencodeContent2, ReportContent2, OpencodeDescription2, Plugin32, exports_skill2 };