@opencode/core 0.0.0-dev-19423 → 0.0.0-dev-19426

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 (784) hide show
  1. package/dist/account/sql.js +1 -1
  2. package/dist/agent.js +81 -81
  3. package/dist/aisdk-native.js +2 -2
  4. package/dist/aisdk.js +6 -6
  5. package/dist/app.js +7 -7
  6. package/dist/bus.js +71 -71
  7. package/dist/catalog.js +83 -83
  8. package/dist/chunks/{state-93x1yqe3.js → persistent-pty-07z0gam2.js} +2 -2
  9. package/dist/chunks/{state-x4p8m430.js → persistent-pty-0c8kwbsp.js} +14 -14
  10. package/dist/chunks/{state-axhma1m3.js → persistent-pty-0cc4q6tf.js} +7 -7
  11. package/dist/chunks/{state-6yyyk05m.js → persistent-pty-0e44rvxq.js} +12 -12
  12. package/dist/chunks/{state-7m5f9412.js → persistent-pty-0h54jqbs.js} +8 -8
  13. package/dist/chunks/{state-fp90tn2w.js → persistent-pty-0m5hy3yw.js} +30 -30
  14. package/dist/chunks/persistent-pty-0mesazry.js +4 -0
  15. package/dist/chunks/{state-0paq2nw3.js → persistent-pty-0paq2nw3.js} +1 -1
  16. package/dist/chunks/{state-0q0f95c6.js → persistent-pty-0q0f95c6.js} +1 -1
  17. package/dist/chunks/{state-zc7d74sr.js → persistent-pty-159kg1rb.js} +12 -12
  18. package/dist/chunks/{state-gy8bp4n5.js → persistent-pty-1bvxxf6d.js} +7 -7
  19. package/dist/chunks/{state-1dazxqgg.js → persistent-pty-1dazxqgg.js} +2 -2
  20. package/dist/chunks/{state-215mjt95.js → persistent-pty-1hxa6pzb.js} +32 -32
  21. package/dist/chunks/{state-ngk7xb75.js → persistent-pty-1jzr98sp.js} +8 -8
  22. package/dist/chunks/{state-bjs2yq5f.js → persistent-pty-1tq060df.js} +6 -6
  23. package/dist/chunks/{state-nasykmfv.js → persistent-pty-1ybn2y83.js} +46 -46
  24. package/dist/chunks/{state-9vcv29kg.js → persistent-pty-1z0pzthf.js} +2 -2
  25. package/dist/chunks/{state-h55jqj9c.js → persistent-pty-21nf8x37.js} +5 -5
  26. package/dist/chunks/{state-21r38tys.js → persistent-pty-21r38tys.js} +1 -1
  27. package/dist/chunks/{state-e2h5r77j.js → persistent-pty-21thbrk0.js} +22 -22
  28. package/dist/chunks/{state-2402vzrj.js → persistent-pty-2402vzrj.js} +1 -1
  29. package/dist/chunks/{state-z63w68vq.js → persistent-pty-29x78va6.js} +6 -6
  30. package/dist/chunks/{state-2a5m3afh.js → persistent-pty-2a5m3afh.js} +1 -1
  31. package/dist/chunks/{state-30mv6xzd.js → persistent-pty-2hnfpkj9.js} +24 -24
  32. package/dist/chunks/{state-4mph4zc0.js → persistent-pty-2j1x0myt.js} +12 -9
  33. package/dist/chunks/{state-bg5fanx5.js → persistent-pty-2sb6srdd.js} +7 -7
  34. package/dist/chunks/{state-4hs2rptp.js → persistent-pty-2v34zfk0.js} +13 -13
  35. package/dist/chunks/{state-g20q56qn.js → persistent-pty-2vgrpkws.js} +23 -23
  36. package/dist/chunks/{state-nxaneg5f.js → persistent-pty-35wxgrz4.js} +16 -16
  37. package/dist/chunks/{state-6mm5fyaq.js → persistent-pty-3ajmv4vc.js} +27 -27
  38. package/dist/chunks/{state-3fc6dm20.js → persistent-pty-3fc6dm20.js} +1 -1
  39. package/dist/chunks/{state-3hepkmqq.js → persistent-pty-3hepkmqq.js} +1 -1
  40. package/dist/chunks/{state-r98e92ep.js → persistent-pty-3j8sdtpz.js} +4 -4
  41. package/dist/chunks/{state-0kezx7bp.js → persistent-pty-3sapyj2b.js} +15 -15
  42. package/dist/chunks/{state-3smtnn6g.js → persistent-pty-3smtnn6g.js} +1 -1
  43. package/dist/chunks/{state-qmr73083.js → persistent-pty-3trbxeqx.js} +1 -1
  44. package/dist/chunks/{state-3tvqynh2.js → persistent-pty-3tvqynh2.js} +1 -1
  45. package/dist/chunks/{state-dj9sq318.js → persistent-pty-3w2b2yj4.js} +5 -5
  46. package/dist/chunks/{state-13m41sr9.js → persistent-pty-3zc5jvmt.js} +37 -37
  47. package/dist/chunks/{state-cpcceztk.js → persistent-pty-485fr60v.js} +9 -9
  48. package/dist/chunks/{state-swcrp5h8.js → persistent-pty-4vm0hqbg.js} +7 -7
  49. package/dist/chunks/{state-hxcjx40w.js → persistent-pty-55fm1b9t.js} +26 -26
  50. package/dist/chunks/{state-1ygqh575.js → persistent-pty-56gdpj1q.js} +9 -9
  51. package/dist/chunks/{state-pd2whwm6.js → persistent-pty-5a5hve6r.js} +26 -26
  52. package/dist/chunks/{state-5daktx2q.js → persistent-pty-5daktx2q.js} +1 -1
  53. package/dist/chunks/{state-r4qy651a.js → persistent-pty-5f411mky.js} +10 -10
  54. package/dist/chunks/{state-c107bjdh.js → persistent-pty-5r7wtzhh.js} +17 -17
  55. package/dist/chunks/{state-fedj2qj8.js → persistent-pty-5t0z2mmn.js} +5 -5
  56. package/dist/chunks/{state-5t3nmthw.js → persistent-pty-5t3nmthw.js} +2 -2
  57. package/dist/chunks/{state-3dc1y30q.js → persistent-pty-612qpymn.js} +15 -15
  58. package/dist/chunks/{state-zhfv9bas.js → persistent-pty-64a4x0vc.js} +9 -9
  59. package/dist/chunks/{state-669tq793.js → persistent-pty-669tq793.js} +1 -1
  60. package/dist/chunks/{state-jvp64s69.js → persistent-pty-69najtqd.js} +20 -20
  61. package/dist/chunks/{state-qr27hz8v.js → persistent-pty-6fdj6kdr.js} +4 -4
  62. package/dist/chunks/{state-jtzck56h.js → persistent-pty-6feaep00.js} +27 -27
  63. package/dist/chunks/{state-fvg5jb3z.js → persistent-pty-6j8myhdp.js} +4 -4
  64. package/dist/chunks/{state-z4p834dc.js → persistent-pty-6kvtrg8a.js} +6 -6
  65. package/dist/chunks/{state-qej72r3z.js → persistent-pty-6mgtcd6n.js} +26 -26
  66. package/dist/chunks/{state-6msgmcgs.js → persistent-pty-6msgmcgs.js} +1 -1
  67. package/dist/chunks/{state-cq37gk0t.js → persistent-pty-6tt5evqq.js} +4 -4
  68. package/dist/chunks/{state-71q4at8m.js → persistent-pty-71q4at8m.js} +1 -1
  69. package/dist/chunks/{state-7wdjtyr9.js → persistent-pty-721tb84k.js} +3 -3
  70. package/dist/chunks/{state-3h6sdsfe.js → persistent-pty-72xz0ztc.js} +69 -69
  71. package/dist/chunks/{state-cdc0j91m.js → persistent-pty-75q7adw5.js} +16 -16
  72. package/dist/chunks/{state-e37ratq4.js → persistent-pty-771pt6a1.js} +9 -9
  73. package/dist/chunks/{state-dv1qgsyq.js → persistent-pty-7b15y959.js} +8 -8
  74. package/dist/chunks/{state-g7xgpgap.js → persistent-pty-7ba6wjkk.js} +13 -13
  75. package/dist/chunks/{state-7bmhse3q.js → persistent-pty-7bmhse3q.js} +1 -1
  76. package/dist/chunks/{state-q4fz3n6y.js → persistent-pty-7cbt97qs.js} +45 -45
  77. package/dist/chunks/{state-qgn6gcr1.js → persistent-pty-7dqw4kz8.js} +5 -5
  78. package/dist/chunks/{state-17xt7vmq.js → persistent-pty-7e7r6h4f.js} +11 -11
  79. package/dist/chunks/{state-wrwh2rgt.js → persistent-pty-7hpb1swa.js} +21 -21
  80. package/dist/chunks/{state-aty52q8t.js → persistent-pty-7rgb98b3.js} +26 -26
  81. package/dist/chunks/{state-0zrftw2w.js → persistent-pty-7vhhzrrm.js} +6 -6
  82. package/dist/chunks/{state-tregh9zc.js → persistent-pty-7wc683m2.js} +2 -2
  83. package/dist/chunks/{state-bdqrk2vk.js → persistent-pty-7yqnf43w.js} +4 -4
  84. package/dist/chunks/{state-j4yfb19a.js → persistent-pty-7z50rzs6.js} +11 -11
  85. package/dist/chunks/{state-rxbpknzr.js → persistent-pty-7zkd12m7.js} +13 -13
  86. package/dist/chunks/{state-rsym84ch.js → persistent-pty-81swgkk7.js} +7 -7
  87. package/dist/chunks/{state-k7qj1gf8.js → persistent-pty-84gm4pzb.js} +13 -13
  88. package/dist/chunks/{state-2d6j2h4j.js → persistent-pty-84tssp1s.js} +6 -6
  89. package/dist/chunks/{state-0b004hd0.js → persistent-pty-87rksg4x.js} +18 -18
  90. package/dist/chunks/{state-8d7r5vzw.js → persistent-pty-8d7r5vzw.js} +1 -1
  91. package/dist/chunks/{state-8p4f9s12.js → persistent-pty-8p4f9s12.js} +2 -2
  92. package/dist/chunks/{state-ehzkagp6.js → persistent-pty-8xbg7ftz.js} +8 -8
  93. package/dist/chunks/{state-bv56xrks.js → persistent-pty-8z17e00v.js} +11 -8
  94. package/dist/chunks/{state-rtvpdrsv.js → persistent-pty-915t83ht.js} +5 -5
  95. package/dist/chunks/{state-1y323wm0.js → persistent-pty-9gyd2w40.js} +1 -1
  96. package/dist/chunks/{state-txa0m2xq.js → persistent-pty-9h6x7gyv.js} +15 -15
  97. package/dist/chunks/{state-v8ch97zc.js → persistent-pty-9k2v62xn.js} +1 -1
  98. package/dist/chunks/{state-g16s45dw.js → persistent-pty-9njfg5h4.js} +22 -22
  99. package/dist/chunks/persistent-pty-9r5tkcxt.js +247 -0
  100. package/dist/chunks/{state-49zdxvde.js → persistent-pty-9t9a8468.js} +22 -22
  101. package/dist/chunks/{state-r2jtfwr0.js → persistent-pty-9vd61c30.js} +19 -19
  102. package/dist/chunks/{state-m183dz0f.js → persistent-pty-9vqpghck.js} +23 -23
  103. package/dist/chunks/{state-9108em47.js → persistent-pty-9yqcsx6m.js} +20 -20
  104. package/dist/chunks/{state-a1bz86dw.js → persistent-pty-a1bz86dw.js} +3 -3
  105. package/dist/chunks/{state-b27vhd2z.js → persistent-pty-a46v4e4v.js} +4 -4
  106. package/dist/chunks/{state-aaet6srn.js → persistent-pty-aaet6srn.js} +2 -2
  107. package/dist/chunks/{state-cfjg8y1t.js → persistent-pty-aagvkkxy.js} +55 -28
  108. package/dist/chunks/{state-xe9jj1nb.js → persistent-pty-aahnsagd.js} +20 -20
  109. package/dist/chunks/{state-29g7zgv2.js → persistent-pty-aavsyw27.js} +24 -24
  110. package/dist/chunks/{state-py90b8jm.js → persistent-pty-af4kcksd.js} +9 -9
  111. package/dist/chunks/{state-921tq59c.js → persistent-pty-akt3csds.js} +11 -11
  112. package/dist/chunks/{state-csk53bm4.js → persistent-pty-andaq6rh.js} +8 -8
  113. package/dist/chunks/{state-ver3tajd.js → persistent-pty-atpcpkf0.js} +25 -25
  114. package/dist/chunks/{state-yjpz96bv.js → persistent-pty-avr3wk77.js} +20 -20
  115. package/dist/chunks/{state-f5vf4wq4.js → persistent-pty-axdmkq6x.js} +15 -15
  116. package/dist/chunks/{state-94s48bjb.js → persistent-pty-b0grxa7w.js} +5 -5
  117. package/dist/chunks/{state-h2ta221q.js → persistent-pty-b2v3nqsm.js} +15 -15
  118. package/dist/chunks/{state-b6gygkdw.js → persistent-pty-b6gygkdw.js} +2 -2
  119. package/dist/chunks/{state-hwe7x4em.js → persistent-pty-b99w0g26.js} +6 -6
  120. package/dist/chunks/{state-bpqahvg7.js → persistent-pty-bby00dsd.js} +8 -8
  121. package/dist/chunks/{state-9y2w89yq.js → persistent-pty-bf6dt9pk.js} +14 -14
  122. package/dist/chunks/{state-k8cnakzr.js → persistent-pty-bgp3qmdj.js} +43 -43
  123. package/dist/chunks/{state-33t1hwr1.js → persistent-pty-bhydgh2x.js} +15 -15
  124. package/dist/chunks/{state-ak277p2c.js → persistent-pty-bhzctmd7.js} +21 -21
  125. package/dist/chunks/{state-09gmq8b4.js → persistent-pty-bkrv928p.js} +78 -78
  126. package/dist/chunks/{state-sa0x84r1.js → persistent-pty-bkxbsem7.js} +27 -27
  127. package/dist/chunks/{state-5r1zsdx9.js → persistent-pty-bw0vgseb.js} +8 -8
  128. package/dist/chunks/{state-ydka4fxz.js → persistent-pty-bwtw07rb.js} +4 -4
  129. package/dist/chunks/{state-3yht5y46.js → persistent-pty-bx134keb.js} +9 -9
  130. package/dist/chunks/{state-72bpyge2.js → persistent-pty-c3t7yrgz.js} +6 -6
  131. package/dist/chunks/{state-s6edna4h.js → persistent-pty-c6j5rb3b.js} +4 -4
  132. package/dist/chunks/{state-wgzzyhw0.js → persistent-pty-c7m75h3c.js} +1 -1
  133. package/dist/chunks/{state-cfpkc3c9.js → persistent-pty-cfpkc3c9.js} +2 -2
  134. package/dist/chunks/{state-f9assn5r.js → persistent-pty-cgwhtan4.js} +22 -22
  135. package/dist/chunks/{state-nmztbhvy.js → persistent-pty-cqyts73c.js} +36 -36
  136. package/dist/chunks/{state-b3qnp4t9.js → persistent-pty-cvvekyt1.js} +20 -20
  137. package/dist/chunks/{state-zcrspsvn.js → persistent-pty-cxmh4q5b.js} +4 -4
  138. package/dist/chunks/{state-ak8ram1w.js → persistent-pty-d5yt5jwb.js} +18 -18
  139. package/dist/chunks/{state-j187zt17.js → persistent-pty-d8qpv23y.js} +38 -38
  140. package/dist/chunks/{state-jwcy2c2z.js → persistent-pty-dpkg50ah.js} +4 -4
  141. package/dist/chunks/{state-yqq2tfn2.js → persistent-pty-dxygqc36.js} +21 -21
  142. package/dist/chunks/{state-022yfne5.js → persistent-pty-e8mbapm5.js} +9 -9
  143. package/dist/chunks/{state-2g4a82s9.js → persistent-pty-e9x29tk8.js} +11 -11
  144. package/dist/chunks/{state-0p84p7jd.js → persistent-pty-eanp9d5s.js} +38 -38
  145. package/dist/chunks/{state-n784zy78.js → persistent-pty-emyaygjm.js} +44 -44
  146. package/dist/chunks/{state-jfd1wwb2.js → persistent-pty-enc0sym2.js} +18 -18
  147. package/dist/chunks/{state-31dz7cp4.js → persistent-pty-esdnemd6.js} +1 -1
  148. package/dist/chunks/{state-etq0c3wd.js → persistent-pty-etq0c3wd.js} +1 -1
  149. package/dist/chunks/{state-krzxdn43.js → persistent-pty-exnvqzq0.js} +34 -34
  150. package/dist/chunks/{state-28nw2yhp.js → persistent-pty-ez87t20v.js} +38 -38
  151. package/dist/chunks/{state-f828m53h.js → persistent-pty-f828m53h.js} +2 -2
  152. package/dist/chunks/{state-rytjzehr.js → persistent-pty-f873qhwf.js} +22 -22
  153. package/dist/chunks/{state-c1495ybz.js → persistent-pty-fg7rbsd2.js} +11 -11
  154. package/dist/chunks/{state-65aqn4re.js → persistent-pty-fgcgd4rw.js} +13 -13
  155. package/dist/chunks/{state-5q2jxep4.js → persistent-pty-fppgezky.js} +28 -28
  156. package/dist/chunks/{state-18cztcj7.js → persistent-pty-fq1h1v14.js} +3 -3
  157. package/dist/chunks/{state-y7rtgf26.js → persistent-pty-fsxrvzy1.js} +8 -8
  158. package/dist/chunks/{state-fxbjtjnd.js → persistent-pty-fxbjtjnd.js} +1 -1
  159. package/dist/chunks/{state-7mmsj4fx.js → persistent-pty-g22feqm7.js} +6 -6
  160. package/dist/chunks/{state-6zvqsr50.js → persistent-pty-g246acm2.js} +14 -14
  161. package/dist/chunks/{state-h64v6927.js → persistent-pty-g2rsct3h.js} +6 -6
  162. package/dist/chunks/{state-ne9b6pnf.js → persistent-pty-g5zzrv8s.js} +13 -13
  163. package/dist/chunks/{state-sgc5djpr.js → persistent-pty-g6986w1q.js} +20 -20
  164. package/dist/chunks/{state-150mk1fk.js → persistent-pty-g7bd3bxh.js} +13 -13
  165. package/dist/chunks/{state-8zageg2x.js → persistent-pty-gcaewnb3.js} +6 -6
  166. package/dist/chunks/{state-gd4qta3r.js → persistent-pty-gd4qta3r.js} +1 -1
  167. package/dist/chunks/{state-zh9ppm3h.js → persistent-pty-ggwxhvn5.js} +23 -23
  168. package/dist/chunks/{state-8t11yzen.js → persistent-pty-gpw9mxzt.js} +36 -36
  169. package/dist/chunks/{state-vgpytzky.js → persistent-pty-gq9ysr8h.js} +8 -8
  170. package/dist/chunks/persistent-pty-gqh9qxps.js +462 -0
  171. package/dist/chunks/{state-wgzajyyj.js → persistent-pty-grfax6bg.js} +19 -19
  172. package/dist/chunks/{state-gv6a8nnw.js → persistent-pty-gv6a8nnw.js} +2 -2
  173. package/dist/chunks/{state-6twzx6mq.js → persistent-pty-gvcny074.js} +11 -11
  174. package/dist/chunks/{state-h03wrkyp.js → persistent-pty-h03wrkyp.js} +2 -2
  175. package/dist/chunks/{state-g0jvfgd4.js → persistent-pty-h15vyfzd.js} +10 -10
  176. package/dist/chunks/{state-tyramfeg.js → persistent-pty-h28mzj1y.js} +43 -43
  177. package/dist/chunks/{state-f9bavhm2.js → persistent-pty-h2gyv3sg.js} +1 -1
  178. package/dist/chunks/{state-sp2c0jzd.js → persistent-pty-h322wpay.js} +3 -3
  179. package/dist/chunks/{state-h6vf3j39.js → persistent-pty-h6vf3j39.js} +1 -1
  180. package/dist/chunks/{state-7rsrcjh8.js → persistent-pty-hb21dksg.js} +11 -11
  181. package/dist/chunks/{state-9z7qz10x.js → persistent-pty-he2978am.js} +17 -17
  182. package/dist/chunks/{state-wytqpt0k.js → persistent-pty-hj2v5ffq.js} +36 -36
  183. package/dist/chunks/{state-hjt4xg1x.js → persistent-pty-hjt4xg1x.js} +1 -1
  184. package/dist/chunks/{state-vj81g6vn.js → persistent-pty-hrndf12w.js} +4 -4
  185. package/dist/chunks/persistent-pty-ht5y0zrb.js +18 -0
  186. package/dist/chunks/{state-atnffv9q.js → persistent-pty-hxh4hb0e.js} +17 -17
  187. package/dist/chunks/{state-p12hsq0d.js → persistent-pty-j39pwvkg.js} +4 -4
  188. package/dist/chunks/{state-j56e64zr.js → persistent-pty-j56e64zr.js} +1 -1
  189. package/dist/chunks/{state-paphc93g.js → persistent-pty-j935v87r.js} +2 -2
  190. package/dist/chunks/{state-crtbtcyr.js → persistent-pty-j9jre7ys.js} +145 -145
  191. package/dist/chunks/{state-vwbhyj4n.js → persistent-pty-jbp58yvw.js} +5 -5
  192. package/dist/chunks/{state-ejzmqjcw.js → persistent-pty-jer3sd0r.js} +14 -14
  193. package/dist/chunks/{state-xvvd9sqk.js → persistent-pty-jk9xsz7x.js} +31 -31
  194. package/dist/chunks/{state-hxbxa8n0.js → persistent-pty-jvzfedhz.js} +10 -10
  195. package/dist/chunks/{state-y0n9kv1k.js → persistent-pty-jzpbgybv.js} +23 -23
  196. package/dist/chunks/{state-r3q6pmcz.js → persistent-pty-k0nnq3t9.js} +6 -6
  197. package/dist/chunks/{state-bxdr1pqk.js → persistent-pty-k8g3dj73.js} +37 -37
  198. package/dist/chunks/{state-kg06axw8.js → persistent-pty-kg06axw8.js} +1 -1
  199. package/dist/chunks/{state-prbz0cjc.js → persistent-pty-kpgdrxya.js} +13 -13
  200. package/dist/chunks/{state-j55g5gc5.js → persistent-pty-kt5w8vxh.js} +10 -10
  201. package/dist/chunks/{state-x6npt8bv.js → persistent-pty-m18hwpd1.js} +8 -8
  202. package/dist/chunks/{state-2kzpay7g.js → persistent-pty-m3s16k4y.js} +11 -11
  203. package/dist/chunks/{state-4vpazqzp.js → persistent-pty-m4xc242r.js} +15 -15
  204. package/dist/chunks/{state-w6jjpet8.js → persistent-pty-m5y0j72z.js} +12 -12
  205. package/dist/chunks/{state-x9mqqw49.js → persistent-pty-m7vxemcg.js} +11 -11
  206. package/dist/chunks/{state-m2d0j7c0.js → persistent-pty-m86bnw2c.js} +9 -9
  207. package/dist/chunks/{state-m9w0rfyh.js → persistent-pty-m9w0rfyh.js} +1 -1
  208. package/dist/chunks/{state-22q0q0f5.js → persistent-pty-mdkf98yy.js} +5 -5
  209. package/dist/chunks/{state-w7fp7h3n.js → persistent-pty-mge8n18z.js} +3 -3
  210. package/dist/chunks/{state-mkcjrzeh.js → persistent-pty-mkcjrzeh.js} +1 -1
  211. package/dist/chunks/{state-y6kv8k3y.js → persistent-pty-mqy9bkz8.js} +4 -4
  212. package/dist/chunks/{state-1ah30sey.js → persistent-pty-mrw4weg4.js} +5 -5
  213. package/dist/chunks/{state-yt0fqk68.js → persistent-pty-mtft99cd.js} +5 -5
  214. package/dist/chunks/{state-zsz926ep.js → persistent-pty-n52fcynn.js} +32 -32
  215. package/dist/chunks/{state-7z7az0f5.js → persistent-pty-nw2nz702.js} +4 -4
  216. package/dist/chunks/{state-80e0yyk8.js → persistent-pty-nx4935gj.js} +10 -10
  217. package/dist/chunks/{state-53xyfxte.js → persistent-pty-nyba91e3.js} +20 -20
  218. package/dist/chunks/{state-cw80r5s7.js → persistent-pty-p9e7n5cp.js} +46 -46
  219. package/dist/chunks/{state-eqcfmywb.js → persistent-pty-pbmjghd7.js} +11 -11
  220. package/dist/chunks/{state-pjvnvgmy.js → persistent-pty-pjvnvgmy.js} +1 -1
  221. package/dist/chunks/{state-pknna89w.js → persistent-pty-pknna89w.js} +1 -1
  222. package/dist/chunks/{state-x29tk1ad.js → persistent-pty-pps99k3k.js} +23 -23
  223. package/dist/chunks/{state-943tb150.js → persistent-pty-q34x7630.js} +4 -4
  224. package/dist/chunks/{state-c9shdghn.js → persistent-pty-qcahbspj.js} +10 -10
  225. package/dist/chunks/{state-6vzn2neh.js → persistent-pty-qfd3egxj.js} +12 -12
  226. package/dist/chunks/{state-ratg3njy.js → persistent-pty-qjfza5jp.js} +21 -21
  227. package/dist/chunks/{state-rps9nzpw.js → persistent-pty-qryc0yk4.js} +46 -46
  228. package/dist/chunks/{state-qsdy395h.js → persistent-pty-qsdy395h.js} +1 -1
  229. package/dist/chunks/{state-hykkhnzy.js → persistent-pty-qshadkbd.js} +15 -15
  230. package/dist/chunks/{state-mdfek7tq.js → persistent-pty-qt3ydrbb.js} +84 -84
  231. package/dist/chunks/{state-8a299bz2.js → persistent-pty-qv60t1mv.js} +6 -6
  232. package/dist/chunks/{state-by865r6p.js → persistent-pty-qz2hjw9m.js} +4 -4
  233. package/dist/chunks/{state-wxs831ee.js → persistent-pty-r3meafyq.js} +27 -27
  234. package/dist/chunks/{state-1bbkgx8g.js → persistent-pty-r5x6zcsm.js} +3 -3
  235. package/dist/chunks/{state-sv9bpgvh.js → persistent-pty-rs226bz6.js} +5 -5
  236. package/dist/chunks/{state-n7qjkrfm.js → persistent-pty-rzn68cdd.js} +9 -9
  237. package/dist/chunks/{state-ase9h72w.js → persistent-pty-s1htzk4a.js} +29 -29
  238. package/dist/chunks/{state-yrznvahk.js → persistent-pty-s4enseaf.js} +2 -2
  239. package/dist/chunks/{state-hm0qe6e9.js → persistent-pty-s51v67se.js} +10 -10
  240. package/dist/chunks/{state-p4ywb1g4.js → persistent-pty-s76nk363.js} +12 -12
  241. package/dist/chunks/{state-rhjbct0v.js → persistent-pty-s8d7rejh.js} +4 -4
  242. package/dist/chunks/{state-j2yzjc89.js → persistent-pty-smj81yy7.js} +25 -25
  243. package/dist/chunks/{state-zrm81p97.js → persistent-pty-stesey4a.js} +12 -12
  244. package/dist/chunks/{state-zk97sdd1.js → persistent-pty-t7fdnyc8.js} +12 -12
  245. package/dist/chunks/{state-p5emxdhz.js → persistent-pty-t8wk4avw.js} +11 -11
  246. package/dist/chunks/persistent-pty-t9b0v4z9.js +22 -0
  247. package/dist/chunks/{state-tazgh4e4.js → persistent-pty-tazgh4e4.js} +1 -1
  248. package/dist/chunks/{state-2a0bwcx4.js → persistent-pty-tc9rqwe8.js} +9 -9
  249. package/dist/chunks/{state-89znhe33.js → persistent-pty-tcezcvh9.js} +4 -4
  250. package/dist/chunks/{state-tdstcens.js → persistent-pty-tdstcens.js} +1 -1
  251. package/dist/chunks/{state-7yrd46mr.js → persistent-pty-tge42xv9.js} +13 -13
  252. package/dist/chunks/{state-e5raxanb.js → persistent-pty-tjfw1za4.js} +8 -8
  253. package/dist/chunks/{state-a4exdnt3.js → persistent-pty-ttqfmzkf.js} +4 -4
  254. package/dist/chunks/{state-tvtrv512.js → persistent-pty-tvtrv512.js} +1 -1
  255. package/dist/chunks/{state-6d9mz4vp.js → persistent-pty-twy35tz0.js} +8 -8
  256. package/dist/chunks/{state-8309y98q.js → persistent-pty-tybgdchd.js} +37 -37
  257. package/dist/chunks/{state-y34yw7ae.js → persistent-pty-v8aeq3gs.js} +32 -32
  258. package/dist/chunks/{state-5jtdmvnp.js → persistent-pty-vabb23s0.js} +1 -1
  259. package/dist/chunks/{state-veqvce7d.js → persistent-pty-veqvce7d.js} +1 -1
  260. package/dist/chunks/{state-qn4ba14w.js → persistent-pty-vmq7ehpy.js} +5 -5
  261. package/dist/chunks/{state-3gma002f.js → persistent-pty-vqyjqhb3.js} +13 -13
  262. package/dist/chunks/{state-jy16bfac.js → persistent-pty-vypqtakx.js} +1 -1
  263. package/dist/chunks/{state-vzcthcp8.js → persistent-pty-vzcthcp8.js} +1 -1
  264. package/dist/chunks/{state-jrrn2k62.js → persistent-pty-vze96k0n.js} +4 -4
  265. package/dist/chunks/{state-w3wsvvr9.js → persistent-pty-w3wsvvr9.js} +1 -1
  266. package/dist/chunks/{state-exj14bv3.js → persistent-pty-warydmh4.js} +27 -27
  267. package/dist/chunks/{state-wd87259q.js → persistent-pty-wd87259q.js} +1 -1
  268. package/dist/chunks/{state-kqtd2zqw.js → persistent-pty-ws70e1ew.js} +36 -36
  269. package/dist/chunks/{state-ch07p6ra.js → persistent-pty-ww3mwnc7.js} +11 -11
  270. package/dist/chunks/{state-x1ezjp6w.js → persistent-pty-x1ezjp6w.js} +1 -1
  271. package/dist/chunks/{state-mec7151z.js → persistent-pty-x30a5wep.js} +3 -3
  272. package/dist/chunks/{state-x43y2vfs.js → persistent-pty-x43y2vfs.js} +2 -2
  273. package/dist/chunks/{state-66yxwatf.js → persistent-pty-xck95xk4.js} +22 -22
  274. package/dist/chunks/{state-4dz8d7rt.js → persistent-pty-xrmsdwza.js} +37 -37
  275. package/dist/chunks/{state-3w8cezm2.js → persistent-pty-xsgnaeym.js} +16 -16
  276. package/dist/chunks/{state-y1fvbwt7.js → persistent-pty-y1fvbwt7.js} +1 -1
  277. package/dist/chunks/{state-9715qn9e.js → persistent-pty-y20gv630.js} +32 -32
  278. package/dist/chunks/{state-7sdps93t.js → persistent-pty-yddgxcp4.js} +6 -5
  279. package/dist/chunks/{state-nwjjkb8e.js → persistent-pty-ynnp4yam.js} +11 -11
  280. package/dist/chunks/{state-yp2x3t23.js → persistent-pty-yp2x3t23.js} +1 -1
  281. package/dist/chunks/{state-yrhqyw5v.js → persistent-pty-yrhqyw5v.js} +1 -1
  282. package/dist/chunks/{state-z0bkrqjs.js → persistent-pty-z0bkrqjs.js} +1 -1
  283. package/dist/chunks/{state-a12ks8p1.js → persistent-pty-zbr6jhfd.js} +24 -24
  284. package/dist/chunks/{state-zeh9ct20.js → persistent-pty-zeh9ct20.js} +2 -2
  285. package/dist/chunks/{state-f3ngv102.js → persistent-pty-zepncfka.js} +21 -21
  286. package/dist/chunks/{state-zr2ceqn5.js → persistent-pty-zr2ceqn5.js} +1 -1
  287. package/dist/chunks/{state-djcf4y0z.js → persistent-pty-zss1wv0f.js} +55 -55
  288. package/dist/chunks/{state-t7f2r9zx.js → persistent-pty-zw5b53zw.js} +41 -41
  289. package/dist/chunks/{state-zxq2ej10.js → persistent-pty-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 +2 -2
  293. package/dist/command.js +77 -77
  294. package/dist/config/discovery.js +79 -79
  295. package/dist/config/markdown.js +1 -1
  296. package/dist/config/normalize.js +19 -19
  297. package/dist/config/plugin/agent.js +117 -117
  298. package/dist/config/plugin/command.js +209 -209
  299. package/dist/config/plugin/compaction.js +155 -155
  300. package/dist/config/plugin/entry-observer.js +1 -1
  301. package/dist/config/plugin/formatter.js +117 -117
  302. package/dist/config/plugin/image.js +115 -115
  303. package/dist/config/plugin/instruction.js +85 -85
  304. package/dist/config/plugin/location-watcher.js +117 -117
  305. package/dist/config/plugin/mcp.js +126 -126
  306. package/dist/config/plugin/policy.js +114 -114
  307. package/dist/config/plugin/provider.js +111 -111
  308. package/dist/config/plugin/reference.js +117 -117
  309. package/dist/config/plugin/shell.js +116 -116
  310. package/dist/config/plugin/skill-file.js +97 -97
  311. package/dist/config/plugin/skill.js +136 -136
  312. package/dist/config/plugin/snapshot.js +115 -115
  313. package/dist/config/plugin/source.js +115 -115
  314. package/dist/config/plugin/tool-output.js +117 -117
  315. package/dist/config/plugin/websearch.js +113 -113
  316. package/dist/config/plugin/worktree.js +118 -118
  317. package/dist/config/variable.js +3 -3
  318. package/dist/config/watch.js +1 -1
  319. package/dist/config.js +119 -119
  320. package/dist/credential/sql.js +2 -2
  321. package/dist/credential.js +79 -79
  322. package/dist/database/database.js +64 -64
  323. package/dist/database/drizzle/effect-sqlite/driver.js +14 -14
  324. package/dist/database/drizzle/effect-sqlite/index.js +14 -14
  325. package/dist/database/drizzle/effect-sqlite/session.js +11 -11
  326. package/dist/database/drizzle/index.js +15 -15
  327. package/dist/database/drizzle/internal/drizzle-utils.js +1 -1
  328. package/dist/database/drizzle/sqlite-core/effect/count.js +1 -1
  329. package/dist/database/drizzle/sqlite-core/effect/db.js +9 -9
  330. package/dist/database/drizzle/sqlite-core/effect/delete.js +2 -2
  331. package/dist/database/drizzle/sqlite-core/effect/index.js +10 -10
  332. package/dist/database/drizzle/sqlite-core/effect/insert.js +2 -2
  333. package/dist/database/drizzle/sqlite-core/effect/query.js +1 -1
  334. package/dist/database/drizzle/sqlite-core/effect/raw.js +1 -1
  335. package/dist/database/drizzle/sqlite-core/effect/select.js +2 -2
  336. package/dist/database/drizzle/sqlite-core/effect/session.js +10 -10
  337. package/dist/database/drizzle/sqlite-core/effect/update.js +2 -2
  338. package/dist/database/drizzle.js +16 -16
  339. package/dist/database/migration/20260127222353_familiar_lady_ursula.js +1 -1
  340. package/dist/database/migration/20260211171708_add_project_commands.js +1 -1
  341. package/dist/database/migration/20260213144116_wakeful_the_professor.js +1 -1
  342. package/dist/database/migration/20260225215848_workspace.js +1 -1
  343. package/dist/database/migration/20260227213759_add_session_workspace_id.js +1 -1
  344. package/dist/database/migration/20260228203230_blue_harpoon.js +1 -1
  345. package/dist/database/migration/20260303231226_add_workspace_fields.js +1 -1
  346. package/dist/database/migration/20260309230000_move_org_to_state.js +1 -1
  347. package/dist/database/migration/20260312043431_session_message_cursor.js +1 -1
  348. package/dist/database/migration/20260323234822_events.js +1 -1
  349. package/dist/database/migration/20260410174513_workspace-name.js +1 -1
  350. package/dist/database/migration/20260413175956_chief_energizer.js +1 -1
  351. package/dist/database/migration/20260423070820_add_icon_url_override.js +1 -1
  352. package/dist/database/migration/20260427172553_slow_nightmare.js +1 -1
  353. package/dist/database/migration/20260428004200_add_session_path.js +1 -1
  354. package/dist/database/migration/20260501142318_next_venus.js +1 -1
  355. package/dist/database/migration/20260504145000_add_sync_owner.js +1 -1
  356. package/dist/database/migration/20260507164347_add_workspace_time.js +1 -1
  357. package/dist/database/migration/20260510033149_session_usage.js +1 -1
  358. package/dist/database/migration/20260511000411_data_migration_state.js +1 -1
  359. package/dist/database/migration/20260511173437_session-metadata.js +1 -1
  360. package/dist/database/migration/20260601010001_normalize_storage_paths.js +1 -1
  361. package/dist/database/migration/20260601202201_amazing_prowler.js +1 -1
  362. package/dist/database/migration/20260602002951_lowly_union_jack.js +1 -1
  363. package/dist/database/migration/20260602182828_add_project_directories.js +1 -1
  364. package/dist/database/migration/20260603001617_session_message_projection_indexes.js +1 -1
  365. package/dist/database/migration/20260603040000_session_message_projection_order.js +1 -1
  366. package/dist/database/migration/20260603141458_session_input_inbox.js +1 -1
  367. package/dist/database/migration/20260603160727_jittery_ezekiel_stane.js +1 -1
  368. package/dist/database/migration/20260604172448_event_sourced_session_input.js +1 -1
  369. package/dist/database/migration/20260605003541_add_session_context_snapshot.js +1 -1
  370. package/dist/database/migration/20260605042240_add_context_epoch_agent.js +1 -1
  371. package/dist/database/migration/20260611035744_credential.js +1 -1
  372. package/dist/database/migration/20260611192811_lush_chimera.js +1 -1
  373. package/dist/database/migration/20260612174303_project_dir_strategy.js +1 -1
  374. package/dist/database/migration/20260622142730_simplify_session_context_epoch.js +1 -1
  375. package/dist/database/migration/20260622170816_reset_v2_session_state.js +1 -1
  376. package/dist/database/migration/20260622202450_simplify_session_input.js +1 -1
  377. package/dist/database/migration/20260804233008_loose_psylocke.js +1 -1
  378. package/dist/database/migration/20260805200742_import_legacy_credentials.js +1 -1
  379. package/dist/database/migration/20260808023530_workspace_domain.js +1 -1
  380. package/dist/database/migration/20260811161259_execution_claim_attempts.js +1 -1
  381. package/dist/database/migration/20260812181746_session_inbox.js +1 -1
  382. package/dist/database/migration/20260812213948_worktree.js +1 -1
  383. package/dist/database/migration/20260819222447_session_viewed_state.js +1 -1
  384. package/dist/database/migration/20260823191254_nullable_workspace_binding.js +1 -1
  385. package/dist/database/migration.gen.js +47 -47
  386. package/dist/database/migration.js +49 -49
  387. package/dist/database/path.js +2 -2
  388. package/dist/database/schema.gen.js +1 -1
  389. package/dist/database/schema.sql.js +1 -1
  390. package/dist/database/sqlite.bun.js +1 -1
  391. package/dist/database/sqlite.js +1 -1
  392. package/dist/database/sqlite.node.js +1 -1
  393. package/dist/database/sqlite.workerd.js +1 -1
  394. package/dist/database/v1-migration.bun.js +74 -74
  395. package/dist/database/v1-migration.js +1 -1
  396. package/dist/effect/app-node-builder.js +362 -362
  397. package/dist/effect/app-node-platform.js +2 -2
  398. package/dist/effect/keyed-mutex.js +3 -3
  399. package/dist/effect/websocket-constructor.js +1 -1
  400. package/dist/environment/driver.js +1 -1
  401. package/dist/environment/environment.js +88 -88
  402. package/dist/environment/exec-defaults.js +2 -2
  403. package/dist/environment/files.js +1 -1
  404. package/dist/environment/index.js +90 -90
  405. package/dist/environment/local.js +2 -2
  406. package/dist/environment/memory.js +2 -2
  407. package/dist/environment/unavailable.js +1 -1
  408. package/dist/event/sql.js +1 -1
  409. package/dist/event-logger.js +72 -72
  410. package/dist/file-access.js +99 -99
  411. package/dist/file-mutation.js +89 -89
  412. package/dist/file-retention.js +1 -1
  413. package/dist/file.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/ignore.js +1 -1
  419. package/dist/filesystem/location-watcher-policy.js +4 -4
  420. package/dist/filesystem/location-watcher.js +222 -222
  421. package/dist/filesystem/protected.js +3 -3
  422. package/dist/filesystem/search.js +99 -99
  423. package/dist/filesystem/watcher-binding.js +3 -3
  424. package/dist/filesystem/watcher.js +15 -15
  425. package/dist/filesystem.js +98 -98
  426. package/dist/form.js +82 -82
  427. package/dist/formatter/builtins.js +4 -4
  428. package/dist/formatter.js +82 -82
  429. package/dist/generate.js +91 -91
  430. package/dist/git.js +7 -7
  431. package/dist/github-copilot/chat/convert-to-openai-compatible-chat-messages.js +1 -1
  432. package/dist/github-copilot/chat/get-response-metadata.js +1 -1
  433. package/dist/github-copilot/chat/map-openai-compatible-finish-reason.js +1 -1
  434. package/dist/github-copilot/chat/openai-compatible-chat-language-model.js +7 -7
  435. package/dist/github-copilot/chat/openai-compatible-chat-options.js +1 -1
  436. package/dist/github-copilot/chat/openai-compatible-prepare-tools.js +1 -1
  437. package/dist/github-copilot/copilot-provider.js +17 -17
  438. package/dist/github-copilot/models.js +3 -3
  439. package/dist/github-copilot/openai-compatible-error.js +1 -1
  440. package/dist/github-copilot/responses/convert-to-openai-responses-input.js +1 -1
  441. package/dist/github-copilot/responses/map-openai-responses-finish-reason.js +1 -1
  442. package/dist/github-copilot/responses/openai-error.js +1 -1
  443. package/dist/github-copilot/responses/openai-responses-language-model.js +10 -10
  444. package/dist/github-copilot/responses/openai-responses-prepare-tools.js +6 -6
  445. package/dist/github-copilot/responses/tool/code-interpreter.js +1 -1
  446. package/dist/github-copilot/responses/tool/file-search.js +1 -1
  447. package/dist/github-copilot/responses/tool/image-generation.js +1 -1
  448. package/dist/github-copilot/responses/tool/web-search-preview.js +1 -1
  449. package/dist/github-copilot/responses/tool/web-search.js +1 -1
  450. package/dist/id/id.js +1 -1
  451. package/dist/image/photon.js +2 -2
  452. package/dist/image.js +6 -6
  453. package/dist/instance/service.js +5 -5
  454. package/dist/instance.js +353 -353
  455. package/dist/instruction-discovery.js +81 -81
  456. package/dist/instructions/builtins.js +82 -82
  457. package/dist/instructions/index.js +3 -3
  458. package/dist/integration/connection.js +1 -1
  459. package/dist/integration.js +82 -82
  460. package/dist/job.js +77 -77
  461. package/dist/kv/sql.js +2 -2
  462. package/dist/kv.js +71 -71
  463. package/dist/location-activity.js +131 -131
  464. package/dist/location-mutation.js +99 -99
  465. package/dist/location-service-map.js +81 -81
  466. package/dist/location-services.js +350 -350
  467. package/dist/location.js +82 -82
  468. package/dist/mcp/client.js +86 -86
  469. package/dist/mcp/index.js +99 -99
  470. package/dist/mcp/instructions.js +122 -122
  471. package/dist/mcp/oauth.js +3 -3
  472. package/dist/mcp/stdio.js +85 -85
  473. package/dist/mime.js +1 -1
  474. package/dist/modal/models.js +3 -3
  475. package/dist/model-resolver.js +86 -86
  476. package/dist/model.js +6 -6
  477. package/dist/models-dev.js +86 -86
  478. package/dist/oauth/page.js +1 -1
  479. package/dist/permission/saved.js +76 -76
  480. package/dist/permission/sql.js +5 -5
  481. package/dist/permission.js +104 -104
  482. package/dist/persistent-pty/binary.bun.js +1 -1
  483. package/dist/persistent-pty/daemon.js +1 -1
  484. package/dist/persistent-pty/index.js +86 -86
  485. package/dist/persistent-pty/pty-binding.js +1 -1
  486. package/dist/persistent-pty.js +73 -73
  487. package/dist/plugin/agent.js +99 -99
  488. package/dist/plugin/command.js +96 -96
  489. package/dist/plugin/hooks.js +5 -5
  490. package/dist/plugin/host.js +213 -213
  491. package/dist/plugin/instance.js +5 -5
  492. package/dist/plugin/internal.js +324 -324
  493. package/dist/plugin/mcp-codemode-exclusion.js +3 -3
  494. package/dist/plugin/models-dev.js +75 -75
  495. package/dist/plugin/module.js +7 -7
  496. package/dist/plugin/optimize.js +4 -4
  497. package/dist/plugin/plan.js +97 -97
  498. package/dist/plugin/promise.js +1 -1
  499. package/dist/plugin/provider/alibaba.js +2 -2
  500. package/dist/plugin/provider/amazon-bedrock.js +2 -2
  501. package/dist/plugin/provider/anthropic.js +2 -2
  502. package/dist/plugin/provider/azure.js +118 -118
  503. package/dist/plugin/provider/cerebras.js +2 -2
  504. package/dist/plugin/provider/cloudflare-ai-gateway.js +117 -117
  505. package/dist/plugin/provider/cloudflare-workers-ai.js +117 -117
  506. package/dist/plugin/provider/cohere.js +2 -2
  507. package/dist/plugin/provider/configured.js +114 -114
  508. package/dist/plugin/provider/digitalocean.js +79 -79
  509. package/dist/plugin/provider/dynamic.js +2 -2
  510. package/dist/plugin/provider/factory.js +1 -1
  511. package/dist/plugin/provider/gateway.js +2 -2
  512. package/dist/plugin/provider/github-copilot.js +80 -80
  513. package/dist/plugin/provider/gitlab.js +3 -3
  514. package/dist/plugin/provider/google-vertex.js +2 -2
  515. package/dist/plugin/provider/kilo.js +2 -2
  516. package/dist/plugin/provider/llmgateway.js +76 -76
  517. package/dist/plugin/provider/lmstudio.js +117 -117
  518. package/dist/plugin/provider/mistral.js +2 -2
  519. package/dist/plugin/provider/modal.js +79 -79
  520. package/dist/plugin/provider/nvidia.js +2 -2
  521. package/dist/plugin/provider/ollama.js +117 -117
  522. package/dist/plugin/provider/openai-compatible.js +1 -1
  523. package/dist/plugin/provider/openai.js +80 -80
  524. package/dist/plugin/provider/opencode.js +79 -79
  525. package/dist/plugin/provider/openrouter.js +3 -3
  526. package/dist/plugin/provider/perplexity.js +2 -2
  527. package/dist/plugin/provider/poe.js +76 -76
  528. package/dist/plugin/provider/sap-ai-core.js +3 -3
  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/venice.js +2 -2
  532. package/dist/plugin/provider/vercel.js +2 -2
  533. package/dist/plugin/provider/vllm.js +117 -117
  534. package/dist/plugin/provider/xai.js +77 -77
  535. package/dist/plugin/provider/zenmux.js +2 -2
  536. package/dist/plugin/provider.js +158 -158
  537. package/dist/plugin/sdk.js +74 -74
  538. package/dist/plugin/service.js +3 -3
  539. package/dist/plugin/skill.js +133 -133
  540. package/dist/plugin/source-directory.js +1 -1
  541. package/dist/plugin/supervisor.js +343 -343
  542. package/dist/plugin/update.js +6 -6
  543. package/dist/plugin/variant.js +4 -4
  544. package/dist/plugin/vcs/git.js +82 -82
  545. package/dist/plugin/vcs/hg.js +82 -82
  546. package/dist/plugin/warming.js +112 -112
  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 +8 -8
  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 +4 -4
  553. package/dist/plugin.js +224 -224
  554. package/dist/project/schema.js +6 -6
  555. package/dist/project/sql.js +4 -4
  556. package/dist/project.js +83 -83
  557. package/dist/provider.js +5 -5
  558. package/dist/pty/protocol.js +1 -1
  559. package/dist/pty/schema.js +3 -3
  560. package/dist/pty/ticket.js +1 -1
  561. package/dist/pty.js +94 -94
  562. package/dist/reference/instructions.js +84 -84
  563. package/dist/reference.js +82 -82
  564. package/dist/repository-cache.js +76 -76
  565. package/dist/repository.js +1 -1
  566. package/dist/ripgrep/binary.js +2 -2
  567. package/dist/ripgrep.js +91 -91
  568. package/dist/rpc.js +81 -81
  569. package/dist/schema.js +1 -1
  570. package/dist/session/command.js +72 -72
  571. package/dist/session/compaction.js +127 -127
  572. package/dist/session/context.js +147 -147
  573. package/dist/session/environment.js +5 -5
  574. package/dist/session/error.js +5 -5
  575. package/dist/session/event.js +1 -1
  576. package/dist/session/execution/restart.js +219 -219
  577. package/dist/session/execution.js +122 -122
  578. package/dist/session/generate.js +146 -146
  579. package/dist/session/history.js +15 -15
  580. package/dist/session/inbox.js +84 -84
  581. package/dist/session/info.js +3 -3
  582. package/dist/session/instruction-entry.js +75 -75
  583. package/dist/session/instruction-state.js +8 -8
  584. package/dist/session/instructions.js +92 -92
  585. package/dist/session/message-updater.js +4 -4
  586. package/dist/session/message.js +1 -1
  587. package/dist/session/model-request.js +113 -113
  588. package/dist/session/model-transport.js +9 -9
  589. package/dist/session/move.js +126 -126
  590. package/dist/session/projector.js +84 -84
  591. package/dist/session/prompt.js +100 -100
  592. package/dist/session/provider-context.js +3 -3
  593. package/dist/session/revert.js +85 -85
  594. package/dist/session/run-coordinator.js +1 -1
  595. package/dist/session/runner/index.js +3 -3
  596. package/dist/session/runner/llm.js +225 -225
  597. package/dist/session/runner/max-steps.js +1 -1
  598. package/dist/session/runner/model.js +86 -86
  599. package/dist/session/runner/publish-llm-event.js +3 -3
  600. package/dist/session/runner/retry.js +110 -110
  601. package/dist/session/runner/step.js +121 -121
  602. package/dist/session/runner/to-llm-message.js +2 -2
  603. package/dist/session/schema.js +5 -5
  604. package/dist/session/session.js +167 -167
  605. package/dist/session/shell.js +131 -131
  606. package/dist/session/skill.js +98 -98
  607. package/dist/session/sql.js +5 -5
  608. package/dist/session/stats.js +71 -71
  609. package/dist/session/store.js +83 -83
  610. package/dist/session/subagent-completion.js +1 -1
  611. package/dist/session/subagent-job.js +205 -205
  612. package/dist/session/system-prompt.js +1 -1
  613. package/dist/session/title.js +151 -151
  614. package/dist/session/to-session-error.js +107 -107
  615. package/dist/session/transfer.js +215 -215
  616. package/dist/session/usage.js +1 -1
  617. package/dist/session.js +209 -209
  618. package/dist/shell/parse.js +6 -6
  619. package/dist/shell/result.js +1 -1
  620. package/dist/shell/scan.js +1 -1
  621. package/dist/shell/select.js +13 -13
  622. package/dist/shell.js +131 -131
  623. package/dist/skill/discovery.js +6 -6
  624. package/dist/skill/instructions.js +100 -100
  625. package/dist/skill.js +99 -99
  626. package/dist/snapshot.js +82 -82
  627. package/dist/state.js +1 -1
  628. package/dist/tool/html-markdown.js +1 -1
  629. package/dist/tool/http-body.js +1 -1
  630. package/dist/tool/mcp.js +119 -119
  631. package/dist/tool/plugin/edit.js +115 -115
  632. package/dist/tool/plugin/file-diff.js +1 -1
  633. package/dist/tool/plugin/glob.js +120 -120
  634. package/dist/tool/plugin/grep.js +120 -120
  635. package/dist/tool/plugin/opencode.js +3 -3
  636. package/dist/tool/plugin/patch.js +117 -117
  637. package/dist/tool/plugin/question.js +98 -98
  638. package/dist/tool/plugin/read.js +121 -121
  639. package/dist/tool/plugin/shell.js +210 -210
  640. package/dist/tool/plugin/skill.js +106 -106
  641. package/dist/tool/plugin/subagent.js +212 -212
  642. package/dist/tool/plugin/webfetch.js +105 -105
  643. package/dist/tool/plugin/websearch.js +105 -105
  644. package/dist/tool/plugin/write.js +117 -117
  645. package/dist/tool/read-filesystem.js +96 -96
  646. package/dist/tool/runtime.js +1 -1
  647. package/dist/tool-output.js +8 -8
  648. package/dist/tool.js +11 -11
  649. package/dist/types/session/model-request.d.ts +3 -3
  650. package/dist/util/error-summary.js +1 -1
  651. package/dist/util/error.js +1 -1
  652. package/dist/util/iife.js +1 -1
  653. package/dist/util/lazy.js +1 -1
  654. package/dist/util/slug.js +1 -1
  655. package/dist/util/token.js +1 -1
  656. package/dist/util/which.js +1 -1
  657. package/dist/util/wildcard.js +1 -1
  658. package/dist/v1/config/agent.js +7 -7
  659. package/dist/v1/config/attachment.js +4 -4
  660. package/dist/v1/config/command.js +3 -3
  661. package/dist/v1/config/config.js +16 -16
  662. package/dist/v1/config/error.js +4 -4
  663. package/dist/v1/config/formatter.js +3 -3
  664. package/dist/v1/config/layout.js +1 -1
  665. package/dist/v1/config/lsp.js +5 -5
  666. package/dist/v1/config/mcp.js +4 -4
  667. package/dist/v1/config/migrate.js +4 -4
  668. package/dist/v1/config/permission.js +7 -7
  669. package/dist/v1/config/plugin.js +3 -3
  670. package/dist/v1/config/provider-options.js +1 -1
  671. package/dist/v1/config/provider.js +4 -4
  672. package/dist/v1/config/server.js +2 -2
  673. package/dist/v1/config/skills.js +3 -3
  674. package/dist/v1/permission.js +1 -1
  675. package/dist/vcs/patch.js +1 -1
  676. package/dist/vcs.js +85 -85
  677. package/dist/websearch.js +82 -82
  678. package/dist/wellknown/plugin.js +74 -74
  679. package/dist/wellknown.js +79 -79
  680. package/dist/workspace/driver.js +5 -5
  681. package/dist/workspace/sql.js +1 -1
  682. package/dist/workspace.js +78 -78
  683. package/dist/worktree/directory.js +2 -2
  684. package/dist/worktree/git.js +5 -5
  685. package/dist/worktree/refresh.js +340 -340
  686. package/dist/worktree/sql.js +5 -5
  687. package/dist/worktree.js +89 -89
  688. package/package.json +8 -8
  689. package/dist/chunks/state-13vy297d.js +0 -462
  690. package/dist/chunks/state-bzq0g36h.js +0 -22
  691. package/dist/chunks/state-dxj72tfx.js +0 -18
  692. package/dist/chunks/state-h47he10w.js +0 -4
  693. package/dist/chunks/state-nw6n4qk1.js +0 -247
  694. /package/dist/chunks/{state-0qkdqm5v.js → persistent-pty-0qkdqm5v.js} +0 -0
  695. /package/dist/chunks/{state-0zkw76rk.js → persistent-pty-0zkw76rk.js} +0 -0
  696. /package/dist/chunks/{state-17cy0kzp.js → persistent-pty-17cy0kzp.js} +0 -0
  697. /package/dist/chunks/{state-1cnp2v09.js → persistent-pty-1cnp2v09.js} +0 -0
  698. /package/dist/chunks/{state-1kg9ymc8.js → persistent-pty-1kg9ymc8.js} +0 -0
  699. /package/dist/chunks/{state-2710q6r3.js → persistent-pty-2710q6r3.js} +0 -0
  700. /package/dist/chunks/{state-2axfhc9x.js → persistent-pty-2axfhc9x.js} +0 -0
  701. /package/dist/chunks/{state-2c3vjs8z.js → persistent-pty-2c3vjs8z.js} +0 -0
  702. /package/dist/chunks/{state-359p4xyc.js → persistent-pty-359p4xyc.js} +0 -0
  703. /package/dist/chunks/{state-3asan66x.js → persistent-pty-3asan66x.js} +0 -0
  704. /package/dist/chunks/{state-3v8g72cx.js → persistent-pty-3v8g72cx.js} +0 -0
  705. /package/dist/chunks/{state-3w5fmr99.js → persistent-pty-3w5fmr99.js} +0 -0
  706. /package/dist/chunks/{state-3wcehsnq.js → persistent-pty-3wcehsnq.js} +0 -0
  707. /package/dist/chunks/{state-43n2bw4t.js → persistent-pty-43n2bw4t.js} +0 -0
  708. /package/dist/chunks/{state-4knz6hnm.js → persistent-pty-4knz6hnm.js} +0 -0
  709. /package/dist/chunks/{state-4vcrnpx2.js → persistent-pty-4vcrnpx2.js} +0 -0
  710. /package/dist/chunks/{state-4y7fprxs.js → persistent-pty-4y7fprxs.js} +0 -0
  711. /package/dist/chunks/{state-53557ph1.js → persistent-pty-53557ph1.js} +0 -0
  712. /package/dist/chunks/{state-550bvhaj.js → persistent-pty-550bvhaj.js} +0 -0
  713. /package/dist/chunks/{state-6prwharc.js → persistent-pty-6prwharc.js} +0 -0
  714. /package/dist/chunks/{state-7akdwqpd.js → persistent-pty-7akdwqpd.js} +0 -0
  715. /package/dist/chunks/{state-7m9af43g.js → persistent-pty-7m9af43g.js} +0 -0
  716. /package/dist/chunks/{state-822emrt2.js → persistent-pty-822emrt2.js} +0 -0
  717. /package/dist/chunks/{state-88xbtdfr.js → persistent-pty-88xbtdfr.js} +0 -0
  718. /package/dist/chunks/{state-8n3pysct.js → persistent-pty-8n3pysct.js} +0 -0
  719. /package/dist/chunks/{state-922hggd3.js → persistent-pty-922hggd3.js} +0 -0
  720. /package/dist/chunks/{state-9a4afbnw.js → persistent-pty-9a4afbnw.js} +0 -0
  721. /package/dist/chunks/{state-9rqn6x4v.js → persistent-pty-9rqn6x4v.js} +0 -0
  722. /package/dist/chunks/{state-a6k6eb26.js → persistent-pty-a6k6eb26.js} +0 -0
  723. /package/dist/chunks/{state-af5trqkr.js → persistent-pty-af5trqkr.js} +0 -0
  724. /package/dist/chunks/{state-afrmfg78.js → persistent-pty-afrmfg78.js} +0 -0
  725. /package/dist/chunks/{state-aqzs7mqg.js → persistent-pty-aqzs7mqg.js} +0 -0
  726. /package/dist/chunks/{state-atq7p7m5.js → persistent-pty-atq7p7m5.js} +0 -0
  727. /package/dist/chunks/{state-bkyjaxrp.js → persistent-pty-bkyjaxrp.js} +0 -0
  728. /package/dist/chunks/{state-bmr6ed5q.js → persistent-pty-bmr6ed5q.js} +0 -0
  729. /package/dist/chunks/{state-cf4snx6d.js → persistent-pty-cf4snx6d.js} +0 -0
  730. /package/dist/chunks/{state-cvy3z8tj.js → persistent-pty-cvy3z8tj.js} +0 -0
  731. /package/dist/chunks/{state-d9fn303g.js → persistent-pty-d9fn303g.js} +0 -0
  732. /package/dist/chunks/{state-d9jj8t3e.js → persistent-pty-d9jj8t3e.js} +0 -0
  733. /package/dist/chunks/{state-dajrwvna.js → persistent-pty-dajrwvna.js} +0 -0
  734. /package/dist/chunks/{state-dap0rakb.js → persistent-pty-dap0rakb.js} +0 -0
  735. /package/dist/chunks/{state-df08tz66.js → persistent-pty-df08tz66.js} +0 -0
  736. /package/dist/chunks/{state-dy18nga0.js → persistent-pty-dy18nga0.js} +0 -0
  737. /package/dist/chunks/{state-e5kj55wp.js → persistent-pty-e5kj55wp.js} +0 -0
  738. /package/dist/chunks/{state-e73j6tqm.js → persistent-pty-e73j6tqm.js} +0 -0
  739. /package/dist/chunks/{state-ec1grn59.js → persistent-pty-ec1grn59.js} +0 -0
  740. /package/dist/chunks/{state-eh3zwz77.js → persistent-pty-eh3zwz77.js} +0 -0
  741. /package/dist/chunks/{state-emrn6kk6.js → persistent-pty-emrn6kk6.js} +0 -0
  742. /package/dist/chunks/{state-f0mxakyp.js → persistent-pty-f0mxakyp.js} +0 -0
  743. /package/dist/chunks/{state-f6n9ztr4.js → persistent-pty-f6n9ztr4.js} +0 -0
  744. /package/dist/chunks/{state-faypxj3z.js → persistent-pty-faypxj3z.js} +0 -0
  745. /package/dist/chunks/{state-fd410y7t.js → persistent-pty-fd410y7t.js} +0 -0
  746. /package/dist/chunks/{state-fxgpk5d8.js → persistent-pty-fxgpk5d8.js} +0 -0
  747. /package/dist/chunks/{state-g4wezp1m.js → persistent-pty-g4wezp1m.js} +0 -0
  748. /package/dist/chunks/{state-g86h250q.js → persistent-pty-g86h250q.js} +0 -0
  749. /package/dist/chunks/{state-gebd4c9n.js → persistent-pty-gebd4c9n.js} +0 -0
  750. /package/dist/chunks/{state-gftt206x.js → persistent-pty-gftt206x.js} +0 -0
  751. /package/dist/chunks/{state-hjbc5kem.js → persistent-pty-hjbc5kem.js} +0 -0
  752. /package/dist/chunks/{state-hk9envan.js → persistent-pty-hk9envan.js} +0 -0
  753. /package/dist/chunks/{state-hrnqkpcd.js → persistent-pty-hrnqkpcd.js} +0 -0
  754. /package/dist/chunks/{state-j2ntwpah.js → persistent-pty-j2ntwpah.js} +0 -0
  755. /package/dist/chunks/{state-j5zkgpj8.js → persistent-pty-j5zkgpj8.js} +0 -0
  756. /package/dist/chunks/{state-jr7sbwjy.js → persistent-pty-jr7sbwjy.js} +0 -0
  757. /package/dist/chunks/{state-jwfs4k6c.js → persistent-pty-jwfs4k6c.js} +0 -0
  758. /package/dist/chunks/{state-jzg6c2d5.js → persistent-pty-jzg6c2d5.js} +0 -0
  759. /package/dist/chunks/{state-mp448xyj.js → persistent-pty-mp448xyj.js} +0 -0
  760. /package/dist/chunks/{state-msx8hqn2.js → persistent-pty-msx8hqn2.js} +0 -0
  761. /package/dist/chunks/{state-n05xt0ee.js → persistent-pty-n05xt0ee.js} +0 -0
  762. /package/dist/chunks/{state-n3j8tn72.js → persistent-pty-n3j8tn72.js} +0 -0
  763. /package/dist/chunks/{state-njntx4h6.js → persistent-pty-njntx4h6.js} +0 -0
  764. /package/dist/chunks/{state-q3sfg36h.js → persistent-pty-q3sfg36h.js} +0 -0
  765. /package/dist/chunks/{state-q74kybfr.js → persistent-pty-q74kybfr.js} +0 -0
  766. /package/dist/chunks/{state-qaymkmh1.js → persistent-pty-qaymkmh1.js} +0 -0
  767. /package/dist/chunks/{state-qb87gjwd.js → persistent-pty-qb87gjwd.js} +0 -0
  768. /package/dist/chunks/{state-qfa1cgps.js → persistent-pty-qfa1cgps.js} +0 -0
  769. /package/dist/chunks/{state-qrg20bc0.js → persistent-pty-qrg20bc0.js} +0 -0
  770. /package/dist/chunks/{state-rcb2kzg1.js → persistent-pty-rcb2kzg1.js} +0 -0
  771. /package/dist/chunks/{state-sdp7kfr6.js → persistent-pty-sdp7kfr6.js} +0 -0
  772. /package/dist/chunks/{state-sk3qaz4a.js → persistent-pty-sk3qaz4a.js} +0 -0
  773. /package/dist/chunks/{state-ssg3fenm.js → persistent-pty-ssg3fenm.js} +0 -0
  774. /package/dist/chunks/{state-twg0f83k.js → persistent-pty-twg0f83k.js} +0 -0
  775. /package/dist/chunks/{state-w803qqfp.js → persistent-pty-w803qqfp.js} +0 -0
  776. /package/dist/chunks/{state-wer8tq1h.js → persistent-pty-wer8tq1h.js} +0 -0
  777. /package/dist/chunks/{state-wtztk69x.js → persistent-pty-wtztk69x.js} +0 -0
  778. /package/dist/chunks/{state-x0ckcb58.js → persistent-pty-x0ckcb58.js} +0 -0
  779. /package/dist/chunks/{state-x61499pn.js → persistent-pty-x61499pn.js} +0 -0
  780. /package/dist/chunks/{state-y44na4kk.js → persistent-pty-y44na4kk.js} +0 -0
  781. /package/dist/chunks/{state-y8cydn3q.js → persistent-pty-y8cydn3q.js} +0 -0
  782. /package/dist/chunks/{state-ygaqb7jw.js → persistent-pty-ygaqb7jw.js} +0 -0
  783. /package/dist/chunks/{state-ym463w8f.js → persistent-pty-ym463w8f.js} +0 -0
  784. /package/dist/chunks/{state-z9919s4g.js → persistent-pty-z9919s4g.js} +0 -0
@@ -1,49 +1,49 @@
1
1
  import {
2
2
  AbsolutePath2
3
- } from "./state-922hggd3.js";
3
+ } from "./persistent-pty-922hggd3.js";
4
4
  import {
5
5
  Service80,
6
6
  node85
7
- } from "./state-sp2c0jzd.js";
7
+ } from "./persistent-pty-h322wpay.js";
8
8
  import {
9
- Service77,
10
- node82
11
- } from "./state-zrm81p97.js";
9
+ Service79,
10
+ node84
11
+ } from "./persistent-pty-stesey4a.js";
12
12
  import {
13
- Service76,
14
- node81
15
- } from "./state-j55g5gc5.js";
13
+ Service78,
14
+ node83
15
+ } from "./persistent-pty-kt5w8vxh.js";
16
16
  import {
17
- ID17,
17
+ ID18,
18
18
  Current3,
19
- Info32,
19
+ Info33,
20
20
  UpdateInput4,
21
21
  Event20,
22
22
  Vcs3
23
- } from "./state-rsym84ch.js";
23
+ } from "./persistent-pty-81swgkk7.js";
24
24
  import {
25
25
  ProjectTable2,
26
26
  upsertProject2
27
- } from "./state-8p4f9s12.js";
27
+ } from "./persistent-pty-8p4f9s12.js";
28
28
  import {
29
29
  WorktreeTable2
30
- } from "./state-cfpkc3c9.js";
30
+ } from "./persistent-pty-cfpkc3c9.js";
31
31
  import {
32
32
  __export
33
- } from "./state-9rqn6x4v.js";
33
+ } from "./persistent-pty-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: () => ID16,
40
- Info: () => Info31,
39
+ ID: () => ID17,
40
+ Info: () => Info32,
41
41
  NotFoundError: () => NotFoundError10,
42
42
  Project: () => exports_project,
43
- Service: () => Service75,
43
+ Service: () => Service77,
44
44
  UpdateInput: () => UpdateInput3,
45
45
  Vcs: () => Vcs2,
46
- node: () => node80,
46
+ node: () => node82,
47
47
  root: () => root2
48
48
  });
49
49
  import { Context, Effect, Layer, Schema } from "effect";
@@ -55,14 +55,14 @@ import { FSUtil } from "@opencode/util/fs-util";
55
55
  import { AppProcess } from "@opencode/util/process";
56
56
  import { makeGlobalNode } from "@opencode/util/effect/app-node";
57
57
  import { Hash } from "@opencode/util/hash";
58
- var ID16 = ID17;
58
+ var ID17 = ID18;
59
59
  var Vcs2 = Vcs3;
60
60
  var Current2 = Current3;
61
- var Info31 = Info32;
61
+ var Info32 = Info33;
62
62
  var UpdateInput3 = UpdateInput4;
63
63
 
64
64
  class NotFoundError10 extends Schema.TaggedError()("Project.NotFoundError", {
65
- projectID: ID16
65
+ projectID: ID17
66
66
  }) {
67
67
  }
68
68
  var root2 = Effect.fn("Project.root")(function* (fs, input, markers = [".git", ".hg"]) {
@@ -71,7 +71,7 @@ var root2 = Effect.fn("Project.root")(function* (fs, input, markers = [".git", "
71
71
  }));
72
72
  });
73
73
 
74
- class Service75 extends Context.Service()("@opencode/Project") {
74
+ class Service77 extends Context.Service()("@opencode/Project") {
75
75
  }
76
76
  function fromRow(row) {
77
77
  const icon = row.icon_url || row.icon_url_override || row.icon_color ? {
@@ -94,11 +94,11 @@ function fromRow(row) {
94
94
  sandboxes: row.sandboxes
95
95
  };
96
96
  }
97
- var layer = Layer.effect(Service75, Effect.gen(function* () {
97
+ var layer = Layer.effect(Service77, Effect.gen(function* () {
98
98
  const fs = yield* FSUtil.Service;
99
- const git = yield* Service76;
99
+ const git = yield* Service78;
100
100
  const proc = yield* AppProcess.Service;
101
- const bus = yield* Service77;
101
+ const bus = yield* Service79;
102
102
  const db = (yield* Service80).db;
103
103
  const announcing = new Set;
104
104
  const persist = Effect.fnUntraced(function* (project) {
@@ -144,7 +144,7 @@ var layer = Layer.effect(Service75, Effect.gen(function* () {
144
144
  yield* bus.publish(Worktree.Event.Resolved, {
145
145
  projectID: item.projectID,
146
146
  directory: item.directory,
147
- previous: project.previous ?? ID16.global,
147
+ previous: project.previous ?? ID17.global,
148
148
  ...adopted.length ? { adopted: adopted.map((candidate) => candidate.id) } : {}
149
149
  }, {
150
150
  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(Service75, Effect.gen(function* () {
173
173
  return project;
174
174
  });
175
175
  const cached = Effect.fnUntraced(function* (dir) {
176
- return yield* fs.readFileString(path.join(dir, "opencode")).pipe(Effect.map((value) => value.trim()), Effect.map((value) => value ? ID16.make(value) : undefined), Effect.orElseSucceed(() => {
176
+ return yield* fs.readFileString(path.join(dir, "opencode")).pipe(Effect.map((value) => value.trim()), Effect.map((value) => value ? ID17.make(value) : undefined), Effect.orElseSucceed(() => {
177
177
  return;
178
178
  }));
179
179
  });
@@ -184,7 +184,7 @@ var layer = Layer.effect(Service75, Effect.gen(function* () {
184
184
  const normalized = url(origin);
185
185
  if (!normalized)
186
186
  return;
187
- return ID16.make(Hash.fast(`git-remote:${normalized}`));
187
+ return ID17.make(Hash.fast(`git-remote:${normalized}`));
188
188
  });
189
189
  function url(input) {
190
190
  const value = input.trim();
@@ -209,7 +209,7 @@ var layer = Layer.effect(Service75, Effect.gen(function* () {
209
209
  }
210
210
  const rootCommit = Effect.fnUntraced(function* (repo) {
211
211
  const root = (yield* git.history.rootCommits(repo))[0];
212
- return root ? ID16.make(root) : undefined;
212
+ return root ? ID17.make(root) : undefined;
213
213
  });
214
214
  const hgRoot = Effect.fnUntraced(function* (worktree) {
215
215
  const result = yield* proc.run(ChildProcess.make("hg", ["log", "-r", "roots(all())", "-T", `{node}
@@ -225,7 +225,7 @@ var layer = Layer.effect(Service75, Effect.gen(function* () {
225
225
  return;
226
226
  const node = result.stdout.toString("utf8").split(`
227
227
  `).map((item) => item.trim()).filter(Boolean).toSorted()[0];
228
- return node ? ID16.make(node) : undefined;
228
+ return node ? ID17.make(node) : undefined;
229
229
  });
230
230
  const hgDiscover = Effect.fnUntraced(function* (dotHg) {
231
231
  const worktree = AbsolutePath2.make(path.dirname(dotHg));
@@ -234,7 +234,7 @@ var layer = Layer.effect(Service75, Effect.gen(function* () {
234
234
  const id = previous ?? (yield* hgRoot(worktree));
235
235
  return {
236
236
  previous,
237
- id: id ?? ID16.global,
237
+ id: id ?? ID17.global,
238
238
  directory: worktree,
239
239
  vcs: { type: "hg", store }
240
240
  };
@@ -251,7 +251,7 @@ var layer = Layer.effect(Service75, Effect.gen(function* () {
251
251
  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));
252
252
  return yield* persist({
253
253
  previous,
254
- id: id ?? ID16.global,
254
+ id: id ?? ID17.global,
255
255
  directory: repo.worktree,
256
256
  canonical,
257
257
  vcs: { type: "git", store: repo.commonDirectory }
@@ -265,18 +265,18 @@ var layer = Layer.effect(Service75, Effect.gen(function* () {
265
265
  });
266
266
  }
267
267
  return yield* persist({
268
- id: ID16.make(Hash.fast(`directory:${directory}`)),
268
+ id: ID17.make(Hash.fast(`directory:${directory}`)),
269
269
  directory,
270
270
  canonical: directory,
271
271
  vcs: undefined
272
272
  });
273
273
  });
274
- return Service75.of({ list, update, resolve });
274
+ return Service77.of({ list, update, resolve });
275
275
  }));
276
- var node80 = makeGlobalNode({
277
- service: Service75,
276
+ var node82 = makeGlobalNode({
277
+ service: Service77,
278
278
  layer,
279
- deps: [node82, node85, FSUtil.node, node81, AppProcess.node]
279
+ deps: [node84, node85, FSUtil.node, node83, AppProcess.node]
280
280
  });
281
281
 
282
- export { ID16, Vcs2, Current2, Info31, UpdateInput3, NotFoundError10, root2, Service75, node80, exports_project };
282
+ export { ID17, Vcs2, Current2, Info32, UpdateInput3, NotFoundError10, root2, Service77, node82, exports_project };
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  Timestamps2
3
- } from "./state-qfa1cgps.js";
3
+ } from "./persistent-pty-qfa1cgps.js";
4
4
  import {
5
5
  ProjectTable2
6
- } from "./state-8p4f9s12.js";
6
+ } from "./persistent-pty-8p4f9s12.js";
7
7
 
8
8
  // src/permission/sql.ts
9
9
  import { sqliteTable, text, uniqueIndex } from "drizzle-orm/sqlite-core";
@@ -1,23 +1,23 @@
1
1
  import {
2
2
  llmClient2
3
- } from "./state-5t3nmthw.js";
3
+ } from "./persistent-pty-5t3nmthw.js";
4
4
  import {
5
- Service60,
6
- node65
7
- } from "./state-8309y98q.js";
5
+ Service52,
6
+ node56
7
+ } from "./persistent-pty-tybgdchd.js";
8
8
  import {
9
9
  __export
10
- } from "./state-9rqn6x4v.js";
10
+ } from "./persistent-pty-9rqn6x4v.js";
11
11
 
12
12
  // src/generate.ts
13
13
  var exports_generate2 = {};
14
14
  __export(exports_generate2, {
15
15
  Generate: () => exports_generate2,
16
16
  ModelSelectionError: () => ModelSelectionError2,
17
- Service: () => Service59,
18
- UnavailableError: () => UnavailableError3,
19
- layer: () => layer23,
20
- node: () => node64
17
+ Service: () => Service49,
18
+ UnavailableError: () => UnavailableError2,
19
+ layer: () => layer20,
20
+ node: () => node53
21
21
  });
22
22
  import { LLM, LLMClient } from "@opencode/ai";
23
23
  import { Context, Effect, Layer, Schema } from "effect";
@@ -27,17 +27,17 @@ class ModelSelectionError2 extends Schema.TaggedError()("Generate.ModelSelection
27
27
  }) {
28
28
  }
29
29
 
30
- class UnavailableError3 extends Schema.TaggedError()("Generate.UnavailableError", {
30
+ class UnavailableError2 extends Schema.TaggedError()("Generate.UnavailableError", {
31
31
  message: Schema.String,
32
32
  service: Schema.optional(Schema.String)
33
33
  }) {
34
34
  }
35
35
 
36
- class Service59 extends Context.Service()("@opencode/Generate") {
36
+ class Service49 extends Context.Service()("@opencode/Generate") {
37
37
  }
38
- var layer23 = Layer.effect(Service59, Effect.gen(function* () {
38
+ var layer20 = Layer.effect(Service49, Effect.gen(function* () {
39
39
  const llm = yield* LLMClient.Service;
40
- const resolver = yield* Service60;
40
+ const resolver = yield* Service52;
41
41
  const runText = Effect.fn("Generate.text")(function* (input) {
42
42
  const resolved = yield* resolver.resolve(input.model).pipe(Effect.catchTag([
43
43
  "SessionRunnerModel.VariantUnavailableError",
@@ -45,28 +45,28 @@ var layer23 = Layer.effect(Service59, Effect.gen(function* () {
45
45
  "SessionRunnerModel.UnresolvedProviderVariablesError",
46
46
  "SessionRunnerModel.UnsupportedCompactionError"
47
47
  ], (error) => {
48
- const mapped = input.model ? new ModelSelectionError2({ message: error.message }) : new UnavailableError3({ message: error.message, service: error.providerID });
48
+ const mapped = input.model ? new ModelSelectionError2({ message: error.message }) : new UnavailableError2({ message: error.message, service: error.providerID });
49
49
  return Effect.fail(mapped);
50
50
  }));
51
51
  if (!resolved)
52
52
  return yield* new ModelSelectionError2({
53
53
  message: input.model ? `Model unavailable: ${input.model.providerID}/${input.model.id}` : "No model specified and no supported model is available"
54
54
  });
55
- const response = yield* llm.generate(LLM.request({ model: resolved.model, prompt: input.prompt })).pipe(Effect.mapError((error) => new UnavailableError3({
55
+ const response = yield* llm.generate(LLM.request({ model: resolved.model, prompt: input.prompt })).pipe(Effect.mapError((error) => new UnavailableError2({
56
56
  message: error.message,
57
57
  service: resolved.ref.providerID
58
58
  })));
59
59
  return response.text;
60
60
  });
61
- const text = (input) => runText(input).pipe(Effect.catchTag("Integration.Authorization", () => new UnavailableError3({
61
+ const text = (input) => runText(input).pipe(Effect.catchTag("Integration.Authorization", () => new UnavailableError2({
62
62
  message: "Generation credentials are unavailable"
63
63
  })));
64
- return Service59.of({ text });
64
+ return Service49.of({ text });
65
65
  }));
66
- var node64 = makeLocationNode({
67
- service: Service59,
68
- layer: layer23,
69
- deps: [node65, llmClient2]
66
+ var node53 = makeLocationNode({
67
+ service: Service49,
68
+ layer: layer20,
69
+ deps: [node56, llmClient2]
70
70
  });
71
71
 
72
- export { ModelSelectionError2, UnavailableError3, Service59, layer23, node64, exports_generate2 };
72
+ export { ModelSelectionError2, UnavailableError2, Service49, layer20, node53, exports_generate2 };
@@ -1,18 +1,18 @@
1
1
  import {
2
2
  PositiveInt2
3
- } from "./state-922hggd3.js";
3
+ } from "./persistent-pty-922hggd3.js";
4
4
  import {
5
- Info18
6
- } from "./state-f3ngv102.js";
5
+ Info27
6
+ } from "./persistent-pty-zepncfka.js";
7
7
  import {
8
8
  __export
9
- } from "./state-9rqn6x4v.js";
9
+ } from "./persistent-pty-9rqn6x4v.js";
10
10
 
11
11
  // src/v1/config/agent.ts
12
- var exports_agent3 = {};
13
- __export(exports_agent3, {
14
- ConfigAgentV1: () => exports_agent3,
15
- Info: () => Info14
12
+ var exports_agent4 = {};
13
+ __export(exports_agent4, {
14
+ ConfigAgentV1: () => exports_agent4,
15
+ Info: () => Info26
16
16
  });
17
17
  import { Schema, SchemaGetter } from "effect";
18
18
  var Color = Schema.Union([
@@ -44,7 +44,7 @@ var AgentSchema = Schema.StructWithRest(Schema.Struct({
44
44
  description: "Maximum number of agentic iterations before forcing text-only response"
45
45
  }),
46
46
  maxSteps: Schema.optional(PositiveInt2).annotate({ description: "@deprecated Use 'steps' field instead." }),
47
- permission: Schema.optional(Info18)
47
+ permission: Schema.optional(Info27)
48
48
  }), [Schema.Record(Schema.String, Schema.Any)]);
49
49
  var KNOWN_KEYS = new Set(["name", ...Object.keys(AgentSchema.schema.fields)]);
50
50
  var normalize = (agent) => {
@@ -66,9 +66,9 @@ var normalize = (agent) => {
66
66
  const steps = agent.steps ?? agent.maxSteps;
67
67
  return { ...agent, options, permission, ...steps !== undefined ? { steps } : {} };
68
68
  };
69
- var Info14 = AgentSchema.pipe(Schema.decodeTo(AgentSchema, {
69
+ var Info26 = AgentSchema.pipe(Schema.decodeTo(AgentSchema, {
70
70
  decode: SchemaGetter.transform(normalize),
71
71
  encode: SchemaGetter.passthrough({ strict: false })
72
72
  })).annotate({ identifier: "AgentConfig" });
73
73
 
74
- export { Info14, exports_agent3 };
74
+ export { Info26, exports_agent4 };
@@ -3,28 +3,28 @@ import {
3
3
  UnsupportedPackageError3,
4
4
  UnresolvedProviderVariablesError3,
5
5
  UnsupportedCompactionError3,
6
- Service60,
7
- node65
8
- } from "./state-8309y98q.js";
6
+ Service52,
7
+ node56
8
+ } from "./persistent-pty-tybgdchd.js";
9
9
  import {
10
10
  SessionSchema2
11
- } from "./state-7wdjtyr9.js";
11
+ } from "./persistent-pty-721tb84k.js";
12
12
  import {
13
13
  __export
14
- } from "./state-9rqn6x4v.js";
14
+ } from "./persistent-pty-9rqn6x4v.js";
15
15
 
16
16
  // src/session/runner/model.ts
17
17
  var exports_model = {};
18
18
  __export(exports_model, {
19
19
  ModelNotSelectedError: () => ModelNotSelectedError2,
20
20
  ModelUnavailableError: () => ModelUnavailableError2,
21
- Service: () => Service43,
21
+ Service: () => Service32,
22
22
  SessionRunnerModel: () => exports_model,
23
23
  UnresolvedProviderVariablesError: () => UnresolvedProviderVariablesError2,
24
24
  UnsupportedCompactionError: () => UnsupportedCompactionError2,
25
25
  UnsupportedPackageError: () => UnsupportedPackageError2,
26
26
  VariantUnavailableError: () => VariantUnavailableError2,
27
- node: () => node46,
27
+ node: () => node35,
28
28
  resolved: () => resolved2
29
29
  });
30
30
  import { makeLocationNode } from "@opencode/util/effect/app-node";
@@ -51,7 +51,7 @@ var UnsupportedPackageError2 = UnsupportedPackageError3;
51
51
  var UnresolvedProviderVariablesError2 = UnresolvedProviderVariablesError3;
52
52
  var UnsupportedCompactionError2 = UnsupportedCompactionError3;
53
53
 
54
- class Service43 extends Context.Service()("@opencode/SessionRunnerModel") {
54
+ class Service32 extends Context.Service()("@opencode/SessionRunnerModel") {
55
55
  }
56
56
  var resolved2 = (model, options) => ({
57
57
  model,
@@ -66,9 +66,9 @@ var resolved2 = (model, options) => ({
66
66
  compaction: options.compaction,
67
67
  websocket: options.websocket ?? false
68
68
  });
69
- var layer = Layer.effect(Service43, Effect.gen(function* () {
70
- const resolver = yield* Service60;
71
- return Service43.of({
69
+ var layer = Layer.effect(Service32, Effect.gen(function* () {
70
+ const resolver = yield* Service52;
71
+ return Service32.of({
72
72
  resolve: Effect.fn("SessionRunnerModel.resolve")(function* (session, available) {
73
73
  if (!session.model) {
74
74
  const resolved = yield* resolver.resolve();
@@ -86,6 +86,6 @@ var layer = Layer.effect(Service43, Effect.gen(function* () {
86
86
  })
87
87
  });
88
88
  }));
89
- var node46 = makeLocationNode({ service: Service43, layer, deps: [node65] });
89
+ var node35 = makeLocationNode({ service: Service32, layer, deps: [node56] });
90
90
 
91
- export { ModelNotSelectedError2, ModelUnavailableError2, VariantUnavailableError2, UnsupportedPackageError2, UnresolvedProviderVariablesError2, UnsupportedCompactionError2, Service43, resolved2, node46, exports_model };
91
+ export { ModelNotSelectedError2, ModelUnavailableError2, VariantUnavailableError2, UnsupportedPackageError2, UnresolvedProviderVariablesError2, UnsupportedCompactionError2, Service32, resolved2, node35, exports_model };
@@ -1,35 +1,35 @@
1
1
  import {
2
- ID12,
3
- Service71
4
- } from "./state-sa0x84r1.js";
2
+ ID13,
3
+ Service69
4
+ } from "./persistent-pty-bkxbsem7.js";
5
5
  import {
6
- Service74
7
- } from "./state-3w8cezm2.js";
6
+ Service76
7
+ } from "./persistent-pty-xsgnaeym.js";
8
8
  import {
9
- Service49
10
- } from "./state-cw80r5s7.js";
9
+ Service70
10
+ } from "./persistent-pty-p9e7n5cp.js";
11
11
  import {
12
- Service66,
12
+ Service62,
13
13
  args2
14
- } from "./state-wgzajyyj.js";
14
+ } from "./persistent-pty-grfax6bg.js";
15
15
  import {
16
- Service22
17
- } from "./state-09gmq8b4.js";
16
+ Service16
17
+ } from "./persistent-pty-bkrv928p.js";
18
18
  import {
19
- make10
20
- } from "./state-x9mqqw49.js";
19
+ make7
20
+ } from "./persistent-pty-m7vxemcg.js";
21
21
  import {
22
22
  parseOption2
23
- } from "./state-5daktx2q.js";
23
+ } from "./persistent-pty-5daktx2q.js";
24
24
  import {
25
25
  __export
26
- } from "./state-9rqn6x4v.js";
26
+ } from "./persistent-pty-9rqn6x4v.js";
27
27
 
28
28
  // src/config/plugin/command.ts
29
- var exports_command2 = {};
30
- __export(exports_command2, {
31
- ConfigCommandPlugin: () => exports_command2,
32
- Plugin: () => Plugin37
29
+ var exports_command = {};
30
+ __export(exports_command, {
31
+ ConfigCommandPlugin: () => exports_command,
32
+ Plugin: () => Plugin17
33
33
  });
34
34
  import { define } from "@opencode/plugin/effect/plugin";
35
35
  import { ConfigCommand } from "@opencode/schema/config/command";
@@ -41,10 +41,10 @@ import { Effect, Option, PubSub, Schema, Stream } from "effect";
41
41
  import { ChildProcess } from "effect/unstable/process";
42
42
  import { FSUtil } from "@opencode/util/fs-util";
43
43
  var decodeCommand = Schema.decodeUnknownOption(ConfigCommand.Info);
44
- var Plugin37 = define({
44
+ var Plugin17 = define({
45
45
  id: "opencode.config.command",
46
46
  effect: Effect.fn(function* (ctx) {
47
- const config = yield* Service49;
47
+ const config = yield* Service70;
48
48
  const fs = yield* FSUtil.Service;
49
49
  const loadEntry = Effect.fnUntraced(function* (entry) {
50
50
  if (entry.type === "document")
@@ -54,12 +54,12 @@ var Plugin37 = define({
54
54
  const commands = yield* loadDirectory(fs, entry.path);
55
55
  return [{ commands: Object.fromEntries(commands.map((command) => [command.name, command.info])) }];
56
56
  });
57
- const location = yield* Service74;
57
+ const location = yield* Service76;
58
58
  const processes = yield* AppProcess.Service;
59
- const shell = yield* Service66;
60
- const sessions = yield* Service22;
61
- const agents = yield* Service71;
62
- const subagents = yield* make10;
59
+ const shell = yield* Service62;
60
+ const sessions = yield* Service16;
61
+ const agents = yield* Service69;
62
+ const subagents = yield* make7;
63
63
  const load = Effect.fn("ConfigCommandPlugin.load")(function* () {
64
64
  return yield* Effect.forEach(yield* config.entries(), loadEntry).pipe(Effect.map((documents) => documents.flat()));
65
65
  });
@@ -80,7 +80,7 @@ var Plugin37 = define({
80
80
  name,
81
81
  description: command.description,
82
82
  execute: (input) => Effect.gen(function* () {
83
- const agent = command.agent === undefined ? undefined : ID12.make(command.agent);
83
+ const agent = command.agent === undefined ? undefined : ID13.make(command.agent);
84
84
  const commandAgent = agent === undefined ? undefined : (yield* ctx.agent.get({ agentID: agent })).data;
85
85
  const model = command.model === undefined ? commandAgent?.model : {
86
86
  id: Model.ID.make(command.model.model),
@@ -204,4 +204,4 @@ var placeholderRegex = /\$(\d+)/g;
204
204
  var quoteTrimRegex = /^["']|["']$/g;
205
205
  var shellRegex = /!`([^`]+)`/g;
206
206
 
207
- export { Plugin37, exports_command2 };
207
+ export { Plugin17, exports_command };
@@ -1,7 +1,7 @@
1
1
  import {
2
- ID15,
2
+ ID16,
3
3
  packageName2
4
- } from "./state-2d6j2h4j.js";
4
+ } from "./persistent-pty-84tssp1s.js";
5
5
 
6
6
  // src/plugin/provider/amazon-bedrock.ts
7
7
  import { Effect } from "effect";
@@ -22,7 +22,7 @@ var AmazonBedrockPlugin2 = define({
22
22
  effect: Effect.fn(function* (ctx) {
23
23
  yield* ctx.integration.transform((editor) => {
24
24
  editor.method.update({
25
- integrationID: ID15.amazonBedrock,
25
+ integrationID: ID16.amazonBedrock,
26
26
  method: { type: "env", names: ["AWS_BEARER_TOKEN_BEDROCK"] }
27
27
  });
28
28
  });
@@ -1,19 +1,19 @@
1
1
  import {
2
2
  fromPromise2
3
- } from "./state-zr2ceqn5.js";
3
+ } from "./persistent-pty-zr2ceqn5.js";
4
4
  import {
5
- Service50
6
- } from "./state-a12ks8p1.js";
5
+ Service71
6
+ } from "./persistent-pty-zbr6jhfd.js";
7
7
  import {
8
8
  __export
9
- } from "./state-9rqn6x4v.js";
9
+ } from "./persistent-pty-9rqn6x4v.js";
10
10
 
11
11
  // src/plugin/module.ts
12
12
  var exports_module = {};
13
13
  __export(exports_module, {
14
14
  LoadError: () => LoadError2,
15
15
  PluginModule: () => exports_module,
16
- make: () => make6
16
+ make: () => make4
17
17
  });
18
18
  import { Host } from "@opencode/plugin/host";
19
19
  import { createPluginSources } from "@opencode/plugin/source";
@@ -22,8 +22,8 @@ import { Deferred, Effect, FiberSet, PubSub, Schema, Stream } from "effect";
22
22
  import path from "path";
23
23
  import { stat } from "node:fs/promises";
24
24
  import { fileURLToPath, pathToFileURL } from "url";
25
- var make6 = Effect.fn("PluginModule.make")(function* () {
26
- const watcher = yield* Service50;
25
+ var make4 = Effect.fn("PluginModule.make")(function* () {
26
+ const watcher = yield* Service71;
27
27
  const scope = yield* Effect.scope;
28
28
  const runPromise = yield* FiberSet.makeRuntimePromise();
29
29
  const changes = yield* PubSub.unbounded();
@@ -102,4 +102,4 @@ var load = Effect.fn("PluginModule.load")(function* (operation, sources, options
102
102
  };
103
103
  });
104
104
 
105
- export { make6, LoadError2, exports_module };
105
+ export { make4, LoadError2, exports_module };
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  __export
3
- } from "./state-9rqn6x4v.js";
3
+ } from "./persistent-pty-9rqn6x4v.js";
4
4
 
5
5
  // src/shell/result.ts
6
6
  var exports_result = {};
@@ -1,17 +1,17 @@
1
1
  import {
2
2
  mergeOverlay2,
3
3
  mergeHeaders2
4
- } from "./state-2d6j2h4j.js";
4
+ } from "./persistent-pty-84tssp1s.js";
5
5
  import {
6
6
  latest2,
7
- Service49
8
- } from "./state-cw80r5s7.js";
7
+ Service70
8
+ } from "./persistent-pty-p9e7n5cp.js";
9
9
  import {
10
10
  observe2
11
- } from "./state-qsdy395h.js";
11
+ } from "./persistent-pty-qsdy395h.js";
12
12
  import {
13
13
  __export
14
- } from "./state-9rqn6x4v.js";
14
+ } from "./persistent-pty-9rqn6x4v.js";
15
15
 
16
16
  // src/config/plugin/provider.ts
17
17
  var exports_provider = {};
@@ -25,7 +25,7 @@ import { Effect } from "effect";
25
25
  var Plugin30 = define({
26
26
  id: "opencode.config.provider",
27
27
  effect: Effect.fn(function* (ctx) {
28
- const config = yield* Service49;
28
+ const config = yield* Service70;
29
29
  const loaded = yield* observe2(config, ctx.event, ctx.integration.reload().pipe(Effect.andThen(ctx.catalog.reload())));
30
30
  yield* ctx.integration.transform((integrations) => {
31
31
  for (const [id, provider] of configuredProviders(loaded.entries)) {